9306128ed189f1e85f77ae0df4ece13afa01f49c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2
3 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
4 SystemTap support in GDB.
5
6 2014-09-19 Don Breazeal <donb@codesourcery.com>
7
8 * linux-nat.c (linux_handle_extended_wait): Call
9 linux_ptrace_get_extended_event.
10 (wait_lwp): Call linux_is_extended_waitstatus.
11 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
12 and linux_is_extended_waitstatus.
13 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
14 linux_ptrace_get_extended_event.
15 (linux_ptrace_get_extended_event): New function.
16 (linux_is_extended_waitstatus): New function.
17 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
18 (linux_is_extended_waitstatus): New declarations.
19
20 2014-09-19 Yao Qi <yao@codesourcery.com>
21
22 * dwarf2read.c (dwarf_decode_lines): Update declaration.
23 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
24 comments. Callers update.
25 (dwarf_decode_lines): Likewise.
26 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
27 comments. Skip the line table if 'lowpc' is greater than
28 'address'. Don't check
29 dwarf2_per_objfile->has_section_at_zero.
30
31 2014-09-18 Doug Evans <dje@google.com>
32
33 * NEWS: Mention new "producer" attribute of gdb.Symtab.
34 * python/py-symtab.c (stpy_get_producer): New function.
35 (symtab_object_getset): Add "producer" attribute.
36
37 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
38
39 PR gdb/17384
40 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
41 (do_captured_read_memory_integer): Remove.
42 (safe_read_memory_integer): Use target_read_memory directly instead
43 of catching errors in do_captured_read_memory_integer.
44
45 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
46
47 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
48 not gdb/doc.
49
50 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
51
52 * objc-lang.c (find_implementation_from_class): Remove dead code.
53
54 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
55
56 PR cli/7233
57 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
58 "fprintf_unfiltered (gdb_stdlog...)".
59
60 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
61
62 PR breakpoints/12526
63 * breakpoint.h (struct watchpoint): New fields val_bitpos and
64 val_bitsize.
65 * breakpoint.c (watch_command_1): Use these fields to retain
66 bitfield information.
67 (extract_bitfield_from_watchpoint_value): New function.
68 (watchpoint_check): Use it.
69 (update_watchpoint): Use it. Optimize the address and length of a
70 HW watchpoint pointing to a bitfield.
71 * value.h (unpack_value_bitfield): New prototype.
72 * value.c (unpack_value_bitfield): Make extern.
73
74 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
75
76 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
77 x86-dregs.o.
78 * gnu-nat.c (inf_threads): New function.
79 * gnu-nat.h (inf_threads_ftype): New typedef.
80 (inf_threads): New declaration.
81 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
82 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
83 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
84 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
85 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
86 (i386_gnu_dr_get_control): New functions.
87 (reg_addr): New structure.
88 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
89 i386 debugging register hooks.
90 * NEWS: Mention this.
91
92 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
93
94 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
95 vector data transfer instructions.
96 (arm_record_coproc_data_proc): Updated.
97
98 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
99
100 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
101 arm_record_exreg_ld_st_insn.
102 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
103 load/store insns.
104
105 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
106
107 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
108 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
109 processing instructions.
110
111 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
112
113 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
114 for advance SIMD struct ld/st insn.
115 (thumb2_record_decode_insn_handler): Replace stub handler with
116 thumb2_record_asimd_struct_ld_st.
117
118 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
119
120 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
121 for asimd, vfp and coprocessor insns.
122 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
123 and coprocessor insns.
124 (thumb2_record_coproc_insn): New function.
125 (thumb2_record_decode_insn_handler): Update coprocessor insns record
126 handlers.
127 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
128 opcode 110 insns.
129
130 2014-09-13 Doug Evans <xdje42@gmail.com>
131
132 * NEWS: Mention new "queue-signal" command.
133 * infcmd.c (queue_signal_command): New function.
134 (_initialize_infcmd): Add new queue-signal command.
135
136 2014-09-13 Doug Evans <xdje42@gmail.com>
137
138 * linux-nat.c (wait_lwp): Add debugging printf.
139 (linux_nat_wait_1): Ditto.
140
141 2014-09-12 Pedro Alves <palves@redhat.com>
142
143 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
144 (create_and_insert_solib_event_breakpoint): New functions.
145 * breakpoint.h (create_and_insert_solib_event_breakpoint)
146 (remove_solib_event_breakpoints_at_next_stop): New declarations.
147 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
148 (remove_dbx_link_breakpoint): Delete function.
149 (insert_dbx_link_bpt_in_file): Use
150 create_and_insert_solib_event_breakpoint instead of
151 deprecated_insert_raw_breakpoint.
152 (procfs_wait): Don't check whether we hit __dbx_link here.
153 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
154 here.
155 * solib-irix.c (base_breakpoint): Delete global.
156 (disable_break): Delete function.
157 (enable_break): Use create_solib_event_breakpoint
158 instead of deprecated_insert_raw_breakpoint.
159 (irix_solib_handle_event): New function.
160 (irix_solib_create_inferior_hook): Don't run the target or disable
161 the mapping-complete breakpoint here.
162 (_initialize_irix_solib): Install irix_solib_handle_event as
163 so_ops->handle_event hook.
164
165 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
166 Ulrich Weigand  <uweigand@de.ibm.com>
167
168 PR tdep/17379
169 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
170 instead of read_memory_unsigned_integer.
171
172 2014-09-12 Gary Benson <gbenson@redhat.com>
173
174 * nat/linux-waitpid.c: Include common-defs.h.
175 [GDBSERVER]: Add FIXME comment.
176 [!GDBSERVER]: Don't include defs.h or signal.h.
177 (linux_debug) [!GDBSERVER]: Remove empty block.
178
179 2014-09-12 Gary Benson <gbenson@redhat.com>
180
181 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
182 Don't include defs.h or server.h.
183
184 2014-09-12 Gary Benson <gbenson@redhat.com>
185
186 * nat/linux-btrace.c: Include common-defs.h.
187 Don't include defs.h, server.h or gdbthread.h.
188 * nat/linux-btrace.h (struct target_ops): New forward declaration.
189
190 2014-09-12 Gary Benson <gbenson@redhat.com>
191
192 * common/agent.c: Include common-defs.h.
193 Don't include defs.h or server.h.
194 * common/buffer.c: Likewise.
195 * common/common-debug.c: Likewise.
196 * common/common-utils.c: Likewise.
197 * common/errors.c: Likewise.
198 * common/filestuff.c: Likewise.
199 * common/format.c: Likewise.
200 * common/gdb_vecs.c: Likewise.
201 * common/print-utils.c: Likewise.
202 * common/ptid.c: Likewise.
203 * common/rsp-low.c: Likewise.
204 * common/signals.c: Likewise.
205 * common/vec.c: Likewise.
206 * common/xml-utils.c: Likewise.
207 * nat/linux-osdata.c: Likewise.
208 * nat/linux-procfs.c: Likewise.
209 * nat/linux-ptrace.c: Likewise.
210 * nat/mips-linux-watch.c: Likewise.
211 * target/waitstatus.c: Likewise.
212
213 2014-09-12 Tom Tromey <tromey@redhat.com>
214 Gary Benson <gbenson@redhat.com>
215
216 * common/common-regcache.h: New file.
217 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
218 * regcache.h: Include common-regcache.h.
219 (regcache_read_pc): Don't declare.
220 * regcache.c (get_thread_regcache_for_ptid): New function.
221 * nat/linux-btrace.c: Don't include regcache.h.
222 Include common-regcache.h.
223 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
224
225 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
226
227 * regcache.h (struct regset): Declare.
228
229 2014-09-11 Pedro Alves <palves@redhat.com>
230
231 PR gdb/17347
232 * main.c: Include "infrun.h".
233 (catch_command_errors, catch_command_errors_const): Wait for the
234 foreground command to complete.
235 * top.c (maybe_wait_sync_command_done): New function, factored out
236 from ...
237 (maybe_wait_sync_command_done): ... here.
238 * top.h (maybe_wait_sync_command_done): New declaration.
239
240 2014-09-11 Tom Tromey <tromey@redhat.com>
241 Gary Benson <gbenson@redhat.com>
242
243 * common/symbol.h: New file.
244 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
245 * minsyms.c (find_minimal_symbol_address): New function.
246 * common/agent.c: Include common/symbol.h.
247 [!GDBSERVER]: Don't include objfiles.h.
248 (agent_look_up_symbols): Use find_minimal_symbol_address.
249
250 2014-09-11 Gary Benson <gbenson@redhat.com>
251
252 * target/target.h (target_stop_ptid, target_continue_ptid):
253 Declare.
254 * target.c (target_stop_ptid, target_continue_ptid): New
255 functions.
256 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
257 (agent_run_command): Always use target_stop_ptid and
258 target_continue_ptid.
259
260 2014-09-11 Tom Tromey <tromey@redhat.com>
261 Gary Benson <gbenson@redhat.com>
262
263 * target/target.h: New file.
264 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
265 * target.h: Include target/target.h.
266 (target_read_memory, target_write_memory): Don't declare.
267 * target.c (target_read_uint32): New function.
268 * common/agent.c: Include target/target.h.
269 [!GDBSERVER]: Don't include target.h.
270 (helper_thread_id): Type changed to uint32_t.
271 (agent_get_helper_thread_id): Use target_read_uint32.
272 (agent_run_command): Always use target_read_memory and
273 target_write_memory.
274 (agent_capability): Type changed to uint32_t.
275 (agent_capability_check): Use target_read_uint32.
276
277 2014-09-11 Gary Benson <gbenson@redhat.com>
278
279 * common/common-debug.h (show_debug_regs): Declare.
280 * common/common-debug.c (show_debug_regs): Define.
281 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
282 all uses with show_debug_regs. Replace all uses that considered
283 debug_hw_points as a multi-value integer with straight boolean
284 uses.
285 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
286 with show_debug_regs.
287 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
288 all uses with show_debug_regs.
289 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
290 uses with show_debug_regs.
291
292 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
293
294 * findvar.c (address_from_register): Handle targets requiring
295 a special conversion routine even for plain pointer types.
296
297 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
298
299 * rs6000-nat.c (exec_one_dummy_insn): Remove.
300 (store_register): Do not call exec_one_dummy_insn.
301
302 2014-09-10 Joel Brobecker <brobecker@adacore.com>
303
304 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
305 dereference it first. Use value_enclosing_type instead of
306 value_type.
307 (ada_array_length): Likewise.
308
309 2014-09-10 Joel Brobecker <brobecker@adacore.com>
310
311 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
312 Adjust function implementation and documentation accordingly.
313 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
314 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
315 Update call to ada_value_ptr_subscript.
316
317 2014-09-10 Joel Brobecker <brobecker@adacore.com>
318
319 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
320 instead of VAL's type.
321
322 2014-09-10 Joel Brobecker <brobecker@adacore.com>
323
324 * amd64-linux-nat.c: Add <sys/uio.h> #include.
325
326 2014-09-09 Doug Evans <xdje42@gmail.com>
327
328 PR guile/17367
329 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
330 last parameter to pkg-config, not first.
331 * configure.ac: Pass --with-guile provided pkg-config path to
332 GDB_GUILE_PROGRAM_NAMES.
333 * configure: Regenerate.
334
335 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
336
337 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
338 Bertazi".
339
340 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
341
342 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
343 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
344 the list of sections determining GDB_OSABI_IRIX.
345
346 2014-09-09 James Hogan <james.hogan@imgtec.com>
347
348 * MAINTAINERS (Write After Approval): Add "James Hogan".
349
350 2014-09-09 James Hogan <james.hogan@imgtec.com>
351
352 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
353
354 2014-09-09 Joel Brobecker <brobecker@adacore.com>
355
356 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
357
358 2014-09-08 Doug Evans <xdje42@gmail.com>
359
360 PR 17247
361 * guile.c: #include <signal.h>.
362 (_initialize_guile): Block SIGCHLD while initializing Guile.
363
364 Replaces the following, which is reverted.
365
366 2014-07-26 Doug Evans <xdje42@gmail.com>
367
368 PR 17185
369 * configure.ac: Add check for header gc/gc.h.
370 Add check for function setenv.
371 * configure: Regenerate.
372 * config.in: Regenerate.
373 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
374
375 2014-09-08 Doug Evans <xdje42@gmail.com>
376
377 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
378 with named constant. Fix style of pointer comparison.
379 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
380
381 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
382
383 PR gdb/17035
384 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
385 decide whether we display the command on "show user".
386 * cli/cli-script.c (show_user_1): Only verify cmdlines after
387 printing command name.
388 * cli/cli-decode.h (cli_user_command_p): Declare new function.
389 * cli/cli-decode.c (cli_user_command_p): Create helper function
390 to verify whether cmd_list_element is a user-defined command.
391
392 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
393
394 PR python/17355
395 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
396 Fix goto out of TRY_CATCH.
397
398 2014-09-06 Doug Evans <xdje42@gmail.com>
399 Tom Tromey <tromey@redhat.com>
400
401 PR 15276
402 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
403 $_any_caller_matches.
404 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
405 * python/lib/gdb/function/caller_is.py: New file.
406
407 2014-09-06 Doug Evans <xdje42@gmail.com>
408
409 * infcmd.c (program_info): Fix typo.
410
411 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
412
413 PR gdb/17235
414 * stap-probe.c (stap_parse_single_operand): Delete unused variable
415 'number'. New variable 'has_digit'. Rewrite code to deal with
416 subexpressions on SDT probes.
417
418 2014-09-04 Pedro Alves <palves@redhat.com>
419
420 * c-exp.y (parse_number): Skip handling base-switching prefixes if
421 the input is only one character long.
422
423 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
424
425 PR fortran/17237
426 * f-valprint.c (f_val_print): Specify the correct print option to
427 use when printing integer values.
428
429 2014-09-04 Gary Benson <gbenson@redhat.com>
430
431 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
432 Remove code to cope with LWPs wrapped as PIDs.
433 Add assertions to ensure no wrapped LWPs are passed.
434
435 2014-09-04 Pedro Alves <palves@redhat.com>
436
437 * value.c (value_ranges_copy_adjusted): New function, factored out
438 from ...
439 (value_contents_copy_raw): ... here.
440 (unpack_value_bits_as_long_1): Rename back to ...
441 (unpack_bits_as_long): ... this. Remove 'original_value' and
442 'result' parameters. Change return type to LONGEST.
443 (unpack_value_bits_as_long): Delete.
444 (unpack_value_field_as_long_1): Delete.
445 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
446 (unpack_value_bitfield): New function.
447 (value_field_bitfield): Reimplement using unpack_value_bitfield.
448 (value_fetch_lazy): Use unpack_value_bitfield.
449 * value.h (unpack_value_bits_as_long): Delete declaration.
450
451 2014-09-03 Sasha Smundak <asmundak@google.com>
452
453 * python/py-frame.c (frapy_read_register): New function.
454
455 2014-09-03 James Hogan <james.hogan@imgtec.com>
456
457 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
458 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
459
460 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
461
462 PR python/16699
463 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
464 function.
465 (add_cmd): Set "completer_handle_brkchars" to NULL.
466 * cli/cli-decode.h (struct cmd_list_element)
467 <completer_handle_brkchars>: New field.
468 * command.h (completer_ftype_void): New typedef.
469 (set_cmd_completer_handle_brkchars): New prototype.
470 * completer.c (set_gdb_completion_word_break_characters): New
471 function.
472 (complete_line_internal): Call "completer_handle_brkchars"
473 callback from command.
474 * completer.h: Include "command.h".
475 (set_gdb_completion_word_break_characters): New prototype.
476 * python/py-cmd.c (cmdpy_completer_helper): New function.
477 (cmdpy_completer_handle_brkchars): New function.
478 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
479 (cmdpy_init): Set completer_handle_brkchars to
480 cmdpy_completer_handle_brkchars.
481
482 2014-09-03 Gary Benson <gbenson@redhat.com>
483
484 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
485 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
486 Loop conditions changed to equivalent form.
487 (struct x86_debug_reg_state): Updated dr_ref_count comment.
488 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
489 ALL_DEBUG_ADDRESS_REGISTERS.
490
491 2014-09-03 Joel Brobecker <brobecker@adacore.com>
492
493 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
494 description fix.
495
496 2014-09-02 Doug Evans <dje@google.com>
497
498 * typeprint.c (find_global_typedef): Fix comment.
499
500 2014-09-02 Gary Benson <gbenson@redhat.com>
501
502 * i386-nat.h: Renamed as...
503 * x86-nat.h: New file. All type, function and variable name
504 prefixes changed from "i386_" to "x86_". All references updated.
505 * i386-nat.c: Renamed as...
506 * x86-nat.c: New file. All type, function and variable name
507 prefixes changed from "i386_" to "x86_". All references updated.
508 * common/i386-xstate.h: Renamed as...
509 * common/x86-xstate.h: New file. All type, function and variable
510 name prefixes changed from "i386_" to "x86_". All references
511 updated.
512 * nat/i386-cpuid.h: Renamed as...
513 * nat/x86-cpuid.h: New file. All type, function and variable name
514 prefixes changed from "i386_" to "x86_". All references updated.
515 * nat/i386-gcc-cpuid.h: Renamed as...
516 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
517 name prefixes changed from "i386_" to "x86_". All references
518 updated.
519 * nat/i386-dregs.h: Renamed as...
520 * nat/x86-dregs.h: New file. All type, function and variable name
521 prefixes changed from "i386_" to "x86_". All references updated.
522 * nat/i386-dregs.c: Renamed as...
523 * nat/x86-dregs.c: New file. All type, function and variable name
524 prefixes changed from "i386_" to "x86_". All references updated.
525
526 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
527
528 * varobj.c (_initialize_varobj): Move to the end of file.
529
530 2014-08-29 Gary Benson <gbenson@redhat.com>
531
532 * common/common-exceptions.h: New file.
533 * common/common-exceptions.c: Likewise.
534 * Makefile.in (SFILES): Add common/common-exceptions.c.
535 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
536 (COMMON_OBS): Add common-exceptions.o.
537 (common-exceptions.o): New rule.
538 * exceptions.h (common-exceptions.h): Include.
539 (gdb_setjmp.h): Do not include.
540 (return_reason): Moved to common-exceptions.h.
541 (enum return_reason): Likewise.
542 (RETURN_MASK): Likewise.
543 (typedef return_mask): Likewise.
544 (enum errors): Likewise.
545 (struct gdb_exception): Likewise.
546 (exceptions_state_mc_init): Likewise.
547 (exceptions_state_mc_action_iter): Likewise.
548 (exceptions_state_mc_action_iter_1): Likewise.
549 (TRY_CATCH): Likewise.
550 (throw_exception): Likewise.
551 (throw_verror): Likewise.
552 (throw_vquit): Likewise.
553 (throw_error): Likewise.
554 (throw_quit): Likewise.
555 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
556 (enum catcher_action): Likewise.
557 (struct catcher): Likewise.
558 (current_catcher): Likewise.
559 (catcher_list_size): Likewise.
560 (exceptions_state_mc_init): Likewise.
561 (catcher_pop): Likewise.
562 (exceptions_state_mc): Likewise.
563 (exceptions_state_mc_action_iter): Likewise.
564 (exceptions_state_mc_action_iter_1): Likewise.
565 (throw_exception): Likewise.
566 (exception_messages): Likewise.
567 (exception_messages_size): Likewise.
568 (throw_it): Likewise.
569 (throw_verror): Likewise.
570 (throw_vquit): Likewise.
571 (throw_error): Likewise.
572 (throw_quit): Likewise.
573 (prepare_to_throw_exception): New function.
574
575 2014-08-29 Gary Benson <gbenson@redhat.com>
576
577 * common/gdb_setjmp.h: New file.
578 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
579 * configure.ac: Move sigsetjmp check...
580 * common/common.m4: ...here.
581 * configure: Regenerate.
582 * cp-support.c (SIGJMP_BUF): Delete.
583 (SIGSETJMP): Likewise.
584 (SIGLONGJMP): Likewise.
585 * exceptions.h (gdb_setjmp.h): Include.
586 (setjmp.h): Do not include.
587 (EXCEPTIONS_SIGJMP_BUF): Delete.
588 (EXCEPTIONS_SIGSETJMP): Likewise.
589 (EXCEPTIONS_SIGLONGJMP): Likewise.
590 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
591 from gdb_setjmp.h.
592 * exceptions.c: Likewise.
593
594 2014-08-29 Gary Benson <gbenson@redhat.com>
595
596 * cleanups.h: Moved to...
597 * common/cleanups.h: New file.
598 * cleanups.c: Moved to...
599 * common/cleanups.c: New file. Include common-defs.h and
600 cleanups.h. Do not include defs.h.
601 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
602 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
603 (cleanups.o): New rule.
604
605 2014-08-29 Gary Benson <gbenson@redhat.com>
606
607 * common/errors.h (internal_warning): New declaration.
608 (internal_vwarning): Likewise.
609 * common/errors.c (internal_warning): New function.
610 * utils.h (internal_warning): Don't declare.
611 (internal_vwarning): Likewise.
612 * utils.c (internal_warning): Removed.
613
614 2014-08-29 Gary Benson <gbenson@redhat.com>
615
616 * main.c (captured_main): Use warning during startup.
617 Prefix startup warning messages with command name.
618
619 2014-08-29 Gary Benson <gbenson@redhat.com>
620
621 * main.c (captured_main): Handle usage errors with error.
622
623 2014-08-29 Gary Benson <gbenson@redhat.com>
624
625 * go32-nat.c (go32_create_inferior): Replace a fprintf/
626 exit pair with a call to error. Wrap the message with _().
627
628 2014-08-29 Gary Benson <gbenson@redhat.com>
629
630 * main.c (captured_main): Replace a fprintf/exit
631 pair with a call to error. Wrap the message with _().
632
633 2014-08-29 Gary Benson <gbenson@redhat.com>
634
635 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
636 pairs with calls to error. Wrap the message with _().
637
638 2014-08-29 Gary Benson <gbenson@redhat.com>
639
640 * utils.c (vwarning): Protect calls to target_terminal_ours
641 and wrap_here.
642
643 2014-08-29 Gary Benson <gbenson@redhat.com>
644
645 * exceptions.c (print_flush): Protect calls to
646 target_terminal_ours and wrap_here.
647
648 2014-08-29 Gary Benson <gbenson@redhat.com>
649
650 * utils.h (filtered_printing_initialized): New declaration.
651 * utils.c (abort_with_message): New function.
652 (internal_vproblem): Use abort_with_message for first level
653 recursive internal problems, and if gdb_stderr is not set up.
654 Protect calls to target_terminal_ours, begin_line and query.
655
656 2014-08-28 Doug Evans <dje@google.com>
657
658 * symtab.c (in_prologue): Move definition to better spot.
659 (skip_prologue_using_sal): Ditto.
660
661 2014-08-28 Doug Evans <dje@google.com>
662
663 * symtab.c (find_function_start_sal): Move definition to better spot.
664
665 2014-08-28 Yao Qi <yao@codesourcery.com>
666
667 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
668 found_stack_adjust in forward scan. Remove condition check
669 on found_stack_adjust which is always true. Indent the code.
670
671 2014-08-28 Yao Qi <yao@codesourcery.com>
672
673 * dwarf2read.c (dwarf_decode_lines): Update declaration.
674 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
675 (dwarf_decode_lines): Remove argument
676 want_line_info. Remove condition check on want_line_info.
677 Callers update.
678
679 2014-08-27 Doug Evans <dje@google.com>
680
681 * dwarf2read.c (dwarf_record_line): Fix typo.
682
683 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
684
685 * target.h (struct target_ops::to_terminal_save_ours): Remove
686 declaration.
687 (target_terminal_save_ours): Remove macro.
688 * target-delegates.c: Regenerate.
689 * inf-child.c (inf_child_target): Don't set the nonexistent
690 field to_terminal_save_ours.
691 * inferior.h (child_terminal_save_ours): Remove declaration.
692 * terminal.h (gdb_save_tty_state): New declaration.
693 * inflow.c (child_terminal_save_ours): Rename to ...
694 (gdb_save_tty_state): ... this.
695 * tui/tui.c: Include terminal.h.
696 (tui_enable): Use gdb_save_tty_state instead of
697 target_terminal_save_ours.
698 (tui_disable): Likewise.
699
700 2014-08-25 Doug Evans <dje@google.com>
701
702 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
703 Pass NULL instead of 0 for context pointer.
704
705 2014-08-25 Yao Qi <yao@codesourcery.com>
706
707 * dwarf2read.c: Fix grammatical error.
708
709 2014-08-24 Yao Qi <yao@codesourcery.com>
710
711 * dwarf2read.c (scan_partial_symbols): Update comments.
712 Rename argument 'need_pc' with 'set_addrmap'.
713 (add_partial_namespace): Rename argument 'need_pc' with
714 'set_addrmap'.
715 (add_partial_module): Likewise.
716 (add_partial_subprogram): Likewise. Update comments.
717 (dwarf2_name): Fix typo.
718
719 2014-08-22 Doug Evans <dje@google.com>
720
721 PR 17276
722 * dwarf2read.c (dwarf_record_line_p): New function.
723 (dwarf_decode_lines_1): Ignore subsequent line number entries
724 for the same line if any entry had a non-zero discriminator.
725
726 2014-08-22 Doug Evans <dje@google.com>
727
728 * buildsym.h (record_line_ftype): New typedef.
729 (record_line): Use it.
730 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
731 (dwarf_decode_lines_1): Call them.
732
733 2014-08-22 Yao Qi <yao@codesourcery.com>
734
735 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
736 (ctf_end): Remove code.
737
738 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
739
740 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
741 (linux_make_corefile_notes): call update_thread_list, protected against
742 exceptions.
743
744 2014-08-21 Pedro Alves <palves@redhat.com>
745
746 * infcmd.c (attach_command): Remove comment.
747
748 2014-08-21 Bin Cheng <bin.cheng@arm.com>
749
750 * aarch64-linux-nat.c (dr_changed_t): Change the type from
751 unsigned LONGEST to ULONGEST.
752
753 2014-08-20 Pedro Alves <palves@redhat.com>
754
755 * Makefile.in (check-read1): New rule.
756
757 2014-08-20 Joel Brobecker <brobecker@adacore.com>
758
759 * value.c (value_from_contents_and_address): Strip resolved_type's
760 typedef layers before checking its TYPE_DATA_LOCATION.
761
762 2014-08-20 Pedro Alves <palves@redhat.com>
763
764 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
765
766 2014-08-20 Yao Qi <yao@codesourcery.com>
767
768 * amd64-tdep.c (amd64_classify): Add a blank line after the
769 example. Move "*/" to a new line.
770 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
771 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
772 * dwarf2read.c (psymtab_include_file_name): Likewise.
773
774 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
775 Pedro Alves <palves@redhat.com>
776
777 PR symtab/14604
778 PR symtab/14605
779 * ada-lang.c (coerce_unspec_val_to_type): Use
780 value_contents_copy_raw.
781 * ada-valprint.c (val_print_packed_array_elements): Adjust.
782 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
783 * cp-valprint.c (cp_print_value_fields): Let the common printing
784 code handle optimized out values.
785 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
786 * d-valprint.c (dynamic_array_type): Use
787 value_bits_any_optimized_out.
788 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
789 check_any_valid fields.
790 (check_pieced_value_bits): Delete and inline ...
791 (check_pieced_synthetic_pointer): ... here.
792 (check_pieced_value_validity): Delete.
793 (check_pieced_value_invalid): Delete.
794 (pieced_value_funcs): Remove check_validity and check_any_valid
795 fields.
796 (read_pieced_value): Use mark_value_bits_optimized_out.
797 (write_pieced_value): Switch to use
798 mark_value_bytes_optimized_out.
799 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
800 of assuming the whole value is optimized out.
801 * findvar.c (read_frame_register_value): Remove special handling
802 of optimized out registers.
803 (value_from_register): Use mark_value_bytes_optimized_out.
804 * frame-unwind.c (frame_unwind_got_optimized): Use
805 mark_value_bytes_optimized_out.
806 * jv-valprint.c (java_value_print): Adjust.
807 (java_print_value_fields): Let the common printing code handle
808 optimized out values.
809 * mips-tdep.c (mips_print_register): Remove special handling of
810 optimized out registers.
811 * opencl-lang.c (lval_func_check_validity): Delete.
812 (lval_func_check_any_valid): Delete.
813 (opencl_value_funcs): Remove check_validity and check_any_valid
814 fields.
815 * p-valprint.c (pascal_object_print_value_fields): Let the common
816 printing code handle optimized out values.
817 * stack.c (read_frame_arg): Remove special handling of optimized
818 out values. Fetch both VAL and ENTRYVAL before comparing
819 contents. Adjust to value_available_contents_eq rename.
820 * valprint.c (valprint_check_validity)
821 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
822 (val_print_array_elements): Adjust.
823 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
824 (value_bits_any_optimized_out): New function.
825 (value_entirely_covered_by_range_vector): New function, factored
826 out from value_entirely_unavailable.
827 (value_entirely_unavailable): Reimplement.
828 (value_entirely_optimized_out): New function.
829 (insert_into_bit_range_vector): New function, factored out from
830 mark_value_bits_unavailable.
831 (mark_value_bits_unavailable): Reimplement.
832 (struct ranges_and_idx): New struct.
833 (find_first_range_overlap_and_match): New function, factored out
834 from value_available_contents_bits_eq.
835 (value_available_contents_bits_eq): Rename to ...
836 (value_contents_bits_eq): ... this. Check both unavailable
837 contents and optimized out contents.
838 (value_available_contents_eq): Rename to ...
839 (value_contents_eq): ... this.
840 (allocate_value_lazy): Remove reference to the old optimized_out
841 boolean.
842 (allocate_optimized_out_value): Use
843 mark_value_bytes_optimized_out.
844 (require_not_optimized_out): Adjust to check whether the
845 optimized_out vec is empty.
846 (ranges_copy_adjusted): New function, factored out from
847 value_contents_copy_raw.
848 (value_contents_copy_raw): Also copy the optimized out ranges.
849 Assert the destination ranges aren't optimized out.
850 (value_contents_copy): Update comment, remove call to
851 require_not_optimized_out.
852 (value_contents_equal): Adjust to check whether the optimized_out
853 vec is empty.
854 (set_value_optimized_out, value_optimized_out_const): Delete.
855 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
856 New functions.
857 (value_entirely_optimized_out, value_bits_valid): Delete.
858 (value_copy): Take a VEC copy of the 'optimized_out' field.
859 (value_primitive_field): Remove special handling of optimized out.
860 (value_fetch_lazy): Assert that lazy values have no unavailable
861 regions. Use value_bits_any_optimized_out. Remove some special
862 handling for optimized out values.
863 * value.h: Add intro comment about <optimized out> and
864 <unavailable>.
865 (struct lval_funcs): Remove check_validity and check_any_valid
866 fields.
867 (set_value_optimized_out, value_optimized_out_const): Remove.
868 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
869 New declarations.
870 (value_bits_any_optimized_out): New declaration.
871 (value_bits_valid): Delete declaration.
872 (value_available_contents_eq): Rename to ...
873 (value_contents_eq): ... this, and extend comments.
874
875 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
876
877 Fix -fsanitize=address on unreadable inferior strings.
878 * valprint.c (val_print_string): Fix access before BUFFER.
879
880 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
881
882 * target.c (target_struct_size): Remove.
883 (target_struct_allocsize): Remove.
884 (DEFAULT_ALLOCSIZE): Remove.
885 (target_ops_p): New typedef.
886 (DEF_VEC_P (target_ops_p)): New vector type.
887 (target_structs): Change type to VEC (target_ops_p).
888 (add_target_with_completer): Replace "push" code by VEC_safe_push.
889 (find_default_run_target): Rewrite for loop following changes to
890 target_structs.
891
892 2014-08-19 Joel Brobecker <brobecker@adacore.com>
893
894 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
895 Adjust code accordingly. Adjust function description comment.
896
897 2014-08-19 Yao Qi <yao@codesourcery.com>
898
899 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
900 types.
901
902 2014-08-19 Alan Modra <amodra@gmail.com>
903
904 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
905 * config.in: Regenerate.
906 * configure: Regenerate.
907
908 2014-08-19 Tom Tromey <tromey@redhat.com>
909 Gary Benson <gbenson@redhat.com>
910
911 * common/common-debug.h: New file.
912 * common/common-debug.c: Likewise.
913 * debug.c: Likewise.
914 * Makefile.in (SFILES): Add common/common-debug.c.
915 (HFILES_NO_SRCDIR): Add common/common-debug.h.
916 (COMMON_OBS): Add common-debug.o and debug.o.
917 (common-debug.o): New rule.
918 * common/common-defs.h: Include common-debug.h.
919 * common/agent.c (debug_agent_printf): New function.
920 (DEBUG_AGENT): Redefine.
921 * nat/i386-dregs.c (debug_printf): Undefine.
922
923 2014-08-19 Gary Benson <gbenson@redhat.com>
924
925 * common/common-defs.h: Include print-utils.h.
926 * utils.h: Do not include print-utils.h.
927
928 2014-08-19 Tom Tromey <tromey@redhat.com>
929 Gary Benson <gbenson@redhat.com>
930
931 * common/common-types.h: New file.
932 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
933 * common/common-defs.h: Include common-types.h.
934 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
935 (ULONGEST): Remove.
936
937 2014-08-19 Tom Tromey <tromey@redhat.com>
938 Gary Benson <gbenson@redhat.com>
939
940 * common/errors.h: New file.
941 * common/errors.c: Likewise.
942 * Makefile.in (SFILES): Add common/errors.c.
943 (HFILES_NO_SRCDIR): Add common/errors.h.
944 (COMMON_OBS): Add errors.o.
945 (errors.o): New rule.
946 * common/common-defs.h: Include errors.h.
947 * utils.h (perror_with_name, error, verror, warning, vwarning):
948 Don't declare.
949 * common/common-utils.h: (malloc_failure, internal_error):
950 Likewise.
951
952 2014-08-19 Gary Benson <gbenson@redhat.com>
953
954 * utils.c (internal_vproblem): Always print the message.
955
956 2014-08-18 Doug Evans <dje@google.com>
957
958 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
959
960 2014-08-18 Joel Brobecker <brobecker@adacore.com>
961
962 * ada-typeprint.c (type_is_full_subrange_of_target_type):
963 Return 0 if TYPE is dynamic.
964 (print_range): Add handling of dynamic ranges.
965
966 2014-08-18 Keven Boell <keven.boell@intel.com>
967 Joel Brobecker <brobecker@adacore.com>
968
969 * gdbtypes.h (struct main_type): Add field "data_location".
970 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
971 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
972 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
973 a dynamic data location.
974 (resolve_dynamic_type): Add DW_AT_data_location handling.
975 (copy_recursive, copy_type): Copy the data_location information
976 when present.
977 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
978 * value.c (value_from_contents_and_address): Add
979 DW_AT_data_location handling.
980
981 2014-08-18 Keven Boell <keven.boell@intel.com>
982 Joel Brobecker <brobecker@adacore.com>
983
984 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
985 field "get_object_address".
986 * dwarf2expr.c (execute_stack_op): Add handling for
987 DW_OP_push_object_address.
988 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
989 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
990 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
991 (dwarf_expr_get_obj_addr): New function.
992 (dwarf_expr_ctx_funcs): Add get_object_address field.
993 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
994 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
995 (dwarf2_evaluate_property): Add parameter "address". Use it.
996 (needs_get_obj_addr): New function.
997 (needs_frame_ctx_funcs): Add get_object_address field.
998 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
999 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1000 (resolve_dynamic_array): Likewise.
1001
1002 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1003
1004 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1005 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1006 fixed value for records and unions for which some GNAT encodings
1007 are present.
1008
1009 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1010
1011 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1012 rewrite to avoid "else if" and "else" constructs. Should be
1013 a no-op in practice.
1014
1015 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1016
1017 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1018 of lexical block.
1019
1020 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1021
1022 PR c++/17132
1023 * eval.c: Update all calls to find_overload_match.
1024 * valarith.c: Likewise.
1025 (value_user_defined_cpp_op, value_user_defined_op): New
1026 argument NOSIDE. Update all callers.
1027 * valops.c (find_overload_match): New argument NOSIDE.
1028 * value.h (find_overload_match): Update signature.
1029
1030 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1031
1032 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1033 'items' methods instead of 'iteritems' method on dictionaries.
1034
1035 2014-08-15 Doug Evans <dje@google.com>
1036
1037 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1038 closer to use.
1039
1040 2014-08-15 Doug Evans <dje@google.com>
1041
1042 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1043
1044 2014-08-15 Doug Evans <dje@google.com>
1045
1046 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1047
1048 2014-08-15 Doug Evans <dje@google.com>
1049
1050 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1051 unused.
1052
1053 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1054
1055 * dcache.h: Include target.h, to avoid compile time warnings.
1056
1057 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1058
1059 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1060 frame_info" partial declaration.
1061 * gdbarch.h: Regenerate.
1062
1063 2014-08-15 Yao Qi <yao@codesourcery.com>
1064
1065 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1066 Add parameter 'decode_for_pst_p'. Callers update.
1067
1068 2014-08-13 Yao Qi <yao@codesourcery.com>
1069
1070 PR build/17104
1071 * configure.ac: Use local variable 'pos'.
1072 * configure: Regenerated.
1073
1074 2014-08-11 Doug Evans <dje@google.com>
1075
1076 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1077 message, it is redundant with "Reading symbols from ..." message.
1078
1079 2014-08-10 Doug Evans <xdje42@gmail.com>
1080
1081 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1082
1083 2014-08-09 Yao Qi <yao@codesourcery.com>
1084
1085 PR remote/9053
1086 * remote.c (remote_xfer_partial): Remove dead code.
1087
1088 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1089
1090 * ia64-linux-tdep.c: Include "regset.h".
1091 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1092 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1093 (ia64_linux_supply_fpregset): New function.
1094 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1095 (ia64_linux_regset_from_core_section): New function.
1096 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1097 method.
1098
1099 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1100
1101 * m68klinux-tdep.c: Include "regset.h".
1102 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1103 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1104 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1105 (m68k_linux_regset_from_core_section): New function.
1106 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1107 method.
1108
1109 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1110
1111 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1112 function. Move logic to...
1113 (tilegx_linux_regmap): ... this new register map.
1114 (tilegx_linux_regset): Refer to register map, replace supply
1115 method by regcache_supply_regset, and add collect method.
1116 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1117 TILEGX_FIRST_EASY_REGNUM.
1118
1119 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1120
1121 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1122 that calls regcache_supply_regset and handles the EPC register
1123 separately. Move main logic to...
1124 (score7_linux_gregmap): ... this new register map.
1125 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1126 (score7_linux_gregset): Refer to register map. Add collect method.
1127 (score7_linux_regset_from_core_section): Replace
1128 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1129 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1130 (struct regset): Delete unused forward declaraction.
1131 (struct pt_regs): Delete structure definition.
1132 (elf_gregset_t): Delete typedef.
1133
1134 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1135
1136 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1137 (nios2_core_regset): Add collect method.
1138
1139 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1140
1141 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1142 platform-independent and don't write to read-only input buffer.
1143 (m32r_linux_collect_gregset): New function.
1144 (m32r_linux_gregset): Add collect method.
1145
1146 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1147
1148 * hppa-linux-tdep.c (greg_map): Rename to...
1149 (hppa_linux_gregmap): ... this. Also convert to
1150 regcache_map_entry format.
1151 (hppa_linux_supply_regset): Delete function.
1152 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1153 (hppa_linux_fpregmap): ... this new register map.
1154 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1155 register map, replace supply method by regcache_supply_regset, and
1156 add collect method regcache_collect_regset.
1157
1158 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1159
1160 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1161 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1162 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1163 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1164 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1165 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1166 (frv_linux_supply_gregset): Replace main logic by call to
1167 regcache_supply_regset, but keep clearing gr32-gr63.
1168 (frv_linux_supply_fpregset): Delete function.
1169 (frv_linux_gregset): Refer to appropriate register map and add
1170 regcache_collect_regset as the collect method.
1171 (frv_linux_fpregset): Likewise. Also exchange the supply method
1172 by regcache_supply_regset.
1173
1174 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1175
1176 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1177 by call to alpha_supply_int_regs.
1178 (alpha_linux_collect_gregset): New function.
1179 (alpha_linux_supply_fpregset): Replace logic by call to
1180 alpha_supply_fp_regs.
1181 (alpha_linux_collect_fpregset): New function.
1182 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1183
1184 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1185
1186 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1187 by call to regcache_collect_regset.
1188 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1189 instead of aarch64_linux_supply_gregset/_fpregset.
1190 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1191 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1192 header file instead.
1193 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1194 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1195 functions. Move logic to ...
1196 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1197 register maps.
1198 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1199 refer to new register maps, replace *_regset_from_core by
1200 regcache_supply_regset, and also use regcache_collect_regset.
1201 * aarch64-linux-tdep.h: Include "regset.h".
1202 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1203 Delete prototypes.
1204 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1205 macros, moved from C source file.
1206 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1207 variable declarations.
1208
1209 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1210
1211 * s390-linux-nat.c: Include "regset.h".
1212 (regmap_gregset): Delete macro.
1213 (s390_64_regmap_gregset): New register map for
1214 regcache_supply/_collect_regset.
1215 (s390_64_gregset): New regset.
1216 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1217 (regmap_fpregset): Delete macro.
1218 (s390_native_supply, s390_native_collect): Delete functions.
1219 (supply_gregset, fill_gregset): Replace s390-specific regmap
1220 handling by a call to regcache_supply/_collect_regset.
1221 (supply_fpregset, fill_fpregset): Call regcache_supply/
1222 _collect_regset instead of s390_native_supply/_collect.
1223 (fetch_regset, store_regset): Likewise. Also change the last
1224 parameter to a regset instead of a regmap.
1225 (s390_linux_fetch_inferior_registers)
1226 (390_linux_store_inferior_registers): Adjust last parameter in
1227 calls to fetch_regset and store_regset.
1228 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1229 (s390_gregmap): ... this. Also make static const and convert to
1230 regcache_map_entry format.
1231 (s390x_regmap_gregset): Delete.
1232 (s390_regmap_fpregset): Rename to...
1233 (s390_fpregmap): ... this. Make static const and convert to
1234 regcache_map_entry format.
1235 (s390_regmap_upper, s390_regmap_last_break)
1236 (s390x_regmap_last_break, s390_regmap_system_call)
1237 (s390_regmap_tdb): Likewise.
1238 (s390_supply_regset, s390_collect_regset): Remove functions.
1239 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1240 s390_supply_regset.
1241 (s390_gregset, s390_fpregset, s390_upper_regset)
1242 (s390_last_break_regset, s390x_last_break_regset)
1243 (s390_system_call_regset, s390_tdb_regset): Make global and
1244 replace s390_supply/_collect_regset by regcache_supply/
1245 _collect_regset.
1246 (s390x_gregset): Delete.
1247 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1248 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1249 (s390_regmap_fpregset, s390_regmap_last_break)
1250 (s390x_regmap_last_break, s390_regmap_system_call)
1251 (s390_regmap_tdb): Delete global variable declarations.
1252 (s390_gregset, s390_fpregset, s390_last_break_regset)
1253 (s390x_last_break_regset, s390_system_call_regset)
1254 (s390_tdb_regset): New global variable declarations.
1255
1256 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1257
1258 * regcache.c: Include "regset.h".
1259 (regcache_transfer_regset): New local function.
1260 (regcache_supply_regset, regcache_collect_regset): New functions.
1261 * regcache.h (struct regcache_map_entry): New structure.
1262 (REGCACHE_MAP_SKIP): New enum value.
1263 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1264
1265 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1266
1267 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1268 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1269 (ppc_linux_collect_gregset ): Likewise.
1270 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1271 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1272 (ppc_collect_vrregset): Likewise.
1273 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1274 Likewise.
1275
1276 2014-08-07 Yao Qi <yao@codesourcery.com>
1277
1278 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1279 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1280 * remote.c (remote_read_bytes): Likewise.
1281
1282 2014-08-07 Yao Qi <yao@codesourcery.com>
1283
1284 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1285
1286 2014-08-07 Yao Qi <yao@codesourcery.com>
1287
1288 PR remote/17230
1289 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1290 TARGET_XFER_OK instead of 0.
1291
1292 2014-08-07 Gary Benson <gbenson@redhat.com>
1293
1294 * common/common-defs.h: Include errno.h.
1295 * defs.h: Do not include errno.h.
1296 * ada-typeprint.c: Likewise.
1297 * c-typeprint.c: Likewise.
1298 * core-regset.c: Likewise.
1299 * corefile.c: Likewise.
1300 * corelow.c: Likewise.
1301 * event-loop.c: Likewise.
1302 * f-typeprint.c: Likewise.
1303 * gnu-nat.c: Likewise.
1304 * go32-nat.c: Likewise.
1305 * i386gnu-nat.c: Likewise.
1306 * m2-typeprint.c: Likewise.
1307 * nat/linux-btrace.c: Likewise.
1308 * p-typeprint.c: Likewise.
1309 * procfs.c: Likewise.
1310 * remote-sim.c: Likewise.
1311 * rs6000-nat.c: Likewise.
1312 * target.c: Likewise.
1313 * typeprint.c: Likewise.
1314 * ui-file.c: Likewise.
1315 * valops.c: Likewise.
1316 * valprint.c: Likewise.
1317
1318 2014-08-07 Gary Benson <gbenson@redhat.com>
1319
1320 * common/common-defs.h: Include string.h.
1321 * aarch64-tdep.c: Do not include string.h.
1322 * ada-exp.y: Likewise.
1323 * ada-lang.c: Likewise.
1324 * ada-lex.l: Likewise.
1325 * ada-typeprint.c: Likewise.
1326 * ada-valprint.c: Likewise.
1327 * aix-thread.c: Likewise.
1328 * alpha-linux-tdep.c: Likewise.
1329 * alpha-mdebug-tdep.c: Likewise.
1330 * alpha-nat.c: Likewise.
1331 * alpha-osf1-tdep.c: Likewise.
1332 * alpha-tdep.c: Likewise.
1333 * alphanbsd-tdep.c: Likewise.
1334 * amd64-dicos-tdep.c: Likewise.
1335 * amd64-linux-tdep.c: Likewise.
1336 * amd64-nat.c: Likewise.
1337 * amd64-sol2-tdep.c: Likewise.
1338 * amd64fbsd-tdep.c: Likewise.
1339 * amd64obsd-tdep.c: Likewise.
1340 * arch-utils.c: Likewise.
1341 * arm-linux-nat.c: Likewise.
1342 * arm-linux-tdep.c: Likewise.
1343 * arm-tdep.c: Likewise.
1344 * arm-wince-tdep.c: Likewise.
1345 * armbsd-tdep.c: Likewise.
1346 * armnbsd-nat.c: Likewise.
1347 * armnbsd-tdep.c: Likewise.
1348 * armobsd-tdep.c: Likewise.
1349 * avr-tdep.c: Likewise.
1350 * ax-gdb.c: Likewise.
1351 * ax-general.c: Likewise.
1352 * bcache.c: Likewise.
1353 * bfin-tdep.c: Likewise.
1354 * breakpoint.c: Likewise.
1355 * build-id.c: Likewise.
1356 * buildsym.c: Likewise.
1357 * c-exp.y: Likewise.
1358 * c-lang.c: Likewise.
1359 * c-typeprint.c: Likewise.
1360 * c-valprint.c: Likewise.
1361 * charset.c: Likewise.
1362 * cli-out.c: Likewise.
1363 * cli/cli-cmds.c: Likewise.
1364 * cli/cli-decode.c: Likewise.
1365 * cli/cli-dump.c: Likewise.
1366 * cli/cli-interp.c: Likewise.
1367 * cli/cli-logging.c: Likewise.
1368 * cli/cli-script.c: Likewise.
1369 * cli/cli-setshow.c: Likewise.
1370 * cli/cli-utils.c: Likewise.
1371 * coffread.c: Likewise.
1372 * common/agent.c: Likewise.
1373 * common/buffer.c: Likewise.
1374 * common/buffer.h: Likewise.
1375 * common/common-utils.c: Likewise.
1376 * common/filestuff.c: Likewise.
1377 * common/filestuff.c: Likewise.
1378 * common/format.c: Likewise.
1379 * common/print-utils.c: Likewise.
1380 * common/rsp-low.c: Likewise.
1381 * common/signals.c: Likewise.
1382 * common/vec.h: Likewise.
1383 * common/xml-utils.c: Likewise.
1384 * core-regset.c: Likewise.
1385 * corefile.c: Likewise.
1386 * corelow.c: Likewise.
1387 * cp-abi.c: Likewise.
1388 * cp-name-parser.y: Likewise.
1389 * cp-support.c: Likewise.
1390 * cp-valprint.c: Likewise.
1391 * cris-tdep.c: Likewise.
1392 * d-exp.y: Likewise.
1393 * darwin-nat.c: Likewise.
1394 * dbxread.c: Likewise.
1395 * dcache.c: Likewise.
1396 * demangle.c: Likewise.
1397 * dicos-tdep.c: Likewise.
1398 * disasm.c: Likewise.
1399 * doublest.c: Likewise.
1400 * dsrec.c: Likewise.
1401 * dummy-frame.c: Likewise.
1402 * dwarf2-frame.c: Likewise.
1403 * dwarf2loc.c: Likewise.
1404 * dwarf2read.c: Likewise.
1405 * elfread.c: Likewise.
1406 * environ.c: Likewise.
1407 * eval.c: Likewise.
1408 * event-loop.c: Likewise.
1409 * exceptions.c: Likewise.
1410 * exec.c: Likewise.
1411 * expprint.c: Likewise.
1412 * f-exp.y: Likewise.
1413 * f-lang.c: Likewise.
1414 * f-typeprint.c: Likewise.
1415 * f-valprint.c: Likewise.
1416 * fbsd-nat.c: Likewise.
1417 * findcmd.c: Likewise.
1418 * findvar.c: Likewise.
1419 * fork-child.c: Likewise.
1420 * frame.c: Likewise.
1421 * frv-linux-tdep.c: Likewise.
1422 * frv-tdep.c: Likewise.
1423 * gdb.c: Likewise.
1424 * gdb_bfd.c: Likewise.
1425 * gdbarch.c: Likewise.
1426 * gdbarch.sh: Likewise.
1427 * gdbtypes.c: Likewise.
1428 * gnu-nat.c: Likewise.
1429 * gnu-v2-abi.c: Likewise.
1430 * gnu-v3-abi.c: Likewise.
1431 * go-exp.y: Likewise.
1432 * go-lang.c: Likewise.
1433 * go32-nat.c: Likewise.
1434 * guile/guile.c: Likewise.
1435 * guile/scm-auto-load.c: Likewise.
1436 * hppa-hpux-tdep.c: Likewise.
1437 * hppa-linux-nat.c: Likewise.
1438 * hppanbsd-tdep.c: Likewise.
1439 * hppaobsd-tdep.c: Likewise.
1440 * i386-cygwin-tdep.c: Likewise.
1441 * i386-dicos-tdep.c: Likewise.
1442 * i386-linux-tdep.c: Likewise.
1443 * i386-nto-tdep.c: Likewise.
1444 * i386-sol2-tdep.c: Likewise.
1445 * i386-tdep.c: Likewise.
1446 * i386bsd-tdep.c: Likewise.
1447 * i386gnu-nat.c: Likewise.
1448 * i386nbsd-tdep.c: Likewise.
1449 * i386obsd-tdep.c: Likewise.
1450 * i387-tdep.c: Likewise.
1451 * ia64-libunwind-tdep.c: Likewise.
1452 * ia64-linux-nat.c: Likewise.
1453 * inf-child.c: Likewise.
1454 * inf-ptrace.c: Likewise.
1455 * inf-ttrace.c: Likewise.
1456 * infcall.c: Likewise.
1457 * infcmd.c: Likewise.
1458 * inflow.c: Likewise.
1459 * infrun.c: Likewise.
1460 * interps.c: Likewise.
1461 * iq2000-tdep.c: Likewise.
1462 * irix5-nat.c: Likewise.
1463 * jv-exp.y: Likewise.
1464 * jv-lang.c: Likewise.
1465 * jv-typeprint.c: Likewise.
1466 * jv-valprint.c: Likewise.
1467 * language.c: Likewise.
1468 * linux-fork.c: Likewise.
1469 * linux-nat.c: Likewise.
1470 * lm32-tdep.c: Likewise.
1471 * m2-exp.y: Likewise.
1472 * m2-typeprint.c: Likewise.
1473 * m32c-tdep.c: Likewise.
1474 * m32r-linux-nat.c: Likewise.
1475 * m32r-linux-tdep.c: Likewise.
1476 * m32r-rom.c: Likewise.
1477 * m32r-tdep.c: Likewise.
1478 * m68hc11-tdep.c: Likewise.
1479 * m68k-tdep.c: Likewise.
1480 * m68kbsd-tdep.c: Likewise.
1481 * m68klinux-nat.c: Likewise.
1482 * m68klinux-tdep.c: Likewise.
1483 * m88k-tdep.c: Likewise.
1484 * machoread.c: Likewise.
1485 * macrocmd.c: Likewise.
1486 * main.c: Likewise.
1487 * mdebugread.c: Likewise.
1488 * mem-break.c: Likewise.
1489 * memattr.c: Likewise.
1490 * memory-map.c: Likewise.
1491 * mep-tdep.c: Likewise.
1492 * mi/mi-cmd-break.c: Likewise.
1493 * mi/mi-cmd-disas.c: Likewise.
1494 * mi/mi-cmd-env.c: Likewise.
1495 * mi/mi-cmd-stack.c: Likewise.
1496 * mi/mi-cmd-var.c: Likewise.
1497 * mi/mi-cmds.c: Likewise.
1498 * mi/mi-console.c: Likewise.
1499 * mi/mi-getopt.c: Likewise.
1500 * mi/mi-interp.c: Likewise.
1501 * mi/mi-main.c: Likewise.
1502 * mi/mi-parse.c: Likewise.
1503 * microblaze-rom.c: Likewise.
1504 * microblaze-tdep.c: Likewise.
1505 * mingw-hdep.c: Likewise.
1506 * minidebug.c: Likewise.
1507 * minsyms.c: Likewise.
1508 * mips-irix-tdep.c: Likewise.
1509 * mips-linux-tdep.c: Likewise.
1510 * mips-tdep.c: Likewise.
1511 * mips64obsd-tdep.c: Likewise.
1512 * mipsnbsd-tdep.c: Likewise.
1513 * mipsread.c: Likewise.
1514 * mn10300-linux-tdep.c: Likewise.
1515 * mn10300-tdep.c: Likewise.
1516 * monitor.c: Likewise.
1517 * moxie-tdep.c: Likewise.
1518 * mt-tdep.c: Likewise.
1519 * nat/linux-btrace.c: Likewise.
1520 * nat/linux-osdata.c: Likewise.
1521 * nat/linux-procfs.c: Likewise.
1522 * nat/linux-ptrace.c: Likewise.
1523 * nat/linux-waitpid.c: Likewise.
1524 * nbsd-tdep.c: Likewise.
1525 * nios2-linux-tdep.c: Likewise.
1526 * nto-procfs.c: Likewise.
1527 * nto-tdep.c: Likewise.
1528 * objc-lang.c: Likewise.
1529 * objfiles.c: Likewise.
1530 * opencl-lang.c: Likewise.
1531 * osabi.c: Likewise.
1532 * osdata.c: Likewise.
1533 * p-exp.y: Likewise.
1534 * p-lang.c: Likewise.
1535 * p-typeprint.c: Likewise.
1536 * parse.c: Likewise.
1537 * posix-hdep.c: Likewise.
1538 * ppc-linux-nat.c: Likewise.
1539 * ppc-sysv-tdep.c: Likewise.
1540 * ppcfbsd-tdep.c: Likewise.
1541 * ppcnbsd-tdep.c: Likewise.
1542 * ppcobsd-tdep.c: Likewise.
1543 * printcmd.c: Likewise.
1544 * procfs.c: Likewise.
1545 * prologue-value.c: Likewise.
1546 * python/py-auto-load.c: Likewise.
1547 * python/py-gdb-readline.c: Likewise.
1548 * ravenscar-thread.c: Likewise.
1549 * regcache.c: Likewise.
1550 * registry.c: Likewise.
1551 * remote-fileio.c: Likewise.
1552 * remote-m32r-sdi.c: Likewise.
1553 * remote-mips.c: Likewise.
1554 * remote-notif.c: Likewise.
1555 * remote-sim.c: Likewise.
1556 * remote.c: Likewise.
1557 * reverse.c: Likewise.
1558 * rs6000-aix-tdep.c: Likewise.
1559 * ser-base.c: Likewise.
1560 * ser-go32.c: Likewise.
1561 * ser-mingw.c: Likewise.
1562 * ser-pipe.c: Likewise.
1563 * ser-tcp.c: Likewise.
1564 * ser-unix.c: Likewise.
1565 * serial.c: Likewise.
1566 * sh-tdep.c: Likewise.
1567 * sh64-tdep.c: Likewise.
1568 * shnbsd-tdep.c: Likewise.
1569 * skip.c: Likewise.
1570 * sol-thread.c: Likewise.
1571 * solib-dsbt.c: Likewise.
1572 * solib-frv.c: Likewise.
1573 * solib-osf.c: Likewise.
1574 * solib-som.c: Likewise.
1575 * solib-spu.c: Likewise.
1576 * solib-target.c: Likewise.
1577 * solib.c: Likewise.
1578 * somread.c: Likewise.
1579 * source.c: Likewise.
1580 * sparc-nat.c: Likewise.
1581 * sparc-sol2-tdep.c: Likewise.
1582 * sparc-tdep.c: Likewise.
1583 * sparc64-tdep.c: Likewise.
1584 * sparc64fbsd-tdep.c: Likewise.
1585 * sparc64nbsd-tdep.c: Likewise.
1586 * sparcnbsd-tdep.c: Likewise.
1587 * spu-linux-nat.c: Likewise.
1588 * spu-multiarch.c: Likewise.
1589 * spu-tdep.c: Likewise.
1590 * stabsread.c: Likewise.
1591 * stack.c: Likewise.
1592 * std-regs.c: Likewise.
1593 * symfile.c: Likewise.
1594 * symmisc.c: Likewise.
1595 * symtab.c: Likewise.
1596 * target.c: Likewise.
1597 * thread.c: Likewise.
1598 * tilegx-linux-nat.c: Likewise.
1599 * tilegx-tdep.c: Likewise.
1600 * top.c: Likewise.
1601 * tracepoint.c: Likewise.
1602 * tui/tui-command.c: Likewise.
1603 * tui/tui-data.c: Likewise.
1604 * tui/tui-disasm.c: Likewise.
1605 * tui/tui-file.c: Likewise.
1606 * tui/tui-layout.c: Likewise.
1607 * tui/tui-out.c: Likewise.
1608 * tui/tui-regs.c: Likewise.
1609 * tui/tui-source.c: Likewise.
1610 * tui/tui-stack.c: Likewise.
1611 * tui/tui-win.c: Likewise.
1612 * tui/tui-windata.c: Likewise.
1613 * tui/tui-winsource.c: Likewise.
1614 * typeprint.c: Likewise.
1615 * ui-file.c: Likewise.
1616 * ui-out.c: Likewise.
1617 * user-regs.c: Likewise.
1618 * utils.c: Likewise.
1619 * v850-tdep.c: Likewise.
1620 * valarith.c: Likewise.
1621 * valops.c: Likewise.
1622 * valprint.c: Likewise.
1623 * value.c: Likewise.
1624 * varobj.c: Likewise.
1625 * vax-tdep.c: Likewise.
1626 * vaxnbsd-tdep.c: Likewise.
1627 * vaxobsd-tdep.c: Likewise.
1628 * windows-nat.c: Likewise.
1629 * xcoffread.c: Likewise.
1630 * xml-support.c: Likewise.
1631 * xstormy16-tdep.c: Likewise.
1632 * xtensa-linux-nat.c: Likewise.
1633
1634 2014-08-07 Gary Benson <gbenson@redhat.com>
1635
1636 * common/common-defs.h: Include gdb_assert.h.
1637 * aarch64-tdep.c: Do not include gdb_assert.h.
1638 * addrmap.c: Likewise.
1639 * aix-thread.c: Likewise.
1640 * alpha-linux-tdep.c: Likewise.
1641 * alpha-mdebug-tdep.c: Likewise.
1642 * alphanbsd-tdep.c: Likewise.
1643 * amd64-nat.c: Likewise.
1644 * amd64-tdep.c: Likewise.
1645 * amd64bsd-nat.c: Likewise.
1646 * amd64fbsd-nat.c: Likewise.
1647 * amd64fbsd-tdep.c: Likewise.
1648 * amd64nbsd-nat.c: Likewise.
1649 * amd64nbsd-tdep.c: Likewise.
1650 * amd64obsd-nat.c: Likewise.
1651 * amd64obsd-tdep.c: Likewise.
1652 * arch-utils.c: Likewise.
1653 * arm-tdep.c: Likewise.
1654 * armbsd-tdep.c: Likewise.
1655 * auxv.c: Likewise.
1656 * bcache.c: Likewise.
1657 * bfin-tdep.c: Likewise.
1658 * blockframe.c: Likewise.
1659 * breakpoint.c: Likewise.
1660 * bsd-kvm.c: Likewise.
1661 * bsd-uthread.c: Likewise.
1662 * buildsym.c: Likewise.
1663 * c-exp.y: Likewise.
1664 * c-lang.c: Likewise.
1665 * charset.c: Likewise.
1666 * cleanups.c: Likewise.
1667 * cli-out.c: Likewise.
1668 * cli/cli-decode.c: Likewise.
1669 * cli/cli-dump.c: Likewise.
1670 * cli/cli-logging.c: Likewise.
1671 * cli/cli-script.c: Likewise.
1672 * cli/cli-utils.c: Likewise.
1673 * coffread.c: Likewise.
1674 * common/common-utils.c: Likewise.
1675 * common/queue.h: Likewise.
1676 * common/signals.c: Likewise.
1677 * common/vec.h: Likewise.
1678 * complaints.c: Likewise.
1679 * completer.c: Likewise.
1680 * corelow.c: Likewise.
1681 * cp-abi.c: Likewise.
1682 * cp-name-parser.y: Likewise.
1683 * cp-namespace.c: Likewise.
1684 * cp-support.c: Likewise.
1685 * cris-tdep.c: Likewise.
1686 * dbxread.c: Likewise.
1687 * dictionary.c: Likewise.
1688 * doublest.c: Likewise.
1689 * dsrec.c: Likewise.
1690 * dummy-frame.c: Likewise.
1691 * dwarf2-frame-tailcall.c: Likewise.
1692 * dwarf2-frame.c: Likewise.
1693 * dwarf2expr.c: Likewise.
1694 * dwarf2loc.c: Likewise.
1695 * dwarf2read.c: Likewise.
1696 * eval.c: Likewise.
1697 * event-loop.c: Likewise.
1698 * exceptions.c: Likewise.
1699 * expprint.c: Likewise.
1700 * f-valprint.c: Likewise.
1701 * fbsd-nat.c: Likewise.
1702 * findvar.c: Likewise.
1703 * frame-unwind.c: Likewise.
1704 * frame.c: Likewise.
1705 * frv-tdep.c: Likewise.
1706 * gcore.c: Likewise.
1707 * gdb-dlfcn.c: Likewise.
1708 * gdb_bfd.c: Likewise.
1709 * gdbarch.c: Likewise.
1710 * gdbarch.sh: Likewise.
1711 * gdbtypes.c: Likewise.
1712 * gnu-nat.c: Likewise.
1713 * gnu-v3-abi.c: Likewise.
1714 * go-lang.c: Likewise.
1715 * guile/scm-exception.c: Likewise.
1716 * guile/scm-gsmob.c: Likewise.
1717 * guile/scm-lazy-string.c: Likewise.
1718 * guile/scm-math.c: Likewise.
1719 * guile/scm-pretty-print.c: Likewise.
1720 * guile/scm-safe-call.c: Likewise.
1721 * guile/scm-utils.c: Likewise.
1722 * guile/scm-value.c: Likewise.
1723 * h8300-tdep.c: Likewise.
1724 * hppa-hpux-nat.c: Likewise.
1725 * hppa-tdep.c: Likewise.
1726 * hppanbsd-tdep.c: Likewise.
1727 * hppaobsd-tdep.c: Likewise.
1728 * i386-darwin-nat.c: Likewise.
1729 * i386-darwin-tdep.c: Likewise.
1730 * i386-nto-tdep.c: Likewise.
1731 * i386-tdep.c: Likewise.
1732 * i386bsd-nat.c: Likewise.
1733 * i386fbsd-tdep.c: Likewise.
1734 * i386gnu-nat.c: Likewise.
1735 * i386nbsd-tdep.c: Likewise.
1736 * i386obsd-tdep.c: Likewise.
1737 * i387-tdep.c: Likewise.
1738 * ia64-libunwind-tdep.c: Likewise.
1739 * ia64-tdep.c: Likewise.
1740 * inf-ptrace.c: Likewise.
1741 * inf-ttrace.c: Likewise.
1742 * infcall.c: Likewise.
1743 * infcmd.c: Likewise.
1744 * infrun.c: Likewise.
1745 * inline-frame.c: Likewise.
1746 * interps.c: Likewise.
1747 * jv-lang.c: Likewise.
1748 * jv-typeprint.c: Likewise.
1749 * linux-fork.c: Likewise.
1750 * linux-nat.c: Likewise.
1751 * linux-thread-db.c: Likewise.
1752 * m32c-tdep.c: Likewise.
1753 * m32r-linux-nat.c: Likewise.
1754 * m32r-tdep.c: Likewise.
1755 * m68k-tdep.c: Likewise.
1756 * m68kbsd-nat.c: Likewise.
1757 * m68kbsd-tdep.c: Likewise.
1758 * m88k-tdep.c: Likewise.
1759 * machoread.c: Likewise.
1760 * macroexp.c: Likewise.
1761 * macrotab.c: Likewise.
1762 * maint.c: Likewise.
1763 * mdebugread.c: Likewise.
1764 * memory-map.c: Likewise.
1765 * mep-tdep.c: Likewise.
1766 * mi/mi-common.c: Likewise.
1767 * microblaze-tdep.c: Likewise.
1768 * mingw-hdep.c: Likewise.
1769 * mips-linux-nat.c: Likewise.
1770 * mips-linux-tdep.c: Likewise.
1771 * mips-tdep.c: Likewise.
1772 * mips64obsd-tdep.c: Likewise.
1773 * mipsnbsd-tdep.c: Likewise.
1774 * mn10300-linux-tdep.c: Likewise.
1775 * mn10300-tdep.c: Likewise.
1776 * moxie-tdep.c: Likewise.
1777 * mt-tdep.c: Likewise.
1778 * nat/linux-btrace.c: Likewise.
1779 * nat/linux-osdata.c: Likewise.
1780 * nat/linux-ptrace.c: Likewise.
1781 * nat/mips-linux-watch.c: Likewise.
1782 * nios2-linux-tdep.c: Likewise.
1783 * nios2-tdep.c: Likewise.
1784 * objc-lang.c: Likewise.
1785 * objfiles.c: Likewise.
1786 * obsd-nat.c: Likewise.
1787 * opencl-lang.c: Likewise.
1788 * osabi.c: Likewise.
1789 * parse.c: Likewise.
1790 * ppc-linux-nat.c: Likewise.
1791 * ppc-sysv-tdep.c: Likewise.
1792 * ppcfbsd-nat.c: Likewise.
1793 * ppcfbsd-tdep.c: Likewise.
1794 * ppcnbsd-nat.c: Likewise.
1795 * ppcnbsd-tdep.c: Likewise.
1796 * ppcobsd-nat.c: Likewise.
1797 * ppcobsd-tdep.c: Likewise.
1798 * printcmd.c: Likewise.
1799 * procfs.c: Likewise.
1800 * prologue-value.c: Likewise.
1801 * psymtab.c: Likewise.
1802 * python/py-lazy-string.c: Likewise.
1803 * python/py-value.c: Likewise.
1804 * regcache.c: Likewise.
1805 * reggroups.c: Likewise.
1806 * registry.c: Likewise.
1807 * remote-sim.c: Likewise.
1808 * remote.c: Likewise.
1809 * rs6000-aix-tdep.c: Likewise.
1810 * rs6000-tdep.c: Likewise.
1811 * s390-linux-tdep.c: Likewise.
1812 * score-tdep.c: Likewise.
1813 * ser-base.c: Likewise.
1814 * ser-mingw.c: Likewise.
1815 * sh-tdep.c: Likewise.
1816 * sh64-tdep.c: Likewise.
1817 * solib-darwin.c: Likewise.
1818 * solib-spu.c: Likewise.
1819 * solib-svr4.c: Likewise.
1820 * source.c: Likewise.
1821 * sparc-nat.c: Likewise.
1822 * sparc-sol2-tdep.c: Likewise.
1823 * sparc-tdep.c: Likewise.
1824 * sparc64-sol2-tdep.c: Likewise.
1825 * sparc64-tdep.c: Likewise.
1826 * sparc64fbsd-tdep.c: Likewise.
1827 * sparc64nbsd-tdep.c: Likewise.
1828 * sparc64obsd-tdep.c: Likewise.
1829 * sparcnbsd-tdep.c: Likewise.
1830 * sparcobsd-tdep.c: Likewise.
1831 * spu-multiarch.c: Likewise.
1832 * spu-tdep.c: Likewise.
1833 * stabsread.c: Likewise.
1834 * stack.c: Likewise.
1835 * symfile.c: Likewise.
1836 * symtab.c: Likewise.
1837 * target-descriptions.c: Likewise.
1838 * target-memory.c: Likewise.
1839 * target.c: Likewise.
1840 * tic6x-linux-tdep.c: Likewise.
1841 * tic6x-tdep.c: Likewise.
1842 * tilegx-linux-nat.c: Likewise.
1843 * tilegx-tdep.c: Likewise.
1844 * top.c: Likewise.
1845 * tramp-frame.c: Likewise.
1846 * tui/tui-out.c: Likewise.
1847 * tui/tui-winsource.c: Likewise.
1848 * ui-out.c: Likewise.
1849 * user-regs.c: Likewise.
1850 * utils.c: Likewise.
1851 * v850-tdep.c: Likewise.
1852 * valops.c: Likewise.
1853 * value.c: Likewise.
1854 * varobj.c: Likewise.
1855 * vax-nat.c: Likewise.
1856 * xml-syscall.c: Likewise.
1857 * xml-tdesc.c: Likewise.
1858 * xstormy16-tdep.c: Likewise.
1859 * xtensa-linux-nat.c: Likewise.
1860 * xtensa-tdep.c: Likewise.
1861
1862 2014-08-07 Gary Benson <gbenson@redhat.com>
1863
1864 * common/common-defs.h: Include common-utils.h.
1865 * defs.h: Do not include common-utils.h.
1866 * common/gdb_assert.h: Likewise.
1867 * darwin-nat.h: Likewise.
1868 * nat/linux-btrace.c: Likewise.
1869 * target/waitstatus.h: Likewise.
1870
1871 2014-08-07 Gary Benson <gbenson@redhat.com>
1872
1873 * common/common-defs.h: Include ptid.h.
1874 * defs.h: Do not include ptid.h.
1875 * inferior.h: Likewise.
1876 * infrun.h: Likewise.
1877 * nat/linux-btrace.h: Likewise.
1878 * nat/linux-osdata.h: Likewise.
1879 * target/waitstatus.h: Likewise.
1880
1881 2014-08-07 Gary Benson <gbenson@redhat.com>
1882
1883 * common/common-defs.h: Include gdb_locale.h.
1884 * defs.h: Do not include gdb_locale.h.
1885
1886 2014-08-07 Gary Benson <gbenson@redhat.com>
1887
1888 * common/common-defs.h: Include gdb/signals.h.
1889 * defs.h: Do not include gdb/signals.h.
1890
1891 2014-08-07 Gary Benson <gbenson@redhat.com>
1892
1893 * common/common-defs.h: Include pathmax.h.
1894 * defs.h: Do not include pathmax.h.
1895
1896 2014-08-07 Gary Benson <gbenson@redhat.com>
1897
1898 * common/common-defs.h: Include libiberty.h.
1899 * defs.h: Do not include libiberty.h.
1900 * common/queue.h: Likewise.
1901 * cp-name-parser.y: Likewise.
1902 * mi/mi-cmd-catch.c: Likewise.
1903 * python/python.c: Likewise.
1904
1905 2014-08-07 Gary Benson <gbenson@redhat.com>
1906
1907 * common/common-defs.h: Include ansidecl.h.
1908 * defs.h: Do not include ansidecl.h.
1909 * common/buffer.h: Likewise.
1910 * common/common-utils.h: Likewise.
1911
1912 2014-08-07 Gary Benson <gbenson@redhat.com>
1913
1914 * common/common-defs.h: Include stddef.h.
1915 * defs.h: Do not include stddef.h.
1916 * common/common-utils.h: Likewise.
1917 * amd64fbsd-nat.c: Likewise.
1918 * bcache.c: Likewise.
1919 * charset.c: Likewise.
1920 * common/buffer.h: Likewise.
1921 * common/vec.h: Likewise.
1922 * i386bsd-nat.c: Likewise.
1923 * nat/linux-btrace.h: Likewise.
1924 * ppcfbsd-nat.c: Likewise.
1925 * ppcnbsd-tdep.h: Likewise.
1926 * ppcobsd-nat.c: Likewise.
1927 * ppcobsd-tdep.h: Likewise.
1928 * python/py-gdb-readline.c: Likewise.
1929
1930 2014-08-07 Gary Benson <gbenson@redhat.com>
1931
1932 * common/common-defs.h: Include stdarg.h.
1933 * defs.h: Do not include stdarg.h.
1934 * ada-lang.c: Likewise.
1935 * common/common-utils.h: Likewise.
1936 * guile/scm-string.c: Likewise.
1937 * guile/scm-utils.c: Likewise.
1938 * m32c-tdep.c: Likewise.
1939
1940 2014-08-07 Gary Benson <gbenson@redhat.com>
1941
1942 * common/common-defs.h: Include stdlib.h.
1943 * defs.h: Do not include stdlib.h.
1944 * addrmap.c: Likewise.
1945 * bcache.c: Likewise.
1946 * common/buffer.c: Likewise.
1947 * common/common-utils.c: Likewise.
1948 * cp-name-parser.y: Likewise.
1949 * go32-nat.c: Likewise.
1950 * mn10300-linux-tdep.c: Likewise.
1951 * nat/linux-osdata.c: Likewise.
1952 * tui/tui.c: Likewise.
1953 * windows-nat.c: Likewise.
1954
1955 2014-08-07 Gary Benson <gbenson@redhat.com>
1956
1957 * common/common-defs.h: Include stdio.h.
1958 * defs.h: Do not include stdio.h.
1959 * ada-lang.c: Likewise.
1960 * common/buffer.c: Likewise.
1961 * common/common-utils.c: Likewise.
1962 * cp-name-parser.y: Likewise.
1963 * gnu-nat.c: Likewise.
1964 * go32-nat.c: Likewise.
1965 * i386gnu-nat.c: Likewise.
1966 * proc-api.c: Likewise.
1967 * proc-events.c: Likewise.
1968 * proc-flags.c: Likewise.
1969 * proc-why.c: Likewise.
1970 * python/python-internal.h: Likewise.
1971 * target-memory.c: Likewise.
1972 * tui/tui-io.c: Likewise.
1973 * tui/tui.c: Likewise.
1974
1975 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1976
1977 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1978 (scan_dyntag_auxv): Same.
1979
1980 2014-08-06 Yao Qi <yao@codesourcery.com>
1981
1982 * amd64-linux-nat.c: Remove duplicated include
1983 "x86-linux-nat.h".
1984 * i386-linux-nat.c: Likewise.
1985
1986 2014-08-06 Yao Qi <yao@codesourcery.com>
1987
1988 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1989 operand" with "Special opcode" in comments.
1990
1991 2014-08-05 Gary Benson <gbenson@redhat.com>
1992
1993 * interps.c (initialize_interps): Remove prototype.
1994 (interpreter_initialized): Remove static global.
1995 (interp_add): Do not call initialize_interps.
1996 (initialize_interps): Remove function.
1997
1998 2014-08-05 Gary Benson <gbenson@redhat.com>
1999
2000 * utils.c (vwarning): Remove spurious va_end.
2001
2002 2014-08-05 Alan Modra <amodra@gmail.com>
2003
2004 * charset.c (convert_between_encodings): Cast result of obstack_base.
2005 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2006 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2007 (read_unwind_info): Use size_t for some locals.
2008 * jit.c (finalize_symtab): Likewise.
2009 * utils.c (hashtab_obstack_allocate): Likewise.
2010 * symmisc.c (print_objfile_statistics): Update format strings.
2011
2012 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2013
2014 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2015 (Changes in GDB 7.8): ... here.
2016
2017 2014-08-04 Tom Tromey <tromey@redhat.com>
2018
2019 * target.c (set_targetdebug): New function.
2020 (initialize_targets): Pass set_targetdebug when creating "set
2021 debug target".
2022
2023 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2024
2025 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2026 if detecting a variable-sized field that is not the last field.
2027 Fix struct type length computation.
2028
2029 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2030
2031 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2032 Add debug trace.
2033
2034 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2035
2036 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2037 Remove "+ 8" offset in computation of CHAIN_VMA.
2038
2039 2014-07-31 Doug Evans <dje@google.com>
2040
2041 * inflow.c (child_terminal_inferior): Add comment.
2042 (child_terminal_ours_for_output): Add comment.
2043 (child_terminal_ours): Add comment.
2044 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2045 (linux_nat_terminal_ours): Add comment.
2046
2047 2014-07-31 Gary Benson <gbenson@redhat.com>
2048
2049 * common/btrace-common.h: Do not include defs.h or server.h.
2050 * nat/mips-linux-watch.h: Likewise.
2051 * gdb-dlfcn.h: Do not include defs.h.
2052 * tracefile.h: Likewise.
2053
2054 2014-07-30 Roland McGrath <mcgrathr@google.com>
2055
2056 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2057
2058 2014-07-30 Tom Tromey <tromey@redhat.com>
2059
2060 * bsd-kvm.c (bsd_kvm_open): Constify.
2061 * corelow.c (core_open): Constify.
2062 * ctf.c (ctf_open): Constify.
2063 * dbug-rom.c (dbug_open): Constify.
2064 * exec.c (exec_open): Constify.
2065 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2066 * microblaze-rom.c (picobug_open): Constify.
2067 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2068 Constify.
2069 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2070 * record-btrace.c (record_btrace_open): Constify.
2071 * record-full.c (record_full_core_open_1, record_full_open_1)
2072 (record_full_open): Constify.
2073 * remote-m32r-sdi.c (m32r_open): Constify.
2074 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2075 (rockhopper_open, lsi_open): Constify.
2076 * remote-sim.c (gdbsim_open): Constify.
2077 * remote.c (remote_open, extended_remote_open, remote_open_1):
2078 Constify.
2079 * target.h (struct target_ops) <to_open>: Make "arg" const.
2080 * tracefile-tfile.c (tfile_open): Constify.
2081
2082 2014-07-30 Tom Tromey <tromey@redhat.com>
2083
2084 * breakpoint.c (map_breakpoint_numbers): Update.
2085 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2086 (get_number_const): New function.
2087 (get_number): Rewrite using get_number_const.
2088 (init_number_or_range): Make "string" const.
2089 (number_is_in_list): Make "list" const.
2090 * cli/cli-utils.h (get_number_const): Declare.
2091 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2092 (init_number_or_range, number_is_in_list): Update.
2093 * printcmd.c (map_display_numbers): Update.
2094 * value.c (value_from_history_ref): Constify.
2095 * value.h (value_from_history_ref): Update.
2096
2097 2014-07-30 Tom Tromey <tromey@redhat.com>
2098
2099 * corefile.c (hook_type, call_extra_exec_file_hooks)
2100 (specify_exec_file_hook): Constify.
2101 * exec.c (exec_file_attach): Make "filename" const.
2102 * gdbcore.h (deprecated_exec_file_display_hook)
2103 (specify_exec_file_hook, exec_file_attach): Constify.
2104 * main.c (captured_main): Use catch_command_errors_const.
2105
2106 2014-07-30 Tom Tromey <tromey@redhat.com>
2107
2108 * target.c (open_target): New function.
2109 (add_target_with_completer, add_deprecated_target_alias): Use
2110 set_cmd_sfunc, set_cmd_context.
2111 (debug_to_open): Remove.
2112 (setup_target_debug): Update.
2113
2114 2014-07-30 Yao Qi <yao@codesourcery.com>
2115
2116 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2117 comments.
2118 * parse.c (exp_iterate): Update comments.
2119
2120 2014-07-30 Gary Benson <gbenson@redhat.com>
2121
2122 * common/common-defs.h: New file.
2123 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2124 * defs.h: Include common-defs.h.
2125 Do not include config.h or build-gnulib/config.h.
2126
2127 2014-07-30 Gary Benson <gbenson@redhat.com>
2128
2129 * common/common-utils.h: Do not include config.h.
2130 * nat/linux-btrace.h: Likewise.
2131
2132 2014-07-30 Gary Benson <gbenson@redhat.com>
2133
2134 * btrace.c: Include defs.h.
2135 * common/ptid.c: Include defs.h or server.h as appropriate.
2136 * nat/mips-linux-watch.c: Likewise.
2137
2138 2014-07-29 Tom Tromey <tromey@redhat.com>
2139
2140 * target.c (target_is_pushed): Simplify.
2141
2142 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2143
2144 GDB 7.8 released.
2145
2146 2014-07-29 Yao Qi <yao@codesourcery.com>
2147
2148 PR gdb/17206
2149 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2150
2151 2014-07-28 Doug Evans <xdje42@gmail.com>
2152
2153 PR guile/17203
2154 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2155 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2156 parameters.
2157
2158 2014-07-28 Will Newton <will.newton@linaro.org>
2159
2160 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2161 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2162 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2163 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2164 (THUMB2_EABI_SYSCALL): Likewise.
2165 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2166 struct tramp_frame.
2167 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2168 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2169
2170 2014-07-27 Doug Evans <xdje42@gmail.com>
2171
2172 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2173
2174 2014-07-27 Doug Evans <xdje42@gmail.com>
2175
2176 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2177
2178 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2179 Doug Evans <xdje42@gmail.com>
2180
2181 PR guile/17146
2182 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2183 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2184 * configure.ac: Try to use guild to compile an scm file, if it fails
2185 then disable guile support.
2186 * configure: Regenerate.
2187 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2188 GUILE_FILE_LIST.
2189 (GUILE_COMPILED_FILES): New variable.
2190 (GUILE_FILES) Update.
2191 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2192 (stamp-guile): Compile scm files.
2193 * guile/guile.c (boot_guile_support): New function.
2194 (standard_throw_args_p): New function.
2195 (print_standard_throw_error, print_throw_error): New functions.
2196 (handle_boot_error): New function.
2197 (initialize_scheme_side): Rewrite to call boot_guile_support.
2198 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2199 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2200
2201 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2202 Doug Evans <xdje42@gmail.com>
2203
2204 PR guile/17146
2205 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2206 * guile/lib/gdb/support.scm: New file.
2207 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2208 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2209 All uses updated.
2210 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2211 All uses updated.
2212 (%assert-type): Ditto, and renamed to assert-type.
2213 (%exception-print-style): Delete.
2214
2215 2014-07-26 Doug Evans <xdje42@gmail.com>
2216
2217 PR build/17105
2218 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2219 * configure: Regenerate.
2220 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2221 PYTHON_FILES.
2222 (PYTHON_FILES): New variable.
2223 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2224 (GUILE_FILES): New variable.
2225 (stamp-python, install-python, uninstall-python): Handle empty
2226 file list.
2227 (stamp-guile, install-guile, uninstall-guile): Ditto.
2228
2229 2014-07-26 Doug Evans <xdje42@gmail.com>
2230
2231 PR guile/17177
2232 * guile/lib/gdb.scm (pretty-printers): Export.
2233 (set-pretty-printers!): Export.
2234 * guile/lib/gdb/printing.scm (gdb module): Update.
2235 (prepend-pretty-printer!, append-pretty-printer!): Update.
2236 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2237 (pretty_printer_list_var): Delete.
2238 (pretty_printer_list): New static global.
2239 (gdbscm_pretty_printers): New function.
2240 (gdbscm_set_pretty_printers_x): New function.
2241 (ppscm_find_pretty_printer_from_gdb): Update.
2242 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2243 (gdbscm_initialize_pretty_printers): Update.
2244
2245 2014-07-26 Doug Evans <xdje42@gmail.com>
2246
2247 PR 17185
2248 * configure.ac: Add check for header gc/gc.h.
2249 Add check for function setenv.
2250 * configure: Regenerate.
2251 * config.in: Regenerate.
2252 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2253
2254 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2255
2256 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2257 variation in gdbarch matching.
2258
2259 2014-07-25 Tom Tromey <tromey@redhat.com>
2260
2261 * exec.c (using_exec_ops): Remove.
2262 (exec_close_1): Update. Remove extraneous block, reindent.
2263 (add_target_sections): Use target_is_pushed.
2264
2265 2014-07-25 Pedro Alves <palves@redhat.com>
2266
2267 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2268 * monitor.c (monitor_create_inferior): Likewise.
2269 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2270 * remote-sim.c (gdbsim_create_inferior): Likewise.
2271 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2272 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2273 * windows-nat.c (do_initial_windows_stuff): Likewise.
2274
2275 2014-07-25 Pedro Alves <palves@redhat.com>
2276
2277 * NEWS: Mention signal passing and "signal" command changes.
2278 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2279 comment.
2280 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2281 call.
2282 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2283 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2284 (jump_command): Adjust clear_proceed_status call.
2285 (signal_command): Warn if other thread that are resumed have
2286 signals that will be delivered. Adjust clear_proceed_status call.
2287 (until_next_command, finish_command)
2288 (proceed_after_attach_callback, attach_command_post_wait)
2289 (attach_command): Adjust clear_proceed_status call.
2290 * infrun.c (proceed_after_vfork_done): Likewise.
2291 (proceed_after_attach_callback): Adjust comment.
2292 (clear_proceed_status_thread): Clear stop_signal if not in pass
2293 state.
2294 (clear_proceed_status_callback): Delete.
2295 (clear_proceed_status): New 'step' parameter. Only clear the
2296 proceed status of threads the command being prepared is about to
2297 resume.
2298 (proceed): If passed in an explicit signal, override stop_signal
2299 with it. Don't pass the last stop signal to the thread we're
2300 resuming.
2301 (init_wait_for_inferior): Adjust clear_proceed_status call.
2302 (switch_back_to_stepped_thread): Clear the signal if it should not
2303 be passed.
2304 * infrun.h (clear_proceed_status): New 'step' parameter.
2305 (user_visible_resume_ptid): Add comment.
2306 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2307 signal is in pass state.
2308 * remote.c (append_pending_thread_resumptions): Likewise.
2309 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2310
2311 2014-07-25 Tom Tromey <tromey@redhat.com>
2312
2313 * target.h (target_stopped_data_address)
2314 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2315 parentheses.
2316
2317 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2318
2319 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2320 comments.
2321 (avr_pointer_to_address): Likewise.
2322
2323 2014-07-24 Tom Tromey <tromey@redhat.com>
2324
2325 * monitor.c (compile_pattern): Update.
2326 * target.h (struct target_ops) <to_shortname, to_longname,
2327 to_doc>: Now const.
2328
2329 2014-07-24 Tom Tromey <tromey@redhat.com>
2330
2331 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2332 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2333 (add_info_alias, add_com): Make "doc" const.
2334 (print_doc_line): Make "str" const.
2335 (delete_cmd): Update.
2336 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2337 (print_doc_line): Update.
2338 * cli/cli-script.c (document_command): Update.
2339 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2340 (add_com, add_info, add_info_alias): Update.
2341 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2342 * python/py-cmd.c (cmdpy_destroyer): Update.
2343
2344 2014-07-24 Tom Tromey <tromey@redhat.com>
2345
2346 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2347 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2348 (help_cmd_list): Constify.
2349 (lookup_cmd): Update.
2350 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2351 const.
2352 (help_cmd_list, apropos_cmd): Update.
2353 * cli/cli-script.c (show_user): Update.
2354 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2355 * cli/cli-setshow.h (cmd_show_list): Update.
2356 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2357 (cmd_show_list): Update.
2358 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2359 * python/py-cmd.c (cmdpy_destroyer): Update.
2360
2361 2014-07-24 Tom Tromey <tromey@redhat.com>
2362
2363 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2364 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2365 const.
2366 * command.h (deprecate_cmd): Update.
2367 * maint.c (maintenance_do_deprecate): Add casts.
2368
2369 2014-07-24 Tom Tromey <tromey@redhat.com>
2370
2371 * cli/cli-decode.c (help_cmd): Make parameter "const".
2372 * cli/cli-decode.h (help_cmd): Update.
2373
2374 2014-07-24 Tom Tromey <tromey@redhat.com>
2375
2376 * stack.c (up_silently_base, down_silently_base): Make argument
2377 const.
2378
2379 2014-07-24 Tom Tromey <tromey@redhat.com>
2380
2381 * solib.c (solib_add): Make "pattern" const.
2382 * solib.h (solib_add): Update.
2383
2384 2014-07-24 Tom Tromey <tromey@redhat.com>
2385
2386 * remote.c (remote_serial_open, print_packet, putpkt)
2387 (putpkt_binary): Constify.
2388 * remote.h (putpkt): Update.
2389
2390 2014-07-24 Tom Tromey <tromey@redhat.com>
2391
2392 * monitor.c (monitor_open): Make "args" const.
2393 * monitor.h (monitor_open): Update.
2394
2395 2014-07-24 Tom Tromey <tromey@redhat.com>
2396
2397 * maint.c (match_bfd_flags): Make "string" const.
2398 (print_bfd_section_info): Remove casts.
2399 (print_objfile_section_info): Make "string" const.
2400
2401 2014-07-24 Tom Tromey <tromey@redhat.com>
2402
2403 * inf-child.c (inf_child_open_target): Make "arg" const.
2404 * inf-child.h (inf_child_open_target): Update.
2405
2406 2014-07-24 Tom Tromey <tromey@redhat.com>
2407
2408 * environ.c (unset_in_environ): Make "var" const.
2409 * environ.h (unset_in_environ): Update.
2410
2411 2014-07-24 Tom Tromey <tromey@redhat.com>
2412
2413 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2414 Make "cmd" const.
2415 (scan_filename_with_cleanup): Likewise.
2416 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2417 Make arguments const.
2418 (restore_command): Update.
2419
2420 2014-07-24 Pedro Alves <palves@redhat.com>
2421
2422 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2423
2424 2014-07-24 Tom Tromey <tromey@redhat.com>
2425 Gary Benson <gbenson@redhat.com>
2426
2427 * nat/linux-ptrace.c (additional_flags): New global.
2428 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2429 additional_flags; don't check GDBSERVER.
2430 (linux_ptrace_set_additional_flags): New function.
2431 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2432 Declare.
2433 * linux-nat.c (_initialize_linux_nat): Call
2434 linux_ptrace_set_additional_flags.
2435
2436 2014-07-24 Tom Tromey <tromey@redhat.com>
2437
2438 * make-target-delegates (munge_type, write_debugmethod): New
2439 functions.
2440 (debug_names): New global.
2441 ($TARGET_DEBUG_PRINTER): New global.
2442 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2443 name.
2444 Write debug methods. Generate init_debug_target.
2445 * target-debug.h: New file.
2446 * target-delegates.c: Rebuild.
2447 * target.c: Include target-debug.h.
2448 (debug_target): Hoist definition.
2449 (target_kill, target_get_section_table, target_memory_map)
2450 (target_flash_erase, target_flash_done, target_detach)
2451 (target_disconnect, target_wait, target_resume)
2452 (target_pass_signals, target_program_signals, target_follow_fork)
2453 (target_mourn_inferior, target_search_memory)
2454 (target_thread_address_space, target_close)
2455 (target_find_new_threads, target_core_of_thread)
2456 (target_verify_memory, target_insert_mask_watchpoint)
2457 (target_remove_mask_watchpoint): Remove targetdebug code.
2458 (debug_to_post_attach, debug_to_prepare_to_store)
2459 (debug_to_files_info, debug_to_insert_breakpoint)
2460 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2461 (debug_to_region_ok_for_hw_watchpoint)
2462 (debug_to_can_accel_watchpoint_condition)
2463 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2464 (debug_to_watchpoint_addr_within_range)
2465 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2466 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2467 (debug_to_terminal_init, debug_to_terminal_inferior)
2468 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2469 (debug_to_terminal_save_ours, debug_to_terminal_info)
2470 (debug_to_load, debug_to_post_startup_inferior)
2471 (debug_to_insert_fork_catchpoint)
2472 (debug_to_remove_fork_catchpoint)
2473 (debug_to_insert_vfork_catchpoint)
2474 (debug_to_remove_vfork_catchpoint)
2475 (debug_to_insert_exec_catchpoint)
2476 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2477 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2478 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2479 (setup_target_debug): Call init_debug_target.
2480 * target.h (TARGET_DEBUG_PRINTER): New macro.
2481 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2482 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2483
2484 2014-07-24 Gary Benson <gbenson@redhat.com>
2485
2486 * exceptions.h (throw_vfatal): Renamed to...
2487 (throw_vquit): New declaration.
2488 (throw_quit): Likewise.
2489 * exceptions.c (throw_vfatal): Renamed to...
2490 (throw_vquit): New function.
2491 (throw_quit): Likewise.
2492 (throw_error): Call throw_verror rather than throw_it.
2493 * utils.h (vfatal): Removed.
2494 (fatal): Likewise.
2495 * utils.c (vfatal): Removed.
2496 (fatal): Likewise.
2497 (internal_verror): Replaced call to fatal with call to throw_quit.
2498 (quit): Replaced calls to fatal with calls to throw_quit.
2499
2500 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2501
2502 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2503 target_read_code.
2504
2505 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2506
2507 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2508 less than zero in conditional expression.
2509
2510 2014-07-23 Tom Tromey <tromey@redhat.com>
2511
2512 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2513 ($INTRO_PART): Don't match whitespace.
2514 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2515 argument matching.
2516 ($METHOD): Add $METHOD_TRAILER.
2517 (trim): Rewrite.
2518 (scan_target_h): New sub.
2519 Change main loop not to collect state.
2520 * target-delegates.c: Rebuild.
2521
2522 2014-07-23 Gary Benson <gbenson@redhat.com>
2523
2524 * cp-support.c (gdb_demangle): Fix build on systems without
2525 sigaltstack.
2526
2527 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2528
2529 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2530 for reference entry value target data value.
2531
2532 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2533
2534 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2535 value_available_contents_eq.
2536
2537 2014-07-22 Pedro Alves <palves@redhat.com>
2538
2539 * value.c (allocate_optimized_out_value): Don't mark value as
2540 non-lazy.
2541
2542 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2543
2544 * MAINTAINERS (Write After Approval): Update my email address.
2545
2546 2014-07-20 Doug Evans <dje@google.com>
2547
2548 PR server/17147
2549 * remote.c (putpkt_binary): Add text to error message.
2550
2551 2014-07-20 Yao Qi <yao@codesourcery.com>
2552
2553 * eval.c: Remove "Chill" from comments.
2554 * gdbtypes.h: Likewise.
2555 * symtab.h: Likewise.
2556
2557 2014-07-20 Yao Qi <yao@codesourcery.com>
2558
2559 * std-operator.def: Update comments to TERNOP_SLICE.
2560
2561 2014-07-20 Yao Qi <yao@codesourcery.com>
2562
2563 * std-operator.def: Remove BINOP_RANGE.
2564 * breakpoint.c (watchpoint_exp_is_const): Update.
2565 * expprint.c (dump_subexp_body_standard): Likewise.
2566 * eval.c (init_array_element): Remove dead code.
2567 (evaluate_subexp_standard): Likewise.
2568
2569 2014-07-20 Yao Qi <yao@codesourcery.com>
2570
2571 * std-operator.def: Remove BINOP_IN.
2572 * breakpoint.c (watchpoint_exp_is_const): Update.
2573 * eval.c (evaluate_subexp_standard): Likewise.
2574 * expprint.c (dump_subexp_body_standard): Likewise.
2575
2576 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2577
2578 * microblaze-tdep.c (microblaze_register_names): Add
2579 the rshr and rslr register names.
2580 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2581 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2582 Use of tdesc_numbered_register. Use of
2583 microblaze_register_g_packet_guesses. Use of
2584 tdesc_use_registers. Use of set_gdbarch_register_type.
2585 (microblaze_register_g_packet_guesses): New.
2586 * microblaze-tdep.h (microblaze_reg_num): Add
2587 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2588 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2589 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2590 * features/microblaze-core.xml: New file.
2591 * features/microblaze-stack-protect.xml: New file.
2592 * features/microblaze-with-stack-protect.c: New file.
2593 * features/microblaze-with-stack-protect.xml: New file.
2594 * features/microblaze.xml: New file.
2595 * features/microblaze.c: New file.
2596 * features/Makefile (microblaze-with-stack-protect): Add
2597 microblaze-with-stack-protect microblaze and microblaze-expedite.
2598 * regformats/microblaze-with-stack-protect.dat: New file.
2599 * regformats/microblaze.dat: New file.
2600 * doc/gdb.texinfo (MicroBlaze Features): Added.
2601
2602 2014-07-18 Tom Tromey <tromey@redhat.com>
2603
2604 * exec.c (exec_ops): Now static.
2605 * exec.h (exec_ops): Don't declare.
2606
2607 2014-07-18 Tom Tromey <tromey@redhat.com>
2608
2609 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2610 to find_target_beneath.
2611 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2612 find_target_beneath.
2613 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2614
2615 2014-07-18 Tom Tromey <tromey@redhat.com>
2616
2617 PR gdb/17130:
2618 * utils.c (quit): Use target_supports_terminal_ours.
2619 * target.h (target_supports_terminal_ours): Declare.
2620 * target.c (target_supports_delete_record): Don't check
2621 to_delete_record against NULL.
2622 (target_supports_terminal_ours): New function.
2623
2624 2014-07-18 Tom Tromey <tromey@redhat.com>
2625
2626 PR gdb/17130:
2627 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2628 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2629 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2630 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2631 * windows-nat.c (windows_xfer_partial): Always delegate.
2632 * record-btrace.c (record_btrace_xfer_partial): Simplify
2633 delegation.
2634 (record_btrace_fetch_registers, record_btrace_store_registers)
2635 (record_btrace_prepare_to_store, record_btrace_resume)
2636 (record_btrace_wait, record_btrace_find_new_threads)
2637 (record_btrace_thread_alive): Likewise.
2638 * procfs.c (procfs_xfer_partial): Always delegate.
2639 * corelow.c (core_xfer_partial): Always delegate.
2640 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2641
2642 2014-07-18 Tom Tromey <tromey@redhat.com>
2643
2644 * exec.c (exec_make_note_section): Move earlier.
2645
2646 2014-07-17 Doug Evans <dje@google.com>
2647
2648 PR gdb/17170
2649 * maint.c (count_symtabs_and_blocks): Handle NULL
2650 current_program_space.
2651 (report_command_stats): Check global enabled flag in addition to
2652 recorded enabled flag.
2653 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2654
2655 2014-07-16 Pedro Alves <palves@redhat.com>
2656
2657 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2658
2659 2014-07-16 Tom Tromey <tromey@redhat.com>
2660
2661 * target.h (struct target_ops) <to_delete_record>: Reformat
2662 comment.
2663
2664 2014-07-16 Tom Tromey <tromey@redhat.com>
2665
2666 * target-delegates.c: Rebuild.
2667
2668 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2669
2670 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2671 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2672 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2673 (avr_pointer_to_address): Likewise.
2674 (avr_address_class_type_flags): New function.
2675 (avr_address_class_type_flags_to_name): Likewise.
2676 (avr_address_class_name_to_type_flags): Likewise.
2677 (avr_gdbarch_init): Set address_class_type_flags,
2678 address_class_type_flags_to_name and
2679 address_class_name_to_type_flags.
2680
2681 2014-07-15 Pedro Alves <palves@redhat.com>
2682
2683 * linux-nat.c (kill_callback): Save errno and work with saved
2684 copy.
2685
2686 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2687
2688 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2689
2690 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2691
2692 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2693 breakpoint support correctly.
2694
2695 2014-07-14 Pedro Alves <palves@redhat.com>
2696
2697 * utils.c (prompt_for_continue): Call target_terminal_ours.
2698
2699 2014-07-14 Pedro Alves <palves@redhat.com>
2700
2701 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2702 catch_errors. Don't re-enable stdin or notify observers where,
2703 and rethrow error.
2704 (fetch_inferior_event_wrapper): Delete.
2705
2706 2014-07-14 Pedro Alves <palves@redhat.com>
2707
2708 PR gdb/17072
2709 * top.c: Include "inf-loop.h".
2710 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2711 field.
2712 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2713 was async before.
2714 (gdb_readline_wrapper): Store whether the target is async, and
2715 make it sync.
2716
2717 2014-07-14 Pedro Alves <palves@redhat.com>
2718
2719 PR gdb/17072
2720 * top.c (gdb_readline_wrapper_line): Tweak comment.
2721 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2722 the input handler callback.
2723
2724 2014-07-14 Pedro Alves <palves@redhat.com>
2725
2726 PR gdb/17072
2727 * main.c: Include event-top.h.
2728 (handle_command_errors): New function.
2729 (catch_command_errors, catch_command_errors_const): Use it.
2730
2731 2014-07-14 Pedro Alves <palves@redhat.com>
2732
2733 * exceptions.c (catch_command_errors, catch_command_errors_const):
2734 Moved to main.c.
2735 * exceptions.h (catch_command_errors_ftype)
2736 (catch_command_errors_const_ftype): Moved to main.c.
2737 (catch_command_errors, catch_command_errors_const): Delete
2738 declarations.
2739 * main.c (catch_command_errors_ftype)
2740 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2741 (catch_command_errors, catch_command_errors_const)): Moved here
2742 from exceptions.c and make static.
2743
2744 2014-07-14 Pedro Alves <palves@redhat.com>
2745
2746 * exceptions.c (print_any_exception): Delete.
2747 (catch_exceptions_with_msg): Use exception_print instead of
2748 print_any_exception.
2749 (catch_errors): Use exception_fprintf instead of
2750 print_any_exception.
2751 (catch_command_errors, catch_command_errors_const): Use
2752 exception_print instead of print_any_exception.
2753
2754 2014-07-14 Pedro Alves <palves@redhat.com>
2755
2756 * infcall.c (run_inferior_call): Set 'sync_execution' while
2757 running the inferior call.
2758
2759 2014-07-14 Pedro Alves <palves@redhat.com>
2760
2761 * value.c (value_contents_equal): Delete function.
2762 * value.h (value_contents_equal): Delete declaration.
2763
2764 2014-07-14 Tom Tromey <tromey@redhat.com>
2765
2766 PR exp/17106:
2767 * gdbtypes.c (is_dynamic_type_internal): New function, from
2768 is_dynamic_type.
2769 (is_dynamic_type): Rewrite.
2770 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2771 (resolve_dynamic_struct): Likewise.
2772 (resolve_dynamic_type_internal): New function, from
2773 resolve_dynamic_type.
2774 (resolve_dynamic_type): Rewrite.
2775
2776 2014-07-14 Tom Tromey <tromey@redhat.com>
2777
2778 * target.c (target_require_runnable): Also check record_stratum.
2779 Update comment.
2780
2781 2014-07-11 Yao Qi <yao@codesourcery.com>
2782
2783 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2784 thumb_instruction_restores_sp return true.
2785
2786 2014-07-11 Yao Qi <yao@codesourcery.com>
2787
2788 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2789 (thumb_in_function_epilogue_p): Call
2790 thumb_instruction_restores_sp.
2791
2792 2014-07-11 Yao Qi <yao@codesourcery.com>
2793
2794 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2795 'add sp, #imm'.
2796 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2797
2798 2014-07-11 Gary Benson <gbenson@redhat.com>
2799
2800 * amd64-linux-nat.c (gdbcore.h): Remove include.
2801 (regset.h): Likewise.
2802 (nat/linux-btrace.h): Likewise.
2803 (btrace.h): Likewise.
2804 (gdb_assert.h): Likewise.
2805 (string.h): Likewise.
2806 (sys/uio.h): Likewise.
2807 (sys/debugreg.h): Likewise.
2808 (sys/syscall.h): Likewise.
2809 (sys/procfs.h): Likewise.
2810 (sys/user.h): Likewise.
2811 (asm/ptrace.h): Likewise.
2812 (i386-nat.h): Likewise.
2813 * i386-linux-nat.c (i386-nat.h): Likewise.
2814 (regset.h): Likewise.
2815 (target.h): Likewise.
2816 (linux-nat.h): Likewise.
2817 (nat/linux-btrace.h): Likewise.
2818 (btrace.h): Likewise.
2819 (gdb_assert.h): Likewise.
2820 (string.h): Likewise.
2821 (sys/uio.h): Likewise.
2822 (sys/user.h): Likewise.
2823 (sys/procfs.h): Likewise.
2824 (sys/reg.h): Likewise.
2825 (sys/debugreg.h): Likewise.
2826 (ORIG_EAX): Remove definition.
2827
2828 2014-07-11 Gary Benson <gbenson@redhat.com>
2829
2830 * i386-linux-nat.h: New file.
2831 * x86-linux-nat.h: Likewise.
2832 * x86-linux-nat.c: Likewise.
2833 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2834 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2835 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2836 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2837 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2838 (PTRACE_SETREGSET): Likewise.
2839 (arch_lwp_info): Now in x86-linux-nat.c.
2840 (have_ptrace_getregset): Now in x86-linux-nat.h.
2841 (x86_linux_dr_get): Now in x86-linux-nat.c.
2842 (x86_linux_dr_set): Likewise.
2843 (x86_linux_dr_get_addr): Likewise.
2844 (x86_linux_dr_get_control): Likewise.
2845 (x86_linux_dr_get_status): Likewise.
2846 (update_debug_registers_callback): Likewise.
2847 (x86_linux_dr_set_control): Likewise.
2848 (x86_linux_dr_set_addr): Likewise.
2849 (x86_linux_prepare_to_resume): Likewise.
2850 (x86_linux_new_thread): Likewise.
2851 (x86_linux_new_fork): Likewise.
2852 (x86_linux_get_thread_area): Likewise.
2853 (super_post_startup_inferior): Likewise.
2854 (x86_linux_child_post_startup_inferior): Likewise.
2855 (AMD64_LINUX_USER64_CS): Likewise.
2856 (AMD64_LINUX_X32_DS): Likewise.
2857 (x86_linux_read_description): Likewise.
2858 (x86_linux_enable_btrace): Likewise.
2859 (x86_linux_disable_btrace): Likewise.
2860 (x86_linux_teardown_btrace): Likewise.
2861 (x86_linux_read_btrace): Likewise.
2862 (x86_linux_create_target): Likewise.
2863 (x86_linux_add_target): Likewise.
2864 * i386-linux-nat.c (x86-linux-nat.h): New include.
2865 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2866 (PTRACE_SETREGSET): Likewise.
2867 (arch_lwp_info): Now in x86-linux-nat.c.
2868 (have_ptrace_getregset): Now in x86-linux-nat.h.
2869 (x86_linux_dr_get): Now in x86-linux-nat.c.
2870 (x86_linux_dr_set): Likewise.
2871 (x86_linux_dr_get_addr): Likewise.
2872 (x86_linux_dr_get_control): Likewise.
2873 (x86_linux_dr_get_status): Likewise.
2874 (update_debug_registers_callback): Likewise.
2875 (x86_linux_dr_set_control): Likewise.
2876 (x86_linux_dr_set_addr): Likewise.
2877 (x86_linux_prepare_to_resume): Likewise.
2878 (x86_linux_new_thread): Likewise.
2879 (x86_linux_new_fork): Likewise.
2880 (x86_linux_get_thread_area): Likewise.
2881 (super_post_startup_inferior): Likewise.
2882 (x86_linux_child_post_startup_inferior): Likewise.
2883 (AMD64_LINUX_USER64_CS): Likewise.
2884 (AMD64_LINUX_X32_DS): Likewise.
2885 (x86_linux_read_description): Likewise.
2886 (x86_linux_enable_btrace): Likewise.
2887 (x86_linux_disable_btrace): Likewise.
2888 (x86_linux_teardown_btrace): Likewise.
2889 (x86_linux_read_btrace): Likewise.
2890 (x86_linux_create_target): Likewise.
2891 (x86_linux_add_target): Likewise.
2892
2893 2014-07-11 Gary Benson <gbenson@redhat.com>
2894
2895 * amd64-linux-nat.c: Comment and whitespace changes.
2896 * i386-linux-nat.c: Comment and whitespace changes.
2897
2898 2014-07-11 Gary Benson <gbenson@redhat.com>
2899
2900 * amd64-linux-nat.c (x86_linux_create_target): New function.
2901 (x86_linux_add_target): Likewise.
2902 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2903 * i386-linux-nat.c (x86_linux_create_target): New function.
2904 (x86_linux_add_target): Likewise.
2905 (_initialize_i386_linux_nat): Delegate to the above new functions.
2906
2907 2014-07-11 Gary Benson <gbenson@redhat.com>
2908
2909 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2910 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2911 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2912 (ps_get_thread_area): Delegate to the above.
2913
2914 2014-07-11 Gary Benson <gbenson@redhat.com>
2915
2916 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2917 x86_linux_read_description. All uses updated. amd64-specific
2918 code conditionalized. Conditionalized i386-specific code added.
2919 Redundant cast removed.
2920 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2921 x86_linux_read_description. All uses updated. i386-specific
2922 code conditionalized. Conditionalized amd64-specific code added.
2923 One sizeof replaced with the actual type it is describing.
2924
2925 2014-07-11 Gary Benson <gbenson@redhat.com>
2926
2927 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2928 x86_linux_dr_get. All uses updated.
2929 (amd64_linux_dr_set): Renamed to
2930 x86_linux_dr_set. All uses updated.
2931 (amd64_linux_dr_get_addr): Renamed to
2932 x86_linux_dr_get_addr. All uses updated.
2933 (amd64_linux_dr_get_control): Renamed to
2934 x86_linux_dr_get_control. All uses updated.
2935 (amd64_linux_dr_get_status): Renamed to
2936 x86_linux_dr_get_status. All uses updated.
2937 (amd64_linux_dr_set_control): Renamed to
2938 x86_linux_dr_set_control. All uses updated.
2939 (amd64_linux_dr_set_addr): Renamed to
2940 x86_linux_dr_set_addr. All uses updated.
2941 (amd64_linux_prepare_to_resume): Renamed to
2942 x86_linux_prepare_to_resume. All uses updated.
2943 (amd64_linux_new_thread): Renamed to
2944 x86_linux_new_thread. All uses updated.
2945 (amd64_linux_new_fork): Renamed to
2946 x86_linux_new_fork. All uses updated.
2947 (amd64_linux_child_post_startup_inferior): Renamed to
2948 x86_linux_child_post_startup_inferior. All uses updated.
2949 (amd64_linux_enable_btrace): Renamed to
2950 x86_linux_enable_btrace. All uses updated.
2951 (amd64_linux_disable_btrace): Renamed to
2952 x86_linux_disable_btrace. All uses updated.
2953 (amd64_linux_teardown_btrace): Renamed to
2954 x86_linux_teardown_btrace. All uses updated.
2955 (amd64_linux_read_btrace): Renamed to
2956 x86_linux_read_btrace. All uses updated.
2957 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2958 x86_linux_dr_get. All uses updated.
2959 (i386_linux_dr_set): Renamed to
2960 x86_linux_dr_set. All uses updated.
2961 (i386_linux_dr_get_addr): Renamed to
2962 x86_linux_dr_get_addr. All uses updated.
2963 (i386_linux_dr_get_control): Renamed to
2964 x86_linux_dr_get_control. All uses updated.
2965 (i386_linux_dr_get_status): Renamed to
2966 x86_linux_dr_get_status. All uses updated.
2967 (i386_linux_dr_set_control): Renamed to
2968 x86_linux_dr_set_control. All uses updated.
2969 (i386_linux_dr_set_addr): Renamed to
2970 x86_linux_dr_set_addr. All uses updated.
2971 (i386_linux_prepare_to_resume): Renamed to
2972 x86_linux_prepare_to_resume. All uses updated.
2973 (i386_linux_new_thread): Renamed to
2974 x86_linux_new_thread. All uses updated.
2975 (i386_linux_new_fork): Renamed to
2976 x86_linux_new_fork. All uses updated.
2977 (i386_linux_child_post_startup_inferior): Renamed to
2978 x86_linux_child_post_startup_inferior. All uses updated.
2979 (i386_linux_enable_btrace): Renamed to
2980 x86_linux_enable_btrace. All uses updated.
2981 (i386_linux_disable_btrace): Renamed to
2982 x86_linux_disable_btrace. All uses updated.
2983 (i386_linux_teardown_btrace): Renamed to
2984 x86_linux_teardown_btrace. All uses updated.
2985 (i386_linux_read_btrace): Renamed to
2986 x86_linux_read_btrace. All uses updated.
2987
2988 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2989
2990 * remote.c (extended_remote_post_attach): New function.
2991 (init_extended_remote_ops): Install it as to_post_attach method.
2992
2993 2014-07-09 Pedro Alves <palves@redhat.com>
2994
2995 * infcmd.c (attach_command_post_wait): Don't call
2996 target_terminal_inferior here.
2997 (attach_command): Call it here instead.
2998
2999 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3000
3001 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3002 field.
3003 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3004 from varobj.c, with additional checks.
3005 (c_varobj_ops): Fill in is_path_expr_parent field.
3006 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3007 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3008 field.
3009 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3010 ops method.
3011 (varobj_default_is_path_expr_parent): New function.
3012 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3013 (varobj_default_is_path_expr_parent): Declare new function.
3014
3015 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3016
3017 * infcmd.c (finish_backward): Turn internal error into normal error.
3018
3019 2014-07-07 Pedro Alves <palves@redhat.com>
3020
3021 PR gdb/17096
3022 * remote.c (async_handle_remote_sigint)
3023 (async_handle_remote_sigint_twice): Call
3024 gdb_call_async_signal_handler instead of
3025 mark_async_signal_handler.
3026
3027 2014-07-07 Tom Tromey <tromey@redhat.com>
3028
3029 * target-delegates.c: Rebuild.
3030 * target.c (target_info_record): Remove.
3031 * record.c (info_record_command): Unconditionally call
3032 to_info_record.
3033 * target.h (struct target_ops) <to_info_record>: Use
3034 TARGET_DEFAULT_IGNORE.
3035 (target_info_record): Remove.
3036
3037 2014-07-07 Tom Tromey <tromey@redhat.com>
3038
3039 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3040 TARGET_DEFAULT_NORETURN.
3041 * target.c (generic_tls_error): New function.
3042 (target_translate_tls_address): Don't search target stack.
3043 * target-delegates.c: Rebuild.
3044 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3045 stack.
3046 * linux-thread-db.c (thread_db_get_thread_local_address):
3047 Unconditionally call beneath target.
3048
3049 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3050
3051 * cli/cli-logging.c (pop_output_files): Assign targerr to
3052 gdb_stdtargerr.
3053
3054 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3055
3056 * MAINTAINERS (Write After Approval): Update my email address.
3057
3058 2014-07-02 Gary Benson <gbenson@redhat.com>
3059
3060 * proc-service.c (ps_xfer_memory): Update comment.
3061 (ps_pstop): Remove unused function.
3062 (ps_pcontinue): Likewise.
3063 (ps_lstop): Likewise.
3064 (ps_lcontinue): Likewise.
3065 (ps_lgetxregsize): Likewise.
3066 (ps_lgetxregs): Likewise.
3067 (ps_lsetxregs): Likewise.
3068 (ps_plog): Likewise.
3069 (ps_ptread): Likewise.
3070 (ps_ptwrite): Likewise.
3071
3072 2014-07-01 Mark Wielaard <mjw@redhat.com>
3073
3074 * dwarf2read.c (add_array_cv_type): New function.
3075 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3076 (read_tag_volatile_type): Likewise.
3077
3078 2014-07-01 Tom Tromey <tromey@redhat.com>
3079
3080 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3081 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3082 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3083 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3084 * command.h (cmd_cfunc_ftype): Move earlier.
3085 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3086 (add_com, add_info): Use cmd_cfunc_ftype.
3087
3088 2014-06-30 Tom Tromey <tromey@redhat.com>
3089
3090 * symtab.c (operator_chars): Make parameters and return type
3091 const.
3092 (file_matches): Make "files" const.
3093 (struct search_symbols_data) <files>: Now const.
3094 (search_symbols): Make "regexp" and "files" parameters const.
3095 Update.
3096 (symtab_symbol_info): Remove cast.
3097 (rbreak_command): Update.
3098 * symtab.h (search_symbols): Update.
3099
3100 2014-06-27 Yao Qi <yao@codesourcery.com>
3101
3102 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3103 Change parameter type to 'struct thread_info *'. Caller
3104 updated.
3105 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3106 Update declaration.
3107 * dummy-frame.c (struct dummy_frame_id): New.
3108 (dummy_frame_id_eq): New function.
3109 (struct dummy_frame) <id>: Change its type to 'struct
3110 dummy_frame_id'.
3111 (dummy_frame_push): Add parameter ptid and save it in
3112 dummy_frame_id.
3113 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3114 inferior_ptid.
3115 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3116 to inferior_ptid.
3117 (lookup_dummy_frame): Change parameter type to 'struct
3118 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3119 instead of frame_id_eq.
3120 (dummy_frame_pop): Add parameter ptid. Callers updated.
3121 Update comments. Compose dummy_frame_id and pass it to
3122 lookup_dummy_frame.
3123 (dummy_frame_discard): Add parameter ptid.
3124 (dummy_frame_sniffer): Compose dummy_frame_id and call
3125 dummy_frame_id_eq instead of frame_id_eq.
3126 (fprint_dummy_frames): Print ptid.
3127 * dummy-frame.h: Remove comments.
3128 (dummy_frame_push): Add ptid in declaration.
3129 (dummy_frame_pop, dummy_frame_discard): Likewise.
3130
3131 2014-06-26 Tom Tromey <tromey@redhat.com>
3132
3133 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3134 * command.h (error_no_arg): Update.
3135
3136 2014-06-26 Tom Tromey <tromey@redhat.com>
3137
3138 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3139 (do_show_command): Make "arg" const.
3140 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3141
3142 2014-06-26 Tom Tromey <tromey@redhat.com>
3143
3144 * record-full.c (record_full_get_bookmark): Make "args" const.
3145 (record_full_goto_bookmark): Make "raw_bookmark" const.
3146 * record.c (record_goto): New function.
3147 (cmd_record_goto): Use it. Now static.
3148 * record.h (record_goto): Declare.
3149 (cmd_record_goto): Remove declaration.
3150 * target-delegates.c: Rebuild.
3151 * target.h (struct target_ops) <to_get_bookmark,
3152 to_goto_bookmark>: Make parameter const.
3153
3154 2014-06-26 Tom Tromey <tromey@redhat.com>
3155
3156 * defs.h (generic_load): Update.
3157 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3158 * monitor.c (monitor_load): Make "args" const.
3159 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3160 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3161 const.
3162 (mips_load): Make "file" const.
3163 * remote-sim.c (gdbsim_load): Make "args" const.
3164 * remote.c (remote_load): Make "name" const.
3165 * symfile.c (generic_load): Make "args" const.
3166 * target-delegates.c: Rebuild.
3167 * target.c (target_load): Make "arg" const.
3168 (debug_to_load): Make "args" const.
3169 * target.h (struct target_ops) <to_load>: Make parameter const.
3170 (target_load): Update.
3171
3172 2014-06-26 Tom Tromey <tromey@redhat.com>
3173
3174 PR symtab/16902:
3175 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3176 (dwarf2_physname, read_partial_die)
3177 (guess_partial_die_structure_name, fixup_partial_die)
3178 (guess_full_die_structure_name, anonymous_struct_prefix)
3179 (dwarf2_name): Use per-BFD obstack.
3180
3181 2014-06-26 Yao Qi <yao@codesourcery.com>
3182
3183 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3184 dummyframe and this_id into inner block below.
3185
3186 2014-06-26 Yao Qi <yao@codesourcery.com>
3187
3188 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3189 with "signal_pass[0]" in the initialization of signal_pass.
3190
3191 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3192
3193 * record-btrace.c (record_btrace_generating_corefile)
3194 (record_btrace_prepare_to_generate_core)
3195 (record_btrace_done_generating_core): New.
3196 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3197 (record_btrace_store_registers, record_btrace_prepare_to_store):
3198 Forward request when generating a core file.
3199 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3200 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3201 to_done_generating_core.
3202
3203 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3204
3205 * target.h (target_ops) <to_prepare_to_generate_core>
3206 <to_done_generating_core>: New.
3207 (target_prepare_to_generate_core, target_done_generating_core): New.
3208 * target.c (target_prepare_to_generate_core)
3209 (target_done_generating_core): New.
3210 * target-delegates.c: Regenerate.
3211 * gcore.c: (write_gcore_file): Rename to ...
3212 (write_gcore_file_1): ...this.
3213 (write_gcore_file): Call target_prepare_to_generate_core
3214 and target_done_generating_core.
3215
3216 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3217
3218 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3219 * gcore.c (write_gcore_file): Free memory returned from
3220 make_corefile_notes.
3221 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3222 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3223
3224 2014-06-24 Yao Qi <yao@codesourcery.com>
3225
3226 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3227 (arm_linux_init_abi): Set skip_trampoline_code with
3228 gdbarch_skip_trampoline_code instead of
3229 find_solib_trampoline_target.
3230
3231 2014-06-24 Yao Qi <yao@codesourcery.com>
3232
3233 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3234 arm_skip_bx_reg returns non-zero.
3235
3236 2014-06-24 Yao Qi <yao@codesourcery.com>
3237
3238 * arm-tdep.c (arm_skip_bx_reg): New function.
3239 (arm_skip_stub): Call arm_skip_bx_reg.
3240
3241 2014-06-23 Don Breazeal <donb@codesourcery.com>
3242
3243 * MAINTAINERS: Add myself as write-after-approval maintainer.
3244
3245 2014-06-23 Pedro Alves <palves@redhat.com>
3246
3247 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3248 DR_CONTROL before setting DR0..DR3.
3249 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3250 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3251 bits of DR_CONTROL related to the debug register slot being
3252 disabled. If all slots are vacant, clear local slowdown as well,
3253 and assert DR_CONTROL is 0.
3254
3255 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3256
3257 * python/lib/gdb/command/xmethods.py
3258 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3259 current progspace only if the string "progspace" matches LOCUS_RE.
3260
3261 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3262
3263 Fix --with-system-readline with readline-6.3 patch 5.
3264 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3265 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3266 types.
3267
3268 2014-06-20 Tom Tromey <tromey@redhat.com>
3269
3270 * dwarf2read.c (dw2_get_real_path): Use correct type in
3271 OBSTACK_CALLOC.
3272 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3273
3274 2014-06-20 Gary Benson <gbenson@redhat.com>
3275
3276 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3277 * common/glibc_thread_db.h: Likewise.
3278 * common/i386-cpuid.h: Likewise.
3279 * common/i386-gcc-cpuid.h: Likewise.
3280 * common/linux-btrace.h: Likewise.
3281 * common/linux-osdata.h: Likewise.
3282 * common/linux-procfs.h: Likewise.
3283 * common/linux-ptrace.h: Likewise.
3284 * common/mips-linux-watch.h: Likewise.
3285 * common/linux-btrace.c: Moved to nat.
3286 * common/linux-osdata.c: Likewise.
3287 * common/linux-procfs.c: Likewise.
3288 * common/linux-ptrace.c: Likewise.
3289 * common/mips-linux-watch.c: Likewise.
3290 * nat/gdb_thread_db.h: Moved from common.
3291 * nat/glibc_thread_db.h: Likewise.
3292 * nat/i386-cpuid.h: Likewise.
3293 * nat/i386-gcc-cpuid.h: Likewise.
3294 * nat/linux-btrace.c: Likewise.
3295 * nat/linux-btrace.h: Likewise.
3296 * nat/linux-osdata.c: Likewise.
3297 * nat/linux-osdata.h: Likewise.
3298 * nat/linux-procfs.c: Likewise.
3299 * nat/linux-procfs.h: Likewise.
3300 * nat/linux-ptrace.c: Likewise.
3301 * nat/linux-ptrace.h: Likewise.
3302 * nat/mips-linux-watch.c: Likewise.
3303 * nat/mips-linux-watch.h: Likewise.
3304 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3305 (object file files): Reordered.
3306 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3307 of glibc_thread_db.h.
3308
3309 2014-06-20 Gary Benson <gbenson@redhat.com>
3310
3311 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3312 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3313 (i386_dr_low): Likewise.
3314 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3315 (i386_dr_low_set_addr): Likewise.
3316 (i386_dr_low_get_addr): Likewise.
3317 (i386_dr_low_can_set_control): Likewise.
3318 (i386_dr_low_set_control): Likewise.
3319 (i386_dr_low_get_control): Likewise.
3320 (i386_dr_low_get_status): Likewise.
3321 (i386_get_debug_register_length): Likewise.
3322 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3323 (i386_dr_low): Likewise.
3324 * nat/i386-dregs.c (i386-low.h): Remove include.
3325 (i386-nat.h): Likewise.
3326 (nat/i386-dregs.h): New include.
3327 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3328 (i386_dr_low_set_addr): Likewise.
3329 (i386_dr_low_get_addr): Likewise.
3330 (i386_dr_low_can_set_control): Likewise.
3331 (i386_dr_low_set_control): Likewise.
3332 (i386_dr_low_get_control): Likewise.
3333 (i386_dr_low_get_status): Likewise.
3334 (i386_get_debug_register_length): Likewise.
3335 (debug_hw_points): Likewise.
3336
3337 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3338
3339 * Makefile.in (SFILES): Add d-exp.y.
3340 (YYFILES): Add d-exp.c.
3341 (YYOBJ): Add d-exp.o.
3342 (local-maintainer-clean): Delete d-exp.c.
3343 * d-exp.y: New file.
3344 * d-lang.h (d_parse): New declaration.
3345 (d_error): New declaration.
3346 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3347 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3348 PREC_ORDER operators.
3349 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3350
3351 2014-06-19 Yao Qi <yao@codesourcery.com>
3352
3353 * gdbthread.h (any_running): Remove the declaration.
3354 * thread.c (any_running): Remove.
3355
3356 2014-06-19 Yao Qi <yao@codesourcery.com>
3357
3358 * gdbthread.h (struct thread_info) <state>: Change its type to
3359 'enum thread_state'. Update comments.
3360
3361 2014-06-19 Pedro Alves <palves@redhat.com>
3362
3363 * gdbthread.h (ALL_THREADS): Delete.
3364 (ALL_NON_EXITED_THREADS): New macro.
3365 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3366 instead of ALL_THREADS.
3367 * infrun.c (find_thread_needs_step_over)
3368 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3369 instead of ALL_THREADS.
3370 * record-btrace.c (record_btrace_open)
3371 (record_btrace_stop_recording, record_btrace_close)
3372 (record_btrace_is_replaying, record_btrace_resume)
3373 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3374 * remote.c (append_pending_thread_resumptions): Likewise.
3375 * thread.c (thread_apply_all_command): Likewise.
3376
3377 2014-06-19 Gary Benson <gbenson@redhat.com>
3378
3379 * i386-nat.c (i386_stopped_by_watchpoint):
3380 Use i386_dr_stopped_by_watchpoint.
3381 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3382 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3383
3384 2014-06-19 Gary Benson <gbenson@redhat.com>
3385
3386 * nat/i386-dregs.c: New file.
3387 * Makefile.in (i386-dregs.o): New rule.
3388 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3389 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3390 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3391 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3392 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3393 * config/i386/go32.mh (NATDEPFILES): Likewise.
3394 * config/i386/linux.mh (NATDEPFILES): Likewise.
3395 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3396 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3397 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3398 * i386-nat.h (debug_hw_points): New declaration.
3399 * i386-nat.c (breakpoint.h): Remove include.
3400 (command.h): Likewise.
3401 (target.h): Likewise.
3402 (gdb_assert.h): Likewise.
3403 (debug_hw_points): Made nonstatic.
3404 (debug_printf): Now in i386-dregs.c.
3405 (TARGET_HAS_DR_LEN_8): Likewise.
3406 (DR_CONTROL_SHIFT): Likewise.
3407 (DR_CONTROL_SIZE): Likewise.
3408 (DR_RW_EXECUTE): Likewise.
3409 (DR_RW_WRITE): Likewise.
3410 (DR_RW_READ): Likewise.
3411 (DR_RW_IORW): Likewise.
3412 (DR_LEN_1): Likewise.
3413 (DR_LEN_2): Likewise.
3414 (DR_LEN_4): Likewise.
3415 (DR_LEN_8): Likewise.
3416 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3417 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3418 (DR_ENABLE_SIZE): Likewise.
3419 (DR_LOCAL_SLOWDOWN): Likewise.
3420 (DR_GLOBAL_SLOWDOWN): Likewise.
3421 (DR_CONTROL_RESERVED): Likewise.
3422 (I386_DR_CONTROL_MASK): Likewise.
3423 (I386_DR_VACANT): Likewise.
3424 (I386_DR_LOCAL_ENABLE): Likewise.
3425 (I386_DR_GLOBAL_ENABLE): Likewise.
3426 (I386_DR_DISABLE): Likewise.
3427 (I386_DR_SET_RW_LEN): Likewise.
3428 (I386_DR_GET_RW_LEN): Likewise.
3429 (I386_DR_WATCH_HIT): Likewise.
3430 (i386_wp_op_t): Likewise.
3431 (i386_show_dr): Likewise.
3432 (i386_length_and_rw_bits): Likewise.
3433 (i386_insert_aligned_watchpoint): Likewise.
3434 (i386_remove_aligned_watchpoint): Likewise.
3435 (i386_handle_nonaligned_watchpoint): Likewise.
3436 (i386_update_inferior_debug_regs): Likewise.
3437 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3438 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3439 (i386_region_ok_for_watchpoint):
3440 Use i386_dr_region_ok_for_watchpoint.
3441 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3442
3443 2014-06-19 Gary Benson <gbenson@redhat.com>
3444
3445 * i386-nat.c (i386_insert_hw_breakpoint): Use
3446 i386_insert_watchpoint.
3447 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3448
3449 2014-06-19 Gary Benson <gbenson@redhat.com>
3450
3451 * i386-nat.c (i386_dr_show): Renamed to
3452 i386_show_dr and made static. All uses updated.
3453 (i386_dr_length_and_rw_bits): Renamed to
3454 i386_length_and_rw_bits and made static.
3455 All uses updated.
3456 (i386_dr_insert_aligned_watchpoint): Renamed to
3457 i386_insert_aligned_watchpoint and made static.
3458 All uses updated.
3459 (i386_dr_remove_aligned_watchpoint): Renamed to
3460 i386_remove_aligned_watchpoint and made static.
3461 All uses updated.
3462 (i386_dr_update_inferior_debug_regs): Renamed to
3463 i386_update_inferior_debug_regs and made static.
3464 All uses updated.
3465 * nat/i386-dregs.h (i386_dr_show): Removed.
3466 (i386_dr_length_and_rw_bits): Likewise.
3467 (i386_dr_insert_aligned_watchpoint): Likewise.
3468 (i386_dr_remove_aligned_watchpoint): Likewise.
3469 (i386_dr_update_inferior_debug_regs): Likewise.
3470
3471 2014-06-19 Gary Benson <gbenson@redhat.com>
3472
3473 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3474 * configure: Regenerate.
3475 * config.in: Likewise.
3476 * main.c (signal.h): New include.
3477 (setup_alternate_signal_stack): New function.
3478 (captured_main): Call the above.
3479 * cp-support.c (signal.h): New include.
3480 (catch_demangler_crashes): New flag.
3481 (SIGJMP_BUF): New define.
3482 (SIGSETJMP): Likewise.
3483 (SIGLONGJMP): Likewise.
3484 (gdb_demangle_jmp_buf): New static global.
3485 (gdb_demangle_attempt_core_dump): Likewise.
3486 (gdb_demangle_signal_handler): New function.
3487 (gdb_demangle): If catch_demangler_crashes is set, install the
3488 above signal handler before calling bfd_demangle, and restore
3489 the original signal handler afterwards. Display the offending
3490 symbol and call demangler_warning the first time a segmentation
3491 fault is caught.
3492 (_initialize_cp_support): New maint set/show command.
3493
3494 2014-06-19 Gary Benson <gbenson@redhat.com>
3495
3496 * utils.h (resource_limit_kind): New enum.
3497 (can_dump_core): New declaration.
3498 (warn_cant_dump_core): Likewise.
3499 (dump_core): Likewise.
3500 * utils.c (dump_core): Made nonstatic. Added new
3501 parameter "limit_kind".
3502 (can_dump_core): Made nonstatic. Moved printing code to...
3503 (warn_cant_dump_core): New function.
3504 (can_dump_core_warn): Likewise.
3505 (internal_vproblem): Replace calls to can_dump_core with
3506 calls to can_dump_core_warn. Supply new argument to each.
3507
3508 2014-06-19 Gary Benson <gbenson@redhat.com>
3509
3510 * utils.h (demangler_vwarning): New declaration.
3511 (demangler_warning): Likewise.
3512 * utils.c (struct internal_problem)
3513 <user_settable_should_quit>: New field.
3514 <user_settable_should_dump_core>: Likewise
3515 (internal_error_problem): Add values for above new fields.
3516 (internal_warning_problem): Likewise.
3517 (demangler_warning_problem): New static global.
3518 (demangler_vwarning): New function.
3519 (demangler_warning): Likewise.
3520 (add_internal_problem_command): Selectively add commands.
3521 (_initialize_utils): New internal problem command.
3522 * maint.c (maintenance_demangler_warning): New function.
3523 (_initialize_maint_cmds): New command.
3524
3525 2014-06-18 Tom Tromey <tromey@redhat.com>
3526
3527 * f-valprint.c (info_common_command_for_block): Update.
3528 * symtab.h (struct general_symbol_info) <common_block>: Now
3529 const.
3530
3531 2014-06-18 Tom Tromey <tromey@redhat.com>
3532
3533 * symtab.h (struct symtab) <blockvector>: Now const.
3534 * ada-lang.c (ada_add_global_exceptions): Update.
3535 * buildsym.c (augment_type_symtab): Update.
3536 * dwarf2read.c (dw2_lookup_symbol): Update.
3537 * jit.c (finalize_symtab): Update.
3538 * jv-lang.c (add_class_symtab_symbol): Update.
3539 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3540 Update.
3541 * objfiles.c (objfile_relocate1): Update.
3542 * psymtab.c (lookup_symbol_aux_psymtabs)
3543 (maintenance_check_psymtabs): Update.
3544 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3545 Update.
3546 * spu-tdep.c (spu_catch_start): Update.
3547 * symmisc.c (dump_symtab_1): Update.
3548 * symtab.c (lookup_global_symbol_from_objfile)
3549 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3550 (basic_lookup_transparent_type_quick)
3551 (basic_lookup_transparent_type, find_pc_sect_symtab)
3552 (find_pc_sect_line, search_symbols): Update.
3553 * block.c (find_block_in_blockvector): Make "bl" const.
3554 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3555 const.
3556 (blockvector_contains_pc): Make "bv" const.
3557 (block_for_pc_sect): Update.
3558 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3559 (blockvector_contains_pc): Update.
3560 * breakpoint.c (resolve_sal_pc): Update.
3561 * inline-frame.c (block_starting_point_at): Update.
3562
3563 2014-06-18 Tom Tromey <tromey@redhat.com>
3564
3565 * completer.c (complete_line): Make "line_buffer" const.
3566 * completer.h (complete_line): Update.
3567
3568 2014-06-18 Tom Tromey <tromey@redhat.com>
3569
3570 * symtab.c (add_macro_name): Remove unneeded cast.
3571
3572 2014-06-18 Tom Tromey <tromey@redhat.com>
3573
3574 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3575 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3576
3577 2014-06-18 Tom Tromey <tromey@redhat.com>
3578
3579 * probe.c (info_probes_for_ops): Make "arg" const.
3580 * probe.h (info_probes_for_ops): Update.
3581
3582 2014-06-18 Tom Tromey <tromey@redhat.com>
3583
3584 * varobj.c (varobj_create): Update.
3585 * valops.c (value_of_this): Update.
3586 * tracepoint.c (add_local_symbols, scope_info): Update.
3587 * symtab.h (struct general_symbol_info) <block>: Now const.
3588 * symtab.c (skip_prologue_sal)
3589 (default_make_symbol_completion_list_break_on)
3590 (skip_prologue_using_sal): Update.
3591 * stack.h (iterate_over_block_locals)
3592 (iterate_over_block_local_vars): Update.
3593 * stack.c (print_frame_args): Update.
3594 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3595 parameter const.
3596 (get_selected_block): Make return type const.
3597 * python/py-frame.c (frapy_block): Update.
3598 * python/py-block.c (gdbpy_block_for_pc): Update.
3599 * p-exp.y (%union) <bval>: Now const.
3600 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3601 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3602 * m2-exp.y (%union) <bval>: Now const.
3603 * linespec.c (get_current_search_block): Make return type const.
3604 (create_sals_line_offset, find_label_symbols): Update.
3605 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3606 Update.
3607 (block_starting_point_at): Make "block" const.
3608 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3609 (check_exception_resume): Update.
3610 * guile/scm-frame.c (gdbscm_frame_block): Update.
3611 * guile/scm-block.c (gdbscm_lookup_block): Update.
3612 * frame.h (get_frame_block): Update.
3613 (get_selected_block): Make return type const.
3614 * frame.c (frame_id_inner): Update.
3615 * f-valprint.c (info_common_command_for_block)
3616 (info_common_command): Update.
3617 * dwarf2loc.c (dwarf2_find_location_expression)
3618 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3619 (locexpr_describe_location_piece): Update.
3620 * c-exp.y (%union) <bval>: Now const.
3621 * breakpoint.c (resolve_sal_pc): Update.
3622 * blockframe.c (get_frame_block):Make return type const.
3623 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3624 (block_innermost_frame): Update.
3625 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3626 (block_for_pc, block_for_pc_sect): Update.
3627 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3628 'pblock' const.
3629 (block_for_pc_sect, block_for_pc): Make return type const.
3630 * ax-gdb.c (gen_expr): Update.
3631 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3632 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3633 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3634 (ada_read_var_value): Update.
3635 * ada-exp.y (struct name_info) <block>: Now const.
3636 (%union): Likewise.
3637 (block_lookup): Constify.
3638
3639 2014-06-18 Gary Benson <gbenson@redhat.com>
3640
3641 * nat/i386-dregs.h: New file.
3642 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3643 * i386-nat.h (i386-dregs.h): New include.
3644 (DR_FIRSTADDR): Now in i386-dregs.h.
3645 (DR_LASTADDR): Likewise.
3646 (DR_NADDR): Likewise.
3647 (DR_STATUS): Likewise.
3648 (DR_CONTROL): Likewise.
3649 (i386_debug_reg_state): Likewise.
3650 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3651
3652 2014-06-18 Don Breazeal <donb@codesourcery.com>
3653
3654 * breakpoint.c (set_longjmp_breakpoint): Call
3655 momentary_breakpoint_from_master with additional argument.
3656 (set_longjmp_breakpoint_for_call_dummy): Call
3657 momentary_breakpoint_from_master with additional argument.
3658 (set_std_terminate_breakpoint): Call
3659 momentary_breakpoint_from_master with additional argument.
3660 (momentary_breakpoint_from_master): Add argument to function
3661 definition and use it to initialize structure member flag.
3662 (clone_momentary_breakpoint): Call
3663 momentary_breakpoint_from_master with additional argument.
3664 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3665 member flags set in momentary_breakpoint_from_master.
3666
3667 2014-06-18 Gary Benson <gbenson@redhat.com>
3668
3669 * i386-nat.c (i386_show_dr): Renamed to
3670 i386_dr_show and made nonstatic. All uses updated.
3671 (i386_length_and_rw_bits): Renamed to
3672 i386_dr_length_and_rw_bits and made nonstatic.
3673 All uses updated.
3674 (i386_insert_aligned_watchpoint): Renamed to
3675 i386_dr_insert_aligned_watchpoint and made nonstatic.
3676 All uses updated.
3677 (i386_remove_aligned_watchpoint): Renamed to
3678 i386_dr_remove_aligned_watchpoint and made nonstatic.
3679 All uses updated.
3680 (i386_update_inferior_debug_regs): Renamed to
3681 i386_dr_update_inferior_debug_regs and made nonstatic.
3682 All uses updated.
3683
3684 2014-06-18 Gary Benson <gbenson@redhat.com>
3685
3686 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3687 (i386_dr_low_can_set_control): Likewise.
3688 (i386_dr_low_set_addr): Likewise.
3689 (i386_dr_low_set_control): Likewise.
3690 (i386_dr_low_get_addr): Likewise.
3691 (i386_dr_low_get_status): Likewise.
3692 (i386_dr_low_get_control): Likewise.
3693 (i386_insert_aligned_watchpoint): Use new macros.
3694 (i386_update_inferior_debug_regs): Likewise.
3695 (i386_stopped_data_address): Likewise.
3696
3697 2014-06-18 Gary Benson <gbenson@redhat.com>
3698
3699 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3700 New parameter. All uses updated.
3701
3702 2014-06-18 Gary Benson <gbenson@redhat.com>
3703
3704 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3705 All uses updated.
3706
3707 2014-06-18 Gary Benson <gbenson@redhat.com>
3708
3709 * i386-nat.c (debug_printf): New macro.
3710 (i386_get_debug_register_length): Likewise.
3711 (TARGET_HAS_DR_LEN_8): Use above macro.
3712 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3713 and printf_unfiltered. Use phex to format values.
3714
3715 2014-06-18 Gary Benson <gbenson@redhat.com>
3716
3717 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3718 Make const.
3719
3720 2014-06-18 Gary Benson <gbenson@redhat.com>
3721
3722 * i386-nat.c: Comment changes.
3723
3724 2014-06-18 Gary Benson <gbenson@redhat.com>
3725
3726 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3727
3728 2014-06-18 Gary Benson <gbenson@redhat.com>
3729
3730 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3731 (i386_insert_aligned_watchpoint): Likewise.
3732 (i386_remove_aligned_watchpoint): Likewise.
3733 (i386_handle_nonaligned_watchpoint): Likewise.
3734
3735 2014-06-18 Gary Benson <gbenson@redhat.com>
3736
3737 * i386-nat.c: Whitespace changes.
3738
3739 2014-06-17 Samuel Bronson <naesten@gmail.com>
3740
3741 * MAINTAINERS: Update Roland McGrath's email address.
3742 Thanks to Sergio Durigan Junior for pointing out that he left
3743 Red Hat a while ago, and giving me a current address.
3744
3745 2014-06-17 Tom Tromey <tromey@redhat.com>
3746
3747 * utils.h (savestring): Remove declaration.
3748
3749 2014-06-17 Tom Tromey <tromey@redhat.com>
3750
3751 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3752
3753 2014-06-16 Keith Seitz <keiths@redhat.com>
3754
3755 PR mi/15863
3756 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3757 to update the varobj if inferior_ptid is null_ptid.
3758
3759 2014-06-16 Tom Tromey <tromey@redhat.com>
3760
3761 * target.h (struct target_ops) <to_info_proc>: Make parameter
3762 const.
3763 (target_info_proc): Update.
3764 * target.c (target_info_proc): Make "args" const.
3765 * procfs.c (procfs_info_proc): Update.
3766 * linux-tdep.c (linux_info_proc): Update.
3767 (linux_core_info_proc_mappings): Make "args" const.
3768 (linux_core_info_proc): Update.
3769 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3770 * gdbarch.c: Rebuild.
3771 * gdbarch.h: Rebuild.
3772 * corelow.c (core_info_proc): Update.
3773
3774 2014-06-16 Tom Tromey <tromey@redhat.com>
3775
3776 * target.h (struct target_ops) <to_disconnect>: Make parameter
3777 const.
3778 (target_disconnect): Update.
3779 * target.c (target_disconnect): Make "args" const.
3780 * target-delegates.c: Rebuild.
3781 * remote.c (remote_disconnect): Update.
3782 * record.h (record_disconnect): Update.
3783 * record.c (record_disconnect): Update.
3784 * inf-child.c (inf_child_disconnect): Update.
3785
3786 2014-06-16 Tom Tromey <tromey@redhat.com>
3787
3788 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3789 * target.c (debug_to_rcmd, default_rcmd): Update.
3790 * target-delegates.c: Rebuild.
3791 * remote.c (remote_rcmd): Update.
3792 * monitor.c (monitor_rcmd): Update.
3793
3794 2014-06-16 Pedro Alves <palves@redhat.com>
3795
3796 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3797 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3798 have OBJF_SHARED set.
3799 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3800 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3801 instead of OBJF_USERLOADED.
3802 * objfiles.h (OBJF_SHARED): Update comment.
3803 (userloaded_objfile_contains_address_p): Rename to ...
3804 (shared_objfile_contains_address_p): ... this, and update
3805 comments.
3806 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3807 new objfile.
3808 (remove_symbol_file_command): Skip objfiles that don't have
3809 OBJF_SHARED set.
3810
3811 2014-06-16 Tom Tromey <tromey@redhat.com>
3812
3813 * minsyms.h (prim_record_minimal_symbol)
3814 (prim_record_minimal_symbol_and_info): Update comments.
3815
3816 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3817
3818 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3819 or --without-guile, according to how GDB was built.
3820
3821 2014-06-13 Tom Tromey <tromey@redhat.com>
3822
3823 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3824 to help_list.
3825 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3826 to help_list.
3827 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3828 help_list.
3829 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3830 help_list.Pass all_commands, not -1, to help_list.
3831 * cli/cli-dump.c (dump_command, append_command)
3832 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3833 (binary_dump_command, binary_append_command): Pass all_commands,
3834 not -1, to help_list.
3835 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3836 -1, to help_list.
3837 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3838 -1, to help_list.
3839 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3840 help_list.
3841 * top.c (set_history): Pass all_commands, not -1, to help_list.
3842 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3843 all_commands, not -1, to help_list.
3844 * symfile.c (overlay_command): Pass all_commands, not -1, to
3845 help_list.
3846 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3847 help_list.
3848 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3849 help_list.
3850 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3851 -1, to help_list.
3852 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3853 not -1, to help_list.
3854 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3855 not -1, to help_list.
3856 * maint.c (maintenance_command, maintenance_info_command)
3857 (maintenance_print_command, maintenance_set_cmd): Pass
3858 all_commands, not -1, to help_list.
3859 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3860 help_list.
3861 * language.c (set_check): Pass all_commands, not -1, to help_list.
3862 * infcmd.c (unset_command): Pass all_commands, not -1, to
3863 help_list.
3864 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3865 help_list.
3866 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3867 help_list.
3868 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3869 help_list.
3870 * breakpoint.c (save_command): Pass all_commands, not -1, to
3871 help_list.
3872 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3873 all_commands, not -1, to help_list.
3874
3875 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3876
3877 * regcache.c (struct register_to_invalidate): New structure.
3878 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3879 functions.
3880 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3881
3882 2014-06-12 Yao Qi <yao@codesourcery.com>
3883
3884 * varobj.c (varobj_get_num_children): Call
3885 varobj_is_dynamic_p.
3886 (varobj_list_children): Likewise.
3887 (varobj_update): Likewise. Update comments.
3888
3889 2014-06-12 Yao Qi <yao@codesourcery.com>
3890
3891 * varobj.c (varobj_pretty_printed_p): Rename to ...
3892 (varobj_is_dynamic_p): ... this. New function.
3893 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3894 (varobj_is_dynamic_p): Declare.
3895 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3896 (mi_print_value_p, varobj_update_one): Likewise.
3897
3898 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3899 Yao Qi <yao@codesourcery.com>
3900
3901 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3902 (varobj_get_iterator): Wrap up code for pretty-printer by
3903 "#if HAVE_PYTHON" and "#endif".
3904 (update_dynamic_varobj_children): Likewise.
3905
3906 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3907 Yao Qi <yao@codesourcery.com>
3908
3909 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3910 gdb_python_initialized is false. Move some code from varobj.c.
3911 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3912 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3913 (struct varobj_item): Moved to varobj-iter.h".
3914 (varobj_clear_saved_item): New function.
3915 (update_dynamic_varobj_children): Move python-related code to
3916 py-varobj.c.
3917 (free_variable): Call varobj_clear_saved_item and
3918 varobj_iter_delete.
3919
3920 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3921 Yao Qi <yao@codesourcery.com>
3922
3923 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3924 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3925 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3926 (py-varobj.o): New rule.
3927 * python/py-varobj.c: New file.
3928 * python/python-internal.h (py_varobj_get_iterator): Declare.
3929 * varobj-iter.h: New file.
3930 * varobj.c: Include "varobj-iter.h"
3931 (struct varobj) <child_iter>: Change its type from "PyObject *"
3932 to "struct varobj_iter *".
3933 <saved_item>: Likewise.
3934 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3935 [HAVE_PYTHON] (varobj_get_iterator): New function.
3936 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3937 python-specific code to python/py-varobj.c.
3938 (install_visualizer): Call varobj_iter_delete instead of
3939 Py_XDECREF.
3940 * varobj.h (varobj_ensure_python_env): Declare.
3941
3942 2014-06-12 Yao Qi <yao@codesourcery.com>
3943
3944 * varobj.c (struct varobj_item): New structure.
3945 (create_child_with_value): Update declaration.
3946 (varobj_add_child): Replace arguments 'name' and 'value' with
3947 'item'. All callers updated.
3948 (install_dynamic_child): Likewise.
3949 (update_dynamic_varobj_children): Likewise.
3950 (varobj_add_child): Likewise.
3951 (create_child_with_value): Likewise.
3952
3953 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3954
3955 * NEWS: Create a new section for the next release branch.
3956 Rename the section of the current branch, now that it has
3957 been cut.
3958
3959 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3960
3961 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3962 * version.in: Bump version to 7.8.50.DATE-cvs.
3963
3964 2014-06-11 Pedro Alves <palves@redhat.com>
3965
3966 PR remote/17028
3967 * ser-mingw.c (net_windows_socket_check_pending): New function.
3968 (net_windows_select_thread): Ignore spurious wakeups. Use
3969 net_windows_socket_check_pending.
3970 (net_windows_wait_handle): Check for pending events with
3971 ioctlsocket, through net_windows_socket_check_pending, instead of
3972 checking the socket's event.
3973
3974 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3975
3976 * python/python-internal.h (gdb_PyObject_GetAttrString)
3977 (gdb_PyObject_HasAttrString): New inline function definitions.
3978 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3979 char * of the second argument to PyObject_GetAttrString.
3980
3981 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3982
3983 * serial.c (serial_write): Fix index of character to be printed
3984 in call to serial_logchar when serial debug traces are enabled.
3985
3986 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3987
3988 * gdbtypes (resolve_dynamic_range): Add function description.
3989
3990 2014-06-09 Pedro Alves <palves@redhat.com>
3991
3992 * linux-nat.c (linux_child_follow_fork): Initialize status with
3993 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3994 inner block. Only pass the signal to PTRACE_DETACH if in pass
3995 state.
3996
3997 2014-06-09 Gary Benson <gbenson@redhat.com>
3998
3999 * common/signals.c (gdb_signal_from_host): Reorder to separate
4000 the always-available ANSI-standard signals from the signals that
4001 require checking.
4002 (do_gdb_signal_to_host): Likewise.
4003 * proc-events.c (signal_table): Likewise.
4004
4005 2014-06-08 Hui Zhu <hui@codesourcery.com>
4006
4007 * common/linux-ptrace.c (linux_disable_event_reporting): New
4008 function.
4009 * common/linux-ptrace.h (linux_disable_event_reporting): New
4010 declaration.
4011 * linux-nat.c (linux_child_follow_fork): Do a single step before
4012 detach.
4013
4014 2014-06-07 Keith Seitz <keiths@redhat.com>
4015
4016 Revert:
4017 PR c++/16253
4018 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4019 from symbol_matches_domain in symtab.c. All local callers
4020 of symbol_matches_domain updated.
4021 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4022 search STRUCT_DOMAIN.
4023 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4024 independently. standard_lookup will do that automatically.
4025 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4026 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4027 (cp_lookup_symbol_in_namespace): Likewise.
4028 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4029 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4030 may return a STRUCT_DOMAIN match.
4031 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4032 * cp-support.c: Include language.h.
4033 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4034 VAR_DOMAIN.
4035 * psymtab.c (match_partial_symbol): Compare the requested
4036 domain with the symbol's domain directly.
4037 (lookup_partial_symbol): Likewise.
4038 * symtab.c (lookup_symbol_in_language): Explain when/why
4039 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4040 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4041 appropriate languages.
4042 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4043 and moved to ada-lang.c
4044 (lookup_block_symbol): Explain that this function only returns
4045 symbol matching the requested DOMAIN.
4046 Compare the requested domain with the symbol's domain directly.
4047 (iterate_over_symbols): Compare the requested domain with the
4048 symbol's domain directly.
4049 * symtab.h (symbol_matches_domain): Remove.
4050
4051 2014-06-06 Doug Evans <xdje42@gmail.com>
4052
4053 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4054 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4055 (gdbscm_guile_version_is_at_least): Declare.
4056 (gdbscm_scm_string_to_int): Declare.
4057 * guile/guile.c (gdbscm_guile_major_version): New global.
4058 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4059 (guile_datadir): New static global.
4060 (gdbscm_guile_data_directory): New function.
4061 (initialize_scheme_side): Update.
4062 (misc_guile_functions): Add guile-data-directory.
4063 (initialize_gdb_module): Fetch guile version number.
4064 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4065 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4066 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4067 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4068 comments.
4069 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4070 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4071 * guile/scm-value.c (gdbscm_value_to_string): Only call
4072 scm_port_conversion_strategy if Guile version >= 2.0.6.
4073
4074 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4075
4076 * main.c (print_gdb_help): Add -q and --silent.
4077
4078 2014-06-06 Gary Benson <gbenson@redhat.com>
4079
4080 * common/signals.c: Remove preprocessor conditionals for
4081 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4082 SIGSEGV and SIGTERM.
4083 * proc-events.c: Likewise.
4084
4085 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4086
4087 * symfile.c (symfile_free_objfile): Remove restriction to
4088 OBJF_USERLOADED.
4089 * symfile-mem.c (symbol_file_add_from_memory): Call
4090 add_target_sections_of_objfile.
4091
4092 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4093
4094 * guile/scm-value.c (gdbscm_history_append_x): Use
4095 'vlscm_get_value_smob_arg_unsafe' instead of
4096 'vlscm_scm_to_value'.
4097
4098 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4099
4100 PR mi/15806
4101 * utils.c (printchar): Don't escape at all if quoter is NUL.
4102 Update function documentation to clarify effect of parameter
4103 QUOTER.
4104 * remote.c (escape_buffer): Pass '\\' as the quoter to
4105 fputstrn_unfiltered.
4106 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4107 generate the output.
4108 (mi_solib_unloaded): Same.
4109
4110 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4111
4112 * development.sh: Delete.
4113 * Makefile.in (config.status): Adjust dependency on development.sh.
4114 * configure.ac: Adjust development.sh source call.
4115 * configure: Regenerate.
4116
4117 2014-06-04 Doug Evans <xdje42@gmail.com>
4118
4119 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4120 is_scheme_bkpt, spec.
4121 (bpscm_make_breakpoint_smob): Initialize new members.
4122 (gdbscm_create_breakpoint_x): Split into two ...
4123 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4124 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4125 (scheme_function breakpoint_functions): Update.
4126 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4127 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4128 register-breakpoint!.
4129
4130 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4131
4132 PR server/17023
4133 * mem-break.c (z_type_supported): Return zero if
4134 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4135
4136 2014-06-04 Tom Tromey <tromey@redhat.com>
4137
4138 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4139 value_from_contents_and_address_unresolved.
4140 (ada_template_to_fixed_record_type_1): Likewise.
4141 (ada_which_variant_applies): Likewise.
4142 * value.h (value_from_contents_and_address_unresolved): Declare.
4143 * value.c (value_from_contents_and_address_unresolved): New
4144 function.
4145 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4146 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4147 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4148
4149 2014-06-04 Tom Tromey <tromey@redhat.com>
4150
4151 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4152
4153 2014-06-04 Tom Tromey <tromey@redhat.com>
4154
4155 * procfs.c (procfs_attach): Make "args" const.
4156 * windows-nat.c (windows_attach): Make "args" const.
4157 * nto-procfs.c (procfs_attach): Make "args" const.
4158 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4159 * go32-nat.c (go32_attach): Make "args" const.
4160 * gnu-nat.c (gnu_attach): Make "args" const.
4161 * darwin-nat.c (darwin_attach): Make "args" const.
4162 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4163 * linux-nat.c (linux_nat_attach): Make "args" const.
4164 * remote.c (extended_remote_attach_1, extended_remote_attach):
4165 Make "args" const.
4166 * target.h (struct target_ops) <to_attach>: Make "args" const.
4167 (find_default_attach): Likewise.
4168 * utils.c (parse_pid_to_attach): Make "args" const.
4169 * utils.h (parse_pid_to_attach): Update.
4170
4171 2014-06-04 Tom Tromey <tromey@redhat.com>
4172
4173 * target-delegates.c: Rebuild.
4174 * target.c (default_thread_address_space): New function.
4175 (target_thread_address_space): Simplify.
4176 * target.h (struct target_ops) <to_thread_address_space>: Add
4177 TARGET_DEFAULT_FUNC.
4178
4179 2014-06-04 Doug Evans <xdje42@gmail.com>
4180
4181 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4182
4183 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4184
4185 * record-btrace.c: Include event-loop.h and inf-loop.h.
4186 (record_btrace_resume_exec_dir)
4187 (record_btrace_async_inferior_event_handler)
4188 (record_btrace_handle_async_inferior_event): New.
4189 (record_btrace_open): Create async event handler.
4190 (record_btrace_close): Delete async event handler.
4191 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4192 Mark async event handler.
4193 (record_btrace_execution_direction): New.
4194 (init_record_btrace_ops): Initialize to_execution_direction.
4195
4196 2014-06-03 Doug Evans <xdje42@gmail.com>
4197
4198 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4199 (gdbscm_make_parameter): Ditto.
4200
4201 2014-06-03 Doug Evans <dje@google.com>
4202
4203 * exec.c (exec_close_1): Call clear_section_table instead of
4204 resize_section_table.
4205 (clear_section_table): New function.
4206 (resize_section_table): Make static. Rename arg num_added to
4207 adjustment.
4208 * exec.h (clear_section_table): Declare.
4209 (resize_section_table): Delete.
4210 * progspace.c (release_program_space): Call clear_section_table
4211 instead of resize_section_table.
4212
4213 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4214
4215 * NEWS (Python Scripting): Add entry about the new xmethods
4216 feature.
4217
4218 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4219
4220 * python/py-xmethods.c: New file.
4221 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4222 (objfpy_dealloc): XDECREF on the new xmethods field.
4223 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4224 field.
4225 (objfpy_get_xmethods): New function.
4226 (objfile_getset): New entry 'xmethods'.
4227 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4228 (pspy_dealloc): XDECREF on the new xmethods field.
4229 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4230 field.
4231 (pspy_get_xmethods): New function.
4232 (pspace_getset): New entry 'xmethods'.
4233 * python/python-internal.h: Add declarations for new functions.
4234 * python/python.c (_initialize_python): Invoke
4235 gdbpy_initialize_xmethods.
4236 * python/lib/gdb/__init__.py (xmethods): New
4237 attribute.
4238 * python/lib/gdb/xmethod.py: New file.
4239 * python/lib/gdb/command/xmethods.py: New file.
4240
4241 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4242
4243 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4244 best match method returned by find_overload_match is an xmethod.
4245 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4246 the best matching operator returned by find_overload_match is an
4247 xmethod.
4248 * valops.c: #include "extension.h".
4249 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4250 Return void. The list of matching source methods is returned in
4251 "fn_list" and a vector of matching debug method workers is
4252 returned in "xm_worker_vec". Update all callers.
4253 (value_find_oload_method_list): Likewise.
4254 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4255 non-NULL, then the index of the best matching method in this
4256 vector is returned. Update all callers.
4257 (find_overload_match): Include xmethods while performing overload
4258 resolution.
4259
4260 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4261
4262 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4263 * extension-priv.h (struct extension_language_ops): Add the
4264 xmethod interface.
4265 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4266 get_matching_xmethod_workers, get_xmethod_argtypes,
4267 invoke_xmethod, free_xmethod_worker,
4268 free_xmethod_worker_vec): New functions.
4269 * extension.h: #include "common/vec.h".
4270 New function declarations.
4271 (struct xmethod_worker): New struct.
4272 (VEC (xmethod_worker_ptr)): New vector type.
4273 (xmethod_worker_ptr): New typedef.
4274 (xmethod_worker_vec): Likewise.
4275 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4276 builtin_type.
4277 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4278 (struct builtin_type): New field "xmethod".
4279 * valarith.c (value_ptradd): Assert that the value argument is not
4280 lval_xcallable.
4281 * valops.c (value_must_coerce_to_target): Return 0 for
4282 lval_xcallable values.
4283 * value.c (struct value): New field XM_WORKER in the field
4284 LOCATION.
4285 (value_address, value_raw_address): Return 0 for lval_xcallable
4286 values.
4287 (set_value_address): Assert that the value is not an
4288 lval_xcallable.
4289 (value_free): Free the associated xmethod worker when freeing
4290 lval_xcallable values.
4291 (set_value_component_location): Assert that the WHOLE value is not
4292 lval_xcallable.
4293 (value_of_xmethod, call_xmethod): New functions.
4294 * value.h: Declare "struct xmethod_worker".
4295 Declare new functions value_of_xmethod, call_xmethod.
4296
4297 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4298 Pedro Alves <palves@redhat.com>
4299
4300 PR breakpoints/17000
4301 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4302 New function, extracted from software_breakpoint_inserted_here_p.
4303 (software_breakpoint_inserted_here_p): Replace factored out code
4304 by call to find_non_raw_software_breakpoint_inserted_here.
4305 (bp_target_info_copy_insertion_state): New function.
4306 (bkpt_insert_location): Handle the case of a single-step
4307 breakpoint already inserted at the same address.
4308 (bkpt_remove_location): Handle the case of a single-step
4309 breakpoint still inserted at the same address.
4310 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4311 breakpoint already inserted at the same address.
4312 (deprecated_remove_raw_breakpoint): Handle the case of a
4313 non-raw breakpoint still inserted at the same address.
4314 (find_single_step_breakpoint): New function, extracted from
4315 single_step_breakpoint_inserted_here_p.
4316 (find_single_step_breakpoint): New function,
4317 factored out from single_step_breakpoint_inserted_here_p.
4318 (single_step_breakpoint_inserted_here_p): Reimplement.
4319
4320 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4321
4322 Pushed by Joel Brobecker <brobecker@adacore.com>
4323 * source.c (show_substitute_path_command): Fix display of matching
4324 substitution rules.
4325
4326 2014-06-03 Gary Benson <gbenson@redhat.com>
4327
4328 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4329
4330 2014-06-02 Doug Evans <xdje42@gmail.com>
4331
4332 Add parameter support for Guile.
4333 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4334 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4335 (scm-param.o): New rule.
4336 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4337 (gdbscm_misc_error): Declare.
4338 (gdbscm_canonicalize_command_name): Declare.
4339 (gdbscm_scm_to_host_string): Declare.
4340 (gdbscm_scm_from_host_string): Declare.
4341 (gdbscm_initialize_parameters): Declare.
4342 * guile/guile.c (initialize_gdb_module): Call
4343 gdbscm_initialize_parameters.
4344 * guile/lib/gdb.scm: Export parameter symbols.
4345 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4346 cmdscm_canonicalize_name and made public. All callers updated.
4347 * guile/scm-exception.c (gdbscm_misc_error): New function.
4348 * guile/scm-param.c: New file.
4349 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4350 (gdbscm_scm_to_host_string): New function.
4351 (gdbscm_scm_from_host_string): New function.
4352 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4353
4354 2014-06-02 Doug Evans <xdje42@gmail.com>
4355
4356 Add command support for Guile.
4357 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4358 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4359 (scm-cmd.o): New rule.
4360 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4361 (gdbscm_user_error_p): Declare.
4362 (gdbscm_parse_command_name): Declare.
4363 (gdbscm_valid_command_class_p): Declare.
4364 (gdbscm_initialize_commands): Declare.
4365 * guile/guile.c (initialize_gdb_module): Call
4366 gdbscm_initialize_commands.
4367 * guile/lib/gdb.scm: Export command symbols.
4368 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4369 (throw-user-error): New function.
4370 * guile/scm-cmd.c: New file.
4371 * guile/scm-exception.c (user_error_symbol): New static global.
4372 (gdbscm_user_error_p): New function.
4373 (gdbscm_initialize_exceptions): Set user_error_symbol.
4374 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4375
4376 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4377
4378 * top.c (command_loop): Handle comments here...
4379 (command_line_input): ... not here.
4380
4381 2014-06-02 Doug Evans <xdje42@gmail.com>
4382
4383 Add progspace support for Guile.
4384 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4385 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4386 (scm-progspace.o): New rule.
4387 * guile/guile-internal.h (pspace_smob): New typedef.
4388 (psscm_pspace_smob_pretty_printers): Declare.
4389 (psscm_pspace_smob_from_pspace): Declare.
4390 (psscm_scm_from_pspace): Declare.
4391 * guile/guile.c (initialize_gdb_module): Call
4392 gdbscm_initialize_pspaces.
4393 * guile/lib/gdb.scm: Export progspace symbols.
4394 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4395 support.
4396 (append-pretty-printer!): Ditto.
4397 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4398 Implement.
4399 * guile/scm-progspace.c: New file.
4400
4401 2014-06-03 Alan Modra <amodra@gmail.com>
4402
4403 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4404 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4405
4406 2014-06-02 Doug Evans <dje@google.com>
4407
4408 Add support for skeletonless type units.
4409 * dwarf2read.c (struct dwarf2_per_objfile): New member
4410 n_allocated_type_units.
4411 (struct dwarf2_per_objfile) <tu_stats>: New member
4412 nr_all_type_units_reallocs.
4413 (create_signatured_type_table_from_index): Initialize
4414 n_allocated_type_units
4415 (create_all_type_units): Ditto.
4416 (add_type_unit): Move up in file. New arg slot.
4417 All callers updated. Increase space for all_type_units more
4418 efficiently.
4419 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4420 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4421 (lookup_dwp_signatured_type): Ditto.
4422 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4423 All callers updated.
4424 (build_type_psymtabs_1): Leave type_unit_groups as
4425 NULL if no TUs present.
4426 (print_tu_stats): New function.
4427 (process_skeletonless_type_unit): New function.
4428 (process_dwo_file_for_skeletonless_type_units): New
4429 function.
4430 (process_skeletonless_type_units): New function.
4431 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4432 Call print tu_stats if debugging enabled.
4433
4434 2014-06-02 Pedro Alves <palves@redhat.com>
4435
4436 * breakpoint.c (build_target_command_list): Don't build a command
4437 list if we have any duplicate location that isn't a dprintf.
4438
4439 2014-06-02 Pedro Alves <palves@redhat.com>
4440
4441 * breakpoint.c (dprintf_breakpoint_hit): New function.
4442 (initialize_breakpoint_ops): Install it as dprintf's
4443 breakpoint_hit method.
4444
4445 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4446
4447 * source.c (substitute_path_rule_matches): Simplify using
4448 filename_ncmp instead of FILENAME_CMP.
4449
4450 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4451
4452 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4453
4454 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4455
4456 * configure.ac: When Guile is available, check for the
4457 availability of 'scm_new_smob'.
4458 * configure, config.h.in: Regenerate.
4459 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4460 function.
4461
4462 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4463
4464 * frame.c (struct frame_info): Add stop_string field.
4465 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4466 (get_prev_frame_always): Old content moved into
4467 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4468 TRY_CATCH, handle MEMORY_ERROR exceptions.
4469 (frame_stop_reason_string): New function definition.
4470 * frame.h (unwind_stop_reason_to_string): Extend comment to
4471 mention frame_stop_reason_string.
4472 (frame_stop_reason_string): New function declaration.
4473 * stack.c (frame_info): Switch to frame_stop_reason_string.
4474 (backtrace_command_1): Switch to frame_stop_reason_string.
4475 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4476 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4477 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4478
4479 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4480
4481 * frame.c (frame_stop_reason_string): Rename to ...
4482 (unwind_stop_reason_to_string): this.
4483 * frame.h (frame_stop_reason_string): Rename to ...
4484 (unwind_stop_reason_to_string): this.
4485 * stack.c (frame_info): Update call to frame_stop_reason_string.
4486 (backtrace_command_1): Likewise.
4487 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4488 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4489
4490 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4491
4492 * frame.c (remove_prev_frame): New function.
4493 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4494 remove_prev_frame.
4495
4496 2014-05-29 Pedro Alves <palves@redhat.com>
4497
4498 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4499 and make it const. When a single-step decays to a continue,
4500 clear 'step', not 'hw_step'. Pass whether the caller wanted
4501 to step to user_visible_resume_ptid, not what we ask the
4502 target to do.
4503
4504 2014-05-29 Pedro Alves <palves@redhat.com>
4505
4506 * infrun.c (process_event_stop_test, handle_step_into_function)
4507 (handle_step_into_function_backward): Adjust.
4508 Don't set the even thread's stop_step and call stop_waiting before
4509 calling end_stepping_range. Instead do that ...
4510 (end_stepping_range): ... here. Take an ecs pointer parameter.
4511
4512 2014-05-29 Pedro Alves <palves@redhat.com>
4513
4514 * infrun.c (stop_stepping): Rename to ...
4515 (stop_waiting): ... this.
4516 (proceed): Update comment.
4517 (process_event_stop_test, handle_inferior_event)
4518 (handle_signal_stop, handle_step_into_function)
4519 (handle_step_into_function_backward): Update.
4520
4521 2014-05-29 Pedro Alves <palves@redhat.com>
4522
4523 * infcall.c (run_inferior_call): Don't check whether the current
4524 thread is running after the proceed call.
4525
4526 2014-05-29 Pedro Alves <palves@redhat.com>
4527 Tom Tromey <tromey@redhat.com>
4528
4529 * NEWS: Mention "maint set target-async", "set mi-async", and that
4530 background execution commands are now always available.
4531 * target.h (target_async_permitted): Update comment.
4532 * target.c (target_async_permitted, target_async_permitted_1):
4533 Default to 1.
4534 (set_target_async_command): Rename to ...
4535 (maint_set_target_async_command): ... this.
4536 (show_target_async_command): Rename to ...
4537 (maint_show_target_async_command): ... this.
4538 (_initialize_target): Adjust.
4539 * infcmd.c (prepare_execution_command): Make extern.
4540 * inferior.h (prepare_execution_command): Declare.
4541 * infrun.c (set_observer_mode): Leave target async alone.
4542 * mi/mi-interp.c (mi_interpreter_init): Install
4543 mi_on_sync_execution_done as sync_execution_done observer.
4544 (mi_on_sync_execution_done): New function.
4545 (mi_execute_command_input_handler): Don't print the prompt if we
4546 just started a synchronous command with an async target.
4547 (mi_on_resume): Check sync_execution before printing prompt.
4548 * mi/mi-main.h (mi_async_p): Declare.
4549 * mi/mi-main.c: Include gdbcmd.h.
4550 (mi_async_p): New function.
4551 (mi_async, mi_async_1): New globals.
4552 (set_mi_async_command, show_mi_async_command, mi_async): New
4553 functions.
4554 (exec_continue): Call prepare_execution_command.
4555 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4556 (mi_execute_async_cli_command): Use mi_async_p.
4557 (_initialize_mi_main): Install "set mi-async". Make
4558 "target-async" a deprecated alias.
4559
4560 2014-05-29 Pedro Alves <palves@redhat.com>
4561
4562 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4563 (_initialize_cli_interp): Adjust.
4564 * event-loop.c: Include "observer.h".
4565 (start_event_loop): Notify 'command_error' observers instead of
4566 calling display_gdb_prompt. Remove FIXME comment.
4567 * event-top.c (display_gdb_prompt): Remove call into the
4568 interpreters.
4569 * inf-loop.c: Include "observer.h".
4570 (inferior_event_handler): Notify 'command_error' observers instead
4571 of calling display_gdb_prompt.
4572 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4573 observers instead of calling display_gdb_prompt.
4574 * interps.c (interp_set): Don't call display_gdb_prompt.
4575 (current_interp_display_prompt_p): Delete.
4576 * interps.h (interp_prompt_p): Delete declaration.
4577 (interp_prompt_p_ftype): Delete.
4578 (struct interp_procs) <prompt_proc_p>: Delete field.
4579 (current_interp_display_prompt_p): Delete declaration.
4580 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4581 (_initialize_mi_interp): Adjust.
4582 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4583 'command_error' observers.
4584 (tui_on_sync_execution_done, tui_on_command_error): New
4585 functions.
4586 (tui_display_prompt_p): Delete.
4587 (_initialize_tui_interp): Adjust.
4588
4589 2014-05-29 Pedro Alves <palves@redhat.com>
4590
4591 PR gdb/13860
4592 * cli/cli-interp.c: Include infrun.h and observer.h.
4593 (cli_uiout, cli_interp): New globals.
4594 (cli_on_signal_received, cli_on_end_stepping_range)
4595 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4596 functions.
4597 (cli_interpreter_init): Install them as 'end_stepping_range',
4598 'signal_received' 'signal_exited', 'exited' and 'no_history'
4599 observers.
4600 (_initialize_cli_interp): Remove cli_interp local.
4601 * infrun.c (handle_inferior_event): Call the several stop reason
4602 observers instead of printing the stop reason directly.
4603 (end_stepping_range): New function.
4604 (print_end_stepping_range_reason, print_signal_exited_reason)
4605 (print_exited_reason, print_signal_received_reason)
4606 (print_no_history_reason): Make static, and add an uiout
4607 parameter. Print to that instead of to CURRENT_UIOUT.
4608 * infrun.h (print_end_stepping_range_reason)
4609 (print_signal_exited_reason, print_exited_reason)
4610 (print_signal_received_reason print_no_history_reason): New
4611 declarations.
4612 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4613 'mi_uiout'.
4614 <cli_uiout>: New field.
4615 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4616 uiout for CLI output. Install 'signal_received',
4617 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4618 observers.
4619 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4620 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4621 (mi_on_no_history): New functions.
4622 (ui_out_free_cleanup): Delete function.
4623 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4624 instead use the one already stored in the MI interpreter data.
4625 (mi_ui_out): Adjust.
4626 * tui/tui-interp.c: Include infrun.h and observer.h.
4627 (tui_interp): New global.
4628 (tui_on_signal_received, tui_on_end_stepping_range)
4629 (tui_on_signal_exited, tui_on_exited)
4630 (tui_on_no_history): New functions.
4631 (tui_init): Install them as 'end_stepping_range',
4632 'signal_received' 'signal_exited', 'exited' and 'no_history'
4633 observers.
4634 (_initialize_tui_interp): Delete tui_interp local.
4635
4636 2014-05-29 Pedro Alves <palves@redhat.com>
4637
4638 PR gdb/15713
4639 * linux-nat.c (linux_nat_resume_callback): Rename the second
4640 parameter to 'except'. Skip LP if it points to EXCEPT.
4641 (linux_nat_resume): Don't mark the event lwp as not stopped
4642 before resuming sibling lwps. Instead ask
4643 linux_nat_resume_callback to skip the event lwp. Mark it as not
4644 stopped after actually resuming it.
4645 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4646 resuming it.
4647 (wait_lwp): Mark the lwp as stopped here.
4648 (stop_wait_callback): Mark the lwp as not stopped right after
4649 resuming it. Don't mark lwps as stopped here.
4650 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4651 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4652
4653 2014-05-29 Pedro Alves <palves@redhat.com>
4654
4655 PR PR15693
4656 * infrun.c (resume): Determine how much to resume depending on
4657 whether the caller wanted a step, not whether we can hardware step
4658 the target. Mark all threads that we intend to run as running,
4659 unless we're calling an inferior function.
4660 (normal_stop): If the thread is running an infcall, don't finish
4661 thread state.
4662 * target.c (target_resume): Don't mark threads as running here.
4663
4664 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4665
4666 * serial.c (_initialize_serial): Remove support for
4667 the "set remotebaud" and "show remotebaud" commands.
4668 * NEWS: Add entry documenting the removal of that command.
4669
4670 2014-05-28 Yao Qi <yao@codesourcery.com>
4671
4672 * charset.c: Fix typo in comments.
4673
4674 2014-05-27 Gary Benson <gbenson@redhat.com>
4675
4676 * utils.c (internal_vproblem): Prompt for a bug report.
4677
4678 2014-05-26 Andy Wingo <wingo@igalia.com>
4679
4680 * guile/scm-arch.c (arscm_mark_arch_smob):
4681 * guile/scm-block.c (bkscm_mark_block_smob)
4682 (bkscm_mark_block_syms_progress_smob):
4683 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4684 * guile/scm-exception.c (exscm_mark_exception_smob):
4685 * guile/scm-frame.c (frscm_mark_frame_smob):
4686 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4687 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4688 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4689 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4690 (ppscm_mark_pretty_printer_worker_smob):
4691 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4692 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4693 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4694 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4695 mark functions.
4696 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4697 function.
4698
4699 2014-05-26 Andy Wingo <wingo@igalia.com>
4700 Doug Evans <xdje42@gmail.com>
4701
4702 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4703 empty_base_class. All uses updated.
4704 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4705 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4706 Adapt all callers.
4707 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4708 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4709 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4710 (gdbscm_gsmob_has_property_p, add_property_name)
4711 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4712 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4713 (gdb-object-has-property?, gdb-object-properties): Remove.
4714 (gdb-object-kind): Renamed from gsmob-kind.
4715
4716 2014-05-26 Andy Wingo <wingo@igalia.com>
4717
4718 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4719 * configure: Regenerate.
4720
4721 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4722
4723 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4724
4725 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4726
4727 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4728 (replay_memory_access_read_only, replay_memory_access_read_write)
4729 (replay_memory_access_types, replay_memory_access)
4730 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4731 (cmd_set_record_btrace, cmd_show_record_btrace)
4732 (cmd_show_replay_memory_access): New.
4733 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4734 (record_btrace_remove_breakpoint): Replace
4735 record_btrace_allow_memory_access with replay_memory_access.
4736 (_initialize_record_btrace): Add commands.
4737 * NEWS: Announce it.
4738
4739 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4740
4741 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4742
4743 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4744
4745 * MAINTAINERS (Write After Approval): Move self back from
4746 paper trail.
4747
4748 2014-05-22 Pedro Alves <palves@redhat.com>
4749
4750 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4751 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4752 (disable_randomization, enum exec_direction_kind)
4753 (execution_direction, stop_registers, start_remote)
4754 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4755 (wait_for_inferior, normal_stop, get_last_target_status)
4756 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4757 (insert_step_resume_breakpoint_at_sal)
4758 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4759 (set_step_info, print_stop_event, signal_stop_state)
4760 (signal_print_state, signal_pass_state, signal_stop_update)
4761 (signal_print_update, signal_pass_update)
4762 (update_signals_program_target, clear_exit_convenience_vars)
4763 (displaced_step_dump_bytes, update_observer_mode)
4764 (signal_catch_update, gdb_signal_from_command): Move
4765 declarations ...
4766 * infrun.h: ... to this new file.
4767 * amd64-tdep.c: Include infrun.h.
4768 * annotate.c: Include infrun.h.
4769 * arch-utils.c: Include infrun.h.
4770 * arm-linux-tdep.c: Include infrun.h.
4771 * arm-tdep.c: Include infrun.h.
4772 * break-catch-sig.c: Include infrun.h.
4773 * breakpoint.c: Include infrun.h.
4774 * common/agent.c: Include infrun.h instead of inferior.h.
4775 * corelow.c: Include infrun.h.
4776 * event-top.c: Include infrun.h.
4777 * go32-nat.c: Include infrun.h.
4778 * i386-tdep.c: Include infrun.h.
4779 * inf-loop.c: Include infrun.h.
4780 * infcall.c: Include infrun.h.
4781 * infcmd.c: Include infrun.h.
4782 * infrun.c: Include infrun.h.
4783 * linux-fork.c: Include infrun.h.
4784 * linux-nat.c: Include infrun.h.
4785 * linux-thread-db.c: Include infrun.h.
4786 * monitor.c: Include infrun.h.
4787 * nto-tdep.c: Include infrun.h.
4788 * procfs.c: Include infrun.h.
4789 * record-btrace.c: Include infrun.h.
4790 * record-full.c: Include infrun.h.
4791 * remote-m32r-sdi.c: Include infrun.h.
4792 * remote-mips.c: Include infrun.h.
4793 * remote-notif.c: Include infrun.h.
4794 * remote-sim.c: Include infrun.h.
4795 * remote.c: Include infrun.h.
4796 * reverse.c: Include infrun.h.
4797 * rs6000-tdep.c: Include infrun.h.
4798 * s390-linux-tdep.c: Include infrun.h.
4799 * solib-irix.c: Include infrun.h.
4800 * solib-osf.c: Include infrun.h.
4801 * solib-svr4.c: Include infrun.h.
4802 * target.c: Include infrun.h.
4803 * top.c: Include infrun.h.
4804 * windows-nat.c: Include infrun.h.
4805 * mi/mi-interp.c: Include infrun.h.
4806 * mi/mi-main.c: Include infrun.h.
4807 * python/py-threadevent.c: Include infrun.h.
4808
4809 2014-05-22 Pedro Alves <palves@redhat.com>
4810
4811 * infrun.c (handle_inferior_event): Store the exit code for
4812 --return-child-result here, instead of ...
4813 (print_exited_reason): ... here.
4814
4815 2014-05-21 Pedro Alves <palves@redhat.com>
4816
4817 PR gdb/13860
4818 * gdbthread.h (struct thread_control_state): New field
4819 `command_interp'.
4820 * infrun.c (follow_fork): Copy the new thread control field to the
4821 child fork thread.
4822 (clear_proceed_status_thread): Clear the new thread control field.
4823 (proceed): Set the new thread control field.
4824 * interps.h (command_interp): Declare.
4825 * interps.c (command_interpreter): New global.
4826 (command_interp): New function.
4827 (interp_exec): Set `command_interpreter' while here.
4828 * cli-out.c (cli_uiout_dtor): New function.
4829 (cli_ui_out_impl): Install it.
4830 * mi/mi-interp.c: Include cli-out.h.
4831 (mi_cmd_interpreter_exec): Add comment.
4832 (restore_current_uiout_cleanup): New function.
4833 (ui_out_free_cleanup): New function.
4834 (mi_on_normal_stop): If finishing an execution command started by
4835 a CLI command, or any kind of breakpoint-like event triggered,
4836 print the stop event to the output (CLI) stream.
4837 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4838
4839 2014-05-21 Pedro Alves <palves@redhat.com>
4840
4841 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4842 current source line having changed.
4843 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4844 * infrun.c (normal_stop): Adjust call to
4845 set_current_sal_from_frame.
4846 * source.c (clear_lines_listed_range): New function.
4847 (set_current_source_symtab_and_line, identify_source_line): Clear
4848 the lines listed range.
4849 (line_info): Handle the first "info line" after the current source
4850 line having changed.
4851 * stack.c (print_stack_frame): Remove center handling.
4852 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4853 center sal.line.
4854
4855 2014-05-21 Pedro Alves <palves@redhat.com>
4856
4857 * inf-child.c (inf_child_mourn_inferior): New function.
4858 * inf-child.h (inf_child_mourn_inferior): New declaration.
4859 * darwin-nat.c (darwin_mourn_inferior): Use
4860 inf_child_mourn_inferior.
4861 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4862 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4863 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4864 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4865 * windows-nat.c (windows_mourn_inferior): Likewise.
4866
4867 2014-05-21 Doug Evans <xdje42@gmail.com>
4868
4869 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4870
4871 2014-05-21 Doug Evans <xdje42@gmail.com>
4872
4873 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4874 (gdbscm_out_of_range_error): Ditto.
4875 (gdbscm_memory_error): Ditto.
4876 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4877 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4878 (gdbscm_out_of_range_error): Update.
4879 (gdbscm_memory_error): Update.
4880 (gdbscm_scm_to_target_string_unsafe): Delete.
4881
4882 2014-05-21 Pedro Alves <palves@redhat.com>
4883
4884 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4885 globals.
4886 (inf_child_open_target): New function.
4887 (inf_child_open): Use inf_child_open_target to push the target
4888 instead of erroring out.
4889 (inf_child_disconnect, inf_child_close)
4890 (inf_child_maybe_unpush_target): New functions.
4891 (inf_child_target): Install inf_child_disconnect and
4892 inf_child_close. Store a pointer to the returned object.
4893 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4894 declarations.
4895 * target.c (auto_connect_native_target): New global.
4896 (show_default_run_target): New function.
4897 (find_default_run_target): Return NULL if automatically connecting
4898 to the native target is disabled.
4899 (_initialize_target): Install set/show auto-connect-native-target.
4900 * NEWS: Mention "set auto-connect-native-target", and "target
4901 native".
4902 * linux-nat.c (super_close): New global.
4903 (linux_nat_close): Call super_close.
4904 (linux_nat_add_target): Store a pointer to the base class's
4905 to_close method.
4906 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4907 inf_child_maybe_unpush.
4908 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4909 already pushed.
4910 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4911 the inferior. Use inf_child_maybe_unpush_target.
4912 (inf_ttrace_attach): Don't push the target if it is already
4913 pushed.
4914 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4915 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4916 after mourning the inferior. Use inf_child_maybe_unpush_target.
4917 (darwin_attach_pid): Don't push the target if it is already
4918 pushed.
4919 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4920 mourning the inferior. Use inf_child_maybe_unpush_target.
4921 (gnu_detach): Use inf_child_maybe_unpush_target.
4922 * go32-nat.c (go32_create_inferior): Don't push the target if it
4923 is already pushed.
4924 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4925 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4926 (procfs_open): Rename to ...
4927 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4928 comments. Can target_preopen before changing node. Call
4929 inf_child_open_target to push the target explicitly.
4930 (procfs_attach): Don't push the target if it is already pushed.
4931 (procfs_detach): Use inf_child_maybe_unpush_target.
4932 (procfs_create_inferior): Don't push the target if it is already
4933 pushed.
4934 (nto_native_ops): New global.
4935 (procfs_open): Reimplement.
4936 (procfs_native_open): New function.
4937 (init_procfs_targets): Install procfs_native_open as to_open of
4938 "target native". Store a pointer to the "native" target in
4939 nto_native_ops.
4940 * procfs.c (procfs_attach): Don't push the target if it is already
4941 pushed.
4942 (procfs_detach): Use inf_child_maybe_unpush_target.
4943 (procfs_mourn_inferior): Only unpush the target after mourning the
4944 inferior. Use inf_child_maybe_unpush_target.
4945 (procfs_init_inferior): Don't push the target if it is already
4946 pushed.
4947 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4948 if it is already pushed.
4949
4950 2014-05-21 Pedro Alves <palves@redhat.com>
4951
4952 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4953 and "procfs" targets are now called "native" instead.
4954
4955 2014-05-21 Pedro Alves <palves@redhat.com>
4956
4957 * go32-nat.c (go32_open): Delete.
4958 (go32_target): Don't override the to_open method.
4959
4960 2014-05-21 Pedro Alves <palves@redhat.com>
4961
4962 * nto-procfs.c (procfs_can_run): New function.
4963 (nto_procfs_ops): New global.
4964 (init_procfs_targets): New, based on procfs_target. Install
4965 "target native" in addition to "target procfs".
4966 (_initialize_procfs): Call init_procfs_targets instead of adding
4967 the target here.
4968
4969 2014-05-21 Pedro Alves <palves@redhat.com>
4970
4971 * windows-nat.c (windows_target): Don't override to_shortname,
4972 to_longname or to_doc.
4973
4974 2014-05-21 Pedro Alves <palves@redhat.com>
4975
4976 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4977 to_doc.
4978
4979 2014-05-21 Pedro Alves <palves@redhat.com>
4980
4981 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4982 to_shortname, to_longname or to_doc.
4983
4984 2014-05-21 Pedro Alves <palves@redhat.com>
4985
4986 * go32-nat.c (go32_target): Don't override to_shortname,
4987 to_longname or to_doc.
4988
4989 2014-05-21 Pedro Alves <palves@redhat.com>
4990
4991 * inf-child.c (inf_child_open): Remove mention of "child".
4992 (inf_child_target): Rename target to "native" instead of "child".
4993
4994 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4995
4996 * Makefile.in (SFILES): Delete "regset.c".
4997 (COMMON_OBS): Delete "regset.o".
4998 * regset.c: Remove.
4999 * regset.h (regset_alloc): Delete prototype.
5000
5001 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5002
5003 * sparc-linux-tdep.c (sparc32_linux_gregset)
5004 (sparc32_linux_fpregset): New static regset structures.
5005 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5006 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5007 'fpregset' fields.
5008 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5009 (sparc64_linux_fpregset): New static regset structures.
5010 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5011 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5012 New static regset structures.
5013 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5014 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5015 New static regset structures.
5016 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5017 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5018 New static regset structures.
5019 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5020 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5021 New static regset structures.
5022 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5023
5024 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5025
5026 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5027 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5028 register maps ("regmaps") from "*regset" to "*regmap". Do this
5029 for all regmap types and variables.
5030 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5031 (sparc32_linux_supply_core_gregset)
5032 (sparc32_linux_collect_core_gregset)
5033 (sparc32_linux_supply_core_fpregset)
5034 (sparc32_linux_collect_core_fpregset): Likewise.
5035 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5036 (sparc_gregmap, sparc_fpregmap): ... these.
5037 (sparc_supply_gregset, sparc_collect_gregset)
5038 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5039 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5040 (_initialize_sparc_nat): Rename regmaps.
5041 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5042 (sparc_gregmap, sparc_fpregmap): ... these.
5043 (sparc_supply_gregset, sparc_collect_gregset)
5044 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5045 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5046 Rename macros to...
5047 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5048 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5049 Likewise.
5050 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5051 Rename to...
5052 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5053 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5054 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5055 regmaps.
5056 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5057 (sparc32_bsd_fpregset): Rename to...
5058 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5059 (sparc32_bsd_fpregmap): ... these.
5060 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5061 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5062 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5063 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5064 (struct sparc_gregmap, struct sparc_fpregmap)
5065 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5066 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5067 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5068 (sparc32_supply_regset, sparc32_collect_gregset)
5069 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5070 prototypes.
5071 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5072 (sparc64_linux_ptrace_gregmap): ... this.
5073 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5074 (_initialize_sparc64_linux_nat): Rename regmaps.
5075 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5076 (sparc64_linux_core_gregmap): ... this.
5077 (sparc64_linux_supply_core_gregset)
5078 (sparc64_linux_collect_core_gregset)
5079 (sparc64_linux_supply_core_fpregset)
5080 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5081 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5082 (sparc64_sol2_fpregset): Rename to...
5083 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5084 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5085 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5086 regmaps.
5087 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5088 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5089 (sparc64_bsd_fpregset): Rename to...
5090 (struct sparc_gregmap, sparc64_sol2_gregmap)
5091 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5092 (sparc64_bsd_fpregmap): ... these.
5093 (sparc64_supply_gregset, sparc64_collect_gregset)
5094 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5095 prototypes.
5096 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5097 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5098 (sparc64fbsd_gregmap): ... this.
5099 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5100 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5101 Rename regmaps.
5102 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5103 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5104 (sparc64nbsd_collect_fpregset): Likewise.
5105 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5106 (sparc64nbsd_gregmap): ... this.
5107 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5108 regmaps.
5109 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5110 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5111 (sparc64obsd_gregmap): ... this.
5112 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5113 regmaps.
5114 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5115 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5116 (sparc32nbsd_gregmap): ... this.
5117 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5118 regmaps.
5119
5120 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5121
5122 * score-tdep.c (score7_linux_gregset): New static regset
5123 structure.
5124 (score7_linux_regset_from_core_section): Remove dynamic regset
5125 allocation.
5126 (score_gdbarch_init): Drop allocation of tdep structure.
5127 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5128
5129 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5130
5131 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5132 regset structures.
5133 (am33_regset_from_core_section): Remove dynamic regset
5134 allocations.
5135
5136 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5137
5138 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5139 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5140 structures.
5141 (mips_linux_regset_from_core_section): Remove dynamic regset
5142 allocations.
5143 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5144 'gregset64', 'fpregset', and 'fpregset64'.
5145 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5146 deleted tdep fields.
5147
5148 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5149
5150 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5151 regset structures.
5152 (amd64_regset_from_core_section): Remove dynamic regset
5153 allocations.
5154 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5155 structure.
5156 (amd64obsd_regset_from_core_section): Remove dynamic regset
5157 allocation.
5158 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5159 Likewise.
5160 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5161 x86-common regset supply function.
5162 * i386-tdep.c (i386_collect_gregset): Make static.
5163 (i386_gregset): New global regset structure.
5164 (i386_fpregset, i386_xstateregset): New static regset structures.
5165 (i386_regset_from_core_section): Remove dynamic regset
5166 allocations.
5167 (i386_gdbarch_init): Remove initialization of tdep fields
5168 'gregset', 'fpregset', and 'xstateregset'.
5169 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5170 'fpregset', and 'xstateregset'.
5171 (i386_collect_gregset): Remove prototype.
5172 (i386_gregset): New declaration.
5173 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5174 structure.
5175 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5176 allocation.
5177
5178 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5179
5180 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5181 (arm_linux_vfpregset): New static regset structures.
5182 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5183 regset structures.
5184 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5185 and 'vfpregset' fields.
5186
5187 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5188
5189 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5190 (aarch64_linux_fpregset): New static regset structures.
5191 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5192 of regset structures.
5193 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5194 'fpregset' fields.
5195
5196 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5197
5198 * regset.h (struct regset): Remove gdbarch field.
5199 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5200 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5201 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5202 Likewise.
5203 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5204 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5205 (ppc32_linux_vsxregset): Likewise.
5206 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5207 via the regcache instead of the regset.
5208 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5209 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5210 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5211 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5212 Likewise.
5213
5214 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5215
5216 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5217 Constify structures.
5218 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5219 (alphanbsd_aout_gregset): Likewise.
5220 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5221 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5222 Likewise.
5223 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5224 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5225 Likewise.
5226 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5227 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5228 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5229 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5230 * m88k-tdep.c (m88k_gregset): Likewise.
5231 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5232 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5233 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5234 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5235 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5236 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5237 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5238 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5239 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5240 Likewise.
5241 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5242 * sh-tdep.h (sh_corefile_gregset): Likewise.
5243 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5244 * vax-tdep.c (vax_gregset): Likewise.
5245
5246 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5247
5248 Fix TLS access for -static -pthread.
5249 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5250 (try_thread_db_load_1): Initialize it.
5251 (thread_db_get_thread_local_address): Call it if LM is zero.
5252 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5253 * target.h (struct target_ops) (to_get_thread_local_address): Add
5254 load_module_addr comment.
5255
5256 2014-05-21 Pedro Alves <palves@redhat.com>
5257
5258 * dcache.c (dcache_read_memory_partial): If reading the cache line
5259 fails, fallback to reading just the memory the caller wanted.
5260
5261 2014-05-20 Doug Evans <dje@google.com>
5262
5263 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5264 instead of get_current_arch.
5265
5266 2014-05-20 Pedro Alves <palves@redhat.com>
5267
5268 * NEWS: Mention that compare-sections now works with all targets.
5269
5270 * remote.c (PACKET_qCRC): New enum value.
5271 (remote_verify_memory): Don't send qCRC if the target has no
5272 execution. Use packet_support/packet_ok. If the target doesn't
5273 support the qCRC packet, fallback to a deep memory copy.
5274 (compare_sections_command): Say "target image" instead of "remote
5275 executable".
5276 (_initialize_remote): Add PACKET_qCRC to the list of config
5277 packets that have no associated command. Extend comment.
5278 * target.c (simple_verify_memory, default_verify_memory): New
5279 function.
5280 * target.h (struct target_ops) <to_verify_memory>: Default to
5281 default_verify_memory.
5282 (simple_verify_memory): New declaration.
5283 * target-delegates.c: Regenerate.
5284
5285 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5286
5287 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5288
5289 2014-05-20 Hui Zhu <hui@codesourcery.com>
5290 Yao Qi <yao@codesourcery.com>
5291
5292 PR backtrace/16558
5293 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5294 and change address of sp and pc.
5295
5296 2014-05-19 Tom Tromey <tromey@redhat.com>
5297
5298 * gdbtypes.c (rank_function): Use XNEWVEC.
5299 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5300
5301 2014-05-19 Doug Evans <dje@google.com>
5302
5303 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5304 build_type_unit_groups and moved closer to only caller. Remove
5305 arguments. All references updated. Remove outdated .gdb_index
5306 comment.
5307 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5308 build_type_psymtabs_1.
5309
5310 2014-05-19 Doug Evans <dje@google.com>
5311
5312 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5313 n_type_unit_groups, all_type_unit_groups. All uses removed.
5314 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5315 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5316 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5317 (add_type_unit_group_to_table): Delete.
5318
5319 2014-05-19 Doug Evans <dje@google.com>
5320
5321 * eval.c (evaluate_subexp_standard): Add some comments.
5322
5323 2014-05-17 Doug Evans <xdje42@gmail.com>
5324
5325 * progspace.c (remove_program_space): Delete, unused.
5326 * progspace.h (remove_program_space): Ditto.
5327
5328 2014-05-17 Doug Evans <xdje42@gmail.com>
5329
5330 * inferior.c (prune_inferiors): Fix comment.
5331 (remove_inferior_command): Call prune_program_spaces.
5332
5333 2014-05-16 Doug Evans <dje@google.com>
5334
5335 New command line option -D.
5336 * NEWS: Mention it.
5337 * main.c (set_gdb_data_directory): New function.
5338 (captured_main): Recognize -D. Flag error for --data-directory "".
5339 Call set_gdb_data_directory.
5340 (print_gdb_help): Print --data-directory, -D.
5341 * main.h (set_gdb_data_directory): Declare.
5342 * top.c (staged_gdb_datadir): New static global.
5343 (set_gdb_datadir): Call set_gdb_data_directory
5344 (show_gdb_datadir): New function.
5345 (init_main): Update init of data-directory parameter.
5346
5347 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5348
5349 Import the "dirfd" gnulib module.
5350 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5351 * gnulib/aclocal.m4: Update.
5352 * gnulib/config.in: Update.
5353 * gnulib/configure: Update.
5354 * gnulib/import/Makefile.am: Update.
5355 * gnulib/import/Makefile.in: Update.
5356 * gnulib/import/dirfd.c: New.
5357 * gnulib/import/m4/dirfd.m4: New.
5358 * gnulib/import/m4/gnulib-cache.m4: Update.
5359 * gnulib/import/m4/gnulib-comp.m4: Update.
5360
5361 2014-05-16 Pierre Muller <muller@sourceware.org>
5362 Yao Qi <yao@codesourcery.com>
5363
5364 * valprint.c (print_wchar): Move the code on checking whether
5365 W is a printable wide char to the default branch of switch
5366 statement below. Call wchar_printable instead of gdb_iswprint.
5367
5368 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5369
5370 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5371 ldr.w and ldrd instructions.
5372
5373 2014-05-15 Doug Evans <dje@google.com>
5374
5375 * dwarf2read.c (read_structure_type): Delete outdated comments.
5376
5377 2014-05-14 Tom Tromey <tromey@redhat.com>
5378
5379 * macrocmd.c (print_macro_definition): Reindent.
5380
5381 2014-05-13 Doug Evans <xdje42@gmail.com>
5382
5383 * python/py-cmd.c (cmdpy_completer): Add comment.
5384 (completers): Make const.
5385
5386 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5387
5388 * infrun.c (resume): Remove should_resume (unused). Move up
5389 declaration of resume_ptid.
5390
5391 2014-05-13 Tom Tromey <tromey@redhat.com>
5392
5393 * language.h (unop_type_check): Remove.
5394 (binop_type_check): Don't declare.
5395
5396 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5397
5398 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5399 call to regcache_raw_collect.
5400
5401 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5402
5403 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5404 mi_console->quote as the quoting character.
5405
5406 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5407
5408 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5409
5410 2014-04-29 Tom Tromey <tromey@redhat.com>
5411
5412 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5413 "show debug varobj".
5414
5415 2014-05-07 Kyle McMartin <kyle@redhat.com>
5416
5417 Pushed by Joel Brobecker <brobecker@adacore.com>.
5418 * aarch64-tdep.c (aarch64_software_single_step): New function.
5419 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5420 with aarch64_software_single_step.
5421
5422 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5423
5424 GDB 7.7.1 released.
5425
5426 2014-05-05 Keith Seitz <keiths@redhat.com>
5427
5428 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5429 variable or history value is successfully parsed.
5430
5431 2014-05-05 Yao Qi <yao@codesourcery.com>
5432 Pedro Alves <palves@redhat.com>
5433
5434 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5435 address of blocks that intersects the requested range. Trim
5436 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5437 sections.
5438 * ctf.c (ctf_xfer_partial): Likewise.
5439
5440 2014-05-05 Yao Qi <yao@codesourcery.com>
5441
5442 * printcmd.c (display_command): Remove the check to
5443 target_has_execution.
5444
5445 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5446
5447 * ppcobsd-nat.c: Include "obsd-nat.h".
5448 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5449 add_target.
5450 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5451
5452 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5453
5454 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5455 and 16-bit signed and unsigned arguments. Update comment.
5456 (stap_parse_probe_arguments): Extend code to handle such
5457 arguments. Use warning instead of complaint to notify about
5458 unrecognized bitness.
5459
5460 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5461
5462 PR breakpoints/16889
5463 * stap-probe.c (stap_parse_probe_arguments): Simplify
5464 check for non-prefixed probes (i.e., probes whose
5465 arguments do not start with "N@"). Always set the
5466 argument type to a sane value.
5467
5468 2014-05-01 David Taylor <dtaylor@emc.com>
5469
5470 * remote.c (compare_sections_command): Add -r option to compare
5471 all loadable read-only sections.
5472
5473 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5474
5475 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5476 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5477 Update all callers.
5478 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5479 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5480 Remove unused CORE_ADDR argument. Update all callers.
5481
5482 2014-04-29 Pedro Alves <palves@redhat.com>
5483
5484 * remote.c (struct packet_config) <detect>: Extend comment.
5485 (add_packet_config_cmd): Don't set the config's detect or support
5486 fields here.
5487 (init_all_packet_configs): Also initialize the config's 'detect'
5488 field.
5489 (reset_all_packet_configs_support): New function.
5490 (remote_open_1): Call reset_all_packet_configs_support instead of
5491 init_all_packet_configs.
5492 (_initialize_remote): Initialize all packet configs. Assert that
5493 all packets have an associated command, except a few known
5494 outliers.
5495
5496 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5497
5498 * dwarf2read.c (read_subrange_type): Handle dynamic
5499 DW_AT_lower_bound attributes.
5500
5501 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5502
5503 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5504 dynamic bounds before computing its upper bound.
5505 (ada_discrete_type_low_bound): Same as above with the lower bound.
5506
5507 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5508
5509 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5510 range types. Adjust the array handling implementation to
5511 take advantage of this change.
5512 (resolve_dynamic_range): New function, mostly extracted from
5513 resolve_dynamic_bounds.
5514 (resolve_dynamic_array): New function, mostly extracted from
5515 resolve_dynamic_bounds.
5516 (resolve_dynamic_bounds): Delete.
5517 (resolve_dynamic_type): Reimplement. Add handling of
5518 TYPE_CODE_RANGE types.
5519
5520 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5521
5522 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5523 handling of parallel ___XA types.
5524
5525 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5526
5527 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5528 unnecessary second call to static_unwrap_type.
5529
5530 2014-04-27 Hui Zhu <hui@codesourcery.com>
5531
5532 * stack.c (print_frame_info): Call do_gdb_disassembly with
5533 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5534
5535 2014-04-26 Doug Evans <xdje42@gmail.com>
5536
5537 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5538
5539 2014-04-25 Pedro Alves <palves@redhat.com>
5540
5541 PR server/16255
5542 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5543 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5544 and newline from built string.
5545 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5546 (linux_ptrace_attach_fail_reason): ... this.
5547 * linux-nat.c (linux_nat_attach): Adjust to use
5548 linux_ptrace_attach_fail_reason.
5549
5550 2014-04-25 Pedro Alves <palves@redhat.com>
5551
5552 * remote.c (struct remote_state): Remove multi_process_aware,
5553 non_stop_aware, cond_tracepoints, cond_breakpoints,
5554 breakpoint_commands, fast_tracepoints, static_tracepoints,
5555 install_in_trace, disconnected_tracing,
5556 enable_disable_tracepoints, string_tracing, and
5557 augmented_libraries_svr4_read fields.
5558 (remote_multi_process_p): Move further below in the file.
5559 (struct packet_config): Add comments.
5560 (update_packet_config): Delete function.
5561 (show_packet_config_cmd): Use packet_config_support.
5562 (add_packet_config_cmd): Use NULL as set callback.
5563 (packet_ok): "set remote foo-packet"-style commands no longer
5564 change config->supported -- adjust.
5565 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5566 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5567 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5568 (PACKET_QNonStop, PACKET_multiprocess_feature)
5569 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5570 (PACKET_DisconnectedTracing_feature)
5571 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5572 (set_remote_protocol_packet_cmd): Delete function.
5573 (packet_config_support, packet_support): New functions.
5574 (set_remote_protocol_Z_packet_cmd): Don't call
5575 update_packet_config.
5576 (remote_query_attached, remote_pass_signals)
5577 (remote_program_signals, remote_threads_info)
5578 (remote_threads_extra_info, remote_start_remote): Use
5579 packet_support.
5580 (remote_start_remote): Use packet_config_support and
5581 packet_support.
5582 (init_all_packet_configs): Set all packets to unknown support,
5583 instead of calling update_packet_config.
5584 (remote_check_symbols): Use packet_support.
5585 (remote_supported_packet): Unconditionally set the packet config's
5586 support status.
5587 (remote_multi_process_feature, remote_non_stop_feature)
5588 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5589 (remote_breakpoint_commands_feature)
5590 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5591 (remote_install_in_trace_feature)
5592 (remote_disconnected_tracing_feature)
5593 (remote_enable_disable_tracepoint_feature)
5594 (remote_string_tracing_feature)
5595 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5596 (remote_protocol_features): Adjust to use remote_supported_packet
5597 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5598 "ConditionalTracepoints", "ConditionalBreakpoints",
5599 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5600 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5601 "EnableDisableTracepoints", and "tracenz".
5602 (remote_query_supported): Use packet_support.
5603 (remote_open_1): Adjust.
5604 (extended_remote_attach_1): Use packet_support. Switch on the
5605 result of packet_ok instead of checking whether the packet ended
5606 up disabled.
5607 (remote_vcont_resume): Use packet_support.
5608 (remote_resume, remote_stop_ns, fetch_register_using_p)
5609 (remote_prepare_to_store, store_register_using_P)
5610 (check_binary_download, remote_write_bytes): Use packet_support.
5611 (remote_vkill): Use packet_support. Switch on the result of
5612 packet_ok instead of checking whether the packet ended up
5613 disabled.
5614 (extended_remote_supports_disable_randomization): Use
5615 packet_support.
5616 (extended_remote_run): Switch on the result of packet_ok instead
5617 of checking whether the packet ended up disabled.
5618 (remote_insert_breakpoint, remote_remove_breakpoint)
5619 (remote_insert_watchpoint, remote_remove_watchpoint)
5620 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5621 packet_support.
5622 (remote_search_memory): Use packet_config_support.
5623 (remote_get_thread_local_address, remote_get_tib_address)
5624 (remote_hostio_send_command, remote_can_execute_reverse): Use
5625 packet_support.
5626 (remote_supports_cond_tracepoints)
5627 (remote_supports_cond_breakpoints)
5628 (remote_supports_fast_tracepoints)
5629 (remote_supports_static_tracepoints)
5630 (remote_supports_install_in_trace)
5631 (remote_supports_enable_disable_tracepoint)
5632 (remote_supports_string_tracing)
5633 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5634 the packet config says the feature is enabled or disabled.
5635 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5636 (remote_get_trace_status): Use packet_support.
5637 (remote_set_disconnected_tracing): Adjust to check whether the
5638 feature is enabled with packet_support.
5639 (remote_set_trace_buffer_size, remote_use_agent)
5640 (remote_can_use_agent, remote_supports_btrace): Use
5641 packet_support.
5642 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5643 Use packet_config_support.
5644 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5645 the packet config says the feature is enabled or disabled.
5646 (set_range_stepping): Use packet_support.
5647
5648 2014-04-25 Tom Tromey <tromey@redhat.com>
5649
5650 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5651 argument.
5652
5653 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5654
5655 * NEWS: Mention support for C99 variable length arrays.
5656
5657 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5658
5659 * ada-lang.c (standard_exc): Expand introductory comment.
5660
5661 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5662 Walfred Tedeschi <walfred.tedeschi@intel.com>
5663
5664 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5665 AVX512 registers.
5666 (amd64_linux_read_description): Add code to handle AVX512 xstate
5667 mask and return respective tdesc.
5668 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5669 and features/i386/x32-avx512-linux.c.
5670 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5671 (amd64_linux_core_read_description): Add code to handle AVX512
5672 xstate mask and return respective tdesc.
5673 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5674 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5675 calculation.
5676 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5677 (tdesc_amd64_avx512_linux): New prototype.
5678 (tdesc_x32_avx512_linux): Likewise.
5679 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5680 features/i386/x32-avx512.c.
5681 (amd64_ymm_avx512_names): New register names for pseudo
5682 registers YMM16-31.
5683 (amd64_ymmh_avx512_names): New register names for raw registers
5684 YMMH16-31.
5685 (amd64_k_names): New register names for K registers.
5686 (amd64_zmmh_names): New register names for ZMM raw registers.
5687 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5688 (amd64_xmm_avx512_names): New register names for XMM16-31
5689 registers.
5690 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5691 registers.
5692 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5693 if feature is present.
5694 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5695 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5696 (AMD64_NUM_REGS): Adjust to new number of registers.
5697 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5698 registers supplied via XSTATE by AVX512 registers.
5699 (i386_linux_read_description): Add case for AVX512.
5700 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5701 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5702 (i386_linux_core_read_description): Add case for AVX512.
5703 (i386_linux_init_abi): Install supported register note section
5704 for AVX512.
5705 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5706 AVX512.
5707 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5708 registers to be number of zmm7h + 1.
5709 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5710 * i386-tdep.c: Include features/i386/i386-avx512.c.
5711 (i386_zmm_names): Add ZMM pseudo register names array.
5712 (i386_zmmh_names): Add ZMM raw register names array.
5713 (i386_k_names): Add K raw register names array.
5714 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5715 registers. AVX512 has 16 more ZMM registers than there are YMM
5716 registers.
5717 (i386_zmmh_regnum_p): Add function to look up register number of
5718 ZMM raw registers.
5719 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5720 (i386_k_regnum_p): Likewise for K raw registers.
5721 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5722 registers added by AVX512.
5723 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5724 registers added by AVX512.
5725 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5726 added by AVX512.
5727 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5728 (i386_pseudo_register_name): Add ZMM pseudo registers.
5729 (i386_zmm_type): Construct and return vector registers type for ZMM
5730 registers.
5731 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5732 ZMM0-31 pseudo registers and K registers.
5733 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5734 and YMM16-31 registers from register cache.
5735 (i386_pseudo_register_write): Add code to write K, ZMM and
5736 YMM16-31 registers.
5737 (i386_register_reggroup_p): Add code to include/exclude AVX512
5738 registers in/from respective register groups.
5739 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5740 registers if feature is present in xcr0.
5741 (i386_gdbarch_init): Add code to initialize AVX512 feature
5742 variables in tdep structure, wire in pseudo registers and call
5743 initialize_tdesc_i386_avx512.
5744 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5745 variables.
5746 (i386_regnum): Add AVX512 registers.
5747 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5748 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5749 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5750 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5751 512 bits wide.
5752 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5753 (i386_ymm_avx512_regnum_p): Likewise.
5754 (i386_k_regnum_p): Likewise.
5755 (i386_zmm_regnum_p): Likewise.
5756 (i386_zmmh_regnum_p): Likewise.
5757 * i387-tdep.c : Update year in copyright notice.
5758 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5759 XSAVE buffer.
5760 (XSAVE_YMM_AVX512_ADDR): New macro.
5761 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5762 XSAVE buffer.
5763 (XSAVE_XMM_AVX512_ADDR): New macro.
5764 (xsave_avx512_k_offset): New table for K register offsets in
5765 XSAVE buffer.
5766 (XSAVE_AVX512_K_ADDR): New macro.
5767 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5768 in XSAVE buffer.
5769 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5770 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5771 buffer.
5772 (i387_collect_xsave): Add code to collect AVX512 registers from
5773 XSAVE buffer.
5774 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5775 of XMM16-31 registers.
5776 (I387_NUM_K_REGS): New define for number of K registers.
5777 (I387_K0_REGNUM): New define for K0 register number.
5778 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5779 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5780 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5781 registers.
5782 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5783 (I387_XMM16_REGNUM): New define for XMM16 register number.
5784 (I387_YMM0_REGNUM): New define for YMM0 register number.
5785 (I387_KEND_REGNUM): New define for last K register number.
5786 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5787 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5788 number.
5789 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5790 number.
5791 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5792 size.
5793 * features/Makefile: Add AVX512 related files.
5794 * features/i386/32bit-avx512.xml: New file.
5795 * features/i386/64bit-avx512.xml: Likewise.
5796 * features/i386/amd64-avx512-linux.c: Likewise.
5797 * features/i386/amd64-avx512-linux.xml: Likewise.
5798 * features/i386/amd64-avx512.c: Likewise.
5799 * features/i386/amd64-avx512.xml: Likewise.
5800 * features/i386/i386-avx512-linux.c: Likewise.
5801 * features/i386/i386-avx512-linux.xml: Likewise.
5802 * features/i386/i386-avx512.c: Likewise.
5803 * features/i386/i386-avx512.xml: Likewise.
5804 * features/i386/x32-avx512-linux.c: Likewise.
5805 * features/i386/x32-avx512-linux.xml: Likewise.
5806 * features/i386/x32-avx512.c: Likewise.
5807 * features/i386/x32-avx512.xml: Likewise.
5808 * regformats/i386/amd64-avx512-linux.dat: New file.
5809 * regformats/i386/amd64-avx512.dat: Likewise.
5810 * regformats/i386/i386-avx512-linux.dat: Likewise.
5811 * regformats/i386/i386-avx512.dat: Likewise.
5812 * regformats/i386/x32-avx512-linux.dat: Likewise.
5813 * regformats/i386/x32-avx512.dat: Likewise.
5814 * NEWS: Add note about new support for AVX512.
5815
5816
5817 2014-04-23 Pedro Alves <palves@redhat.com>
5818
5819 * breakpoint.c (insert_bp_location): Tolerate errors if the
5820 breakpoint is set in a user-loaded objfile.
5821 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5822 location is marked shlib_disabled. If the breakpoint is set in a
5823 user-loaded objfile is a GDB-side memory breakpoint, validate it
5824 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5825 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5826 flag.
5827 * mem-break.c (memory_validate_breakpoint): New function.
5828 * objfiles.c (userloaded_objfile_contains_address_p): New
5829 function.
5830 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5831 * target.h (memory_validate_breakpoint): New declaration.
5832
5833 2014-04-23 Pedro Alves <palves@redhat.com>
5834
5835 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5836 the breakpoint is set in a shared library, only suppress
5837 errors for software breakpoints, not hardware breakpoints.
5838
5839 2014-04-22 Pedro Alves <palves@redhat.com>
5840
5841 * infrun.c (schedlock_applies): New function, factored out from
5842 find_thread_needs_step_over.
5843 (find_thread_needs_step_over): Use it.
5844 (switch_back_to_stepped_thread): Always clear trap_expected if the
5845 step over is finished. Return early if scheduler locking applies.
5846 Look for the stepping thread and a potential step-over thread with
5847 a single loop.
5848 (currently_stepping_or_nexting_callback): Delete.
5849
5850 2014-04-22 Nick Clifton <nickc@redhat.com>
5851
5852 * NEWS: Mention that ARM sim now supports tracing.
5853
5854 2014-04-22 Yao Qi <yao@codesourcery.com>
5855
5856 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5857 to ...
5858 * tracefile.c (tracefile_fetch_registers): ... it. New
5859 function.
5860 * tracefile.h (tracefile_fetch_registers): Declare.
5861 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5862 tracefile_fetch_registers.
5863
5864 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5865
5866 PR gdb/14018
5867 * windows-nat.c (thread_rec): Don't display a warning when
5868 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5869 fails for any reason, set th->suspended to -1, so that we don't
5870 try to resume such a thread. Also, don't return NULL in these
5871 cases, to avoid completely ruin the session due to "PC register is
5872 not available" error.
5873 (do_windows_fetch_inferior_registers): Check errors in
5874 GetThreadContext call.
5875 (windows_continue): Accept an additional argument KILLED; if not
5876 zero, ignore errors in the SetThreadContext call, since the
5877 inferior was killed and is shutting down.
5878 (windows_resume, get_windows_debug_event)
5879 (windows_create_inferior, windows_mourn_inferior)
5880 (windows_kill_inferior): All callers of windows_continue changed
5881 to adjust to its new calling sequence.
5882
5883 2014-04-19 Yao Qi <yao@codesourcery.com>
5884
5885 * ctf.c (ctf_open): Call post_create_inferior.
5886
5887 2014-04-19 Yao Qi <yao@codesourcery.com>
5888
5889 * ctf.c (handle_id): New static variable.
5890 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5891 value. Get the declaration of event "register" and get length
5892 of field "contents".
5893
5894 2014-04-19 Yao Qi <yao@codesourcery.com>
5895
5896 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5897
5898 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5899
5900 * valops.c (oload_method_static): Remove unnecessary argument
5901 METHOD. Update all callers.
5902
5903 2014-04-18 Pedro alves <palves@redhat.com>
5904 Tom Tromey <tromey@redhat.com>
5905
5906 PR backtrace/15558
5907 * frame.c (get_prev_frame_1): Rename to ...
5908 (get_prev_frame_always): ... this, and make extern. Adjust.
5909 (skip_artificial_frames): Use get_prev_frame_always.
5910 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5911 (get_frame_unwind_stop_reason): Adjust to rename.
5912 * frame.h (get_prev_frame_always): Declare.
5913 * inline-frame.c: Include frame.h.
5914 (inline_frame_this_id): Use get_prev_frame_always.
5915
5916 2014-04-18 Tristan Gingold <gingold@adacore.com>
5917
5918 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5919 code by using bfd_mach_o_get_base_address.
5920
5921 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5922
5923 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5924 (spu_ax_pseudo_register_collect): New function.
5925 (spu_ax_pseudo_register_push_stack): Likewise.
5926 (spu_dwarf_reg_to_regnum): Likewise.
5927 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5928
5929 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5930
5931 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5932 Replace FRAME argument with FRAME_ID.
5933 * gdbarch.c, gdbarch.h: Regenerate.
5934 * findvar.c (default_value_from_register): Add GDBARCH argument;
5935 replace FRAME by FRAME_ID. No longer call get_frame_id.
5936 (value_from_register): Update call to gdbarch_value_from_register.
5937 * value.h (default_value_from_register): Update prototype.
5938 * s390-linux-tdep.c (s390_value_from_register): Update interface
5939 and call to default_value_from_register.
5940 * spu-tdep.c (spu_value_from_register): Likewise.
5941
5942 * findvar.c (address_from_register): Remove TYPE argument.
5943 Do not call value_from_register; use gdbarch_value_from_register
5944 with null_frame_id instead.
5945 * value.h (address_from_register): Update prototype.
5946 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5947 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5948 address_from_register interface change.
5949
5950 2014-04-17 Yao Qi <yao@codesourcery.com>
5951
5952 * gdbtypes.h: Update comments to link to types and macros'
5953 definitions.
5954
5955 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5956
5957 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5958
5959 2014-04-16 Keith Seitz <keiths@redhat.com>
5960
5961 PR gdb/15827
5962 * dwarf2read.c (skip_one_die): Check that all relative-offset
5963 sibling DIEs fall within range of the current reader's buffer.
5964 (read_partial_die): Likewise.
5965
5966 2014-04-16 Keith Seitz <keiths@redhat.com>
5967
5968 PR c++/16597
5969 * cp-namespace.c (lookup_symbol_file): If the type name of
5970 `this' is NULL, return immediately.
5971
5972 2014-04-14 Keith Seitz <keiths@redhat.com>
5973
5974 PR c++/16253
5975 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5976 from symbol_matches_domain in symtab.c. All local callers
5977 of symbol_matches_domain updated.
5978 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5979 search STRUCT_DOMAIN.
5980 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5981 independently. standard_lookup will do that automatically.
5982 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5983 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5984 (cp_lookup_symbol_in_namespace): Likewise.
5985 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5986 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5987 may return a STRUCT_DOMAIN match.
5988 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5989 * cp-support.c: Include language.h.
5990 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5991 VAR_DOMAIN.
5992 * psymtab.c (match_partial_symbol): Compare the requested
5993 domain with the symbol's domain directly.
5994 (lookup_partial_symbol): Likewise.
5995 * symtab.c (lookup_symbol_in_language): Explain when/why
5996 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5997 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5998 appropriate languages.
5999 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6000 and moved to ada-lang.c
6001 (lookup_block_symbol): Explain that this function only returns
6002 symbol matching the requested DOMAIN.
6003 Compare the requested domain with the symbol's domain directly.
6004 (iterate_over_symbols): Compare the requested domain with the
6005 symbol's domain directly.
6006 * symtab.h (symbol_matches_domain): Remove.
6007
6008 2014-04-14 Tom Tromey <tromey@redhat.com>
6009
6010 PR c++/15246:
6011 * c-exp.y (type_aggregate_p): New function.
6012 (qualified_name, classify_inner_name): Use it.
6013 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6014 and TYPE_TARGET_TYPE of an enum type.
6015 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6016 an enum type.
6017 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6018 handle TYPE_DECLARED_CLASS.
6019 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6020 types.
6021 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6022 * valops.c (enum_constant_from_type): New function.
6023 (value_aggregate_elt): Use it.
6024 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6025 TYPE_CODE_ENUM.
6026
6027 2014-04-14 Tom Tromey <tromey@redhat.com>
6028
6029 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6030 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6031 const.
6032 * value.h (value_aggregate_elt): Update.
6033
6034 2014-04-14 Tom Tromey <tromey@redhat.com>
6035
6036 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6037
6038 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6039
6040 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6041 (evaluate_subexp_standard): Pass noside argument.
6042 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6043 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6044 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6045 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6046 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6047
6048 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6049
6050 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6051 points to a constant blob.
6052
6053 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6054
6055 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6056 property and store it as the high bound and flag the range accordingly.
6057 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6058 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6059 * gdbtypes.h (enum range_flags): New enum.
6060 (struct range_bounds): Add flags member.
6061
6062 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6063
6064 * c-typeprint.c (c_type_print_varspec_suffix): Added
6065 check for not yet resolved high bound. If unresolved, print
6066 "variable length" string to the console instead of random
6067 length.
6068
6069 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6070
6071 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6072 value.
6073 (ada_template_to_fixed_record_type_1): Likewise.
6074 (ada_to_fixed_type_1): Likewise.
6075 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6076 (cp_print_value): Likewise.
6077 * d-valprint.c (dynamic_array_type): Likewise.
6078 * findvar.c (address_of_variable): Likewise.
6079 * jv-valprint.c (java_value_print): Likewise.
6080 * valops.c (value_ind): Likewise.
6081 * value.c (coerce_ref): Likewise.
6082
6083 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6084
6085 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6086 value and retrieve the dynamic type size.
6087
6088 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6089
6090 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6091 passed to sizeof is dynamic evaluate the argument to compute the length.
6092
6093 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6094 Joel Brobecker <brobecker@adacore.com>
6095
6096 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6097 (dwarf2_evaluate_property): New function.
6098 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6099 * dwarf2read.c (attr_to_dynamic_prop): New function.
6100 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6101 attribute.
6102 * gdbtypes.c: Include dwarf2loc.h.
6103 (is_dynamic_type): New function.
6104 (resolve_dynamic_type): New function.
6105 (resolve_dynamic_bounds): New function.
6106 (get_type_length): New function.
6107 (check_typedef): Use get_type_length to compute type length.
6108 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6109 (TYPE_LOW_BOUND_KIND): New macro.
6110 (is_dynamic_type): New function prototype.
6111 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6112 to resolve dynamic properties of the type. Update comment.
6113 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6114
6115 2014-04-14 Richard Henderson <rth@redhat.com>
6116
6117 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6118
6119 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6120 Doug Evans <xdje42@gmail.com>
6121
6122 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6123 dereference TYPE_CODE_REF values.
6124
6125 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6126
6127 Revert the following changes due to regressions:
6128
6129 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6130 (dwarf2_evaluate_property): New function.
6131 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6132 * dwarf2read.c (attr_to_dynamic_prop): New function.
6133 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6134 attribute.
6135 * gdbtypes.c: Include dwarf2loc.h.
6136 (is_dynamic_type): New function.
6137 (resolve_dynamic_type): New function.
6138 (resolve_dynamic_bounds): New function.
6139 (get_type_length): New function.
6140 (check_typedef): Use get_type_length to compute type length.
6141 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6142 (TYPE_LOW_BOUND_KIND): New macro.
6143 (is_dynamic_type): New function prototype.
6144 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6145 to resolve dynamic properties of the type. Update comment.
6146 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6147
6148 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6149 passed to sizeof is dynamic evaluate the argument to compute the length.
6150
6151 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6152 value and retrieve the dynamic type size.
6153
6154 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6155 (ada_template_to_fixed_record_type_1): Likewise.
6156 (ada_to_fixed_type_1): Likewise.
6157 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6158 (cp_print_value): Likewise.
6159 * d-valprint.c (dynamic_array_type): Likewise.
6160 * eval.c (evaluate_subexp_with_coercion): Likewise.
6161 * findvar.c (address_of_variable): Likewise.
6162 * jv-valprint.c (java_value_print): Likewise.
6163 * valops.c (value_ind): Likewise.
6164 * value.c (coerce_ref): Likewise.
6165
6166 * c-typeprint.c (c_type_print_varspec_suffix): Added
6167 check for not yet resolved high bound. If unresolved, print
6168 "variable length" string to the console instead of random
6169 length.
6170
6171 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6172 property and store it as the high bound and flag the range accordingly.
6173 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6174 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6175 * gdbtypes.h (enum range_flags): New enum.
6176 (struct range_bounds): Add flags member.
6177
6178 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6179 points to a constant blob.
6180
6181 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6182 (evaluate_subexp_standard): Pass noside argument.
6183 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6184 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6185 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6186 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6187 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6188
6189 2014-04-11 Keith Seitz <keiths@redhat.com>
6190
6191 PR c++/16675
6192 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6193 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6194 reference types.
6195
6196 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6197
6198 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6199 (evaluate_subexp_standard): Pass noside argument.
6200 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6201 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6202 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6203 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6204 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6205
6206 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6207
6208 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6209 points to a constant blob.
6210
6211 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6212
6213 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6214 property and store it as the high bound and flag the range accordingly.
6215 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6216 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6217 * gdbtypes.h (enum range_flags): New enum.
6218 (struct range_bounds): Add flags member.
6219
6220 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6221
6222 * c-typeprint.c (c_type_print_varspec_suffix): Added
6223 check for not yet resolved high bound. If unresolved, print
6224 "variable length" string to the console instead of random
6225 length.
6226
6227 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6228
6229 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6230 (ada_template_to_fixed_record_type_1): Likewise.
6231 (ada_to_fixed_type_1): Likewise.
6232 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6233 (cp_print_value): Likewise.
6234 * d-valprint.c (dynamic_array_type): Likewise.
6235 * eval.c (evaluate_subexp_with_coercion): Likewise.
6236 * findvar.c (address_of_variable): Likewise.
6237 * jv-valprint.c (java_value_print): Likewise.
6238 * valops.c (value_ind): Likewise.
6239 * value.c (coerce_ref): Likewise.
6240
6241 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6242
6243 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6244 value and retrieve the dynamic type size.
6245
6246 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6247
6248 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6249 passed to sizeof is dynamic evaluate the argument to compute the length.
6250
6251 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6252
6253 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6254 (dwarf2_evaluate_property): New function.
6255 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6256 * dwarf2read.c (attr_to_dynamic_prop): New function.
6257 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6258 attribute.
6259 * gdbtypes.c: Include dwarf2loc.h.
6260 (is_dynamic_type): New function.
6261 (resolve_dynamic_type): New function.
6262 (resolve_dynamic_bounds): New function.
6263 (get_type_length): New function.
6264 (check_typedef): Use get_type_length to compute type length.
6265 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6266 (TYPE_LOW_BOUND_KIND): New macro.
6267 (is_dynamic_type): New function prototype.
6268 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6269 to resolve dynamic properties of the type. Update comment.
6270 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6271
6272 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6273
6274 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6275 declaring high/low bounds and change uses accordingly. Call
6276 create_range_type instead of create_static_range_type.
6277 * gdbtypes.c (create_range_type): New function.
6278 (create_range_type): Convert bounds into struct bound_prop and pass
6279 them to create_range_type.
6280 * gdbtypes.h (struct bound_prop): New struct.
6281 (create_range_type): New function prototype.
6282 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6283 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6284 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6285 part of the bound.
6286 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6287
6288 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6289
6290 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6291 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6292 * ada-lang.c: All uses of create_range_type updated.
6293 * coffread.c: All uses of create_range_type updated.
6294 * dwarf2read.c: All uses of create_range_type updated.
6295 * f-exp.y: All uses of create_range_type updated.
6296 * m2-valprint.c: All uses of create_range_type updated.
6297 * mdebugread.c: All uses of create_range_type updated.
6298 * stabsread.c: All uses of create_range_type updated.
6299 * valops.c: All uses of create_range_type updated.
6300 * valprint.c: All uses of create_range_type updated.
6301
6302 2014-04-10 Pedro Alves <palves@redhat.com>
6303
6304 * breakpoint.c (single_step_breakpoints)
6305 (single_step_gdbarch): Move up in the file.
6306 (one_breakpoint_xfer_memory): New function, factored out from ...
6307 (breakpoint_xfer_memory): ... here. Also process single-step
6308 breakpoints.
6309
6310 2014-04-09 Tristan Gingold <gingold@adacore.com>
6311
6312 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6313 comments.
6314 (darwin_decode_exception_message): Free port only after use.
6315
6316 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6317
6318 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6319 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6320 when setting the size of call_length.
6321
6322 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6323
6324 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6325 dereference TYPE_CODE_REF values.
6326
6327 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6328
6329 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6330 end of warning message.
6331
6332 2014-04-03 Doug Evans <dje@google.com>
6333
6334 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6335 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6336
6337 2014-04-02 Alan Modra <amodra@gmail.com>
6338
6339 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6340 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6341 (struct symbol_file_add_from_memory_args): Add size field.
6342 (find_vdso_size): New function.
6343 (add_vsyscall_page): Attempt to find vdso size.
6344
6345 2014-04-01 Doug Evans <dje@google.com>
6346
6347 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6348
6349 2014-04-01 Tristan Gingold <gingold@adacore.com>
6350
6351 * darwin-nat.c (darwin_encode_reply): Add prototype.
6352 (darwin_decode_exception_message): Reply to unknown inferiors.
6353 (darwin_decode_message): Handle message by id. Ignore message
6354 to unknown inferior.
6355 (darwin_wait): Discard unknown messages, add debug trace.
6356
6357 2014-03-31 Doug Evans <dje@google.com>
6358
6359 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6360 comp_dir_string.
6361
6362 2014-03-31 Doug Evans <dje@google.com>
6363
6364 New option "set print symbol-loading".
6365 * NEWS: Mention it.
6366 * solib.c (solib_read_symbols): Only print symbol loading messages
6367 if requested.
6368 (solib_add): If symbol loading is in "brief" mode, notify user
6369 symbols are being loaded.
6370 (reload_shared_libraries_1): Ditto.
6371 * symfile.c (print_symbol_loading_off): New static global.
6372 (print_symbol_loading_brief): New static global.
6373 (print_symbol_loading_full): New static global.
6374 (print_symbol_loading_enums): New static global.
6375 (print_symbol_loading): New static global.
6376 (print_symbol_loading_p): New function.
6377 (symbol_file_add_with_addrs): Only print symbol loading messages
6378 if requested.
6379 (_initialize_symfile): Register "print symbol-loading" set/show
6380 command.
6381 * symfile.h (print_symbol_loading_p): Declare.
6382
6383 2014-03-30 Doug Evans <xdje42@gmail.com>
6384
6385 * infrun.c (set_last_target_status): New function.
6386 (handle_inferior_event): Call it.
6387
6388 2014-03-30 Doug Evans <xdje42@gmail.com>
6389
6390 * inferior.h (enum stop_kind): Improve comment.
6391
6392 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6393
6394 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6395 a reference, strip the reference layer before calling
6396 the lang_ops value_has_mutated callback.
6397
6398 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6399
6400 Remove some globals from our parser.
6401 * language.c (unk_lang_parser): Add "struct parser_state"
6402 argument.
6403 * language.h (struct language_defn) <la_parser>: Likewise.
6404 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6405 (initialize_expout): Add "struct parser_state" argument.
6406 Rewrite function to use the parser state.
6407 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6408 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6409 write_exp_elt_longcst, write_exp_elt_dblcst,
6410 write_exp_elt_decfloatcst, write_exp_elt_type,
6411 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6412 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6413 write_dollar_variable): Likewise.
6414 (parse_exp_in_context_1): Use parser state.
6415 (insert_type_address_space): Add "struct parser_state" argument.
6416 Use parser state.
6417 (increase_expout_size): New function.
6418 * parser-defs.h: Forward declare "struct language_defn" and
6419 "struct parser_state".
6420 (expout, expout_size, expout_ptr): Remove extern declarations.
6421 (parse_gdbarch, parse_language): Rewrite macro declarations to
6422 accept the parser state.
6423 (struct parser_state): New struct.
6424 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6425 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6426 write_exp_elt_decfloatcst, write_exp_elt_type,
6427 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6428 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6429 write_exp_msymbol, write_dollar_variable,
6430 mark_struct_expression, insert_type_address_space): Add "struct
6431 parser_state" argument.
6432 (increase_expout_size): New function.
6433 * utils.c (do_clear_parser_state): New function.
6434 (make_cleanup_clear_parser_state): Likewise.
6435 * utils.h (make_cleanup_clear_parser_state): New function
6436 prototype.
6437 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6438 Update calls to write_exp* in order to pass the parser state.
6439 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6440 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6441 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6442 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6443 * stap-probe.c (stap_parse_register_operand): Likewise.
6444 (stap_parse_single_operand): Likewise.
6445 (stap_parse_argument_1): Likewise.
6446 (stap_parse_argument): Use parser state.
6447 * stap-probe.h: Include "parser-defs.h".
6448 (struct stap_parse_info) <pstate>: New field.
6449 * c-exp.y (parse_type): Rewrite to use parser state.
6450 (yyparse): Redefine to c_parse_internal.
6451 (pstate): New global variable.
6452 (parse_number): Add "struct parser_state" argument.
6453 (write_destructor_name): Likewise.
6454 (type_exp): Update calls to write_exp* and similars in order to
6455 use parser state.
6456 (exp1, exp, variable, qualified_name, space_identifier,
6457 typename, typebase): Likewise.
6458 (write_destructor_name, parse_number, lex_one_token,
6459 classify_name, classify_inner_name, c_parse): Add "struct
6460 parser_state" argument. Update function to use parser state.
6461 * c-lang.h: Forward declare "struct parser_state".
6462 (c_parse): Add "struct parser_state" argument.
6463 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6464 (yyparse): Redefine macro to ada_parse_internal.
6465 (pstate): New variable.
6466 (write_int, write_object_renaming, write_var_or_type,
6467 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6468 type_int, type_long, type_long_long, type_float, type_double,
6469 type_long_double, type_char, type_boolean, type_system_address):
6470 Add "struct parser_state" argument.
6471 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6472 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6473 var_or_type, aggregate, aggregate_component_list,
6474 positional_list, others, component_group,
6475 component_associations): Update calls to write_exp* and similar
6476 functions in order to use parser state.
6477 (ada_parse, write_var_from_sym, write_int,
6478 write_exp_op_with_string, write_object_renaming,
6479 find_primitive_type, write_selectors, write_ambiguous_var,
6480 write_var_or_type, write_name_assoc, type_int, type_long,
6481 type_long_long, type_float, type_double, type_long_double,
6482 type_char, type_boolean, type_system_address): Add "struct
6483 parser_state" argument. Adjust function to use parser state.
6484 * ada-lang.c (parse): Likewise.
6485 * ada-lang.h: Forward declare "struct parser_state".
6486 (ada_parse): Add "struct parser_state" argument.
6487 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6488 calls to both functions.
6489 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6490 parser state.
6491 (yyparse): Redefine macro to f_parse_internal.
6492 (pstate): New variable.
6493 (parse_number): Add "struct parser_state" argument.
6494 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6495 and similars in order to use parser state.
6496 (parse_number): Adjust code to use parser state.
6497 (yylex): Likewise.
6498 (f_parse): New function.
6499 * f-lang.h: Forward declare "struct parser_state".
6500 (f_parse): Add "struct parser_state" argument.
6501 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6502 parser state.
6503 (yyparse): Redefine macro for java_parse_internal.
6504 (pstate): New variable.
6505 (push_expression_name, push_expression_name, insert_exp): Add
6506 "struct parser_state" argument.
6507 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6508 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6509 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6510 PostIncrementExpression, PostDecrementExpression,
6511 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6512 UnaryExpressionNotPlusMinus, CastExpression,
6513 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6514 RelationalExpression, EqualityExpression, AndExpression,
6515 ExclusiveOrExpression, InclusiveOrExpression,
6516 ConditionalAndExpression, ConditionalOrExpression,
6517 ConditionalExpression, Assignment, LeftHandSide): Update
6518 calls to write_exp* and similars in order to use parser state.
6519 (parse_number): Ajust code to use parser state.
6520 (yylex): Likewise.
6521 (java_parse): New function.
6522 (push_variable): Add "struct parser_state" argument. Adjust
6523 code to user parser state.
6524 (push_fieldnames, push_qualified_expression_name,
6525 push_expression_name, insert_exp): Likewise.
6526 * jv-lang.h: Forward declare "struct parser_state".
6527 (java_parse): Add "struct parser_state" argument.
6528 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6529 parser state.
6530 (yyparse): Redefine macro to m2_parse_internal.
6531 (pstate): New variable.
6532 (type_exp, exp, fblock, variable, type): Update calls to
6533 write_exp* and similars to use parser state.
6534 (yylex): Likewise.
6535 (m2_parse): New function.
6536 * m2-lang.h: Forward declare "struct parser_state".
6537 (m2_parse): Add "struct parser_state" argument.
6538 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6539 * objc-lang.h: Forward declare "struct parser_state".
6540 (end_msglist): Add "struct parser_state" argument.
6541 * p-exp.y (parse_type): Rewrite macro to use parser state.
6542 (yyparse): Redefine macro to pascal_parse_internal.
6543 (pstate): New variable.
6544 (parse_number): Add "struct parser_state" argument.
6545 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6546 write_exp* and similars in order to use parser state.
6547 (parse_number, yylex): Adjust code to use parser state.
6548 (pascal_parse): New function.
6549 * p-lang.h: Forward declare "struct parser_state".
6550 (pascal_parse): Add "struct parser_state" argument.
6551 * go-exp.y (parse_type): Rewrite macro to use parser state.
6552 (yyparse): Redefine macro to go_parse_internal.
6553 (pstate): New variable.
6554 (parse_number): Add "struct parser_state" argument.
6555 (type_exp, exp1, exp, variable, type): Update calls to
6556 write_exp* and similars in order to use parser state.
6557 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6558 to use parser state.
6559 (go_parse): Likewise.
6560 * go-lang.h: Forward declare "struct parser_state".
6561 (go_parse): Add "struct parser_state" argument.
6562
6563 2014-03-27 Doug Evans <dje@google.com>
6564
6565 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6566
6567 2014-03-27 Doug Evans <dje@google.com>
6568
6569 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6570 Remove argument abbrev_section. All callers updated.
6571
6572 2014-03-27 Doug Evans <dje@google.com>
6573
6574 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6575 addr_base, ranges_base.
6576
6577 2014-03-26 Keith Seitz <keiths@redhat.com>
6578
6579 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6580 types, not VAR_DOMAIN.
6581
6582 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6583
6584 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6585 "ra" registers.
6586 * features/nios2-linux.c: Regenerated.
6587 * features/nios2.c: Regenerated.
6588
6589 2014-03-25 Pedro Alves <palves@redhat.com>
6590
6591 * cli/cli-script.c (script_from_file): Force the interpreter to
6592 sync mode.
6593
6594 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6595
6596 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6597 small stack allocation.
6598
6599 2014-03-24 Tristan Gingold <gingold@adacore.com>
6600
6601 * darwin-nat.c (exc_server): Remove unused prototype.
6602 (darwin_dump_message): Correctly display data on x86_64.
6603 (darwin_encode_reply): Fix style.
6604 Add comments and fix indentation.
6605
6606 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6607
6608 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6609
6610 2014-03-22 Doug Evans <xdje42@gmail.com>
6611
6612 * infcmd.c: Whitespace fixes.
6613 (interrupt_command): Merge two function comments into one.
6614
6615 2014-03-22 Doug Evans <xdje42@gmail.com>
6616
6617 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6618 All uses updated.
6619
6620 2014-03-22 Yao Qi <yao@codesourcery.com>
6621
6622 * remote.c (target_read_live_memory): Remove.
6623 (memory_xfer_live_readonly_partial): Rename it to
6624 remote_xfer_live_readonly_partial. Remove argument 'object'.
6625 All callers updated. Call remote_read_bytes_1
6626 instead of target_read_live_memory.
6627 * tracepoint.c (set_traceframe_number): Remove.
6628 (make_cleanup_restore_traceframe_number): Likewise .
6629 * tracepoint.h (set_traceframe_number): Remove declaration.
6630 (make_cleanup_restore_traceframe_number): Likewise.
6631
6632 2014-03-22 Yao Qi <yao@codesourcery.com>
6633
6634 * remote.c (remote_read_bytes): Move code on reading from the
6635 remote stub to ...
6636 (remote_read_bytes_1): ... here. New function.
6637
6638 2014-03-22 Yao Qi <yao@codesourcery.com>
6639
6640 * ctf.c (ctf_xfer_partial): Check the return value of
6641 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6642 return TARGET_XFER_UNAVAILABLE.
6643 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6644 * target.c (target_read_live_memory): Move it to remote.c.
6645 (memory_xfer_live_readonly_partial): Likewise.
6646 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6647 * remote.c (target_read_live_memory): Moved from target.c.
6648 (memory_xfer_live_readonly_partial): Likewise.
6649 (remote_read_bytes): Factored out from
6650 memory_xfer_partial_1.
6651
6652 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6653
6654 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6655 NULL pointer.
6656
6657 2014-03-21 Pedro Alves <palves@redhat.com>
6658
6659 * infrun.c (normal_stop): Extend comment.
6660
6661 2014-03-21 Hui Zhu <hui@codesourcery.com>
6662 Pedro Alves <palves@redhat.com>
6663
6664 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6665 static buffer.
6666 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6667 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6668 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6669
6670 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6671
6672 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6673 `z' formatted output modifier.
6674
6675 2014-03-20 Tom Tromey <tromey@redhat.com>
6676 Sergio Durigan Junior <sergiodj@redhat.com>
6677
6678 * probe.c (parse_probes): Turn assert into an ordinary error.
6679 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6680 exceptions when parsing probes. Rearrange the code for clarity.
6681
6682 2014-03-20 Tom Tromey <tromey@redhat.com>
6683
6684 PR gdb/14135
6685 * top.c (execute_command): Only dispatch events if the command
6686 started the target.
6687
6688 2014-03-20 Tom Tromey <tromey@redhat.com>
6689
6690 PR cli/15718
6691 * infcall.c: Include event-top.h.
6692 (run_inferior_call): Call async_disable_stdin if needed.
6693
6694 2014-03-20 Pedro Alves <palves@redhat.com>
6695
6696 * infrun.c (prepare_to_proceed): Delete.
6697 (thread_still_needs_step_over): New function.
6698 (find_thread_needs_step_over): New function.
6699 (proceed): If the current thread needs a step-over, set its
6700 steping_over_breakpoint flag. Adjust to use
6701 find_thread_needs_step_over instead of prepare_to_proceed.
6702 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6703 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6704 breakpoint.
6705 (switch_back_to_stepped_thread): Step over breakpoints of all
6706 threads not the stepping thread, before switching back to the
6707 stepping thread.
6708
6709 2014-03-20 Pedro Alves <palves@redhat.com>
6710
6711 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6712 extern.
6713 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6714 * infrun.c (saved_singlestep_ptid)
6715 (stepping_past_singlestep_breakpoint): Delete.
6716 (resume): Remove stepping_past_singlestep_breakpoint handling.
6717 (proceed): Store the prev_pc of the stepping thread too.
6718 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6719 singlestep_pc.
6720 (enum infwait_states): Delete infwait_thread_hop_state.
6721 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6722 field.
6723 (handle_inferior_event): Adjust.
6724 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6725 handling and the thread-hop code. Before removing single-step
6726 breakpoints, check whether the thread hit a single-step breakpoint
6727 of another thread. If it did, the trap is not a random signal.
6728 (switch_back_to_stepped_thread): If the event thread hit a
6729 single-step breakpoint, unblock it before switching to the
6730 stepping thread. Handle the case of the stepped thread having
6731 advanced already.
6732 (keep_going): Handle the case of the current thread moving past a
6733 single-step breakpoint.
6734
6735 2014-03-20 Pedro Alves <palves@redhat.com>
6736
6737 PR breakpoints/7143
6738 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6739 are being stepped over.
6740 (breakpoint_address_match): Make extern.
6741 * breakpoint.h (breakpoint_address_match): New declaration.
6742 * inferior.h (stepping_past_instruction_at): New declaration.
6743 * infrun.c (struct step_over_info): New type.
6744 (step_over_info): New global.
6745 (set_step_over_info, clear_step_over_info)
6746 (stepping_past_instruction_at): New functions.
6747 (handle_inferior_event): Clear the step-over info when
6748 trap_expected is cleared.
6749 (resume): Remove now stale comment.
6750 (clear_proceed_status): Clear step-over info.
6751 (proceed): Adjust step-over handling to set or clear the step-over
6752 info instead of removing all breakpoints.
6753 (handle_signal_stop): When setting up a thread-hop, don't remove
6754 breakpoints here.
6755 (stop_stepping): Clear step-over info.
6756 (keep_going): Adjust step-over handling to set or clear step-over
6757 info and then always inserting breakpoints, instead of removing
6758 all breakpoints when stepping over one.
6759
6760 2014-03-20 Pedro Alves <palves@redhat.com>
6761
6762 * infrun.c (previous_inferior_ptid): Adjust comment.
6763 (deferred_step_ptid): Delete.
6764 (infrun_thread_ptid_changed, prepare_to_proceed)
6765 (init_wait_for_inferior): Adjust.
6766 (handle_signal_stop): Delete deferred_step_ptid handling.
6767
6768 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6769
6770 PR gdb/15358
6771 * defs.h (sync_quit_force_run): New declaration.
6772 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6773 * event-top.c (async_sigterm_handler): New declaration.
6774 (async_sigterm_token): New variable.
6775 (async_init_signals): Create also async_sigterm_token.
6776 (async_sigterm_handler): New function.
6777 (sync_quit_force_run): New variable.
6778 (handle_sigterm): Replace quit_force call by other calls.
6779 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6780
6781 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6782
6783 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6784 offset into SPE pseudo registers.
6785
6786 2014-03-18 Pedro Alves <palves@redhat.com>
6787
6788 PR gdb/13860
6789 * inferior.h (print_stop_event): Declare.
6790 * infrun.c (print_stop_event): New, factored out from ...
6791 (normal_stop): ... this.
6792 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6793 of bpstat_print/print_stack_frame.
6794
6795 2014-03-17 Tom Tromey <tromey@redhat.com>
6796
6797 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6798
6799 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6800
6801 * ada-lang.c (decode_constrained_packed_array): Perform a
6802 minimal coercion for reference with coerce_ref instead of
6803 ada_coerce_ref.
6804
6805 2014-03-17 Tristan Gingold <gingold@adacore.com>
6806
6807 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6808 (darwin_solib_create_inferior_hook): Emit a warning if version
6809 is unhandled.
6810
6811 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6812
6813 * python/py-value.c (get_field_flag): Cast flag_name argument to
6814 PyObject_GetAttrString to support Python 2.4.
6815
6816 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6817
6818 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6819 (Global Maintainers): Remove Jan Kratochvil.
6820
6821 2014-03-14 Pedro Alves <palves@redhat.com>
6822
6823 * inferior.h (terminal_ours_for_output): Rename to ...
6824 (child_terminal_ours_for_output): ... this.
6825 (terminal_save_ours): Rename to ...
6826 (child_terminal_save_ours): ... this.
6827 (terminal_ours): Rename to ...
6828 (child_terminal_ours): ... this.
6829 (terminal_inferior): Rename to ...
6830 (child_terminal_inferior): ... this.
6831 (terminal_init_inferior): Rename to ...
6832 (child_terminal_init_inferior): ... this.
6833 (terminal_init_inferior_with_pgrp): Rename to ...
6834 (child_terminal_init_inferior_with_pgrp): ... this.
6835 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6836 (child_terminal_init_with_pgrp): ... this.
6837 (terminal_save_ours): Rename to ...
6838 (child_terminal_save_ours): ... this.
6839 (terminal_init_inferior): Rename to ...
6840 (child_terminal_init): ... this. Adjust.
6841 (terminal_inferior): Rename to ...
6842 (child_terminal_inferior): ... this.
6843 (terminal_ours_for_output): Rename to ...
6844 (child_terminal_ours_for_output): ... this. Adjust.
6845 (terminal_ours): Rename to ...
6846 (child_terminal_ours): ... this.
6847 (terminal_ours_1): Rename to ...
6848 (child_terminal_ours_1): ... this. Adjust.
6849 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6850 * windows-nat.c (do_initial_windows_stuff): Adjust.
6851 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6852 (gnu_terminal_init): ... this. Adjust.
6853 (gnu_target): Adjust.
6854 * inf-child.c (inf_child_target): Adjust.
6855
6856 2014-03-13 Doug Evans <xdje42@gmail.com>
6857
6858 PR guile/16612
6859 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6860 new eq?-hashtab.
6861
6862 2014-03-13 Doug Evans <xdje42@gmail.com>
6863
6864 * value.c (record_latest_value): Call release_value_or_incref
6865 instead of release_value.
6866
6867 2014-03-13 Pedro Alves <palves@redhat.com>
6868
6869 * procfs.c (procfs_target): Don't override to_shortname,
6870 to_longname or to_doc.
6871
6872 2014-03-13 Pedro Alves <palves@redhat.com>
6873
6874 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6875 Unix in user visible strings.
6876
6877 2014-03-12 Stan Shebs <stan@codesourcery.com>
6878
6879 * gdbtypes.h: Annotate comments for Doxygen, add a page
6880 block comment with some general info.
6881
6882 2014-03-12 Pedro Alves <palves@redhat.com>
6883
6884 * infcmd.c (prepare_execution_command): New function, factored out
6885 from several execution commands.
6886 (run_command_1, continue_command, step_1, jump_command)
6887 (signal_command, until_command, advance_command, finish_command)
6888 (attach_command): Use prepare_execution_command.
6889
6890 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6891
6892 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6893 (MAX_BPTS): Define.
6894 (MAX_WPTS): Define.
6895 (struct arm_linux_thread_points): Removed.
6896 (struct arm_linux_process_info): New.
6897 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6898 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6899 (arm_linux_find_breakpoints_by_tid): Removed.
6900 (struct arch_lwp_info): New.
6901 (arm_linux_find_process_pid): New functions.
6902 (arm_linux_add_process): New functions.
6903 (arm_linux_process_info_get): New functions.
6904 (arm_linux_forget_process): New function.
6905 (arm_linux_get_debug_reg_state): New function.
6906 (struct update_registers_data): New.
6907 (update_registers_callback): New function.
6908 (arm_linux_insert_hw_breakpoint1): Updated.
6909 (arm_linux_remove_hw_breakpoint1): Updated.
6910 (arm_linux_insert_hw_breakpoint): Updated.
6911 (arm_linux_remove_hw_breakpoint): Updated.
6912 (arm_linux_insert_watchpoint): Updated.
6913 (arm_linux_remove_watchpoint): Updated.
6914 (arm_linux_new_thread): Updated.
6915 (arm_linux_prepare_to_resume): New function.
6916 (arm_linux_new_fork): New function.
6917 (_initialize_arm_linux_nat): Updated.
6918
6919 2014-03-12 Pedro Alves <palves@redhat.com>
6920
6921 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6922
6923 2014-03-12 Tom Tromey <tromey@redhat.com>
6924
6925 * inf-child.c (return_zero): New function.
6926 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6927 * aix-thread.c (aix_thread_inferior_created): New function.
6928 (aix_thread_attach): Remove.
6929 (init_aix_thread_ops): Don't set to_attach.
6930 (_initialize_aix_thread): Register inferior_created observer.
6931 * corelow.c (init_core_ops): Don't set to_attach or
6932 to_create_inferior.
6933 * exec.c (init_exec_ops): Don't set to_attach or
6934 to_create_inferior.
6935 * infcmd.c (run_command_1): Use find_run_target. Make direct
6936 target calls.
6937 (attach_command): Use find_attach_target. Make direct target
6938 calls.
6939 * record-btrace.c (init_record_btrace_ops): Don't set
6940 to_create_inferior.
6941 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6942 Remove.
6943 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6944 set to_create_inferior.
6945 * target.c (complete_target_initialization): Add assertion.
6946 (target_create_inferior): Remove.
6947 (find_default_attach, find_default_create_inferior): Remove.
6948 (find_attach_target, find_run_target): New functions.
6949 (find_default_is_async_p, find_default_can_async_p)
6950 (target_supports_non_stop, target_attach): Remove.
6951 (init_dummy_target): Don't set to_create_inferior or
6952 to_supports_non_stop.
6953 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6954 TARGET_DEFAULT_FUNC.
6955 <to_create_inferior>: Add comment.
6956 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6957 TARGET_DEFAULT_RETURN.
6958 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6959 (find_attach_target, find_run_target): Declare.
6960 (target_create_inferior): Remove.
6961 (target_has_execution_1): Update comment.
6962 (target_supports_non_stop): Remove.
6963 * target-delegates.c: Rebuild.
6964
6965 2014-03-12 Pedro Alves <palves@redhat.com>
6966
6967 * inf-child.h: Update comment to not mention Unix.
6968
6969 2014-03-12 Pedro Alves <palves@redhat.com>
6970
6971 * inf-child.c: Update top comment to not mention Unix. Add
6972 generic comment describing how this target is meant to be used.
6973 (inf_child_post_attach, inf_child_post_startup_inferior)
6974 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6975 Unix in comment.
6976
6977 2014-03-12 Pedro Alves <palves@redhat.com>
6978
6979 * nto-procfs.c: Include inf-child.h.
6980 (procfs_ops): Delete global.
6981 (procfs_can_run): Delete method.
6982 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6983 target pointer instead of referencing procfs_ops.
6984 (procfs_prepare_to_store): Delete.
6985 (init_procfs_ops): Delete function.
6986 (procfs_target): New function, based on init_procfs_ops, but
6987 inherit inf_child_target.
6988 (_initialize_procfs): Use procfs_target.
6989
6990 2014-03-12 Pedro Alves <palves@redhat.com>
6991
6992 * windows-nat.c: Include inf-child.h.
6993 (windows_ops): Delete global.
6994 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6995 methods.
6996 (init_windows_ops): Delete function.
6997 (windows_target): New function, based on init_windows_ops, but
6998 inherit inf_child_target.
6999 (_initialize_windows_nat): Use windows_target. Install x86
7000 specific target methods here.
7001
7002 2014-03-10 Doug Evans <xdje42@gmail.com>
7003
7004 * guile/guile.c (call_initialize_gdb_module): New function.
7005 (initialize_guile): Replace call to scm_init_guile with call to
7006 scm_with_guile.
7007
7008 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7009
7010 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7011 in call to TYPE_CODE macro.
7012
7013 2014-03-10 Jerome Guitton <guitton@adacore.com>
7014
7015 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7016 Resolve tagged types to full view.
7017
7018 2014-03-10 Hui Zhu <hui@codesourcery.com>
7019
7020 * target.h (target_insert_breakpoint): Remove "hardware" from its
7021 comments.
7022
7023 2014-03-07 Doug Evans <dje@google.com>
7024
7025 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7026
7027 2014-03-07 Doug Evans <dje@google.com>
7028
7029 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7030 Remove unused local comp_dir_attr. Assert exactly one of
7031 stub_comp_unit_die, stub_comp_dir is non-NULL.
7032
7033 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7034
7035 * target.h (complete_target_initialization, add_target):
7036 Add comment.
7037
7038 2014-03-07 Pedro Alves <palves@redhat.com>
7039
7040 * go32-nat.c: Include inf-child.h.
7041 (go32_ops): Delete global.
7042 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7043 Delete methods.
7044 (go32_create_inferior): Push the passed in target pointer instead
7045 of referencing go32_ops.
7046 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7047 (go32_target): New function, based on init_go32_ops, but inherit
7048 inf_child_target.
7049 (_initialize_go32_nat): Use go32_target. Move parts of
7050 init_go32_ops here.
7051
7052 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7053
7054 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7055 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7056 SYMBOL_VALUE_ADDRESS.
7057 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7058
7059 2014-03-06 Yao Qi <yao@codesourcery.com>
7060
7061 * breakpoint.c (get_tracepoint_by_number): Remove argument
7062 optional_p. All callers updated. Adjust comments. Update
7063 output message.
7064 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7065
7066 2014-03-06 Yao Qi <yao@codesourcery.com>
7067
7068 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7069 early if get_number returns zero. Use 'p' instead of 'args'.
7070
7071 2014-03-06 Yao Qi <yao@codesourcery.com>
7072
7073 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7074 message.
7075
7076 2014-03-06 Yao Qi <yao@codesourcery.com>
7077
7078 PR breakpoints/16508
7079 * tracepoint.c (check_trace_running): New function.
7080 (trace_find_command): Move code to check_trace_running and
7081 call check_trace_running.
7082 (trace_find_pc_command): Likewise.
7083 (trace_find_tracepoint_command): Likewise.
7084 (trace_find_line_command): Likewise.
7085 (trace_find_range_command): Likewise.
7086 * tracepoint.h (check_trace_running): Likewise.
7087 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7088
7089 2014-03-06 Yao Qi <yao@codesourcery.com>
7090
7091 * target.h (struct target_ops) <to_traceframe_info>: Use
7092 TARGET_DEFAULT_NORETURN (tcomplain ()).
7093 * target-delegates.c: Regenerated.
7094
7095 2014-03-05 Pedro Alves <palves@redhat.com>
7096
7097 PR gdb/16575
7098 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7099 void. Update comment.
7100 (dcache_xfer_memory): Delete.
7101 (dcache_read_memory_partial): New, based on the read bits of
7102 dcache_xfer_memory.
7103 (dcache_update): Add status parameter. Use ULONGEST for len, and
7104 adjust. Discard cache lines if the reason for the update was
7105 error.
7106 * dcache.h (dcache_xfer_memory): Delete declaration.
7107 (dcache_read_memory_partial): New declaration.
7108 (dcache_update): Update prototype.
7109 * target.c (raw_memory_xfer_partial): Update the dcache here.
7110 (memory_xfer_partial_1): Don't handle dcache writes here.
7111
7112 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7113
7114 * remote-sim.c (gdbsim_load): Add const to prog.
7115
7116 2014-03-03 Tom Tromey <tromey@redhat.com>
7117
7118 * elfread.c (probe_key): Change to bfd_data.
7119 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7120 now per-BFD, not per-objfile.
7121 * stap-probe.c (stap_probe_destroy): Update comment.
7122 (handle_stap_probe): Allocate on the per-BFD obstack.
7123
7124 2014-03-03 Tom Tromey <tromey@redhat.com>
7125
7126 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7127 * breakpoint.c (create_longjmp_master_breakpoint): Use
7128 get_probe_address.
7129 (add_location_to_breakpoint, bkpt_probe_insert_location)
7130 (bkpt_probe_remove_location): Update.
7131 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7132 * elfread.c (elf_symfile_relocate_probe): Remove.
7133 (elf_probe_fns): Update.
7134 (insert_exception_resume_breakpoint): Change type of "probe"
7135 parameter to bound_probe.
7136 (check_exception_resume): Update.
7137 * objfiles.c (objfile_relocate1): Don't relocate probes.
7138 * probe.c (bound_probe_s): New typedef.
7139 (parse_probes): Use get_probe_address. Set sal's objfile.
7140 (find_probe_by_pc): Return a bound_probe.
7141 (collect_probes): Return a VEC(bound_probe_s).
7142 (compare_probes): Update.
7143 (gen_ui_out_table_header_info): Change type of "probes"
7144 parameter. Update.
7145 (info_probes_for_ops): Update.
7146 (get_probe_address): New function.
7147 (probe_safe_evaluate_at_pc): Update.
7148 * probe.h (struct probe_ops) <get_probe_address>: New field.
7149 <set_semaphore, clear_semaphore>: Add objfile parameter.
7150 (struct probe) <objfile>: Remove field.
7151 <arch>: New field.
7152 <address>: Update comment.
7153 (struct bound_probe): New.
7154 (find_probe_by_pc): Return a bound_probe.
7155 (get_probe_address): Declare.
7156 * solib-svr4.c (struct probe_and_action) <address>: New field.
7157 (hash_probe_and_action, equal_probe_and_action): Update.
7158 (register_solib_event_probe): Add address parameter.
7159 (solib_event_probe_at): Update.
7160 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7161 get_probe_address.
7162 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7163 (stap_get_probe_address): New function.
7164 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7165 (compile_probe_arg): Update.
7166 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7167 address.
7168 (handle_stap_probe): Don't relocate the probe.
7169 (stap_relocate): Remove.
7170 (stap_gen_info_probes_table_values): Update.
7171 (stap_probe_ops): Remove stap_relocate.
7172 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7173 (debug_sym_probe_fns): Update.
7174 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7175 * symtab.c (init_sal): Use memset.
7176 * symtab.h (struct symtab_and_line) <objfile>: New field.
7177 * tracepoint.c (start_tracing, stop_tracing): Update.
7178
7179 2014-03-03 Tom Tromey <tromey@redhat.com>
7180
7181 * probe.h (parse_probes, find_probe_by_pc)
7182 (find_probes_in_objfile): Fix comments.
7183
7184 2014-03-02 Doug Evans <xdje42@gmail.com>
7185
7186 * infrun.c (handle_signal_stop): Replace test for
7187 TARGET_WAITKIND_STOPPED with an assert.
7188
7189 2014-03-02 Doug Evans <xdje42@gmail.com>
7190
7191 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7192
7193 2014-03-02 Doug Evans <xdje42@gmail.com>
7194
7195 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7196
7197 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7198
7199 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7200
7201 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7202
7203 * i386obsd-nat.c: Include "obsd-nat.h".
7204 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7205 add_target.
7206 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7207
7208 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7209
7210 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7211
7212 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7213
7214 * mips64obsd-nat.c: Include "obsd-nath".
7215 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7216 add_target
7217 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7218
7219 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7220
7221 * amd64obsd-nat.c: Include "obsd-nat,h.
7222 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7223 add_target.
7224 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7225
7226 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7227
7228 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7229 (find_overload_match): Update call to find_oload_champ.
7230 (find_oload_champ_namespace_loop): Likewise
7231
7232 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7233
7234 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7235
7236 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7237 * config/sparc/obsd64.mh: New file.
7238 * sparc64obsd-nat.c: New file.
7239
7240 * obsd-nat.h: New file.
7241 * obsd-nat.c: New file.
7242 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7243 (ALLDEPFILES): Add obsd-nat.c.
7244
7245 2014-02-28 Tom Tromey <tromey@redhat.com>
7246
7247 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7248 * cli-out.h (cli_ui_out_impl): Now const.
7249 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7250 * ui-out.c (struct ui_out) <impl>: Now const.
7251 (default_ui_out_impl): Now const.
7252 (ui_out_new): Make 'impl' parameter const.
7253 * ui-out.h (ui_out_new): Update.
7254
7255 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7256
7257 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7258
7259 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7260
7261 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7262
7263 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7264
7265 Additional PR 8882 fix.
7266 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7267
7268 2014-02-27 Pedro Alves <palves@redhat.com>
7269
7270 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7271 isn't set.
7272
7273 2014-02-27 Pedro Alves <palves@redhat.com>
7274
7275 PR 12702
7276 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7277 * nat/linux-waitpid.c: Include string.h.
7278 (status_to_str): Moved here and made extern.
7279 * nat/linux-waitpid.h (status_to_str): New declaration.
7280
7281 2014-02-27 Hui Zhu <hui@codesourcery.com>
7282
7283 PR 12702
7284 * infrun.c (ptid_match): Move ...
7285 * common/ptid.c (ptid_match): ... here.
7286 * inferior.h (ptid_match): Move ...
7287 * common/ptid.h (ptid_match): ... here.
7288
7289 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7290
7291 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7292 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7293 gdb_target_obs.
7294
7295 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7296
7297 * obsd-tdep.c (obsd_auxv_parse): New function.
7298 (obsd_init_abi): Set auxv_parse.
7299
7300 * gdbarch.sh (auxv_parse): New.
7301 * gdbarch.h: Regenerated.
7302 * gdbarch.c: Regenerated.
7303 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7304
7305 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7306
7307 * guile/scm-value.c (gdbscm_history_append_x): New function.
7308 (value_functions): Add it.
7309
7310 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7311
7312 * dwarf2read.c (attr_value_as_address): New function.
7313 (dwarf2_find_base_address, read_call_site_scope): Use
7314 attr_value_as_address in place of DW_ADDR.
7315 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7316 the low and high addresses. Slight rework of the handling
7317 of the high pc being a constant form, and limit it to
7318 DWARF verson 4 or higher.
7319 (dwarf2_record_block_ranges): Likewise.
7320 (read_partial_die): Likewise.
7321 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7322
7323 2014-02-26 Tom Tromey <tromey@redhat.com>
7324
7325 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7326
7327 2014-02-26 Tom Tromey <tromey@redhat.com>
7328
7329 * elfread.c (elf_read_minimal_symbols): Return early if
7330 minimal symbols have already been read. Add "ei" parameter.
7331 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7332 * minsyms.c (prim_record_minimal_symbol_full): Update.
7333 * objfiles.h (struct objstats) <n_minsyms>: Move...
7334 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7335 * symmisc.c (print_objfile_statistics): Update.
7336
7337 2014-02-26 Tom Tromey <tromey@redhat.com>
7338
7339 * elfread.c (elf_read_minimal_symbols): New function, from
7340 elf_symfile_read.
7341 (elf_symfile_read): Call it.
7342
7343 2014-02-26 Tom Tromey <tromey@redhat.com>
7344
7345 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7346 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7347 (lookup_minimal_symbol_solib_trampoline)
7348 (lookup_minimal_symbol_by_pc_section_1)
7349 (lookup_minimal_symbol_and_objfile): Update.
7350 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7351 Don't allocate a minimal symbol if minsyms have already been read.
7352 (build_minimal_symbol_hash_tables): Update.
7353 (install_minimal_symbols): Do nothing if minsyms already read.
7354 Use the per-BFD obstack.
7355 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7356 * objfiles.c (allocate_objfile): Call
7357 terminate_minimal_symbol_table later.
7358 (have_minimal_symbols): Update.
7359 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7360 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7361 Move from struct objfile.
7362 <minsyms_read>: New field.
7363 (struct objfile) <msymbols, minimal_symbol_count,
7364 msymbol_hash, msymbol_demangled_hash>: Move.
7365 (ALL_OBJFILE_MSYMBOLS): Update.
7366 * symfile.c (read_symbols): Set minsyms_read.
7367 (reread_symbols): Update.
7368 * symmisc.c (dump_objfile, dump_msymbols): Update.
7369
7370 2014-02-26 Tom Tromey <tromey@redhat.com>
7371
7372 * minsyms.c (msymbols_sort): Remove.
7373 * minsyms.h (msymbols_sort): Remove.
7374 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7375 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7376 * elfread.c (elf_symtab_read): Don't add section offsets.
7377 * xcoffread.c (record_minimal_symbol): Don't add section offset
7378 to minimal symbol address.
7379 * somread.c (text_offset, data_offset): Remove.
7380 (som_symtab_read): Don't add section offsets to minimal symbol
7381 addresses.
7382 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7383 Don't add section offsets to minimal symbols.
7384 * coffread.c (coff_symtab_read): Don't add section offsets
7385 to minimal symbol addresses.
7386 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7387 to minimal symbol addresses.
7388 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7389 section offset to minimal symbol addresses.
7390 * mdebugread.c (parse_partial_symbols): Don't add section
7391 offset to minimal symbol addresses.
7392 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7393 offset to minimal symbol addresses.
7394
7395 2014-02-26 Tom Tromey <tromey@redhat.com>
7396
7397 * ada-lang.c (ada_main_name): Update.
7398 (ada_add_standard_exceptions): Update.
7399 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7400 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7401 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7402 * auxv.c (ld_so_xfer_auxv): Update.
7403 * avr-tdep.c (avr_scan_prologue): Update.
7404 * ax-gdb.c (gen_var_ref): Update.
7405 * blockframe.c (get_pc_function_start)
7406 (find_pc_partial_function_gnu_ifunc): Update.
7407 * breakpoint.c (create_overlay_event_breakpoint)
7408 (create_longjmp_master_breakpoint)
7409 (create_std_terminate_master_breakpoint)
7410 (create_exception_master_breakpoint): Update.
7411 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7412 * c-valprint.c (c_val_print): Update.
7413 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7414 * common/agent.c (agent_look_up_symbols): Update.
7415 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7416 * dwarf2loc.c (call_site_to_target_addr): Update.
7417 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7418 * elfread.c (elf_gnu_ifunc_record_cache)
7419 (elf_gnu_ifunc_resolve_by_got): Update.
7420 * findvar.c (default_read_var_value): Update.
7421 * frame.c (inside_main_func): Update.
7422 * frv-tdep.c (frv_frame_this_id): Update.
7423 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7424 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7425 Update.
7426 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7427 (hppa_hpux_find_dummy_bpaddr): Update.
7428 * hppa-tdep.c (hppa_symbol_address): Update.
7429 * infcmd.c (until_next_command): Update.
7430 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7431 Update.
7432 * linespec.c (minsym_found, add_minsym): Update.
7433 * linux-nat.c (get_signo): Update.
7434 * linux-thread-db.c (inferior_has_bug): Update.
7435 * m32c-tdep.c (m32c_return_value)
7436 (m32c_m16c_address_to_pointer): Update.
7437 * m32r-tdep.c (m32r_frame_this_id): Update.
7438 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7439 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7440 * maint.c (maintenance_translate_address): Update.
7441 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7442 (frob_address): New function.
7443 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7444 frob_address. Rename parameter to "pc_in".
7445 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7446 addresses.
7447 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7448 Update.
7449 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7450 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7451 * objc-lang.c (find_objc_msgsend): Update.
7452 * objfiles.c (objfile_relocate1): Update.
7453 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7454 * p-valprint.c (pascal_val_print): Update.
7455 * parse.c (write_exp_msymbol): Update.
7456 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7457 (ppc_elfv2_skip_entrypoint): Update.
7458 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7459 * printcmd.c (build_address_symbolic, msym_info)
7460 (address_info): Update.
7461 * proc-service.c (ps_pglobal_lookup): Update.
7462 * psymtab.c (find_pc_sect_psymtab_closer)
7463 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7464 Change msymbol parameter to bound_minimal_symbol.
7465 * ravenscar-thread.c (get_running_thread_id): Update.
7466 * remote.c (remote_check_symbols): Update.
7467 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7468 address.
7469 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7470 * solib-dsbt.c (lm_base): Update.
7471 * solib-frv.c (lm_base, main_got): Update.
7472 * solib-irix.c (locate_base): Update.
7473 * solib-som.c (som_solib_create_inferior_hook)
7474 (link_map_start): Update.
7475 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7476 * solib-svr4.c (elf_locate_base, enable_break): Update.
7477 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7478 (flush_ea_cache): Update.
7479 * stabsread.c (define_symbol, scan_file_globals): Update.
7480 * stack.c (find_frame_funname): Update.
7481 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7482 (debug_qf_find_pc_sect_symtab): Update.
7483 * symfile.c (simple_read_overlay_table)
7484 (simple_overlay_update): Update.
7485 * symfile.h (struct quick_symbol_functions)
7486 <find_pc_sect_symtab>: Change type of msymbol to
7487 bound_minimal_symbol.
7488 * symmisc.c (dump_msymbols): Update.
7489 * symtab.c (find_pc_sect_symtab_via_partial)
7490 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7491 (search_symbols, print_msymbol_info): Update.
7492 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7493 (MSYMBOL_VALUE_ADDRESS): Redefine.
7494 (BMSYMBOL_VALUE_ADDRESS): New macro.
7495 * tracepoint.c (scope_info): Update.
7496 * tui/tui-disasm.c (tui_find_disassembly_address)
7497 (tui_get_begin_asm_address): Update.
7498 * valops.c (find_function_in_inferior): Update.
7499 * value.c (value_static_field, value_fn_field): Update.
7500
7501 2014-02-26 Tom Tromey <tromey@redhat.com>
7502
7503 * ada-lang.c (ada_update_initial_language): Update.
7504 (ada_main_name, ada_has_this_exception_support): Update.
7505 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7506 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7507 * arm-tdep.c (arm_skip_stub): Update.
7508 * auxv.c (ld_so_xfer_auxv): Update.
7509 * avr-tdep.c (avr_scan_prologue): Update.
7510 * ax-gdb.c (gen_var_ref): Update.
7511 * breakpoint.c (struct breakpoint_objfile_data)
7512 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7513 type to bound_minimal_symbol.
7514 (create_overlay_event_breakpoint)
7515 (create_longjmp_master_breakpoint)
7516 (create_std_terminate_master_breakpoint)
7517 (create_exception_master_breakpoint): Update.
7518 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7519 * c-exp.y (classify_name): Update.
7520 * coffread.c (coff_symfile_read): Update.
7521 * common/agent.c (agent_look_up_symbols): Update.
7522 * d-lang.c (d_main_name): Update.
7523 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7524 * dec-thread.c (enable_dec_thread): Update.
7525 * dwarf2loc.c (call_site_to_target_addr): Update.
7526 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7527 * eval.c (evaluate_subexp_standard): Update.
7528 * findvar.c (struct minsym_lookup_data) <result>: Change type
7529 to bound_minimal_symbol.
7530 <objfile>: Remove.
7531 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7532 * frame.c (inside_main_func): Update.
7533 * frv-tdep.c (frv_frame_this_id): Update.
7534 * gcore.c (call_target_sbrk): Update.
7535 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7536 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7537 Update.
7538 * go-lang.c (go_main_name): Update.
7539 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7540 (hppa_hpux_find_import_stub_for_addr): Update.
7541 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7542 Update. Change return type.
7543 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7544 type.
7545 * jit.c (jit_breakpoint_re_set_internal): Update.
7546 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7547 Update.
7548 * linux-nat.c (get_signo): Update.
7549 * linux-thread-db.c (inferior_has_bug): Update
7550 * m32c-tdep.c (m32c_return_value)
7551 (m32c_m16c_address_to_pointer): Update.
7552 * m32r-tdep.c (m32r_frame_this_id): Update.
7553 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7554 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7555 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7556 lookup_minimal_symbol. Change return type.
7557 (lookup_minimal_symbol): Remove.
7558 (lookup_bound_minimal_symbol): Update.
7559 (lookup_minimal_symbol_text): Change return type.
7560 (lookup_minimal_symbol_solib_trampoline): Change return type.
7561 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7562 (lookup_minimal_symbol_solib_trampoline): Change return type.
7563 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7564 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7565 (value_nsstring, find_imps): Update.
7566 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7567 * p-lang.c (pascal_main_name): Update.
7568 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7569 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7570 * proc-service.c (ps_pglobal_lookup): Update.
7571 * ravenscar-thread.c (get_running_thread_msymbol): Change
7572 return type.
7573 (has_ravenscar_runtime, get_running_thread_id): Update.
7574 * remote.c (remote_check_symbols): Update.
7575 * sol-thread.c (ps_pglobal_lookup): Update.
7576 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7577 * solib-dsbt.c (lm_base): Update.
7578 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7579 Update.
7580 * solib-irix.c (locate_base): Update.
7581 * solib-som.c (som_solib_create_inferior_hook)
7582 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7583 Update.
7584 * solib-spu.c (spu_enable_break): Update.
7585 * solib-svr4.c (elf_locate_base, enable_break): Update.
7586 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7587 (flush_ea_cache): Update.
7588 * stabsread.c (define_symbol): Update.
7589 * symfile.c (simple_read_overlay_table): Update.
7590 * symtab.c (find_pc_sect_line): Update.
7591 * tracepoint.c (scope_info): Update.
7592 * tui-disasm.c (tui_get_begin_asm_address): Update.
7593 * value.c (value_static_field): Update.
7594
7595 2014-02-26 Tom Tromey <tromey@redhat.com>
7596
7597 * minsyms.c (prim_record_minimal_symbol_full): Use
7598 SET_MSYMBOL_VALUE_ADDRESS.
7599 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7600 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7601 SET_MSYMBOL_VALUE_ADDRESS.
7602 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7603 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7604
7605 2014-02-26 Tom Tromey <tromey@redhat.com>
7606
7607 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7608 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7609 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7610 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7611 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7612 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7613 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7614 * ada-lang.c (ada_main_name): Update.
7615 (ada_lookup_simple_minsym): Update.
7616 (ada_make_symbol_completion_list): Update.
7617 (ada_add_standard_exceptions): Update.
7618 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7619 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7620 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7621 * arm-tdep.c (skip_prologue_function): Update.
7622 (arm_skip_stack_protector, arm_skip_stub): Update.
7623 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7624 (arm_wince_skip_main_prologue): Update.
7625 * auxv.c (ld_so_xfer_auxv): Update.
7626 * avr-tdep.c (avr_scan_prologue): Update.
7627 * ax-gdb.c (gen_var_ref): Update.
7628 * block.c (call_site_for_pc): Update.
7629 * blockframe.c (get_pc_function_start): Update.
7630 (find_pc_partial_function_gnu_ifunc): Update.
7631 * breakpoint.c (create_overlay_event_breakpoint): Update.
7632 (create_longjmp_master_breakpoint): Update.
7633 (create_std_terminate_master_breakpoint): Update.
7634 (create_exception_master_breakpoint): Update.
7635 (resolve_sal_pc): Update.
7636 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7637 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7638 Update.
7639 * c-valprint.c (c_val_print): Update.
7640 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7641 * coffread.c (coff_symfile_read): Update.
7642 * common/agent.c (agent_look_up_symbols): Update.
7643 * dbxread.c (find_stab_function_addr): Update.
7644 (end_psymtab): Update.
7645 * dwarf2loc.c (call_site_to_target_addr): Update.
7646 (func_verify_no_selftailcall): Update.
7647 (tailcall_dump): Update.
7648 (call_site_find_chain_1): Update.
7649 (dwarf_expr_reg_to_entry_parameter): Update.
7650 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7651 (elf_gnu_ifunc_resolve_by_got): Update.
7652 * f-valprint.c (info_common_command): Update.
7653 * findvar.c (read_var_value): Update.
7654 * frame.c (get_prev_frame_1): Update.
7655 (inside_main_func): Update.
7656 * frv-tdep.c (frv_skip_main_prologue): Update.
7657 (frv_frame_this_id): Update.
7658 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7659 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7660 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7661 (gnuv3_skip_trampoline): Update.
7662 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7663 (hppa64_hpux_in_solib_call_trampoline): Update.
7664 (hppa_hpux_skip_trampoline_code): Update.
7665 (hppa64_hpux_search_dummy_call_sequence): Update.
7666 (hppa_hpux_find_import_stub_for_addr): Update.
7667 (hppa_hpux_find_dummy_bpaddr): Update.
7668 * hppa-tdep.c (hppa_symbol_address)
7669 (hppa_lookup_stub_minimal_symbol): Update.
7670 * i386-tdep.c (i386_skip_main_prologue): Update.
7671 (i386_pe_skip_trampoline_code): Update.
7672 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7673 * infcall.c (get_function_name): Update.
7674 * infcmd.c (until_next_command): Update.
7675 * jit.c (jit_breakpoint_re_set_internal): Update.
7676 (jit_inferior_init): Update.
7677 * linespec.c (minsym_found): Update.
7678 (add_minsym): Update.
7679 * linux-fork.c (info_checkpoints_command): Update.
7680 * linux-nat.c (get_signo): Update.
7681 * linux-thread-db.c (inferior_has_bug): Update.
7682 * m32c-tdep.c (m32c_return_value): Update.
7683 (m32c_m16c_address_to_pointer): Update.
7684 (m32c_m16c_pointer_to_address): Update.
7685 * m32r-tdep.c (m32r_frame_this_id): Update.
7686 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7687 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7688 * maint.c (maintenance_translate_address): Update.
7689 * minsyms.c (add_minsym_to_hash_table): Update.
7690 (add_minsym_to_demangled_hash_table): Update.
7691 (msymbol_objfile): Update.
7692 (lookup_minimal_symbol): Update.
7693 (iterate_over_minimal_symbols): Update.
7694 (lookup_minimal_symbol_text): Update.
7695 (lookup_minimal_symbol_by_pc_name): Update.
7696 (lookup_minimal_symbol_solib_trampoline): Update.
7697 (lookup_minimal_symbol_by_pc_section_1): Update.
7698 (lookup_minimal_symbol_and_objfile): Update.
7699 (prim_record_minimal_symbol_full): Update.
7700 (compare_minimal_symbols): Update.
7701 (compact_minimal_symbols): Update.
7702 (build_minimal_symbol_hash_tables): Update.
7703 (install_minimal_symbols): Update.
7704 (terminate_minimal_symbol_table): Update.
7705 (find_solib_trampoline_target): Update.
7706 (minimal_symbol_upper_bound): Update.
7707 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7708 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7709 (mips_skip_pic_trampoline_code): Update.
7710 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7711 * objc-lang.c (selectors_info): Update.
7712 (classes_info): Update.
7713 (find_methods): Update.
7714 (find_imps): Update.
7715 (find_objc_msgsend): Update.
7716 * objfiles.c (objfile_relocate1): Update.
7717 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7718 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7719 * p-valprint.c (pascal_val_print): Update.
7720 * parse.c (write_exp_msymbol): Update.
7721 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7722 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7723 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7724 * printcmd.c (build_address_symbolic): Update.
7725 (sym_info): Update.
7726 (address_info): Update.
7727 * proc-service.c (ps_pglobal_lookup): Update.
7728 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7729 (find_pc_sect_psymtab): Update.
7730 * python/py-framefilter.c (py_print_frame): Update.
7731 * ravenscar-thread.c (get_running_thread_id): Update.
7732 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7733 Update.
7734 * remote.c (remote_check_symbols): Update.
7735 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7736 (rs6000_skip_trampoline_code): Update.
7737 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7738 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7739 * solib-dsbt.c (lm_base): Update.
7740 * solib-frv.c (lm_base): Update.
7741 (main_got): Update.
7742 * solib-irix.c (locate_base): Update.
7743 * solib-som.c (som_solib_create_inferior_hook): Update.
7744 (som_solib_desire_dynamic_linker_symbols): Update.
7745 (link_map_start): Update.
7746 * solib-spu.c (spu_enable_break): Update.
7747 (ocl_enable_break): Update.
7748 * solib-svr4.c (elf_locate_base): Update.
7749 (enable_break): Update.
7750 * spu-tdep.c (spu_get_overlay_table): Update.
7751 (spu_catch_start): Update.
7752 (flush_ea_cache): Update.
7753 * stabsread.c (define_symbol): Update.
7754 (scan_file_globals): Update.
7755 * stack.c (find_frame_funname): Update.
7756 (frame_info): Update.
7757 * symfile.c (simple_read_overlay_table): Update.
7758 (simple_overlay_update): Update.
7759 * symmisc.c (dump_msymbols): Update.
7760 * symtab.c (fixup_section): Update.
7761 (find_pc_sect_line): Update.
7762 (skip_prologue_sal): Update.
7763 (search_symbols): Update.
7764 (print_msymbol_info): Update.
7765 (rbreak_command): Update.
7766 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7767 (completion_list_objc_symbol): Update.
7768 (default_make_symbol_completion_list_break_on): Update.
7769 * tracepoint.c (scope_info): Update.
7770 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7771 (tui_get_begin_asm_address): Update.
7772 * valops.c (find_function_in_inferior): Update.
7773 * value.c (value_static_field): Update.
7774 (value_fn_field): Update.
7775
7776 2014-02-26 Tom Tromey <tromey@redhat.com>
7777
7778 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7779 bound minimal symbols. Move code that knows about minsym
7780 table layout...
7781 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7782 function.
7783 * minsyms.h (minimal_symbol_upper_bound): Declare.
7784 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7785 minimal_symbol_upper_bound.
7786
7787 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7788
7789 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7790 Use the type's name if its basic type does not have a tag.
7791
7792 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7793
7794 * dwarf2read.c (read_subrange_type): Add comment.
7795
7796 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7797
7798 * dwarf2read.c (update_enumeration_type_from_children): New
7799 function, mostly extracted from process_structure_scope.
7800 (read_enumeration_type): Call update_enumeration_type_from_children.
7801 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7802 and flag_flag_enum fields.
7803
7804 2014-02-26 Pedro Alves <palves@redhat.com>
7805
7806 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7807 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7808 to_xfer_partial method.
7809
7810 2014-02-26 Pedro Alves <palves@redhat.com>
7811
7812 * target.c (complete_target_initialization): Don't install
7813 default_xfer_partial as to_xfer_partial hook.
7814 (nomemory): Delete.
7815 (update_current_target): Don't INHERIT nor de_fault
7816 deprecated_xfer_memory. Delete de_fault macro.
7817 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7818 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7819 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7820 field.
7821
7822 2014-02-26 Pedro Alves <palves@redhat.com>
7823
7824 * go32-nat.c (my_write_child): New function.
7825 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7826 (go32_xfer_partial): New function.
7827 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7828 Instead install a to_xfer_partial hook.
7829
7830 2014-02-26 Pedro Alves <palves@redhat.com>
7831
7832 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7833 to_xfer_partial helper. Rewrite.
7834 (procfs_xfer_partial): New function.
7835 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7836 Install a to_xfer_partial hook.
7837
7838 2014-02-26 Pedro Alves <palves@redhat.com>
7839
7840 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7841 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7842 (m32r_xfer_partial): New function.
7843 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7844 Install a to_xfer_partial hook.
7845
7846 2014-02-26 Pedro Alves <palves@redhat.com>
7847
7848 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7849 helper.
7850 (mips_xfer_partial): New function.
7851 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7852 hook. Install a to_xfer_partial hook.
7853
7854 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7855
7856 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7857 * gdbtypes.c (create_array_type_with_stride): New function,
7858 renaming create_array_type, but with an added parameter
7859 called "bit_stride".
7860 (create_array_type): Re-implement using
7861 create_array_type_with_stride.
7862 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7863 and DW_AT_bit_stride attributes.
7864
7865 2014-02-26 Pedro Alves <palves@redhat.com>
7866
7867 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7868 task-specific breakpoints.
7869
7870 2014-02-25 Pedro Alves <palves@redhat.com>
7871
7872 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7873 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7874
7875 2014-02-25 Stan Shebs <stan@codesourcery.com>
7876
7877 * defs.h: Annotate comments for Doxygen.
7878
7879 2014-02-25 Tom Tromey <tromey@redhat.com>
7880
7881 * target.h (target_ignore): Don't declare.
7882 * target.c (target_ignore): Remove.
7883
7884 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7885
7886 PR gdb/16626
7887 * auto-load.c (auto_load_objfile_script_1): Change filename to
7888 debugfile.
7889
7890 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7891
7892 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7893 documentation. Adjust prototype to match the target_ops
7894 to_xfer_partial method. Adjust implementation accordingly.
7895
7896 2014-02-25 Hui Zhu <hui@codesourcery.com>
7897
7898 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7899 to_traceframe_info.
7900
7901 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7902
7903 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7904 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7905 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7906 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7907 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7908 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7909 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7910 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7911 New constants.
7912 (rl78_register_type): Use a data pointer type for SP and
7913 new pseudo registers mentioned above. Use a 16 bit integer
7914 type for all other register pairs.
7915 (rl78_register_name, rl78_g10_register_name): Update for
7916 new pseudo registers.
7917 (rl78_pseudo_register_read): Likewise.
7918 (rl78_pseudo_register_write): Likewise.
7919 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7920 to the newly added pseudo registers.
7921
7922 2014-02-24 Doug Evans <dje@google.com>
7923
7924 * value.c (record_latest_value): Fix comment.
7925 * printcmd.c (print_command_1): Remove code to handle -1 return from
7926 record_latest_value.
7927
7928 2014-02-24 Pedro Alves <palves@redhat.com>
7929
7930 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7931 deprecated_xfer_memory hook.
7932 (procfs_xfer_partial): Call procfs_xfer_memory instead
7933 of the deprecated_xfer_memory target hook.
7934 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7935 helper.
7936
7937 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7938
7939 * windows-nat.c (windows_xfer_shared_libraries): Return
7940 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7941 requested object is TARGET_OBJECT_LIBRARIES.
7942
7943 2014-02-24 Yao Qi <yao@codesourcery.com>
7944
7945 * target.h (enum target_xfer_status)
7946 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7947 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7948 explicitly. New.
7949 * corefile.c (memory_error_message): User updated.
7950 * exec.c (section_table_read_available_memory): Likewise.
7951 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7952 * target.c (target_xfer_status_to_string): Likewise.
7953 (raw_memory_xfer_partial): Likewise.
7954 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7955 * valops.c (read_value_memory): Likewise.
7956 * exec.h: Update comments.
7957
7958 2014-02-24 Yao Qi <yao@codesourcery.com>
7959
7960 * target.c (target_xfer_status_to_string): Rename argument err
7961 to status.
7962 * target.h (target_xfer_status_to_string): Update declaration.
7963 Replace target_xfer_error_to_string with
7964 target_xfer_status_to_string in comment.
7965
7966 2014-02-24 Yao Qi <yao@codesourcery.com>
7967
7968 * mips-linux-nat.c (super_close): Update its type.
7969 (mips_linux_close): Pass 'self' to super_close.
7970
7971 2014-02-24 Yao Qi <yao@codesourcery.com>
7972
7973 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7974 * corefile.c (read_memory): Adjusted.
7975 * target.c (target_write_with_progress): Adjusted.
7976
7977 2014-02-23 Yao Qi <yao@codesourcery.com>
7978
7979 Revert two patches:
7980
7981 2013-10-25 Yao Qi <yao@codesourcery.com>
7982
7983 * remote.c (remote_traceframe_info): Return early if
7984 traceframe is not selected.
7985
7986 2013-07-19 Yao Qi <yao@codesourcery.com>
7987
7988 * target.c (update_current_target): Change the default action
7989 of 'to_traceframe_info' from tcomplain to return_zero.
7990 * target.h (struct target_ops) <to_traceframe_info>: Add more
7991 comments.
7992
7993 2014-02-23 Yao Qi <yao@codesourcery.com>
7994
7995 * valops.c (read_value_memory): Rewrite it. Call
7996 target_xfer_partial in a loop.
7997 * exec.h (section_table_available_memory): Remove declaration.
7998 Move comments to ...
7999 * exec.c (section_table_available_memory): ... here. Make it
8000 static.
8001
8002 2014-02-23 Yao Qi <yao@codesourcery.com>
8003
8004 * exec.c (section_table_read_available_memory): New function.
8005 * exec.h (section_table_read_available_memory): Declare.
8006 * ctf.c (ctf_xfer_partial): Call
8007 section_table_read_available_memory.
8008 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8009
8010 2014-02-23 Yao Qi <yao@codesourcery.com>
8011
8012 * ctf.c (ctf_xfer_partial): Move code to ...
8013 * exec.c (exec_read_partial_read_only): ... it. New function.
8014 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8015 * tracefile.c: Include "exec.h".
8016 * exec.h (exec_read_partial_read_only): Declare.
8017
8018 2014-02-23 Yao Qi <yao@codesourcery.com>
8019
8020 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8021 (tfile_has_memory): Remove.
8022 (init_tfile_ops): Don't set fields to_has_all_memory and
8023 to_has_memory of tfile_ops.
8024 * tracefile.c (tracefile_has_all_memory): New function.
8025 (tracefile_has_memory): New function.
8026 (init_tracefile_ops): Initialize fields to_has_all_memory and
8027 to_has_memory of 'ops'.
8028
8029 2014-02-23 Yao Qi <yao@codesourcery.com>
8030
8031 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8032 (ctf_thread_alive, ctf_get_trace_status): Remove.
8033 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8034 init_tracefile_ops.
8035 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8036 (tfile_has_stack, tfile_has_registers): Remove.
8037 (tfile_thread_alive): Remove.
8038 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8039 init_tracefile_ops.
8040 * tracefile.c (tracefile_has_stack): New function.
8041 (tracefile_has_registers): New function.
8042 (tracefile_thread_alive): New function.
8043 (tracefile_get_trace_status): New function.
8044 (init_tracefile_ops): New function.
8045 * tracefile.h (init_tracefile_ops): Declare.
8046
8047 2014-02-23 Yao Qi <yao@codesourcery.com>
8048
8049 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8050 (O_LARGEFILE): Likewise.
8051 (tfile_ops): Likewise.
8052 (TRACE_HEADER_SIZE): Likewise.
8053 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8054 (cur_data_size): Likewise.
8055 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8056 (tfile_close, tfile_files_info): Likewise.
8057 (tfile_get_trace_status): Likewise.
8058 (tfile_get_tracepoint_status): Likewise.
8059 (tfile_get_traceframe_address): Likewise.
8060 (tfile_trace_find, match_blocktype): Likewise.
8061 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8062 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8063 (tfile_get_trace_state_variable_value): Likewise.
8064 (tfile_has_all_memory, tfile_has_memory): Likewise.
8065 (tfile_has_stack, tfile_has_registers): Likewise.
8066 (tfile_thread_alive, build_traceframe_info): Likewise.
8067 (tfile_traceframe_info, init_tfile_ops): Likewise.
8068 (_initialize_tracepoint): Don't call init_tfile_ops
8069 and add_target_with_completer.
8070 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8071 exec.h, completer.h and filenames.h.
8072 (_initialize_tracefile_tfile): New function.
8073
8074 2014-02-23 Yao Qi <yao@codesourcery.com>
8075
8076 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8077 tracefile-tfile.o.
8078 (HFILES_NO_SRCDIR): Add tracefile.h.
8079 * ctf.c: Include "tracefile.h".
8080 * tracefile.h: New file.
8081 * tracefile.c: New file
8082 * tracefile-tfile.c: New file.
8083 * tracepoint.c: Include "tracefile.h".
8084 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8085 (stop_reason_names): Add const.
8086 (trace_file_writer_xfree): Move it to tracefile.c.
8087 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8088 (trace_save_ctf): Likewise.
8089 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8090 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8091 (tfile_write_header, tfile_write_regblock_type): Likewise.
8092 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8093 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8094 (tfile_write_raw_data, tfile_end): Likewise.
8095 (tfile_trace_file_writer_new): Likewise.
8096 (free_uploaded_tp): Make it extern.
8097 (free_uploaded_tsv): Make it extern.
8098 (_initialize_tracepoint): Move code to register command 'tsave'
8099 to tracefile.c.
8100 * tracepoint.h (stop_reason_names): Declare.
8101 (struct trace_frame_write_ops): Move it to tracefile.h.
8102 (struct trace_file_write_ops): Likewise.
8103 (struct trace_file_writer): Likewise.
8104 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8105
8106 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8107
8108 PR gdb/16594
8109 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8110 process name.
8111 (get_cores_used_by_process): New parameter num_cores, use it.
8112 (linux_xfer_osdata_processes): Pass num_cores to it.
8113 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8114 process name.
8115
8116 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8117
8118 * target.c (memory_xfer_partial): Fix length arg in call to
8119 breakpoint_xfer_memory.
8120
8121 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8122
8123 PR tdep/16397
8124 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8125 number comes after the + or - signs. Adjust length of register
8126 name to be extracted.
8127
8128 2014-02-20 Tom Tromey <tromey@redhat.com>
8129
8130 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8131 (ada_varobj_ops): Mark "extern".
8132
8133 2014-02-20 Tom Tromey <tromey@redhat.com>
8134
8135 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8136
8137 2014-02-20 Doug Evans <xdje42@gmail.com>
8138
8139 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8140 All callers updated.
8141 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8142 All callers updated.
8143 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8144 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8145
8146 2014-02-20 lin zuojian <manjian2006@gmail.com>
8147 Joel Brobecker <brobecker@adacore.com>
8148 Doug Evans <xdje42@gmail.com>
8149
8150 PR symtab/16581
8151 * dwarf2read.c (struct die_info): New member in_process.
8152 (reset_die_in_process): New function.
8153 (process_die): Set it at the start, reset when returning.
8154 (inherit_abstract_dies): Only call process_die if origin_child_die
8155 not already being processed.
8156
8157 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8158
8159 * windows-nat.c (handle_unload_dll): Add function documentation.
8160 (do_initial_windows_stuff): Add comment explaining why we wait
8161 until after inferior initialization has finished before
8162 processing all DLLs.
8163
8164 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8165
8166 * windows-nat.c (get_module_name): Delete.
8167 (windows_get_exec_module_filename): New function, mostly
8168 inspired from get_module_name.
8169 (windows_pid_to_exec_file): Replace call to get_module_name
8170 by call to windows_get_exec_module_filename.
8171
8172 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8173
8174 * windows-nat.c (handle_load_dll): Rewrite this function's
8175 introductory comment. Remove code using get_module_name
8176 to get the DLL's name.
8177
8178 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8179
8180 * windows-nat.c (get_windows_debug_event): Ignore
8181 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8182 if windows_initialization_done == 0.
8183 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8184 Adjust implementation to always load all DLLs.
8185 (do_initial_windows_stuff): Replace call to
8186 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8187
8188 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8189
8190 * windows-nat.c (_initialize_windows_nat): Deprecate the
8191 "dll-symbols" command. Turn the "add-shared-symbol-files"
8192 and "assf" aliases into commands, and deprecate them as well.
8193 * NEWS: Add entry explaining that "dll-symbols" and its two
8194 aliases are now deprecated.
8195
8196 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8197
8198 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8199 new-line in debug string. Remove trailing spaces.
8200
8201 2014-02-19 Stan Shebs <stan@codesourcery.com>
8202
8203 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8204
8205 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8206
8207 * NEWS: Add entry for the new feature
8208 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8209 and class values.
8210
8211 2014-02-19 Stan Shebs <stan@codesourcery.com>
8212
8213 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8214
8215 2014-02-19 Pedro Alves <palves@redhat.com>
8216
8217 * common/ptid.h (struct ptid): Mention that process_stratum
8218 targets should prefer ptid.lwp.
8219
8220 2014-02-19 Pedro Alves <palves@redhat.com>
8221
8222 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8223 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8224 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8225 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8226 store remote thread ids rather than ptid.tid.
8227 (_initialize_remote): Adjust.
8228
8229 2014-02-19 Tom Tromey <tromey@redhat.com>
8230
8231 * target.c (target_get_unwinder): Rewrite.
8232 (target_get_tailcall_unwinder): Rewrite.
8233 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8234 (record_btrace_to_get_tailcall_unwinder): New function.
8235 (init_record_btrace_ops): Update.
8236 * target.h (struct target_ops) <to_get_unwinder,
8237 to_get_tailcall_unwinder>: Now function pointers. Use
8238 TARGET_DEFAULT_RETURN.
8239
8240 2014-02-19 Tom Tromey <tromey@redhat.com>
8241
8242 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8243 argument.
8244 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8245
8246 2014-02-19 Tom Tromey <tromey@redhat.com>
8247
8248 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8249 directly.
8250 * target-delegates.c: Rebuild.
8251 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8252 TARGET_DEFAULT_FUNC.
8253 * target.c (default_target_decr_pc_after_break): Rename from
8254 forward_target_decr_pc_after_break. Simplify.
8255 (target_decr_pc_after_break): Rely on delegation.
8256
8257 2014-02-19 Tom Tromey <tromey@redhat.com>
8258
8259 * target.c (update_current_target): Do not INHERIT to_doc or
8260 to_magic. Do not de_fault to_open or to_close.
8261
8262 2014-02-19 Tom Tromey <tromey@redhat.com>
8263
8264 * gcore.h (objfile_find_memory_regions): Declare.
8265 * gcore.c (objfile_find_memory_regions): No longer static. Add
8266 "self" argument.
8267 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8268 * exec.c: Include gcore.h.
8269 (exec_set_find_memory_regions): Remove.
8270 (exec_find_memory_regions): Remove.
8271 (exec_do_find_memory_regions): Remove.
8272 (init_exec_ops): Update.
8273 * defs.h (exec_set_find_memory_regions): Remove.
8274
8275 2014-02-19 Tom Tromey <tromey@redhat.com>
8276
8277 * target-delegates.c: Rebuild.
8278 * target.h (struct target_ops) <to_extra_thread_info,
8279 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8280 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8281 not 0, in TARGET_DEFAULT_RETURN.
8282
8283 2014-02-19 Tom Tromey <tromey@redhat.com>
8284
8285 * target.c (complete_target_initialization): Remove casts. Use
8286 return_zero_has_execution.
8287 (return_zero): Add "ignore" argument.
8288 (return_zero_has_execution): New function.
8289 (init_dummy_target): Remove casts. Use
8290 return_zero_has_execution.
8291
8292 2014-02-19 Tom Tromey <tromey@redhat.com>
8293
8294 * target.c (update_current_target): Update comments. Do not
8295 INHERIT to_stratum.
8296
8297 2014-02-19 Tom Tromey <tromey@redhat.com>
8298
8299 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8300 needed.
8301 * corelow.c (core_read_description): Delegate when needed.
8302 * remote.c (remote_read_description): Delegate when needed.
8303 * target-delegates.c: Rebuild.
8304 * target.c (target_read_description): Rewrite.
8305 * target.h (struct target_ops) <to_read_description>: Update
8306 comment. Use TARGET_DEFAULT_RETURN.
8307
8308 2014-02-19 Tom Tromey <tromey@redhat.com>
8309
8310 * target-delegates.c: Rebuild.
8311 * target.c (update_current_target): Don't inherit or default
8312 to_can_run.
8313 (find_default_run_target): Check against delegate_can_run.
8314 * target.h (struct target_ops) <to_can_run>: Use
8315 TARGET_DEFAULT_RETURN.
8316
8317 2014-02-19 Tom Tromey <tromey@redhat.com>
8318
8319 * target-delegates.c: Rebuild.
8320 * target.c (target_disconnect): Unconditionally delegate.
8321 * target.h (struct target_ops) <to_disconnect>: Use
8322 TARGET_DEFAULT_NORETURN.
8323
8324 2014-02-19 Tom Tromey <tromey@redhat.com>
8325
8326 * record.c (record_stop): Unconditionally delegate.
8327 * target-delegates.c: Rebuild.
8328 * target.c (target_stop_recording): Unconditionally delegate.
8329 * target.h (struct target_ops) <to_stop_recording>: Use
8330 TARGET_DEFAULT_IGNORE.
8331
8332 2014-02-19 Tom Tromey <tromey@redhat.com>
8333
8334 * target-delegates.c: Rebuild.
8335 * target.c (target_enable_btrace): Unconditionally delegate.
8336 * target.h (struct target_ops) <to_enable_btrace>: Use
8337 TARGET_DEFAULT_NORETURN.
8338
8339 2014-02-19 Tom Tromey <tromey@redhat.com>
8340
8341 * target-delegates.c: Rebuild.
8342 * target.c (target_read_btrace): Unconditionally delegate.
8343 * target.h (struct target_ops) <to_read_btrace>: Use
8344 TARGET_DEFAULT_NORETURN.
8345
8346 2014-02-19 Tom Tromey <tromey@redhat.com>
8347
8348 * target-delegates.c: Rebuild.
8349 * target.c (target_teardown_btrace): Unconditionally delegate.
8350 * target.h (struct target_ops) <to_teardown_btrace>: Use
8351 TARGET_DEFAULT_NORETURN.
8352
8353 2014-02-19 Tom Tromey <tromey@redhat.com>
8354
8355 * target-delegates.c: Rebuild.
8356 * target.c (target_disable_btrace): Unconditionally delegate.
8357 * target.h (struct target_ops) <to_disable_btrace>: Use
8358 TARGET_DEFAULT_NORETURN.
8359
8360 2014-02-19 Tom Tromey <tromey@redhat.com>
8361
8362 * target-delegates.c: Rebuild.
8363 * target.c (default_search_memory): New function.
8364 (simple_search_memory): Update comment.
8365 (target_search_memory): Unconditionally delegate.
8366 * target.h (struct target_ops) <to_search_memory>: Use
8367 TARGET_DEFAULT_FUNC.
8368
8369 2014-02-19 Tom Tromey <tromey@redhat.com>
8370
8371 * auxv.c (default_auxv_parse): No longer static.
8372 (target_auxv_parse): Unconditionally delegate.
8373 * auxv.h (default_auxv_parse): Declare.
8374 * target-delegates.c: Rebuild.
8375 * target.c: Include auxv.h.
8376 * target.h (struct target_ops) <to_auxv_parse>: Use
8377 TARGET_DEFAULT_FUNC.
8378
8379 2014-02-19 Tom Tromey <tromey@redhat.com>
8380
8381 * target-delegates.c: Rebuild.
8382 * target.c (target_memory_map): Unconditionally delegate.
8383 * target.h (struct target_ops) <to_memory_map>: Use
8384 TARGET_DEFAULT_RETURN.
8385
8386 2014-02-19 Tom Tromey <tromey@redhat.com>
8387
8388 * target-delegates.c: Rebuild.
8389 * target.c (target_thread_alive): Unconditionally delegate.
8390 * target.h (struct target_ops) <to_thread_alive>: Use
8391 TARGET_DEFAULT_RETURN.
8392
8393 2014-02-19 Tom Tromey <tromey@redhat.com>
8394
8395 * target-delegates.c: Rebuild.
8396 * target.c (target_save_record): Unconditionally delegate.
8397 * target.h (struct target_ops) <to_save_record>: Use
8398 TARGET_DEFAULT_NORETURN.
8399
8400 2014-02-19 Tom Tromey <tromey@redhat.com>
8401
8402 * target-delegates.c: Rebuild.
8403 * target.c (target_delete_record): Unconditionally delegate.
8404 * target.h (struct target_ops) <to_delete_record>: Use
8405 TARGET_DEFAULT_NORETURN.
8406
8407 2014-02-19 Tom Tromey <tromey@redhat.com>
8408
8409 * target-delegates.c: Rebuild.
8410 * target.c (target_record_is_replaying): Unconditionally
8411 delegate.
8412 * target.h (struct target_ops) <to_record_is_replaying>: Use
8413 TARGET_DEFAULT_RETURN.
8414
8415 2014-02-19 Tom Tromey <tromey@redhat.com>
8416
8417 * target-delegates.c: Rebuild.
8418 * target.c (target_goto_record_begin): Unconditionally delegate.
8419 * target.h (struct target_ops) <to_goto_record_begin>: Use
8420 TARGET_DEFAULT_NORETURN.
8421
8422 2014-02-19 Tom Tromey <tromey@redhat.com>
8423
8424 * target-delegates.c: Rebuild.
8425 * target.c (target_goto_record_end): Unconditionally delegate.
8426 * target.h (struct target_ops) <to_goto_record_end>: Use
8427 TARGET_DEFAULT_NORETURN.
8428
8429 2014-02-19 Tom Tromey <tromey@redhat.com>
8430
8431 * target-delegates.c: Rebuild.
8432 * target.c (target_goto_record): Unconditionally delegate.
8433 * target.h (struct target_ops) <to_goto_record>: Use
8434 TARGET_DEFAULT_NORETURN.
8435
8436 2014-02-19 Tom Tromey <tromey@redhat.com>
8437
8438 * target-delegates.c: Rebuild.
8439 * target.c (target_insn_history): Unconditionally delegate.
8440 * target.h (struct target_ops) <to_insn_history>: Use
8441 TARGET_DEFAULT_NORETURN.
8442
8443 2014-02-19 Tom Tromey <tromey@redhat.com>
8444
8445 * target-delegates.c: Rebuild.
8446 * target.c (target_insn_history_from): Unconditionally delegate.
8447 * target.h (struct target_ops) <to_insn_history_from>: Use
8448 TARGET_DEFAULT_NORETURN.
8449
8450 2014-02-19 Tom Tromey <tromey@redhat.com>
8451
8452 * target-delegates.c: Rebuild.
8453 * target.c (target_insn_history_range): Unconditionally delegate.
8454 * target.h (struct target_ops) <to_insn_history_range>: Use
8455 TARGET_DEFAULT_NORETURN.
8456
8457 2014-02-19 Tom Tromey <tromey@redhat.com>
8458
8459 * target-delegates.c: Rebuild.
8460 * target.c (target_call_history): Unconditionally delegate.
8461 * target.h (struct target_ops) <to_call_history>: Use
8462 TARGET_DEFAULT_NORETURN.
8463
8464 2014-02-19 Tom Tromey <tromey@redhat.com>
8465
8466 * target-delegates.c: Rebuild.
8467 * target.c (target_call_history_from): Unconditionally delegate.
8468 * target.h (struct target_ops) <to_call_history_from>: Use
8469 TARGET_DEFAULT_NORETURN.
8470
8471 2014-02-19 Tom Tromey <tromey@redhat.com>
8472
8473 * target-delegates.c: Rebuild.
8474 * target.c (target_call_history_range): Unconditionally delegate.
8475 * target.h (struct target_ops) <to_call_history_range>: Use
8476 TARGET_DEFAULT_NORETURN.
8477
8478 2014-02-19 Tom Tromey <tromey@redhat.com>
8479
8480 * target-delegates.c: Rebuild.
8481 * target.c (target_verify_memory): Unconditionally delegate.
8482 * target.h (struct target_ops) <to_verify_memory>: Use
8483 TARGET_DEFAULT_NORETURN.
8484
8485 2014-02-19 Tom Tromey <tromey@redhat.com>
8486
8487 * target-delegates.c: Rebuild.
8488 * target.c (target_core_of_thread): Unconditionally delegate.
8489 * target.h (struct target_ops) <to_core_of_thread>: Use
8490 TARGET_DEFAULT_RETURN.
8491
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8493
8494 * target-delegates.c: Rebuild.
8495 * target.c (target_flash_done): Unconditionally delegate.
8496 * target.h (struct target_ops) <to_flash_done>: Use
8497 TARGET_DEFAULT_NORETURN.
8498
8499 2014-02-19 Tom Tromey <tromey@redhat.com>
8500
8501 * target-delegates.c: Rebuild.
8502 * target.c (target_flash_erase): Unconditionally delegate.
8503 * target.h (struct target_ops) <to_flash_erase>: Use
8504 TARGET_DEFAULT_NORETURN.
8505
8506 2014-02-19 Tom Tromey <tromey@redhat.com>
8507
8508 * target-delegates.c: Rebuild.
8509 * target.c (target_get_section_table): Unconditionally delegate.
8510 * target.h (struct target_ops) <to_get_section_table>: Use
8511 TARGET_DEFAULT_RETURN.
8512
8513 2014-02-19 Tom Tromey <tromey@redhat.com>
8514
8515 * target-delegates.c: Rebuild.
8516 * target.c (target_pid_to_str): Unconditionally delegate.
8517 (init_dummy_target): Don't initialize to_pid_to_str.
8518 (default_pid_to_str): Rename from dummy_pid_to_str.
8519 * target.h (struct target_ops) <to_pid_to_str>: Use
8520 TARGET_DEFAULT_FUNC.
8521
8522 2014-02-19 Tom Tromey <tromey@redhat.com>
8523
8524 * target-delegates.c: Rebuild.
8525 * target.c (target_find_new_threads): Unconditionally delegate.
8526 * target.h (struct target_ops) <to_find_new_threads>: Use
8527 TARGET_DEFAULT_RETURN.
8528
8529 2014-02-19 Tom Tromey <tromey@redhat.com>
8530
8531 * target-delegates.c: Rebuild.
8532 * target.c (target_program_signals): Unconditionally delegate.
8533 * target.h (struct target_ops) <to_program_signals>: Use
8534 TARGET_DEFAULT_IGNORE.
8535
8536 2014-02-19 Tom Tromey <tromey@redhat.com>
8537
8538 * target-delegates.c: Rebuild.
8539 * target.c (target_pass_signals): Unconditionally delegate.
8540 * target.h (struct target_ops) <to_pass_signals>: Use
8541 TARGET_DEFAULT_IGNORE.
8542
8543 2014-02-19 Tom Tromey <tromey@redhat.com>
8544
8545 * target-delegates.c: Rebuild.
8546 * target.c (default_mourn_inferior): New function.
8547 (target_mourn_inferior): Unconditionally delegate.
8548 * target.h (struct target_ops) <to_mourn_inferior>: Use
8549 TARGET_DEFAULT_FUNC.
8550
8551 2014-02-19 Tom Tromey <tromey@redhat.com>
8552
8553 * target-delegates.c: Rebuild.
8554 * target.c (default_follow_fork): New function.
8555 (target_follow_fork): Unconditionally delegate.
8556 * target.h (struct target_ops) <to_follow_fork>: Use
8557 TARGET_DEFAULT_FUNC.
8558
8559 2014-02-19 Tom Tromey <tromey@redhat.com>
8560
8561 * target-delegates.c: Rebuild.
8562 * target.c (target_kill): Unconditionally delegate.
8563 * target.h (struct target_ops) <to_kill>: Use
8564 TARGET_DEFAULT_NORETURN.
8565
8566 2014-02-19 Tom Tromey <tromey@redhat.com>
8567
8568 * target-delegates.c: Rebuild.
8569 * target.c (target_masked_watch_num_registers): Unconditionally
8570 delegate.
8571 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8572 Use TARGET_DEFAULT_RETURN.
8573
8574 2014-02-19 Tom Tromey <tromey@redhat.com>
8575
8576 * target-delegates.c: Rebuild.
8577 * target.c (target_remove_mask_watchpoint): Unconditionally
8578 delegate.
8579 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8580 TARGET_DEFAULT_RETURN.
8581
8582 2014-02-19 Tom Tromey <tromey@redhat.com>
8583
8584 * target-delegates.c: Rebuild.
8585 * target.c (target_insert_mask_watchpoint): Unconditionally
8586 delegate.
8587 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8588 TARGET_DEFAULT_RETURN.
8589
8590 2014-02-19 Tom Tromey <tromey@redhat.com>
8591
8592 * target-delegates.c: Rebuild.
8593 * target.c (target_ranged_break_num_registers): Unconditionally
8594 delegate.
8595 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8596 Use TARGET_DEFAULT_RETURN.
8597
8598 2014-02-19 Tom Tromey <tromey@redhat.com>
8599
8600 * target-delegates.c: Rebuild.
8601 * target.c (target_fetch_registers): Unconditionally delegate.
8602 * target.h (struct target_ops) <to_fetch_registers>: Use
8603 TARGET_DEFAULT_NORETURN.
8604
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8606
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8609 to_stop.
8610 * target.h (struct target_ops) <to_stop>: Use
8611 TARGET_DEFAULT_IGNORE.
8612
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_can_run_breakpoint_commands.
8618 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8619 Use TARGET_DEFAULT_RETURN.
8620
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8622
8623 * target-delegates.c: Rebuild.
8624 * target.c (update_current_target): Don't inherit or default
8625 to_supports_evaluation_of_breakpoint_conditions.
8626 * target.h (struct target_ops)
8627 <to_supports_evaluation_of_breakpoint_conditions>: Use
8628 TARGET_DEFAULT_RETURN.
8629
8630 2014-02-19 Tom Tromey <tromey@redhat.com>
8631
8632 * target-delegates.c: Rebuild.
8633 * target.c (update_current_target): Don't inherit or default
8634 to_augmented_libraries_svr4_read.
8635 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8636 Use TARGET_DEFAULT_RETURN.
8637
8638 2014-02-19 Tom Tromey <tromey@redhat.com>
8639
8640 * target-delegates.c: Rebuild.
8641 * target.c (update_current_target): Don't inherit or default
8642 to_can_use_agent.
8643 * target.h (struct target_ops) <to_can_use_agent>: Use
8644 TARGET_DEFAULT_RETURN.
8645
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8647
8648 * target-delegates.c: Rebuild.
8649 * target.c (update_current_target): Don't inherit or default
8650 to_use_agent.
8651 * target.h (struct target_ops) <to_use_agent>: Use
8652 TARGET_DEFAULT_NORETURN.
8653
8654 2014-02-19 Tom Tromey <tromey@redhat.com>
8655
8656 * target-delegates.c: Rebuild.
8657 * target.c (update_current_target): Don't inherit or default
8658 to_traceframe_info.
8659 (return_null): Remove.
8660 * target.h (struct target_ops) <to_traceframe_info>: Use
8661 TARGET_DEFAULT_RETURN.
8662
8663 2014-02-19 Tom Tromey <tromey@redhat.com>
8664
8665 * target-delegates.c: Rebuild.
8666 * target.c (update_current_target): Don't inherit or default
8667 to_static_tracepoint_markers_by_strid.
8668 * target.h (struct target_ops)
8669 <to_static_tracepoint_markers_by_strid>: Use
8670 TARGET_DEFAULT_NORETURN.
8671
8672 2014-02-19 Tom Tromey <tromey@redhat.com>
8673
8674 * target-delegates.c: Rebuild.
8675 * target.c (update_current_target): Don't inherit or default
8676 to_static_tracepoint_marker_at.
8677 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8678 Use TARGET_DEFAULT_RETURN.
8679
8680 2014-02-19 Tom Tromey <tromey@redhat.com>
8681
8682 * target-delegates.c: Rebuild.
8683 * target.c (update_current_target): Don't inherit or default
8684 to_set_permissions.
8685 * target.h (struct target_ops) <to_set_permissions>: Use
8686 TARGET_DEFAULT_IGNORE.
8687
8688 2014-02-19 Tom Tromey <tromey@redhat.com>
8689
8690 * target-delegates.c: Rebuild.
8691 * target.c (update_current_target): Don't inherit or default
8692 to_get_tib_address.
8693 * target.h (struct target_ops) <to_get_tib_address>: Use
8694 TARGET_DEFAULT_NORETURN.
8695
8696 2014-02-19 Tom Tromey <tromey@redhat.com>
8697
8698 * target-delegates.c: Rebuild.
8699 * target.c (update_current_target): Don't inherit or default
8700 to_set_trace_notes.
8701 * target.h (struct target_ops) <to_set_trace_notes>: Use
8702 TARGET_DEFAULT_RETURN.
8703
8704 2014-02-19 Tom Tromey <tromey@redhat.com>
8705
8706 * target-delegates.c: Rebuild.
8707 * target.c (update_current_target): Don't initialize
8708 to_set_trace_buffer_size.
8709 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8710 TARGET_DEFAULT_IGNORE.
8711
8712 2014-02-19 Tom Tromey <tromey@redhat.com>
8713
8714 * target-delegates.c: Rebuild.
8715 * target.c (update_current_target): Don't inherit or default
8716 to_set_circular_trace_buffer.
8717 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8718 TARGET_DEFAULT_IGNORE.
8719
8720 2014-02-19 Tom Tromey <tromey@redhat.com>
8721
8722 * target-delegates.c: Rebuild.
8723 * target.c (update_current_target): Don't inherit or default
8724 to_set_disconnected_tracing.
8725 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8726 TARGET_DEFAULT_IGNORE.
8727
8728 2014-02-19 Tom Tromey <tromey@redhat.com>
8729
8730 * target-delegates.c: Rebuild.
8731 * target.c (update_current_target): Don't inherit or default
8732 to_get_min_fast_tracepoint_insn_len.
8733 (return_minus_one): Remove.
8734 * target.h (struct target_ops)
8735 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8736
8737 2014-02-19 Tom Tromey <tromey@redhat.com>
8738
8739 * target-delegates.c: Rebuild.
8740 * target.c (update_current_target): Don't inherit or default
8741 to_get_raw_trace_data.
8742 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8743 TARGET_DEFAULT_NORETURN.
8744
8745 2014-02-19 Tom Tromey <tromey@redhat.com>
8746
8747 * target-delegates.c: Rebuild.
8748 * target.c (update_current_target): Don't inherit or default
8749 to_upload_trace_state_variables.
8750 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8751 Use TARGET_DEFAULT_RETURN.
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_upload_tracepoints.
8758 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8759 TARGET_DEFAULT_RETURN.
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_save_trace_data.
8766 * target.h (struct target_ops) <to_save_trace_data>: Use
8767 TARGET_DEFAULT_NORETURN.
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_get_trace_state_variable_value.
8774 * target.h (struct target_ops)
8775 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8776
8777 2014-02-19 Tom Tromey <tromey@redhat.com>
8778
8779 * target-delegates.c: Rebuild.
8780 * target.c (update_current_target): Don't inherit or default
8781 to_trace_find.
8782 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8783
8784 2014-02-19 Tom Tromey <tromey@redhat.com>
8785
8786 * target-delegates.c: Rebuild.
8787 * target.c (update_current_target): Don't inherit or default
8788 to_trace_stop.
8789 * target.h (struct target_ops) <to_trace_stop>: Use
8790 TARGET_DEFAULT_NORETURN.
8791
8792 2014-02-19 Tom Tromey <tromey@redhat.com>
8793
8794 * target-delegates.c: Rebuild.
8795 * target.c (update_current_target): Don't inherit or default
8796 to_get_tracepoint_status.
8797 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8798 TARGET_DEFAULT_NORETURN.
8799
8800 2014-02-19 Tom Tromey <tromey@redhat.com>
8801
8802 * target-delegates.c: Rebuild.
8803 * target.c (update_current_target): Don't inherit or default
8804 to_get_trace_status.
8805 * target.h (struct target_ops) <to_get_trace_status>: Use
8806 TARGET_DEFAULT_RETURN.
8807
8808 2014-02-19 Tom Tromey <tromey@redhat.com>
8809
8810 * target-delegates.c: Rebuild.
8811 * target.c (update_current_target): Don't inherit or default
8812 to_trace_start.
8813 * target.h (struct target_ops) <to_trace_start>: Use
8814 TARGET_DEFAULT_NORETURN.
8815
8816 2014-02-19 Tom Tromey <tromey@redhat.com>
8817
8818 * target-delegates.c: Rebuild.
8819 * target.c (update_current_target): Don't inherit or default
8820 to_trace_set_readonly_regions.
8821 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8822 Use TARGET_DEFAULT_NORETURN.
8823
8824 2014-02-19 Tom Tromey <tromey@redhat.com>
8825
8826 * target-delegates.c: Rebuild.
8827 * target.c (update_current_target): Don't inherit or default
8828 to_disable_tracepoint.
8829 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8830 TARGET_DEFAULT_NORETURN.
8831
8832 2014-02-19 Tom Tromey <tromey@redhat.com>
8833
8834 * target-delegates.c: Rebuild.
8835 * target.c (update_current_target): Don't inherit or default
8836 to_enable_tracepoint.
8837 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8838 TARGET_DEFAULT_NORETURN.
8839
8840 2014-02-19 Tom Tromey <tromey@redhat.com>
8841
8842 * target-delegates.c: Rebuild.
8843 * target.c (update_current_target): Don't inherit or default
8844 to_download_trace_state_variable.
8845 * target.h (struct target_ops) <to_download_trace_state_variable>:
8846 Use TARGET_DEFAULT_NORETURN.
8847
8848 2014-02-19 Tom Tromey <tromey@redhat.com>
8849
8850 * target-delegates.c: Rebuild.
8851 * target.c (update_current_target): Don't inherit or default
8852 to_can_download_tracepoint.
8853 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8854 TARGET_DEFAULT_RETURN.
8855
8856 2014-02-19 Tom Tromey <tromey@redhat.com>
8857
8858 * target-delegates.c: Rebuild.
8859 * target.c (update_current_target): Don't inherit or default
8860 to_download_tracepoint.
8861 * target.h (struct target_ops) <to_download_tracepoint>: Use
8862 TARGET_DEFAULT_NORETURN.
8863
8864 2014-02-19 Tom Tromey <tromey@redhat.com>
8865
8866 * target-delegates.c: Rebuild.
8867 * target.c (update_current_target): Don't inherit or default
8868 to_trace_init.
8869 * target.h (struct target_ops) <to_trace_init>: Use
8870 TARGET_DEFAULT_RETURN.
8871
8872 2014-02-19 Tom Tromey <tromey@redhat.com>
8873
8874 * target-delegates.c: Rebuild.
8875 * target.c (update_current_target): Don't inherit or default
8876 to_supports_string_tracing.
8877 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8878 TARGET_DEFAULT_RETURN.
8879
8880 2014-02-19 Tom Tromey <tromey@redhat.com>
8881
8882 * target-delegates.c: Rebuild.
8883 * target.c (update_current_target): Don't inherit or default
8884 to_supports_enable_disable_tracepoint.
8885 * target.h (struct target_ops)
8886 <to_supports_enable_disable_tracepoint>: Use
8887 TARGET_DEFAULT_RETURN.
8888
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8890
8891 * target-delegates.c: Rebuild.
8892 * target.c (update_current_target): Don't inherit or default
8893 to_supports_multi_process.
8894 * target.h (struct target_ops) <to_supports_multi_process>: Use
8895 TARGET_DEFAULT_RETURN.
8896
8897 2014-02-19 Tom Tromey <tromey@redhat.com>
8898
8899 * target-delegates.c: Rebuild.
8900 * target.c (update_current_target): Don't inherit or default
8901 to_get_ada_task_ptid.
8902 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8903 TARGET_DEFAULT_FUNC.
8904
8905 2014-02-19 Tom Tromey <tromey@redhat.com>
8906
8907 * target-delegates.c: Rebuild.
8908 * target.c (update_current_target): Don't inherit or default
8909 to_thread_architecture.
8910 * target.h (struct target_ops) <to_thread_architecture>: Use
8911 TARGET_DEFAULT_FUNC.
8912
8913 2014-02-19 Tom Tromey <tromey@redhat.com>
8914
8915 * target-delegates.c: Rebuild.
8916 * target.c (update_current_target): Don't inherit or default
8917 to_execution_direction.
8918 * target.h (struct target_ops) <to_execution_direction>: Use
8919 TARGET_DEFAULT_FUNC.
8920
8921 2014-02-19 Tom Tromey <tromey@redhat.com>
8922
8923 * target-delegates.c: Rebuild.
8924 * target.c (update_current_target): Don't inherit or default
8925 to_can_execute_reverse.
8926 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8927 TARGET_DEFAULT_RETURN.
8928 (target_can_execute_reverse): Unconditionally delegate.
8929
8930 2014-02-19 Tom Tromey <tromey@redhat.com>
8931
8932 * target-delegates.c: Rebuild.
8933 * target.c (update_current_target): Don't inherit or default
8934 to_goto_bookmark.
8935 (dummy_goto_bookmark): Remove.
8936 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8937 * target.h (struct target_ops) <to_goto_bookmark>: 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_bookmark.
8945 (dummy_get_bookmark): Remove.
8946 (init_dummy_target): Don't inherit or default to_get_bookmark.
8947 * target.h (struct target_ops) <to_get_bookmark>: Use
8948 TARGET_DEFAULT_NORETURN
8949
8950 2014-02-19 Tom Tromey <tromey@redhat.com>
8951
8952 * target-delegates.c: Rebuild.
8953 * target.c (update_current_target): Don't inherit or default
8954 to_make_corefile_notes.
8955 (init_dummy_target): Don't initialize to_make_corefile_notes.
8956 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8957 TARGET_DEFAULT_FUNC.
8958
8959 2014-02-19 Tom Tromey <tromey@redhat.com>
8960
8961 * target-delegates.c: Rebuild.
8962 * target.c (update_current_target): Don't inherit or default
8963 to_find_memory_regions.
8964 (init_dummy_target): Don't initialize to_find_memory_regions.
8965 * target.h (struct target_ops) <to_find_memory_regions>: Use
8966 TARGET_DEFAULT_FUNC.
8967
8968 2014-02-19 Tom Tromey <tromey@redhat.com>
8969
8970 * target-delegates.c: Rebuild.
8971 * target.c (update_current_target): Don't inherit or default
8972 to_log_command.
8973 * target.h (struct target_ops) <to_log_command>: Use
8974 TARGET_DEFAULT_IGNORE.
8975 (target_log_command): Unconditionally delegate.
8976
8977 2014-02-19 Tom Tromey <tromey@redhat.com>
8978
8979 * target-delegates.c: Rebuild.
8980 * target.c (update_current_target): Don't inherit or default
8981 to_pid_to_exec_file.
8982 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8983 TARGET_DEFAULT_RETURN.
8984
8985 2014-02-19 Tom Tromey <tromey@redhat.com>
8986
8987 * target-delegates.c: Rebuild.
8988 * target.c (update_current_target): Don't inherit or default
8989 to_thread_name.
8990 (target_thread_name): Unconditionally delegate.
8991 * target.h (struct target_ops) <to_thread_name>: Use
8992 TARGET_DEFAULT_RETURN.
8993
8994 2014-02-19 Tom Tromey <tromey@redhat.com>
8995
8996 * target-delegates.c: Rebuild.
8997 * target.c (update_current_target): Don't inherit or default
8998 to_extra_thread_info.
8999 * target.h (struct target_ops) <to_extra_thread_info>: Use
9000 TARGET_DEFAULT_RETURN.
9001
9002 2014-02-19 Tom Tromey <tromey@redhat.com>
9003
9004 * target-delegates.c: Rebuild.
9005 * target.c (update_current_target): Don't inherit or default
9006 to_has_exited.
9007 * target.h (struct target_ops) <to_has_exited>: Use
9008 TARGET_DEFAULT_RETURN..
9009
9010 2014-02-19 Tom Tromey <tromey@redhat.com>
9011
9012 * target-delegates.c: Rebuild.
9013 * target.c (update_current_target): Don't inherit or default
9014 to_set_syscall_catchpoint.
9015 (return_one): Remove.
9016 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9017 TARGET_DEFAULT_RETURN.
9018
9019 2014-02-19 Tom Tromey <tromey@redhat.com>
9020
9021 * target-delegates.c: Rebuild.
9022 * target.c (update_current_target): Don't inherit or default
9023 to_insert_exec_catchpoint.
9024 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9025 TARGET_DEFAULT_RETURN.
9026
9027 2014-01-08 Tom Tromey <tromey@redhat.com>
9028
9029 * target-delegates.c: Rebuild.
9030 * target.c (update_current_target): Don't inherit or default
9031 to_insert_exec_catchpoint.
9032 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9033 TARGET_DEFAULT_RETURN.
9034
9035 2014-02-19 Tom Tromey <tromey@redhat.com>
9036
9037 * target-delegates.c: Rebuild.
9038 * target.c (update_current_target): Don't inherit or default
9039 to_remove_vfork_catchpoint.
9040 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9041 TARGET_DEFAULT_RETURN.
9042
9043 2014-02-19 Tom Tromey <tromey@redhat.com>
9044
9045 * target-delegates.c: Rebuild.
9046 * target.c (update_current_target): Don't inherit or default
9047 to_insert_vfork_catchpoint.
9048 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9049 TARGET_DEFAULT_RETURN.
9050
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * target-delegates.c: Rebuild.
9054 * target.c (update_current_target): Don't inherit or default
9055 to_remove_fork_catchpoint.
9056 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9057 TARGET_DEFAULT_RETURN.
9058
9059 2014-02-19 Tom Tromey <tromey@redhat.com>
9060
9061 * target-delegates.c: Rebuild.
9062 * target.c (update_current_target): Don't inherit or default
9063 to_insert_fork_catchpoint.
9064 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9065 TARGET_DEFAULT_RETURN.
9066
9067 2014-02-19 Tom Tromey <tromey@redhat.com>
9068
9069 * target-delegates.c: Rebuild.
9070 * target.c (update_current_target): Don't inherit or default
9071 to_post_startup_inferior.
9072 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9073 TARGET_DEFAULT_IGNORE.
9074
9075 2014-02-19 Tom Tromey <tromey@redhat.com>
9076
9077 * target-delegates.c: Rebuild.
9078 * target.c (update_current_target): Don't inherit or default
9079 to_load.
9080 * target.h (struct target_ops) <to_load>: Use
9081 TARGET_DEFAULT_NORETURN.
9082
9083 2014-02-19 Tom Tromey <tromey@redhat.com>
9084
9085 * target-delegates.c: Rebuild.
9086 * target.c (update_current_target): Don't inherit or default
9087 to_terminal_info.
9088 * target.h (struct target_ops) <to_terminal_info>: Use
9089 TARGET_DEFAULT_FUNC.
9090
9091 2014-02-19 Tom Tromey <tromey@redhat.com>
9092
9093 * target-delegates.c: Rebuild.
9094 * target.c (update_current_target): Don't inherit or default
9095 to_terminal_save_ours.
9096 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9097 TARGET_DEFAULT_IGNORE.
9098
9099 2014-02-19 Tom Tromey <tromey@redhat.com>
9100
9101 * target-delegates.c: Rebuild.
9102 * target.c (update_current_target): Don't inherit or default
9103 to_terminal_ours.
9104 * target.h (struct target_ops) <to_terminal_ours>: Use
9105 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
9112 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9113 TARGET_DEFAULT_IGNORE.
9114
9115 2014-02-19 Tom Tromey <tromey@redhat.com>
9116
9117 * target-delegates.c: Rebuild.
9118 * target.c (update_current_target): Don't inherit or default
9119 to_terminal_inferior.
9120 * target.h (struct target_ops) <to_terminal_inferior>: Use
9121 TARGET_DEFAULT_IGNORE.
9122
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9124
9125 * target-delegates.c: Rebuild.
9126 * target.c (update_current_target): Don't inherit or default
9127 to_terminal_init.
9128 * target.h (struct target_ops) <to_terminal_init>: Use
9129 TARGET_DEFAULT_IGNORE.
9130
9131 2014-02-19 Tom Tromey <tromey@redhat.com>
9132
9133 * target-delegates.c: Rebuild.
9134 * target.c (update_current_target): Don't inherit or default
9135 to_can_accel_watchpoint_condition.
9136 * target.h (struct target_ops)
9137 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9138
9139 2014-02-19 Tom Tromey <tromey@redhat.com>
9140
9141 * target-delegates.c: Rebuild.
9142 * target.c (update_current_target): Don't inherit or default
9143 to_region_ok_for_hw_watchpoint.
9144 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9145 Use TARGET_DEFAULT_FUNC.
9146
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9148
9149 * target-delegates.c: Rebuild.
9150 * target.c (update_current_target): Don't inherit or default
9151 to_watchpoint_addr_within_range.
9152 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9153 Use TARGET_DEFAULT_FUNC.
9154
9155 2014-02-19 Tom Tromey <tromey@redhat.com>
9156
9157 * target-delegates.c: Rebuild.
9158 * target.c (update_current_target): Don't inherit or default
9159 to_remove_watchpoint.
9160 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9161 TARGET_DEFAULT_NORETURN.
9162
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9164
9165 * target-delegates.c: Rebuild.
9166 * target.c (update_current_target): Don't inherit or default
9167 to_insert_watchpoint.
9168 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9169 TARGET_DEFAULT_RETURN.
9170
9171 2014-02-19 Tom Tromey <tromey@redhat.com>
9172
9173 * target-delegates.c: Rebuild.
9174 * target.c (update_current_target): Don't inherit or default
9175 to_remove_hw_breakpoint.
9176 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9177 TARGET_DEFAULT_RETURN.
9178
9179 2014-02-19 Tom Tromey <tromey@redhat.com>
9180
9181 * target-delegates.c: Rebuild.
9182 * target.c (update_current_target): Don't inherit or default
9183 to_insert_hw_breakpoint.
9184 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9185 TARGET_DEFAULT_RETURN.
9186
9187 2014-02-19 Tom Tromey <tromey@redhat.com>
9188
9189 * target-delegates.c: Rebuild.
9190 * target.c (update_current_target): Don't inherit or default
9191 to_can_use_hw_breakpoint.
9192 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9193 TARGET_DEFAULT_RETURN.
9194
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9196
9197 * target-delegates.c: Rebuild.
9198 * target.c (update_current_target): Don't inherit or default
9199 to_files_info.
9200 * target.h (struct target_ops) <to_files_info>: Use
9201 TARGET_DEFAULT_IGNORE.
9202
9203 2014-02-19 Tom Tromey <tromey@redhat.com>
9204
9205 * target-delegates.c: Rebuild.
9206 * target.c (update_current_target): Don't inherit or default
9207 to_store.
9208 * target.h (struct target_ops) <to_store>: Use
9209 TARGET_DEFAULT_NORETURN.
9210
9211 2014-02-19 Tom Tromey <tromey@redhat.com>
9212
9213 * target-delegates.c: Rebuild.
9214 * target.c (update_current_target): Don't inherit or default
9215 to_post_attach.
9216 * target.h (struct target_ops) <to_post_attach>: Use
9217 TARGET_DEFAULT_IGNORE.
9218
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9220
9221 * target-delegates.c: Rebuild.
9222 * target.c (update_current_target): Don't inherit or default
9223 to_rcmd.
9224 (default_rcmd): New function.
9225 (do_monitor_command): Unconditionally delegate.
9226 * target.h (struct target_ops) <to_rmcd>: Use
9227 TARGET_DEFAULT_FUNC.
9228
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * target-delegates.c: Rebuild.
9232 * target.c (init_dummy_target): Don't initialize to_attach.
9233 (target_attach): Unconditionally delegate.
9234 * target.h (struct target_ops) <to_attach>: Use
9235 TARGET_DEFAULT_FUNC.
9236
9237 2014-02-19 Tom Tromey <tromey@redhat.com>
9238
9239 * target-delegates.c: Rebuild.
9240 * target.c (target_detach): Unconditionally delegate.
9241 (init_dummy_target): Don't initialize to_detach.
9242 * target.h (struct target_ops) <to_detach>: Use
9243 TARGET_DEFAULT_IGNORE.
9244
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9248 Add argument.
9249 (target_augmented_libraries_svr4_read): Add argument.
9250 * target.c (update_current_target): Update.
9251 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9252 argument.
9253
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9255
9256 * target.h (struct target_ops) <to_call_history_range>: Add
9257 argument.
9258 * target.c (target_call_history_range): Add argument.
9259 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9260 argument.
9261 (record_btrace_call_history_from): Update.
9262
9263 2014-02-19 Tom Tromey <tromey@redhat.com>
9264
9265 * target.h (struct target_ops) <to_call_history_from>: Add
9266 argument.
9267 * target.c (target_call_history_from): Add argument.
9268 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9269 argument.
9270
9271 2014-02-19 Tom Tromey <tromey@redhat.com>
9272
9273 * target.h (struct target_ops) <to_call_history>: Add argument.
9274 * target.c (target_call_history): Add argument.
9275 * record-btrace.c (record_btrace_call_history): Add 'self'
9276 argument.
9277
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9279
9280 * target.h (struct target_ops) <to_insn_history_range>: Add
9281 argument.
9282 * target.c (target_insn_history_range): Add argument.
9283 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9284 argument.
9285 (record_btrace_insn_history_from): Update.
9286
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9288
9289 * target.h (struct target_ops) <to_insn_history_from>: Add
9290 argument.
9291 * target.c (target_insn_history_from): Add argument.
9292 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9293 argument.
9294
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9296
9297 * target.h (struct target_ops) <to_insn_history>: Add argument.
9298 * target.c (target_insn_history): Add argument.
9299 * record-btrace.c (record_btrace_insn_history): Add 'self'
9300 argument.
9301
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9303
9304 * target.h (struct target_ops) <to_goto_record>: Add argument.
9305 * target.c (target_goto_record): Add argument.
9306 * record-full.c (record_full_goto): Add 'self' argument.
9307 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9308
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9312 * target.c (target_goto_record_end): Add argument.
9313 * record-full.c (record_full_goto_end): Add 'self' argument.
9314 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9315
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9317
9318 * target.h (struct target_ops) <to_goto_record_begin>: Add
9319 argument.
9320 * target.c (target_goto_record_begin): Add argument.
9321 * record-full.c (record_full_goto_begin): Add 'self' argument.
9322 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9323 argument.
9324
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target.h (struct target_ops) <to_record_is_replaying>: Add
9328 argument.
9329 * target.c (target_record_is_replaying): Add argument.
9330 * record-full.c (record_full_is_replaying): Add 'self' argument.
9331 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9332 argument.
9333 (record_btrace_xfer_partial, record_btrace_store_registers)
9334 (record_btrace_prepare_to_store, record_btrace_resume)
9335 (record_btrace_wait, record_btrace_decr_pc_after_break)
9336 (record_btrace_find_new_threads, record_btrace_thread_alive):
9337 Update.
9338
9339 2014-02-19 Tom Tromey <tromey@redhat.com>
9340
9341 * target.h (struct target_ops) <to_delete_record>: Add argument.
9342 * target.c (target_delete_record): Add argument.
9343 * record-full.c (record_full_delete): Add 'self' argument.
9344
9345 2014-02-19 Tom Tromey <tromey@redhat.com>
9346
9347 * target.h (struct target_ops) <to_save_record>: Add argument.
9348 * target.c (target_save_record): Add argument.
9349 * record-full.c (record_full_save): Add 'self' argument.
9350 (record_full_save): Add 'self' argument.
9351
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9353
9354 * target.h (struct target_ops) <to_info_record>: Add argument.
9355 * target.c (target_info_record): Add argument.
9356 * record.c (info_record_command): Add argument.
9357 * record-full.c (record_full_info): Add 'self' argument.
9358 * record-btrace.c (record_btrace_info): Add 'self' argument.
9359
9360 2014-02-19 Tom Tromey <tromey@redhat.com>
9361
9362 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9363 * target.c (target_stop_recording): Add argument.
9364 * record.c (record_stop): Add argument.
9365 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9366 argument.
9367
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9369
9370 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9371 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9372 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9373 argument.
9374 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9375 (_initialize_amd64_linux_nat): Use it.
9376 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9377 (_initialize_i386_linux_nat): Use it.
9378
9379 2014-02-19 Tom Tromey <tromey@redhat.com>
9380
9381 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9382 * target.c (target_teardown_btrace): Add argument.
9383 * remote.c (remote_teardown_btrace): Add 'self' argument.
9384 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9385 argument.
9386 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9387 argument.
9388
9389 2014-02-19 Tom Tromey <tromey@redhat.com>
9390
9391 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9392 * target.c (target_disable_btrace): Add argument.
9393 * remote.c (remote_disable_btrace): Add 'self' argument.
9394 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9395 argument.
9396 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9397 argument.
9398
9399 2014-02-19 Tom Tromey <tromey@redhat.com>
9400
9401 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9402 * target.c (target_enable_btrace): Add argument.
9403 * remote.c (remote_enable_btrace): Add 'self' argument.
9404 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9405 argument.
9406 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9407 argument.
9408
9409 2014-02-19 Tom Tromey <tromey@redhat.com>
9410
9411 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9412 (target_can_use_agent): Add argument.
9413 * target.c (update_current_target): Update.
9414 * remote.c (remote_can_use_agent): Add 'self' argument.
9415 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9416
9417 2014-02-19 Tom Tromey <tromey@redhat.com>
9418
9419 * target.h (struct target_ops) <to_use_agent>: Add argument.
9420 (target_use_agent): Add argument.
9421 * target.c (update_current_target): Update.
9422 * remote.c (remote_use_agent): Add 'self' argument.
9423 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9424
9425 2014-02-19 Tom Tromey <tromey@redhat.com>
9426
9427 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9428 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9429 (target_traceframe_info): Add argument.
9430 * target.c (update_current_target): Update.
9431 * remote.c (remote_traceframe_info): Add 'self' argument.
9432 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9433
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9435
9436 * target.h (target_static_tracepoint_markers_by_strid): Add
9437 argument.
9438 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9439 'self' argument.
9440 * target.c (update_current_target): Update.
9441 * remote.c (struct target_ops)
9442 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9443 * linux-nat.c (struct target_ops)
9444 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9445
9446 2014-02-19 Tom Tromey <tromey@redhat.com>
9447
9448 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9449 Add argument.
9450 (target_static_tracepoint_marker_at): Add argument.
9451 * target.c (update_current_target): Update.
9452 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9453 argument.
9454
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9456
9457 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9458 (target_set_permissions): Add argument.
9459 * target.c (update_current_target): Update.
9460 * remote.c (remote_set_permissions): Add 'self' argument.
9461 (remote_start_remote): Update.
9462
9463 2014-02-19 Tom Tromey <tromey@redhat.com>
9464
9465 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9466 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9467 (target_get_tib_address): Add argument.
9468 * target.c (update_current_target): Update.
9469 * remote.c (remote_get_tib_address): Add 'self' argument.
9470
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9472
9473 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9474 (target_set_trace_notes): Add argument.
9475 * target.c (update_current_target): Update.
9476 * remote.c (remote_set_trace_notes): Add 'self' argument.
9477
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9479
9480 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9481 argument.
9482 (target_set_trace_buffer_size): Add argument.
9483 * target.c (update_current_target): Update.
9484 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9485
9486 2014-02-19 Tom Tromey <tromey@redhat.com>
9487
9488 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9489 argument.
9490 (target_set_circular_trace_buffer): Add argument.
9491 * target.c (update_current_target): Update.
9492 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9493 argument.
9494
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9496
9497 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9498 argument.
9499 (target_set_disconnected_tracing): Add argument.
9500 * target.c (update_current_target): Update.
9501 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9502
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9504
9505 * target.h (struct target_ops)
9506 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9507 (target_get_min_fast_tracepoint_insn_len): Add argument.
9508 * target.c (update_current_target): Update.
9509 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9510 argument.
9511
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9515 argument.
9516 (target_get_raw_trace_data): Add argument.
9517 * target.c (update_current_target): Update.
9518 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9519
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9521
9522 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9523 Add argument.
9524 (target_upload_trace_state_variables): Add argument.
9525 * target.c (update_current_target): Update.
9526 * remote.c (remote_upload_trace_state_variables): Add 'self'
9527 argument.
9528 (remote_start_remote): Update.
9529
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9531
9532 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9533 argument.
9534 (target_upload_tracepoints): Add argument.
9535 * target.c (update_current_target): Update.
9536 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9537 (remote_start_remote): Update.
9538
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9540
9541 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9542 (target_save_trace_data): Add argument.
9543 * target.c (update_current_target): Update.
9544 * remote.c (remote_save_trace_data): Add 'self' argument.
9545
9546 2014-02-19 Tom Tromey <tromey@redhat.com>
9547
9548 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9549 argument.
9550 * target.h (struct target_ops)
9551 <to_get_trace_state_variable_value>: Add argument.
9552 (target_get_trace_state_variable_value): Add argument.
9553 * target.c (update_current_target): Update.
9554 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9555 argument.
9556 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9557
9558 2014-02-19 Tom Tromey <tromey@redhat.com>
9559
9560 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9561 * target.h (struct target_ops) <to_trace_find>: Add argument.
9562 (target_trace_find): Add argument.
9563 * target.c (update_current_target): Update.
9564 * remote.c (remote_trace_find): Add 'self' argument.
9565 * ctf.c (ctf_trace_find): Add 'self' argument.
9566
9567 2014-02-19 Tom Tromey <tromey@redhat.com>
9568
9569 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9570 (target_trace_stop): Add argument.
9571 * target.c (update_current_target): Update.
9572 * remote.c (remote_trace_stop): Add 'self' argument.
9573
9574 2014-02-19 Tom Tromey <tromey@redhat.com>
9575
9576 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9577 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9578 argument.
9579 (target_get_tracepoint_status): Add argument.
9580 * target.c (update_current_target): Update.
9581 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9582
9583 2014-02-19 Tom Tromey <tromey@redhat.com>
9584
9585 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9586 * target.h (struct target_ops) <to_get_trace_status>: Add
9587 argument.
9588 (target_get_trace_status): Add argument.
9589 * target.c (update_current_target): Update.
9590 * remote.c (remote_get_trace_status): Add 'self' argument.
9591 (remote_start_remote, remote_can_download_tracepoint): Update.
9592 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9593
9594 2014-02-19 Tom Tromey <tromey@redhat.com>
9595
9596 * target.h (struct target_ops) <to_trace_start>: Add argument.
9597 (target_trace_start): Add argument.
9598 * target.c (update_current_target): Update.
9599 * remote.c (remote_trace_start): Add 'self' argument.
9600
9601 2014-02-19 Tom Tromey <tromey@redhat.com>
9602
9603 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9604 Add argument.
9605 (target_trace_set_readonly_regions): Add argument.
9606 * target.c (update_current_target): Update.
9607 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9608 argument.
9609
9610 2014-02-19 Tom Tromey <tromey@redhat.com>
9611
9612 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9613 argument.
9614 (target_disable_tracepoint): Add argument.
9615 * target.c (update_current_target): Update.
9616 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9617
9618 2014-02-19 Tom Tromey <tromey@redhat.com>
9619
9620 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9621 argument.
9622 (target_enable_tracepoint): Add argument.
9623 * target.c (update_current_target): Update.
9624 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9625
9626 2014-02-19 Tom Tromey <tromey@redhat.com>
9627
9628 * target.h (struct target_ops) <to_download_trace_state_variable>:
9629 Add argument.
9630 (target_download_trace_state_variable): Add argument.
9631 * target.c (update_current_target): Update.
9632 * remote.c (remote_download_trace_state_variable): Add 'self'
9633 argument.
9634
9635 2014-02-19 Tom Tromey <tromey@redhat.com>
9636
9637 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9638 argument.
9639 (target_can_download_tracepoint): Add argument.
9640 * target.c (update_current_target): Update.
9641 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9642
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9644
9645 * target.h (struct target_ops) <to_download_tracepoint>: Add
9646 argument.
9647 (target_download_tracepoint): Add argument.
9648 * target.c (update_current_target): Update.
9649 * remote.c (remote_download_tracepoint): Add 'self' argument.
9650
9651 2014-02-19 Tom Tromey <tromey@redhat.com>
9652
9653 * target.h (struct target_ops) <to_trace_init>: Add argument.
9654 (target_trace_init): Add argument.
9655 * target.c (update_current_target): Update.
9656 * remote.c (remote_trace_init): Add 'self' argument.
9657
9658 2014-02-19 Tom Tromey <tromey@redhat.com>
9659
9660 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9661 * target.c (target_fileio_readlink): Add argument.
9662 * remote.c (remote_hostio_readlink): Add 'self' argument.
9663 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9664
9665 2014-02-19 Tom Tromey <tromey@redhat.com>
9666
9667 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9668 * target.c (target_fileio_unlink): Add argument.
9669 * remote.c (remote_hostio_unlink): Add 'self' argument.
9670 (remote_file_delete): Update.
9671 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9672
9673 2014-02-19 Tom Tromey <tromey@redhat.com>
9674
9675 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9676 * target.c (target_fileio_close): Add argument.
9677 * remote.c (remote_hostio_close): Add 'self' argument.
9678 (remote_hostio_close_cleanup): Update.
9679 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9680 Update.
9681 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9682
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9684
9685 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9686 * target.c (target_fileio_pread): Add argument.
9687 * remote.c (remote_hostio_pread): Add 'self' argument.
9688 (remote_bfd_iovec_pread, remote_file_get): Update.
9689 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9690
9691 2014-02-19 Tom Tromey <tromey@redhat.com>
9692
9693 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9694 * target.c (target_fileio_pwrite): Add argument.
9695 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9696 (remote_file_put): Update.
9697 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9698
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9700
9701 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9702 * target.c (target_fileio_open): Add argument.
9703 * remote.c (remote_hostio_open): Add 'self' argument.
9704 (remote_bfd_iovec_open): Add 'self' argument.
9705 (remote_file_put): Add 'self' argument.
9706 (remote_file_get): Add 'self' argument.
9707 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9708
9709 2014-02-19 Tom Tromey <tromey@redhat.com>
9710
9711 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9712 Add argument.
9713 (target_can_run_breakpoint_commands): Add argument.
9714 * target.c (update_current_target): Update.
9715 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9716 argument.
9717 (remote_insert_breakpoint): Add 'self' argument.
9718 (remote_insert_hw_breakpoint): Add 'self' argument.
9719 (remote_can_run_breakpoint_commands): Add 'self' argument.
9720
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9722
9723 * target.h (struct target_ops)
9724 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9725 (target_supports_evaluation_of_breakpoint_conditions): Add
9726 argument.
9727 * target.c (update_current_target): Update.
9728 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9729 argument.
9730 (remote_insert_breakpoint): Add 'self' argument.
9731 (remote_insert_hw_breakpoint): Add 'self' argument.
9732 (remote_supports_cond_breakpoints): Add 'self' argument.
9733
9734 2014-02-19 Tom Tromey <tromey@redhat.com>
9735
9736 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9737 argument.
9738 (target_supports_string_tracing): Add argument.
9739 * target.c (update_current_target): Update.
9740 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9741
9742 2014-02-19 Tom Tromey <tromey@redhat.com>
9743
9744 * target.h (struct target_ops)
9745 <to_supports_disable_randomization>: Add argument.
9746 * target.c (find_default_supports_disable_randomization): Add
9747 argument.
9748 (target_supports_disable_randomization): Add argument.
9749 (find_default_supports_disable_randomization): Add 'self'
9750 argument.
9751 * remote.c (extended_remote_supports_disable_randomization): Add
9752 'self' argument.
9753 (remote_supports_disable_randomization): Add 'self' argument.
9754 (extended_remote_create_inferior): Update.
9755 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9756 'self' argument.
9757
9758 2014-02-19 Tom Tromey <tromey@redhat.com>
9759
9760 * target.h (struct target_ops)
9761 <to_supports_enable_disable_tracepoint>: Add argument.
9762 (target_supports_enable_disable_tracepoint): Add argument.
9763 * target.c (update_current_target): Update.
9764 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9765 argument.
9766
9767 2014-02-19 Tom Tromey <tromey@redhat.com>
9768
9769 * target.h (struct target_ops) <to_supports_multi_process>: Add
9770 argument.
9771 (target_supports_multi_process): Add argument.
9772 * target.c (update_current_target): Update.
9773 * remote.c (remote_supports_multi_process): Add 'self' argument.
9774 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9775 argument.
9776 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9777 argument.
9778
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * target.h (struct target_ops) <to_execution_direction>: Add
9782 argument.
9783 (target_execution_direction): Add argument.
9784 * target.c (default_execution_direction): Add 'self' argument.
9785 * record-full.c (record_full_execution_direction): Add 'self'
9786 argument.
9787
9788 2014-02-19 Tom Tromey <tromey@redhat.com>
9789
9790 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9791 argument.
9792 (target_can_execute_reverse): Add argument.
9793 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9794 * record-full.c (record_full_can_execute_reverse): Add 'self'
9795 argument.
9796 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9797 argument.
9798
9799 2014-02-19 Tom Tromey <tromey@redhat.com>
9800
9801 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9802 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9803 argument.
9804 (target_get_ada_task_ptid): Add argument.
9805 * target.c (update_current_target): Update.
9806 (default_get_ada_task_ptid): Add 'self' argument.
9807 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9808 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9809 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9810 argument.
9811 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9812 argument.
9813 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9814 argument.
9815 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9816 argument.
9817 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9818 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9819 argument.
9820
9821 2014-02-19 Tom Tromey <tromey@redhat.com>
9822
9823 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9824 (target_goto_bookmark): Add argument.
9825 * target.c (dummy_goto_bookmark): Add 'self' argument.
9826 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9827
9828 2014-02-19 Tom Tromey <tromey@redhat.com>
9829
9830 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9831 (target_get_bookmark): Add argument.
9832 * target.c (dummy_get_bookmark): Add 'self' argument.
9833 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9834
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9836
9837 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9838 argument.
9839 (target_make_corefile_notes): Add argument.
9840 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9841 * procfs.c (procfs_make_note_section): Add 'self' argument.
9842 (procfs_make_note_section): Add 'self' argument.
9843 (procfs_make_note_section): Add 'self' argument.
9844 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9845 argument.
9846 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9847 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9848 * exec.c (exec_make_note_section): Add 'self' argument.
9849 (exec_make_note_section): Add 'self' argument.
9850
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9852
9853 * target.h (struct target_ops) <to_find_memory_regions>: Add
9854 argument.
9855 (target_find_memory_regions): Add argument.
9856 * target.c (dummy_find_memory_regions): Add 'self' argument.
9857 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9858 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9859 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9860 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9861 * exec. (exec_do_find_memory_regions): New global.
9862 (exec_set_find_memory_regions): Rewrite.
9863 (exec_find_memory_regions): New function.
9864 (init_exec_ops): Use exec_find_memory_regions.
9865
9866 2014-02-19 Tom Tromey <tromey@redhat.com>
9867
9868 * target.h (struct target_ops) <to_supports_non_stop>: Add
9869 argument.
9870 * target.c (find_default_supports_non_stop): Add argument.
9871 (target_supports_non_stop): Add argument.
9872 (find_default_supports_non_stop): Add 'self' argument.
9873 * remote.c (remote_supports_non_stop): Add 'self' argument.
9874 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9875
9876 2014-02-19 Tom Tromey <tromey@redhat.com>
9877
9878 * target.h (struct target_ops) <to_log_command>: Add argument.
9879 (target_log_command): Add argument.
9880 * serial.h (serial_log_command): Add 'self' argument.
9881 * serial.c (serial_log_command): Add 'self' argument.
9882
9883 2014-02-19 Tom Tromey <tromey@redhat.com>
9884
9885 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9886 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9887 argument.
9888 (target_pid_to_exec_file): Add argument.
9889 * target.c (debug_to_pid_to_exec_file): Add argument.
9890 (update_current_target): Update.
9891 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9892 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9893 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9894 (linux_handle_extended_wait): Update.
9895 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9896 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9897 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9898 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9899
9900 2014-02-19 Tom Tromey <tromey@redhat.com>
9901
9902 * target.h (struct target_ops) <to_rcmd>: Add argument.
9903 (target_rcmd): Add argument.
9904 * target.c (debug_to_rcmd): Add argument.
9905 (update_current_target, do_monitor_command): Update.
9906 * remote.c (remote_rcmd): Add 'self' argument.
9907 * monitor.c (monitor_rcmd): Add 'self' argument.
9908
9909 2014-02-19 Tom Tromey <tromey@redhat.com>
9910
9911 * windows-nat.c (windows_stop): Add 'self' argument.
9912 * target.h (struct target_ops) <to_stop>: Add argument.
9913 * target.c (target_stop): Add argument.
9914 (debug_to_stop): Add argument.
9915 (update_current_target): Update.
9916 * remote.c (remote_stop): Add 'self' argument.
9917 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9918 (gdbsim_cntrl_c): Update.
9919 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9920 * procfs.c (procfs_stop): Add 'self' argument.
9921 * nto-procfs.c (procfs_stop): Add 'self' argument.
9922 * monitor.c (monitor_stop): Add 'self' argument.
9923 (monitor_open): Update.
9924 * linux-nat.c (linux_nat_stop): Add argument.
9925 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9926 * gnu-nat.c (gnu_stop): Add 'self' argument.
9927 * darwin-nat.c (darwin_stop): Add 'self' argument.
9928
9929 2014-02-19 Tom Tromey <tromey@redhat.com>
9930
9931 * target.h (struct target_ops) <to_thread_name>: Add argument.
9932 * target.c (target_thread_name): Add argument.
9933 (update_current_target): Update.
9934 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9935
9936 2014-02-19 Tom Tromey <tromey@redhat.com>
9937
9938 * target.h (struct target_ops) <to_extra_thread_info>: Add
9939 argument.
9940 (target_extra_thread_info): Add argument.
9941 * target.c (update_current_target): Update.
9942 * remote.c (remote_threads_extra_info): Add 'self' argument.
9943 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9944 argument.
9945 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9946 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9947 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9948 argument.
9949 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9950 argument.
9951 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9952 argument.
9953 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9954 argument.
9955
9956 2014-02-19 Tom Tromey <tromey@redhat.com>
9957
9958 * target.h (struct target_ops) <to_program_signals>: Add argument.
9959 * target.c (target_program_signals): Add argument.
9960 * remote.c (remote_program_signals): Add 'self' argument.
9961
9962 2014-02-19 Tom Tromey <tromey@redhat.com>
9963
9964 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9965 * target.c (target_pass_signals): Add argument.
9966 * remote.c (remote_pass_signals): Add 'self' argument.
9967 (remote_start_remote): Update.
9968 * procfs.c (procfs_pass_signals): Add 'self' argument.
9969 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9970 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9971 (linux_nat_create_inferior, linux_nat_attach): Update.
9972
9973 2014-02-19 Tom Tromey <tromey@redhat.com>
9974
9975 * windows-nat.c (windows_can_run): Add 'self' argument.
9976 * target.h (struct target_ops) <to_can_run>: Add argument.
9977 (target_can_run): Add argument.
9978 * target.c (debug_to_can_run): Add argument.
9979 (update_current_target): Update.
9980 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9981 * inf-child.c (inf_child_can_run): Add 'self' argument.
9982 * go32-nat.c (go32_can_run): Add 'self' argument.
9983
9984 2014-02-19 Tom Tromey <tromey@redhat.com>
9985
9986 * target.h (struct target_ops) <to_has_exited>: Add argument.
9987 (target_has_exited): Add argument.
9988 * target.c (debug_to_has_exited): Add argument.
9989 (update_current_target): Update.
9990
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9992
9993 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9994 argument.
9995 (target_set_syscall_catchpoint): Add argument.
9996 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9997 argument.
9998 * target.c (update_current_target): Update.
9999
10000 2014-02-19 Tom Tromey <tromey@redhat.com>
10001
10002 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10003 argument.
10004 (target_remove_exec_catchpoint): Add argument.
10005 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10006 (update_current_target): Update.
10007 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10008 argument.
10009
10010 2014-02-19 Tom Tromey <tromey@redhat.com>
10011
10012 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10013 argument.
10014 (target_insert_exec_catchpoint): Add argument.
10015 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10016 (update_current_target): Update.
10017 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10018 argument.
10019
10020 2014-02-19 Tom Tromey <tromey@redhat.com>
10021
10022 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10023 argument.
10024 (target_remove_vfork_catchpoint): Add argument.
10025 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10026 (update_current_target): Update.
10027 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10028 argument.
10029
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10031
10032 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10033 argument.
10034 (target_insert_vfork_catchpoint): Add argument.
10035 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10036 (update_current_target): Update.
10037 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10038 argument.
10039
10040 2014-02-19 Tom Tromey <tromey@redhat.com>
10041
10042 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10043 argument.
10044 (target_remove_fork_catchpoint): Add argument.
10045 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10046 (update_current_target): Update.
10047 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10048 argument.
10049
10050 2014-02-19 Tom Tromey <tromey@redhat.com>
10051
10052 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10053 argument.
10054 (target_insert_fork_catchpoint): Add argument.
10055 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10056 (update_current_target): Update.
10057 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10058 argument.
10059
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10061
10062 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10063 argument.
10064 (target_post_startup_inferior): Add argument.
10065 * target.c (debug_to_post_startup_inferior): Add argument.
10066 (update_current_target): Update.
10067 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10068 argument.
10069 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10070 argument.
10071 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10072 argument.
10073 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10074 argument.
10075 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10076 'self' argument.
10077 (super_post_startup_inferior): Likewise.
10078 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10079 'self' argument.
10080 (super_post_startup_inferior): Likewise.
10081 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10082 Add 'self' argument.
10083 (super_post_startup_inferior): Likewise.
10084
10085 2014-02-19 Tom Tromey <tromey@redhat.com>
10086
10087 * target.h (struct target_ops) <to_load>: Add argument.
10088 * target.c (target_load): Add argument.
10089 (debug_to_load): Add argument.
10090 (update_current_target): Update.
10091 * remote.c (remote_load): Add 'self' argument.
10092 * remote-sim.c (gdbsim_load): Add 'self' argument.
10093 * remote-mips.c (mips_load): Add 'self' argument.
10094 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10095 * monitor.c (monitor_load): Add 'self' argument.
10096 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10097
10098 2014-02-19 Tom Tromey <tromey@redhat.com>
10099
10100 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10101 (target_terminal_info): Add argument.
10102 * target.c (debug_to_terminal_info): Add argument.
10103 (default_terminal_info): Likewise.
10104 * inflow.c (child_terminal_info): Add 'self' argument.
10105 * inferior.h (child_terminal_info): Add 'self' argument.
10106 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10107
10108 2014-02-19 Tom Tromey <tromey@redhat.com>
10109
10110 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10111 argument.
10112 (target_terminal_save_ours): Add argument.
10113 * target.c (debug_to_terminal_save_ours): Add argument.
10114 (update_current_target): Update.
10115 * inflow.c (terminal_save_ours): Add 'self' argument.
10116 * inferior.h (terminal_save_ours): Add 'self' argument.
10117
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10119
10120 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10121 (target_terminal_ours): Add argument.
10122 * target.c (debug_to_terminal_ours): Add argument.
10123 (update_current_target): Update.
10124 * remote.c (remote_terminal_ours): Add 'self' argument.
10125 (remote_close): Update.
10126 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10127 * inflow.c (terminal_ours): Add 'self' argument.
10128 * inferior.h (terminal_ours): Add 'self' argument.
10129 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10130
10131 2014-02-19 Pedro Alves <palves@redhat.com>
10132 Tom Tromey <tromey@redhat.com>
10133
10134 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10135 argument.
10136 (target_terminal_ours_for_output): Add argument.
10137 * target.c (debug_to_terminal_ours_for_output): Add argument.
10138 (update_current_target): Update.
10139 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10140 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10141 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10142
10143 2014-02-19 Tom Tromey <tromey@redhat.com>
10144
10145 * target.h (struct target_ops) <to_terminal_inferior>: Add
10146 argument.
10147 * target.c (target_terminal_inferior): Add argument.
10148 (update_current_target): Update.
10149 * remote.c (remote_terminal_inferior): Add 'self' argument.
10150 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10151 * inflow.c (terminal_inferior): Add 'self' argument.
10152 * inferior.h (terminal_inferior): Add 'self' argument.
10153 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10154 (go32_terminal_inferior): Add 'self' argument.
10155
10156 2014-02-19 Tom Tromey <tromey@redhat.com>
10157
10158 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10159 (target_terminal_init): Add argument.
10160 * target.c (debug_to_terminal_init): Add argument.
10161 (update_current_target): Update.
10162 * inflow.c (terminal_init_inferior): Add 'self' argument.
10163 * inferior.h (terminal_init_inferior): Add 'self' argument.
10164 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10165 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10166
10167 2014-02-19 Tom Tromey <tromey@redhat.com>
10168
10169 * target.h (struct target_ops)
10170 <to_can_accel_watchpoint_condition>: Add argument.
10171 (target_can_accel_watchpoint_condition): Add argument.
10172 * target.c (debug_to_can_accel_watchpoint_condition): Add
10173 argument.
10174 (update_current_target): Update.
10175 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10176 'self' argument.
10177
10178 2014-02-19 Tom Tromey <tromey@redhat.com>
10179
10180 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10181 Add argument.
10182 (target_region_ok_for_hw_watchpoint): Add argument.
10183 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10184 (default_region_ok_for_hw_watchpoint): Add argument.
10185 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10186 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10187 argument.
10188 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10189 argument.
10190 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10191 argument.
10192 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10193 'self' argument.
10194 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10195 'self' argument.
10196 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10197 'self' argument.
10198 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10199 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10200 'self' argument.
10201 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10202 Add 'self' argument.
10203
10204 2014-02-19 Tom Tromey <tromey@redhat.com>
10205
10206 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10207 argument.
10208 (target_insert_watchpoint): Add argument.
10209 * target.c (debug_to_insert_watchpoint): Add argument.
10210 (update_current_target): Update.
10211 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10212 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10213 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10214 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10215 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10216 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10217 argument.
10218 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10219 (procfs_insert_hw_watchpoint): Add 'self' argument.
10220 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10221 argument.
10222 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10223 argument.
10224 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10225 argument.
10226 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10227 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10228 argument.
10229 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10230 'self' argument.
10231
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10233
10234 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10235 argument.
10236 (target_remove_watchpoint): Add argument.
10237 * target.c (debug_to_remove_watchpoint): Add argument.
10238 (update_current_target): Update.
10239 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10240 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10241 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10242 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10243 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10244 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10245 argument.
10246 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10247 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10248 argument.
10249 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10250 argument.
10251 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10252 argument.
10253 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10254 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10255 argument.
10256 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10257 'self' argument.
10258
10259 2014-02-19 Tom Tromey <tromey@redhat.com>
10260
10261 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10262 argument.
10263 (target_remove_hw_breakpoint): Add argument.
10264 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10265 (update_current_target): Update.
10266 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10267 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10268 argument.
10269 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10270 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10271 argument.
10272 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10273 'self' argument.
10274
10275 2014-02-19 Tom Tromey <tromey@redhat.com>
10276
10277 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10278 argument.
10279 (target_insert_hw_breakpoint): Add argument.
10280 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10281 (update_current_target): Update.
10282 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10283 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10284 argument.
10285 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10286 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10287 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10288 argument.
10289 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10290 'self' argument.
10291
10292 2014-02-19 Tom Tromey <tromey@redhat.com>
10293
10294 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10295 argument.
10296 (target_can_use_hardware_watchpoint): Add argument.
10297 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10298 (update_current_target): Update.
10299 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10300 argument.
10301 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10302 argument.
10303 * remote.c (remote_check_watch_resources): Add 'self' argument.
10304 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10305 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10306 argument.
10307 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10308 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10309 argument.
10310 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10311 argument.
10312 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10313 argument.
10314 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10315 argument.
10316 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10317 argument.
10318 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10319 argument.
10320 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10321 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10322 argument.
10323 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10324 'self' argument.
10325
10326 2014-02-19 Tom Tromey <tromey@redhat.com>
10327
10328 * target.h (struct target_ops) <to_post_attach>: Add argument.
10329 (target_post_attach): Add argument.
10330 * target.c (debug_to_post_attach): Add argument.
10331 (update_current_target): Update.
10332 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10333 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10334 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10335 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10336 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10337
10338 2014-02-19 Tom Tromey <tromey@redhat.com>
10339
10340 * windows-nat.c (windows_close): Add 'self' argument.
10341 * tracepoint.c (tfile_close): Add 'self' argument.
10342 * target.h (struct target_ops) <to_close>: Add argument.
10343 * target.c (target_close): Add argument.
10344 (update_current_target): Update.
10345 * remote.c (remote_close): Add 'self' argument.
10346 * remote-sim.c (gdbsim_close): Add 'self' argument.
10347 * remote-mips.c (mips_close): Add 'self' argument.
10348 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10349 * record-full.c (record_full_close): Add 'self' argument.
10350 * record-btrace.c (record_btrace_close): Add 'self' argument.
10351 * monitor.h (monitor_close): Add 'self' argument.
10352 * monitor.c (monitor_close): Add 'self' argument.
10353 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10354 * linux-nat.c (linux_nat_close): Add argument.
10355 * go32-nat.c (go32_close): Add 'self' argument.
10356 * exec.c (exec_close_1): Add 'self' argument.
10357 * ctf.c (ctf_close): Add 'self' argument.
10358 * corelow.c (core_close): Add 'self' argument.
10359 (core_close_cleanup): Update.
10360 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10361 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10362
10363 2014-02-19 Tom Tromey <tromey@redhat.com>
10364
10365 * remote.c (remote_load): New function.
10366 (init_remote_ops): Use it.
10367
10368 2014-02-19 Tom Tromey <tromey@redhat.com>
10369
10370 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10371 argument.
10372 * common/linux-btrace.h (linux_supports_btrace): Update.
10373 * remote.c (remote_supports_btrace): Add "self" argument.
10374 * target-delegates.c: Rebuild.
10375 * target.c (target_supports_btrace): Remove.
10376 * target.h (struct target_ops) <to_supports_btrace>: Add
10377 target_ops argument.
10378 (target_supports_btrace): New define.
10379
10380 2014-02-19 Tom Tromey <tromey@redhat.com>
10381
10382 * record-full.c (record_full_beneath_to_resume_ops)
10383 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10384 (record_full_beneath_to_wait)
10385 (record_full_beneath_to_store_registers_ops)
10386 (record_full_beneath_to_store_registers)
10387 (record_full_beneath_to_xfer_partial_ops)
10388 (record_full_beneath_to_xfer_partial)
10389 (record_full_beneath_to_insert_breakpoint_ops)
10390 (record_full_beneath_to_insert_breakpoint)
10391 (record_full_beneath_to_remove_breakpoint_ops)
10392 (record_full_beneath_to_remove_breakpoint)
10393 (record_full_beneath_to_stopped_by_watchpoint)
10394 (record_full_beneath_to_stopped_data_address)
10395 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10396 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10397 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10398 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10399 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10400 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10401 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10402 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10403 (record_full_resume, record_full_wait_1)
10404 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10405 (record_full_store_registers, record_full_xfer_partial)
10406 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10407 (record_full_async, record_full_core_xfer_partial): Use target
10408 delegation.
10409 * target-delegates.c: Rebuild.
10410 * target.c (current_xfer_partial): Remove.
10411 (update_current_target): Do not INHERIT or de_fault
10412 to_insert_breakpoint, to_remove_breakpoint,
10413 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10414 to_is_async_p, to_async. Do not set to_xfer_partial field.
10415 (default_xfer_partial): Simplify.
10416 (current_xfer_partial): Remove.
10417 (target_wait, target_resume): Simplify.
10418 (find_default_can_async_p, find_default_is_async_p): Update.
10419 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10420 to_xfer_partial, to_stopped_by_watchpoint,
10421 to_stopped_data_address.
10422 (target_store_registers): Simplify.
10423 (forward_target_remove_breakpoint)
10424 (forward_target_insert_breakpoint): Remove.
10425 (target_remove_breakpoint, target_insert_breakpoint)
10426 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10427 * target.h (struct target_ops) <to_resume, to_wait,
10428 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10429 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10430 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10431 markup.
10432 (forward_target_remove_breakpoint)
10433 (forward_target_insert_breakpoint): Remove.
10434 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10435 directly.
10436 (record_btrace_insert_breakpoint): Delegate directly.
10437
10438 2014-02-19 Tom Tromey <tromey@redhat.com>
10439
10440 PR build/7701:
10441 * target-delegates.c: New file.
10442 * target.c: Include target-delegates.c.
10443 (init_dummy_target): Call install_dummy_methods.
10444 (complete_target_initialization): Call install_delegators.
10445 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10446 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10447 * make-target-delegates: New file.
10448
10449 2014-02-19 Tom Tromey <tromey@redhat.com>
10450
10451 * record.c (find_record_target): Use find_target_at.
10452 * target.c (find_target_at): New function.
10453 * target.h (find_target_at): Declare.
10454
10455 2014-02-19 Tom Tromey <tromey@redhat.com>
10456
10457 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10458 Add 'ops' argument.
10459 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10460 'ops' argument.
10461 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10462 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10463 'ops' argument.
10464 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10465 argument.
10466 * linux-nat.c (save_sigtrap): Update.
10467 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10468 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10469 (linux_nat_close): Update.
10470 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10471 argument.
10472 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10473 argument.
10474 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10475 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10476 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10477 (tmp_to_async): Add 'ops' argument.
10478 (record_full_stopped_by_watchpoint, record_full_async)
10479 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10480 argument.
10481 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10482 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10483 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10484 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10485 (remote_is_async_p, remote_async): Add 'ops' argument.
10486 (remote_stopped_data_address): Update.
10487 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10488 * target.c (update_current_target)
10489 (find_default_can_async_p, find_default_is_async_p): Update.
10490 (init_dummy_target): Update.
10491 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10492 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10493 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10494 (target_can_async_p, target_is_async_p, target_async)
10495 (target_stopped_by_watchpoint): Update.
10496
10497 2014-02-19 Yao Qi <yao@codesourcery.com>
10498
10499 PR gdb/16220
10500 * gdbarch.sh: Remove startup_gdbarch.
10501 * gdbarch.c: Regenerated.
10502 * gdbarch.h: Likewise.
10503
10504 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10505
10506 * rl78-tdep.c (rl78_g10_register_name): New function.
10507 (rl78_return_value): Add g10 support.
10508 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10509 g10.
10510
10511 2014-02-17 Doug Evans <xdje42@gmail.com>
10512
10513 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10514 (SUBDIR_GUILE_SRCS): Ditto.
10515 (scm-gsmob.o): Ditto.
10516
10517 2014-02-17 Yao Qi <yao@codesourcery.com>
10518
10519 * gnu-nat.c (ILL_RPC): Declare defined function.
10520
10521 2014-02-17 Yao Qi <yao@codesourcery.com>
10522
10523 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10524 mach_msg_type_number_t.
10525 (gnu_write_inferior): Likewise.
10526
10527 2014-02-17 Yao Qi <yao@codesourcery.com>
10528
10529 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10530 in format string.
10531 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10532 (inf_validate_procs, inf_signal): Likewise.
10533 (S_exception_raise_request): Likewise.
10534 (do_mach_notify_dead_name): Likewise.
10535 (steal_exc_port): Likewise.
10536 (gnu_read_inferior): Change 'copy_count''s type to
10537 mach_msg_type_number_t.
10538 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10539 format string.
10540
10541 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10542
10543 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10544 flag. Adjust all users; in particular...
10545 (gnu_wait): ..., don't decrement its value in here...
10546 (gnu_create_inferior): ..., and instead set the flag in here,
10547 around the startup_inferior call, and call that one with
10548 START_INFERIOR_TRAPS_EXPECTED.
10549
10550 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10551 (ILL_RPC): ... new macro.
10552 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10553 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10554 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10555 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10556 functions with ILL_RPC macro.
10557 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10558 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10559 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10560 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10561 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10562 (S_proc_getlogin_reply, S_proc_getsid_reply)
10563 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10564 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10565 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10566 (S_proc_getnports_reply, S_proc_is_important_reply)
10567 (S_proc_get_code_reply): New stub functions, generated with
10568 ILL_RPC macro.
10569
10570 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10571 collected the type check structures.
10572
10573 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10574
10575 2014-02-14 Doug Evans <dje@google.com>
10576
10577 * target.c (target_write_partial): Fix result type.
10578
10579 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10580
10581 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10582 the proper offsets to access fpregset_t.
10583
10584 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10585
10586 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10587 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10588 * h8300-tdep.c (setmachinelist): Remove global.
10589 * hppa-tdep.c (hppa_sigtramp): Remove global.
10590 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10591 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10592 * ravenscar-thread.c (update_target_observer): Remove global.
10593 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10594
10595 2014-02-12 Tom Tromey <tromey@redhat.com>
10596
10597 * common/rsp-low.c: Update comments.
10598 * common/rsp-low.h: Update comments.
10599
10600 2014-02-12 Tom Tromey <tromey@redhat.com>
10601
10602 * common/rsp-low.c (convert_ascii_to_int): Remove.
10603 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10604
10605 2014-02-12 Tom Tromey <tromey@redhat.com>
10606
10607 * common/rsp-low.h (unhexify): Don't declare.
10608 * common/rsp-low.c (unhexify): Remove.
10609
10610 2014-02-12 Tom Tromey <tromey@redhat.com>
10611
10612 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10613 * common/rsp-low.c (convert_int_to_ascii): Remove.
10614
10615 2014-02-12 Tom Tromey <tromey@redhat.com>
10616
10617 * common/rsp-low.h (hexify): Don't declare.
10618 * common/rsp-low.c (hexify): Remove.
10619
10620 2014-02-12 Tom Tromey <tromey@redhat.com>
10621
10622 * common/rsp-low.c (hexify): Never take strlen of argument.
10623
10624 2014-02-12 Tom Tromey <tromey@redhat.com>
10625
10626 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10627 * remote.c (extended_remote_run, remote_rcmd)
10628 (remote_download_trace_state_variable, remote_save_trace_data)
10629 (remote_set_trace_notes): Update.
10630 * tracepoint.c (encode_source_string, tfile_write_status)
10631 (tfile_write_uploaded_tsv): Update.
10632
10633 2014-02-12 Tom Tromey <tromey@redhat.com>
10634
10635 * tracepoint.c: Include rsp-low.h.
10636 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10637 * remote.c: Include rsp-low.h.
10638 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10639 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10640 (remote_unescape_input): Move to common/rsp-low.c.
10641 * common/rsp-low.h: New file.
10642 * common/rsp-low.c: New file.
10643 * Makefile.in (SFILES): Add common/rsp-low.c.
10644 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10645 (COMMON_OBS): Add rsp-low.o.
10646 (rsp-low.o): New target.
10647
10648 2014-02-12 Tom Tromey <tromey@redhat.com>
10649
10650 * utils.h: Include print-utils.h.
10651 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10652 (int_string, core_addr_to_string, core_addr_to_string_nz)
10653 (hex_string, hex_string_custom): Don't declare.
10654 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10655 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10656 (hex_string_custom, int_string, core_addr_to_string)
10657 (core_addr_to_string_nz, host_address_to_string): Move to
10658 common/print-utils.c.
10659 * common/print-utils.h: New file.
10660 * common/print-utils.c: New file
10661 * Makefile.in (SFILES): Add common/print-utils.c.
10662 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10663 (COMMON_OBS): Add print-utils.o.
10664 (print-utils.o): New target.
10665
10666 2014-02-12 Tom Tromey <tromey@redhat.com>
10667
10668 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10669
10670 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10671
10672 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10673
10674 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10675
10676 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10677 if a PT_IO ptrace request returns sucessfully but indicates that 0
10678 bytes were transferred.
10679
10680 2014-02-12 Pedro Alves <palves@redhat.com>
10681 Kevin Buettner <kevinb@redhat.com>
10682
10683 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10684 TYPE_INSTANCE_FLAG_CODE_SPACE.
10685
10686 2014-02-12 Pedro Alves <palves@redhat.com>
10687
10688 * h8300-tdep.c (pseudo_from_raw_register)
10689 (raw_from_pseudo_register): New functions.
10690 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10691 them.
10692
10693 2014-02-12 Pedro Alves <palves@redhat.com>
10694
10695 * h8300-tdep.c (h8300_register_sim_regno): New function.
10696 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10697 gdbarch_register_sim_regno hook.
10698
10699 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10700
10701 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10702
10703 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10704
10705 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10706
10707 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10708
10709 * obsd-tdep.h (obsd_init_abi): New prototype.
10710 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10711 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10712 (obsd_init_abi): New functions.
10713 * i386obsd-tdep.c: Include "obsd-tdep.h".
10714 (i386obsd_init_abi): Call obsd_init_abi.
10715 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10716 (amd64obsd_init_abi): Call obsd_init_abi.
10717 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10718 obsd-tdep.c to gdb_target_obs.
10719
10720 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10721
10722 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10723 double float arguments to 16-byte in the argument slots.
10724
10725 2014-02-11 Doug Evans <xdje42@gmail.com>
10726
10727 * configure.ac: Don't crash if pkg-config is not found and guile
10728 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10729 in guile checks.
10730 * configure: Regenerate.
10731
10732 2014-02-11 Yao Qi <yao@codesourcery.com>
10733
10734 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10735 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10736 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10737 * gnu-nat.c (gnu_xfer_memory): Likewise.
10738 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10739 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10740 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10741 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10742
10743 2014-02-11 Yao Qi <yao@codesourcery.com>
10744
10745 * target.h (enum target_xfer_error): Rename to ...
10746 (enum target_xfer_status): ... it. New. All users updated.
10747 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10748 New.
10749 (TARGET_XFER_STATUS_ERROR_P): New macro.
10750 (target_xfer_error_to_string): Remove declaration.
10751 (target_xfer_status_to_string): Declare.
10752 (target_xfer_partial_ftype): Adjust it.
10753 (struct target_ops) <to_xfer_partial>: Return
10754 target_xfer_status. Add argument xfered_len. Update
10755 comments.
10756 * target.c (target_xfer_error_to_string): Rename to ...
10757 (target_xfer_status_to_string): ... it. New. All callers
10758 updated.
10759 (target_read_live_memory): Likewise. Call target_xfer_partial
10760 instead of target_read.
10761 (memory_xfer_live_readonly_partial): Return
10762 target_xfer_status. Add argument xfered_len.
10763 (raw_memory_xfer_partial): Likewise.
10764 (memory_xfer_partial_1): Likewise.
10765 (memory_xfer_partial): Likewise.
10766 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10767 properly. Update debug message.
10768 (default_xfer_partial, current_xfer_partial): Likewise.
10769 (target_write_partial): Likewise.
10770 (target_read_partial): Likewise. All callers updated.
10771 (read_whatever_is_readable): Likewise.
10772 (target_write_with_progress): Likewise.
10773 (target_read_alloc_1): Likewise.
10774
10775 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10776 * auxv.c (procfs_xfer_auxv): Likewise.
10777 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10778 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10779 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10780 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10781 * corefile.c (read_memory): Adjust.
10782 * corelow.c (core_xfer_partial): Likewise.
10783 * ctf.c (ctf_xfer_partial): Likewise.
10784 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10785 updated.
10786 (darwin_xfer_partial): Likewise.
10787 * exec.c (section_table_xfer_memory_partial): Likewise. All
10788 callers updated.
10789 (exec_xfer_partial): Likewise.
10790 * exec.h (section_table_xfer_memory_partial): Update
10791 declaration.
10792 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10793 negative.
10794 (gnu_xfer_partial): Likewise.
10795 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10796 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10797 (ia64_hpux_xfer_solib_got): Likewise.
10798 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10799 type of 'partial_len' to ULONGEST.
10800 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10801 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10802 (linux_nat_xfer_partial): Likewise.
10803 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10804 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10805 * monitor.c (monitor_xfer_memory): Likewise.
10806 (monitor_xfer_partial): Likewise.
10807 * procfs.c (procfs_xfer_partial): Likewise.
10808 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10809 * record-full.c (record_full_xfer_partial): Likewise.
10810 (record_full_core_xfer_partial): Likewise.
10811 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10812 (gdbsim_xfer_partial): Likewise.
10813 * remote.c (remote_write_bytes_aux): Likewise. All callers
10814 updated.
10815 (remote_write_bytes, remote_read_bytes): Likewise. All
10816 callers updated.
10817 (remote_flash_erase): Likewise. All callers updated.
10818 (remote_write_qxfer): Likewise. All callers updated.
10819 (remote_read_qxfer): Likewise. All callers updated.
10820 (remote_xfer_partial): Likewise.
10821 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10822 (rs6000_xfer_shared_libraries): Likewise.
10823 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10824 (sol_thread_xfer_partial): Likewise.
10825 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10826 (sparc_xfer_partial): Likewise.
10827 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10828 updated.
10829 (spu_xfer_partial): Likewise.
10830 * spu-multiarch.c (spu_xfer_partial): Likewise.
10831 * tracepoint.c (tfile_xfer_partial): Likewise.
10832 * windows-nat.c (windows_xfer_memory): Likewise.
10833 (windows_xfer_shared_libraries): Likewise.
10834 (windows_xfer_partial): Likewise.
10835 * valprint.c: Replace 'target_xfer_error' with
10836 'target_xfer_status' in comments.
10837
10838 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10839
10840 Checked in by Joel Brobecker <brobecker@adacore.com>.
10841 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10842
10843 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10844
10845 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10846 function parameters.
10847
10848 2014-02-10 Will Newton <will.newton@linaro.org>
10849
10850 * elfread.c (elf_rel_plt_read): Look for a .got section if
10851 looking up .got.plt fails.
10852 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10853 on address passed to elf_gnu_ifunc_record_cache.
10854 (elf_gnu_ifunc_resolve_addr): Likewise.
10855 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10856
10857 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10858
10859 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10860 (X_RETTURN): New macro.
10861 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10862
10863 * sparc64-tdep.c (sparc64_init_abi): Hook
10864 sparc_in_function_epilogue_p.
10865
10866 2014-02-10 Gary Benson <gbenson@redhat.com>
10867
10868 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10869 Rename name_matcher to symbol_matcher.
10870
10871 2014-02-10 Gary Benson <gbenson@redhat.com>
10872
10873 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10874 Use expand_symtabs_file_matcher_ftype and
10875 expand_symtabs_symbol_matcher_ftype.
10876
10877 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10878
10879 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10880 (struct ada_symbol_cache): New.
10881 (ada_free_symbol_cache): Forward declare.
10882 (struct ada_pspace_data): New.
10883 (ada_pspace_data_handle): New static global.
10884 (get_ada_pspace_data, ada_pspace_data_cleanup)
10885 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10886 (cache_space, cache): Delete, now folded inside struct
10887 ada_pspace_data.
10888 (ada_get_symbol_cache): New function.
10889 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10890 implementation.
10891 (_initialize_ada_language): Remove initialization of cache_space.
10892 Move call to observer_attach_inferior_exit up, grouping it
10893 with the other observer registrations inside this function.
10894 Rename command to be more general. Add call to
10895 register_program_space_data_with_cleanup.
10896
10897 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10898
10899 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10900 ada_new_objfile_observer.
10901 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10902 (_initialize_tasks): Update uses of ada_new_objfile_observer
10903 and ada_tasks_normal_stop_observer.
10904
10905 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10906
10907 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10908 returned by the 'Length attribute to integer.
10909
10910 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10911
10912 * ada-lang.c (_initialize_ada_language): Initialize
10913 cache_space obstack.
10914
10915 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10916
10917 * ada-lang.c (HASH_SIZE): New macro.
10918 (struct cache_entry): New type.
10919 (cache_space, cache): New static globals.
10920 (ada_clear_symbol_cache, find_entry): New functions.
10921 (lookup_cached_symbol, cache_symbol): Implement.
10922 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10923 (_initialize_ada_language): Attach ada_new_objfile_observer
10924 and ada_free_objfile_observer.
10925
10926 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10927
10928 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10929 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10930 struct block * parameter.
10931 (ada_lookup_symbol_list_worker): Constify local variable "block".
10932 Remove cast which is no longer necessary.
10933
10934 2014-02-10 Doug Evans <xdje42@gmail.com>
10935
10936 Add Guile as an extension language.
10937 * NEWS: Mention Guile scripting.
10938 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10939 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10940 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10941 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10942 (CLIBS): Add GUILE_LIBS.
10943 (install-guile): New rule.
10944 (guile.o): New rule.
10945 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10946 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10947 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10948 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10949 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10950 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10951 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10952 * configure.ac: New option --with-guile.
10953 * configure: Regenerate.
10954 * config.in: Regenerate.
10955 * auto-load.c: Remove #include "python/python.h". Add #include
10956 "gdb/section-scripts.h".
10957 (source_section_scripts): Handle Guile scripts.
10958 (_initialize_auto_load): Add name of Guile objfile script to
10959 scripts-directory help text.
10960 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10961 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10962 (struct breakpoint): New member scm_bp_object.
10963 * defs.h (enum command_control_type): New value guile_control.
10964 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10965 "extension.h".
10966 (show_user): Update comment.
10967 (_initialize_cli_cmds): Update help text for "show user". Update help
10968 text for max-user-call-depth.
10969 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10970 "extension.h".
10971 (multi_line_command_p): Add guile_control.
10972 (print_command_lines): Handle guile_control.
10973 (execute_control_command, recurse_read_control_structure): Ditto.
10974 (process_next_line): Recognize "guile" commands.
10975 * disasm.c (gdb_disassemble_info): Make non-static.
10976 * disasm.h: #include "dis-asm.h".
10977 (struct gdbarch): Add forward decl.
10978 (gdb_disassemble_info): Declare.
10979 * extension.c: #include "guile/guile.h".
10980 (extension_languages): Add guile.
10981 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10982 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10983 * gdbtypes.c (get_unsigned_type_max): New function.
10984 (get_signed_type_minmax): New function.
10985 * gdbtypes.h (get_unsigned_type_max): Declare.
10986 (get_signed_type_minmax): Declare.
10987 * guile/README: New file.
10988 * guile/guile-internal.h: New file.
10989 * guile/guile.c: New file.
10990 * guile/guile.h: New file.
10991 * guile/scm-arch.c: New file.
10992 * guile/scm-auto-load.c: New file.
10993 * guile/scm-block.c: New file.
10994 * guile/scm-breakpoint.c: New file.
10995 * guile/scm-disasm.c: New file.
10996 * guile/scm-exception.c: New file.
10997 * guile/scm-frame.c: New file.
10998 * guile/scm-gsmob.c: New file.
10999 * guile/scm-iterator.c: New file.
11000 * guile/scm-lazy-string.c: New file.
11001 * guile/scm-math.c: New file.
11002 * guile/scm-objfile.c: New file.
11003 * guile/scm-ports.c: New file.
11004 * guile/scm-pretty-print.c: New file.
11005 * guile/scm-safe-call.c: New file.
11006 * guile/scm-string.c: New file.
11007 * guile/scm-symbol.c: New file.
11008 * guile/scm-symtab.c: New file.
11009 * guile/scm-type.c: New file.
11010 * guile/scm-utils.c: New file.
11011 * guile/scm-value.c: New file.
11012 * guile/lib/gdb.scm: New file.
11013 * guile/lib/gdb/boot.scm: New file.
11014 * guile/lib/gdb/experimental.scm: New file.
11015 * guile/lib/gdb/init.scm: New file.
11016 * guile/lib/gdb/iterator.scm: New file.
11017 * guile/lib/gdb/printing.scm: New file.
11018 * guile/lib/gdb/types.scm: New file.
11019 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11020 (VPATH): Add $(GUILE_SRCDIR).
11021 (GUILE_DIR): New variable.
11022 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11023 (all): Add stamp-guile dependency.
11024 (stamp-guile): New rule.
11025 (clean-guile, install-guile, uninstall-guile): New rules.
11026 (install-only): Add install-guile dependency.
11027 (uninstall): Add uninstall-guile dependency.
11028 (clean): Add clean-guile dependency.
11029
11030 2014-02-09 Doug Evans <xdje42@gmail.com>
11031
11032 Revert this patch (which I approved, mea culpa).
11033
11034 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11035
11036 * Makefile.in (all-lib): Remove.
11037 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11038
11039 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11040
11041 Fix Python stack corruption.
11042 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11043 gdb_py_longest.
11044
11045 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11046
11047 * Makefile.in (all-lib): Remove.
11048 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11049
11050 2014-02-07 Doug Evans <dje@google.com>
11051
11052 * extension-priv.h (extension_language_script_ops): Add comment.
11053 (extension_language_ops): Add comment.
11054 (active_ext_lang_state): Fix typo in comment.
11055
11056 2014-02-07 Pedro Alves <palves@redhat.com>
11057
11058 PR breakpoints/16292
11059 * infrun.c (handle_signal_stop) <signal arrives while stepping
11060 over a breakpoint>: Switch back to the stepping thread.
11061
11062 2014-02-07 Yao Qi <yao@codesourcery.com>
11063
11064 * target.c (target_xfer_partial): Return zero if LEN is zero.
11065
11066 2014-02-07 Yao Qi <yao@codesourcery.com>
11067
11068 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11069 (ld_so_xfer_auxv): Likewise.
11070 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11071 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11072 * corelow.c (core_xfer_partial): Likewise.
11073 * ctf.c (ctf_xfer_partial): Likewise.
11074 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11075 (darwin_xfer_partial): Likewise.
11076 * exec.c (exec_xfer_partial): Likewise.
11077 * gnu-nat.c (gnu_xfer_partial): Likewise.
11078 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11079 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11080 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11081 * linux-nat.c (linux_xfer_siginfo): Likewise.
11082 (linux_proc_xfer_spu): Likewise.
11083 * procfs.c (procfs_xfer_partial): Likewise.
11084 * record-full.c (record_full_xfer_partial): Likewise.
11085 (record_full_core_xfer_partial): Likewise.
11086 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11087 * remote.c (remote_write_qxfer): Likewise.
11088 (remote_write_qxfer, remote_read_qxfer): Likewise.
11089 (remote_xfer_partial): Likewise.
11090 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11091 (rs6000_xfer_shared_libraries): Likewise.
11092 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11093 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11094 (spu_xfer_partial): Likewise.
11095 * target.c (memory_xfer_partial_1): Likewise.
11096 * tracepoint.c (tfile_xfer_partial): Likewise.
11097 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11098 (windows_xfer_partial): Likewise.
11099
11100 2014-02-07 Yao Qi <yao@codesourcery.com>
11101
11102 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11103 comments.
11104 (core_xfer_shared_libraries_aix): Likewise.
11105 * gdbarch.c, gdbarch.h: Regenerated.
11106 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11107 ULONGEST. Change 'len_avail' type to ULONGEST.
11108 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11109 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11110 declaration.
11111 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11112
11113 2014-02-07 Yao Qi <yao@codesourcery.com>
11114
11115 * corefile.c (memory_error): Get 'exception' from ERR and pass
11116 'exception' to throw_error.
11117
11118 2014-02-06 Doug Evans <xdje42@gmail.com>
11119
11120 * configure.ac (libpython checking): Remove all but python.o from
11121 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11122 * configure: Regenerate.
11123
11124 * Makefile.in (SFILES): Add extension.c.
11125 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11126 (COMMON_OBS): Add extension.o.
11127 * extension.h: New file.
11128 * extension-priv.h: New file.
11129 * extension.c: New file.
11130
11131 * python/python-internal.h: #include "extension.h".
11132 (gdbpy_auto_load_enabled): Declare.
11133 (gdbpy_apply_val_pretty_printer): Declare.
11134 (gdbpy_apply_frame_filter): Declare.
11135 (gdbpy_preserve_values): Declare.
11136 (gdbpy_breakpoint_cond_says_stop): Declare.
11137 (gdbpy_breakpoint_has_cond): Declare.
11138 (void source_python_script_for_objfile): Delete.
11139 * python/python.c: #include "extension-priv.h".
11140 Delete inclusion of "observer.h".
11141 (extension_language_python): Moved here and renamed from
11142 script_language_python in py-auto-load.c.
11143 Redefined to be of type extension_language_defn.
11144 (python_extension_script_ops): New global.
11145 (python_extension_ops): New global.
11146 (struct python_env): New member previous_active.
11147 (restore_python_env): Call restore_active_ext_lang.
11148 (ensure_python_env): Call set_active_ext_lang.
11149 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11150 New arg extlang.
11151 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11152 New arg extlang.
11153 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11154 New arg extlang.
11155 (gdbpy_eval_from_control_command): Renamed from
11156 eval_python_from_control_command, made static. New arg extlang.
11157 (gdbpy_source_script) Renamed from source_python_script, made static.
11158 New arg extlang.
11159 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11160 result to int. New arg extlang.
11161 (gdbpy_source_objfile_script): Renamed from
11162 source_python_script_for_objfile, made static. New arg extlang.
11163 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11164 static. New args extlang, extlang_printers. Change result type to
11165 "void".
11166 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11167 static. New arg extlang. Rename arg printers to extlang_printers
11168 and change type to ext_lang_type_printers *.
11169 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11170 static. Replace argument arg with extlang, extlang_printers.
11171 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11172 (!HAVE_PYTHON, source_python_script): Delete.
11173 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11174 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11175 (!HAVE_PYTHON, start_type_printers): Delete.
11176 (!HAVE_PYTHON, apply_type_printers): Delete.
11177 (!HAVE_PYTHON, free_type_printers): Delete.
11178 (_initialize_python): Delete call to observer_attach_before_prompt.
11179 (finalize_python): Set/restore active extension language.
11180 (gdbpy_finish_initialization) Renamed from
11181 finish_python_initialization, made static. New arg extlang.
11182 (gdbpy_initialized): New function.
11183 * python/python.h: #include "extension.h". Delete #include
11184 "value.h", "mi/mi-cmds.h".
11185 (extension_language_python): Declare.
11186 (GDBPY_AUTO_FILE_NAME): Delete.
11187 (enum py_bt_status): Moved to extension.h and renamed to
11188 ext_lang_bt_status.
11189 (enum frame_filter_flags): Moved to extension.h.
11190 (enum py_frame_args): Moved to extension.h and renamed to
11191 ext_lang_frame_args.
11192 (finish_python_initialization): Delete.
11193 (eval_python_from_control_command): Delete.
11194 (source_python_script): Delete.
11195 (apply_val_pretty_printer): Delete.
11196 (apply_frame_filter): Delete.
11197 (preserve_python_values): Delete.
11198 (gdbpy_script_language_defn): Delete.
11199 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11200 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11201
11202 * auto-load.c: #include "extension.h".
11203 (GDB_AUTO_FILE_NAME): Delete.
11204 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11205 (script_language_gdb): Delete, moved to extension.c and renamed to
11206 extension_language_gdb.
11207 (source_gdb_script_for_objfile): Delete.
11208 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11209 (loaded_script): Change type of language member to
11210 struct extension_language_defn *.
11211 (init_loaded_scripts_info): Initialize
11212 unsupported_script_warning_printed.
11213 (maybe_add_script): Make static. Change type of language arg to
11214 struct extension_language_defn *.
11215 (clear_section_scripts): Reset unsupported_script_warning_printed.
11216 (auto_load_objfile_script_1): Rewrite to use extension language API.
11217 (auto_load_objfile_script): Make public. Remove support-compiled-in
11218 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11219 (source_section_scripts): Rewrite to use extension language API.
11220 (load_auto_scripts_for_objfile): Rewrite to use
11221 auto_load_scripts_for_objfile.
11222 (collect_matching_scripts_data): Change type of language member to
11223 struct extension_language_defn *.
11224 (auto_load_info_scripts): Change type of language arg to
11225 struct extension_language_defn *.
11226 (unsupported_script_warning_print): New function.
11227 (script_not_found_warning_print): Make static.
11228 (_initialize_auto_load): Rewrite construction of scripts-directory
11229 help.
11230 * auto-load.h (struct objfile): Add forward decl.
11231 (struct script_language): Delete.
11232 (struct auto_load_pspace_info): Add forward decl.
11233 (struct extension_language_defn): Add forward decl.
11234 (maybe_add_script): Delete.
11235 (auto_load_objfile_script): Declare.
11236 (script_not_found_warning_print): Delete.
11237 (auto_load_info_scripts): Update prototype.
11238 (auto_load_gdb_scripts_enabled): Declare.
11239 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11240 auto_load_python_scripts_enabled and made public.
11241 (script_language_python): Delete, moved to python.c.
11242 (gdbpy_script_language_defn): Delete.
11243 (info_auto_load_python_scripts): Update to use
11244 extension_language_python.
11245
11246 * breakpoint.c (condition_command): Replace call to
11247 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11248 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11249 with call to breakpoint_ext_lang_cond_says_stop.
11250 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11251 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11252 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11253 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11254 New arg slang.
11255 (local_setattro): Print name of extension language with existing
11256 stop condition.
11257
11258 * valprint.c (val_print, value_print): Update to call
11259 apply_ext_lang_val_pretty_printer.
11260 * cp-valprint.c (cp_print_value): Update call to
11261 apply_ext_lang_val_pretty_printer.
11262 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11263 (gdbpy_apply_val_pretty_printer): Renamed from
11264 apply_val_pretty_printer. New arg extlang.
11265 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11266
11267 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11268 extension language API.
11269 * cli/cli-script.c (execute_control_command): Update to call
11270 eval_ext_lang_from_control_command.
11271
11272 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11273 enum ext_lang_bt_status values. Update call to
11274 apply_ext_lang_frame_filter.
11275 (mi_cmd_stack_list_locals): Ditto.
11276 (mi_cmd_stack_list_args): Ditto.
11277 (mi_cmd_stack_list_variables): Ditto.
11278 * mi/mi-main.c: Delete #include "python/python-internal.h".
11279 Add #include "extension.h".
11280 (mi_cmd_list_features): Replace reference to python internal variable
11281 gdb_python_initialized with call to ext_lang_initialized_p.
11282
11283 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11284 Update to use enum ext_lang_frame_args. Update to call
11285 apply_ext_lang_frame_filter.
11286 * python/py-framefilter.c (extract_sym): Update to use enum
11287 ext_lang_bt_status.
11288 (extract_value, py_print_type, py_print_value): Ditto.
11289 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11290 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11291 (py_print_frame): Ditto.
11292 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11293 New arg extlang. Update to use enum ext_lang_bt_status.
11294
11295 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11296 finish_python_initialization. Replace with call to
11297 finish_ext_lang_initialization.
11298
11299 * typeprint.c (do_free_global_table): Update to call
11300 free_ext_lang_type_printers.
11301 (create_global_typedef_table): Update to call
11302 start_ext_lang_type_printers.
11303 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11304 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11305 (type_print_options): Change type of global_printers from "void *"
11306 to "struct ext_lang_type_printers *".
11307
11308 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11309 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11310 (gdbpy_preserve_values): Renamed from preserve_python_values.
11311 New arg extlang.
11312 (!HAVE_PYTHON, preserve_python_values): Delete.
11313
11314 * utils.c (quit_flag): Delete, moved to extension.c.
11315 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11316 extension.c.
11317
11318 * eval.c: Delete #include "python/python.h".
11319 * main.c: Delete #include "python/python.h".
11320
11321 * defs.h: Update comment.
11322
11323 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11324
11325 GDB 7.7 released.
11326
11327 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11328
11329 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11330 defined.
11331
11332 2014-02-05 Yao Qi <yao@codesourcery.com>
11333
11334 * remote.c (remote_pass_signals): Remove local 'buf' and use
11335 rs->buf.
11336 (remote_program_signals): Likewise.
11337
11338 2014-02-05 Yao Qi <yao@codesourcery.com>
11339
11340 * ctf.c: Include "inferior.h" and "gdbthread.h".
11341 (CTF_PID): A new macro.
11342 (ctf_open): Call inferior_appeared and add_thread_silent.
11343 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11344 (ctf_thread_alive): New function.
11345 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11346
11347 2014-02-05 Yao Qi <yao@codesourcery.com>
11348
11349 Revert this patch:
11350
11351 2013-05-24 Yao Qi <yao@codesourcery.com>
11352
11353 * tracepoint.c (TFILE_PID): Remove.
11354 (tfile_open): Don't add thread and inferior.
11355 (tfile_close): Don't set 'inferior_ptid'. Don't call
11356 exit_inferior_silent.
11357 (tfile_thread_alive): Remove.
11358 (init_tfile_ops): Don't set field 'to_thread_alive' of
11359 tfile_ops.
11360
11361 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11362
11363 * remote.c (remote_start_remote): Call remote_check_symbols even
11364 if only symbol-file (not file) has been given.
11365
11366 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11367
11368 * gdbarch.sh (skip_entrypoint): New callback.
11369 * gdbarch.c, gdbarch.h: Regenerate.
11370 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11371 * infrun.c (fill_in_stop_func): Likewise.
11372 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11373 (ppc_elfv2_elf_make_msymbol_special): New function.
11374 (ppc_elfv2_skip_entrypoint): Likewise.
11375 (ppc_linux_init_abi): Install them for ELFv2.
11376
11377 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11378
11379 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11380 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11381 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11382 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11383 structures returned in GPRs.
11384
11385 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11386
11387 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11388 offset to the stack parameter list for the ELFv2 ABI.
11389
11390 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11391
11392 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11393 set_gdbarch_convert_from_func_ptr_addr and
11394 set_gdbarch_elf_make_msymbol_special for ELFv1.
11395 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11396 function descriptors on ELFv1.
11397 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11398 set up r12 at function entry.
11399
11400 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11401
11402 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11403 (struct gdbarch_tdep): New member elf_abi.
11404
11405 * rs6000-tdep.c: Include "elf/ppc64.h".
11406 (rs6000_gdbarch_init): Detect ELF ABI version.
11407
11408 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11409
11410 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11411 within a register pair holding a DFP 128-bit value on little-endian.
11412 (ppc64_sysv_abi_return_value_base): Likewise.
11413 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11414 (dfp_pseudo_register_write): Likewise.
11415
11416 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11417
11418 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11419 offset on little-endian when passing _Decimal32.
11420 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11421
11422 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11423
11424 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11425 of the overlapped FP register within the VSX register on little-
11426 endian platforms.
11427 (efpr_pseudo_register_write): Likewise.
11428
11429 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11430
11431 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11432 offset on little-endian when passing small structures.
11433
11434 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11435
11436 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11437 (struct ppc64_sysv_argpos): New data structure.
11438 (ppc64_sysv_abi_push_float): Remove.
11439 (ppc64_sysv_abi_push_val): New function.
11440 (ppc64_sysv_abi_push_integer): Likewise.
11441 (ppc64_sysv_abi_push_freg): Likewise.
11442 (ppc64_sysv_abi_push_vreg): Likewise.
11443 (ppc64_sysv_abi_push_param): Likewise.
11444 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11445 (ppc64_sysv_abi_return_value_base): New function.
11446 (ppc64_sysv_abi_return_value): Refactor to use it.
11447
11448 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11449
11450 * NEWS: Document new target powerpc64le-*-linux*.
11451
11452 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11453
11454 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11455 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11456 core dumps.
11457 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11458 register set used in ELF core dumps. Add floating-point register set.
11459
11460 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11461
11462 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11463 dwarf2_to_gdb[] table using symbolic constants. Adjust
11464 penultimate entry from number representing the PC register
11465 to symbolic constant representing the MDR register. Add
11466 constant for the PC register to the end of the table.
11467
11468 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11469
11470 * bsd-kvm.c: Include <sys/param.h>
11471
11472 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11473
11474 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11475
11476 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11477
11478 * ada-lang.h (clear_ada_sym_cache): Delete.
11479
11480 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11481
11482 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11483
11484 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11485
11486 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11487 the sigreturn register save area only if the syscall is
11488 sigreturn.
11489
11490 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11491
11492 * valops.c (value_slice): Minor reformatting.
11493
11494 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11495
11496 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11497
11498 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11499
11500 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11501 New static globals.
11502 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11503 (ada_ignore_descriptive_types_p): New static global.
11504 (find_parallel_type_by_descriptive_type): Return immediately
11505 if ada_ignore_descriptive_types_p is set.
11506 (_initialize_ada_language): Register new commands "maintenance
11507 set ada", "maintenance show ada", "maintenance set ada
11508 ignore-descriptive-types" and "maintenance show ada
11509 ignore-descriptive-types".
11510 * NEWS: Add entry for new "maint ada set/show
11511 ignore-descriptive-types" commands.
11512
11513 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11514
11515 * record-btrace.c (record_btrace_close): Call btrace_teardown
11516 for all threads.
11517
11518 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11519
11520 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11521 "ui-out.h".
11522
11523 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11524
11525 * ada-typeprint (type_is_full_subrange_of_target_type):
11526 New function.
11527 (print_range): Add parameter bounds_prefered_p. If not set,
11528 try printing range types using the name of their base type.
11529 (print_range_type): Add parameter bounds_prefered_p.
11530 Use it in call to print_range.
11531 (print_array_type, ada_print_type): Update calls to print_range
11532 and print_range_type.
11533
11534 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11535
11536 * ada-typeprint.c (print_array_type, print_choices, print_range)
11537 (print_range_bound, print_dynamic_range_bound, print_range_type):
11538 Remove declaration.
11539
11540 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11541
11542 * ada-typeprint.c (print_range): Add missing empty line
11543 after local declaration.
11544
11545 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11546
11547 * ada-valprint.c (print_optional_low_bound): Get index_type's
11548 target type for as long as it is a TYPE_CODE_RANGE.
11549
11550 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11551
11552 * procfs.c (procfs_make_note_section): Remove assertion and
11553 associated comment.
11554
11555 2014-01-24 Yao Qi <yao@codesourcery.com>
11556
11557 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11558 * corelow.c (get_core_siginfo): Likewise.
11559
11560 2014-01-24 Yao Qi <yao@codesourcery.com>
11561
11562 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11563 ULONGEST. Don't check 'len' is negative.
11564 (remote_write_bytes): Change type of 'len' to ULONGEST.
11565
11566 2014-01-23 Tom Tromey <tromey@redhat.com>
11567
11568 PR python/16485:
11569 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11570 Handle exception from frame.block.
11571 (FrameVars.fetch_frame_locals): Likewise.
11572
11573 2014-01-23 Tom Tromey <tromey@redhat.com>
11574
11575 PR python/16487:
11576 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11577 on a NULL pointer. Move "goto error" to correct place.
11578
11579 2014-01-23 Tom Tromey <tromey@redhat.com>
11580
11581 PR python/16491:
11582 * python/py-framefilter.c (apply_frame_filter): Call
11583 ensure_python_env after computing gdbarch.
11584
11585 2014-01-23 Yao Qi <yao@codesourcery.com>
11586
11587 * target.c (raw_memory_xfer_partial): Change argument type
11588 from void * to gdb_byte *.
11589 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11590
11591 2014-01-22 Doug Evans <dje@google.com>
11592
11593 New gdbserver option --debug-format=timestamp.
11594 * NEWS: Mention it.
11595
11596 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11597
11598 * syscalls/s390x-linux.xml: New file.
11599 * syscalls/s390-linux.xml: New file.
11600 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11601 (XML_SYSCALL_FILENAME_S390X): Likewise.
11602 (op_svc): New enum value for SVC opcode.
11603 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11604 (s390_linux_get_syscall_number): New function.
11605 (s390_gdbarch_init): Register '*get_syscall_number' and the
11606 syscall xml file name.
11607 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11608 "s390-linux.xml" and "s390x-linux.xml".
11609 * NEWS: Announce new feature.
11610
11611 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11612
11613 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11614
11615 2014-01-22 Pedro Alves <palves@redhat.com>
11616
11617 * xtensa-config.c: Include defs.h.
11618
11619 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11620
11621 * common/common-utils.h: Add "ARI:" comment beside __func__
11622 reference.
11623
11624 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11625
11626 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11627 documentation a bit.
11628
11629 2014-01-21 Roland McGrath <mcgrathr@google.com>
11630
11631 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11632 * configure: Regenerate.
11633 * aclocal.m4: Regenerate.
11634 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11635 New substituted variables.
11636 (install-strip): New target.
11637 (INSTALL_SCRIPT): New substituted variable.
11638 (FLAGS_TO_PASS): Add it.
11639 (install-only): Use $(INSTALL_SCRIPT) rather than
11640 $(INSTALL_PROGRAM) for gcore.
11641
11642 2014-01-20 Tom Tromey <tromey@redhat.com>
11643
11644 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11645 together.
11646
11647 2014-01-20 Tom Tromey <tromey@redhat.com>
11648
11649 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11650 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11651 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11652 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11653 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11654 (struct cmd_list_element) <flags>: Remove.
11655 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11656 doc_allocated>: New fields.
11657 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11658 bitfields.
11659 * maint.c (maintenance_do_deprecate): Update.
11660 * top.c (execute_command): Update.
11661
11662 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11663
11664 * xtensa-linux-nat.c: Include asm/ptrace.h.
11665
11666 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11667
11668 * Makefile.in (SFILES): Add d-support.c.
11669 (COMMON_OBS): Add d-support.o.
11670 * d-lang.h (d_parse_symbol): Add comment, now defined in
11671 d-support.c.
11672 * d-lang.c (parse_call_convention)
11673 (parse_attributes, parse_function_types)
11674 (parse_function_args, parse_type, parse_identifier)
11675 (call_convention_p, d_parse_symbol): Move functions to ...
11676 * d-support.c: ... New file.
11677
11678 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11679
11680 * d-lang.h (d_parse_symbol): Add declaration.
11681 * d-lang.c (extract_identifiers)
11682 (extract_type_info): Remove functions.
11683 (parse_call_convention, parse_attributes)
11684 (parse_function_types, parse_function_args)
11685 (parse_type, parse_identifier, call_convention_p)
11686 (d_parse_symbol): New functions.
11687 (d_demangle): Use d_parse_symbol to demangle D symbols.
11688
11689 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11690
11691 * d-lang.h (struct builtin_d_type): New data type.
11692 (builtin_d_type): Add declaration.
11693 * d-lang.c (d_language_arch_info, build_d_types)
11694 (builtin_d_type): New functions.
11695 (enum d_primitive_types): New data type.
11696 (d_language_defn): Change c_language_arch_info to
11697 d_language_arch_info.
11698 (d_type_data): New static variable.
11699 (_initialize_d_language): Initialize d_type_data.
11700
11701 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11702
11703 * d-lang.h (d_main_name): Add declaration.
11704 * d-lang.c (d_main_name): New function.
11705 * symtab.c (find_main_name): Add call to d_main_name.
11706
11707 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11708
11709 * d-lang.c (d_language_defn): Change macro_expansion_c to
11710 macro_expansion_no.
11711
11712 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11713
11714 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11715
11716 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11717
11718 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11719 gdb_exception" declaration.
11720 * remote.c (getpkt_or_notif_sane): Likewise.
11721
11722 2014-01-17 Doug Evans <dje@google.com>
11723
11724 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11725 function, contents of dirnames_to_char_ptr_vec_append moved here.
11726 (delim_string_to_char_ptr_vec): New function.
11727 (dirnames_to_char_ptr_vec_append): Rewrite.
11728 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11729
11730 2014-01-17 Doug Evans <dje@google.com>
11731
11732 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11733 and moved here ...
11734 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11735 #include "common-utils.h".
11736 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11737 * common/vec.h (VEC_ASSERT_PASS): Update.
11738 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11739 (MACH_CHECK_ERROR): Update.
11740
11741 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11742
11743 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11744 comments.
11745 * gdbarch.h: Regenerate.
11746
11747 2014-01-16 Tom Tromey <tromey@redhat.com>
11748
11749 * value.c (struct value) <regnum>: Move earlier.
11750
11751 2014-01-16 Tom Tromey <tromey@redhat.com>
11752
11753 * remote.c (extended_remote_create_inferior): Rename from
11754 extended_remote_create_inferior_1. Add "ops" argument. Remove
11755 old implementation.
11756
11757 2014-01-16 Pedro Alves <palves@redhat.com>
11758
11759 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11760 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11761 the backchain.
11762
11763 2014-01-16 Doug Evans <dje@google.com>
11764
11765 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11766
11767 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11768
11769 * btrace.h (btrace_thread_flag): New.
11770 (struct btrace_thread_info) <flags>: New.
11771 * record-btrace.c (record_btrace_resume_thread)
11772 (record_btrace_find_thread_to_move, btrace_step_no_history)
11773 (btrace_step_stopped, record_btrace_start_replaying)
11774 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11775 (record_btrace_find_resume_thread): New.
11776 (record_btrace_resume, record_btrace_wait): Extend.
11777 (record_btrace_can_execute_reverse): New.
11778 (record_btrace_open): Fail in non-stop mode.
11779 (record_btrace_set_replay): Split into this, ...
11780 (record_btrace_stop_replaying): ... this, ...
11781 (record_btrace_clear_histories): ... and this.
11782 (init_record_btrace_ops): Init to_can_execute_reverse.
11783 * NEWS: Announce it.
11784
11785 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11786
11787 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11788 (forward_target_decr_pc_after_break)
11789 (target_decr_pc_after_break): New.
11790 * target.c (forward_target_decr_pc_after_break)
11791 (target_decr_pc_after_break): New.
11792 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11793 instead of gdbarch_decr_pc_after_break.
11794 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11795 instead of gdbarch_decr_pc_after_break.
11796 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11797 instead of gdbarch_decr_pc_after_break.
11798 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11799 instead of gdbarch_decr_pc_after_break.
11800 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11801 instead of gdbarch_decr_pc_after_break.
11802 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11803 instead of gdbarch_decr_pc_after_break.
11804
11805 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11806
11807 * btrace.c: Include regcache.h.
11808 (btrace_add_pc): New.
11809 (btrace_enable): Call btrace_add_pc.
11810 (btrace_is_empty): New.
11811 * btrace.h (btrace_is_empty): New.
11812 * record-btrace.c (require_btrace, record_btrace_info): Call
11813 btrace_is_empty.
11814
11815 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11816
11817 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11818 Support delta reads.
11819 (linux_disable_btrace): Change return type.
11820 * common/linux-btrace.h (linux_read_btrace): Change parameters
11821 and return type to allow error reporting. Update users.
11822 (linux_disable_btrace): Change return type. Update users.
11823 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11824 New.
11825 (btrace_error): New.
11826 (btrace_block) <begin>: Comment on BEGIN == 0.
11827 * btrace.c (btrace_compute_ftrace): Start from the end of
11828 the current trace.
11829 (btrace_stitch_trace, btrace_clear_history): New.
11830 (btrace_fetch): Read delta trace, return if replaying.
11831 (btrace_clear): Move clear history code to btrace_clear_history.
11832 (parse_xml_btrace): Throw an error if parsing failed.
11833 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11834 and return type to allow error reporting.
11835 (target_read_btrace): Change parameters and return type to allow
11836 error reporting.
11837 * target.c (target_read_btrace): Update.
11838 * remote.c (remote_read_btrace): Support delta reads. Pass
11839 errors on.
11840 * NEWS: Announce it.
11841
11842 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11843
11844 * record.h (record_btrace_frame_unwind)
11845 (record_btrace_tailcall_frame_unwind): New declarations.
11846 * dwarf2-frame: Include record.h
11847 (dwarf2_frame_cfa): Throw an error for btrace frames.
11848 * record-btrace.c: Include hashtab.h.
11849 (btrace_get_bfun_name): New.
11850 (btrace_call_history): Call btrace_get_bfun_name.
11851 (struct btrace_frame_cache): New.
11852 (bfcache): New.
11853 (bfcache_hash, bfcache_eq, bfcache_new): New.
11854 (btrace_get_frame_function): New.
11855 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11856 (record_btrace_frame_this_id): Compute own id.
11857 (record_btrace_frame_prev_register): Provide PC, throw_error
11858 for all other registers.
11859 (record_btrace_frame_sniffer): Detect btrace frames.
11860 (record_btrace_tailcall_frame_sniffer): New.
11861 (record_btrace_frame_dealloc_cache): New.
11862 (record_btrace_frame_unwind): Add new functions.
11863 (record_btrace_tailcall_frame_unwind): New.
11864 (_initialize_record_btrace): Allocate cache.
11865 * btrace.c (btrace_clear): Call reinit_frame_cache.
11866 * NEWS: Announce it.
11867
11868 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11869
11870 * record-btrace.c (record_btrace_set_replay)
11871 (record_btrace_goto_begin, record_btrace_goto_end)
11872 (record_btrace_goto): New.
11873 (init_record_btrace_ops): Initialize them.
11874 * NEWS: Announce it.
11875
11876 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11877
11878 * record-btrace.c (record_btrace_find_new_threads)
11879 (record_btrace_thread_alive): New.
11880 (init_record_btrace_ops): Initialize to_find_new_threads and
11881 to_thread_alive.
11882
11883 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11884
11885 * record-btrace.c (record_btrace_resume): New.
11886 (record_btrace_wait): New.
11887 (init_record_btrace_ops): Initialize to_wait and to_resume.
11888
11889 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11890
11891 * record-btrace.c (record_btrace_xfer_partial)
11892 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11893 (record_btrace_allow_memory_access): New.
11894 (init_record_btrace_ops): Initialize new methods.
11895 * target.c (raw_memory_xfer_partial): Bail out if target reports
11896 that this memory is not available.
11897
11898 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11899
11900 * target.h (target_ops) <to_insert_breakpoint>
11901 <to_remove_breakpoint>: Add target_ops parameter.
11902 (forward_target_insert_breakpoint): New.
11903 (forward_target_remove_breakpoint): New.
11904 (memory_remove_breakpoint, memory_insert_breakpoint):
11905 Add target_ops parameter.
11906 * target.c (target_insert_breakpoint): Split into this and ...
11907 (forward_target_insert_breakpoint): ... this.
11908 (target_remove_breakpoint): Split into this and ...
11909 (forward_target_remove_breakpoint): ... this.
11910 (debug_to_insert_breakpoint): Add target_ops parameter.
11911 Call forward_target_insert_breakpoint.
11912 (debug_to_remove_breakpoint): Add target_ops parameter.
11913 Call forward_target_remove_breakpoint.
11914 (update_current_target): Do not inherit or default to_insert_breakpoint
11915 and to_remove_breakpoint.
11916 * corelow.c (ignore): Add target_ops parameter.
11917 * exec.c (ignore): Add target_ops parameter.
11918 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11919 Add target_ops parameter.
11920 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11921 Add target_ops parameter.
11922 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11923 Add target_ops parameter.
11924 * record-full.c (record_full_beneath_to_insert_breakpoint)
11925 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11926 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11927 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11928 (record_full_core_remove_breakpoint): Add target_ops parameter.
11929 Update users.
11930 (record_full_beneath_to_insert_breakpoint_ops)
11931 (record_full_beneath_to_remove_breakpoint_ops)
11932 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11933 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11934 tmp_to_remove_breakpoint_ops,
11935 record_full_beneath_to_insert_breakpoint_ops, and
11936 record_full_beneath_to_remove_breakpoint_ops.
11937 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11938 (m32r_remove_breakpoint): Add target_ops parameter.
11939 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11940 Add target_ops parameter.
11941 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11942 Add target_ops parameter.
11943
11944 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11945 Markus Metzger <markus.t.metzger@intel.com>
11946
11947 * record-btrace.c: Include frame-unwind.h.
11948 (record_btrace_frame_unwind_stop_reason)
11949 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11950 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11951 New.
11952 (init_record_btrace_ops): Install it.
11953
11954 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11955
11956 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11957 get_prev_frame_1.
11958
11959 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11960
11961 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11962 earlier.
11963
11964 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11965
11966 * frame-unwind.c: Include target.h.
11967 (frame_unwind_try_unwinder): New function with code from ...
11968 (frame_unwind_find_by_frame): ... here. New variable
11969 unwinder_from_target, call also target_get_unwinder)
11970 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11971 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11972 * target.h (struct target_ops): New fields to_get_unwinder and
11973 to_get_tailcall_unwinder.
11974 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11975
11976 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11977
11978 * record-btrace.c (record_btrace_fetch_registers)
11979 (record_btrace_store_registers)
11980 (record_btrace_to_prepare_to_store): New.
11981 (init_record_btrace_ops): Add the above.
11982
11983 2014-01-16 Tom Tromey <tromey@redhat.com>
11984
11985 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11986 * target.h (struct target_ops) <to_prepare_to_store>: Add
11987 argument.
11988 (target_prepare_to_store): Add argument.
11989 * target.c (debug_to_prepare_to_store): Add argument.
11990 (update_current_target): Update.
11991 * remote.c (remote_prepare_to_store): Add 'self' argument.
11992 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11993 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11994 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11995 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11996 argument.
11997 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11998 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11999 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12000 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12001 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12002
12003 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12004
12005 * btrace.h (replay) <replay>: New.
12006 (btrace_is_replaying): New.
12007 * btrace.c (btrace_clear): Free replay iterator.
12008 (btrace_is_replaying): New.
12009 * record-btrace.c (record_btrace_is_replaying): New.
12010 (record_btrace_info): Print insn number if replaying.
12011 (record_btrace_insn_history): Start at replay position.
12012 (record_btrace_call_history): Start at replay position.
12013 (init_record_btrace_ops): Init to_record_is_replaying.
12014
12015 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12016
12017 * record-btrace.c (record_btrace_insn_history_range): Include
12018 end.
12019 (record_btrace_insn_history_from): Adjust range.
12020 (record_btrace_call_history_range): Include
12021 end.
12022 (record_btrace_call_history_from): Adjust range.
12023 * NEWS: Announce changes.
12024
12025 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12026
12027 * record.h (enum record_print_flag)
12028 <record_print_indent_calls>: New.
12029 * record.c (get_call_history_modifiers): Recognize /c modifier.
12030 (_initialize_record): Document /c modifier.
12031 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12032 Reorder fields. Optionally indent the function name. Update
12033 all users.
12034 * NEWS: Announce changes.
12035
12036 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12037
12038 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12039
12040 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12041
12042 * btrace.c (ftrace_new_function): Start counting at one.
12043 * record-btrace.c (record_btrace_info): Adjust number of calls
12044 and insns.
12045 * NEWS: Announce it.
12046
12047 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12048
12049 * record-btrace.c (btrace_call_history_insn_range): Print
12050 insn range as [begin, end].
12051
12052 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12053
12054 * btrace.h (struct btrace_func_link): New.
12055 (enum btrace_function_flag): New.
12056 (struct btrace_inst): Rename to ...
12057 (struct btrace_insn): ...this. Update all users.
12058 (struct btrace_func) <ibegin, iend>: Remove.
12059 (struct btrace_func_link): New.
12060 (struct btrace_func): Rename to ...
12061 (struct btrace_function): ...this. Update all users.
12062 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12063 (number, level, flags>: New.
12064 (struct btrace_insn_iterator): Rename to ...
12065 (struct btrace_insn_history): ...this.
12066 Update all users.
12067 (struct btrace_insn_iterator, btrace_call_iterator): New.
12068 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12069 (struct btrace_target_info) <begin, end, level>
12070 <insn_history, call_history>: New.
12071 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12072 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12073 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12074 (btrace_call_number, btrace_call_begin, btrace_call_end)
12075 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12076 (btrace_find_function_by_number, btrace_set_insn_history)
12077 (btrace_set_call_history): New.
12078 * btrace.c (btrace_init_insn_iterator)
12079 (btrace_init_func_iterator, compute_itrace): Remove.
12080 (ftrace_print_function_name, ftrace_print_filename)
12081 (ftrace_skip_file): Change
12082 parameter to const.
12083 (ftrace_init_func): Remove.
12084 (ftrace_debug): Use new btrace_function fields.
12085 (ftrace_function_switched): Also consider gaining and
12086 losing symbol information).
12087 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12088 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12089 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12090 New.
12091 (ftrace_new_function): Move. Remove debug print.
12092 (ftrace_update_lines, ftrace_update_insns): New.
12093 (ftrace_update_function): Check for call, ret, and jump.
12094 (compute_ftrace): Renamed to ...
12095 (btrace_compute_ftrace): ...this. Rewritten to compute call
12096 stack.
12097 (btrace_fetch, btrace_clear): Updated.
12098 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12099 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12100 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12101 (btrace_call_number, btrace_call_begin, btrace_call_end)
12102 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12103 (btrace_find_function_by_number, btrace_set_insn_history)
12104 (btrace_set_call_history): New.
12105 * record-btrace.c (require_btrace): Use new btrace thread
12106 info fields.
12107 (record_btrace_info, btrace_insn_history)
12108 (record_btrace_insn_history, record_btrace_insn_history_range):
12109 Use new btrace thread info fields and new iterator.
12110 (btrace_func_history_src_line): Rename to ...
12111 (btrace_call_history_src_line): ...this. Use new btrace
12112 thread info fields.
12113 (btrace_func_history): Rename to ...
12114 (btrace_call_history): ...this. Use new btrace thread info
12115 fields and new iterator.
12116 (record_btrace_call_history, record_btrace_call_history_range):
12117 Use new btrace thread info fields and new iterator.
12118
12119 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12120
12121 * frame.h (frame_id_build_unavailable_stack_special): New.
12122 * frame.c (frame_id_build_unavailable_stack_special): New.
12123
12124 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12125
12126 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12127 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12128 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12129 to gdbarch.
12130 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12131 (i386_insn_is_jump, i386_jmp_p): New.
12132 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12133 insn_is_jump to gdbarch.
12134 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12135 * gdbarch.h: Regenerated.
12136 * gdbarch.c: Regenerated.
12137 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12138 (default_insn_is_jump): New.
12139 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12140 (default_insn_is_jump): New.
12141
12142 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12143
12144 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12145 Change to ...
12146 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12147 (btrace_read_type) <btrace_read_new>: Change to ...
12148 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12149
12150 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12151
12152 * common/linux-btrace.c (linux_read_btrace): Free trace from
12153 previous iteration.
12154
12155 2014-01-15 Doug Evans <dje@google.com>
12156
12157 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12158 uint32_t.
12159
12160 2014-01-15 Tom Tromey <tromey@redhat.com>
12161
12162 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12163 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12164 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12165 (set_objfile_main_name): New function.
12166 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12167 language_of_main>: New fields.
12168 (set_objfile_main_name): Declare.
12169 * symtab.c (find_main_name): Loop over objfiles to find the main
12170 name and language.
12171 (set_main_name): Now static.
12172 (get_main_info): Add comment.
12173 * symtab.h (set_main_name): Don't declare.
12174
12175 2014-01-15 Tom Tromey <tromey@redhat.com>
12176
12177 * symtab.c (main_progspace_key): New global.
12178 (struct main_info): New.
12179 (name_of_main, language_of_main): Remove.
12180 (get_main_info, main_info_cleanup): New function.
12181 (set_main_name, main_name, main_language): Use get_main_info.
12182 (_initialize_symtab): Initialize main_progspace_key.
12183
12184 2014-01-15 Tom Tromey <tromey@redhat.com>
12185
12186 * dbxread.c (process_one_symbol): Update.
12187 * dwarf2read.c (read_partial_die): Update.
12188 * symfile.c (set_initial_language): Call main_language.
12189 * symtab.c (language_of_main): Now static.
12190 (set_main_name): Add 'lang' parameter.
12191 (find_main_name): Update.
12192 (main_language): New function.
12193 (symtab_observer_executable_changed): Update.
12194 * symtab.h (set_main_name): Update.
12195 (language_of_main): Remove.
12196 (main_language): Declare.
12197
12198 2014-01-15 Tom Tromey <tromey@redhat.com>
12199
12200 * symfile.c (init_entry_point_info): Use new "initialized" field.
12201 Update.
12202 * objfiles.h (struct entry_point) <initialized>: New field.
12203 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12204 (struct objfile) <ei>: ...here. Remove.
12205 * objfiles.c (entry_point_address_query): Update.
12206
12207 2014-01-15 Tom Tromey <tromey@redhat.com>
12208
12209 * objfiles.c (entry_point_address_query): Relocate entry point
12210 address.
12211 (objfile_relocate1): Do not relocate entry point address.
12212 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12213 <the_bfd_section_index>: New field.
12214 * symfile.c (init_entry_point_info): Find the entry point's
12215 section.
12216
12217 2014-01-15 Tom Tromey <tromey@redhat.com>
12218
12219 * solib-frv.c (enable_break): Use entry_point_address_query.
12220
12221 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12222
12223 * NEWS: Add note on improved process record-replay on
12224 arm*-linux* targets.
12225
12226 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12227
12228 * arm-tdep.c (enum arm_record_result): New enum.
12229 (arm_record_unsupported_insn): New function.
12230 (arm_record_coproc_data_proc): Removed.
12231 (thumb2_record_ld_st_multiple): New function.
12232 (thumb2_record_ld_st_dual_ex_tbb): New function.
12233 (thumb2_record_data_proc_sreg_mimm): New function.
12234 (thumb2_record_ps_dest_generic): New function.
12235 (thumb2_record_branch_misc_cntrl): New function.
12236 (thumb2_record_str_single_data): New function.
12237 (thumb2_record_ld_mem_hints): New function.
12238 (thumb2_record_ld_word): New function.
12239 (thumb2_record_lmul_lmla_div): New function.
12240 (thumb2_record_decode_insn_handler): New function.
12241 (decode_insn): Add thumb32 instruction handlers.
12242
12243 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12244
12245 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12246 (struct arm_linux_record_tdep): Declare.
12247 (arm_canonicalize_syscall): New function.
12248 (arm_all_but_pc_registers_record): New function.
12249 (arm_linux_syscall_record): New function.
12250 (arm_linux_init_abi): Add syscall recording constructs.
12251 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12252 decoding. (arm_record_coproc_data_proc): Update arm syscall
12253 decoding.
12254 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12255 <arm_syscall_record>: New field.
12256 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12257 gdb_target_obs.
12258
12259 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12260
12261 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12262 register for push instruction recording.
12263
12264 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12265
12266 * arm-tdep.c (thumb_record_misc): Update to correct logical
12267 error while recording ldm, ldmia and pop instructions.
12268
12269 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12270
12271 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12272
12273 2014-01-15 Pedro Alves <palves@redhat.com>
12274
12275 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12276 (go32_resume, go32_fetch_registers, store_register)
12277 (go32_store_registers, go32_prepare_to_store)
12278 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12279 (go32_create_inferior, go32_can_run, go32_terminal_init)
12280 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12281 declarations.
12282
12283 2014-01-15 Tom Tromey <tromey@redhat.com>
12284
12285 * target.h (async_callback_ftype): New typedef.
12286 (struct target_ops) <to_async>: Use it.
12287
12288 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12289
12290 * python/py-value.c (get_field_type): Remove unnecessary curly
12291 braces for single-statement if block.
12292
12293 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12294
12295 * python/py-type.c (convert_field): Add missing empty line
12296 after declarations.
12297
12298 2014-01-14 Doug Evans <dje@google.com>
12299
12300 * symfile.h (expand_symtabs_matching): Renamed from
12301 expand_partial_symbol_names. Update prototype.
12302 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12303 * symfile.c (expand_symtabs_matching): Renamed from
12304 expand_partial_symbol_names. New args file_matcher, kind.
12305 Rename arg fun to symbol_matcher.
12306 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12307 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12308 ada_expand_partial_symbol_name.
12309 (ada_make_symbol_completion_list): Update to call
12310 expand_symtabs_matching.
12311 (ada_add_global_exceptions): Call expand_symtabs_matching.
12312 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12313 call map_symbol_filenames.
12314 * symtab.c (sources_info): Update to call map_symbol_filenames.
12315 (search_symbols): Call expand_symtabs_matching.
12316 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12317 (default_make_symbol_completion_list_break_on): Update to call
12318 expand_symtabs_matching.
12319 (make_source_files_completion_list): Update to call
12320 map_symbol_filenames.
12321
12322 2014-01-14 Doug Evans <dje@google.com>
12323
12324 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12325 (expand_symtabs_symbol_matcher_ftype): New typedef.
12326 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12327 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12328 * symfile.c (expand_partial_symbol_names): Update to use
12329 expand_symtabs_symbol_matcher_ftype.
12330 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12331 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12332 Arg name_matcher renamed to symbol_matcher.
12333 * psymtab.c (recursively_search_psymtabs): Update to use
12334 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12335 sym_matcher.
12336 (expand_symtabs_matching_via_partial): Update to use
12337 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12338 Arg name_matcher renamed to symbol_matcher.
12339
12340 2014-01-14 Doug Evans <dje@google.com>
12341
12342 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12343 (map_partial_symbol_filenames): Ditto.
12344 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12345 (map_partial_symbol_filenames): Ditto.
12346 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12347 (map_partial_symbol_filenames): Ditto.
12348 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12349 (map_partial_symbol_filenames): Ditto.
12350 * symtab.c: Delete #include "psymtab.h".
12351
12352 2014-01-14 Pedro Alves <palves@redhat.com>
12353 Tom Tromey <tromey@redhat.com>
12354
12355 * infrun.c (use_displaced_stepping): Use find_record_target
12356 instead of RECORD_IS_USED.
12357 (adjust_pc_after_break): Use record_full_is_used instead of
12358 RECORD_IS_USED.
12359 * record-btrace.c (record_btrace_open): Call record_preopen
12360 instead of checking RECORD_IS_USED.
12361 * record-full.c (record_full_shortname)
12362 (record_full_core_shortname): New globals.
12363 (record_full_is_used): New function.
12364 (find_full_open): Call record_preopen instead of checking
12365 RECORD_IS_USED.
12366 (init_record_full_ops): Set the target's shortname to
12367 record_full_shortname.
12368 (init_record_full_core_ops): Set the target's shortname to
12369 record_full_core_shortname.
12370 * record-full.h (record_full_is_used): Declare.
12371 * record.c (find_record_target): Make extern.
12372 (record_preopen): New function.
12373 * record.h (RECORD_IS_USED): Delete macro.
12374 (find_record_target, record_preopen): Declare functions.
12375
12376 2014-01-14 Yao Qi <yao@codesourcery.com>
12377
12378 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12379 'len''s type to ULONGEST.
12380 (core_xfer_shared_libraries_aix): Likewise.
12381 * gdbarch.c, gdbarch.h: Regenerated.
12382 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12383 Change type of 'len' to ULONGEST.
12384 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12385 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12386
12387 2014-01-14 Yao Qi <yao@codesourcery.com>
12388
12389 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12390 type of 'len' to ULONGEST.
12391 (linux_xfer_osdata_processgroups): Likewise.
12392 (linux_xfer_osdata_threads): Likewise.
12393 (linux_xfer_osdata_fds): Likewise.
12394 (linux_xfer_osdata_isockets): Likewise.
12395 (linux_xfer_osdata_shm): Likewise.
12396 (linux_xfer_osdata_sem): Likewise.
12397 (linux_xfer_osdata_msg): Likewise.
12398 (linux_common_xfer_osdata): Likewise.
12399 (struct osdata_type) <getter>: Likewise.
12400 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12401 the declaration.
12402
12403 2014-01-14 Yao Qi <yao@codesourcery.com>
12404
12405 * target.h (target_xfer_partial_ftype): Update.
12406 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12407 ULONGEST.
12408 * aix-thread.c (aix_thread_xfer_partial): Change type of
12409 argument 'len' to ULONGEST.
12410 * auxv.c (procfs_xfer_auxv): Likewise.
12411 (ld_so_xfer_auxv): Likewise.
12412 (memory_xfer_auxv): Likewise.
12413 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12414 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12415 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12416 * corelow.c (core_xfer_partial): Likewise.
12417 * ctf.c (ctf_xfer_partial): Likewise.
12418 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12419 '%u'.
12420 (darwin_read_dyld_info): Likewise.
12421 (darwin_xfer_partial): Likewise.
12422 * exec.c (section_table_xfer_memory_partial): Likewise.
12423 (exec_xfer_partial): Likewise.
12424 * exec.h (section_table_xfer_memory_partial): Update
12425 declaration.
12426 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12427 instead of plongest.
12428 (gnu_xfer_partial): Likewise.
12429 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12430 (ia64_hpux_xfer_solib_got): Likewise.
12431 (ia64_hpux_xfer_partial): Likewise.
12432 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12433 * inf-ptrace.c (inf_ptrace_xfer_partial):
12434 * inf-ttrace.c (inf_ttrace_xfer_partial):
12435 * linux-nat.c (linux_xfer_siginfo): Likewise.
12436 (linux_nat_xfer_partial): Likewise.
12437 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12438 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12439 * monitor.c (monitor_xfer_memory): Likewise.
12440 (monitor_xfer_partial): Likewise.
12441 * procfs.c (procfs_xfer_partial): Likewise.
12442 * record-full.c (record_full_xfer_partial): Likewise.
12443 (record_full_core_xfer_partial): Likewise.
12444 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12445 instead of plongest.
12446 (gdbsim_xfer_partial): Likewise.
12447 * remote.c (remote_xfer_partial): Likewise.
12448 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12449 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12450 declaration.
12451 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12452 (rs6000_xfer_shared_libraries): Likewise.
12453 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12454 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12455 (sparc_xfer_partial): Likewise.
12456 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12457 (spu_xfer_partial): Likewise.
12458 * spu-multiarch.c (spu_xfer_partial): Likewise.
12459 * target.c (target_read_live_memory): Likewise.
12460 (memory_xfer_live_readonly_partial): Likewise.
12461 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12462 (target_xfer_partial, default_xfer_partial): Likewise.
12463 (current_xfer_partial): Likewise.
12464 * tracepoint.c (tfile_xfer_partial): Likewise.
12465 * windows-nat.c (windows_xfer_memory): Likewise. Call
12466 pulongest instead of plongest.
12467 (windows_xfer_partial): Likewise.
12468 (windows_xfer_shared_libraries): Likewise.
12469
12470 2014-01-14 Yao Qi <yao@codesourcery.com>
12471
12472 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12473 target_xfer_partial_ftype.
12474
12475 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12476
12477 PR python/15464
12478 PR python/16113
12479 * valops.c (value_struct_elt_bitpos): New function
12480 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12481 object to 'None' if the field name is an empty string ("").
12482 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12483 attribute to look for a field when 'name' is 'None'.
12484 (get_field_type): New function
12485
12486 2014-01-13 Doug Evans <dje@google.com>
12487
12488 PR symtab/16426
12489 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12490 (try_open_dwop_file): Ditto.
12491 * gdb_bfd.c: #include "vec.h".
12492 (bfdp): New typedef.
12493 (struct gdb_bfd_data): New member included_bfds.
12494 (gdb_bfd_unref): Unref all included bfds.
12495 (gdb_bfd_record_inclusion): New function.
12496 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12497
12498 2014-01-13 Tom Tromey <tromey@redhat.com>
12499
12500 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12501
12502 2014-01-13 Tom Tromey <tromey@redhat.com>
12503
12504 * defs.h (use_windows): Remove.
12505 * gdb.c (main): Update.
12506 * main.c (captured_main, gdb_main): Update.
12507 * main.h (struct captured_main_args) <use_windows>: Remove.
12508 * top.c (use_windows): Remove.
12509
12510 2014-01-13 Tom Tromey <tromey@redhat.com>
12511
12512 * defs.h (deprecated_flush_hook): Remove.
12513
12514 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12515
12516 PR threads/16216
12517 * linux-thread-db.c (try_thread_db_load): Add parameter
12518 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12519 (try_thread_db_load_from_pdir_1): Move it there from here.
12520 (try_thread_db_load_from_sdir): Update caller.
12521 (try_thread_db_load_from_dir): Move it there from here.
12522
12523 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12524
12525 * regformats/regdat.sh: Always rewrite the register file.
12526
12527 2014-01-13 Pedro Alves <palves@redhat.com>
12528
12529 * Makefile.in (CHECK_HEADERS): New variable.
12530 (check-headers:): New rule.
12531
12532 2014-01-13 Tom Tromey <tromey@redhat.com>
12533
12534 * cli/cli-setshow.c (do_set_command): Update.
12535 * defs.h (deprecated_set_hook): Remove.
12536 * top.c (deprecated_set_hook): Remove.
12537
12538 2014-01-13 Pedro Alves <palves@redhat.com>
12539
12540 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12541 the tracepoint if the PC is a pseudo-register.
12542
12543 2014-01-13 Tom Tromey <tromey@redhat.com>
12544
12545 * defs.h (XCALLOC): Remove.
12546 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12547 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12548 * dwarf2loc.c (allocate_piece_closure): Likewise.
12549 * elfread.c (elf_symfile_segments): Likewise.
12550 (elf_symfile_segments): Likewise.
12551 * gdbtypes.c (copy_type_recursive): Likewise.
12552 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12553 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12554 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12555 XCALLOC.
12556 * mt-tdep.c (mt_gdbarch_init): Likewise.
12557 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12558 XCALLOC.
12559 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12560 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12561 * registry.c (registry_alloc_data): Likewise.
12562 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12563 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12564 * serial.c (serial_fdopen_ops): Likewise.
12565 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12566 XCALLOC.
12567 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12568 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12569 not XCALLOC.
12570
12571 2014-01-13 Tom Tromey <tromey@redhat.com>
12572
12573 * defs.h (XMALLOC): Remove.
12574 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12575 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12576 * cli-out.c (struct ui_out *): Likewise.
12577 * cli/cli-dump.c (add_dump_command): Likewise.
12578 (add_dump_command): Likewise.
12579 * complaints.c (get_complaints): Likewise.
12580 (find_complaint): Likewise.
12581 * dwarf2-frame.c (execute_cfa_program): Likewise.
12582 * dwarf2read.c (abbrev_table_read_table): Likewise.
12583 * gdbarch.sh: Likewise.
12584 * gdbarch.c: Rebuild.
12585 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12586 * interps.c (interp_new): Likewise.
12587 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12588 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12589 * mi/mi-console.c (mi_console_file_new): Likewise.
12590 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12591 * mi/mi-out.c (mi_out_new): Likewise.
12592 * mi/mi-parse.c (mi_parse): Likewise.
12593 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12594 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12595 * observer.c (xalloc_observer_list_node): Likewise.
12596 * regcache.c (regcache_xmalloc_1): Likewise.
12597 * reggroups.c (reggroup_new): Likewise.
12598 (_initialize_reggroup): Likewise.
12599 * registry.c (register_data_with_cleanup): Likewise.
12600 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12601 * ser-base.c (serial_ttystate): Likewise.
12602 * ser-mingw.c (make_pipe_state): Likewise.
12603 * ser-pipe.c (pipe_open): Likewise.
12604 * serial.c (serial_open): Likewise.
12605 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12606 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12607 (tui_alloc_win_info): Likewise.
12608 (tui_add_content_elements): Likewise.
12609 * tui/tui-file.c (tui_file_new): Likewise.
12610 * tui/tui-out.c (tui_out_new): Likewise.
12611 * ui-file.c (mem_file_new): Likewise.
12612 * ui-out.c (push_level): Likewise.
12613 (make_cleanup_ui_out_end): Likewise.
12614 (append_header_to_list): Likewise.
12615 (ui_out_new): Likewise.
12616 * user-regs.c (user_reg_add_builtin): Likewise.
12617
12618 2014-01-13 Tom Tromey <tromey@redhat.com>
12619
12620 * defs.h (XZALLOC): Remove.
12621 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12622 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12623 (get_ada_tasks_inferior_data): Likewise.
12624 * auto-load.c (get_auto_load_pspace_data): Likewise.
12625 * auxv.c (get_auxv_inferior_data): Likewise.
12626 * bfd-target.c (target_bfd_reopen): Likewise.
12627 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12628 (deprecated_insert_raw_breakpoint): Likewise.
12629 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12630 * corelow.c (core_open): Likewise.
12631 * darwin-nat.c (darwin_check_new_threads): Likewise.
12632 (darwin_attach_pid): Likewise.
12633 * dummy-frame.c (dummy_frame_push): Likewise.
12634 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12635 * dwarf2loc.c (allocate_piece_closure): Likewise.
12636 * elfread.c (elf_symfile_segments): Likewise.
12637 * eval.c (ptrmath_type_p): Likewise.
12638 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12639 * gdbtypes.c (alloc_type_arch): Likewise.
12640 (alloc_type_instance): Likewise.
12641 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12642 * inf-child.c (inf_child_can_use_agent): Likewise.
12643 * inflow.c (get_inflow_inferior_data): Likewise.
12644 * infrun.c (save_infcall_suspend_state): Likewise.
12645 * jit.c (jit_reader_load): Likewise.
12646 (get_jit_objfile_data): Likewise.
12647 (get_jit_program_space_data): Likewise.
12648 (jit_object_open_impl): Likewise.
12649 (jit_symtab_open_impl): Likewise.
12650 (jit_block_open_impl): Likewise.
12651 (jit_frame_sniffer): Likewise.
12652 * linux-fork.c (add_fork): Likewise.
12653 * maint.c (make_command_stats_cleanup): Likewise.
12654 * objfiles.c (get_objfile_pspace_data): Likewise.
12655 * opencl-lang.c (struct lval_closure): Likewise.
12656 * osdata.c (osdata_start_osdata): Likewise.
12657 * progspace.c (new_address_space): Likewise.
12658 (add_program_space): Likewise.
12659 * remote-sim.c (get_sim_inferior_data): Likewise.
12660 * sh-tdep.c (sh_gdbarch_init): Likewise.
12661 * skip.c (Ignore): Likewise.
12662 (skip_delete_command): Likewise.
12663 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12664 (library_list_start_library): Likewise.
12665 (solib_aix_current_sos): Likewise.
12666 * solib-darwin.c (get_darwin_info): Likewise.
12667 (darwin_current_sos): Likewise.
12668 * solib-dsbt.c (get_dsbt_info): Likewise.
12669 * solib-ia64-hpux.c (new_so_list): Likewise.
12670 (ia64_hpux_get_solib_linkage_addr): Likewise.
12671 * solib-spu.c (append_ocl_sos): Likewise.
12672 (spu_current_sos): Likewise.
12673 * solib-svr4.c (get_svr4_info): Likewise.
12674 (svr4_keep_data_in_core): Likewise.
12675 (library_list_start_library): Likewise.
12676 (svr4_default_sos): Likewise.
12677 (svr4_read_so_list): Likewise.
12678 * solib-target.c (library_list_start_library): Likewise.
12679 (solib_target_current_sos): Likewise.
12680 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12681 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12682 * symfile.c (default_symfile_segments): Likewise.
12683 * target-descriptions.c (tdesc_data_init): Likewise.
12684 (tdesc_create_reg): Likewise.
12685 (struct tdesc_type *): Likewise.
12686 (tdesc_create_vector): Likewise.
12687 (tdesc_set_struct_size): Likewise.
12688 (struct tdesc_type *): Likewise.
12689 (tdesc_free_feature): Likewise.
12690 (tdesc_create_feature): Likewise.
12691 * windows-nat.c (windows_add_thread): Likewise.
12692 (windows_make_so): Likewise.
12693 * xml-support.c (gdb_xml_body_text): Likewise.
12694 (gdb_xml_create_parser_and_cleanup): Likewise.
12695 (xml_process_xincludes): Likewise.
12696 * xml-syscall.c (allocate_syscalls_info): Likewise.
12697 (syscall_create_syscall_desc): Likewise.
12698
12699 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12700
12701 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12702 function, with code from i386_stap_parse_special_token.
12703 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12704 (i386_stap_parse_special_token): Move code to the two functions
12705 above; simplify it.
12706
12707 2014-01-09 Pedro Alves <palves@redhat.com>
12708 Hui Zhu <hui@codesourcery.com>
12709
12710 PR gdb/16101
12711 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12712 bp_err_string. Don't mark the location shlib_disabled if the
12713 error thrown wasn't a generic or memory error. Catch errors
12714 thrown while inserting breakpoints in overlayed code. Output
12715 error message of software breakpoints.
12716 * remote.c (remote_insert_breakpoint): If this breakpoint has
12717 target-side commands but this stub doesn't support Z0 packets,
12718 throw NOT_SUPPORTED_ERROR error.
12719 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12720 * target.h (target_insert_breakpoint): Extend comment.
12721 (target_insert_hw_breakpoint): Add comment.
12722
12723 2014-01-08 Pedro Alves <palves@redhat.com>
12724
12725 * remote.c (remote_add_thread): Add threads silently if starting
12726 up.
12727 (remote_notice_new_inferior): If in all-stop, and starting up,
12728 don't call notice_new_inferior.
12729 (get_current_thread): New function, factored out from ...
12730 (add_current_inferior_and_thread): ... this. Adjust.
12731 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12732 found any thread, then select the remote's current thread as GDB's
12733 current thread too.
12734
12735 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12736
12737 * NEWS: Create a new section for the next release branch.
12738 Rename the section of the current branch, now that it has
12739 been cut.
12740
12741 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12742
12743 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12744 * version.in: Bump version to 7.7.50.DATE-cvs.
12745
12746 2014-01-08 Yao Qi <yao@codesourcery.com>
12747
12748 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12749 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12750 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12751
12752 2014-01-08 Yao Qi <yao@codesourcery.com>
12753
12754 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12755 return value of bfd_get_filename to symbol_file_add_from_bfd.
12756
12757 2014-01-08 Pierre Muller <muller@sourceware.org>
12758
12759 Fix PR16201.
12760 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12761 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12762 to prim_record_mininal_symbol_and_info.
12763 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12764 in call to prim_record_minimal_symbol_and_info.
12765 (read_pe_exported_syms): Set index field of section_data.
12766
12767 2014-01-07 Andrew Pinski <apinski@cavium.com>
12768
12769 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12770 * features/aarch64.c: Regenerate.
12771
12772 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12773
12774 * target.c (return_null): Define.
12775 (update_current_target): Use it instead of return_zero for
12776 functions that return a pointer.
12777
12778 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12779
12780 * source.c (add_path): Fix check for duplicated paths in the previously
12781 included paths.
12782
12783 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12784
12785 * ada-lang.c: Remove duplicated include statements.
12786 * alphabsd-nat.c: Ditto.
12787 * amd64-darwin-tdep.c: Ditto.
12788 * amd64fbsd-nat.c: Ditto.
12789 * auto-load.c: Ditto.
12790 * ax-gdb.c: Ditto.
12791 * breakpoint.c: Ditto.
12792 * dbxread.c: Ditto.
12793 * fork-child.c: Ditto.
12794 * gdb_usleep.c: Ditto.
12795 * i386-darwin-tdep.c: Ditto.
12796 * i386fbsd-nat.c: Ditto.
12797 * infcmd.c: Ditto.
12798 * inferior.c: Ditto.
12799 * jv-lang.c: Ditto.
12800 * linux-nat.c: Ditto.
12801 * linux-tdep.c: Ditto.
12802 * m68kbsd-nat.c: Ditto.
12803 * m68klinux-nat.c: Ditto.
12804 * microblaze-tdep.c: Ditto.
12805 * mips-linux-tdep.c: Ditto.
12806 * mn10300-tdep.c: Ditto.
12807 * nto-tdep.c: Ditto.
12808 * opencl-lang.c: Ditto.
12809 * osdata.c: Ditto.
12810 * printcmd.c: Ditto.
12811 * regcache.c: Ditto.
12812 * remote-m32r-sdi.c: Ditto.
12813 * remote.c: Ditto.
12814 * symfile.c: Ditto.
12815 * symtab.c: Ditto.
12816 * tilegx-linux-nat.c: Ditto.
12817 * tilegx-tdep.c: Ditto.
12818 * tracepoint.c: Ditto.
12819 * valops.c: Ditto.
12820 * vaxbsd-nat.c: Ditto.
12821 * windows-nat.c: Ditto.
12822 * xtensa-tdep.c: Ditto.
12823
12824 2014-01-07 Yao Qi <yao@codesourcery.com>
12825
12826 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12827
12828 2014-01-07 Yao Qi <yao@codesourcery.com>
12829 Joel Brobecker <brobecker@adacore.com>
12830
12831 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12832 (pdc_write_regs): Likewise.
12833 (fetch_regs_kernel_thread): Likewise.
12834 (store_regs_kernel_thread): Likewise.
12835
12836 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12837
12838 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12839 tagged type objects to their actual type.
12840
12841 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12842
12843 * ada-valprint.c (print_field_values): Add "language" parameter.
12844 Update calls to print_field_values and print_variant_part.
12845 Pass new parameter "language" in call to val_print instead
12846 of "current_language". Replace call to ada_val_print by call
12847 to val_print.
12848 (print_variant_part): Add "language" parameter.
12849 (ada_val_print_struct_union): Update call to print_field_values.
12850
12851 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12852
12853 * ada-valprint.c (ui_memcpy): Delete.
12854 (ada_print_floating): Update documentation. Add empty line
12855 between between function documentation and implementation.
12856 Delete variable "buffer". Use ui_file_xstrdup in place of
12857 ui_file_put. Minor adjustments following this change.
12858
12859 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12860
12861 * ada-valprint.c (ada_val_print_string): New function,
12862 extracted from ada_val_print_array.
12863 (ada_val_print_array): Replace extracted code by call
12864 to ada_val_print_string followed by a return. Move
12865 "else" branch to the function's top block.
12866
12867 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12868
12869 * ada-valprint.c (ada_val_print_array): Move implementation
12870 down. Rename parameter "offset" and "val" into "offset_aligned"
12871 and "original_value" respectively. Add parameter "offset".
12872
12873 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12874
12875 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12876 re-organizing the code. Change the "???" message printed
12877 when target type is a TYPE_CODE_UNDEF into
12878 "<ref to undefined type>".
12879
12880 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12881
12882 * ada-valprint.c (print_record): Delete, implementation inlined...
12883 (ada_val_print_struct_union): ... here. Remove call to
12884 ada_check_typedef in inlined implementation.
12885
12886 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12887
12888 * ada-valprint.c (ada_val_print_gnat_array): New function,
12889 extracted from ada_val_print_1;
12890 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12891 (ada_val_print_flt, ada_val_print_struct_union)
12892 (ada_val_print_ref): Likewise.
12893 (ada_val_print_1): Delete variables i and elttype.
12894 Replace extracted-out code by call to corresponding
12895 new functions.
12896
12897 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12898
12899 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12900
12901 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12902
12903 * ada-valprint.c (ada_val_print_1): Replace calls to
12904 ada_val_print_1 by calls to val_print.
12905
12906 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12907
12908 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12909 Update calls to self accordingly. Replace calls to c_val_print
12910 by calls to val_print.
12911
12912 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12913
12914 * ada-valprint.c (print_record): Delete declaration.
12915 (adjust_type_signedness, ada_val_print_1): Likewise.
12916 (ada_val_print): Move function implementation down.
12917 (print_variant_part, print_field_values, print_record):
12918 Move function implementation up.
12919
12920 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12921
12922 * python/py-type.c (typy_get_name): New function.
12923 (type_object_getset): Add entry for attribute "name".
12924 * NEWS: Add entry mentioning this new attribute.
12925
12926 2014-01-07 Yao Qi <yao@codesourcery.com>
12927
12928 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12929 statement.
12930
12931 2014-01-07 Yao Qi <yao@codesourcery.com>
12932
12933 * gnu-nat.c (info_port_rights): Add qualifier const to
12934 argument args.
12935
12936 2014-01-07 Yao Qi <yao@codesourcery.com>
12937
12938 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12939
12940 2014-01-07 Yao Qi <yao@codesourcery.com>
12941
12942 * gnu-nat.c (make_inf) Update declaration.
12943 (make_inf): Make it static.
12944 (inf_set_traced): Likewise.
12945 (inf_port_to_thread, inf_task_died_status): Likewise.
12946
12947 2014-01-07 Yao Qi <yao@codesourcery.com>
12948
12949 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12950
12951 2014-01-07 Yao Qi <yao@codesourcery.com>
12952
12953 * gnu-nat.c (_initialize_gnu_nat): Declare.
12954
12955 2014-01-07 Yao Qi <yao@codesourcery.com>
12956
12957 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12958 'enum bfd_endian'.
12959 (struct gdbarch_info) <byte_order>: Change type to
12960 'enum bfd_endian'.
12961 <byte_order_for_code>: Likewise.
12962 * gdbarch.c, gdbarch.h: Regenerated.
12963
12964 2014-01-06 Sasha Smundak <asmundak@google.com>
12965
12966 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12967
12968 2014-01-06 Tom Tromey <tromey@redhat.com>
12969
12970 * doublest.c (convert_doublest_to_floatformat): Use const, not
12971 CONST.
12972 * somread.c (som_symtab_read): Likewise.
12973
12974 2014-01-07 Hui Zhu <hui@codesourcery.com>
12975
12976 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12977 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12978 (gdb_bfd_fopen): Ditto.
12979 (gdb_bfd_openr): Ditto.
12980 (gdb_bfd_openw): Ditto.
12981 (gdb_bfd_openr_iovec): Ditto.
12982 (gdb_bfd_fdopenr): Ditto.
12983 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12984 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12985 with xstrdup.
12986 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12987 with xstrdup.
12988 * symfile-mem.c (symbol_file_add_from_memory): Removed
12989 gdb_bfd_stash_filename.
12990
12991 2014-01-03 Doug Evans <dje@google.com>
12992
12993 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12994 output.
12995
12996 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12997
12998 Update year range in copyright notice of all files.
12999
13000 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13001
13002 * top.c (print_gdb_version): Set copyright year to 2014.
13003
13004 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13005
13006 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13007
13008 For older changes see ChangeLog-2013.
13009 \f
13010 Local Variables:
13011 mode: change-log
13012 left-margin: 8
13013 fill-column: 74
13014 version-control: never
13015 coding: utf-8
13016 End:
This page took 0.303521 seconds and 4 git commands to generate.