Replace 'core_regset_sections' by iterator method
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
4 (amd64_linux_iterate_over_regset_sections): New.
5 (amd64_linux_init_abi_common): Don't install the regset section
6 list, but the new iterator in gdbarch.
7 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
8 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
9 (arm_linux_iterate_over_regset_sections): ...here. New function.
10 (arm_linux_init_abi): Set iterator instead of section list.
11 * corelow.c (get_core_registers_cb): New function, logic moved
12 from...
13 (get_core_registers): ...loop body here. Use new iterator method
14 instead of walking through the regset section list.
15 * gdbarch.sh: Remove 'core_regset_sections'. New method
16 'iterate_over_regset_sections'. New typedef
17 'iterate_over_regset_sections_cb'.
18 * gdbarch.c: Regenerate.
19 * gdbarch.h: Likewise.
20 * i386-linux-tdep.c (i386_linux_regset_sections)
21 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
22 Remove.
23 (i386_linux_iterate_over_regset_sections): New.
24 (i386_linux_init_abi): Don't choose a regset section list, but
25 install new iterator in gdbarch.
26 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
27 (linux_collect_regset_section_cb): New function, logic moved
28 from...
29 (linux_collect_thread_registers): ...loop body here. Use iterator
30 method instead of walking through list.
31 (linux_make_corefile_notes_1): Check for presence of iterator
32 method instead of regset section list.
33 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
34 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
35 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
36 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
37 (ppc_linux_iterate_over_regset_sections): ...here. New function.
38 (ppc_linux_init_abi): Don't choose from above regset section
39 lists, but install new iterator in gdbarch.
40 * regset.h (struct core_regset_section): Remove.
41 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
42 have_linux_v1, have_linux_v2, and have_tdb.
43 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
44 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
45 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
46 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
47 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
48 (s390_iterate_over_regset_sections): ...here. New function. Use
49 new tdep fields.
50 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
51 regset section lists, but install new iterator.
52
53 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
54
55 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
56
57 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
58
59 * progspace.c (print_program_space): Don't prune program spaces
60 before printing them.
61
62 2014-09-25 Pedro Alves <palves@redhat.com>
63
64 * infrun.c (user_visible_resume_ptid): Don't check
65 singlestep_breakpoints_inserted_p.
66
67 2014-09-25 Pedro Alves <palves@redhat.com>
68
69 * breakpoint.c (should_be_inserted): Add debug output.
70
71 2014-09-25 Pedro Alves <palves@redhat.com>
72
73 * infrun.c (stepping_past_instruction_at)
74 (clear_exit_convenience_vars): Point at infrun.h instead of
75 inferior.h.
76 (handle_signal_stop): Fix typo.
77
78 2014-09-24 Yao Qi <yao@codesourcery.com>
79
80 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
81 bitmask.
82
83 2014-09-22 Gary Benson <gbenson@redhat.com>
84
85 * target.c (target_stop): Updated comment.
86
87 2014-09-22 Gary Benson <gbenson@redhat.com>
88
89 * target/target.h (target_stop_ptid): Renamed as...
90 (target_stop_and_wait): New function. Updated comment.
91 All uses updated.
92 (target_continue_ptid): Renamed as...
93 (target_continue_no_signal): New function. Updated comment.
94 All uses updated.
95
96 2014-09-22 Pedro Alves <palves@redhat.com>
97
98 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
99 and "auto" merged.
100 * breakpoint.c (enum ugll_insert_mode): New enum.
101 (always_inserted_mode): Now a plain boolean.
102 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
103 (breakpoints_always_inserted_mode): Delete.
104 (breakpoints_should_be_inserted_now): New function.
105 (insert_breakpoints): Pass UGLL_INSERT to
106 update_global_location_list instead of calling
107 insert_breakpoint_locations manually.
108 (create_solib_event_breakpoint_1): New, factored out from ...
109 (create_solib_event_breakpoint): ... this.
110 (create_and_insert_solib_event_breakpoint): Use
111 create_solib_event_breakpoint_1 instead of calling
112 insert_breakpoint_locations manually.
113 (update_global_location_list): Change parameter type from boolean
114 to enum ugll_insert_mode. All callers adjusted. Adjust to use
115 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
116 (update_global_location_list_nothrow): Change parameter type from
117 boolean to enum ugll_insert_mode.
118 (_initialize_breakpoint): "breakpoint always-inserted" option is
119 now a boolean command. Update help text.
120 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
121 (breakpoints_should_be_inserted_now): New declaration.
122 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
123 Remove breakpoints_always_inserted_mode check.
124 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
125 * remote.c (remote_start_remote): Likewise.
126
127 2014-09-22 Pedro Alves <palves@redhat.com>
128
129 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
130 (insert_breakpoints): Don't call insert_breakpoint_locations here.
131 Instead, pass UGLL_INSERT to update_global_location_list.
132 (update_global_location_list): Change parameter type from boolean
133 to enum ugll_insert_mode. All callers adjusted. Adjust to use
134 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
135 (create_solib_event_breakpoint_1): New, factored out from ...
136 (create_solib_event_breakpoint): ... this.
137 (create_and_insert_solib_event_breakpoint): Use
138 create_solib_event_breakpoint_1 instead of calling
139 insert_breakpoint_locations manually.
140 (update_global_location_list): Handle UGLL_INSERT.
141
142 2014-09-22 Pedro Alves <palves@redhat.com>
143
144 * breakpoint.c (enum ugll_insert_mode): New enum.
145 (update_global_location_list)
146 (update_global_location_list_nothrow): Change parameter type from
147 boolean to enum ugll_insert_mode. All callers adjusted.
148
149 2014-09-19 Joel Brobecker <brobecker@adacore.com>
150
151 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
152 SystemTap support in GDB.
153
154 2014-09-19 Don Breazeal <donb@codesourcery.com>
155
156 * linux-nat.c (linux_handle_extended_wait): Call
157 linux_ptrace_get_extended_event.
158 (wait_lwp): Call linux_is_extended_waitstatus.
159 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
160 and linux_is_extended_waitstatus.
161 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
162 linux_ptrace_get_extended_event.
163 (linux_ptrace_get_extended_event): New function.
164 (linux_is_extended_waitstatus): New function.
165 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
166 (linux_is_extended_waitstatus): New declarations.
167
168 2014-09-19 Yao Qi <yao@codesourcery.com>
169
170 * dwarf2read.c (dwarf_decode_lines): Update declaration.
171 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
172 comments. Callers update.
173 (dwarf_decode_lines): Likewise.
174 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
175 comments. Skip the line table if 'lowpc' is greater than
176 'address'. Don't check
177 dwarf2_per_objfile->has_section_at_zero.
178
179 2014-09-18 Doug Evans <dje@google.com>
180
181 * NEWS: Mention new "producer" attribute of gdb.Symtab.
182 * python/py-symtab.c (stpy_get_producer): New function.
183 (symtab_object_getset): Add "producer" attribute.
184
185 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
186
187 PR gdb/17384
188 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
189 (do_captured_read_memory_integer): Remove.
190 (safe_read_memory_integer): Use target_read_memory directly instead
191 of catching errors in do_captured_read_memory_integer.
192
193 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
194
195 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
196 not gdb/doc.
197
198 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
199
200 * objc-lang.c (find_implementation_from_class): Remove dead code.
201
202 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
203
204 PR cli/7233
205 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
206 "fprintf_unfiltered (gdb_stdlog...)".
207
208 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
209
210 PR breakpoints/12526
211 * breakpoint.h (struct watchpoint): New fields val_bitpos and
212 val_bitsize.
213 * breakpoint.c (watch_command_1): Use these fields to retain
214 bitfield information.
215 (extract_bitfield_from_watchpoint_value): New function.
216 (watchpoint_check): Use it.
217 (update_watchpoint): Use it. Optimize the address and length of a
218 HW watchpoint pointing to a bitfield.
219 * value.h (unpack_value_bitfield): New prototype.
220 * value.c (unpack_value_bitfield): Make extern.
221
222 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
223
224 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
225 x86-dregs.o.
226 * gnu-nat.c (inf_threads): New function.
227 * gnu-nat.h (inf_threads_ftype): New typedef.
228 (inf_threads): New declaration.
229 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
230 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
231 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
232 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
233 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
234 (i386_gnu_dr_get_control): New functions.
235 (reg_addr): New structure.
236 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
237 i386 debugging register hooks.
238 * NEWS: Mention this.
239
240 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
241
242 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
243 vector data transfer instructions.
244 (arm_record_coproc_data_proc): Updated.
245
246 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
247
248 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
249 arm_record_exreg_ld_st_insn.
250 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
251 load/store insns.
252
253 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
254
255 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
256 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
257 processing instructions.
258
259 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
260
261 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
262 for advance SIMD struct ld/st insn.
263 (thumb2_record_decode_insn_handler): Replace stub handler with
264 thumb2_record_asimd_struct_ld_st.
265
266 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
267
268 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
269 for asimd, vfp and coprocessor insns.
270 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
271 and coprocessor insns.
272 (thumb2_record_coproc_insn): New function.
273 (thumb2_record_decode_insn_handler): Update coprocessor insns record
274 handlers.
275 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
276 opcode 110 insns.
277
278 2014-09-13 Doug Evans <xdje42@gmail.com>
279
280 * NEWS: Mention new "queue-signal" command.
281 * infcmd.c (queue_signal_command): New function.
282 (_initialize_infcmd): Add new queue-signal command.
283
284 2014-09-13 Doug Evans <xdje42@gmail.com>
285
286 * linux-nat.c (wait_lwp): Add debugging printf.
287 (linux_nat_wait_1): Ditto.
288
289 2014-09-12 Pedro Alves <palves@redhat.com>
290
291 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
292 (create_and_insert_solib_event_breakpoint): New functions.
293 * breakpoint.h (create_and_insert_solib_event_breakpoint)
294 (remove_solib_event_breakpoints_at_next_stop): New declarations.
295 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
296 (remove_dbx_link_breakpoint): Delete function.
297 (insert_dbx_link_bpt_in_file): Use
298 create_and_insert_solib_event_breakpoint instead of
299 deprecated_insert_raw_breakpoint.
300 (procfs_wait): Don't check whether we hit __dbx_link here.
301 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
302 here.
303 * solib-irix.c (base_breakpoint): Delete global.
304 (disable_break): Delete function.
305 (enable_break): Use create_solib_event_breakpoint
306 instead of deprecated_insert_raw_breakpoint.
307 (irix_solib_handle_event): New function.
308 (irix_solib_create_inferior_hook): Don't run the target or disable
309 the mapping-complete breakpoint here.
310 (_initialize_irix_solib): Install irix_solib_handle_event as
311 so_ops->handle_event hook.
312
313 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
314 Ulrich Weigand  <uweigand@de.ibm.com>
315
316 PR tdep/17379
317 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
318 instead of read_memory_unsigned_integer.
319
320 2014-09-12 Gary Benson <gbenson@redhat.com>
321
322 * nat/linux-waitpid.c: Include common-defs.h.
323 [GDBSERVER]: Add FIXME comment.
324 [!GDBSERVER]: Don't include defs.h or signal.h.
325 (linux_debug) [!GDBSERVER]: Remove empty block.
326
327 2014-09-12 Gary Benson <gbenson@redhat.com>
328
329 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
330 Don't include defs.h or server.h.
331
332 2014-09-12 Gary Benson <gbenson@redhat.com>
333
334 * nat/linux-btrace.c: Include common-defs.h.
335 Don't include defs.h, server.h or gdbthread.h.
336 * nat/linux-btrace.h (struct target_ops): New forward declaration.
337
338 2014-09-12 Gary Benson <gbenson@redhat.com>
339
340 * common/agent.c: Include common-defs.h.
341 Don't include defs.h or server.h.
342 * common/buffer.c: Likewise.
343 * common/common-debug.c: Likewise.
344 * common/common-utils.c: Likewise.
345 * common/errors.c: Likewise.
346 * common/filestuff.c: Likewise.
347 * common/format.c: Likewise.
348 * common/gdb_vecs.c: Likewise.
349 * common/print-utils.c: Likewise.
350 * common/ptid.c: Likewise.
351 * common/rsp-low.c: Likewise.
352 * common/signals.c: Likewise.
353 * common/vec.c: Likewise.
354 * common/xml-utils.c: Likewise.
355 * nat/linux-osdata.c: Likewise.
356 * nat/linux-procfs.c: Likewise.
357 * nat/linux-ptrace.c: Likewise.
358 * nat/mips-linux-watch.c: Likewise.
359 * target/waitstatus.c: Likewise.
360
361 2014-09-12 Tom Tromey <tromey@redhat.com>
362 Gary Benson <gbenson@redhat.com>
363
364 * common/common-regcache.h: New file.
365 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
366 * regcache.h: Include common-regcache.h.
367 (regcache_read_pc): Don't declare.
368 * regcache.c (get_thread_regcache_for_ptid): New function.
369 * nat/linux-btrace.c: Don't include regcache.h.
370 Include common-regcache.h.
371 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
372
373 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
374
375 * regcache.h (struct regset): Declare.
376
377 2014-09-11 Pedro Alves <palves@redhat.com>
378
379 PR gdb/17347
380 * main.c: Include "infrun.h".
381 (catch_command_errors, catch_command_errors_const): Wait for the
382 foreground command to complete.
383 * top.c (maybe_wait_sync_command_done): New function, factored out
384 from ...
385 (maybe_wait_sync_command_done): ... here.
386 * top.h (maybe_wait_sync_command_done): New declaration.
387
388 2014-09-11 Tom Tromey <tromey@redhat.com>
389 Gary Benson <gbenson@redhat.com>
390
391 * common/symbol.h: New file.
392 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
393 * minsyms.c (find_minimal_symbol_address): New function.
394 * common/agent.c: Include common/symbol.h.
395 [!GDBSERVER]: Don't include objfiles.h.
396 (agent_look_up_symbols): Use find_minimal_symbol_address.
397
398 2014-09-11 Gary Benson <gbenson@redhat.com>
399
400 * target/target.h (target_stop_ptid, target_continue_ptid):
401 Declare.
402 * target.c (target_stop_ptid, target_continue_ptid): New
403 functions.
404 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
405 (agent_run_command): Always use target_stop_ptid and
406 target_continue_ptid.
407
408 2014-09-11 Tom Tromey <tromey@redhat.com>
409 Gary Benson <gbenson@redhat.com>
410
411 * target/target.h: New file.
412 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
413 * target.h: Include target/target.h.
414 (target_read_memory, target_write_memory): Don't declare.
415 * target.c (target_read_uint32): New function.
416 * common/agent.c: Include target/target.h.
417 [!GDBSERVER]: Don't include target.h.
418 (helper_thread_id): Type changed to uint32_t.
419 (agent_get_helper_thread_id): Use target_read_uint32.
420 (agent_run_command): Always use target_read_memory and
421 target_write_memory.
422 (agent_capability): Type changed to uint32_t.
423 (agent_capability_check): Use target_read_uint32.
424
425 2014-09-11 Gary Benson <gbenson@redhat.com>
426
427 * common/common-debug.h (show_debug_regs): Declare.
428 * common/common-debug.c (show_debug_regs): Define.
429 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
430 all uses with show_debug_regs. Replace all uses that considered
431 debug_hw_points as a multi-value integer with straight boolean
432 uses.
433 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
434 with show_debug_regs.
435 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
436 all uses with show_debug_regs.
437 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
438 uses with show_debug_regs.
439
440 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
441
442 * findvar.c (address_from_register): Handle targets requiring
443 a special conversion routine even for plain pointer types.
444
445 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
446
447 * rs6000-nat.c (exec_one_dummy_insn): Remove.
448 (store_register): Do not call exec_one_dummy_insn.
449
450 2014-09-10 Joel Brobecker <brobecker@adacore.com>
451
452 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
453 dereference it first. Use value_enclosing_type instead of
454 value_type.
455 (ada_array_length): Likewise.
456
457 2014-09-10 Joel Brobecker <brobecker@adacore.com>
458
459 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
460 Adjust function implementation and documentation accordingly.
461 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
462 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
463 Update call to ada_value_ptr_subscript.
464
465 2014-09-10 Joel Brobecker <brobecker@adacore.com>
466
467 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
468 instead of VAL's type.
469
470 2014-09-10 Joel Brobecker <brobecker@adacore.com>
471
472 * amd64-linux-nat.c: Add <sys/uio.h> #include.
473
474 2014-09-09 Doug Evans <xdje42@gmail.com>
475
476 PR guile/17367
477 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
478 last parameter to pkg-config, not first.
479 * configure.ac: Pass --with-guile provided pkg-config path to
480 GDB_GUILE_PROGRAM_NAMES.
481 * configure: Regenerate.
482
483 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
484
485 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
486 Bertazi".
487
488 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
489
490 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
491 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
492 the list of sections determining GDB_OSABI_IRIX.
493
494 2014-09-09 James Hogan <james.hogan@imgtec.com>
495
496 * MAINTAINERS (Write After Approval): Add "James Hogan".
497
498 2014-09-09 James Hogan <james.hogan@imgtec.com>
499
500 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
501
502 2014-09-09 Joel Brobecker <brobecker@adacore.com>
503
504 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
505
506 2014-09-08 Doug Evans <xdje42@gmail.com>
507
508 PR 17247
509 * guile.c: #include <signal.h>.
510 (_initialize_guile): Block SIGCHLD while initializing Guile.
511
512 Replaces the following, which is reverted.
513
514 2014-07-26 Doug Evans <xdje42@gmail.com>
515
516 PR 17185
517 * configure.ac: Add check for header gc/gc.h.
518 Add check for function setenv.
519 * configure: Regenerate.
520 * config.in: Regenerate.
521 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
522
523 2014-09-08 Doug Evans <xdje42@gmail.com>
524
525 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
526 with named constant. Fix style of pointer comparison.
527 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
528
529 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
530
531 PR gdb/17035
532 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
533 decide whether we display the command on "show user".
534 * cli/cli-script.c (show_user_1): Only verify cmdlines after
535 printing command name.
536 * cli/cli-decode.h (cli_user_command_p): Declare new function.
537 * cli/cli-decode.c (cli_user_command_p): Create helper function
538 to verify whether cmd_list_element is a user-defined command.
539
540 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
541
542 PR python/17355
543 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
544 Fix goto out of TRY_CATCH.
545
546 2014-09-06 Doug Evans <xdje42@gmail.com>
547 Tom Tromey <tromey@redhat.com>
548
549 PR 15276
550 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
551 $_any_caller_matches.
552 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
553 * python/lib/gdb/function/caller_is.py: New file.
554
555 2014-09-06 Doug Evans <xdje42@gmail.com>
556
557 * infcmd.c (program_info): Fix typo.
558
559 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
560
561 PR gdb/17235
562 * stap-probe.c (stap_parse_single_operand): Delete unused variable
563 'number'. New variable 'has_digit'. Rewrite code to deal with
564 subexpressions on SDT probes.
565
566 2014-09-04 Pedro Alves <palves@redhat.com>
567
568 * c-exp.y (parse_number): Skip handling base-switching prefixes if
569 the input is only one character long.
570
571 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
572
573 PR fortran/17237
574 * f-valprint.c (f_val_print): Specify the correct print option to
575 use when printing integer values.
576
577 2014-09-04 Gary Benson <gbenson@redhat.com>
578
579 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
580 Remove code to cope with LWPs wrapped as PIDs.
581 Add assertions to ensure no wrapped LWPs are passed.
582
583 2014-09-04 Pedro Alves <palves@redhat.com>
584
585 * value.c (value_ranges_copy_adjusted): New function, factored out
586 from ...
587 (value_contents_copy_raw): ... here.
588 (unpack_value_bits_as_long_1): Rename back to ...
589 (unpack_bits_as_long): ... this. Remove 'original_value' and
590 'result' parameters. Change return type to LONGEST.
591 (unpack_value_bits_as_long): Delete.
592 (unpack_value_field_as_long_1): Delete.
593 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
594 (unpack_value_bitfield): New function.
595 (value_field_bitfield): Reimplement using unpack_value_bitfield.
596 (value_fetch_lazy): Use unpack_value_bitfield.
597 * value.h (unpack_value_bits_as_long): Delete declaration.
598
599 2014-09-03 Sasha Smundak <asmundak@google.com>
600
601 * python/py-frame.c (frapy_read_register): New function.
602
603 2014-09-03 James Hogan <james.hogan@imgtec.com>
604
605 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
606 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
607
608 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
609
610 PR python/16699
611 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
612 function.
613 (add_cmd): Set "completer_handle_brkchars" to NULL.
614 * cli/cli-decode.h (struct cmd_list_element)
615 <completer_handle_brkchars>: New field.
616 * command.h (completer_ftype_void): New typedef.
617 (set_cmd_completer_handle_brkchars): New prototype.
618 * completer.c (set_gdb_completion_word_break_characters): New
619 function.
620 (complete_line_internal): Call "completer_handle_brkchars"
621 callback from command.
622 * completer.h: Include "command.h".
623 (set_gdb_completion_word_break_characters): New prototype.
624 * python/py-cmd.c (cmdpy_completer_helper): New function.
625 (cmdpy_completer_handle_brkchars): New function.
626 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
627 (cmdpy_init): Set completer_handle_brkchars to
628 cmdpy_completer_handle_brkchars.
629
630 2014-09-03 Gary Benson <gbenson@redhat.com>
631
632 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
633 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
634 Loop conditions changed to equivalent form.
635 (struct x86_debug_reg_state): Updated dr_ref_count comment.
636 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
637 ALL_DEBUG_ADDRESS_REGISTERS.
638
639 2014-09-03 Joel Brobecker <brobecker@adacore.com>
640
641 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
642 description fix.
643
644 2014-09-02 Doug Evans <dje@google.com>
645
646 * typeprint.c (find_global_typedef): Fix comment.
647
648 2014-09-02 Gary Benson <gbenson@redhat.com>
649
650 * i386-nat.h: Renamed as...
651 * x86-nat.h: New file. All type, function and variable name
652 prefixes changed from "i386_" to "x86_". All references updated.
653 * i386-nat.c: Renamed as...
654 * x86-nat.c: New file. All type, function and variable name
655 prefixes changed from "i386_" to "x86_". All references updated.
656 * common/i386-xstate.h: Renamed as...
657 * common/x86-xstate.h: New file. All type, function and variable
658 name prefixes changed from "i386_" to "x86_". All references
659 updated.
660 * nat/i386-cpuid.h: Renamed as...
661 * nat/x86-cpuid.h: New file. All type, function and variable name
662 prefixes changed from "i386_" to "x86_". All references updated.
663 * nat/i386-gcc-cpuid.h: Renamed as...
664 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
665 name prefixes changed from "i386_" to "x86_". All references
666 updated.
667 * nat/i386-dregs.h: Renamed as...
668 * nat/x86-dregs.h: New file. All type, function and variable name
669 prefixes changed from "i386_" to "x86_". All references updated.
670 * nat/i386-dregs.c: Renamed as...
671 * nat/x86-dregs.c: New file. All type, function and variable name
672 prefixes changed from "i386_" to "x86_". All references updated.
673
674 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
675
676 * varobj.c (_initialize_varobj): Move to the end of file.
677
678 2014-08-29 Gary Benson <gbenson@redhat.com>
679
680 * common/common-exceptions.h: New file.
681 * common/common-exceptions.c: Likewise.
682 * Makefile.in (SFILES): Add common/common-exceptions.c.
683 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
684 (COMMON_OBS): Add common-exceptions.o.
685 (common-exceptions.o): New rule.
686 * exceptions.h (common-exceptions.h): Include.
687 (gdb_setjmp.h): Do not include.
688 (return_reason): Moved to common-exceptions.h.
689 (enum return_reason): Likewise.
690 (RETURN_MASK): Likewise.
691 (typedef return_mask): Likewise.
692 (enum errors): Likewise.
693 (struct gdb_exception): Likewise.
694 (exceptions_state_mc_init): Likewise.
695 (exceptions_state_mc_action_iter): Likewise.
696 (exceptions_state_mc_action_iter_1): Likewise.
697 (TRY_CATCH): Likewise.
698 (throw_exception): Likewise.
699 (throw_verror): Likewise.
700 (throw_vquit): Likewise.
701 (throw_error): Likewise.
702 (throw_quit): Likewise.
703 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
704 (enum catcher_action): Likewise.
705 (struct catcher): Likewise.
706 (current_catcher): Likewise.
707 (catcher_list_size): Likewise.
708 (exceptions_state_mc_init): Likewise.
709 (catcher_pop): Likewise.
710 (exceptions_state_mc): Likewise.
711 (exceptions_state_mc_action_iter): Likewise.
712 (exceptions_state_mc_action_iter_1): Likewise.
713 (throw_exception): Likewise.
714 (exception_messages): Likewise.
715 (exception_messages_size): Likewise.
716 (throw_it): Likewise.
717 (throw_verror): Likewise.
718 (throw_vquit): Likewise.
719 (throw_error): Likewise.
720 (throw_quit): Likewise.
721 (prepare_to_throw_exception): New function.
722
723 2014-08-29 Gary Benson <gbenson@redhat.com>
724
725 * common/gdb_setjmp.h: New file.
726 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
727 * configure.ac: Move sigsetjmp check...
728 * common/common.m4: ...here.
729 * configure: Regenerate.
730 * cp-support.c (SIGJMP_BUF): Delete.
731 (SIGSETJMP): Likewise.
732 (SIGLONGJMP): Likewise.
733 * exceptions.h (gdb_setjmp.h): Include.
734 (setjmp.h): Do not include.
735 (EXCEPTIONS_SIGJMP_BUF): Delete.
736 (EXCEPTIONS_SIGSETJMP): Likewise.
737 (EXCEPTIONS_SIGLONGJMP): Likewise.
738 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
739 from gdb_setjmp.h.
740 * exceptions.c: Likewise.
741
742 2014-08-29 Gary Benson <gbenson@redhat.com>
743
744 * cleanups.h: Moved to...
745 * common/cleanups.h: New file.
746 * cleanups.c: Moved to...
747 * common/cleanups.c: New file. Include common-defs.h and
748 cleanups.h. Do not include defs.h.
749 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
750 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
751 (cleanups.o): New rule.
752
753 2014-08-29 Gary Benson <gbenson@redhat.com>
754
755 * common/errors.h (internal_warning): New declaration.
756 (internal_vwarning): Likewise.
757 * common/errors.c (internal_warning): New function.
758 * utils.h (internal_warning): Don't declare.
759 (internal_vwarning): Likewise.
760 * utils.c (internal_warning): Removed.
761
762 2014-08-29 Gary Benson <gbenson@redhat.com>
763
764 * main.c (captured_main): Use warning during startup.
765 Prefix startup warning messages with command name.
766
767 2014-08-29 Gary Benson <gbenson@redhat.com>
768
769 * main.c (captured_main): Handle usage errors with error.
770
771 2014-08-29 Gary Benson <gbenson@redhat.com>
772
773 * go32-nat.c (go32_create_inferior): Replace a fprintf/
774 exit pair with a call to error. Wrap the message with _().
775
776 2014-08-29 Gary Benson <gbenson@redhat.com>
777
778 * main.c (captured_main): Replace a fprintf/exit
779 pair with a call to error. Wrap the message with _().
780
781 2014-08-29 Gary Benson <gbenson@redhat.com>
782
783 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
784 pairs with calls to error. Wrap the message with _().
785
786 2014-08-29 Gary Benson <gbenson@redhat.com>
787
788 * utils.c (vwarning): Protect calls to target_terminal_ours
789 and wrap_here.
790
791 2014-08-29 Gary Benson <gbenson@redhat.com>
792
793 * exceptions.c (print_flush): Protect calls to
794 target_terminal_ours and wrap_here.
795
796 2014-08-29 Gary Benson <gbenson@redhat.com>
797
798 * utils.h (filtered_printing_initialized): New declaration.
799 * utils.c (abort_with_message): New function.
800 (internal_vproblem): Use abort_with_message for first level
801 recursive internal problems, and if gdb_stderr is not set up.
802 Protect calls to target_terminal_ours, begin_line and query.
803
804 2014-08-28 Doug Evans <dje@google.com>
805
806 * symtab.c (in_prologue): Move definition to better spot.
807 (skip_prologue_using_sal): Ditto.
808
809 2014-08-28 Doug Evans <dje@google.com>
810
811 * symtab.c (find_function_start_sal): Move definition to better spot.
812
813 2014-08-28 Yao Qi <yao@codesourcery.com>
814
815 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
816 found_stack_adjust in forward scan. Remove condition check
817 on found_stack_adjust which is always true. Indent the code.
818
819 2014-08-28 Yao Qi <yao@codesourcery.com>
820
821 * dwarf2read.c (dwarf_decode_lines): Update declaration.
822 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
823 (dwarf_decode_lines): Remove argument
824 want_line_info. Remove condition check on want_line_info.
825 Callers update.
826
827 2014-08-27 Doug Evans <dje@google.com>
828
829 * dwarf2read.c (dwarf_record_line): Fix typo.
830
831 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
832
833 * target.h (struct target_ops::to_terminal_save_ours): Remove
834 declaration.
835 (target_terminal_save_ours): Remove macro.
836 * target-delegates.c: Regenerate.
837 * inf-child.c (inf_child_target): Don't set the nonexistent
838 field to_terminal_save_ours.
839 * inferior.h (child_terminal_save_ours): Remove declaration.
840 * terminal.h (gdb_save_tty_state): New declaration.
841 * inflow.c (child_terminal_save_ours): Rename to ...
842 (gdb_save_tty_state): ... this.
843 * tui/tui.c: Include terminal.h.
844 (tui_enable): Use gdb_save_tty_state instead of
845 target_terminal_save_ours.
846 (tui_disable): Likewise.
847
848 2014-08-25 Doug Evans <dje@google.com>
849
850 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
851 Pass NULL instead of 0 for context pointer.
852
853 2014-08-25 Yao Qi <yao@codesourcery.com>
854
855 * dwarf2read.c: Fix grammatical error.
856
857 2014-08-24 Yao Qi <yao@codesourcery.com>
858
859 * dwarf2read.c (scan_partial_symbols): Update comments.
860 Rename argument 'need_pc' with 'set_addrmap'.
861 (add_partial_namespace): Rename argument 'need_pc' with
862 'set_addrmap'.
863 (add_partial_module): Likewise.
864 (add_partial_subprogram): Likewise. Update comments.
865 (dwarf2_name): Fix typo.
866
867 2014-08-22 Doug Evans <dje@google.com>
868
869 PR 17276
870 * dwarf2read.c (dwarf_record_line_p): New function.
871 (dwarf_decode_lines_1): Ignore subsequent line number entries
872 for the same line if any entry had a non-zero discriminator.
873
874 2014-08-22 Doug Evans <dje@google.com>
875
876 * buildsym.h (record_line_ftype): New typedef.
877 (record_line): Use it.
878 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
879 (dwarf_decode_lines_1): Call them.
880
881 2014-08-22 Yao Qi <yao@codesourcery.com>
882
883 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
884 (ctf_end): Remove code.
885
886 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
887
888 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
889 (linux_make_corefile_notes): call update_thread_list, protected against
890 exceptions.
891
892 2014-08-21 Pedro Alves <palves@redhat.com>
893
894 * infcmd.c (attach_command): Remove comment.
895
896 2014-08-21 Bin Cheng <bin.cheng@arm.com>
897
898 * aarch64-linux-nat.c (dr_changed_t): Change the type from
899 unsigned LONGEST to ULONGEST.
900
901 2014-08-20 Pedro Alves <palves@redhat.com>
902
903 * Makefile.in (check-read1): New rule.
904
905 2014-08-20 Joel Brobecker <brobecker@adacore.com>
906
907 * value.c (value_from_contents_and_address): Strip resolved_type's
908 typedef layers before checking its TYPE_DATA_LOCATION.
909
910 2014-08-20 Pedro Alves <palves@redhat.com>
911
912 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
913
914 2014-08-20 Yao Qi <yao@codesourcery.com>
915
916 * amd64-tdep.c (amd64_classify): Add a blank line after the
917 example. Move "*/" to a new line.
918 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
919 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
920 * dwarf2read.c (psymtab_include_file_name): Likewise.
921
922 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
923 Pedro Alves <palves@redhat.com>
924
925 PR symtab/14604
926 PR symtab/14605
927 * ada-lang.c (coerce_unspec_val_to_type): Use
928 value_contents_copy_raw.
929 * ada-valprint.c (val_print_packed_array_elements): Adjust.
930 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
931 * cp-valprint.c (cp_print_value_fields): Let the common printing
932 code handle optimized out values.
933 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
934 * d-valprint.c (dynamic_array_type): Use
935 value_bits_any_optimized_out.
936 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
937 check_any_valid fields.
938 (check_pieced_value_bits): Delete and inline ...
939 (check_pieced_synthetic_pointer): ... here.
940 (check_pieced_value_validity): Delete.
941 (check_pieced_value_invalid): Delete.
942 (pieced_value_funcs): Remove check_validity and check_any_valid
943 fields.
944 (read_pieced_value): Use mark_value_bits_optimized_out.
945 (write_pieced_value): Switch to use
946 mark_value_bytes_optimized_out.
947 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
948 of assuming the whole value is optimized out.
949 * findvar.c (read_frame_register_value): Remove special handling
950 of optimized out registers.
951 (value_from_register): Use mark_value_bytes_optimized_out.
952 * frame-unwind.c (frame_unwind_got_optimized): Use
953 mark_value_bytes_optimized_out.
954 * jv-valprint.c (java_value_print): Adjust.
955 (java_print_value_fields): Let the common printing code handle
956 optimized out values.
957 * mips-tdep.c (mips_print_register): Remove special handling of
958 optimized out registers.
959 * opencl-lang.c (lval_func_check_validity): Delete.
960 (lval_func_check_any_valid): Delete.
961 (opencl_value_funcs): Remove check_validity and check_any_valid
962 fields.
963 * p-valprint.c (pascal_object_print_value_fields): Let the common
964 printing code handle optimized out values.
965 * stack.c (read_frame_arg): Remove special handling of optimized
966 out values. Fetch both VAL and ENTRYVAL before comparing
967 contents. Adjust to value_available_contents_eq rename.
968 * valprint.c (valprint_check_validity)
969 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
970 (val_print_array_elements): Adjust.
971 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
972 (value_bits_any_optimized_out): New function.
973 (value_entirely_covered_by_range_vector): New function, factored
974 out from value_entirely_unavailable.
975 (value_entirely_unavailable): Reimplement.
976 (value_entirely_optimized_out): New function.
977 (insert_into_bit_range_vector): New function, factored out from
978 mark_value_bits_unavailable.
979 (mark_value_bits_unavailable): Reimplement.
980 (struct ranges_and_idx): New struct.
981 (find_first_range_overlap_and_match): New function, factored out
982 from value_available_contents_bits_eq.
983 (value_available_contents_bits_eq): Rename to ...
984 (value_contents_bits_eq): ... this. Check both unavailable
985 contents and optimized out contents.
986 (value_available_contents_eq): Rename to ...
987 (value_contents_eq): ... this.
988 (allocate_value_lazy): Remove reference to the old optimized_out
989 boolean.
990 (allocate_optimized_out_value): Use
991 mark_value_bytes_optimized_out.
992 (require_not_optimized_out): Adjust to check whether the
993 optimized_out vec is empty.
994 (ranges_copy_adjusted): New function, factored out from
995 value_contents_copy_raw.
996 (value_contents_copy_raw): Also copy the optimized out ranges.
997 Assert the destination ranges aren't optimized out.
998 (value_contents_copy): Update comment, remove call to
999 require_not_optimized_out.
1000 (value_contents_equal): Adjust to check whether the optimized_out
1001 vec is empty.
1002 (set_value_optimized_out, value_optimized_out_const): Delete.
1003 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1004 New functions.
1005 (value_entirely_optimized_out, value_bits_valid): Delete.
1006 (value_copy): Take a VEC copy of the 'optimized_out' field.
1007 (value_primitive_field): Remove special handling of optimized out.
1008 (value_fetch_lazy): Assert that lazy values have no unavailable
1009 regions. Use value_bits_any_optimized_out. Remove some special
1010 handling for optimized out values.
1011 * value.h: Add intro comment about <optimized out> and
1012 <unavailable>.
1013 (struct lval_funcs): Remove check_validity and check_any_valid
1014 fields.
1015 (set_value_optimized_out, value_optimized_out_const): Remove.
1016 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1017 New declarations.
1018 (value_bits_any_optimized_out): New declaration.
1019 (value_bits_valid): Delete declaration.
1020 (value_available_contents_eq): Rename to ...
1021 (value_contents_eq): ... this, and extend comments.
1022
1023 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1024
1025 Fix -fsanitize=address on unreadable inferior strings.
1026 * valprint.c (val_print_string): Fix access before BUFFER.
1027
1028 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1029
1030 * target.c (target_struct_size): Remove.
1031 (target_struct_allocsize): Remove.
1032 (DEFAULT_ALLOCSIZE): Remove.
1033 (target_ops_p): New typedef.
1034 (DEF_VEC_P (target_ops_p)): New vector type.
1035 (target_structs): Change type to VEC (target_ops_p).
1036 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1037 (find_default_run_target): Rewrite for loop following changes to
1038 target_structs.
1039
1040 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1041
1042 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1043 Adjust code accordingly. Adjust function description comment.
1044
1045 2014-08-19 Yao Qi <yao@codesourcery.com>
1046
1047 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1048 types.
1049
1050 2014-08-19 Alan Modra <amodra@gmail.com>
1051
1052 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1053 * config.in: Regenerate.
1054 * configure: Regenerate.
1055
1056 2014-08-19 Tom Tromey <tromey@redhat.com>
1057 Gary Benson <gbenson@redhat.com>
1058
1059 * common/common-debug.h: New file.
1060 * common/common-debug.c: Likewise.
1061 * debug.c: Likewise.
1062 * Makefile.in (SFILES): Add common/common-debug.c.
1063 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1064 (COMMON_OBS): Add common-debug.o and debug.o.
1065 (common-debug.o): New rule.
1066 * common/common-defs.h: Include common-debug.h.
1067 * common/agent.c (debug_agent_printf): New function.
1068 (DEBUG_AGENT): Redefine.
1069 * nat/i386-dregs.c (debug_printf): Undefine.
1070
1071 2014-08-19 Gary Benson <gbenson@redhat.com>
1072
1073 * common/common-defs.h: Include print-utils.h.
1074 * utils.h: Do not include print-utils.h.
1075
1076 2014-08-19 Tom Tromey <tromey@redhat.com>
1077 Gary Benson <gbenson@redhat.com>
1078
1079 * common/common-types.h: New file.
1080 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1081 * common/common-defs.h: Include common-types.h.
1082 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1083 (ULONGEST): Remove.
1084
1085 2014-08-19 Tom Tromey <tromey@redhat.com>
1086 Gary Benson <gbenson@redhat.com>
1087
1088 * common/errors.h: New file.
1089 * common/errors.c: Likewise.
1090 * Makefile.in (SFILES): Add common/errors.c.
1091 (HFILES_NO_SRCDIR): Add common/errors.h.
1092 (COMMON_OBS): Add errors.o.
1093 (errors.o): New rule.
1094 * common/common-defs.h: Include errors.h.
1095 * utils.h (perror_with_name, error, verror, warning, vwarning):
1096 Don't declare.
1097 * common/common-utils.h: (malloc_failure, internal_error):
1098 Likewise.
1099
1100 2014-08-19 Gary Benson <gbenson@redhat.com>
1101
1102 * utils.c (internal_vproblem): Always print the message.
1103
1104 2014-08-18 Doug Evans <dje@google.com>
1105
1106 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1107
1108 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1109
1110 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1111 Return 0 if TYPE is dynamic.
1112 (print_range): Add handling of dynamic ranges.
1113
1114 2014-08-18 Keven Boell <keven.boell@intel.com>
1115 Joel Brobecker <brobecker@adacore.com>
1116
1117 * gdbtypes.h (struct main_type): Add field "data_location".
1118 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1119 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1120 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1121 a dynamic data location.
1122 (resolve_dynamic_type): Add DW_AT_data_location handling.
1123 (copy_recursive, copy_type): Copy the data_location information
1124 when present.
1125 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1126 * value.c (value_from_contents_and_address): Add
1127 DW_AT_data_location handling.
1128
1129 2014-08-18 Keven Boell <keven.boell@intel.com>
1130 Joel Brobecker <brobecker@adacore.com>
1131
1132 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1133 field "get_object_address".
1134 * dwarf2expr.c (execute_stack_op): Add handling for
1135 DW_OP_push_object_address.
1136 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1137 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1138 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1139 (dwarf_expr_get_obj_addr): New function.
1140 (dwarf_expr_ctx_funcs): Add get_object_address field.
1141 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1142 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1143 (dwarf2_evaluate_property): Add parameter "address". Use it.
1144 (needs_get_obj_addr): New function.
1145 (needs_frame_ctx_funcs): Add get_object_address field.
1146 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1147 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1148 (resolve_dynamic_array): Likewise.
1149
1150 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1151
1152 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1153 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1154 fixed value for records and unions for which some GNAT encodings
1155 are present.
1156
1157 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1158
1159 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1160 rewrite to avoid "else if" and "else" constructs. Should be
1161 a no-op in practice.
1162
1163 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1164
1165 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1166 of lexical block.
1167
1168 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1169
1170 PR c++/17132
1171 * eval.c: Update all calls to find_overload_match.
1172 * valarith.c: Likewise.
1173 (value_user_defined_cpp_op, value_user_defined_op): New
1174 argument NOSIDE. Update all callers.
1175 * valops.c (find_overload_match): New argument NOSIDE.
1176 * value.h (find_overload_match): Update signature.
1177
1178 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1179
1180 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1181 'items' methods instead of 'iteritems' method on dictionaries.
1182
1183 2014-08-15 Doug Evans <dje@google.com>
1184
1185 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1186 closer to use.
1187
1188 2014-08-15 Doug Evans <dje@google.com>
1189
1190 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1191
1192 2014-08-15 Doug Evans <dje@google.com>
1193
1194 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1195
1196 2014-08-15 Doug Evans <dje@google.com>
1197
1198 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1199 unused.
1200
1201 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1202
1203 * dcache.h: Include target.h, to avoid compile time warnings.
1204
1205 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1206
1207 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1208 frame_info" partial declaration.
1209 * gdbarch.h: Regenerate.
1210
1211 2014-08-15 Yao Qi <yao@codesourcery.com>
1212
1213 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1214 Add parameter 'decode_for_pst_p'. Callers update.
1215
1216 2014-08-13 Yao Qi <yao@codesourcery.com>
1217
1218 PR build/17104
1219 * configure.ac: Use local variable 'pos'.
1220 * configure: Regenerated.
1221
1222 2014-08-11 Doug Evans <dje@google.com>
1223
1224 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1225 message, it is redundant with "Reading symbols from ..." message.
1226
1227 2014-08-10 Doug Evans <xdje42@gmail.com>
1228
1229 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1230
1231 2014-08-09 Yao Qi <yao@codesourcery.com>
1232
1233 PR remote/9053
1234 * remote.c (remote_xfer_partial): Remove dead code.
1235
1236 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1237
1238 * ia64-linux-tdep.c: Include "regset.h".
1239 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1240 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1241 (ia64_linux_supply_fpregset): New function.
1242 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1243 (ia64_linux_regset_from_core_section): New function.
1244 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1245 method.
1246
1247 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1248
1249 * m68klinux-tdep.c: Include "regset.h".
1250 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1251 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1252 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1253 (m68k_linux_regset_from_core_section): New function.
1254 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1255 method.
1256
1257 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1258
1259 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1260 function. Move logic to...
1261 (tilegx_linux_regmap): ... this new register map.
1262 (tilegx_linux_regset): Refer to register map, replace supply
1263 method by regcache_supply_regset, and add collect method.
1264 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1265 TILEGX_FIRST_EASY_REGNUM.
1266
1267 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1268
1269 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1270 that calls regcache_supply_regset and handles the EPC register
1271 separately. Move main logic to...
1272 (score7_linux_gregmap): ... this new register map.
1273 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1274 (score7_linux_gregset): Refer to register map. Add collect method.
1275 (score7_linux_regset_from_core_section): Replace
1276 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1277 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1278 (struct regset): Delete unused forward declaraction.
1279 (struct pt_regs): Delete structure definition.
1280 (elf_gregset_t): Delete typedef.
1281
1282 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1283
1284 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1285 (nios2_core_regset): Add collect method.
1286
1287 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1288
1289 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1290 platform-independent and don't write to read-only input buffer.
1291 (m32r_linux_collect_gregset): New function.
1292 (m32r_linux_gregset): Add collect method.
1293
1294 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1295
1296 * hppa-linux-tdep.c (greg_map): Rename to...
1297 (hppa_linux_gregmap): ... this. Also convert to
1298 regcache_map_entry format.
1299 (hppa_linux_supply_regset): Delete function.
1300 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1301 (hppa_linux_fpregmap): ... this new register map.
1302 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1303 register map, replace supply method by regcache_supply_regset, and
1304 add collect method regcache_collect_regset.
1305
1306 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1307
1308 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1309 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1310 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1311 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1312 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1313 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1314 (frv_linux_supply_gregset): Replace main logic by call to
1315 regcache_supply_regset, but keep clearing gr32-gr63.
1316 (frv_linux_supply_fpregset): Delete function.
1317 (frv_linux_gregset): Refer to appropriate register map and add
1318 regcache_collect_regset as the collect method.
1319 (frv_linux_fpregset): Likewise. Also exchange the supply method
1320 by regcache_supply_regset.
1321
1322 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1323
1324 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1325 by call to alpha_supply_int_regs.
1326 (alpha_linux_collect_gregset): New function.
1327 (alpha_linux_supply_fpregset): Replace logic by call to
1328 alpha_supply_fp_regs.
1329 (alpha_linux_collect_fpregset): New function.
1330 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1331
1332 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1333
1334 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1335 by call to regcache_collect_regset.
1336 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1337 instead of aarch64_linux_supply_gregset/_fpregset.
1338 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1339 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1340 header file instead.
1341 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1342 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1343 functions. Move logic to ...
1344 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1345 register maps.
1346 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1347 refer to new register maps, replace *_regset_from_core by
1348 regcache_supply_regset, and also use regcache_collect_regset.
1349 * aarch64-linux-tdep.h: Include "regset.h".
1350 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1351 Delete prototypes.
1352 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1353 macros, moved from C source file.
1354 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1355 variable declarations.
1356
1357 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1358
1359 * s390-linux-nat.c: Include "regset.h".
1360 (regmap_gregset): Delete macro.
1361 (s390_64_regmap_gregset): New register map for
1362 regcache_supply/_collect_regset.
1363 (s390_64_gregset): New regset.
1364 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1365 (regmap_fpregset): Delete macro.
1366 (s390_native_supply, s390_native_collect): Delete functions.
1367 (supply_gregset, fill_gregset): Replace s390-specific regmap
1368 handling by a call to regcache_supply/_collect_regset.
1369 (supply_fpregset, fill_fpregset): Call regcache_supply/
1370 _collect_regset instead of s390_native_supply/_collect.
1371 (fetch_regset, store_regset): Likewise. Also change the last
1372 parameter to a regset instead of a regmap.
1373 (s390_linux_fetch_inferior_registers)
1374 (390_linux_store_inferior_registers): Adjust last parameter in
1375 calls to fetch_regset and store_regset.
1376 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1377 (s390_gregmap): ... this. Also make static const and convert to
1378 regcache_map_entry format.
1379 (s390x_regmap_gregset): Delete.
1380 (s390_regmap_fpregset): Rename to...
1381 (s390_fpregmap): ... this. Make static const and convert to
1382 regcache_map_entry format.
1383 (s390_regmap_upper, s390_regmap_last_break)
1384 (s390x_regmap_last_break, s390_regmap_system_call)
1385 (s390_regmap_tdb): Likewise.
1386 (s390_supply_regset, s390_collect_regset): Remove functions.
1387 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1388 s390_supply_regset.
1389 (s390_gregset, s390_fpregset, s390_upper_regset)
1390 (s390_last_break_regset, s390x_last_break_regset)
1391 (s390_system_call_regset, s390_tdb_regset): Make global and
1392 replace s390_supply/_collect_regset by regcache_supply/
1393 _collect_regset.
1394 (s390x_gregset): Delete.
1395 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1396 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1397 (s390_regmap_fpregset, s390_regmap_last_break)
1398 (s390x_regmap_last_break, s390_regmap_system_call)
1399 (s390_regmap_tdb): Delete global variable declarations.
1400 (s390_gregset, s390_fpregset, s390_last_break_regset)
1401 (s390x_last_break_regset, s390_system_call_regset)
1402 (s390_tdb_regset): New global variable declarations.
1403
1404 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1405
1406 * regcache.c: Include "regset.h".
1407 (regcache_transfer_regset): New local function.
1408 (regcache_supply_regset, regcache_collect_regset): New functions.
1409 * regcache.h (struct regcache_map_entry): New structure.
1410 (REGCACHE_MAP_SKIP): New enum value.
1411 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1412
1413 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1414
1415 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1416 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1417 (ppc_linux_collect_gregset ): Likewise.
1418 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1419 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1420 (ppc_collect_vrregset): Likewise.
1421 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1422 Likewise.
1423
1424 2014-08-07 Yao Qi <yao@codesourcery.com>
1425
1426 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1427 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1428 * remote.c (remote_read_bytes): Likewise.
1429
1430 2014-08-07 Yao Qi <yao@codesourcery.com>
1431
1432 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1433
1434 2014-08-07 Yao Qi <yao@codesourcery.com>
1435
1436 PR remote/17230
1437 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1438 TARGET_XFER_OK instead of 0.
1439
1440 2014-08-07 Gary Benson <gbenson@redhat.com>
1441
1442 * common/common-defs.h: Include errno.h.
1443 * defs.h: Do not include errno.h.
1444 * ada-typeprint.c: Likewise.
1445 * c-typeprint.c: Likewise.
1446 * core-regset.c: Likewise.
1447 * corefile.c: Likewise.
1448 * corelow.c: Likewise.
1449 * event-loop.c: Likewise.
1450 * f-typeprint.c: Likewise.
1451 * gnu-nat.c: Likewise.
1452 * go32-nat.c: Likewise.
1453 * i386gnu-nat.c: Likewise.
1454 * m2-typeprint.c: Likewise.
1455 * nat/linux-btrace.c: Likewise.
1456 * p-typeprint.c: Likewise.
1457 * procfs.c: Likewise.
1458 * remote-sim.c: Likewise.
1459 * rs6000-nat.c: Likewise.
1460 * target.c: Likewise.
1461 * typeprint.c: Likewise.
1462 * ui-file.c: Likewise.
1463 * valops.c: Likewise.
1464 * valprint.c: Likewise.
1465
1466 2014-08-07 Gary Benson <gbenson@redhat.com>
1467
1468 * common/common-defs.h: Include string.h.
1469 * aarch64-tdep.c: Do not include string.h.
1470 * ada-exp.y: Likewise.
1471 * ada-lang.c: Likewise.
1472 * ada-lex.l: Likewise.
1473 * ada-typeprint.c: Likewise.
1474 * ada-valprint.c: Likewise.
1475 * aix-thread.c: Likewise.
1476 * alpha-linux-tdep.c: Likewise.
1477 * alpha-mdebug-tdep.c: Likewise.
1478 * alpha-nat.c: Likewise.
1479 * alpha-osf1-tdep.c: Likewise.
1480 * alpha-tdep.c: Likewise.
1481 * alphanbsd-tdep.c: Likewise.
1482 * amd64-dicos-tdep.c: Likewise.
1483 * amd64-linux-tdep.c: Likewise.
1484 * amd64-nat.c: Likewise.
1485 * amd64-sol2-tdep.c: Likewise.
1486 * amd64fbsd-tdep.c: Likewise.
1487 * amd64obsd-tdep.c: Likewise.
1488 * arch-utils.c: Likewise.
1489 * arm-linux-nat.c: Likewise.
1490 * arm-linux-tdep.c: Likewise.
1491 * arm-tdep.c: Likewise.
1492 * arm-wince-tdep.c: Likewise.
1493 * armbsd-tdep.c: Likewise.
1494 * armnbsd-nat.c: Likewise.
1495 * armnbsd-tdep.c: Likewise.
1496 * armobsd-tdep.c: Likewise.
1497 * avr-tdep.c: Likewise.
1498 * ax-gdb.c: Likewise.
1499 * ax-general.c: Likewise.
1500 * bcache.c: Likewise.
1501 * bfin-tdep.c: Likewise.
1502 * breakpoint.c: Likewise.
1503 * build-id.c: Likewise.
1504 * buildsym.c: Likewise.
1505 * c-exp.y: Likewise.
1506 * c-lang.c: Likewise.
1507 * c-typeprint.c: Likewise.
1508 * c-valprint.c: Likewise.
1509 * charset.c: Likewise.
1510 * cli-out.c: Likewise.
1511 * cli/cli-cmds.c: Likewise.
1512 * cli/cli-decode.c: Likewise.
1513 * cli/cli-dump.c: Likewise.
1514 * cli/cli-interp.c: Likewise.
1515 * cli/cli-logging.c: Likewise.
1516 * cli/cli-script.c: Likewise.
1517 * cli/cli-setshow.c: Likewise.
1518 * cli/cli-utils.c: Likewise.
1519 * coffread.c: Likewise.
1520 * common/agent.c: Likewise.
1521 * common/buffer.c: Likewise.
1522 * common/buffer.h: Likewise.
1523 * common/common-utils.c: Likewise.
1524 * common/filestuff.c: Likewise.
1525 * common/filestuff.c: Likewise.
1526 * common/format.c: Likewise.
1527 * common/print-utils.c: Likewise.
1528 * common/rsp-low.c: Likewise.
1529 * common/signals.c: Likewise.
1530 * common/vec.h: Likewise.
1531 * common/xml-utils.c: Likewise.
1532 * core-regset.c: Likewise.
1533 * corefile.c: Likewise.
1534 * corelow.c: Likewise.
1535 * cp-abi.c: Likewise.
1536 * cp-name-parser.y: Likewise.
1537 * cp-support.c: Likewise.
1538 * cp-valprint.c: Likewise.
1539 * cris-tdep.c: Likewise.
1540 * d-exp.y: Likewise.
1541 * darwin-nat.c: Likewise.
1542 * dbxread.c: Likewise.
1543 * dcache.c: Likewise.
1544 * demangle.c: Likewise.
1545 * dicos-tdep.c: Likewise.
1546 * disasm.c: Likewise.
1547 * doublest.c: Likewise.
1548 * dsrec.c: Likewise.
1549 * dummy-frame.c: Likewise.
1550 * dwarf2-frame.c: Likewise.
1551 * dwarf2loc.c: Likewise.
1552 * dwarf2read.c: Likewise.
1553 * elfread.c: Likewise.
1554 * environ.c: Likewise.
1555 * eval.c: Likewise.
1556 * event-loop.c: Likewise.
1557 * exceptions.c: Likewise.
1558 * exec.c: Likewise.
1559 * expprint.c: Likewise.
1560 * f-exp.y: Likewise.
1561 * f-lang.c: Likewise.
1562 * f-typeprint.c: Likewise.
1563 * f-valprint.c: Likewise.
1564 * fbsd-nat.c: Likewise.
1565 * findcmd.c: Likewise.
1566 * findvar.c: Likewise.
1567 * fork-child.c: Likewise.
1568 * frame.c: Likewise.
1569 * frv-linux-tdep.c: Likewise.
1570 * frv-tdep.c: Likewise.
1571 * gdb.c: Likewise.
1572 * gdb_bfd.c: Likewise.
1573 * gdbarch.c: Likewise.
1574 * gdbarch.sh: Likewise.
1575 * gdbtypes.c: Likewise.
1576 * gnu-nat.c: Likewise.
1577 * gnu-v2-abi.c: Likewise.
1578 * gnu-v3-abi.c: Likewise.
1579 * go-exp.y: Likewise.
1580 * go-lang.c: Likewise.
1581 * go32-nat.c: Likewise.
1582 * guile/guile.c: Likewise.
1583 * guile/scm-auto-load.c: Likewise.
1584 * hppa-hpux-tdep.c: Likewise.
1585 * hppa-linux-nat.c: Likewise.
1586 * hppanbsd-tdep.c: Likewise.
1587 * hppaobsd-tdep.c: Likewise.
1588 * i386-cygwin-tdep.c: Likewise.
1589 * i386-dicos-tdep.c: Likewise.
1590 * i386-linux-tdep.c: Likewise.
1591 * i386-nto-tdep.c: Likewise.
1592 * i386-sol2-tdep.c: Likewise.
1593 * i386-tdep.c: Likewise.
1594 * i386bsd-tdep.c: Likewise.
1595 * i386gnu-nat.c: Likewise.
1596 * i386nbsd-tdep.c: Likewise.
1597 * i386obsd-tdep.c: Likewise.
1598 * i387-tdep.c: Likewise.
1599 * ia64-libunwind-tdep.c: Likewise.
1600 * ia64-linux-nat.c: Likewise.
1601 * inf-child.c: Likewise.
1602 * inf-ptrace.c: Likewise.
1603 * inf-ttrace.c: Likewise.
1604 * infcall.c: Likewise.
1605 * infcmd.c: Likewise.
1606 * inflow.c: Likewise.
1607 * infrun.c: Likewise.
1608 * interps.c: Likewise.
1609 * iq2000-tdep.c: Likewise.
1610 * irix5-nat.c: Likewise.
1611 * jv-exp.y: Likewise.
1612 * jv-lang.c: Likewise.
1613 * jv-typeprint.c: Likewise.
1614 * jv-valprint.c: Likewise.
1615 * language.c: Likewise.
1616 * linux-fork.c: Likewise.
1617 * linux-nat.c: Likewise.
1618 * lm32-tdep.c: Likewise.
1619 * m2-exp.y: Likewise.
1620 * m2-typeprint.c: Likewise.
1621 * m32c-tdep.c: Likewise.
1622 * m32r-linux-nat.c: Likewise.
1623 * m32r-linux-tdep.c: Likewise.
1624 * m32r-rom.c: Likewise.
1625 * m32r-tdep.c: Likewise.
1626 * m68hc11-tdep.c: Likewise.
1627 * m68k-tdep.c: Likewise.
1628 * m68kbsd-tdep.c: Likewise.
1629 * m68klinux-nat.c: Likewise.
1630 * m68klinux-tdep.c: Likewise.
1631 * m88k-tdep.c: Likewise.
1632 * machoread.c: Likewise.
1633 * macrocmd.c: Likewise.
1634 * main.c: Likewise.
1635 * mdebugread.c: Likewise.
1636 * mem-break.c: Likewise.
1637 * memattr.c: Likewise.
1638 * memory-map.c: Likewise.
1639 * mep-tdep.c: Likewise.
1640 * mi/mi-cmd-break.c: Likewise.
1641 * mi/mi-cmd-disas.c: Likewise.
1642 * mi/mi-cmd-env.c: Likewise.
1643 * mi/mi-cmd-stack.c: Likewise.
1644 * mi/mi-cmd-var.c: Likewise.
1645 * mi/mi-cmds.c: Likewise.
1646 * mi/mi-console.c: Likewise.
1647 * mi/mi-getopt.c: Likewise.
1648 * mi/mi-interp.c: Likewise.
1649 * mi/mi-main.c: Likewise.
1650 * mi/mi-parse.c: Likewise.
1651 * microblaze-rom.c: Likewise.
1652 * microblaze-tdep.c: Likewise.
1653 * mingw-hdep.c: Likewise.
1654 * minidebug.c: Likewise.
1655 * minsyms.c: Likewise.
1656 * mips-irix-tdep.c: Likewise.
1657 * mips-linux-tdep.c: Likewise.
1658 * mips-tdep.c: Likewise.
1659 * mips64obsd-tdep.c: Likewise.
1660 * mipsnbsd-tdep.c: Likewise.
1661 * mipsread.c: Likewise.
1662 * mn10300-linux-tdep.c: Likewise.
1663 * mn10300-tdep.c: Likewise.
1664 * monitor.c: Likewise.
1665 * moxie-tdep.c: Likewise.
1666 * mt-tdep.c: Likewise.
1667 * nat/linux-btrace.c: Likewise.
1668 * nat/linux-osdata.c: Likewise.
1669 * nat/linux-procfs.c: Likewise.
1670 * nat/linux-ptrace.c: Likewise.
1671 * nat/linux-waitpid.c: Likewise.
1672 * nbsd-tdep.c: Likewise.
1673 * nios2-linux-tdep.c: Likewise.
1674 * nto-procfs.c: Likewise.
1675 * nto-tdep.c: Likewise.
1676 * objc-lang.c: Likewise.
1677 * objfiles.c: Likewise.
1678 * opencl-lang.c: Likewise.
1679 * osabi.c: Likewise.
1680 * osdata.c: Likewise.
1681 * p-exp.y: Likewise.
1682 * p-lang.c: Likewise.
1683 * p-typeprint.c: Likewise.
1684 * parse.c: Likewise.
1685 * posix-hdep.c: Likewise.
1686 * ppc-linux-nat.c: Likewise.
1687 * ppc-sysv-tdep.c: Likewise.
1688 * ppcfbsd-tdep.c: Likewise.
1689 * ppcnbsd-tdep.c: Likewise.
1690 * ppcobsd-tdep.c: Likewise.
1691 * printcmd.c: Likewise.
1692 * procfs.c: Likewise.
1693 * prologue-value.c: Likewise.
1694 * python/py-auto-load.c: Likewise.
1695 * python/py-gdb-readline.c: Likewise.
1696 * ravenscar-thread.c: Likewise.
1697 * regcache.c: Likewise.
1698 * registry.c: Likewise.
1699 * remote-fileio.c: Likewise.
1700 * remote-m32r-sdi.c: Likewise.
1701 * remote-mips.c: Likewise.
1702 * remote-notif.c: Likewise.
1703 * remote-sim.c: Likewise.
1704 * remote.c: Likewise.
1705 * reverse.c: Likewise.
1706 * rs6000-aix-tdep.c: Likewise.
1707 * ser-base.c: Likewise.
1708 * ser-go32.c: Likewise.
1709 * ser-mingw.c: Likewise.
1710 * ser-pipe.c: Likewise.
1711 * ser-tcp.c: Likewise.
1712 * ser-unix.c: Likewise.
1713 * serial.c: Likewise.
1714 * sh-tdep.c: Likewise.
1715 * sh64-tdep.c: Likewise.
1716 * shnbsd-tdep.c: Likewise.
1717 * skip.c: Likewise.
1718 * sol-thread.c: Likewise.
1719 * solib-dsbt.c: Likewise.
1720 * solib-frv.c: Likewise.
1721 * solib-osf.c: Likewise.
1722 * solib-som.c: Likewise.
1723 * solib-spu.c: Likewise.
1724 * solib-target.c: Likewise.
1725 * solib.c: Likewise.
1726 * somread.c: Likewise.
1727 * source.c: Likewise.
1728 * sparc-nat.c: Likewise.
1729 * sparc-sol2-tdep.c: Likewise.
1730 * sparc-tdep.c: Likewise.
1731 * sparc64-tdep.c: Likewise.
1732 * sparc64fbsd-tdep.c: Likewise.
1733 * sparc64nbsd-tdep.c: Likewise.
1734 * sparcnbsd-tdep.c: Likewise.
1735 * spu-linux-nat.c: Likewise.
1736 * spu-multiarch.c: Likewise.
1737 * spu-tdep.c: Likewise.
1738 * stabsread.c: Likewise.
1739 * stack.c: Likewise.
1740 * std-regs.c: Likewise.
1741 * symfile.c: Likewise.
1742 * symmisc.c: Likewise.
1743 * symtab.c: Likewise.
1744 * target.c: Likewise.
1745 * thread.c: Likewise.
1746 * tilegx-linux-nat.c: Likewise.
1747 * tilegx-tdep.c: Likewise.
1748 * top.c: Likewise.
1749 * tracepoint.c: Likewise.
1750 * tui/tui-command.c: Likewise.
1751 * tui/tui-data.c: Likewise.
1752 * tui/tui-disasm.c: Likewise.
1753 * tui/tui-file.c: Likewise.
1754 * tui/tui-layout.c: Likewise.
1755 * tui/tui-out.c: Likewise.
1756 * tui/tui-regs.c: Likewise.
1757 * tui/tui-source.c: Likewise.
1758 * tui/tui-stack.c: Likewise.
1759 * tui/tui-win.c: Likewise.
1760 * tui/tui-windata.c: Likewise.
1761 * tui/tui-winsource.c: Likewise.
1762 * typeprint.c: Likewise.
1763 * ui-file.c: Likewise.
1764 * ui-out.c: Likewise.
1765 * user-regs.c: Likewise.
1766 * utils.c: Likewise.
1767 * v850-tdep.c: Likewise.
1768 * valarith.c: Likewise.
1769 * valops.c: Likewise.
1770 * valprint.c: Likewise.
1771 * value.c: Likewise.
1772 * varobj.c: Likewise.
1773 * vax-tdep.c: Likewise.
1774 * vaxnbsd-tdep.c: Likewise.
1775 * vaxobsd-tdep.c: Likewise.
1776 * windows-nat.c: Likewise.
1777 * xcoffread.c: Likewise.
1778 * xml-support.c: Likewise.
1779 * xstormy16-tdep.c: Likewise.
1780 * xtensa-linux-nat.c: Likewise.
1781
1782 2014-08-07 Gary Benson <gbenson@redhat.com>
1783
1784 * common/common-defs.h: Include gdb_assert.h.
1785 * aarch64-tdep.c: Do not include gdb_assert.h.
1786 * addrmap.c: Likewise.
1787 * aix-thread.c: Likewise.
1788 * alpha-linux-tdep.c: Likewise.
1789 * alpha-mdebug-tdep.c: Likewise.
1790 * alphanbsd-tdep.c: Likewise.
1791 * amd64-nat.c: Likewise.
1792 * amd64-tdep.c: Likewise.
1793 * amd64bsd-nat.c: Likewise.
1794 * amd64fbsd-nat.c: Likewise.
1795 * amd64fbsd-tdep.c: Likewise.
1796 * amd64nbsd-nat.c: Likewise.
1797 * amd64nbsd-tdep.c: Likewise.
1798 * amd64obsd-nat.c: Likewise.
1799 * amd64obsd-tdep.c: Likewise.
1800 * arch-utils.c: Likewise.
1801 * arm-tdep.c: Likewise.
1802 * armbsd-tdep.c: Likewise.
1803 * auxv.c: Likewise.
1804 * bcache.c: Likewise.
1805 * bfin-tdep.c: Likewise.
1806 * blockframe.c: Likewise.
1807 * breakpoint.c: Likewise.
1808 * bsd-kvm.c: Likewise.
1809 * bsd-uthread.c: Likewise.
1810 * buildsym.c: Likewise.
1811 * c-exp.y: Likewise.
1812 * c-lang.c: Likewise.
1813 * charset.c: Likewise.
1814 * cleanups.c: Likewise.
1815 * cli-out.c: Likewise.
1816 * cli/cli-decode.c: Likewise.
1817 * cli/cli-dump.c: Likewise.
1818 * cli/cli-logging.c: Likewise.
1819 * cli/cli-script.c: Likewise.
1820 * cli/cli-utils.c: Likewise.
1821 * coffread.c: Likewise.
1822 * common/common-utils.c: Likewise.
1823 * common/queue.h: Likewise.
1824 * common/signals.c: Likewise.
1825 * common/vec.h: Likewise.
1826 * complaints.c: Likewise.
1827 * completer.c: Likewise.
1828 * corelow.c: Likewise.
1829 * cp-abi.c: Likewise.
1830 * cp-name-parser.y: Likewise.
1831 * cp-namespace.c: Likewise.
1832 * cp-support.c: Likewise.
1833 * cris-tdep.c: Likewise.
1834 * dbxread.c: Likewise.
1835 * dictionary.c: Likewise.
1836 * doublest.c: Likewise.
1837 * dsrec.c: Likewise.
1838 * dummy-frame.c: Likewise.
1839 * dwarf2-frame-tailcall.c: Likewise.
1840 * dwarf2-frame.c: Likewise.
1841 * dwarf2expr.c: Likewise.
1842 * dwarf2loc.c: Likewise.
1843 * dwarf2read.c: Likewise.
1844 * eval.c: Likewise.
1845 * event-loop.c: Likewise.
1846 * exceptions.c: Likewise.
1847 * expprint.c: Likewise.
1848 * f-valprint.c: Likewise.
1849 * fbsd-nat.c: Likewise.
1850 * findvar.c: Likewise.
1851 * frame-unwind.c: Likewise.
1852 * frame.c: Likewise.
1853 * frv-tdep.c: Likewise.
1854 * gcore.c: Likewise.
1855 * gdb-dlfcn.c: Likewise.
1856 * gdb_bfd.c: Likewise.
1857 * gdbarch.c: Likewise.
1858 * gdbarch.sh: Likewise.
1859 * gdbtypes.c: Likewise.
1860 * gnu-nat.c: Likewise.
1861 * gnu-v3-abi.c: Likewise.
1862 * go-lang.c: Likewise.
1863 * guile/scm-exception.c: Likewise.
1864 * guile/scm-gsmob.c: Likewise.
1865 * guile/scm-lazy-string.c: Likewise.
1866 * guile/scm-math.c: Likewise.
1867 * guile/scm-pretty-print.c: Likewise.
1868 * guile/scm-safe-call.c: Likewise.
1869 * guile/scm-utils.c: Likewise.
1870 * guile/scm-value.c: Likewise.
1871 * h8300-tdep.c: Likewise.
1872 * hppa-hpux-nat.c: Likewise.
1873 * hppa-tdep.c: Likewise.
1874 * hppanbsd-tdep.c: Likewise.
1875 * hppaobsd-tdep.c: Likewise.
1876 * i386-darwin-nat.c: Likewise.
1877 * i386-darwin-tdep.c: Likewise.
1878 * i386-nto-tdep.c: Likewise.
1879 * i386-tdep.c: Likewise.
1880 * i386bsd-nat.c: Likewise.
1881 * i386fbsd-tdep.c: Likewise.
1882 * i386gnu-nat.c: Likewise.
1883 * i386nbsd-tdep.c: Likewise.
1884 * i386obsd-tdep.c: Likewise.
1885 * i387-tdep.c: Likewise.
1886 * ia64-libunwind-tdep.c: Likewise.
1887 * ia64-tdep.c: Likewise.
1888 * inf-ptrace.c: Likewise.
1889 * inf-ttrace.c: Likewise.
1890 * infcall.c: Likewise.
1891 * infcmd.c: Likewise.
1892 * infrun.c: Likewise.
1893 * inline-frame.c: Likewise.
1894 * interps.c: Likewise.
1895 * jv-lang.c: Likewise.
1896 * jv-typeprint.c: Likewise.
1897 * linux-fork.c: Likewise.
1898 * linux-nat.c: Likewise.
1899 * linux-thread-db.c: Likewise.
1900 * m32c-tdep.c: Likewise.
1901 * m32r-linux-nat.c: Likewise.
1902 * m32r-tdep.c: Likewise.
1903 * m68k-tdep.c: Likewise.
1904 * m68kbsd-nat.c: Likewise.
1905 * m68kbsd-tdep.c: Likewise.
1906 * m88k-tdep.c: Likewise.
1907 * machoread.c: Likewise.
1908 * macroexp.c: Likewise.
1909 * macrotab.c: Likewise.
1910 * maint.c: Likewise.
1911 * mdebugread.c: Likewise.
1912 * memory-map.c: Likewise.
1913 * mep-tdep.c: Likewise.
1914 * mi/mi-common.c: Likewise.
1915 * microblaze-tdep.c: Likewise.
1916 * mingw-hdep.c: Likewise.
1917 * mips-linux-nat.c: Likewise.
1918 * mips-linux-tdep.c: Likewise.
1919 * mips-tdep.c: Likewise.
1920 * mips64obsd-tdep.c: Likewise.
1921 * mipsnbsd-tdep.c: Likewise.
1922 * mn10300-linux-tdep.c: Likewise.
1923 * mn10300-tdep.c: Likewise.
1924 * moxie-tdep.c: Likewise.
1925 * mt-tdep.c: Likewise.
1926 * nat/linux-btrace.c: Likewise.
1927 * nat/linux-osdata.c: Likewise.
1928 * nat/linux-ptrace.c: Likewise.
1929 * nat/mips-linux-watch.c: Likewise.
1930 * nios2-linux-tdep.c: Likewise.
1931 * nios2-tdep.c: Likewise.
1932 * objc-lang.c: Likewise.
1933 * objfiles.c: Likewise.
1934 * obsd-nat.c: Likewise.
1935 * opencl-lang.c: Likewise.
1936 * osabi.c: Likewise.
1937 * parse.c: Likewise.
1938 * ppc-linux-nat.c: Likewise.
1939 * ppc-sysv-tdep.c: Likewise.
1940 * ppcfbsd-nat.c: Likewise.
1941 * ppcfbsd-tdep.c: Likewise.
1942 * ppcnbsd-nat.c: Likewise.
1943 * ppcnbsd-tdep.c: Likewise.
1944 * ppcobsd-nat.c: Likewise.
1945 * ppcobsd-tdep.c: Likewise.
1946 * printcmd.c: Likewise.
1947 * procfs.c: Likewise.
1948 * prologue-value.c: Likewise.
1949 * psymtab.c: Likewise.
1950 * python/py-lazy-string.c: Likewise.
1951 * python/py-value.c: Likewise.
1952 * regcache.c: Likewise.
1953 * reggroups.c: Likewise.
1954 * registry.c: Likewise.
1955 * remote-sim.c: Likewise.
1956 * remote.c: Likewise.
1957 * rs6000-aix-tdep.c: Likewise.
1958 * rs6000-tdep.c: Likewise.
1959 * s390-linux-tdep.c: Likewise.
1960 * score-tdep.c: Likewise.
1961 * ser-base.c: Likewise.
1962 * ser-mingw.c: Likewise.
1963 * sh-tdep.c: Likewise.
1964 * sh64-tdep.c: Likewise.
1965 * solib-darwin.c: Likewise.
1966 * solib-spu.c: Likewise.
1967 * solib-svr4.c: Likewise.
1968 * source.c: Likewise.
1969 * sparc-nat.c: Likewise.
1970 * sparc-sol2-tdep.c: Likewise.
1971 * sparc-tdep.c: Likewise.
1972 * sparc64-sol2-tdep.c: Likewise.
1973 * sparc64-tdep.c: Likewise.
1974 * sparc64fbsd-tdep.c: Likewise.
1975 * sparc64nbsd-tdep.c: Likewise.
1976 * sparc64obsd-tdep.c: Likewise.
1977 * sparcnbsd-tdep.c: Likewise.
1978 * sparcobsd-tdep.c: Likewise.
1979 * spu-multiarch.c: Likewise.
1980 * spu-tdep.c: Likewise.
1981 * stabsread.c: Likewise.
1982 * stack.c: Likewise.
1983 * symfile.c: Likewise.
1984 * symtab.c: Likewise.
1985 * target-descriptions.c: Likewise.
1986 * target-memory.c: Likewise.
1987 * target.c: Likewise.
1988 * tic6x-linux-tdep.c: Likewise.
1989 * tic6x-tdep.c: Likewise.
1990 * tilegx-linux-nat.c: Likewise.
1991 * tilegx-tdep.c: Likewise.
1992 * top.c: Likewise.
1993 * tramp-frame.c: Likewise.
1994 * tui/tui-out.c: Likewise.
1995 * tui/tui-winsource.c: Likewise.
1996 * ui-out.c: Likewise.
1997 * user-regs.c: Likewise.
1998 * utils.c: Likewise.
1999 * v850-tdep.c: Likewise.
2000 * valops.c: Likewise.
2001 * value.c: Likewise.
2002 * varobj.c: Likewise.
2003 * vax-nat.c: Likewise.
2004 * xml-syscall.c: Likewise.
2005 * xml-tdesc.c: Likewise.
2006 * xstormy16-tdep.c: Likewise.
2007 * xtensa-linux-nat.c: Likewise.
2008 * xtensa-tdep.c: Likewise.
2009
2010 2014-08-07 Gary Benson <gbenson@redhat.com>
2011
2012 * common/common-defs.h: Include common-utils.h.
2013 * defs.h: Do not include common-utils.h.
2014 * common/gdb_assert.h: Likewise.
2015 * darwin-nat.h: Likewise.
2016 * nat/linux-btrace.c: Likewise.
2017 * target/waitstatus.h: Likewise.
2018
2019 2014-08-07 Gary Benson <gbenson@redhat.com>
2020
2021 * common/common-defs.h: Include ptid.h.
2022 * defs.h: Do not include ptid.h.
2023 * inferior.h: Likewise.
2024 * infrun.h: Likewise.
2025 * nat/linux-btrace.h: Likewise.
2026 * nat/linux-osdata.h: Likewise.
2027 * target/waitstatus.h: Likewise.
2028
2029 2014-08-07 Gary Benson <gbenson@redhat.com>
2030
2031 * common/common-defs.h: Include gdb_locale.h.
2032 * defs.h: Do not include gdb_locale.h.
2033
2034 2014-08-07 Gary Benson <gbenson@redhat.com>
2035
2036 * common/common-defs.h: Include gdb/signals.h.
2037 * defs.h: Do not include gdb/signals.h.
2038
2039 2014-08-07 Gary Benson <gbenson@redhat.com>
2040
2041 * common/common-defs.h: Include pathmax.h.
2042 * defs.h: Do not include pathmax.h.
2043
2044 2014-08-07 Gary Benson <gbenson@redhat.com>
2045
2046 * common/common-defs.h: Include libiberty.h.
2047 * defs.h: Do not include libiberty.h.
2048 * common/queue.h: Likewise.
2049 * cp-name-parser.y: Likewise.
2050 * mi/mi-cmd-catch.c: Likewise.
2051 * python/python.c: Likewise.
2052
2053 2014-08-07 Gary Benson <gbenson@redhat.com>
2054
2055 * common/common-defs.h: Include ansidecl.h.
2056 * defs.h: Do not include ansidecl.h.
2057 * common/buffer.h: Likewise.
2058 * common/common-utils.h: Likewise.
2059
2060 2014-08-07 Gary Benson <gbenson@redhat.com>
2061
2062 * common/common-defs.h: Include stddef.h.
2063 * defs.h: Do not include stddef.h.
2064 * common/common-utils.h: Likewise.
2065 * amd64fbsd-nat.c: Likewise.
2066 * bcache.c: Likewise.
2067 * charset.c: Likewise.
2068 * common/buffer.h: Likewise.
2069 * common/vec.h: Likewise.
2070 * i386bsd-nat.c: Likewise.
2071 * nat/linux-btrace.h: Likewise.
2072 * ppcfbsd-nat.c: Likewise.
2073 * ppcnbsd-tdep.h: Likewise.
2074 * ppcobsd-nat.c: Likewise.
2075 * ppcobsd-tdep.h: Likewise.
2076 * python/py-gdb-readline.c: Likewise.
2077
2078 2014-08-07 Gary Benson <gbenson@redhat.com>
2079
2080 * common/common-defs.h: Include stdarg.h.
2081 * defs.h: Do not include stdarg.h.
2082 * ada-lang.c: Likewise.
2083 * common/common-utils.h: Likewise.
2084 * guile/scm-string.c: Likewise.
2085 * guile/scm-utils.c: Likewise.
2086 * m32c-tdep.c: Likewise.
2087
2088 2014-08-07 Gary Benson <gbenson@redhat.com>
2089
2090 * common/common-defs.h: Include stdlib.h.
2091 * defs.h: Do not include stdlib.h.
2092 * addrmap.c: Likewise.
2093 * bcache.c: Likewise.
2094 * common/buffer.c: Likewise.
2095 * common/common-utils.c: Likewise.
2096 * cp-name-parser.y: Likewise.
2097 * go32-nat.c: Likewise.
2098 * mn10300-linux-tdep.c: Likewise.
2099 * nat/linux-osdata.c: Likewise.
2100 * tui/tui.c: Likewise.
2101 * windows-nat.c: Likewise.
2102
2103 2014-08-07 Gary Benson <gbenson@redhat.com>
2104
2105 * common/common-defs.h: Include stdio.h.
2106 * defs.h: Do not include stdio.h.
2107 * ada-lang.c: Likewise.
2108 * common/buffer.c: Likewise.
2109 * common/common-utils.c: Likewise.
2110 * cp-name-parser.y: Likewise.
2111 * gnu-nat.c: Likewise.
2112 * go32-nat.c: Likewise.
2113 * i386gnu-nat.c: Likewise.
2114 * proc-api.c: Likewise.
2115 * proc-events.c: Likewise.
2116 * proc-flags.c: Likewise.
2117 * proc-why.c: Likewise.
2118 * python/python-internal.h: Likewise.
2119 * target-memory.c: Likewise.
2120 * tui/tui-io.c: Likewise.
2121 * tui/tui.c: Likewise.
2122
2123 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2124
2125 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2126 (scan_dyntag_auxv): Same.
2127
2128 2014-08-06 Yao Qi <yao@codesourcery.com>
2129
2130 * amd64-linux-nat.c: Remove duplicated include
2131 "x86-linux-nat.h".
2132 * i386-linux-nat.c: Likewise.
2133
2134 2014-08-06 Yao Qi <yao@codesourcery.com>
2135
2136 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2137 operand" with "Special opcode" in comments.
2138
2139 2014-08-05 Gary Benson <gbenson@redhat.com>
2140
2141 * interps.c (initialize_interps): Remove prototype.
2142 (interpreter_initialized): Remove static global.
2143 (interp_add): Do not call initialize_interps.
2144 (initialize_interps): Remove function.
2145
2146 2014-08-05 Gary Benson <gbenson@redhat.com>
2147
2148 * utils.c (vwarning): Remove spurious va_end.
2149
2150 2014-08-05 Alan Modra <amodra@gmail.com>
2151
2152 * charset.c (convert_between_encodings): Cast result of obstack_base.
2153 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2154 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2155 (read_unwind_info): Use size_t for some locals.
2156 * jit.c (finalize_symtab): Likewise.
2157 * utils.c (hashtab_obstack_allocate): Likewise.
2158 * symmisc.c (print_objfile_statistics): Update format strings.
2159
2160 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2161
2162 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2163 (Changes in GDB 7.8): ... here.
2164
2165 2014-08-04 Tom Tromey <tromey@redhat.com>
2166
2167 * target.c (set_targetdebug): New function.
2168 (initialize_targets): Pass set_targetdebug when creating "set
2169 debug target".
2170
2171 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2172
2173 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2174 if detecting a variable-sized field that is not the last field.
2175 Fix struct type length computation.
2176
2177 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2178
2179 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2180 Add debug trace.
2181
2182 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2183
2184 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2185 Remove "+ 8" offset in computation of CHAIN_VMA.
2186
2187 2014-07-31 Doug Evans <dje@google.com>
2188
2189 * inflow.c (child_terminal_inferior): Add comment.
2190 (child_terminal_ours_for_output): Add comment.
2191 (child_terminal_ours): Add comment.
2192 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2193 (linux_nat_terminal_ours): Add comment.
2194
2195 2014-07-31 Gary Benson <gbenson@redhat.com>
2196
2197 * common/btrace-common.h: Do not include defs.h or server.h.
2198 * nat/mips-linux-watch.h: Likewise.
2199 * gdb-dlfcn.h: Do not include defs.h.
2200 * tracefile.h: Likewise.
2201
2202 2014-07-30 Roland McGrath <mcgrathr@google.com>
2203
2204 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2205
2206 2014-07-30 Tom Tromey <tromey@redhat.com>
2207
2208 * bsd-kvm.c (bsd_kvm_open): Constify.
2209 * corelow.c (core_open): Constify.
2210 * ctf.c (ctf_open): Constify.
2211 * dbug-rom.c (dbug_open): Constify.
2212 * exec.c (exec_open): Constify.
2213 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2214 * microblaze-rom.c (picobug_open): Constify.
2215 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2216 Constify.
2217 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2218 * record-btrace.c (record_btrace_open): Constify.
2219 * record-full.c (record_full_core_open_1, record_full_open_1)
2220 (record_full_open): Constify.
2221 * remote-m32r-sdi.c (m32r_open): Constify.
2222 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2223 (rockhopper_open, lsi_open): Constify.
2224 * remote-sim.c (gdbsim_open): Constify.
2225 * remote.c (remote_open, extended_remote_open, remote_open_1):
2226 Constify.
2227 * target.h (struct target_ops) <to_open>: Make "arg" const.
2228 * tracefile-tfile.c (tfile_open): Constify.
2229
2230 2014-07-30 Tom Tromey <tromey@redhat.com>
2231
2232 * breakpoint.c (map_breakpoint_numbers): Update.
2233 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2234 (get_number_const): New function.
2235 (get_number): Rewrite using get_number_const.
2236 (init_number_or_range): Make "string" const.
2237 (number_is_in_list): Make "list" const.
2238 * cli/cli-utils.h (get_number_const): Declare.
2239 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2240 (init_number_or_range, number_is_in_list): Update.
2241 * printcmd.c (map_display_numbers): Update.
2242 * value.c (value_from_history_ref): Constify.
2243 * value.h (value_from_history_ref): Update.
2244
2245 2014-07-30 Tom Tromey <tromey@redhat.com>
2246
2247 * corefile.c (hook_type, call_extra_exec_file_hooks)
2248 (specify_exec_file_hook): Constify.
2249 * exec.c (exec_file_attach): Make "filename" const.
2250 * gdbcore.h (deprecated_exec_file_display_hook)
2251 (specify_exec_file_hook, exec_file_attach): Constify.
2252 * main.c (captured_main): Use catch_command_errors_const.
2253
2254 2014-07-30 Tom Tromey <tromey@redhat.com>
2255
2256 * target.c (open_target): New function.
2257 (add_target_with_completer, add_deprecated_target_alias): Use
2258 set_cmd_sfunc, set_cmd_context.
2259 (debug_to_open): Remove.
2260 (setup_target_debug): Update.
2261
2262 2014-07-30 Yao Qi <yao@codesourcery.com>
2263
2264 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2265 comments.
2266 * parse.c (exp_iterate): Update comments.
2267
2268 2014-07-30 Gary Benson <gbenson@redhat.com>
2269
2270 * common/common-defs.h: New file.
2271 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2272 * defs.h: Include common-defs.h.
2273 Do not include config.h or build-gnulib/config.h.
2274
2275 2014-07-30 Gary Benson <gbenson@redhat.com>
2276
2277 * common/common-utils.h: Do not include config.h.
2278 * nat/linux-btrace.h: Likewise.
2279
2280 2014-07-30 Gary Benson <gbenson@redhat.com>
2281
2282 * btrace.c: Include defs.h.
2283 * common/ptid.c: Include defs.h or server.h as appropriate.
2284 * nat/mips-linux-watch.c: Likewise.
2285
2286 2014-07-29 Tom Tromey <tromey@redhat.com>
2287
2288 * target.c (target_is_pushed): Simplify.
2289
2290 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2291
2292 GDB 7.8 released.
2293
2294 2014-07-29 Yao Qi <yao@codesourcery.com>
2295
2296 PR gdb/17206
2297 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2298
2299 2014-07-28 Doug Evans <xdje42@gmail.com>
2300
2301 PR guile/17203
2302 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2303 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2304 parameters.
2305
2306 2014-07-28 Will Newton <will.newton@linaro.org>
2307
2308 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2309 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2310 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2311 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2312 (THUMB2_EABI_SYSCALL): Likewise.
2313 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2314 struct tramp_frame.
2315 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2316 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2317
2318 2014-07-27 Doug Evans <xdje42@gmail.com>
2319
2320 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2321
2322 2014-07-27 Doug Evans <xdje42@gmail.com>
2323
2324 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2325
2326 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2327 Doug Evans <xdje42@gmail.com>
2328
2329 PR guile/17146
2330 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2331 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2332 * configure.ac: Try to use guild to compile an scm file, if it fails
2333 then disable guile support.
2334 * configure: Regenerate.
2335 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2336 GUILE_FILE_LIST.
2337 (GUILE_COMPILED_FILES): New variable.
2338 (GUILE_FILES) Update.
2339 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2340 (stamp-guile): Compile scm files.
2341 * guile/guile.c (boot_guile_support): New function.
2342 (standard_throw_args_p): New function.
2343 (print_standard_throw_error, print_throw_error): New functions.
2344 (handle_boot_error): New function.
2345 (initialize_scheme_side): Rewrite to call boot_guile_support.
2346 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2347 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2348
2349 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2350 Doug Evans <xdje42@gmail.com>
2351
2352 PR guile/17146
2353 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2354 * guile/lib/gdb/support.scm: New file.
2355 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2356 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2357 All uses updated.
2358 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2359 All uses updated.
2360 (%assert-type): Ditto, and renamed to assert-type.
2361 (%exception-print-style): Delete.
2362
2363 2014-07-26 Doug Evans <xdje42@gmail.com>
2364
2365 PR build/17105
2366 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2367 * configure: Regenerate.
2368 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2369 PYTHON_FILES.
2370 (PYTHON_FILES): New variable.
2371 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2372 (GUILE_FILES): New variable.
2373 (stamp-python, install-python, uninstall-python): Handle empty
2374 file list.
2375 (stamp-guile, install-guile, uninstall-guile): Ditto.
2376
2377 2014-07-26 Doug Evans <xdje42@gmail.com>
2378
2379 PR guile/17177
2380 * guile/lib/gdb.scm (pretty-printers): Export.
2381 (set-pretty-printers!): Export.
2382 * guile/lib/gdb/printing.scm (gdb module): Update.
2383 (prepend-pretty-printer!, append-pretty-printer!): Update.
2384 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2385 (pretty_printer_list_var): Delete.
2386 (pretty_printer_list): New static global.
2387 (gdbscm_pretty_printers): New function.
2388 (gdbscm_set_pretty_printers_x): New function.
2389 (ppscm_find_pretty_printer_from_gdb): Update.
2390 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2391 (gdbscm_initialize_pretty_printers): Update.
2392
2393 2014-07-26 Doug Evans <xdje42@gmail.com>
2394
2395 PR 17185
2396 * configure.ac: Add check for header gc/gc.h.
2397 Add check for function setenv.
2398 * configure: Regenerate.
2399 * config.in: Regenerate.
2400 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2401
2402 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2403
2404 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2405 variation in gdbarch matching.
2406
2407 2014-07-25 Tom Tromey <tromey@redhat.com>
2408
2409 * exec.c (using_exec_ops): Remove.
2410 (exec_close_1): Update. Remove extraneous block, reindent.
2411 (add_target_sections): Use target_is_pushed.
2412
2413 2014-07-25 Pedro Alves <palves@redhat.com>
2414
2415 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2416 * monitor.c (monitor_create_inferior): Likewise.
2417 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2418 * remote-sim.c (gdbsim_create_inferior): Likewise.
2419 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2420 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2421 * windows-nat.c (do_initial_windows_stuff): Likewise.
2422
2423 2014-07-25 Pedro Alves <palves@redhat.com>
2424
2425 * NEWS: Mention signal passing and "signal" command changes.
2426 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2427 comment.
2428 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2429 call.
2430 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2431 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2432 (jump_command): Adjust clear_proceed_status call.
2433 (signal_command): Warn if other thread that are resumed have
2434 signals that will be delivered. Adjust clear_proceed_status call.
2435 (until_next_command, finish_command)
2436 (proceed_after_attach_callback, attach_command_post_wait)
2437 (attach_command): Adjust clear_proceed_status call.
2438 * infrun.c (proceed_after_vfork_done): Likewise.
2439 (proceed_after_attach_callback): Adjust comment.
2440 (clear_proceed_status_thread): Clear stop_signal if not in pass
2441 state.
2442 (clear_proceed_status_callback): Delete.
2443 (clear_proceed_status): New 'step' parameter. Only clear the
2444 proceed status of threads the command being prepared is about to
2445 resume.
2446 (proceed): If passed in an explicit signal, override stop_signal
2447 with it. Don't pass the last stop signal to the thread we're
2448 resuming.
2449 (init_wait_for_inferior): Adjust clear_proceed_status call.
2450 (switch_back_to_stepped_thread): Clear the signal if it should not
2451 be passed.
2452 * infrun.h (clear_proceed_status): New 'step' parameter.
2453 (user_visible_resume_ptid): Add comment.
2454 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2455 signal is in pass state.
2456 * remote.c (append_pending_thread_resumptions): Likewise.
2457 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2458
2459 2014-07-25 Tom Tromey <tromey@redhat.com>
2460
2461 * target.h (target_stopped_data_address)
2462 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2463 parentheses.
2464
2465 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2466
2467 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2468 comments.
2469 (avr_pointer_to_address): Likewise.
2470
2471 2014-07-24 Tom Tromey <tromey@redhat.com>
2472
2473 * monitor.c (compile_pattern): Update.
2474 * target.h (struct target_ops) <to_shortname, to_longname,
2475 to_doc>: Now const.
2476
2477 2014-07-24 Tom Tromey <tromey@redhat.com>
2478
2479 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2480 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2481 (add_info_alias, add_com): Make "doc" const.
2482 (print_doc_line): Make "str" const.
2483 (delete_cmd): Update.
2484 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2485 (print_doc_line): Update.
2486 * cli/cli-script.c (document_command): Update.
2487 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2488 (add_com, add_info, add_info_alias): Update.
2489 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2490 * python/py-cmd.c (cmdpy_destroyer): Update.
2491
2492 2014-07-24 Tom Tromey <tromey@redhat.com>
2493
2494 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2495 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2496 (help_cmd_list): Constify.
2497 (lookup_cmd): Update.
2498 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2499 const.
2500 (help_cmd_list, apropos_cmd): Update.
2501 * cli/cli-script.c (show_user): Update.
2502 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2503 * cli/cli-setshow.h (cmd_show_list): Update.
2504 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2505 (cmd_show_list): Update.
2506 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2507 * python/py-cmd.c (cmdpy_destroyer): Update.
2508
2509 2014-07-24 Tom Tromey <tromey@redhat.com>
2510
2511 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2512 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2513 const.
2514 * command.h (deprecate_cmd): Update.
2515 * maint.c (maintenance_do_deprecate): Add casts.
2516
2517 2014-07-24 Tom Tromey <tromey@redhat.com>
2518
2519 * cli/cli-decode.c (help_cmd): Make parameter "const".
2520 * cli/cli-decode.h (help_cmd): Update.
2521
2522 2014-07-24 Tom Tromey <tromey@redhat.com>
2523
2524 * stack.c (up_silently_base, down_silently_base): Make argument
2525 const.
2526
2527 2014-07-24 Tom Tromey <tromey@redhat.com>
2528
2529 * solib.c (solib_add): Make "pattern" const.
2530 * solib.h (solib_add): Update.
2531
2532 2014-07-24 Tom Tromey <tromey@redhat.com>
2533
2534 * remote.c (remote_serial_open, print_packet, putpkt)
2535 (putpkt_binary): Constify.
2536 * remote.h (putpkt): Update.
2537
2538 2014-07-24 Tom Tromey <tromey@redhat.com>
2539
2540 * monitor.c (monitor_open): Make "args" const.
2541 * monitor.h (monitor_open): Update.
2542
2543 2014-07-24 Tom Tromey <tromey@redhat.com>
2544
2545 * maint.c (match_bfd_flags): Make "string" const.
2546 (print_bfd_section_info): Remove casts.
2547 (print_objfile_section_info): Make "string" const.
2548
2549 2014-07-24 Tom Tromey <tromey@redhat.com>
2550
2551 * inf-child.c (inf_child_open_target): Make "arg" const.
2552 * inf-child.h (inf_child_open_target): Update.
2553
2554 2014-07-24 Tom Tromey <tromey@redhat.com>
2555
2556 * environ.c (unset_in_environ): Make "var" const.
2557 * environ.h (unset_in_environ): Update.
2558
2559 2014-07-24 Tom Tromey <tromey@redhat.com>
2560
2561 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2562 Make "cmd" const.
2563 (scan_filename_with_cleanup): Likewise.
2564 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2565 Make arguments const.
2566 (restore_command): Update.
2567
2568 2014-07-24 Pedro Alves <palves@redhat.com>
2569
2570 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2571
2572 2014-07-24 Tom Tromey <tromey@redhat.com>
2573 Gary Benson <gbenson@redhat.com>
2574
2575 * nat/linux-ptrace.c (additional_flags): New global.
2576 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2577 additional_flags; don't check GDBSERVER.
2578 (linux_ptrace_set_additional_flags): New function.
2579 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2580 Declare.
2581 * linux-nat.c (_initialize_linux_nat): Call
2582 linux_ptrace_set_additional_flags.
2583
2584 2014-07-24 Tom Tromey <tromey@redhat.com>
2585
2586 * make-target-delegates (munge_type, write_debugmethod): New
2587 functions.
2588 (debug_names): New global.
2589 ($TARGET_DEBUG_PRINTER): New global.
2590 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2591 name.
2592 Write debug methods. Generate init_debug_target.
2593 * target-debug.h: New file.
2594 * target-delegates.c: Rebuild.
2595 * target.c: Include target-debug.h.
2596 (debug_target): Hoist definition.
2597 (target_kill, target_get_section_table, target_memory_map)
2598 (target_flash_erase, target_flash_done, target_detach)
2599 (target_disconnect, target_wait, target_resume)
2600 (target_pass_signals, target_program_signals, target_follow_fork)
2601 (target_mourn_inferior, target_search_memory)
2602 (target_thread_address_space, target_close)
2603 (target_find_new_threads, target_core_of_thread)
2604 (target_verify_memory, target_insert_mask_watchpoint)
2605 (target_remove_mask_watchpoint): Remove targetdebug code.
2606 (debug_to_post_attach, debug_to_prepare_to_store)
2607 (debug_to_files_info, debug_to_insert_breakpoint)
2608 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2609 (debug_to_region_ok_for_hw_watchpoint)
2610 (debug_to_can_accel_watchpoint_condition)
2611 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2612 (debug_to_watchpoint_addr_within_range)
2613 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2614 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2615 (debug_to_terminal_init, debug_to_terminal_inferior)
2616 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2617 (debug_to_terminal_save_ours, debug_to_terminal_info)
2618 (debug_to_load, debug_to_post_startup_inferior)
2619 (debug_to_insert_fork_catchpoint)
2620 (debug_to_remove_fork_catchpoint)
2621 (debug_to_insert_vfork_catchpoint)
2622 (debug_to_remove_vfork_catchpoint)
2623 (debug_to_insert_exec_catchpoint)
2624 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2625 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2626 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2627 (setup_target_debug): Call init_debug_target.
2628 * target.h (TARGET_DEBUG_PRINTER): New macro.
2629 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2630 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2631
2632 2014-07-24 Gary Benson <gbenson@redhat.com>
2633
2634 * exceptions.h (throw_vfatal): Renamed to...
2635 (throw_vquit): New declaration.
2636 (throw_quit): Likewise.
2637 * exceptions.c (throw_vfatal): Renamed to...
2638 (throw_vquit): New function.
2639 (throw_quit): Likewise.
2640 (throw_error): Call throw_verror rather than throw_it.
2641 * utils.h (vfatal): Removed.
2642 (fatal): Likewise.
2643 * utils.c (vfatal): Removed.
2644 (fatal): Likewise.
2645 (internal_verror): Replaced call to fatal with call to throw_quit.
2646 (quit): Replaced calls to fatal with calls to throw_quit.
2647
2648 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2649
2650 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2651 target_read_code.
2652
2653 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2654
2655 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2656 less than zero in conditional expression.
2657
2658 2014-07-23 Tom Tromey <tromey@redhat.com>
2659
2660 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2661 ($INTRO_PART): Don't match whitespace.
2662 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2663 argument matching.
2664 ($METHOD): Add $METHOD_TRAILER.
2665 (trim): Rewrite.
2666 (scan_target_h): New sub.
2667 Change main loop not to collect state.
2668 * target-delegates.c: Rebuild.
2669
2670 2014-07-23 Gary Benson <gbenson@redhat.com>
2671
2672 * cp-support.c (gdb_demangle): Fix build on systems without
2673 sigaltstack.
2674
2675 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2676
2677 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2678 for reference entry value target data value.
2679
2680 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2681
2682 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2683 value_available_contents_eq.
2684
2685 2014-07-22 Pedro Alves <palves@redhat.com>
2686
2687 * value.c (allocate_optimized_out_value): Don't mark value as
2688 non-lazy.
2689
2690 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2691
2692 * MAINTAINERS (Write After Approval): Update my email address.
2693
2694 2014-07-20 Doug Evans <dje@google.com>
2695
2696 PR server/17147
2697 * remote.c (putpkt_binary): Add text to error message.
2698
2699 2014-07-20 Yao Qi <yao@codesourcery.com>
2700
2701 * eval.c: Remove "Chill" from comments.
2702 * gdbtypes.h: Likewise.
2703 * symtab.h: Likewise.
2704
2705 2014-07-20 Yao Qi <yao@codesourcery.com>
2706
2707 * std-operator.def: Update comments to TERNOP_SLICE.
2708
2709 2014-07-20 Yao Qi <yao@codesourcery.com>
2710
2711 * std-operator.def: Remove BINOP_RANGE.
2712 * breakpoint.c (watchpoint_exp_is_const): Update.
2713 * expprint.c (dump_subexp_body_standard): Likewise.
2714 * eval.c (init_array_element): Remove dead code.
2715 (evaluate_subexp_standard): Likewise.
2716
2717 2014-07-20 Yao Qi <yao@codesourcery.com>
2718
2719 * std-operator.def: Remove BINOP_IN.
2720 * breakpoint.c (watchpoint_exp_is_const): Update.
2721 * eval.c (evaluate_subexp_standard): Likewise.
2722 * expprint.c (dump_subexp_body_standard): Likewise.
2723
2724 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2725
2726 * microblaze-tdep.c (microblaze_register_names): Add
2727 the rshr and rslr register names.
2728 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2729 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2730 Use of tdesc_numbered_register. Use of
2731 microblaze_register_g_packet_guesses. Use of
2732 tdesc_use_registers. Use of set_gdbarch_register_type.
2733 (microblaze_register_g_packet_guesses): New.
2734 * microblaze-tdep.h (microblaze_reg_num): Add
2735 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2736 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2737 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2738 * features/microblaze-core.xml: New file.
2739 * features/microblaze-stack-protect.xml: New file.
2740 * features/microblaze-with-stack-protect.c: New file.
2741 * features/microblaze-with-stack-protect.xml: New file.
2742 * features/microblaze.xml: New file.
2743 * features/microblaze.c: New file.
2744 * features/Makefile (microblaze-with-stack-protect): Add
2745 microblaze-with-stack-protect microblaze and microblaze-expedite.
2746 * regformats/microblaze-with-stack-protect.dat: New file.
2747 * regformats/microblaze.dat: New file.
2748 * doc/gdb.texinfo (MicroBlaze Features): Added.
2749
2750 2014-07-18 Tom Tromey <tromey@redhat.com>
2751
2752 * exec.c (exec_ops): Now static.
2753 * exec.h (exec_ops): Don't declare.
2754
2755 2014-07-18 Tom Tromey <tromey@redhat.com>
2756
2757 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2758 to find_target_beneath.
2759 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2760 find_target_beneath.
2761 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2762
2763 2014-07-18 Tom Tromey <tromey@redhat.com>
2764
2765 PR gdb/17130:
2766 * utils.c (quit): Use target_supports_terminal_ours.
2767 * target.h (target_supports_terminal_ours): Declare.
2768 * target.c (target_supports_delete_record): Don't check
2769 to_delete_record against NULL.
2770 (target_supports_terminal_ours): New function.
2771
2772 2014-07-18 Tom Tromey <tromey@redhat.com>
2773
2774 PR gdb/17130:
2775 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2776 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2777 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2778 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2779 * windows-nat.c (windows_xfer_partial): Always delegate.
2780 * record-btrace.c (record_btrace_xfer_partial): Simplify
2781 delegation.
2782 (record_btrace_fetch_registers, record_btrace_store_registers)
2783 (record_btrace_prepare_to_store, record_btrace_resume)
2784 (record_btrace_wait, record_btrace_find_new_threads)
2785 (record_btrace_thread_alive): Likewise.
2786 * procfs.c (procfs_xfer_partial): Always delegate.
2787 * corelow.c (core_xfer_partial): Always delegate.
2788 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2789
2790 2014-07-18 Tom Tromey <tromey@redhat.com>
2791
2792 * exec.c (exec_make_note_section): Move earlier.
2793
2794 2014-07-17 Doug Evans <dje@google.com>
2795
2796 PR gdb/17170
2797 * maint.c (count_symtabs_and_blocks): Handle NULL
2798 current_program_space.
2799 (report_command_stats): Check global enabled flag in addition to
2800 recorded enabled flag.
2801 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2802
2803 2014-07-16 Pedro Alves <palves@redhat.com>
2804
2805 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2806
2807 2014-07-16 Tom Tromey <tromey@redhat.com>
2808
2809 * target.h (struct target_ops) <to_delete_record>: Reformat
2810 comment.
2811
2812 2014-07-16 Tom Tromey <tromey@redhat.com>
2813
2814 * target-delegates.c: Rebuild.
2815
2816 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2817
2818 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2819 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2820 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2821 (avr_pointer_to_address): Likewise.
2822 (avr_address_class_type_flags): New function.
2823 (avr_address_class_type_flags_to_name): Likewise.
2824 (avr_address_class_name_to_type_flags): Likewise.
2825 (avr_gdbarch_init): Set address_class_type_flags,
2826 address_class_type_flags_to_name and
2827 address_class_name_to_type_flags.
2828
2829 2014-07-15 Pedro Alves <palves@redhat.com>
2830
2831 * linux-nat.c (kill_callback): Save errno and work with saved
2832 copy.
2833
2834 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2835
2836 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2837
2838 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2839
2840 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2841 breakpoint support correctly.
2842
2843 2014-07-14 Pedro Alves <palves@redhat.com>
2844
2845 * utils.c (prompt_for_continue): Call target_terminal_ours.
2846
2847 2014-07-14 Pedro Alves <palves@redhat.com>
2848
2849 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2850 catch_errors. Don't re-enable stdin or notify observers where,
2851 and rethrow error.
2852 (fetch_inferior_event_wrapper): Delete.
2853
2854 2014-07-14 Pedro Alves <palves@redhat.com>
2855
2856 PR gdb/17072
2857 * top.c: Include "inf-loop.h".
2858 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2859 field.
2860 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2861 was async before.
2862 (gdb_readline_wrapper): Store whether the target is async, and
2863 make it sync.
2864
2865 2014-07-14 Pedro Alves <palves@redhat.com>
2866
2867 PR gdb/17072
2868 * top.c (gdb_readline_wrapper_line): Tweak comment.
2869 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2870 the input handler callback.
2871
2872 2014-07-14 Pedro Alves <palves@redhat.com>
2873
2874 PR gdb/17072
2875 * main.c: Include event-top.h.
2876 (handle_command_errors): New function.
2877 (catch_command_errors, catch_command_errors_const): Use it.
2878
2879 2014-07-14 Pedro Alves <palves@redhat.com>
2880
2881 * exceptions.c (catch_command_errors, catch_command_errors_const):
2882 Moved to main.c.
2883 * exceptions.h (catch_command_errors_ftype)
2884 (catch_command_errors_const_ftype): Moved to main.c.
2885 (catch_command_errors, catch_command_errors_const): Delete
2886 declarations.
2887 * main.c (catch_command_errors_ftype)
2888 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2889 (catch_command_errors, catch_command_errors_const)): Moved here
2890 from exceptions.c and make static.
2891
2892 2014-07-14 Pedro Alves <palves@redhat.com>
2893
2894 * exceptions.c (print_any_exception): Delete.
2895 (catch_exceptions_with_msg): Use exception_print instead of
2896 print_any_exception.
2897 (catch_errors): Use exception_fprintf instead of
2898 print_any_exception.
2899 (catch_command_errors, catch_command_errors_const): Use
2900 exception_print instead of print_any_exception.
2901
2902 2014-07-14 Pedro Alves <palves@redhat.com>
2903
2904 * infcall.c (run_inferior_call): Set 'sync_execution' while
2905 running the inferior call.
2906
2907 2014-07-14 Pedro Alves <palves@redhat.com>
2908
2909 * value.c (value_contents_equal): Delete function.
2910 * value.h (value_contents_equal): Delete declaration.
2911
2912 2014-07-14 Tom Tromey <tromey@redhat.com>
2913
2914 PR exp/17106:
2915 * gdbtypes.c (is_dynamic_type_internal): New function, from
2916 is_dynamic_type.
2917 (is_dynamic_type): Rewrite.
2918 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2919 (resolve_dynamic_struct): Likewise.
2920 (resolve_dynamic_type_internal): New function, from
2921 resolve_dynamic_type.
2922 (resolve_dynamic_type): Rewrite.
2923
2924 2014-07-14 Tom Tromey <tromey@redhat.com>
2925
2926 * target.c (target_require_runnable): Also check record_stratum.
2927 Update comment.
2928
2929 2014-07-11 Yao Qi <yao@codesourcery.com>
2930
2931 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2932 thumb_instruction_restores_sp return true.
2933
2934 2014-07-11 Yao Qi <yao@codesourcery.com>
2935
2936 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2937 (thumb_in_function_epilogue_p): Call
2938 thumb_instruction_restores_sp.
2939
2940 2014-07-11 Yao Qi <yao@codesourcery.com>
2941
2942 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2943 'add sp, #imm'.
2944 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2945
2946 2014-07-11 Gary Benson <gbenson@redhat.com>
2947
2948 * amd64-linux-nat.c (gdbcore.h): Remove include.
2949 (regset.h): Likewise.
2950 (nat/linux-btrace.h): Likewise.
2951 (btrace.h): Likewise.
2952 (gdb_assert.h): Likewise.
2953 (string.h): Likewise.
2954 (sys/uio.h): Likewise.
2955 (sys/debugreg.h): Likewise.
2956 (sys/syscall.h): Likewise.
2957 (sys/procfs.h): Likewise.
2958 (sys/user.h): Likewise.
2959 (asm/ptrace.h): Likewise.
2960 (i386-nat.h): Likewise.
2961 * i386-linux-nat.c (i386-nat.h): Likewise.
2962 (regset.h): Likewise.
2963 (target.h): Likewise.
2964 (linux-nat.h): Likewise.
2965 (nat/linux-btrace.h): Likewise.
2966 (btrace.h): Likewise.
2967 (gdb_assert.h): Likewise.
2968 (string.h): Likewise.
2969 (sys/uio.h): Likewise.
2970 (sys/user.h): Likewise.
2971 (sys/procfs.h): Likewise.
2972 (sys/reg.h): Likewise.
2973 (sys/debugreg.h): Likewise.
2974 (ORIG_EAX): Remove definition.
2975
2976 2014-07-11 Gary Benson <gbenson@redhat.com>
2977
2978 * i386-linux-nat.h: New file.
2979 * x86-linux-nat.h: Likewise.
2980 * x86-linux-nat.c: Likewise.
2981 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2982 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2983 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2984 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2985 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2986 (PTRACE_SETREGSET): Likewise.
2987 (arch_lwp_info): Now in x86-linux-nat.c.
2988 (have_ptrace_getregset): Now in x86-linux-nat.h.
2989 (x86_linux_dr_get): Now in x86-linux-nat.c.
2990 (x86_linux_dr_set): Likewise.
2991 (x86_linux_dr_get_addr): Likewise.
2992 (x86_linux_dr_get_control): Likewise.
2993 (x86_linux_dr_get_status): Likewise.
2994 (update_debug_registers_callback): Likewise.
2995 (x86_linux_dr_set_control): Likewise.
2996 (x86_linux_dr_set_addr): Likewise.
2997 (x86_linux_prepare_to_resume): Likewise.
2998 (x86_linux_new_thread): Likewise.
2999 (x86_linux_new_fork): Likewise.
3000 (x86_linux_get_thread_area): Likewise.
3001 (super_post_startup_inferior): Likewise.
3002 (x86_linux_child_post_startup_inferior): Likewise.
3003 (AMD64_LINUX_USER64_CS): Likewise.
3004 (AMD64_LINUX_X32_DS): Likewise.
3005 (x86_linux_read_description): Likewise.
3006 (x86_linux_enable_btrace): Likewise.
3007 (x86_linux_disable_btrace): Likewise.
3008 (x86_linux_teardown_btrace): Likewise.
3009 (x86_linux_read_btrace): Likewise.
3010 (x86_linux_create_target): Likewise.
3011 (x86_linux_add_target): Likewise.
3012 * i386-linux-nat.c (x86-linux-nat.h): New include.
3013 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3014 (PTRACE_SETREGSET): Likewise.
3015 (arch_lwp_info): Now in x86-linux-nat.c.
3016 (have_ptrace_getregset): Now in x86-linux-nat.h.
3017 (x86_linux_dr_get): Now in x86-linux-nat.c.
3018 (x86_linux_dr_set): Likewise.
3019 (x86_linux_dr_get_addr): Likewise.
3020 (x86_linux_dr_get_control): Likewise.
3021 (x86_linux_dr_get_status): Likewise.
3022 (update_debug_registers_callback): Likewise.
3023 (x86_linux_dr_set_control): Likewise.
3024 (x86_linux_dr_set_addr): Likewise.
3025 (x86_linux_prepare_to_resume): Likewise.
3026 (x86_linux_new_thread): Likewise.
3027 (x86_linux_new_fork): Likewise.
3028 (x86_linux_get_thread_area): Likewise.
3029 (super_post_startup_inferior): Likewise.
3030 (x86_linux_child_post_startup_inferior): Likewise.
3031 (AMD64_LINUX_USER64_CS): Likewise.
3032 (AMD64_LINUX_X32_DS): Likewise.
3033 (x86_linux_read_description): Likewise.
3034 (x86_linux_enable_btrace): Likewise.
3035 (x86_linux_disable_btrace): Likewise.
3036 (x86_linux_teardown_btrace): Likewise.
3037 (x86_linux_read_btrace): Likewise.
3038 (x86_linux_create_target): Likewise.
3039 (x86_linux_add_target): Likewise.
3040
3041 2014-07-11 Gary Benson <gbenson@redhat.com>
3042
3043 * amd64-linux-nat.c: Comment and whitespace changes.
3044 * i386-linux-nat.c: Comment and whitespace changes.
3045
3046 2014-07-11 Gary Benson <gbenson@redhat.com>
3047
3048 * amd64-linux-nat.c (x86_linux_create_target): New function.
3049 (x86_linux_add_target): Likewise.
3050 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3051 * i386-linux-nat.c (x86_linux_create_target): New function.
3052 (x86_linux_add_target): Likewise.
3053 (_initialize_i386_linux_nat): Delegate to the above new functions.
3054
3055 2014-07-11 Gary Benson <gbenson@redhat.com>
3056
3057 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3058 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3059 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3060 (ps_get_thread_area): Delegate to the above.
3061
3062 2014-07-11 Gary Benson <gbenson@redhat.com>
3063
3064 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3065 x86_linux_read_description. All uses updated. amd64-specific
3066 code conditionalized. Conditionalized i386-specific code added.
3067 Redundant cast removed.
3068 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3069 x86_linux_read_description. All uses updated. i386-specific
3070 code conditionalized. Conditionalized amd64-specific code added.
3071 One sizeof replaced with the actual type it is describing.
3072
3073 2014-07-11 Gary Benson <gbenson@redhat.com>
3074
3075 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3076 x86_linux_dr_get. All uses updated.
3077 (amd64_linux_dr_set): Renamed to
3078 x86_linux_dr_set. All uses updated.
3079 (amd64_linux_dr_get_addr): Renamed to
3080 x86_linux_dr_get_addr. All uses updated.
3081 (amd64_linux_dr_get_control): Renamed to
3082 x86_linux_dr_get_control. All uses updated.
3083 (amd64_linux_dr_get_status): Renamed to
3084 x86_linux_dr_get_status. All uses updated.
3085 (amd64_linux_dr_set_control): Renamed to
3086 x86_linux_dr_set_control. All uses updated.
3087 (amd64_linux_dr_set_addr): Renamed to
3088 x86_linux_dr_set_addr. All uses updated.
3089 (amd64_linux_prepare_to_resume): Renamed to
3090 x86_linux_prepare_to_resume. All uses updated.
3091 (amd64_linux_new_thread): Renamed to
3092 x86_linux_new_thread. All uses updated.
3093 (amd64_linux_new_fork): Renamed to
3094 x86_linux_new_fork. All uses updated.
3095 (amd64_linux_child_post_startup_inferior): Renamed to
3096 x86_linux_child_post_startup_inferior. All uses updated.
3097 (amd64_linux_enable_btrace): Renamed to
3098 x86_linux_enable_btrace. All uses updated.
3099 (amd64_linux_disable_btrace): Renamed to
3100 x86_linux_disable_btrace. All uses updated.
3101 (amd64_linux_teardown_btrace): Renamed to
3102 x86_linux_teardown_btrace. All uses updated.
3103 (amd64_linux_read_btrace): Renamed to
3104 x86_linux_read_btrace. All uses updated.
3105 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3106 x86_linux_dr_get. All uses updated.
3107 (i386_linux_dr_set): Renamed to
3108 x86_linux_dr_set. All uses updated.
3109 (i386_linux_dr_get_addr): Renamed to
3110 x86_linux_dr_get_addr. All uses updated.
3111 (i386_linux_dr_get_control): Renamed to
3112 x86_linux_dr_get_control. All uses updated.
3113 (i386_linux_dr_get_status): Renamed to
3114 x86_linux_dr_get_status. All uses updated.
3115 (i386_linux_dr_set_control): Renamed to
3116 x86_linux_dr_set_control. All uses updated.
3117 (i386_linux_dr_set_addr): Renamed to
3118 x86_linux_dr_set_addr. All uses updated.
3119 (i386_linux_prepare_to_resume): Renamed to
3120 x86_linux_prepare_to_resume. All uses updated.
3121 (i386_linux_new_thread): Renamed to
3122 x86_linux_new_thread. All uses updated.
3123 (i386_linux_new_fork): Renamed to
3124 x86_linux_new_fork. All uses updated.
3125 (i386_linux_child_post_startup_inferior): Renamed to
3126 x86_linux_child_post_startup_inferior. All uses updated.
3127 (i386_linux_enable_btrace): Renamed to
3128 x86_linux_enable_btrace. All uses updated.
3129 (i386_linux_disable_btrace): Renamed to
3130 x86_linux_disable_btrace. All uses updated.
3131 (i386_linux_teardown_btrace): Renamed to
3132 x86_linux_teardown_btrace. All uses updated.
3133 (i386_linux_read_btrace): Renamed to
3134 x86_linux_read_btrace. All uses updated.
3135
3136 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3137
3138 * remote.c (extended_remote_post_attach): New function.
3139 (init_extended_remote_ops): Install it as to_post_attach method.
3140
3141 2014-07-09 Pedro Alves <palves@redhat.com>
3142
3143 * infcmd.c (attach_command_post_wait): Don't call
3144 target_terminal_inferior here.
3145 (attach_command): Call it here instead.
3146
3147 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3148
3149 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3150 field.
3151 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3152 from varobj.c, with additional checks.
3153 (c_varobj_ops): Fill in is_path_expr_parent field.
3154 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3155 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3156 field.
3157 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3158 ops method.
3159 (varobj_default_is_path_expr_parent): New function.
3160 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3161 (varobj_default_is_path_expr_parent): Declare new function.
3162
3163 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3164
3165 * infcmd.c (finish_backward): Turn internal error into normal error.
3166
3167 2014-07-07 Pedro Alves <palves@redhat.com>
3168
3169 PR gdb/17096
3170 * remote.c (async_handle_remote_sigint)
3171 (async_handle_remote_sigint_twice): Call
3172 gdb_call_async_signal_handler instead of
3173 mark_async_signal_handler.
3174
3175 2014-07-07 Tom Tromey <tromey@redhat.com>
3176
3177 * target-delegates.c: Rebuild.
3178 * target.c (target_info_record): Remove.
3179 * record.c (info_record_command): Unconditionally call
3180 to_info_record.
3181 * target.h (struct target_ops) <to_info_record>: Use
3182 TARGET_DEFAULT_IGNORE.
3183 (target_info_record): Remove.
3184
3185 2014-07-07 Tom Tromey <tromey@redhat.com>
3186
3187 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3188 TARGET_DEFAULT_NORETURN.
3189 * target.c (generic_tls_error): New function.
3190 (target_translate_tls_address): Don't search target stack.
3191 * target-delegates.c: Rebuild.
3192 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3193 stack.
3194 * linux-thread-db.c (thread_db_get_thread_local_address):
3195 Unconditionally call beneath target.
3196
3197 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3198
3199 * cli/cli-logging.c (pop_output_files): Assign targerr to
3200 gdb_stdtargerr.
3201
3202 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3203
3204 * MAINTAINERS (Write After Approval): Update my email address.
3205
3206 2014-07-02 Gary Benson <gbenson@redhat.com>
3207
3208 * proc-service.c (ps_xfer_memory): Update comment.
3209 (ps_pstop): Remove unused function.
3210 (ps_pcontinue): Likewise.
3211 (ps_lstop): Likewise.
3212 (ps_lcontinue): Likewise.
3213 (ps_lgetxregsize): Likewise.
3214 (ps_lgetxregs): Likewise.
3215 (ps_lsetxregs): Likewise.
3216 (ps_plog): Likewise.
3217 (ps_ptread): Likewise.
3218 (ps_ptwrite): Likewise.
3219
3220 2014-07-01 Mark Wielaard <mjw@redhat.com>
3221
3222 * dwarf2read.c (add_array_cv_type): New function.
3223 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3224 (read_tag_volatile_type): Likewise.
3225
3226 2014-07-01 Tom Tromey <tromey@redhat.com>
3227
3228 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3229 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3230 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3231 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3232 * command.h (cmd_cfunc_ftype): Move earlier.
3233 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3234 (add_com, add_info): Use cmd_cfunc_ftype.
3235
3236 2014-06-30 Tom Tromey <tromey@redhat.com>
3237
3238 * symtab.c (operator_chars): Make parameters and return type
3239 const.
3240 (file_matches): Make "files" const.
3241 (struct search_symbols_data) <files>: Now const.
3242 (search_symbols): Make "regexp" and "files" parameters const.
3243 Update.
3244 (symtab_symbol_info): Remove cast.
3245 (rbreak_command): Update.
3246 * symtab.h (search_symbols): Update.
3247
3248 2014-06-27 Yao Qi <yao@codesourcery.com>
3249
3250 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3251 Change parameter type to 'struct thread_info *'. Caller
3252 updated.
3253 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3254 Update declaration.
3255 * dummy-frame.c (struct dummy_frame_id): New.
3256 (dummy_frame_id_eq): New function.
3257 (struct dummy_frame) <id>: Change its type to 'struct
3258 dummy_frame_id'.
3259 (dummy_frame_push): Add parameter ptid and save it in
3260 dummy_frame_id.
3261 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3262 inferior_ptid.
3263 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3264 to inferior_ptid.
3265 (lookup_dummy_frame): Change parameter type to 'struct
3266 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3267 instead of frame_id_eq.
3268 (dummy_frame_pop): Add parameter ptid. Callers updated.
3269 Update comments. Compose dummy_frame_id and pass it to
3270 lookup_dummy_frame.
3271 (dummy_frame_discard): Add parameter ptid.
3272 (dummy_frame_sniffer): Compose dummy_frame_id and call
3273 dummy_frame_id_eq instead of frame_id_eq.
3274 (fprint_dummy_frames): Print ptid.
3275 * dummy-frame.h: Remove comments.
3276 (dummy_frame_push): Add ptid in declaration.
3277 (dummy_frame_pop, dummy_frame_discard): Likewise.
3278
3279 2014-06-26 Tom Tromey <tromey@redhat.com>
3280
3281 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3282 * command.h (error_no_arg): Update.
3283
3284 2014-06-26 Tom Tromey <tromey@redhat.com>
3285
3286 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3287 (do_show_command): Make "arg" const.
3288 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3289
3290 2014-06-26 Tom Tromey <tromey@redhat.com>
3291
3292 * record-full.c (record_full_get_bookmark): Make "args" const.
3293 (record_full_goto_bookmark): Make "raw_bookmark" const.
3294 * record.c (record_goto): New function.
3295 (cmd_record_goto): Use it. Now static.
3296 * record.h (record_goto): Declare.
3297 (cmd_record_goto): Remove declaration.
3298 * target-delegates.c: Rebuild.
3299 * target.h (struct target_ops) <to_get_bookmark,
3300 to_goto_bookmark>: Make parameter const.
3301
3302 2014-06-26 Tom Tromey <tromey@redhat.com>
3303
3304 * defs.h (generic_load): Update.
3305 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3306 * monitor.c (monitor_load): Make "args" const.
3307 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3308 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3309 const.
3310 (mips_load): Make "file" const.
3311 * remote-sim.c (gdbsim_load): Make "args" const.
3312 * remote.c (remote_load): Make "name" const.
3313 * symfile.c (generic_load): Make "args" const.
3314 * target-delegates.c: Rebuild.
3315 * target.c (target_load): Make "arg" const.
3316 (debug_to_load): Make "args" const.
3317 * target.h (struct target_ops) <to_load>: Make parameter const.
3318 (target_load): Update.
3319
3320 2014-06-26 Tom Tromey <tromey@redhat.com>
3321
3322 PR symtab/16902:
3323 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3324 (dwarf2_physname, read_partial_die)
3325 (guess_partial_die_structure_name, fixup_partial_die)
3326 (guess_full_die_structure_name, anonymous_struct_prefix)
3327 (dwarf2_name): Use per-BFD obstack.
3328
3329 2014-06-26 Yao Qi <yao@codesourcery.com>
3330
3331 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3332 dummyframe and this_id into inner block below.
3333
3334 2014-06-26 Yao Qi <yao@codesourcery.com>
3335
3336 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3337 with "signal_pass[0]" in the initialization of signal_pass.
3338
3339 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3340
3341 * record-btrace.c (record_btrace_generating_corefile)
3342 (record_btrace_prepare_to_generate_core)
3343 (record_btrace_done_generating_core): New.
3344 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3345 (record_btrace_store_registers, record_btrace_prepare_to_store):
3346 Forward request when generating a core file.
3347 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3348 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3349 to_done_generating_core.
3350
3351 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3352
3353 * target.h (target_ops) <to_prepare_to_generate_core>
3354 <to_done_generating_core>: New.
3355 (target_prepare_to_generate_core, target_done_generating_core): New.
3356 * target.c (target_prepare_to_generate_core)
3357 (target_done_generating_core): New.
3358 * target-delegates.c: Regenerate.
3359 * gcore.c: (write_gcore_file): Rename to ...
3360 (write_gcore_file_1): ...this.
3361 (write_gcore_file): Call target_prepare_to_generate_core
3362 and target_done_generating_core.
3363
3364 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3365
3366 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3367 * gcore.c (write_gcore_file): Free memory returned from
3368 make_corefile_notes.
3369 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3370 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3371
3372 2014-06-24 Yao Qi <yao@codesourcery.com>
3373
3374 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3375 (arm_linux_init_abi): Set skip_trampoline_code with
3376 gdbarch_skip_trampoline_code instead of
3377 find_solib_trampoline_target.
3378
3379 2014-06-24 Yao Qi <yao@codesourcery.com>
3380
3381 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3382 arm_skip_bx_reg returns non-zero.
3383
3384 2014-06-24 Yao Qi <yao@codesourcery.com>
3385
3386 * arm-tdep.c (arm_skip_bx_reg): New function.
3387 (arm_skip_stub): Call arm_skip_bx_reg.
3388
3389 2014-06-23 Don Breazeal <donb@codesourcery.com>
3390
3391 * MAINTAINERS: Add myself as write-after-approval maintainer.
3392
3393 2014-06-23 Pedro Alves <palves@redhat.com>
3394
3395 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3396 DR_CONTROL before setting DR0..DR3.
3397 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3398 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3399 bits of DR_CONTROL related to the debug register slot being
3400 disabled. If all slots are vacant, clear local slowdown as well,
3401 and assert DR_CONTROL is 0.
3402
3403 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3404
3405 * python/lib/gdb/command/xmethods.py
3406 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3407 current progspace only if the string "progspace" matches LOCUS_RE.
3408
3409 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3410
3411 Fix --with-system-readline with readline-6.3 patch 5.
3412 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3413 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3414 types.
3415
3416 2014-06-20 Tom Tromey <tromey@redhat.com>
3417
3418 * dwarf2read.c (dw2_get_real_path): Use correct type in
3419 OBSTACK_CALLOC.
3420 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3421
3422 2014-06-20 Gary Benson <gbenson@redhat.com>
3423
3424 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3425 * common/glibc_thread_db.h: Likewise.
3426 * common/i386-cpuid.h: Likewise.
3427 * common/i386-gcc-cpuid.h: Likewise.
3428 * common/linux-btrace.h: Likewise.
3429 * common/linux-osdata.h: Likewise.
3430 * common/linux-procfs.h: Likewise.
3431 * common/linux-ptrace.h: Likewise.
3432 * common/mips-linux-watch.h: Likewise.
3433 * common/linux-btrace.c: Moved to nat.
3434 * common/linux-osdata.c: Likewise.
3435 * common/linux-procfs.c: Likewise.
3436 * common/linux-ptrace.c: Likewise.
3437 * common/mips-linux-watch.c: Likewise.
3438 * nat/gdb_thread_db.h: Moved from common.
3439 * nat/glibc_thread_db.h: Likewise.
3440 * nat/i386-cpuid.h: Likewise.
3441 * nat/i386-gcc-cpuid.h: Likewise.
3442 * nat/linux-btrace.c: Likewise.
3443 * nat/linux-btrace.h: Likewise.
3444 * nat/linux-osdata.c: Likewise.
3445 * nat/linux-osdata.h: Likewise.
3446 * nat/linux-procfs.c: Likewise.
3447 * nat/linux-procfs.h: Likewise.
3448 * nat/linux-ptrace.c: Likewise.
3449 * nat/linux-ptrace.h: Likewise.
3450 * nat/mips-linux-watch.c: Likewise.
3451 * nat/mips-linux-watch.h: Likewise.
3452 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3453 (object file files): Reordered.
3454 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3455 of glibc_thread_db.h.
3456
3457 2014-06-20 Gary Benson <gbenson@redhat.com>
3458
3459 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3460 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3461 (i386_dr_low): Likewise.
3462 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3463 (i386_dr_low_set_addr): Likewise.
3464 (i386_dr_low_get_addr): Likewise.
3465 (i386_dr_low_can_set_control): Likewise.
3466 (i386_dr_low_set_control): Likewise.
3467 (i386_dr_low_get_control): Likewise.
3468 (i386_dr_low_get_status): Likewise.
3469 (i386_get_debug_register_length): Likewise.
3470 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3471 (i386_dr_low): Likewise.
3472 * nat/i386-dregs.c (i386-low.h): Remove include.
3473 (i386-nat.h): Likewise.
3474 (nat/i386-dregs.h): New include.
3475 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3476 (i386_dr_low_set_addr): Likewise.
3477 (i386_dr_low_get_addr): Likewise.
3478 (i386_dr_low_can_set_control): Likewise.
3479 (i386_dr_low_set_control): Likewise.
3480 (i386_dr_low_get_control): Likewise.
3481 (i386_dr_low_get_status): Likewise.
3482 (i386_get_debug_register_length): Likewise.
3483 (debug_hw_points): Likewise.
3484
3485 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3486
3487 * Makefile.in (SFILES): Add d-exp.y.
3488 (YYFILES): Add d-exp.c.
3489 (YYOBJ): Add d-exp.o.
3490 (local-maintainer-clean): Delete d-exp.c.
3491 * d-exp.y: New file.
3492 * d-lang.h (d_parse): New declaration.
3493 (d_error): New declaration.
3494 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3495 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3496 PREC_ORDER operators.
3497 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3498
3499 2014-06-19 Yao Qi <yao@codesourcery.com>
3500
3501 * gdbthread.h (any_running): Remove the declaration.
3502 * thread.c (any_running): Remove.
3503
3504 2014-06-19 Yao Qi <yao@codesourcery.com>
3505
3506 * gdbthread.h (struct thread_info) <state>: Change its type to
3507 'enum thread_state'. Update comments.
3508
3509 2014-06-19 Pedro Alves <palves@redhat.com>
3510
3511 * gdbthread.h (ALL_THREADS): Delete.
3512 (ALL_NON_EXITED_THREADS): New macro.
3513 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3514 instead of ALL_THREADS.
3515 * infrun.c (find_thread_needs_step_over)
3516 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3517 instead of ALL_THREADS.
3518 * record-btrace.c (record_btrace_open)
3519 (record_btrace_stop_recording, record_btrace_close)
3520 (record_btrace_is_replaying, record_btrace_resume)
3521 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3522 * remote.c (append_pending_thread_resumptions): Likewise.
3523 * thread.c (thread_apply_all_command): Likewise.
3524
3525 2014-06-19 Gary Benson <gbenson@redhat.com>
3526
3527 * i386-nat.c (i386_stopped_by_watchpoint):
3528 Use i386_dr_stopped_by_watchpoint.
3529 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3530 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3531
3532 2014-06-19 Gary Benson <gbenson@redhat.com>
3533
3534 * nat/i386-dregs.c: New file.
3535 * Makefile.in (i386-dregs.o): New rule.
3536 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3537 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3538 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3539 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3540 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3541 * config/i386/go32.mh (NATDEPFILES): Likewise.
3542 * config/i386/linux.mh (NATDEPFILES): Likewise.
3543 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3544 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3545 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3546 * i386-nat.h (debug_hw_points): New declaration.
3547 * i386-nat.c (breakpoint.h): Remove include.
3548 (command.h): Likewise.
3549 (target.h): Likewise.
3550 (gdb_assert.h): Likewise.
3551 (debug_hw_points): Made nonstatic.
3552 (debug_printf): Now in i386-dregs.c.
3553 (TARGET_HAS_DR_LEN_8): Likewise.
3554 (DR_CONTROL_SHIFT): Likewise.
3555 (DR_CONTROL_SIZE): Likewise.
3556 (DR_RW_EXECUTE): Likewise.
3557 (DR_RW_WRITE): Likewise.
3558 (DR_RW_READ): Likewise.
3559 (DR_RW_IORW): Likewise.
3560 (DR_LEN_1): Likewise.
3561 (DR_LEN_2): Likewise.
3562 (DR_LEN_4): Likewise.
3563 (DR_LEN_8): Likewise.
3564 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3565 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3566 (DR_ENABLE_SIZE): Likewise.
3567 (DR_LOCAL_SLOWDOWN): Likewise.
3568 (DR_GLOBAL_SLOWDOWN): Likewise.
3569 (DR_CONTROL_RESERVED): Likewise.
3570 (I386_DR_CONTROL_MASK): Likewise.
3571 (I386_DR_VACANT): Likewise.
3572 (I386_DR_LOCAL_ENABLE): Likewise.
3573 (I386_DR_GLOBAL_ENABLE): Likewise.
3574 (I386_DR_DISABLE): Likewise.
3575 (I386_DR_SET_RW_LEN): Likewise.
3576 (I386_DR_GET_RW_LEN): Likewise.
3577 (I386_DR_WATCH_HIT): Likewise.
3578 (i386_wp_op_t): Likewise.
3579 (i386_show_dr): Likewise.
3580 (i386_length_and_rw_bits): Likewise.
3581 (i386_insert_aligned_watchpoint): Likewise.
3582 (i386_remove_aligned_watchpoint): Likewise.
3583 (i386_handle_nonaligned_watchpoint): Likewise.
3584 (i386_update_inferior_debug_regs): Likewise.
3585 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3586 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3587 (i386_region_ok_for_watchpoint):
3588 Use i386_dr_region_ok_for_watchpoint.
3589 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3590
3591 2014-06-19 Gary Benson <gbenson@redhat.com>
3592
3593 * i386-nat.c (i386_insert_hw_breakpoint): Use
3594 i386_insert_watchpoint.
3595 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3596
3597 2014-06-19 Gary Benson <gbenson@redhat.com>
3598
3599 * i386-nat.c (i386_dr_show): Renamed to
3600 i386_show_dr and made static. All uses updated.
3601 (i386_dr_length_and_rw_bits): Renamed to
3602 i386_length_and_rw_bits and made static.
3603 All uses updated.
3604 (i386_dr_insert_aligned_watchpoint): Renamed to
3605 i386_insert_aligned_watchpoint and made static.
3606 All uses updated.
3607 (i386_dr_remove_aligned_watchpoint): Renamed to
3608 i386_remove_aligned_watchpoint and made static.
3609 All uses updated.
3610 (i386_dr_update_inferior_debug_regs): Renamed to
3611 i386_update_inferior_debug_regs and made static.
3612 All uses updated.
3613 * nat/i386-dregs.h (i386_dr_show): Removed.
3614 (i386_dr_length_and_rw_bits): Likewise.
3615 (i386_dr_insert_aligned_watchpoint): Likewise.
3616 (i386_dr_remove_aligned_watchpoint): Likewise.
3617 (i386_dr_update_inferior_debug_regs): Likewise.
3618
3619 2014-06-19 Gary Benson <gbenson@redhat.com>
3620
3621 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3622 * configure: Regenerate.
3623 * config.in: Likewise.
3624 * main.c (signal.h): New include.
3625 (setup_alternate_signal_stack): New function.
3626 (captured_main): Call the above.
3627 * cp-support.c (signal.h): New include.
3628 (catch_demangler_crashes): New flag.
3629 (SIGJMP_BUF): New define.
3630 (SIGSETJMP): Likewise.
3631 (SIGLONGJMP): Likewise.
3632 (gdb_demangle_jmp_buf): New static global.
3633 (gdb_demangle_attempt_core_dump): Likewise.
3634 (gdb_demangle_signal_handler): New function.
3635 (gdb_demangle): If catch_demangler_crashes is set, install the
3636 above signal handler before calling bfd_demangle, and restore
3637 the original signal handler afterwards. Display the offending
3638 symbol and call demangler_warning the first time a segmentation
3639 fault is caught.
3640 (_initialize_cp_support): New maint set/show command.
3641
3642 2014-06-19 Gary Benson <gbenson@redhat.com>
3643
3644 * utils.h (resource_limit_kind): New enum.
3645 (can_dump_core): New declaration.
3646 (warn_cant_dump_core): Likewise.
3647 (dump_core): Likewise.
3648 * utils.c (dump_core): Made nonstatic. Added new
3649 parameter "limit_kind".
3650 (can_dump_core): Made nonstatic. Moved printing code to...
3651 (warn_cant_dump_core): New function.
3652 (can_dump_core_warn): Likewise.
3653 (internal_vproblem): Replace calls to can_dump_core with
3654 calls to can_dump_core_warn. Supply new argument to each.
3655
3656 2014-06-19 Gary Benson <gbenson@redhat.com>
3657
3658 * utils.h (demangler_vwarning): New declaration.
3659 (demangler_warning): Likewise.
3660 * utils.c (struct internal_problem)
3661 <user_settable_should_quit>: New field.
3662 <user_settable_should_dump_core>: Likewise
3663 (internal_error_problem): Add values for above new fields.
3664 (internal_warning_problem): Likewise.
3665 (demangler_warning_problem): New static global.
3666 (demangler_vwarning): New function.
3667 (demangler_warning): Likewise.
3668 (add_internal_problem_command): Selectively add commands.
3669 (_initialize_utils): New internal problem command.
3670 * maint.c (maintenance_demangler_warning): New function.
3671 (_initialize_maint_cmds): New command.
3672
3673 2014-06-18 Tom Tromey <tromey@redhat.com>
3674
3675 * f-valprint.c (info_common_command_for_block): Update.
3676 * symtab.h (struct general_symbol_info) <common_block>: Now
3677 const.
3678
3679 2014-06-18 Tom Tromey <tromey@redhat.com>
3680
3681 * symtab.h (struct symtab) <blockvector>: Now const.
3682 * ada-lang.c (ada_add_global_exceptions): Update.
3683 * buildsym.c (augment_type_symtab): Update.
3684 * dwarf2read.c (dw2_lookup_symbol): Update.
3685 * jit.c (finalize_symtab): Update.
3686 * jv-lang.c (add_class_symtab_symbol): Update.
3687 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3688 Update.
3689 * objfiles.c (objfile_relocate1): Update.
3690 * psymtab.c (lookup_symbol_aux_psymtabs)
3691 (maintenance_check_psymtabs): Update.
3692 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3693 Update.
3694 * spu-tdep.c (spu_catch_start): Update.
3695 * symmisc.c (dump_symtab_1): Update.
3696 * symtab.c (lookup_global_symbol_from_objfile)
3697 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3698 (basic_lookup_transparent_type_quick)
3699 (basic_lookup_transparent_type, find_pc_sect_symtab)
3700 (find_pc_sect_line, search_symbols): Update.
3701 * block.c (find_block_in_blockvector): Make "bl" const.
3702 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3703 const.
3704 (blockvector_contains_pc): Make "bv" const.
3705 (block_for_pc_sect): Update.
3706 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3707 (blockvector_contains_pc): Update.
3708 * breakpoint.c (resolve_sal_pc): Update.
3709 * inline-frame.c (block_starting_point_at): Update.
3710
3711 2014-06-18 Tom Tromey <tromey@redhat.com>
3712
3713 * completer.c (complete_line): Make "line_buffer" const.
3714 * completer.h (complete_line): Update.
3715
3716 2014-06-18 Tom Tromey <tromey@redhat.com>
3717
3718 * symtab.c (add_macro_name): Remove unneeded cast.
3719
3720 2014-06-18 Tom Tromey <tromey@redhat.com>
3721
3722 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3723 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3724
3725 2014-06-18 Tom Tromey <tromey@redhat.com>
3726
3727 * probe.c (info_probes_for_ops): Make "arg" const.
3728 * probe.h (info_probes_for_ops): Update.
3729
3730 2014-06-18 Tom Tromey <tromey@redhat.com>
3731
3732 * varobj.c (varobj_create): Update.
3733 * valops.c (value_of_this): Update.
3734 * tracepoint.c (add_local_symbols, scope_info): Update.
3735 * symtab.h (struct general_symbol_info) <block>: Now const.
3736 * symtab.c (skip_prologue_sal)
3737 (default_make_symbol_completion_list_break_on)
3738 (skip_prologue_using_sal): Update.
3739 * stack.h (iterate_over_block_locals)
3740 (iterate_over_block_local_vars): Update.
3741 * stack.c (print_frame_args): Update.
3742 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3743 parameter const.
3744 (get_selected_block): Make return type const.
3745 * python/py-frame.c (frapy_block): Update.
3746 * python/py-block.c (gdbpy_block_for_pc): Update.
3747 * p-exp.y (%union) <bval>: Now const.
3748 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3749 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3750 * m2-exp.y (%union) <bval>: Now const.
3751 * linespec.c (get_current_search_block): Make return type const.
3752 (create_sals_line_offset, find_label_symbols): Update.
3753 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3754 Update.
3755 (block_starting_point_at): Make "block" const.
3756 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3757 (check_exception_resume): Update.
3758 * guile/scm-frame.c (gdbscm_frame_block): Update.
3759 * guile/scm-block.c (gdbscm_lookup_block): Update.
3760 * frame.h (get_frame_block): Update.
3761 (get_selected_block): Make return type const.
3762 * frame.c (frame_id_inner): Update.
3763 * f-valprint.c (info_common_command_for_block)
3764 (info_common_command): Update.
3765 * dwarf2loc.c (dwarf2_find_location_expression)
3766 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3767 (locexpr_describe_location_piece): Update.
3768 * c-exp.y (%union) <bval>: Now const.
3769 * breakpoint.c (resolve_sal_pc): Update.
3770 * blockframe.c (get_frame_block):Make return type const.
3771 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3772 (block_innermost_frame): Update.
3773 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3774 (block_for_pc, block_for_pc_sect): Update.
3775 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3776 'pblock' const.
3777 (block_for_pc_sect, block_for_pc): Make return type const.
3778 * ax-gdb.c (gen_expr): Update.
3779 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3780 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3781 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3782 (ada_read_var_value): Update.
3783 * ada-exp.y (struct name_info) <block>: Now const.
3784 (%union): Likewise.
3785 (block_lookup): Constify.
3786
3787 2014-06-18 Gary Benson <gbenson@redhat.com>
3788
3789 * nat/i386-dregs.h: New file.
3790 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3791 * i386-nat.h (i386-dregs.h): New include.
3792 (DR_FIRSTADDR): Now in i386-dregs.h.
3793 (DR_LASTADDR): Likewise.
3794 (DR_NADDR): Likewise.
3795 (DR_STATUS): Likewise.
3796 (DR_CONTROL): Likewise.
3797 (i386_debug_reg_state): Likewise.
3798 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3799
3800 2014-06-18 Don Breazeal <donb@codesourcery.com>
3801
3802 * breakpoint.c (set_longjmp_breakpoint): Call
3803 momentary_breakpoint_from_master with additional argument.
3804 (set_longjmp_breakpoint_for_call_dummy): Call
3805 momentary_breakpoint_from_master with additional argument.
3806 (set_std_terminate_breakpoint): Call
3807 momentary_breakpoint_from_master with additional argument.
3808 (momentary_breakpoint_from_master): Add argument to function
3809 definition and use it to initialize structure member flag.
3810 (clone_momentary_breakpoint): Call
3811 momentary_breakpoint_from_master with additional argument.
3812 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3813 member flags set in momentary_breakpoint_from_master.
3814
3815 2014-06-18 Gary Benson <gbenson@redhat.com>
3816
3817 * i386-nat.c (i386_show_dr): Renamed to
3818 i386_dr_show and made nonstatic. All uses updated.
3819 (i386_length_and_rw_bits): Renamed to
3820 i386_dr_length_and_rw_bits and made nonstatic.
3821 All uses updated.
3822 (i386_insert_aligned_watchpoint): Renamed to
3823 i386_dr_insert_aligned_watchpoint and made nonstatic.
3824 All uses updated.
3825 (i386_remove_aligned_watchpoint): Renamed to
3826 i386_dr_remove_aligned_watchpoint and made nonstatic.
3827 All uses updated.
3828 (i386_update_inferior_debug_regs): Renamed to
3829 i386_dr_update_inferior_debug_regs and made nonstatic.
3830 All uses updated.
3831
3832 2014-06-18 Gary Benson <gbenson@redhat.com>
3833
3834 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3835 (i386_dr_low_can_set_control): Likewise.
3836 (i386_dr_low_set_addr): Likewise.
3837 (i386_dr_low_set_control): Likewise.
3838 (i386_dr_low_get_addr): Likewise.
3839 (i386_dr_low_get_status): Likewise.
3840 (i386_dr_low_get_control): Likewise.
3841 (i386_insert_aligned_watchpoint): Use new macros.
3842 (i386_update_inferior_debug_regs): Likewise.
3843 (i386_stopped_data_address): Likewise.
3844
3845 2014-06-18 Gary Benson <gbenson@redhat.com>
3846
3847 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3848 New parameter. All uses updated.
3849
3850 2014-06-18 Gary Benson <gbenson@redhat.com>
3851
3852 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3853 All uses updated.
3854
3855 2014-06-18 Gary Benson <gbenson@redhat.com>
3856
3857 * i386-nat.c (debug_printf): New macro.
3858 (i386_get_debug_register_length): Likewise.
3859 (TARGET_HAS_DR_LEN_8): Use above macro.
3860 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3861 and printf_unfiltered. Use phex to format values.
3862
3863 2014-06-18 Gary Benson <gbenson@redhat.com>
3864
3865 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3866 Make const.
3867
3868 2014-06-18 Gary Benson <gbenson@redhat.com>
3869
3870 * i386-nat.c: Comment changes.
3871
3872 2014-06-18 Gary Benson <gbenson@redhat.com>
3873
3874 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3875
3876 2014-06-18 Gary Benson <gbenson@redhat.com>
3877
3878 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3879 (i386_insert_aligned_watchpoint): Likewise.
3880 (i386_remove_aligned_watchpoint): Likewise.
3881 (i386_handle_nonaligned_watchpoint): Likewise.
3882
3883 2014-06-18 Gary Benson <gbenson@redhat.com>
3884
3885 * i386-nat.c: Whitespace changes.
3886
3887 2014-06-17 Samuel Bronson <naesten@gmail.com>
3888
3889 * MAINTAINERS: Update Roland McGrath's email address.
3890 Thanks to Sergio Durigan Junior for pointing out that he left
3891 Red Hat a while ago, and giving me a current address.
3892
3893 2014-06-17 Tom Tromey <tromey@redhat.com>
3894
3895 * utils.h (savestring): Remove declaration.
3896
3897 2014-06-17 Tom Tromey <tromey@redhat.com>
3898
3899 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3900
3901 2014-06-16 Keith Seitz <keiths@redhat.com>
3902
3903 PR mi/15863
3904 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3905 to update the varobj if inferior_ptid is null_ptid.
3906
3907 2014-06-16 Tom Tromey <tromey@redhat.com>
3908
3909 * target.h (struct target_ops) <to_info_proc>: Make parameter
3910 const.
3911 (target_info_proc): Update.
3912 * target.c (target_info_proc): Make "args" const.
3913 * procfs.c (procfs_info_proc): Update.
3914 * linux-tdep.c (linux_info_proc): Update.
3915 (linux_core_info_proc_mappings): Make "args" const.
3916 (linux_core_info_proc): Update.
3917 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3918 * gdbarch.c: Rebuild.
3919 * gdbarch.h: Rebuild.
3920 * corelow.c (core_info_proc): Update.
3921
3922 2014-06-16 Tom Tromey <tromey@redhat.com>
3923
3924 * target.h (struct target_ops) <to_disconnect>: Make parameter
3925 const.
3926 (target_disconnect): Update.
3927 * target.c (target_disconnect): Make "args" const.
3928 * target-delegates.c: Rebuild.
3929 * remote.c (remote_disconnect): Update.
3930 * record.h (record_disconnect): Update.
3931 * record.c (record_disconnect): Update.
3932 * inf-child.c (inf_child_disconnect): Update.
3933
3934 2014-06-16 Tom Tromey <tromey@redhat.com>
3935
3936 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3937 * target.c (debug_to_rcmd, default_rcmd): Update.
3938 * target-delegates.c: Rebuild.
3939 * remote.c (remote_rcmd): Update.
3940 * monitor.c (monitor_rcmd): Update.
3941
3942 2014-06-16 Pedro Alves <palves@redhat.com>
3943
3944 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3945 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3946 have OBJF_SHARED set.
3947 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3948 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3949 instead of OBJF_USERLOADED.
3950 * objfiles.h (OBJF_SHARED): Update comment.
3951 (userloaded_objfile_contains_address_p): Rename to ...
3952 (shared_objfile_contains_address_p): ... this, and update
3953 comments.
3954 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3955 new objfile.
3956 (remove_symbol_file_command): Skip objfiles that don't have
3957 OBJF_SHARED set.
3958
3959 2014-06-16 Tom Tromey <tromey@redhat.com>
3960
3961 * minsyms.h (prim_record_minimal_symbol)
3962 (prim_record_minimal_symbol_and_info): Update comments.
3963
3964 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3965
3966 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3967 or --without-guile, according to how GDB was built.
3968
3969 2014-06-13 Tom Tromey <tromey@redhat.com>
3970
3971 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3972 to help_list.
3973 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3974 to help_list.
3975 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3976 help_list.
3977 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3978 help_list.Pass all_commands, not -1, to help_list.
3979 * cli/cli-dump.c (dump_command, append_command)
3980 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3981 (binary_dump_command, binary_append_command): Pass all_commands,
3982 not -1, to help_list.
3983 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3984 -1, to help_list.
3985 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3986 -1, to help_list.
3987 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3988 help_list.
3989 * top.c (set_history): Pass all_commands, not -1, to help_list.
3990 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3991 all_commands, not -1, to help_list.
3992 * symfile.c (overlay_command): Pass all_commands, not -1, to
3993 help_list.
3994 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3995 help_list.
3996 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3997 help_list.
3998 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3999 -1, to help_list.
4000 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4001 not -1, to help_list.
4002 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4003 not -1, to help_list.
4004 * maint.c (maintenance_command, maintenance_info_command)
4005 (maintenance_print_command, maintenance_set_cmd): Pass
4006 all_commands, not -1, to help_list.
4007 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4008 help_list.
4009 * language.c (set_check): Pass all_commands, not -1, to help_list.
4010 * infcmd.c (unset_command): Pass all_commands, not -1, to
4011 help_list.
4012 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4013 help_list.
4014 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4015 help_list.
4016 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4017 help_list.
4018 * breakpoint.c (save_command): Pass all_commands, not -1, to
4019 help_list.
4020 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4021 all_commands, not -1, to help_list.
4022
4023 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4024
4025 * regcache.c (struct register_to_invalidate): New structure.
4026 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4027 functions.
4028 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4029
4030 2014-06-12 Yao Qi <yao@codesourcery.com>
4031
4032 * varobj.c (varobj_get_num_children): Call
4033 varobj_is_dynamic_p.
4034 (varobj_list_children): Likewise.
4035 (varobj_update): Likewise. Update comments.
4036
4037 2014-06-12 Yao Qi <yao@codesourcery.com>
4038
4039 * varobj.c (varobj_pretty_printed_p): Rename to ...
4040 (varobj_is_dynamic_p): ... this. New function.
4041 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4042 (varobj_is_dynamic_p): Declare.
4043 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4044 (mi_print_value_p, varobj_update_one): Likewise.
4045
4046 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4047 Yao Qi <yao@codesourcery.com>
4048
4049 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4050 (varobj_get_iterator): Wrap up code for pretty-printer by
4051 "#if HAVE_PYTHON" and "#endif".
4052 (update_dynamic_varobj_children): Likewise.
4053
4054 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4055 Yao Qi <yao@codesourcery.com>
4056
4057 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4058 gdb_python_initialized is false. Move some code from varobj.c.
4059 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4060 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4061 (struct varobj_item): Moved to varobj-iter.h".
4062 (varobj_clear_saved_item): New function.
4063 (update_dynamic_varobj_children): Move python-related code to
4064 py-varobj.c.
4065 (free_variable): Call varobj_clear_saved_item and
4066 varobj_iter_delete.
4067
4068 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4069 Yao Qi <yao@codesourcery.com>
4070
4071 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4072 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4073 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4074 (py-varobj.o): New rule.
4075 * python/py-varobj.c: New file.
4076 * python/python-internal.h (py_varobj_get_iterator): Declare.
4077 * varobj-iter.h: New file.
4078 * varobj.c: Include "varobj-iter.h"
4079 (struct varobj) <child_iter>: Change its type from "PyObject *"
4080 to "struct varobj_iter *".
4081 <saved_item>: Likewise.
4082 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4083 [HAVE_PYTHON] (varobj_get_iterator): New function.
4084 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4085 python-specific code to python/py-varobj.c.
4086 (install_visualizer): Call varobj_iter_delete instead of
4087 Py_XDECREF.
4088 * varobj.h (varobj_ensure_python_env): Declare.
4089
4090 2014-06-12 Yao Qi <yao@codesourcery.com>
4091
4092 * varobj.c (struct varobj_item): New structure.
4093 (create_child_with_value): Update declaration.
4094 (varobj_add_child): Replace arguments 'name' and 'value' with
4095 'item'. All callers updated.
4096 (install_dynamic_child): Likewise.
4097 (update_dynamic_varobj_children): Likewise.
4098 (varobj_add_child): Likewise.
4099 (create_child_with_value): Likewise.
4100
4101 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4102
4103 * NEWS: Create a new section for the next release branch.
4104 Rename the section of the current branch, now that it has
4105 been cut.
4106
4107 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4108
4109 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4110 * version.in: Bump version to 7.8.50.DATE-cvs.
4111
4112 2014-06-11 Pedro Alves <palves@redhat.com>
4113
4114 PR remote/17028
4115 * ser-mingw.c (net_windows_socket_check_pending): New function.
4116 (net_windows_select_thread): Ignore spurious wakeups. Use
4117 net_windows_socket_check_pending.
4118 (net_windows_wait_handle): Check for pending events with
4119 ioctlsocket, through net_windows_socket_check_pending, instead of
4120 checking the socket's event.
4121
4122 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4123
4124 * python/python-internal.h (gdb_PyObject_GetAttrString)
4125 (gdb_PyObject_HasAttrString): New inline function definitions.
4126 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4127 char * of the second argument to PyObject_GetAttrString.
4128
4129 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4130
4131 * serial.c (serial_write): Fix index of character to be printed
4132 in call to serial_logchar when serial debug traces are enabled.
4133
4134 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4135
4136 * gdbtypes (resolve_dynamic_range): Add function description.
4137
4138 2014-06-09 Pedro Alves <palves@redhat.com>
4139
4140 * linux-nat.c (linux_child_follow_fork): Initialize status with
4141 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4142 inner block. Only pass the signal to PTRACE_DETACH if in pass
4143 state.
4144
4145 2014-06-09 Gary Benson <gbenson@redhat.com>
4146
4147 * common/signals.c (gdb_signal_from_host): Reorder to separate
4148 the always-available ANSI-standard signals from the signals that
4149 require checking.
4150 (do_gdb_signal_to_host): Likewise.
4151 * proc-events.c (signal_table): Likewise.
4152
4153 2014-06-08 Hui Zhu <hui@codesourcery.com>
4154
4155 * common/linux-ptrace.c (linux_disable_event_reporting): New
4156 function.
4157 * common/linux-ptrace.h (linux_disable_event_reporting): New
4158 declaration.
4159 * linux-nat.c (linux_child_follow_fork): Do a single step before
4160 detach.
4161
4162 2014-06-07 Keith Seitz <keiths@redhat.com>
4163
4164 Revert:
4165 PR c++/16253
4166 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4167 from symbol_matches_domain in symtab.c. All local callers
4168 of symbol_matches_domain updated.
4169 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4170 search STRUCT_DOMAIN.
4171 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4172 independently. standard_lookup will do that automatically.
4173 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4174 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4175 (cp_lookup_symbol_in_namespace): Likewise.
4176 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4177 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4178 may return a STRUCT_DOMAIN match.
4179 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4180 * cp-support.c: Include language.h.
4181 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4182 VAR_DOMAIN.
4183 * psymtab.c (match_partial_symbol): Compare the requested
4184 domain with the symbol's domain directly.
4185 (lookup_partial_symbol): Likewise.
4186 * symtab.c (lookup_symbol_in_language): Explain when/why
4187 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4188 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4189 appropriate languages.
4190 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4191 and moved to ada-lang.c
4192 (lookup_block_symbol): Explain that this function only returns
4193 symbol matching the requested DOMAIN.
4194 Compare the requested domain with the symbol's domain directly.
4195 (iterate_over_symbols): Compare the requested domain with the
4196 symbol's domain directly.
4197 * symtab.h (symbol_matches_domain): Remove.
4198
4199 2014-06-06 Doug Evans <xdje42@gmail.com>
4200
4201 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4202 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4203 (gdbscm_guile_version_is_at_least): Declare.
4204 (gdbscm_scm_string_to_int): Declare.
4205 * guile/guile.c (gdbscm_guile_major_version): New global.
4206 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4207 (guile_datadir): New static global.
4208 (gdbscm_guile_data_directory): New function.
4209 (initialize_scheme_side): Update.
4210 (misc_guile_functions): Add guile-data-directory.
4211 (initialize_gdb_module): Fetch guile version number.
4212 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4213 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4214 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4215 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4216 comments.
4217 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4218 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4219 * guile/scm-value.c (gdbscm_value_to_string): Only call
4220 scm_port_conversion_strategy if Guile version >= 2.0.6.
4221
4222 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4223
4224 * main.c (print_gdb_help): Add -q and --silent.
4225
4226 2014-06-06 Gary Benson <gbenson@redhat.com>
4227
4228 * common/signals.c: Remove preprocessor conditionals for
4229 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4230 SIGSEGV and SIGTERM.
4231 * proc-events.c: Likewise.
4232
4233 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4234
4235 * symfile.c (symfile_free_objfile): Remove restriction to
4236 OBJF_USERLOADED.
4237 * symfile-mem.c (symbol_file_add_from_memory): Call
4238 add_target_sections_of_objfile.
4239
4240 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4241
4242 * guile/scm-value.c (gdbscm_history_append_x): Use
4243 'vlscm_get_value_smob_arg_unsafe' instead of
4244 'vlscm_scm_to_value'.
4245
4246 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4247
4248 PR mi/15806
4249 * utils.c (printchar): Don't escape at all if quoter is NUL.
4250 Update function documentation to clarify effect of parameter
4251 QUOTER.
4252 * remote.c (escape_buffer): Pass '\\' as the quoter to
4253 fputstrn_unfiltered.
4254 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4255 generate the output.
4256 (mi_solib_unloaded): Same.
4257
4258 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4259
4260 * development.sh: Delete.
4261 * Makefile.in (config.status): Adjust dependency on development.sh.
4262 * configure.ac: Adjust development.sh source call.
4263 * configure: Regenerate.
4264
4265 2014-06-04 Doug Evans <xdje42@gmail.com>
4266
4267 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4268 is_scheme_bkpt, spec.
4269 (bpscm_make_breakpoint_smob): Initialize new members.
4270 (gdbscm_create_breakpoint_x): Split into two ...
4271 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4272 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4273 (scheme_function breakpoint_functions): Update.
4274 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4275 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4276 register-breakpoint!.
4277
4278 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4279
4280 PR server/17023
4281 * mem-break.c (z_type_supported): Return zero if
4282 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4283
4284 2014-06-04 Tom Tromey <tromey@redhat.com>
4285
4286 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4287 value_from_contents_and_address_unresolved.
4288 (ada_template_to_fixed_record_type_1): Likewise.
4289 (ada_which_variant_applies): Likewise.
4290 * value.h (value_from_contents_and_address_unresolved): Declare.
4291 * value.c (value_from_contents_and_address_unresolved): New
4292 function.
4293 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4294 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4295 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4296
4297 2014-06-04 Tom Tromey <tromey@redhat.com>
4298
4299 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4300
4301 2014-06-04 Tom Tromey <tromey@redhat.com>
4302
4303 * procfs.c (procfs_attach): Make "args" const.
4304 * windows-nat.c (windows_attach): Make "args" const.
4305 * nto-procfs.c (procfs_attach): Make "args" const.
4306 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4307 * go32-nat.c (go32_attach): Make "args" const.
4308 * gnu-nat.c (gnu_attach): Make "args" const.
4309 * darwin-nat.c (darwin_attach): Make "args" const.
4310 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4311 * linux-nat.c (linux_nat_attach): Make "args" const.
4312 * remote.c (extended_remote_attach_1, extended_remote_attach):
4313 Make "args" const.
4314 * target.h (struct target_ops) <to_attach>: Make "args" const.
4315 (find_default_attach): Likewise.
4316 * utils.c (parse_pid_to_attach): Make "args" const.
4317 * utils.h (parse_pid_to_attach): Update.
4318
4319 2014-06-04 Tom Tromey <tromey@redhat.com>
4320
4321 * target-delegates.c: Rebuild.
4322 * target.c (default_thread_address_space): New function.
4323 (target_thread_address_space): Simplify.
4324 * target.h (struct target_ops) <to_thread_address_space>: Add
4325 TARGET_DEFAULT_FUNC.
4326
4327 2014-06-04 Doug Evans <xdje42@gmail.com>
4328
4329 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4330
4331 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4332
4333 * record-btrace.c: Include event-loop.h and inf-loop.h.
4334 (record_btrace_resume_exec_dir)
4335 (record_btrace_async_inferior_event_handler)
4336 (record_btrace_handle_async_inferior_event): New.
4337 (record_btrace_open): Create async event handler.
4338 (record_btrace_close): Delete async event handler.
4339 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4340 Mark async event handler.
4341 (record_btrace_execution_direction): New.
4342 (init_record_btrace_ops): Initialize to_execution_direction.
4343
4344 2014-06-03 Doug Evans <xdje42@gmail.com>
4345
4346 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4347 (gdbscm_make_parameter): Ditto.
4348
4349 2014-06-03 Doug Evans <dje@google.com>
4350
4351 * exec.c (exec_close_1): Call clear_section_table instead of
4352 resize_section_table.
4353 (clear_section_table): New function.
4354 (resize_section_table): Make static. Rename arg num_added to
4355 adjustment.
4356 * exec.h (clear_section_table): Declare.
4357 (resize_section_table): Delete.
4358 * progspace.c (release_program_space): Call clear_section_table
4359 instead of resize_section_table.
4360
4361 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4362
4363 * NEWS (Python Scripting): Add entry about the new xmethods
4364 feature.
4365
4366 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4367
4368 * python/py-xmethods.c: New file.
4369 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4370 (objfpy_dealloc): XDECREF on the new xmethods field.
4371 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4372 field.
4373 (objfpy_get_xmethods): New function.
4374 (objfile_getset): New entry 'xmethods'.
4375 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4376 (pspy_dealloc): XDECREF on the new xmethods field.
4377 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4378 field.
4379 (pspy_get_xmethods): New function.
4380 (pspace_getset): New entry 'xmethods'.
4381 * python/python-internal.h: Add declarations for new functions.
4382 * python/python.c (_initialize_python): Invoke
4383 gdbpy_initialize_xmethods.
4384 * python/lib/gdb/__init__.py (xmethods): New
4385 attribute.
4386 * python/lib/gdb/xmethod.py: New file.
4387 * python/lib/gdb/command/xmethods.py: New file.
4388
4389 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4390
4391 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4392 best match method returned by find_overload_match is an xmethod.
4393 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4394 the best matching operator returned by find_overload_match is an
4395 xmethod.
4396 * valops.c: #include "extension.h".
4397 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4398 Return void. The list of matching source methods is returned in
4399 "fn_list" and a vector of matching debug method workers is
4400 returned in "xm_worker_vec". Update all callers.
4401 (value_find_oload_method_list): Likewise.
4402 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4403 non-NULL, then the index of the best matching method in this
4404 vector is returned. Update all callers.
4405 (find_overload_match): Include xmethods while performing overload
4406 resolution.
4407
4408 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4409
4410 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4411 * extension-priv.h (struct extension_language_ops): Add the
4412 xmethod interface.
4413 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4414 get_matching_xmethod_workers, get_xmethod_argtypes,
4415 invoke_xmethod, free_xmethod_worker,
4416 free_xmethod_worker_vec): New functions.
4417 * extension.h: #include "common/vec.h".
4418 New function declarations.
4419 (struct xmethod_worker): New struct.
4420 (VEC (xmethod_worker_ptr)): New vector type.
4421 (xmethod_worker_ptr): New typedef.
4422 (xmethod_worker_vec): Likewise.
4423 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4424 builtin_type.
4425 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4426 (struct builtin_type): New field "xmethod".
4427 * valarith.c (value_ptradd): Assert that the value argument is not
4428 lval_xcallable.
4429 * valops.c (value_must_coerce_to_target): Return 0 for
4430 lval_xcallable values.
4431 * value.c (struct value): New field XM_WORKER in the field
4432 LOCATION.
4433 (value_address, value_raw_address): Return 0 for lval_xcallable
4434 values.
4435 (set_value_address): Assert that the value is not an
4436 lval_xcallable.
4437 (value_free): Free the associated xmethod worker when freeing
4438 lval_xcallable values.
4439 (set_value_component_location): Assert that the WHOLE value is not
4440 lval_xcallable.
4441 (value_of_xmethod, call_xmethod): New functions.
4442 * value.h: Declare "struct xmethod_worker".
4443 Declare new functions value_of_xmethod, call_xmethod.
4444
4445 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4446 Pedro Alves <palves@redhat.com>
4447
4448 PR breakpoints/17000
4449 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4450 New function, extracted from software_breakpoint_inserted_here_p.
4451 (software_breakpoint_inserted_here_p): Replace factored out code
4452 by call to find_non_raw_software_breakpoint_inserted_here.
4453 (bp_target_info_copy_insertion_state): New function.
4454 (bkpt_insert_location): Handle the case of a single-step
4455 breakpoint already inserted at the same address.
4456 (bkpt_remove_location): Handle the case of a single-step
4457 breakpoint still inserted at the same address.
4458 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4459 breakpoint already inserted at the same address.
4460 (deprecated_remove_raw_breakpoint): Handle the case of a
4461 non-raw breakpoint still inserted at the same address.
4462 (find_single_step_breakpoint): New function, extracted from
4463 single_step_breakpoint_inserted_here_p.
4464 (find_single_step_breakpoint): New function,
4465 factored out from single_step_breakpoint_inserted_here_p.
4466 (single_step_breakpoint_inserted_here_p): Reimplement.
4467
4468 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4469
4470 Pushed by Joel Brobecker <brobecker@adacore.com>
4471 * source.c (show_substitute_path_command): Fix display of matching
4472 substitution rules.
4473
4474 2014-06-03 Gary Benson <gbenson@redhat.com>
4475
4476 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4477
4478 2014-06-02 Doug Evans <xdje42@gmail.com>
4479
4480 Add parameter support for Guile.
4481 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4482 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4483 (scm-param.o): New rule.
4484 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4485 (gdbscm_misc_error): Declare.
4486 (gdbscm_canonicalize_command_name): Declare.
4487 (gdbscm_scm_to_host_string): Declare.
4488 (gdbscm_scm_from_host_string): Declare.
4489 (gdbscm_initialize_parameters): Declare.
4490 * guile/guile.c (initialize_gdb_module): Call
4491 gdbscm_initialize_parameters.
4492 * guile/lib/gdb.scm: Export parameter symbols.
4493 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4494 cmdscm_canonicalize_name and made public. All callers updated.
4495 * guile/scm-exception.c (gdbscm_misc_error): New function.
4496 * guile/scm-param.c: New file.
4497 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4498 (gdbscm_scm_to_host_string): New function.
4499 (gdbscm_scm_from_host_string): New function.
4500 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4501
4502 2014-06-02 Doug Evans <xdje42@gmail.com>
4503
4504 Add command support for Guile.
4505 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4506 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4507 (scm-cmd.o): New rule.
4508 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4509 (gdbscm_user_error_p): Declare.
4510 (gdbscm_parse_command_name): Declare.
4511 (gdbscm_valid_command_class_p): Declare.
4512 (gdbscm_initialize_commands): Declare.
4513 * guile/guile.c (initialize_gdb_module): Call
4514 gdbscm_initialize_commands.
4515 * guile/lib/gdb.scm: Export command symbols.
4516 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4517 (throw-user-error): New function.
4518 * guile/scm-cmd.c: New file.
4519 * guile/scm-exception.c (user_error_symbol): New static global.
4520 (gdbscm_user_error_p): New function.
4521 (gdbscm_initialize_exceptions): Set user_error_symbol.
4522 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4523
4524 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4525
4526 * top.c (command_loop): Handle comments here...
4527 (command_line_input): ... not here.
4528
4529 2014-06-02 Doug Evans <xdje42@gmail.com>
4530
4531 Add progspace support for Guile.
4532 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4533 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4534 (scm-progspace.o): New rule.
4535 * guile/guile-internal.h (pspace_smob): New typedef.
4536 (psscm_pspace_smob_pretty_printers): Declare.
4537 (psscm_pspace_smob_from_pspace): Declare.
4538 (psscm_scm_from_pspace): Declare.
4539 * guile/guile.c (initialize_gdb_module): Call
4540 gdbscm_initialize_pspaces.
4541 * guile/lib/gdb.scm: Export progspace symbols.
4542 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4543 support.
4544 (append-pretty-printer!): Ditto.
4545 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4546 Implement.
4547 * guile/scm-progspace.c: New file.
4548
4549 2014-06-03 Alan Modra <amodra@gmail.com>
4550
4551 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4552 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4553
4554 2014-06-02 Doug Evans <dje@google.com>
4555
4556 Add support for skeletonless type units.
4557 * dwarf2read.c (struct dwarf2_per_objfile): New member
4558 n_allocated_type_units.
4559 (struct dwarf2_per_objfile) <tu_stats>: New member
4560 nr_all_type_units_reallocs.
4561 (create_signatured_type_table_from_index): Initialize
4562 n_allocated_type_units
4563 (create_all_type_units): Ditto.
4564 (add_type_unit): Move up in file. New arg slot.
4565 All callers updated. Increase space for all_type_units more
4566 efficiently.
4567 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4568 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4569 (lookup_dwp_signatured_type): Ditto.
4570 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4571 All callers updated.
4572 (build_type_psymtabs_1): Leave type_unit_groups as
4573 NULL if no TUs present.
4574 (print_tu_stats): New function.
4575 (process_skeletonless_type_unit): New function.
4576 (process_dwo_file_for_skeletonless_type_units): New
4577 function.
4578 (process_skeletonless_type_units): New function.
4579 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4580 Call print tu_stats if debugging enabled.
4581
4582 2014-06-02 Pedro Alves <palves@redhat.com>
4583
4584 * breakpoint.c (build_target_command_list): Don't build a command
4585 list if we have any duplicate location that isn't a dprintf.
4586
4587 2014-06-02 Pedro Alves <palves@redhat.com>
4588
4589 * breakpoint.c (dprintf_breakpoint_hit): New function.
4590 (initialize_breakpoint_ops): Install it as dprintf's
4591 breakpoint_hit method.
4592
4593 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4594
4595 * source.c (substitute_path_rule_matches): Simplify using
4596 filename_ncmp instead of FILENAME_CMP.
4597
4598 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4599
4600 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4601
4602 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4603
4604 * configure.ac: When Guile is available, check for the
4605 availability of 'scm_new_smob'.
4606 * configure, config.h.in: Regenerate.
4607 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4608 function.
4609
4610 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4611
4612 * frame.c (struct frame_info): Add stop_string field.
4613 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4614 (get_prev_frame_always): Old content moved into
4615 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4616 TRY_CATCH, handle MEMORY_ERROR exceptions.
4617 (frame_stop_reason_string): New function definition.
4618 * frame.h (unwind_stop_reason_to_string): Extend comment to
4619 mention frame_stop_reason_string.
4620 (frame_stop_reason_string): New function declaration.
4621 * stack.c (frame_info): Switch to frame_stop_reason_string.
4622 (backtrace_command_1): Switch to frame_stop_reason_string.
4623 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4624 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4625 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4626
4627 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4628
4629 * frame.c (frame_stop_reason_string): Rename to ...
4630 (unwind_stop_reason_to_string): this.
4631 * frame.h (frame_stop_reason_string): Rename to ...
4632 (unwind_stop_reason_to_string): this.
4633 * stack.c (frame_info): Update call to frame_stop_reason_string.
4634 (backtrace_command_1): Likewise.
4635 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4636 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4637
4638 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4639
4640 * frame.c (remove_prev_frame): New function.
4641 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4642 remove_prev_frame.
4643
4644 2014-05-29 Pedro Alves <palves@redhat.com>
4645
4646 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4647 and make it const. When a single-step decays to a continue,
4648 clear 'step', not 'hw_step'. Pass whether the caller wanted
4649 to step to user_visible_resume_ptid, not what we ask the
4650 target to do.
4651
4652 2014-05-29 Pedro Alves <palves@redhat.com>
4653
4654 * infrun.c (process_event_stop_test, handle_step_into_function)
4655 (handle_step_into_function_backward): Adjust.
4656 Don't set the even thread's stop_step and call stop_waiting before
4657 calling end_stepping_range. Instead do that ...
4658 (end_stepping_range): ... here. Take an ecs pointer parameter.
4659
4660 2014-05-29 Pedro Alves <palves@redhat.com>
4661
4662 * infrun.c (stop_stepping): Rename to ...
4663 (stop_waiting): ... this.
4664 (proceed): Update comment.
4665 (process_event_stop_test, handle_inferior_event)
4666 (handle_signal_stop, handle_step_into_function)
4667 (handle_step_into_function_backward): Update.
4668
4669 2014-05-29 Pedro Alves <palves@redhat.com>
4670
4671 * infcall.c (run_inferior_call): Don't check whether the current
4672 thread is running after the proceed call.
4673
4674 2014-05-29 Pedro Alves <palves@redhat.com>
4675 Tom Tromey <tromey@redhat.com>
4676
4677 * NEWS: Mention "maint set target-async", "set mi-async", and that
4678 background execution commands are now always available.
4679 * target.h (target_async_permitted): Update comment.
4680 * target.c (target_async_permitted, target_async_permitted_1):
4681 Default to 1.
4682 (set_target_async_command): Rename to ...
4683 (maint_set_target_async_command): ... this.
4684 (show_target_async_command): Rename to ...
4685 (maint_show_target_async_command): ... this.
4686 (_initialize_target): Adjust.
4687 * infcmd.c (prepare_execution_command): Make extern.
4688 * inferior.h (prepare_execution_command): Declare.
4689 * infrun.c (set_observer_mode): Leave target async alone.
4690 * mi/mi-interp.c (mi_interpreter_init): Install
4691 mi_on_sync_execution_done as sync_execution_done observer.
4692 (mi_on_sync_execution_done): New function.
4693 (mi_execute_command_input_handler): Don't print the prompt if we
4694 just started a synchronous command with an async target.
4695 (mi_on_resume): Check sync_execution before printing prompt.
4696 * mi/mi-main.h (mi_async_p): Declare.
4697 * mi/mi-main.c: Include gdbcmd.h.
4698 (mi_async_p): New function.
4699 (mi_async, mi_async_1): New globals.
4700 (set_mi_async_command, show_mi_async_command, mi_async): New
4701 functions.
4702 (exec_continue): Call prepare_execution_command.
4703 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4704 (mi_execute_async_cli_command): Use mi_async_p.
4705 (_initialize_mi_main): Install "set mi-async". Make
4706 "target-async" a deprecated alias.
4707
4708 2014-05-29 Pedro Alves <palves@redhat.com>
4709
4710 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4711 (_initialize_cli_interp): Adjust.
4712 * event-loop.c: Include "observer.h".
4713 (start_event_loop): Notify 'command_error' observers instead of
4714 calling display_gdb_prompt. Remove FIXME comment.
4715 * event-top.c (display_gdb_prompt): Remove call into the
4716 interpreters.
4717 * inf-loop.c: Include "observer.h".
4718 (inferior_event_handler): Notify 'command_error' observers instead
4719 of calling display_gdb_prompt.
4720 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4721 observers instead of calling display_gdb_prompt.
4722 * interps.c (interp_set): Don't call display_gdb_prompt.
4723 (current_interp_display_prompt_p): Delete.
4724 * interps.h (interp_prompt_p): Delete declaration.
4725 (interp_prompt_p_ftype): Delete.
4726 (struct interp_procs) <prompt_proc_p>: Delete field.
4727 (current_interp_display_prompt_p): Delete declaration.
4728 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4729 (_initialize_mi_interp): Adjust.
4730 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4731 'command_error' observers.
4732 (tui_on_sync_execution_done, tui_on_command_error): New
4733 functions.
4734 (tui_display_prompt_p): Delete.
4735 (_initialize_tui_interp): Adjust.
4736
4737 2014-05-29 Pedro Alves <palves@redhat.com>
4738
4739 PR gdb/13860
4740 * cli/cli-interp.c: Include infrun.h and observer.h.
4741 (cli_uiout, cli_interp): New globals.
4742 (cli_on_signal_received, cli_on_end_stepping_range)
4743 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4744 functions.
4745 (cli_interpreter_init): Install them as 'end_stepping_range',
4746 'signal_received' 'signal_exited', 'exited' and 'no_history'
4747 observers.
4748 (_initialize_cli_interp): Remove cli_interp local.
4749 * infrun.c (handle_inferior_event): Call the several stop reason
4750 observers instead of printing the stop reason directly.
4751 (end_stepping_range): New function.
4752 (print_end_stepping_range_reason, print_signal_exited_reason)
4753 (print_exited_reason, print_signal_received_reason)
4754 (print_no_history_reason): Make static, and add an uiout
4755 parameter. Print to that instead of to CURRENT_UIOUT.
4756 * infrun.h (print_end_stepping_range_reason)
4757 (print_signal_exited_reason, print_exited_reason)
4758 (print_signal_received_reason print_no_history_reason): New
4759 declarations.
4760 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4761 'mi_uiout'.
4762 <cli_uiout>: New field.
4763 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4764 uiout for CLI output. Install 'signal_received',
4765 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4766 observers.
4767 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4768 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4769 (mi_on_no_history): New functions.
4770 (ui_out_free_cleanup): Delete function.
4771 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4772 instead use the one already stored in the MI interpreter data.
4773 (mi_ui_out): Adjust.
4774 * tui/tui-interp.c: Include infrun.h and observer.h.
4775 (tui_interp): New global.
4776 (tui_on_signal_received, tui_on_end_stepping_range)
4777 (tui_on_signal_exited, tui_on_exited)
4778 (tui_on_no_history): New functions.
4779 (tui_init): Install them as 'end_stepping_range',
4780 'signal_received' 'signal_exited', 'exited' and 'no_history'
4781 observers.
4782 (_initialize_tui_interp): Delete tui_interp local.
4783
4784 2014-05-29 Pedro Alves <palves@redhat.com>
4785
4786 PR gdb/15713
4787 * linux-nat.c (linux_nat_resume_callback): Rename the second
4788 parameter to 'except'. Skip LP if it points to EXCEPT.
4789 (linux_nat_resume): Don't mark the event lwp as not stopped
4790 before resuming sibling lwps. Instead ask
4791 linux_nat_resume_callback to skip the event lwp. Mark it as not
4792 stopped after actually resuming it.
4793 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4794 resuming it.
4795 (wait_lwp): Mark the lwp as stopped here.
4796 (stop_wait_callback): Mark the lwp as not stopped right after
4797 resuming it. Don't mark lwps as stopped here.
4798 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4799 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4800
4801 2014-05-29 Pedro Alves <palves@redhat.com>
4802
4803 PR PR15693
4804 * infrun.c (resume): Determine how much to resume depending on
4805 whether the caller wanted a step, not whether we can hardware step
4806 the target. Mark all threads that we intend to run as running,
4807 unless we're calling an inferior function.
4808 (normal_stop): If the thread is running an infcall, don't finish
4809 thread state.
4810 * target.c (target_resume): Don't mark threads as running here.
4811
4812 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4813
4814 * serial.c (_initialize_serial): Remove support for
4815 the "set remotebaud" and "show remotebaud" commands.
4816 * NEWS: Add entry documenting the removal of that command.
4817
4818 2014-05-28 Yao Qi <yao@codesourcery.com>
4819
4820 * charset.c: Fix typo in comments.
4821
4822 2014-05-27 Gary Benson <gbenson@redhat.com>
4823
4824 * utils.c (internal_vproblem): Prompt for a bug report.
4825
4826 2014-05-26 Andy Wingo <wingo@igalia.com>
4827
4828 * guile/scm-arch.c (arscm_mark_arch_smob):
4829 * guile/scm-block.c (bkscm_mark_block_smob)
4830 (bkscm_mark_block_syms_progress_smob):
4831 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4832 * guile/scm-exception.c (exscm_mark_exception_smob):
4833 * guile/scm-frame.c (frscm_mark_frame_smob):
4834 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4835 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4836 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4837 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4838 (ppscm_mark_pretty_printer_worker_smob):
4839 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4840 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4841 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4842 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4843 mark functions.
4844 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4845 function.
4846
4847 2014-05-26 Andy Wingo <wingo@igalia.com>
4848 Doug Evans <xdje42@gmail.com>
4849
4850 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4851 empty_base_class. All uses updated.
4852 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4853 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4854 Adapt all callers.
4855 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4856 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4857 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4858 (gdbscm_gsmob_has_property_p, add_property_name)
4859 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4860 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4861 (gdb-object-has-property?, gdb-object-properties): Remove.
4862 (gdb-object-kind): Renamed from gsmob-kind.
4863
4864 2014-05-26 Andy Wingo <wingo@igalia.com>
4865
4866 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4867 * configure: Regenerate.
4868
4869 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4870
4871 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4872
4873 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4874
4875 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4876 (replay_memory_access_read_only, replay_memory_access_read_write)
4877 (replay_memory_access_types, replay_memory_access)
4878 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4879 (cmd_set_record_btrace, cmd_show_record_btrace)
4880 (cmd_show_replay_memory_access): New.
4881 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4882 (record_btrace_remove_breakpoint): Replace
4883 record_btrace_allow_memory_access with replay_memory_access.
4884 (_initialize_record_btrace): Add commands.
4885 * NEWS: Announce it.
4886
4887 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4888
4889 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4890
4891 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4892
4893 * MAINTAINERS (Write After Approval): Move self back from
4894 paper trail.
4895
4896 2014-05-22 Pedro Alves <palves@redhat.com>
4897
4898 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4899 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4900 (disable_randomization, enum exec_direction_kind)
4901 (execution_direction, stop_registers, start_remote)
4902 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4903 (wait_for_inferior, normal_stop, get_last_target_status)
4904 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4905 (insert_step_resume_breakpoint_at_sal)
4906 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4907 (set_step_info, print_stop_event, signal_stop_state)
4908 (signal_print_state, signal_pass_state, signal_stop_update)
4909 (signal_print_update, signal_pass_update)
4910 (update_signals_program_target, clear_exit_convenience_vars)
4911 (displaced_step_dump_bytes, update_observer_mode)
4912 (signal_catch_update, gdb_signal_from_command): Move
4913 declarations ...
4914 * infrun.h: ... to this new file.
4915 * amd64-tdep.c: Include infrun.h.
4916 * annotate.c: Include infrun.h.
4917 * arch-utils.c: Include infrun.h.
4918 * arm-linux-tdep.c: Include infrun.h.
4919 * arm-tdep.c: Include infrun.h.
4920 * break-catch-sig.c: Include infrun.h.
4921 * breakpoint.c: Include infrun.h.
4922 * common/agent.c: Include infrun.h instead of inferior.h.
4923 * corelow.c: Include infrun.h.
4924 * event-top.c: Include infrun.h.
4925 * go32-nat.c: Include infrun.h.
4926 * i386-tdep.c: Include infrun.h.
4927 * inf-loop.c: Include infrun.h.
4928 * infcall.c: Include infrun.h.
4929 * infcmd.c: Include infrun.h.
4930 * infrun.c: Include infrun.h.
4931 * linux-fork.c: Include infrun.h.
4932 * linux-nat.c: Include infrun.h.
4933 * linux-thread-db.c: Include infrun.h.
4934 * monitor.c: Include infrun.h.
4935 * nto-tdep.c: Include infrun.h.
4936 * procfs.c: Include infrun.h.
4937 * record-btrace.c: Include infrun.h.
4938 * record-full.c: Include infrun.h.
4939 * remote-m32r-sdi.c: Include infrun.h.
4940 * remote-mips.c: Include infrun.h.
4941 * remote-notif.c: Include infrun.h.
4942 * remote-sim.c: Include infrun.h.
4943 * remote.c: Include infrun.h.
4944 * reverse.c: Include infrun.h.
4945 * rs6000-tdep.c: Include infrun.h.
4946 * s390-linux-tdep.c: Include infrun.h.
4947 * solib-irix.c: Include infrun.h.
4948 * solib-osf.c: Include infrun.h.
4949 * solib-svr4.c: Include infrun.h.
4950 * target.c: Include infrun.h.
4951 * top.c: Include infrun.h.
4952 * windows-nat.c: Include infrun.h.
4953 * mi/mi-interp.c: Include infrun.h.
4954 * mi/mi-main.c: Include infrun.h.
4955 * python/py-threadevent.c: Include infrun.h.
4956
4957 2014-05-22 Pedro Alves <palves@redhat.com>
4958
4959 * infrun.c (handle_inferior_event): Store the exit code for
4960 --return-child-result here, instead of ...
4961 (print_exited_reason): ... here.
4962
4963 2014-05-21 Pedro Alves <palves@redhat.com>
4964
4965 PR gdb/13860
4966 * gdbthread.h (struct thread_control_state): New field
4967 `command_interp'.
4968 * infrun.c (follow_fork): Copy the new thread control field to the
4969 child fork thread.
4970 (clear_proceed_status_thread): Clear the new thread control field.
4971 (proceed): Set the new thread control field.
4972 * interps.h (command_interp): Declare.
4973 * interps.c (command_interpreter): New global.
4974 (command_interp): New function.
4975 (interp_exec): Set `command_interpreter' while here.
4976 * cli-out.c (cli_uiout_dtor): New function.
4977 (cli_ui_out_impl): Install it.
4978 * mi/mi-interp.c: Include cli-out.h.
4979 (mi_cmd_interpreter_exec): Add comment.
4980 (restore_current_uiout_cleanup): New function.
4981 (ui_out_free_cleanup): New function.
4982 (mi_on_normal_stop): If finishing an execution command started by
4983 a CLI command, or any kind of breakpoint-like event triggered,
4984 print the stop event to the output (CLI) stream.
4985 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4986
4987 2014-05-21 Pedro Alves <palves@redhat.com>
4988
4989 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4990 current source line having changed.
4991 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4992 * infrun.c (normal_stop): Adjust call to
4993 set_current_sal_from_frame.
4994 * source.c (clear_lines_listed_range): New function.
4995 (set_current_source_symtab_and_line, identify_source_line): Clear
4996 the lines listed range.
4997 (line_info): Handle the first "info line" after the current source
4998 line having changed.
4999 * stack.c (print_stack_frame): Remove center handling.
5000 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5001 center sal.line.
5002
5003 2014-05-21 Pedro Alves <palves@redhat.com>
5004
5005 * inf-child.c (inf_child_mourn_inferior): New function.
5006 * inf-child.h (inf_child_mourn_inferior): New declaration.
5007 * darwin-nat.c (darwin_mourn_inferior): Use
5008 inf_child_mourn_inferior.
5009 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5010 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5011 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5012 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5013 * windows-nat.c (windows_mourn_inferior): Likewise.
5014
5015 2014-05-21 Doug Evans <xdje42@gmail.com>
5016
5017 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5018
5019 2014-05-21 Doug Evans <xdje42@gmail.com>
5020
5021 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5022 (gdbscm_out_of_range_error): Ditto.
5023 (gdbscm_memory_error): Ditto.
5024 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5025 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5026 (gdbscm_out_of_range_error): Update.
5027 (gdbscm_memory_error): Update.
5028 (gdbscm_scm_to_target_string_unsafe): Delete.
5029
5030 2014-05-21 Pedro Alves <palves@redhat.com>
5031
5032 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5033 globals.
5034 (inf_child_open_target): New function.
5035 (inf_child_open): Use inf_child_open_target to push the target
5036 instead of erroring out.
5037 (inf_child_disconnect, inf_child_close)
5038 (inf_child_maybe_unpush_target): New functions.
5039 (inf_child_target): Install inf_child_disconnect and
5040 inf_child_close. Store a pointer to the returned object.
5041 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5042 declarations.
5043 * target.c (auto_connect_native_target): New global.
5044 (show_default_run_target): New function.
5045 (find_default_run_target): Return NULL if automatically connecting
5046 to the native target is disabled.
5047 (_initialize_target): Install set/show auto-connect-native-target.
5048 * NEWS: Mention "set auto-connect-native-target", and "target
5049 native".
5050 * linux-nat.c (super_close): New global.
5051 (linux_nat_close): Call super_close.
5052 (linux_nat_add_target): Store a pointer to the base class's
5053 to_close method.
5054 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5055 inf_child_maybe_unpush.
5056 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5057 already pushed.
5058 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5059 the inferior. Use inf_child_maybe_unpush_target.
5060 (inf_ttrace_attach): Don't push the target if it is already
5061 pushed.
5062 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5063 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5064 after mourning the inferior. Use inf_child_maybe_unpush_target.
5065 (darwin_attach_pid): Don't push the target if it is already
5066 pushed.
5067 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5068 mourning the inferior. Use inf_child_maybe_unpush_target.
5069 (gnu_detach): Use inf_child_maybe_unpush_target.
5070 * go32-nat.c (go32_create_inferior): Don't push the target if it
5071 is already pushed.
5072 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5073 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5074 (procfs_open): Rename to ...
5075 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5076 comments. Can target_preopen before changing node. Call
5077 inf_child_open_target to push the target explicitly.
5078 (procfs_attach): Don't push the target if it is already pushed.
5079 (procfs_detach): Use inf_child_maybe_unpush_target.
5080 (procfs_create_inferior): Don't push the target if it is already
5081 pushed.
5082 (nto_native_ops): New global.
5083 (procfs_open): Reimplement.
5084 (procfs_native_open): New function.
5085 (init_procfs_targets): Install procfs_native_open as to_open of
5086 "target native". Store a pointer to the "native" target in
5087 nto_native_ops.
5088 * procfs.c (procfs_attach): Don't push the target if it is already
5089 pushed.
5090 (procfs_detach): Use inf_child_maybe_unpush_target.
5091 (procfs_mourn_inferior): Only unpush the target after mourning the
5092 inferior. Use inf_child_maybe_unpush_target.
5093 (procfs_init_inferior): Don't push the target if it is already
5094 pushed.
5095 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5096 if it is already pushed.
5097
5098 2014-05-21 Pedro Alves <palves@redhat.com>
5099
5100 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5101 and "procfs" targets are now called "native" instead.
5102
5103 2014-05-21 Pedro Alves <palves@redhat.com>
5104
5105 * go32-nat.c (go32_open): Delete.
5106 (go32_target): Don't override the to_open method.
5107
5108 2014-05-21 Pedro Alves <palves@redhat.com>
5109
5110 * nto-procfs.c (procfs_can_run): New function.
5111 (nto_procfs_ops): New global.
5112 (init_procfs_targets): New, based on procfs_target. Install
5113 "target native" in addition to "target procfs".
5114 (_initialize_procfs): Call init_procfs_targets instead of adding
5115 the target here.
5116
5117 2014-05-21 Pedro Alves <palves@redhat.com>
5118
5119 * windows-nat.c (windows_target): Don't override to_shortname,
5120 to_longname or to_doc.
5121
5122 2014-05-21 Pedro Alves <palves@redhat.com>
5123
5124 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5125 to_doc.
5126
5127 2014-05-21 Pedro Alves <palves@redhat.com>
5128
5129 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5130 to_shortname, to_longname or to_doc.
5131
5132 2014-05-21 Pedro Alves <palves@redhat.com>
5133
5134 * go32-nat.c (go32_target): Don't override to_shortname,
5135 to_longname or to_doc.
5136
5137 2014-05-21 Pedro Alves <palves@redhat.com>
5138
5139 * inf-child.c (inf_child_open): Remove mention of "child".
5140 (inf_child_target): Rename target to "native" instead of "child".
5141
5142 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5143
5144 * Makefile.in (SFILES): Delete "regset.c".
5145 (COMMON_OBS): Delete "regset.o".
5146 * regset.c: Remove.
5147 * regset.h (regset_alloc): Delete prototype.
5148
5149 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5150
5151 * sparc-linux-tdep.c (sparc32_linux_gregset)
5152 (sparc32_linux_fpregset): New static regset structures.
5153 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5154 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5155 'fpregset' fields.
5156 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5157 (sparc64_linux_fpregset): New static regset structures.
5158 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5159 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5160 New static regset structures.
5161 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5162 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5163 New static regset structures.
5164 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5165 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5166 New static regset structures.
5167 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5168 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5169 New static regset structures.
5170 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5171
5172 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5173
5174 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5175 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5176 register maps ("regmaps") from "*regset" to "*regmap". Do this
5177 for all regmap types and variables.
5178 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5179 (sparc32_linux_supply_core_gregset)
5180 (sparc32_linux_collect_core_gregset)
5181 (sparc32_linux_supply_core_fpregset)
5182 (sparc32_linux_collect_core_fpregset): Likewise.
5183 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5184 (sparc_gregmap, sparc_fpregmap): ... these.
5185 (sparc_supply_gregset, sparc_collect_gregset)
5186 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5187 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5188 (_initialize_sparc_nat): Rename regmaps.
5189 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5190 (sparc_gregmap, sparc_fpregmap): ... these.
5191 (sparc_supply_gregset, sparc_collect_gregset)
5192 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5193 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5194 Rename macros to...
5195 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5196 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5197 Likewise.
5198 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5199 Rename to...
5200 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5201 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5202 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5203 regmaps.
5204 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5205 (sparc32_bsd_fpregset): Rename to...
5206 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5207 (sparc32_bsd_fpregmap): ... these.
5208 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5209 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5210 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5211 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5212 (struct sparc_gregmap, struct sparc_fpregmap)
5213 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5214 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5215 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5216 (sparc32_supply_regset, sparc32_collect_gregset)
5217 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5218 prototypes.
5219 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5220 (sparc64_linux_ptrace_gregmap): ... this.
5221 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5222 (_initialize_sparc64_linux_nat): Rename regmaps.
5223 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5224 (sparc64_linux_core_gregmap): ... this.
5225 (sparc64_linux_supply_core_gregset)
5226 (sparc64_linux_collect_core_gregset)
5227 (sparc64_linux_supply_core_fpregset)
5228 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5229 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5230 (sparc64_sol2_fpregset): Rename to...
5231 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5232 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5233 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5234 regmaps.
5235 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5236 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5237 (sparc64_bsd_fpregset): Rename to...
5238 (struct sparc_gregmap, sparc64_sol2_gregmap)
5239 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5240 (sparc64_bsd_fpregmap): ... these.
5241 (sparc64_supply_gregset, sparc64_collect_gregset)
5242 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5243 prototypes.
5244 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5245 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5246 (sparc64fbsd_gregmap): ... this.
5247 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5248 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5249 Rename regmaps.
5250 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5251 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5252 (sparc64nbsd_collect_fpregset): Likewise.
5253 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5254 (sparc64nbsd_gregmap): ... this.
5255 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5256 regmaps.
5257 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5258 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5259 (sparc64obsd_gregmap): ... this.
5260 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5261 regmaps.
5262 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5263 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5264 (sparc32nbsd_gregmap): ... this.
5265 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5266 regmaps.
5267
5268 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5269
5270 * score-tdep.c (score7_linux_gregset): New static regset
5271 structure.
5272 (score7_linux_regset_from_core_section): Remove dynamic regset
5273 allocation.
5274 (score_gdbarch_init): Drop allocation of tdep structure.
5275 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5276
5277 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5278
5279 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5280 regset structures.
5281 (am33_regset_from_core_section): Remove dynamic regset
5282 allocations.
5283
5284 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5285
5286 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5287 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5288 structures.
5289 (mips_linux_regset_from_core_section): Remove dynamic regset
5290 allocations.
5291 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5292 'gregset64', 'fpregset', and 'fpregset64'.
5293 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5294 deleted tdep fields.
5295
5296 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5297
5298 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5299 regset structures.
5300 (amd64_regset_from_core_section): Remove dynamic regset
5301 allocations.
5302 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5303 structure.
5304 (amd64obsd_regset_from_core_section): Remove dynamic regset
5305 allocation.
5306 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5307 Likewise.
5308 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5309 x86-common regset supply function.
5310 * i386-tdep.c (i386_collect_gregset): Make static.
5311 (i386_gregset): New global regset structure.
5312 (i386_fpregset, i386_xstateregset): New static regset structures.
5313 (i386_regset_from_core_section): Remove dynamic regset
5314 allocations.
5315 (i386_gdbarch_init): Remove initialization of tdep fields
5316 'gregset', 'fpregset', and 'xstateregset'.
5317 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5318 'fpregset', and 'xstateregset'.
5319 (i386_collect_gregset): Remove prototype.
5320 (i386_gregset): New declaration.
5321 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5322 structure.
5323 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5324 allocation.
5325
5326 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5327
5328 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5329 (arm_linux_vfpregset): New static regset structures.
5330 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5331 regset structures.
5332 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5333 and 'vfpregset' fields.
5334
5335 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5336
5337 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5338 (aarch64_linux_fpregset): New static regset structures.
5339 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5340 of regset structures.
5341 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5342 'fpregset' fields.
5343
5344 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5345
5346 * regset.h (struct regset): Remove gdbarch field.
5347 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5348 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5349 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5350 Likewise.
5351 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5352 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5353 (ppc32_linux_vsxregset): Likewise.
5354 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5355 via the regcache instead of the regset.
5356 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5357 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5358 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5359 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5360 Likewise.
5361
5362 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5363
5364 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5365 Constify structures.
5366 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5367 (alphanbsd_aout_gregset): Likewise.
5368 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5369 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5370 Likewise.
5371 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5372 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5373 Likewise.
5374 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5375 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5376 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5377 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5378 * m88k-tdep.c (m88k_gregset): Likewise.
5379 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5380 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5381 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5382 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5383 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5384 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5385 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5386 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5387 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5388 Likewise.
5389 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5390 * sh-tdep.h (sh_corefile_gregset): Likewise.
5391 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5392 * vax-tdep.c (vax_gregset): Likewise.
5393
5394 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5395
5396 Fix TLS access for -static -pthread.
5397 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5398 (try_thread_db_load_1): Initialize it.
5399 (thread_db_get_thread_local_address): Call it if LM is zero.
5400 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5401 * target.h (struct target_ops) (to_get_thread_local_address): Add
5402 load_module_addr comment.
5403
5404 2014-05-21 Pedro Alves <palves@redhat.com>
5405
5406 * dcache.c (dcache_read_memory_partial): If reading the cache line
5407 fails, fallback to reading just the memory the caller wanted.
5408
5409 2014-05-20 Doug Evans <dje@google.com>
5410
5411 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5412 instead of get_current_arch.
5413
5414 2014-05-20 Pedro Alves <palves@redhat.com>
5415
5416 * NEWS: Mention that compare-sections now works with all targets.
5417
5418 * remote.c (PACKET_qCRC): New enum value.
5419 (remote_verify_memory): Don't send qCRC if the target has no
5420 execution. Use packet_support/packet_ok. If the target doesn't
5421 support the qCRC packet, fallback to a deep memory copy.
5422 (compare_sections_command): Say "target image" instead of "remote
5423 executable".
5424 (_initialize_remote): Add PACKET_qCRC to the list of config
5425 packets that have no associated command. Extend comment.
5426 * target.c (simple_verify_memory, default_verify_memory): New
5427 function.
5428 * target.h (struct target_ops) <to_verify_memory>: Default to
5429 default_verify_memory.
5430 (simple_verify_memory): New declaration.
5431 * target-delegates.c: Regenerate.
5432
5433 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5434
5435 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5436
5437 2014-05-20 Hui Zhu <hui@codesourcery.com>
5438 Yao Qi <yao@codesourcery.com>
5439
5440 PR backtrace/16558
5441 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5442 and change address of sp and pc.
5443
5444 2014-05-19 Tom Tromey <tromey@redhat.com>
5445
5446 * gdbtypes.c (rank_function): Use XNEWVEC.
5447 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5448
5449 2014-05-19 Doug Evans <dje@google.com>
5450
5451 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5452 build_type_unit_groups and moved closer to only caller. Remove
5453 arguments. All references updated. Remove outdated .gdb_index
5454 comment.
5455 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5456 build_type_psymtabs_1.
5457
5458 2014-05-19 Doug Evans <dje@google.com>
5459
5460 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5461 n_type_unit_groups, all_type_unit_groups. All uses removed.
5462 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5463 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5464 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5465 (add_type_unit_group_to_table): Delete.
5466
5467 2014-05-19 Doug Evans <dje@google.com>
5468
5469 * eval.c (evaluate_subexp_standard): Add some comments.
5470
5471 2014-05-17 Doug Evans <xdje42@gmail.com>
5472
5473 * progspace.c (remove_program_space): Delete, unused.
5474 * progspace.h (remove_program_space): Ditto.
5475
5476 2014-05-17 Doug Evans <xdje42@gmail.com>
5477
5478 * inferior.c (prune_inferiors): Fix comment.
5479 (remove_inferior_command): Call prune_program_spaces.
5480
5481 2014-05-16 Doug Evans <dje@google.com>
5482
5483 New command line option -D.
5484 * NEWS: Mention it.
5485 * main.c (set_gdb_data_directory): New function.
5486 (captured_main): Recognize -D. Flag error for --data-directory "".
5487 Call set_gdb_data_directory.
5488 (print_gdb_help): Print --data-directory, -D.
5489 * main.h (set_gdb_data_directory): Declare.
5490 * top.c (staged_gdb_datadir): New static global.
5491 (set_gdb_datadir): Call set_gdb_data_directory
5492 (show_gdb_datadir): New function.
5493 (init_main): Update init of data-directory parameter.
5494
5495 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5496
5497 Import the "dirfd" gnulib module.
5498 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5499 * gnulib/aclocal.m4: Update.
5500 * gnulib/config.in: Update.
5501 * gnulib/configure: Update.
5502 * gnulib/import/Makefile.am: Update.
5503 * gnulib/import/Makefile.in: Update.
5504 * gnulib/import/dirfd.c: New.
5505 * gnulib/import/m4/dirfd.m4: New.
5506 * gnulib/import/m4/gnulib-cache.m4: Update.
5507 * gnulib/import/m4/gnulib-comp.m4: Update.
5508
5509 2014-05-16 Pierre Muller <muller@sourceware.org>
5510 Yao Qi <yao@codesourcery.com>
5511
5512 * valprint.c (print_wchar): Move the code on checking whether
5513 W is a printable wide char to the default branch of switch
5514 statement below. Call wchar_printable instead of gdb_iswprint.
5515
5516 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5517
5518 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5519 ldr.w and ldrd instructions.
5520
5521 2014-05-15 Doug Evans <dje@google.com>
5522
5523 * dwarf2read.c (read_structure_type): Delete outdated comments.
5524
5525 2014-05-14 Tom Tromey <tromey@redhat.com>
5526
5527 * macrocmd.c (print_macro_definition): Reindent.
5528
5529 2014-05-13 Doug Evans <xdje42@gmail.com>
5530
5531 * python/py-cmd.c (cmdpy_completer): Add comment.
5532 (completers): Make const.
5533
5534 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5535
5536 * infrun.c (resume): Remove should_resume (unused). Move up
5537 declaration of resume_ptid.
5538
5539 2014-05-13 Tom Tromey <tromey@redhat.com>
5540
5541 * language.h (unop_type_check): Remove.
5542 (binop_type_check): Don't declare.
5543
5544 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5545
5546 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5547 call to regcache_raw_collect.
5548
5549 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5550
5551 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5552 mi_console->quote as the quoting character.
5553
5554 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5555
5556 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5557
5558 2014-04-29 Tom Tromey <tromey@redhat.com>
5559
5560 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5561 "show debug varobj".
5562
5563 2014-05-07 Kyle McMartin <kyle@redhat.com>
5564
5565 Pushed by Joel Brobecker <brobecker@adacore.com>.
5566 * aarch64-tdep.c (aarch64_software_single_step): New function.
5567 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5568 with aarch64_software_single_step.
5569
5570 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5571
5572 GDB 7.7.1 released.
5573
5574 2014-05-05 Keith Seitz <keiths@redhat.com>
5575
5576 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5577 variable or history value is successfully parsed.
5578
5579 2014-05-05 Yao Qi <yao@codesourcery.com>
5580 Pedro Alves <palves@redhat.com>
5581
5582 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5583 address of blocks that intersects the requested range. Trim
5584 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5585 sections.
5586 * ctf.c (ctf_xfer_partial): Likewise.
5587
5588 2014-05-05 Yao Qi <yao@codesourcery.com>
5589
5590 * printcmd.c (display_command): Remove the check to
5591 target_has_execution.
5592
5593 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5594
5595 * ppcobsd-nat.c: Include "obsd-nat.h".
5596 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5597 add_target.
5598 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5599
5600 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5601
5602 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5603 and 16-bit signed and unsigned arguments. Update comment.
5604 (stap_parse_probe_arguments): Extend code to handle such
5605 arguments. Use warning instead of complaint to notify about
5606 unrecognized bitness.
5607
5608 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5609
5610 PR breakpoints/16889
5611 * stap-probe.c (stap_parse_probe_arguments): Simplify
5612 check for non-prefixed probes (i.e., probes whose
5613 arguments do not start with "N@"). Always set the
5614 argument type to a sane value.
5615
5616 2014-05-01 David Taylor <dtaylor@emc.com>
5617
5618 * remote.c (compare_sections_command): Add -r option to compare
5619 all loadable read-only sections.
5620
5621 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5622
5623 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5624 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5625 Update all callers.
5626 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5627 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5628 Remove unused CORE_ADDR argument. Update all callers.
5629
5630 2014-04-29 Pedro Alves <palves@redhat.com>
5631
5632 * remote.c (struct packet_config) <detect>: Extend comment.
5633 (add_packet_config_cmd): Don't set the config's detect or support
5634 fields here.
5635 (init_all_packet_configs): Also initialize the config's 'detect'
5636 field.
5637 (reset_all_packet_configs_support): New function.
5638 (remote_open_1): Call reset_all_packet_configs_support instead of
5639 init_all_packet_configs.
5640 (_initialize_remote): Initialize all packet configs. Assert that
5641 all packets have an associated command, except a few known
5642 outliers.
5643
5644 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5645
5646 * dwarf2read.c (read_subrange_type): Handle dynamic
5647 DW_AT_lower_bound attributes.
5648
5649 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5650
5651 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5652 dynamic bounds before computing its upper bound.
5653 (ada_discrete_type_low_bound): Same as above with the lower bound.
5654
5655 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5656
5657 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5658 range types. Adjust the array handling implementation to
5659 take advantage of this change.
5660 (resolve_dynamic_range): New function, mostly extracted from
5661 resolve_dynamic_bounds.
5662 (resolve_dynamic_array): New function, mostly extracted from
5663 resolve_dynamic_bounds.
5664 (resolve_dynamic_bounds): Delete.
5665 (resolve_dynamic_type): Reimplement. Add handling of
5666 TYPE_CODE_RANGE types.
5667
5668 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5669
5670 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5671 handling of parallel ___XA types.
5672
5673 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5674
5675 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5676 unnecessary second call to static_unwrap_type.
5677
5678 2014-04-27 Hui Zhu <hui@codesourcery.com>
5679
5680 * stack.c (print_frame_info): Call do_gdb_disassembly with
5681 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5682
5683 2014-04-26 Doug Evans <xdje42@gmail.com>
5684
5685 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5686
5687 2014-04-25 Pedro Alves <palves@redhat.com>
5688
5689 PR server/16255
5690 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5691 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5692 and newline from built string.
5693 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5694 (linux_ptrace_attach_fail_reason): ... this.
5695 * linux-nat.c (linux_nat_attach): Adjust to use
5696 linux_ptrace_attach_fail_reason.
5697
5698 2014-04-25 Pedro Alves <palves@redhat.com>
5699
5700 * remote.c (struct remote_state): Remove multi_process_aware,
5701 non_stop_aware, cond_tracepoints, cond_breakpoints,
5702 breakpoint_commands, fast_tracepoints, static_tracepoints,
5703 install_in_trace, disconnected_tracing,
5704 enable_disable_tracepoints, string_tracing, and
5705 augmented_libraries_svr4_read fields.
5706 (remote_multi_process_p): Move further below in the file.
5707 (struct packet_config): Add comments.
5708 (update_packet_config): Delete function.
5709 (show_packet_config_cmd): Use packet_config_support.
5710 (add_packet_config_cmd): Use NULL as set callback.
5711 (packet_ok): "set remote foo-packet"-style commands no longer
5712 change config->supported -- adjust.
5713 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5714 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5715 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5716 (PACKET_QNonStop, PACKET_multiprocess_feature)
5717 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5718 (PACKET_DisconnectedTracing_feature)
5719 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5720 (set_remote_protocol_packet_cmd): Delete function.
5721 (packet_config_support, packet_support): New functions.
5722 (set_remote_protocol_Z_packet_cmd): Don't call
5723 update_packet_config.
5724 (remote_query_attached, remote_pass_signals)
5725 (remote_program_signals, remote_threads_info)
5726 (remote_threads_extra_info, remote_start_remote): Use
5727 packet_support.
5728 (remote_start_remote): Use packet_config_support and
5729 packet_support.
5730 (init_all_packet_configs): Set all packets to unknown support,
5731 instead of calling update_packet_config.
5732 (remote_check_symbols): Use packet_support.
5733 (remote_supported_packet): Unconditionally set the packet config's
5734 support status.
5735 (remote_multi_process_feature, remote_non_stop_feature)
5736 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5737 (remote_breakpoint_commands_feature)
5738 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5739 (remote_install_in_trace_feature)
5740 (remote_disconnected_tracing_feature)
5741 (remote_enable_disable_tracepoint_feature)
5742 (remote_string_tracing_feature)
5743 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5744 (remote_protocol_features): Adjust to use remote_supported_packet
5745 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5746 "ConditionalTracepoints", "ConditionalBreakpoints",
5747 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5748 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5749 "EnableDisableTracepoints", and "tracenz".
5750 (remote_query_supported): Use packet_support.
5751 (remote_open_1): Adjust.
5752 (extended_remote_attach_1): Use packet_support. Switch on the
5753 result of packet_ok instead of checking whether the packet ended
5754 up disabled.
5755 (remote_vcont_resume): Use packet_support.
5756 (remote_resume, remote_stop_ns, fetch_register_using_p)
5757 (remote_prepare_to_store, store_register_using_P)
5758 (check_binary_download, remote_write_bytes): Use packet_support.
5759 (remote_vkill): Use packet_support. Switch on the result of
5760 packet_ok instead of checking whether the packet ended up
5761 disabled.
5762 (extended_remote_supports_disable_randomization): Use
5763 packet_support.
5764 (extended_remote_run): Switch on the result of packet_ok instead
5765 of checking whether the packet ended up disabled.
5766 (remote_insert_breakpoint, remote_remove_breakpoint)
5767 (remote_insert_watchpoint, remote_remove_watchpoint)
5768 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5769 packet_support.
5770 (remote_search_memory): Use packet_config_support.
5771 (remote_get_thread_local_address, remote_get_tib_address)
5772 (remote_hostio_send_command, remote_can_execute_reverse): Use
5773 packet_support.
5774 (remote_supports_cond_tracepoints)
5775 (remote_supports_cond_breakpoints)
5776 (remote_supports_fast_tracepoints)
5777 (remote_supports_static_tracepoints)
5778 (remote_supports_install_in_trace)
5779 (remote_supports_enable_disable_tracepoint)
5780 (remote_supports_string_tracing)
5781 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5782 the packet config says the feature is enabled or disabled.
5783 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5784 (remote_get_trace_status): Use packet_support.
5785 (remote_set_disconnected_tracing): Adjust to check whether the
5786 feature is enabled with packet_support.
5787 (remote_set_trace_buffer_size, remote_use_agent)
5788 (remote_can_use_agent, remote_supports_btrace): Use
5789 packet_support.
5790 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5791 Use packet_config_support.
5792 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5793 the packet config says the feature is enabled or disabled.
5794 (set_range_stepping): Use packet_support.
5795
5796 2014-04-25 Tom Tromey <tromey@redhat.com>
5797
5798 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5799 argument.
5800
5801 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5802
5803 * NEWS: Mention support for C99 variable length arrays.
5804
5805 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5806
5807 * ada-lang.c (standard_exc): Expand introductory comment.
5808
5809 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5810 Walfred Tedeschi <walfred.tedeschi@intel.com>
5811
5812 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5813 AVX512 registers.
5814 (amd64_linux_read_description): Add code to handle AVX512 xstate
5815 mask and return respective tdesc.
5816 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5817 and features/i386/x32-avx512-linux.c.
5818 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5819 (amd64_linux_core_read_description): Add code to handle AVX512
5820 xstate mask and return respective tdesc.
5821 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5822 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5823 calculation.
5824 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5825 (tdesc_amd64_avx512_linux): New prototype.
5826 (tdesc_x32_avx512_linux): Likewise.
5827 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5828 features/i386/x32-avx512.c.
5829 (amd64_ymm_avx512_names): New register names for pseudo
5830 registers YMM16-31.
5831 (amd64_ymmh_avx512_names): New register names for raw registers
5832 YMMH16-31.
5833 (amd64_k_names): New register names for K registers.
5834 (amd64_zmmh_names): New register names for ZMM raw registers.
5835 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5836 (amd64_xmm_avx512_names): New register names for XMM16-31
5837 registers.
5838 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5839 registers.
5840 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5841 if feature is present.
5842 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5843 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5844 (AMD64_NUM_REGS): Adjust to new number of registers.
5845 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5846 registers supplied via XSTATE by AVX512 registers.
5847 (i386_linux_read_description): Add case for AVX512.
5848 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5849 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5850 (i386_linux_core_read_description): Add case for AVX512.
5851 (i386_linux_init_abi): Install supported register note section
5852 for AVX512.
5853 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5854 AVX512.
5855 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5856 registers to be number of zmm7h + 1.
5857 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5858 * i386-tdep.c: Include features/i386/i386-avx512.c.
5859 (i386_zmm_names): Add ZMM pseudo register names array.
5860 (i386_zmmh_names): Add ZMM raw register names array.
5861 (i386_k_names): Add K raw register names array.
5862 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5863 registers. AVX512 has 16 more ZMM registers than there are YMM
5864 registers.
5865 (i386_zmmh_regnum_p): Add function to look up register number of
5866 ZMM raw registers.
5867 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5868 (i386_k_regnum_p): Likewise for K raw registers.
5869 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5870 registers added by AVX512.
5871 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5872 registers added by AVX512.
5873 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5874 added by AVX512.
5875 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5876 (i386_pseudo_register_name): Add ZMM pseudo registers.
5877 (i386_zmm_type): Construct and return vector registers type for ZMM
5878 registers.
5879 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5880 ZMM0-31 pseudo registers and K registers.
5881 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5882 and YMM16-31 registers from register cache.
5883 (i386_pseudo_register_write): Add code to write K, ZMM and
5884 YMM16-31 registers.
5885 (i386_register_reggroup_p): Add code to include/exclude AVX512
5886 registers in/from respective register groups.
5887 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5888 registers if feature is present in xcr0.
5889 (i386_gdbarch_init): Add code to initialize AVX512 feature
5890 variables in tdep structure, wire in pseudo registers and call
5891 initialize_tdesc_i386_avx512.
5892 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5893 variables.
5894 (i386_regnum): Add AVX512 registers.
5895 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5896 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5897 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5898 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5899 512 bits wide.
5900 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5901 (i386_ymm_avx512_regnum_p): Likewise.
5902 (i386_k_regnum_p): Likewise.
5903 (i386_zmm_regnum_p): Likewise.
5904 (i386_zmmh_regnum_p): Likewise.
5905 * i387-tdep.c : Update year in copyright notice.
5906 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5907 XSAVE buffer.
5908 (XSAVE_YMM_AVX512_ADDR): New macro.
5909 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5910 XSAVE buffer.
5911 (XSAVE_XMM_AVX512_ADDR): New macro.
5912 (xsave_avx512_k_offset): New table for K register offsets in
5913 XSAVE buffer.
5914 (XSAVE_AVX512_K_ADDR): New macro.
5915 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5916 in XSAVE buffer.
5917 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5918 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5919 buffer.
5920 (i387_collect_xsave): Add code to collect AVX512 registers from
5921 XSAVE buffer.
5922 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5923 of XMM16-31 registers.
5924 (I387_NUM_K_REGS): New define for number of K registers.
5925 (I387_K0_REGNUM): New define for K0 register number.
5926 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5927 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5928 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5929 registers.
5930 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5931 (I387_XMM16_REGNUM): New define for XMM16 register number.
5932 (I387_YMM0_REGNUM): New define for YMM0 register number.
5933 (I387_KEND_REGNUM): New define for last K register number.
5934 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5935 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5936 number.
5937 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5938 number.
5939 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5940 size.
5941 * features/Makefile: Add AVX512 related files.
5942 * features/i386/32bit-avx512.xml: New file.
5943 * features/i386/64bit-avx512.xml: Likewise.
5944 * features/i386/amd64-avx512-linux.c: Likewise.
5945 * features/i386/amd64-avx512-linux.xml: Likewise.
5946 * features/i386/amd64-avx512.c: Likewise.
5947 * features/i386/amd64-avx512.xml: Likewise.
5948 * features/i386/i386-avx512-linux.c: Likewise.
5949 * features/i386/i386-avx512-linux.xml: Likewise.
5950 * features/i386/i386-avx512.c: Likewise.
5951 * features/i386/i386-avx512.xml: Likewise.
5952 * features/i386/x32-avx512-linux.c: Likewise.
5953 * features/i386/x32-avx512-linux.xml: Likewise.
5954 * features/i386/x32-avx512.c: Likewise.
5955 * features/i386/x32-avx512.xml: Likewise.
5956 * regformats/i386/amd64-avx512-linux.dat: New file.
5957 * regformats/i386/amd64-avx512.dat: Likewise.
5958 * regformats/i386/i386-avx512-linux.dat: Likewise.
5959 * regformats/i386/i386-avx512.dat: Likewise.
5960 * regformats/i386/x32-avx512-linux.dat: Likewise.
5961 * regformats/i386/x32-avx512.dat: Likewise.
5962 * NEWS: Add note about new support for AVX512.
5963
5964
5965 2014-04-23 Pedro Alves <palves@redhat.com>
5966
5967 * breakpoint.c (insert_bp_location): Tolerate errors if the
5968 breakpoint is set in a user-loaded objfile.
5969 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5970 location is marked shlib_disabled. If the breakpoint is set in a
5971 user-loaded objfile is a GDB-side memory breakpoint, validate it
5972 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5973 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5974 flag.
5975 * mem-break.c (memory_validate_breakpoint): New function.
5976 * objfiles.c (userloaded_objfile_contains_address_p): New
5977 function.
5978 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5979 * target.h (memory_validate_breakpoint): New declaration.
5980
5981 2014-04-23 Pedro Alves <palves@redhat.com>
5982
5983 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5984 the breakpoint is set in a shared library, only suppress
5985 errors for software breakpoints, not hardware breakpoints.
5986
5987 2014-04-22 Pedro Alves <palves@redhat.com>
5988
5989 * infrun.c (schedlock_applies): New function, factored out from
5990 find_thread_needs_step_over.
5991 (find_thread_needs_step_over): Use it.
5992 (switch_back_to_stepped_thread): Always clear trap_expected if the
5993 step over is finished. Return early if scheduler locking applies.
5994 Look for the stepping thread and a potential step-over thread with
5995 a single loop.
5996 (currently_stepping_or_nexting_callback): Delete.
5997
5998 2014-04-22 Nick Clifton <nickc@redhat.com>
5999
6000 * NEWS: Mention that ARM sim now supports tracing.
6001
6002 2014-04-22 Yao Qi <yao@codesourcery.com>
6003
6004 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6005 to ...
6006 * tracefile.c (tracefile_fetch_registers): ... it. New
6007 function.
6008 * tracefile.h (tracefile_fetch_registers): Declare.
6009 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6010 tracefile_fetch_registers.
6011
6012 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6013
6014 PR gdb/14018
6015 * windows-nat.c (thread_rec): Don't display a warning when
6016 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6017 fails for any reason, set th->suspended to -1, so that we don't
6018 try to resume such a thread. Also, don't return NULL in these
6019 cases, to avoid completely ruin the session due to "PC register is
6020 not available" error.
6021 (do_windows_fetch_inferior_registers): Check errors in
6022 GetThreadContext call.
6023 (windows_continue): Accept an additional argument KILLED; if not
6024 zero, ignore errors in the SetThreadContext call, since the
6025 inferior was killed and is shutting down.
6026 (windows_resume, get_windows_debug_event)
6027 (windows_create_inferior, windows_mourn_inferior)
6028 (windows_kill_inferior): All callers of windows_continue changed
6029 to adjust to its new calling sequence.
6030
6031 2014-04-19 Yao Qi <yao@codesourcery.com>
6032
6033 * ctf.c (ctf_open): Call post_create_inferior.
6034
6035 2014-04-19 Yao Qi <yao@codesourcery.com>
6036
6037 * ctf.c (handle_id): New static variable.
6038 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6039 value. Get the declaration of event "register" and get length
6040 of field "contents".
6041
6042 2014-04-19 Yao Qi <yao@codesourcery.com>
6043
6044 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6045
6046 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6047
6048 * valops.c (oload_method_static): Remove unnecessary argument
6049 METHOD. Update all callers.
6050
6051 2014-04-18 Pedro alves <palves@redhat.com>
6052 Tom Tromey <tromey@redhat.com>
6053
6054 PR backtrace/15558
6055 * frame.c (get_prev_frame_1): Rename to ...
6056 (get_prev_frame_always): ... this, and make extern. Adjust.
6057 (skip_artificial_frames): Use get_prev_frame_always.
6058 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6059 (get_frame_unwind_stop_reason): Adjust to rename.
6060 * frame.h (get_prev_frame_always): Declare.
6061 * inline-frame.c: Include frame.h.
6062 (inline_frame_this_id): Use get_prev_frame_always.
6063
6064 2014-04-18 Tristan Gingold <gingold@adacore.com>
6065
6066 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6067 code by using bfd_mach_o_get_base_address.
6068
6069 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6070
6071 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6072 (spu_ax_pseudo_register_collect): New function.
6073 (spu_ax_pseudo_register_push_stack): Likewise.
6074 (spu_dwarf_reg_to_regnum): Likewise.
6075 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6076
6077 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6078
6079 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6080 Replace FRAME argument with FRAME_ID.
6081 * gdbarch.c, gdbarch.h: Regenerate.
6082 * findvar.c (default_value_from_register): Add GDBARCH argument;
6083 replace FRAME by FRAME_ID. No longer call get_frame_id.
6084 (value_from_register): Update call to gdbarch_value_from_register.
6085 * value.h (default_value_from_register): Update prototype.
6086 * s390-linux-tdep.c (s390_value_from_register): Update interface
6087 and call to default_value_from_register.
6088 * spu-tdep.c (spu_value_from_register): Likewise.
6089
6090 * findvar.c (address_from_register): Remove TYPE argument.
6091 Do not call value_from_register; use gdbarch_value_from_register
6092 with null_frame_id instead.
6093 * value.h (address_from_register): Update prototype.
6094 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6095 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6096 address_from_register interface change.
6097
6098 2014-04-17 Yao Qi <yao@codesourcery.com>
6099
6100 * gdbtypes.h: Update comments to link to types and macros'
6101 definitions.
6102
6103 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6104
6105 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6106
6107 2014-04-16 Keith Seitz <keiths@redhat.com>
6108
6109 PR gdb/15827
6110 * dwarf2read.c (skip_one_die): Check that all relative-offset
6111 sibling DIEs fall within range of the current reader's buffer.
6112 (read_partial_die): Likewise.
6113
6114 2014-04-16 Keith Seitz <keiths@redhat.com>
6115
6116 PR c++/16597
6117 * cp-namespace.c (lookup_symbol_file): If the type name of
6118 `this' is NULL, return immediately.
6119
6120 2014-04-14 Keith Seitz <keiths@redhat.com>
6121
6122 PR c++/16253
6123 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6124 from symbol_matches_domain in symtab.c. All local callers
6125 of symbol_matches_domain updated.
6126 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6127 search STRUCT_DOMAIN.
6128 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6129 independently. standard_lookup will do that automatically.
6130 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6131 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6132 (cp_lookup_symbol_in_namespace): Likewise.
6133 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6134 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6135 may return a STRUCT_DOMAIN match.
6136 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6137 * cp-support.c: Include language.h.
6138 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6139 VAR_DOMAIN.
6140 * psymtab.c (match_partial_symbol): Compare the requested
6141 domain with the symbol's domain directly.
6142 (lookup_partial_symbol): Likewise.
6143 * symtab.c (lookup_symbol_in_language): Explain when/why
6144 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6145 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6146 appropriate languages.
6147 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6148 and moved to ada-lang.c
6149 (lookup_block_symbol): Explain that this function only returns
6150 symbol matching the requested DOMAIN.
6151 Compare the requested domain with the symbol's domain directly.
6152 (iterate_over_symbols): Compare the requested domain with the
6153 symbol's domain directly.
6154 * symtab.h (symbol_matches_domain): Remove.
6155
6156 2014-04-14 Tom Tromey <tromey@redhat.com>
6157
6158 PR c++/15246:
6159 * c-exp.y (type_aggregate_p): New function.
6160 (qualified_name, classify_inner_name): Use it.
6161 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6162 and TYPE_TARGET_TYPE of an enum type.
6163 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6164 an enum type.
6165 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6166 handle TYPE_DECLARED_CLASS.
6167 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6168 types.
6169 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6170 * valops.c (enum_constant_from_type): New function.
6171 (value_aggregate_elt): Use it.
6172 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6173 TYPE_CODE_ENUM.
6174
6175 2014-04-14 Tom Tromey <tromey@redhat.com>
6176
6177 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6178 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6179 const.
6180 * value.h (value_aggregate_elt): Update.
6181
6182 2014-04-14 Tom Tromey <tromey@redhat.com>
6183
6184 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6185
6186 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6187
6188 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6189 (evaluate_subexp_standard): Pass noside argument.
6190 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6191 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6192 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6193 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6194 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6195
6196 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6197
6198 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6199 points to a constant blob.
6200
6201 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6202
6203 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6204 property and store it as the high bound and flag the range accordingly.
6205 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6206 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6207 * gdbtypes.h (enum range_flags): New enum.
6208 (struct range_bounds): Add flags member.
6209
6210 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6211
6212 * c-typeprint.c (c_type_print_varspec_suffix): Added
6213 check for not yet resolved high bound. If unresolved, print
6214 "variable length" string to the console instead of random
6215 length.
6216
6217 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6218
6219 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6220 value.
6221 (ada_template_to_fixed_record_type_1): Likewise.
6222 (ada_to_fixed_type_1): Likewise.
6223 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6224 (cp_print_value): Likewise.
6225 * d-valprint.c (dynamic_array_type): Likewise.
6226 * findvar.c (address_of_variable): Likewise.
6227 * jv-valprint.c (java_value_print): Likewise.
6228 * valops.c (value_ind): Likewise.
6229 * value.c (coerce_ref): Likewise.
6230
6231 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6232
6233 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6234 value and retrieve the dynamic type size.
6235
6236 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6237
6238 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6239 passed to sizeof is dynamic evaluate the argument to compute the length.
6240
6241 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6242 Joel Brobecker <brobecker@adacore.com>
6243
6244 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6245 (dwarf2_evaluate_property): New function.
6246 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6247 * dwarf2read.c (attr_to_dynamic_prop): New function.
6248 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6249 attribute.
6250 * gdbtypes.c: Include dwarf2loc.h.
6251 (is_dynamic_type): New function.
6252 (resolve_dynamic_type): New function.
6253 (resolve_dynamic_bounds): New function.
6254 (get_type_length): New function.
6255 (check_typedef): Use get_type_length to compute type length.
6256 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6257 (TYPE_LOW_BOUND_KIND): New macro.
6258 (is_dynamic_type): New function prototype.
6259 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6260 to resolve dynamic properties of the type. Update comment.
6261 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6262
6263 2014-04-14 Richard Henderson <rth@redhat.com>
6264
6265 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6266
6267 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6268 Doug Evans <xdje42@gmail.com>
6269
6270 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6271 dereference TYPE_CODE_REF values.
6272
6273 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6274
6275 Revert the following changes due to regressions:
6276
6277 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6278 (dwarf2_evaluate_property): New function.
6279 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6280 * dwarf2read.c (attr_to_dynamic_prop): New function.
6281 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6282 attribute.
6283 * gdbtypes.c: Include dwarf2loc.h.
6284 (is_dynamic_type): New function.
6285 (resolve_dynamic_type): New function.
6286 (resolve_dynamic_bounds): New function.
6287 (get_type_length): New function.
6288 (check_typedef): Use get_type_length to compute type length.
6289 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6290 (TYPE_LOW_BOUND_KIND): New macro.
6291 (is_dynamic_type): New function prototype.
6292 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6293 to resolve dynamic properties of the type. Update comment.
6294 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6295
6296 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6297 passed to sizeof is dynamic evaluate the argument to compute the length.
6298
6299 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6300 value and retrieve the dynamic type size.
6301
6302 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6303 (ada_template_to_fixed_record_type_1): Likewise.
6304 (ada_to_fixed_type_1): Likewise.
6305 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6306 (cp_print_value): Likewise.
6307 * d-valprint.c (dynamic_array_type): Likewise.
6308 * eval.c (evaluate_subexp_with_coercion): Likewise.
6309 * findvar.c (address_of_variable): Likewise.
6310 * jv-valprint.c (java_value_print): Likewise.
6311 * valops.c (value_ind): Likewise.
6312 * value.c (coerce_ref): Likewise.
6313
6314 * c-typeprint.c (c_type_print_varspec_suffix): Added
6315 check for not yet resolved high bound. If unresolved, print
6316 "variable length" string to the console instead of random
6317 length.
6318
6319 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6320 property and store it as the high bound and flag the range accordingly.
6321 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6322 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6323 * gdbtypes.h (enum range_flags): New enum.
6324 (struct range_bounds): Add flags member.
6325
6326 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6327 points to a constant blob.
6328
6329 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6330 (evaluate_subexp_standard): Pass noside argument.
6331 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6332 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6333 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6334 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6335 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6336
6337 2014-04-11 Keith Seitz <keiths@redhat.com>
6338
6339 PR c++/16675
6340 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6341 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6342 reference types.
6343
6344 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6345
6346 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6347 (evaluate_subexp_standard): Pass noside argument.
6348 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6349 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6350 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6351 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6352 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6353
6354 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6355
6356 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6357 points to a constant blob.
6358
6359 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6360
6361 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6362 property and store it as the high bound and flag the range accordingly.
6363 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6364 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6365 * gdbtypes.h (enum range_flags): New enum.
6366 (struct range_bounds): Add flags member.
6367
6368 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6369
6370 * c-typeprint.c (c_type_print_varspec_suffix): Added
6371 check for not yet resolved high bound. If unresolved, print
6372 "variable length" string to the console instead of random
6373 length.
6374
6375 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6376
6377 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6378 (ada_template_to_fixed_record_type_1): Likewise.
6379 (ada_to_fixed_type_1): Likewise.
6380 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6381 (cp_print_value): Likewise.
6382 * d-valprint.c (dynamic_array_type): Likewise.
6383 * eval.c (evaluate_subexp_with_coercion): Likewise.
6384 * findvar.c (address_of_variable): Likewise.
6385 * jv-valprint.c (java_value_print): Likewise.
6386 * valops.c (value_ind): Likewise.
6387 * value.c (coerce_ref): Likewise.
6388
6389 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6390
6391 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6392 value and retrieve the dynamic type size.
6393
6394 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6395
6396 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6397 passed to sizeof is dynamic evaluate the argument to compute the length.
6398
6399 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6400
6401 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6402 (dwarf2_evaluate_property): New function.
6403 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6404 * dwarf2read.c (attr_to_dynamic_prop): New function.
6405 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6406 attribute.
6407 * gdbtypes.c: Include dwarf2loc.h.
6408 (is_dynamic_type): New function.
6409 (resolve_dynamic_type): New function.
6410 (resolve_dynamic_bounds): New function.
6411 (get_type_length): New function.
6412 (check_typedef): Use get_type_length to compute type length.
6413 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6414 (TYPE_LOW_BOUND_KIND): New macro.
6415 (is_dynamic_type): New function prototype.
6416 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6417 to resolve dynamic properties of the type. Update comment.
6418 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6419
6420 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6421
6422 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6423 declaring high/low bounds and change uses accordingly. Call
6424 create_range_type instead of create_static_range_type.
6425 * gdbtypes.c (create_range_type): New function.
6426 (create_range_type): Convert bounds into struct bound_prop and pass
6427 them to create_range_type.
6428 * gdbtypes.h (struct bound_prop): New struct.
6429 (create_range_type): New function prototype.
6430 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6431 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6432 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6433 part of the bound.
6434 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6435
6436 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6437
6438 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6439 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6440 * ada-lang.c: All uses of create_range_type updated.
6441 * coffread.c: All uses of create_range_type updated.
6442 * dwarf2read.c: All uses of create_range_type updated.
6443 * f-exp.y: All uses of create_range_type updated.
6444 * m2-valprint.c: All uses of create_range_type updated.
6445 * mdebugread.c: All uses of create_range_type updated.
6446 * stabsread.c: All uses of create_range_type updated.
6447 * valops.c: All uses of create_range_type updated.
6448 * valprint.c: All uses of create_range_type updated.
6449
6450 2014-04-10 Pedro Alves <palves@redhat.com>
6451
6452 * breakpoint.c (single_step_breakpoints)
6453 (single_step_gdbarch): Move up in the file.
6454 (one_breakpoint_xfer_memory): New function, factored out from ...
6455 (breakpoint_xfer_memory): ... here. Also process single-step
6456 breakpoints.
6457
6458 2014-04-09 Tristan Gingold <gingold@adacore.com>
6459
6460 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6461 comments.
6462 (darwin_decode_exception_message): Free port only after use.
6463
6464 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6465
6466 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6467 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6468 when setting the size of call_length.
6469
6470 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6471
6472 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6473 dereference TYPE_CODE_REF values.
6474
6475 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6476
6477 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6478 end of warning message.
6479
6480 2014-04-03 Doug Evans <dje@google.com>
6481
6482 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6483 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6484
6485 2014-04-02 Alan Modra <amodra@gmail.com>
6486
6487 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6488 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6489 (struct symbol_file_add_from_memory_args): Add size field.
6490 (find_vdso_size): New function.
6491 (add_vsyscall_page): Attempt to find vdso size.
6492
6493 2014-04-01 Doug Evans <dje@google.com>
6494
6495 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6496
6497 2014-04-01 Tristan Gingold <gingold@adacore.com>
6498
6499 * darwin-nat.c (darwin_encode_reply): Add prototype.
6500 (darwin_decode_exception_message): Reply to unknown inferiors.
6501 (darwin_decode_message): Handle message by id. Ignore message
6502 to unknown inferior.
6503 (darwin_wait): Discard unknown messages, add debug trace.
6504
6505 2014-03-31 Doug Evans <dje@google.com>
6506
6507 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6508 comp_dir_string.
6509
6510 2014-03-31 Doug Evans <dje@google.com>
6511
6512 New option "set print symbol-loading".
6513 * NEWS: Mention it.
6514 * solib.c (solib_read_symbols): Only print symbol loading messages
6515 if requested.
6516 (solib_add): If symbol loading is in "brief" mode, notify user
6517 symbols are being loaded.
6518 (reload_shared_libraries_1): Ditto.
6519 * symfile.c (print_symbol_loading_off): New static global.
6520 (print_symbol_loading_brief): New static global.
6521 (print_symbol_loading_full): New static global.
6522 (print_symbol_loading_enums): New static global.
6523 (print_symbol_loading): New static global.
6524 (print_symbol_loading_p): New function.
6525 (symbol_file_add_with_addrs): Only print symbol loading messages
6526 if requested.
6527 (_initialize_symfile): Register "print symbol-loading" set/show
6528 command.
6529 * symfile.h (print_symbol_loading_p): Declare.
6530
6531 2014-03-30 Doug Evans <xdje42@gmail.com>
6532
6533 * infrun.c (set_last_target_status): New function.
6534 (handle_inferior_event): Call it.
6535
6536 2014-03-30 Doug Evans <xdje42@gmail.com>
6537
6538 * inferior.h (enum stop_kind): Improve comment.
6539
6540 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6541
6542 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6543 a reference, strip the reference layer before calling
6544 the lang_ops value_has_mutated callback.
6545
6546 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6547
6548 Remove some globals from our parser.
6549 * language.c (unk_lang_parser): Add "struct parser_state"
6550 argument.
6551 * language.h (struct language_defn) <la_parser>: Likewise.
6552 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6553 (initialize_expout): Add "struct parser_state" argument.
6554 Rewrite function to use the parser state.
6555 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6556 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6557 write_exp_elt_longcst, write_exp_elt_dblcst,
6558 write_exp_elt_decfloatcst, write_exp_elt_type,
6559 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6560 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6561 write_dollar_variable): Likewise.
6562 (parse_exp_in_context_1): Use parser state.
6563 (insert_type_address_space): Add "struct parser_state" argument.
6564 Use parser state.
6565 (increase_expout_size): New function.
6566 * parser-defs.h: Forward declare "struct language_defn" and
6567 "struct parser_state".
6568 (expout, expout_size, expout_ptr): Remove extern declarations.
6569 (parse_gdbarch, parse_language): Rewrite macro declarations to
6570 accept the parser state.
6571 (struct parser_state): New struct.
6572 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6573 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6574 write_exp_elt_decfloatcst, write_exp_elt_type,
6575 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6576 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6577 write_exp_msymbol, write_dollar_variable,
6578 mark_struct_expression, insert_type_address_space): Add "struct
6579 parser_state" argument.
6580 (increase_expout_size): New function.
6581 * utils.c (do_clear_parser_state): New function.
6582 (make_cleanup_clear_parser_state): Likewise.
6583 * utils.h (make_cleanup_clear_parser_state): New function
6584 prototype.
6585 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6586 Update calls to write_exp* in order to pass the parser state.
6587 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6588 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6589 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6590 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6591 * stap-probe.c (stap_parse_register_operand): Likewise.
6592 (stap_parse_single_operand): Likewise.
6593 (stap_parse_argument_1): Likewise.
6594 (stap_parse_argument): Use parser state.
6595 * stap-probe.h: Include "parser-defs.h".
6596 (struct stap_parse_info) <pstate>: New field.
6597 * c-exp.y (parse_type): Rewrite to use parser state.
6598 (yyparse): Redefine to c_parse_internal.
6599 (pstate): New global variable.
6600 (parse_number): Add "struct parser_state" argument.
6601 (write_destructor_name): Likewise.
6602 (type_exp): Update calls to write_exp* and similars in order to
6603 use parser state.
6604 (exp1, exp, variable, qualified_name, space_identifier,
6605 typename, typebase): Likewise.
6606 (write_destructor_name, parse_number, lex_one_token,
6607 classify_name, classify_inner_name, c_parse): Add "struct
6608 parser_state" argument. Update function to use parser state.
6609 * c-lang.h: Forward declare "struct parser_state".
6610 (c_parse): Add "struct parser_state" argument.
6611 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6612 (yyparse): Redefine macro to ada_parse_internal.
6613 (pstate): New variable.
6614 (write_int, write_object_renaming, write_var_or_type,
6615 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6616 type_int, type_long, type_long_long, type_float, type_double,
6617 type_long_double, type_char, type_boolean, type_system_address):
6618 Add "struct parser_state" argument.
6619 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6620 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6621 var_or_type, aggregate, aggregate_component_list,
6622 positional_list, others, component_group,
6623 component_associations): Update calls to write_exp* and similar
6624 functions in order to use parser state.
6625 (ada_parse, write_var_from_sym, write_int,
6626 write_exp_op_with_string, write_object_renaming,
6627 find_primitive_type, write_selectors, write_ambiguous_var,
6628 write_var_or_type, write_name_assoc, type_int, type_long,
6629 type_long_long, type_float, type_double, type_long_double,
6630 type_char, type_boolean, type_system_address): Add "struct
6631 parser_state" argument. Adjust function to use parser state.
6632 * ada-lang.c (parse): Likewise.
6633 * ada-lang.h: Forward declare "struct parser_state".
6634 (ada_parse): Add "struct parser_state" argument.
6635 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6636 calls to both functions.
6637 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6638 parser state.
6639 (yyparse): Redefine macro to f_parse_internal.
6640 (pstate): New variable.
6641 (parse_number): Add "struct parser_state" argument.
6642 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6643 and similars in order to use parser state.
6644 (parse_number): Adjust code to use parser state.
6645 (yylex): Likewise.
6646 (f_parse): New function.
6647 * f-lang.h: Forward declare "struct parser_state".
6648 (f_parse): Add "struct parser_state" argument.
6649 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6650 parser state.
6651 (yyparse): Redefine macro for java_parse_internal.
6652 (pstate): New variable.
6653 (push_expression_name, push_expression_name, insert_exp): Add
6654 "struct parser_state" argument.
6655 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6656 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6657 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6658 PostIncrementExpression, PostDecrementExpression,
6659 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6660 UnaryExpressionNotPlusMinus, CastExpression,
6661 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6662 RelationalExpression, EqualityExpression, AndExpression,
6663 ExclusiveOrExpression, InclusiveOrExpression,
6664 ConditionalAndExpression, ConditionalOrExpression,
6665 ConditionalExpression, Assignment, LeftHandSide): Update
6666 calls to write_exp* and similars in order to use parser state.
6667 (parse_number): Ajust code to use parser state.
6668 (yylex): Likewise.
6669 (java_parse): New function.
6670 (push_variable): Add "struct parser_state" argument. Adjust
6671 code to user parser state.
6672 (push_fieldnames, push_qualified_expression_name,
6673 push_expression_name, insert_exp): Likewise.
6674 * jv-lang.h: Forward declare "struct parser_state".
6675 (java_parse): Add "struct parser_state" argument.
6676 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6677 parser state.
6678 (yyparse): Redefine macro to m2_parse_internal.
6679 (pstate): New variable.
6680 (type_exp, exp, fblock, variable, type): Update calls to
6681 write_exp* and similars to use parser state.
6682 (yylex): Likewise.
6683 (m2_parse): New function.
6684 * m2-lang.h: Forward declare "struct parser_state".
6685 (m2_parse): Add "struct parser_state" argument.
6686 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6687 * objc-lang.h: Forward declare "struct parser_state".
6688 (end_msglist): Add "struct parser_state" argument.
6689 * p-exp.y (parse_type): Rewrite macro to use parser state.
6690 (yyparse): Redefine macro to pascal_parse_internal.
6691 (pstate): New variable.
6692 (parse_number): Add "struct parser_state" argument.
6693 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6694 write_exp* and similars in order to use parser state.
6695 (parse_number, yylex): Adjust code to use parser state.
6696 (pascal_parse): New function.
6697 * p-lang.h: Forward declare "struct parser_state".
6698 (pascal_parse): Add "struct parser_state" argument.
6699 * go-exp.y (parse_type): Rewrite macro to use parser state.
6700 (yyparse): Redefine macro to go_parse_internal.
6701 (pstate): New variable.
6702 (parse_number): Add "struct parser_state" argument.
6703 (type_exp, exp1, exp, variable, type): Update calls to
6704 write_exp* and similars in order to use parser state.
6705 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6706 to use parser state.
6707 (go_parse): Likewise.
6708 * go-lang.h: Forward declare "struct parser_state".
6709 (go_parse): Add "struct parser_state" argument.
6710
6711 2014-03-27 Doug Evans <dje@google.com>
6712
6713 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6714
6715 2014-03-27 Doug Evans <dje@google.com>
6716
6717 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6718 Remove argument abbrev_section. All callers updated.
6719
6720 2014-03-27 Doug Evans <dje@google.com>
6721
6722 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6723 addr_base, ranges_base.
6724
6725 2014-03-26 Keith Seitz <keiths@redhat.com>
6726
6727 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6728 types, not VAR_DOMAIN.
6729
6730 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6731
6732 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6733 "ra" registers.
6734 * features/nios2-linux.c: Regenerated.
6735 * features/nios2.c: Regenerated.
6736
6737 2014-03-25 Pedro Alves <palves@redhat.com>
6738
6739 * cli/cli-script.c (script_from_file): Force the interpreter to
6740 sync mode.
6741
6742 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6743
6744 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6745 small stack allocation.
6746
6747 2014-03-24 Tristan Gingold <gingold@adacore.com>
6748
6749 * darwin-nat.c (exc_server): Remove unused prototype.
6750 (darwin_dump_message): Correctly display data on x86_64.
6751 (darwin_encode_reply): Fix style.
6752 Add comments and fix indentation.
6753
6754 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6755
6756 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6757
6758 2014-03-22 Doug Evans <xdje42@gmail.com>
6759
6760 * infcmd.c: Whitespace fixes.
6761 (interrupt_command): Merge two function comments into one.
6762
6763 2014-03-22 Doug Evans <xdje42@gmail.com>
6764
6765 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6766 All uses updated.
6767
6768 2014-03-22 Yao Qi <yao@codesourcery.com>
6769
6770 * remote.c (target_read_live_memory): Remove.
6771 (memory_xfer_live_readonly_partial): Rename it to
6772 remote_xfer_live_readonly_partial. Remove argument 'object'.
6773 All callers updated. Call remote_read_bytes_1
6774 instead of target_read_live_memory.
6775 * tracepoint.c (set_traceframe_number): Remove.
6776 (make_cleanup_restore_traceframe_number): Likewise .
6777 * tracepoint.h (set_traceframe_number): Remove declaration.
6778 (make_cleanup_restore_traceframe_number): Likewise.
6779
6780 2014-03-22 Yao Qi <yao@codesourcery.com>
6781
6782 * remote.c (remote_read_bytes): Move code on reading from the
6783 remote stub to ...
6784 (remote_read_bytes_1): ... here. New function.
6785
6786 2014-03-22 Yao Qi <yao@codesourcery.com>
6787
6788 * ctf.c (ctf_xfer_partial): Check the return value of
6789 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6790 return TARGET_XFER_UNAVAILABLE.
6791 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6792 * target.c (target_read_live_memory): Move it to remote.c.
6793 (memory_xfer_live_readonly_partial): Likewise.
6794 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6795 * remote.c (target_read_live_memory): Moved from target.c.
6796 (memory_xfer_live_readonly_partial): Likewise.
6797 (remote_read_bytes): Factored out from
6798 memory_xfer_partial_1.
6799
6800 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6801
6802 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6803 NULL pointer.
6804
6805 2014-03-21 Pedro Alves <palves@redhat.com>
6806
6807 * infrun.c (normal_stop): Extend comment.
6808
6809 2014-03-21 Hui Zhu <hui@codesourcery.com>
6810 Pedro Alves <palves@redhat.com>
6811
6812 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6813 static buffer.
6814 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6815 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6816 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6817
6818 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6819
6820 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6821 `z' formatted output modifier.
6822
6823 2014-03-20 Tom Tromey <tromey@redhat.com>
6824 Sergio Durigan Junior <sergiodj@redhat.com>
6825
6826 * probe.c (parse_probes): Turn assert into an ordinary error.
6827 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6828 exceptions when parsing probes. Rearrange the code for clarity.
6829
6830 2014-03-20 Tom Tromey <tromey@redhat.com>
6831
6832 PR gdb/14135
6833 * top.c (execute_command): Only dispatch events if the command
6834 started the target.
6835
6836 2014-03-20 Tom Tromey <tromey@redhat.com>
6837
6838 PR cli/15718
6839 * infcall.c: Include event-top.h.
6840 (run_inferior_call): Call async_disable_stdin if needed.
6841
6842 2014-03-20 Pedro Alves <palves@redhat.com>
6843
6844 * infrun.c (prepare_to_proceed): Delete.
6845 (thread_still_needs_step_over): New function.
6846 (find_thread_needs_step_over): New function.
6847 (proceed): If the current thread needs a step-over, set its
6848 steping_over_breakpoint flag. Adjust to use
6849 find_thread_needs_step_over instead of prepare_to_proceed.
6850 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6851 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6852 breakpoint.
6853 (switch_back_to_stepped_thread): Step over breakpoints of all
6854 threads not the stepping thread, before switching back to the
6855 stepping thread.
6856
6857 2014-03-20 Pedro Alves <palves@redhat.com>
6858
6859 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6860 extern.
6861 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6862 * infrun.c (saved_singlestep_ptid)
6863 (stepping_past_singlestep_breakpoint): Delete.
6864 (resume): Remove stepping_past_singlestep_breakpoint handling.
6865 (proceed): Store the prev_pc of the stepping thread too.
6866 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6867 singlestep_pc.
6868 (enum infwait_states): Delete infwait_thread_hop_state.
6869 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6870 field.
6871 (handle_inferior_event): Adjust.
6872 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6873 handling and the thread-hop code. Before removing single-step
6874 breakpoints, check whether the thread hit a single-step breakpoint
6875 of another thread. If it did, the trap is not a random signal.
6876 (switch_back_to_stepped_thread): If the event thread hit a
6877 single-step breakpoint, unblock it before switching to the
6878 stepping thread. Handle the case of the stepped thread having
6879 advanced already.
6880 (keep_going): Handle the case of the current thread moving past a
6881 single-step breakpoint.
6882
6883 2014-03-20 Pedro Alves <palves@redhat.com>
6884
6885 PR breakpoints/7143
6886 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6887 are being stepped over.
6888 (breakpoint_address_match): Make extern.
6889 * breakpoint.h (breakpoint_address_match): New declaration.
6890 * inferior.h (stepping_past_instruction_at): New declaration.
6891 * infrun.c (struct step_over_info): New type.
6892 (step_over_info): New global.
6893 (set_step_over_info, clear_step_over_info)
6894 (stepping_past_instruction_at): New functions.
6895 (handle_inferior_event): Clear the step-over info when
6896 trap_expected is cleared.
6897 (resume): Remove now stale comment.
6898 (clear_proceed_status): Clear step-over info.
6899 (proceed): Adjust step-over handling to set or clear the step-over
6900 info instead of removing all breakpoints.
6901 (handle_signal_stop): When setting up a thread-hop, don't remove
6902 breakpoints here.
6903 (stop_stepping): Clear step-over info.
6904 (keep_going): Adjust step-over handling to set or clear step-over
6905 info and then always inserting breakpoints, instead of removing
6906 all breakpoints when stepping over one.
6907
6908 2014-03-20 Pedro Alves <palves@redhat.com>
6909
6910 * infrun.c (previous_inferior_ptid): Adjust comment.
6911 (deferred_step_ptid): Delete.
6912 (infrun_thread_ptid_changed, prepare_to_proceed)
6913 (init_wait_for_inferior): Adjust.
6914 (handle_signal_stop): Delete deferred_step_ptid handling.
6915
6916 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6917
6918 PR gdb/15358
6919 * defs.h (sync_quit_force_run): New declaration.
6920 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6921 * event-top.c (async_sigterm_handler): New declaration.
6922 (async_sigterm_token): New variable.
6923 (async_init_signals): Create also async_sigterm_token.
6924 (async_sigterm_handler): New function.
6925 (sync_quit_force_run): New variable.
6926 (handle_sigterm): Replace quit_force call by other calls.
6927 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6928
6929 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6930
6931 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6932 offset into SPE pseudo registers.
6933
6934 2014-03-18 Pedro Alves <palves@redhat.com>
6935
6936 PR gdb/13860
6937 * inferior.h (print_stop_event): Declare.
6938 * infrun.c (print_stop_event): New, factored out from ...
6939 (normal_stop): ... this.
6940 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6941 of bpstat_print/print_stack_frame.
6942
6943 2014-03-17 Tom Tromey <tromey@redhat.com>
6944
6945 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6946
6947 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6948
6949 * ada-lang.c (decode_constrained_packed_array): Perform a
6950 minimal coercion for reference with coerce_ref instead of
6951 ada_coerce_ref.
6952
6953 2014-03-17 Tristan Gingold <gingold@adacore.com>
6954
6955 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6956 (darwin_solib_create_inferior_hook): Emit a warning if version
6957 is unhandled.
6958
6959 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6960
6961 * python/py-value.c (get_field_flag): Cast flag_name argument to
6962 PyObject_GetAttrString to support Python 2.4.
6963
6964 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6965
6966 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6967 (Global Maintainers): Remove Jan Kratochvil.
6968
6969 2014-03-14 Pedro Alves <palves@redhat.com>
6970
6971 * inferior.h (terminal_ours_for_output): Rename to ...
6972 (child_terminal_ours_for_output): ... this.
6973 (terminal_save_ours): Rename to ...
6974 (child_terminal_save_ours): ... this.
6975 (terminal_ours): Rename to ...
6976 (child_terminal_ours): ... this.
6977 (terminal_inferior): Rename to ...
6978 (child_terminal_inferior): ... this.
6979 (terminal_init_inferior): Rename to ...
6980 (child_terminal_init_inferior): ... this.
6981 (terminal_init_inferior_with_pgrp): Rename to ...
6982 (child_terminal_init_inferior_with_pgrp): ... this.
6983 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6984 (child_terminal_init_with_pgrp): ... this.
6985 (terminal_save_ours): Rename to ...
6986 (child_terminal_save_ours): ... this.
6987 (terminal_init_inferior): Rename to ...
6988 (child_terminal_init): ... this. Adjust.
6989 (terminal_inferior): Rename to ...
6990 (child_terminal_inferior): ... this.
6991 (terminal_ours_for_output): Rename to ...
6992 (child_terminal_ours_for_output): ... this. Adjust.
6993 (terminal_ours): Rename to ...
6994 (child_terminal_ours): ... this.
6995 (terminal_ours_1): Rename to ...
6996 (child_terminal_ours_1): ... this. Adjust.
6997 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6998 * windows-nat.c (do_initial_windows_stuff): Adjust.
6999 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7000 (gnu_terminal_init): ... this. Adjust.
7001 (gnu_target): Adjust.
7002 * inf-child.c (inf_child_target): Adjust.
7003
7004 2014-03-13 Doug Evans <xdje42@gmail.com>
7005
7006 PR guile/16612
7007 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7008 new eq?-hashtab.
7009
7010 2014-03-13 Doug Evans <xdje42@gmail.com>
7011
7012 * value.c (record_latest_value): Call release_value_or_incref
7013 instead of release_value.
7014
7015 2014-03-13 Pedro Alves <palves@redhat.com>
7016
7017 * procfs.c (procfs_target): Don't override to_shortname,
7018 to_longname or to_doc.
7019
7020 2014-03-13 Pedro Alves <palves@redhat.com>
7021
7022 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7023 Unix in user visible strings.
7024
7025 2014-03-12 Stan Shebs <stan@codesourcery.com>
7026
7027 * gdbtypes.h: Annotate comments for Doxygen, add a page
7028 block comment with some general info.
7029
7030 2014-03-12 Pedro Alves <palves@redhat.com>
7031
7032 * infcmd.c (prepare_execution_command): New function, factored out
7033 from several execution commands.
7034 (run_command_1, continue_command, step_1, jump_command)
7035 (signal_command, until_command, advance_command, finish_command)
7036 (attach_command): Use prepare_execution_command.
7037
7038 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7039
7040 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7041 (MAX_BPTS): Define.
7042 (MAX_WPTS): Define.
7043 (struct arm_linux_thread_points): Removed.
7044 (struct arm_linux_process_info): New.
7045 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7046 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7047 (arm_linux_find_breakpoints_by_tid): Removed.
7048 (struct arch_lwp_info): New.
7049 (arm_linux_find_process_pid): New functions.
7050 (arm_linux_add_process): New functions.
7051 (arm_linux_process_info_get): New functions.
7052 (arm_linux_forget_process): New function.
7053 (arm_linux_get_debug_reg_state): New function.
7054 (struct update_registers_data): New.
7055 (update_registers_callback): New function.
7056 (arm_linux_insert_hw_breakpoint1): Updated.
7057 (arm_linux_remove_hw_breakpoint1): Updated.
7058 (arm_linux_insert_hw_breakpoint): Updated.
7059 (arm_linux_remove_hw_breakpoint): Updated.
7060 (arm_linux_insert_watchpoint): Updated.
7061 (arm_linux_remove_watchpoint): Updated.
7062 (arm_linux_new_thread): Updated.
7063 (arm_linux_prepare_to_resume): New function.
7064 (arm_linux_new_fork): New function.
7065 (_initialize_arm_linux_nat): Updated.
7066
7067 2014-03-12 Pedro Alves <palves@redhat.com>
7068
7069 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7070
7071 2014-03-12 Tom Tromey <tromey@redhat.com>
7072
7073 * inf-child.c (return_zero): New function.
7074 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7075 * aix-thread.c (aix_thread_inferior_created): New function.
7076 (aix_thread_attach): Remove.
7077 (init_aix_thread_ops): Don't set to_attach.
7078 (_initialize_aix_thread): Register inferior_created observer.
7079 * corelow.c (init_core_ops): Don't set to_attach or
7080 to_create_inferior.
7081 * exec.c (init_exec_ops): Don't set to_attach or
7082 to_create_inferior.
7083 * infcmd.c (run_command_1): Use find_run_target. Make direct
7084 target calls.
7085 (attach_command): Use find_attach_target. Make direct target
7086 calls.
7087 * record-btrace.c (init_record_btrace_ops): Don't set
7088 to_create_inferior.
7089 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7090 Remove.
7091 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7092 set to_create_inferior.
7093 * target.c (complete_target_initialization): Add assertion.
7094 (target_create_inferior): Remove.
7095 (find_default_attach, find_default_create_inferior): Remove.
7096 (find_attach_target, find_run_target): New functions.
7097 (find_default_is_async_p, find_default_can_async_p)
7098 (target_supports_non_stop, target_attach): Remove.
7099 (init_dummy_target): Don't set to_create_inferior or
7100 to_supports_non_stop.
7101 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7102 TARGET_DEFAULT_FUNC.
7103 <to_create_inferior>: Add comment.
7104 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7105 TARGET_DEFAULT_RETURN.
7106 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7107 (find_attach_target, find_run_target): Declare.
7108 (target_create_inferior): Remove.
7109 (target_has_execution_1): Update comment.
7110 (target_supports_non_stop): Remove.
7111 * target-delegates.c: Rebuild.
7112
7113 2014-03-12 Pedro Alves <palves@redhat.com>
7114
7115 * inf-child.h: Update comment to not mention Unix.
7116
7117 2014-03-12 Pedro Alves <palves@redhat.com>
7118
7119 * inf-child.c: Update top comment to not mention Unix. Add
7120 generic comment describing how this target is meant to be used.
7121 (inf_child_post_attach, inf_child_post_startup_inferior)
7122 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7123 Unix in comment.
7124
7125 2014-03-12 Pedro Alves <palves@redhat.com>
7126
7127 * nto-procfs.c: Include inf-child.h.
7128 (procfs_ops): Delete global.
7129 (procfs_can_run): Delete method.
7130 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7131 target pointer instead of referencing procfs_ops.
7132 (procfs_prepare_to_store): Delete.
7133 (init_procfs_ops): Delete function.
7134 (procfs_target): New function, based on init_procfs_ops, but
7135 inherit inf_child_target.
7136 (_initialize_procfs): Use procfs_target.
7137
7138 2014-03-12 Pedro Alves <palves@redhat.com>
7139
7140 * windows-nat.c: Include inf-child.h.
7141 (windows_ops): Delete global.
7142 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7143 methods.
7144 (init_windows_ops): Delete function.
7145 (windows_target): New function, based on init_windows_ops, but
7146 inherit inf_child_target.
7147 (_initialize_windows_nat): Use windows_target. Install x86
7148 specific target methods here.
7149
7150 2014-03-10 Doug Evans <xdje42@gmail.com>
7151
7152 * guile/guile.c (call_initialize_gdb_module): New function.
7153 (initialize_guile): Replace call to scm_init_guile with call to
7154 scm_with_guile.
7155
7156 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7157
7158 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7159 in call to TYPE_CODE macro.
7160
7161 2014-03-10 Jerome Guitton <guitton@adacore.com>
7162
7163 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7164 Resolve tagged types to full view.
7165
7166 2014-03-10 Hui Zhu <hui@codesourcery.com>
7167
7168 * target.h (target_insert_breakpoint): Remove "hardware" from its
7169 comments.
7170
7171 2014-03-07 Doug Evans <dje@google.com>
7172
7173 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7174
7175 2014-03-07 Doug Evans <dje@google.com>
7176
7177 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7178 Remove unused local comp_dir_attr. Assert exactly one of
7179 stub_comp_unit_die, stub_comp_dir is non-NULL.
7180
7181 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7182
7183 * target.h (complete_target_initialization, add_target):
7184 Add comment.
7185
7186 2014-03-07 Pedro Alves <palves@redhat.com>
7187
7188 * go32-nat.c: Include inf-child.h.
7189 (go32_ops): Delete global.
7190 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7191 Delete methods.
7192 (go32_create_inferior): Push the passed in target pointer instead
7193 of referencing go32_ops.
7194 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7195 (go32_target): New function, based on init_go32_ops, but inherit
7196 inf_child_target.
7197 (_initialize_go32_nat): Use go32_target. Move parts of
7198 init_go32_ops here.
7199
7200 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7201
7202 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7203 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7204 SYMBOL_VALUE_ADDRESS.
7205 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7206
7207 2014-03-06 Yao Qi <yao@codesourcery.com>
7208
7209 * breakpoint.c (get_tracepoint_by_number): Remove argument
7210 optional_p. All callers updated. Adjust comments. Update
7211 output message.
7212 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7213
7214 2014-03-06 Yao Qi <yao@codesourcery.com>
7215
7216 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7217 early if get_number returns zero. Use 'p' instead of 'args'.
7218
7219 2014-03-06 Yao Qi <yao@codesourcery.com>
7220
7221 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7222 message.
7223
7224 2014-03-06 Yao Qi <yao@codesourcery.com>
7225
7226 PR breakpoints/16508
7227 * tracepoint.c (check_trace_running): New function.
7228 (trace_find_command): Move code to check_trace_running and
7229 call check_trace_running.
7230 (trace_find_pc_command): Likewise.
7231 (trace_find_tracepoint_command): Likewise.
7232 (trace_find_line_command): Likewise.
7233 (trace_find_range_command): Likewise.
7234 * tracepoint.h (check_trace_running): Likewise.
7235 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7236
7237 2014-03-06 Yao Qi <yao@codesourcery.com>
7238
7239 * target.h (struct target_ops) <to_traceframe_info>: Use
7240 TARGET_DEFAULT_NORETURN (tcomplain ()).
7241 * target-delegates.c: Regenerated.
7242
7243 2014-03-05 Pedro Alves <palves@redhat.com>
7244
7245 PR gdb/16575
7246 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7247 void. Update comment.
7248 (dcache_xfer_memory): Delete.
7249 (dcache_read_memory_partial): New, based on the read bits of
7250 dcache_xfer_memory.
7251 (dcache_update): Add status parameter. Use ULONGEST for len, and
7252 adjust. Discard cache lines if the reason for the update was
7253 error.
7254 * dcache.h (dcache_xfer_memory): Delete declaration.
7255 (dcache_read_memory_partial): New declaration.
7256 (dcache_update): Update prototype.
7257 * target.c (raw_memory_xfer_partial): Update the dcache here.
7258 (memory_xfer_partial_1): Don't handle dcache writes here.
7259
7260 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7261
7262 * remote-sim.c (gdbsim_load): Add const to prog.
7263
7264 2014-03-03 Tom Tromey <tromey@redhat.com>
7265
7266 * elfread.c (probe_key): Change to bfd_data.
7267 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7268 now per-BFD, not per-objfile.
7269 * stap-probe.c (stap_probe_destroy): Update comment.
7270 (handle_stap_probe): Allocate on the per-BFD obstack.
7271
7272 2014-03-03 Tom Tromey <tromey@redhat.com>
7273
7274 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7275 * breakpoint.c (create_longjmp_master_breakpoint): Use
7276 get_probe_address.
7277 (add_location_to_breakpoint, bkpt_probe_insert_location)
7278 (bkpt_probe_remove_location): Update.
7279 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7280 * elfread.c (elf_symfile_relocate_probe): Remove.
7281 (elf_probe_fns): Update.
7282 (insert_exception_resume_breakpoint): Change type of "probe"
7283 parameter to bound_probe.
7284 (check_exception_resume): Update.
7285 * objfiles.c (objfile_relocate1): Don't relocate probes.
7286 * probe.c (bound_probe_s): New typedef.
7287 (parse_probes): Use get_probe_address. Set sal's objfile.
7288 (find_probe_by_pc): Return a bound_probe.
7289 (collect_probes): Return a VEC(bound_probe_s).
7290 (compare_probes): Update.
7291 (gen_ui_out_table_header_info): Change type of "probes"
7292 parameter. Update.
7293 (info_probes_for_ops): Update.
7294 (get_probe_address): New function.
7295 (probe_safe_evaluate_at_pc): Update.
7296 * probe.h (struct probe_ops) <get_probe_address>: New field.
7297 <set_semaphore, clear_semaphore>: Add objfile parameter.
7298 (struct probe) <objfile>: Remove field.
7299 <arch>: New field.
7300 <address>: Update comment.
7301 (struct bound_probe): New.
7302 (find_probe_by_pc): Return a bound_probe.
7303 (get_probe_address): Declare.
7304 * solib-svr4.c (struct probe_and_action) <address>: New field.
7305 (hash_probe_and_action, equal_probe_and_action): Update.
7306 (register_solib_event_probe): Add address parameter.
7307 (solib_event_probe_at): Update.
7308 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7309 get_probe_address.
7310 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7311 (stap_get_probe_address): New function.
7312 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7313 (compile_probe_arg): Update.
7314 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7315 address.
7316 (handle_stap_probe): Don't relocate the probe.
7317 (stap_relocate): Remove.
7318 (stap_gen_info_probes_table_values): Update.
7319 (stap_probe_ops): Remove stap_relocate.
7320 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7321 (debug_sym_probe_fns): Update.
7322 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7323 * symtab.c (init_sal): Use memset.
7324 * symtab.h (struct symtab_and_line) <objfile>: New field.
7325 * tracepoint.c (start_tracing, stop_tracing): Update.
7326
7327 2014-03-03 Tom Tromey <tromey@redhat.com>
7328
7329 * probe.h (parse_probes, find_probe_by_pc)
7330 (find_probes_in_objfile): Fix comments.
7331
7332 2014-03-02 Doug Evans <xdje42@gmail.com>
7333
7334 * infrun.c (handle_signal_stop): Replace test for
7335 TARGET_WAITKIND_STOPPED with an assert.
7336
7337 2014-03-02 Doug Evans <xdje42@gmail.com>
7338
7339 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7340
7341 2014-03-02 Doug Evans <xdje42@gmail.com>
7342
7343 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7344
7345 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7346
7347 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7348
7349 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7350
7351 * i386obsd-nat.c: Include "obsd-nat.h".
7352 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7353 add_target.
7354 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7355
7356 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7357
7358 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7359
7360 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7361
7362 * mips64obsd-nat.c: Include "obsd-nath".
7363 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7364 add_target
7365 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7366
7367 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7368
7369 * amd64obsd-nat.c: Include "obsd-nat,h.
7370 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7371 add_target.
7372 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7373
7374 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7375
7376 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7377 (find_overload_match): Update call to find_oload_champ.
7378 (find_oload_champ_namespace_loop): Likewise
7379
7380 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7381
7382 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7383
7384 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7385 * config/sparc/obsd64.mh: New file.
7386 * sparc64obsd-nat.c: New file.
7387
7388 * obsd-nat.h: New file.
7389 * obsd-nat.c: New file.
7390 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7391 (ALLDEPFILES): Add obsd-nat.c.
7392
7393 2014-02-28 Tom Tromey <tromey@redhat.com>
7394
7395 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7396 * cli-out.h (cli_ui_out_impl): Now const.
7397 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7398 * ui-out.c (struct ui_out) <impl>: Now const.
7399 (default_ui_out_impl): Now const.
7400 (ui_out_new): Make 'impl' parameter const.
7401 * ui-out.h (ui_out_new): Update.
7402
7403 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7404
7405 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7406
7407 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7408
7409 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7410
7411 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7412
7413 Additional PR 8882 fix.
7414 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7415
7416 2014-02-27 Pedro Alves <palves@redhat.com>
7417
7418 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7419 isn't set.
7420
7421 2014-02-27 Pedro Alves <palves@redhat.com>
7422
7423 PR 12702
7424 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7425 * nat/linux-waitpid.c: Include string.h.
7426 (status_to_str): Moved here and made extern.
7427 * nat/linux-waitpid.h (status_to_str): New declaration.
7428
7429 2014-02-27 Hui Zhu <hui@codesourcery.com>
7430
7431 PR 12702
7432 * infrun.c (ptid_match): Move ...
7433 * common/ptid.c (ptid_match): ... here.
7434 * inferior.h (ptid_match): Move ...
7435 * common/ptid.h (ptid_match): ... here.
7436
7437 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7438
7439 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7440 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7441 gdb_target_obs.
7442
7443 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7444
7445 * obsd-tdep.c (obsd_auxv_parse): New function.
7446 (obsd_init_abi): Set auxv_parse.
7447
7448 * gdbarch.sh (auxv_parse): New.
7449 * gdbarch.h: Regenerated.
7450 * gdbarch.c: Regenerated.
7451 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7452
7453 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7454
7455 * guile/scm-value.c (gdbscm_history_append_x): New function.
7456 (value_functions): Add it.
7457
7458 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7459
7460 * dwarf2read.c (attr_value_as_address): New function.
7461 (dwarf2_find_base_address, read_call_site_scope): Use
7462 attr_value_as_address in place of DW_ADDR.
7463 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7464 the low and high addresses. Slight rework of the handling
7465 of the high pc being a constant form, and limit it to
7466 DWARF verson 4 or higher.
7467 (dwarf2_record_block_ranges): Likewise.
7468 (read_partial_die): Likewise.
7469 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7470
7471 2014-02-26 Tom Tromey <tromey@redhat.com>
7472
7473 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7474
7475 2014-02-26 Tom Tromey <tromey@redhat.com>
7476
7477 * elfread.c (elf_read_minimal_symbols): Return early if
7478 minimal symbols have already been read. Add "ei" parameter.
7479 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7480 * minsyms.c (prim_record_minimal_symbol_full): Update.
7481 * objfiles.h (struct objstats) <n_minsyms>: Move...
7482 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7483 * symmisc.c (print_objfile_statistics): Update.
7484
7485 2014-02-26 Tom Tromey <tromey@redhat.com>
7486
7487 * elfread.c (elf_read_minimal_symbols): New function, from
7488 elf_symfile_read.
7489 (elf_symfile_read): Call it.
7490
7491 2014-02-26 Tom Tromey <tromey@redhat.com>
7492
7493 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7494 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7495 (lookup_minimal_symbol_solib_trampoline)
7496 (lookup_minimal_symbol_by_pc_section_1)
7497 (lookup_minimal_symbol_and_objfile): Update.
7498 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7499 Don't allocate a minimal symbol if minsyms have already been read.
7500 (build_minimal_symbol_hash_tables): Update.
7501 (install_minimal_symbols): Do nothing if minsyms already read.
7502 Use the per-BFD obstack.
7503 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7504 * objfiles.c (allocate_objfile): Call
7505 terminate_minimal_symbol_table later.
7506 (have_minimal_symbols): Update.
7507 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7508 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7509 Move from struct objfile.
7510 <minsyms_read>: New field.
7511 (struct objfile) <msymbols, minimal_symbol_count,
7512 msymbol_hash, msymbol_demangled_hash>: Move.
7513 (ALL_OBJFILE_MSYMBOLS): Update.
7514 * symfile.c (read_symbols): Set minsyms_read.
7515 (reread_symbols): Update.
7516 * symmisc.c (dump_objfile, dump_msymbols): Update.
7517
7518 2014-02-26 Tom Tromey <tromey@redhat.com>
7519
7520 * minsyms.c (msymbols_sort): Remove.
7521 * minsyms.h (msymbols_sort): Remove.
7522 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7523 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7524 * elfread.c (elf_symtab_read): Don't add section offsets.
7525 * xcoffread.c (record_minimal_symbol): Don't add section offset
7526 to minimal symbol address.
7527 * somread.c (text_offset, data_offset): Remove.
7528 (som_symtab_read): Don't add section offsets to minimal symbol
7529 addresses.
7530 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7531 Don't add section offsets to minimal symbols.
7532 * coffread.c (coff_symtab_read): Don't add section offsets
7533 to minimal symbol addresses.
7534 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7535 to minimal symbol addresses.
7536 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7537 section offset to minimal symbol addresses.
7538 * mdebugread.c (parse_partial_symbols): Don't add section
7539 offset to minimal symbol addresses.
7540 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7541 offset to minimal symbol addresses.
7542
7543 2014-02-26 Tom Tromey <tromey@redhat.com>
7544
7545 * ada-lang.c (ada_main_name): Update.
7546 (ada_add_standard_exceptions): Update.
7547 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7548 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7549 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7550 * auxv.c (ld_so_xfer_auxv): Update.
7551 * avr-tdep.c (avr_scan_prologue): Update.
7552 * ax-gdb.c (gen_var_ref): Update.
7553 * blockframe.c (get_pc_function_start)
7554 (find_pc_partial_function_gnu_ifunc): Update.
7555 * breakpoint.c (create_overlay_event_breakpoint)
7556 (create_longjmp_master_breakpoint)
7557 (create_std_terminate_master_breakpoint)
7558 (create_exception_master_breakpoint): Update.
7559 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7560 * c-valprint.c (c_val_print): Update.
7561 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7562 * common/agent.c (agent_look_up_symbols): Update.
7563 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7564 * dwarf2loc.c (call_site_to_target_addr): Update.
7565 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7566 * elfread.c (elf_gnu_ifunc_record_cache)
7567 (elf_gnu_ifunc_resolve_by_got): Update.
7568 * findvar.c (default_read_var_value): Update.
7569 * frame.c (inside_main_func): Update.
7570 * frv-tdep.c (frv_frame_this_id): Update.
7571 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7572 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7573 Update.
7574 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7575 (hppa_hpux_find_dummy_bpaddr): Update.
7576 * hppa-tdep.c (hppa_symbol_address): Update.
7577 * infcmd.c (until_next_command): Update.
7578 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7579 Update.
7580 * linespec.c (minsym_found, add_minsym): Update.
7581 * linux-nat.c (get_signo): Update.
7582 * linux-thread-db.c (inferior_has_bug): Update.
7583 * m32c-tdep.c (m32c_return_value)
7584 (m32c_m16c_address_to_pointer): Update.
7585 * m32r-tdep.c (m32r_frame_this_id): Update.
7586 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7587 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7588 * maint.c (maintenance_translate_address): Update.
7589 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7590 (frob_address): New function.
7591 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7592 frob_address. Rename parameter to "pc_in".
7593 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7594 addresses.
7595 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7596 Update.
7597 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7598 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7599 * objc-lang.c (find_objc_msgsend): Update.
7600 * objfiles.c (objfile_relocate1): Update.
7601 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7602 * p-valprint.c (pascal_val_print): Update.
7603 * parse.c (write_exp_msymbol): Update.
7604 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7605 (ppc_elfv2_skip_entrypoint): Update.
7606 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7607 * printcmd.c (build_address_symbolic, msym_info)
7608 (address_info): Update.
7609 * proc-service.c (ps_pglobal_lookup): Update.
7610 * psymtab.c (find_pc_sect_psymtab_closer)
7611 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7612 Change msymbol parameter to bound_minimal_symbol.
7613 * ravenscar-thread.c (get_running_thread_id): Update.
7614 * remote.c (remote_check_symbols): Update.
7615 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7616 address.
7617 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7618 * solib-dsbt.c (lm_base): Update.
7619 * solib-frv.c (lm_base, main_got): Update.
7620 * solib-irix.c (locate_base): Update.
7621 * solib-som.c (som_solib_create_inferior_hook)
7622 (link_map_start): Update.
7623 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7624 * solib-svr4.c (elf_locate_base, enable_break): Update.
7625 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7626 (flush_ea_cache): Update.
7627 * stabsread.c (define_symbol, scan_file_globals): Update.
7628 * stack.c (find_frame_funname): Update.
7629 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7630 (debug_qf_find_pc_sect_symtab): Update.
7631 * symfile.c (simple_read_overlay_table)
7632 (simple_overlay_update): Update.
7633 * symfile.h (struct quick_symbol_functions)
7634 <find_pc_sect_symtab>: Change type of msymbol to
7635 bound_minimal_symbol.
7636 * symmisc.c (dump_msymbols): Update.
7637 * symtab.c (find_pc_sect_symtab_via_partial)
7638 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7639 (search_symbols, print_msymbol_info): Update.
7640 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7641 (MSYMBOL_VALUE_ADDRESS): Redefine.
7642 (BMSYMBOL_VALUE_ADDRESS): New macro.
7643 * tracepoint.c (scope_info): Update.
7644 * tui/tui-disasm.c (tui_find_disassembly_address)
7645 (tui_get_begin_asm_address): Update.
7646 * valops.c (find_function_in_inferior): Update.
7647 * value.c (value_static_field, value_fn_field): Update.
7648
7649 2014-02-26 Tom Tromey <tromey@redhat.com>
7650
7651 * ada-lang.c (ada_update_initial_language): Update.
7652 (ada_main_name, ada_has_this_exception_support): Update.
7653 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7654 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7655 * arm-tdep.c (arm_skip_stub): Update.
7656 * auxv.c (ld_so_xfer_auxv): Update.
7657 * avr-tdep.c (avr_scan_prologue): Update.
7658 * ax-gdb.c (gen_var_ref): Update.
7659 * breakpoint.c (struct breakpoint_objfile_data)
7660 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7661 type to bound_minimal_symbol.
7662 (create_overlay_event_breakpoint)
7663 (create_longjmp_master_breakpoint)
7664 (create_std_terminate_master_breakpoint)
7665 (create_exception_master_breakpoint): Update.
7666 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7667 * c-exp.y (classify_name): Update.
7668 * coffread.c (coff_symfile_read): Update.
7669 * common/agent.c (agent_look_up_symbols): Update.
7670 * d-lang.c (d_main_name): Update.
7671 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7672 * dec-thread.c (enable_dec_thread): Update.
7673 * dwarf2loc.c (call_site_to_target_addr): Update.
7674 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7675 * eval.c (evaluate_subexp_standard): Update.
7676 * findvar.c (struct minsym_lookup_data) <result>: Change type
7677 to bound_minimal_symbol.
7678 <objfile>: Remove.
7679 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7680 * frame.c (inside_main_func): Update.
7681 * frv-tdep.c (frv_frame_this_id): Update.
7682 * gcore.c (call_target_sbrk): Update.
7683 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7684 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7685 Update.
7686 * go-lang.c (go_main_name): Update.
7687 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7688 (hppa_hpux_find_import_stub_for_addr): Update.
7689 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7690 Update. Change return type.
7691 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7692 type.
7693 * jit.c (jit_breakpoint_re_set_internal): Update.
7694 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7695 Update.
7696 * linux-nat.c (get_signo): Update.
7697 * linux-thread-db.c (inferior_has_bug): Update
7698 * m32c-tdep.c (m32c_return_value)
7699 (m32c_m16c_address_to_pointer): Update.
7700 * m32r-tdep.c (m32r_frame_this_id): Update.
7701 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7702 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7703 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7704 lookup_minimal_symbol. Change return type.
7705 (lookup_minimal_symbol): Remove.
7706 (lookup_bound_minimal_symbol): Update.
7707 (lookup_minimal_symbol_text): Change return type.
7708 (lookup_minimal_symbol_solib_trampoline): Change return type.
7709 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7710 (lookup_minimal_symbol_solib_trampoline): Change return type.
7711 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7712 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7713 (value_nsstring, find_imps): Update.
7714 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7715 * p-lang.c (pascal_main_name): Update.
7716 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7717 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7718 * proc-service.c (ps_pglobal_lookup): Update.
7719 * ravenscar-thread.c (get_running_thread_msymbol): Change
7720 return type.
7721 (has_ravenscar_runtime, get_running_thread_id): Update.
7722 * remote.c (remote_check_symbols): Update.
7723 * sol-thread.c (ps_pglobal_lookup): Update.
7724 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7725 * solib-dsbt.c (lm_base): Update.
7726 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7727 Update.
7728 * solib-irix.c (locate_base): Update.
7729 * solib-som.c (som_solib_create_inferior_hook)
7730 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7731 Update.
7732 * solib-spu.c (spu_enable_break): Update.
7733 * solib-svr4.c (elf_locate_base, enable_break): Update.
7734 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7735 (flush_ea_cache): Update.
7736 * stabsread.c (define_symbol): Update.
7737 * symfile.c (simple_read_overlay_table): Update.
7738 * symtab.c (find_pc_sect_line): Update.
7739 * tracepoint.c (scope_info): Update.
7740 * tui-disasm.c (tui_get_begin_asm_address): Update.
7741 * value.c (value_static_field): Update.
7742
7743 2014-02-26 Tom Tromey <tromey@redhat.com>
7744
7745 * minsyms.c (prim_record_minimal_symbol_full): Use
7746 SET_MSYMBOL_VALUE_ADDRESS.
7747 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7748 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7749 SET_MSYMBOL_VALUE_ADDRESS.
7750 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7751 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7752
7753 2014-02-26 Tom Tromey <tromey@redhat.com>
7754
7755 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7756 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7757 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7758 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7759 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7760 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7761 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7762 * ada-lang.c (ada_main_name): Update.
7763 (ada_lookup_simple_minsym): Update.
7764 (ada_make_symbol_completion_list): Update.
7765 (ada_add_standard_exceptions): Update.
7766 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7767 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7768 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7769 * arm-tdep.c (skip_prologue_function): Update.
7770 (arm_skip_stack_protector, arm_skip_stub): Update.
7771 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7772 (arm_wince_skip_main_prologue): Update.
7773 * auxv.c (ld_so_xfer_auxv): Update.
7774 * avr-tdep.c (avr_scan_prologue): Update.
7775 * ax-gdb.c (gen_var_ref): Update.
7776 * block.c (call_site_for_pc): Update.
7777 * blockframe.c (get_pc_function_start): Update.
7778 (find_pc_partial_function_gnu_ifunc): Update.
7779 * breakpoint.c (create_overlay_event_breakpoint): Update.
7780 (create_longjmp_master_breakpoint): Update.
7781 (create_std_terminate_master_breakpoint): Update.
7782 (create_exception_master_breakpoint): Update.
7783 (resolve_sal_pc): Update.
7784 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7785 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7786 Update.
7787 * c-valprint.c (c_val_print): Update.
7788 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7789 * coffread.c (coff_symfile_read): Update.
7790 * common/agent.c (agent_look_up_symbols): Update.
7791 * dbxread.c (find_stab_function_addr): Update.
7792 (end_psymtab): Update.
7793 * dwarf2loc.c (call_site_to_target_addr): Update.
7794 (func_verify_no_selftailcall): Update.
7795 (tailcall_dump): Update.
7796 (call_site_find_chain_1): Update.
7797 (dwarf_expr_reg_to_entry_parameter): Update.
7798 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7799 (elf_gnu_ifunc_resolve_by_got): Update.
7800 * f-valprint.c (info_common_command): Update.
7801 * findvar.c (read_var_value): Update.
7802 * frame.c (get_prev_frame_1): Update.
7803 (inside_main_func): Update.
7804 * frv-tdep.c (frv_skip_main_prologue): Update.
7805 (frv_frame_this_id): Update.
7806 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7807 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7808 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7809 (gnuv3_skip_trampoline): Update.
7810 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7811 (hppa64_hpux_in_solib_call_trampoline): Update.
7812 (hppa_hpux_skip_trampoline_code): Update.
7813 (hppa64_hpux_search_dummy_call_sequence): Update.
7814 (hppa_hpux_find_import_stub_for_addr): Update.
7815 (hppa_hpux_find_dummy_bpaddr): Update.
7816 * hppa-tdep.c (hppa_symbol_address)
7817 (hppa_lookup_stub_minimal_symbol): Update.
7818 * i386-tdep.c (i386_skip_main_prologue): Update.
7819 (i386_pe_skip_trampoline_code): Update.
7820 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7821 * infcall.c (get_function_name): Update.
7822 * infcmd.c (until_next_command): Update.
7823 * jit.c (jit_breakpoint_re_set_internal): Update.
7824 (jit_inferior_init): Update.
7825 * linespec.c (minsym_found): Update.
7826 (add_minsym): Update.
7827 * linux-fork.c (info_checkpoints_command): Update.
7828 * linux-nat.c (get_signo): Update.
7829 * linux-thread-db.c (inferior_has_bug): Update.
7830 * m32c-tdep.c (m32c_return_value): Update.
7831 (m32c_m16c_address_to_pointer): Update.
7832 (m32c_m16c_pointer_to_address): Update.
7833 * m32r-tdep.c (m32r_frame_this_id): Update.
7834 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7835 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7836 * maint.c (maintenance_translate_address): Update.
7837 * minsyms.c (add_minsym_to_hash_table): Update.
7838 (add_minsym_to_demangled_hash_table): Update.
7839 (msymbol_objfile): Update.
7840 (lookup_minimal_symbol): Update.
7841 (iterate_over_minimal_symbols): Update.
7842 (lookup_minimal_symbol_text): Update.
7843 (lookup_minimal_symbol_by_pc_name): Update.
7844 (lookup_minimal_symbol_solib_trampoline): Update.
7845 (lookup_minimal_symbol_by_pc_section_1): Update.
7846 (lookup_minimal_symbol_and_objfile): Update.
7847 (prim_record_minimal_symbol_full): Update.
7848 (compare_minimal_symbols): Update.
7849 (compact_minimal_symbols): Update.
7850 (build_minimal_symbol_hash_tables): Update.
7851 (install_minimal_symbols): Update.
7852 (terminate_minimal_symbol_table): Update.
7853 (find_solib_trampoline_target): Update.
7854 (minimal_symbol_upper_bound): Update.
7855 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7856 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7857 (mips_skip_pic_trampoline_code): Update.
7858 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7859 * objc-lang.c (selectors_info): Update.
7860 (classes_info): Update.
7861 (find_methods): Update.
7862 (find_imps): Update.
7863 (find_objc_msgsend): Update.
7864 * objfiles.c (objfile_relocate1): Update.
7865 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7866 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7867 * p-valprint.c (pascal_val_print): Update.
7868 * parse.c (write_exp_msymbol): Update.
7869 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7870 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7871 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7872 * printcmd.c (build_address_symbolic): Update.
7873 (sym_info): Update.
7874 (address_info): Update.
7875 * proc-service.c (ps_pglobal_lookup): Update.
7876 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7877 (find_pc_sect_psymtab): Update.
7878 * python/py-framefilter.c (py_print_frame): Update.
7879 * ravenscar-thread.c (get_running_thread_id): Update.
7880 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7881 Update.
7882 * remote.c (remote_check_symbols): Update.
7883 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7884 (rs6000_skip_trampoline_code): Update.
7885 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7886 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7887 * solib-dsbt.c (lm_base): Update.
7888 * solib-frv.c (lm_base): Update.
7889 (main_got): Update.
7890 * solib-irix.c (locate_base): Update.
7891 * solib-som.c (som_solib_create_inferior_hook): Update.
7892 (som_solib_desire_dynamic_linker_symbols): Update.
7893 (link_map_start): Update.
7894 * solib-spu.c (spu_enable_break): Update.
7895 (ocl_enable_break): Update.
7896 * solib-svr4.c (elf_locate_base): Update.
7897 (enable_break): Update.
7898 * spu-tdep.c (spu_get_overlay_table): Update.
7899 (spu_catch_start): Update.
7900 (flush_ea_cache): Update.
7901 * stabsread.c (define_symbol): Update.
7902 (scan_file_globals): Update.
7903 * stack.c (find_frame_funname): Update.
7904 (frame_info): Update.
7905 * symfile.c (simple_read_overlay_table): Update.
7906 (simple_overlay_update): Update.
7907 * symmisc.c (dump_msymbols): Update.
7908 * symtab.c (fixup_section): Update.
7909 (find_pc_sect_line): Update.
7910 (skip_prologue_sal): Update.
7911 (search_symbols): Update.
7912 (print_msymbol_info): Update.
7913 (rbreak_command): Update.
7914 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7915 (completion_list_objc_symbol): Update.
7916 (default_make_symbol_completion_list_break_on): Update.
7917 * tracepoint.c (scope_info): Update.
7918 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7919 (tui_get_begin_asm_address): Update.
7920 * valops.c (find_function_in_inferior): Update.
7921 * value.c (value_static_field): Update.
7922 (value_fn_field): Update.
7923
7924 2014-02-26 Tom Tromey <tromey@redhat.com>
7925
7926 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7927 bound minimal symbols. Move code that knows about minsym
7928 table layout...
7929 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7930 function.
7931 * minsyms.h (minimal_symbol_upper_bound): Declare.
7932 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7933 minimal_symbol_upper_bound.
7934
7935 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7936
7937 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7938 Use the type's name if its basic type does not have a tag.
7939
7940 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7941
7942 * dwarf2read.c (read_subrange_type): Add comment.
7943
7944 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7945
7946 * dwarf2read.c (update_enumeration_type_from_children): New
7947 function, mostly extracted from process_structure_scope.
7948 (read_enumeration_type): Call update_enumeration_type_from_children.
7949 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7950 and flag_flag_enum fields.
7951
7952 2014-02-26 Pedro Alves <palves@redhat.com>
7953
7954 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7955 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7956 to_xfer_partial method.
7957
7958 2014-02-26 Pedro Alves <palves@redhat.com>
7959
7960 * target.c (complete_target_initialization): Don't install
7961 default_xfer_partial as to_xfer_partial hook.
7962 (nomemory): Delete.
7963 (update_current_target): Don't INHERIT nor de_fault
7964 deprecated_xfer_memory. Delete de_fault macro.
7965 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7966 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7967 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7968 field.
7969
7970 2014-02-26 Pedro Alves <palves@redhat.com>
7971
7972 * go32-nat.c (my_write_child): New function.
7973 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7974 (go32_xfer_partial): New function.
7975 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7976 Instead install a to_xfer_partial hook.
7977
7978 2014-02-26 Pedro Alves <palves@redhat.com>
7979
7980 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7981 to_xfer_partial helper. Rewrite.
7982 (procfs_xfer_partial): New function.
7983 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7984 Install a to_xfer_partial hook.
7985
7986 2014-02-26 Pedro Alves <palves@redhat.com>
7987
7988 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7989 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7990 (m32r_xfer_partial): New function.
7991 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7992 Install a to_xfer_partial hook.
7993
7994 2014-02-26 Pedro Alves <palves@redhat.com>
7995
7996 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7997 helper.
7998 (mips_xfer_partial): New function.
7999 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8000 hook. Install a to_xfer_partial hook.
8001
8002 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8003
8004 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8005 * gdbtypes.c (create_array_type_with_stride): New function,
8006 renaming create_array_type, but with an added parameter
8007 called "bit_stride".
8008 (create_array_type): Re-implement using
8009 create_array_type_with_stride.
8010 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8011 and DW_AT_bit_stride attributes.
8012
8013 2014-02-26 Pedro Alves <palves@redhat.com>
8014
8015 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8016 task-specific breakpoints.
8017
8018 2014-02-25 Pedro Alves <palves@redhat.com>
8019
8020 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8021 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8022
8023 2014-02-25 Stan Shebs <stan@codesourcery.com>
8024
8025 * defs.h: Annotate comments for Doxygen.
8026
8027 2014-02-25 Tom Tromey <tromey@redhat.com>
8028
8029 * target.h (target_ignore): Don't declare.
8030 * target.c (target_ignore): Remove.
8031
8032 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8033
8034 PR gdb/16626
8035 * auto-load.c (auto_load_objfile_script_1): Change filename to
8036 debugfile.
8037
8038 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8039
8040 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8041 documentation. Adjust prototype to match the target_ops
8042 to_xfer_partial method. Adjust implementation accordingly.
8043
8044 2014-02-25 Hui Zhu <hui@codesourcery.com>
8045
8046 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8047 to_traceframe_info.
8048
8049 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8050
8051 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8052 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8053 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8054 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8055 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8056 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8057 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8058 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8059 New constants.
8060 (rl78_register_type): Use a data pointer type for SP and
8061 new pseudo registers mentioned above. Use a 16 bit integer
8062 type for all other register pairs.
8063 (rl78_register_name, rl78_g10_register_name): Update for
8064 new pseudo registers.
8065 (rl78_pseudo_register_read): Likewise.
8066 (rl78_pseudo_register_write): Likewise.
8067 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8068 to the newly added pseudo registers.
8069
8070 2014-02-24 Doug Evans <dje@google.com>
8071
8072 * value.c (record_latest_value): Fix comment.
8073 * printcmd.c (print_command_1): Remove code to handle -1 return from
8074 record_latest_value.
8075
8076 2014-02-24 Pedro Alves <palves@redhat.com>
8077
8078 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8079 deprecated_xfer_memory hook.
8080 (procfs_xfer_partial): Call procfs_xfer_memory instead
8081 of the deprecated_xfer_memory target hook.
8082 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8083 helper.
8084
8085 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8086
8087 * windows-nat.c (windows_xfer_shared_libraries): Return
8088 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8089 requested object is TARGET_OBJECT_LIBRARIES.
8090
8091 2014-02-24 Yao Qi <yao@codesourcery.com>
8092
8093 * target.h (enum target_xfer_status)
8094 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8095 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8096 explicitly. New.
8097 * corefile.c (memory_error_message): User updated.
8098 * exec.c (section_table_read_available_memory): Likewise.
8099 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8100 * target.c (target_xfer_status_to_string): Likewise.
8101 (raw_memory_xfer_partial): Likewise.
8102 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8103 * valops.c (read_value_memory): Likewise.
8104 * exec.h: Update comments.
8105
8106 2014-02-24 Yao Qi <yao@codesourcery.com>
8107
8108 * target.c (target_xfer_status_to_string): Rename argument err
8109 to status.
8110 * target.h (target_xfer_status_to_string): Update declaration.
8111 Replace target_xfer_error_to_string with
8112 target_xfer_status_to_string in comment.
8113
8114 2014-02-24 Yao Qi <yao@codesourcery.com>
8115
8116 * mips-linux-nat.c (super_close): Update its type.
8117 (mips_linux_close): Pass 'self' to super_close.
8118
8119 2014-02-24 Yao Qi <yao@codesourcery.com>
8120
8121 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8122 * corefile.c (read_memory): Adjusted.
8123 * target.c (target_write_with_progress): Adjusted.
8124
8125 2014-02-23 Yao Qi <yao@codesourcery.com>
8126
8127 Revert two patches:
8128
8129 2013-10-25 Yao Qi <yao@codesourcery.com>
8130
8131 * remote.c (remote_traceframe_info): Return early if
8132 traceframe is not selected.
8133
8134 2013-07-19 Yao Qi <yao@codesourcery.com>
8135
8136 * target.c (update_current_target): Change the default action
8137 of 'to_traceframe_info' from tcomplain to return_zero.
8138 * target.h (struct target_ops) <to_traceframe_info>: Add more
8139 comments.
8140
8141 2014-02-23 Yao Qi <yao@codesourcery.com>
8142
8143 * valops.c (read_value_memory): Rewrite it. Call
8144 target_xfer_partial in a loop.
8145 * exec.h (section_table_available_memory): Remove declaration.
8146 Move comments to ...
8147 * exec.c (section_table_available_memory): ... here. Make it
8148 static.
8149
8150 2014-02-23 Yao Qi <yao@codesourcery.com>
8151
8152 * exec.c (section_table_read_available_memory): New function.
8153 * exec.h (section_table_read_available_memory): Declare.
8154 * ctf.c (ctf_xfer_partial): Call
8155 section_table_read_available_memory.
8156 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8157
8158 2014-02-23 Yao Qi <yao@codesourcery.com>
8159
8160 * ctf.c (ctf_xfer_partial): Move code to ...
8161 * exec.c (exec_read_partial_read_only): ... it. New function.
8162 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8163 * tracefile.c: Include "exec.h".
8164 * exec.h (exec_read_partial_read_only): Declare.
8165
8166 2014-02-23 Yao Qi <yao@codesourcery.com>
8167
8168 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8169 (tfile_has_memory): Remove.
8170 (init_tfile_ops): Don't set fields to_has_all_memory and
8171 to_has_memory of tfile_ops.
8172 * tracefile.c (tracefile_has_all_memory): New function.
8173 (tracefile_has_memory): New function.
8174 (init_tracefile_ops): Initialize fields to_has_all_memory and
8175 to_has_memory of 'ops'.
8176
8177 2014-02-23 Yao Qi <yao@codesourcery.com>
8178
8179 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8180 (ctf_thread_alive, ctf_get_trace_status): Remove.
8181 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8182 init_tracefile_ops.
8183 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8184 (tfile_has_stack, tfile_has_registers): Remove.
8185 (tfile_thread_alive): Remove.
8186 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8187 init_tracefile_ops.
8188 * tracefile.c (tracefile_has_stack): New function.
8189 (tracefile_has_registers): New function.
8190 (tracefile_thread_alive): New function.
8191 (tracefile_get_trace_status): New function.
8192 (init_tracefile_ops): New function.
8193 * tracefile.h (init_tracefile_ops): Declare.
8194
8195 2014-02-23 Yao Qi <yao@codesourcery.com>
8196
8197 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8198 (O_LARGEFILE): Likewise.
8199 (tfile_ops): Likewise.
8200 (TRACE_HEADER_SIZE): Likewise.
8201 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8202 (cur_data_size): Likewise.
8203 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8204 (tfile_close, tfile_files_info): Likewise.
8205 (tfile_get_trace_status): Likewise.
8206 (tfile_get_tracepoint_status): Likewise.
8207 (tfile_get_traceframe_address): Likewise.
8208 (tfile_trace_find, match_blocktype): Likewise.
8209 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8210 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8211 (tfile_get_trace_state_variable_value): Likewise.
8212 (tfile_has_all_memory, tfile_has_memory): Likewise.
8213 (tfile_has_stack, tfile_has_registers): Likewise.
8214 (tfile_thread_alive, build_traceframe_info): Likewise.
8215 (tfile_traceframe_info, init_tfile_ops): Likewise.
8216 (_initialize_tracepoint): Don't call init_tfile_ops
8217 and add_target_with_completer.
8218 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8219 exec.h, completer.h and filenames.h.
8220 (_initialize_tracefile_tfile): New function.
8221
8222 2014-02-23 Yao Qi <yao@codesourcery.com>
8223
8224 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8225 tracefile-tfile.o.
8226 (HFILES_NO_SRCDIR): Add tracefile.h.
8227 * ctf.c: Include "tracefile.h".
8228 * tracefile.h: New file.
8229 * tracefile.c: New file
8230 * tracefile-tfile.c: New file.
8231 * tracepoint.c: Include "tracefile.h".
8232 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8233 (stop_reason_names): Add const.
8234 (trace_file_writer_xfree): Move it to tracefile.c.
8235 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8236 (trace_save_ctf): Likewise.
8237 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8238 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8239 (tfile_write_header, tfile_write_regblock_type): Likewise.
8240 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8241 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8242 (tfile_write_raw_data, tfile_end): Likewise.
8243 (tfile_trace_file_writer_new): Likewise.
8244 (free_uploaded_tp): Make it extern.
8245 (free_uploaded_tsv): Make it extern.
8246 (_initialize_tracepoint): Move code to register command 'tsave'
8247 to tracefile.c.
8248 * tracepoint.h (stop_reason_names): Declare.
8249 (struct trace_frame_write_ops): Move it to tracefile.h.
8250 (struct trace_file_write_ops): Likewise.
8251 (struct trace_file_writer): Likewise.
8252 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8253
8254 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8255
8256 PR gdb/16594
8257 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8258 process name.
8259 (get_cores_used_by_process): New parameter num_cores, use it.
8260 (linux_xfer_osdata_processes): Pass num_cores to it.
8261 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8262 process name.
8263
8264 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8265
8266 * target.c (memory_xfer_partial): Fix length arg in call to
8267 breakpoint_xfer_memory.
8268
8269 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8270
8271 PR tdep/16397
8272 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8273 number comes after the + or - signs. Adjust length of register
8274 name to be extracted.
8275
8276 2014-02-20 Tom Tromey <tromey@redhat.com>
8277
8278 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8279 (ada_varobj_ops): Mark "extern".
8280
8281 2014-02-20 Tom Tromey <tromey@redhat.com>
8282
8283 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8284
8285 2014-02-20 Doug Evans <xdje42@gmail.com>
8286
8287 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8288 All callers updated.
8289 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8290 All callers updated.
8291 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8292 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8293
8294 2014-02-20 lin zuojian <manjian2006@gmail.com>
8295 Joel Brobecker <brobecker@adacore.com>
8296 Doug Evans <xdje42@gmail.com>
8297
8298 PR symtab/16581
8299 * dwarf2read.c (struct die_info): New member in_process.
8300 (reset_die_in_process): New function.
8301 (process_die): Set it at the start, reset when returning.
8302 (inherit_abstract_dies): Only call process_die if origin_child_die
8303 not already being processed.
8304
8305 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8306
8307 * windows-nat.c (handle_unload_dll): Add function documentation.
8308 (do_initial_windows_stuff): Add comment explaining why we wait
8309 until after inferior initialization has finished before
8310 processing all DLLs.
8311
8312 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8313
8314 * windows-nat.c (get_module_name): Delete.
8315 (windows_get_exec_module_filename): New function, mostly
8316 inspired from get_module_name.
8317 (windows_pid_to_exec_file): Replace call to get_module_name
8318 by call to windows_get_exec_module_filename.
8319
8320 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8321
8322 * windows-nat.c (handle_load_dll): Rewrite this function's
8323 introductory comment. Remove code using get_module_name
8324 to get the DLL's name.
8325
8326 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8327
8328 * windows-nat.c (get_windows_debug_event): Ignore
8329 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8330 if windows_initialization_done == 0.
8331 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8332 Adjust implementation to always load all DLLs.
8333 (do_initial_windows_stuff): Replace call to
8334 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8335
8336 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8337
8338 * windows-nat.c (_initialize_windows_nat): Deprecate the
8339 "dll-symbols" command. Turn the "add-shared-symbol-files"
8340 and "assf" aliases into commands, and deprecate them as well.
8341 * NEWS: Add entry explaining that "dll-symbols" and its two
8342 aliases are now deprecated.
8343
8344 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8345
8346 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8347 new-line in debug string. Remove trailing spaces.
8348
8349 2014-02-19 Stan Shebs <stan@codesourcery.com>
8350
8351 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8352
8353 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8354
8355 * NEWS: Add entry for the new feature
8356 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8357 and class values.
8358
8359 2014-02-19 Stan Shebs <stan@codesourcery.com>
8360
8361 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8362
8363 2014-02-19 Pedro Alves <palves@redhat.com>
8364
8365 * common/ptid.h (struct ptid): Mention that process_stratum
8366 targets should prefer ptid.lwp.
8367
8368 2014-02-19 Pedro Alves <palves@redhat.com>
8369
8370 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8371 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8372 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8373 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8374 store remote thread ids rather than ptid.tid.
8375 (_initialize_remote): Adjust.
8376
8377 2014-02-19 Tom Tromey <tromey@redhat.com>
8378
8379 * target.c (target_get_unwinder): Rewrite.
8380 (target_get_tailcall_unwinder): Rewrite.
8381 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8382 (record_btrace_to_get_tailcall_unwinder): New function.
8383 (init_record_btrace_ops): Update.
8384 * target.h (struct target_ops) <to_get_unwinder,
8385 to_get_tailcall_unwinder>: Now function pointers. Use
8386 TARGET_DEFAULT_RETURN.
8387
8388 2014-02-19 Tom Tromey <tromey@redhat.com>
8389
8390 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8391 argument.
8392 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8393
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8395
8396 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8397 directly.
8398 * target-delegates.c: Rebuild.
8399 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8400 TARGET_DEFAULT_FUNC.
8401 * target.c (default_target_decr_pc_after_break): Rename from
8402 forward_target_decr_pc_after_break. Simplify.
8403 (target_decr_pc_after_break): Rely on delegation.
8404
8405 2014-02-19 Tom Tromey <tromey@redhat.com>
8406
8407 * target.c (update_current_target): Do not INHERIT to_doc or
8408 to_magic. Do not de_fault to_open or to_close.
8409
8410 2014-02-19 Tom Tromey <tromey@redhat.com>
8411
8412 * gcore.h (objfile_find_memory_regions): Declare.
8413 * gcore.c (objfile_find_memory_regions): No longer static. Add
8414 "self" argument.
8415 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8416 * exec.c: Include gcore.h.
8417 (exec_set_find_memory_regions): Remove.
8418 (exec_find_memory_regions): Remove.
8419 (exec_do_find_memory_regions): Remove.
8420 (init_exec_ops): Update.
8421 * defs.h (exec_set_find_memory_regions): Remove.
8422
8423 2014-02-19 Tom Tromey <tromey@redhat.com>
8424
8425 * target-delegates.c: Rebuild.
8426 * target.h (struct target_ops) <to_extra_thread_info,
8427 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8428 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8429 not 0, in TARGET_DEFAULT_RETURN.
8430
8431 2014-02-19 Tom Tromey <tromey@redhat.com>
8432
8433 * target.c (complete_target_initialization): Remove casts. Use
8434 return_zero_has_execution.
8435 (return_zero): Add "ignore" argument.
8436 (return_zero_has_execution): New function.
8437 (init_dummy_target): Remove casts. Use
8438 return_zero_has_execution.
8439
8440 2014-02-19 Tom Tromey <tromey@redhat.com>
8441
8442 * target.c (update_current_target): Update comments. Do not
8443 INHERIT to_stratum.
8444
8445 2014-02-19 Tom Tromey <tromey@redhat.com>
8446
8447 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8448 needed.
8449 * corelow.c (core_read_description): Delegate when needed.
8450 * remote.c (remote_read_description): Delegate when needed.
8451 * target-delegates.c: Rebuild.
8452 * target.c (target_read_description): Rewrite.
8453 * target.h (struct target_ops) <to_read_description>: Update
8454 comment. Use TARGET_DEFAULT_RETURN.
8455
8456 2014-02-19 Tom Tromey <tromey@redhat.com>
8457
8458 * target-delegates.c: Rebuild.
8459 * target.c (update_current_target): Don't inherit or default
8460 to_can_run.
8461 (find_default_run_target): Check against delegate_can_run.
8462 * target.h (struct target_ops) <to_can_run>: Use
8463 TARGET_DEFAULT_RETURN.
8464
8465 2014-02-19 Tom Tromey <tromey@redhat.com>
8466
8467 * target-delegates.c: Rebuild.
8468 * target.c (target_disconnect): Unconditionally delegate.
8469 * target.h (struct target_ops) <to_disconnect>: Use
8470 TARGET_DEFAULT_NORETURN.
8471
8472 2014-02-19 Tom Tromey <tromey@redhat.com>
8473
8474 * record.c (record_stop): Unconditionally delegate.
8475 * target-delegates.c: Rebuild.
8476 * target.c (target_stop_recording): Unconditionally delegate.
8477 * target.h (struct target_ops) <to_stop_recording>: Use
8478 TARGET_DEFAULT_IGNORE.
8479
8480 2014-02-19 Tom Tromey <tromey@redhat.com>
8481
8482 * target-delegates.c: Rebuild.
8483 * target.c (target_enable_btrace): Unconditionally delegate.
8484 * target.h (struct target_ops) <to_enable_btrace>: Use
8485 TARGET_DEFAULT_NORETURN.
8486
8487 2014-02-19 Tom Tromey <tromey@redhat.com>
8488
8489 * target-delegates.c: Rebuild.
8490 * target.c (target_read_btrace): Unconditionally delegate.
8491 * target.h (struct target_ops) <to_read_btrace>: Use
8492 TARGET_DEFAULT_NORETURN.
8493
8494 2014-02-19 Tom Tromey <tromey@redhat.com>
8495
8496 * target-delegates.c: Rebuild.
8497 * target.c (target_teardown_btrace): Unconditionally delegate.
8498 * target.h (struct target_ops) <to_teardown_btrace>: Use
8499 TARGET_DEFAULT_NORETURN.
8500
8501 2014-02-19 Tom Tromey <tromey@redhat.com>
8502
8503 * target-delegates.c: Rebuild.
8504 * target.c (target_disable_btrace): Unconditionally delegate.
8505 * target.h (struct target_ops) <to_disable_btrace>: Use
8506 TARGET_DEFAULT_NORETURN.
8507
8508 2014-02-19 Tom Tromey <tromey@redhat.com>
8509
8510 * target-delegates.c: Rebuild.
8511 * target.c (default_search_memory): New function.
8512 (simple_search_memory): Update comment.
8513 (target_search_memory): Unconditionally delegate.
8514 * target.h (struct target_ops) <to_search_memory>: Use
8515 TARGET_DEFAULT_FUNC.
8516
8517 2014-02-19 Tom Tromey <tromey@redhat.com>
8518
8519 * auxv.c (default_auxv_parse): No longer static.
8520 (target_auxv_parse): Unconditionally delegate.
8521 * auxv.h (default_auxv_parse): Declare.
8522 * target-delegates.c: Rebuild.
8523 * target.c: Include auxv.h.
8524 * target.h (struct target_ops) <to_auxv_parse>: Use
8525 TARGET_DEFAULT_FUNC.
8526
8527 2014-02-19 Tom Tromey <tromey@redhat.com>
8528
8529 * target-delegates.c: Rebuild.
8530 * target.c (target_memory_map): Unconditionally delegate.
8531 * target.h (struct target_ops) <to_memory_map>: Use
8532 TARGET_DEFAULT_RETURN.
8533
8534 2014-02-19 Tom Tromey <tromey@redhat.com>
8535
8536 * target-delegates.c: Rebuild.
8537 * target.c (target_thread_alive): Unconditionally delegate.
8538 * target.h (struct target_ops) <to_thread_alive>: Use
8539 TARGET_DEFAULT_RETURN.
8540
8541 2014-02-19 Tom Tromey <tromey@redhat.com>
8542
8543 * target-delegates.c: Rebuild.
8544 * target.c (target_save_record): Unconditionally delegate.
8545 * target.h (struct target_ops) <to_save_record>: Use
8546 TARGET_DEFAULT_NORETURN.
8547
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8549
8550 * target-delegates.c: Rebuild.
8551 * target.c (target_delete_record): Unconditionally delegate.
8552 * target.h (struct target_ops) <to_delete_record>: Use
8553 TARGET_DEFAULT_NORETURN.
8554
8555 2014-02-19 Tom Tromey <tromey@redhat.com>
8556
8557 * target-delegates.c: Rebuild.
8558 * target.c (target_record_is_replaying): Unconditionally
8559 delegate.
8560 * target.h (struct target_ops) <to_record_is_replaying>: Use
8561 TARGET_DEFAULT_RETURN.
8562
8563 2014-02-19 Tom Tromey <tromey@redhat.com>
8564
8565 * target-delegates.c: Rebuild.
8566 * target.c (target_goto_record_begin): Unconditionally delegate.
8567 * target.h (struct target_ops) <to_goto_record_begin>: Use
8568 TARGET_DEFAULT_NORETURN.
8569
8570 2014-02-19 Tom Tromey <tromey@redhat.com>
8571
8572 * target-delegates.c: Rebuild.
8573 * target.c (target_goto_record_end): Unconditionally delegate.
8574 * target.h (struct target_ops) <to_goto_record_end>: Use
8575 TARGET_DEFAULT_NORETURN.
8576
8577 2014-02-19 Tom Tromey <tromey@redhat.com>
8578
8579 * target-delegates.c: Rebuild.
8580 * target.c (target_goto_record): Unconditionally delegate.
8581 * target.h (struct target_ops) <to_goto_record>: Use
8582 TARGET_DEFAULT_NORETURN.
8583
8584 2014-02-19 Tom Tromey <tromey@redhat.com>
8585
8586 * target-delegates.c: Rebuild.
8587 * target.c (target_insn_history): Unconditionally delegate.
8588 * target.h (struct target_ops) <to_insn_history>: Use
8589 TARGET_DEFAULT_NORETURN.
8590
8591 2014-02-19 Tom Tromey <tromey@redhat.com>
8592
8593 * target-delegates.c: Rebuild.
8594 * target.c (target_insn_history_from): Unconditionally delegate.
8595 * target.h (struct target_ops) <to_insn_history_from>: Use
8596 TARGET_DEFAULT_NORETURN.
8597
8598 2014-02-19 Tom Tromey <tromey@redhat.com>
8599
8600 * target-delegates.c: Rebuild.
8601 * target.c (target_insn_history_range): Unconditionally delegate.
8602 * target.h (struct target_ops) <to_insn_history_range>: Use
8603 TARGET_DEFAULT_NORETURN.
8604
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8606
8607 * target-delegates.c: Rebuild.
8608 * target.c (target_call_history): Unconditionally delegate.
8609 * target.h (struct target_ops) <to_call_history>: Use
8610 TARGET_DEFAULT_NORETURN.
8611
8612 2014-02-19 Tom Tromey <tromey@redhat.com>
8613
8614 * target-delegates.c: Rebuild.
8615 * target.c (target_call_history_from): Unconditionally delegate.
8616 * target.h (struct target_ops) <to_call_history_from>: Use
8617 TARGET_DEFAULT_NORETURN.
8618
8619 2014-02-19 Tom Tromey <tromey@redhat.com>
8620
8621 * target-delegates.c: Rebuild.
8622 * target.c (target_call_history_range): Unconditionally delegate.
8623 * target.h (struct target_ops) <to_call_history_range>: Use
8624 TARGET_DEFAULT_NORETURN.
8625
8626 2014-02-19 Tom Tromey <tromey@redhat.com>
8627
8628 * target-delegates.c: Rebuild.
8629 * target.c (target_verify_memory): Unconditionally delegate.
8630 * target.h (struct target_ops) <to_verify_memory>: Use
8631 TARGET_DEFAULT_NORETURN.
8632
8633 2014-02-19 Tom Tromey <tromey@redhat.com>
8634
8635 * target-delegates.c: Rebuild.
8636 * target.c (target_core_of_thread): Unconditionally delegate.
8637 * target.h (struct target_ops) <to_core_of_thread>: Use
8638 TARGET_DEFAULT_RETURN.
8639
8640 2014-02-19 Tom Tromey <tromey@redhat.com>
8641
8642 * target-delegates.c: Rebuild.
8643 * target.c (target_flash_done): Unconditionally delegate.
8644 * target.h (struct target_ops) <to_flash_done>: Use
8645 TARGET_DEFAULT_NORETURN.
8646
8647 2014-02-19 Tom Tromey <tromey@redhat.com>
8648
8649 * target-delegates.c: Rebuild.
8650 * target.c (target_flash_erase): Unconditionally delegate.
8651 * target.h (struct target_ops) <to_flash_erase>: Use
8652 TARGET_DEFAULT_NORETURN.
8653
8654 2014-02-19 Tom Tromey <tromey@redhat.com>
8655
8656 * target-delegates.c: Rebuild.
8657 * target.c (target_get_section_table): Unconditionally delegate.
8658 * target.h (struct target_ops) <to_get_section_table>: Use
8659 TARGET_DEFAULT_RETURN.
8660
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * target-delegates.c: Rebuild.
8664 * target.c (target_pid_to_str): Unconditionally delegate.
8665 (init_dummy_target): Don't initialize to_pid_to_str.
8666 (default_pid_to_str): Rename from dummy_pid_to_str.
8667 * target.h (struct target_ops) <to_pid_to_str>: Use
8668 TARGET_DEFAULT_FUNC.
8669
8670 2014-02-19 Tom Tromey <tromey@redhat.com>
8671
8672 * target-delegates.c: Rebuild.
8673 * target.c (target_find_new_threads): Unconditionally delegate.
8674 * target.h (struct target_ops) <to_find_new_threads>: Use
8675 TARGET_DEFAULT_RETURN.
8676
8677 2014-02-19 Tom Tromey <tromey@redhat.com>
8678
8679 * target-delegates.c: Rebuild.
8680 * target.c (target_program_signals): Unconditionally delegate.
8681 * target.h (struct target_ops) <to_program_signals>: Use
8682 TARGET_DEFAULT_IGNORE.
8683
8684 2014-02-19 Tom Tromey <tromey@redhat.com>
8685
8686 * target-delegates.c: Rebuild.
8687 * target.c (target_pass_signals): Unconditionally delegate.
8688 * target.h (struct target_ops) <to_pass_signals>: Use
8689 TARGET_DEFAULT_IGNORE.
8690
8691 2014-02-19 Tom Tromey <tromey@redhat.com>
8692
8693 * target-delegates.c: Rebuild.
8694 * target.c (default_mourn_inferior): New function.
8695 (target_mourn_inferior): Unconditionally delegate.
8696 * target.h (struct target_ops) <to_mourn_inferior>: Use
8697 TARGET_DEFAULT_FUNC.
8698
8699 2014-02-19 Tom Tromey <tromey@redhat.com>
8700
8701 * target-delegates.c: Rebuild.
8702 * target.c (default_follow_fork): New function.
8703 (target_follow_fork): Unconditionally delegate.
8704 * target.h (struct target_ops) <to_follow_fork>: Use
8705 TARGET_DEFAULT_FUNC.
8706
8707 2014-02-19 Tom Tromey <tromey@redhat.com>
8708
8709 * target-delegates.c: Rebuild.
8710 * target.c (target_kill): Unconditionally delegate.
8711 * target.h (struct target_ops) <to_kill>: Use
8712 TARGET_DEFAULT_NORETURN.
8713
8714 2014-02-19 Tom Tromey <tromey@redhat.com>
8715
8716 * target-delegates.c: Rebuild.
8717 * target.c (target_masked_watch_num_registers): Unconditionally
8718 delegate.
8719 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8720 Use TARGET_DEFAULT_RETURN.
8721
8722 2014-02-19 Tom Tromey <tromey@redhat.com>
8723
8724 * target-delegates.c: Rebuild.
8725 * target.c (target_remove_mask_watchpoint): Unconditionally
8726 delegate.
8727 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8728 TARGET_DEFAULT_RETURN.
8729
8730 2014-02-19 Tom Tromey <tromey@redhat.com>
8731
8732 * target-delegates.c: Rebuild.
8733 * target.c (target_insert_mask_watchpoint): Unconditionally
8734 delegate.
8735 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8736 TARGET_DEFAULT_RETURN.
8737
8738 2014-02-19 Tom Tromey <tromey@redhat.com>
8739
8740 * target-delegates.c: Rebuild.
8741 * target.c (target_ranged_break_num_registers): Unconditionally
8742 delegate.
8743 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8744 Use TARGET_DEFAULT_RETURN.
8745
8746 2014-02-19 Tom Tromey <tromey@redhat.com>
8747
8748 * target-delegates.c: Rebuild.
8749 * target.c (target_fetch_registers): Unconditionally delegate.
8750 * target.h (struct target_ops) <to_fetch_registers>: Use
8751 TARGET_DEFAULT_NORETURN.
8752
8753 2014-02-19 Tom Tromey <tromey@redhat.com>
8754
8755 * target-delegates.c: Rebuild.
8756 * target.c (update_current_target): Don't inherit or default
8757 to_stop.
8758 * target.h (struct target_ops) <to_stop>: Use
8759 TARGET_DEFAULT_IGNORE.
8760
8761 2014-02-19 Tom Tromey <tromey@redhat.com>
8762
8763 * target-delegates.c: Rebuild.
8764 * target.c (update_current_target): Don't inherit or default
8765 to_can_run_breakpoint_commands.
8766 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8767 Use TARGET_DEFAULT_RETURN.
8768
8769 2014-02-19 Tom Tromey <tromey@redhat.com>
8770
8771 * target-delegates.c: Rebuild.
8772 * target.c (update_current_target): Don't inherit or default
8773 to_supports_evaluation_of_breakpoint_conditions.
8774 * target.h (struct target_ops)
8775 <to_supports_evaluation_of_breakpoint_conditions>: Use
8776 TARGET_DEFAULT_RETURN.
8777
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8779
8780 * target-delegates.c: Rebuild.
8781 * target.c (update_current_target): Don't inherit or default
8782 to_augmented_libraries_svr4_read.
8783 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8784 Use TARGET_DEFAULT_RETURN.
8785
8786 2014-02-19 Tom Tromey <tromey@redhat.com>
8787
8788 * target-delegates.c: Rebuild.
8789 * target.c (update_current_target): Don't inherit or default
8790 to_can_use_agent.
8791 * target.h (struct target_ops) <to_can_use_agent>: Use
8792 TARGET_DEFAULT_RETURN.
8793
8794 2014-02-19 Tom Tromey <tromey@redhat.com>
8795
8796 * target-delegates.c: Rebuild.
8797 * target.c (update_current_target): Don't inherit or default
8798 to_use_agent.
8799 * target.h (struct target_ops) <to_use_agent>: Use
8800 TARGET_DEFAULT_NORETURN.
8801
8802 2014-02-19 Tom Tromey <tromey@redhat.com>
8803
8804 * target-delegates.c: Rebuild.
8805 * target.c (update_current_target): Don't inherit or default
8806 to_traceframe_info.
8807 (return_null): Remove.
8808 * target.h (struct target_ops) <to_traceframe_info>: Use
8809 TARGET_DEFAULT_RETURN.
8810
8811 2014-02-19 Tom Tromey <tromey@redhat.com>
8812
8813 * target-delegates.c: Rebuild.
8814 * target.c (update_current_target): Don't inherit or default
8815 to_static_tracepoint_markers_by_strid.
8816 * target.h (struct target_ops)
8817 <to_static_tracepoint_markers_by_strid>: Use
8818 TARGET_DEFAULT_NORETURN.
8819
8820 2014-02-19 Tom Tromey <tromey@redhat.com>
8821
8822 * target-delegates.c: Rebuild.
8823 * target.c (update_current_target): Don't inherit or default
8824 to_static_tracepoint_marker_at.
8825 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8826 Use TARGET_DEFAULT_RETURN.
8827
8828 2014-02-19 Tom Tromey <tromey@redhat.com>
8829
8830 * target-delegates.c: Rebuild.
8831 * target.c (update_current_target): Don't inherit or default
8832 to_set_permissions.
8833 * target.h (struct target_ops) <to_set_permissions>: Use
8834 TARGET_DEFAULT_IGNORE.
8835
8836 2014-02-19 Tom Tromey <tromey@redhat.com>
8837
8838 * target-delegates.c: Rebuild.
8839 * target.c (update_current_target): Don't inherit or default
8840 to_get_tib_address.
8841 * target.h (struct target_ops) <to_get_tib_address>: Use
8842 TARGET_DEFAULT_NORETURN.
8843
8844 2014-02-19 Tom Tromey <tromey@redhat.com>
8845
8846 * target-delegates.c: Rebuild.
8847 * target.c (update_current_target): Don't inherit or default
8848 to_set_trace_notes.
8849 * target.h (struct target_ops) <to_set_trace_notes>: Use
8850 TARGET_DEFAULT_RETURN.
8851
8852 2014-02-19 Tom Tromey <tromey@redhat.com>
8853
8854 * target-delegates.c: Rebuild.
8855 * target.c (update_current_target): Don't initialize
8856 to_set_trace_buffer_size.
8857 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8858 TARGET_DEFAULT_IGNORE.
8859
8860 2014-02-19 Tom Tromey <tromey@redhat.com>
8861
8862 * target-delegates.c: Rebuild.
8863 * target.c (update_current_target): Don't inherit or default
8864 to_set_circular_trace_buffer.
8865 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8866 TARGET_DEFAULT_IGNORE.
8867
8868 2014-02-19 Tom Tromey <tromey@redhat.com>
8869
8870 * target-delegates.c: Rebuild.
8871 * target.c (update_current_target): Don't inherit or default
8872 to_set_disconnected_tracing.
8873 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8874 TARGET_DEFAULT_IGNORE.
8875
8876 2014-02-19 Tom Tromey <tromey@redhat.com>
8877
8878 * target-delegates.c: Rebuild.
8879 * target.c (update_current_target): Don't inherit or default
8880 to_get_min_fast_tracepoint_insn_len.
8881 (return_minus_one): Remove.
8882 * target.h (struct target_ops)
8883 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8884
8885 2014-02-19 Tom Tromey <tromey@redhat.com>
8886
8887 * target-delegates.c: Rebuild.
8888 * target.c (update_current_target): Don't inherit or default
8889 to_get_raw_trace_data.
8890 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8891 TARGET_DEFAULT_NORETURN.
8892
8893 2014-02-19 Tom Tromey <tromey@redhat.com>
8894
8895 * target-delegates.c: Rebuild.
8896 * target.c (update_current_target): Don't inherit or default
8897 to_upload_trace_state_variables.
8898 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8899 Use TARGET_DEFAULT_RETURN.
8900
8901 2014-02-19 Tom Tromey <tromey@redhat.com>
8902
8903 * target-delegates.c: Rebuild.
8904 * target.c (update_current_target): Don't inherit or default
8905 to_upload_tracepoints.
8906 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8907 TARGET_DEFAULT_RETURN.
8908
8909 2014-02-19 Tom Tromey <tromey@redhat.com>
8910
8911 * target-delegates.c: Rebuild.
8912 * target.c (update_current_target): Don't inherit or default
8913 to_save_trace_data.
8914 * target.h (struct target_ops) <to_save_trace_data>: Use
8915 TARGET_DEFAULT_NORETURN.
8916
8917 2014-02-19 Tom Tromey <tromey@redhat.com>
8918
8919 * target-delegates.c: Rebuild.
8920 * target.c (update_current_target): Don't inherit or default
8921 to_get_trace_state_variable_value.
8922 * target.h (struct target_ops)
8923 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8924
8925 2014-02-19 Tom Tromey <tromey@redhat.com>
8926
8927 * target-delegates.c: Rebuild.
8928 * target.c (update_current_target): Don't inherit or default
8929 to_trace_find.
8930 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8931
8932 2014-02-19 Tom Tromey <tromey@redhat.com>
8933
8934 * target-delegates.c: Rebuild.
8935 * target.c (update_current_target): Don't inherit or default
8936 to_trace_stop.
8937 * target.h (struct target_ops) <to_trace_stop>: Use
8938 TARGET_DEFAULT_NORETURN.
8939
8940 2014-02-19 Tom Tromey <tromey@redhat.com>
8941
8942 * target-delegates.c: Rebuild.
8943 * target.c (update_current_target): Don't inherit or default
8944 to_get_tracepoint_status.
8945 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8946 TARGET_DEFAULT_NORETURN.
8947
8948 2014-02-19 Tom Tromey <tromey@redhat.com>
8949
8950 * target-delegates.c: Rebuild.
8951 * target.c (update_current_target): Don't inherit or default
8952 to_get_trace_status.
8953 * target.h (struct target_ops) <to_get_trace_status>: Use
8954 TARGET_DEFAULT_RETURN.
8955
8956 2014-02-19 Tom Tromey <tromey@redhat.com>
8957
8958 * target-delegates.c: Rebuild.
8959 * target.c (update_current_target): Don't inherit or default
8960 to_trace_start.
8961 * target.h (struct target_ops) <to_trace_start>: Use
8962 TARGET_DEFAULT_NORETURN.
8963
8964 2014-02-19 Tom Tromey <tromey@redhat.com>
8965
8966 * target-delegates.c: Rebuild.
8967 * target.c (update_current_target): Don't inherit or default
8968 to_trace_set_readonly_regions.
8969 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8970 Use TARGET_DEFAULT_NORETURN.
8971
8972 2014-02-19 Tom Tromey <tromey@redhat.com>
8973
8974 * target-delegates.c: Rebuild.
8975 * target.c (update_current_target): Don't inherit or default
8976 to_disable_tracepoint.
8977 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8978 TARGET_DEFAULT_NORETURN.
8979
8980 2014-02-19 Tom Tromey <tromey@redhat.com>
8981
8982 * target-delegates.c: Rebuild.
8983 * target.c (update_current_target): Don't inherit or default
8984 to_enable_tracepoint.
8985 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8986 TARGET_DEFAULT_NORETURN.
8987
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8989
8990 * target-delegates.c: Rebuild.
8991 * target.c (update_current_target): Don't inherit or default
8992 to_download_trace_state_variable.
8993 * target.h (struct target_ops) <to_download_trace_state_variable>:
8994 Use TARGET_DEFAULT_NORETURN.
8995
8996 2014-02-19 Tom Tromey <tromey@redhat.com>
8997
8998 * target-delegates.c: Rebuild.
8999 * target.c (update_current_target): Don't inherit or default
9000 to_can_download_tracepoint.
9001 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9002 TARGET_DEFAULT_RETURN.
9003
9004 2014-02-19 Tom Tromey <tromey@redhat.com>
9005
9006 * target-delegates.c: Rebuild.
9007 * target.c (update_current_target): Don't inherit or default
9008 to_download_tracepoint.
9009 * target.h (struct target_ops) <to_download_tracepoint>: Use
9010 TARGET_DEFAULT_NORETURN.
9011
9012 2014-02-19 Tom Tromey <tromey@redhat.com>
9013
9014 * target-delegates.c: Rebuild.
9015 * target.c (update_current_target): Don't inherit or default
9016 to_trace_init.
9017 * target.h (struct target_ops) <to_trace_init>: Use
9018 TARGET_DEFAULT_RETURN.
9019
9020 2014-02-19 Tom Tromey <tromey@redhat.com>
9021
9022 * target-delegates.c: Rebuild.
9023 * target.c (update_current_target): Don't inherit or default
9024 to_supports_string_tracing.
9025 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9026 TARGET_DEFAULT_RETURN.
9027
9028 2014-02-19 Tom Tromey <tromey@redhat.com>
9029
9030 * target-delegates.c: Rebuild.
9031 * target.c (update_current_target): Don't inherit or default
9032 to_supports_enable_disable_tracepoint.
9033 * target.h (struct target_ops)
9034 <to_supports_enable_disable_tracepoint>: Use
9035 TARGET_DEFAULT_RETURN.
9036
9037 2014-02-19 Tom Tromey <tromey@redhat.com>
9038
9039 * target-delegates.c: Rebuild.
9040 * target.c (update_current_target): Don't inherit or default
9041 to_supports_multi_process.
9042 * target.h (struct target_ops) <to_supports_multi_process>: Use
9043 TARGET_DEFAULT_RETURN.
9044
9045 2014-02-19 Tom Tromey <tromey@redhat.com>
9046
9047 * target-delegates.c: Rebuild.
9048 * target.c (update_current_target): Don't inherit or default
9049 to_get_ada_task_ptid.
9050 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9051 TARGET_DEFAULT_FUNC.
9052
9053 2014-02-19 Tom Tromey <tromey@redhat.com>
9054
9055 * target-delegates.c: Rebuild.
9056 * target.c (update_current_target): Don't inherit or default
9057 to_thread_architecture.
9058 * target.h (struct target_ops) <to_thread_architecture>: Use
9059 TARGET_DEFAULT_FUNC.
9060
9061 2014-02-19 Tom Tromey <tromey@redhat.com>
9062
9063 * target-delegates.c: Rebuild.
9064 * target.c (update_current_target): Don't inherit or default
9065 to_execution_direction.
9066 * target.h (struct target_ops) <to_execution_direction>: Use
9067 TARGET_DEFAULT_FUNC.
9068
9069 2014-02-19 Tom Tromey <tromey@redhat.com>
9070
9071 * target-delegates.c: Rebuild.
9072 * target.c (update_current_target): Don't inherit or default
9073 to_can_execute_reverse.
9074 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9075 TARGET_DEFAULT_RETURN.
9076 (target_can_execute_reverse): Unconditionally delegate.
9077
9078 2014-02-19 Tom Tromey <tromey@redhat.com>
9079
9080 * target-delegates.c: Rebuild.
9081 * target.c (update_current_target): Don't inherit or default
9082 to_goto_bookmark.
9083 (dummy_goto_bookmark): Remove.
9084 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9085 * target.h (struct target_ops) <to_goto_bookmark>: Use
9086 TARGET_DEFAULT_NORETURN.
9087
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9089
9090 * target-delegates.c: Rebuild.
9091 * target.c (update_current_target): Don't inherit or default
9092 to_get_bookmark.
9093 (dummy_get_bookmark): Remove.
9094 (init_dummy_target): Don't inherit or default to_get_bookmark.
9095 * target.h (struct target_ops) <to_get_bookmark>: Use
9096 TARGET_DEFAULT_NORETURN
9097
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9099
9100 * target-delegates.c: Rebuild.
9101 * target.c (update_current_target): Don't inherit or default
9102 to_make_corefile_notes.
9103 (init_dummy_target): Don't initialize to_make_corefile_notes.
9104 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9105 TARGET_DEFAULT_FUNC.
9106
9107 2014-02-19 Tom Tromey <tromey@redhat.com>
9108
9109 * target-delegates.c: Rebuild.
9110 * target.c (update_current_target): Don't inherit or default
9111 to_find_memory_regions.
9112 (init_dummy_target): Don't initialize to_find_memory_regions.
9113 * target.h (struct target_ops) <to_find_memory_regions>: Use
9114 TARGET_DEFAULT_FUNC.
9115
9116 2014-02-19 Tom Tromey <tromey@redhat.com>
9117
9118 * target-delegates.c: Rebuild.
9119 * target.c (update_current_target): Don't inherit or default
9120 to_log_command.
9121 * target.h (struct target_ops) <to_log_command>: Use
9122 TARGET_DEFAULT_IGNORE.
9123 (target_log_command): Unconditionally delegate.
9124
9125 2014-02-19 Tom Tromey <tromey@redhat.com>
9126
9127 * target-delegates.c: Rebuild.
9128 * target.c (update_current_target): Don't inherit or default
9129 to_pid_to_exec_file.
9130 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9131 TARGET_DEFAULT_RETURN.
9132
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target-delegates.c: Rebuild.
9136 * target.c (update_current_target): Don't inherit or default
9137 to_thread_name.
9138 (target_thread_name): Unconditionally delegate.
9139 * target.h (struct target_ops) <to_thread_name>: Use
9140 TARGET_DEFAULT_RETURN.
9141
9142 2014-02-19 Tom Tromey <tromey@redhat.com>
9143
9144 * target-delegates.c: Rebuild.
9145 * target.c (update_current_target): Don't inherit or default
9146 to_extra_thread_info.
9147 * target.h (struct target_ops) <to_extra_thread_info>: Use
9148 TARGET_DEFAULT_RETURN.
9149
9150 2014-02-19 Tom Tromey <tromey@redhat.com>
9151
9152 * target-delegates.c: Rebuild.
9153 * target.c (update_current_target): Don't inherit or default
9154 to_has_exited.
9155 * target.h (struct target_ops) <to_has_exited>: Use
9156 TARGET_DEFAULT_RETURN..
9157
9158 2014-02-19 Tom Tromey <tromey@redhat.com>
9159
9160 * target-delegates.c: Rebuild.
9161 * target.c (update_current_target): Don't inherit or default
9162 to_set_syscall_catchpoint.
9163 (return_one): Remove.
9164 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9165 TARGET_DEFAULT_RETURN.
9166
9167 2014-02-19 Tom Tromey <tromey@redhat.com>
9168
9169 * target-delegates.c: Rebuild.
9170 * target.c (update_current_target): Don't inherit or default
9171 to_insert_exec_catchpoint.
9172 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9173 TARGET_DEFAULT_RETURN.
9174
9175 2014-01-08 Tom Tromey <tromey@redhat.com>
9176
9177 * target-delegates.c: Rebuild.
9178 * target.c (update_current_target): Don't inherit or default
9179 to_insert_exec_catchpoint.
9180 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9181 TARGET_DEFAULT_RETURN.
9182
9183 2014-02-19 Tom Tromey <tromey@redhat.com>
9184
9185 * target-delegates.c: Rebuild.
9186 * target.c (update_current_target): Don't inherit or default
9187 to_remove_vfork_catchpoint.
9188 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9189 TARGET_DEFAULT_RETURN.
9190
9191 2014-02-19 Tom Tromey <tromey@redhat.com>
9192
9193 * target-delegates.c: Rebuild.
9194 * target.c (update_current_target): Don't inherit or default
9195 to_insert_vfork_catchpoint.
9196 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9197 TARGET_DEFAULT_RETURN.
9198
9199 2014-02-19 Tom Tromey <tromey@redhat.com>
9200
9201 * target-delegates.c: Rebuild.
9202 * target.c (update_current_target): Don't inherit or default
9203 to_remove_fork_catchpoint.
9204 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9205 TARGET_DEFAULT_RETURN.
9206
9207 2014-02-19 Tom Tromey <tromey@redhat.com>
9208
9209 * target-delegates.c: Rebuild.
9210 * target.c (update_current_target): Don't inherit or default
9211 to_insert_fork_catchpoint.
9212 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9213 TARGET_DEFAULT_RETURN.
9214
9215 2014-02-19 Tom Tromey <tromey@redhat.com>
9216
9217 * target-delegates.c: Rebuild.
9218 * target.c (update_current_target): Don't inherit or default
9219 to_post_startup_inferior.
9220 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9221 TARGET_DEFAULT_IGNORE.
9222
9223 2014-02-19 Tom Tromey <tromey@redhat.com>
9224
9225 * target-delegates.c: Rebuild.
9226 * target.c (update_current_target): Don't inherit or default
9227 to_load.
9228 * target.h (struct target_ops) <to_load>: Use
9229 TARGET_DEFAULT_NORETURN.
9230
9231 2014-02-19 Tom Tromey <tromey@redhat.com>
9232
9233 * target-delegates.c: Rebuild.
9234 * target.c (update_current_target): Don't inherit or default
9235 to_terminal_info.
9236 * target.h (struct target_ops) <to_terminal_info>: Use
9237 TARGET_DEFAULT_FUNC.
9238
9239 2014-02-19 Tom Tromey <tromey@redhat.com>
9240
9241 * target-delegates.c: Rebuild.
9242 * target.c (update_current_target): Don't inherit or default
9243 to_terminal_save_ours.
9244 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9245 TARGET_DEFAULT_IGNORE.
9246
9247 2014-02-19 Tom Tromey <tromey@redhat.com>
9248
9249 * target-delegates.c: Rebuild.
9250 * target.c (update_current_target): Don't inherit or default
9251 to_terminal_ours.
9252 * target.h (struct target_ops) <to_terminal_ours>: Use
9253 TARGET_DEFAULT_IGNORE.
9254
9255 2014-02-19 Tom Tromey <tromey@redhat.com>
9256
9257 * target-delegates.c: Rebuild.
9258 * target.c (update_current_target): Don't inherit or default
9259 to_terminal_ours_for_output.
9260 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9261 TARGET_DEFAULT_IGNORE.
9262
9263 2014-02-19 Tom Tromey <tromey@redhat.com>
9264
9265 * target-delegates.c: Rebuild.
9266 * target.c (update_current_target): Don't inherit or default
9267 to_terminal_inferior.
9268 * target.h (struct target_ops) <to_terminal_inferior>: Use
9269 TARGET_DEFAULT_IGNORE.
9270
9271 2014-02-19 Tom Tromey <tromey@redhat.com>
9272
9273 * target-delegates.c: Rebuild.
9274 * target.c (update_current_target): Don't inherit or default
9275 to_terminal_init.
9276 * target.h (struct target_ops) <to_terminal_init>: Use
9277 TARGET_DEFAULT_IGNORE.
9278
9279 2014-02-19 Tom Tromey <tromey@redhat.com>
9280
9281 * target-delegates.c: Rebuild.
9282 * target.c (update_current_target): Don't inherit or default
9283 to_can_accel_watchpoint_condition.
9284 * target.h (struct target_ops)
9285 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9286
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9288
9289 * target-delegates.c: Rebuild.
9290 * target.c (update_current_target): Don't inherit or default
9291 to_region_ok_for_hw_watchpoint.
9292 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9293 Use TARGET_DEFAULT_FUNC.
9294
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9296
9297 * target-delegates.c: Rebuild.
9298 * target.c (update_current_target): Don't inherit or default
9299 to_watchpoint_addr_within_range.
9300 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9301 Use TARGET_DEFAULT_FUNC.
9302
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9304
9305 * target-delegates.c: Rebuild.
9306 * target.c (update_current_target): Don't inherit or default
9307 to_remove_watchpoint.
9308 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9309 TARGET_DEFAULT_NORETURN.
9310
9311 2014-02-19 Tom Tromey <tromey@redhat.com>
9312
9313 * target-delegates.c: Rebuild.
9314 * target.c (update_current_target): Don't inherit or default
9315 to_insert_watchpoint.
9316 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9317 TARGET_DEFAULT_RETURN.
9318
9319 2014-02-19 Tom Tromey <tromey@redhat.com>
9320
9321 * target-delegates.c: Rebuild.
9322 * target.c (update_current_target): Don't inherit or default
9323 to_remove_hw_breakpoint.
9324 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9325 TARGET_DEFAULT_RETURN.
9326
9327 2014-02-19 Tom Tromey <tromey@redhat.com>
9328
9329 * target-delegates.c: Rebuild.
9330 * target.c (update_current_target): Don't inherit or default
9331 to_insert_hw_breakpoint.
9332 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9333 TARGET_DEFAULT_RETURN.
9334
9335 2014-02-19 Tom Tromey <tromey@redhat.com>
9336
9337 * target-delegates.c: Rebuild.
9338 * target.c (update_current_target): Don't inherit or default
9339 to_can_use_hw_breakpoint.
9340 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9341 TARGET_DEFAULT_RETURN.
9342
9343 2014-02-19 Tom Tromey <tromey@redhat.com>
9344
9345 * target-delegates.c: Rebuild.
9346 * target.c (update_current_target): Don't inherit or default
9347 to_files_info.
9348 * target.h (struct target_ops) <to_files_info>: Use
9349 TARGET_DEFAULT_IGNORE.
9350
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9352
9353 * target-delegates.c: Rebuild.
9354 * target.c (update_current_target): Don't inherit or default
9355 to_store.
9356 * target.h (struct target_ops) <to_store>: Use
9357 TARGET_DEFAULT_NORETURN.
9358
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9360
9361 * target-delegates.c: Rebuild.
9362 * target.c (update_current_target): Don't inherit or default
9363 to_post_attach.
9364 * target.h (struct target_ops) <to_post_attach>: Use
9365 TARGET_DEFAULT_IGNORE.
9366
9367 2014-02-19 Tom Tromey <tromey@redhat.com>
9368
9369 * target-delegates.c: Rebuild.
9370 * target.c (update_current_target): Don't inherit or default
9371 to_rcmd.
9372 (default_rcmd): New function.
9373 (do_monitor_command): Unconditionally delegate.
9374 * target.h (struct target_ops) <to_rmcd>: Use
9375 TARGET_DEFAULT_FUNC.
9376
9377 2014-02-19 Tom Tromey <tromey@redhat.com>
9378
9379 * target-delegates.c: Rebuild.
9380 * target.c (init_dummy_target): Don't initialize to_attach.
9381 (target_attach): Unconditionally delegate.
9382 * target.h (struct target_ops) <to_attach>: Use
9383 TARGET_DEFAULT_FUNC.
9384
9385 2014-02-19 Tom Tromey <tromey@redhat.com>
9386
9387 * target-delegates.c: Rebuild.
9388 * target.c (target_detach): Unconditionally delegate.
9389 (init_dummy_target): Don't initialize to_detach.
9390 * target.h (struct target_ops) <to_detach>: Use
9391 TARGET_DEFAULT_IGNORE.
9392
9393 2014-02-19 Tom Tromey <tromey@redhat.com>
9394
9395 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9396 Add argument.
9397 (target_augmented_libraries_svr4_read): Add argument.
9398 * target.c (update_current_target): Update.
9399 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9400 argument.
9401
9402 2014-02-19 Tom Tromey <tromey@redhat.com>
9403
9404 * target.h (struct target_ops) <to_call_history_range>: Add
9405 argument.
9406 * target.c (target_call_history_range): Add argument.
9407 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9408 argument.
9409 (record_btrace_call_history_from): Update.
9410
9411 2014-02-19 Tom Tromey <tromey@redhat.com>
9412
9413 * target.h (struct target_ops) <to_call_history_from>: Add
9414 argument.
9415 * target.c (target_call_history_from): Add argument.
9416 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9417 argument.
9418
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9420
9421 * target.h (struct target_ops) <to_call_history>: Add argument.
9422 * target.c (target_call_history): Add argument.
9423 * record-btrace.c (record_btrace_call_history): Add 'self'
9424 argument.
9425
9426 2014-02-19 Tom Tromey <tromey@redhat.com>
9427
9428 * target.h (struct target_ops) <to_insn_history_range>: Add
9429 argument.
9430 * target.c (target_insn_history_range): Add argument.
9431 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9432 argument.
9433 (record_btrace_insn_history_from): Update.
9434
9435 2014-02-19 Tom Tromey <tromey@redhat.com>
9436
9437 * target.h (struct target_ops) <to_insn_history_from>: Add
9438 argument.
9439 * target.c (target_insn_history_from): Add argument.
9440 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9441 argument.
9442
9443 2014-02-19 Tom Tromey <tromey@redhat.com>
9444
9445 * target.h (struct target_ops) <to_insn_history>: Add argument.
9446 * target.c (target_insn_history): Add argument.
9447 * record-btrace.c (record_btrace_insn_history): Add 'self'
9448 argument.
9449
9450 2014-02-19 Tom Tromey <tromey@redhat.com>
9451
9452 * target.h (struct target_ops) <to_goto_record>: Add argument.
9453 * target.c (target_goto_record): Add argument.
9454 * record-full.c (record_full_goto): Add 'self' argument.
9455 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9456
9457 2014-02-19 Tom Tromey <tromey@redhat.com>
9458
9459 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9460 * target.c (target_goto_record_end): Add argument.
9461 * record-full.c (record_full_goto_end): Add 'self' argument.
9462 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9463
9464 2014-02-19 Tom Tromey <tromey@redhat.com>
9465
9466 * target.h (struct target_ops) <to_goto_record_begin>: Add
9467 argument.
9468 * target.c (target_goto_record_begin): Add argument.
9469 * record-full.c (record_full_goto_begin): Add 'self' argument.
9470 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9471 argument.
9472
9473 2014-02-19 Tom Tromey <tromey@redhat.com>
9474
9475 * target.h (struct target_ops) <to_record_is_replaying>: Add
9476 argument.
9477 * target.c (target_record_is_replaying): Add argument.
9478 * record-full.c (record_full_is_replaying): Add 'self' argument.
9479 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9480 argument.
9481 (record_btrace_xfer_partial, record_btrace_store_registers)
9482 (record_btrace_prepare_to_store, record_btrace_resume)
9483 (record_btrace_wait, record_btrace_decr_pc_after_break)
9484 (record_btrace_find_new_threads, record_btrace_thread_alive):
9485 Update.
9486
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9488
9489 * target.h (struct target_ops) <to_delete_record>: Add argument.
9490 * target.c (target_delete_record): Add argument.
9491 * record-full.c (record_full_delete): Add 'self' argument.
9492
9493 2014-02-19 Tom Tromey <tromey@redhat.com>
9494
9495 * target.h (struct target_ops) <to_save_record>: Add argument.
9496 * target.c (target_save_record): Add argument.
9497 * record-full.c (record_full_save): Add 'self' argument.
9498 (record_full_save): Add 'self' argument.
9499
9500 2014-02-19 Tom Tromey <tromey@redhat.com>
9501
9502 * target.h (struct target_ops) <to_info_record>: Add argument.
9503 * target.c (target_info_record): Add argument.
9504 * record.c (info_record_command): Add argument.
9505 * record-full.c (record_full_info): Add 'self' argument.
9506 * record-btrace.c (record_btrace_info): Add 'self' argument.
9507
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9509
9510 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9511 * target.c (target_stop_recording): Add argument.
9512 * record.c (record_stop): Add argument.
9513 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9514 argument.
9515
9516 2014-02-19 Tom Tromey <tromey@redhat.com>
9517
9518 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9519 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9520 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9521 argument.
9522 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9523 (_initialize_amd64_linux_nat): Use it.
9524 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9525 (_initialize_i386_linux_nat): Use it.
9526
9527 2014-02-19 Tom Tromey <tromey@redhat.com>
9528
9529 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9530 * target.c (target_teardown_btrace): Add argument.
9531 * remote.c (remote_teardown_btrace): Add 'self' argument.
9532 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9533 argument.
9534 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9535 argument.
9536
9537 2014-02-19 Tom Tromey <tromey@redhat.com>
9538
9539 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9540 * target.c (target_disable_btrace): Add argument.
9541 * remote.c (remote_disable_btrace): Add 'self' argument.
9542 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9543 argument.
9544 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9545 argument.
9546
9547 2014-02-19 Tom Tromey <tromey@redhat.com>
9548
9549 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9550 * target.c (target_enable_btrace): Add argument.
9551 * remote.c (remote_enable_btrace): Add 'self' argument.
9552 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9553 argument.
9554 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9555 argument.
9556
9557 2014-02-19 Tom Tromey <tromey@redhat.com>
9558
9559 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9560 (target_can_use_agent): Add argument.
9561 * target.c (update_current_target): Update.
9562 * remote.c (remote_can_use_agent): Add 'self' argument.
9563 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9564
9565 2014-02-19 Tom Tromey <tromey@redhat.com>
9566
9567 * target.h (struct target_ops) <to_use_agent>: Add argument.
9568 (target_use_agent): Add argument.
9569 * target.c (update_current_target): Update.
9570 * remote.c (remote_use_agent): Add 'self' argument.
9571 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9572
9573 2014-02-19 Tom Tromey <tromey@redhat.com>
9574
9575 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9576 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9577 (target_traceframe_info): Add argument.
9578 * target.c (update_current_target): Update.
9579 * remote.c (remote_traceframe_info): Add 'self' argument.
9580 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9581
9582 2014-02-19 Tom Tromey <tromey@redhat.com>
9583
9584 * target.h (target_static_tracepoint_markers_by_strid): Add
9585 argument.
9586 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9587 'self' argument.
9588 * target.c (update_current_target): Update.
9589 * remote.c (struct target_ops)
9590 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9591 * linux-nat.c (struct target_ops)
9592 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9593
9594 2014-02-19 Tom Tromey <tromey@redhat.com>
9595
9596 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9597 Add argument.
9598 (target_static_tracepoint_marker_at): Add argument.
9599 * target.c (update_current_target): Update.
9600 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9601 argument.
9602
9603 2014-02-19 Tom Tromey <tromey@redhat.com>
9604
9605 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9606 (target_set_permissions): Add argument.
9607 * target.c (update_current_target): Update.
9608 * remote.c (remote_set_permissions): Add 'self' argument.
9609 (remote_start_remote): Update.
9610
9611 2014-02-19 Tom Tromey <tromey@redhat.com>
9612
9613 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9614 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9615 (target_get_tib_address): Add argument.
9616 * target.c (update_current_target): Update.
9617 * remote.c (remote_get_tib_address): Add 'self' argument.
9618
9619 2014-02-19 Tom Tromey <tromey@redhat.com>
9620
9621 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9622 (target_set_trace_notes): Add argument.
9623 * target.c (update_current_target): Update.
9624 * remote.c (remote_set_trace_notes): Add 'self' argument.
9625
9626 2014-02-19 Tom Tromey <tromey@redhat.com>
9627
9628 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9629 argument.
9630 (target_set_trace_buffer_size): Add argument.
9631 * target.c (update_current_target): Update.
9632 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9633
9634 2014-02-19 Tom Tromey <tromey@redhat.com>
9635
9636 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9637 argument.
9638 (target_set_circular_trace_buffer): Add argument.
9639 * target.c (update_current_target): Update.
9640 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9641 argument.
9642
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9644
9645 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9646 argument.
9647 (target_set_disconnected_tracing): Add argument.
9648 * target.c (update_current_target): Update.
9649 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9650
9651 2014-02-19 Tom Tromey <tromey@redhat.com>
9652
9653 * target.h (struct target_ops)
9654 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9655 (target_get_min_fast_tracepoint_insn_len): Add argument.
9656 * target.c (update_current_target): Update.
9657 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9658 argument.
9659
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9661
9662 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9663 argument.
9664 (target_get_raw_trace_data): Add argument.
9665 * target.c (update_current_target): Update.
9666 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9667
9668 2014-02-19 Tom Tromey <tromey@redhat.com>
9669
9670 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9671 Add argument.
9672 (target_upload_trace_state_variables): Add argument.
9673 * target.c (update_current_target): Update.
9674 * remote.c (remote_upload_trace_state_variables): Add 'self'
9675 argument.
9676 (remote_start_remote): Update.
9677
9678 2014-02-19 Tom Tromey <tromey@redhat.com>
9679
9680 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9681 argument.
9682 (target_upload_tracepoints): Add argument.
9683 * target.c (update_current_target): Update.
9684 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9685 (remote_start_remote): Update.
9686
9687 2014-02-19 Tom Tromey <tromey@redhat.com>
9688
9689 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9690 (target_save_trace_data): Add argument.
9691 * target.c (update_current_target): Update.
9692 * remote.c (remote_save_trace_data): Add 'self' argument.
9693
9694 2014-02-19 Tom Tromey <tromey@redhat.com>
9695
9696 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9697 argument.
9698 * target.h (struct target_ops)
9699 <to_get_trace_state_variable_value>: Add argument.
9700 (target_get_trace_state_variable_value): Add argument.
9701 * target.c (update_current_target): Update.
9702 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9703 argument.
9704 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9705
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9709 * target.h (struct target_ops) <to_trace_find>: Add argument.
9710 (target_trace_find): Add argument.
9711 * target.c (update_current_target): Update.
9712 * remote.c (remote_trace_find): Add 'self' argument.
9713 * ctf.c (ctf_trace_find): Add 'self' argument.
9714
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9716
9717 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9718 (target_trace_stop): Add argument.
9719 * target.c (update_current_target): Update.
9720 * remote.c (remote_trace_stop): Add 'self' argument.
9721
9722 2014-02-19 Tom Tromey <tromey@redhat.com>
9723
9724 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9725 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9726 argument.
9727 (target_get_tracepoint_status): Add argument.
9728 * target.c (update_current_target): Update.
9729 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9730
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9732
9733 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9734 * target.h (struct target_ops) <to_get_trace_status>: Add
9735 argument.
9736 (target_get_trace_status): Add argument.
9737 * target.c (update_current_target): Update.
9738 * remote.c (remote_get_trace_status): Add 'self' argument.
9739 (remote_start_remote, remote_can_download_tracepoint): Update.
9740 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9741
9742 2014-02-19 Tom Tromey <tromey@redhat.com>
9743
9744 * target.h (struct target_ops) <to_trace_start>: Add argument.
9745 (target_trace_start): Add argument.
9746 * target.c (update_current_target): Update.
9747 * remote.c (remote_trace_start): Add 'self' argument.
9748
9749 2014-02-19 Tom Tromey <tromey@redhat.com>
9750
9751 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9752 Add argument.
9753 (target_trace_set_readonly_regions): Add argument.
9754 * target.c (update_current_target): Update.
9755 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9756 argument.
9757
9758 2014-02-19 Tom Tromey <tromey@redhat.com>
9759
9760 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9761 argument.
9762 (target_disable_tracepoint): Add argument.
9763 * target.c (update_current_target): Update.
9764 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9765
9766 2014-02-19 Tom Tromey <tromey@redhat.com>
9767
9768 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9769 argument.
9770 (target_enable_tracepoint): Add argument.
9771 * target.c (update_current_target): Update.
9772 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9773
9774 2014-02-19 Tom Tromey <tromey@redhat.com>
9775
9776 * target.h (struct target_ops) <to_download_trace_state_variable>:
9777 Add argument.
9778 (target_download_trace_state_variable): Add argument.
9779 * target.c (update_current_target): Update.
9780 * remote.c (remote_download_trace_state_variable): Add 'self'
9781 argument.
9782
9783 2014-02-19 Tom Tromey <tromey@redhat.com>
9784
9785 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9786 argument.
9787 (target_can_download_tracepoint): Add argument.
9788 * target.c (update_current_target): Update.
9789 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9790
9791 2014-02-19 Tom Tromey <tromey@redhat.com>
9792
9793 * target.h (struct target_ops) <to_download_tracepoint>: Add
9794 argument.
9795 (target_download_tracepoint): Add argument.
9796 * target.c (update_current_target): Update.
9797 * remote.c (remote_download_tracepoint): Add 'self' argument.
9798
9799 2014-02-19 Tom Tromey <tromey@redhat.com>
9800
9801 * target.h (struct target_ops) <to_trace_init>: Add argument.
9802 (target_trace_init): Add argument.
9803 * target.c (update_current_target): Update.
9804 * remote.c (remote_trace_init): Add 'self' argument.
9805
9806 2014-02-19 Tom Tromey <tromey@redhat.com>
9807
9808 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9809 * target.c (target_fileio_readlink): Add argument.
9810 * remote.c (remote_hostio_readlink): Add 'self' argument.
9811 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9812
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9814
9815 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9816 * target.c (target_fileio_unlink): Add argument.
9817 * remote.c (remote_hostio_unlink): Add 'self' argument.
9818 (remote_file_delete): Update.
9819 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9820
9821 2014-02-19 Tom Tromey <tromey@redhat.com>
9822
9823 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9824 * target.c (target_fileio_close): Add argument.
9825 * remote.c (remote_hostio_close): Add 'self' argument.
9826 (remote_hostio_close_cleanup): Update.
9827 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9828 Update.
9829 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9830
9831 2014-02-19 Tom Tromey <tromey@redhat.com>
9832
9833 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9834 * target.c (target_fileio_pread): Add argument.
9835 * remote.c (remote_hostio_pread): Add 'self' argument.
9836 (remote_bfd_iovec_pread, remote_file_get): Update.
9837 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9838
9839 2014-02-19 Tom Tromey <tromey@redhat.com>
9840
9841 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9842 * target.c (target_fileio_pwrite): Add argument.
9843 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9844 (remote_file_put): Update.
9845 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9846
9847 2014-02-19 Tom Tromey <tromey@redhat.com>
9848
9849 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9850 * target.c (target_fileio_open): Add argument.
9851 * remote.c (remote_hostio_open): Add 'self' argument.
9852 (remote_bfd_iovec_open): Add 'self' argument.
9853 (remote_file_put): Add 'self' argument.
9854 (remote_file_get): Add 'self' argument.
9855 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9856
9857 2014-02-19 Tom Tromey <tromey@redhat.com>
9858
9859 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9860 Add argument.
9861 (target_can_run_breakpoint_commands): Add argument.
9862 * target.c (update_current_target): Update.
9863 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9864 argument.
9865 (remote_insert_breakpoint): Add 'self' argument.
9866 (remote_insert_hw_breakpoint): Add 'self' argument.
9867 (remote_can_run_breakpoint_commands): Add 'self' argument.
9868
9869 2014-02-19 Tom Tromey <tromey@redhat.com>
9870
9871 * target.h (struct target_ops)
9872 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9873 (target_supports_evaluation_of_breakpoint_conditions): Add
9874 argument.
9875 * target.c (update_current_target): Update.
9876 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9877 argument.
9878 (remote_insert_breakpoint): Add 'self' argument.
9879 (remote_insert_hw_breakpoint): Add 'self' argument.
9880 (remote_supports_cond_breakpoints): Add 'self' argument.
9881
9882 2014-02-19 Tom Tromey <tromey@redhat.com>
9883
9884 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9885 argument.
9886 (target_supports_string_tracing): Add argument.
9887 * target.c (update_current_target): Update.
9888 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9889
9890 2014-02-19 Tom Tromey <tromey@redhat.com>
9891
9892 * target.h (struct target_ops)
9893 <to_supports_disable_randomization>: Add argument.
9894 * target.c (find_default_supports_disable_randomization): Add
9895 argument.
9896 (target_supports_disable_randomization): Add argument.
9897 (find_default_supports_disable_randomization): Add 'self'
9898 argument.
9899 * remote.c (extended_remote_supports_disable_randomization): Add
9900 'self' argument.
9901 (remote_supports_disable_randomization): Add 'self' argument.
9902 (extended_remote_create_inferior): Update.
9903 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9904 'self' argument.
9905
9906 2014-02-19 Tom Tromey <tromey@redhat.com>
9907
9908 * target.h (struct target_ops)
9909 <to_supports_enable_disable_tracepoint>: Add argument.
9910 (target_supports_enable_disable_tracepoint): Add argument.
9911 * target.c (update_current_target): Update.
9912 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9913 argument.
9914
9915 2014-02-19 Tom Tromey <tromey@redhat.com>
9916
9917 * target.h (struct target_ops) <to_supports_multi_process>: Add
9918 argument.
9919 (target_supports_multi_process): Add argument.
9920 * target.c (update_current_target): Update.
9921 * remote.c (remote_supports_multi_process): Add 'self' argument.
9922 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9923 argument.
9924 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9925 argument.
9926
9927 2014-02-19 Tom Tromey <tromey@redhat.com>
9928
9929 * target.h (struct target_ops) <to_execution_direction>: Add
9930 argument.
9931 (target_execution_direction): Add argument.
9932 * target.c (default_execution_direction): Add 'self' argument.
9933 * record-full.c (record_full_execution_direction): Add 'self'
9934 argument.
9935
9936 2014-02-19 Tom Tromey <tromey@redhat.com>
9937
9938 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9939 argument.
9940 (target_can_execute_reverse): Add argument.
9941 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9942 * record-full.c (record_full_can_execute_reverse): Add 'self'
9943 argument.
9944 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9945 argument.
9946
9947 2014-02-19 Tom Tromey <tromey@redhat.com>
9948
9949 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9950 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9951 argument.
9952 (target_get_ada_task_ptid): Add argument.
9953 * target.c (update_current_target): Update.
9954 (default_get_ada_task_ptid): Add 'self' argument.
9955 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9956 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9957 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9958 argument.
9959 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9960 argument.
9961 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9962 argument.
9963 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9964 argument.
9965 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9966 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9967 argument.
9968
9969 2014-02-19 Tom Tromey <tromey@redhat.com>
9970
9971 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9972 (target_goto_bookmark): Add argument.
9973 * target.c (dummy_goto_bookmark): Add 'self' argument.
9974 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9975
9976 2014-02-19 Tom Tromey <tromey@redhat.com>
9977
9978 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9979 (target_get_bookmark): Add argument.
9980 * target.c (dummy_get_bookmark): Add 'self' argument.
9981 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9982
9983 2014-02-19 Tom Tromey <tromey@redhat.com>
9984
9985 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9986 argument.
9987 (target_make_corefile_notes): Add argument.
9988 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9989 * procfs.c (procfs_make_note_section): Add 'self' argument.
9990 (procfs_make_note_section): Add 'self' argument.
9991 (procfs_make_note_section): Add 'self' argument.
9992 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9993 argument.
9994 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9995 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9996 * exec.c (exec_make_note_section): Add 'self' argument.
9997 (exec_make_note_section): Add 'self' argument.
9998
9999 2014-02-19 Tom Tromey <tromey@redhat.com>
10000
10001 * target.h (struct target_ops) <to_find_memory_regions>: Add
10002 argument.
10003 (target_find_memory_regions): Add argument.
10004 * target.c (dummy_find_memory_regions): Add 'self' argument.
10005 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10006 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10007 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10008 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10009 * exec. (exec_do_find_memory_regions): New global.
10010 (exec_set_find_memory_regions): Rewrite.
10011 (exec_find_memory_regions): New function.
10012 (init_exec_ops): Use exec_find_memory_regions.
10013
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target.h (struct target_ops) <to_supports_non_stop>: Add
10017 argument.
10018 * target.c (find_default_supports_non_stop): Add argument.
10019 (target_supports_non_stop): Add argument.
10020 (find_default_supports_non_stop): Add 'self' argument.
10021 * remote.c (remote_supports_non_stop): Add 'self' argument.
10022 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10023
10024 2014-02-19 Tom Tromey <tromey@redhat.com>
10025
10026 * target.h (struct target_ops) <to_log_command>: Add argument.
10027 (target_log_command): Add argument.
10028 * serial.h (serial_log_command): Add 'self' argument.
10029 * serial.c (serial_log_command): Add 'self' argument.
10030
10031 2014-02-19 Tom Tromey <tromey@redhat.com>
10032
10033 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10034 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10035 argument.
10036 (target_pid_to_exec_file): Add argument.
10037 * target.c (debug_to_pid_to_exec_file): Add argument.
10038 (update_current_target): Update.
10039 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10040 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10041 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10042 (linux_handle_extended_wait): Update.
10043 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10044 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10045 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10046 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10047
10048 2014-02-19 Tom Tromey <tromey@redhat.com>
10049
10050 * target.h (struct target_ops) <to_rcmd>: Add argument.
10051 (target_rcmd): Add argument.
10052 * target.c (debug_to_rcmd): Add argument.
10053 (update_current_target, do_monitor_command): Update.
10054 * remote.c (remote_rcmd): Add 'self' argument.
10055 * monitor.c (monitor_rcmd): Add 'self' argument.
10056
10057 2014-02-19 Tom Tromey <tromey@redhat.com>
10058
10059 * windows-nat.c (windows_stop): Add 'self' argument.
10060 * target.h (struct target_ops) <to_stop>: Add argument.
10061 * target.c (target_stop): Add argument.
10062 (debug_to_stop): Add argument.
10063 (update_current_target): Update.
10064 * remote.c (remote_stop): Add 'self' argument.
10065 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10066 (gdbsim_cntrl_c): Update.
10067 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10068 * procfs.c (procfs_stop): Add 'self' argument.
10069 * nto-procfs.c (procfs_stop): Add 'self' argument.
10070 * monitor.c (monitor_stop): Add 'self' argument.
10071 (monitor_open): Update.
10072 * linux-nat.c (linux_nat_stop): Add argument.
10073 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10074 * gnu-nat.c (gnu_stop): Add 'self' argument.
10075 * darwin-nat.c (darwin_stop): Add 'self' argument.
10076
10077 2014-02-19 Tom Tromey <tromey@redhat.com>
10078
10079 * target.h (struct target_ops) <to_thread_name>: Add argument.
10080 * target.c (target_thread_name): Add argument.
10081 (update_current_target): Update.
10082 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10083
10084 2014-02-19 Tom Tromey <tromey@redhat.com>
10085
10086 * target.h (struct target_ops) <to_extra_thread_info>: Add
10087 argument.
10088 (target_extra_thread_info): Add argument.
10089 * target.c (update_current_target): Update.
10090 * remote.c (remote_threads_extra_info): Add 'self' argument.
10091 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10092 argument.
10093 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10094 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10095 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10096 argument.
10097 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10098 argument.
10099 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10100 argument.
10101 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10102 argument.
10103
10104 2014-02-19 Tom Tromey <tromey@redhat.com>
10105
10106 * target.h (struct target_ops) <to_program_signals>: Add argument.
10107 * target.c (target_program_signals): Add argument.
10108 * remote.c (remote_program_signals): Add 'self' argument.
10109
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10113 * target.c (target_pass_signals): Add argument.
10114 * remote.c (remote_pass_signals): Add 'self' argument.
10115 (remote_start_remote): Update.
10116 * procfs.c (procfs_pass_signals): Add 'self' argument.
10117 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10118 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10119 (linux_nat_create_inferior, linux_nat_attach): Update.
10120
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10122
10123 * windows-nat.c (windows_can_run): Add 'self' argument.
10124 * target.h (struct target_ops) <to_can_run>: Add argument.
10125 (target_can_run): Add argument.
10126 * target.c (debug_to_can_run): Add argument.
10127 (update_current_target): Update.
10128 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10129 * inf-child.c (inf_child_can_run): Add 'self' argument.
10130 * go32-nat.c (go32_can_run): Add 'self' argument.
10131
10132 2014-02-19 Tom Tromey <tromey@redhat.com>
10133
10134 * target.h (struct target_ops) <to_has_exited>: Add argument.
10135 (target_has_exited): Add argument.
10136 * target.c (debug_to_has_exited): Add argument.
10137 (update_current_target): Update.
10138
10139 2014-02-19 Tom Tromey <tromey@redhat.com>
10140
10141 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10142 argument.
10143 (target_set_syscall_catchpoint): Add argument.
10144 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10145 argument.
10146 * target.c (update_current_target): Update.
10147
10148 2014-02-19 Tom Tromey <tromey@redhat.com>
10149
10150 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10151 argument.
10152 (target_remove_exec_catchpoint): Add argument.
10153 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10154 (update_current_target): Update.
10155 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10156 argument.
10157
10158 2014-02-19 Tom Tromey <tromey@redhat.com>
10159
10160 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10161 argument.
10162 (target_insert_exec_catchpoint): Add argument.
10163 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10164 (update_current_target): Update.
10165 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10166 argument.
10167
10168 2014-02-19 Tom Tromey <tromey@redhat.com>
10169
10170 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10171 argument.
10172 (target_remove_vfork_catchpoint): Add argument.
10173 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10174 (update_current_target): Update.
10175 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10176 argument.
10177
10178 2014-02-19 Tom Tromey <tromey@redhat.com>
10179
10180 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10181 argument.
10182 (target_insert_vfork_catchpoint): Add argument.
10183 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10184 (update_current_target): Update.
10185 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10186 argument.
10187
10188 2014-02-19 Tom Tromey <tromey@redhat.com>
10189
10190 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10191 argument.
10192 (target_remove_fork_catchpoint): Add argument.
10193 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10194 (update_current_target): Update.
10195 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10196 argument.
10197
10198 2014-02-19 Tom Tromey <tromey@redhat.com>
10199
10200 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10201 argument.
10202 (target_insert_fork_catchpoint): Add argument.
10203 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10204 (update_current_target): Update.
10205 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10206 argument.
10207
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10209
10210 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10211 argument.
10212 (target_post_startup_inferior): Add argument.
10213 * target.c (debug_to_post_startup_inferior): Add argument.
10214 (update_current_target): Update.
10215 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10216 argument.
10217 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10218 argument.
10219 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10220 argument.
10221 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10222 argument.
10223 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10224 'self' argument.
10225 (super_post_startup_inferior): Likewise.
10226 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10227 'self' argument.
10228 (super_post_startup_inferior): Likewise.
10229 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10230 Add 'self' argument.
10231 (super_post_startup_inferior): Likewise.
10232
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10234
10235 * target.h (struct target_ops) <to_load>: Add argument.
10236 * target.c (target_load): Add argument.
10237 (debug_to_load): Add argument.
10238 (update_current_target): Update.
10239 * remote.c (remote_load): Add 'self' argument.
10240 * remote-sim.c (gdbsim_load): Add 'self' argument.
10241 * remote-mips.c (mips_load): Add 'self' argument.
10242 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10243 * monitor.c (monitor_load): Add 'self' argument.
10244 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10245
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10247
10248 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10249 (target_terminal_info): Add argument.
10250 * target.c (debug_to_terminal_info): Add argument.
10251 (default_terminal_info): Likewise.
10252 * inflow.c (child_terminal_info): Add 'self' argument.
10253 * inferior.h (child_terminal_info): Add 'self' argument.
10254 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10255
10256 2014-02-19 Tom Tromey <tromey@redhat.com>
10257
10258 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10259 argument.
10260 (target_terminal_save_ours): Add argument.
10261 * target.c (debug_to_terminal_save_ours): Add argument.
10262 (update_current_target): Update.
10263 * inflow.c (terminal_save_ours): Add 'self' argument.
10264 * inferior.h (terminal_save_ours): Add 'self' argument.
10265
10266 2014-02-19 Tom Tromey <tromey@redhat.com>
10267
10268 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10269 (target_terminal_ours): Add argument.
10270 * target.c (debug_to_terminal_ours): Add argument.
10271 (update_current_target): Update.
10272 * remote.c (remote_terminal_ours): Add 'self' argument.
10273 (remote_close): Update.
10274 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10275 * inflow.c (terminal_ours): Add 'self' argument.
10276 * inferior.h (terminal_ours): Add 'self' argument.
10277 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10278
10279 2014-02-19 Pedro Alves <palves@redhat.com>
10280 Tom Tromey <tromey@redhat.com>
10281
10282 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10283 argument.
10284 (target_terminal_ours_for_output): Add argument.
10285 * target.c (debug_to_terminal_ours_for_output): Add argument.
10286 (update_current_target): Update.
10287 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10288 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10289 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10290
10291 2014-02-19 Tom Tromey <tromey@redhat.com>
10292
10293 * target.h (struct target_ops) <to_terminal_inferior>: Add
10294 argument.
10295 * target.c (target_terminal_inferior): Add argument.
10296 (update_current_target): Update.
10297 * remote.c (remote_terminal_inferior): Add 'self' argument.
10298 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10299 * inflow.c (terminal_inferior): Add 'self' argument.
10300 * inferior.h (terminal_inferior): Add 'self' argument.
10301 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10302 (go32_terminal_inferior): Add 'self' argument.
10303
10304 2014-02-19 Tom Tromey <tromey@redhat.com>
10305
10306 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10307 (target_terminal_init): Add argument.
10308 * target.c (debug_to_terminal_init): Add argument.
10309 (update_current_target): Update.
10310 * inflow.c (terminal_init_inferior): Add 'self' argument.
10311 * inferior.h (terminal_init_inferior): Add 'self' argument.
10312 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10313 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10314
10315 2014-02-19 Tom Tromey <tromey@redhat.com>
10316
10317 * target.h (struct target_ops)
10318 <to_can_accel_watchpoint_condition>: Add argument.
10319 (target_can_accel_watchpoint_condition): Add argument.
10320 * target.c (debug_to_can_accel_watchpoint_condition): Add
10321 argument.
10322 (update_current_target): Update.
10323 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10324 'self' argument.
10325
10326 2014-02-19 Tom Tromey <tromey@redhat.com>
10327
10328 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10329 Add argument.
10330 (target_region_ok_for_hw_watchpoint): Add argument.
10331 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10332 (default_region_ok_for_hw_watchpoint): Add argument.
10333 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10334 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10335 argument.
10336 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10337 argument.
10338 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10339 argument.
10340 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10341 'self' argument.
10342 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10343 'self' argument.
10344 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10345 'self' argument.
10346 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10347 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10348 'self' argument.
10349 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10350 Add 'self' argument.
10351
10352 2014-02-19 Tom Tromey <tromey@redhat.com>
10353
10354 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10355 argument.
10356 (target_insert_watchpoint): Add argument.
10357 * target.c (debug_to_insert_watchpoint): Add argument.
10358 (update_current_target): Update.
10359 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10360 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10361 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10362 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10363 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10364 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10365 argument.
10366 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10367 (procfs_insert_hw_watchpoint): Add 'self' argument.
10368 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10369 argument.
10370 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10371 argument.
10372 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10373 argument.
10374 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10375 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10376 argument.
10377 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10378 'self' argument.
10379
10380 2014-02-19 Tom Tromey <tromey@redhat.com>
10381
10382 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10383 argument.
10384 (target_remove_watchpoint): Add argument.
10385 * target.c (debug_to_remove_watchpoint): Add argument.
10386 (update_current_target): Update.
10387 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10388 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10389 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10390 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10391 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10392 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10393 argument.
10394 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10395 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10396 argument.
10397 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10398 argument.
10399 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10400 argument.
10401 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10402 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10403 argument.
10404 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10405 'self' argument.
10406
10407 2014-02-19 Tom Tromey <tromey@redhat.com>
10408
10409 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10410 argument.
10411 (target_remove_hw_breakpoint): Add argument.
10412 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10413 (update_current_target): Update.
10414 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10415 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10416 argument.
10417 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10418 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10419 argument.
10420 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10421 'self' argument.
10422
10423 2014-02-19 Tom Tromey <tromey@redhat.com>
10424
10425 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10426 argument.
10427 (target_insert_hw_breakpoint): Add argument.
10428 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10429 (update_current_target): Update.
10430 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10431 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10432 argument.
10433 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10434 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10435 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10436 argument.
10437 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10438 'self' argument.
10439
10440 2014-02-19 Tom Tromey <tromey@redhat.com>
10441
10442 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10443 argument.
10444 (target_can_use_hardware_watchpoint): Add argument.
10445 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10446 (update_current_target): Update.
10447 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10448 argument.
10449 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10450 argument.
10451 * remote.c (remote_check_watch_resources): Add 'self' argument.
10452 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10453 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10454 argument.
10455 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10456 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10457 argument.
10458 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10459 argument.
10460 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10461 argument.
10462 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10463 argument.
10464 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10465 argument.
10466 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10467 argument.
10468 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10469 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10470 argument.
10471 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10472 'self' argument.
10473
10474 2014-02-19 Tom Tromey <tromey@redhat.com>
10475
10476 * target.h (struct target_ops) <to_post_attach>: Add argument.
10477 (target_post_attach): Add argument.
10478 * target.c (debug_to_post_attach): Add argument.
10479 (update_current_target): Update.
10480 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10481 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10482 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10483 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10484 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10485
10486 2014-02-19 Tom Tromey <tromey@redhat.com>
10487
10488 * windows-nat.c (windows_close): Add 'self' argument.
10489 * tracepoint.c (tfile_close): Add 'self' argument.
10490 * target.h (struct target_ops) <to_close>: Add argument.
10491 * target.c (target_close): Add argument.
10492 (update_current_target): Update.
10493 * remote.c (remote_close): Add 'self' argument.
10494 * remote-sim.c (gdbsim_close): Add 'self' argument.
10495 * remote-mips.c (mips_close): Add 'self' argument.
10496 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10497 * record-full.c (record_full_close): Add 'self' argument.
10498 * record-btrace.c (record_btrace_close): Add 'self' argument.
10499 * monitor.h (monitor_close): Add 'self' argument.
10500 * monitor.c (monitor_close): Add 'self' argument.
10501 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10502 * linux-nat.c (linux_nat_close): Add argument.
10503 * go32-nat.c (go32_close): Add 'self' argument.
10504 * exec.c (exec_close_1): Add 'self' argument.
10505 * ctf.c (ctf_close): Add 'self' argument.
10506 * corelow.c (core_close): Add 'self' argument.
10507 (core_close_cleanup): Update.
10508 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10509 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10510
10511 2014-02-19 Tom Tromey <tromey@redhat.com>
10512
10513 * remote.c (remote_load): New function.
10514 (init_remote_ops): Use it.
10515
10516 2014-02-19 Tom Tromey <tromey@redhat.com>
10517
10518 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10519 argument.
10520 * common/linux-btrace.h (linux_supports_btrace): Update.
10521 * remote.c (remote_supports_btrace): Add "self" argument.
10522 * target-delegates.c: Rebuild.
10523 * target.c (target_supports_btrace): Remove.
10524 * target.h (struct target_ops) <to_supports_btrace>: Add
10525 target_ops argument.
10526 (target_supports_btrace): New define.
10527
10528 2014-02-19 Tom Tromey <tromey@redhat.com>
10529
10530 * record-full.c (record_full_beneath_to_resume_ops)
10531 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10532 (record_full_beneath_to_wait)
10533 (record_full_beneath_to_store_registers_ops)
10534 (record_full_beneath_to_store_registers)
10535 (record_full_beneath_to_xfer_partial_ops)
10536 (record_full_beneath_to_xfer_partial)
10537 (record_full_beneath_to_insert_breakpoint_ops)
10538 (record_full_beneath_to_insert_breakpoint)
10539 (record_full_beneath_to_remove_breakpoint_ops)
10540 (record_full_beneath_to_remove_breakpoint)
10541 (record_full_beneath_to_stopped_by_watchpoint)
10542 (record_full_beneath_to_stopped_data_address)
10543 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10544 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10545 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10546 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10547 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10548 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10549 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10550 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10551 (record_full_resume, record_full_wait_1)
10552 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10553 (record_full_store_registers, record_full_xfer_partial)
10554 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10555 (record_full_async, record_full_core_xfer_partial): Use target
10556 delegation.
10557 * target-delegates.c: Rebuild.
10558 * target.c (current_xfer_partial): Remove.
10559 (update_current_target): Do not INHERIT or de_fault
10560 to_insert_breakpoint, to_remove_breakpoint,
10561 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10562 to_is_async_p, to_async. Do not set to_xfer_partial field.
10563 (default_xfer_partial): Simplify.
10564 (current_xfer_partial): Remove.
10565 (target_wait, target_resume): Simplify.
10566 (find_default_can_async_p, find_default_is_async_p): Update.
10567 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10568 to_xfer_partial, to_stopped_by_watchpoint,
10569 to_stopped_data_address.
10570 (target_store_registers): Simplify.
10571 (forward_target_remove_breakpoint)
10572 (forward_target_insert_breakpoint): Remove.
10573 (target_remove_breakpoint, target_insert_breakpoint)
10574 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10575 * target.h (struct target_ops) <to_resume, to_wait,
10576 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10577 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10578 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10579 markup.
10580 (forward_target_remove_breakpoint)
10581 (forward_target_insert_breakpoint): Remove.
10582 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10583 directly.
10584 (record_btrace_insert_breakpoint): Delegate directly.
10585
10586 2014-02-19 Tom Tromey <tromey@redhat.com>
10587
10588 PR build/7701:
10589 * target-delegates.c: New file.
10590 * target.c: Include target-delegates.c.
10591 (init_dummy_target): Call install_dummy_methods.
10592 (complete_target_initialization): Call install_delegators.
10593 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10594 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10595 * make-target-delegates: New file.
10596
10597 2014-02-19 Tom Tromey <tromey@redhat.com>
10598
10599 * record.c (find_record_target): Use find_target_at.
10600 * target.c (find_target_at): New function.
10601 * target.h (find_target_at): Declare.
10602
10603 2014-02-19 Tom Tromey <tromey@redhat.com>
10604
10605 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10606 Add 'ops' argument.
10607 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10608 'ops' argument.
10609 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10610 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10611 'ops' argument.
10612 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10613 argument.
10614 * linux-nat.c (save_sigtrap): Update.
10615 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10616 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10617 (linux_nat_close): Update.
10618 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10619 argument.
10620 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10621 argument.
10622 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10623 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10624 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10625 (tmp_to_async): Add 'ops' argument.
10626 (record_full_stopped_by_watchpoint, record_full_async)
10627 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10628 argument.
10629 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10630 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10631 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10632 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10633 (remote_is_async_p, remote_async): Add 'ops' argument.
10634 (remote_stopped_data_address): Update.
10635 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10636 * target.c (update_current_target)
10637 (find_default_can_async_p, find_default_is_async_p): Update.
10638 (init_dummy_target): Update.
10639 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10640 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10641 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10642 (target_can_async_p, target_is_async_p, target_async)
10643 (target_stopped_by_watchpoint): Update.
10644
10645 2014-02-19 Yao Qi <yao@codesourcery.com>
10646
10647 PR gdb/16220
10648 * gdbarch.sh: Remove startup_gdbarch.
10649 * gdbarch.c: Regenerated.
10650 * gdbarch.h: Likewise.
10651
10652 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10653
10654 * rl78-tdep.c (rl78_g10_register_name): New function.
10655 (rl78_return_value): Add g10 support.
10656 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10657 g10.
10658
10659 2014-02-17 Doug Evans <xdje42@gmail.com>
10660
10661 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10662 (SUBDIR_GUILE_SRCS): Ditto.
10663 (scm-gsmob.o): Ditto.
10664
10665 2014-02-17 Yao Qi <yao@codesourcery.com>
10666
10667 * gnu-nat.c (ILL_RPC): Declare defined function.
10668
10669 2014-02-17 Yao Qi <yao@codesourcery.com>
10670
10671 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10672 mach_msg_type_number_t.
10673 (gnu_write_inferior): Likewise.
10674
10675 2014-02-17 Yao Qi <yao@codesourcery.com>
10676
10677 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10678 in format string.
10679 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10680 (inf_validate_procs, inf_signal): Likewise.
10681 (S_exception_raise_request): Likewise.
10682 (do_mach_notify_dead_name): Likewise.
10683 (steal_exc_port): Likewise.
10684 (gnu_read_inferior): Change 'copy_count''s type to
10685 mach_msg_type_number_t.
10686 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10687 format string.
10688
10689 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10690
10691 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10692 flag. Adjust all users; in particular...
10693 (gnu_wait): ..., don't decrement its value in here...
10694 (gnu_create_inferior): ..., and instead set the flag in here,
10695 around the startup_inferior call, and call that one with
10696 START_INFERIOR_TRAPS_EXPECTED.
10697
10698 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10699 (ILL_RPC): ... new macro.
10700 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10701 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10702 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10703 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10704 functions with ILL_RPC macro.
10705 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10706 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10707 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10708 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10709 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10710 (S_proc_getlogin_reply, S_proc_getsid_reply)
10711 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10712 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10713 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10714 (S_proc_getnports_reply, S_proc_is_important_reply)
10715 (S_proc_get_code_reply): New stub functions, generated with
10716 ILL_RPC macro.
10717
10718 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10719 collected the type check structures.
10720
10721 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10722
10723 2014-02-14 Doug Evans <dje@google.com>
10724
10725 * target.c (target_write_partial): Fix result type.
10726
10727 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10728
10729 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10730 the proper offsets to access fpregset_t.
10731
10732 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10733
10734 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10735 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10736 * h8300-tdep.c (setmachinelist): Remove global.
10737 * hppa-tdep.c (hppa_sigtramp): Remove global.
10738 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10739 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10740 * ravenscar-thread.c (update_target_observer): Remove global.
10741 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10742
10743 2014-02-12 Tom Tromey <tromey@redhat.com>
10744
10745 * common/rsp-low.c: Update comments.
10746 * common/rsp-low.h: Update comments.
10747
10748 2014-02-12 Tom Tromey <tromey@redhat.com>
10749
10750 * common/rsp-low.c (convert_ascii_to_int): Remove.
10751 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10752
10753 2014-02-12 Tom Tromey <tromey@redhat.com>
10754
10755 * common/rsp-low.h (unhexify): Don't declare.
10756 * common/rsp-low.c (unhexify): Remove.
10757
10758 2014-02-12 Tom Tromey <tromey@redhat.com>
10759
10760 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10761 * common/rsp-low.c (convert_int_to_ascii): Remove.
10762
10763 2014-02-12 Tom Tromey <tromey@redhat.com>
10764
10765 * common/rsp-low.h (hexify): Don't declare.
10766 * common/rsp-low.c (hexify): Remove.
10767
10768 2014-02-12 Tom Tromey <tromey@redhat.com>
10769
10770 * common/rsp-low.c (hexify): Never take strlen of argument.
10771
10772 2014-02-12 Tom Tromey <tromey@redhat.com>
10773
10774 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10775 * remote.c (extended_remote_run, remote_rcmd)
10776 (remote_download_trace_state_variable, remote_save_trace_data)
10777 (remote_set_trace_notes): Update.
10778 * tracepoint.c (encode_source_string, tfile_write_status)
10779 (tfile_write_uploaded_tsv): Update.
10780
10781 2014-02-12 Tom Tromey <tromey@redhat.com>
10782
10783 * tracepoint.c: Include rsp-low.h.
10784 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10785 * remote.c: Include rsp-low.h.
10786 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10787 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10788 (remote_unescape_input): Move to common/rsp-low.c.
10789 * common/rsp-low.h: New file.
10790 * common/rsp-low.c: New file.
10791 * Makefile.in (SFILES): Add common/rsp-low.c.
10792 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10793 (COMMON_OBS): Add rsp-low.o.
10794 (rsp-low.o): New target.
10795
10796 2014-02-12 Tom Tromey <tromey@redhat.com>
10797
10798 * utils.h: Include print-utils.h.
10799 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10800 (int_string, core_addr_to_string, core_addr_to_string_nz)
10801 (hex_string, hex_string_custom): Don't declare.
10802 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10803 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10804 (hex_string_custom, int_string, core_addr_to_string)
10805 (core_addr_to_string_nz, host_address_to_string): Move to
10806 common/print-utils.c.
10807 * common/print-utils.h: New file.
10808 * common/print-utils.c: New file
10809 * Makefile.in (SFILES): Add common/print-utils.c.
10810 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10811 (COMMON_OBS): Add print-utils.o.
10812 (print-utils.o): New target.
10813
10814 2014-02-12 Tom Tromey <tromey@redhat.com>
10815
10816 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10817
10818 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10819
10820 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10821
10822 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10823
10824 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10825 if a PT_IO ptrace request returns sucessfully but indicates that 0
10826 bytes were transferred.
10827
10828 2014-02-12 Pedro Alves <palves@redhat.com>
10829 Kevin Buettner <kevinb@redhat.com>
10830
10831 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10832 TYPE_INSTANCE_FLAG_CODE_SPACE.
10833
10834 2014-02-12 Pedro Alves <palves@redhat.com>
10835
10836 * h8300-tdep.c (pseudo_from_raw_register)
10837 (raw_from_pseudo_register): New functions.
10838 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10839 them.
10840
10841 2014-02-12 Pedro Alves <palves@redhat.com>
10842
10843 * h8300-tdep.c (h8300_register_sim_regno): New function.
10844 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10845 gdbarch_register_sim_regno hook.
10846
10847 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10848
10849 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10850
10851 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10852
10853 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10854
10855 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10856
10857 * obsd-tdep.h (obsd_init_abi): New prototype.
10858 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10859 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10860 (obsd_init_abi): New functions.
10861 * i386obsd-tdep.c: Include "obsd-tdep.h".
10862 (i386obsd_init_abi): Call obsd_init_abi.
10863 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10864 (amd64obsd_init_abi): Call obsd_init_abi.
10865 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10866 obsd-tdep.c to gdb_target_obs.
10867
10868 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10869
10870 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10871 double float arguments to 16-byte in the argument slots.
10872
10873 2014-02-11 Doug Evans <xdje42@gmail.com>
10874
10875 * configure.ac: Don't crash if pkg-config is not found and guile
10876 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10877 in guile checks.
10878 * configure: Regenerate.
10879
10880 2014-02-11 Yao Qi <yao@codesourcery.com>
10881
10882 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10883 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10884 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10885 * gnu-nat.c (gnu_xfer_memory): Likewise.
10886 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10887 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10888 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10889 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10890
10891 2014-02-11 Yao Qi <yao@codesourcery.com>
10892
10893 * target.h (enum target_xfer_error): Rename to ...
10894 (enum target_xfer_status): ... it. New. All users updated.
10895 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10896 New.
10897 (TARGET_XFER_STATUS_ERROR_P): New macro.
10898 (target_xfer_error_to_string): Remove declaration.
10899 (target_xfer_status_to_string): Declare.
10900 (target_xfer_partial_ftype): Adjust it.
10901 (struct target_ops) <to_xfer_partial>: Return
10902 target_xfer_status. Add argument xfered_len. Update
10903 comments.
10904 * target.c (target_xfer_error_to_string): Rename to ...
10905 (target_xfer_status_to_string): ... it. New. All callers
10906 updated.
10907 (target_read_live_memory): Likewise. Call target_xfer_partial
10908 instead of target_read.
10909 (memory_xfer_live_readonly_partial): Return
10910 target_xfer_status. Add argument xfered_len.
10911 (raw_memory_xfer_partial): Likewise.
10912 (memory_xfer_partial_1): Likewise.
10913 (memory_xfer_partial): Likewise.
10914 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10915 properly. Update debug message.
10916 (default_xfer_partial, current_xfer_partial): Likewise.
10917 (target_write_partial): Likewise.
10918 (target_read_partial): Likewise. All callers updated.
10919 (read_whatever_is_readable): Likewise.
10920 (target_write_with_progress): Likewise.
10921 (target_read_alloc_1): Likewise.
10922
10923 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10924 * auxv.c (procfs_xfer_auxv): Likewise.
10925 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10926 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10927 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10928 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10929 * corefile.c (read_memory): Adjust.
10930 * corelow.c (core_xfer_partial): Likewise.
10931 * ctf.c (ctf_xfer_partial): Likewise.
10932 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10933 updated.
10934 (darwin_xfer_partial): Likewise.
10935 * exec.c (section_table_xfer_memory_partial): Likewise. All
10936 callers updated.
10937 (exec_xfer_partial): Likewise.
10938 * exec.h (section_table_xfer_memory_partial): Update
10939 declaration.
10940 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10941 negative.
10942 (gnu_xfer_partial): Likewise.
10943 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10944 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10945 (ia64_hpux_xfer_solib_got): Likewise.
10946 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10947 type of 'partial_len' to ULONGEST.
10948 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10949 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10950 (linux_nat_xfer_partial): Likewise.
10951 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10952 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10953 * monitor.c (monitor_xfer_memory): Likewise.
10954 (monitor_xfer_partial): Likewise.
10955 * procfs.c (procfs_xfer_partial): Likewise.
10956 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10957 * record-full.c (record_full_xfer_partial): Likewise.
10958 (record_full_core_xfer_partial): Likewise.
10959 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10960 (gdbsim_xfer_partial): Likewise.
10961 * remote.c (remote_write_bytes_aux): Likewise. All callers
10962 updated.
10963 (remote_write_bytes, remote_read_bytes): Likewise. All
10964 callers updated.
10965 (remote_flash_erase): Likewise. All callers updated.
10966 (remote_write_qxfer): Likewise. All callers updated.
10967 (remote_read_qxfer): Likewise. All callers updated.
10968 (remote_xfer_partial): Likewise.
10969 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10970 (rs6000_xfer_shared_libraries): Likewise.
10971 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10972 (sol_thread_xfer_partial): Likewise.
10973 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10974 (sparc_xfer_partial): Likewise.
10975 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10976 updated.
10977 (spu_xfer_partial): Likewise.
10978 * spu-multiarch.c (spu_xfer_partial): Likewise.
10979 * tracepoint.c (tfile_xfer_partial): Likewise.
10980 * windows-nat.c (windows_xfer_memory): Likewise.
10981 (windows_xfer_shared_libraries): Likewise.
10982 (windows_xfer_partial): Likewise.
10983 * valprint.c: Replace 'target_xfer_error' with
10984 'target_xfer_status' in comments.
10985
10986 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10987
10988 Checked in by Joel Brobecker <brobecker@adacore.com>.
10989 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10990
10991 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10992
10993 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10994 function parameters.
10995
10996 2014-02-10 Will Newton <will.newton@linaro.org>
10997
10998 * elfread.c (elf_rel_plt_read): Look for a .got section if
10999 looking up .got.plt fails.
11000 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11001 on address passed to elf_gnu_ifunc_record_cache.
11002 (elf_gnu_ifunc_resolve_addr): Likewise.
11003 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11004
11005 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11006
11007 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11008 (X_RETTURN): New macro.
11009 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11010
11011 * sparc64-tdep.c (sparc64_init_abi): Hook
11012 sparc_in_function_epilogue_p.
11013
11014 2014-02-10 Gary Benson <gbenson@redhat.com>
11015
11016 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11017 Rename name_matcher to symbol_matcher.
11018
11019 2014-02-10 Gary Benson <gbenson@redhat.com>
11020
11021 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11022 Use expand_symtabs_file_matcher_ftype and
11023 expand_symtabs_symbol_matcher_ftype.
11024
11025 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11026
11027 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11028 (struct ada_symbol_cache): New.
11029 (ada_free_symbol_cache): Forward declare.
11030 (struct ada_pspace_data): New.
11031 (ada_pspace_data_handle): New static global.
11032 (get_ada_pspace_data, ada_pspace_data_cleanup)
11033 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11034 (cache_space, cache): Delete, now folded inside struct
11035 ada_pspace_data.
11036 (ada_get_symbol_cache): New function.
11037 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11038 implementation.
11039 (_initialize_ada_language): Remove initialization of cache_space.
11040 Move call to observer_attach_inferior_exit up, grouping it
11041 with the other observer registrations inside this function.
11042 Rename command to be more general. Add call to
11043 register_program_space_data_with_cleanup.
11044
11045 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11046
11047 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11048 ada_new_objfile_observer.
11049 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11050 (_initialize_tasks): Update uses of ada_new_objfile_observer
11051 and ada_tasks_normal_stop_observer.
11052
11053 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11054
11055 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11056 returned by the 'Length attribute to integer.
11057
11058 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11059
11060 * ada-lang.c (_initialize_ada_language): Initialize
11061 cache_space obstack.
11062
11063 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11064
11065 * ada-lang.c (HASH_SIZE): New macro.
11066 (struct cache_entry): New type.
11067 (cache_space, cache): New static globals.
11068 (ada_clear_symbol_cache, find_entry): New functions.
11069 (lookup_cached_symbol, cache_symbol): Implement.
11070 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11071 (_initialize_ada_language): Attach ada_new_objfile_observer
11072 and ada_free_objfile_observer.
11073
11074 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11075
11076 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11077 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11078 struct block * parameter.
11079 (ada_lookup_symbol_list_worker): Constify local variable "block".
11080 Remove cast which is no longer necessary.
11081
11082 2014-02-10 Doug Evans <xdje42@gmail.com>
11083
11084 Add Guile as an extension language.
11085 * NEWS: Mention Guile scripting.
11086 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11087 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11088 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11089 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11090 (CLIBS): Add GUILE_LIBS.
11091 (install-guile): New rule.
11092 (guile.o): New rule.
11093 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11094 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11095 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11096 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11097 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11098 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11099 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11100 * configure.ac: New option --with-guile.
11101 * configure: Regenerate.
11102 * config.in: Regenerate.
11103 * auto-load.c: Remove #include "python/python.h". Add #include
11104 "gdb/section-scripts.h".
11105 (source_section_scripts): Handle Guile scripts.
11106 (_initialize_auto_load): Add name of Guile objfile script to
11107 scripts-directory help text.
11108 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11109 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11110 (struct breakpoint): New member scm_bp_object.
11111 * defs.h (enum command_control_type): New value guile_control.
11112 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11113 "extension.h".
11114 (show_user): Update comment.
11115 (_initialize_cli_cmds): Update help text for "show user". Update help
11116 text for max-user-call-depth.
11117 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11118 "extension.h".
11119 (multi_line_command_p): Add guile_control.
11120 (print_command_lines): Handle guile_control.
11121 (execute_control_command, recurse_read_control_structure): Ditto.
11122 (process_next_line): Recognize "guile" commands.
11123 * disasm.c (gdb_disassemble_info): Make non-static.
11124 * disasm.h: #include "dis-asm.h".
11125 (struct gdbarch): Add forward decl.
11126 (gdb_disassemble_info): Declare.
11127 * extension.c: #include "guile/guile.h".
11128 (extension_languages): Add guile.
11129 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11130 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11131 * gdbtypes.c (get_unsigned_type_max): New function.
11132 (get_signed_type_minmax): New function.
11133 * gdbtypes.h (get_unsigned_type_max): Declare.
11134 (get_signed_type_minmax): Declare.
11135 * guile/README: New file.
11136 * guile/guile-internal.h: New file.
11137 * guile/guile.c: New file.
11138 * guile/guile.h: New file.
11139 * guile/scm-arch.c: New file.
11140 * guile/scm-auto-load.c: New file.
11141 * guile/scm-block.c: New file.
11142 * guile/scm-breakpoint.c: New file.
11143 * guile/scm-disasm.c: New file.
11144 * guile/scm-exception.c: New file.
11145 * guile/scm-frame.c: New file.
11146 * guile/scm-gsmob.c: New file.
11147 * guile/scm-iterator.c: New file.
11148 * guile/scm-lazy-string.c: New file.
11149 * guile/scm-math.c: New file.
11150 * guile/scm-objfile.c: New file.
11151 * guile/scm-ports.c: New file.
11152 * guile/scm-pretty-print.c: New file.
11153 * guile/scm-safe-call.c: New file.
11154 * guile/scm-string.c: New file.
11155 * guile/scm-symbol.c: New file.
11156 * guile/scm-symtab.c: New file.
11157 * guile/scm-type.c: New file.
11158 * guile/scm-utils.c: New file.
11159 * guile/scm-value.c: New file.
11160 * guile/lib/gdb.scm: New file.
11161 * guile/lib/gdb/boot.scm: New file.
11162 * guile/lib/gdb/experimental.scm: New file.
11163 * guile/lib/gdb/init.scm: New file.
11164 * guile/lib/gdb/iterator.scm: New file.
11165 * guile/lib/gdb/printing.scm: New file.
11166 * guile/lib/gdb/types.scm: New file.
11167 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11168 (VPATH): Add $(GUILE_SRCDIR).
11169 (GUILE_DIR): New variable.
11170 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11171 (all): Add stamp-guile dependency.
11172 (stamp-guile): New rule.
11173 (clean-guile, install-guile, uninstall-guile): New rules.
11174 (install-only): Add install-guile dependency.
11175 (uninstall): Add uninstall-guile dependency.
11176 (clean): Add clean-guile dependency.
11177
11178 2014-02-09 Doug Evans <xdje42@gmail.com>
11179
11180 Revert this patch (which I approved, mea culpa).
11181
11182 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11183
11184 * Makefile.in (all-lib): Remove.
11185 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11186
11187 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11188
11189 Fix Python stack corruption.
11190 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11191 gdb_py_longest.
11192
11193 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11194
11195 * Makefile.in (all-lib): Remove.
11196 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11197
11198 2014-02-07 Doug Evans <dje@google.com>
11199
11200 * extension-priv.h (extension_language_script_ops): Add comment.
11201 (extension_language_ops): Add comment.
11202 (active_ext_lang_state): Fix typo in comment.
11203
11204 2014-02-07 Pedro Alves <palves@redhat.com>
11205
11206 PR breakpoints/16292
11207 * infrun.c (handle_signal_stop) <signal arrives while stepping
11208 over a breakpoint>: Switch back to the stepping thread.
11209
11210 2014-02-07 Yao Qi <yao@codesourcery.com>
11211
11212 * target.c (target_xfer_partial): Return zero if LEN is zero.
11213
11214 2014-02-07 Yao Qi <yao@codesourcery.com>
11215
11216 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11217 (ld_so_xfer_auxv): Likewise.
11218 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11219 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11220 * corelow.c (core_xfer_partial): Likewise.
11221 * ctf.c (ctf_xfer_partial): Likewise.
11222 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11223 (darwin_xfer_partial): Likewise.
11224 * exec.c (exec_xfer_partial): Likewise.
11225 * gnu-nat.c (gnu_xfer_partial): Likewise.
11226 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11227 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11228 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11229 * linux-nat.c (linux_xfer_siginfo): Likewise.
11230 (linux_proc_xfer_spu): Likewise.
11231 * procfs.c (procfs_xfer_partial): Likewise.
11232 * record-full.c (record_full_xfer_partial): Likewise.
11233 (record_full_core_xfer_partial): Likewise.
11234 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11235 * remote.c (remote_write_qxfer): Likewise.
11236 (remote_write_qxfer, remote_read_qxfer): Likewise.
11237 (remote_xfer_partial): Likewise.
11238 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11239 (rs6000_xfer_shared_libraries): Likewise.
11240 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11241 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11242 (spu_xfer_partial): Likewise.
11243 * target.c (memory_xfer_partial_1): Likewise.
11244 * tracepoint.c (tfile_xfer_partial): Likewise.
11245 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11246 (windows_xfer_partial): Likewise.
11247
11248 2014-02-07 Yao Qi <yao@codesourcery.com>
11249
11250 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11251 comments.
11252 (core_xfer_shared_libraries_aix): Likewise.
11253 * gdbarch.c, gdbarch.h: Regenerated.
11254 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11255 ULONGEST. Change 'len_avail' type to ULONGEST.
11256 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11257 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11258 declaration.
11259 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11260
11261 2014-02-07 Yao Qi <yao@codesourcery.com>
11262
11263 * corefile.c (memory_error): Get 'exception' from ERR and pass
11264 'exception' to throw_error.
11265
11266 2014-02-06 Doug Evans <xdje42@gmail.com>
11267
11268 * configure.ac (libpython checking): Remove all but python.o from
11269 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11270 * configure: Regenerate.
11271
11272 * Makefile.in (SFILES): Add extension.c.
11273 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11274 (COMMON_OBS): Add extension.o.
11275 * extension.h: New file.
11276 * extension-priv.h: New file.
11277 * extension.c: New file.
11278
11279 * python/python-internal.h: #include "extension.h".
11280 (gdbpy_auto_load_enabled): Declare.
11281 (gdbpy_apply_val_pretty_printer): Declare.
11282 (gdbpy_apply_frame_filter): Declare.
11283 (gdbpy_preserve_values): Declare.
11284 (gdbpy_breakpoint_cond_says_stop): Declare.
11285 (gdbpy_breakpoint_has_cond): Declare.
11286 (void source_python_script_for_objfile): Delete.
11287 * python/python.c: #include "extension-priv.h".
11288 Delete inclusion of "observer.h".
11289 (extension_language_python): Moved here and renamed from
11290 script_language_python in py-auto-load.c.
11291 Redefined to be of type extension_language_defn.
11292 (python_extension_script_ops): New global.
11293 (python_extension_ops): New global.
11294 (struct python_env): New member previous_active.
11295 (restore_python_env): Call restore_active_ext_lang.
11296 (ensure_python_env): Call set_active_ext_lang.
11297 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11298 New arg extlang.
11299 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11300 New arg extlang.
11301 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11302 New arg extlang.
11303 (gdbpy_eval_from_control_command): Renamed from
11304 eval_python_from_control_command, made static. New arg extlang.
11305 (gdbpy_source_script) Renamed from source_python_script, made static.
11306 New arg extlang.
11307 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11308 result to int. New arg extlang.
11309 (gdbpy_source_objfile_script): Renamed from
11310 source_python_script_for_objfile, made static. New arg extlang.
11311 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11312 static. New args extlang, extlang_printers. Change result type to
11313 "void".
11314 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11315 static. New arg extlang. Rename arg printers to extlang_printers
11316 and change type to ext_lang_type_printers *.
11317 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11318 static. Replace argument arg with extlang, extlang_printers.
11319 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11320 (!HAVE_PYTHON, source_python_script): Delete.
11321 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11322 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11323 (!HAVE_PYTHON, start_type_printers): Delete.
11324 (!HAVE_PYTHON, apply_type_printers): Delete.
11325 (!HAVE_PYTHON, free_type_printers): Delete.
11326 (_initialize_python): Delete call to observer_attach_before_prompt.
11327 (finalize_python): Set/restore active extension language.
11328 (gdbpy_finish_initialization) Renamed from
11329 finish_python_initialization, made static. New arg extlang.
11330 (gdbpy_initialized): New function.
11331 * python/python.h: #include "extension.h". Delete #include
11332 "value.h", "mi/mi-cmds.h".
11333 (extension_language_python): Declare.
11334 (GDBPY_AUTO_FILE_NAME): Delete.
11335 (enum py_bt_status): Moved to extension.h and renamed to
11336 ext_lang_bt_status.
11337 (enum frame_filter_flags): Moved to extension.h.
11338 (enum py_frame_args): Moved to extension.h and renamed to
11339 ext_lang_frame_args.
11340 (finish_python_initialization): Delete.
11341 (eval_python_from_control_command): Delete.
11342 (source_python_script): Delete.
11343 (apply_val_pretty_printer): Delete.
11344 (apply_frame_filter): Delete.
11345 (preserve_python_values): Delete.
11346 (gdbpy_script_language_defn): Delete.
11347 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11348 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11349
11350 * auto-load.c: #include "extension.h".
11351 (GDB_AUTO_FILE_NAME): Delete.
11352 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11353 (script_language_gdb): Delete, moved to extension.c and renamed to
11354 extension_language_gdb.
11355 (source_gdb_script_for_objfile): Delete.
11356 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11357 (loaded_script): Change type of language member to
11358 struct extension_language_defn *.
11359 (init_loaded_scripts_info): Initialize
11360 unsupported_script_warning_printed.
11361 (maybe_add_script): Make static. Change type of language arg to
11362 struct extension_language_defn *.
11363 (clear_section_scripts): Reset unsupported_script_warning_printed.
11364 (auto_load_objfile_script_1): Rewrite to use extension language API.
11365 (auto_load_objfile_script): Make public. Remove support-compiled-in
11366 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11367 (source_section_scripts): Rewrite to use extension language API.
11368 (load_auto_scripts_for_objfile): Rewrite to use
11369 auto_load_scripts_for_objfile.
11370 (collect_matching_scripts_data): Change type of language member to
11371 struct extension_language_defn *.
11372 (auto_load_info_scripts): Change type of language arg to
11373 struct extension_language_defn *.
11374 (unsupported_script_warning_print): New function.
11375 (script_not_found_warning_print): Make static.
11376 (_initialize_auto_load): Rewrite construction of scripts-directory
11377 help.
11378 * auto-load.h (struct objfile): Add forward decl.
11379 (struct script_language): Delete.
11380 (struct auto_load_pspace_info): Add forward decl.
11381 (struct extension_language_defn): Add forward decl.
11382 (maybe_add_script): Delete.
11383 (auto_load_objfile_script): Declare.
11384 (script_not_found_warning_print): Delete.
11385 (auto_load_info_scripts): Update prototype.
11386 (auto_load_gdb_scripts_enabled): Declare.
11387 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11388 auto_load_python_scripts_enabled and made public.
11389 (script_language_python): Delete, moved to python.c.
11390 (gdbpy_script_language_defn): Delete.
11391 (info_auto_load_python_scripts): Update to use
11392 extension_language_python.
11393
11394 * breakpoint.c (condition_command): Replace call to
11395 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11396 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11397 with call to breakpoint_ext_lang_cond_says_stop.
11398 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11399 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11400 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11401 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11402 New arg slang.
11403 (local_setattro): Print name of extension language with existing
11404 stop condition.
11405
11406 * valprint.c (val_print, value_print): Update to call
11407 apply_ext_lang_val_pretty_printer.
11408 * cp-valprint.c (cp_print_value): Update call to
11409 apply_ext_lang_val_pretty_printer.
11410 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11411 (gdbpy_apply_val_pretty_printer): Renamed from
11412 apply_val_pretty_printer. New arg extlang.
11413 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11414
11415 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11416 extension language API.
11417 * cli/cli-script.c (execute_control_command): Update to call
11418 eval_ext_lang_from_control_command.
11419
11420 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11421 enum ext_lang_bt_status values. Update call to
11422 apply_ext_lang_frame_filter.
11423 (mi_cmd_stack_list_locals): Ditto.
11424 (mi_cmd_stack_list_args): Ditto.
11425 (mi_cmd_stack_list_variables): Ditto.
11426 * mi/mi-main.c: Delete #include "python/python-internal.h".
11427 Add #include "extension.h".
11428 (mi_cmd_list_features): Replace reference to python internal variable
11429 gdb_python_initialized with call to ext_lang_initialized_p.
11430
11431 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11432 Update to use enum ext_lang_frame_args. Update to call
11433 apply_ext_lang_frame_filter.
11434 * python/py-framefilter.c (extract_sym): Update to use enum
11435 ext_lang_bt_status.
11436 (extract_value, py_print_type, py_print_value): Ditto.
11437 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11438 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11439 (py_print_frame): Ditto.
11440 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11441 New arg extlang. Update to use enum ext_lang_bt_status.
11442
11443 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11444 finish_python_initialization. Replace with call to
11445 finish_ext_lang_initialization.
11446
11447 * typeprint.c (do_free_global_table): Update to call
11448 free_ext_lang_type_printers.
11449 (create_global_typedef_table): Update to call
11450 start_ext_lang_type_printers.
11451 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11452 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11453 (type_print_options): Change type of global_printers from "void *"
11454 to "struct ext_lang_type_printers *".
11455
11456 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11457 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11458 (gdbpy_preserve_values): Renamed from preserve_python_values.
11459 New arg extlang.
11460 (!HAVE_PYTHON, preserve_python_values): Delete.
11461
11462 * utils.c (quit_flag): Delete, moved to extension.c.
11463 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11464 extension.c.
11465
11466 * eval.c: Delete #include "python/python.h".
11467 * main.c: Delete #include "python/python.h".
11468
11469 * defs.h: Update comment.
11470
11471 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11472
11473 GDB 7.7 released.
11474
11475 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11476
11477 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11478 defined.
11479
11480 2014-02-05 Yao Qi <yao@codesourcery.com>
11481
11482 * remote.c (remote_pass_signals): Remove local 'buf' and use
11483 rs->buf.
11484 (remote_program_signals): Likewise.
11485
11486 2014-02-05 Yao Qi <yao@codesourcery.com>
11487
11488 * ctf.c: Include "inferior.h" and "gdbthread.h".
11489 (CTF_PID): A new macro.
11490 (ctf_open): Call inferior_appeared and add_thread_silent.
11491 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11492 (ctf_thread_alive): New function.
11493 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11494
11495 2014-02-05 Yao Qi <yao@codesourcery.com>
11496
11497 Revert this patch:
11498
11499 2013-05-24 Yao Qi <yao@codesourcery.com>
11500
11501 * tracepoint.c (TFILE_PID): Remove.
11502 (tfile_open): Don't add thread and inferior.
11503 (tfile_close): Don't set 'inferior_ptid'. Don't call
11504 exit_inferior_silent.
11505 (tfile_thread_alive): Remove.
11506 (init_tfile_ops): Don't set field 'to_thread_alive' of
11507 tfile_ops.
11508
11509 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11510
11511 * remote.c (remote_start_remote): Call remote_check_symbols even
11512 if only symbol-file (not file) has been given.
11513
11514 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11515
11516 * gdbarch.sh (skip_entrypoint): New callback.
11517 * gdbarch.c, gdbarch.h: Regenerate.
11518 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11519 * infrun.c (fill_in_stop_func): Likewise.
11520 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11521 (ppc_elfv2_elf_make_msymbol_special): New function.
11522 (ppc_elfv2_skip_entrypoint): Likewise.
11523 (ppc_linux_init_abi): Install them for ELFv2.
11524
11525 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11526
11527 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11528 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11529 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11530 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11531 structures returned in GPRs.
11532
11533 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11534
11535 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11536 offset to the stack parameter list for the ELFv2 ABI.
11537
11538 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11539
11540 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11541 set_gdbarch_convert_from_func_ptr_addr and
11542 set_gdbarch_elf_make_msymbol_special for ELFv1.
11543 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11544 function descriptors on ELFv1.
11545 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11546 set up r12 at function entry.
11547
11548 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11549
11550 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11551 (struct gdbarch_tdep): New member elf_abi.
11552
11553 * rs6000-tdep.c: Include "elf/ppc64.h".
11554 (rs6000_gdbarch_init): Detect ELF ABI version.
11555
11556 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11557
11558 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11559 within a register pair holding a DFP 128-bit value on little-endian.
11560 (ppc64_sysv_abi_return_value_base): Likewise.
11561 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11562 (dfp_pseudo_register_write): Likewise.
11563
11564 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11565
11566 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11567 offset on little-endian when passing _Decimal32.
11568 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11569
11570 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11571
11572 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11573 of the overlapped FP register within the VSX register on little-
11574 endian platforms.
11575 (efpr_pseudo_register_write): Likewise.
11576
11577 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11578
11579 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11580 offset on little-endian when passing small structures.
11581
11582 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11583
11584 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11585 (struct ppc64_sysv_argpos): New data structure.
11586 (ppc64_sysv_abi_push_float): Remove.
11587 (ppc64_sysv_abi_push_val): New function.
11588 (ppc64_sysv_abi_push_integer): Likewise.
11589 (ppc64_sysv_abi_push_freg): Likewise.
11590 (ppc64_sysv_abi_push_vreg): Likewise.
11591 (ppc64_sysv_abi_push_param): Likewise.
11592 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11593 (ppc64_sysv_abi_return_value_base): New function.
11594 (ppc64_sysv_abi_return_value): Refactor to use it.
11595
11596 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11597
11598 * NEWS: Document new target powerpc64le-*-linux*.
11599
11600 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11601
11602 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11603 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11604 core dumps.
11605 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11606 register set used in ELF core dumps. Add floating-point register set.
11607
11608 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11609
11610 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11611 dwarf2_to_gdb[] table using symbolic constants. Adjust
11612 penultimate entry from number representing the PC register
11613 to symbolic constant representing the MDR register. Add
11614 constant for the PC register to the end of the table.
11615
11616 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11617
11618 * bsd-kvm.c: Include <sys/param.h>
11619
11620 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11621
11622 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11623
11624 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11625
11626 * ada-lang.h (clear_ada_sym_cache): Delete.
11627
11628 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11629
11630 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11631
11632 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11633
11634 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11635 the sigreturn register save area only if the syscall is
11636 sigreturn.
11637
11638 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11639
11640 * valops.c (value_slice): Minor reformatting.
11641
11642 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11643
11644 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11645
11646 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11647
11648 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11649 New static globals.
11650 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11651 (ada_ignore_descriptive_types_p): New static global.
11652 (find_parallel_type_by_descriptive_type): Return immediately
11653 if ada_ignore_descriptive_types_p is set.
11654 (_initialize_ada_language): Register new commands "maintenance
11655 set ada", "maintenance show ada", "maintenance set ada
11656 ignore-descriptive-types" and "maintenance show ada
11657 ignore-descriptive-types".
11658 * NEWS: Add entry for new "maint ada set/show
11659 ignore-descriptive-types" commands.
11660
11661 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11662
11663 * record-btrace.c (record_btrace_close): Call btrace_teardown
11664 for all threads.
11665
11666 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11667
11668 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11669 "ui-out.h".
11670
11671 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11672
11673 * ada-typeprint (type_is_full_subrange_of_target_type):
11674 New function.
11675 (print_range): Add parameter bounds_prefered_p. If not set,
11676 try printing range types using the name of their base type.
11677 (print_range_type): Add parameter bounds_prefered_p.
11678 Use it in call to print_range.
11679 (print_array_type, ada_print_type): Update calls to print_range
11680 and print_range_type.
11681
11682 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11683
11684 * ada-typeprint.c (print_array_type, print_choices, print_range)
11685 (print_range_bound, print_dynamic_range_bound, print_range_type):
11686 Remove declaration.
11687
11688 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11689
11690 * ada-typeprint.c (print_range): Add missing empty line
11691 after local declaration.
11692
11693 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11694
11695 * ada-valprint.c (print_optional_low_bound): Get index_type's
11696 target type for as long as it is a TYPE_CODE_RANGE.
11697
11698 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11699
11700 * procfs.c (procfs_make_note_section): Remove assertion and
11701 associated comment.
11702
11703 2014-01-24 Yao Qi <yao@codesourcery.com>
11704
11705 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11706 * corelow.c (get_core_siginfo): Likewise.
11707
11708 2014-01-24 Yao Qi <yao@codesourcery.com>
11709
11710 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11711 ULONGEST. Don't check 'len' is negative.
11712 (remote_write_bytes): Change type of 'len' to ULONGEST.
11713
11714 2014-01-23 Tom Tromey <tromey@redhat.com>
11715
11716 PR python/16485:
11717 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11718 Handle exception from frame.block.
11719 (FrameVars.fetch_frame_locals): Likewise.
11720
11721 2014-01-23 Tom Tromey <tromey@redhat.com>
11722
11723 PR python/16487:
11724 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11725 on a NULL pointer. Move "goto error" to correct place.
11726
11727 2014-01-23 Tom Tromey <tromey@redhat.com>
11728
11729 PR python/16491:
11730 * python/py-framefilter.c (apply_frame_filter): Call
11731 ensure_python_env after computing gdbarch.
11732
11733 2014-01-23 Yao Qi <yao@codesourcery.com>
11734
11735 * target.c (raw_memory_xfer_partial): Change argument type
11736 from void * to gdb_byte *.
11737 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11738
11739 2014-01-22 Doug Evans <dje@google.com>
11740
11741 New gdbserver option --debug-format=timestamp.
11742 * NEWS: Mention it.
11743
11744 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11745
11746 * syscalls/s390x-linux.xml: New file.
11747 * syscalls/s390-linux.xml: New file.
11748 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11749 (XML_SYSCALL_FILENAME_S390X): Likewise.
11750 (op_svc): New enum value for SVC opcode.
11751 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11752 (s390_linux_get_syscall_number): New function.
11753 (s390_gdbarch_init): Register '*get_syscall_number' and the
11754 syscall xml file name.
11755 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11756 "s390-linux.xml" and "s390x-linux.xml".
11757 * NEWS: Announce new feature.
11758
11759 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11760
11761 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11762
11763 2014-01-22 Pedro Alves <palves@redhat.com>
11764
11765 * xtensa-config.c: Include defs.h.
11766
11767 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11768
11769 * common/common-utils.h: Add "ARI:" comment beside __func__
11770 reference.
11771
11772 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11773
11774 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11775 documentation a bit.
11776
11777 2014-01-21 Roland McGrath <mcgrathr@google.com>
11778
11779 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11780 * configure: Regenerate.
11781 * aclocal.m4: Regenerate.
11782 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11783 New substituted variables.
11784 (install-strip): New target.
11785 (INSTALL_SCRIPT): New substituted variable.
11786 (FLAGS_TO_PASS): Add it.
11787 (install-only): Use $(INSTALL_SCRIPT) rather than
11788 $(INSTALL_PROGRAM) for gcore.
11789
11790 2014-01-20 Tom Tromey <tromey@redhat.com>
11791
11792 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11793 together.
11794
11795 2014-01-20 Tom Tromey <tromey@redhat.com>
11796
11797 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11798 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11799 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11800 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11801 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11802 (struct cmd_list_element) <flags>: Remove.
11803 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11804 doc_allocated>: New fields.
11805 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11806 bitfields.
11807 * maint.c (maintenance_do_deprecate): Update.
11808 * top.c (execute_command): Update.
11809
11810 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11811
11812 * xtensa-linux-nat.c: Include asm/ptrace.h.
11813
11814 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11815
11816 * Makefile.in (SFILES): Add d-support.c.
11817 (COMMON_OBS): Add d-support.o.
11818 * d-lang.h (d_parse_symbol): Add comment, now defined in
11819 d-support.c.
11820 * d-lang.c (parse_call_convention)
11821 (parse_attributes, parse_function_types)
11822 (parse_function_args, parse_type, parse_identifier)
11823 (call_convention_p, d_parse_symbol): Move functions to ...
11824 * d-support.c: ... New file.
11825
11826 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11827
11828 * d-lang.h (d_parse_symbol): Add declaration.
11829 * d-lang.c (extract_identifiers)
11830 (extract_type_info): Remove functions.
11831 (parse_call_convention, parse_attributes)
11832 (parse_function_types, parse_function_args)
11833 (parse_type, parse_identifier, call_convention_p)
11834 (d_parse_symbol): New functions.
11835 (d_demangle): Use d_parse_symbol to demangle D symbols.
11836
11837 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11838
11839 * d-lang.h (struct builtin_d_type): New data type.
11840 (builtin_d_type): Add declaration.
11841 * d-lang.c (d_language_arch_info, build_d_types)
11842 (builtin_d_type): New functions.
11843 (enum d_primitive_types): New data type.
11844 (d_language_defn): Change c_language_arch_info to
11845 d_language_arch_info.
11846 (d_type_data): New static variable.
11847 (_initialize_d_language): Initialize d_type_data.
11848
11849 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11850
11851 * d-lang.h (d_main_name): Add declaration.
11852 * d-lang.c (d_main_name): New function.
11853 * symtab.c (find_main_name): Add call to d_main_name.
11854
11855 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11856
11857 * d-lang.c (d_language_defn): Change macro_expansion_c to
11858 macro_expansion_no.
11859
11860 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11861
11862 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11863
11864 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11865
11866 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11867 gdb_exception" declaration.
11868 * remote.c (getpkt_or_notif_sane): Likewise.
11869
11870 2014-01-17 Doug Evans <dje@google.com>
11871
11872 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11873 function, contents of dirnames_to_char_ptr_vec_append moved here.
11874 (delim_string_to_char_ptr_vec): New function.
11875 (dirnames_to_char_ptr_vec_append): Rewrite.
11876 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11877
11878 2014-01-17 Doug Evans <dje@google.com>
11879
11880 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11881 and moved here ...
11882 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11883 #include "common-utils.h".
11884 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11885 * common/vec.h (VEC_ASSERT_PASS): Update.
11886 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11887 (MACH_CHECK_ERROR): Update.
11888
11889 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11890
11891 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11892 comments.
11893 * gdbarch.h: Regenerate.
11894
11895 2014-01-16 Tom Tromey <tromey@redhat.com>
11896
11897 * value.c (struct value) <regnum>: Move earlier.
11898
11899 2014-01-16 Tom Tromey <tromey@redhat.com>
11900
11901 * remote.c (extended_remote_create_inferior): Rename from
11902 extended_remote_create_inferior_1. Add "ops" argument. Remove
11903 old implementation.
11904
11905 2014-01-16 Pedro Alves <palves@redhat.com>
11906
11907 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11908 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11909 the backchain.
11910
11911 2014-01-16 Doug Evans <dje@google.com>
11912
11913 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11914
11915 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11916
11917 * btrace.h (btrace_thread_flag): New.
11918 (struct btrace_thread_info) <flags>: New.
11919 * record-btrace.c (record_btrace_resume_thread)
11920 (record_btrace_find_thread_to_move, btrace_step_no_history)
11921 (btrace_step_stopped, record_btrace_start_replaying)
11922 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11923 (record_btrace_find_resume_thread): New.
11924 (record_btrace_resume, record_btrace_wait): Extend.
11925 (record_btrace_can_execute_reverse): New.
11926 (record_btrace_open): Fail in non-stop mode.
11927 (record_btrace_set_replay): Split into this, ...
11928 (record_btrace_stop_replaying): ... this, ...
11929 (record_btrace_clear_histories): ... and this.
11930 (init_record_btrace_ops): Init to_can_execute_reverse.
11931 * NEWS: Announce it.
11932
11933 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11934
11935 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11936 (forward_target_decr_pc_after_break)
11937 (target_decr_pc_after_break): New.
11938 * target.c (forward_target_decr_pc_after_break)
11939 (target_decr_pc_after_break): New.
11940 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11941 instead of gdbarch_decr_pc_after_break.
11942 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11943 instead of gdbarch_decr_pc_after_break.
11944 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11945 instead of gdbarch_decr_pc_after_break.
11946 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11947 instead of gdbarch_decr_pc_after_break.
11948 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11949 instead of gdbarch_decr_pc_after_break.
11950 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11951 instead of gdbarch_decr_pc_after_break.
11952
11953 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11954
11955 * btrace.c: Include regcache.h.
11956 (btrace_add_pc): New.
11957 (btrace_enable): Call btrace_add_pc.
11958 (btrace_is_empty): New.
11959 * btrace.h (btrace_is_empty): New.
11960 * record-btrace.c (require_btrace, record_btrace_info): Call
11961 btrace_is_empty.
11962
11963 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11964
11965 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11966 Support delta reads.
11967 (linux_disable_btrace): Change return type.
11968 * common/linux-btrace.h (linux_read_btrace): Change parameters
11969 and return type to allow error reporting. Update users.
11970 (linux_disable_btrace): Change return type. Update users.
11971 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11972 New.
11973 (btrace_error): New.
11974 (btrace_block) <begin>: Comment on BEGIN == 0.
11975 * btrace.c (btrace_compute_ftrace): Start from the end of
11976 the current trace.
11977 (btrace_stitch_trace, btrace_clear_history): New.
11978 (btrace_fetch): Read delta trace, return if replaying.
11979 (btrace_clear): Move clear history code to btrace_clear_history.
11980 (parse_xml_btrace): Throw an error if parsing failed.
11981 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11982 and return type to allow error reporting.
11983 (target_read_btrace): Change parameters and return type to allow
11984 error reporting.
11985 * target.c (target_read_btrace): Update.
11986 * remote.c (remote_read_btrace): Support delta reads. Pass
11987 errors on.
11988 * NEWS: Announce it.
11989
11990 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11991
11992 * record.h (record_btrace_frame_unwind)
11993 (record_btrace_tailcall_frame_unwind): New declarations.
11994 * dwarf2-frame: Include record.h
11995 (dwarf2_frame_cfa): Throw an error for btrace frames.
11996 * record-btrace.c: Include hashtab.h.
11997 (btrace_get_bfun_name): New.
11998 (btrace_call_history): Call btrace_get_bfun_name.
11999 (struct btrace_frame_cache): New.
12000 (bfcache): New.
12001 (bfcache_hash, bfcache_eq, bfcache_new): New.
12002 (btrace_get_frame_function): New.
12003 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12004 (record_btrace_frame_this_id): Compute own id.
12005 (record_btrace_frame_prev_register): Provide PC, throw_error
12006 for all other registers.
12007 (record_btrace_frame_sniffer): Detect btrace frames.
12008 (record_btrace_tailcall_frame_sniffer): New.
12009 (record_btrace_frame_dealloc_cache): New.
12010 (record_btrace_frame_unwind): Add new functions.
12011 (record_btrace_tailcall_frame_unwind): New.
12012 (_initialize_record_btrace): Allocate cache.
12013 * btrace.c (btrace_clear): Call reinit_frame_cache.
12014 * NEWS: Announce it.
12015
12016 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12017
12018 * record-btrace.c (record_btrace_set_replay)
12019 (record_btrace_goto_begin, record_btrace_goto_end)
12020 (record_btrace_goto): New.
12021 (init_record_btrace_ops): Initialize them.
12022 * NEWS: Announce it.
12023
12024 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12025
12026 * record-btrace.c (record_btrace_find_new_threads)
12027 (record_btrace_thread_alive): New.
12028 (init_record_btrace_ops): Initialize to_find_new_threads and
12029 to_thread_alive.
12030
12031 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12032
12033 * record-btrace.c (record_btrace_resume): New.
12034 (record_btrace_wait): New.
12035 (init_record_btrace_ops): Initialize to_wait and to_resume.
12036
12037 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12038
12039 * record-btrace.c (record_btrace_xfer_partial)
12040 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12041 (record_btrace_allow_memory_access): New.
12042 (init_record_btrace_ops): Initialize new methods.
12043 * target.c (raw_memory_xfer_partial): Bail out if target reports
12044 that this memory is not available.
12045
12046 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12047
12048 * target.h (target_ops) <to_insert_breakpoint>
12049 <to_remove_breakpoint>: Add target_ops parameter.
12050 (forward_target_insert_breakpoint): New.
12051 (forward_target_remove_breakpoint): New.
12052 (memory_remove_breakpoint, memory_insert_breakpoint):
12053 Add target_ops parameter.
12054 * target.c (target_insert_breakpoint): Split into this and ...
12055 (forward_target_insert_breakpoint): ... this.
12056 (target_remove_breakpoint): Split into this and ...
12057 (forward_target_remove_breakpoint): ... this.
12058 (debug_to_insert_breakpoint): Add target_ops parameter.
12059 Call forward_target_insert_breakpoint.
12060 (debug_to_remove_breakpoint): Add target_ops parameter.
12061 Call forward_target_remove_breakpoint.
12062 (update_current_target): Do not inherit or default to_insert_breakpoint
12063 and to_remove_breakpoint.
12064 * corelow.c (ignore): Add target_ops parameter.
12065 * exec.c (ignore): Add target_ops parameter.
12066 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12067 Add target_ops parameter.
12068 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12069 Add target_ops parameter.
12070 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12071 Add target_ops parameter.
12072 * record-full.c (record_full_beneath_to_insert_breakpoint)
12073 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12074 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12075 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12076 (record_full_core_remove_breakpoint): Add target_ops parameter.
12077 Update users.
12078 (record_full_beneath_to_insert_breakpoint_ops)
12079 (record_full_beneath_to_remove_breakpoint_ops)
12080 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12081 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12082 tmp_to_remove_breakpoint_ops,
12083 record_full_beneath_to_insert_breakpoint_ops, and
12084 record_full_beneath_to_remove_breakpoint_ops.
12085 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12086 (m32r_remove_breakpoint): Add target_ops parameter.
12087 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12088 Add target_ops parameter.
12089 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12090 Add target_ops parameter.
12091
12092 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12093 Markus Metzger <markus.t.metzger@intel.com>
12094
12095 * record-btrace.c: Include frame-unwind.h.
12096 (record_btrace_frame_unwind_stop_reason)
12097 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12098 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12099 New.
12100 (init_record_btrace_ops): Install it.
12101
12102 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12103
12104 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12105 get_prev_frame_1.
12106
12107 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12108
12109 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12110 earlier.
12111
12112 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12113
12114 * frame-unwind.c: Include target.h.
12115 (frame_unwind_try_unwinder): New function with code from ...
12116 (frame_unwind_find_by_frame): ... here. New variable
12117 unwinder_from_target, call also target_get_unwinder)
12118 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12119 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12120 * target.h (struct target_ops): New fields to_get_unwinder and
12121 to_get_tailcall_unwinder.
12122 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12123
12124 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12125
12126 * record-btrace.c (record_btrace_fetch_registers)
12127 (record_btrace_store_registers)
12128 (record_btrace_to_prepare_to_store): New.
12129 (init_record_btrace_ops): Add the above.
12130
12131 2014-01-16 Tom Tromey <tromey@redhat.com>
12132
12133 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12134 * target.h (struct target_ops) <to_prepare_to_store>: Add
12135 argument.
12136 (target_prepare_to_store): Add argument.
12137 * target.c (debug_to_prepare_to_store): Add argument.
12138 (update_current_target): Update.
12139 * remote.c (remote_prepare_to_store): Add 'self' argument.
12140 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12141 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12142 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12143 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12144 argument.
12145 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12146 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12147 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12148 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12149 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12150
12151 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12152
12153 * btrace.h (replay) <replay>: New.
12154 (btrace_is_replaying): New.
12155 * btrace.c (btrace_clear): Free replay iterator.
12156 (btrace_is_replaying): New.
12157 * record-btrace.c (record_btrace_is_replaying): New.
12158 (record_btrace_info): Print insn number if replaying.
12159 (record_btrace_insn_history): Start at replay position.
12160 (record_btrace_call_history): Start at replay position.
12161 (init_record_btrace_ops): Init to_record_is_replaying.
12162
12163 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12164
12165 * record-btrace.c (record_btrace_insn_history_range): Include
12166 end.
12167 (record_btrace_insn_history_from): Adjust range.
12168 (record_btrace_call_history_range): Include
12169 end.
12170 (record_btrace_call_history_from): Adjust range.
12171 * NEWS: Announce changes.
12172
12173 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12174
12175 * record.h (enum record_print_flag)
12176 <record_print_indent_calls>: New.
12177 * record.c (get_call_history_modifiers): Recognize /c modifier.
12178 (_initialize_record): Document /c modifier.
12179 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12180 Reorder fields. Optionally indent the function name. Update
12181 all users.
12182 * NEWS: Announce changes.
12183
12184 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12185
12186 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12187
12188 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12189
12190 * btrace.c (ftrace_new_function): Start counting at one.
12191 * record-btrace.c (record_btrace_info): Adjust number of calls
12192 and insns.
12193 * NEWS: Announce it.
12194
12195 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12196
12197 * record-btrace.c (btrace_call_history_insn_range): Print
12198 insn range as [begin, end].
12199
12200 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12201
12202 * btrace.h (struct btrace_func_link): New.
12203 (enum btrace_function_flag): New.
12204 (struct btrace_inst): Rename to ...
12205 (struct btrace_insn): ...this. Update all users.
12206 (struct btrace_func) <ibegin, iend>: Remove.
12207 (struct btrace_func_link): New.
12208 (struct btrace_func): Rename to ...
12209 (struct btrace_function): ...this. Update all users.
12210 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12211 (number, level, flags>: New.
12212 (struct btrace_insn_iterator): Rename to ...
12213 (struct btrace_insn_history): ...this.
12214 Update all users.
12215 (struct btrace_insn_iterator, btrace_call_iterator): New.
12216 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12217 (struct btrace_target_info) <begin, end, level>
12218 <insn_history, call_history>: New.
12219 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12220 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12221 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12222 (btrace_call_number, btrace_call_begin, btrace_call_end)
12223 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12224 (btrace_find_function_by_number, btrace_set_insn_history)
12225 (btrace_set_call_history): New.
12226 * btrace.c (btrace_init_insn_iterator)
12227 (btrace_init_func_iterator, compute_itrace): Remove.
12228 (ftrace_print_function_name, ftrace_print_filename)
12229 (ftrace_skip_file): Change
12230 parameter to const.
12231 (ftrace_init_func): Remove.
12232 (ftrace_debug): Use new btrace_function fields.
12233 (ftrace_function_switched): Also consider gaining and
12234 losing symbol information).
12235 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12236 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12237 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12238 New.
12239 (ftrace_new_function): Move. Remove debug print.
12240 (ftrace_update_lines, ftrace_update_insns): New.
12241 (ftrace_update_function): Check for call, ret, and jump.
12242 (compute_ftrace): Renamed to ...
12243 (btrace_compute_ftrace): ...this. Rewritten to compute call
12244 stack.
12245 (btrace_fetch, btrace_clear): Updated.
12246 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12247 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12248 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12249 (btrace_call_number, btrace_call_begin, btrace_call_end)
12250 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12251 (btrace_find_function_by_number, btrace_set_insn_history)
12252 (btrace_set_call_history): New.
12253 * record-btrace.c (require_btrace): Use new btrace thread
12254 info fields.
12255 (record_btrace_info, btrace_insn_history)
12256 (record_btrace_insn_history, record_btrace_insn_history_range):
12257 Use new btrace thread info fields and new iterator.
12258 (btrace_func_history_src_line): Rename to ...
12259 (btrace_call_history_src_line): ...this. Use new btrace
12260 thread info fields.
12261 (btrace_func_history): Rename to ...
12262 (btrace_call_history): ...this. Use new btrace thread info
12263 fields and new iterator.
12264 (record_btrace_call_history, record_btrace_call_history_range):
12265 Use new btrace thread info fields and new iterator.
12266
12267 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12268
12269 * frame.h (frame_id_build_unavailable_stack_special): New.
12270 * frame.c (frame_id_build_unavailable_stack_special): New.
12271
12272 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12273
12274 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12275 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12276 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12277 to gdbarch.
12278 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12279 (i386_insn_is_jump, i386_jmp_p): New.
12280 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12281 insn_is_jump to gdbarch.
12282 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12283 * gdbarch.h: Regenerated.
12284 * gdbarch.c: Regenerated.
12285 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12286 (default_insn_is_jump): New.
12287 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12288 (default_insn_is_jump): New.
12289
12290 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12291
12292 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12293 Change to ...
12294 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12295 (btrace_read_type) <btrace_read_new>: Change to ...
12296 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12297
12298 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12299
12300 * common/linux-btrace.c (linux_read_btrace): Free trace from
12301 previous iteration.
12302
12303 2014-01-15 Doug Evans <dje@google.com>
12304
12305 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12306 uint32_t.
12307
12308 2014-01-15 Tom Tromey <tromey@redhat.com>
12309
12310 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12311 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12312 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12313 (set_objfile_main_name): New function.
12314 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12315 language_of_main>: New fields.
12316 (set_objfile_main_name): Declare.
12317 * symtab.c (find_main_name): Loop over objfiles to find the main
12318 name and language.
12319 (set_main_name): Now static.
12320 (get_main_info): Add comment.
12321 * symtab.h (set_main_name): Don't declare.
12322
12323 2014-01-15 Tom Tromey <tromey@redhat.com>
12324
12325 * symtab.c (main_progspace_key): New global.
12326 (struct main_info): New.
12327 (name_of_main, language_of_main): Remove.
12328 (get_main_info, main_info_cleanup): New function.
12329 (set_main_name, main_name, main_language): Use get_main_info.
12330 (_initialize_symtab): Initialize main_progspace_key.
12331
12332 2014-01-15 Tom Tromey <tromey@redhat.com>
12333
12334 * dbxread.c (process_one_symbol): Update.
12335 * dwarf2read.c (read_partial_die): Update.
12336 * symfile.c (set_initial_language): Call main_language.
12337 * symtab.c (language_of_main): Now static.
12338 (set_main_name): Add 'lang' parameter.
12339 (find_main_name): Update.
12340 (main_language): New function.
12341 (symtab_observer_executable_changed): Update.
12342 * symtab.h (set_main_name): Update.
12343 (language_of_main): Remove.
12344 (main_language): Declare.
12345
12346 2014-01-15 Tom Tromey <tromey@redhat.com>
12347
12348 * symfile.c (init_entry_point_info): Use new "initialized" field.
12349 Update.
12350 * objfiles.h (struct entry_point) <initialized>: New field.
12351 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12352 (struct objfile) <ei>: ...here. Remove.
12353 * objfiles.c (entry_point_address_query): Update.
12354
12355 2014-01-15 Tom Tromey <tromey@redhat.com>
12356
12357 * objfiles.c (entry_point_address_query): Relocate entry point
12358 address.
12359 (objfile_relocate1): Do not relocate entry point address.
12360 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12361 <the_bfd_section_index>: New field.
12362 * symfile.c (init_entry_point_info): Find the entry point's
12363 section.
12364
12365 2014-01-15 Tom Tromey <tromey@redhat.com>
12366
12367 * solib-frv.c (enable_break): Use entry_point_address_query.
12368
12369 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12370
12371 * NEWS: Add note on improved process record-replay on
12372 arm*-linux* targets.
12373
12374 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12375
12376 * arm-tdep.c (enum arm_record_result): New enum.
12377 (arm_record_unsupported_insn): New function.
12378 (arm_record_coproc_data_proc): Removed.
12379 (thumb2_record_ld_st_multiple): New function.
12380 (thumb2_record_ld_st_dual_ex_tbb): New function.
12381 (thumb2_record_data_proc_sreg_mimm): New function.
12382 (thumb2_record_ps_dest_generic): New function.
12383 (thumb2_record_branch_misc_cntrl): New function.
12384 (thumb2_record_str_single_data): New function.
12385 (thumb2_record_ld_mem_hints): New function.
12386 (thumb2_record_ld_word): New function.
12387 (thumb2_record_lmul_lmla_div): New function.
12388 (thumb2_record_decode_insn_handler): New function.
12389 (decode_insn): Add thumb32 instruction handlers.
12390
12391 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12392
12393 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12394 (struct arm_linux_record_tdep): Declare.
12395 (arm_canonicalize_syscall): New function.
12396 (arm_all_but_pc_registers_record): New function.
12397 (arm_linux_syscall_record): New function.
12398 (arm_linux_init_abi): Add syscall recording constructs.
12399 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12400 decoding. (arm_record_coproc_data_proc): Update arm syscall
12401 decoding.
12402 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12403 <arm_syscall_record>: New field.
12404 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12405 gdb_target_obs.
12406
12407 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12408
12409 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12410 register for push instruction recording.
12411
12412 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12413
12414 * arm-tdep.c (thumb_record_misc): Update to correct logical
12415 error while recording ldm, ldmia and pop instructions.
12416
12417 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12418
12419 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12420
12421 2014-01-15 Pedro Alves <palves@redhat.com>
12422
12423 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12424 (go32_resume, go32_fetch_registers, store_register)
12425 (go32_store_registers, go32_prepare_to_store)
12426 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12427 (go32_create_inferior, go32_can_run, go32_terminal_init)
12428 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12429 declarations.
12430
12431 2014-01-15 Tom Tromey <tromey@redhat.com>
12432
12433 * target.h (async_callback_ftype): New typedef.
12434 (struct target_ops) <to_async>: Use it.
12435
12436 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12437
12438 * python/py-value.c (get_field_type): Remove unnecessary curly
12439 braces for single-statement if block.
12440
12441 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12442
12443 * python/py-type.c (convert_field): Add missing empty line
12444 after declarations.
12445
12446 2014-01-14 Doug Evans <dje@google.com>
12447
12448 * symfile.h (expand_symtabs_matching): Renamed from
12449 expand_partial_symbol_names. Update prototype.
12450 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12451 * symfile.c (expand_symtabs_matching): Renamed from
12452 expand_partial_symbol_names. New args file_matcher, kind.
12453 Rename arg fun to symbol_matcher.
12454 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12455 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12456 ada_expand_partial_symbol_name.
12457 (ada_make_symbol_completion_list): Update to call
12458 expand_symtabs_matching.
12459 (ada_add_global_exceptions): Call expand_symtabs_matching.
12460 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12461 call map_symbol_filenames.
12462 * symtab.c (sources_info): Update to call map_symbol_filenames.
12463 (search_symbols): Call expand_symtabs_matching.
12464 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12465 (default_make_symbol_completion_list_break_on): Update to call
12466 expand_symtabs_matching.
12467 (make_source_files_completion_list): Update to call
12468 map_symbol_filenames.
12469
12470 2014-01-14 Doug Evans <dje@google.com>
12471
12472 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12473 (expand_symtabs_symbol_matcher_ftype): New typedef.
12474 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12475 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12476 * symfile.c (expand_partial_symbol_names): Update to use
12477 expand_symtabs_symbol_matcher_ftype.
12478 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12479 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12480 Arg name_matcher renamed to symbol_matcher.
12481 * psymtab.c (recursively_search_psymtabs): Update to use
12482 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12483 sym_matcher.
12484 (expand_symtabs_matching_via_partial): Update to use
12485 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12486 Arg name_matcher renamed to symbol_matcher.
12487
12488 2014-01-14 Doug Evans <dje@google.com>
12489
12490 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12491 (map_partial_symbol_filenames): Ditto.
12492 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12493 (map_partial_symbol_filenames): Ditto.
12494 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12495 (map_partial_symbol_filenames): Ditto.
12496 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12497 (map_partial_symbol_filenames): Ditto.
12498 * symtab.c: Delete #include "psymtab.h".
12499
12500 2014-01-14 Pedro Alves <palves@redhat.com>
12501 Tom Tromey <tromey@redhat.com>
12502
12503 * infrun.c (use_displaced_stepping): Use find_record_target
12504 instead of RECORD_IS_USED.
12505 (adjust_pc_after_break): Use record_full_is_used instead of
12506 RECORD_IS_USED.
12507 * record-btrace.c (record_btrace_open): Call record_preopen
12508 instead of checking RECORD_IS_USED.
12509 * record-full.c (record_full_shortname)
12510 (record_full_core_shortname): New globals.
12511 (record_full_is_used): New function.
12512 (find_full_open): Call record_preopen instead of checking
12513 RECORD_IS_USED.
12514 (init_record_full_ops): Set the target's shortname to
12515 record_full_shortname.
12516 (init_record_full_core_ops): Set the target's shortname to
12517 record_full_core_shortname.
12518 * record-full.h (record_full_is_used): Declare.
12519 * record.c (find_record_target): Make extern.
12520 (record_preopen): New function.
12521 * record.h (RECORD_IS_USED): Delete macro.
12522 (find_record_target, record_preopen): Declare functions.
12523
12524 2014-01-14 Yao Qi <yao@codesourcery.com>
12525
12526 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12527 'len''s type to ULONGEST.
12528 (core_xfer_shared_libraries_aix): Likewise.
12529 * gdbarch.c, gdbarch.h: Regenerated.
12530 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12531 Change type of 'len' to ULONGEST.
12532 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12533 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12534
12535 2014-01-14 Yao Qi <yao@codesourcery.com>
12536
12537 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12538 type of 'len' to ULONGEST.
12539 (linux_xfer_osdata_processgroups): Likewise.
12540 (linux_xfer_osdata_threads): Likewise.
12541 (linux_xfer_osdata_fds): Likewise.
12542 (linux_xfer_osdata_isockets): Likewise.
12543 (linux_xfer_osdata_shm): Likewise.
12544 (linux_xfer_osdata_sem): Likewise.
12545 (linux_xfer_osdata_msg): Likewise.
12546 (linux_common_xfer_osdata): Likewise.
12547 (struct osdata_type) <getter>: Likewise.
12548 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12549 the declaration.
12550
12551 2014-01-14 Yao Qi <yao@codesourcery.com>
12552
12553 * target.h (target_xfer_partial_ftype): Update.
12554 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12555 ULONGEST.
12556 * aix-thread.c (aix_thread_xfer_partial): Change type of
12557 argument 'len' to ULONGEST.
12558 * auxv.c (procfs_xfer_auxv): Likewise.
12559 (ld_so_xfer_auxv): Likewise.
12560 (memory_xfer_auxv): Likewise.
12561 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12562 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12563 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12564 * corelow.c (core_xfer_partial): Likewise.
12565 * ctf.c (ctf_xfer_partial): Likewise.
12566 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12567 '%u'.
12568 (darwin_read_dyld_info): Likewise.
12569 (darwin_xfer_partial): Likewise.
12570 * exec.c (section_table_xfer_memory_partial): Likewise.
12571 (exec_xfer_partial): Likewise.
12572 * exec.h (section_table_xfer_memory_partial): Update
12573 declaration.
12574 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12575 instead of plongest.
12576 (gnu_xfer_partial): Likewise.
12577 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12578 (ia64_hpux_xfer_solib_got): Likewise.
12579 (ia64_hpux_xfer_partial): Likewise.
12580 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12581 * inf-ptrace.c (inf_ptrace_xfer_partial):
12582 * inf-ttrace.c (inf_ttrace_xfer_partial):
12583 * linux-nat.c (linux_xfer_siginfo): Likewise.
12584 (linux_nat_xfer_partial): Likewise.
12585 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12586 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12587 * monitor.c (monitor_xfer_memory): Likewise.
12588 (monitor_xfer_partial): Likewise.
12589 * procfs.c (procfs_xfer_partial): Likewise.
12590 * record-full.c (record_full_xfer_partial): Likewise.
12591 (record_full_core_xfer_partial): Likewise.
12592 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12593 instead of plongest.
12594 (gdbsim_xfer_partial): Likewise.
12595 * remote.c (remote_xfer_partial): Likewise.
12596 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12597 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12598 declaration.
12599 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12600 (rs6000_xfer_shared_libraries): Likewise.
12601 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12602 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12603 (sparc_xfer_partial): Likewise.
12604 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12605 (spu_xfer_partial): Likewise.
12606 * spu-multiarch.c (spu_xfer_partial): Likewise.
12607 * target.c (target_read_live_memory): Likewise.
12608 (memory_xfer_live_readonly_partial): Likewise.
12609 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12610 (target_xfer_partial, default_xfer_partial): Likewise.
12611 (current_xfer_partial): Likewise.
12612 * tracepoint.c (tfile_xfer_partial): Likewise.
12613 * windows-nat.c (windows_xfer_memory): Likewise. Call
12614 pulongest instead of plongest.
12615 (windows_xfer_partial): Likewise.
12616 (windows_xfer_shared_libraries): Likewise.
12617
12618 2014-01-14 Yao Qi <yao@codesourcery.com>
12619
12620 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12621 target_xfer_partial_ftype.
12622
12623 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12624
12625 PR python/15464
12626 PR python/16113
12627 * valops.c (value_struct_elt_bitpos): New function
12628 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12629 object to 'None' if the field name is an empty string ("").
12630 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12631 attribute to look for a field when 'name' is 'None'.
12632 (get_field_type): New function
12633
12634 2014-01-13 Doug Evans <dje@google.com>
12635
12636 PR symtab/16426
12637 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12638 (try_open_dwop_file): Ditto.
12639 * gdb_bfd.c: #include "vec.h".
12640 (bfdp): New typedef.
12641 (struct gdb_bfd_data): New member included_bfds.
12642 (gdb_bfd_unref): Unref all included bfds.
12643 (gdb_bfd_record_inclusion): New function.
12644 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12645
12646 2014-01-13 Tom Tromey <tromey@redhat.com>
12647
12648 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12649
12650 2014-01-13 Tom Tromey <tromey@redhat.com>
12651
12652 * defs.h (use_windows): Remove.
12653 * gdb.c (main): Update.
12654 * main.c (captured_main, gdb_main): Update.
12655 * main.h (struct captured_main_args) <use_windows>: Remove.
12656 * top.c (use_windows): Remove.
12657
12658 2014-01-13 Tom Tromey <tromey@redhat.com>
12659
12660 * defs.h (deprecated_flush_hook): Remove.
12661
12662 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12663
12664 PR threads/16216
12665 * linux-thread-db.c (try_thread_db_load): Add parameter
12666 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12667 (try_thread_db_load_from_pdir_1): Move it there from here.
12668 (try_thread_db_load_from_sdir): Update caller.
12669 (try_thread_db_load_from_dir): Move it there from here.
12670
12671 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12672
12673 * regformats/regdat.sh: Always rewrite the register file.
12674
12675 2014-01-13 Pedro Alves <palves@redhat.com>
12676
12677 * Makefile.in (CHECK_HEADERS): New variable.
12678 (check-headers:): New rule.
12679
12680 2014-01-13 Tom Tromey <tromey@redhat.com>
12681
12682 * cli/cli-setshow.c (do_set_command): Update.
12683 * defs.h (deprecated_set_hook): Remove.
12684 * top.c (deprecated_set_hook): Remove.
12685
12686 2014-01-13 Pedro Alves <palves@redhat.com>
12687
12688 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12689 the tracepoint if the PC is a pseudo-register.
12690
12691 2014-01-13 Tom Tromey <tromey@redhat.com>
12692
12693 * defs.h (XCALLOC): Remove.
12694 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12695 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12696 * dwarf2loc.c (allocate_piece_closure): Likewise.
12697 * elfread.c (elf_symfile_segments): Likewise.
12698 (elf_symfile_segments): Likewise.
12699 * gdbtypes.c (copy_type_recursive): Likewise.
12700 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12701 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12702 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12703 XCALLOC.
12704 * mt-tdep.c (mt_gdbarch_init): Likewise.
12705 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12706 XCALLOC.
12707 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12708 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12709 * registry.c (registry_alloc_data): Likewise.
12710 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12711 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12712 * serial.c (serial_fdopen_ops): Likewise.
12713 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12714 XCALLOC.
12715 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12716 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12717 not XCALLOC.
12718
12719 2014-01-13 Tom Tromey <tromey@redhat.com>
12720
12721 * defs.h (XMALLOC): Remove.
12722 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12723 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12724 * cli-out.c (struct ui_out *): Likewise.
12725 * cli/cli-dump.c (add_dump_command): Likewise.
12726 (add_dump_command): Likewise.
12727 * complaints.c (get_complaints): Likewise.
12728 (find_complaint): Likewise.
12729 * dwarf2-frame.c (execute_cfa_program): Likewise.
12730 * dwarf2read.c (abbrev_table_read_table): Likewise.
12731 * gdbarch.sh: Likewise.
12732 * gdbarch.c: Rebuild.
12733 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12734 * interps.c (interp_new): Likewise.
12735 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12736 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12737 * mi/mi-console.c (mi_console_file_new): Likewise.
12738 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12739 * mi/mi-out.c (mi_out_new): Likewise.
12740 * mi/mi-parse.c (mi_parse): Likewise.
12741 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12742 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12743 * observer.c (xalloc_observer_list_node): Likewise.
12744 * regcache.c (regcache_xmalloc_1): Likewise.
12745 * reggroups.c (reggroup_new): Likewise.
12746 (_initialize_reggroup): Likewise.
12747 * registry.c (register_data_with_cleanup): Likewise.
12748 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12749 * ser-base.c (serial_ttystate): Likewise.
12750 * ser-mingw.c (make_pipe_state): Likewise.
12751 * ser-pipe.c (pipe_open): Likewise.
12752 * serial.c (serial_open): Likewise.
12753 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12754 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12755 (tui_alloc_win_info): Likewise.
12756 (tui_add_content_elements): Likewise.
12757 * tui/tui-file.c (tui_file_new): Likewise.
12758 * tui/tui-out.c (tui_out_new): Likewise.
12759 * ui-file.c (mem_file_new): Likewise.
12760 * ui-out.c (push_level): Likewise.
12761 (make_cleanup_ui_out_end): Likewise.
12762 (append_header_to_list): Likewise.
12763 (ui_out_new): Likewise.
12764 * user-regs.c (user_reg_add_builtin): Likewise.
12765
12766 2014-01-13 Tom Tromey <tromey@redhat.com>
12767
12768 * defs.h (XZALLOC): Remove.
12769 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12770 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12771 (get_ada_tasks_inferior_data): Likewise.
12772 * auto-load.c (get_auto_load_pspace_data): Likewise.
12773 * auxv.c (get_auxv_inferior_data): Likewise.
12774 * bfd-target.c (target_bfd_reopen): Likewise.
12775 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12776 (deprecated_insert_raw_breakpoint): Likewise.
12777 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12778 * corelow.c (core_open): Likewise.
12779 * darwin-nat.c (darwin_check_new_threads): Likewise.
12780 (darwin_attach_pid): Likewise.
12781 * dummy-frame.c (dummy_frame_push): Likewise.
12782 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12783 * dwarf2loc.c (allocate_piece_closure): Likewise.
12784 * elfread.c (elf_symfile_segments): Likewise.
12785 * eval.c (ptrmath_type_p): Likewise.
12786 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12787 * gdbtypes.c (alloc_type_arch): Likewise.
12788 (alloc_type_instance): Likewise.
12789 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12790 * inf-child.c (inf_child_can_use_agent): Likewise.
12791 * inflow.c (get_inflow_inferior_data): Likewise.
12792 * infrun.c (save_infcall_suspend_state): Likewise.
12793 * jit.c (jit_reader_load): Likewise.
12794 (get_jit_objfile_data): Likewise.
12795 (get_jit_program_space_data): Likewise.
12796 (jit_object_open_impl): Likewise.
12797 (jit_symtab_open_impl): Likewise.
12798 (jit_block_open_impl): Likewise.
12799 (jit_frame_sniffer): Likewise.
12800 * linux-fork.c (add_fork): Likewise.
12801 * maint.c (make_command_stats_cleanup): Likewise.
12802 * objfiles.c (get_objfile_pspace_data): Likewise.
12803 * opencl-lang.c (struct lval_closure): Likewise.
12804 * osdata.c (osdata_start_osdata): Likewise.
12805 * progspace.c (new_address_space): Likewise.
12806 (add_program_space): Likewise.
12807 * remote-sim.c (get_sim_inferior_data): Likewise.
12808 * sh-tdep.c (sh_gdbarch_init): Likewise.
12809 * skip.c (Ignore): Likewise.
12810 (skip_delete_command): Likewise.
12811 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12812 (library_list_start_library): Likewise.
12813 (solib_aix_current_sos): Likewise.
12814 * solib-darwin.c (get_darwin_info): Likewise.
12815 (darwin_current_sos): Likewise.
12816 * solib-dsbt.c (get_dsbt_info): Likewise.
12817 * solib-ia64-hpux.c (new_so_list): Likewise.
12818 (ia64_hpux_get_solib_linkage_addr): Likewise.
12819 * solib-spu.c (append_ocl_sos): Likewise.
12820 (spu_current_sos): Likewise.
12821 * solib-svr4.c (get_svr4_info): Likewise.
12822 (svr4_keep_data_in_core): Likewise.
12823 (library_list_start_library): Likewise.
12824 (svr4_default_sos): Likewise.
12825 (svr4_read_so_list): Likewise.
12826 * solib-target.c (library_list_start_library): Likewise.
12827 (solib_target_current_sos): Likewise.
12828 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12829 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12830 * symfile.c (default_symfile_segments): Likewise.
12831 * target-descriptions.c (tdesc_data_init): Likewise.
12832 (tdesc_create_reg): Likewise.
12833 (struct tdesc_type *): Likewise.
12834 (tdesc_create_vector): Likewise.
12835 (tdesc_set_struct_size): Likewise.
12836 (struct tdesc_type *): Likewise.
12837 (tdesc_free_feature): Likewise.
12838 (tdesc_create_feature): Likewise.
12839 * windows-nat.c (windows_add_thread): Likewise.
12840 (windows_make_so): Likewise.
12841 * xml-support.c (gdb_xml_body_text): Likewise.
12842 (gdb_xml_create_parser_and_cleanup): Likewise.
12843 (xml_process_xincludes): Likewise.
12844 * xml-syscall.c (allocate_syscalls_info): Likewise.
12845 (syscall_create_syscall_desc): Likewise.
12846
12847 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12848
12849 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12850 function, with code from i386_stap_parse_special_token.
12851 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12852 (i386_stap_parse_special_token): Move code to the two functions
12853 above; simplify it.
12854
12855 2014-01-09 Pedro Alves <palves@redhat.com>
12856 Hui Zhu <hui@codesourcery.com>
12857
12858 PR gdb/16101
12859 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12860 bp_err_string. Don't mark the location shlib_disabled if the
12861 error thrown wasn't a generic or memory error. Catch errors
12862 thrown while inserting breakpoints in overlayed code. Output
12863 error message of software breakpoints.
12864 * remote.c (remote_insert_breakpoint): If this breakpoint has
12865 target-side commands but this stub doesn't support Z0 packets,
12866 throw NOT_SUPPORTED_ERROR error.
12867 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12868 * target.h (target_insert_breakpoint): Extend comment.
12869 (target_insert_hw_breakpoint): Add comment.
12870
12871 2014-01-08 Pedro Alves <palves@redhat.com>
12872
12873 * remote.c (remote_add_thread): Add threads silently if starting
12874 up.
12875 (remote_notice_new_inferior): If in all-stop, and starting up,
12876 don't call notice_new_inferior.
12877 (get_current_thread): New function, factored out from ...
12878 (add_current_inferior_and_thread): ... this. Adjust.
12879 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12880 found any thread, then select the remote's current thread as GDB's
12881 current thread too.
12882
12883 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12884
12885 * NEWS: Create a new section for the next release branch.
12886 Rename the section of the current branch, now that it has
12887 been cut.
12888
12889 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12890
12891 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12892 * version.in: Bump version to 7.7.50.DATE-cvs.
12893
12894 2014-01-08 Yao Qi <yao@codesourcery.com>
12895
12896 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12897 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12898 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12899
12900 2014-01-08 Yao Qi <yao@codesourcery.com>
12901
12902 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12903 return value of bfd_get_filename to symbol_file_add_from_bfd.
12904
12905 2014-01-08 Pierre Muller <muller@sourceware.org>
12906
12907 Fix PR16201.
12908 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12909 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12910 to prim_record_mininal_symbol_and_info.
12911 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12912 in call to prim_record_minimal_symbol_and_info.
12913 (read_pe_exported_syms): Set index field of section_data.
12914
12915 2014-01-07 Andrew Pinski <apinski@cavium.com>
12916
12917 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12918 * features/aarch64.c: Regenerate.
12919
12920 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12921
12922 * target.c (return_null): Define.
12923 (update_current_target): Use it instead of return_zero for
12924 functions that return a pointer.
12925
12926 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12927
12928 * source.c (add_path): Fix check for duplicated paths in the previously
12929 included paths.
12930
12931 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12932
12933 * ada-lang.c: Remove duplicated include statements.
12934 * alphabsd-nat.c: Ditto.
12935 * amd64-darwin-tdep.c: Ditto.
12936 * amd64fbsd-nat.c: Ditto.
12937 * auto-load.c: Ditto.
12938 * ax-gdb.c: Ditto.
12939 * breakpoint.c: Ditto.
12940 * dbxread.c: Ditto.
12941 * fork-child.c: Ditto.
12942 * gdb_usleep.c: Ditto.
12943 * i386-darwin-tdep.c: Ditto.
12944 * i386fbsd-nat.c: Ditto.
12945 * infcmd.c: Ditto.
12946 * inferior.c: Ditto.
12947 * jv-lang.c: Ditto.
12948 * linux-nat.c: Ditto.
12949 * linux-tdep.c: Ditto.
12950 * m68kbsd-nat.c: Ditto.
12951 * m68klinux-nat.c: Ditto.
12952 * microblaze-tdep.c: Ditto.
12953 * mips-linux-tdep.c: Ditto.
12954 * mn10300-tdep.c: Ditto.
12955 * nto-tdep.c: Ditto.
12956 * opencl-lang.c: Ditto.
12957 * osdata.c: Ditto.
12958 * printcmd.c: Ditto.
12959 * regcache.c: Ditto.
12960 * remote-m32r-sdi.c: Ditto.
12961 * remote.c: Ditto.
12962 * symfile.c: Ditto.
12963 * symtab.c: Ditto.
12964 * tilegx-linux-nat.c: Ditto.
12965 * tilegx-tdep.c: Ditto.
12966 * tracepoint.c: Ditto.
12967 * valops.c: Ditto.
12968 * vaxbsd-nat.c: Ditto.
12969 * windows-nat.c: Ditto.
12970 * xtensa-tdep.c: Ditto.
12971
12972 2014-01-07 Yao Qi <yao@codesourcery.com>
12973
12974 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12975
12976 2014-01-07 Yao Qi <yao@codesourcery.com>
12977 Joel Brobecker <brobecker@adacore.com>
12978
12979 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12980 (pdc_write_regs): Likewise.
12981 (fetch_regs_kernel_thread): Likewise.
12982 (store_regs_kernel_thread): Likewise.
12983
12984 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12985
12986 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12987 tagged type objects to their actual type.
12988
12989 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12990
12991 * ada-valprint.c (print_field_values): Add "language" parameter.
12992 Update calls to print_field_values and print_variant_part.
12993 Pass new parameter "language" in call to val_print instead
12994 of "current_language". Replace call to ada_val_print by call
12995 to val_print.
12996 (print_variant_part): Add "language" parameter.
12997 (ada_val_print_struct_union): Update call to print_field_values.
12998
12999 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13000
13001 * ada-valprint.c (ui_memcpy): Delete.
13002 (ada_print_floating): Update documentation. Add empty line
13003 between between function documentation and implementation.
13004 Delete variable "buffer". Use ui_file_xstrdup in place of
13005 ui_file_put. Minor adjustments following this change.
13006
13007 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13008
13009 * ada-valprint.c (ada_val_print_string): New function,
13010 extracted from ada_val_print_array.
13011 (ada_val_print_array): Replace extracted code by call
13012 to ada_val_print_string followed by a return. Move
13013 "else" branch to the function's top block.
13014
13015 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13016
13017 * ada-valprint.c (ada_val_print_array): Move implementation
13018 down. Rename parameter "offset" and "val" into "offset_aligned"
13019 and "original_value" respectively. Add parameter "offset".
13020
13021 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13022
13023 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13024 re-organizing the code. Change the "???" message printed
13025 when target type is a TYPE_CODE_UNDEF into
13026 "<ref to undefined type>".
13027
13028 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13029
13030 * ada-valprint.c (print_record): Delete, implementation inlined...
13031 (ada_val_print_struct_union): ... here. Remove call to
13032 ada_check_typedef in inlined implementation.
13033
13034 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13035
13036 * ada-valprint.c (ada_val_print_gnat_array): New function,
13037 extracted from ada_val_print_1;
13038 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13039 (ada_val_print_flt, ada_val_print_struct_union)
13040 (ada_val_print_ref): Likewise.
13041 (ada_val_print_1): Delete variables i and elttype.
13042 Replace extracted-out code by call to corresponding
13043 new functions.
13044
13045 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13046
13047 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13048
13049 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13050
13051 * ada-valprint.c (ada_val_print_1): Replace calls to
13052 ada_val_print_1 by calls to val_print.
13053
13054 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13055
13056 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13057 Update calls to self accordingly. Replace calls to c_val_print
13058 by calls to val_print.
13059
13060 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13061
13062 * ada-valprint.c (print_record): Delete declaration.
13063 (adjust_type_signedness, ada_val_print_1): Likewise.
13064 (ada_val_print): Move function implementation down.
13065 (print_variant_part, print_field_values, print_record):
13066 Move function implementation up.
13067
13068 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13069
13070 * python/py-type.c (typy_get_name): New function.
13071 (type_object_getset): Add entry for attribute "name".
13072 * NEWS: Add entry mentioning this new attribute.
13073
13074 2014-01-07 Yao Qi <yao@codesourcery.com>
13075
13076 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13077 statement.
13078
13079 2014-01-07 Yao Qi <yao@codesourcery.com>
13080
13081 * gnu-nat.c (info_port_rights): Add qualifier const to
13082 argument args.
13083
13084 2014-01-07 Yao Qi <yao@codesourcery.com>
13085
13086 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13087
13088 2014-01-07 Yao Qi <yao@codesourcery.com>
13089
13090 * gnu-nat.c (make_inf) Update declaration.
13091 (make_inf): Make it static.
13092 (inf_set_traced): Likewise.
13093 (inf_port_to_thread, inf_task_died_status): Likewise.
13094
13095 2014-01-07 Yao Qi <yao@codesourcery.com>
13096
13097 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13098
13099 2014-01-07 Yao Qi <yao@codesourcery.com>
13100
13101 * gnu-nat.c (_initialize_gnu_nat): Declare.
13102
13103 2014-01-07 Yao Qi <yao@codesourcery.com>
13104
13105 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13106 'enum bfd_endian'.
13107 (struct gdbarch_info) <byte_order>: Change type to
13108 'enum bfd_endian'.
13109 <byte_order_for_code>: Likewise.
13110 * gdbarch.c, gdbarch.h: Regenerated.
13111
13112 2014-01-06 Sasha Smundak <asmundak@google.com>
13113
13114 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13115
13116 2014-01-06 Tom Tromey <tromey@redhat.com>
13117
13118 * doublest.c (convert_doublest_to_floatformat): Use const, not
13119 CONST.
13120 * somread.c (som_symtab_read): Likewise.
13121
13122 2014-01-07 Hui Zhu <hui@codesourcery.com>
13123
13124 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13125 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13126 (gdb_bfd_fopen): Ditto.
13127 (gdb_bfd_openr): Ditto.
13128 (gdb_bfd_openw): Ditto.
13129 (gdb_bfd_openr_iovec): Ditto.
13130 (gdb_bfd_fdopenr): Ditto.
13131 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13132 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13133 with xstrdup.
13134 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13135 with xstrdup.
13136 * symfile-mem.c (symbol_file_add_from_memory): Removed
13137 gdb_bfd_stash_filename.
13138
13139 2014-01-03 Doug Evans <dje@google.com>
13140
13141 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13142 output.
13143
13144 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13145
13146 Update year range in copyright notice of all files.
13147
13148 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13149
13150 * top.c (print_gdb_version): Set copyright year to 2014.
13151
13152 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13153
13154 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13155
13156 For older changes see ChangeLog-2013.
13157 \f
13158 Local Variables:
13159 mode: change-log
13160 left-margin: 8
13161 fill-column: 74
13162 version-control: never
13163 coding: utf-8
13164 End:
This page took 0.429308 seconds and 5 git commands to generate.