Fix library-list.dtd -> library-list-svr4.dtd
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
4
5 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
6
7 * progspace.c (print_program_space): Don't prune program spaces
8 before printing them.
9
10 2014-09-25 Pedro Alves <palves@redhat.com>
11
12 * infrun.c (user_visible_resume_ptid): Don't check
13 singlestep_breakpoints_inserted_p.
14
15 2014-09-25 Pedro Alves <palves@redhat.com>
16
17 * breakpoint.c (should_be_inserted): Add debug output.
18
19 2014-09-25 Pedro Alves <palves@redhat.com>
20
21 * infrun.c (stepping_past_instruction_at)
22 (clear_exit_convenience_vars): Point at infrun.h instead of
23 inferior.h.
24 (handle_signal_stop): Fix typo.
25
26 2014-09-24 Yao Qi <yao@codesourcery.com>
27
28 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
29 bitmask.
30
31 2014-09-22 Gary Benson <gbenson@redhat.com>
32
33 * target.c (target_stop): Updated comment.
34
35 2014-09-22 Gary Benson <gbenson@redhat.com>
36
37 * target/target.h (target_stop_ptid): Renamed as...
38 (target_stop_and_wait): New function. Updated comment.
39 All uses updated.
40 (target_continue_ptid): Renamed as...
41 (target_continue_no_signal): New function. Updated comment.
42 All uses updated.
43
44 2014-09-22 Pedro Alves <palves@redhat.com>
45
46 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
47 and "auto" merged.
48 * breakpoint.c (enum ugll_insert_mode): New enum.
49 (always_inserted_mode): Now a plain boolean.
50 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
51 (breakpoints_always_inserted_mode): Delete.
52 (breakpoints_should_be_inserted_now): New function.
53 (insert_breakpoints): Pass UGLL_INSERT to
54 update_global_location_list instead of calling
55 insert_breakpoint_locations manually.
56 (create_solib_event_breakpoint_1): New, factored out from ...
57 (create_solib_event_breakpoint): ... this.
58 (create_and_insert_solib_event_breakpoint): Use
59 create_solib_event_breakpoint_1 instead of calling
60 insert_breakpoint_locations manually.
61 (update_global_location_list): Change parameter type from boolean
62 to enum ugll_insert_mode. All callers adjusted. Adjust to use
63 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
64 (update_global_location_list_nothrow): Change parameter type from
65 boolean to enum ugll_insert_mode.
66 (_initialize_breakpoint): "breakpoint always-inserted" option is
67 now a boolean command. Update help text.
68 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
69 (breakpoints_should_be_inserted_now): New declaration.
70 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
71 Remove breakpoints_always_inserted_mode check.
72 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
73 * remote.c (remote_start_remote): Likewise.
74
75 2014-09-22 Pedro Alves <palves@redhat.com>
76
77 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
78 (insert_breakpoints): Don't call insert_breakpoint_locations here.
79 Instead, pass UGLL_INSERT to update_global_location_list.
80 (update_global_location_list): Change parameter type from boolean
81 to enum ugll_insert_mode. All callers adjusted. Adjust to use
82 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
83 (create_solib_event_breakpoint_1): New, factored out from ...
84 (create_solib_event_breakpoint): ... this.
85 (create_and_insert_solib_event_breakpoint): Use
86 create_solib_event_breakpoint_1 instead of calling
87 insert_breakpoint_locations manually.
88 (update_global_location_list): Handle UGLL_INSERT.
89
90 2014-09-22 Pedro Alves <palves@redhat.com>
91
92 * breakpoint.c (enum ugll_insert_mode): New enum.
93 (update_global_location_list)
94 (update_global_location_list_nothrow): Change parameter type from
95 boolean to enum ugll_insert_mode. All callers adjusted.
96
97 2014-09-19 Joel Brobecker <brobecker@adacore.com>
98
99 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
100 SystemTap support in GDB.
101
102 2014-09-19 Don Breazeal <donb@codesourcery.com>
103
104 * linux-nat.c (linux_handle_extended_wait): Call
105 linux_ptrace_get_extended_event.
106 (wait_lwp): Call linux_is_extended_waitstatus.
107 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
108 and linux_is_extended_waitstatus.
109 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
110 linux_ptrace_get_extended_event.
111 (linux_ptrace_get_extended_event): New function.
112 (linux_is_extended_waitstatus): New function.
113 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
114 (linux_is_extended_waitstatus): New declarations.
115
116 2014-09-19 Yao Qi <yao@codesourcery.com>
117
118 * dwarf2read.c (dwarf_decode_lines): Update declaration.
119 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
120 comments. Callers update.
121 (dwarf_decode_lines): Likewise.
122 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
123 comments. Skip the line table if 'lowpc' is greater than
124 'address'. Don't check
125 dwarf2_per_objfile->has_section_at_zero.
126
127 2014-09-18 Doug Evans <dje@google.com>
128
129 * NEWS: Mention new "producer" attribute of gdb.Symtab.
130 * python/py-symtab.c (stpy_get_producer): New function.
131 (symtab_object_getset): Add "producer" attribute.
132
133 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
134
135 PR gdb/17384
136 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
137 (do_captured_read_memory_integer): Remove.
138 (safe_read_memory_integer): Use target_read_memory directly instead
139 of catching errors in do_captured_read_memory_integer.
140
141 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
142
143 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
144 not gdb/doc.
145
146 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
147
148 * objc-lang.c (find_implementation_from_class): Remove dead code.
149
150 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
151
152 PR cli/7233
153 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
154 "fprintf_unfiltered (gdb_stdlog...)".
155
156 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
157
158 PR breakpoints/12526
159 * breakpoint.h (struct watchpoint): New fields val_bitpos and
160 val_bitsize.
161 * breakpoint.c (watch_command_1): Use these fields to retain
162 bitfield information.
163 (extract_bitfield_from_watchpoint_value): New function.
164 (watchpoint_check): Use it.
165 (update_watchpoint): Use it. Optimize the address and length of a
166 HW watchpoint pointing to a bitfield.
167 * value.h (unpack_value_bitfield): New prototype.
168 * value.c (unpack_value_bitfield): Make extern.
169
170 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
171
172 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
173 x86-dregs.o.
174 * gnu-nat.c (inf_threads): New function.
175 * gnu-nat.h (inf_threads_ftype): New typedef.
176 (inf_threads): New declaration.
177 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
178 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
179 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
180 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
181 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
182 (i386_gnu_dr_get_control): New functions.
183 (reg_addr): New structure.
184 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
185 i386 debugging register hooks.
186 * NEWS: Mention this.
187
188 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
189
190 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
191 vector data transfer instructions.
192 (arm_record_coproc_data_proc): Updated.
193
194 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
195
196 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
197 arm_record_exreg_ld_st_insn.
198 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
199 load/store insns.
200
201 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
202
203 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
204 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
205 processing instructions.
206
207 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
208
209 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
210 for advance SIMD struct ld/st insn.
211 (thumb2_record_decode_insn_handler): Replace stub handler with
212 thumb2_record_asimd_struct_ld_st.
213
214 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
215
216 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
217 for asimd, vfp and coprocessor insns.
218 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
219 and coprocessor insns.
220 (thumb2_record_coproc_insn): New function.
221 (thumb2_record_decode_insn_handler): Update coprocessor insns record
222 handlers.
223 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
224 opcode 110 insns.
225
226 2014-09-13 Doug Evans <xdje42@gmail.com>
227
228 * NEWS: Mention new "queue-signal" command.
229 * infcmd.c (queue_signal_command): New function.
230 (_initialize_infcmd): Add new queue-signal command.
231
232 2014-09-13 Doug Evans <xdje42@gmail.com>
233
234 * linux-nat.c (wait_lwp): Add debugging printf.
235 (linux_nat_wait_1): Ditto.
236
237 2014-09-12 Pedro Alves <palves@redhat.com>
238
239 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
240 (create_and_insert_solib_event_breakpoint): New functions.
241 * breakpoint.h (create_and_insert_solib_event_breakpoint)
242 (remove_solib_event_breakpoints_at_next_stop): New declarations.
243 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
244 (remove_dbx_link_breakpoint): Delete function.
245 (insert_dbx_link_bpt_in_file): Use
246 create_and_insert_solib_event_breakpoint instead of
247 deprecated_insert_raw_breakpoint.
248 (procfs_wait): Don't check whether we hit __dbx_link here.
249 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
250 here.
251 * solib-irix.c (base_breakpoint): Delete global.
252 (disable_break): Delete function.
253 (enable_break): Use create_solib_event_breakpoint
254 instead of deprecated_insert_raw_breakpoint.
255 (irix_solib_handle_event): New function.
256 (irix_solib_create_inferior_hook): Don't run the target or disable
257 the mapping-complete breakpoint here.
258 (_initialize_irix_solib): Install irix_solib_handle_event as
259 so_ops->handle_event hook.
260
261 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
262 Ulrich Weigand  <uweigand@de.ibm.com>
263
264 PR tdep/17379
265 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
266 instead of read_memory_unsigned_integer.
267
268 2014-09-12 Gary Benson <gbenson@redhat.com>
269
270 * nat/linux-waitpid.c: Include common-defs.h.
271 [GDBSERVER]: Add FIXME comment.
272 [!GDBSERVER]: Don't include defs.h or signal.h.
273 (linux_debug) [!GDBSERVER]: Remove empty block.
274
275 2014-09-12 Gary Benson <gbenson@redhat.com>
276
277 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
278 Don't include defs.h or server.h.
279
280 2014-09-12 Gary Benson <gbenson@redhat.com>
281
282 * nat/linux-btrace.c: Include common-defs.h.
283 Don't include defs.h, server.h or gdbthread.h.
284 * nat/linux-btrace.h (struct target_ops): New forward declaration.
285
286 2014-09-12 Gary Benson <gbenson@redhat.com>
287
288 * common/agent.c: Include common-defs.h.
289 Don't include defs.h or server.h.
290 * common/buffer.c: Likewise.
291 * common/common-debug.c: Likewise.
292 * common/common-utils.c: Likewise.
293 * common/errors.c: Likewise.
294 * common/filestuff.c: Likewise.
295 * common/format.c: Likewise.
296 * common/gdb_vecs.c: Likewise.
297 * common/print-utils.c: Likewise.
298 * common/ptid.c: Likewise.
299 * common/rsp-low.c: Likewise.
300 * common/signals.c: Likewise.
301 * common/vec.c: Likewise.
302 * common/xml-utils.c: Likewise.
303 * nat/linux-osdata.c: Likewise.
304 * nat/linux-procfs.c: Likewise.
305 * nat/linux-ptrace.c: Likewise.
306 * nat/mips-linux-watch.c: Likewise.
307 * target/waitstatus.c: Likewise.
308
309 2014-09-12 Tom Tromey <tromey@redhat.com>
310 Gary Benson <gbenson@redhat.com>
311
312 * common/common-regcache.h: New file.
313 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
314 * regcache.h: Include common-regcache.h.
315 (regcache_read_pc): Don't declare.
316 * regcache.c (get_thread_regcache_for_ptid): New function.
317 * nat/linux-btrace.c: Don't include regcache.h.
318 Include common-regcache.h.
319 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
320
321 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
322
323 * regcache.h (struct regset): Declare.
324
325 2014-09-11 Pedro Alves <palves@redhat.com>
326
327 PR gdb/17347
328 * main.c: Include "infrun.h".
329 (catch_command_errors, catch_command_errors_const): Wait for the
330 foreground command to complete.
331 * top.c (maybe_wait_sync_command_done): New function, factored out
332 from ...
333 (maybe_wait_sync_command_done): ... here.
334 * top.h (maybe_wait_sync_command_done): New declaration.
335
336 2014-09-11 Tom Tromey <tromey@redhat.com>
337 Gary Benson <gbenson@redhat.com>
338
339 * common/symbol.h: New file.
340 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
341 * minsyms.c (find_minimal_symbol_address): New function.
342 * common/agent.c: Include common/symbol.h.
343 [!GDBSERVER]: Don't include objfiles.h.
344 (agent_look_up_symbols): Use find_minimal_symbol_address.
345
346 2014-09-11 Gary Benson <gbenson@redhat.com>
347
348 * target/target.h (target_stop_ptid, target_continue_ptid):
349 Declare.
350 * target.c (target_stop_ptid, target_continue_ptid): New
351 functions.
352 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
353 (agent_run_command): Always use target_stop_ptid and
354 target_continue_ptid.
355
356 2014-09-11 Tom Tromey <tromey@redhat.com>
357 Gary Benson <gbenson@redhat.com>
358
359 * target/target.h: New file.
360 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
361 * target.h: Include target/target.h.
362 (target_read_memory, target_write_memory): Don't declare.
363 * target.c (target_read_uint32): New function.
364 * common/agent.c: Include target/target.h.
365 [!GDBSERVER]: Don't include target.h.
366 (helper_thread_id): Type changed to uint32_t.
367 (agent_get_helper_thread_id): Use target_read_uint32.
368 (agent_run_command): Always use target_read_memory and
369 target_write_memory.
370 (agent_capability): Type changed to uint32_t.
371 (agent_capability_check): Use target_read_uint32.
372
373 2014-09-11 Gary Benson <gbenson@redhat.com>
374
375 * common/common-debug.h (show_debug_regs): Declare.
376 * common/common-debug.c (show_debug_regs): Define.
377 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
378 all uses with show_debug_regs. Replace all uses that considered
379 debug_hw_points as a multi-value integer with straight boolean
380 uses.
381 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
382 with show_debug_regs.
383 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
384 all uses with show_debug_regs.
385 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
386 uses with show_debug_regs.
387
388 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
389
390 * findvar.c (address_from_register): Handle targets requiring
391 a special conversion routine even for plain pointer types.
392
393 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
394
395 * rs6000-nat.c (exec_one_dummy_insn): Remove.
396 (store_register): Do not call exec_one_dummy_insn.
397
398 2014-09-10 Joel Brobecker <brobecker@adacore.com>
399
400 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
401 dereference it first. Use value_enclosing_type instead of
402 value_type.
403 (ada_array_length): Likewise.
404
405 2014-09-10 Joel Brobecker <brobecker@adacore.com>
406
407 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
408 Adjust function implementation and documentation accordingly.
409 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
410 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
411 Update call to ada_value_ptr_subscript.
412
413 2014-09-10 Joel Brobecker <brobecker@adacore.com>
414
415 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
416 instead of VAL's type.
417
418 2014-09-10 Joel Brobecker <brobecker@adacore.com>
419
420 * amd64-linux-nat.c: Add <sys/uio.h> #include.
421
422 2014-09-09 Doug Evans <xdje42@gmail.com>
423
424 PR guile/17367
425 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
426 last parameter to pkg-config, not first.
427 * configure.ac: Pass --with-guile provided pkg-config path to
428 GDB_GUILE_PROGRAM_NAMES.
429 * configure: Regenerate.
430
431 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
432
433 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
434 Bertazi".
435
436 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
437
438 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
439 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
440 the list of sections determining GDB_OSABI_IRIX.
441
442 2014-09-09 James Hogan <james.hogan@imgtec.com>
443
444 * MAINTAINERS (Write After Approval): Add "James Hogan".
445
446 2014-09-09 James Hogan <james.hogan@imgtec.com>
447
448 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
449
450 2014-09-09 Joel Brobecker <brobecker@adacore.com>
451
452 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
453
454 2014-09-08 Doug Evans <xdje42@gmail.com>
455
456 PR 17247
457 * guile.c: #include <signal.h>.
458 (_initialize_guile): Block SIGCHLD while initializing Guile.
459
460 Replaces the following, which is reverted.
461
462 2014-07-26 Doug Evans <xdje42@gmail.com>
463
464 PR 17185
465 * configure.ac: Add check for header gc/gc.h.
466 Add check for function setenv.
467 * configure: Regenerate.
468 * config.in: Regenerate.
469 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
470
471 2014-09-08 Doug Evans <xdje42@gmail.com>
472
473 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
474 with named constant. Fix style of pointer comparison.
475 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
476
477 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
478
479 PR gdb/17035
480 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
481 decide whether we display the command on "show user".
482 * cli/cli-script.c (show_user_1): Only verify cmdlines after
483 printing command name.
484 * cli/cli-decode.h (cli_user_command_p): Declare new function.
485 * cli/cli-decode.c (cli_user_command_p): Create helper function
486 to verify whether cmd_list_element is a user-defined command.
487
488 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
489
490 PR python/17355
491 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
492 Fix goto out of TRY_CATCH.
493
494 2014-09-06 Doug Evans <xdje42@gmail.com>
495 Tom Tromey <tromey@redhat.com>
496
497 PR 15276
498 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
499 $_any_caller_matches.
500 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
501 * python/lib/gdb/function/caller_is.py: New file.
502
503 2014-09-06 Doug Evans <xdje42@gmail.com>
504
505 * infcmd.c (program_info): Fix typo.
506
507 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
508
509 PR gdb/17235
510 * stap-probe.c (stap_parse_single_operand): Delete unused variable
511 'number'. New variable 'has_digit'. Rewrite code to deal with
512 subexpressions on SDT probes.
513
514 2014-09-04 Pedro Alves <palves@redhat.com>
515
516 * c-exp.y (parse_number): Skip handling base-switching prefixes if
517 the input is only one character long.
518
519 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
520
521 PR fortran/17237
522 * f-valprint.c (f_val_print): Specify the correct print option to
523 use when printing integer values.
524
525 2014-09-04 Gary Benson <gbenson@redhat.com>
526
527 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
528 Remove code to cope with LWPs wrapped as PIDs.
529 Add assertions to ensure no wrapped LWPs are passed.
530
531 2014-09-04 Pedro Alves <palves@redhat.com>
532
533 * value.c (value_ranges_copy_adjusted): New function, factored out
534 from ...
535 (value_contents_copy_raw): ... here.
536 (unpack_value_bits_as_long_1): Rename back to ...
537 (unpack_bits_as_long): ... this. Remove 'original_value' and
538 'result' parameters. Change return type to LONGEST.
539 (unpack_value_bits_as_long): Delete.
540 (unpack_value_field_as_long_1): Delete.
541 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
542 (unpack_value_bitfield): New function.
543 (value_field_bitfield): Reimplement using unpack_value_bitfield.
544 (value_fetch_lazy): Use unpack_value_bitfield.
545 * value.h (unpack_value_bits_as_long): Delete declaration.
546
547 2014-09-03 Sasha Smundak <asmundak@google.com>
548
549 * python/py-frame.c (frapy_read_register): New function.
550
551 2014-09-03 James Hogan <james.hogan@imgtec.com>
552
553 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
554 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
555
556 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
557
558 PR python/16699
559 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
560 function.
561 (add_cmd): Set "completer_handle_brkchars" to NULL.
562 * cli/cli-decode.h (struct cmd_list_element)
563 <completer_handle_brkchars>: New field.
564 * command.h (completer_ftype_void): New typedef.
565 (set_cmd_completer_handle_brkchars): New prototype.
566 * completer.c (set_gdb_completion_word_break_characters): New
567 function.
568 (complete_line_internal): Call "completer_handle_brkchars"
569 callback from command.
570 * completer.h: Include "command.h".
571 (set_gdb_completion_word_break_characters): New prototype.
572 * python/py-cmd.c (cmdpy_completer_helper): New function.
573 (cmdpy_completer_handle_brkchars): New function.
574 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
575 (cmdpy_init): Set completer_handle_brkchars to
576 cmdpy_completer_handle_brkchars.
577
578 2014-09-03 Gary Benson <gbenson@redhat.com>
579
580 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
581 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
582 Loop conditions changed to equivalent form.
583 (struct x86_debug_reg_state): Updated dr_ref_count comment.
584 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
585 ALL_DEBUG_ADDRESS_REGISTERS.
586
587 2014-09-03 Joel Brobecker <brobecker@adacore.com>
588
589 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
590 description fix.
591
592 2014-09-02 Doug Evans <dje@google.com>
593
594 * typeprint.c (find_global_typedef): Fix comment.
595
596 2014-09-02 Gary Benson <gbenson@redhat.com>
597
598 * i386-nat.h: Renamed as...
599 * x86-nat.h: New file. All type, function and variable name
600 prefixes changed from "i386_" to "x86_". All references updated.
601 * i386-nat.c: Renamed as...
602 * x86-nat.c: New file. All type, function and variable name
603 prefixes changed from "i386_" to "x86_". All references updated.
604 * common/i386-xstate.h: Renamed as...
605 * common/x86-xstate.h: New file. All type, function and variable
606 name prefixes changed from "i386_" to "x86_". All references
607 updated.
608 * nat/i386-cpuid.h: Renamed as...
609 * nat/x86-cpuid.h: New file. All type, function and variable name
610 prefixes changed from "i386_" to "x86_". All references updated.
611 * nat/i386-gcc-cpuid.h: Renamed as...
612 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
613 name prefixes changed from "i386_" to "x86_". All references
614 updated.
615 * nat/i386-dregs.h: Renamed as...
616 * nat/x86-dregs.h: New file. All type, function and variable name
617 prefixes changed from "i386_" to "x86_". All references updated.
618 * nat/i386-dregs.c: Renamed as...
619 * nat/x86-dregs.c: New file. All type, function and variable name
620 prefixes changed from "i386_" to "x86_". All references updated.
621
622 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
623
624 * varobj.c (_initialize_varobj): Move to the end of file.
625
626 2014-08-29 Gary Benson <gbenson@redhat.com>
627
628 * common/common-exceptions.h: New file.
629 * common/common-exceptions.c: Likewise.
630 * Makefile.in (SFILES): Add common/common-exceptions.c.
631 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
632 (COMMON_OBS): Add common-exceptions.o.
633 (common-exceptions.o): New rule.
634 * exceptions.h (common-exceptions.h): Include.
635 (gdb_setjmp.h): Do not include.
636 (return_reason): Moved to common-exceptions.h.
637 (enum return_reason): Likewise.
638 (RETURN_MASK): Likewise.
639 (typedef return_mask): Likewise.
640 (enum errors): Likewise.
641 (struct gdb_exception): Likewise.
642 (exceptions_state_mc_init): Likewise.
643 (exceptions_state_mc_action_iter): Likewise.
644 (exceptions_state_mc_action_iter_1): Likewise.
645 (TRY_CATCH): Likewise.
646 (throw_exception): Likewise.
647 (throw_verror): Likewise.
648 (throw_vquit): Likewise.
649 (throw_error): Likewise.
650 (throw_quit): Likewise.
651 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
652 (enum catcher_action): Likewise.
653 (struct catcher): Likewise.
654 (current_catcher): Likewise.
655 (catcher_list_size): Likewise.
656 (exceptions_state_mc_init): Likewise.
657 (catcher_pop): Likewise.
658 (exceptions_state_mc): Likewise.
659 (exceptions_state_mc_action_iter): Likewise.
660 (exceptions_state_mc_action_iter_1): Likewise.
661 (throw_exception): Likewise.
662 (exception_messages): Likewise.
663 (exception_messages_size): Likewise.
664 (throw_it): Likewise.
665 (throw_verror): Likewise.
666 (throw_vquit): Likewise.
667 (throw_error): Likewise.
668 (throw_quit): Likewise.
669 (prepare_to_throw_exception): New function.
670
671 2014-08-29 Gary Benson <gbenson@redhat.com>
672
673 * common/gdb_setjmp.h: New file.
674 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
675 * configure.ac: Move sigsetjmp check...
676 * common/common.m4: ...here.
677 * configure: Regenerate.
678 * cp-support.c (SIGJMP_BUF): Delete.
679 (SIGSETJMP): Likewise.
680 (SIGLONGJMP): Likewise.
681 * exceptions.h (gdb_setjmp.h): Include.
682 (setjmp.h): Do not include.
683 (EXCEPTIONS_SIGJMP_BUF): Delete.
684 (EXCEPTIONS_SIGSETJMP): Likewise.
685 (EXCEPTIONS_SIGLONGJMP): Likewise.
686 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
687 from gdb_setjmp.h.
688 * exceptions.c: Likewise.
689
690 2014-08-29 Gary Benson <gbenson@redhat.com>
691
692 * cleanups.h: Moved to...
693 * common/cleanups.h: New file.
694 * cleanups.c: Moved to...
695 * common/cleanups.c: New file. Include common-defs.h and
696 cleanups.h. Do not include defs.h.
697 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
698 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
699 (cleanups.o): New rule.
700
701 2014-08-29 Gary Benson <gbenson@redhat.com>
702
703 * common/errors.h (internal_warning): New declaration.
704 (internal_vwarning): Likewise.
705 * common/errors.c (internal_warning): New function.
706 * utils.h (internal_warning): Don't declare.
707 (internal_vwarning): Likewise.
708 * utils.c (internal_warning): Removed.
709
710 2014-08-29 Gary Benson <gbenson@redhat.com>
711
712 * main.c (captured_main): Use warning during startup.
713 Prefix startup warning messages with command name.
714
715 2014-08-29 Gary Benson <gbenson@redhat.com>
716
717 * main.c (captured_main): Handle usage errors with error.
718
719 2014-08-29 Gary Benson <gbenson@redhat.com>
720
721 * go32-nat.c (go32_create_inferior): Replace a fprintf/
722 exit pair with a call to error. Wrap the message with _().
723
724 2014-08-29 Gary Benson <gbenson@redhat.com>
725
726 * main.c (captured_main): Replace a fprintf/exit
727 pair with a call to error. Wrap the message with _().
728
729 2014-08-29 Gary Benson <gbenson@redhat.com>
730
731 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
732 pairs with calls to error. Wrap the message with _().
733
734 2014-08-29 Gary Benson <gbenson@redhat.com>
735
736 * utils.c (vwarning): Protect calls to target_terminal_ours
737 and wrap_here.
738
739 2014-08-29 Gary Benson <gbenson@redhat.com>
740
741 * exceptions.c (print_flush): Protect calls to
742 target_terminal_ours and wrap_here.
743
744 2014-08-29 Gary Benson <gbenson@redhat.com>
745
746 * utils.h (filtered_printing_initialized): New declaration.
747 * utils.c (abort_with_message): New function.
748 (internal_vproblem): Use abort_with_message for first level
749 recursive internal problems, and if gdb_stderr is not set up.
750 Protect calls to target_terminal_ours, begin_line and query.
751
752 2014-08-28 Doug Evans <dje@google.com>
753
754 * symtab.c (in_prologue): Move definition to better spot.
755 (skip_prologue_using_sal): Ditto.
756
757 2014-08-28 Doug Evans <dje@google.com>
758
759 * symtab.c (find_function_start_sal): Move definition to better spot.
760
761 2014-08-28 Yao Qi <yao@codesourcery.com>
762
763 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
764 found_stack_adjust in forward scan. Remove condition check
765 on found_stack_adjust which is always true. Indent the code.
766
767 2014-08-28 Yao Qi <yao@codesourcery.com>
768
769 * dwarf2read.c (dwarf_decode_lines): Update declaration.
770 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
771 (dwarf_decode_lines): Remove argument
772 want_line_info. Remove condition check on want_line_info.
773 Callers update.
774
775 2014-08-27 Doug Evans <dje@google.com>
776
777 * dwarf2read.c (dwarf_record_line): Fix typo.
778
779 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
780
781 * target.h (struct target_ops::to_terminal_save_ours): Remove
782 declaration.
783 (target_terminal_save_ours): Remove macro.
784 * target-delegates.c: Regenerate.
785 * inf-child.c (inf_child_target): Don't set the nonexistent
786 field to_terminal_save_ours.
787 * inferior.h (child_terminal_save_ours): Remove declaration.
788 * terminal.h (gdb_save_tty_state): New declaration.
789 * inflow.c (child_terminal_save_ours): Rename to ...
790 (gdb_save_tty_state): ... this.
791 * tui/tui.c: Include terminal.h.
792 (tui_enable): Use gdb_save_tty_state instead of
793 target_terminal_save_ours.
794 (tui_disable): Likewise.
795
796 2014-08-25 Doug Evans <dje@google.com>
797
798 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
799 Pass NULL instead of 0 for context pointer.
800
801 2014-08-25 Yao Qi <yao@codesourcery.com>
802
803 * dwarf2read.c: Fix grammatical error.
804
805 2014-08-24 Yao Qi <yao@codesourcery.com>
806
807 * dwarf2read.c (scan_partial_symbols): Update comments.
808 Rename argument 'need_pc' with 'set_addrmap'.
809 (add_partial_namespace): Rename argument 'need_pc' with
810 'set_addrmap'.
811 (add_partial_module): Likewise.
812 (add_partial_subprogram): Likewise. Update comments.
813 (dwarf2_name): Fix typo.
814
815 2014-08-22 Doug Evans <dje@google.com>
816
817 PR 17276
818 * dwarf2read.c (dwarf_record_line_p): New function.
819 (dwarf_decode_lines_1): Ignore subsequent line number entries
820 for the same line if any entry had a non-zero discriminator.
821
822 2014-08-22 Doug Evans <dje@google.com>
823
824 * buildsym.h (record_line_ftype): New typedef.
825 (record_line): Use it.
826 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
827 (dwarf_decode_lines_1): Call them.
828
829 2014-08-22 Yao Qi <yao@codesourcery.com>
830
831 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
832 (ctf_end): Remove code.
833
834 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
835
836 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
837 (linux_make_corefile_notes): call update_thread_list, protected against
838 exceptions.
839
840 2014-08-21 Pedro Alves <palves@redhat.com>
841
842 * infcmd.c (attach_command): Remove comment.
843
844 2014-08-21 Bin Cheng <bin.cheng@arm.com>
845
846 * aarch64-linux-nat.c (dr_changed_t): Change the type from
847 unsigned LONGEST to ULONGEST.
848
849 2014-08-20 Pedro Alves <palves@redhat.com>
850
851 * Makefile.in (check-read1): New rule.
852
853 2014-08-20 Joel Brobecker <brobecker@adacore.com>
854
855 * value.c (value_from_contents_and_address): Strip resolved_type's
856 typedef layers before checking its TYPE_DATA_LOCATION.
857
858 2014-08-20 Pedro Alves <palves@redhat.com>
859
860 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
861
862 2014-08-20 Yao Qi <yao@codesourcery.com>
863
864 * amd64-tdep.c (amd64_classify): Add a blank line after the
865 example. Move "*/" to a new line.
866 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
867 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
868 * dwarf2read.c (psymtab_include_file_name): Likewise.
869
870 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
871 Pedro Alves <palves@redhat.com>
872
873 PR symtab/14604
874 PR symtab/14605
875 * ada-lang.c (coerce_unspec_val_to_type): Use
876 value_contents_copy_raw.
877 * ada-valprint.c (val_print_packed_array_elements): Adjust.
878 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
879 * cp-valprint.c (cp_print_value_fields): Let the common printing
880 code handle optimized out values.
881 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
882 * d-valprint.c (dynamic_array_type): Use
883 value_bits_any_optimized_out.
884 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
885 check_any_valid fields.
886 (check_pieced_value_bits): Delete and inline ...
887 (check_pieced_synthetic_pointer): ... here.
888 (check_pieced_value_validity): Delete.
889 (check_pieced_value_invalid): Delete.
890 (pieced_value_funcs): Remove check_validity and check_any_valid
891 fields.
892 (read_pieced_value): Use mark_value_bits_optimized_out.
893 (write_pieced_value): Switch to use
894 mark_value_bytes_optimized_out.
895 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
896 of assuming the whole value is optimized out.
897 * findvar.c (read_frame_register_value): Remove special handling
898 of optimized out registers.
899 (value_from_register): Use mark_value_bytes_optimized_out.
900 * frame-unwind.c (frame_unwind_got_optimized): Use
901 mark_value_bytes_optimized_out.
902 * jv-valprint.c (java_value_print): Adjust.
903 (java_print_value_fields): Let the common printing code handle
904 optimized out values.
905 * mips-tdep.c (mips_print_register): Remove special handling of
906 optimized out registers.
907 * opencl-lang.c (lval_func_check_validity): Delete.
908 (lval_func_check_any_valid): Delete.
909 (opencl_value_funcs): Remove check_validity and check_any_valid
910 fields.
911 * p-valprint.c (pascal_object_print_value_fields): Let the common
912 printing code handle optimized out values.
913 * stack.c (read_frame_arg): Remove special handling of optimized
914 out values. Fetch both VAL and ENTRYVAL before comparing
915 contents. Adjust to value_available_contents_eq rename.
916 * valprint.c (valprint_check_validity)
917 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
918 (val_print_array_elements): Adjust.
919 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
920 (value_bits_any_optimized_out): New function.
921 (value_entirely_covered_by_range_vector): New function, factored
922 out from value_entirely_unavailable.
923 (value_entirely_unavailable): Reimplement.
924 (value_entirely_optimized_out): New function.
925 (insert_into_bit_range_vector): New function, factored out from
926 mark_value_bits_unavailable.
927 (mark_value_bits_unavailable): Reimplement.
928 (struct ranges_and_idx): New struct.
929 (find_first_range_overlap_and_match): New function, factored out
930 from value_available_contents_bits_eq.
931 (value_available_contents_bits_eq): Rename to ...
932 (value_contents_bits_eq): ... this. Check both unavailable
933 contents and optimized out contents.
934 (value_available_contents_eq): Rename to ...
935 (value_contents_eq): ... this.
936 (allocate_value_lazy): Remove reference to the old optimized_out
937 boolean.
938 (allocate_optimized_out_value): Use
939 mark_value_bytes_optimized_out.
940 (require_not_optimized_out): Adjust to check whether the
941 optimized_out vec is empty.
942 (ranges_copy_adjusted): New function, factored out from
943 value_contents_copy_raw.
944 (value_contents_copy_raw): Also copy the optimized out ranges.
945 Assert the destination ranges aren't optimized out.
946 (value_contents_copy): Update comment, remove call to
947 require_not_optimized_out.
948 (value_contents_equal): Adjust to check whether the optimized_out
949 vec is empty.
950 (set_value_optimized_out, value_optimized_out_const): Delete.
951 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
952 New functions.
953 (value_entirely_optimized_out, value_bits_valid): Delete.
954 (value_copy): Take a VEC copy of the 'optimized_out' field.
955 (value_primitive_field): Remove special handling of optimized out.
956 (value_fetch_lazy): Assert that lazy values have no unavailable
957 regions. Use value_bits_any_optimized_out. Remove some special
958 handling for optimized out values.
959 * value.h: Add intro comment about <optimized out> and
960 <unavailable>.
961 (struct lval_funcs): Remove check_validity and check_any_valid
962 fields.
963 (set_value_optimized_out, value_optimized_out_const): Remove.
964 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
965 New declarations.
966 (value_bits_any_optimized_out): New declaration.
967 (value_bits_valid): Delete declaration.
968 (value_available_contents_eq): Rename to ...
969 (value_contents_eq): ... this, and extend comments.
970
971 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
972
973 Fix -fsanitize=address on unreadable inferior strings.
974 * valprint.c (val_print_string): Fix access before BUFFER.
975
976 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
977
978 * target.c (target_struct_size): Remove.
979 (target_struct_allocsize): Remove.
980 (DEFAULT_ALLOCSIZE): Remove.
981 (target_ops_p): New typedef.
982 (DEF_VEC_P (target_ops_p)): New vector type.
983 (target_structs): Change type to VEC (target_ops_p).
984 (add_target_with_completer): Replace "push" code by VEC_safe_push.
985 (find_default_run_target): Rewrite for loop following changes to
986 target_structs.
987
988 2014-08-19 Joel Brobecker <brobecker@adacore.com>
989
990 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
991 Adjust code accordingly. Adjust function description comment.
992
993 2014-08-19 Yao Qi <yao@codesourcery.com>
994
995 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
996 types.
997
998 2014-08-19 Alan Modra <amodra@gmail.com>
999
1000 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1001 * config.in: Regenerate.
1002 * configure: Regenerate.
1003
1004 2014-08-19 Tom Tromey <tromey@redhat.com>
1005 Gary Benson <gbenson@redhat.com>
1006
1007 * common/common-debug.h: New file.
1008 * common/common-debug.c: Likewise.
1009 * debug.c: Likewise.
1010 * Makefile.in (SFILES): Add common/common-debug.c.
1011 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1012 (COMMON_OBS): Add common-debug.o and debug.o.
1013 (common-debug.o): New rule.
1014 * common/common-defs.h: Include common-debug.h.
1015 * common/agent.c (debug_agent_printf): New function.
1016 (DEBUG_AGENT): Redefine.
1017 * nat/i386-dregs.c (debug_printf): Undefine.
1018
1019 2014-08-19 Gary Benson <gbenson@redhat.com>
1020
1021 * common/common-defs.h: Include print-utils.h.
1022 * utils.h: Do not include print-utils.h.
1023
1024 2014-08-19 Tom Tromey <tromey@redhat.com>
1025 Gary Benson <gbenson@redhat.com>
1026
1027 * common/common-types.h: New file.
1028 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1029 * common/common-defs.h: Include common-types.h.
1030 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1031 (ULONGEST): Remove.
1032
1033 2014-08-19 Tom Tromey <tromey@redhat.com>
1034 Gary Benson <gbenson@redhat.com>
1035
1036 * common/errors.h: New file.
1037 * common/errors.c: Likewise.
1038 * Makefile.in (SFILES): Add common/errors.c.
1039 (HFILES_NO_SRCDIR): Add common/errors.h.
1040 (COMMON_OBS): Add errors.o.
1041 (errors.o): New rule.
1042 * common/common-defs.h: Include errors.h.
1043 * utils.h (perror_with_name, error, verror, warning, vwarning):
1044 Don't declare.
1045 * common/common-utils.h: (malloc_failure, internal_error):
1046 Likewise.
1047
1048 2014-08-19 Gary Benson <gbenson@redhat.com>
1049
1050 * utils.c (internal_vproblem): Always print the message.
1051
1052 2014-08-18 Doug Evans <dje@google.com>
1053
1054 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1055
1056 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1057
1058 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1059 Return 0 if TYPE is dynamic.
1060 (print_range): Add handling of dynamic ranges.
1061
1062 2014-08-18 Keven Boell <keven.boell@intel.com>
1063 Joel Brobecker <brobecker@adacore.com>
1064
1065 * gdbtypes.h (struct main_type): Add field "data_location".
1066 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1067 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1068 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1069 a dynamic data location.
1070 (resolve_dynamic_type): Add DW_AT_data_location handling.
1071 (copy_recursive, copy_type): Copy the data_location information
1072 when present.
1073 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1074 * value.c (value_from_contents_and_address): Add
1075 DW_AT_data_location handling.
1076
1077 2014-08-18 Keven Boell <keven.boell@intel.com>
1078 Joel Brobecker <brobecker@adacore.com>
1079
1080 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1081 field "get_object_address".
1082 * dwarf2expr.c (execute_stack_op): Add handling for
1083 DW_OP_push_object_address.
1084 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1085 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1086 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1087 (dwarf_expr_get_obj_addr): New function.
1088 (dwarf_expr_ctx_funcs): Add get_object_address field.
1089 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1090 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1091 (dwarf2_evaluate_property): Add parameter "address". Use it.
1092 (needs_get_obj_addr): New function.
1093 (needs_frame_ctx_funcs): Add get_object_address field.
1094 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1095 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1096 (resolve_dynamic_array): Likewise.
1097
1098 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1099
1100 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1101 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1102 fixed value for records and unions for which some GNAT encodings
1103 are present.
1104
1105 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1106
1107 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1108 rewrite to avoid "else if" and "else" constructs. Should be
1109 a no-op in practice.
1110
1111 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1112
1113 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1114 of lexical block.
1115
1116 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1117
1118 PR c++/17132
1119 * eval.c: Update all calls to find_overload_match.
1120 * valarith.c: Likewise.
1121 (value_user_defined_cpp_op, value_user_defined_op): New
1122 argument NOSIDE. Update all callers.
1123 * valops.c (find_overload_match): New argument NOSIDE.
1124 * value.h (find_overload_match): Update signature.
1125
1126 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1127
1128 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1129 'items' methods instead of 'iteritems' method on dictionaries.
1130
1131 2014-08-15 Doug Evans <dje@google.com>
1132
1133 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1134 closer to use.
1135
1136 2014-08-15 Doug Evans <dje@google.com>
1137
1138 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1139
1140 2014-08-15 Doug Evans <dje@google.com>
1141
1142 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1143
1144 2014-08-15 Doug Evans <dje@google.com>
1145
1146 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1147 unused.
1148
1149 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1150
1151 * dcache.h: Include target.h, to avoid compile time warnings.
1152
1153 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1154
1155 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1156 frame_info" partial declaration.
1157 * gdbarch.h: Regenerate.
1158
1159 2014-08-15 Yao Qi <yao@codesourcery.com>
1160
1161 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1162 Add parameter 'decode_for_pst_p'. Callers update.
1163
1164 2014-08-13 Yao Qi <yao@codesourcery.com>
1165
1166 PR build/17104
1167 * configure.ac: Use local variable 'pos'.
1168 * configure: Regenerated.
1169
1170 2014-08-11 Doug Evans <dje@google.com>
1171
1172 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1173 message, it is redundant with "Reading symbols from ..." message.
1174
1175 2014-08-10 Doug Evans <xdje42@gmail.com>
1176
1177 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1178
1179 2014-08-09 Yao Qi <yao@codesourcery.com>
1180
1181 PR remote/9053
1182 * remote.c (remote_xfer_partial): Remove dead code.
1183
1184 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1185
1186 * ia64-linux-tdep.c: Include "regset.h".
1187 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1188 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1189 (ia64_linux_supply_fpregset): New function.
1190 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1191 (ia64_linux_regset_from_core_section): New function.
1192 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1193 method.
1194
1195 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1196
1197 * m68klinux-tdep.c: Include "regset.h".
1198 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1199 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1200 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1201 (m68k_linux_regset_from_core_section): New function.
1202 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1203 method.
1204
1205 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1206
1207 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1208 function. Move logic to...
1209 (tilegx_linux_regmap): ... this new register map.
1210 (tilegx_linux_regset): Refer to register map, replace supply
1211 method by regcache_supply_regset, and add collect method.
1212 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1213 TILEGX_FIRST_EASY_REGNUM.
1214
1215 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1216
1217 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1218 that calls regcache_supply_regset and handles the EPC register
1219 separately. Move main logic to...
1220 (score7_linux_gregmap): ... this new register map.
1221 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1222 (score7_linux_gregset): Refer to register map. Add collect method.
1223 (score7_linux_regset_from_core_section): Replace
1224 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1225 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1226 (struct regset): Delete unused forward declaraction.
1227 (struct pt_regs): Delete structure definition.
1228 (elf_gregset_t): Delete typedef.
1229
1230 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1231
1232 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1233 (nios2_core_regset): Add collect method.
1234
1235 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1236
1237 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1238 platform-independent and don't write to read-only input buffer.
1239 (m32r_linux_collect_gregset): New function.
1240 (m32r_linux_gregset): Add collect method.
1241
1242 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1243
1244 * hppa-linux-tdep.c (greg_map): Rename to...
1245 (hppa_linux_gregmap): ... this. Also convert to
1246 regcache_map_entry format.
1247 (hppa_linux_supply_regset): Delete function.
1248 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1249 (hppa_linux_fpregmap): ... this new register map.
1250 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1251 register map, replace supply method by regcache_supply_regset, and
1252 add collect method regcache_collect_regset.
1253
1254 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1255
1256 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1257 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1258 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1259 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1260 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1261 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1262 (frv_linux_supply_gregset): Replace main logic by call to
1263 regcache_supply_regset, but keep clearing gr32-gr63.
1264 (frv_linux_supply_fpregset): Delete function.
1265 (frv_linux_gregset): Refer to appropriate register map and add
1266 regcache_collect_regset as the collect method.
1267 (frv_linux_fpregset): Likewise. Also exchange the supply method
1268 by regcache_supply_regset.
1269
1270 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1271
1272 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1273 by call to alpha_supply_int_regs.
1274 (alpha_linux_collect_gregset): New function.
1275 (alpha_linux_supply_fpregset): Replace logic by call to
1276 alpha_supply_fp_regs.
1277 (alpha_linux_collect_fpregset): New function.
1278 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1279
1280 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1281
1282 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1283 by call to regcache_collect_regset.
1284 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1285 instead of aarch64_linux_supply_gregset/_fpregset.
1286 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1287 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1288 header file instead.
1289 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1290 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1291 functions. Move logic to ...
1292 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1293 register maps.
1294 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1295 refer to new register maps, replace *_regset_from_core by
1296 regcache_supply_regset, and also use regcache_collect_regset.
1297 * aarch64-linux-tdep.h: Include "regset.h".
1298 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1299 Delete prototypes.
1300 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1301 macros, moved from C source file.
1302 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1303 variable declarations.
1304
1305 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1306
1307 * s390-linux-nat.c: Include "regset.h".
1308 (regmap_gregset): Delete macro.
1309 (s390_64_regmap_gregset): New register map for
1310 regcache_supply/_collect_regset.
1311 (s390_64_gregset): New regset.
1312 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1313 (regmap_fpregset): Delete macro.
1314 (s390_native_supply, s390_native_collect): Delete functions.
1315 (supply_gregset, fill_gregset): Replace s390-specific regmap
1316 handling by a call to regcache_supply/_collect_regset.
1317 (supply_fpregset, fill_fpregset): Call regcache_supply/
1318 _collect_regset instead of s390_native_supply/_collect.
1319 (fetch_regset, store_regset): Likewise. Also change the last
1320 parameter to a regset instead of a regmap.
1321 (s390_linux_fetch_inferior_registers)
1322 (390_linux_store_inferior_registers): Adjust last parameter in
1323 calls to fetch_regset and store_regset.
1324 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1325 (s390_gregmap): ... this. Also make static const and convert to
1326 regcache_map_entry format.
1327 (s390x_regmap_gregset): Delete.
1328 (s390_regmap_fpregset): Rename to...
1329 (s390_fpregmap): ... this. Make static const and convert to
1330 regcache_map_entry format.
1331 (s390_regmap_upper, s390_regmap_last_break)
1332 (s390x_regmap_last_break, s390_regmap_system_call)
1333 (s390_regmap_tdb): Likewise.
1334 (s390_supply_regset, s390_collect_regset): Remove functions.
1335 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1336 s390_supply_regset.
1337 (s390_gregset, s390_fpregset, s390_upper_regset)
1338 (s390_last_break_regset, s390x_last_break_regset)
1339 (s390_system_call_regset, s390_tdb_regset): Make global and
1340 replace s390_supply/_collect_regset by regcache_supply/
1341 _collect_regset.
1342 (s390x_gregset): Delete.
1343 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1344 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1345 (s390_regmap_fpregset, s390_regmap_last_break)
1346 (s390x_regmap_last_break, s390_regmap_system_call)
1347 (s390_regmap_tdb): Delete global variable declarations.
1348 (s390_gregset, s390_fpregset, s390_last_break_regset)
1349 (s390x_last_break_regset, s390_system_call_regset)
1350 (s390_tdb_regset): New global variable declarations.
1351
1352 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1353
1354 * regcache.c: Include "regset.h".
1355 (regcache_transfer_regset): New local function.
1356 (regcache_supply_regset, regcache_collect_regset): New functions.
1357 * regcache.h (struct regcache_map_entry): New structure.
1358 (REGCACHE_MAP_SKIP): New enum value.
1359 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1360
1361 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1362
1363 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1364 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1365 (ppc_linux_collect_gregset ): Likewise.
1366 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1367 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1368 (ppc_collect_vrregset): Likewise.
1369 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1370 Likewise.
1371
1372 2014-08-07 Yao Qi <yao@codesourcery.com>
1373
1374 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1375 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1376 * remote.c (remote_read_bytes): Likewise.
1377
1378 2014-08-07 Yao Qi <yao@codesourcery.com>
1379
1380 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1381
1382 2014-08-07 Yao Qi <yao@codesourcery.com>
1383
1384 PR remote/17230
1385 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1386 TARGET_XFER_OK instead of 0.
1387
1388 2014-08-07 Gary Benson <gbenson@redhat.com>
1389
1390 * common/common-defs.h: Include errno.h.
1391 * defs.h: Do not include errno.h.
1392 * ada-typeprint.c: Likewise.
1393 * c-typeprint.c: Likewise.
1394 * core-regset.c: Likewise.
1395 * corefile.c: Likewise.
1396 * corelow.c: Likewise.
1397 * event-loop.c: Likewise.
1398 * f-typeprint.c: Likewise.
1399 * gnu-nat.c: Likewise.
1400 * go32-nat.c: Likewise.
1401 * i386gnu-nat.c: Likewise.
1402 * m2-typeprint.c: Likewise.
1403 * nat/linux-btrace.c: Likewise.
1404 * p-typeprint.c: Likewise.
1405 * procfs.c: Likewise.
1406 * remote-sim.c: Likewise.
1407 * rs6000-nat.c: Likewise.
1408 * target.c: Likewise.
1409 * typeprint.c: Likewise.
1410 * ui-file.c: Likewise.
1411 * valops.c: Likewise.
1412 * valprint.c: Likewise.
1413
1414 2014-08-07 Gary Benson <gbenson@redhat.com>
1415
1416 * common/common-defs.h: Include string.h.
1417 * aarch64-tdep.c: Do not include string.h.
1418 * ada-exp.y: Likewise.
1419 * ada-lang.c: Likewise.
1420 * ada-lex.l: Likewise.
1421 * ada-typeprint.c: Likewise.
1422 * ada-valprint.c: Likewise.
1423 * aix-thread.c: Likewise.
1424 * alpha-linux-tdep.c: Likewise.
1425 * alpha-mdebug-tdep.c: Likewise.
1426 * alpha-nat.c: Likewise.
1427 * alpha-osf1-tdep.c: Likewise.
1428 * alpha-tdep.c: Likewise.
1429 * alphanbsd-tdep.c: Likewise.
1430 * amd64-dicos-tdep.c: Likewise.
1431 * amd64-linux-tdep.c: Likewise.
1432 * amd64-nat.c: Likewise.
1433 * amd64-sol2-tdep.c: Likewise.
1434 * amd64fbsd-tdep.c: Likewise.
1435 * amd64obsd-tdep.c: Likewise.
1436 * arch-utils.c: Likewise.
1437 * arm-linux-nat.c: Likewise.
1438 * arm-linux-tdep.c: Likewise.
1439 * arm-tdep.c: Likewise.
1440 * arm-wince-tdep.c: Likewise.
1441 * armbsd-tdep.c: Likewise.
1442 * armnbsd-nat.c: Likewise.
1443 * armnbsd-tdep.c: Likewise.
1444 * armobsd-tdep.c: Likewise.
1445 * avr-tdep.c: Likewise.
1446 * ax-gdb.c: Likewise.
1447 * ax-general.c: Likewise.
1448 * bcache.c: Likewise.
1449 * bfin-tdep.c: Likewise.
1450 * breakpoint.c: Likewise.
1451 * build-id.c: Likewise.
1452 * buildsym.c: Likewise.
1453 * c-exp.y: Likewise.
1454 * c-lang.c: Likewise.
1455 * c-typeprint.c: Likewise.
1456 * c-valprint.c: Likewise.
1457 * charset.c: Likewise.
1458 * cli-out.c: Likewise.
1459 * cli/cli-cmds.c: Likewise.
1460 * cli/cli-decode.c: Likewise.
1461 * cli/cli-dump.c: Likewise.
1462 * cli/cli-interp.c: Likewise.
1463 * cli/cli-logging.c: Likewise.
1464 * cli/cli-script.c: Likewise.
1465 * cli/cli-setshow.c: Likewise.
1466 * cli/cli-utils.c: Likewise.
1467 * coffread.c: Likewise.
1468 * common/agent.c: Likewise.
1469 * common/buffer.c: Likewise.
1470 * common/buffer.h: Likewise.
1471 * common/common-utils.c: Likewise.
1472 * common/filestuff.c: Likewise.
1473 * common/filestuff.c: Likewise.
1474 * common/format.c: Likewise.
1475 * common/print-utils.c: Likewise.
1476 * common/rsp-low.c: Likewise.
1477 * common/signals.c: Likewise.
1478 * common/vec.h: Likewise.
1479 * common/xml-utils.c: Likewise.
1480 * core-regset.c: Likewise.
1481 * corefile.c: Likewise.
1482 * corelow.c: Likewise.
1483 * cp-abi.c: Likewise.
1484 * cp-name-parser.y: Likewise.
1485 * cp-support.c: Likewise.
1486 * cp-valprint.c: Likewise.
1487 * cris-tdep.c: Likewise.
1488 * d-exp.y: Likewise.
1489 * darwin-nat.c: Likewise.
1490 * dbxread.c: Likewise.
1491 * dcache.c: Likewise.
1492 * demangle.c: Likewise.
1493 * dicos-tdep.c: Likewise.
1494 * disasm.c: Likewise.
1495 * doublest.c: Likewise.
1496 * dsrec.c: Likewise.
1497 * dummy-frame.c: Likewise.
1498 * dwarf2-frame.c: Likewise.
1499 * dwarf2loc.c: Likewise.
1500 * dwarf2read.c: Likewise.
1501 * elfread.c: Likewise.
1502 * environ.c: Likewise.
1503 * eval.c: Likewise.
1504 * event-loop.c: Likewise.
1505 * exceptions.c: Likewise.
1506 * exec.c: Likewise.
1507 * expprint.c: Likewise.
1508 * f-exp.y: Likewise.
1509 * f-lang.c: Likewise.
1510 * f-typeprint.c: Likewise.
1511 * f-valprint.c: Likewise.
1512 * fbsd-nat.c: Likewise.
1513 * findcmd.c: Likewise.
1514 * findvar.c: Likewise.
1515 * fork-child.c: Likewise.
1516 * frame.c: Likewise.
1517 * frv-linux-tdep.c: Likewise.
1518 * frv-tdep.c: Likewise.
1519 * gdb.c: Likewise.
1520 * gdb_bfd.c: Likewise.
1521 * gdbarch.c: Likewise.
1522 * gdbarch.sh: Likewise.
1523 * gdbtypes.c: Likewise.
1524 * gnu-nat.c: Likewise.
1525 * gnu-v2-abi.c: Likewise.
1526 * gnu-v3-abi.c: Likewise.
1527 * go-exp.y: Likewise.
1528 * go-lang.c: Likewise.
1529 * go32-nat.c: Likewise.
1530 * guile/guile.c: Likewise.
1531 * guile/scm-auto-load.c: Likewise.
1532 * hppa-hpux-tdep.c: Likewise.
1533 * hppa-linux-nat.c: Likewise.
1534 * hppanbsd-tdep.c: Likewise.
1535 * hppaobsd-tdep.c: Likewise.
1536 * i386-cygwin-tdep.c: Likewise.
1537 * i386-dicos-tdep.c: Likewise.
1538 * i386-linux-tdep.c: Likewise.
1539 * i386-nto-tdep.c: Likewise.
1540 * i386-sol2-tdep.c: Likewise.
1541 * i386-tdep.c: Likewise.
1542 * i386bsd-tdep.c: Likewise.
1543 * i386gnu-nat.c: Likewise.
1544 * i386nbsd-tdep.c: Likewise.
1545 * i386obsd-tdep.c: Likewise.
1546 * i387-tdep.c: Likewise.
1547 * ia64-libunwind-tdep.c: Likewise.
1548 * ia64-linux-nat.c: Likewise.
1549 * inf-child.c: Likewise.
1550 * inf-ptrace.c: Likewise.
1551 * inf-ttrace.c: Likewise.
1552 * infcall.c: Likewise.
1553 * infcmd.c: Likewise.
1554 * inflow.c: Likewise.
1555 * infrun.c: Likewise.
1556 * interps.c: Likewise.
1557 * iq2000-tdep.c: Likewise.
1558 * irix5-nat.c: Likewise.
1559 * jv-exp.y: Likewise.
1560 * jv-lang.c: Likewise.
1561 * jv-typeprint.c: Likewise.
1562 * jv-valprint.c: Likewise.
1563 * language.c: Likewise.
1564 * linux-fork.c: Likewise.
1565 * linux-nat.c: Likewise.
1566 * lm32-tdep.c: Likewise.
1567 * m2-exp.y: Likewise.
1568 * m2-typeprint.c: Likewise.
1569 * m32c-tdep.c: Likewise.
1570 * m32r-linux-nat.c: Likewise.
1571 * m32r-linux-tdep.c: Likewise.
1572 * m32r-rom.c: Likewise.
1573 * m32r-tdep.c: Likewise.
1574 * m68hc11-tdep.c: Likewise.
1575 * m68k-tdep.c: Likewise.
1576 * m68kbsd-tdep.c: Likewise.
1577 * m68klinux-nat.c: Likewise.
1578 * m68klinux-tdep.c: Likewise.
1579 * m88k-tdep.c: Likewise.
1580 * machoread.c: Likewise.
1581 * macrocmd.c: Likewise.
1582 * main.c: Likewise.
1583 * mdebugread.c: Likewise.
1584 * mem-break.c: Likewise.
1585 * memattr.c: Likewise.
1586 * memory-map.c: Likewise.
1587 * mep-tdep.c: Likewise.
1588 * mi/mi-cmd-break.c: Likewise.
1589 * mi/mi-cmd-disas.c: Likewise.
1590 * mi/mi-cmd-env.c: Likewise.
1591 * mi/mi-cmd-stack.c: Likewise.
1592 * mi/mi-cmd-var.c: Likewise.
1593 * mi/mi-cmds.c: Likewise.
1594 * mi/mi-console.c: Likewise.
1595 * mi/mi-getopt.c: Likewise.
1596 * mi/mi-interp.c: Likewise.
1597 * mi/mi-main.c: Likewise.
1598 * mi/mi-parse.c: Likewise.
1599 * microblaze-rom.c: Likewise.
1600 * microblaze-tdep.c: Likewise.
1601 * mingw-hdep.c: Likewise.
1602 * minidebug.c: Likewise.
1603 * minsyms.c: Likewise.
1604 * mips-irix-tdep.c: Likewise.
1605 * mips-linux-tdep.c: Likewise.
1606 * mips-tdep.c: Likewise.
1607 * mips64obsd-tdep.c: Likewise.
1608 * mipsnbsd-tdep.c: Likewise.
1609 * mipsread.c: Likewise.
1610 * mn10300-linux-tdep.c: Likewise.
1611 * mn10300-tdep.c: Likewise.
1612 * monitor.c: Likewise.
1613 * moxie-tdep.c: Likewise.
1614 * mt-tdep.c: Likewise.
1615 * nat/linux-btrace.c: Likewise.
1616 * nat/linux-osdata.c: Likewise.
1617 * nat/linux-procfs.c: Likewise.
1618 * nat/linux-ptrace.c: Likewise.
1619 * nat/linux-waitpid.c: Likewise.
1620 * nbsd-tdep.c: Likewise.
1621 * nios2-linux-tdep.c: Likewise.
1622 * nto-procfs.c: Likewise.
1623 * nto-tdep.c: Likewise.
1624 * objc-lang.c: Likewise.
1625 * objfiles.c: Likewise.
1626 * opencl-lang.c: Likewise.
1627 * osabi.c: Likewise.
1628 * osdata.c: Likewise.
1629 * p-exp.y: Likewise.
1630 * p-lang.c: Likewise.
1631 * p-typeprint.c: Likewise.
1632 * parse.c: Likewise.
1633 * posix-hdep.c: Likewise.
1634 * ppc-linux-nat.c: Likewise.
1635 * ppc-sysv-tdep.c: Likewise.
1636 * ppcfbsd-tdep.c: Likewise.
1637 * ppcnbsd-tdep.c: Likewise.
1638 * ppcobsd-tdep.c: Likewise.
1639 * printcmd.c: Likewise.
1640 * procfs.c: Likewise.
1641 * prologue-value.c: Likewise.
1642 * python/py-auto-load.c: Likewise.
1643 * python/py-gdb-readline.c: Likewise.
1644 * ravenscar-thread.c: Likewise.
1645 * regcache.c: Likewise.
1646 * registry.c: Likewise.
1647 * remote-fileio.c: Likewise.
1648 * remote-m32r-sdi.c: Likewise.
1649 * remote-mips.c: Likewise.
1650 * remote-notif.c: Likewise.
1651 * remote-sim.c: Likewise.
1652 * remote.c: Likewise.
1653 * reverse.c: Likewise.
1654 * rs6000-aix-tdep.c: Likewise.
1655 * ser-base.c: Likewise.
1656 * ser-go32.c: Likewise.
1657 * ser-mingw.c: Likewise.
1658 * ser-pipe.c: Likewise.
1659 * ser-tcp.c: Likewise.
1660 * ser-unix.c: Likewise.
1661 * serial.c: Likewise.
1662 * sh-tdep.c: Likewise.
1663 * sh64-tdep.c: Likewise.
1664 * shnbsd-tdep.c: Likewise.
1665 * skip.c: Likewise.
1666 * sol-thread.c: Likewise.
1667 * solib-dsbt.c: Likewise.
1668 * solib-frv.c: Likewise.
1669 * solib-osf.c: Likewise.
1670 * solib-som.c: Likewise.
1671 * solib-spu.c: Likewise.
1672 * solib-target.c: Likewise.
1673 * solib.c: Likewise.
1674 * somread.c: Likewise.
1675 * source.c: Likewise.
1676 * sparc-nat.c: Likewise.
1677 * sparc-sol2-tdep.c: Likewise.
1678 * sparc-tdep.c: Likewise.
1679 * sparc64-tdep.c: Likewise.
1680 * sparc64fbsd-tdep.c: Likewise.
1681 * sparc64nbsd-tdep.c: Likewise.
1682 * sparcnbsd-tdep.c: Likewise.
1683 * spu-linux-nat.c: Likewise.
1684 * spu-multiarch.c: Likewise.
1685 * spu-tdep.c: Likewise.
1686 * stabsread.c: Likewise.
1687 * stack.c: Likewise.
1688 * std-regs.c: Likewise.
1689 * symfile.c: Likewise.
1690 * symmisc.c: Likewise.
1691 * symtab.c: Likewise.
1692 * target.c: Likewise.
1693 * thread.c: Likewise.
1694 * tilegx-linux-nat.c: Likewise.
1695 * tilegx-tdep.c: Likewise.
1696 * top.c: Likewise.
1697 * tracepoint.c: Likewise.
1698 * tui/tui-command.c: Likewise.
1699 * tui/tui-data.c: Likewise.
1700 * tui/tui-disasm.c: Likewise.
1701 * tui/tui-file.c: Likewise.
1702 * tui/tui-layout.c: Likewise.
1703 * tui/tui-out.c: Likewise.
1704 * tui/tui-regs.c: Likewise.
1705 * tui/tui-source.c: Likewise.
1706 * tui/tui-stack.c: Likewise.
1707 * tui/tui-win.c: Likewise.
1708 * tui/tui-windata.c: Likewise.
1709 * tui/tui-winsource.c: Likewise.
1710 * typeprint.c: Likewise.
1711 * ui-file.c: Likewise.
1712 * ui-out.c: Likewise.
1713 * user-regs.c: Likewise.
1714 * utils.c: Likewise.
1715 * v850-tdep.c: Likewise.
1716 * valarith.c: Likewise.
1717 * valops.c: Likewise.
1718 * valprint.c: Likewise.
1719 * value.c: Likewise.
1720 * varobj.c: Likewise.
1721 * vax-tdep.c: Likewise.
1722 * vaxnbsd-tdep.c: Likewise.
1723 * vaxobsd-tdep.c: Likewise.
1724 * windows-nat.c: Likewise.
1725 * xcoffread.c: Likewise.
1726 * xml-support.c: Likewise.
1727 * xstormy16-tdep.c: Likewise.
1728 * xtensa-linux-nat.c: Likewise.
1729
1730 2014-08-07 Gary Benson <gbenson@redhat.com>
1731
1732 * common/common-defs.h: Include gdb_assert.h.
1733 * aarch64-tdep.c: Do not include gdb_assert.h.
1734 * addrmap.c: Likewise.
1735 * aix-thread.c: Likewise.
1736 * alpha-linux-tdep.c: Likewise.
1737 * alpha-mdebug-tdep.c: Likewise.
1738 * alphanbsd-tdep.c: Likewise.
1739 * amd64-nat.c: Likewise.
1740 * amd64-tdep.c: Likewise.
1741 * amd64bsd-nat.c: Likewise.
1742 * amd64fbsd-nat.c: Likewise.
1743 * amd64fbsd-tdep.c: Likewise.
1744 * amd64nbsd-nat.c: Likewise.
1745 * amd64nbsd-tdep.c: Likewise.
1746 * amd64obsd-nat.c: Likewise.
1747 * amd64obsd-tdep.c: Likewise.
1748 * arch-utils.c: Likewise.
1749 * arm-tdep.c: Likewise.
1750 * armbsd-tdep.c: Likewise.
1751 * auxv.c: Likewise.
1752 * bcache.c: Likewise.
1753 * bfin-tdep.c: Likewise.
1754 * blockframe.c: Likewise.
1755 * breakpoint.c: Likewise.
1756 * bsd-kvm.c: Likewise.
1757 * bsd-uthread.c: Likewise.
1758 * buildsym.c: Likewise.
1759 * c-exp.y: Likewise.
1760 * c-lang.c: Likewise.
1761 * charset.c: Likewise.
1762 * cleanups.c: Likewise.
1763 * cli-out.c: Likewise.
1764 * cli/cli-decode.c: Likewise.
1765 * cli/cli-dump.c: Likewise.
1766 * cli/cli-logging.c: Likewise.
1767 * cli/cli-script.c: Likewise.
1768 * cli/cli-utils.c: Likewise.
1769 * coffread.c: Likewise.
1770 * common/common-utils.c: Likewise.
1771 * common/queue.h: Likewise.
1772 * common/signals.c: Likewise.
1773 * common/vec.h: Likewise.
1774 * complaints.c: Likewise.
1775 * completer.c: Likewise.
1776 * corelow.c: Likewise.
1777 * cp-abi.c: Likewise.
1778 * cp-name-parser.y: Likewise.
1779 * cp-namespace.c: Likewise.
1780 * cp-support.c: Likewise.
1781 * cris-tdep.c: Likewise.
1782 * dbxread.c: Likewise.
1783 * dictionary.c: Likewise.
1784 * doublest.c: Likewise.
1785 * dsrec.c: Likewise.
1786 * dummy-frame.c: Likewise.
1787 * dwarf2-frame-tailcall.c: Likewise.
1788 * dwarf2-frame.c: Likewise.
1789 * dwarf2expr.c: Likewise.
1790 * dwarf2loc.c: Likewise.
1791 * dwarf2read.c: Likewise.
1792 * eval.c: Likewise.
1793 * event-loop.c: Likewise.
1794 * exceptions.c: Likewise.
1795 * expprint.c: Likewise.
1796 * f-valprint.c: Likewise.
1797 * fbsd-nat.c: Likewise.
1798 * findvar.c: Likewise.
1799 * frame-unwind.c: Likewise.
1800 * frame.c: Likewise.
1801 * frv-tdep.c: Likewise.
1802 * gcore.c: Likewise.
1803 * gdb-dlfcn.c: Likewise.
1804 * gdb_bfd.c: Likewise.
1805 * gdbarch.c: Likewise.
1806 * gdbarch.sh: Likewise.
1807 * gdbtypes.c: Likewise.
1808 * gnu-nat.c: Likewise.
1809 * gnu-v3-abi.c: Likewise.
1810 * go-lang.c: Likewise.
1811 * guile/scm-exception.c: Likewise.
1812 * guile/scm-gsmob.c: Likewise.
1813 * guile/scm-lazy-string.c: Likewise.
1814 * guile/scm-math.c: Likewise.
1815 * guile/scm-pretty-print.c: Likewise.
1816 * guile/scm-safe-call.c: Likewise.
1817 * guile/scm-utils.c: Likewise.
1818 * guile/scm-value.c: Likewise.
1819 * h8300-tdep.c: Likewise.
1820 * hppa-hpux-nat.c: Likewise.
1821 * hppa-tdep.c: Likewise.
1822 * hppanbsd-tdep.c: Likewise.
1823 * hppaobsd-tdep.c: Likewise.
1824 * i386-darwin-nat.c: Likewise.
1825 * i386-darwin-tdep.c: Likewise.
1826 * i386-nto-tdep.c: Likewise.
1827 * i386-tdep.c: Likewise.
1828 * i386bsd-nat.c: Likewise.
1829 * i386fbsd-tdep.c: Likewise.
1830 * i386gnu-nat.c: Likewise.
1831 * i386nbsd-tdep.c: Likewise.
1832 * i386obsd-tdep.c: Likewise.
1833 * i387-tdep.c: Likewise.
1834 * ia64-libunwind-tdep.c: Likewise.
1835 * ia64-tdep.c: Likewise.
1836 * inf-ptrace.c: Likewise.
1837 * inf-ttrace.c: Likewise.
1838 * infcall.c: Likewise.
1839 * infcmd.c: Likewise.
1840 * infrun.c: Likewise.
1841 * inline-frame.c: Likewise.
1842 * interps.c: Likewise.
1843 * jv-lang.c: Likewise.
1844 * jv-typeprint.c: Likewise.
1845 * linux-fork.c: Likewise.
1846 * linux-nat.c: Likewise.
1847 * linux-thread-db.c: Likewise.
1848 * m32c-tdep.c: Likewise.
1849 * m32r-linux-nat.c: Likewise.
1850 * m32r-tdep.c: Likewise.
1851 * m68k-tdep.c: Likewise.
1852 * m68kbsd-nat.c: Likewise.
1853 * m68kbsd-tdep.c: Likewise.
1854 * m88k-tdep.c: Likewise.
1855 * machoread.c: Likewise.
1856 * macroexp.c: Likewise.
1857 * macrotab.c: Likewise.
1858 * maint.c: Likewise.
1859 * mdebugread.c: Likewise.
1860 * memory-map.c: Likewise.
1861 * mep-tdep.c: Likewise.
1862 * mi/mi-common.c: Likewise.
1863 * microblaze-tdep.c: Likewise.
1864 * mingw-hdep.c: Likewise.
1865 * mips-linux-nat.c: Likewise.
1866 * mips-linux-tdep.c: Likewise.
1867 * mips-tdep.c: Likewise.
1868 * mips64obsd-tdep.c: Likewise.
1869 * mipsnbsd-tdep.c: Likewise.
1870 * mn10300-linux-tdep.c: Likewise.
1871 * mn10300-tdep.c: Likewise.
1872 * moxie-tdep.c: Likewise.
1873 * mt-tdep.c: Likewise.
1874 * nat/linux-btrace.c: Likewise.
1875 * nat/linux-osdata.c: Likewise.
1876 * nat/linux-ptrace.c: Likewise.
1877 * nat/mips-linux-watch.c: Likewise.
1878 * nios2-linux-tdep.c: Likewise.
1879 * nios2-tdep.c: Likewise.
1880 * objc-lang.c: Likewise.
1881 * objfiles.c: Likewise.
1882 * obsd-nat.c: Likewise.
1883 * opencl-lang.c: Likewise.
1884 * osabi.c: Likewise.
1885 * parse.c: Likewise.
1886 * ppc-linux-nat.c: Likewise.
1887 * ppc-sysv-tdep.c: Likewise.
1888 * ppcfbsd-nat.c: Likewise.
1889 * ppcfbsd-tdep.c: Likewise.
1890 * ppcnbsd-nat.c: Likewise.
1891 * ppcnbsd-tdep.c: Likewise.
1892 * ppcobsd-nat.c: Likewise.
1893 * ppcobsd-tdep.c: Likewise.
1894 * printcmd.c: Likewise.
1895 * procfs.c: Likewise.
1896 * prologue-value.c: Likewise.
1897 * psymtab.c: Likewise.
1898 * python/py-lazy-string.c: Likewise.
1899 * python/py-value.c: Likewise.
1900 * regcache.c: Likewise.
1901 * reggroups.c: Likewise.
1902 * registry.c: Likewise.
1903 * remote-sim.c: Likewise.
1904 * remote.c: Likewise.
1905 * rs6000-aix-tdep.c: Likewise.
1906 * rs6000-tdep.c: Likewise.
1907 * s390-linux-tdep.c: Likewise.
1908 * score-tdep.c: Likewise.
1909 * ser-base.c: Likewise.
1910 * ser-mingw.c: Likewise.
1911 * sh-tdep.c: Likewise.
1912 * sh64-tdep.c: Likewise.
1913 * solib-darwin.c: Likewise.
1914 * solib-spu.c: Likewise.
1915 * solib-svr4.c: Likewise.
1916 * source.c: Likewise.
1917 * sparc-nat.c: Likewise.
1918 * sparc-sol2-tdep.c: Likewise.
1919 * sparc-tdep.c: Likewise.
1920 * sparc64-sol2-tdep.c: Likewise.
1921 * sparc64-tdep.c: Likewise.
1922 * sparc64fbsd-tdep.c: Likewise.
1923 * sparc64nbsd-tdep.c: Likewise.
1924 * sparc64obsd-tdep.c: Likewise.
1925 * sparcnbsd-tdep.c: Likewise.
1926 * sparcobsd-tdep.c: Likewise.
1927 * spu-multiarch.c: Likewise.
1928 * spu-tdep.c: Likewise.
1929 * stabsread.c: Likewise.
1930 * stack.c: Likewise.
1931 * symfile.c: Likewise.
1932 * symtab.c: Likewise.
1933 * target-descriptions.c: Likewise.
1934 * target-memory.c: Likewise.
1935 * target.c: Likewise.
1936 * tic6x-linux-tdep.c: Likewise.
1937 * tic6x-tdep.c: Likewise.
1938 * tilegx-linux-nat.c: Likewise.
1939 * tilegx-tdep.c: Likewise.
1940 * top.c: Likewise.
1941 * tramp-frame.c: Likewise.
1942 * tui/tui-out.c: Likewise.
1943 * tui/tui-winsource.c: Likewise.
1944 * ui-out.c: Likewise.
1945 * user-regs.c: Likewise.
1946 * utils.c: Likewise.
1947 * v850-tdep.c: Likewise.
1948 * valops.c: Likewise.
1949 * value.c: Likewise.
1950 * varobj.c: Likewise.
1951 * vax-nat.c: Likewise.
1952 * xml-syscall.c: Likewise.
1953 * xml-tdesc.c: Likewise.
1954 * xstormy16-tdep.c: Likewise.
1955 * xtensa-linux-nat.c: Likewise.
1956 * xtensa-tdep.c: Likewise.
1957
1958 2014-08-07 Gary Benson <gbenson@redhat.com>
1959
1960 * common/common-defs.h: Include common-utils.h.
1961 * defs.h: Do not include common-utils.h.
1962 * common/gdb_assert.h: Likewise.
1963 * darwin-nat.h: Likewise.
1964 * nat/linux-btrace.c: Likewise.
1965 * target/waitstatus.h: Likewise.
1966
1967 2014-08-07 Gary Benson <gbenson@redhat.com>
1968
1969 * common/common-defs.h: Include ptid.h.
1970 * defs.h: Do not include ptid.h.
1971 * inferior.h: Likewise.
1972 * infrun.h: Likewise.
1973 * nat/linux-btrace.h: Likewise.
1974 * nat/linux-osdata.h: Likewise.
1975 * target/waitstatus.h: Likewise.
1976
1977 2014-08-07 Gary Benson <gbenson@redhat.com>
1978
1979 * common/common-defs.h: Include gdb_locale.h.
1980 * defs.h: Do not include gdb_locale.h.
1981
1982 2014-08-07 Gary Benson <gbenson@redhat.com>
1983
1984 * common/common-defs.h: Include gdb/signals.h.
1985 * defs.h: Do not include gdb/signals.h.
1986
1987 2014-08-07 Gary Benson <gbenson@redhat.com>
1988
1989 * common/common-defs.h: Include pathmax.h.
1990 * defs.h: Do not include pathmax.h.
1991
1992 2014-08-07 Gary Benson <gbenson@redhat.com>
1993
1994 * common/common-defs.h: Include libiberty.h.
1995 * defs.h: Do not include libiberty.h.
1996 * common/queue.h: Likewise.
1997 * cp-name-parser.y: Likewise.
1998 * mi/mi-cmd-catch.c: Likewise.
1999 * python/python.c: Likewise.
2000
2001 2014-08-07 Gary Benson <gbenson@redhat.com>
2002
2003 * common/common-defs.h: Include ansidecl.h.
2004 * defs.h: Do not include ansidecl.h.
2005 * common/buffer.h: Likewise.
2006 * common/common-utils.h: Likewise.
2007
2008 2014-08-07 Gary Benson <gbenson@redhat.com>
2009
2010 * common/common-defs.h: Include stddef.h.
2011 * defs.h: Do not include stddef.h.
2012 * common/common-utils.h: Likewise.
2013 * amd64fbsd-nat.c: Likewise.
2014 * bcache.c: Likewise.
2015 * charset.c: Likewise.
2016 * common/buffer.h: Likewise.
2017 * common/vec.h: Likewise.
2018 * i386bsd-nat.c: Likewise.
2019 * nat/linux-btrace.h: Likewise.
2020 * ppcfbsd-nat.c: Likewise.
2021 * ppcnbsd-tdep.h: Likewise.
2022 * ppcobsd-nat.c: Likewise.
2023 * ppcobsd-tdep.h: Likewise.
2024 * python/py-gdb-readline.c: Likewise.
2025
2026 2014-08-07 Gary Benson <gbenson@redhat.com>
2027
2028 * common/common-defs.h: Include stdarg.h.
2029 * defs.h: Do not include stdarg.h.
2030 * ada-lang.c: Likewise.
2031 * common/common-utils.h: Likewise.
2032 * guile/scm-string.c: Likewise.
2033 * guile/scm-utils.c: Likewise.
2034 * m32c-tdep.c: Likewise.
2035
2036 2014-08-07 Gary Benson <gbenson@redhat.com>
2037
2038 * common/common-defs.h: Include stdlib.h.
2039 * defs.h: Do not include stdlib.h.
2040 * addrmap.c: Likewise.
2041 * bcache.c: Likewise.
2042 * common/buffer.c: Likewise.
2043 * common/common-utils.c: Likewise.
2044 * cp-name-parser.y: Likewise.
2045 * go32-nat.c: Likewise.
2046 * mn10300-linux-tdep.c: Likewise.
2047 * nat/linux-osdata.c: Likewise.
2048 * tui/tui.c: Likewise.
2049 * windows-nat.c: Likewise.
2050
2051 2014-08-07 Gary Benson <gbenson@redhat.com>
2052
2053 * common/common-defs.h: Include stdio.h.
2054 * defs.h: Do not include stdio.h.
2055 * ada-lang.c: Likewise.
2056 * common/buffer.c: Likewise.
2057 * common/common-utils.c: Likewise.
2058 * cp-name-parser.y: Likewise.
2059 * gnu-nat.c: Likewise.
2060 * go32-nat.c: Likewise.
2061 * i386gnu-nat.c: Likewise.
2062 * proc-api.c: Likewise.
2063 * proc-events.c: Likewise.
2064 * proc-flags.c: Likewise.
2065 * proc-why.c: Likewise.
2066 * python/python-internal.h: Likewise.
2067 * target-memory.c: Likewise.
2068 * tui/tui-io.c: Likewise.
2069 * tui/tui.c: Likewise.
2070
2071 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2072
2073 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2074 (scan_dyntag_auxv): Same.
2075
2076 2014-08-06 Yao Qi <yao@codesourcery.com>
2077
2078 * amd64-linux-nat.c: Remove duplicated include
2079 "x86-linux-nat.h".
2080 * i386-linux-nat.c: Likewise.
2081
2082 2014-08-06 Yao Qi <yao@codesourcery.com>
2083
2084 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2085 operand" with "Special opcode" in comments.
2086
2087 2014-08-05 Gary Benson <gbenson@redhat.com>
2088
2089 * interps.c (initialize_interps): Remove prototype.
2090 (interpreter_initialized): Remove static global.
2091 (interp_add): Do not call initialize_interps.
2092 (initialize_interps): Remove function.
2093
2094 2014-08-05 Gary Benson <gbenson@redhat.com>
2095
2096 * utils.c (vwarning): Remove spurious va_end.
2097
2098 2014-08-05 Alan Modra <amodra@gmail.com>
2099
2100 * charset.c (convert_between_encodings): Cast result of obstack_base.
2101 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2102 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2103 (read_unwind_info): Use size_t for some locals.
2104 * jit.c (finalize_symtab): Likewise.
2105 * utils.c (hashtab_obstack_allocate): Likewise.
2106 * symmisc.c (print_objfile_statistics): Update format strings.
2107
2108 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2109
2110 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2111 (Changes in GDB 7.8): ... here.
2112
2113 2014-08-04 Tom Tromey <tromey@redhat.com>
2114
2115 * target.c (set_targetdebug): New function.
2116 (initialize_targets): Pass set_targetdebug when creating "set
2117 debug target".
2118
2119 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2120
2121 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2122 if detecting a variable-sized field that is not the last field.
2123 Fix struct type length computation.
2124
2125 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2126
2127 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2128 Add debug trace.
2129
2130 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2131
2132 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2133 Remove "+ 8" offset in computation of CHAIN_VMA.
2134
2135 2014-07-31 Doug Evans <dje@google.com>
2136
2137 * inflow.c (child_terminal_inferior): Add comment.
2138 (child_terminal_ours_for_output): Add comment.
2139 (child_terminal_ours): Add comment.
2140 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2141 (linux_nat_terminal_ours): Add comment.
2142
2143 2014-07-31 Gary Benson <gbenson@redhat.com>
2144
2145 * common/btrace-common.h: Do not include defs.h or server.h.
2146 * nat/mips-linux-watch.h: Likewise.
2147 * gdb-dlfcn.h: Do not include defs.h.
2148 * tracefile.h: Likewise.
2149
2150 2014-07-30 Roland McGrath <mcgrathr@google.com>
2151
2152 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2153
2154 2014-07-30 Tom Tromey <tromey@redhat.com>
2155
2156 * bsd-kvm.c (bsd_kvm_open): Constify.
2157 * corelow.c (core_open): Constify.
2158 * ctf.c (ctf_open): Constify.
2159 * dbug-rom.c (dbug_open): Constify.
2160 * exec.c (exec_open): Constify.
2161 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2162 * microblaze-rom.c (picobug_open): Constify.
2163 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2164 Constify.
2165 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2166 * record-btrace.c (record_btrace_open): Constify.
2167 * record-full.c (record_full_core_open_1, record_full_open_1)
2168 (record_full_open): Constify.
2169 * remote-m32r-sdi.c (m32r_open): Constify.
2170 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2171 (rockhopper_open, lsi_open): Constify.
2172 * remote-sim.c (gdbsim_open): Constify.
2173 * remote.c (remote_open, extended_remote_open, remote_open_1):
2174 Constify.
2175 * target.h (struct target_ops) <to_open>: Make "arg" const.
2176 * tracefile-tfile.c (tfile_open): Constify.
2177
2178 2014-07-30 Tom Tromey <tromey@redhat.com>
2179
2180 * breakpoint.c (map_breakpoint_numbers): Update.
2181 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2182 (get_number_const): New function.
2183 (get_number): Rewrite using get_number_const.
2184 (init_number_or_range): Make "string" const.
2185 (number_is_in_list): Make "list" const.
2186 * cli/cli-utils.h (get_number_const): Declare.
2187 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2188 (init_number_or_range, number_is_in_list): Update.
2189 * printcmd.c (map_display_numbers): Update.
2190 * value.c (value_from_history_ref): Constify.
2191 * value.h (value_from_history_ref): Update.
2192
2193 2014-07-30 Tom Tromey <tromey@redhat.com>
2194
2195 * corefile.c (hook_type, call_extra_exec_file_hooks)
2196 (specify_exec_file_hook): Constify.
2197 * exec.c (exec_file_attach): Make "filename" const.
2198 * gdbcore.h (deprecated_exec_file_display_hook)
2199 (specify_exec_file_hook, exec_file_attach): Constify.
2200 * main.c (captured_main): Use catch_command_errors_const.
2201
2202 2014-07-30 Tom Tromey <tromey@redhat.com>
2203
2204 * target.c (open_target): New function.
2205 (add_target_with_completer, add_deprecated_target_alias): Use
2206 set_cmd_sfunc, set_cmd_context.
2207 (debug_to_open): Remove.
2208 (setup_target_debug): Update.
2209
2210 2014-07-30 Yao Qi <yao@codesourcery.com>
2211
2212 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2213 comments.
2214 * parse.c (exp_iterate): Update comments.
2215
2216 2014-07-30 Gary Benson <gbenson@redhat.com>
2217
2218 * common/common-defs.h: New file.
2219 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2220 * defs.h: Include common-defs.h.
2221 Do not include config.h or build-gnulib/config.h.
2222
2223 2014-07-30 Gary Benson <gbenson@redhat.com>
2224
2225 * common/common-utils.h: Do not include config.h.
2226 * nat/linux-btrace.h: Likewise.
2227
2228 2014-07-30 Gary Benson <gbenson@redhat.com>
2229
2230 * btrace.c: Include defs.h.
2231 * common/ptid.c: Include defs.h or server.h as appropriate.
2232 * nat/mips-linux-watch.c: Likewise.
2233
2234 2014-07-29 Tom Tromey <tromey@redhat.com>
2235
2236 * target.c (target_is_pushed): Simplify.
2237
2238 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2239
2240 GDB 7.8 released.
2241
2242 2014-07-29 Yao Qi <yao@codesourcery.com>
2243
2244 PR gdb/17206
2245 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2246
2247 2014-07-28 Doug Evans <xdje42@gmail.com>
2248
2249 PR guile/17203
2250 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2251 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2252 parameters.
2253
2254 2014-07-28 Will Newton <will.newton@linaro.org>
2255
2256 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2257 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2258 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2259 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2260 (THUMB2_EABI_SYSCALL): Likewise.
2261 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2262 struct tramp_frame.
2263 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2264 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2265
2266 2014-07-27 Doug Evans <xdje42@gmail.com>
2267
2268 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2269
2270 2014-07-27 Doug Evans <xdje42@gmail.com>
2271
2272 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2273
2274 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2275 Doug Evans <xdje42@gmail.com>
2276
2277 PR guile/17146
2278 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2279 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2280 * configure.ac: Try to use guild to compile an scm file, if it fails
2281 then disable guile support.
2282 * configure: Regenerate.
2283 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2284 GUILE_FILE_LIST.
2285 (GUILE_COMPILED_FILES): New variable.
2286 (GUILE_FILES) Update.
2287 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2288 (stamp-guile): Compile scm files.
2289 * guile/guile.c (boot_guile_support): New function.
2290 (standard_throw_args_p): New function.
2291 (print_standard_throw_error, print_throw_error): New functions.
2292 (handle_boot_error): New function.
2293 (initialize_scheme_side): Rewrite to call boot_guile_support.
2294 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2295 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2296
2297 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2298 Doug Evans <xdje42@gmail.com>
2299
2300 PR guile/17146
2301 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2302 * guile/lib/gdb/support.scm: New file.
2303 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2304 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2305 All uses updated.
2306 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2307 All uses updated.
2308 (%assert-type): Ditto, and renamed to assert-type.
2309 (%exception-print-style): Delete.
2310
2311 2014-07-26 Doug Evans <xdje42@gmail.com>
2312
2313 PR build/17105
2314 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2315 * configure: Regenerate.
2316 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2317 PYTHON_FILES.
2318 (PYTHON_FILES): New variable.
2319 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2320 (GUILE_FILES): New variable.
2321 (stamp-python, install-python, uninstall-python): Handle empty
2322 file list.
2323 (stamp-guile, install-guile, uninstall-guile): Ditto.
2324
2325 2014-07-26 Doug Evans <xdje42@gmail.com>
2326
2327 PR guile/17177
2328 * guile/lib/gdb.scm (pretty-printers): Export.
2329 (set-pretty-printers!): Export.
2330 * guile/lib/gdb/printing.scm (gdb module): Update.
2331 (prepend-pretty-printer!, append-pretty-printer!): Update.
2332 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2333 (pretty_printer_list_var): Delete.
2334 (pretty_printer_list): New static global.
2335 (gdbscm_pretty_printers): New function.
2336 (gdbscm_set_pretty_printers_x): New function.
2337 (ppscm_find_pretty_printer_from_gdb): Update.
2338 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2339 (gdbscm_initialize_pretty_printers): Update.
2340
2341 2014-07-26 Doug Evans <xdje42@gmail.com>
2342
2343 PR 17185
2344 * configure.ac: Add check for header gc/gc.h.
2345 Add check for function setenv.
2346 * configure: Regenerate.
2347 * config.in: Regenerate.
2348 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2349
2350 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2351
2352 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2353 variation in gdbarch matching.
2354
2355 2014-07-25 Tom Tromey <tromey@redhat.com>
2356
2357 * exec.c (using_exec_ops): Remove.
2358 (exec_close_1): Update. Remove extraneous block, reindent.
2359 (add_target_sections): Use target_is_pushed.
2360
2361 2014-07-25 Pedro Alves <palves@redhat.com>
2362
2363 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2364 * monitor.c (monitor_create_inferior): Likewise.
2365 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2366 * remote-sim.c (gdbsim_create_inferior): Likewise.
2367 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2368 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2369 * windows-nat.c (do_initial_windows_stuff): Likewise.
2370
2371 2014-07-25 Pedro Alves <palves@redhat.com>
2372
2373 * NEWS: Mention signal passing and "signal" command changes.
2374 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2375 comment.
2376 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2377 call.
2378 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2379 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2380 (jump_command): Adjust clear_proceed_status call.
2381 (signal_command): Warn if other thread that are resumed have
2382 signals that will be delivered. Adjust clear_proceed_status call.
2383 (until_next_command, finish_command)
2384 (proceed_after_attach_callback, attach_command_post_wait)
2385 (attach_command): Adjust clear_proceed_status call.
2386 * infrun.c (proceed_after_vfork_done): Likewise.
2387 (proceed_after_attach_callback): Adjust comment.
2388 (clear_proceed_status_thread): Clear stop_signal if not in pass
2389 state.
2390 (clear_proceed_status_callback): Delete.
2391 (clear_proceed_status): New 'step' parameter. Only clear the
2392 proceed status of threads the command being prepared is about to
2393 resume.
2394 (proceed): If passed in an explicit signal, override stop_signal
2395 with it. Don't pass the last stop signal to the thread we're
2396 resuming.
2397 (init_wait_for_inferior): Adjust clear_proceed_status call.
2398 (switch_back_to_stepped_thread): Clear the signal if it should not
2399 be passed.
2400 * infrun.h (clear_proceed_status): New 'step' parameter.
2401 (user_visible_resume_ptid): Add comment.
2402 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2403 signal is in pass state.
2404 * remote.c (append_pending_thread_resumptions): Likewise.
2405 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2406
2407 2014-07-25 Tom Tromey <tromey@redhat.com>
2408
2409 * target.h (target_stopped_data_address)
2410 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2411 parentheses.
2412
2413 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2414
2415 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2416 comments.
2417 (avr_pointer_to_address): Likewise.
2418
2419 2014-07-24 Tom Tromey <tromey@redhat.com>
2420
2421 * monitor.c (compile_pattern): Update.
2422 * target.h (struct target_ops) <to_shortname, to_longname,
2423 to_doc>: Now const.
2424
2425 2014-07-24 Tom Tromey <tromey@redhat.com>
2426
2427 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2428 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2429 (add_info_alias, add_com): Make "doc" const.
2430 (print_doc_line): Make "str" const.
2431 (delete_cmd): Update.
2432 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2433 (print_doc_line): Update.
2434 * cli/cli-script.c (document_command): Update.
2435 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2436 (add_com, add_info, add_info_alias): Update.
2437 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2438 * python/py-cmd.c (cmdpy_destroyer): Update.
2439
2440 2014-07-24 Tom Tromey <tromey@redhat.com>
2441
2442 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2443 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2444 (help_cmd_list): Constify.
2445 (lookup_cmd): Update.
2446 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2447 const.
2448 (help_cmd_list, apropos_cmd): Update.
2449 * cli/cli-script.c (show_user): Update.
2450 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2451 * cli/cli-setshow.h (cmd_show_list): Update.
2452 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2453 (cmd_show_list): Update.
2454 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2455 * python/py-cmd.c (cmdpy_destroyer): Update.
2456
2457 2014-07-24 Tom Tromey <tromey@redhat.com>
2458
2459 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2460 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2461 const.
2462 * command.h (deprecate_cmd): Update.
2463 * maint.c (maintenance_do_deprecate): Add casts.
2464
2465 2014-07-24 Tom Tromey <tromey@redhat.com>
2466
2467 * cli/cli-decode.c (help_cmd): Make parameter "const".
2468 * cli/cli-decode.h (help_cmd): Update.
2469
2470 2014-07-24 Tom Tromey <tromey@redhat.com>
2471
2472 * stack.c (up_silently_base, down_silently_base): Make argument
2473 const.
2474
2475 2014-07-24 Tom Tromey <tromey@redhat.com>
2476
2477 * solib.c (solib_add): Make "pattern" const.
2478 * solib.h (solib_add): Update.
2479
2480 2014-07-24 Tom Tromey <tromey@redhat.com>
2481
2482 * remote.c (remote_serial_open, print_packet, putpkt)
2483 (putpkt_binary): Constify.
2484 * remote.h (putpkt): Update.
2485
2486 2014-07-24 Tom Tromey <tromey@redhat.com>
2487
2488 * monitor.c (monitor_open): Make "args" const.
2489 * monitor.h (monitor_open): Update.
2490
2491 2014-07-24 Tom Tromey <tromey@redhat.com>
2492
2493 * maint.c (match_bfd_flags): Make "string" const.
2494 (print_bfd_section_info): Remove casts.
2495 (print_objfile_section_info): Make "string" const.
2496
2497 2014-07-24 Tom Tromey <tromey@redhat.com>
2498
2499 * inf-child.c (inf_child_open_target): Make "arg" const.
2500 * inf-child.h (inf_child_open_target): Update.
2501
2502 2014-07-24 Tom Tromey <tromey@redhat.com>
2503
2504 * environ.c (unset_in_environ): Make "var" const.
2505 * environ.h (unset_in_environ): Update.
2506
2507 2014-07-24 Tom Tromey <tromey@redhat.com>
2508
2509 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2510 Make "cmd" const.
2511 (scan_filename_with_cleanup): Likewise.
2512 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2513 Make arguments const.
2514 (restore_command): Update.
2515
2516 2014-07-24 Pedro Alves <palves@redhat.com>
2517
2518 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2519
2520 2014-07-24 Tom Tromey <tromey@redhat.com>
2521 Gary Benson <gbenson@redhat.com>
2522
2523 * nat/linux-ptrace.c (additional_flags): New global.
2524 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2525 additional_flags; don't check GDBSERVER.
2526 (linux_ptrace_set_additional_flags): New function.
2527 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2528 Declare.
2529 * linux-nat.c (_initialize_linux_nat): Call
2530 linux_ptrace_set_additional_flags.
2531
2532 2014-07-24 Tom Tromey <tromey@redhat.com>
2533
2534 * make-target-delegates (munge_type, write_debugmethod): New
2535 functions.
2536 (debug_names): New global.
2537 ($TARGET_DEBUG_PRINTER): New global.
2538 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2539 name.
2540 Write debug methods. Generate init_debug_target.
2541 * target-debug.h: New file.
2542 * target-delegates.c: Rebuild.
2543 * target.c: Include target-debug.h.
2544 (debug_target): Hoist definition.
2545 (target_kill, target_get_section_table, target_memory_map)
2546 (target_flash_erase, target_flash_done, target_detach)
2547 (target_disconnect, target_wait, target_resume)
2548 (target_pass_signals, target_program_signals, target_follow_fork)
2549 (target_mourn_inferior, target_search_memory)
2550 (target_thread_address_space, target_close)
2551 (target_find_new_threads, target_core_of_thread)
2552 (target_verify_memory, target_insert_mask_watchpoint)
2553 (target_remove_mask_watchpoint): Remove targetdebug code.
2554 (debug_to_post_attach, debug_to_prepare_to_store)
2555 (debug_to_files_info, debug_to_insert_breakpoint)
2556 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2557 (debug_to_region_ok_for_hw_watchpoint)
2558 (debug_to_can_accel_watchpoint_condition)
2559 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2560 (debug_to_watchpoint_addr_within_range)
2561 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2562 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2563 (debug_to_terminal_init, debug_to_terminal_inferior)
2564 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2565 (debug_to_terminal_save_ours, debug_to_terminal_info)
2566 (debug_to_load, debug_to_post_startup_inferior)
2567 (debug_to_insert_fork_catchpoint)
2568 (debug_to_remove_fork_catchpoint)
2569 (debug_to_insert_vfork_catchpoint)
2570 (debug_to_remove_vfork_catchpoint)
2571 (debug_to_insert_exec_catchpoint)
2572 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2573 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2574 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2575 (setup_target_debug): Call init_debug_target.
2576 * target.h (TARGET_DEBUG_PRINTER): New macro.
2577 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2578 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2579
2580 2014-07-24 Gary Benson <gbenson@redhat.com>
2581
2582 * exceptions.h (throw_vfatal): Renamed to...
2583 (throw_vquit): New declaration.
2584 (throw_quit): Likewise.
2585 * exceptions.c (throw_vfatal): Renamed to...
2586 (throw_vquit): New function.
2587 (throw_quit): Likewise.
2588 (throw_error): Call throw_verror rather than throw_it.
2589 * utils.h (vfatal): Removed.
2590 (fatal): Likewise.
2591 * utils.c (vfatal): Removed.
2592 (fatal): Likewise.
2593 (internal_verror): Replaced call to fatal with call to throw_quit.
2594 (quit): Replaced calls to fatal with calls to throw_quit.
2595
2596 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2597
2598 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2599 target_read_code.
2600
2601 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2602
2603 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2604 less than zero in conditional expression.
2605
2606 2014-07-23 Tom Tromey <tromey@redhat.com>
2607
2608 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2609 ($INTRO_PART): Don't match whitespace.
2610 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2611 argument matching.
2612 ($METHOD): Add $METHOD_TRAILER.
2613 (trim): Rewrite.
2614 (scan_target_h): New sub.
2615 Change main loop not to collect state.
2616 * target-delegates.c: Rebuild.
2617
2618 2014-07-23 Gary Benson <gbenson@redhat.com>
2619
2620 * cp-support.c (gdb_demangle): Fix build on systems without
2621 sigaltstack.
2622
2623 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2624
2625 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2626 for reference entry value target data value.
2627
2628 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2629
2630 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2631 value_available_contents_eq.
2632
2633 2014-07-22 Pedro Alves <palves@redhat.com>
2634
2635 * value.c (allocate_optimized_out_value): Don't mark value as
2636 non-lazy.
2637
2638 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2639
2640 * MAINTAINERS (Write After Approval): Update my email address.
2641
2642 2014-07-20 Doug Evans <dje@google.com>
2643
2644 PR server/17147
2645 * remote.c (putpkt_binary): Add text to error message.
2646
2647 2014-07-20 Yao Qi <yao@codesourcery.com>
2648
2649 * eval.c: Remove "Chill" from comments.
2650 * gdbtypes.h: Likewise.
2651 * symtab.h: Likewise.
2652
2653 2014-07-20 Yao Qi <yao@codesourcery.com>
2654
2655 * std-operator.def: Update comments to TERNOP_SLICE.
2656
2657 2014-07-20 Yao Qi <yao@codesourcery.com>
2658
2659 * std-operator.def: Remove BINOP_RANGE.
2660 * breakpoint.c (watchpoint_exp_is_const): Update.
2661 * expprint.c (dump_subexp_body_standard): Likewise.
2662 * eval.c (init_array_element): Remove dead code.
2663 (evaluate_subexp_standard): Likewise.
2664
2665 2014-07-20 Yao Qi <yao@codesourcery.com>
2666
2667 * std-operator.def: Remove BINOP_IN.
2668 * breakpoint.c (watchpoint_exp_is_const): Update.
2669 * eval.c (evaluate_subexp_standard): Likewise.
2670 * expprint.c (dump_subexp_body_standard): Likewise.
2671
2672 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2673
2674 * microblaze-tdep.c (microblaze_register_names): Add
2675 the rshr and rslr register names.
2676 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2677 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2678 Use of tdesc_numbered_register. Use of
2679 microblaze_register_g_packet_guesses. Use of
2680 tdesc_use_registers. Use of set_gdbarch_register_type.
2681 (microblaze_register_g_packet_guesses): New.
2682 * microblaze-tdep.h (microblaze_reg_num): Add
2683 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2684 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2685 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2686 * features/microblaze-core.xml: New file.
2687 * features/microblaze-stack-protect.xml: New file.
2688 * features/microblaze-with-stack-protect.c: New file.
2689 * features/microblaze-with-stack-protect.xml: New file.
2690 * features/microblaze.xml: New file.
2691 * features/microblaze.c: New file.
2692 * features/Makefile (microblaze-with-stack-protect): Add
2693 microblaze-with-stack-protect microblaze and microblaze-expedite.
2694 * regformats/microblaze-with-stack-protect.dat: New file.
2695 * regformats/microblaze.dat: New file.
2696 * doc/gdb.texinfo (MicroBlaze Features): Added.
2697
2698 2014-07-18 Tom Tromey <tromey@redhat.com>
2699
2700 * exec.c (exec_ops): Now static.
2701 * exec.h (exec_ops): Don't declare.
2702
2703 2014-07-18 Tom Tromey <tromey@redhat.com>
2704
2705 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2706 to find_target_beneath.
2707 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2708 find_target_beneath.
2709 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2710
2711 2014-07-18 Tom Tromey <tromey@redhat.com>
2712
2713 PR gdb/17130:
2714 * utils.c (quit): Use target_supports_terminal_ours.
2715 * target.h (target_supports_terminal_ours): Declare.
2716 * target.c (target_supports_delete_record): Don't check
2717 to_delete_record against NULL.
2718 (target_supports_terminal_ours): New function.
2719
2720 2014-07-18 Tom Tromey <tromey@redhat.com>
2721
2722 PR gdb/17130:
2723 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2724 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2725 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2726 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2727 * windows-nat.c (windows_xfer_partial): Always delegate.
2728 * record-btrace.c (record_btrace_xfer_partial): Simplify
2729 delegation.
2730 (record_btrace_fetch_registers, record_btrace_store_registers)
2731 (record_btrace_prepare_to_store, record_btrace_resume)
2732 (record_btrace_wait, record_btrace_find_new_threads)
2733 (record_btrace_thread_alive): Likewise.
2734 * procfs.c (procfs_xfer_partial): Always delegate.
2735 * corelow.c (core_xfer_partial): Always delegate.
2736 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2737
2738 2014-07-18 Tom Tromey <tromey@redhat.com>
2739
2740 * exec.c (exec_make_note_section): Move earlier.
2741
2742 2014-07-17 Doug Evans <dje@google.com>
2743
2744 PR gdb/17170
2745 * maint.c (count_symtabs_and_blocks): Handle NULL
2746 current_program_space.
2747 (report_command_stats): Check global enabled flag in addition to
2748 recorded enabled flag.
2749 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2750
2751 2014-07-16 Pedro Alves <palves@redhat.com>
2752
2753 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2754
2755 2014-07-16 Tom Tromey <tromey@redhat.com>
2756
2757 * target.h (struct target_ops) <to_delete_record>: Reformat
2758 comment.
2759
2760 2014-07-16 Tom Tromey <tromey@redhat.com>
2761
2762 * target-delegates.c: Rebuild.
2763
2764 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2765
2766 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2767 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2768 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2769 (avr_pointer_to_address): Likewise.
2770 (avr_address_class_type_flags): New function.
2771 (avr_address_class_type_flags_to_name): Likewise.
2772 (avr_address_class_name_to_type_flags): Likewise.
2773 (avr_gdbarch_init): Set address_class_type_flags,
2774 address_class_type_flags_to_name and
2775 address_class_name_to_type_flags.
2776
2777 2014-07-15 Pedro Alves <palves@redhat.com>
2778
2779 * linux-nat.c (kill_callback): Save errno and work with saved
2780 copy.
2781
2782 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2783
2784 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2785
2786 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2787
2788 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2789 breakpoint support correctly.
2790
2791 2014-07-14 Pedro Alves <palves@redhat.com>
2792
2793 * utils.c (prompt_for_continue): Call target_terminal_ours.
2794
2795 2014-07-14 Pedro Alves <palves@redhat.com>
2796
2797 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2798 catch_errors. Don't re-enable stdin or notify observers where,
2799 and rethrow error.
2800 (fetch_inferior_event_wrapper): Delete.
2801
2802 2014-07-14 Pedro Alves <palves@redhat.com>
2803
2804 PR gdb/17072
2805 * top.c: Include "inf-loop.h".
2806 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2807 field.
2808 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2809 was async before.
2810 (gdb_readline_wrapper): Store whether the target is async, and
2811 make it sync.
2812
2813 2014-07-14 Pedro Alves <palves@redhat.com>
2814
2815 PR gdb/17072
2816 * top.c (gdb_readline_wrapper_line): Tweak comment.
2817 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2818 the input handler callback.
2819
2820 2014-07-14 Pedro Alves <palves@redhat.com>
2821
2822 PR gdb/17072
2823 * main.c: Include event-top.h.
2824 (handle_command_errors): New function.
2825 (catch_command_errors, catch_command_errors_const): Use it.
2826
2827 2014-07-14 Pedro Alves <palves@redhat.com>
2828
2829 * exceptions.c (catch_command_errors, catch_command_errors_const):
2830 Moved to main.c.
2831 * exceptions.h (catch_command_errors_ftype)
2832 (catch_command_errors_const_ftype): Moved to main.c.
2833 (catch_command_errors, catch_command_errors_const): Delete
2834 declarations.
2835 * main.c (catch_command_errors_ftype)
2836 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2837 (catch_command_errors, catch_command_errors_const)): Moved here
2838 from exceptions.c and make static.
2839
2840 2014-07-14 Pedro Alves <palves@redhat.com>
2841
2842 * exceptions.c (print_any_exception): Delete.
2843 (catch_exceptions_with_msg): Use exception_print instead of
2844 print_any_exception.
2845 (catch_errors): Use exception_fprintf instead of
2846 print_any_exception.
2847 (catch_command_errors, catch_command_errors_const): Use
2848 exception_print instead of print_any_exception.
2849
2850 2014-07-14 Pedro Alves <palves@redhat.com>
2851
2852 * infcall.c (run_inferior_call): Set 'sync_execution' while
2853 running the inferior call.
2854
2855 2014-07-14 Pedro Alves <palves@redhat.com>
2856
2857 * value.c (value_contents_equal): Delete function.
2858 * value.h (value_contents_equal): Delete declaration.
2859
2860 2014-07-14 Tom Tromey <tromey@redhat.com>
2861
2862 PR exp/17106:
2863 * gdbtypes.c (is_dynamic_type_internal): New function, from
2864 is_dynamic_type.
2865 (is_dynamic_type): Rewrite.
2866 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2867 (resolve_dynamic_struct): Likewise.
2868 (resolve_dynamic_type_internal): New function, from
2869 resolve_dynamic_type.
2870 (resolve_dynamic_type): Rewrite.
2871
2872 2014-07-14 Tom Tromey <tromey@redhat.com>
2873
2874 * target.c (target_require_runnable): Also check record_stratum.
2875 Update comment.
2876
2877 2014-07-11 Yao Qi <yao@codesourcery.com>
2878
2879 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2880 thumb_instruction_restores_sp return true.
2881
2882 2014-07-11 Yao Qi <yao@codesourcery.com>
2883
2884 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2885 (thumb_in_function_epilogue_p): Call
2886 thumb_instruction_restores_sp.
2887
2888 2014-07-11 Yao Qi <yao@codesourcery.com>
2889
2890 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2891 'add sp, #imm'.
2892 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2893
2894 2014-07-11 Gary Benson <gbenson@redhat.com>
2895
2896 * amd64-linux-nat.c (gdbcore.h): Remove include.
2897 (regset.h): Likewise.
2898 (nat/linux-btrace.h): Likewise.
2899 (btrace.h): Likewise.
2900 (gdb_assert.h): Likewise.
2901 (string.h): Likewise.
2902 (sys/uio.h): Likewise.
2903 (sys/debugreg.h): Likewise.
2904 (sys/syscall.h): Likewise.
2905 (sys/procfs.h): Likewise.
2906 (sys/user.h): Likewise.
2907 (asm/ptrace.h): Likewise.
2908 (i386-nat.h): Likewise.
2909 * i386-linux-nat.c (i386-nat.h): Likewise.
2910 (regset.h): Likewise.
2911 (target.h): Likewise.
2912 (linux-nat.h): Likewise.
2913 (nat/linux-btrace.h): Likewise.
2914 (btrace.h): Likewise.
2915 (gdb_assert.h): Likewise.
2916 (string.h): Likewise.
2917 (sys/uio.h): Likewise.
2918 (sys/user.h): Likewise.
2919 (sys/procfs.h): Likewise.
2920 (sys/reg.h): Likewise.
2921 (sys/debugreg.h): Likewise.
2922 (ORIG_EAX): Remove definition.
2923
2924 2014-07-11 Gary Benson <gbenson@redhat.com>
2925
2926 * i386-linux-nat.h: New file.
2927 * x86-linux-nat.h: Likewise.
2928 * x86-linux-nat.c: Likewise.
2929 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2930 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2931 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2932 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2933 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2934 (PTRACE_SETREGSET): Likewise.
2935 (arch_lwp_info): Now in x86-linux-nat.c.
2936 (have_ptrace_getregset): Now in x86-linux-nat.h.
2937 (x86_linux_dr_get): Now in x86-linux-nat.c.
2938 (x86_linux_dr_set): Likewise.
2939 (x86_linux_dr_get_addr): Likewise.
2940 (x86_linux_dr_get_control): Likewise.
2941 (x86_linux_dr_get_status): Likewise.
2942 (update_debug_registers_callback): Likewise.
2943 (x86_linux_dr_set_control): Likewise.
2944 (x86_linux_dr_set_addr): Likewise.
2945 (x86_linux_prepare_to_resume): Likewise.
2946 (x86_linux_new_thread): Likewise.
2947 (x86_linux_new_fork): Likewise.
2948 (x86_linux_get_thread_area): Likewise.
2949 (super_post_startup_inferior): Likewise.
2950 (x86_linux_child_post_startup_inferior): Likewise.
2951 (AMD64_LINUX_USER64_CS): Likewise.
2952 (AMD64_LINUX_X32_DS): Likewise.
2953 (x86_linux_read_description): Likewise.
2954 (x86_linux_enable_btrace): Likewise.
2955 (x86_linux_disable_btrace): Likewise.
2956 (x86_linux_teardown_btrace): Likewise.
2957 (x86_linux_read_btrace): Likewise.
2958 (x86_linux_create_target): Likewise.
2959 (x86_linux_add_target): Likewise.
2960 * i386-linux-nat.c (x86-linux-nat.h): New include.
2961 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2962 (PTRACE_SETREGSET): Likewise.
2963 (arch_lwp_info): Now in x86-linux-nat.c.
2964 (have_ptrace_getregset): Now in x86-linux-nat.h.
2965 (x86_linux_dr_get): Now in x86-linux-nat.c.
2966 (x86_linux_dr_set): Likewise.
2967 (x86_linux_dr_get_addr): Likewise.
2968 (x86_linux_dr_get_control): Likewise.
2969 (x86_linux_dr_get_status): Likewise.
2970 (update_debug_registers_callback): Likewise.
2971 (x86_linux_dr_set_control): Likewise.
2972 (x86_linux_dr_set_addr): Likewise.
2973 (x86_linux_prepare_to_resume): Likewise.
2974 (x86_linux_new_thread): Likewise.
2975 (x86_linux_new_fork): Likewise.
2976 (x86_linux_get_thread_area): Likewise.
2977 (super_post_startup_inferior): Likewise.
2978 (x86_linux_child_post_startup_inferior): Likewise.
2979 (AMD64_LINUX_USER64_CS): Likewise.
2980 (AMD64_LINUX_X32_DS): Likewise.
2981 (x86_linux_read_description): Likewise.
2982 (x86_linux_enable_btrace): Likewise.
2983 (x86_linux_disable_btrace): Likewise.
2984 (x86_linux_teardown_btrace): Likewise.
2985 (x86_linux_read_btrace): Likewise.
2986 (x86_linux_create_target): Likewise.
2987 (x86_linux_add_target): Likewise.
2988
2989 2014-07-11 Gary Benson <gbenson@redhat.com>
2990
2991 * amd64-linux-nat.c: Comment and whitespace changes.
2992 * i386-linux-nat.c: Comment and whitespace changes.
2993
2994 2014-07-11 Gary Benson <gbenson@redhat.com>
2995
2996 * amd64-linux-nat.c (x86_linux_create_target): New function.
2997 (x86_linux_add_target): Likewise.
2998 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2999 * i386-linux-nat.c (x86_linux_create_target): New function.
3000 (x86_linux_add_target): Likewise.
3001 (_initialize_i386_linux_nat): Delegate to the above new functions.
3002
3003 2014-07-11 Gary Benson <gbenson@redhat.com>
3004
3005 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3006 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3007 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3008 (ps_get_thread_area): Delegate to the above.
3009
3010 2014-07-11 Gary Benson <gbenson@redhat.com>
3011
3012 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3013 x86_linux_read_description. All uses updated. amd64-specific
3014 code conditionalized. Conditionalized i386-specific code added.
3015 Redundant cast removed.
3016 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3017 x86_linux_read_description. All uses updated. i386-specific
3018 code conditionalized. Conditionalized amd64-specific code added.
3019 One sizeof replaced with the actual type it is describing.
3020
3021 2014-07-11 Gary Benson <gbenson@redhat.com>
3022
3023 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3024 x86_linux_dr_get. All uses updated.
3025 (amd64_linux_dr_set): Renamed to
3026 x86_linux_dr_set. All uses updated.
3027 (amd64_linux_dr_get_addr): Renamed to
3028 x86_linux_dr_get_addr. All uses updated.
3029 (amd64_linux_dr_get_control): Renamed to
3030 x86_linux_dr_get_control. All uses updated.
3031 (amd64_linux_dr_get_status): Renamed to
3032 x86_linux_dr_get_status. All uses updated.
3033 (amd64_linux_dr_set_control): Renamed to
3034 x86_linux_dr_set_control. All uses updated.
3035 (amd64_linux_dr_set_addr): Renamed to
3036 x86_linux_dr_set_addr. All uses updated.
3037 (amd64_linux_prepare_to_resume): Renamed to
3038 x86_linux_prepare_to_resume. All uses updated.
3039 (amd64_linux_new_thread): Renamed to
3040 x86_linux_new_thread. All uses updated.
3041 (amd64_linux_new_fork): Renamed to
3042 x86_linux_new_fork. All uses updated.
3043 (amd64_linux_child_post_startup_inferior): Renamed to
3044 x86_linux_child_post_startup_inferior. All uses updated.
3045 (amd64_linux_enable_btrace): Renamed to
3046 x86_linux_enable_btrace. All uses updated.
3047 (amd64_linux_disable_btrace): Renamed to
3048 x86_linux_disable_btrace. All uses updated.
3049 (amd64_linux_teardown_btrace): Renamed to
3050 x86_linux_teardown_btrace. All uses updated.
3051 (amd64_linux_read_btrace): Renamed to
3052 x86_linux_read_btrace. All uses updated.
3053 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3054 x86_linux_dr_get. All uses updated.
3055 (i386_linux_dr_set): Renamed to
3056 x86_linux_dr_set. All uses updated.
3057 (i386_linux_dr_get_addr): Renamed to
3058 x86_linux_dr_get_addr. All uses updated.
3059 (i386_linux_dr_get_control): Renamed to
3060 x86_linux_dr_get_control. All uses updated.
3061 (i386_linux_dr_get_status): Renamed to
3062 x86_linux_dr_get_status. All uses updated.
3063 (i386_linux_dr_set_control): Renamed to
3064 x86_linux_dr_set_control. All uses updated.
3065 (i386_linux_dr_set_addr): Renamed to
3066 x86_linux_dr_set_addr. All uses updated.
3067 (i386_linux_prepare_to_resume): Renamed to
3068 x86_linux_prepare_to_resume. All uses updated.
3069 (i386_linux_new_thread): Renamed to
3070 x86_linux_new_thread. All uses updated.
3071 (i386_linux_new_fork): Renamed to
3072 x86_linux_new_fork. All uses updated.
3073 (i386_linux_child_post_startup_inferior): Renamed to
3074 x86_linux_child_post_startup_inferior. All uses updated.
3075 (i386_linux_enable_btrace): Renamed to
3076 x86_linux_enable_btrace. All uses updated.
3077 (i386_linux_disable_btrace): Renamed to
3078 x86_linux_disable_btrace. All uses updated.
3079 (i386_linux_teardown_btrace): Renamed to
3080 x86_linux_teardown_btrace. All uses updated.
3081 (i386_linux_read_btrace): Renamed to
3082 x86_linux_read_btrace. All uses updated.
3083
3084 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3085
3086 * remote.c (extended_remote_post_attach): New function.
3087 (init_extended_remote_ops): Install it as to_post_attach method.
3088
3089 2014-07-09 Pedro Alves <palves@redhat.com>
3090
3091 * infcmd.c (attach_command_post_wait): Don't call
3092 target_terminal_inferior here.
3093 (attach_command): Call it here instead.
3094
3095 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3096
3097 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3098 field.
3099 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3100 from varobj.c, with additional checks.
3101 (c_varobj_ops): Fill in is_path_expr_parent field.
3102 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3103 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3104 field.
3105 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3106 ops method.
3107 (varobj_default_is_path_expr_parent): New function.
3108 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3109 (varobj_default_is_path_expr_parent): Declare new function.
3110
3111 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3112
3113 * infcmd.c (finish_backward): Turn internal error into normal error.
3114
3115 2014-07-07 Pedro Alves <palves@redhat.com>
3116
3117 PR gdb/17096
3118 * remote.c (async_handle_remote_sigint)
3119 (async_handle_remote_sigint_twice): Call
3120 gdb_call_async_signal_handler instead of
3121 mark_async_signal_handler.
3122
3123 2014-07-07 Tom Tromey <tromey@redhat.com>
3124
3125 * target-delegates.c: Rebuild.
3126 * target.c (target_info_record): Remove.
3127 * record.c (info_record_command): Unconditionally call
3128 to_info_record.
3129 * target.h (struct target_ops) <to_info_record>: Use
3130 TARGET_DEFAULT_IGNORE.
3131 (target_info_record): Remove.
3132
3133 2014-07-07 Tom Tromey <tromey@redhat.com>
3134
3135 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3136 TARGET_DEFAULT_NORETURN.
3137 * target.c (generic_tls_error): New function.
3138 (target_translate_tls_address): Don't search target stack.
3139 * target-delegates.c: Rebuild.
3140 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3141 stack.
3142 * linux-thread-db.c (thread_db_get_thread_local_address):
3143 Unconditionally call beneath target.
3144
3145 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3146
3147 * cli/cli-logging.c (pop_output_files): Assign targerr to
3148 gdb_stdtargerr.
3149
3150 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3151
3152 * MAINTAINERS (Write After Approval): Update my email address.
3153
3154 2014-07-02 Gary Benson <gbenson@redhat.com>
3155
3156 * proc-service.c (ps_xfer_memory): Update comment.
3157 (ps_pstop): Remove unused function.
3158 (ps_pcontinue): Likewise.
3159 (ps_lstop): Likewise.
3160 (ps_lcontinue): Likewise.
3161 (ps_lgetxregsize): Likewise.
3162 (ps_lgetxregs): Likewise.
3163 (ps_lsetxregs): Likewise.
3164 (ps_plog): Likewise.
3165 (ps_ptread): Likewise.
3166 (ps_ptwrite): Likewise.
3167
3168 2014-07-01 Mark Wielaard <mjw@redhat.com>
3169
3170 * dwarf2read.c (add_array_cv_type): New function.
3171 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3172 (read_tag_volatile_type): Likewise.
3173
3174 2014-07-01 Tom Tromey <tromey@redhat.com>
3175
3176 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3177 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3178 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3179 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3180 * command.h (cmd_cfunc_ftype): Move earlier.
3181 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3182 (add_com, add_info): Use cmd_cfunc_ftype.
3183
3184 2014-06-30 Tom Tromey <tromey@redhat.com>
3185
3186 * symtab.c (operator_chars): Make parameters and return type
3187 const.
3188 (file_matches): Make "files" const.
3189 (struct search_symbols_data) <files>: Now const.
3190 (search_symbols): Make "regexp" and "files" parameters const.
3191 Update.
3192 (symtab_symbol_info): Remove cast.
3193 (rbreak_command): Update.
3194 * symtab.h (search_symbols): Update.
3195
3196 2014-06-27 Yao Qi <yao@codesourcery.com>
3197
3198 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3199 Change parameter type to 'struct thread_info *'. Caller
3200 updated.
3201 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3202 Update declaration.
3203 * dummy-frame.c (struct dummy_frame_id): New.
3204 (dummy_frame_id_eq): New function.
3205 (struct dummy_frame) <id>: Change its type to 'struct
3206 dummy_frame_id'.
3207 (dummy_frame_push): Add parameter ptid and save it in
3208 dummy_frame_id.
3209 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3210 inferior_ptid.
3211 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3212 to inferior_ptid.
3213 (lookup_dummy_frame): Change parameter type to 'struct
3214 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3215 instead of frame_id_eq.
3216 (dummy_frame_pop): Add parameter ptid. Callers updated.
3217 Update comments. Compose dummy_frame_id and pass it to
3218 lookup_dummy_frame.
3219 (dummy_frame_discard): Add parameter ptid.
3220 (dummy_frame_sniffer): Compose dummy_frame_id and call
3221 dummy_frame_id_eq instead of frame_id_eq.
3222 (fprint_dummy_frames): Print ptid.
3223 * dummy-frame.h: Remove comments.
3224 (dummy_frame_push): Add ptid in declaration.
3225 (dummy_frame_pop, dummy_frame_discard): Likewise.
3226
3227 2014-06-26 Tom Tromey <tromey@redhat.com>
3228
3229 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3230 * command.h (error_no_arg): Update.
3231
3232 2014-06-26 Tom Tromey <tromey@redhat.com>
3233
3234 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3235 (do_show_command): Make "arg" const.
3236 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3237
3238 2014-06-26 Tom Tromey <tromey@redhat.com>
3239
3240 * record-full.c (record_full_get_bookmark): Make "args" const.
3241 (record_full_goto_bookmark): Make "raw_bookmark" const.
3242 * record.c (record_goto): New function.
3243 (cmd_record_goto): Use it. Now static.
3244 * record.h (record_goto): Declare.
3245 (cmd_record_goto): Remove declaration.
3246 * target-delegates.c: Rebuild.
3247 * target.h (struct target_ops) <to_get_bookmark,
3248 to_goto_bookmark>: Make parameter const.
3249
3250 2014-06-26 Tom Tromey <tromey@redhat.com>
3251
3252 * defs.h (generic_load): Update.
3253 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3254 * monitor.c (monitor_load): Make "args" const.
3255 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3256 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3257 const.
3258 (mips_load): Make "file" const.
3259 * remote-sim.c (gdbsim_load): Make "args" const.
3260 * remote.c (remote_load): Make "name" const.
3261 * symfile.c (generic_load): Make "args" const.
3262 * target-delegates.c: Rebuild.
3263 * target.c (target_load): Make "arg" const.
3264 (debug_to_load): Make "args" const.
3265 * target.h (struct target_ops) <to_load>: Make parameter const.
3266 (target_load): Update.
3267
3268 2014-06-26 Tom Tromey <tromey@redhat.com>
3269
3270 PR symtab/16902:
3271 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3272 (dwarf2_physname, read_partial_die)
3273 (guess_partial_die_structure_name, fixup_partial_die)
3274 (guess_full_die_structure_name, anonymous_struct_prefix)
3275 (dwarf2_name): Use per-BFD obstack.
3276
3277 2014-06-26 Yao Qi <yao@codesourcery.com>
3278
3279 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3280 dummyframe and this_id into inner block below.
3281
3282 2014-06-26 Yao Qi <yao@codesourcery.com>
3283
3284 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3285 with "signal_pass[0]" in the initialization of signal_pass.
3286
3287 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3288
3289 * record-btrace.c (record_btrace_generating_corefile)
3290 (record_btrace_prepare_to_generate_core)
3291 (record_btrace_done_generating_core): New.
3292 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3293 (record_btrace_store_registers, record_btrace_prepare_to_store):
3294 Forward request when generating a core file.
3295 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3296 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3297 to_done_generating_core.
3298
3299 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3300
3301 * target.h (target_ops) <to_prepare_to_generate_core>
3302 <to_done_generating_core>: New.
3303 (target_prepare_to_generate_core, target_done_generating_core): New.
3304 * target.c (target_prepare_to_generate_core)
3305 (target_done_generating_core): New.
3306 * target-delegates.c: Regenerate.
3307 * gcore.c: (write_gcore_file): Rename to ...
3308 (write_gcore_file_1): ...this.
3309 (write_gcore_file): Call target_prepare_to_generate_core
3310 and target_done_generating_core.
3311
3312 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3313
3314 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3315 * gcore.c (write_gcore_file): Free memory returned from
3316 make_corefile_notes.
3317 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3318 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3319
3320 2014-06-24 Yao Qi <yao@codesourcery.com>
3321
3322 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3323 (arm_linux_init_abi): Set skip_trampoline_code with
3324 gdbarch_skip_trampoline_code instead of
3325 find_solib_trampoline_target.
3326
3327 2014-06-24 Yao Qi <yao@codesourcery.com>
3328
3329 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3330 arm_skip_bx_reg returns non-zero.
3331
3332 2014-06-24 Yao Qi <yao@codesourcery.com>
3333
3334 * arm-tdep.c (arm_skip_bx_reg): New function.
3335 (arm_skip_stub): Call arm_skip_bx_reg.
3336
3337 2014-06-23 Don Breazeal <donb@codesourcery.com>
3338
3339 * MAINTAINERS: Add myself as write-after-approval maintainer.
3340
3341 2014-06-23 Pedro Alves <palves@redhat.com>
3342
3343 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3344 DR_CONTROL before setting DR0..DR3.
3345 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3346 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3347 bits of DR_CONTROL related to the debug register slot being
3348 disabled. If all slots are vacant, clear local slowdown as well,
3349 and assert DR_CONTROL is 0.
3350
3351 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3352
3353 * python/lib/gdb/command/xmethods.py
3354 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3355 current progspace only if the string "progspace" matches LOCUS_RE.
3356
3357 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3358
3359 Fix --with-system-readline with readline-6.3 patch 5.
3360 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3361 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3362 types.
3363
3364 2014-06-20 Tom Tromey <tromey@redhat.com>
3365
3366 * dwarf2read.c (dw2_get_real_path): Use correct type in
3367 OBSTACK_CALLOC.
3368 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3369
3370 2014-06-20 Gary Benson <gbenson@redhat.com>
3371
3372 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3373 * common/glibc_thread_db.h: Likewise.
3374 * common/i386-cpuid.h: Likewise.
3375 * common/i386-gcc-cpuid.h: Likewise.
3376 * common/linux-btrace.h: Likewise.
3377 * common/linux-osdata.h: Likewise.
3378 * common/linux-procfs.h: Likewise.
3379 * common/linux-ptrace.h: Likewise.
3380 * common/mips-linux-watch.h: Likewise.
3381 * common/linux-btrace.c: Moved to nat.
3382 * common/linux-osdata.c: Likewise.
3383 * common/linux-procfs.c: Likewise.
3384 * common/linux-ptrace.c: Likewise.
3385 * common/mips-linux-watch.c: Likewise.
3386 * nat/gdb_thread_db.h: Moved from common.
3387 * nat/glibc_thread_db.h: Likewise.
3388 * nat/i386-cpuid.h: Likewise.
3389 * nat/i386-gcc-cpuid.h: Likewise.
3390 * nat/linux-btrace.c: Likewise.
3391 * nat/linux-btrace.h: Likewise.
3392 * nat/linux-osdata.c: Likewise.
3393 * nat/linux-osdata.h: Likewise.
3394 * nat/linux-procfs.c: Likewise.
3395 * nat/linux-procfs.h: Likewise.
3396 * nat/linux-ptrace.c: Likewise.
3397 * nat/linux-ptrace.h: Likewise.
3398 * nat/mips-linux-watch.c: Likewise.
3399 * nat/mips-linux-watch.h: Likewise.
3400 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3401 (object file files): Reordered.
3402 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3403 of glibc_thread_db.h.
3404
3405 2014-06-20 Gary Benson <gbenson@redhat.com>
3406
3407 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3408 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3409 (i386_dr_low): Likewise.
3410 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3411 (i386_dr_low_set_addr): Likewise.
3412 (i386_dr_low_get_addr): Likewise.
3413 (i386_dr_low_can_set_control): Likewise.
3414 (i386_dr_low_set_control): Likewise.
3415 (i386_dr_low_get_control): Likewise.
3416 (i386_dr_low_get_status): Likewise.
3417 (i386_get_debug_register_length): Likewise.
3418 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3419 (i386_dr_low): Likewise.
3420 * nat/i386-dregs.c (i386-low.h): Remove include.
3421 (i386-nat.h): Likewise.
3422 (nat/i386-dregs.h): New include.
3423 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3424 (i386_dr_low_set_addr): Likewise.
3425 (i386_dr_low_get_addr): Likewise.
3426 (i386_dr_low_can_set_control): Likewise.
3427 (i386_dr_low_set_control): Likewise.
3428 (i386_dr_low_get_control): Likewise.
3429 (i386_dr_low_get_status): Likewise.
3430 (i386_get_debug_register_length): Likewise.
3431 (debug_hw_points): Likewise.
3432
3433 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3434
3435 * Makefile.in (SFILES): Add d-exp.y.
3436 (YYFILES): Add d-exp.c.
3437 (YYOBJ): Add d-exp.o.
3438 (local-maintainer-clean): Delete d-exp.c.
3439 * d-exp.y: New file.
3440 * d-lang.h (d_parse): New declaration.
3441 (d_error): New declaration.
3442 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3443 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3444 PREC_ORDER operators.
3445 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3446
3447 2014-06-19 Yao Qi <yao@codesourcery.com>
3448
3449 * gdbthread.h (any_running): Remove the declaration.
3450 * thread.c (any_running): Remove.
3451
3452 2014-06-19 Yao Qi <yao@codesourcery.com>
3453
3454 * gdbthread.h (struct thread_info) <state>: Change its type to
3455 'enum thread_state'. Update comments.
3456
3457 2014-06-19 Pedro Alves <palves@redhat.com>
3458
3459 * gdbthread.h (ALL_THREADS): Delete.
3460 (ALL_NON_EXITED_THREADS): New macro.
3461 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3462 instead of ALL_THREADS.
3463 * infrun.c (find_thread_needs_step_over)
3464 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3465 instead of ALL_THREADS.
3466 * record-btrace.c (record_btrace_open)
3467 (record_btrace_stop_recording, record_btrace_close)
3468 (record_btrace_is_replaying, record_btrace_resume)
3469 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3470 * remote.c (append_pending_thread_resumptions): Likewise.
3471 * thread.c (thread_apply_all_command): Likewise.
3472
3473 2014-06-19 Gary Benson <gbenson@redhat.com>
3474
3475 * i386-nat.c (i386_stopped_by_watchpoint):
3476 Use i386_dr_stopped_by_watchpoint.
3477 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3478 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3479
3480 2014-06-19 Gary Benson <gbenson@redhat.com>
3481
3482 * nat/i386-dregs.c: New file.
3483 * Makefile.in (i386-dregs.o): New rule.
3484 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3485 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3486 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3487 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3488 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3489 * config/i386/go32.mh (NATDEPFILES): Likewise.
3490 * config/i386/linux.mh (NATDEPFILES): Likewise.
3491 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3492 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3493 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3494 * i386-nat.h (debug_hw_points): New declaration.
3495 * i386-nat.c (breakpoint.h): Remove include.
3496 (command.h): Likewise.
3497 (target.h): Likewise.
3498 (gdb_assert.h): Likewise.
3499 (debug_hw_points): Made nonstatic.
3500 (debug_printf): Now in i386-dregs.c.
3501 (TARGET_HAS_DR_LEN_8): Likewise.
3502 (DR_CONTROL_SHIFT): Likewise.
3503 (DR_CONTROL_SIZE): Likewise.
3504 (DR_RW_EXECUTE): Likewise.
3505 (DR_RW_WRITE): Likewise.
3506 (DR_RW_READ): Likewise.
3507 (DR_RW_IORW): Likewise.
3508 (DR_LEN_1): Likewise.
3509 (DR_LEN_2): Likewise.
3510 (DR_LEN_4): Likewise.
3511 (DR_LEN_8): Likewise.
3512 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3513 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3514 (DR_ENABLE_SIZE): Likewise.
3515 (DR_LOCAL_SLOWDOWN): Likewise.
3516 (DR_GLOBAL_SLOWDOWN): Likewise.
3517 (DR_CONTROL_RESERVED): Likewise.
3518 (I386_DR_CONTROL_MASK): Likewise.
3519 (I386_DR_VACANT): Likewise.
3520 (I386_DR_LOCAL_ENABLE): Likewise.
3521 (I386_DR_GLOBAL_ENABLE): Likewise.
3522 (I386_DR_DISABLE): Likewise.
3523 (I386_DR_SET_RW_LEN): Likewise.
3524 (I386_DR_GET_RW_LEN): Likewise.
3525 (I386_DR_WATCH_HIT): Likewise.
3526 (i386_wp_op_t): Likewise.
3527 (i386_show_dr): Likewise.
3528 (i386_length_and_rw_bits): Likewise.
3529 (i386_insert_aligned_watchpoint): Likewise.
3530 (i386_remove_aligned_watchpoint): Likewise.
3531 (i386_handle_nonaligned_watchpoint): Likewise.
3532 (i386_update_inferior_debug_regs): Likewise.
3533 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3534 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3535 (i386_region_ok_for_watchpoint):
3536 Use i386_dr_region_ok_for_watchpoint.
3537 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3538
3539 2014-06-19 Gary Benson <gbenson@redhat.com>
3540
3541 * i386-nat.c (i386_insert_hw_breakpoint): Use
3542 i386_insert_watchpoint.
3543 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3544
3545 2014-06-19 Gary Benson <gbenson@redhat.com>
3546
3547 * i386-nat.c (i386_dr_show): Renamed to
3548 i386_show_dr and made static. All uses updated.
3549 (i386_dr_length_and_rw_bits): Renamed to
3550 i386_length_and_rw_bits and made static.
3551 All uses updated.
3552 (i386_dr_insert_aligned_watchpoint): Renamed to
3553 i386_insert_aligned_watchpoint and made static.
3554 All uses updated.
3555 (i386_dr_remove_aligned_watchpoint): Renamed to
3556 i386_remove_aligned_watchpoint and made static.
3557 All uses updated.
3558 (i386_dr_update_inferior_debug_regs): Renamed to
3559 i386_update_inferior_debug_regs and made static.
3560 All uses updated.
3561 * nat/i386-dregs.h (i386_dr_show): Removed.
3562 (i386_dr_length_and_rw_bits): Likewise.
3563 (i386_dr_insert_aligned_watchpoint): Likewise.
3564 (i386_dr_remove_aligned_watchpoint): Likewise.
3565 (i386_dr_update_inferior_debug_regs): Likewise.
3566
3567 2014-06-19 Gary Benson <gbenson@redhat.com>
3568
3569 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3570 * configure: Regenerate.
3571 * config.in: Likewise.
3572 * main.c (signal.h): New include.
3573 (setup_alternate_signal_stack): New function.
3574 (captured_main): Call the above.
3575 * cp-support.c (signal.h): New include.
3576 (catch_demangler_crashes): New flag.
3577 (SIGJMP_BUF): New define.
3578 (SIGSETJMP): Likewise.
3579 (SIGLONGJMP): Likewise.
3580 (gdb_demangle_jmp_buf): New static global.
3581 (gdb_demangle_attempt_core_dump): Likewise.
3582 (gdb_demangle_signal_handler): New function.
3583 (gdb_demangle): If catch_demangler_crashes is set, install the
3584 above signal handler before calling bfd_demangle, and restore
3585 the original signal handler afterwards. Display the offending
3586 symbol and call demangler_warning the first time a segmentation
3587 fault is caught.
3588 (_initialize_cp_support): New maint set/show command.
3589
3590 2014-06-19 Gary Benson <gbenson@redhat.com>
3591
3592 * utils.h (resource_limit_kind): New enum.
3593 (can_dump_core): New declaration.
3594 (warn_cant_dump_core): Likewise.
3595 (dump_core): Likewise.
3596 * utils.c (dump_core): Made nonstatic. Added new
3597 parameter "limit_kind".
3598 (can_dump_core): Made nonstatic. Moved printing code to...
3599 (warn_cant_dump_core): New function.
3600 (can_dump_core_warn): Likewise.
3601 (internal_vproblem): Replace calls to can_dump_core with
3602 calls to can_dump_core_warn. Supply new argument to each.
3603
3604 2014-06-19 Gary Benson <gbenson@redhat.com>
3605
3606 * utils.h (demangler_vwarning): New declaration.
3607 (demangler_warning): Likewise.
3608 * utils.c (struct internal_problem)
3609 <user_settable_should_quit>: New field.
3610 <user_settable_should_dump_core>: Likewise
3611 (internal_error_problem): Add values for above new fields.
3612 (internal_warning_problem): Likewise.
3613 (demangler_warning_problem): New static global.
3614 (demangler_vwarning): New function.
3615 (demangler_warning): Likewise.
3616 (add_internal_problem_command): Selectively add commands.
3617 (_initialize_utils): New internal problem command.
3618 * maint.c (maintenance_demangler_warning): New function.
3619 (_initialize_maint_cmds): New command.
3620
3621 2014-06-18 Tom Tromey <tromey@redhat.com>
3622
3623 * f-valprint.c (info_common_command_for_block): Update.
3624 * symtab.h (struct general_symbol_info) <common_block>: Now
3625 const.
3626
3627 2014-06-18 Tom Tromey <tromey@redhat.com>
3628
3629 * symtab.h (struct symtab) <blockvector>: Now const.
3630 * ada-lang.c (ada_add_global_exceptions): Update.
3631 * buildsym.c (augment_type_symtab): Update.
3632 * dwarf2read.c (dw2_lookup_symbol): Update.
3633 * jit.c (finalize_symtab): Update.
3634 * jv-lang.c (add_class_symtab_symbol): Update.
3635 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3636 Update.
3637 * objfiles.c (objfile_relocate1): Update.
3638 * psymtab.c (lookup_symbol_aux_psymtabs)
3639 (maintenance_check_psymtabs): Update.
3640 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3641 Update.
3642 * spu-tdep.c (spu_catch_start): Update.
3643 * symmisc.c (dump_symtab_1): Update.
3644 * symtab.c (lookup_global_symbol_from_objfile)
3645 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3646 (basic_lookup_transparent_type_quick)
3647 (basic_lookup_transparent_type, find_pc_sect_symtab)
3648 (find_pc_sect_line, search_symbols): Update.
3649 * block.c (find_block_in_blockvector): Make "bl" const.
3650 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3651 const.
3652 (blockvector_contains_pc): Make "bv" const.
3653 (block_for_pc_sect): Update.
3654 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3655 (blockvector_contains_pc): Update.
3656 * breakpoint.c (resolve_sal_pc): Update.
3657 * inline-frame.c (block_starting_point_at): Update.
3658
3659 2014-06-18 Tom Tromey <tromey@redhat.com>
3660
3661 * completer.c (complete_line): Make "line_buffer" const.
3662 * completer.h (complete_line): Update.
3663
3664 2014-06-18 Tom Tromey <tromey@redhat.com>
3665
3666 * symtab.c (add_macro_name): Remove unneeded cast.
3667
3668 2014-06-18 Tom Tromey <tromey@redhat.com>
3669
3670 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3671 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3672
3673 2014-06-18 Tom Tromey <tromey@redhat.com>
3674
3675 * probe.c (info_probes_for_ops): Make "arg" const.
3676 * probe.h (info_probes_for_ops): Update.
3677
3678 2014-06-18 Tom Tromey <tromey@redhat.com>
3679
3680 * varobj.c (varobj_create): Update.
3681 * valops.c (value_of_this): Update.
3682 * tracepoint.c (add_local_symbols, scope_info): Update.
3683 * symtab.h (struct general_symbol_info) <block>: Now const.
3684 * symtab.c (skip_prologue_sal)
3685 (default_make_symbol_completion_list_break_on)
3686 (skip_prologue_using_sal): Update.
3687 * stack.h (iterate_over_block_locals)
3688 (iterate_over_block_local_vars): Update.
3689 * stack.c (print_frame_args): Update.
3690 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3691 parameter const.
3692 (get_selected_block): Make return type const.
3693 * python/py-frame.c (frapy_block): Update.
3694 * python/py-block.c (gdbpy_block_for_pc): Update.
3695 * p-exp.y (%union) <bval>: Now const.
3696 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3697 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3698 * m2-exp.y (%union) <bval>: Now const.
3699 * linespec.c (get_current_search_block): Make return type const.
3700 (create_sals_line_offset, find_label_symbols): Update.
3701 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3702 Update.
3703 (block_starting_point_at): Make "block" const.
3704 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3705 (check_exception_resume): Update.
3706 * guile/scm-frame.c (gdbscm_frame_block): Update.
3707 * guile/scm-block.c (gdbscm_lookup_block): Update.
3708 * frame.h (get_frame_block): Update.
3709 (get_selected_block): Make return type const.
3710 * frame.c (frame_id_inner): Update.
3711 * f-valprint.c (info_common_command_for_block)
3712 (info_common_command): Update.
3713 * dwarf2loc.c (dwarf2_find_location_expression)
3714 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3715 (locexpr_describe_location_piece): Update.
3716 * c-exp.y (%union) <bval>: Now const.
3717 * breakpoint.c (resolve_sal_pc): Update.
3718 * blockframe.c (get_frame_block):Make return type const.
3719 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3720 (block_innermost_frame): Update.
3721 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3722 (block_for_pc, block_for_pc_sect): Update.
3723 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3724 'pblock' const.
3725 (block_for_pc_sect, block_for_pc): Make return type const.
3726 * ax-gdb.c (gen_expr): Update.
3727 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3728 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3729 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3730 (ada_read_var_value): Update.
3731 * ada-exp.y (struct name_info) <block>: Now const.
3732 (%union): Likewise.
3733 (block_lookup): Constify.
3734
3735 2014-06-18 Gary Benson <gbenson@redhat.com>
3736
3737 * nat/i386-dregs.h: New file.
3738 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3739 * i386-nat.h (i386-dregs.h): New include.
3740 (DR_FIRSTADDR): Now in i386-dregs.h.
3741 (DR_LASTADDR): Likewise.
3742 (DR_NADDR): Likewise.
3743 (DR_STATUS): Likewise.
3744 (DR_CONTROL): Likewise.
3745 (i386_debug_reg_state): Likewise.
3746 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3747
3748 2014-06-18 Don Breazeal <donb@codesourcery.com>
3749
3750 * breakpoint.c (set_longjmp_breakpoint): Call
3751 momentary_breakpoint_from_master with additional argument.
3752 (set_longjmp_breakpoint_for_call_dummy): Call
3753 momentary_breakpoint_from_master with additional argument.
3754 (set_std_terminate_breakpoint): Call
3755 momentary_breakpoint_from_master with additional argument.
3756 (momentary_breakpoint_from_master): Add argument to function
3757 definition and use it to initialize structure member flag.
3758 (clone_momentary_breakpoint): Call
3759 momentary_breakpoint_from_master with additional argument.
3760 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3761 member flags set in momentary_breakpoint_from_master.
3762
3763 2014-06-18 Gary Benson <gbenson@redhat.com>
3764
3765 * i386-nat.c (i386_show_dr): Renamed to
3766 i386_dr_show and made nonstatic. All uses updated.
3767 (i386_length_and_rw_bits): Renamed to
3768 i386_dr_length_and_rw_bits and made nonstatic.
3769 All uses updated.
3770 (i386_insert_aligned_watchpoint): Renamed to
3771 i386_dr_insert_aligned_watchpoint and made nonstatic.
3772 All uses updated.
3773 (i386_remove_aligned_watchpoint): Renamed to
3774 i386_dr_remove_aligned_watchpoint and made nonstatic.
3775 All uses updated.
3776 (i386_update_inferior_debug_regs): Renamed to
3777 i386_dr_update_inferior_debug_regs and made nonstatic.
3778 All uses updated.
3779
3780 2014-06-18 Gary Benson <gbenson@redhat.com>
3781
3782 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3783 (i386_dr_low_can_set_control): Likewise.
3784 (i386_dr_low_set_addr): Likewise.
3785 (i386_dr_low_set_control): Likewise.
3786 (i386_dr_low_get_addr): Likewise.
3787 (i386_dr_low_get_status): Likewise.
3788 (i386_dr_low_get_control): Likewise.
3789 (i386_insert_aligned_watchpoint): Use new macros.
3790 (i386_update_inferior_debug_regs): Likewise.
3791 (i386_stopped_data_address): Likewise.
3792
3793 2014-06-18 Gary Benson <gbenson@redhat.com>
3794
3795 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3796 New parameter. All uses updated.
3797
3798 2014-06-18 Gary Benson <gbenson@redhat.com>
3799
3800 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3801 All uses updated.
3802
3803 2014-06-18 Gary Benson <gbenson@redhat.com>
3804
3805 * i386-nat.c (debug_printf): New macro.
3806 (i386_get_debug_register_length): Likewise.
3807 (TARGET_HAS_DR_LEN_8): Use above macro.
3808 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3809 and printf_unfiltered. Use phex to format values.
3810
3811 2014-06-18 Gary Benson <gbenson@redhat.com>
3812
3813 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3814 Make const.
3815
3816 2014-06-18 Gary Benson <gbenson@redhat.com>
3817
3818 * i386-nat.c: Comment changes.
3819
3820 2014-06-18 Gary Benson <gbenson@redhat.com>
3821
3822 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3823
3824 2014-06-18 Gary Benson <gbenson@redhat.com>
3825
3826 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3827 (i386_insert_aligned_watchpoint): Likewise.
3828 (i386_remove_aligned_watchpoint): Likewise.
3829 (i386_handle_nonaligned_watchpoint): Likewise.
3830
3831 2014-06-18 Gary Benson <gbenson@redhat.com>
3832
3833 * i386-nat.c: Whitespace changes.
3834
3835 2014-06-17 Samuel Bronson <naesten@gmail.com>
3836
3837 * MAINTAINERS: Update Roland McGrath's email address.
3838 Thanks to Sergio Durigan Junior for pointing out that he left
3839 Red Hat a while ago, and giving me a current address.
3840
3841 2014-06-17 Tom Tromey <tromey@redhat.com>
3842
3843 * utils.h (savestring): Remove declaration.
3844
3845 2014-06-17 Tom Tromey <tromey@redhat.com>
3846
3847 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3848
3849 2014-06-16 Keith Seitz <keiths@redhat.com>
3850
3851 PR mi/15863
3852 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3853 to update the varobj if inferior_ptid is null_ptid.
3854
3855 2014-06-16 Tom Tromey <tromey@redhat.com>
3856
3857 * target.h (struct target_ops) <to_info_proc>: Make parameter
3858 const.
3859 (target_info_proc): Update.
3860 * target.c (target_info_proc): Make "args" const.
3861 * procfs.c (procfs_info_proc): Update.
3862 * linux-tdep.c (linux_info_proc): Update.
3863 (linux_core_info_proc_mappings): Make "args" const.
3864 (linux_core_info_proc): Update.
3865 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3866 * gdbarch.c: Rebuild.
3867 * gdbarch.h: Rebuild.
3868 * corelow.c (core_info_proc): Update.
3869
3870 2014-06-16 Tom Tromey <tromey@redhat.com>
3871
3872 * target.h (struct target_ops) <to_disconnect>: Make parameter
3873 const.
3874 (target_disconnect): Update.
3875 * target.c (target_disconnect): Make "args" const.
3876 * target-delegates.c: Rebuild.
3877 * remote.c (remote_disconnect): Update.
3878 * record.h (record_disconnect): Update.
3879 * record.c (record_disconnect): Update.
3880 * inf-child.c (inf_child_disconnect): Update.
3881
3882 2014-06-16 Tom Tromey <tromey@redhat.com>
3883
3884 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3885 * target.c (debug_to_rcmd, default_rcmd): Update.
3886 * target-delegates.c: Rebuild.
3887 * remote.c (remote_rcmd): Update.
3888 * monitor.c (monitor_rcmd): Update.
3889
3890 2014-06-16 Pedro Alves <palves@redhat.com>
3891
3892 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3893 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3894 have OBJF_SHARED set.
3895 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3896 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3897 instead of OBJF_USERLOADED.
3898 * objfiles.h (OBJF_SHARED): Update comment.
3899 (userloaded_objfile_contains_address_p): Rename to ...
3900 (shared_objfile_contains_address_p): ... this, and update
3901 comments.
3902 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3903 new objfile.
3904 (remove_symbol_file_command): Skip objfiles that don't have
3905 OBJF_SHARED set.
3906
3907 2014-06-16 Tom Tromey <tromey@redhat.com>
3908
3909 * minsyms.h (prim_record_minimal_symbol)
3910 (prim_record_minimal_symbol_and_info): Update comments.
3911
3912 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3913
3914 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3915 or --without-guile, according to how GDB was built.
3916
3917 2014-06-13 Tom Tromey <tromey@redhat.com>
3918
3919 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3920 to help_list.
3921 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3922 to help_list.
3923 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3924 help_list.
3925 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3926 help_list.Pass all_commands, not -1, to help_list.
3927 * cli/cli-dump.c (dump_command, append_command)
3928 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3929 (binary_dump_command, binary_append_command): Pass all_commands,
3930 not -1, to help_list.
3931 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3932 -1, to help_list.
3933 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3934 -1, to help_list.
3935 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3936 help_list.
3937 * top.c (set_history): Pass all_commands, not -1, to help_list.
3938 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3939 all_commands, not -1, to help_list.
3940 * symfile.c (overlay_command): Pass all_commands, not -1, to
3941 help_list.
3942 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3943 help_list.
3944 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3945 help_list.
3946 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3947 -1, to help_list.
3948 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3949 not -1, to help_list.
3950 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3951 not -1, to help_list.
3952 * maint.c (maintenance_command, maintenance_info_command)
3953 (maintenance_print_command, maintenance_set_cmd): Pass
3954 all_commands, not -1, to help_list.
3955 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3956 help_list.
3957 * language.c (set_check): Pass all_commands, not -1, to help_list.
3958 * infcmd.c (unset_command): Pass all_commands, not -1, to
3959 help_list.
3960 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3961 help_list.
3962 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3963 help_list.
3964 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3965 help_list.
3966 * breakpoint.c (save_command): Pass all_commands, not -1, to
3967 help_list.
3968 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3969 all_commands, not -1, to help_list.
3970
3971 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3972
3973 * regcache.c (struct register_to_invalidate): New structure.
3974 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3975 functions.
3976 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3977
3978 2014-06-12 Yao Qi <yao@codesourcery.com>
3979
3980 * varobj.c (varobj_get_num_children): Call
3981 varobj_is_dynamic_p.
3982 (varobj_list_children): Likewise.
3983 (varobj_update): Likewise. Update comments.
3984
3985 2014-06-12 Yao Qi <yao@codesourcery.com>
3986
3987 * varobj.c (varobj_pretty_printed_p): Rename to ...
3988 (varobj_is_dynamic_p): ... this. New function.
3989 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3990 (varobj_is_dynamic_p): Declare.
3991 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3992 (mi_print_value_p, varobj_update_one): Likewise.
3993
3994 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3995 Yao Qi <yao@codesourcery.com>
3996
3997 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3998 (varobj_get_iterator): Wrap up code for pretty-printer by
3999 "#if HAVE_PYTHON" and "#endif".
4000 (update_dynamic_varobj_children): Likewise.
4001
4002 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4003 Yao Qi <yao@codesourcery.com>
4004
4005 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4006 gdb_python_initialized is false. Move some code from varobj.c.
4007 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4008 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4009 (struct varobj_item): Moved to varobj-iter.h".
4010 (varobj_clear_saved_item): New function.
4011 (update_dynamic_varobj_children): Move python-related code to
4012 py-varobj.c.
4013 (free_variable): Call varobj_clear_saved_item and
4014 varobj_iter_delete.
4015
4016 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4017 Yao Qi <yao@codesourcery.com>
4018
4019 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4020 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4021 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4022 (py-varobj.o): New rule.
4023 * python/py-varobj.c: New file.
4024 * python/python-internal.h (py_varobj_get_iterator): Declare.
4025 * varobj-iter.h: New file.
4026 * varobj.c: Include "varobj-iter.h"
4027 (struct varobj) <child_iter>: Change its type from "PyObject *"
4028 to "struct varobj_iter *".
4029 <saved_item>: Likewise.
4030 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4031 [HAVE_PYTHON] (varobj_get_iterator): New function.
4032 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4033 python-specific code to python/py-varobj.c.
4034 (install_visualizer): Call varobj_iter_delete instead of
4035 Py_XDECREF.
4036 * varobj.h (varobj_ensure_python_env): Declare.
4037
4038 2014-06-12 Yao Qi <yao@codesourcery.com>
4039
4040 * varobj.c (struct varobj_item): New structure.
4041 (create_child_with_value): Update declaration.
4042 (varobj_add_child): Replace arguments 'name' and 'value' with
4043 'item'. All callers updated.
4044 (install_dynamic_child): Likewise.
4045 (update_dynamic_varobj_children): Likewise.
4046 (varobj_add_child): Likewise.
4047 (create_child_with_value): Likewise.
4048
4049 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4050
4051 * NEWS: Create a new section for the next release branch.
4052 Rename the section of the current branch, now that it has
4053 been cut.
4054
4055 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4056
4057 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4058 * version.in: Bump version to 7.8.50.DATE-cvs.
4059
4060 2014-06-11 Pedro Alves <palves@redhat.com>
4061
4062 PR remote/17028
4063 * ser-mingw.c (net_windows_socket_check_pending): New function.
4064 (net_windows_select_thread): Ignore spurious wakeups. Use
4065 net_windows_socket_check_pending.
4066 (net_windows_wait_handle): Check for pending events with
4067 ioctlsocket, through net_windows_socket_check_pending, instead of
4068 checking the socket's event.
4069
4070 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4071
4072 * python/python-internal.h (gdb_PyObject_GetAttrString)
4073 (gdb_PyObject_HasAttrString): New inline function definitions.
4074 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4075 char * of the second argument to PyObject_GetAttrString.
4076
4077 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4078
4079 * serial.c (serial_write): Fix index of character to be printed
4080 in call to serial_logchar when serial debug traces are enabled.
4081
4082 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4083
4084 * gdbtypes (resolve_dynamic_range): Add function description.
4085
4086 2014-06-09 Pedro Alves <palves@redhat.com>
4087
4088 * linux-nat.c (linux_child_follow_fork): Initialize status with
4089 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4090 inner block. Only pass the signal to PTRACE_DETACH if in pass
4091 state.
4092
4093 2014-06-09 Gary Benson <gbenson@redhat.com>
4094
4095 * common/signals.c (gdb_signal_from_host): Reorder to separate
4096 the always-available ANSI-standard signals from the signals that
4097 require checking.
4098 (do_gdb_signal_to_host): Likewise.
4099 * proc-events.c (signal_table): Likewise.
4100
4101 2014-06-08 Hui Zhu <hui@codesourcery.com>
4102
4103 * common/linux-ptrace.c (linux_disable_event_reporting): New
4104 function.
4105 * common/linux-ptrace.h (linux_disable_event_reporting): New
4106 declaration.
4107 * linux-nat.c (linux_child_follow_fork): Do a single step before
4108 detach.
4109
4110 2014-06-07 Keith Seitz <keiths@redhat.com>
4111
4112 Revert:
4113 PR c++/16253
4114 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4115 from symbol_matches_domain in symtab.c. All local callers
4116 of symbol_matches_domain updated.
4117 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4118 search STRUCT_DOMAIN.
4119 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4120 independently. standard_lookup will do that automatically.
4121 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4122 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4123 (cp_lookup_symbol_in_namespace): Likewise.
4124 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4125 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4126 may return a STRUCT_DOMAIN match.
4127 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4128 * cp-support.c: Include language.h.
4129 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4130 VAR_DOMAIN.
4131 * psymtab.c (match_partial_symbol): Compare the requested
4132 domain with the symbol's domain directly.
4133 (lookup_partial_symbol): Likewise.
4134 * symtab.c (lookup_symbol_in_language): Explain when/why
4135 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4136 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4137 appropriate languages.
4138 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4139 and moved to ada-lang.c
4140 (lookup_block_symbol): Explain that this function only returns
4141 symbol matching the requested DOMAIN.
4142 Compare the requested domain with the symbol's domain directly.
4143 (iterate_over_symbols): Compare the requested domain with the
4144 symbol's domain directly.
4145 * symtab.h (symbol_matches_domain): Remove.
4146
4147 2014-06-06 Doug Evans <xdje42@gmail.com>
4148
4149 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4150 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4151 (gdbscm_guile_version_is_at_least): Declare.
4152 (gdbscm_scm_string_to_int): Declare.
4153 * guile/guile.c (gdbscm_guile_major_version): New global.
4154 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4155 (guile_datadir): New static global.
4156 (gdbscm_guile_data_directory): New function.
4157 (initialize_scheme_side): Update.
4158 (misc_guile_functions): Add guile-data-directory.
4159 (initialize_gdb_module): Fetch guile version number.
4160 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4161 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4162 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4163 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4164 comments.
4165 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4166 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4167 * guile/scm-value.c (gdbscm_value_to_string): Only call
4168 scm_port_conversion_strategy if Guile version >= 2.0.6.
4169
4170 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4171
4172 * main.c (print_gdb_help): Add -q and --silent.
4173
4174 2014-06-06 Gary Benson <gbenson@redhat.com>
4175
4176 * common/signals.c: Remove preprocessor conditionals for
4177 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4178 SIGSEGV and SIGTERM.
4179 * proc-events.c: Likewise.
4180
4181 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4182
4183 * symfile.c (symfile_free_objfile): Remove restriction to
4184 OBJF_USERLOADED.
4185 * symfile-mem.c (symbol_file_add_from_memory): Call
4186 add_target_sections_of_objfile.
4187
4188 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4189
4190 * guile/scm-value.c (gdbscm_history_append_x): Use
4191 'vlscm_get_value_smob_arg_unsafe' instead of
4192 'vlscm_scm_to_value'.
4193
4194 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4195
4196 PR mi/15806
4197 * utils.c (printchar): Don't escape at all if quoter is NUL.
4198 Update function documentation to clarify effect of parameter
4199 QUOTER.
4200 * remote.c (escape_buffer): Pass '\\' as the quoter to
4201 fputstrn_unfiltered.
4202 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4203 generate the output.
4204 (mi_solib_unloaded): Same.
4205
4206 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4207
4208 * development.sh: Delete.
4209 * Makefile.in (config.status): Adjust dependency on development.sh.
4210 * configure.ac: Adjust development.sh source call.
4211 * configure: Regenerate.
4212
4213 2014-06-04 Doug Evans <xdje42@gmail.com>
4214
4215 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4216 is_scheme_bkpt, spec.
4217 (bpscm_make_breakpoint_smob): Initialize new members.
4218 (gdbscm_create_breakpoint_x): Split into two ...
4219 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4220 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4221 (scheme_function breakpoint_functions): Update.
4222 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4223 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4224 register-breakpoint!.
4225
4226 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4227
4228 PR server/17023
4229 * mem-break.c (z_type_supported): Return zero if
4230 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4231
4232 2014-06-04 Tom Tromey <tromey@redhat.com>
4233
4234 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4235 value_from_contents_and_address_unresolved.
4236 (ada_template_to_fixed_record_type_1): Likewise.
4237 (ada_which_variant_applies): Likewise.
4238 * value.h (value_from_contents_and_address_unresolved): Declare.
4239 * value.c (value_from_contents_and_address_unresolved): New
4240 function.
4241 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4242 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4243 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4244
4245 2014-06-04 Tom Tromey <tromey@redhat.com>
4246
4247 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4248
4249 2014-06-04 Tom Tromey <tromey@redhat.com>
4250
4251 * procfs.c (procfs_attach): Make "args" const.
4252 * windows-nat.c (windows_attach): Make "args" const.
4253 * nto-procfs.c (procfs_attach): Make "args" const.
4254 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4255 * go32-nat.c (go32_attach): Make "args" const.
4256 * gnu-nat.c (gnu_attach): Make "args" const.
4257 * darwin-nat.c (darwin_attach): Make "args" const.
4258 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4259 * linux-nat.c (linux_nat_attach): Make "args" const.
4260 * remote.c (extended_remote_attach_1, extended_remote_attach):
4261 Make "args" const.
4262 * target.h (struct target_ops) <to_attach>: Make "args" const.
4263 (find_default_attach): Likewise.
4264 * utils.c (parse_pid_to_attach): Make "args" const.
4265 * utils.h (parse_pid_to_attach): Update.
4266
4267 2014-06-04 Tom Tromey <tromey@redhat.com>
4268
4269 * target-delegates.c: Rebuild.
4270 * target.c (default_thread_address_space): New function.
4271 (target_thread_address_space): Simplify.
4272 * target.h (struct target_ops) <to_thread_address_space>: Add
4273 TARGET_DEFAULT_FUNC.
4274
4275 2014-06-04 Doug Evans <xdje42@gmail.com>
4276
4277 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4278
4279 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4280
4281 * record-btrace.c: Include event-loop.h and inf-loop.h.
4282 (record_btrace_resume_exec_dir)
4283 (record_btrace_async_inferior_event_handler)
4284 (record_btrace_handle_async_inferior_event): New.
4285 (record_btrace_open): Create async event handler.
4286 (record_btrace_close): Delete async event handler.
4287 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4288 Mark async event handler.
4289 (record_btrace_execution_direction): New.
4290 (init_record_btrace_ops): Initialize to_execution_direction.
4291
4292 2014-06-03 Doug Evans <xdje42@gmail.com>
4293
4294 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4295 (gdbscm_make_parameter): Ditto.
4296
4297 2014-06-03 Doug Evans <dje@google.com>
4298
4299 * exec.c (exec_close_1): Call clear_section_table instead of
4300 resize_section_table.
4301 (clear_section_table): New function.
4302 (resize_section_table): Make static. Rename arg num_added to
4303 adjustment.
4304 * exec.h (clear_section_table): Declare.
4305 (resize_section_table): Delete.
4306 * progspace.c (release_program_space): Call clear_section_table
4307 instead of resize_section_table.
4308
4309 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4310
4311 * NEWS (Python Scripting): Add entry about the new xmethods
4312 feature.
4313
4314 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4315
4316 * python/py-xmethods.c: New file.
4317 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4318 (objfpy_dealloc): XDECREF on the new xmethods field.
4319 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4320 field.
4321 (objfpy_get_xmethods): New function.
4322 (objfile_getset): New entry 'xmethods'.
4323 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4324 (pspy_dealloc): XDECREF on the new xmethods field.
4325 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4326 field.
4327 (pspy_get_xmethods): New function.
4328 (pspace_getset): New entry 'xmethods'.
4329 * python/python-internal.h: Add declarations for new functions.
4330 * python/python.c (_initialize_python): Invoke
4331 gdbpy_initialize_xmethods.
4332 * python/lib/gdb/__init__.py (xmethods): New
4333 attribute.
4334 * python/lib/gdb/xmethod.py: New file.
4335 * python/lib/gdb/command/xmethods.py: New file.
4336
4337 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4338
4339 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4340 best match method returned by find_overload_match is an xmethod.
4341 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4342 the best matching operator returned by find_overload_match is an
4343 xmethod.
4344 * valops.c: #include "extension.h".
4345 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4346 Return void. The list of matching source methods is returned in
4347 "fn_list" and a vector of matching debug method workers is
4348 returned in "xm_worker_vec". Update all callers.
4349 (value_find_oload_method_list): Likewise.
4350 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4351 non-NULL, then the index of the best matching method in this
4352 vector is returned. Update all callers.
4353 (find_overload_match): Include xmethods while performing overload
4354 resolution.
4355
4356 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4357
4358 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4359 * extension-priv.h (struct extension_language_ops): Add the
4360 xmethod interface.
4361 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4362 get_matching_xmethod_workers, get_xmethod_argtypes,
4363 invoke_xmethod, free_xmethod_worker,
4364 free_xmethod_worker_vec): New functions.
4365 * extension.h: #include "common/vec.h".
4366 New function declarations.
4367 (struct xmethod_worker): New struct.
4368 (VEC (xmethod_worker_ptr)): New vector type.
4369 (xmethod_worker_ptr): New typedef.
4370 (xmethod_worker_vec): Likewise.
4371 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4372 builtin_type.
4373 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4374 (struct builtin_type): New field "xmethod".
4375 * valarith.c (value_ptradd): Assert that the value argument is not
4376 lval_xcallable.
4377 * valops.c (value_must_coerce_to_target): Return 0 for
4378 lval_xcallable values.
4379 * value.c (struct value): New field XM_WORKER in the field
4380 LOCATION.
4381 (value_address, value_raw_address): Return 0 for lval_xcallable
4382 values.
4383 (set_value_address): Assert that the value is not an
4384 lval_xcallable.
4385 (value_free): Free the associated xmethod worker when freeing
4386 lval_xcallable values.
4387 (set_value_component_location): Assert that the WHOLE value is not
4388 lval_xcallable.
4389 (value_of_xmethod, call_xmethod): New functions.
4390 * value.h: Declare "struct xmethod_worker".
4391 Declare new functions value_of_xmethod, call_xmethod.
4392
4393 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4394 Pedro Alves <palves@redhat.com>
4395
4396 PR breakpoints/17000
4397 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4398 New function, extracted from software_breakpoint_inserted_here_p.
4399 (software_breakpoint_inserted_here_p): Replace factored out code
4400 by call to find_non_raw_software_breakpoint_inserted_here.
4401 (bp_target_info_copy_insertion_state): New function.
4402 (bkpt_insert_location): Handle the case of a single-step
4403 breakpoint already inserted at the same address.
4404 (bkpt_remove_location): Handle the case of a single-step
4405 breakpoint still inserted at the same address.
4406 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4407 breakpoint already inserted at the same address.
4408 (deprecated_remove_raw_breakpoint): Handle the case of a
4409 non-raw breakpoint still inserted at the same address.
4410 (find_single_step_breakpoint): New function, extracted from
4411 single_step_breakpoint_inserted_here_p.
4412 (find_single_step_breakpoint): New function,
4413 factored out from single_step_breakpoint_inserted_here_p.
4414 (single_step_breakpoint_inserted_here_p): Reimplement.
4415
4416 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4417
4418 Pushed by Joel Brobecker <brobecker@adacore.com>
4419 * source.c (show_substitute_path_command): Fix display of matching
4420 substitution rules.
4421
4422 2014-06-03 Gary Benson <gbenson@redhat.com>
4423
4424 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4425
4426 2014-06-02 Doug Evans <xdje42@gmail.com>
4427
4428 Add parameter support for Guile.
4429 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4430 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4431 (scm-param.o): New rule.
4432 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4433 (gdbscm_misc_error): Declare.
4434 (gdbscm_canonicalize_command_name): Declare.
4435 (gdbscm_scm_to_host_string): Declare.
4436 (gdbscm_scm_from_host_string): Declare.
4437 (gdbscm_initialize_parameters): Declare.
4438 * guile/guile.c (initialize_gdb_module): Call
4439 gdbscm_initialize_parameters.
4440 * guile/lib/gdb.scm: Export parameter symbols.
4441 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4442 cmdscm_canonicalize_name and made public. All callers updated.
4443 * guile/scm-exception.c (gdbscm_misc_error): New function.
4444 * guile/scm-param.c: New file.
4445 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4446 (gdbscm_scm_to_host_string): New function.
4447 (gdbscm_scm_from_host_string): New function.
4448 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4449
4450 2014-06-02 Doug Evans <xdje42@gmail.com>
4451
4452 Add command support for Guile.
4453 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4454 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4455 (scm-cmd.o): New rule.
4456 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4457 (gdbscm_user_error_p): Declare.
4458 (gdbscm_parse_command_name): Declare.
4459 (gdbscm_valid_command_class_p): Declare.
4460 (gdbscm_initialize_commands): Declare.
4461 * guile/guile.c (initialize_gdb_module): Call
4462 gdbscm_initialize_commands.
4463 * guile/lib/gdb.scm: Export command symbols.
4464 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4465 (throw-user-error): New function.
4466 * guile/scm-cmd.c: New file.
4467 * guile/scm-exception.c (user_error_symbol): New static global.
4468 (gdbscm_user_error_p): New function.
4469 (gdbscm_initialize_exceptions): Set user_error_symbol.
4470 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4471
4472 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4473
4474 * top.c (command_loop): Handle comments here...
4475 (command_line_input): ... not here.
4476
4477 2014-06-02 Doug Evans <xdje42@gmail.com>
4478
4479 Add progspace support for Guile.
4480 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4481 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4482 (scm-progspace.o): New rule.
4483 * guile/guile-internal.h (pspace_smob): New typedef.
4484 (psscm_pspace_smob_pretty_printers): Declare.
4485 (psscm_pspace_smob_from_pspace): Declare.
4486 (psscm_scm_from_pspace): Declare.
4487 * guile/guile.c (initialize_gdb_module): Call
4488 gdbscm_initialize_pspaces.
4489 * guile/lib/gdb.scm: Export progspace symbols.
4490 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4491 support.
4492 (append-pretty-printer!): Ditto.
4493 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4494 Implement.
4495 * guile/scm-progspace.c: New file.
4496
4497 2014-06-03 Alan Modra <amodra@gmail.com>
4498
4499 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4500 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4501
4502 2014-06-02 Doug Evans <dje@google.com>
4503
4504 Add support for skeletonless type units.
4505 * dwarf2read.c (struct dwarf2_per_objfile): New member
4506 n_allocated_type_units.
4507 (struct dwarf2_per_objfile) <tu_stats>: New member
4508 nr_all_type_units_reallocs.
4509 (create_signatured_type_table_from_index): Initialize
4510 n_allocated_type_units
4511 (create_all_type_units): Ditto.
4512 (add_type_unit): Move up in file. New arg slot.
4513 All callers updated. Increase space for all_type_units more
4514 efficiently.
4515 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4516 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4517 (lookup_dwp_signatured_type): Ditto.
4518 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4519 All callers updated.
4520 (build_type_psymtabs_1): Leave type_unit_groups as
4521 NULL if no TUs present.
4522 (print_tu_stats): New function.
4523 (process_skeletonless_type_unit): New function.
4524 (process_dwo_file_for_skeletonless_type_units): New
4525 function.
4526 (process_skeletonless_type_units): New function.
4527 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4528 Call print tu_stats if debugging enabled.
4529
4530 2014-06-02 Pedro Alves <palves@redhat.com>
4531
4532 * breakpoint.c (build_target_command_list): Don't build a command
4533 list if we have any duplicate location that isn't a dprintf.
4534
4535 2014-06-02 Pedro Alves <palves@redhat.com>
4536
4537 * breakpoint.c (dprintf_breakpoint_hit): New function.
4538 (initialize_breakpoint_ops): Install it as dprintf's
4539 breakpoint_hit method.
4540
4541 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4542
4543 * source.c (substitute_path_rule_matches): Simplify using
4544 filename_ncmp instead of FILENAME_CMP.
4545
4546 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4547
4548 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4549
4550 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4551
4552 * configure.ac: When Guile is available, check for the
4553 availability of 'scm_new_smob'.
4554 * configure, config.h.in: Regenerate.
4555 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4556 function.
4557
4558 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4559
4560 * frame.c (struct frame_info): Add stop_string field.
4561 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4562 (get_prev_frame_always): Old content moved into
4563 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4564 TRY_CATCH, handle MEMORY_ERROR exceptions.
4565 (frame_stop_reason_string): New function definition.
4566 * frame.h (unwind_stop_reason_to_string): Extend comment to
4567 mention frame_stop_reason_string.
4568 (frame_stop_reason_string): New function declaration.
4569 * stack.c (frame_info): Switch to frame_stop_reason_string.
4570 (backtrace_command_1): Switch to frame_stop_reason_string.
4571 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4572 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4573 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4574
4575 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4576
4577 * frame.c (frame_stop_reason_string): Rename to ...
4578 (unwind_stop_reason_to_string): this.
4579 * frame.h (frame_stop_reason_string): Rename to ...
4580 (unwind_stop_reason_to_string): this.
4581 * stack.c (frame_info): Update call to frame_stop_reason_string.
4582 (backtrace_command_1): Likewise.
4583 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4584 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4585
4586 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4587
4588 * frame.c (remove_prev_frame): New function.
4589 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4590 remove_prev_frame.
4591
4592 2014-05-29 Pedro Alves <palves@redhat.com>
4593
4594 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4595 and make it const. When a single-step decays to a continue,
4596 clear 'step', not 'hw_step'. Pass whether the caller wanted
4597 to step to user_visible_resume_ptid, not what we ask the
4598 target to do.
4599
4600 2014-05-29 Pedro Alves <palves@redhat.com>
4601
4602 * infrun.c (process_event_stop_test, handle_step_into_function)
4603 (handle_step_into_function_backward): Adjust.
4604 Don't set the even thread's stop_step and call stop_waiting before
4605 calling end_stepping_range. Instead do that ...
4606 (end_stepping_range): ... here. Take an ecs pointer parameter.
4607
4608 2014-05-29 Pedro Alves <palves@redhat.com>
4609
4610 * infrun.c (stop_stepping): Rename to ...
4611 (stop_waiting): ... this.
4612 (proceed): Update comment.
4613 (process_event_stop_test, handle_inferior_event)
4614 (handle_signal_stop, handle_step_into_function)
4615 (handle_step_into_function_backward): Update.
4616
4617 2014-05-29 Pedro Alves <palves@redhat.com>
4618
4619 * infcall.c (run_inferior_call): Don't check whether the current
4620 thread is running after the proceed call.
4621
4622 2014-05-29 Pedro Alves <palves@redhat.com>
4623 Tom Tromey <tromey@redhat.com>
4624
4625 * NEWS: Mention "maint set target-async", "set mi-async", and that
4626 background execution commands are now always available.
4627 * target.h (target_async_permitted): Update comment.
4628 * target.c (target_async_permitted, target_async_permitted_1):
4629 Default to 1.
4630 (set_target_async_command): Rename to ...
4631 (maint_set_target_async_command): ... this.
4632 (show_target_async_command): Rename to ...
4633 (maint_show_target_async_command): ... this.
4634 (_initialize_target): Adjust.
4635 * infcmd.c (prepare_execution_command): Make extern.
4636 * inferior.h (prepare_execution_command): Declare.
4637 * infrun.c (set_observer_mode): Leave target async alone.
4638 * mi/mi-interp.c (mi_interpreter_init): Install
4639 mi_on_sync_execution_done as sync_execution_done observer.
4640 (mi_on_sync_execution_done): New function.
4641 (mi_execute_command_input_handler): Don't print the prompt if we
4642 just started a synchronous command with an async target.
4643 (mi_on_resume): Check sync_execution before printing prompt.
4644 * mi/mi-main.h (mi_async_p): Declare.
4645 * mi/mi-main.c: Include gdbcmd.h.
4646 (mi_async_p): New function.
4647 (mi_async, mi_async_1): New globals.
4648 (set_mi_async_command, show_mi_async_command, mi_async): New
4649 functions.
4650 (exec_continue): Call prepare_execution_command.
4651 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4652 (mi_execute_async_cli_command): Use mi_async_p.
4653 (_initialize_mi_main): Install "set mi-async". Make
4654 "target-async" a deprecated alias.
4655
4656 2014-05-29 Pedro Alves <palves@redhat.com>
4657
4658 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4659 (_initialize_cli_interp): Adjust.
4660 * event-loop.c: Include "observer.h".
4661 (start_event_loop): Notify 'command_error' observers instead of
4662 calling display_gdb_prompt. Remove FIXME comment.
4663 * event-top.c (display_gdb_prompt): Remove call into the
4664 interpreters.
4665 * inf-loop.c: Include "observer.h".
4666 (inferior_event_handler): Notify 'command_error' observers instead
4667 of calling display_gdb_prompt.
4668 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4669 observers instead of calling display_gdb_prompt.
4670 * interps.c (interp_set): Don't call display_gdb_prompt.
4671 (current_interp_display_prompt_p): Delete.
4672 * interps.h (interp_prompt_p): Delete declaration.
4673 (interp_prompt_p_ftype): Delete.
4674 (struct interp_procs) <prompt_proc_p>: Delete field.
4675 (current_interp_display_prompt_p): Delete declaration.
4676 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4677 (_initialize_mi_interp): Adjust.
4678 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4679 'command_error' observers.
4680 (tui_on_sync_execution_done, tui_on_command_error): New
4681 functions.
4682 (tui_display_prompt_p): Delete.
4683 (_initialize_tui_interp): Adjust.
4684
4685 2014-05-29 Pedro Alves <palves@redhat.com>
4686
4687 PR gdb/13860
4688 * cli/cli-interp.c: Include infrun.h and observer.h.
4689 (cli_uiout, cli_interp): New globals.
4690 (cli_on_signal_received, cli_on_end_stepping_range)
4691 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4692 functions.
4693 (cli_interpreter_init): Install them as 'end_stepping_range',
4694 'signal_received' 'signal_exited', 'exited' and 'no_history'
4695 observers.
4696 (_initialize_cli_interp): Remove cli_interp local.
4697 * infrun.c (handle_inferior_event): Call the several stop reason
4698 observers instead of printing the stop reason directly.
4699 (end_stepping_range): New function.
4700 (print_end_stepping_range_reason, print_signal_exited_reason)
4701 (print_exited_reason, print_signal_received_reason)
4702 (print_no_history_reason): Make static, and add an uiout
4703 parameter. Print to that instead of to CURRENT_UIOUT.
4704 * infrun.h (print_end_stepping_range_reason)
4705 (print_signal_exited_reason, print_exited_reason)
4706 (print_signal_received_reason print_no_history_reason): New
4707 declarations.
4708 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4709 'mi_uiout'.
4710 <cli_uiout>: New field.
4711 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4712 uiout for CLI output. Install 'signal_received',
4713 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4714 observers.
4715 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4716 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4717 (mi_on_no_history): New functions.
4718 (ui_out_free_cleanup): Delete function.
4719 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4720 instead use the one already stored in the MI interpreter data.
4721 (mi_ui_out): Adjust.
4722 * tui/tui-interp.c: Include infrun.h and observer.h.
4723 (tui_interp): New global.
4724 (tui_on_signal_received, tui_on_end_stepping_range)
4725 (tui_on_signal_exited, tui_on_exited)
4726 (tui_on_no_history): New functions.
4727 (tui_init): Install them as 'end_stepping_range',
4728 'signal_received' 'signal_exited', 'exited' and 'no_history'
4729 observers.
4730 (_initialize_tui_interp): Delete tui_interp local.
4731
4732 2014-05-29 Pedro Alves <palves@redhat.com>
4733
4734 PR gdb/15713
4735 * linux-nat.c (linux_nat_resume_callback): Rename the second
4736 parameter to 'except'. Skip LP if it points to EXCEPT.
4737 (linux_nat_resume): Don't mark the event lwp as not stopped
4738 before resuming sibling lwps. Instead ask
4739 linux_nat_resume_callback to skip the event lwp. Mark it as not
4740 stopped after actually resuming it.
4741 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4742 resuming it.
4743 (wait_lwp): Mark the lwp as stopped here.
4744 (stop_wait_callback): Mark the lwp as not stopped right after
4745 resuming it. Don't mark lwps as stopped here.
4746 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4747 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4748
4749 2014-05-29 Pedro Alves <palves@redhat.com>
4750
4751 PR PR15693
4752 * infrun.c (resume): Determine how much to resume depending on
4753 whether the caller wanted a step, not whether we can hardware step
4754 the target. Mark all threads that we intend to run as running,
4755 unless we're calling an inferior function.
4756 (normal_stop): If the thread is running an infcall, don't finish
4757 thread state.
4758 * target.c (target_resume): Don't mark threads as running here.
4759
4760 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4761
4762 * serial.c (_initialize_serial): Remove support for
4763 the "set remotebaud" and "show remotebaud" commands.
4764 * NEWS: Add entry documenting the removal of that command.
4765
4766 2014-05-28 Yao Qi <yao@codesourcery.com>
4767
4768 * charset.c: Fix typo in comments.
4769
4770 2014-05-27 Gary Benson <gbenson@redhat.com>
4771
4772 * utils.c (internal_vproblem): Prompt for a bug report.
4773
4774 2014-05-26 Andy Wingo <wingo@igalia.com>
4775
4776 * guile/scm-arch.c (arscm_mark_arch_smob):
4777 * guile/scm-block.c (bkscm_mark_block_smob)
4778 (bkscm_mark_block_syms_progress_smob):
4779 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4780 * guile/scm-exception.c (exscm_mark_exception_smob):
4781 * guile/scm-frame.c (frscm_mark_frame_smob):
4782 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4783 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4784 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4785 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4786 (ppscm_mark_pretty_printer_worker_smob):
4787 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4788 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4789 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4790 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4791 mark functions.
4792 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4793 function.
4794
4795 2014-05-26 Andy Wingo <wingo@igalia.com>
4796 Doug Evans <xdje42@gmail.com>
4797
4798 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4799 empty_base_class. All uses updated.
4800 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4801 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4802 Adapt all callers.
4803 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4804 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4805 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4806 (gdbscm_gsmob_has_property_p, add_property_name)
4807 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4808 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4809 (gdb-object-has-property?, gdb-object-properties): Remove.
4810 (gdb-object-kind): Renamed from gsmob-kind.
4811
4812 2014-05-26 Andy Wingo <wingo@igalia.com>
4813
4814 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4815 * configure: Regenerate.
4816
4817 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4818
4819 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4820
4821 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4822
4823 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4824 (replay_memory_access_read_only, replay_memory_access_read_write)
4825 (replay_memory_access_types, replay_memory_access)
4826 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4827 (cmd_set_record_btrace, cmd_show_record_btrace)
4828 (cmd_show_replay_memory_access): New.
4829 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4830 (record_btrace_remove_breakpoint): Replace
4831 record_btrace_allow_memory_access with replay_memory_access.
4832 (_initialize_record_btrace): Add commands.
4833 * NEWS: Announce it.
4834
4835 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4836
4837 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4838
4839 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4840
4841 * MAINTAINERS (Write After Approval): Move self back from
4842 paper trail.
4843
4844 2014-05-22 Pedro Alves <palves@redhat.com>
4845
4846 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4847 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4848 (disable_randomization, enum exec_direction_kind)
4849 (execution_direction, stop_registers, start_remote)
4850 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4851 (wait_for_inferior, normal_stop, get_last_target_status)
4852 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4853 (insert_step_resume_breakpoint_at_sal)
4854 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4855 (set_step_info, print_stop_event, signal_stop_state)
4856 (signal_print_state, signal_pass_state, signal_stop_update)
4857 (signal_print_update, signal_pass_update)
4858 (update_signals_program_target, clear_exit_convenience_vars)
4859 (displaced_step_dump_bytes, update_observer_mode)
4860 (signal_catch_update, gdb_signal_from_command): Move
4861 declarations ...
4862 * infrun.h: ... to this new file.
4863 * amd64-tdep.c: Include infrun.h.
4864 * annotate.c: Include infrun.h.
4865 * arch-utils.c: Include infrun.h.
4866 * arm-linux-tdep.c: Include infrun.h.
4867 * arm-tdep.c: Include infrun.h.
4868 * break-catch-sig.c: Include infrun.h.
4869 * breakpoint.c: Include infrun.h.
4870 * common/agent.c: Include infrun.h instead of inferior.h.
4871 * corelow.c: Include infrun.h.
4872 * event-top.c: Include infrun.h.
4873 * go32-nat.c: Include infrun.h.
4874 * i386-tdep.c: Include infrun.h.
4875 * inf-loop.c: Include infrun.h.
4876 * infcall.c: Include infrun.h.
4877 * infcmd.c: Include infrun.h.
4878 * infrun.c: Include infrun.h.
4879 * linux-fork.c: Include infrun.h.
4880 * linux-nat.c: Include infrun.h.
4881 * linux-thread-db.c: Include infrun.h.
4882 * monitor.c: Include infrun.h.
4883 * nto-tdep.c: Include infrun.h.
4884 * procfs.c: Include infrun.h.
4885 * record-btrace.c: Include infrun.h.
4886 * record-full.c: Include infrun.h.
4887 * remote-m32r-sdi.c: Include infrun.h.
4888 * remote-mips.c: Include infrun.h.
4889 * remote-notif.c: Include infrun.h.
4890 * remote-sim.c: Include infrun.h.
4891 * remote.c: Include infrun.h.
4892 * reverse.c: Include infrun.h.
4893 * rs6000-tdep.c: Include infrun.h.
4894 * s390-linux-tdep.c: Include infrun.h.
4895 * solib-irix.c: Include infrun.h.
4896 * solib-osf.c: Include infrun.h.
4897 * solib-svr4.c: Include infrun.h.
4898 * target.c: Include infrun.h.
4899 * top.c: Include infrun.h.
4900 * windows-nat.c: Include infrun.h.
4901 * mi/mi-interp.c: Include infrun.h.
4902 * mi/mi-main.c: Include infrun.h.
4903 * python/py-threadevent.c: Include infrun.h.
4904
4905 2014-05-22 Pedro Alves <palves@redhat.com>
4906
4907 * infrun.c (handle_inferior_event): Store the exit code for
4908 --return-child-result here, instead of ...
4909 (print_exited_reason): ... here.
4910
4911 2014-05-21 Pedro Alves <palves@redhat.com>
4912
4913 PR gdb/13860
4914 * gdbthread.h (struct thread_control_state): New field
4915 `command_interp'.
4916 * infrun.c (follow_fork): Copy the new thread control field to the
4917 child fork thread.
4918 (clear_proceed_status_thread): Clear the new thread control field.
4919 (proceed): Set the new thread control field.
4920 * interps.h (command_interp): Declare.
4921 * interps.c (command_interpreter): New global.
4922 (command_interp): New function.
4923 (interp_exec): Set `command_interpreter' while here.
4924 * cli-out.c (cli_uiout_dtor): New function.
4925 (cli_ui_out_impl): Install it.
4926 * mi/mi-interp.c: Include cli-out.h.
4927 (mi_cmd_interpreter_exec): Add comment.
4928 (restore_current_uiout_cleanup): New function.
4929 (ui_out_free_cleanup): New function.
4930 (mi_on_normal_stop): If finishing an execution command started by
4931 a CLI command, or any kind of breakpoint-like event triggered,
4932 print the stop event to the output (CLI) stream.
4933 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4934
4935 2014-05-21 Pedro Alves <palves@redhat.com>
4936
4937 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4938 current source line having changed.
4939 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4940 * infrun.c (normal_stop): Adjust call to
4941 set_current_sal_from_frame.
4942 * source.c (clear_lines_listed_range): New function.
4943 (set_current_source_symtab_and_line, identify_source_line): Clear
4944 the lines listed range.
4945 (line_info): Handle the first "info line" after the current source
4946 line having changed.
4947 * stack.c (print_stack_frame): Remove center handling.
4948 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4949 center sal.line.
4950
4951 2014-05-21 Pedro Alves <palves@redhat.com>
4952
4953 * inf-child.c (inf_child_mourn_inferior): New function.
4954 * inf-child.h (inf_child_mourn_inferior): New declaration.
4955 * darwin-nat.c (darwin_mourn_inferior): Use
4956 inf_child_mourn_inferior.
4957 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4958 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4959 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4960 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4961 * windows-nat.c (windows_mourn_inferior): Likewise.
4962
4963 2014-05-21 Doug Evans <xdje42@gmail.com>
4964
4965 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4966
4967 2014-05-21 Doug Evans <xdje42@gmail.com>
4968
4969 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4970 (gdbscm_out_of_range_error): Ditto.
4971 (gdbscm_memory_error): Ditto.
4972 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4973 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4974 (gdbscm_out_of_range_error): Update.
4975 (gdbscm_memory_error): Update.
4976 (gdbscm_scm_to_target_string_unsafe): Delete.
4977
4978 2014-05-21 Pedro Alves <palves@redhat.com>
4979
4980 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4981 globals.
4982 (inf_child_open_target): New function.
4983 (inf_child_open): Use inf_child_open_target to push the target
4984 instead of erroring out.
4985 (inf_child_disconnect, inf_child_close)
4986 (inf_child_maybe_unpush_target): New functions.
4987 (inf_child_target): Install inf_child_disconnect and
4988 inf_child_close. Store a pointer to the returned object.
4989 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4990 declarations.
4991 * target.c (auto_connect_native_target): New global.
4992 (show_default_run_target): New function.
4993 (find_default_run_target): Return NULL if automatically connecting
4994 to the native target is disabled.
4995 (_initialize_target): Install set/show auto-connect-native-target.
4996 * NEWS: Mention "set auto-connect-native-target", and "target
4997 native".
4998 * linux-nat.c (super_close): New global.
4999 (linux_nat_close): Call super_close.
5000 (linux_nat_add_target): Store a pointer to the base class's
5001 to_close method.
5002 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5003 inf_child_maybe_unpush.
5004 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5005 already pushed.
5006 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5007 the inferior. Use inf_child_maybe_unpush_target.
5008 (inf_ttrace_attach): Don't push the target if it is already
5009 pushed.
5010 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5011 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5012 after mourning the inferior. Use inf_child_maybe_unpush_target.
5013 (darwin_attach_pid): Don't push the target if it is already
5014 pushed.
5015 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5016 mourning the inferior. Use inf_child_maybe_unpush_target.
5017 (gnu_detach): Use inf_child_maybe_unpush_target.
5018 * go32-nat.c (go32_create_inferior): Don't push the target if it
5019 is already pushed.
5020 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5021 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5022 (procfs_open): Rename to ...
5023 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5024 comments. Can target_preopen before changing node. Call
5025 inf_child_open_target to push the target explicitly.
5026 (procfs_attach): Don't push the target if it is already pushed.
5027 (procfs_detach): Use inf_child_maybe_unpush_target.
5028 (procfs_create_inferior): Don't push the target if it is already
5029 pushed.
5030 (nto_native_ops): New global.
5031 (procfs_open): Reimplement.
5032 (procfs_native_open): New function.
5033 (init_procfs_targets): Install procfs_native_open as to_open of
5034 "target native". Store a pointer to the "native" target in
5035 nto_native_ops.
5036 * procfs.c (procfs_attach): Don't push the target if it is already
5037 pushed.
5038 (procfs_detach): Use inf_child_maybe_unpush_target.
5039 (procfs_mourn_inferior): Only unpush the target after mourning the
5040 inferior. Use inf_child_maybe_unpush_target.
5041 (procfs_init_inferior): Don't push the target if it is already
5042 pushed.
5043 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5044 if it is already pushed.
5045
5046 2014-05-21 Pedro Alves <palves@redhat.com>
5047
5048 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5049 and "procfs" targets are now called "native" instead.
5050
5051 2014-05-21 Pedro Alves <palves@redhat.com>
5052
5053 * go32-nat.c (go32_open): Delete.
5054 (go32_target): Don't override the to_open method.
5055
5056 2014-05-21 Pedro Alves <palves@redhat.com>
5057
5058 * nto-procfs.c (procfs_can_run): New function.
5059 (nto_procfs_ops): New global.
5060 (init_procfs_targets): New, based on procfs_target. Install
5061 "target native" in addition to "target procfs".
5062 (_initialize_procfs): Call init_procfs_targets instead of adding
5063 the target here.
5064
5065 2014-05-21 Pedro Alves <palves@redhat.com>
5066
5067 * windows-nat.c (windows_target): Don't override to_shortname,
5068 to_longname or to_doc.
5069
5070 2014-05-21 Pedro Alves <palves@redhat.com>
5071
5072 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5073 to_doc.
5074
5075 2014-05-21 Pedro Alves <palves@redhat.com>
5076
5077 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5078 to_shortname, to_longname or to_doc.
5079
5080 2014-05-21 Pedro Alves <palves@redhat.com>
5081
5082 * go32-nat.c (go32_target): Don't override to_shortname,
5083 to_longname or to_doc.
5084
5085 2014-05-21 Pedro Alves <palves@redhat.com>
5086
5087 * inf-child.c (inf_child_open): Remove mention of "child".
5088 (inf_child_target): Rename target to "native" instead of "child".
5089
5090 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5091
5092 * Makefile.in (SFILES): Delete "regset.c".
5093 (COMMON_OBS): Delete "regset.o".
5094 * regset.c: Remove.
5095 * regset.h (regset_alloc): Delete prototype.
5096
5097 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5098
5099 * sparc-linux-tdep.c (sparc32_linux_gregset)
5100 (sparc32_linux_fpregset): New static regset structures.
5101 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5102 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5103 'fpregset' fields.
5104 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5105 (sparc64_linux_fpregset): New static regset structures.
5106 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5107 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5108 New static regset structures.
5109 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5110 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5111 New static regset structures.
5112 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5113 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5114 New static regset structures.
5115 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5116 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5117 New static regset structures.
5118 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5119
5120 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5121
5122 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5123 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5124 register maps ("regmaps") from "*regset" to "*regmap". Do this
5125 for all regmap types and variables.
5126 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5127 (sparc32_linux_supply_core_gregset)
5128 (sparc32_linux_collect_core_gregset)
5129 (sparc32_linux_supply_core_fpregset)
5130 (sparc32_linux_collect_core_fpregset): Likewise.
5131 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5132 (sparc_gregmap, sparc_fpregmap): ... these.
5133 (sparc_supply_gregset, sparc_collect_gregset)
5134 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5135 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5136 (_initialize_sparc_nat): Rename regmaps.
5137 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5138 (sparc_gregmap, sparc_fpregmap): ... these.
5139 (sparc_supply_gregset, sparc_collect_gregset)
5140 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5141 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5142 Rename macros to...
5143 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5144 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5145 Likewise.
5146 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5147 Rename to...
5148 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5149 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5150 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5151 regmaps.
5152 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5153 (sparc32_bsd_fpregset): Rename to...
5154 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5155 (sparc32_bsd_fpregmap): ... these.
5156 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5157 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5158 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5159 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5160 (struct sparc_gregmap, struct sparc_fpregmap)
5161 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5162 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5163 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5164 (sparc32_supply_regset, sparc32_collect_gregset)
5165 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5166 prototypes.
5167 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5168 (sparc64_linux_ptrace_gregmap): ... this.
5169 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5170 (_initialize_sparc64_linux_nat): Rename regmaps.
5171 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5172 (sparc64_linux_core_gregmap): ... this.
5173 (sparc64_linux_supply_core_gregset)
5174 (sparc64_linux_collect_core_gregset)
5175 (sparc64_linux_supply_core_fpregset)
5176 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5177 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5178 (sparc64_sol2_fpregset): Rename to...
5179 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5180 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5181 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5182 regmaps.
5183 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5184 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5185 (sparc64_bsd_fpregset): Rename to...
5186 (struct sparc_gregmap, sparc64_sol2_gregmap)
5187 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5188 (sparc64_bsd_fpregmap): ... these.
5189 (sparc64_supply_gregset, sparc64_collect_gregset)
5190 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5191 prototypes.
5192 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5193 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5194 (sparc64fbsd_gregmap): ... this.
5195 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5196 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5197 Rename regmaps.
5198 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5199 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5200 (sparc64nbsd_collect_fpregset): Likewise.
5201 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5202 (sparc64nbsd_gregmap): ... this.
5203 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5204 regmaps.
5205 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5206 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5207 (sparc64obsd_gregmap): ... this.
5208 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5209 regmaps.
5210 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5211 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5212 (sparc32nbsd_gregmap): ... this.
5213 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5214 regmaps.
5215
5216 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5217
5218 * score-tdep.c (score7_linux_gregset): New static regset
5219 structure.
5220 (score7_linux_regset_from_core_section): Remove dynamic regset
5221 allocation.
5222 (score_gdbarch_init): Drop allocation of tdep structure.
5223 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5224
5225 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5226
5227 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5228 regset structures.
5229 (am33_regset_from_core_section): Remove dynamic regset
5230 allocations.
5231
5232 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5233
5234 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5235 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5236 structures.
5237 (mips_linux_regset_from_core_section): Remove dynamic regset
5238 allocations.
5239 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5240 'gregset64', 'fpregset', and 'fpregset64'.
5241 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5242 deleted tdep fields.
5243
5244 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5245
5246 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5247 regset structures.
5248 (amd64_regset_from_core_section): Remove dynamic regset
5249 allocations.
5250 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5251 structure.
5252 (amd64obsd_regset_from_core_section): Remove dynamic regset
5253 allocation.
5254 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5255 Likewise.
5256 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5257 x86-common regset supply function.
5258 * i386-tdep.c (i386_collect_gregset): Make static.
5259 (i386_gregset): New global regset structure.
5260 (i386_fpregset, i386_xstateregset): New static regset structures.
5261 (i386_regset_from_core_section): Remove dynamic regset
5262 allocations.
5263 (i386_gdbarch_init): Remove initialization of tdep fields
5264 'gregset', 'fpregset', and 'xstateregset'.
5265 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5266 'fpregset', and 'xstateregset'.
5267 (i386_collect_gregset): Remove prototype.
5268 (i386_gregset): New declaration.
5269 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5270 structure.
5271 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5272 allocation.
5273
5274 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5275
5276 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5277 (arm_linux_vfpregset): New static regset structures.
5278 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5279 regset structures.
5280 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5281 and 'vfpregset' fields.
5282
5283 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5284
5285 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5286 (aarch64_linux_fpregset): New static regset structures.
5287 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5288 of regset structures.
5289 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5290 'fpregset' fields.
5291
5292 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5293
5294 * regset.h (struct regset): Remove gdbarch field.
5295 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5296 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5297 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5298 Likewise.
5299 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5300 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5301 (ppc32_linux_vsxregset): Likewise.
5302 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5303 via the regcache instead of the regset.
5304 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5305 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5306 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5307 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5308 Likewise.
5309
5310 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5311
5312 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5313 Constify structures.
5314 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5315 (alphanbsd_aout_gregset): Likewise.
5316 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5317 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5318 Likewise.
5319 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5320 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5321 Likewise.
5322 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5323 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5324 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5325 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5326 * m88k-tdep.c (m88k_gregset): Likewise.
5327 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5328 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5329 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5330 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5331 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5332 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5333 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5334 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5335 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5336 Likewise.
5337 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5338 * sh-tdep.h (sh_corefile_gregset): Likewise.
5339 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5340 * vax-tdep.c (vax_gregset): Likewise.
5341
5342 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5343
5344 Fix TLS access for -static -pthread.
5345 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5346 (try_thread_db_load_1): Initialize it.
5347 (thread_db_get_thread_local_address): Call it if LM is zero.
5348 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5349 * target.h (struct target_ops) (to_get_thread_local_address): Add
5350 load_module_addr comment.
5351
5352 2014-05-21 Pedro Alves <palves@redhat.com>
5353
5354 * dcache.c (dcache_read_memory_partial): If reading the cache line
5355 fails, fallback to reading just the memory the caller wanted.
5356
5357 2014-05-20 Doug Evans <dje@google.com>
5358
5359 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5360 instead of get_current_arch.
5361
5362 2014-05-20 Pedro Alves <palves@redhat.com>
5363
5364 * NEWS: Mention that compare-sections now works with all targets.
5365
5366 * remote.c (PACKET_qCRC): New enum value.
5367 (remote_verify_memory): Don't send qCRC if the target has no
5368 execution. Use packet_support/packet_ok. If the target doesn't
5369 support the qCRC packet, fallback to a deep memory copy.
5370 (compare_sections_command): Say "target image" instead of "remote
5371 executable".
5372 (_initialize_remote): Add PACKET_qCRC to the list of config
5373 packets that have no associated command. Extend comment.
5374 * target.c (simple_verify_memory, default_verify_memory): New
5375 function.
5376 * target.h (struct target_ops) <to_verify_memory>: Default to
5377 default_verify_memory.
5378 (simple_verify_memory): New declaration.
5379 * target-delegates.c: Regenerate.
5380
5381 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5382
5383 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5384
5385 2014-05-20 Hui Zhu <hui@codesourcery.com>
5386 Yao Qi <yao@codesourcery.com>
5387
5388 PR backtrace/16558
5389 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5390 and change address of sp and pc.
5391
5392 2014-05-19 Tom Tromey <tromey@redhat.com>
5393
5394 * gdbtypes.c (rank_function): Use XNEWVEC.
5395 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5396
5397 2014-05-19 Doug Evans <dje@google.com>
5398
5399 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5400 build_type_unit_groups and moved closer to only caller. Remove
5401 arguments. All references updated. Remove outdated .gdb_index
5402 comment.
5403 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5404 build_type_psymtabs_1.
5405
5406 2014-05-19 Doug Evans <dje@google.com>
5407
5408 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5409 n_type_unit_groups, all_type_unit_groups. All uses removed.
5410 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5411 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5412 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5413 (add_type_unit_group_to_table): Delete.
5414
5415 2014-05-19 Doug Evans <dje@google.com>
5416
5417 * eval.c (evaluate_subexp_standard): Add some comments.
5418
5419 2014-05-17 Doug Evans <xdje42@gmail.com>
5420
5421 * progspace.c (remove_program_space): Delete, unused.
5422 * progspace.h (remove_program_space): Ditto.
5423
5424 2014-05-17 Doug Evans <xdje42@gmail.com>
5425
5426 * inferior.c (prune_inferiors): Fix comment.
5427 (remove_inferior_command): Call prune_program_spaces.
5428
5429 2014-05-16 Doug Evans <dje@google.com>
5430
5431 New command line option -D.
5432 * NEWS: Mention it.
5433 * main.c (set_gdb_data_directory): New function.
5434 (captured_main): Recognize -D. Flag error for --data-directory "".
5435 Call set_gdb_data_directory.
5436 (print_gdb_help): Print --data-directory, -D.
5437 * main.h (set_gdb_data_directory): Declare.
5438 * top.c (staged_gdb_datadir): New static global.
5439 (set_gdb_datadir): Call set_gdb_data_directory
5440 (show_gdb_datadir): New function.
5441 (init_main): Update init of data-directory parameter.
5442
5443 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5444
5445 Import the "dirfd" gnulib module.
5446 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5447 * gnulib/aclocal.m4: Update.
5448 * gnulib/config.in: Update.
5449 * gnulib/configure: Update.
5450 * gnulib/import/Makefile.am: Update.
5451 * gnulib/import/Makefile.in: Update.
5452 * gnulib/import/dirfd.c: New.
5453 * gnulib/import/m4/dirfd.m4: New.
5454 * gnulib/import/m4/gnulib-cache.m4: Update.
5455 * gnulib/import/m4/gnulib-comp.m4: Update.
5456
5457 2014-05-16 Pierre Muller <muller@sourceware.org>
5458 Yao Qi <yao@codesourcery.com>
5459
5460 * valprint.c (print_wchar): Move the code on checking whether
5461 W is a printable wide char to the default branch of switch
5462 statement below. Call wchar_printable instead of gdb_iswprint.
5463
5464 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5465
5466 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5467 ldr.w and ldrd instructions.
5468
5469 2014-05-15 Doug Evans <dje@google.com>
5470
5471 * dwarf2read.c (read_structure_type): Delete outdated comments.
5472
5473 2014-05-14 Tom Tromey <tromey@redhat.com>
5474
5475 * macrocmd.c (print_macro_definition): Reindent.
5476
5477 2014-05-13 Doug Evans <xdje42@gmail.com>
5478
5479 * python/py-cmd.c (cmdpy_completer): Add comment.
5480 (completers): Make const.
5481
5482 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5483
5484 * infrun.c (resume): Remove should_resume (unused). Move up
5485 declaration of resume_ptid.
5486
5487 2014-05-13 Tom Tromey <tromey@redhat.com>
5488
5489 * language.h (unop_type_check): Remove.
5490 (binop_type_check): Don't declare.
5491
5492 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5493
5494 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5495 call to regcache_raw_collect.
5496
5497 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5498
5499 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5500 mi_console->quote as the quoting character.
5501
5502 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5503
5504 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5505
5506 2014-04-29 Tom Tromey <tromey@redhat.com>
5507
5508 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5509 "show debug varobj".
5510
5511 2014-05-07 Kyle McMartin <kyle@redhat.com>
5512
5513 Pushed by Joel Brobecker <brobecker@adacore.com>.
5514 * aarch64-tdep.c (aarch64_software_single_step): New function.
5515 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5516 with aarch64_software_single_step.
5517
5518 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5519
5520 GDB 7.7.1 released.
5521
5522 2014-05-05 Keith Seitz <keiths@redhat.com>
5523
5524 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5525 variable or history value is successfully parsed.
5526
5527 2014-05-05 Yao Qi <yao@codesourcery.com>
5528 Pedro Alves <palves@redhat.com>
5529
5530 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5531 address of blocks that intersects the requested range. Trim
5532 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5533 sections.
5534 * ctf.c (ctf_xfer_partial): Likewise.
5535
5536 2014-05-05 Yao Qi <yao@codesourcery.com>
5537
5538 * printcmd.c (display_command): Remove the check to
5539 target_has_execution.
5540
5541 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5542
5543 * ppcobsd-nat.c: Include "obsd-nat.h".
5544 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5545 add_target.
5546 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5547
5548 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5549
5550 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5551 and 16-bit signed and unsigned arguments. Update comment.
5552 (stap_parse_probe_arguments): Extend code to handle such
5553 arguments. Use warning instead of complaint to notify about
5554 unrecognized bitness.
5555
5556 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5557
5558 PR breakpoints/16889
5559 * stap-probe.c (stap_parse_probe_arguments): Simplify
5560 check for non-prefixed probes (i.e., probes whose
5561 arguments do not start with "N@"). Always set the
5562 argument type to a sane value.
5563
5564 2014-05-01 David Taylor <dtaylor@emc.com>
5565
5566 * remote.c (compare_sections_command): Add -r option to compare
5567 all loadable read-only sections.
5568
5569 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5570
5571 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5572 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5573 Update all callers.
5574 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5575 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5576 Remove unused CORE_ADDR argument. Update all callers.
5577
5578 2014-04-29 Pedro Alves <palves@redhat.com>
5579
5580 * remote.c (struct packet_config) <detect>: Extend comment.
5581 (add_packet_config_cmd): Don't set the config's detect or support
5582 fields here.
5583 (init_all_packet_configs): Also initialize the config's 'detect'
5584 field.
5585 (reset_all_packet_configs_support): New function.
5586 (remote_open_1): Call reset_all_packet_configs_support instead of
5587 init_all_packet_configs.
5588 (_initialize_remote): Initialize all packet configs. Assert that
5589 all packets have an associated command, except a few known
5590 outliers.
5591
5592 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5593
5594 * dwarf2read.c (read_subrange_type): Handle dynamic
5595 DW_AT_lower_bound attributes.
5596
5597 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5598
5599 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5600 dynamic bounds before computing its upper bound.
5601 (ada_discrete_type_low_bound): Same as above with the lower bound.
5602
5603 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5604
5605 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5606 range types. Adjust the array handling implementation to
5607 take advantage of this change.
5608 (resolve_dynamic_range): New function, mostly extracted from
5609 resolve_dynamic_bounds.
5610 (resolve_dynamic_array): New function, mostly extracted from
5611 resolve_dynamic_bounds.
5612 (resolve_dynamic_bounds): Delete.
5613 (resolve_dynamic_type): Reimplement. Add handling of
5614 TYPE_CODE_RANGE types.
5615
5616 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5617
5618 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5619 handling of parallel ___XA types.
5620
5621 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5622
5623 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5624 unnecessary second call to static_unwrap_type.
5625
5626 2014-04-27 Hui Zhu <hui@codesourcery.com>
5627
5628 * stack.c (print_frame_info): Call do_gdb_disassembly with
5629 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5630
5631 2014-04-26 Doug Evans <xdje42@gmail.com>
5632
5633 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5634
5635 2014-04-25 Pedro Alves <palves@redhat.com>
5636
5637 PR server/16255
5638 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5639 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5640 and newline from built string.
5641 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5642 (linux_ptrace_attach_fail_reason): ... this.
5643 * linux-nat.c (linux_nat_attach): Adjust to use
5644 linux_ptrace_attach_fail_reason.
5645
5646 2014-04-25 Pedro Alves <palves@redhat.com>
5647
5648 * remote.c (struct remote_state): Remove multi_process_aware,
5649 non_stop_aware, cond_tracepoints, cond_breakpoints,
5650 breakpoint_commands, fast_tracepoints, static_tracepoints,
5651 install_in_trace, disconnected_tracing,
5652 enable_disable_tracepoints, string_tracing, and
5653 augmented_libraries_svr4_read fields.
5654 (remote_multi_process_p): Move further below in the file.
5655 (struct packet_config): Add comments.
5656 (update_packet_config): Delete function.
5657 (show_packet_config_cmd): Use packet_config_support.
5658 (add_packet_config_cmd): Use NULL as set callback.
5659 (packet_ok): "set remote foo-packet"-style commands no longer
5660 change config->supported -- adjust.
5661 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5662 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5663 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5664 (PACKET_QNonStop, PACKET_multiprocess_feature)
5665 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5666 (PACKET_DisconnectedTracing_feature)
5667 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5668 (set_remote_protocol_packet_cmd): Delete function.
5669 (packet_config_support, packet_support): New functions.
5670 (set_remote_protocol_Z_packet_cmd): Don't call
5671 update_packet_config.
5672 (remote_query_attached, remote_pass_signals)
5673 (remote_program_signals, remote_threads_info)
5674 (remote_threads_extra_info, remote_start_remote): Use
5675 packet_support.
5676 (remote_start_remote): Use packet_config_support and
5677 packet_support.
5678 (init_all_packet_configs): Set all packets to unknown support,
5679 instead of calling update_packet_config.
5680 (remote_check_symbols): Use packet_support.
5681 (remote_supported_packet): Unconditionally set the packet config's
5682 support status.
5683 (remote_multi_process_feature, remote_non_stop_feature)
5684 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5685 (remote_breakpoint_commands_feature)
5686 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5687 (remote_install_in_trace_feature)
5688 (remote_disconnected_tracing_feature)
5689 (remote_enable_disable_tracepoint_feature)
5690 (remote_string_tracing_feature)
5691 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5692 (remote_protocol_features): Adjust to use remote_supported_packet
5693 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5694 "ConditionalTracepoints", "ConditionalBreakpoints",
5695 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5696 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5697 "EnableDisableTracepoints", and "tracenz".
5698 (remote_query_supported): Use packet_support.
5699 (remote_open_1): Adjust.
5700 (extended_remote_attach_1): Use packet_support. Switch on the
5701 result of packet_ok instead of checking whether the packet ended
5702 up disabled.
5703 (remote_vcont_resume): Use packet_support.
5704 (remote_resume, remote_stop_ns, fetch_register_using_p)
5705 (remote_prepare_to_store, store_register_using_P)
5706 (check_binary_download, remote_write_bytes): Use packet_support.
5707 (remote_vkill): Use packet_support. Switch on the result of
5708 packet_ok instead of checking whether the packet ended up
5709 disabled.
5710 (extended_remote_supports_disable_randomization): Use
5711 packet_support.
5712 (extended_remote_run): Switch on the result of packet_ok instead
5713 of checking whether the packet ended up disabled.
5714 (remote_insert_breakpoint, remote_remove_breakpoint)
5715 (remote_insert_watchpoint, remote_remove_watchpoint)
5716 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5717 packet_support.
5718 (remote_search_memory): Use packet_config_support.
5719 (remote_get_thread_local_address, remote_get_tib_address)
5720 (remote_hostio_send_command, remote_can_execute_reverse): Use
5721 packet_support.
5722 (remote_supports_cond_tracepoints)
5723 (remote_supports_cond_breakpoints)
5724 (remote_supports_fast_tracepoints)
5725 (remote_supports_static_tracepoints)
5726 (remote_supports_install_in_trace)
5727 (remote_supports_enable_disable_tracepoint)
5728 (remote_supports_string_tracing)
5729 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5730 the packet config says the feature is enabled or disabled.
5731 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5732 (remote_get_trace_status): Use packet_support.
5733 (remote_set_disconnected_tracing): Adjust to check whether the
5734 feature is enabled with packet_support.
5735 (remote_set_trace_buffer_size, remote_use_agent)
5736 (remote_can_use_agent, remote_supports_btrace): Use
5737 packet_support.
5738 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5739 Use packet_config_support.
5740 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5741 the packet config says the feature is enabled or disabled.
5742 (set_range_stepping): Use packet_support.
5743
5744 2014-04-25 Tom Tromey <tromey@redhat.com>
5745
5746 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5747 argument.
5748
5749 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5750
5751 * NEWS: Mention support for C99 variable length arrays.
5752
5753 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5754
5755 * ada-lang.c (standard_exc): Expand introductory comment.
5756
5757 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5758 Walfred Tedeschi <walfred.tedeschi@intel.com>
5759
5760 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5761 AVX512 registers.
5762 (amd64_linux_read_description): Add code to handle AVX512 xstate
5763 mask and return respective tdesc.
5764 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5765 and features/i386/x32-avx512-linux.c.
5766 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5767 (amd64_linux_core_read_description): Add code to handle AVX512
5768 xstate mask and return respective tdesc.
5769 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5770 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5771 calculation.
5772 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5773 (tdesc_amd64_avx512_linux): New prototype.
5774 (tdesc_x32_avx512_linux): Likewise.
5775 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5776 features/i386/x32-avx512.c.
5777 (amd64_ymm_avx512_names): New register names for pseudo
5778 registers YMM16-31.
5779 (amd64_ymmh_avx512_names): New register names for raw registers
5780 YMMH16-31.
5781 (amd64_k_names): New register names for K registers.
5782 (amd64_zmmh_names): New register names for ZMM raw registers.
5783 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5784 (amd64_xmm_avx512_names): New register names for XMM16-31
5785 registers.
5786 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5787 registers.
5788 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5789 if feature is present.
5790 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5791 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5792 (AMD64_NUM_REGS): Adjust to new number of registers.
5793 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5794 registers supplied via XSTATE by AVX512 registers.
5795 (i386_linux_read_description): Add case for AVX512.
5796 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5797 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5798 (i386_linux_core_read_description): Add case for AVX512.
5799 (i386_linux_init_abi): Install supported register note section
5800 for AVX512.
5801 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5802 AVX512.
5803 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5804 registers to be number of zmm7h + 1.
5805 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5806 * i386-tdep.c: Include features/i386/i386-avx512.c.
5807 (i386_zmm_names): Add ZMM pseudo register names array.
5808 (i386_zmmh_names): Add ZMM raw register names array.
5809 (i386_k_names): Add K raw register names array.
5810 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5811 registers. AVX512 has 16 more ZMM registers than there are YMM
5812 registers.
5813 (i386_zmmh_regnum_p): Add function to look up register number of
5814 ZMM raw registers.
5815 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5816 (i386_k_regnum_p): Likewise for K raw registers.
5817 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5818 registers added by AVX512.
5819 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5820 registers added by AVX512.
5821 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5822 added by AVX512.
5823 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5824 (i386_pseudo_register_name): Add ZMM pseudo registers.
5825 (i386_zmm_type): Construct and return vector registers type for ZMM
5826 registers.
5827 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5828 ZMM0-31 pseudo registers and K registers.
5829 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5830 and YMM16-31 registers from register cache.
5831 (i386_pseudo_register_write): Add code to write K, ZMM and
5832 YMM16-31 registers.
5833 (i386_register_reggroup_p): Add code to include/exclude AVX512
5834 registers in/from respective register groups.
5835 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5836 registers if feature is present in xcr0.
5837 (i386_gdbarch_init): Add code to initialize AVX512 feature
5838 variables in tdep structure, wire in pseudo registers and call
5839 initialize_tdesc_i386_avx512.
5840 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5841 variables.
5842 (i386_regnum): Add AVX512 registers.
5843 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5844 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5845 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5846 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5847 512 bits wide.
5848 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5849 (i386_ymm_avx512_regnum_p): Likewise.
5850 (i386_k_regnum_p): Likewise.
5851 (i386_zmm_regnum_p): Likewise.
5852 (i386_zmmh_regnum_p): Likewise.
5853 * i387-tdep.c : Update year in copyright notice.
5854 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5855 XSAVE buffer.
5856 (XSAVE_YMM_AVX512_ADDR): New macro.
5857 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5858 XSAVE buffer.
5859 (XSAVE_XMM_AVX512_ADDR): New macro.
5860 (xsave_avx512_k_offset): New table for K register offsets in
5861 XSAVE buffer.
5862 (XSAVE_AVX512_K_ADDR): New macro.
5863 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5864 in XSAVE buffer.
5865 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5866 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5867 buffer.
5868 (i387_collect_xsave): Add code to collect AVX512 registers from
5869 XSAVE buffer.
5870 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5871 of XMM16-31 registers.
5872 (I387_NUM_K_REGS): New define for number of K registers.
5873 (I387_K0_REGNUM): New define for K0 register number.
5874 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5875 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5876 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5877 registers.
5878 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5879 (I387_XMM16_REGNUM): New define for XMM16 register number.
5880 (I387_YMM0_REGNUM): New define for YMM0 register number.
5881 (I387_KEND_REGNUM): New define for last K register number.
5882 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5883 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5884 number.
5885 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5886 number.
5887 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5888 size.
5889 * features/Makefile: Add AVX512 related files.
5890 * features/i386/32bit-avx512.xml: New file.
5891 * features/i386/64bit-avx512.xml: Likewise.
5892 * features/i386/amd64-avx512-linux.c: Likewise.
5893 * features/i386/amd64-avx512-linux.xml: Likewise.
5894 * features/i386/amd64-avx512.c: Likewise.
5895 * features/i386/amd64-avx512.xml: Likewise.
5896 * features/i386/i386-avx512-linux.c: Likewise.
5897 * features/i386/i386-avx512-linux.xml: Likewise.
5898 * features/i386/i386-avx512.c: Likewise.
5899 * features/i386/i386-avx512.xml: Likewise.
5900 * features/i386/x32-avx512-linux.c: Likewise.
5901 * features/i386/x32-avx512-linux.xml: Likewise.
5902 * features/i386/x32-avx512.c: Likewise.
5903 * features/i386/x32-avx512.xml: Likewise.
5904 * regformats/i386/amd64-avx512-linux.dat: New file.
5905 * regformats/i386/amd64-avx512.dat: Likewise.
5906 * regformats/i386/i386-avx512-linux.dat: Likewise.
5907 * regformats/i386/i386-avx512.dat: Likewise.
5908 * regformats/i386/x32-avx512-linux.dat: Likewise.
5909 * regformats/i386/x32-avx512.dat: Likewise.
5910 * NEWS: Add note about new support for AVX512.
5911
5912
5913 2014-04-23 Pedro Alves <palves@redhat.com>
5914
5915 * breakpoint.c (insert_bp_location): Tolerate errors if the
5916 breakpoint is set in a user-loaded objfile.
5917 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5918 location is marked shlib_disabled. If the breakpoint is set in a
5919 user-loaded objfile is a GDB-side memory breakpoint, validate it
5920 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5921 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5922 flag.
5923 * mem-break.c (memory_validate_breakpoint): New function.
5924 * objfiles.c (userloaded_objfile_contains_address_p): New
5925 function.
5926 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5927 * target.h (memory_validate_breakpoint): New declaration.
5928
5929 2014-04-23 Pedro Alves <palves@redhat.com>
5930
5931 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5932 the breakpoint is set in a shared library, only suppress
5933 errors for software breakpoints, not hardware breakpoints.
5934
5935 2014-04-22 Pedro Alves <palves@redhat.com>
5936
5937 * infrun.c (schedlock_applies): New function, factored out from
5938 find_thread_needs_step_over.
5939 (find_thread_needs_step_over): Use it.
5940 (switch_back_to_stepped_thread): Always clear trap_expected if the
5941 step over is finished. Return early if scheduler locking applies.
5942 Look for the stepping thread and a potential step-over thread with
5943 a single loop.
5944 (currently_stepping_or_nexting_callback): Delete.
5945
5946 2014-04-22 Nick Clifton <nickc@redhat.com>
5947
5948 * NEWS: Mention that ARM sim now supports tracing.
5949
5950 2014-04-22 Yao Qi <yao@codesourcery.com>
5951
5952 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5953 to ...
5954 * tracefile.c (tracefile_fetch_registers): ... it. New
5955 function.
5956 * tracefile.h (tracefile_fetch_registers): Declare.
5957 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5958 tracefile_fetch_registers.
5959
5960 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5961
5962 PR gdb/14018
5963 * windows-nat.c (thread_rec): Don't display a warning when
5964 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5965 fails for any reason, set th->suspended to -1, so that we don't
5966 try to resume such a thread. Also, don't return NULL in these
5967 cases, to avoid completely ruin the session due to "PC register is
5968 not available" error.
5969 (do_windows_fetch_inferior_registers): Check errors in
5970 GetThreadContext call.
5971 (windows_continue): Accept an additional argument KILLED; if not
5972 zero, ignore errors in the SetThreadContext call, since the
5973 inferior was killed and is shutting down.
5974 (windows_resume, get_windows_debug_event)
5975 (windows_create_inferior, windows_mourn_inferior)
5976 (windows_kill_inferior): All callers of windows_continue changed
5977 to adjust to its new calling sequence.
5978
5979 2014-04-19 Yao Qi <yao@codesourcery.com>
5980
5981 * ctf.c (ctf_open): Call post_create_inferior.
5982
5983 2014-04-19 Yao Qi <yao@codesourcery.com>
5984
5985 * ctf.c (handle_id): New static variable.
5986 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5987 value. Get the declaration of event "register" and get length
5988 of field "contents".
5989
5990 2014-04-19 Yao Qi <yao@codesourcery.com>
5991
5992 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5993
5994 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5995
5996 * valops.c (oload_method_static): Remove unnecessary argument
5997 METHOD. Update all callers.
5998
5999 2014-04-18 Pedro alves <palves@redhat.com>
6000 Tom Tromey <tromey@redhat.com>
6001
6002 PR backtrace/15558
6003 * frame.c (get_prev_frame_1): Rename to ...
6004 (get_prev_frame_always): ... this, and make extern. Adjust.
6005 (skip_artificial_frames): Use get_prev_frame_always.
6006 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6007 (get_frame_unwind_stop_reason): Adjust to rename.
6008 * frame.h (get_prev_frame_always): Declare.
6009 * inline-frame.c: Include frame.h.
6010 (inline_frame_this_id): Use get_prev_frame_always.
6011
6012 2014-04-18 Tristan Gingold <gingold@adacore.com>
6013
6014 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6015 code by using bfd_mach_o_get_base_address.
6016
6017 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6018
6019 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6020 (spu_ax_pseudo_register_collect): New function.
6021 (spu_ax_pseudo_register_push_stack): Likewise.
6022 (spu_dwarf_reg_to_regnum): Likewise.
6023 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6024
6025 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6026
6027 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6028 Replace FRAME argument with FRAME_ID.
6029 * gdbarch.c, gdbarch.h: Regenerate.
6030 * findvar.c (default_value_from_register): Add GDBARCH argument;
6031 replace FRAME by FRAME_ID. No longer call get_frame_id.
6032 (value_from_register): Update call to gdbarch_value_from_register.
6033 * value.h (default_value_from_register): Update prototype.
6034 * s390-linux-tdep.c (s390_value_from_register): Update interface
6035 and call to default_value_from_register.
6036 * spu-tdep.c (spu_value_from_register): Likewise.
6037
6038 * findvar.c (address_from_register): Remove TYPE argument.
6039 Do not call value_from_register; use gdbarch_value_from_register
6040 with null_frame_id instead.
6041 * value.h (address_from_register): Update prototype.
6042 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6043 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6044 address_from_register interface change.
6045
6046 2014-04-17 Yao Qi <yao@codesourcery.com>
6047
6048 * gdbtypes.h: Update comments to link to types and macros'
6049 definitions.
6050
6051 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6052
6053 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6054
6055 2014-04-16 Keith Seitz <keiths@redhat.com>
6056
6057 PR gdb/15827
6058 * dwarf2read.c (skip_one_die): Check that all relative-offset
6059 sibling DIEs fall within range of the current reader's buffer.
6060 (read_partial_die): Likewise.
6061
6062 2014-04-16 Keith Seitz <keiths@redhat.com>
6063
6064 PR c++/16597
6065 * cp-namespace.c (lookup_symbol_file): If the type name of
6066 `this' is NULL, return immediately.
6067
6068 2014-04-14 Keith Seitz <keiths@redhat.com>
6069
6070 PR c++/16253
6071 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6072 from symbol_matches_domain in symtab.c. All local callers
6073 of symbol_matches_domain updated.
6074 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6075 search STRUCT_DOMAIN.
6076 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6077 independently. standard_lookup will do that automatically.
6078 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6079 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6080 (cp_lookup_symbol_in_namespace): Likewise.
6081 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6082 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6083 may return a STRUCT_DOMAIN match.
6084 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6085 * cp-support.c: Include language.h.
6086 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6087 VAR_DOMAIN.
6088 * psymtab.c (match_partial_symbol): Compare the requested
6089 domain with the symbol's domain directly.
6090 (lookup_partial_symbol): Likewise.
6091 * symtab.c (lookup_symbol_in_language): Explain when/why
6092 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6093 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6094 appropriate languages.
6095 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6096 and moved to ada-lang.c
6097 (lookup_block_symbol): Explain that this function only returns
6098 symbol matching the requested DOMAIN.
6099 Compare the requested domain with the symbol's domain directly.
6100 (iterate_over_symbols): Compare the requested domain with the
6101 symbol's domain directly.
6102 * symtab.h (symbol_matches_domain): Remove.
6103
6104 2014-04-14 Tom Tromey <tromey@redhat.com>
6105
6106 PR c++/15246:
6107 * c-exp.y (type_aggregate_p): New function.
6108 (qualified_name, classify_inner_name): Use it.
6109 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6110 and TYPE_TARGET_TYPE of an enum type.
6111 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6112 an enum type.
6113 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6114 handle TYPE_DECLARED_CLASS.
6115 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6116 types.
6117 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6118 * valops.c (enum_constant_from_type): New function.
6119 (value_aggregate_elt): Use it.
6120 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6121 TYPE_CODE_ENUM.
6122
6123 2014-04-14 Tom Tromey <tromey@redhat.com>
6124
6125 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6126 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6127 const.
6128 * value.h (value_aggregate_elt): Update.
6129
6130 2014-04-14 Tom Tromey <tromey@redhat.com>
6131
6132 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6133
6134 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6135
6136 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6137 (evaluate_subexp_standard): Pass noside argument.
6138 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6139 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6140 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6141 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6142 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6143
6144 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6145
6146 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6147 points to a constant blob.
6148
6149 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6150
6151 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6152 property and store it as the high bound and flag the range accordingly.
6153 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6154 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6155 * gdbtypes.h (enum range_flags): New enum.
6156 (struct range_bounds): Add flags member.
6157
6158 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6159
6160 * c-typeprint.c (c_type_print_varspec_suffix): Added
6161 check for not yet resolved high bound. If unresolved, print
6162 "variable length" string to the console instead of random
6163 length.
6164
6165 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6166
6167 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6168 value.
6169 (ada_template_to_fixed_record_type_1): Likewise.
6170 (ada_to_fixed_type_1): Likewise.
6171 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6172 (cp_print_value): Likewise.
6173 * d-valprint.c (dynamic_array_type): Likewise.
6174 * findvar.c (address_of_variable): Likewise.
6175 * jv-valprint.c (java_value_print): Likewise.
6176 * valops.c (value_ind): Likewise.
6177 * value.c (coerce_ref): Likewise.
6178
6179 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6180
6181 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6182 value and retrieve the dynamic type size.
6183
6184 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6185
6186 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6187 passed to sizeof is dynamic evaluate the argument to compute the length.
6188
6189 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6190 Joel Brobecker <brobecker@adacore.com>
6191
6192 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6193 (dwarf2_evaluate_property): New function.
6194 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6195 * dwarf2read.c (attr_to_dynamic_prop): New function.
6196 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6197 attribute.
6198 * gdbtypes.c: Include dwarf2loc.h.
6199 (is_dynamic_type): New function.
6200 (resolve_dynamic_type): New function.
6201 (resolve_dynamic_bounds): New function.
6202 (get_type_length): New function.
6203 (check_typedef): Use get_type_length to compute type length.
6204 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6205 (TYPE_LOW_BOUND_KIND): New macro.
6206 (is_dynamic_type): New function prototype.
6207 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6208 to resolve dynamic properties of the type. Update comment.
6209 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6210
6211 2014-04-14 Richard Henderson <rth@redhat.com>
6212
6213 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6214
6215 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6216 Doug Evans <xdje42@gmail.com>
6217
6218 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6219 dereference TYPE_CODE_REF values.
6220
6221 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6222
6223 Revert the following changes due to regressions:
6224
6225 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6226 (dwarf2_evaluate_property): New function.
6227 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6228 * dwarf2read.c (attr_to_dynamic_prop): New function.
6229 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6230 attribute.
6231 * gdbtypes.c: Include dwarf2loc.h.
6232 (is_dynamic_type): New function.
6233 (resolve_dynamic_type): New function.
6234 (resolve_dynamic_bounds): New function.
6235 (get_type_length): New function.
6236 (check_typedef): Use get_type_length to compute type length.
6237 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6238 (TYPE_LOW_BOUND_KIND): New macro.
6239 (is_dynamic_type): New function prototype.
6240 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6241 to resolve dynamic properties of the type. Update comment.
6242 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6243
6244 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6245 passed to sizeof is dynamic evaluate the argument to compute the length.
6246
6247 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6248 value and retrieve the dynamic type size.
6249
6250 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6251 (ada_template_to_fixed_record_type_1): Likewise.
6252 (ada_to_fixed_type_1): Likewise.
6253 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6254 (cp_print_value): Likewise.
6255 * d-valprint.c (dynamic_array_type): Likewise.
6256 * eval.c (evaluate_subexp_with_coercion): Likewise.
6257 * findvar.c (address_of_variable): Likewise.
6258 * jv-valprint.c (java_value_print): Likewise.
6259 * valops.c (value_ind): Likewise.
6260 * value.c (coerce_ref): Likewise.
6261
6262 * c-typeprint.c (c_type_print_varspec_suffix): Added
6263 check for not yet resolved high bound. If unresolved, print
6264 "variable length" string to the console instead of random
6265 length.
6266
6267 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6268 property and store it as the high bound and flag the range accordingly.
6269 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6270 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6271 * gdbtypes.h (enum range_flags): New enum.
6272 (struct range_bounds): Add flags member.
6273
6274 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6275 points to a constant blob.
6276
6277 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6278 (evaluate_subexp_standard): Pass noside argument.
6279 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6280 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6281 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6282 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6283 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6284
6285 2014-04-11 Keith Seitz <keiths@redhat.com>
6286
6287 PR c++/16675
6288 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6289 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6290 reference types.
6291
6292 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6293
6294 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6295 (evaluate_subexp_standard): Pass noside argument.
6296 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6297 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6298 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6299 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6300 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6301
6302 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6303
6304 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6305 points to a constant blob.
6306
6307 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6308
6309 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6310 property and store it as the high bound and flag the range accordingly.
6311 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6312 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6313 * gdbtypes.h (enum range_flags): New enum.
6314 (struct range_bounds): Add flags member.
6315
6316 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6317
6318 * c-typeprint.c (c_type_print_varspec_suffix): Added
6319 check for not yet resolved high bound. If unresolved, print
6320 "variable length" string to the console instead of random
6321 length.
6322
6323 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6324
6325 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6326 (ada_template_to_fixed_record_type_1): Likewise.
6327 (ada_to_fixed_type_1): Likewise.
6328 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6329 (cp_print_value): Likewise.
6330 * d-valprint.c (dynamic_array_type): Likewise.
6331 * eval.c (evaluate_subexp_with_coercion): Likewise.
6332 * findvar.c (address_of_variable): Likewise.
6333 * jv-valprint.c (java_value_print): Likewise.
6334 * valops.c (value_ind): Likewise.
6335 * value.c (coerce_ref): Likewise.
6336
6337 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6338
6339 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6340 value and retrieve the dynamic type size.
6341
6342 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6343
6344 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6345 passed to sizeof is dynamic evaluate the argument to compute the length.
6346
6347 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6348
6349 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6350 (dwarf2_evaluate_property): New function.
6351 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6352 * dwarf2read.c (attr_to_dynamic_prop): New function.
6353 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6354 attribute.
6355 * gdbtypes.c: Include dwarf2loc.h.
6356 (is_dynamic_type): New function.
6357 (resolve_dynamic_type): New function.
6358 (resolve_dynamic_bounds): New function.
6359 (get_type_length): New function.
6360 (check_typedef): Use get_type_length to compute type length.
6361 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6362 (TYPE_LOW_BOUND_KIND): New macro.
6363 (is_dynamic_type): New function prototype.
6364 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6365 to resolve dynamic properties of the type. Update comment.
6366 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6367
6368 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6369
6370 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6371 declaring high/low bounds and change uses accordingly. Call
6372 create_range_type instead of create_static_range_type.
6373 * gdbtypes.c (create_range_type): New function.
6374 (create_range_type): Convert bounds into struct bound_prop and pass
6375 them to create_range_type.
6376 * gdbtypes.h (struct bound_prop): New struct.
6377 (create_range_type): New function prototype.
6378 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6379 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6380 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6381 part of the bound.
6382 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6383
6384 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6385
6386 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6387 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6388 * ada-lang.c: All uses of create_range_type updated.
6389 * coffread.c: All uses of create_range_type updated.
6390 * dwarf2read.c: All uses of create_range_type updated.
6391 * f-exp.y: All uses of create_range_type updated.
6392 * m2-valprint.c: All uses of create_range_type updated.
6393 * mdebugread.c: All uses of create_range_type updated.
6394 * stabsread.c: All uses of create_range_type updated.
6395 * valops.c: All uses of create_range_type updated.
6396 * valprint.c: All uses of create_range_type updated.
6397
6398 2014-04-10 Pedro Alves <palves@redhat.com>
6399
6400 * breakpoint.c (single_step_breakpoints)
6401 (single_step_gdbarch): Move up in the file.
6402 (one_breakpoint_xfer_memory): New function, factored out from ...
6403 (breakpoint_xfer_memory): ... here. Also process single-step
6404 breakpoints.
6405
6406 2014-04-09 Tristan Gingold <gingold@adacore.com>
6407
6408 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6409 comments.
6410 (darwin_decode_exception_message): Free port only after use.
6411
6412 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6413
6414 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6415 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6416 when setting the size of call_length.
6417
6418 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6419
6420 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6421 dereference TYPE_CODE_REF values.
6422
6423 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6424
6425 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6426 end of warning message.
6427
6428 2014-04-03 Doug Evans <dje@google.com>
6429
6430 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6431 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6432
6433 2014-04-02 Alan Modra <amodra@gmail.com>
6434
6435 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6436 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6437 (struct symbol_file_add_from_memory_args): Add size field.
6438 (find_vdso_size): New function.
6439 (add_vsyscall_page): Attempt to find vdso size.
6440
6441 2014-04-01 Doug Evans <dje@google.com>
6442
6443 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6444
6445 2014-04-01 Tristan Gingold <gingold@adacore.com>
6446
6447 * darwin-nat.c (darwin_encode_reply): Add prototype.
6448 (darwin_decode_exception_message): Reply to unknown inferiors.
6449 (darwin_decode_message): Handle message by id. Ignore message
6450 to unknown inferior.
6451 (darwin_wait): Discard unknown messages, add debug trace.
6452
6453 2014-03-31 Doug Evans <dje@google.com>
6454
6455 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6456 comp_dir_string.
6457
6458 2014-03-31 Doug Evans <dje@google.com>
6459
6460 New option "set print symbol-loading".
6461 * NEWS: Mention it.
6462 * solib.c (solib_read_symbols): Only print symbol loading messages
6463 if requested.
6464 (solib_add): If symbol loading is in "brief" mode, notify user
6465 symbols are being loaded.
6466 (reload_shared_libraries_1): Ditto.
6467 * symfile.c (print_symbol_loading_off): New static global.
6468 (print_symbol_loading_brief): New static global.
6469 (print_symbol_loading_full): New static global.
6470 (print_symbol_loading_enums): New static global.
6471 (print_symbol_loading): New static global.
6472 (print_symbol_loading_p): New function.
6473 (symbol_file_add_with_addrs): Only print symbol loading messages
6474 if requested.
6475 (_initialize_symfile): Register "print symbol-loading" set/show
6476 command.
6477 * symfile.h (print_symbol_loading_p): Declare.
6478
6479 2014-03-30 Doug Evans <xdje42@gmail.com>
6480
6481 * infrun.c (set_last_target_status): New function.
6482 (handle_inferior_event): Call it.
6483
6484 2014-03-30 Doug Evans <xdje42@gmail.com>
6485
6486 * inferior.h (enum stop_kind): Improve comment.
6487
6488 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6489
6490 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6491 a reference, strip the reference layer before calling
6492 the lang_ops value_has_mutated callback.
6493
6494 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6495
6496 Remove some globals from our parser.
6497 * language.c (unk_lang_parser): Add "struct parser_state"
6498 argument.
6499 * language.h (struct language_defn) <la_parser>: Likewise.
6500 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6501 (initialize_expout): Add "struct parser_state" argument.
6502 Rewrite function to use the parser state.
6503 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6504 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6505 write_exp_elt_longcst, write_exp_elt_dblcst,
6506 write_exp_elt_decfloatcst, write_exp_elt_type,
6507 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6508 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6509 write_dollar_variable): Likewise.
6510 (parse_exp_in_context_1): Use parser state.
6511 (insert_type_address_space): Add "struct parser_state" argument.
6512 Use parser state.
6513 (increase_expout_size): New function.
6514 * parser-defs.h: Forward declare "struct language_defn" and
6515 "struct parser_state".
6516 (expout, expout_size, expout_ptr): Remove extern declarations.
6517 (parse_gdbarch, parse_language): Rewrite macro declarations to
6518 accept the parser state.
6519 (struct parser_state): New struct.
6520 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6521 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6522 write_exp_elt_decfloatcst, write_exp_elt_type,
6523 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6524 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6525 write_exp_msymbol, write_dollar_variable,
6526 mark_struct_expression, insert_type_address_space): Add "struct
6527 parser_state" argument.
6528 (increase_expout_size): New function.
6529 * utils.c (do_clear_parser_state): New function.
6530 (make_cleanup_clear_parser_state): Likewise.
6531 * utils.h (make_cleanup_clear_parser_state): New function
6532 prototype.
6533 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6534 Update calls to write_exp* in order to pass the parser state.
6535 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6536 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6537 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6538 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6539 * stap-probe.c (stap_parse_register_operand): Likewise.
6540 (stap_parse_single_operand): Likewise.
6541 (stap_parse_argument_1): Likewise.
6542 (stap_parse_argument): Use parser state.
6543 * stap-probe.h: Include "parser-defs.h".
6544 (struct stap_parse_info) <pstate>: New field.
6545 * c-exp.y (parse_type): Rewrite to use parser state.
6546 (yyparse): Redefine to c_parse_internal.
6547 (pstate): New global variable.
6548 (parse_number): Add "struct parser_state" argument.
6549 (write_destructor_name): Likewise.
6550 (type_exp): Update calls to write_exp* and similars in order to
6551 use parser state.
6552 (exp1, exp, variable, qualified_name, space_identifier,
6553 typename, typebase): Likewise.
6554 (write_destructor_name, parse_number, lex_one_token,
6555 classify_name, classify_inner_name, c_parse): Add "struct
6556 parser_state" argument. Update function to use parser state.
6557 * c-lang.h: Forward declare "struct parser_state".
6558 (c_parse): Add "struct parser_state" argument.
6559 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6560 (yyparse): Redefine macro to ada_parse_internal.
6561 (pstate): New variable.
6562 (write_int, write_object_renaming, write_var_or_type,
6563 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6564 type_int, type_long, type_long_long, type_float, type_double,
6565 type_long_double, type_char, type_boolean, type_system_address):
6566 Add "struct parser_state" argument.
6567 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6568 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6569 var_or_type, aggregate, aggregate_component_list,
6570 positional_list, others, component_group,
6571 component_associations): Update calls to write_exp* and similar
6572 functions in order to use parser state.
6573 (ada_parse, write_var_from_sym, write_int,
6574 write_exp_op_with_string, write_object_renaming,
6575 find_primitive_type, write_selectors, write_ambiguous_var,
6576 write_var_or_type, write_name_assoc, type_int, type_long,
6577 type_long_long, type_float, type_double, type_long_double,
6578 type_char, type_boolean, type_system_address): Add "struct
6579 parser_state" argument. Adjust function to use parser state.
6580 * ada-lang.c (parse): Likewise.
6581 * ada-lang.h: Forward declare "struct parser_state".
6582 (ada_parse): Add "struct parser_state" argument.
6583 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6584 calls to both functions.
6585 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6586 parser state.
6587 (yyparse): Redefine macro to f_parse_internal.
6588 (pstate): New variable.
6589 (parse_number): Add "struct parser_state" argument.
6590 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6591 and similars in order to use parser state.
6592 (parse_number): Adjust code to use parser state.
6593 (yylex): Likewise.
6594 (f_parse): New function.
6595 * f-lang.h: Forward declare "struct parser_state".
6596 (f_parse): Add "struct parser_state" argument.
6597 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6598 parser state.
6599 (yyparse): Redefine macro for java_parse_internal.
6600 (pstate): New variable.
6601 (push_expression_name, push_expression_name, insert_exp): Add
6602 "struct parser_state" argument.
6603 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6604 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6605 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6606 PostIncrementExpression, PostDecrementExpression,
6607 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6608 UnaryExpressionNotPlusMinus, CastExpression,
6609 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6610 RelationalExpression, EqualityExpression, AndExpression,
6611 ExclusiveOrExpression, InclusiveOrExpression,
6612 ConditionalAndExpression, ConditionalOrExpression,
6613 ConditionalExpression, Assignment, LeftHandSide): Update
6614 calls to write_exp* and similars in order to use parser state.
6615 (parse_number): Ajust code to use parser state.
6616 (yylex): Likewise.
6617 (java_parse): New function.
6618 (push_variable): Add "struct parser_state" argument. Adjust
6619 code to user parser state.
6620 (push_fieldnames, push_qualified_expression_name,
6621 push_expression_name, insert_exp): Likewise.
6622 * jv-lang.h: Forward declare "struct parser_state".
6623 (java_parse): Add "struct parser_state" argument.
6624 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6625 parser state.
6626 (yyparse): Redefine macro to m2_parse_internal.
6627 (pstate): New variable.
6628 (type_exp, exp, fblock, variable, type): Update calls to
6629 write_exp* and similars to use parser state.
6630 (yylex): Likewise.
6631 (m2_parse): New function.
6632 * m2-lang.h: Forward declare "struct parser_state".
6633 (m2_parse): Add "struct parser_state" argument.
6634 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6635 * objc-lang.h: Forward declare "struct parser_state".
6636 (end_msglist): Add "struct parser_state" argument.
6637 * p-exp.y (parse_type): Rewrite macro to use parser state.
6638 (yyparse): Redefine macro to pascal_parse_internal.
6639 (pstate): New variable.
6640 (parse_number): Add "struct parser_state" argument.
6641 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6642 write_exp* and similars in order to use parser state.
6643 (parse_number, yylex): Adjust code to use parser state.
6644 (pascal_parse): New function.
6645 * p-lang.h: Forward declare "struct parser_state".
6646 (pascal_parse): Add "struct parser_state" argument.
6647 * go-exp.y (parse_type): Rewrite macro to use parser state.
6648 (yyparse): Redefine macro to go_parse_internal.
6649 (pstate): New variable.
6650 (parse_number): Add "struct parser_state" argument.
6651 (type_exp, exp1, exp, variable, type): Update calls to
6652 write_exp* and similars in order to use parser state.
6653 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6654 to use parser state.
6655 (go_parse): Likewise.
6656 * go-lang.h: Forward declare "struct parser_state".
6657 (go_parse): Add "struct parser_state" argument.
6658
6659 2014-03-27 Doug Evans <dje@google.com>
6660
6661 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6662
6663 2014-03-27 Doug Evans <dje@google.com>
6664
6665 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6666 Remove argument abbrev_section. All callers updated.
6667
6668 2014-03-27 Doug Evans <dje@google.com>
6669
6670 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6671 addr_base, ranges_base.
6672
6673 2014-03-26 Keith Seitz <keiths@redhat.com>
6674
6675 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6676 types, not VAR_DOMAIN.
6677
6678 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6679
6680 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6681 "ra" registers.
6682 * features/nios2-linux.c: Regenerated.
6683 * features/nios2.c: Regenerated.
6684
6685 2014-03-25 Pedro Alves <palves@redhat.com>
6686
6687 * cli/cli-script.c (script_from_file): Force the interpreter to
6688 sync mode.
6689
6690 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6691
6692 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6693 small stack allocation.
6694
6695 2014-03-24 Tristan Gingold <gingold@adacore.com>
6696
6697 * darwin-nat.c (exc_server): Remove unused prototype.
6698 (darwin_dump_message): Correctly display data on x86_64.
6699 (darwin_encode_reply): Fix style.
6700 Add comments and fix indentation.
6701
6702 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6703
6704 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6705
6706 2014-03-22 Doug Evans <xdje42@gmail.com>
6707
6708 * infcmd.c: Whitespace fixes.
6709 (interrupt_command): Merge two function comments into one.
6710
6711 2014-03-22 Doug Evans <xdje42@gmail.com>
6712
6713 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6714 All uses updated.
6715
6716 2014-03-22 Yao Qi <yao@codesourcery.com>
6717
6718 * remote.c (target_read_live_memory): Remove.
6719 (memory_xfer_live_readonly_partial): Rename it to
6720 remote_xfer_live_readonly_partial. Remove argument 'object'.
6721 All callers updated. Call remote_read_bytes_1
6722 instead of target_read_live_memory.
6723 * tracepoint.c (set_traceframe_number): Remove.
6724 (make_cleanup_restore_traceframe_number): Likewise .
6725 * tracepoint.h (set_traceframe_number): Remove declaration.
6726 (make_cleanup_restore_traceframe_number): Likewise.
6727
6728 2014-03-22 Yao Qi <yao@codesourcery.com>
6729
6730 * remote.c (remote_read_bytes): Move code on reading from the
6731 remote stub to ...
6732 (remote_read_bytes_1): ... here. New function.
6733
6734 2014-03-22 Yao Qi <yao@codesourcery.com>
6735
6736 * ctf.c (ctf_xfer_partial): Check the return value of
6737 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6738 return TARGET_XFER_UNAVAILABLE.
6739 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6740 * target.c (target_read_live_memory): Move it to remote.c.
6741 (memory_xfer_live_readonly_partial): Likewise.
6742 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6743 * remote.c (target_read_live_memory): Moved from target.c.
6744 (memory_xfer_live_readonly_partial): Likewise.
6745 (remote_read_bytes): Factored out from
6746 memory_xfer_partial_1.
6747
6748 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6749
6750 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6751 NULL pointer.
6752
6753 2014-03-21 Pedro Alves <palves@redhat.com>
6754
6755 * infrun.c (normal_stop): Extend comment.
6756
6757 2014-03-21 Hui Zhu <hui@codesourcery.com>
6758 Pedro Alves <palves@redhat.com>
6759
6760 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6761 static buffer.
6762 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6763 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6764 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6765
6766 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6767
6768 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6769 `z' formatted output modifier.
6770
6771 2014-03-20 Tom Tromey <tromey@redhat.com>
6772 Sergio Durigan Junior <sergiodj@redhat.com>
6773
6774 * probe.c (parse_probes): Turn assert into an ordinary error.
6775 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6776 exceptions when parsing probes. Rearrange the code for clarity.
6777
6778 2014-03-20 Tom Tromey <tromey@redhat.com>
6779
6780 PR gdb/14135
6781 * top.c (execute_command): Only dispatch events if the command
6782 started the target.
6783
6784 2014-03-20 Tom Tromey <tromey@redhat.com>
6785
6786 PR cli/15718
6787 * infcall.c: Include event-top.h.
6788 (run_inferior_call): Call async_disable_stdin if needed.
6789
6790 2014-03-20 Pedro Alves <palves@redhat.com>
6791
6792 * infrun.c (prepare_to_proceed): Delete.
6793 (thread_still_needs_step_over): New function.
6794 (find_thread_needs_step_over): New function.
6795 (proceed): If the current thread needs a step-over, set its
6796 steping_over_breakpoint flag. Adjust to use
6797 find_thread_needs_step_over instead of prepare_to_proceed.
6798 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6799 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6800 breakpoint.
6801 (switch_back_to_stepped_thread): Step over breakpoints of all
6802 threads not the stepping thread, before switching back to the
6803 stepping thread.
6804
6805 2014-03-20 Pedro Alves <palves@redhat.com>
6806
6807 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6808 extern.
6809 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6810 * infrun.c (saved_singlestep_ptid)
6811 (stepping_past_singlestep_breakpoint): Delete.
6812 (resume): Remove stepping_past_singlestep_breakpoint handling.
6813 (proceed): Store the prev_pc of the stepping thread too.
6814 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6815 singlestep_pc.
6816 (enum infwait_states): Delete infwait_thread_hop_state.
6817 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6818 field.
6819 (handle_inferior_event): Adjust.
6820 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6821 handling and the thread-hop code. Before removing single-step
6822 breakpoints, check whether the thread hit a single-step breakpoint
6823 of another thread. If it did, the trap is not a random signal.
6824 (switch_back_to_stepped_thread): If the event thread hit a
6825 single-step breakpoint, unblock it before switching to the
6826 stepping thread. Handle the case of the stepped thread having
6827 advanced already.
6828 (keep_going): Handle the case of the current thread moving past a
6829 single-step breakpoint.
6830
6831 2014-03-20 Pedro Alves <palves@redhat.com>
6832
6833 PR breakpoints/7143
6834 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6835 are being stepped over.
6836 (breakpoint_address_match): Make extern.
6837 * breakpoint.h (breakpoint_address_match): New declaration.
6838 * inferior.h (stepping_past_instruction_at): New declaration.
6839 * infrun.c (struct step_over_info): New type.
6840 (step_over_info): New global.
6841 (set_step_over_info, clear_step_over_info)
6842 (stepping_past_instruction_at): New functions.
6843 (handle_inferior_event): Clear the step-over info when
6844 trap_expected is cleared.
6845 (resume): Remove now stale comment.
6846 (clear_proceed_status): Clear step-over info.
6847 (proceed): Adjust step-over handling to set or clear the step-over
6848 info instead of removing all breakpoints.
6849 (handle_signal_stop): When setting up a thread-hop, don't remove
6850 breakpoints here.
6851 (stop_stepping): Clear step-over info.
6852 (keep_going): Adjust step-over handling to set or clear step-over
6853 info and then always inserting breakpoints, instead of removing
6854 all breakpoints when stepping over one.
6855
6856 2014-03-20 Pedro Alves <palves@redhat.com>
6857
6858 * infrun.c (previous_inferior_ptid): Adjust comment.
6859 (deferred_step_ptid): Delete.
6860 (infrun_thread_ptid_changed, prepare_to_proceed)
6861 (init_wait_for_inferior): Adjust.
6862 (handle_signal_stop): Delete deferred_step_ptid handling.
6863
6864 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6865
6866 PR gdb/15358
6867 * defs.h (sync_quit_force_run): New declaration.
6868 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6869 * event-top.c (async_sigterm_handler): New declaration.
6870 (async_sigterm_token): New variable.
6871 (async_init_signals): Create also async_sigterm_token.
6872 (async_sigterm_handler): New function.
6873 (sync_quit_force_run): New variable.
6874 (handle_sigterm): Replace quit_force call by other calls.
6875 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6876
6877 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6878
6879 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6880 offset into SPE pseudo registers.
6881
6882 2014-03-18 Pedro Alves <palves@redhat.com>
6883
6884 PR gdb/13860
6885 * inferior.h (print_stop_event): Declare.
6886 * infrun.c (print_stop_event): New, factored out from ...
6887 (normal_stop): ... this.
6888 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6889 of bpstat_print/print_stack_frame.
6890
6891 2014-03-17 Tom Tromey <tromey@redhat.com>
6892
6893 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6894
6895 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6896
6897 * ada-lang.c (decode_constrained_packed_array): Perform a
6898 minimal coercion for reference with coerce_ref instead of
6899 ada_coerce_ref.
6900
6901 2014-03-17 Tristan Gingold <gingold@adacore.com>
6902
6903 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6904 (darwin_solib_create_inferior_hook): Emit a warning if version
6905 is unhandled.
6906
6907 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6908
6909 * python/py-value.c (get_field_flag): Cast flag_name argument to
6910 PyObject_GetAttrString to support Python 2.4.
6911
6912 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6913
6914 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6915 (Global Maintainers): Remove Jan Kratochvil.
6916
6917 2014-03-14 Pedro Alves <palves@redhat.com>
6918
6919 * inferior.h (terminal_ours_for_output): Rename to ...
6920 (child_terminal_ours_for_output): ... this.
6921 (terminal_save_ours): Rename to ...
6922 (child_terminal_save_ours): ... this.
6923 (terminal_ours): Rename to ...
6924 (child_terminal_ours): ... this.
6925 (terminal_inferior): Rename to ...
6926 (child_terminal_inferior): ... this.
6927 (terminal_init_inferior): Rename to ...
6928 (child_terminal_init_inferior): ... this.
6929 (terminal_init_inferior_with_pgrp): Rename to ...
6930 (child_terminal_init_inferior_with_pgrp): ... this.
6931 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6932 (child_terminal_init_with_pgrp): ... this.
6933 (terminal_save_ours): Rename to ...
6934 (child_terminal_save_ours): ... this.
6935 (terminal_init_inferior): Rename to ...
6936 (child_terminal_init): ... this. Adjust.
6937 (terminal_inferior): Rename to ...
6938 (child_terminal_inferior): ... this.
6939 (terminal_ours_for_output): Rename to ...
6940 (child_terminal_ours_for_output): ... this. Adjust.
6941 (terminal_ours): Rename to ...
6942 (child_terminal_ours): ... this.
6943 (terminal_ours_1): Rename to ...
6944 (child_terminal_ours_1): ... this. Adjust.
6945 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6946 * windows-nat.c (do_initial_windows_stuff): Adjust.
6947 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6948 (gnu_terminal_init): ... this. Adjust.
6949 (gnu_target): Adjust.
6950 * inf-child.c (inf_child_target): Adjust.
6951
6952 2014-03-13 Doug Evans <xdje42@gmail.com>
6953
6954 PR guile/16612
6955 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6956 new eq?-hashtab.
6957
6958 2014-03-13 Doug Evans <xdje42@gmail.com>
6959
6960 * value.c (record_latest_value): Call release_value_or_incref
6961 instead of release_value.
6962
6963 2014-03-13 Pedro Alves <palves@redhat.com>
6964
6965 * procfs.c (procfs_target): Don't override to_shortname,
6966 to_longname or to_doc.
6967
6968 2014-03-13 Pedro Alves <palves@redhat.com>
6969
6970 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6971 Unix in user visible strings.
6972
6973 2014-03-12 Stan Shebs <stan@codesourcery.com>
6974
6975 * gdbtypes.h: Annotate comments for Doxygen, add a page
6976 block comment with some general info.
6977
6978 2014-03-12 Pedro Alves <palves@redhat.com>
6979
6980 * infcmd.c (prepare_execution_command): New function, factored out
6981 from several execution commands.
6982 (run_command_1, continue_command, step_1, jump_command)
6983 (signal_command, until_command, advance_command, finish_command)
6984 (attach_command): Use prepare_execution_command.
6985
6986 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6987
6988 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6989 (MAX_BPTS): Define.
6990 (MAX_WPTS): Define.
6991 (struct arm_linux_thread_points): Removed.
6992 (struct arm_linux_process_info): New.
6993 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6994 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6995 (arm_linux_find_breakpoints_by_tid): Removed.
6996 (struct arch_lwp_info): New.
6997 (arm_linux_find_process_pid): New functions.
6998 (arm_linux_add_process): New functions.
6999 (arm_linux_process_info_get): New functions.
7000 (arm_linux_forget_process): New function.
7001 (arm_linux_get_debug_reg_state): New function.
7002 (struct update_registers_data): New.
7003 (update_registers_callback): New function.
7004 (arm_linux_insert_hw_breakpoint1): Updated.
7005 (arm_linux_remove_hw_breakpoint1): Updated.
7006 (arm_linux_insert_hw_breakpoint): Updated.
7007 (arm_linux_remove_hw_breakpoint): Updated.
7008 (arm_linux_insert_watchpoint): Updated.
7009 (arm_linux_remove_watchpoint): Updated.
7010 (arm_linux_new_thread): Updated.
7011 (arm_linux_prepare_to_resume): New function.
7012 (arm_linux_new_fork): New function.
7013 (_initialize_arm_linux_nat): Updated.
7014
7015 2014-03-12 Pedro Alves <palves@redhat.com>
7016
7017 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7018
7019 2014-03-12 Tom Tromey <tromey@redhat.com>
7020
7021 * inf-child.c (return_zero): New function.
7022 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7023 * aix-thread.c (aix_thread_inferior_created): New function.
7024 (aix_thread_attach): Remove.
7025 (init_aix_thread_ops): Don't set to_attach.
7026 (_initialize_aix_thread): Register inferior_created observer.
7027 * corelow.c (init_core_ops): Don't set to_attach or
7028 to_create_inferior.
7029 * exec.c (init_exec_ops): Don't set to_attach or
7030 to_create_inferior.
7031 * infcmd.c (run_command_1): Use find_run_target. Make direct
7032 target calls.
7033 (attach_command): Use find_attach_target. Make direct target
7034 calls.
7035 * record-btrace.c (init_record_btrace_ops): Don't set
7036 to_create_inferior.
7037 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7038 Remove.
7039 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7040 set to_create_inferior.
7041 * target.c (complete_target_initialization): Add assertion.
7042 (target_create_inferior): Remove.
7043 (find_default_attach, find_default_create_inferior): Remove.
7044 (find_attach_target, find_run_target): New functions.
7045 (find_default_is_async_p, find_default_can_async_p)
7046 (target_supports_non_stop, target_attach): Remove.
7047 (init_dummy_target): Don't set to_create_inferior or
7048 to_supports_non_stop.
7049 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7050 TARGET_DEFAULT_FUNC.
7051 <to_create_inferior>: Add comment.
7052 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7053 TARGET_DEFAULT_RETURN.
7054 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7055 (find_attach_target, find_run_target): Declare.
7056 (target_create_inferior): Remove.
7057 (target_has_execution_1): Update comment.
7058 (target_supports_non_stop): Remove.
7059 * target-delegates.c: Rebuild.
7060
7061 2014-03-12 Pedro Alves <palves@redhat.com>
7062
7063 * inf-child.h: Update comment to not mention Unix.
7064
7065 2014-03-12 Pedro Alves <palves@redhat.com>
7066
7067 * inf-child.c: Update top comment to not mention Unix. Add
7068 generic comment describing how this target is meant to be used.
7069 (inf_child_post_attach, inf_child_post_startup_inferior)
7070 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7071 Unix in comment.
7072
7073 2014-03-12 Pedro Alves <palves@redhat.com>
7074
7075 * nto-procfs.c: Include inf-child.h.
7076 (procfs_ops): Delete global.
7077 (procfs_can_run): Delete method.
7078 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7079 target pointer instead of referencing procfs_ops.
7080 (procfs_prepare_to_store): Delete.
7081 (init_procfs_ops): Delete function.
7082 (procfs_target): New function, based on init_procfs_ops, but
7083 inherit inf_child_target.
7084 (_initialize_procfs): Use procfs_target.
7085
7086 2014-03-12 Pedro Alves <palves@redhat.com>
7087
7088 * windows-nat.c: Include inf-child.h.
7089 (windows_ops): Delete global.
7090 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7091 methods.
7092 (init_windows_ops): Delete function.
7093 (windows_target): New function, based on init_windows_ops, but
7094 inherit inf_child_target.
7095 (_initialize_windows_nat): Use windows_target. Install x86
7096 specific target methods here.
7097
7098 2014-03-10 Doug Evans <xdje42@gmail.com>
7099
7100 * guile/guile.c (call_initialize_gdb_module): New function.
7101 (initialize_guile): Replace call to scm_init_guile with call to
7102 scm_with_guile.
7103
7104 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7105
7106 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7107 in call to TYPE_CODE macro.
7108
7109 2014-03-10 Jerome Guitton <guitton@adacore.com>
7110
7111 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7112 Resolve tagged types to full view.
7113
7114 2014-03-10 Hui Zhu <hui@codesourcery.com>
7115
7116 * target.h (target_insert_breakpoint): Remove "hardware" from its
7117 comments.
7118
7119 2014-03-07 Doug Evans <dje@google.com>
7120
7121 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7122
7123 2014-03-07 Doug Evans <dje@google.com>
7124
7125 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7126 Remove unused local comp_dir_attr. Assert exactly one of
7127 stub_comp_unit_die, stub_comp_dir is non-NULL.
7128
7129 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7130
7131 * target.h (complete_target_initialization, add_target):
7132 Add comment.
7133
7134 2014-03-07 Pedro Alves <palves@redhat.com>
7135
7136 * go32-nat.c: Include inf-child.h.
7137 (go32_ops): Delete global.
7138 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7139 Delete methods.
7140 (go32_create_inferior): Push the passed in target pointer instead
7141 of referencing go32_ops.
7142 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7143 (go32_target): New function, based on init_go32_ops, but inherit
7144 inf_child_target.
7145 (_initialize_go32_nat): Use go32_target. Move parts of
7146 init_go32_ops here.
7147
7148 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7149
7150 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7151 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7152 SYMBOL_VALUE_ADDRESS.
7153 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7154
7155 2014-03-06 Yao Qi <yao@codesourcery.com>
7156
7157 * breakpoint.c (get_tracepoint_by_number): Remove argument
7158 optional_p. All callers updated. Adjust comments. Update
7159 output message.
7160 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7161
7162 2014-03-06 Yao Qi <yao@codesourcery.com>
7163
7164 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7165 early if get_number returns zero. Use 'p' instead of 'args'.
7166
7167 2014-03-06 Yao Qi <yao@codesourcery.com>
7168
7169 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7170 message.
7171
7172 2014-03-06 Yao Qi <yao@codesourcery.com>
7173
7174 PR breakpoints/16508
7175 * tracepoint.c (check_trace_running): New function.
7176 (trace_find_command): Move code to check_trace_running and
7177 call check_trace_running.
7178 (trace_find_pc_command): Likewise.
7179 (trace_find_tracepoint_command): Likewise.
7180 (trace_find_line_command): Likewise.
7181 (trace_find_range_command): Likewise.
7182 * tracepoint.h (check_trace_running): Likewise.
7183 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7184
7185 2014-03-06 Yao Qi <yao@codesourcery.com>
7186
7187 * target.h (struct target_ops) <to_traceframe_info>: Use
7188 TARGET_DEFAULT_NORETURN (tcomplain ()).
7189 * target-delegates.c: Regenerated.
7190
7191 2014-03-05 Pedro Alves <palves@redhat.com>
7192
7193 PR gdb/16575
7194 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7195 void. Update comment.
7196 (dcache_xfer_memory): Delete.
7197 (dcache_read_memory_partial): New, based on the read bits of
7198 dcache_xfer_memory.
7199 (dcache_update): Add status parameter. Use ULONGEST for len, and
7200 adjust. Discard cache lines if the reason for the update was
7201 error.
7202 * dcache.h (dcache_xfer_memory): Delete declaration.
7203 (dcache_read_memory_partial): New declaration.
7204 (dcache_update): Update prototype.
7205 * target.c (raw_memory_xfer_partial): Update the dcache here.
7206 (memory_xfer_partial_1): Don't handle dcache writes here.
7207
7208 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7209
7210 * remote-sim.c (gdbsim_load): Add const to prog.
7211
7212 2014-03-03 Tom Tromey <tromey@redhat.com>
7213
7214 * elfread.c (probe_key): Change to bfd_data.
7215 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7216 now per-BFD, not per-objfile.
7217 * stap-probe.c (stap_probe_destroy): Update comment.
7218 (handle_stap_probe): Allocate on the per-BFD obstack.
7219
7220 2014-03-03 Tom Tromey <tromey@redhat.com>
7221
7222 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7223 * breakpoint.c (create_longjmp_master_breakpoint): Use
7224 get_probe_address.
7225 (add_location_to_breakpoint, bkpt_probe_insert_location)
7226 (bkpt_probe_remove_location): Update.
7227 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7228 * elfread.c (elf_symfile_relocate_probe): Remove.
7229 (elf_probe_fns): Update.
7230 (insert_exception_resume_breakpoint): Change type of "probe"
7231 parameter to bound_probe.
7232 (check_exception_resume): Update.
7233 * objfiles.c (objfile_relocate1): Don't relocate probes.
7234 * probe.c (bound_probe_s): New typedef.
7235 (parse_probes): Use get_probe_address. Set sal's objfile.
7236 (find_probe_by_pc): Return a bound_probe.
7237 (collect_probes): Return a VEC(bound_probe_s).
7238 (compare_probes): Update.
7239 (gen_ui_out_table_header_info): Change type of "probes"
7240 parameter. Update.
7241 (info_probes_for_ops): Update.
7242 (get_probe_address): New function.
7243 (probe_safe_evaluate_at_pc): Update.
7244 * probe.h (struct probe_ops) <get_probe_address>: New field.
7245 <set_semaphore, clear_semaphore>: Add objfile parameter.
7246 (struct probe) <objfile>: Remove field.
7247 <arch>: New field.
7248 <address>: Update comment.
7249 (struct bound_probe): New.
7250 (find_probe_by_pc): Return a bound_probe.
7251 (get_probe_address): Declare.
7252 * solib-svr4.c (struct probe_and_action) <address>: New field.
7253 (hash_probe_and_action, equal_probe_and_action): Update.
7254 (register_solib_event_probe): Add address parameter.
7255 (solib_event_probe_at): Update.
7256 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7257 get_probe_address.
7258 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7259 (stap_get_probe_address): New function.
7260 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7261 (compile_probe_arg): Update.
7262 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7263 address.
7264 (handle_stap_probe): Don't relocate the probe.
7265 (stap_relocate): Remove.
7266 (stap_gen_info_probes_table_values): Update.
7267 (stap_probe_ops): Remove stap_relocate.
7268 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7269 (debug_sym_probe_fns): Update.
7270 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7271 * symtab.c (init_sal): Use memset.
7272 * symtab.h (struct symtab_and_line) <objfile>: New field.
7273 * tracepoint.c (start_tracing, stop_tracing): Update.
7274
7275 2014-03-03 Tom Tromey <tromey@redhat.com>
7276
7277 * probe.h (parse_probes, find_probe_by_pc)
7278 (find_probes_in_objfile): Fix comments.
7279
7280 2014-03-02 Doug Evans <xdje42@gmail.com>
7281
7282 * infrun.c (handle_signal_stop): Replace test for
7283 TARGET_WAITKIND_STOPPED with an assert.
7284
7285 2014-03-02 Doug Evans <xdje42@gmail.com>
7286
7287 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7288
7289 2014-03-02 Doug Evans <xdje42@gmail.com>
7290
7291 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7292
7293 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7294
7295 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7296
7297 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7298
7299 * i386obsd-nat.c: Include "obsd-nat.h".
7300 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7301 add_target.
7302 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7303
7304 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7305
7306 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7307
7308 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7309
7310 * mips64obsd-nat.c: Include "obsd-nath".
7311 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7312 add_target
7313 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7314
7315 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7316
7317 * amd64obsd-nat.c: Include "obsd-nat,h.
7318 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7319 add_target.
7320 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7321
7322 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7323
7324 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7325 (find_overload_match): Update call to find_oload_champ.
7326 (find_oload_champ_namespace_loop): Likewise
7327
7328 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7329
7330 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7331
7332 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7333 * config/sparc/obsd64.mh: New file.
7334 * sparc64obsd-nat.c: New file.
7335
7336 * obsd-nat.h: New file.
7337 * obsd-nat.c: New file.
7338 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7339 (ALLDEPFILES): Add obsd-nat.c.
7340
7341 2014-02-28 Tom Tromey <tromey@redhat.com>
7342
7343 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7344 * cli-out.h (cli_ui_out_impl): Now const.
7345 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7346 * ui-out.c (struct ui_out) <impl>: Now const.
7347 (default_ui_out_impl): Now const.
7348 (ui_out_new): Make 'impl' parameter const.
7349 * ui-out.h (ui_out_new): Update.
7350
7351 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7352
7353 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7354
7355 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7356
7357 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7358
7359 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7360
7361 Additional PR 8882 fix.
7362 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7363
7364 2014-02-27 Pedro Alves <palves@redhat.com>
7365
7366 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7367 isn't set.
7368
7369 2014-02-27 Pedro Alves <palves@redhat.com>
7370
7371 PR 12702
7372 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7373 * nat/linux-waitpid.c: Include string.h.
7374 (status_to_str): Moved here and made extern.
7375 * nat/linux-waitpid.h (status_to_str): New declaration.
7376
7377 2014-02-27 Hui Zhu <hui@codesourcery.com>
7378
7379 PR 12702
7380 * infrun.c (ptid_match): Move ...
7381 * common/ptid.c (ptid_match): ... here.
7382 * inferior.h (ptid_match): Move ...
7383 * common/ptid.h (ptid_match): ... here.
7384
7385 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7386
7387 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7388 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7389 gdb_target_obs.
7390
7391 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7392
7393 * obsd-tdep.c (obsd_auxv_parse): New function.
7394 (obsd_init_abi): Set auxv_parse.
7395
7396 * gdbarch.sh (auxv_parse): New.
7397 * gdbarch.h: Regenerated.
7398 * gdbarch.c: Regenerated.
7399 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7400
7401 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7402
7403 * guile/scm-value.c (gdbscm_history_append_x): New function.
7404 (value_functions): Add it.
7405
7406 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7407
7408 * dwarf2read.c (attr_value_as_address): New function.
7409 (dwarf2_find_base_address, read_call_site_scope): Use
7410 attr_value_as_address in place of DW_ADDR.
7411 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7412 the low and high addresses. Slight rework of the handling
7413 of the high pc being a constant form, and limit it to
7414 DWARF verson 4 or higher.
7415 (dwarf2_record_block_ranges): Likewise.
7416 (read_partial_die): Likewise.
7417 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7418
7419 2014-02-26 Tom Tromey <tromey@redhat.com>
7420
7421 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7422
7423 2014-02-26 Tom Tromey <tromey@redhat.com>
7424
7425 * elfread.c (elf_read_minimal_symbols): Return early if
7426 minimal symbols have already been read. Add "ei" parameter.
7427 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7428 * minsyms.c (prim_record_minimal_symbol_full): Update.
7429 * objfiles.h (struct objstats) <n_minsyms>: Move...
7430 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7431 * symmisc.c (print_objfile_statistics): Update.
7432
7433 2014-02-26 Tom Tromey <tromey@redhat.com>
7434
7435 * elfread.c (elf_read_minimal_symbols): New function, from
7436 elf_symfile_read.
7437 (elf_symfile_read): Call it.
7438
7439 2014-02-26 Tom Tromey <tromey@redhat.com>
7440
7441 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7442 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7443 (lookup_minimal_symbol_solib_trampoline)
7444 (lookup_minimal_symbol_by_pc_section_1)
7445 (lookup_minimal_symbol_and_objfile): Update.
7446 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7447 Don't allocate a minimal symbol if minsyms have already been read.
7448 (build_minimal_symbol_hash_tables): Update.
7449 (install_minimal_symbols): Do nothing if minsyms already read.
7450 Use the per-BFD obstack.
7451 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7452 * objfiles.c (allocate_objfile): Call
7453 terminate_minimal_symbol_table later.
7454 (have_minimal_symbols): Update.
7455 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7456 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7457 Move from struct objfile.
7458 <minsyms_read>: New field.
7459 (struct objfile) <msymbols, minimal_symbol_count,
7460 msymbol_hash, msymbol_demangled_hash>: Move.
7461 (ALL_OBJFILE_MSYMBOLS): Update.
7462 * symfile.c (read_symbols): Set minsyms_read.
7463 (reread_symbols): Update.
7464 * symmisc.c (dump_objfile, dump_msymbols): Update.
7465
7466 2014-02-26 Tom Tromey <tromey@redhat.com>
7467
7468 * minsyms.c (msymbols_sort): Remove.
7469 * minsyms.h (msymbols_sort): Remove.
7470 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7471 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7472 * elfread.c (elf_symtab_read): Don't add section offsets.
7473 * xcoffread.c (record_minimal_symbol): Don't add section offset
7474 to minimal symbol address.
7475 * somread.c (text_offset, data_offset): Remove.
7476 (som_symtab_read): Don't add section offsets to minimal symbol
7477 addresses.
7478 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7479 Don't add section offsets to minimal symbols.
7480 * coffread.c (coff_symtab_read): Don't add section offsets
7481 to minimal symbol addresses.
7482 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7483 to minimal symbol addresses.
7484 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7485 section offset to minimal symbol addresses.
7486 * mdebugread.c (parse_partial_symbols): Don't add section
7487 offset to minimal symbol addresses.
7488 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7489 offset to minimal symbol addresses.
7490
7491 2014-02-26 Tom Tromey <tromey@redhat.com>
7492
7493 * ada-lang.c (ada_main_name): Update.
7494 (ada_add_standard_exceptions): Update.
7495 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7496 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7497 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7498 * auxv.c (ld_so_xfer_auxv): Update.
7499 * avr-tdep.c (avr_scan_prologue): Update.
7500 * ax-gdb.c (gen_var_ref): Update.
7501 * blockframe.c (get_pc_function_start)
7502 (find_pc_partial_function_gnu_ifunc): Update.
7503 * breakpoint.c (create_overlay_event_breakpoint)
7504 (create_longjmp_master_breakpoint)
7505 (create_std_terminate_master_breakpoint)
7506 (create_exception_master_breakpoint): Update.
7507 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7508 * c-valprint.c (c_val_print): Update.
7509 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7510 * common/agent.c (agent_look_up_symbols): Update.
7511 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7512 * dwarf2loc.c (call_site_to_target_addr): Update.
7513 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7514 * elfread.c (elf_gnu_ifunc_record_cache)
7515 (elf_gnu_ifunc_resolve_by_got): Update.
7516 * findvar.c (default_read_var_value): Update.
7517 * frame.c (inside_main_func): Update.
7518 * frv-tdep.c (frv_frame_this_id): Update.
7519 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7520 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7521 Update.
7522 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7523 (hppa_hpux_find_dummy_bpaddr): Update.
7524 * hppa-tdep.c (hppa_symbol_address): Update.
7525 * infcmd.c (until_next_command): Update.
7526 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7527 Update.
7528 * linespec.c (minsym_found, add_minsym): Update.
7529 * linux-nat.c (get_signo): Update.
7530 * linux-thread-db.c (inferior_has_bug): Update.
7531 * m32c-tdep.c (m32c_return_value)
7532 (m32c_m16c_address_to_pointer): Update.
7533 * m32r-tdep.c (m32r_frame_this_id): Update.
7534 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7535 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7536 * maint.c (maintenance_translate_address): Update.
7537 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7538 (frob_address): New function.
7539 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7540 frob_address. Rename parameter to "pc_in".
7541 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7542 addresses.
7543 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7544 Update.
7545 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7546 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7547 * objc-lang.c (find_objc_msgsend): Update.
7548 * objfiles.c (objfile_relocate1): Update.
7549 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7550 * p-valprint.c (pascal_val_print): Update.
7551 * parse.c (write_exp_msymbol): Update.
7552 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7553 (ppc_elfv2_skip_entrypoint): Update.
7554 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7555 * printcmd.c (build_address_symbolic, msym_info)
7556 (address_info): Update.
7557 * proc-service.c (ps_pglobal_lookup): Update.
7558 * psymtab.c (find_pc_sect_psymtab_closer)
7559 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7560 Change msymbol parameter to bound_minimal_symbol.
7561 * ravenscar-thread.c (get_running_thread_id): Update.
7562 * remote.c (remote_check_symbols): Update.
7563 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7564 address.
7565 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7566 * solib-dsbt.c (lm_base): Update.
7567 * solib-frv.c (lm_base, main_got): Update.
7568 * solib-irix.c (locate_base): Update.
7569 * solib-som.c (som_solib_create_inferior_hook)
7570 (link_map_start): Update.
7571 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7572 * solib-svr4.c (elf_locate_base, enable_break): Update.
7573 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7574 (flush_ea_cache): Update.
7575 * stabsread.c (define_symbol, scan_file_globals): Update.
7576 * stack.c (find_frame_funname): Update.
7577 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7578 (debug_qf_find_pc_sect_symtab): Update.
7579 * symfile.c (simple_read_overlay_table)
7580 (simple_overlay_update): Update.
7581 * symfile.h (struct quick_symbol_functions)
7582 <find_pc_sect_symtab>: Change type of msymbol to
7583 bound_minimal_symbol.
7584 * symmisc.c (dump_msymbols): Update.
7585 * symtab.c (find_pc_sect_symtab_via_partial)
7586 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7587 (search_symbols, print_msymbol_info): Update.
7588 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7589 (MSYMBOL_VALUE_ADDRESS): Redefine.
7590 (BMSYMBOL_VALUE_ADDRESS): New macro.
7591 * tracepoint.c (scope_info): Update.
7592 * tui/tui-disasm.c (tui_find_disassembly_address)
7593 (tui_get_begin_asm_address): Update.
7594 * valops.c (find_function_in_inferior): Update.
7595 * value.c (value_static_field, value_fn_field): Update.
7596
7597 2014-02-26 Tom Tromey <tromey@redhat.com>
7598
7599 * ada-lang.c (ada_update_initial_language): Update.
7600 (ada_main_name, ada_has_this_exception_support): Update.
7601 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7602 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7603 * arm-tdep.c (arm_skip_stub): Update.
7604 * auxv.c (ld_so_xfer_auxv): Update.
7605 * avr-tdep.c (avr_scan_prologue): Update.
7606 * ax-gdb.c (gen_var_ref): Update.
7607 * breakpoint.c (struct breakpoint_objfile_data)
7608 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7609 type to bound_minimal_symbol.
7610 (create_overlay_event_breakpoint)
7611 (create_longjmp_master_breakpoint)
7612 (create_std_terminate_master_breakpoint)
7613 (create_exception_master_breakpoint): Update.
7614 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7615 * c-exp.y (classify_name): Update.
7616 * coffread.c (coff_symfile_read): Update.
7617 * common/agent.c (agent_look_up_symbols): Update.
7618 * d-lang.c (d_main_name): Update.
7619 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7620 * dec-thread.c (enable_dec_thread): Update.
7621 * dwarf2loc.c (call_site_to_target_addr): Update.
7622 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7623 * eval.c (evaluate_subexp_standard): Update.
7624 * findvar.c (struct minsym_lookup_data) <result>: Change type
7625 to bound_minimal_symbol.
7626 <objfile>: Remove.
7627 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7628 * frame.c (inside_main_func): Update.
7629 * frv-tdep.c (frv_frame_this_id): Update.
7630 * gcore.c (call_target_sbrk): Update.
7631 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7632 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7633 Update.
7634 * go-lang.c (go_main_name): Update.
7635 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7636 (hppa_hpux_find_import_stub_for_addr): Update.
7637 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7638 Update. Change return type.
7639 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7640 type.
7641 * jit.c (jit_breakpoint_re_set_internal): Update.
7642 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7643 Update.
7644 * linux-nat.c (get_signo): Update.
7645 * linux-thread-db.c (inferior_has_bug): Update
7646 * m32c-tdep.c (m32c_return_value)
7647 (m32c_m16c_address_to_pointer): Update.
7648 * m32r-tdep.c (m32r_frame_this_id): Update.
7649 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7650 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7651 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7652 lookup_minimal_symbol. Change return type.
7653 (lookup_minimal_symbol): Remove.
7654 (lookup_bound_minimal_symbol): Update.
7655 (lookup_minimal_symbol_text): Change return type.
7656 (lookup_minimal_symbol_solib_trampoline): Change return type.
7657 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7658 (lookup_minimal_symbol_solib_trampoline): Change return type.
7659 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7660 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7661 (value_nsstring, find_imps): Update.
7662 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7663 * p-lang.c (pascal_main_name): Update.
7664 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7665 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7666 * proc-service.c (ps_pglobal_lookup): Update.
7667 * ravenscar-thread.c (get_running_thread_msymbol): Change
7668 return type.
7669 (has_ravenscar_runtime, get_running_thread_id): Update.
7670 * remote.c (remote_check_symbols): Update.
7671 * sol-thread.c (ps_pglobal_lookup): Update.
7672 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7673 * solib-dsbt.c (lm_base): Update.
7674 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7675 Update.
7676 * solib-irix.c (locate_base): Update.
7677 * solib-som.c (som_solib_create_inferior_hook)
7678 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7679 Update.
7680 * solib-spu.c (spu_enable_break): Update.
7681 * solib-svr4.c (elf_locate_base, enable_break): Update.
7682 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7683 (flush_ea_cache): Update.
7684 * stabsread.c (define_symbol): Update.
7685 * symfile.c (simple_read_overlay_table): Update.
7686 * symtab.c (find_pc_sect_line): Update.
7687 * tracepoint.c (scope_info): Update.
7688 * tui-disasm.c (tui_get_begin_asm_address): Update.
7689 * value.c (value_static_field): Update.
7690
7691 2014-02-26 Tom Tromey <tromey@redhat.com>
7692
7693 * minsyms.c (prim_record_minimal_symbol_full): Use
7694 SET_MSYMBOL_VALUE_ADDRESS.
7695 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7696 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7697 SET_MSYMBOL_VALUE_ADDRESS.
7698 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7699 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7700
7701 2014-02-26 Tom Tromey <tromey@redhat.com>
7702
7703 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7704 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7705 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7706 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7707 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7708 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7709 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7710 * ada-lang.c (ada_main_name): Update.
7711 (ada_lookup_simple_minsym): Update.
7712 (ada_make_symbol_completion_list): Update.
7713 (ada_add_standard_exceptions): Update.
7714 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7715 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7716 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7717 * arm-tdep.c (skip_prologue_function): Update.
7718 (arm_skip_stack_protector, arm_skip_stub): Update.
7719 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7720 (arm_wince_skip_main_prologue): Update.
7721 * auxv.c (ld_so_xfer_auxv): Update.
7722 * avr-tdep.c (avr_scan_prologue): Update.
7723 * ax-gdb.c (gen_var_ref): Update.
7724 * block.c (call_site_for_pc): Update.
7725 * blockframe.c (get_pc_function_start): Update.
7726 (find_pc_partial_function_gnu_ifunc): Update.
7727 * breakpoint.c (create_overlay_event_breakpoint): Update.
7728 (create_longjmp_master_breakpoint): Update.
7729 (create_std_terminate_master_breakpoint): Update.
7730 (create_exception_master_breakpoint): Update.
7731 (resolve_sal_pc): Update.
7732 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7733 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7734 Update.
7735 * c-valprint.c (c_val_print): Update.
7736 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7737 * coffread.c (coff_symfile_read): Update.
7738 * common/agent.c (agent_look_up_symbols): Update.
7739 * dbxread.c (find_stab_function_addr): Update.
7740 (end_psymtab): Update.
7741 * dwarf2loc.c (call_site_to_target_addr): Update.
7742 (func_verify_no_selftailcall): Update.
7743 (tailcall_dump): Update.
7744 (call_site_find_chain_1): Update.
7745 (dwarf_expr_reg_to_entry_parameter): Update.
7746 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7747 (elf_gnu_ifunc_resolve_by_got): Update.
7748 * f-valprint.c (info_common_command): Update.
7749 * findvar.c (read_var_value): Update.
7750 * frame.c (get_prev_frame_1): Update.
7751 (inside_main_func): Update.
7752 * frv-tdep.c (frv_skip_main_prologue): Update.
7753 (frv_frame_this_id): Update.
7754 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7755 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7756 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7757 (gnuv3_skip_trampoline): Update.
7758 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7759 (hppa64_hpux_in_solib_call_trampoline): Update.
7760 (hppa_hpux_skip_trampoline_code): Update.
7761 (hppa64_hpux_search_dummy_call_sequence): Update.
7762 (hppa_hpux_find_import_stub_for_addr): Update.
7763 (hppa_hpux_find_dummy_bpaddr): Update.
7764 * hppa-tdep.c (hppa_symbol_address)
7765 (hppa_lookup_stub_minimal_symbol): Update.
7766 * i386-tdep.c (i386_skip_main_prologue): Update.
7767 (i386_pe_skip_trampoline_code): Update.
7768 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7769 * infcall.c (get_function_name): Update.
7770 * infcmd.c (until_next_command): Update.
7771 * jit.c (jit_breakpoint_re_set_internal): Update.
7772 (jit_inferior_init): Update.
7773 * linespec.c (minsym_found): Update.
7774 (add_minsym): Update.
7775 * linux-fork.c (info_checkpoints_command): Update.
7776 * linux-nat.c (get_signo): Update.
7777 * linux-thread-db.c (inferior_has_bug): Update.
7778 * m32c-tdep.c (m32c_return_value): Update.
7779 (m32c_m16c_address_to_pointer): Update.
7780 (m32c_m16c_pointer_to_address): Update.
7781 * m32r-tdep.c (m32r_frame_this_id): Update.
7782 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7783 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7784 * maint.c (maintenance_translate_address): Update.
7785 * minsyms.c (add_minsym_to_hash_table): Update.
7786 (add_minsym_to_demangled_hash_table): Update.
7787 (msymbol_objfile): Update.
7788 (lookup_minimal_symbol): Update.
7789 (iterate_over_minimal_symbols): Update.
7790 (lookup_minimal_symbol_text): Update.
7791 (lookup_minimal_symbol_by_pc_name): Update.
7792 (lookup_minimal_symbol_solib_trampoline): Update.
7793 (lookup_minimal_symbol_by_pc_section_1): Update.
7794 (lookup_minimal_symbol_and_objfile): Update.
7795 (prim_record_minimal_symbol_full): Update.
7796 (compare_minimal_symbols): Update.
7797 (compact_minimal_symbols): Update.
7798 (build_minimal_symbol_hash_tables): Update.
7799 (install_minimal_symbols): Update.
7800 (terminate_minimal_symbol_table): Update.
7801 (find_solib_trampoline_target): Update.
7802 (minimal_symbol_upper_bound): Update.
7803 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7804 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7805 (mips_skip_pic_trampoline_code): Update.
7806 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7807 * objc-lang.c (selectors_info): Update.
7808 (classes_info): Update.
7809 (find_methods): Update.
7810 (find_imps): Update.
7811 (find_objc_msgsend): Update.
7812 * objfiles.c (objfile_relocate1): Update.
7813 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7814 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7815 * p-valprint.c (pascal_val_print): Update.
7816 * parse.c (write_exp_msymbol): Update.
7817 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7818 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7819 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7820 * printcmd.c (build_address_symbolic): Update.
7821 (sym_info): Update.
7822 (address_info): Update.
7823 * proc-service.c (ps_pglobal_lookup): Update.
7824 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7825 (find_pc_sect_psymtab): Update.
7826 * python/py-framefilter.c (py_print_frame): Update.
7827 * ravenscar-thread.c (get_running_thread_id): Update.
7828 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7829 Update.
7830 * remote.c (remote_check_symbols): Update.
7831 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7832 (rs6000_skip_trampoline_code): Update.
7833 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7834 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7835 * solib-dsbt.c (lm_base): Update.
7836 * solib-frv.c (lm_base): Update.
7837 (main_got): Update.
7838 * solib-irix.c (locate_base): Update.
7839 * solib-som.c (som_solib_create_inferior_hook): Update.
7840 (som_solib_desire_dynamic_linker_symbols): Update.
7841 (link_map_start): Update.
7842 * solib-spu.c (spu_enable_break): Update.
7843 (ocl_enable_break): Update.
7844 * solib-svr4.c (elf_locate_base): Update.
7845 (enable_break): Update.
7846 * spu-tdep.c (spu_get_overlay_table): Update.
7847 (spu_catch_start): Update.
7848 (flush_ea_cache): Update.
7849 * stabsread.c (define_symbol): Update.
7850 (scan_file_globals): Update.
7851 * stack.c (find_frame_funname): Update.
7852 (frame_info): Update.
7853 * symfile.c (simple_read_overlay_table): Update.
7854 (simple_overlay_update): Update.
7855 * symmisc.c (dump_msymbols): Update.
7856 * symtab.c (fixup_section): Update.
7857 (find_pc_sect_line): Update.
7858 (skip_prologue_sal): Update.
7859 (search_symbols): Update.
7860 (print_msymbol_info): Update.
7861 (rbreak_command): Update.
7862 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7863 (completion_list_objc_symbol): Update.
7864 (default_make_symbol_completion_list_break_on): Update.
7865 * tracepoint.c (scope_info): Update.
7866 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7867 (tui_get_begin_asm_address): Update.
7868 * valops.c (find_function_in_inferior): Update.
7869 * value.c (value_static_field): Update.
7870 (value_fn_field): Update.
7871
7872 2014-02-26 Tom Tromey <tromey@redhat.com>
7873
7874 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7875 bound minimal symbols. Move code that knows about minsym
7876 table layout...
7877 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7878 function.
7879 * minsyms.h (minimal_symbol_upper_bound): Declare.
7880 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7881 minimal_symbol_upper_bound.
7882
7883 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7884
7885 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7886 Use the type's name if its basic type does not have a tag.
7887
7888 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7889
7890 * dwarf2read.c (read_subrange_type): Add comment.
7891
7892 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7893
7894 * dwarf2read.c (update_enumeration_type_from_children): New
7895 function, mostly extracted from process_structure_scope.
7896 (read_enumeration_type): Call update_enumeration_type_from_children.
7897 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7898 and flag_flag_enum fields.
7899
7900 2014-02-26 Pedro Alves <palves@redhat.com>
7901
7902 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7903 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7904 to_xfer_partial method.
7905
7906 2014-02-26 Pedro Alves <palves@redhat.com>
7907
7908 * target.c (complete_target_initialization): Don't install
7909 default_xfer_partial as to_xfer_partial hook.
7910 (nomemory): Delete.
7911 (update_current_target): Don't INHERIT nor de_fault
7912 deprecated_xfer_memory. Delete de_fault macro.
7913 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7914 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7915 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7916 field.
7917
7918 2014-02-26 Pedro Alves <palves@redhat.com>
7919
7920 * go32-nat.c (my_write_child): New function.
7921 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7922 (go32_xfer_partial): New function.
7923 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7924 Instead install a to_xfer_partial hook.
7925
7926 2014-02-26 Pedro Alves <palves@redhat.com>
7927
7928 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7929 to_xfer_partial helper. Rewrite.
7930 (procfs_xfer_partial): New function.
7931 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7932 Install a to_xfer_partial hook.
7933
7934 2014-02-26 Pedro Alves <palves@redhat.com>
7935
7936 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7937 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7938 (m32r_xfer_partial): New function.
7939 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7940 Install a to_xfer_partial hook.
7941
7942 2014-02-26 Pedro Alves <palves@redhat.com>
7943
7944 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7945 helper.
7946 (mips_xfer_partial): New function.
7947 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7948 hook. Install a to_xfer_partial hook.
7949
7950 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7951
7952 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7953 * gdbtypes.c (create_array_type_with_stride): New function,
7954 renaming create_array_type, but with an added parameter
7955 called "bit_stride".
7956 (create_array_type): Re-implement using
7957 create_array_type_with_stride.
7958 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7959 and DW_AT_bit_stride attributes.
7960
7961 2014-02-26 Pedro Alves <palves@redhat.com>
7962
7963 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7964 task-specific breakpoints.
7965
7966 2014-02-25 Pedro Alves <palves@redhat.com>
7967
7968 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7969 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7970
7971 2014-02-25 Stan Shebs <stan@codesourcery.com>
7972
7973 * defs.h: Annotate comments for Doxygen.
7974
7975 2014-02-25 Tom Tromey <tromey@redhat.com>
7976
7977 * target.h (target_ignore): Don't declare.
7978 * target.c (target_ignore): Remove.
7979
7980 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7981
7982 PR gdb/16626
7983 * auto-load.c (auto_load_objfile_script_1): Change filename to
7984 debugfile.
7985
7986 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7987
7988 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7989 documentation. Adjust prototype to match the target_ops
7990 to_xfer_partial method. Adjust implementation accordingly.
7991
7992 2014-02-25 Hui Zhu <hui@codesourcery.com>
7993
7994 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7995 to_traceframe_info.
7996
7997 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7998
7999 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8000 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8001 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8002 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8003 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8004 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8005 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8006 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8007 New constants.
8008 (rl78_register_type): Use a data pointer type for SP and
8009 new pseudo registers mentioned above. Use a 16 bit integer
8010 type for all other register pairs.
8011 (rl78_register_name, rl78_g10_register_name): Update for
8012 new pseudo registers.
8013 (rl78_pseudo_register_read): Likewise.
8014 (rl78_pseudo_register_write): Likewise.
8015 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8016 to the newly added pseudo registers.
8017
8018 2014-02-24 Doug Evans <dje@google.com>
8019
8020 * value.c (record_latest_value): Fix comment.
8021 * printcmd.c (print_command_1): Remove code to handle -1 return from
8022 record_latest_value.
8023
8024 2014-02-24 Pedro Alves <palves@redhat.com>
8025
8026 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8027 deprecated_xfer_memory hook.
8028 (procfs_xfer_partial): Call procfs_xfer_memory instead
8029 of the deprecated_xfer_memory target hook.
8030 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8031 helper.
8032
8033 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8034
8035 * windows-nat.c (windows_xfer_shared_libraries): Return
8036 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8037 requested object is TARGET_OBJECT_LIBRARIES.
8038
8039 2014-02-24 Yao Qi <yao@codesourcery.com>
8040
8041 * target.h (enum target_xfer_status)
8042 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8043 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8044 explicitly. New.
8045 * corefile.c (memory_error_message): User updated.
8046 * exec.c (section_table_read_available_memory): Likewise.
8047 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8048 * target.c (target_xfer_status_to_string): Likewise.
8049 (raw_memory_xfer_partial): Likewise.
8050 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8051 * valops.c (read_value_memory): Likewise.
8052 * exec.h: Update comments.
8053
8054 2014-02-24 Yao Qi <yao@codesourcery.com>
8055
8056 * target.c (target_xfer_status_to_string): Rename argument err
8057 to status.
8058 * target.h (target_xfer_status_to_string): Update declaration.
8059 Replace target_xfer_error_to_string with
8060 target_xfer_status_to_string in comment.
8061
8062 2014-02-24 Yao Qi <yao@codesourcery.com>
8063
8064 * mips-linux-nat.c (super_close): Update its type.
8065 (mips_linux_close): Pass 'self' to super_close.
8066
8067 2014-02-24 Yao Qi <yao@codesourcery.com>
8068
8069 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8070 * corefile.c (read_memory): Adjusted.
8071 * target.c (target_write_with_progress): Adjusted.
8072
8073 2014-02-23 Yao Qi <yao@codesourcery.com>
8074
8075 Revert two patches:
8076
8077 2013-10-25 Yao Qi <yao@codesourcery.com>
8078
8079 * remote.c (remote_traceframe_info): Return early if
8080 traceframe is not selected.
8081
8082 2013-07-19 Yao Qi <yao@codesourcery.com>
8083
8084 * target.c (update_current_target): Change the default action
8085 of 'to_traceframe_info' from tcomplain to return_zero.
8086 * target.h (struct target_ops) <to_traceframe_info>: Add more
8087 comments.
8088
8089 2014-02-23 Yao Qi <yao@codesourcery.com>
8090
8091 * valops.c (read_value_memory): Rewrite it. Call
8092 target_xfer_partial in a loop.
8093 * exec.h (section_table_available_memory): Remove declaration.
8094 Move comments to ...
8095 * exec.c (section_table_available_memory): ... here. Make it
8096 static.
8097
8098 2014-02-23 Yao Qi <yao@codesourcery.com>
8099
8100 * exec.c (section_table_read_available_memory): New function.
8101 * exec.h (section_table_read_available_memory): Declare.
8102 * ctf.c (ctf_xfer_partial): Call
8103 section_table_read_available_memory.
8104 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8105
8106 2014-02-23 Yao Qi <yao@codesourcery.com>
8107
8108 * ctf.c (ctf_xfer_partial): Move code to ...
8109 * exec.c (exec_read_partial_read_only): ... it. New function.
8110 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8111 * tracefile.c: Include "exec.h".
8112 * exec.h (exec_read_partial_read_only): Declare.
8113
8114 2014-02-23 Yao Qi <yao@codesourcery.com>
8115
8116 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8117 (tfile_has_memory): Remove.
8118 (init_tfile_ops): Don't set fields to_has_all_memory and
8119 to_has_memory of tfile_ops.
8120 * tracefile.c (tracefile_has_all_memory): New function.
8121 (tracefile_has_memory): New function.
8122 (init_tracefile_ops): Initialize fields to_has_all_memory and
8123 to_has_memory of 'ops'.
8124
8125 2014-02-23 Yao Qi <yao@codesourcery.com>
8126
8127 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8128 (ctf_thread_alive, ctf_get_trace_status): Remove.
8129 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8130 init_tracefile_ops.
8131 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8132 (tfile_has_stack, tfile_has_registers): Remove.
8133 (tfile_thread_alive): Remove.
8134 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8135 init_tracefile_ops.
8136 * tracefile.c (tracefile_has_stack): New function.
8137 (tracefile_has_registers): New function.
8138 (tracefile_thread_alive): New function.
8139 (tracefile_get_trace_status): New function.
8140 (init_tracefile_ops): New function.
8141 * tracefile.h (init_tracefile_ops): Declare.
8142
8143 2014-02-23 Yao Qi <yao@codesourcery.com>
8144
8145 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8146 (O_LARGEFILE): Likewise.
8147 (tfile_ops): Likewise.
8148 (TRACE_HEADER_SIZE): Likewise.
8149 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8150 (cur_data_size): Likewise.
8151 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8152 (tfile_close, tfile_files_info): Likewise.
8153 (tfile_get_trace_status): Likewise.
8154 (tfile_get_tracepoint_status): Likewise.
8155 (tfile_get_traceframe_address): Likewise.
8156 (tfile_trace_find, match_blocktype): Likewise.
8157 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8158 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8159 (tfile_get_trace_state_variable_value): Likewise.
8160 (tfile_has_all_memory, tfile_has_memory): Likewise.
8161 (tfile_has_stack, tfile_has_registers): Likewise.
8162 (tfile_thread_alive, build_traceframe_info): Likewise.
8163 (tfile_traceframe_info, init_tfile_ops): Likewise.
8164 (_initialize_tracepoint): Don't call init_tfile_ops
8165 and add_target_with_completer.
8166 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8167 exec.h, completer.h and filenames.h.
8168 (_initialize_tracefile_tfile): New function.
8169
8170 2014-02-23 Yao Qi <yao@codesourcery.com>
8171
8172 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8173 tracefile-tfile.o.
8174 (HFILES_NO_SRCDIR): Add tracefile.h.
8175 * ctf.c: Include "tracefile.h".
8176 * tracefile.h: New file.
8177 * tracefile.c: New file
8178 * tracefile-tfile.c: New file.
8179 * tracepoint.c: Include "tracefile.h".
8180 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8181 (stop_reason_names): Add const.
8182 (trace_file_writer_xfree): Move it to tracefile.c.
8183 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8184 (trace_save_ctf): Likewise.
8185 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8186 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8187 (tfile_write_header, tfile_write_regblock_type): Likewise.
8188 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8189 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8190 (tfile_write_raw_data, tfile_end): Likewise.
8191 (tfile_trace_file_writer_new): Likewise.
8192 (free_uploaded_tp): Make it extern.
8193 (free_uploaded_tsv): Make it extern.
8194 (_initialize_tracepoint): Move code to register command 'tsave'
8195 to tracefile.c.
8196 * tracepoint.h (stop_reason_names): Declare.
8197 (struct trace_frame_write_ops): Move it to tracefile.h.
8198 (struct trace_file_write_ops): Likewise.
8199 (struct trace_file_writer): Likewise.
8200 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8201
8202 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8203
8204 PR gdb/16594
8205 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8206 process name.
8207 (get_cores_used_by_process): New parameter num_cores, use it.
8208 (linux_xfer_osdata_processes): Pass num_cores to it.
8209 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8210 process name.
8211
8212 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8213
8214 * target.c (memory_xfer_partial): Fix length arg in call to
8215 breakpoint_xfer_memory.
8216
8217 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8218
8219 PR tdep/16397
8220 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8221 number comes after the + or - signs. Adjust length of register
8222 name to be extracted.
8223
8224 2014-02-20 Tom Tromey <tromey@redhat.com>
8225
8226 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8227 (ada_varobj_ops): Mark "extern".
8228
8229 2014-02-20 Tom Tromey <tromey@redhat.com>
8230
8231 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8232
8233 2014-02-20 Doug Evans <xdje42@gmail.com>
8234
8235 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8236 All callers updated.
8237 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8238 All callers updated.
8239 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8240 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8241
8242 2014-02-20 lin zuojian <manjian2006@gmail.com>
8243 Joel Brobecker <brobecker@adacore.com>
8244 Doug Evans <xdje42@gmail.com>
8245
8246 PR symtab/16581
8247 * dwarf2read.c (struct die_info): New member in_process.
8248 (reset_die_in_process): New function.
8249 (process_die): Set it at the start, reset when returning.
8250 (inherit_abstract_dies): Only call process_die if origin_child_die
8251 not already being processed.
8252
8253 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8254
8255 * windows-nat.c (handle_unload_dll): Add function documentation.
8256 (do_initial_windows_stuff): Add comment explaining why we wait
8257 until after inferior initialization has finished before
8258 processing all DLLs.
8259
8260 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8261
8262 * windows-nat.c (get_module_name): Delete.
8263 (windows_get_exec_module_filename): New function, mostly
8264 inspired from get_module_name.
8265 (windows_pid_to_exec_file): Replace call to get_module_name
8266 by call to windows_get_exec_module_filename.
8267
8268 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8269
8270 * windows-nat.c (handle_load_dll): Rewrite this function's
8271 introductory comment. Remove code using get_module_name
8272 to get the DLL's name.
8273
8274 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8275
8276 * windows-nat.c (get_windows_debug_event): Ignore
8277 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8278 if windows_initialization_done == 0.
8279 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8280 Adjust implementation to always load all DLLs.
8281 (do_initial_windows_stuff): Replace call to
8282 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8283
8284 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8285
8286 * windows-nat.c (_initialize_windows_nat): Deprecate the
8287 "dll-symbols" command. Turn the "add-shared-symbol-files"
8288 and "assf" aliases into commands, and deprecate them as well.
8289 * NEWS: Add entry explaining that "dll-symbols" and its two
8290 aliases are now deprecated.
8291
8292 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8293
8294 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8295 new-line in debug string. Remove trailing spaces.
8296
8297 2014-02-19 Stan Shebs <stan@codesourcery.com>
8298
8299 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8300
8301 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8302
8303 * NEWS: Add entry for the new feature
8304 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8305 and class values.
8306
8307 2014-02-19 Stan Shebs <stan@codesourcery.com>
8308
8309 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8310
8311 2014-02-19 Pedro Alves <palves@redhat.com>
8312
8313 * common/ptid.h (struct ptid): Mention that process_stratum
8314 targets should prefer ptid.lwp.
8315
8316 2014-02-19 Pedro Alves <palves@redhat.com>
8317
8318 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8319 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8320 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8321 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8322 store remote thread ids rather than ptid.tid.
8323 (_initialize_remote): Adjust.
8324
8325 2014-02-19 Tom Tromey <tromey@redhat.com>
8326
8327 * target.c (target_get_unwinder): Rewrite.
8328 (target_get_tailcall_unwinder): Rewrite.
8329 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8330 (record_btrace_to_get_tailcall_unwinder): New function.
8331 (init_record_btrace_ops): Update.
8332 * target.h (struct target_ops) <to_get_unwinder,
8333 to_get_tailcall_unwinder>: Now function pointers. Use
8334 TARGET_DEFAULT_RETURN.
8335
8336 2014-02-19 Tom Tromey <tromey@redhat.com>
8337
8338 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8339 argument.
8340 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8341
8342 2014-02-19 Tom Tromey <tromey@redhat.com>
8343
8344 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8345 directly.
8346 * target-delegates.c: Rebuild.
8347 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8348 TARGET_DEFAULT_FUNC.
8349 * target.c (default_target_decr_pc_after_break): Rename from
8350 forward_target_decr_pc_after_break. Simplify.
8351 (target_decr_pc_after_break): Rely on delegation.
8352
8353 2014-02-19 Tom Tromey <tromey@redhat.com>
8354
8355 * target.c (update_current_target): Do not INHERIT to_doc or
8356 to_magic. Do not de_fault to_open or to_close.
8357
8358 2014-02-19 Tom Tromey <tromey@redhat.com>
8359
8360 * gcore.h (objfile_find_memory_regions): Declare.
8361 * gcore.c (objfile_find_memory_regions): No longer static. Add
8362 "self" argument.
8363 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8364 * exec.c: Include gcore.h.
8365 (exec_set_find_memory_regions): Remove.
8366 (exec_find_memory_regions): Remove.
8367 (exec_do_find_memory_regions): Remove.
8368 (init_exec_ops): Update.
8369 * defs.h (exec_set_find_memory_regions): Remove.
8370
8371 2014-02-19 Tom Tromey <tromey@redhat.com>
8372
8373 * target-delegates.c: Rebuild.
8374 * target.h (struct target_ops) <to_extra_thread_info,
8375 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8376 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8377 not 0, in TARGET_DEFAULT_RETURN.
8378
8379 2014-02-19 Tom Tromey <tromey@redhat.com>
8380
8381 * target.c (complete_target_initialization): Remove casts. Use
8382 return_zero_has_execution.
8383 (return_zero): Add "ignore" argument.
8384 (return_zero_has_execution): New function.
8385 (init_dummy_target): Remove casts. Use
8386 return_zero_has_execution.
8387
8388 2014-02-19 Tom Tromey <tromey@redhat.com>
8389
8390 * target.c (update_current_target): Update comments. Do not
8391 INHERIT to_stratum.
8392
8393 2014-02-19 Tom Tromey <tromey@redhat.com>
8394
8395 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8396 needed.
8397 * corelow.c (core_read_description): Delegate when needed.
8398 * remote.c (remote_read_description): Delegate when needed.
8399 * target-delegates.c: Rebuild.
8400 * target.c (target_read_description): Rewrite.
8401 * target.h (struct target_ops) <to_read_description>: Update
8402 comment. Use TARGET_DEFAULT_RETURN.
8403
8404 2014-02-19 Tom Tromey <tromey@redhat.com>
8405
8406 * target-delegates.c: Rebuild.
8407 * target.c (update_current_target): Don't inherit or default
8408 to_can_run.
8409 (find_default_run_target): Check against delegate_can_run.
8410 * target.h (struct target_ops) <to_can_run>: Use
8411 TARGET_DEFAULT_RETURN.
8412
8413 2014-02-19 Tom Tromey <tromey@redhat.com>
8414
8415 * target-delegates.c: Rebuild.
8416 * target.c (target_disconnect): Unconditionally delegate.
8417 * target.h (struct target_ops) <to_disconnect>: Use
8418 TARGET_DEFAULT_NORETURN.
8419
8420 2014-02-19 Tom Tromey <tromey@redhat.com>
8421
8422 * record.c (record_stop): Unconditionally delegate.
8423 * target-delegates.c: Rebuild.
8424 * target.c (target_stop_recording): Unconditionally delegate.
8425 * target.h (struct target_ops) <to_stop_recording>: Use
8426 TARGET_DEFAULT_IGNORE.
8427
8428 2014-02-19 Tom Tromey <tromey@redhat.com>
8429
8430 * target-delegates.c: Rebuild.
8431 * target.c (target_enable_btrace): Unconditionally delegate.
8432 * target.h (struct target_ops) <to_enable_btrace>: Use
8433 TARGET_DEFAULT_NORETURN.
8434
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8436
8437 * target-delegates.c: Rebuild.
8438 * target.c (target_read_btrace): Unconditionally delegate.
8439 * target.h (struct target_ops) <to_read_btrace>: Use
8440 TARGET_DEFAULT_NORETURN.
8441
8442 2014-02-19 Tom Tromey <tromey@redhat.com>
8443
8444 * target-delegates.c: Rebuild.
8445 * target.c (target_teardown_btrace): Unconditionally delegate.
8446 * target.h (struct target_ops) <to_teardown_btrace>: Use
8447 TARGET_DEFAULT_NORETURN.
8448
8449 2014-02-19 Tom Tromey <tromey@redhat.com>
8450
8451 * target-delegates.c: Rebuild.
8452 * target.c (target_disable_btrace): Unconditionally delegate.
8453 * target.h (struct target_ops) <to_disable_btrace>: Use
8454 TARGET_DEFAULT_NORETURN.
8455
8456 2014-02-19 Tom Tromey <tromey@redhat.com>
8457
8458 * target-delegates.c: Rebuild.
8459 * target.c (default_search_memory): New function.
8460 (simple_search_memory): Update comment.
8461 (target_search_memory): Unconditionally delegate.
8462 * target.h (struct target_ops) <to_search_memory>: Use
8463 TARGET_DEFAULT_FUNC.
8464
8465 2014-02-19 Tom Tromey <tromey@redhat.com>
8466
8467 * auxv.c (default_auxv_parse): No longer static.
8468 (target_auxv_parse): Unconditionally delegate.
8469 * auxv.h (default_auxv_parse): Declare.
8470 * target-delegates.c: Rebuild.
8471 * target.c: Include auxv.h.
8472 * target.h (struct target_ops) <to_auxv_parse>: Use
8473 TARGET_DEFAULT_FUNC.
8474
8475 2014-02-19 Tom Tromey <tromey@redhat.com>
8476
8477 * target-delegates.c: Rebuild.
8478 * target.c (target_memory_map): Unconditionally delegate.
8479 * target.h (struct target_ops) <to_memory_map>: Use
8480 TARGET_DEFAULT_RETURN.
8481
8482 2014-02-19 Tom Tromey <tromey@redhat.com>
8483
8484 * target-delegates.c: Rebuild.
8485 * target.c (target_thread_alive): Unconditionally delegate.
8486 * target.h (struct target_ops) <to_thread_alive>: Use
8487 TARGET_DEFAULT_RETURN.
8488
8489 2014-02-19 Tom Tromey <tromey@redhat.com>
8490
8491 * target-delegates.c: Rebuild.
8492 * target.c (target_save_record): Unconditionally delegate.
8493 * target.h (struct target_ops) <to_save_record>: Use
8494 TARGET_DEFAULT_NORETURN.
8495
8496 2014-02-19 Tom Tromey <tromey@redhat.com>
8497
8498 * target-delegates.c: Rebuild.
8499 * target.c (target_delete_record): Unconditionally delegate.
8500 * target.h (struct target_ops) <to_delete_record>: Use
8501 TARGET_DEFAULT_NORETURN.
8502
8503 2014-02-19 Tom Tromey <tromey@redhat.com>
8504
8505 * target-delegates.c: Rebuild.
8506 * target.c (target_record_is_replaying): Unconditionally
8507 delegate.
8508 * target.h (struct target_ops) <to_record_is_replaying>: Use
8509 TARGET_DEFAULT_RETURN.
8510
8511 2014-02-19 Tom Tromey <tromey@redhat.com>
8512
8513 * target-delegates.c: Rebuild.
8514 * target.c (target_goto_record_begin): Unconditionally delegate.
8515 * target.h (struct target_ops) <to_goto_record_begin>: Use
8516 TARGET_DEFAULT_NORETURN.
8517
8518 2014-02-19 Tom Tromey <tromey@redhat.com>
8519
8520 * target-delegates.c: Rebuild.
8521 * target.c (target_goto_record_end): Unconditionally delegate.
8522 * target.h (struct target_ops) <to_goto_record_end>: Use
8523 TARGET_DEFAULT_NORETURN.
8524
8525 2014-02-19 Tom Tromey <tromey@redhat.com>
8526
8527 * target-delegates.c: Rebuild.
8528 * target.c (target_goto_record): Unconditionally delegate.
8529 * target.h (struct target_ops) <to_goto_record>: Use
8530 TARGET_DEFAULT_NORETURN.
8531
8532 2014-02-19 Tom Tromey <tromey@redhat.com>
8533
8534 * target-delegates.c: Rebuild.
8535 * target.c (target_insn_history): Unconditionally delegate.
8536 * target.h (struct target_ops) <to_insn_history>: Use
8537 TARGET_DEFAULT_NORETURN.
8538
8539 2014-02-19 Tom Tromey <tromey@redhat.com>
8540
8541 * target-delegates.c: Rebuild.
8542 * target.c (target_insn_history_from): Unconditionally delegate.
8543 * target.h (struct target_ops) <to_insn_history_from>: Use
8544 TARGET_DEFAULT_NORETURN.
8545
8546 2014-02-19 Tom Tromey <tromey@redhat.com>
8547
8548 * target-delegates.c: Rebuild.
8549 * target.c (target_insn_history_range): Unconditionally delegate.
8550 * target.h (struct target_ops) <to_insn_history_range>: Use
8551 TARGET_DEFAULT_NORETURN.
8552
8553 2014-02-19 Tom Tromey <tromey@redhat.com>
8554
8555 * target-delegates.c: Rebuild.
8556 * target.c (target_call_history): Unconditionally delegate.
8557 * target.h (struct target_ops) <to_call_history>: Use
8558 TARGET_DEFAULT_NORETURN.
8559
8560 2014-02-19 Tom Tromey <tromey@redhat.com>
8561
8562 * target-delegates.c: Rebuild.
8563 * target.c (target_call_history_from): Unconditionally delegate.
8564 * target.h (struct target_ops) <to_call_history_from>: Use
8565 TARGET_DEFAULT_NORETURN.
8566
8567 2014-02-19 Tom Tromey <tromey@redhat.com>
8568
8569 * target-delegates.c: Rebuild.
8570 * target.c (target_call_history_range): Unconditionally delegate.
8571 * target.h (struct target_ops) <to_call_history_range>: Use
8572 TARGET_DEFAULT_NORETURN.
8573
8574 2014-02-19 Tom Tromey <tromey@redhat.com>
8575
8576 * target-delegates.c: Rebuild.
8577 * target.c (target_verify_memory): Unconditionally delegate.
8578 * target.h (struct target_ops) <to_verify_memory>: Use
8579 TARGET_DEFAULT_NORETURN.
8580
8581 2014-02-19 Tom Tromey <tromey@redhat.com>
8582
8583 * target-delegates.c: Rebuild.
8584 * target.c (target_core_of_thread): Unconditionally delegate.
8585 * target.h (struct target_ops) <to_core_of_thread>: Use
8586 TARGET_DEFAULT_RETURN.
8587
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * target-delegates.c: Rebuild.
8591 * target.c (target_flash_done): Unconditionally delegate.
8592 * target.h (struct target_ops) <to_flash_done>: Use
8593 TARGET_DEFAULT_NORETURN.
8594
8595 2014-02-19 Tom Tromey <tromey@redhat.com>
8596
8597 * target-delegates.c: Rebuild.
8598 * target.c (target_flash_erase): Unconditionally delegate.
8599 * target.h (struct target_ops) <to_flash_erase>: Use
8600 TARGET_DEFAULT_NORETURN.
8601
8602 2014-02-19 Tom Tromey <tromey@redhat.com>
8603
8604 * target-delegates.c: Rebuild.
8605 * target.c (target_get_section_table): Unconditionally delegate.
8606 * target.h (struct target_ops) <to_get_section_table>: Use
8607 TARGET_DEFAULT_RETURN.
8608
8609 2014-02-19 Tom Tromey <tromey@redhat.com>
8610
8611 * target-delegates.c: Rebuild.
8612 * target.c (target_pid_to_str): Unconditionally delegate.
8613 (init_dummy_target): Don't initialize to_pid_to_str.
8614 (default_pid_to_str): Rename from dummy_pid_to_str.
8615 * target.h (struct target_ops) <to_pid_to_str>: Use
8616 TARGET_DEFAULT_FUNC.
8617
8618 2014-02-19 Tom Tromey <tromey@redhat.com>
8619
8620 * target-delegates.c: Rebuild.
8621 * target.c (target_find_new_threads): Unconditionally delegate.
8622 * target.h (struct target_ops) <to_find_new_threads>: Use
8623 TARGET_DEFAULT_RETURN.
8624
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8626
8627 * target-delegates.c: Rebuild.
8628 * target.c (target_program_signals): Unconditionally delegate.
8629 * target.h (struct target_ops) <to_program_signals>: Use
8630 TARGET_DEFAULT_IGNORE.
8631
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8633
8634 * target-delegates.c: Rebuild.
8635 * target.c (target_pass_signals): Unconditionally delegate.
8636 * target.h (struct target_ops) <to_pass_signals>: Use
8637 TARGET_DEFAULT_IGNORE.
8638
8639 2014-02-19 Tom Tromey <tromey@redhat.com>
8640
8641 * target-delegates.c: Rebuild.
8642 * target.c (default_mourn_inferior): New function.
8643 (target_mourn_inferior): Unconditionally delegate.
8644 * target.h (struct target_ops) <to_mourn_inferior>: Use
8645 TARGET_DEFAULT_FUNC.
8646
8647 2014-02-19 Tom Tromey <tromey@redhat.com>
8648
8649 * target-delegates.c: Rebuild.
8650 * target.c (default_follow_fork): New function.
8651 (target_follow_fork): Unconditionally delegate.
8652 * target.h (struct target_ops) <to_follow_fork>: Use
8653 TARGET_DEFAULT_FUNC.
8654
8655 2014-02-19 Tom Tromey <tromey@redhat.com>
8656
8657 * target-delegates.c: Rebuild.
8658 * target.c (target_kill): Unconditionally delegate.
8659 * target.h (struct target_ops) <to_kill>: Use
8660 TARGET_DEFAULT_NORETURN.
8661
8662 2014-02-19 Tom Tromey <tromey@redhat.com>
8663
8664 * target-delegates.c: Rebuild.
8665 * target.c (target_masked_watch_num_registers): Unconditionally
8666 delegate.
8667 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8668 Use TARGET_DEFAULT_RETURN.
8669
8670 2014-02-19 Tom Tromey <tromey@redhat.com>
8671
8672 * target-delegates.c: Rebuild.
8673 * target.c (target_remove_mask_watchpoint): Unconditionally
8674 delegate.
8675 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8676 TARGET_DEFAULT_RETURN.
8677
8678 2014-02-19 Tom Tromey <tromey@redhat.com>
8679
8680 * target-delegates.c: Rebuild.
8681 * target.c (target_insert_mask_watchpoint): Unconditionally
8682 delegate.
8683 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8684 TARGET_DEFAULT_RETURN.
8685
8686 2014-02-19 Tom Tromey <tromey@redhat.com>
8687
8688 * target-delegates.c: Rebuild.
8689 * target.c (target_ranged_break_num_registers): Unconditionally
8690 delegate.
8691 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8692 Use TARGET_DEFAULT_RETURN.
8693
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8695
8696 * target-delegates.c: Rebuild.
8697 * target.c (target_fetch_registers): Unconditionally delegate.
8698 * target.h (struct target_ops) <to_fetch_registers>: Use
8699 TARGET_DEFAULT_NORETURN.
8700
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8702
8703 * target-delegates.c: Rebuild.
8704 * target.c (update_current_target): Don't inherit or default
8705 to_stop.
8706 * target.h (struct target_ops) <to_stop>: Use
8707 TARGET_DEFAULT_IGNORE.
8708
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8710
8711 * target-delegates.c: Rebuild.
8712 * target.c (update_current_target): Don't inherit or default
8713 to_can_run_breakpoint_commands.
8714 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8715 Use TARGET_DEFAULT_RETURN.
8716
8717 2014-02-19 Tom Tromey <tromey@redhat.com>
8718
8719 * target-delegates.c: Rebuild.
8720 * target.c (update_current_target): Don't inherit or default
8721 to_supports_evaluation_of_breakpoint_conditions.
8722 * target.h (struct target_ops)
8723 <to_supports_evaluation_of_breakpoint_conditions>: Use
8724 TARGET_DEFAULT_RETURN.
8725
8726 2014-02-19 Tom Tromey <tromey@redhat.com>
8727
8728 * target-delegates.c: Rebuild.
8729 * target.c (update_current_target): Don't inherit or default
8730 to_augmented_libraries_svr4_read.
8731 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8732 Use TARGET_DEFAULT_RETURN.
8733
8734 2014-02-19 Tom Tromey <tromey@redhat.com>
8735
8736 * target-delegates.c: Rebuild.
8737 * target.c (update_current_target): Don't inherit or default
8738 to_can_use_agent.
8739 * target.h (struct target_ops) <to_can_use_agent>: Use
8740 TARGET_DEFAULT_RETURN.
8741
8742 2014-02-19 Tom Tromey <tromey@redhat.com>
8743
8744 * target-delegates.c: Rebuild.
8745 * target.c (update_current_target): Don't inherit or default
8746 to_use_agent.
8747 * target.h (struct target_ops) <to_use_agent>: Use
8748 TARGET_DEFAULT_NORETURN.
8749
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8751
8752 * target-delegates.c: Rebuild.
8753 * target.c (update_current_target): Don't inherit or default
8754 to_traceframe_info.
8755 (return_null): Remove.
8756 * target.h (struct target_ops) <to_traceframe_info>: Use
8757 TARGET_DEFAULT_RETURN.
8758
8759 2014-02-19 Tom Tromey <tromey@redhat.com>
8760
8761 * target-delegates.c: Rebuild.
8762 * target.c (update_current_target): Don't inherit or default
8763 to_static_tracepoint_markers_by_strid.
8764 * target.h (struct target_ops)
8765 <to_static_tracepoint_markers_by_strid>: Use
8766 TARGET_DEFAULT_NORETURN.
8767
8768 2014-02-19 Tom Tromey <tromey@redhat.com>
8769
8770 * target-delegates.c: Rebuild.
8771 * target.c (update_current_target): Don't inherit or default
8772 to_static_tracepoint_marker_at.
8773 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8774 Use TARGET_DEFAULT_RETURN.
8775
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8777
8778 * target-delegates.c: Rebuild.
8779 * target.c (update_current_target): Don't inherit or default
8780 to_set_permissions.
8781 * target.h (struct target_ops) <to_set_permissions>: Use
8782 TARGET_DEFAULT_IGNORE.
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_get_tib_address.
8789 * target.h (struct target_ops) <to_get_tib_address>: 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_set_trace_notes.
8797 * target.h (struct target_ops) <to_set_trace_notes>: Use
8798 TARGET_DEFAULT_RETURN.
8799
8800 2014-02-19 Tom Tromey <tromey@redhat.com>
8801
8802 * target-delegates.c: Rebuild.
8803 * target.c (update_current_target): Don't initialize
8804 to_set_trace_buffer_size.
8805 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8806 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
8813 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8814 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
8821 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8822 TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
8829 (return_minus_one): Remove.
8830 * target.h (struct target_ops)
8831 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8832
8833 2014-02-19 Tom Tromey <tromey@redhat.com>
8834
8835 * target-delegates.c: Rebuild.
8836 * target.c (update_current_target): Don't inherit or default
8837 to_get_raw_trace_data.
8838 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8839 TARGET_DEFAULT_NORETURN.
8840
8841 2014-02-19 Tom Tromey <tromey@redhat.com>
8842
8843 * target-delegates.c: Rebuild.
8844 * target.c (update_current_target): Don't inherit or default
8845 to_upload_trace_state_variables.
8846 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8847 Use TARGET_DEFAULT_RETURN.
8848
8849 2014-02-19 Tom Tromey <tromey@redhat.com>
8850
8851 * target-delegates.c: Rebuild.
8852 * target.c (update_current_target): Don't inherit or default
8853 to_upload_tracepoints.
8854 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8855 TARGET_DEFAULT_RETURN.
8856
8857 2014-02-19 Tom Tromey <tromey@redhat.com>
8858
8859 * target-delegates.c: Rebuild.
8860 * target.c (update_current_target): Don't inherit or default
8861 to_save_trace_data.
8862 * target.h (struct target_ops) <to_save_trace_data>: Use
8863 TARGET_DEFAULT_NORETURN.
8864
8865 2014-02-19 Tom Tromey <tromey@redhat.com>
8866
8867 * target-delegates.c: Rebuild.
8868 * target.c (update_current_target): Don't inherit or default
8869 to_get_trace_state_variable_value.
8870 * target.h (struct target_ops)
8871 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8872
8873 2014-02-19 Tom Tromey <tromey@redhat.com>
8874
8875 * target-delegates.c: Rebuild.
8876 * target.c (update_current_target): Don't inherit or default
8877 to_trace_find.
8878 * target.h (struct target_ops): Use 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_trace_stop.
8885 * target.h (struct target_ops) <to_trace_stop>: Use
8886 TARGET_DEFAULT_NORETURN.
8887
8888 2014-02-19 Tom Tromey <tromey@redhat.com>
8889
8890 * target-delegates.c: Rebuild.
8891 * target.c (update_current_target): Don't inherit or default
8892 to_get_tracepoint_status.
8893 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8894 TARGET_DEFAULT_NORETURN.
8895
8896 2014-02-19 Tom Tromey <tromey@redhat.com>
8897
8898 * target-delegates.c: Rebuild.
8899 * target.c (update_current_target): Don't inherit or default
8900 to_get_trace_status.
8901 * target.h (struct target_ops) <to_get_trace_status>: Use
8902 TARGET_DEFAULT_RETURN.
8903
8904 2014-02-19 Tom Tromey <tromey@redhat.com>
8905
8906 * target-delegates.c: Rebuild.
8907 * target.c (update_current_target): Don't inherit or default
8908 to_trace_start.
8909 * target.h (struct target_ops) <to_trace_start>: Use
8910 TARGET_DEFAULT_NORETURN.
8911
8912 2014-02-19 Tom Tromey <tromey@redhat.com>
8913
8914 * target-delegates.c: Rebuild.
8915 * target.c (update_current_target): Don't inherit or default
8916 to_trace_set_readonly_regions.
8917 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8918 Use TARGET_DEFAULT_NORETURN.
8919
8920 2014-02-19 Tom Tromey <tromey@redhat.com>
8921
8922 * target-delegates.c: Rebuild.
8923 * target.c (update_current_target): Don't inherit or default
8924 to_disable_tracepoint.
8925 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8926 TARGET_DEFAULT_NORETURN.
8927
8928 2014-02-19 Tom Tromey <tromey@redhat.com>
8929
8930 * target-delegates.c: Rebuild.
8931 * target.c (update_current_target): Don't inherit or default
8932 to_enable_tracepoint.
8933 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8934 TARGET_DEFAULT_NORETURN.
8935
8936 2014-02-19 Tom Tromey <tromey@redhat.com>
8937
8938 * target-delegates.c: Rebuild.
8939 * target.c (update_current_target): Don't inherit or default
8940 to_download_trace_state_variable.
8941 * target.h (struct target_ops) <to_download_trace_state_variable>:
8942 Use TARGET_DEFAULT_NORETURN.
8943
8944 2014-02-19 Tom Tromey <tromey@redhat.com>
8945
8946 * target-delegates.c: Rebuild.
8947 * target.c (update_current_target): Don't inherit or default
8948 to_can_download_tracepoint.
8949 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8950 TARGET_DEFAULT_RETURN.
8951
8952 2014-02-19 Tom Tromey <tromey@redhat.com>
8953
8954 * target-delegates.c: Rebuild.
8955 * target.c (update_current_target): Don't inherit or default
8956 to_download_tracepoint.
8957 * target.h (struct target_ops) <to_download_tracepoint>: Use
8958 TARGET_DEFAULT_NORETURN.
8959
8960 2014-02-19 Tom Tromey <tromey@redhat.com>
8961
8962 * target-delegates.c: Rebuild.
8963 * target.c (update_current_target): Don't inherit or default
8964 to_trace_init.
8965 * target.h (struct target_ops) <to_trace_init>: Use
8966 TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
8973 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8974 TARGET_DEFAULT_RETURN.
8975
8976 2014-02-19 Tom Tromey <tromey@redhat.com>
8977
8978 * target-delegates.c: Rebuild.
8979 * target.c (update_current_target): Don't inherit or default
8980 to_supports_enable_disable_tracepoint.
8981 * target.h (struct target_ops)
8982 <to_supports_enable_disable_tracepoint>: 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_supports_multi_process.
8990 * target.h (struct target_ops) <to_supports_multi_process>: Use
8991 TARGET_DEFAULT_RETURN.
8992
8993 2014-02-19 Tom Tromey <tromey@redhat.com>
8994
8995 * target-delegates.c: Rebuild.
8996 * target.c (update_current_target): Don't inherit or default
8997 to_get_ada_task_ptid.
8998 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8999 TARGET_DEFAULT_FUNC.
9000
9001 2014-02-19 Tom Tromey <tromey@redhat.com>
9002
9003 * target-delegates.c: Rebuild.
9004 * target.c (update_current_target): Don't inherit or default
9005 to_thread_architecture.
9006 * target.h (struct target_ops) <to_thread_architecture>: Use
9007 TARGET_DEFAULT_FUNC.
9008
9009 2014-02-19 Tom Tromey <tromey@redhat.com>
9010
9011 * target-delegates.c: Rebuild.
9012 * target.c (update_current_target): Don't inherit or default
9013 to_execution_direction.
9014 * target.h (struct target_ops) <to_execution_direction>: Use
9015 TARGET_DEFAULT_FUNC.
9016
9017 2014-02-19 Tom Tromey <tromey@redhat.com>
9018
9019 * target-delegates.c: Rebuild.
9020 * target.c (update_current_target): Don't inherit or default
9021 to_can_execute_reverse.
9022 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9023 TARGET_DEFAULT_RETURN.
9024 (target_can_execute_reverse): Unconditionally delegate.
9025
9026 2014-02-19 Tom Tromey <tromey@redhat.com>
9027
9028 * target-delegates.c: Rebuild.
9029 * target.c (update_current_target): Don't inherit or default
9030 to_goto_bookmark.
9031 (dummy_goto_bookmark): Remove.
9032 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9033 * target.h (struct target_ops) <to_goto_bookmark>: Use
9034 TARGET_DEFAULT_NORETURN.
9035
9036 2014-02-19 Tom Tromey <tromey@redhat.com>
9037
9038 * target-delegates.c: Rebuild.
9039 * target.c (update_current_target): Don't inherit or default
9040 to_get_bookmark.
9041 (dummy_get_bookmark): Remove.
9042 (init_dummy_target): Don't inherit or default to_get_bookmark.
9043 * target.h (struct target_ops) <to_get_bookmark>: Use
9044 TARGET_DEFAULT_NORETURN
9045
9046 2014-02-19 Tom Tromey <tromey@redhat.com>
9047
9048 * target-delegates.c: Rebuild.
9049 * target.c (update_current_target): Don't inherit or default
9050 to_make_corefile_notes.
9051 (init_dummy_target): Don't initialize to_make_corefile_notes.
9052 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9053 TARGET_DEFAULT_FUNC.
9054
9055 2014-02-19 Tom Tromey <tromey@redhat.com>
9056
9057 * target-delegates.c: Rebuild.
9058 * target.c (update_current_target): Don't inherit or default
9059 to_find_memory_regions.
9060 (init_dummy_target): Don't initialize to_find_memory_regions.
9061 * target.h (struct target_ops) <to_find_memory_regions>: Use
9062 TARGET_DEFAULT_FUNC.
9063
9064 2014-02-19 Tom Tromey <tromey@redhat.com>
9065
9066 * target-delegates.c: Rebuild.
9067 * target.c (update_current_target): Don't inherit or default
9068 to_log_command.
9069 * target.h (struct target_ops) <to_log_command>: Use
9070 TARGET_DEFAULT_IGNORE.
9071 (target_log_command): Unconditionally delegate.
9072
9073 2014-02-19 Tom Tromey <tromey@redhat.com>
9074
9075 * target-delegates.c: Rebuild.
9076 * target.c (update_current_target): Don't inherit or default
9077 to_pid_to_exec_file.
9078 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9079 TARGET_DEFAULT_RETURN.
9080
9081 2014-02-19 Tom Tromey <tromey@redhat.com>
9082
9083 * target-delegates.c: Rebuild.
9084 * target.c (update_current_target): Don't inherit or default
9085 to_thread_name.
9086 (target_thread_name): Unconditionally delegate.
9087 * target.h (struct target_ops) <to_thread_name>: Use
9088 TARGET_DEFAULT_RETURN.
9089
9090 2014-02-19 Tom Tromey <tromey@redhat.com>
9091
9092 * target-delegates.c: Rebuild.
9093 * target.c (update_current_target): Don't inherit or default
9094 to_extra_thread_info.
9095 * target.h (struct target_ops) <to_extra_thread_info>: Use
9096 TARGET_DEFAULT_RETURN.
9097
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9099
9100 * target-delegates.c: Rebuild.
9101 * target.c (update_current_target): Don't inherit or default
9102 to_has_exited.
9103 * target.h (struct target_ops) <to_has_exited>: Use
9104 TARGET_DEFAULT_RETURN..
9105
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9107
9108 * target-delegates.c: Rebuild.
9109 * target.c (update_current_target): Don't inherit or default
9110 to_set_syscall_catchpoint.
9111 (return_one): Remove.
9112 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9113 TARGET_DEFAULT_RETURN.
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_insert_exec_catchpoint.
9120 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9121 TARGET_DEFAULT_RETURN.
9122
9123 2014-01-08 Tom Tromey <tromey@redhat.com>
9124
9125 * target-delegates.c: Rebuild.
9126 * target.c (update_current_target): Don't inherit or default
9127 to_insert_exec_catchpoint.
9128 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9129 TARGET_DEFAULT_RETURN.
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_remove_vfork_catchpoint.
9136 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9137 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_insert_vfork_catchpoint.
9144 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9145 TARGET_DEFAULT_RETURN.
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_remove_fork_catchpoint.
9152 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9153 TARGET_DEFAULT_RETURN.
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_insert_fork_catchpoint.
9160 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9161 TARGET_DEFAULT_RETURN.
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_post_startup_inferior.
9168 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9169 TARGET_DEFAULT_IGNORE.
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_load.
9176 * target.h (struct target_ops) <to_load>: Use
9177 TARGET_DEFAULT_NORETURN.
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_terminal_info.
9184 * target.h (struct target_ops) <to_terminal_info>: Use
9185 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
9192 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9193 TARGET_DEFAULT_IGNORE.
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_terminal_ours.
9200 * target.h (struct target_ops) <to_terminal_ours>: 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_terminal_ours_for_output.
9208 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9209 TARGET_DEFAULT_IGNORE.
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_terminal_inferior.
9216 * target.h (struct target_ops) <to_terminal_inferior>: 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_terminal_init.
9224 * target.h (struct target_ops) <to_terminal_init>: Use
9225 TARGET_DEFAULT_IGNORE.
9226
9227 2014-02-19 Tom Tromey <tromey@redhat.com>
9228
9229 * target-delegates.c: Rebuild.
9230 * target.c (update_current_target): Don't inherit or default
9231 to_can_accel_watchpoint_condition.
9232 * target.h (struct target_ops)
9233 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9234
9235 2014-02-19 Tom Tromey <tromey@redhat.com>
9236
9237 * target-delegates.c: Rebuild.
9238 * target.c (update_current_target): Don't inherit or default
9239 to_region_ok_for_hw_watchpoint.
9240 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9241 Use TARGET_DEFAULT_FUNC.
9242
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9244
9245 * target-delegates.c: Rebuild.
9246 * target.c (update_current_target): Don't inherit or default
9247 to_watchpoint_addr_within_range.
9248 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9249 Use TARGET_DEFAULT_FUNC.
9250
9251 2014-02-19 Tom Tromey <tromey@redhat.com>
9252
9253 * target-delegates.c: Rebuild.
9254 * target.c (update_current_target): Don't inherit or default
9255 to_remove_watchpoint.
9256 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9257 TARGET_DEFAULT_NORETURN.
9258
9259 2014-02-19 Tom Tromey <tromey@redhat.com>
9260
9261 * target-delegates.c: Rebuild.
9262 * target.c (update_current_target): Don't inherit or default
9263 to_insert_watchpoint.
9264 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9265 TARGET_DEFAULT_RETURN.
9266
9267 2014-02-19 Tom Tromey <tromey@redhat.com>
9268
9269 * target-delegates.c: Rebuild.
9270 * target.c (update_current_target): Don't inherit or default
9271 to_remove_hw_breakpoint.
9272 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9273 TARGET_DEFAULT_RETURN.
9274
9275 2014-02-19 Tom Tromey <tromey@redhat.com>
9276
9277 * target-delegates.c: Rebuild.
9278 * target.c (update_current_target): Don't inherit or default
9279 to_insert_hw_breakpoint.
9280 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9281 TARGET_DEFAULT_RETURN.
9282
9283 2014-02-19 Tom Tromey <tromey@redhat.com>
9284
9285 * target-delegates.c: Rebuild.
9286 * target.c (update_current_target): Don't inherit or default
9287 to_can_use_hw_breakpoint.
9288 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9289 TARGET_DEFAULT_RETURN.
9290
9291 2014-02-19 Tom Tromey <tromey@redhat.com>
9292
9293 * target-delegates.c: Rebuild.
9294 * target.c (update_current_target): Don't inherit or default
9295 to_files_info.
9296 * target.h (struct target_ops) <to_files_info>: Use
9297 TARGET_DEFAULT_IGNORE.
9298
9299 2014-02-19 Tom Tromey <tromey@redhat.com>
9300
9301 * target-delegates.c: Rebuild.
9302 * target.c (update_current_target): Don't inherit or default
9303 to_store.
9304 * target.h (struct target_ops) <to_store>: Use
9305 TARGET_DEFAULT_NORETURN.
9306
9307 2014-02-19 Tom Tromey <tromey@redhat.com>
9308
9309 * target-delegates.c: Rebuild.
9310 * target.c (update_current_target): Don't inherit or default
9311 to_post_attach.
9312 * target.h (struct target_ops) <to_post_attach>: Use
9313 TARGET_DEFAULT_IGNORE.
9314
9315 2014-02-19 Tom Tromey <tromey@redhat.com>
9316
9317 * target-delegates.c: Rebuild.
9318 * target.c (update_current_target): Don't inherit or default
9319 to_rcmd.
9320 (default_rcmd): New function.
9321 (do_monitor_command): Unconditionally delegate.
9322 * target.h (struct target_ops) <to_rmcd>: Use
9323 TARGET_DEFAULT_FUNC.
9324
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target-delegates.c: Rebuild.
9328 * target.c (init_dummy_target): Don't initialize to_attach.
9329 (target_attach): Unconditionally delegate.
9330 * target.h (struct target_ops) <to_attach>: Use
9331 TARGET_DEFAULT_FUNC.
9332
9333 2014-02-19 Tom Tromey <tromey@redhat.com>
9334
9335 * target-delegates.c: Rebuild.
9336 * target.c (target_detach): Unconditionally delegate.
9337 (init_dummy_target): Don't initialize to_detach.
9338 * target.h (struct target_ops) <to_detach>: Use
9339 TARGET_DEFAULT_IGNORE.
9340
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9342
9343 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9344 Add argument.
9345 (target_augmented_libraries_svr4_read): Add argument.
9346 * target.c (update_current_target): Update.
9347 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9348 argument.
9349
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * target.h (struct target_ops) <to_call_history_range>: Add
9353 argument.
9354 * target.c (target_call_history_range): Add argument.
9355 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9356 argument.
9357 (record_btrace_call_history_from): Update.
9358
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9360
9361 * target.h (struct target_ops) <to_call_history_from>: Add
9362 argument.
9363 * target.c (target_call_history_from): Add argument.
9364 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9365 argument.
9366
9367 2014-02-19 Tom Tromey <tromey@redhat.com>
9368
9369 * target.h (struct target_ops) <to_call_history>: Add argument.
9370 * target.c (target_call_history): Add argument.
9371 * record-btrace.c (record_btrace_call_history): Add 'self'
9372 argument.
9373
9374 2014-02-19 Tom Tromey <tromey@redhat.com>
9375
9376 * target.h (struct target_ops) <to_insn_history_range>: Add
9377 argument.
9378 * target.c (target_insn_history_range): Add argument.
9379 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9380 argument.
9381 (record_btrace_insn_history_from): Update.
9382
9383 2014-02-19 Tom Tromey <tromey@redhat.com>
9384
9385 * target.h (struct target_ops) <to_insn_history_from>: Add
9386 argument.
9387 * target.c (target_insn_history_from): Add argument.
9388 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9389 argument.
9390
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9392
9393 * target.h (struct target_ops) <to_insn_history>: Add argument.
9394 * target.c (target_insn_history): Add argument.
9395 * record-btrace.c (record_btrace_insn_history): Add 'self'
9396 argument.
9397
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9399
9400 * target.h (struct target_ops) <to_goto_record>: Add argument.
9401 * target.c (target_goto_record): Add argument.
9402 * record-full.c (record_full_goto): Add 'self' argument.
9403 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9404
9405 2014-02-19 Tom Tromey <tromey@redhat.com>
9406
9407 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9408 * target.c (target_goto_record_end): Add argument.
9409 * record-full.c (record_full_goto_end): Add 'self' argument.
9410 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9411
9412 2014-02-19 Tom Tromey <tromey@redhat.com>
9413
9414 * target.h (struct target_ops) <to_goto_record_begin>: Add
9415 argument.
9416 * target.c (target_goto_record_begin): Add argument.
9417 * record-full.c (record_full_goto_begin): Add 'self' argument.
9418 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9419 argument.
9420
9421 2014-02-19 Tom Tromey <tromey@redhat.com>
9422
9423 * target.h (struct target_ops) <to_record_is_replaying>: Add
9424 argument.
9425 * target.c (target_record_is_replaying): Add argument.
9426 * record-full.c (record_full_is_replaying): Add 'self' argument.
9427 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9428 argument.
9429 (record_btrace_xfer_partial, record_btrace_store_registers)
9430 (record_btrace_prepare_to_store, record_btrace_resume)
9431 (record_btrace_wait, record_btrace_decr_pc_after_break)
9432 (record_btrace_find_new_threads, record_btrace_thread_alive):
9433 Update.
9434
9435 2014-02-19 Tom Tromey <tromey@redhat.com>
9436
9437 * target.h (struct target_ops) <to_delete_record>: Add argument.
9438 * target.c (target_delete_record): Add argument.
9439 * record-full.c (record_full_delete): Add 'self' argument.
9440
9441 2014-02-19 Tom Tromey <tromey@redhat.com>
9442
9443 * target.h (struct target_ops) <to_save_record>: Add argument.
9444 * target.c (target_save_record): Add argument.
9445 * record-full.c (record_full_save): Add 'self' argument.
9446 (record_full_save): Add 'self' argument.
9447
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9449
9450 * target.h (struct target_ops) <to_info_record>: Add argument.
9451 * target.c (target_info_record): Add argument.
9452 * record.c (info_record_command): Add argument.
9453 * record-full.c (record_full_info): Add 'self' argument.
9454 * record-btrace.c (record_btrace_info): Add 'self' argument.
9455
9456 2014-02-19 Tom Tromey <tromey@redhat.com>
9457
9458 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9459 * target.c (target_stop_recording): Add argument.
9460 * record.c (record_stop): Add argument.
9461 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9462 argument.
9463
9464 2014-02-19 Tom Tromey <tromey@redhat.com>
9465
9466 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9467 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9468 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9469 argument.
9470 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9471 (_initialize_amd64_linux_nat): Use it.
9472 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9473 (_initialize_i386_linux_nat): Use it.
9474
9475 2014-02-19 Tom Tromey <tromey@redhat.com>
9476
9477 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9478 * target.c (target_teardown_btrace): Add argument.
9479 * remote.c (remote_teardown_btrace): Add 'self' argument.
9480 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9481 argument.
9482 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9483 argument.
9484
9485 2014-02-19 Tom Tromey <tromey@redhat.com>
9486
9487 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9488 * target.c (target_disable_btrace): Add argument.
9489 * remote.c (remote_disable_btrace): Add 'self' argument.
9490 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9491 argument.
9492 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9493 argument.
9494
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9496
9497 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9498 * target.c (target_enable_btrace): Add argument.
9499 * remote.c (remote_enable_btrace): Add 'self' argument.
9500 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9501 argument.
9502 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9503 argument.
9504
9505 2014-02-19 Tom Tromey <tromey@redhat.com>
9506
9507 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9508 (target_can_use_agent): Add argument.
9509 * target.c (update_current_target): Update.
9510 * remote.c (remote_can_use_agent): Add 'self' argument.
9511 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9512
9513 2014-02-19 Tom Tromey <tromey@redhat.com>
9514
9515 * target.h (struct target_ops) <to_use_agent>: Add argument.
9516 (target_use_agent): Add argument.
9517 * target.c (update_current_target): Update.
9518 * remote.c (remote_use_agent): Add 'self' argument.
9519 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9520
9521 2014-02-19 Tom Tromey <tromey@redhat.com>
9522
9523 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9524 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9525 (target_traceframe_info): Add argument.
9526 * target.c (update_current_target): Update.
9527 * remote.c (remote_traceframe_info): Add 'self' argument.
9528 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9529
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9531
9532 * target.h (target_static_tracepoint_markers_by_strid): Add
9533 argument.
9534 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9535 'self' argument.
9536 * target.c (update_current_target): Update.
9537 * remote.c (struct target_ops)
9538 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9539 * linux-nat.c (struct target_ops)
9540 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9541
9542 2014-02-19 Tom Tromey <tromey@redhat.com>
9543
9544 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9545 Add argument.
9546 (target_static_tracepoint_marker_at): Add argument.
9547 * target.c (update_current_target): Update.
9548 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9549 argument.
9550
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9552
9553 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9554 (target_set_permissions): Add argument.
9555 * target.c (update_current_target): Update.
9556 * remote.c (remote_set_permissions): Add 'self' argument.
9557 (remote_start_remote): Update.
9558
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9560
9561 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9562 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9563 (target_get_tib_address): Add argument.
9564 * target.c (update_current_target): Update.
9565 * remote.c (remote_get_tib_address): Add 'self' argument.
9566
9567 2014-02-19 Tom Tromey <tromey@redhat.com>
9568
9569 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9570 (target_set_trace_notes): Add argument.
9571 * target.c (update_current_target): Update.
9572 * remote.c (remote_set_trace_notes): Add 'self' argument.
9573
9574 2014-02-19 Tom Tromey <tromey@redhat.com>
9575
9576 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9577 argument.
9578 (target_set_trace_buffer_size): Add argument.
9579 * target.c (update_current_target): Update.
9580 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9581
9582 2014-02-19 Tom Tromey <tromey@redhat.com>
9583
9584 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9585 argument.
9586 (target_set_circular_trace_buffer): Add argument.
9587 * target.c (update_current_target): Update.
9588 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9589 argument.
9590
9591 2014-02-19 Tom Tromey <tromey@redhat.com>
9592
9593 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9594 argument.
9595 (target_set_disconnected_tracing): Add argument.
9596 * target.c (update_current_target): Update.
9597 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9598
9599 2014-02-19 Tom Tromey <tromey@redhat.com>
9600
9601 * target.h (struct target_ops)
9602 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9603 (target_get_min_fast_tracepoint_insn_len): Add argument.
9604 * target.c (update_current_target): Update.
9605 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9606 argument.
9607
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9609
9610 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9611 argument.
9612 (target_get_raw_trace_data): Add argument.
9613 * target.c (update_current_target): Update.
9614 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9615
9616 2014-02-19 Tom Tromey <tromey@redhat.com>
9617
9618 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9619 Add argument.
9620 (target_upload_trace_state_variables): Add argument.
9621 * target.c (update_current_target): Update.
9622 * remote.c (remote_upload_trace_state_variables): Add 'self'
9623 argument.
9624 (remote_start_remote): Update.
9625
9626 2014-02-19 Tom Tromey <tromey@redhat.com>
9627
9628 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9629 argument.
9630 (target_upload_tracepoints): Add argument.
9631 * target.c (update_current_target): Update.
9632 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9633 (remote_start_remote): Update.
9634
9635 2014-02-19 Tom Tromey <tromey@redhat.com>
9636
9637 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9638 (target_save_trace_data): Add argument.
9639 * target.c (update_current_target): Update.
9640 * remote.c (remote_save_trace_data): Add 'self' argument.
9641
9642 2014-02-19 Tom Tromey <tromey@redhat.com>
9643
9644 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9645 argument.
9646 * target.h (struct target_ops)
9647 <to_get_trace_state_variable_value>: Add argument.
9648 (target_get_trace_state_variable_value): Add argument.
9649 * target.c (update_current_target): Update.
9650 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9651 argument.
9652 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9653
9654 2014-02-19 Tom Tromey <tromey@redhat.com>
9655
9656 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9657 * target.h (struct target_ops) <to_trace_find>: Add argument.
9658 (target_trace_find): Add argument.
9659 * target.c (update_current_target): Update.
9660 * remote.c (remote_trace_find): Add 'self' argument.
9661 * ctf.c (ctf_trace_find): Add 'self' argument.
9662
9663 2014-02-19 Tom Tromey <tromey@redhat.com>
9664
9665 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9666 (target_trace_stop): Add argument.
9667 * target.c (update_current_target): Update.
9668 * remote.c (remote_trace_stop): Add 'self' argument.
9669
9670 2014-02-19 Tom Tromey <tromey@redhat.com>
9671
9672 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9673 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9674 argument.
9675 (target_get_tracepoint_status): Add argument.
9676 * target.c (update_current_target): Update.
9677 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9678
9679 2014-02-19 Tom Tromey <tromey@redhat.com>
9680
9681 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9682 * target.h (struct target_ops) <to_get_trace_status>: Add
9683 argument.
9684 (target_get_trace_status): Add argument.
9685 * target.c (update_current_target): Update.
9686 * remote.c (remote_get_trace_status): Add 'self' argument.
9687 (remote_start_remote, remote_can_download_tracepoint): Update.
9688 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9689
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9691
9692 * target.h (struct target_ops) <to_trace_start>: Add argument.
9693 (target_trace_start): Add argument.
9694 * target.c (update_current_target): Update.
9695 * remote.c (remote_trace_start): Add 'self' argument.
9696
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9698
9699 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9700 Add argument.
9701 (target_trace_set_readonly_regions): Add argument.
9702 * target.c (update_current_target): Update.
9703 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9704 argument.
9705
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9709 argument.
9710 (target_disable_tracepoint): Add argument.
9711 * target.c (update_current_target): Update.
9712 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9713
9714 2014-02-19 Tom Tromey <tromey@redhat.com>
9715
9716 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9717 argument.
9718 (target_enable_tracepoint): Add argument.
9719 * target.c (update_current_target): Update.
9720 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9721
9722 2014-02-19 Tom Tromey <tromey@redhat.com>
9723
9724 * target.h (struct target_ops) <to_download_trace_state_variable>:
9725 Add argument.
9726 (target_download_trace_state_variable): Add argument.
9727 * target.c (update_current_target): Update.
9728 * remote.c (remote_download_trace_state_variable): Add 'self'
9729 argument.
9730
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9732
9733 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9734 argument.
9735 (target_can_download_tracepoint): Add argument.
9736 * target.c (update_current_target): Update.
9737 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9738
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9740
9741 * target.h (struct target_ops) <to_download_tracepoint>: Add
9742 argument.
9743 (target_download_tracepoint): Add argument.
9744 * target.c (update_current_target): Update.
9745 * remote.c (remote_download_tracepoint): Add 'self' argument.
9746
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9748
9749 * target.h (struct target_ops) <to_trace_init>: Add argument.
9750 (target_trace_init): Add argument.
9751 * target.c (update_current_target): Update.
9752 * remote.c (remote_trace_init): Add 'self' argument.
9753
9754 2014-02-19 Tom Tromey <tromey@redhat.com>
9755
9756 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9757 * target.c (target_fileio_readlink): Add argument.
9758 * remote.c (remote_hostio_readlink): Add 'self' argument.
9759 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9760
9761 2014-02-19 Tom Tromey <tromey@redhat.com>
9762
9763 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9764 * target.c (target_fileio_unlink): Add argument.
9765 * remote.c (remote_hostio_unlink): Add 'self' argument.
9766 (remote_file_delete): Update.
9767 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9768
9769 2014-02-19 Tom Tromey <tromey@redhat.com>
9770
9771 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9772 * target.c (target_fileio_close): Add argument.
9773 * remote.c (remote_hostio_close): Add 'self' argument.
9774 (remote_hostio_close_cleanup): Update.
9775 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9776 Update.
9777 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9778
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9782 * target.c (target_fileio_pread): Add argument.
9783 * remote.c (remote_hostio_pread): Add 'self' argument.
9784 (remote_bfd_iovec_pread, remote_file_get): Update.
9785 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9786
9787 2014-02-19 Tom Tromey <tromey@redhat.com>
9788
9789 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9790 * target.c (target_fileio_pwrite): Add argument.
9791 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9792 (remote_file_put): Update.
9793 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9794
9795 2014-02-19 Tom Tromey <tromey@redhat.com>
9796
9797 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9798 * target.c (target_fileio_open): Add argument.
9799 * remote.c (remote_hostio_open): Add 'self' argument.
9800 (remote_bfd_iovec_open): Add 'self' argument.
9801 (remote_file_put): Add 'self' argument.
9802 (remote_file_get): Add 'self' argument.
9803 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9804
9805 2014-02-19 Tom Tromey <tromey@redhat.com>
9806
9807 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9808 Add argument.
9809 (target_can_run_breakpoint_commands): Add argument.
9810 * target.c (update_current_target): Update.
9811 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9812 argument.
9813 (remote_insert_breakpoint): Add 'self' argument.
9814 (remote_insert_hw_breakpoint): Add 'self' argument.
9815 (remote_can_run_breakpoint_commands): Add 'self' argument.
9816
9817 2014-02-19 Tom Tromey <tromey@redhat.com>
9818
9819 * target.h (struct target_ops)
9820 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9821 (target_supports_evaluation_of_breakpoint_conditions): Add
9822 argument.
9823 * target.c (update_current_target): Update.
9824 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9825 argument.
9826 (remote_insert_breakpoint): Add 'self' argument.
9827 (remote_insert_hw_breakpoint): Add 'self' argument.
9828 (remote_supports_cond_breakpoints): Add 'self' argument.
9829
9830 2014-02-19 Tom Tromey <tromey@redhat.com>
9831
9832 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9833 argument.
9834 (target_supports_string_tracing): Add argument.
9835 * target.c (update_current_target): Update.
9836 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9837
9838 2014-02-19 Tom Tromey <tromey@redhat.com>
9839
9840 * target.h (struct target_ops)
9841 <to_supports_disable_randomization>: Add argument.
9842 * target.c (find_default_supports_disable_randomization): Add
9843 argument.
9844 (target_supports_disable_randomization): Add argument.
9845 (find_default_supports_disable_randomization): Add 'self'
9846 argument.
9847 * remote.c (extended_remote_supports_disable_randomization): Add
9848 'self' argument.
9849 (remote_supports_disable_randomization): Add 'self' argument.
9850 (extended_remote_create_inferior): Update.
9851 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9852 'self' argument.
9853
9854 2014-02-19 Tom Tromey <tromey@redhat.com>
9855
9856 * target.h (struct target_ops)
9857 <to_supports_enable_disable_tracepoint>: Add argument.
9858 (target_supports_enable_disable_tracepoint): Add argument.
9859 * target.c (update_current_target): Update.
9860 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9861 argument.
9862
9863 2014-02-19 Tom Tromey <tromey@redhat.com>
9864
9865 * target.h (struct target_ops) <to_supports_multi_process>: Add
9866 argument.
9867 (target_supports_multi_process): Add argument.
9868 * target.c (update_current_target): Update.
9869 * remote.c (remote_supports_multi_process): Add 'self' argument.
9870 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9871 argument.
9872 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9873 argument.
9874
9875 2014-02-19 Tom Tromey <tromey@redhat.com>
9876
9877 * target.h (struct target_ops) <to_execution_direction>: Add
9878 argument.
9879 (target_execution_direction): Add argument.
9880 * target.c (default_execution_direction): Add 'self' argument.
9881 * record-full.c (record_full_execution_direction): Add 'self'
9882 argument.
9883
9884 2014-02-19 Tom Tromey <tromey@redhat.com>
9885
9886 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9887 argument.
9888 (target_can_execute_reverse): Add argument.
9889 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9890 * record-full.c (record_full_can_execute_reverse): Add 'self'
9891 argument.
9892 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9893 argument.
9894
9895 2014-02-19 Tom Tromey <tromey@redhat.com>
9896
9897 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9898 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9899 argument.
9900 (target_get_ada_task_ptid): Add argument.
9901 * target.c (update_current_target): Update.
9902 (default_get_ada_task_ptid): Add 'self' argument.
9903 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9904 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9905 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9906 argument.
9907 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9908 argument.
9909 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9910 argument.
9911 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9912 argument.
9913 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9914 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9915 argument.
9916
9917 2014-02-19 Tom Tromey <tromey@redhat.com>
9918
9919 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9920 (target_goto_bookmark): Add argument.
9921 * target.c (dummy_goto_bookmark): Add 'self' argument.
9922 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9923
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9925
9926 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9927 (target_get_bookmark): Add argument.
9928 * target.c (dummy_get_bookmark): Add 'self' argument.
9929 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9930
9931 2014-02-19 Tom Tromey <tromey@redhat.com>
9932
9933 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9934 argument.
9935 (target_make_corefile_notes): Add argument.
9936 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9937 * procfs.c (procfs_make_note_section): Add 'self' argument.
9938 (procfs_make_note_section): Add 'self' argument.
9939 (procfs_make_note_section): Add 'self' argument.
9940 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9941 argument.
9942 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9943 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9944 * exec.c (exec_make_note_section): Add 'self' argument.
9945 (exec_make_note_section): Add 'self' argument.
9946
9947 2014-02-19 Tom Tromey <tromey@redhat.com>
9948
9949 * target.h (struct target_ops) <to_find_memory_regions>: Add
9950 argument.
9951 (target_find_memory_regions): Add argument.
9952 * target.c (dummy_find_memory_regions): Add 'self' argument.
9953 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9954 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9955 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9956 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9957 * exec. (exec_do_find_memory_regions): New global.
9958 (exec_set_find_memory_regions): Rewrite.
9959 (exec_find_memory_regions): New function.
9960 (init_exec_ops): Use exec_find_memory_regions.
9961
9962 2014-02-19 Tom Tromey <tromey@redhat.com>
9963
9964 * target.h (struct target_ops) <to_supports_non_stop>: Add
9965 argument.
9966 * target.c (find_default_supports_non_stop): Add argument.
9967 (target_supports_non_stop): Add argument.
9968 (find_default_supports_non_stop): Add 'self' argument.
9969 * remote.c (remote_supports_non_stop): Add 'self' argument.
9970 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9971
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9973
9974 * target.h (struct target_ops) <to_log_command>: Add argument.
9975 (target_log_command): Add argument.
9976 * serial.h (serial_log_command): Add 'self' argument.
9977 * serial.c (serial_log_command): Add 'self' argument.
9978
9979 2014-02-19 Tom Tromey <tromey@redhat.com>
9980
9981 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9982 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9983 argument.
9984 (target_pid_to_exec_file): Add argument.
9985 * target.c (debug_to_pid_to_exec_file): Add argument.
9986 (update_current_target): Update.
9987 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9988 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9989 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9990 (linux_handle_extended_wait): Update.
9991 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9992 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9993 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9994 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9995
9996 2014-02-19 Tom Tromey <tromey@redhat.com>
9997
9998 * target.h (struct target_ops) <to_rcmd>: Add argument.
9999 (target_rcmd): Add argument.
10000 * target.c (debug_to_rcmd): Add argument.
10001 (update_current_target, do_monitor_command): Update.
10002 * remote.c (remote_rcmd): Add 'self' argument.
10003 * monitor.c (monitor_rcmd): Add 'self' argument.
10004
10005 2014-02-19 Tom Tromey <tromey@redhat.com>
10006
10007 * windows-nat.c (windows_stop): Add 'self' argument.
10008 * target.h (struct target_ops) <to_stop>: Add argument.
10009 * target.c (target_stop): Add argument.
10010 (debug_to_stop): Add argument.
10011 (update_current_target): Update.
10012 * remote.c (remote_stop): Add 'self' argument.
10013 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10014 (gdbsim_cntrl_c): Update.
10015 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10016 * procfs.c (procfs_stop): Add 'self' argument.
10017 * nto-procfs.c (procfs_stop): Add 'self' argument.
10018 * monitor.c (monitor_stop): Add 'self' argument.
10019 (monitor_open): Update.
10020 * linux-nat.c (linux_nat_stop): Add argument.
10021 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10022 * gnu-nat.c (gnu_stop): Add 'self' argument.
10023 * darwin-nat.c (darwin_stop): Add 'self' argument.
10024
10025 2014-02-19 Tom Tromey <tromey@redhat.com>
10026
10027 * target.h (struct target_ops) <to_thread_name>: Add argument.
10028 * target.c (target_thread_name): Add argument.
10029 (update_current_target): Update.
10030 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10031
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 * target.h (struct target_ops) <to_extra_thread_info>: Add
10035 argument.
10036 (target_extra_thread_info): Add argument.
10037 * target.c (update_current_target): Update.
10038 * remote.c (remote_threads_extra_info): Add 'self' argument.
10039 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10040 argument.
10041 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10042 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10043 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10044 argument.
10045 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10046 argument.
10047 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10048 argument.
10049 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10050 argument.
10051
10052 2014-02-19 Tom Tromey <tromey@redhat.com>
10053
10054 * target.h (struct target_ops) <to_program_signals>: Add argument.
10055 * target.c (target_program_signals): Add argument.
10056 * remote.c (remote_program_signals): Add 'self' argument.
10057
10058 2014-02-19 Tom Tromey <tromey@redhat.com>
10059
10060 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10061 * target.c (target_pass_signals): Add argument.
10062 * remote.c (remote_pass_signals): Add 'self' argument.
10063 (remote_start_remote): Update.
10064 * procfs.c (procfs_pass_signals): Add 'self' argument.
10065 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10066 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10067 (linux_nat_create_inferior, linux_nat_attach): Update.
10068
10069 2014-02-19 Tom Tromey <tromey@redhat.com>
10070
10071 * windows-nat.c (windows_can_run): Add 'self' argument.
10072 * target.h (struct target_ops) <to_can_run>: Add argument.
10073 (target_can_run): Add argument.
10074 * target.c (debug_to_can_run): Add argument.
10075 (update_current_target): Update.
10076 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10077 * inf-child.c (inf_child_can_run): Add 'self' argument.
10078 * go32-nat.c (go32_can_run): Add 'self' argument.
10079
10080 2014-02-19 Tom Tromey <tromey@redhat.com>
10081
10082 * target.h (struct target_ops) <to_has_exited>: Add argument.
10083 (target_has_exited): Add argument.
10084 * target.c (debug_to_has_exited): Add argument.
10085 (update_current_target): Update.
10086
10087 2014-02-19 Tom Tromey <tromey@redhat.com>
10088
10089 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10090 argument.
10091 (target_set_syscall_catchpoint): Add argument.
10092 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10093 argument.
10094 * target.c (update_current_target): Update.
10095
10096 2014-02-19 Tom Tromey <tromey@redhat.com>
10097
10098 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10099 argument.
10100 (target_remove_exec_catchpoint): Add argument.
10101 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10102 (update_current_target): Update.
10103 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10104 argument.
10105
10106 2014-02-19 Tom Tromey <tromey@redhat.com>
10107
10108 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10109 argument.
10110 (target_insert_exec_catchpoint): Add argument.
10111 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10112 (update_current_target): Update.
10113 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10114 argument.
10115
10116 2014-02-19 Tom Tromey <tromey@redhat.com>
10117
10118 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10119 argument.
10120 (target_remove_vfork_catchpoint): Add argument.
10121 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10122 (update_current_target): Update.
10123 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10124 argument.
10125
10126 2014-02-19 Tom Tromey <tromey@redhat.com>
10127
10128 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10129 argument.
10130 (target_insert_vfork_catchpoint): Add argument.
10131 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10132 (update_current_target): Update.
10133 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10134 argument.
10135
10136 2014-02-19 Tom Tromey <tromey@redhat.com>
10137
10138 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10139 argument.
10140 (target_remove_fork_catchpoint): Add argument.
10141 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10142 (update_current_target): Update.
10143 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10144 argument.
10145
10146 2014-02-19 Tom Tromey <tromey@redhat.com>
10147
10148 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10149 argument.
10150 (target_insert_fork_catchpoint): Add argument.
10151 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10152 (update_current_target): Update.
10153 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10154 argument.
10155
10156 2014-02-19 Tom Tromey <tromey@redhat.com>
10157
10158 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10159 argument.
10160 (target_post_startup_inferior): Add argument.
10161 * target.c (debug_to_post_startup_inferior): Add argument.
10162 (update_current_target): Update.
10163 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10164 argument.
10165 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10166 argument.
10167 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10168 argument.
10169 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10170 argument.
10171 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10172 'self' argument.
10173 (super_post_startup_inferior): Likewise.
10174 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10175 'self' argument.
10176 (super_post_startup_inferior): Likewise.
10177 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10178 Add 'self' argument.
10179 (super_post_startup_inferior): Likewise.
10180
10181 2014-02-19 Tom Tromey <tromey@redhat.com>
10182
10183 * target.h (struct target_ops) <to_load>: Add argument.
10184 * target.c (target_load): Add argument.
10185 (debug_to_load): Add argument.
10186 (update_current_target): Update.
10187 * remote.c (remote_load): Add 'self' argument.
10188 * remote-sim.c (gdbsim_load): Add 'self' argument.
10189 * remote-mips.c (mips_load): Add 'self' argument.
10190 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10191 * monitor.c (monitor_load): Add 'self' argument.
10192 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10193
10194 2014-02-19 Tom Tromey <tromey@redhat.com>
10195
10196 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10197 (target_terminal_info): Add argument.
10198 * target.c (debug_to_terminal_info): Add argument.
10199 (default_terminal_info): Likewise.
10200 * inflow.c (child_terminal_info): Add 'self' argument.
10201 * inferior.h (child_terminal_info): Add 'self' argument.
10202 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10203
10204 2014-02-19 Tom Tromey <tromey@redhat.com>
10205
10206 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10207 argument.
10208 (target_terminal_save_ours): Add argument.
10209 * target.c (debug_to_terminal_save_ours): Add argument.
10210 (update_current_target): Update.
10211 * inflow.c (terminal_save_ours): Add 'self' argument.
10212 * inferior.h (terminal_save_ours): Add 'self' argument.
10213
10214 2014-02-19 Tom Tromey <tromey@redhat.com>
10215
10216 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10217 (target_terminal_ours): Add argument.
10218 * target.c (debug_to_terminal_ours): Add argument.
10219 (update_current_target): Update.
10220 * remote.c (remote_terminal_ours): Add 'self' argument.
10221 (remote_close): Update.
10222 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10223 * inflow.c (terminal_ours): Add 'self' argument.
10224 * inferior.h (terminal_ours): Add 'self' argument.
10225 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10226
10227 2014-02-19 Pedro Alves <palves@redhat.com>
10228 Tom Tromey <tromey@redhat.com>
10229
10230 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10231 argument.
10232 (target_terminal_ours_for_output): Add argument.
10233 * target.c (debug_to_terminal_ours_for_output): Add argument.
10234 (update_current_target): Update.
10235 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10236 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10237 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10238
10239 2014-02-19 Tom Tromey <tromey@redhat.com>
10240
10241 * target.h (struct target_ops) <to_terminal_inferior>: Add
10242 argument.
10243 * target.c (target_terminal_inferior): Add argument.
10244 (update_current_target): Update.
10245 * remote.c (remote_terminal_inferior): Add 'self' argument.
10246 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10247 * inflow.c (terminal_inferior): Add 'self' argument.
10248 * inferior.h (terminal_inferior): Add 'self' argument.
10249 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10250 (go32_terminal_inferior): Add 'self' argument.
10251
10252 2014-02-19 Tom Tromey <tromey@redhat.com>
10253
10254 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10255 (target_terminal_init): Add argument.
10256 * target.c (debug_to_terminal_init): Add argument.
10257 (update_current_target): Update.
10258 * inflow.c (terminal_init_inferior): Add 'self' argument.
10259 * inferior.h (terminal_init_inferior): Add 'self' argument.
10260 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10261 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10262
10263 2014-02-19 Tom Tromey <tromey@redhat.com>
10264
10265 * target.h (struct target_ops)
10266 <to_can_accel_watchpoint_condition>: Add argument.
10267 (target_can_accel_watchpoint_condition): Add argument.
10268 * target.c (debug_to_can_accel_watchpoint_condition): Add
10269 argument.
10270 (update_current_target): Update.
10271 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10272 'self' argument.
10273
10274 2014-02-19 Tom Tromey <tromey@redhat.com>
10275
10276 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10277 Add argument.
10278 (target_region_ok_for_hw_watchpoint): Add argument.
10279 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10280 (default_region_ok_for_hw_watchpoint): Add argument.
10281 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10282 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10283 argument.
10284 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10285 argument.
10286 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10287 argument.
10288 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10289 'self' argument.
10290 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10291 'self' argument.
10292 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10293 'self' argument.
10294 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10295 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10296 'self' argument.
10297 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10298 Add 'self' argument.
10299
10300 2014-02-19 Tom Tromey <tromey@redhat.com>
10301
10302 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10303 argument.
10304 (target_insert_watchpoint): Add argument.
10305 * target.c (debug_to_insert_watchpoint): Add argument.
10306 (update_current_target): Update.
10307 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10308 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10309 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10310 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10311 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10312 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10313 argument.
10314 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10315 (procfs_insert_hw_watchpoint): Add 'self' argument.
10316 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10317 argument.
10318 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10319 argument.
10320 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10321 argument.
10322 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10323 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10324 argument.
10325 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10326 'self' argument.
10327
10328 2014-02-19 Tom Tromey <tromey@redhat.com>
10329
10330 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10331 argument.
10332 (target_remove_watchpoint): Add argument.
10333 * target.c (debug_to_remove_watchpoint): Add argument.
10334 (update_current_target): Update.
10335 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10336 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10337 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10338 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10339 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10340 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10341 argument.
10342 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10343 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10344 argument.
10345 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10346 argument.
10347 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10348 argument.
10349 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10350 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10351 argument.
10352 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10353 'self' argument.
10354
10355 2014-02-19 Tom Tromey <tromey@redhat.com>
10356
10357 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10358 argument.
10359 (target_remove_hw_breakpoint): Add argument.
10360 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10361 (update_current_target): Update.
10362 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10363 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10364 argument.
10365 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10366 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10367 argument.
10368 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10369 'self' argument.
10370
10371 2014-02-19 Tom Tromey <tromey@redhat.com>
10372
10373 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10374 argument.
10375 (target_insert_hw_breakpoint): Add argument.
10376 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10377 (update_current_target): Update.
10378 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10379 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10380 argument.
10381 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10382 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10383 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10384 argument.
10385 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10386 'self' argument.
10387
10388 2014-02-19 Tom Tromey <tromey@redhat.com>
10389
10390 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10391 argument.
10392 (target_can_use_hardware_watchpoint): Add argument.
10393 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10394 (update_current_target): Update.
10395 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10396 argument.
10397 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10398 argument.
10399 * remote.c (remote_check_watch_resources): Add 'self' argument.
10400 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10401 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10402 argument.
10403 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10404 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10405 argument.
10406 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10407 argument.
10408 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10409 argument.
10410 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10411 argument.
10412 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10413 argument.
10414 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10415 argument.
10416 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10417 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10418 argument.
10419 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10420 'self' argument.
10421
10422 2014-02-19 Tom Tromey <tromey@redhat.com>
10423
10424 * target.h (struct target_ops) <to_post_attach>: Add argument.
10425 (target_post_attach): Add argument.
10426 * target.c (debug_to_post_attach): Add argument.
10427 (update_current_target): Update.
10428 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10429 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10430 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10431 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10432 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10433
10434 2014-02-19 Tom Tromey <tromey@redhat.com>
10435
10436 * windows-nat.c (windows_close): Add 'self' argument.
10437 * tracepoint.c (tfile_close): Add 'self' argument.
10438 * target.h (struct target_ops) <to_close>: Add argument.
10439 * target.c (target_close): Add argument.
10440 (update_current_target): Update.
10441 * remote.c (remote_close): Add 'self' argument.
10442 * remote-sim.c (gdbsim_close): Add 'self' argument.
10443 * remote-mips.c (mips_close): Add 'self' argument.
10444 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10445 * record-full.c (record_full_close): Add 'self' argument.
10446 * record-btrace.c (record_btrace_close): Add 'self' argument.
10447 * monitor.h (monitor_close): Add 'self' argument.
10448 * monitor.c (monitor_close): Add 'self' argument.
10449 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10450 * linux-nat.c (linux_nat_close): Add argument.
10451 * go32-nat.c (go32_close): Add 'self' argument.
10452 * exec.c (exec_close_1): Add 'self' argument.
10453 * ctf.c (ctf_close): Add 'self' argument.
10454 * corelow.c (core_close): Add 'self' argument.
10455 (core_close_cleanup): Update.
10456 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10457 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10458
10459 2014-02-19 Tom Tromey <tromey@redhat.com>
10460
10461 * remote.c (remote_load): New function.
10462 (init_remote_ops): Use it.
10463
10464 2014-02-19 Tom Tromey <tromey@redhat.com>
10465
10466 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10467 argument.
10468 * common/linux-btrace.h (linux_supports_btrace): Update.
10469 * remote.c (remote_supports_btrace): Add "self" argument.
10470 * target-delegates.c: Rebuild.
10471 * target.c (target_supports_btrace): Remove.
10472 * target.h (struct target_ops) <to_supports_btrace>: Add
10473 target_ops argument.
10474 (target_supports_btrace): New define.
10475
10476 2014-02-19 Tom Tromey <tromey@redhat.com>
10477
10478 * record-full.c (record_full_beneath_to_resume_ops)
10479 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10480 (record_full_beneath_to_wait)
10481 (record_full_beneath_to_store_registers_ops)
10482 (record_full_beneath_to_store_registers)
10483 (record_full_beneath_to_xfer_partial_ops)
10484 (record_full_beneath_to_xfer_partial)
10485 (record_full_beneath_to_insert_breakpoint_ops)
10486 (record_full_beneath_to_insert_breakpoint)
10487 (record_full_beneath_to_remove_breakpoint_ops)
10488 (record_full_beneath_to_remove_breakpoint)
10489 (record_full_beneath_to_stopped_by_watchpoint)
10490 (record_full_beneath_to_stopped_data_address)
10491 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10492 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10493 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10494 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10495 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10496 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10497 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10498 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10499 (record_full_resume, record_full_wait_1)
10500 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10501 (record_full_store_registers, record_full_xfer_partial)
10502 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10503 (record_full_async, record_full_core_xfer_partial): Use target
10504 delegation.
10505 * target-delegates.c: Rebuild.
10506 * target.c (current_xfer_partial): Remove.
10507 (update_current_target): Do not INHERIT or de_fault
10508 to_insert_breakpoint, to_remove_breakpoint,
10509 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10510 to_is_async_p, to_async. Do not set to_xfer_partial field.
10511 (default_xfer_partial): Simplify.
10512 (current_xfer_partial): Remove.
10513 (target_wait, target_resume): Simplify.
10514 (find_default_can_async_p, find_default_is_async_p): Update.
10515 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10516 to_xfer_partial, to_stopped_by_watchpoint,
10517 to_stopped_data_address.
10518 (target_store_registers): Simplify.
10519 (forward_target_remove_breakpoint)
10520 (forward_target_insert_breakpoint): Remove.
10521 (target_remove_breakpoint, target_insert_breakpoint)
10522 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10523 * target.h (struct target_ops) <to_resume, to_wait,
10524 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10525 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10526 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10527 markup.
10528 (forward_target_remove_breakpoint)
10529 (forward_target_insert_breakpoint): Remove.
10530 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10531 directly.
10532 (record_btrace_insert_breakpoint): Delegate directly.
10533
10534 2014-02-19 Tom Tromey <tromey@redhat.com>
10535
10536 PR build/7701:
10537 * target-delegates.c: New file.
10538 * target.c: Include target-delegates.c.
10539 (init_dummy_target): Call install_dummy_methods.
10540 (complete_target_initialization): Call install_delegators.
10541 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10542 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10543 * make-target-delegates: New file.
10544
10545 2014-02-19 Tom Tromey <tromey@redhat.com>
10546
10547 * record.c (find_record_target): Use find_target_at.
10548 * target.c (find_target_at): New function.
10549 * target.h (find_target_at): Declare.
10550
10551 2014-02-19 Tom Tromey <tromey@redhat.com>
10552
10553 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10554 Add 'ops' argument.
10555 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10556 'ops' argument.
10557 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10558 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10559 'ops' argument.
10560 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10561 argument.
10562 * linux-nat.c (save_sigtrap): Update.
10563 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10564 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10565 (linux_nat_close): Update.
10566 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10567 argument.
10568 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10569 argument.
10570 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10571 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10572 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10573 (tmp_to_async): Add 'ops' argument.
10574 (record_full_stopped_by_watchpoint, record_full_async)
10575 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10576 argument.
10577 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10578 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10579 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10580 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10581 (remote_is_async_p, remote_async): Add 'ops' argument.
10582 (remote_stopped_data_address): Update.
10583 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10584 * target.c (update_current_target)
10585 (find_default_can_async_p, find_default_is_async_p): Update.
10586 (init_dummy_target): Update.
10587 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10588 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10589 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10590 (target_can_async_p, target_is_async_p, target_async)
10591 (target_stopped_by_watchpoint): Update.
10592
10593 2014-02-19 Yao Qi <yao@codesourcery.com>
10594
10595 PR gdb/16220
10596 * gdbarch.sh: Remove startup_gdbarch.
10597 * gdbarch.c: Regenerated.
10598 * gdbarch.h: Likewise.
10599
10600 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10601
10602 * rl78-tdep.c (rl78_g10_register_name): New function.
10603 (rl78_return_value): Add g10 support.
10604 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10605 g10.
10606
10607 2014-02-17 Doug Evans <xdje42@gmail.com>
10608
10609 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10610 (SUBDIR_GUILE_SRCS): Ditto.
10611 (scm-gsmob.o): Ditto.
10612
10613 2014-02-17 Yao Qi <yao@codesourcery.com>
10614
10615 * gnu-nat.c (ILL_RPC): Declare defined function.
10616
10617 2014-02-17 Yao Qi <yao@codesourcery.com>
10618
10619 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10620 mach_msg_type_number_t.
10621 (gnu_write_inferior): Likewise.
10622
10623 2014-02-17 Yao Qi <yao@codesourcery.com>
10624
10625 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10626 in format string.
10627 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10628 (inf_validate_procs, inf_signal): Likewise.
10629 (S_exception_raise_request): Likewise.
10630 (do_mach_notify_dead_name): Likewise.
10631 (steal_exc_port): Likewise.
10632 (gnu_read_inferior): Change 'copy_count''s type to
10633 mach_msg_type_number_t.
10634 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10635 format string.
10636
10637 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10638
10639 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10640 flag. Adjust all users; in particular...
10641 (gnu_wait): ..., don't decrement its value in here...
10642 (gnu_create_inferior): ..., and instead set the flag in here,
10643 around the startup_inferior call, and call that one with
10644 START_INFERIOR_TRAPS_EXPECTED.
10645
10646 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10647 (ILL_RPC): ... new macro.
10648 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10649 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10650 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10651 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10652 functions with ILL_RPC macro.
10653 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10654 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10655 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10656 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10657 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10658 (S_proc_getlogin_reply, S_proc_getsid_reply)
10659 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10660 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10661 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10662 (S_proc_getnports_reply, S_proc_is_important_reply)
10663 (S_proc_get_code_reply): New stub functions, generated with
10664 ILL_RPC macro.
10665
10666 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10667 collected the type check structures.
10668
10669 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10670
10671 2014-02-14 Doug Evans <dje@google.com>
10672
10673 * target.c (target_write_partial): Fix result type.
10674
10675 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10676
10677 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10678 the proper offsets to access fpregset_t.
10679
10680 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10681
10682 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10683 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10684 * h8300-tdep.c (setmachinelist): Remove global.
10685 * hppa-tdep.c (hppa_sigtramp): Remove global.
10686 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10687 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10688 * ravenscar-thread.c (update_target_observer): Remove global.
10689 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10690
10691 2014-02-12 Tom Tromey <tromey@redhat.com>
10692
10693 * common/rsp-low.c: Update comments.
10694 * common/rsp-low.h: Update comments.
10695
10696 2014-02-12 Tom Tromey <tromey@redhat.com>
10697
10698 * common/rsp-low.c (convert_ascii_to_int): Remove.
10699 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10700
10701 2014-02-12 Tom Tromey <tromey@redhat.com>
10702
10703 * common/rsp-low.h (unhexify): Don't declare.
10704 * common/rsp-low.c (unhexify): Remove.
10705
10706 2014-02-12 Tom Tromey <tromey@redhat.com>
10707
10708 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10709 * common/rsp-low.c (convert_int_to_ascii): Remove.
10710
10711 2014-02-12 Tom Tromey <tromey@redhat.com>
10712
10713 * common/rsp-low.h (hexify): Don't declare.
10714 * common/rsp-low.c (hexify): Remove.
10715
10716 2014-02-12 Tom Tromey <tromey@redhat.com>
10717
10718 * common/rsp-low.c (hexify): Never take strlen of argument.
10719
10720 2014-02-12 Tom Tromey <tromey@redhat.com>
10721
10722 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10723 * remote.c (extended_remote_run, remote_rcmd)
10724 (remote_download_trace_state_variable, remote_save_trace_data)
10725 (remote_set_trace_notes): Update.
10726 * tracepoint.c (encode_source_string, tfile_write_status)
10727 (tfile_write_uploaded_tsv): Update.
10728
10729 2014-02-12 Tom Tromey <tromey@redhat.com>
10730
10731 * tracepoint.c: Include rsp-low.h.
10732 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10733 * remote.c: Include rsp-low.h.
10734 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10735 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10736 (remote_unescape_input): Move to common/rsp-low.c.
10737 * common/rsp-low.h: New file.
10738 * common/rsp-low.c: New file.
10739 * Makefile.in (SFILES): Add common/rsp-low.c.
10740 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10741 (COMMON_OBS): Add rsp-low.o.
10742 (rsp-low.o): New target.
10743
10744 2014-02-12 Tom Tromey <tromey@redhat.com>
10745
10746 * utils.h: Include print-utils.h.
10747 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10748 (int_string, core_addr_to_string, core_addr_to_string_nz)
10749 (hex_string, hex_string_custom): Don't declare.
10750 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10751 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10752 (hex_string_custom, int_string, core_addr_to_string)
10753 (core_addr_to_string_nz, host_address_to_string): Move to
10754 common/print-utils.c.
10755 * common/print-utils.h: New file.
10756 * common/print-utils.c: New file
10757 * Makefile.in (SFILES): Add common/print-utils.c.
10758 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10759 (COMMON_OBS): Add print-utils.o.
10760 (print-utils.o): New target.
10761
10762 2014-02-12 Tom Tromey <tromey@redhat.com>
10763
10764 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10765
10766 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10767
10768 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10769
10770 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10771
10772 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10773 if a PT_IO ptrace request returns sucessfully but indicates that 0
10774 bytes were transferred.
10775
10776 2014-02-12 Pedro Alves <palves@redhat.com>
10777 Kevin Buettner <kevinb@redhat.com>
10778
10779 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10780 TYPE_INSTANCE_FLAG_CODE_SPACE.
10781
10782 2014-02-12 Pedro Alves <palves@redhat.com>
10783
10784 * h8300-tdep.c (pseudo_from_raw_register)
10785 (raw_from_pseudo_register): New functions.
10786 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10787 them.
10788
10789 2014-02-12 Pedro Alves <palves@redhat.com>
10790
10791 * h8300-tdep.c (h8300_register_sim_regno): New function.
10792 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10793 gdbarch_register_sim_regno hook.
10794
10795 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10796
10797 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10798
10799 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10800
10801 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10802
10803 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10804
10805 * obsd-tdep.h (obsd_init_abi): New prototype.
10806 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10807 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10808 (obsd_init_abi): New functions.
10809 * i386obsd-tdep.c: Include "obsd-tdep.h".
10810 (i386obsd_init_abi): Call obsd_init_abi.
10811 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10812 (amd64obsd_init_abi): Call obsd_init_abi.
10813 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10814 obsd-tdep.c to gdb_target_obs.
10815
10816 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10817
10818 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10819 double float arguments to 16-byte in the argument slots.
10820
10821 2014-02-11 Doug Evans <xdje42@gmail.com>
10822
10823 * configure.ac: Don't crash if pkg-config is not found and guile
10824 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10825 in guile checks.
10826 * configure: Regenerate.
10827
10828 2014-02-11 Yao Qi <yao@codesourcery.com>
10829
10830 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10831 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10832 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10833 * gnu-nat.c (gnu_xfer_memory): Likewise.
10834 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10835 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10836 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10837 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10838
10839 2014-02-11 Yao Qi <yao@codesourcery.com>
10840
10841 * target.h (enum target_xfer_error): Rename to ...
10842 (enum target_xfer_status): ... it. New. All users updated.
10843 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10844 New.
10845 (TARGET_XFER_STATUS_ERROR_P): New macro.
10846 (target_xfer_error_to_string): Remove declaration.
10847 (target_xfer_status_to_string): Declare.
10848 (target_xfer_partial_ftype): Adjust it.
10849 (struct target_ops) <to_xfer_partial>: Return
10850 target_xfer_status. Add argument xfered_len. Update
10851 comments.
10852 * target.c (target_xfer_error_to_string): Rename to ...
10853 (target_xfer_status_to_string): ... it. New. All callers
10854 updated.
10855 (target_read_live_memory): Likewise. Call target_xfer_partial
10856 instead of target_read.
10857 (memory_xfer_live_readonly_partial): Return
10858 target_xfer_status. Add argument xfered_len.
10859 (raw_memory_xfer_partial): Likewise.
10860 (memory_xfer_partial_1): Likewise.
10861 (memory_xfer_partial): Likewise.
10862 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10863 properly. Update debug message.
10864 (default_xfer_partial, current_xfer_partial): Likewise.
10865 (target_write_partial): Likewise.
10866 (target_read_partial): Likewise. All callers updated.
10867 (read_whatever_is_readable): Likewise.
10868 (target_write_with_progress): Likewise.
10869 (target_read_alloc_1): Likewise.
10870
10871 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10872 * auxv.c (procfs_xfer_auxv): Likewise.
10873 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10874 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10875 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10876 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10877 * corefile.c (read_memory): Adjust.
10878 * corelow.c (core_xfer_partial): Likewise.
10879 * ctf.c (ctf_xfer_partial): Likewise.
10880 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10881 updated.
10882 (darwin_xfer_partial): Likewise.
10883 * exec.c (section_table_xfer_memory_partial): Likewise. All
10884 callers updated.
10885 (exec_xfer_partial): Likewise.
10886 * exec.h (section_table_xfer_memory_partial): Update
10887 declaration.
10888 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10889 negative.
10890 (gnu_xfer_partial): Likewise.
10891 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10892 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10893 (ia64_hpux_xfer_solib_got): Likewise.
10894 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10895 type of 'partial_len' to ULONGEST.
10896 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10897 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10898 (linux_nat_xfer_partial): Likewise.
10899 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10900 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10901 * monitor.c (monitor_xfer_memory): Likewise.
10902 (monitor_xfer_partial): Likewise.
10903 * procfs.c (procfs_xfer_partial): Likewise.
10904 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10905 * record-full.c (record_full_xfer_partial): Likewise.
10906 (record_full_core_xfer_partial): Likewise.
10907 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10908 (gdbsim_xfer_partial): Likewise.
10909 * remote.c (remote_write_bytes_aux): Likewise. All callers
10910 updated.
10911 (remote_write_bytes, remote_read_bytes): Likewise. All
10912 callers updated.
10913 (remote_flash_erase): Likewise. All callers updated.
10914 (remote_write_qxfer): Likewise. All callers updated.
10915 (remote_read_qxfer): Likewise. All callers updated.
10916 (remote_xfer_partial): Likewise.
10917 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10918 (rs6000_xfer_shared_libraries): Likewise.
10919 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10920 (sol_thread_xfer_partial): Likewise.
10921 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10922 (sparc_xfer_partial): Likewise.
10923 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10924 updated.
10925 (spu_xfer_partial): Likewise.
10926 * spu-multiarch.c (spu_xfer_partial): Likewise.
10927 * tracepoint.c (tfile_xfer_partial): Likewise.
10928 * windows-nat.c (windows_xfer_memory): Likewise.
10929 (windows_xfer_shared_libraries): Likewise.
10930 (windows_xfer_partial): Likewise.
10931 * valprint.c: Replace 'target_xfer_error' with
10932 'target_xfer_status' in comments.
10933
10934 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10935
10936 Checked in by Joel Brobecker <brobecker@adacore.com>.
10937 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10938
10939 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10940
10941 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10942 function parameters.
10943
10944 2014-02-10 Will Newton <will.newton@linaro.org>
10945
10946 * elfread.c (elf_rel_plt_read): Look for a .got section if
10947 looking up .got.plt fails.
10948 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10949 on address passed to elf_gnu_ifunc_record_cache.
10950 (elf_gnu_ifunc_resolve_addr): Likewise.
10951 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10952
10953 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10954
10955 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10956 (X_RETTURN): New macro.
10957 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10958
10959 * sparc64-tdep.c (sparc64_init_abi): Hook
10960 sparc_in_function_epilogue_p.
10961
10962 2014-02-10 Gary Benson <gbenson@redhat.com>
10963
10964 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10965 Rename name_matcher to symbol_matcher.
10966
10967 2014-02-10 Gary Benson <gbenson@redhat.com>
10968
10969 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10970 Use expand_symtabs_file_matcher_ftype and
10971 expand_symtabs_symbol_matcher_ftype.
10972
10973 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10974
10975 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10976 (struct ada_symbol_cache): New.
10977 (ada_free_symbol_cache): Forward declare.
10978 (struct ada_pspace_data): New.
10979 (ada_pspace_data_handle): New static global.
10980 (get_ada_pspace_data, ada_pspace_data_cleanup)
10981 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10982 (cache_space, cache): Delete, now folded inside struct
10983 ada_pspace_data.
10984 (ada_get_symbol_cache): New function.
10985 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10986 implementation.
10987 (_initialize_ada_language): Remove initialization of cache_space.
10988 Move call to observer_attach_inferior_exit up, grouping it
10989 with the other observer registrations inside this function.
10990 Rename command to be more general. Add call to
10991 register_program_space_data_with_cleanup.
10992
10993 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10994
10995 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10996 ada_new_objfile_observer.
10997 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10998 (_initialize_tasks): Update uses of ada_new_objfile_observer
10999 and ada_tasks_normal_stop_observer.
11000
11001 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11002
11003 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11004 returned by the 'Length attribute to integer.
11005
11006 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11007
11008 * ada-lang.c (_initialize_ada_language): Initialize
11009 cache_space obstack.
11010
11011 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11012
11013 * ada-lang.c (HASH_SIZE): New macro.
11014 (struct cache_entry): New type.
11015 (cache_space, cache): New static globals.
11016 (ada_clear_symbol_cache, find_entry): New functions.
11017 (lookup_cached_symbol, cache_symbol): Implement.
11018 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11019 (_initialize_ada_language): Attach ada_new_objfile_observer
11020 and ada_free_objfile_observer.
11021
11022 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11023
11024 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11025 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11026 struct block * parameter.
11027 (ada_lookup_symbol_list_worker): Constify local variable "block".
11028 Remove cast which is no longer necessary.
11029
11030 2014-02-10 Doug Evans <xdje42@gmail.com>
11031
11032 Add Guile as an extension language.
11033 * NEWS: Mention Guile scripting.
11034 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11035 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11036 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11037 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11038 (CLIBS): Add GUILE_LIBS.
11039 (install-guile): New rule.
11040 (guile.o): New rule.
11041 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11042 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11043 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11044 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11045 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11046 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11047 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11048 * configure.ac: New option --with-guile.
11049 * configure: Regenerate.
11050 * config.in: Regenerate.
11051 * auto-load.c: Remove #include "python/python.h". Add #include
11052 "gdb/section-scripts.h".
11053 (source_section_scripts): Handle Guile scripts.
11054 (_initialize_auto_load): Add name of Guile objfile script to
11055 scripts-directory help text.
11056 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11057 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11058 (struct breakpoint): New member scm_bp_object.
11059 * defs.h (enum command_control_type): New value guile_control.
11060 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11061 "extension.h".
11062 (show_user): Update comment.
11063 (_initialize_cli_cmds): Update help text for "show user". Update help
11064 text for max-user-call-depth.
11065 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11066 "extension.h".
11067 (multi_line_command_p): Add guile_control.
11068 (print_command_lines): Handle guile_control.
11069 (execute_control_command, recurse_read_control_structure): Ditto.
11070 (process_next_line): Recognize "guile" commands.
11071 * disasm.c (gdb_disassemble_info): Make non-static.
11072 * disasm.h: #include "dis-asm.h".
11073 (struct gdbarch): Add forward decl.
11074 (gdb_disassemble_info): Declare.
11075 * extension.c: #include "guile/guile.h".
11076 (extension_languages): Add guile.
11077 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11078 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11079 * gdbtypes.c (get_unsigned_type_max): New function.
11080 (get_signed_type_minmax): New function.
11081 * gdbtypes.h (get_unsigned_type_max): Declare.
11082 (get_signed_type_minmax): Declare.
11083 * guile/README: New file.
11084 * guile/guile-internal.h: New file.
11085 * guile/guile.c: New file.
11086 * guile/guile.h: New file.
11087 * guile/scm-arch.c: New file.
11088 * guile/scm-auto-load.c: New file.
11089 * guile/scm-block.c: New file.
11090 * guile/scm-breakpoint.c: New file.
11091 * guile/scm-disasm.c: New file.
11092 * guile/scm-exception.c: New file.
11093 * guile/scm-frame.c: New file.
11094 * guile/scm-gsmob.c: New file.
11095 * guile/scm-iterator.c: New file.
11096 * guile/scm-lazy-string.c: New file.
11097 * guile/scm-math.c: New file.
11098 * guile/scm-objfile.c: New file.
11099 * guile/scm-ports.c: New file.
11100 * guile/scm-pretty-print.c: New file.
11101 * guile/scm-safe-call.c: New file.
11102 * guile/scm-string.c: New file.
11103 * guile/scm-symbol.c: New file.
11104 * guile/scm-symtab.c: New file.
11105 * guile/scm-type.c: New file.
11106 * guile/scm-utils.c: New file.
11107 * guile/scm-value.c: New file.
11108 * guile/lib/gdb.scm: New file.
11109 * guile/lib/gdb/boot.scm: New file.
11110 * guile/lib/gdb/experimental.scm: New file.
11111 * guile/lib/gdb/init.scm: New file.
11112 * guile/lib/gdb/iterator.scm: New file.
11113 * guile/lib/gdb/printing.scm: New file.
11114 * guile/lib/gdb/types.scm: New file.
11115 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11116 (VPATH): Add $(GUILE_SRCDIR).
11117 (GUILE_DIR): New variable.
11118 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11119 (all): Add stamp-guile dependency.
11120 (stamp-guile): New rule.
11121 (clean-guile, install-guile, uninstall-guile): New rules.
11122 (install-only): Add install-guile dependency.
11123 (uninstall): Add uninstall-guile dependency.
11124 (clean): Add clean-guile dependency.
11125
11126 2014-02-09 Doug Evans <xdje42@gmail.com>
11127
11128 Revert this patch (which I approved, mea culpa).
11129
11130 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11131
11132 * Makefile.in (all-lib): Remove.
11133 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11134
11135 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11136
11137 Fix Python stack corruption.
11138 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11139 gdb_py_longest.
11140
11141 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11142
11143 * Makefile.in (all-lib): Remove.
11144 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11145
11146 2014-02-07 Doug Evans <dje@google.com>
11147
11148 * extension-priv.h (extension_language_script_ops): Add comment.
11149 (extension_language_ops): Add comment.
11150 (active_ext_lang_state): Fix typo in comment.
11151
11152 2014-02-07 Pedro Alves <palves@redhat.com>
11153
11154 PR breakpoints/16292
11155 * infrun.c (handle_signal_stop) <signal arrives while stepping
11156 over a breakpoint>: Switch back to the stepping thread.
11157
11158 2014-02-07 Yao Qi <yao@codesourcery.com>
11159
11160 * target.c (target_xfer_partial): Return zero if LEN is zero.
11161
11162 2014-02-07 Yao Qi <yao@codesourcery.com>
11163
11164 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11165 (ld_so_xfer_auxv): Likewise.
11166 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11167 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11168 * corelow.c (core_xfer_partial): Likewise.
11169 * ctf.c (ctf_xfer_partial): Likewise.
11170 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11171 (darwin_xfer_partial): Likewise.
11172 * exec.c (exec_xfer_partial): Likewise.
11173 * gnu-nat.c (gnu_xfer_partial): Likewise.
11174 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11175 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11176 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11177 * linux-nat.c (linux_xfer_siginfo): Likewise.
11178 (linux_proc_xfer_spu): Likewise.
11179 * procfs.c (procfs_xfer_partial): Likewise.
11180 * record-full.c (record_full_xfer_partial): Likewise.
11181 (record_full_core_xfer_partial): Likewise.
11182 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11183 * remote.c (remote_write_qxfer): Likewise.
11184 (remote_write_qxfer, remote_read_qxfer): Likewise.
11185 (remote_xfer_partial): Likewise.
11186 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11187 (rs6000_xfer_shared_libraries): Likewise.
11188 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11189 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11190 (spu_xfer_partial): Likewise.
11191 * target.c (memory_xfer_partial_1): Likewise.
11192 * tracepoint.c (tfile_xfer_partial): Likewise.
11193 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11194 (windows_xfer_partial): Likewise.
11195
11196 2014-02-07 Yao Qi <yao@codesourcery.com>
11197
11198 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11199 comments.
11200 (core_xfer_shared_libraries_aix): Likewise.
11201 * gdbarch.c, gdbarch.h: Regenerated.
11202 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11203 ULONGEST. Change 'len_avail' type to ULONGEST.
11204 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11205 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11206 declaration.
11207 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11208
11209 2014-02-07 Yao Qi <yao@codesourcery.com>
11210
11211 * corefile.c (memory_error): Get 'exception' from ERR and pass
11212 'exception' to throw_error.
11213
11214 2014-02-06 Doug Evans <xdje42@gmail.com>
11215
11216 * configure.ac (libpython checking): Remove all but python.o from
11217 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11218 * configure: Regenerate.
11219
11220 * Makefile.in (SFILES): Add extension.c.
11221 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11222 (COMMON_OBS): Add extension.o.
11223 * extension.h: New file.
11224 * extension-priv.h: New file.
11225 * extension.c: New file.
11226
11227 * python/python-internal.h: #include "extension.h".
11228 (gdbpy_auto_load_enabled): Declare.
11229 (gdbpy_apply_val_pretty_printer): Declare.
11230 (gdbpy_apply_frame_filter): Declare.
11231 (gdbpy_preserve_values): Declare.
11232 (gdbpy_breakpoint_cond_says_stop): Declare.
11233 (gdbpy_breakpoint_has_cond): Declare.
11234 (void source_python_script_for_objfile): Delete.
11235 * python/python.c: #include "extension-priv.h".
11236 Delete inclusion of "observer.h".
11237 (extension_language_python): Moved here and renamed from
11238 script_language_python in py-auto-load.c.
11239 Redefined to be of type extension_language_defn.
11240 (python_extension_script_ops): New global.
11241 (python_extension_ops): New global.
11242 (struct python_env): New member previous_active.
11243 (restore_python_env): Call restore_active_ext_lang.
11244 (ensure_python_env): Call set_active_ext_lang.
11245 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11246 New arg extlang.
11247 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11248 New arg extlang.
11249 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11250 New arg extlang.
11251 (gdbpy_eval_from_control_command): Renamed from
11252 eval_python_from_control_command, made static. New arg extlang.
11253 (gdbpy_source_script) Renamed from source_python_script, made static.
11254 New arg extlang.
11255 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11256 result to int. New arg extlang.
11257 (gdbpy_source_objfile_script): Renamed from
11258 source_python_script_for_objfile, made static. New arg extlang.
11259 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11260 static. New args extlang, extlang_printers. Change result type to
11261 "void".
11262 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11263 static. New arg extlang. Rename arg printers to extlang_printers
11264 and change type to ext_lang_type_printers *.
11265 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11266 static. Replace argument arg with extlang, extlang_printers.
11267 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11268 (!HAVE_PYTHON, source_python_script): Delete.
11269 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11270 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11271 (!HAVE_PYTHON, start_type_printers): Delete.
11272 (!HAVE_PYTHON, apply_type_printers): Delete.
11273 (!HAVE_PYTHON, free_type_printers): Delete.
11274 (_initialize_python): Delete call to observer_attach_before_prompt.
11275 (finalize_python): Set/restore active extension language.
11276 (gdbpy_finish_initialization) Renamed from
11277 finish_python_initialization, made static. New arg extlang.
11278 (gdbpy_initialized): New function.
11279 * python/python.h: #include "extension.h". Delete #include
11280 "value.h", "mi/mi-cmds.h".
11281 (extension_language_python): Declare.
11282 (GDBPY_AUTO_FILE_NAME): Delete.
11283 (enum py_bt_status): Moved to extension.h and renamed to
11284 ext_lang_bt_status.
11285 (enum frame_filter_flags): Moved to extension.h.
11286 (enum py_frame_args): Moved to extension.h and renamed to
11287 ext_lang_frame_args.
11288 (finish_python_initialization): Delete.
11289 (eval_python_from_control_command): Delete.
11290 (source_python_script): Delete.
11291 (apply_val_pretty_printer): Delete.
11292 (apply_frame_filter): Delete.
11293 (preserve_python_values): Delete.
11294 (gdbpy_script_language_defn): Delete.
11295 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11296 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11297
11298 * auto-load.c: #include "extension.h".
11299 (GDB_AUTO_FILE_NAME): Delete.
11300 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11301 (script_language_gdb): Delete, moved to extension.c and renamed to
11302 extension_language_gdb.
11303 (source_gdb_script_for_objfile): Delete.
11304 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11305 (loaded_script): Change type of language member to
11306 struct extension_language_defn *.
11307 (init_loaded_scripts_info): Initialize
11308 unsupported_script_warning_printed.
11309 (maybe_add_script): Make static. Change type of language arg to
11310 struct extension_language_defn *.
11311 (clear_section_scripts): Reset unsupported_script_warning_printed.
11312 (auto_load_objfile_script_1): Rewrite to use extension language API.
11313 (auto_load_objfile_script): Make public. Remove support-compiled-in
11314 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11315 (source_section_scripts): Rewrite to use extension language API.
11316 (load_auto_scripts_for_objfile): Rewrite to use
11317 auto_load_scripts_for_objfile.
11318 (collect_matching_scripts_data): Change type of language member to
11319 struct extension_language_defn *.
11320 (auto_load_info_scripts): Change type of language arg to
11321 struct extension_language_defn *.
11322 (unsupported_script_warning_print): New function.
11323 (script_not_found_warning_print): Make static.
11324 (_initialize_auto_load): Rewrite construction of scripts-directory
11325 help.
11326 * auto-load.h (struct objfile): Add forward decl.
11327 (struct script_language): Delete.
11328 (struct auto_load_pspace_info): Add forward decl.
11329 (struct extension_language_defn): Add forward decl.
11330 (maybe_add_script): Delete.
11331 (auto_load_objfile_script): Declare.
11332 (script_not_found_warning_print): Delete.
11333 (auto_load_info_scripts): Update prototype.
11334 (auto_load_gdb_scripts_enabled): Declare.
11335 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11336 auto_load_python_scripts_enabled and made public.
11337 (script_language_python): Delete, moved to python.c.
11338 (gdbpy_script_language_defn): Delete.
11339 (info_auto_load_python_scripts): Update to use
11340 extension_language_python.
11341
11342 * breakpoint.c (condition_command): Replace call to
11343 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11344 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11345 with call to breakpoint_ext_lang_cond_says_stop.
11346 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11347 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11348 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11349 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11350 New arg slang.
11351 (local_setattro): Print name of extension language with existing
11352 stop condition.
11353
11354 * valprint.c (val_print, value_print): Update to call
11355 apply_ext_lang_val_pretty_printer.
11356 * cp-valprint.c (cp_print_value): Update call to
11357 apply_ext_lang_val_pretty_printer.
11358 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11359 (gdbpy_apply_val_pretty_printer): Renamed from
11360 apply_val_pretty_printer. New arg extlang.
11361 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11362
11363 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11364 extension language API.
11365 * cli/cli-script.c (execute_control_command): Update to call
11366 eval_ext_lang_from_control_command.
11367
11368 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11369 enum ext_lang_bt_status values. Update call to
11370 apply_ext_lang_frame_filter.
11371 (mi_cmd_stack_list_locals): Ditto.
11372 (mi_cmd_stack_list_args): Ditto.
11373 (mi_cmd_stack_list_variables): Ditto.
11374 * mi/mi-main.c: Delete #include "python/python-internal.h".
11375 Add #include "extension.h".
11376 (mi_cmd_list_features): Replace reference to python internal variable
11377 gdb_python_initialized with call to ext_lang_initialized_p.
11378
11379 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11380 Update to use enum ext_lang_frame_args. Update to call
11381 apply_ext_lang_frame_filter.
11382 * python/py-framefilter.c (extract_sym): Update to use enum
11383 ext_lang_bt_status.
11384 (extract_value, py_print_type, py_print_value): Ditto.
11385 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11386 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11387 (py_print_frame): Ditto.
11388 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11389 New arg extlang. Update to use enum ext_lang_bt_status.
11390
11391 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11392 finish_python_initialization. Replace with call to
11393 finish_ext_lang_initialization.
11394
11395 * typeprint.c (do_free_global_table): Update to call
11396 free_ext_lang_type_printers.
11397 (create_global_typedef_table): Update to call
11398 start_ext_lang_type_printers.
11399 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11400 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11401 (type_print_options): Change type of global_printers from "void *"
11402 to "struct ext_lang_type_printers *".
11403
11404 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11405 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11406 (gdbpy_preserve_values): Renamed from preserve_python_values.
11407 New arg extlang.
11408 (!HAVE_PYTHON, preserve_python_values): Delete.
11409
11410 * utils.c (quit_flag): Delete, moved to extension.c.
11411 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11412 extension.c.
11413
11414 * eval.c: Delete #include "python/python.h".
11415 * main.c: Delete #include "python/python.h".
11416
11417 * defs.h: Update comment.
11418
11419 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11420
11421 GDB 7.7 released.
11422
11423 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11424
11425 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11426 defined.
11427
11428 2014-02-05 Yao Qi <yao@codesourcery.com>
11429
11430 * remote.c (remote_pass_signals): Remove local 'buf' and use
11431 rs->buf.
11432 (remote_program_signals): Likewise.
11433
11434 2014-02-05 Yao Qi <yao@codesourcery.com>
11435
11436 * ctf.c: Include "inferior.h" and "gdbthread.h".
11437 (CTF_PID): A new macro.
11438 (ctf_open): Call inferior_appeared and add_thread_silent.
11439 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11440 (ctf_thread_alive): New function.
11441 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11442
11443 2014-02-05 Yao Qi <yao@codesourcery.com>
11444
11445 Revert this patch:
11446
11447 2013-05-24 Yao Qi <yao@codesourcery.com>
11448
11449 * tracepoint.c (TFILE_PID): Remove.
11450 (tfile_open): Don't add thread and inferior.
11451 (tfile_close): Don't set 'inferior_ptid'. Don't call
11452 exit_inferior_silent.
11453 (tfile_thread_alive): Remove.
11454 (init_tfile_ops): Don't set field 'to_thread_alive' of
11455 tfile_ops.
11456
11457 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11458
11459 * remote.c (remote_start_remote): Call remote_check_symbols even
11460 if only symbol-file (not file) has been given.
11461
11462 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11463
11464 * gdbarch.sh (skip_entrypoint): New callback.
11465 * gdbarch.c, gdbarch.h: Regenerate.
11466 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11467 * infrun.c (fill_in_stop_func): Likewise.
11468 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11469 (ppc_elfv2_elf_make_msymbol_special): New function.
11470 (ppc_elfv2_skip_entrypoint): Likewise.
11471 (ppc_linux_init_abi): Install them for ELFv2.
11472
11473 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11474
11475 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11476 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11477 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11478 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11479 structures returned in GPRs.
11480
11481 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11482
11483 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11484 offset to the stack parameter list for the ELFv2 ABI.
11485
11486 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11487
11488 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11489 set_gdbarch_convert_from_func_ptr_addr and
11490 set_gdbarch_elf_make_msymbol_special for ELFv1.
11491 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11492 function descriptors on ELFv1.
11493 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11494 set up r12 at function entry.
11495
11496 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11497
11498 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11499 (struct gdbarch_tdep): New member elf_abi.
11500
11501 * rs6000-tdep.c: Include "elf/ppc64.h".
11502 (rs6000_gdbarch_init): Detect ELF ABI version.
11503
11504 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11505
11506 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11507 within a register pair holding a DFP 128-bit value on little-endian.
11508 (ppc64_sysv_abi_return_value_base): Likewise.
11509 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11510 (dfp_pseudo_register_write): Likewise.
11511
11512 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11513
11514 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11515 offset on little-endian when passing _Decimal32.
11516 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11517
11518 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11519
11520 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11521 of the overlapped FP register within the VSX register on little-
11522 endian platforms.
11523 (efpr_pseudo_register_write): Likewise.
11524
11525 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11526
11527 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11528 offset on little-endian when passing small structures.
11529
11530 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11531
11532 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11533 (struct ppc64_sysv_argpos): New data structure.
11534 (ppc64_sysv_abi_push_float): Remove.
11535 (ppc64_sysv_abi_push_val): New function.
11536 (ppc64_sysv_abi_push_integer): Likewise.
11537 (ppc64_sysv_abi_push_freg): Likewise.
11538 (ppc64_sysv_abi_push_vreg): Likewise.
11539 (ppc64_sysv_abi_push_param): Likewise.
11540 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11541 (ppc64_sysv_abi_return_value_base): New function.
11542 (ppc64_sysv_abi_return_value): Refactor to use it.
11543
11544 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11545
11546 * NEWS: Document new target powerpc64le-*-linux*.
11547
11548 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11549
11550 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11551 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11552 core dumps.
11553 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11554 register set used in ELF core dumps. Add floating-point register set.
11555
11556 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11557
11558 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11559 dwarf2_to_gdb[] table using symbolic constants. Adjust
11560 penultimate entry from number representing the PC register
11561 to symbolic constant representing the MDR register. Add
11562 constant for the PC register to the end of the table.
11563
11564 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11565
11566 * bsd-kvm.c: Include <sys/param.h>
11567
11568 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11569
11570 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11571
11572 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11573
11574 * ada-lang.h (clear_ada_sym_cache): Delete.
11575
11576 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11577
11578 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11579
11580 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11581
11582 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11583 the sigreturn register save area only if the syscall is
11584 sigreturn.
11585
11586 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11587
11588 * valops.c (value_slice): Minor reformatting.
11589
11590 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11591
11592 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11593
11594 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11595
11596 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11597 New static globals.
11598 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11599 (ada_ignore_descriptive_types_p): New static global.
11600 (find_parallel_type_by_descriptive_type): Return immediately
11601 if ada_ignore_descriptive_types_p is set.
11602 (_initialize_ada_language): Register new commands "maintenance
11603 set ada", "maintenance show ada", "maintenance set ada
11604 ignore-descriptive-types" and "maintenance show ada
11605 ignore-descriptive-types".
11606 * NEWS: Add entry for new "maint ada set/show
11607 ignore-descriptive-types" commands.
11608
11609 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11610
11611 * record-btrace.c (record_btrace_close): Call btrace_teardown
11612 for all threads.
11613
11614 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11615
11616 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11617 "ui-out.h".
11618
11619 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11620
11621 * ada-typeprint (type_is_full_subrange_of_target_type):
11622 New function.
11623 (print_range): Add parameter bounds_prefered_p. If not set,
11624 try printing range types using the name of their base type.
11625 (print_range_type): Add parameter bounds_prefered_p.
11626 Use it in call to print_range.
11627 (print_array_type, ada_print_type): Update calls to print_range
11628 and print_range_type.
11629
11630 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11631
11632 * ada-typeprint.c (print_array_type, print_choices, print_range)
11633 (print_range_bound, print_dynamic_range_bound, print_range_type):
11634 Remove declaration.
11635
11636 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11637
11638 * ada-typeprint.c (print_range): Add missing empty line
11639 after local declaration.
11640
11641 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11642
11643 * ada-valprint.c (print_optional_low_bound): Get index_type's
11644 target type for as long as it is a TYPE_CODE_RANGE.
11645
11646 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11647
11648 * procfs.c (procfs_make_note_section): Remove assertion and
11649 associated comment.
11650
11651 2014-01-24 Yao Qi <yao@codesourcery.com>
11652
11653 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11654 * corelow.c (get_core_siginfo): Likewise.
11655
11656 2014-01-24 Yao Qi <yao@codesourcery.com>
11657
11658 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11659 ULONGEST. Don't check 'len' is negative.
11660 (remote_write_bytes): Change type of 'len' to ULONGEST.
11661
11662 2014-01-23 Tom Tromey <tromey@redhat.com>
11663
11664 PR python/16485:
11665 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11666 Handle exception from frame.block.
11667 (FrameVars.fetch_frame_locals): Likewise.
11668
11669 2014-01-23 Tom Tromey <tromey@redhat.com>
11670
11671 PR python/16487:
11672 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11673 on a NULL pointer. Move "goto error" to correct place.
11674
11675 2014-01-23 Tom Tromey <tromey@redhat.com>
11676
11677 PR python/16491:
11678 * python/py-framefilter.c (apply_frame_filter): Call
11679 ensure_python_env after computing gdbarch.
11680
11681 2014-01-23 Yao Qi <yao@codesourcery.com>
11682
11683 * target.c (raw_memory_xfer_partial): Change argument type
11684 from void * to gdb_byte *.
11685 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11686
11687 2014-01-22 Doug Evans <dje@google.com>
11688
11689 New gdbserver option --debug-format=timestamp.
11690 * NEWS: Mention it.
11691
11692 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11693
11694 * syscalls/s390x-linux.xml: New file.
11695 * syscalls/s390-linux.xml: New file.
11696 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11697 (XML_SYSCALL_FILENAME_S390X): Likewise.
11698 (op_svc): New enum value for SVC opcode.
11699 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11700 (s390_linux_get_syscall_number): New function.
11701 (s390_gdbarch_init): Register '*get_syscall_number' and the
11702 syscall xml file name.
11703 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11704 "s390-linux.xml" and "s390x-linux.xml".
11705 * NEWS: Announce new feature.
11706
11707 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11708
11709 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11710
11711 2014-01-22 Pedro Alves <palves@redhat.com>
11712
11713 * xtensa-config.c: Include defs.h.
11714
11715 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11716
11717 * common/common-utils.h: Add "ARI:" comment beside __func__
11718 reference.
11719
11720 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11721
11722 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11723 documentation a bit.
11724
11725 2014-01-21 Roland McGrath <mcgrathr@google.com>
11726
11727 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11728 * configure: Regenerate.
11729 * aclocal.m4: Regenerate.
11730 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11731 New substituted variables.
11732 (install-strip): New target.
11733 (INSTALL_SCRIPT): New substituted variable.
11734 (FLAGS_TO_PASS): Add it.
11735 (install-only): Use $(INSTALL_SCRIPT) rather than
11736 $(INSTALL_PROGRAM) for gcore.
11737
11738 2014-01-20 Tom Tromey <tromey@redhat.com>
11739
11740 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11741 together.
11742
11743 2014-01-20 Tom Tromey <tromey@redhat.com>
11744
11745 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11746 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11747 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11748 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11749 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11750 (struct cmd_list_element) <flags>: Remove.
11751 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11752 doc_allocated>: New fields.
11753 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11754 bitfields.
11755 * maint.c (maintenance_do_deprecate): Update.
11756 * top.c (execute_command): Update.
11757
11758 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11759
11760 * xtensa-linux-nat.c: Include asm/ptrace.h.
11761
11762 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11763
11764 * Makefile.in (SFILES): Add d-support.c.
11765 (COMMON_OBS): Add d-support.o.
11766 * d-lang.h (d_parse_symbol): Add comment, now defined in
11767 d-support.c.
11768 * d-lang.c (parse_call_convention)
11769 (parse_attributes, parse_function_types)
11770 (parse_function_args, parse_type, parse_identifier)
11771 (call_convention_p, d_parse_symbol): Move functions to ...
11772 * d-support.c: ... New file.
11773
11774 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11775
11776 * d-lang.h (d_parse_symbol): Add declaration.
11777 * d-lang.c (extract_identifiers)
11778 (extract_type_info): Remove functions.
11779 (parse_call_convention, parse_attributes)
11780 (parse_function_types, parse_function_args)
11781 (parse_type, parse_identifier, call_convention_p)
11782 (d_parse_symbol): New functions.
11783 (d_demangle): Use d_parse_symbol to demangle D symbols.
11784
11785 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11786
11787 * d-lang.h (struct builtin_d_type): New data type.
11788 (builtin_d_type): Add declaration.
11789 * d-lang.c (d_language_arch_info, build_d_types)
11790 (builtin_d_type): New functions.
11791 (enum d_primitive_types): New data type.
11792 (d_language_defn): Change c_language_arch_info to
11793 d_language_arch_info.
11794 (d_type_data): New static variable.
11795 (_initialize_d_language): Initialize d_type_data.
11796
11797 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11798
11799 * d-lang.h (d_main_name): Add declaration.
11800 * d-lang.c (d_main_name): New function.
11801 * symtab.c (find_main_name): Add call to d_main_name.
11802
11803 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11804
11805 * d-lang.c (d_language_defn): Change macro_expansion_c to
11806 macro_expansion_no.
11807
11808 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11809
11810 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11811
11812 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11813
11814 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11815 gdb_exception" declaration.
11816 * remote.c (getpkt_or_notif_sane): Likewise.
11817
11818 2014-01-17 Doug Evans <dje@google.com>
11819
11820 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11821 function, contents of dirnames_to_char_ptr_vec_append moved here.
11822 (delim_string_to_char_ptr_vec): New function.
11823 (dirnames_to_char_ptr_vec_append): Rewrite.
11824 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11825
11826 2014-01-17 Doug Evans <dje@google.com>
11827
11828 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11829 and moved here ...
11830 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11831 #include "common-utils.h".
11832 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11833 * common/vec.h (VEC_ASSERT_PASS): Update.
11834 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11835 (MACH_CHECK_ERROR): Update.
11836
11837 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11838
11839 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11840 comments.
11841 * gdbarch.h: Regenerate.
11842
11843 2014-01-16 Tom Tromey <tromey@redhat.com>
11844
11845 * value.c (struct value) <regnum>: Move earlier.
11846
11847 2014-01-16 Tom Tromey <tromey@redhat.com>
11848
11849 * remote.c (extended_remote_create_inferior): Rename from
11850 extended_remote_create_inferior_1. Add "ops" argument. Remove
11851 old implementation.
11852
11853 2014-01-16 Pedro Alves <palves@redhat.com>
11854
11855 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11856 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11857 the backchain.
11858
11859 2014-01-16 Doug Evans <dje@google.com>
11860
11861 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11862
11863 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11864
11865 * btrace.h (btrace_thread_flag): New.
11866 (struct btrace_thread_info) <flags>: New.
11867 * record-btrace.c (record_btrace_resume_thread)
11868 (record_btrace_find_thread_to_move, btrace_step_no_history)
11869 (btrace_step_stopped, record_btrace_start_replaying)
11870 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11871 (record_btrace_find_resume_thread): New.
11872 (record_btrace_resume, record_btrace_wait): Extend.
11873 (record_btrace_can_execute_reverse): New.
11874 (record_btrace_open): Fail in non-stop mode.
11875 (record_btrace_set_replay): Split into this, ...
11876 (record_btrace_stop_replaying): ... this, ...
11877 (record_btrace_clear_histories): ... and this.
11878 (init_record_btrace_ops): Init to_can_execute_reverse.
11879 * NEWS: Announce it.
11880
11881 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11882
11883 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11884 (forward_target_decr_pc_after_break)
11885 (target_decr_pc_after_break): New.
11886 * target.c (forward_target_decr_pc_after_break)
11887 (target_decr_pc_after_break): New.
11888 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11889 instead of gdbarch_decr_pc_after_break.
11890 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11891 instead of gdbarch_decr_pc_after_break.
11892 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11893 instead of gdbarch_decr_pc_after_break.
11894 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11895 instead of gdbarch_decr_pc_after_break.
11896 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11897 instead of gdbarch_decr_pc_after_break.
11898 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11899 instead of gdbarch_decr_pc_after_break.
11900
11901 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11902
11903 * btrace.c: Include regcache.h.
11904 (btrace_add_pc): New.
11905 (btrace_enable): Call btrace_add_pc.
11906 (btrace_is_empty): New.
11907 * btrace.h (btrace_is_empty): New.
11908 * record-btrace.c (require_btrace, record_btrace_info): Call
11909 btrace_is_empty.
11910
11911 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11912
11913 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11914 Support delta reads.
11915 (linux_disable_btrace): Change return type.
11916 * common/linux-btrace.h (linux_read_btrace): Change parameters
11917 and return type to allow error reporting. Update users.
11918 (linux_disable_btrace): Change return type. Update users.
11919 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11920 New.
11921 (btrace_error): New.
11922 (btrace_block) <begin>: Comment on BEGIN == 0.
11923 * btrace.c (btrace_compute_ftrace): Start from the end of
11924 the current trace.
11925 (btrace_stitch_trace, btrace_clear_history): New.
11926 (btrace_fetch): Read delta trace, return if replaying.
11927 (btrace_clear): Move clear history code to btrace_clear_history.
11928 (parse_xml_btrace): Throw an error if parsing failed.
11929 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11930 and return type to allow error reporting.
11931 (target_read_btrace): Change parameters and return type to allow
11932 error reporting.
11933 * target.c (target_read_btrace): Update.
11934 * remote.c (remote_read_btrace): Support delta reads. Pass
11935 errors on.
11936 * NEWS: Announce it.
11937
11938 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11939
11940 * record.h (record_btrace_frame_unwind)
11941 (record_btrace_tailcall_frame_unwind): New declarations.
11942 * dwarf2-frame: Include record.h
11943 (dwarf2_frame_cfa): Throw an error for btrace frames.
11944 * record-btrace.c: Include hashtab.h.
11945 (btrace_get_bfun_name): New.
11946 (btrace_call_history): Call btrace_get_bfun_name.
11947 (struct btrace_frame_cache): New.
11948 (bfcache): New.
11949 (bfcache_hash, bfcache_eq, bfcache_new): New.
11950 (btrace_get_frame_function): New.
11951 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11952 (record_btrace_frame_this_id): Compute own id.
11953 (record_btrace_frame_prev_register): Provide PC, throw_error
11954 for all other registers.
11955 (record_btrace_frame_sniffer): Detect btrace frames.
11956 (record_btrace_tailcall_frame_sniffer): New.
11957 (record_btrace_frame_dealloc_cache): New.
11958 (record_btrace_frame_unwind): Add new functions.
11959 (record_btrace_tailcall_frame_unwind): New.
11960 (_initialize_record_btrace): Allocate cache.
11961 * btrace.c (btrace_clear): Call reinit_frame_cache.
11962 * NEWS: Announce it.
11963
11964 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11965
11966 * record-btrace.c (record_btrace_set_replay)
11967 (record_btrace_goto_begin, record_btrace_goto_end)
11968 (record_btrace_goto): New.
11969 (init_record_btrace_ops): Initialize them.
11970 * NEWS: Announce it.
11971
11972 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11973
11974 * record-btrace.c (record_btrace_find_new_threads)
11975 (record_btrace_thread_alive): New.
11976 (init_record_btrace_ops): Initialize to_find_new_threads and
11977 to_thread_alive.
11978
11979 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11980
11981 * record-btrace.c (record_btrace_resume): New.
11982 (record_btrace_wait): New.
11983 (init_record_btrace_ops): Initialize to_wait and to_resume.
11984
11985 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11986
11987 * record-btrace.c (record_btrace_xfer_partial)
11988 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11989 (record_btrace_allow_memory_access): New.
11990 (init_record_btrace_ops): Initialize new methods.
11991 * target.c (raw_memory_xfer_partial): Bail out if target reports
11992 that this memory is not available.
11993
11994 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11995
11996 * target.h (target_ops) <to_insert_breakpoint>
11997 <to_remove_breakpoint>: Add target_ops parameter.
11998 (forward_target_insert_breakpoint): New.
11999 (forward_target_remove_breakpoint): New.
12000 (memory_remove_breakpoint, memory_insert_breakpoint):
12001 Add target_ops parameter.
12002 * target.c (target_insert_breakpoint): Split into this and ...
12003 (forward_target_insert_breakpoint): ... this.
12004 (target_remove_breakpoint): Split into this and ...
12005 (forward_target_remove_breakpoint): ... this.
12006 (debug_to_insert_breakpoint): Add target_ops parameter.
12007 Call forward_target_insert_breakpoint.
12008 (debug_to_remove_breakpoint): Add target_ops parameter.
12009 Call forward_target_remove_breakpoint.
12010 (update_current_target): Do not inherit or default to_insert_breakpoint
12011 and to_remove_breakpoint.
12012 * corelow.c (ignore): Add target_ops parameter.
12013 * exec.c (ignore): Add target_ops parameter.
12014 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12015 Add target_ops parameter.
12016 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12017 Add target_ops parameter.
12018 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12019 Add target_ops parameter.
12020 * record-full.c (record_full_beneath_to_insert_breakpoint)
12021 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12022 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12023 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12024 (record_full_core_remove_breakpoint): Add target_ops parameter.
12025 Update users.
12026 (record_full_beneath_to_insert_breakpoint_ops)
12027 (record_full_beneath_to_remove_breakpoint_ops)
12028 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12029 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12030 tmp_to_remove_breakpoint_ops,
12031 record_full_beneath_to_insert_breakpoint_ops, and
12032 record_full_beneath_to_remove_breakpoint_ops.
12033 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12034 (m32r_remove_breakpoint): Add target_ops parameter.
12035 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12036 Add target_ops parameter.
12037 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12038 Add target_ops parameter.
12039
12040 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12041 Markus Metzger <markus.t.metzger@intel.com>
12042
12043 * record-btrace.c: Include frame-unwind.h.
12044 (record_btrace_frame_unwind_stop_reason)
12045 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12046 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12047 New.
12048 (init_record_btrace_ops): Install it.
12049
12050 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12051
12052 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12053 get_prev_frame_1.
12054
12055 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12056
12057 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12058 earlier.
12059
12060 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12061
12062 * frame-unwind.c: Include target.h.
12063 (frame_unwind_try_unwinder): New function with code from ...
12064 (frame_unwind_find_by_frame): ... here. New variable
12065 unwinder_from_target, call also target_get_unwinder)
12066 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12067 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12068 * target.h (struct target_ops): New fields to_get_unwinder and
12069 to_get_tailcall_unwinder.
12070 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12071
12072 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12073
12074 * record-btrace.c (record_btrace_fetch_registers)
12075 (record_btrace_store_registers)
12076 (record_btrace_to_prepare_to_store): New.
12077 (init_record_btrace_ops): Add the above.
12078
12079 2014-01-16 Tom Tromey <tromey@redhat.com>
12080
12081 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12082 * target.h (struct target_ops) <to_prepare_to_store>: Add
12083 argument.
12084 (target_prepare_to_store): Add argument.
12085 * target.c (debug_to_prepare_to_store): Add argument.
12086 (update_current_target): Update.
12087 * remote.c (remote_prepare_to_store): Add 'self' argument.
12088 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12089 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12090 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12091 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12092 argument.
12093 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12094 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12095 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12096 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12097 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12098
12099 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12100
12101 * btrace.h (replay) <replay>: New.
12102 (btrace_is_replaying): New.
12103 * btrace.c (btrace_clear): Free replay iterator.
12104 (btrace_is_replaying): New.
12105 * record-btrace.c (record_btrace_is_replaying): New.
12106 (record_btrace_info): Print insn number if replaying.
12107 (record_btrace_insn_history): Start at replay position.
12108 (record_btrace_call_history): Start at replay position.
12109 (init_record_btrace_ops): Init to_record_is_replaying.
12110
12111 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12112
12113 * record-btrace.c (record_btrace_insn_history_range): Include
12114 end.
12115 (record_btrace_insn_history_from): Adjust range.
12116 (record_btrace_call_history_range): Include
12117 end.
12118 (record_btrace_call_history_from): Adjust range.
12119 * NEWS: Announce changes.
12120
12121 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12122
12123 * record.h (enum record_print_flag)
12124 <record_print_indent_calls>: New.
12125 * record.c (get_call_history_modifiers): Recognize /c modifier.
12126 (_initialize_record): Document /c modifier.
12127 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12128 Reorder fields. Optionally indent the function name. Update
12129 all users.
12130 * NEWS: Announce changes.
12131
12132 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12133
12134 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12135
12136 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12137
12138 * btrace.c (ftrace_new_function): Start counting at one.
12139 * record-btrace.c (record_btrace_info): Adjust number of calls
12140 and insns.
12141 * NEWS: Announce it.
12142
12143 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12144
12145 * record-btrace.c (btrace_call_history_insn_range): Print
12146 insn range as [begin, end].
12147
12148 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12149
12150 * btrace.h (struct btrace_func_link): New.
12151 (enum btrace_function_flag): New.
12152 (struct btrace_inst): Rename to ...
12153 (struct btrace_insn): ...this. Update all users.
12154 (struct btrace_func) <ibegin, iend>: Remove.
12155 (struct btrace_func_link): New.
12156 (struct btrace_func): Rename to ...
12157 (struct btrace_function): ...this. Update all users.
12158 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12159 (number, level, flags>: New.
12160 (struct btrace_insn_iterator): Rename to ...
12161 (struct btrace_insn_history): ...this.
12162 Update all users.
12163 (struct btrace_insn_iterator, btrace_call_iterator): New.
12164 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12165 (struct btrace_target_info) <begin, end, level>
12166 <insn_history, call_history>: New.
12167 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12168 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12169 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12170 (btrace_call_number, btrace_call_begin, btrace_call_end)
12171 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12172 (btrace_find_function_by_number, btrace_set_insn_history)
12173 (btrace_set_call_history): New.
12174 * btrace.c (btrace_init_insn_iterator)
12175 (btrace_init_func_iterator, compute_itrace): Remove.
12176 (ftrace_print_function_name, ftrace_print_filename)
12177 (ftrace_skip_file): Change
12178 parameter to const.
12179 (ftrace_init_func): Remove.
12180 (ftrace_debug): Use new btrace_function fields.
12181 (ftrace_function_switched): Also consider gaining and
12182 losing symbol information).
12183 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12184 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12185 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12186 New.
12187 (ftrace_new_function): Move. Remove debug print.
12188 (ftrace_update_lines, ftrace_update_insns): New.
12189 (ftrace_update_function): Check for call, ret, and jump.
12190 (compute_ftrace): Renamed to ...
12191 (btrace_compute_ftrace): ...this. Rewritten to compute call
12192 stack.
12193 (btrace_fetch, btrace_clear): Updated.
12194 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12195 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12196 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12197 (btrace_call_number, btrace_call_begin, btrace_call_end)
12198 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12199 (btrace_find_function_by_number, btrace_set_insn_history)
12200 (btrace_set_call_history): New.
12201 * record-btrace.c (require_btrace): Use new btrace thread
12202 info fields.
12203 (record_btrace_info, btrace_insn_history)
12204 (record_btrace_insn_history, record_btrace_insn_history_range):
12205 Use new btrace thread info fields and new iterator.
12206 (btrace_func_history_src_line): Rename to ...
12207 (btrace_call_history_src_line): ...this. Use new btrace
12208 thread info fields.
12209 (btrace_func_history): Rename to ...
12210 (btrace_call_history): ...this. Use new btrace thread info
12211 fields and new iterator.
12212 (record_btrace_call_history, record_btrace_call_history_range):
12213 Use new btrace thread info fields and new iterator.
12214
12215 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12216
12217 * frame.h (frame_id_build_unavailable_stack_special): New.
12218 * frame.c (frame_id_build_unavailable_stack_special): New.
12219
12220 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12221
12222 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12223 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12224 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12225 to gdbarch.
12226 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12227 (i386_insn_is_jump, i386_jmp_p): New.
12228 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12229 insn_is_jump to gdbarch.
12230 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12231 * gdbarch.h: Regenerated.
12232 * gdbarch.c: Regenerated.
12233 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12234 (default_insn_is_jump): New.
12235 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12236 (default_insn_is_jump): New.
12237
12238 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12239
12240 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12241 Change to ...
12242 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12243 (btrace_read_type) <btrace_read_new>: Change to ...
12244 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12245
12246 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12247
12248 * common/linux-btrace.c (linux_read_btrace): Free trace from
12249 previous iteration.
12250
12251 2014-01-15 Doug Evans <dje@google.com>
12252
12253 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12254 uint32_t.
12255
12256 2014-01-15 Tom Tromey <tromey@redhat.com>
12257
12258 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12259 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12260 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12261 (set_objfile_main_name): New function.
12262 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12263 language_of_main>: New fields.
12264 (set_objfile_main_name): Declare.
12265 * symtab.c (find_main_name): Loop over objfiles to find the main
12266 name and language.
12267 (set_main_name): Now static.
12268 (get_main_info): Add comment.
12269 * symtab.h (set_main_name): Don't declare.
12270
12271 2014-01-15 Tom Tromey <tromey@redhat.com>
12272
12273 * symtab.c (main_progspace_key): New global.
12274 (struct main_info): New.
12275 (name_of_main, language_of_main): Remove.
12276 (get_main_info, main_info_cleanup): New function.
12277 (set_main_name, main_name, main_language): Use get_main_info.
12278 (_initialize_symtab): Initialize main_progspace_key.
12279
12280 2014-01-15 Tom Tromey <tromey@redhat.com>
12281
12282 * dbxread.c (process_one_symbol): Update.
12283 * dwarf2read.c (read_partial_die): Update.
12284 * symfile.c (set_initial_language): Call main_language.
12285 * symtab.c (language_of_main): Now static.
12286 (set_main_name): Add 'lang' parameter.
12287 (find_main_name): Update.
12288 (main_language): New function.
12289 (symtab_observer_executable_changed): Update.
12290 * symtab.h (set_main_name): Update.
12291 (language_of_main): Remove.
12292 (main_language): Declare.
12293
12294 2014-01-15 Tom Tromey <tromey@redhat.com>
12295
12296 * symfile.c (init_entry_point_info): Use new "initialized" field.
12297 Update.
12298 * objfiles.h (struct entry_point) <initialized>: New field.
12299 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12300 (struct objfile) <ei>: ...here. Remove.
12301 * objfiles.c (entry_point_address_query): Update.
12302
12303 2014-01-15 Tom Tromey <tromey@redhat.com>
12304
12305 * objfiles.c (entry_point_address_query): Relocate entry point
12306 address.
12307 (objfile_relocate1): Do not relocate entry point address.
12308 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12309 <the_bfd_section_index>: New field.
12310 * symfile.c (init_entry_point_info): Find the entry point's
12311 section.
12312
12313 2014-01-15 Tom Tromey <tromey@redhat.com>
12314
12315 * solib-frv.c (enable_break): Use entry_point_address_query.
12316
12317 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12318
12319 * NEWS: Add note on improved process record-replay on
12320 arm*-linux* targets.
12321
12322 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12323
12324 * arm-tdep.c (enum arm_record_result): New enum.
12325 (arm_record_unsupported_insn): New function.
12326 (arm_record_coproc_data_proc): Removed.
12327 (thumb2_record_ld_st_multiple): New function.
12328 (thumb2_record_ld_st_dual_ex_tbb): New function.
12329 (thumb2_record_data_proc_sreg_mimm): New function.
12330 (thumb2_record_ps_dest_generic): New function.
12331 (thumb2_record_branch_misc_cntrl): New function.
12332 (thumb2_record_str_single_data): New function.
12333 (thumb2_record_ld_mem_hints): New function.
12334 (thumb2_record_ld_word): New function.
12335 (thumb2_record_lmul_lmla_div): New function.
12336 (thumb2_record_decode_insn_handler): New function.
12337 (decode_insn): Add thumb32 instruction handlers.
12338
12339 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12340
12341 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12342 (struct arm_linux_record_tdep): Declare.
12343 (arm_canonicalize_syscall): New function.
12344 (arm_all_but_pc_registers_record): New function.
12345 (arm_linux_syscall_record): New function.
12346 (arm_linux_init_abi): Add syscall recording constructs.
12347 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12348 decoding. (arm_record_coproc_data_proc): Update arm syscall
12349 decoding.
12350 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12351 <arm_syscall_record>: New field.
12352 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12353 gdb_target_obs.
12354
12355 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12356
12357 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12358 register for push instruction recording.
12359
12360 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12361
12362 * arm-tdep.c (thumb_record_misc): Update to correct logical
12363 error while recording ldm, ldmia and pop instructions.
12364
12365 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12366
12367 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12368
12369 2014-01-15 Pedro Alves <palves@redhat.com>
12370
12371 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12372 (go32_resume, go32_fetch_registers, store_register)
12373 (go32_store_registers, go32_prepare_to_store)
12374 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12375 (go32_create_inferior, go32_can_run, go32_terminal_init)
12376 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12377 declarations.
12378
12379 2014-01-15 Tom Tromey <tromey@redhat.com>
12380
12381 * target.h (async_callback_ftype): New typedef.
12382 (struct target_ops) <to_async>: Use it.
12383
12384 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12385
12386 * python/py-value.c (get_field_type): Remove unnecessary curly
12387 braces for single-statement if block.
12388
12389 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12390
12391 * python/py-type.c (convert_field): Add missing empty line
12392 after declarations.
12393
12394 2014-01-14 Doug Evans <dje@google.com>
12395
12396 * symfile.h (expand_symtabs_matching): Renamed from
12397 expand_partial_symbol_names. Update prototype.
12398 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12399 * symfile.c (expand_symtabs_matching): Renamed from
12400 expand_partial_symbol_names. New args file_matcher, kind.
12401 Rename arg fun to symbol_matcher.
12402 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12403 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12404 ada_expand_partial_symbol_name.
12405 (ada_make_symbol_completion_list): Update to call
12406 expand_symtabs_matching.
12407 (ada_add_global_exceptions): Call expand_symtabs_matching.
12408 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12409 call map_symbol_filenames.
12410 * symtab.c (sources_info): Update to call map_symbol_filenames.
12411 (search_symbols): Call expand_symtabs_matching.
12412 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12413 (default_make_symbol_completion_list_break_on): Update to call
12414 expand_symtabs_matching.
12415 (make_source_files_completion_list): Update to call
12416 map_symbol_filenames.
12417
12418 2014-01-14 Doug Evans <dje@google.com>
12419
12420 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12421 (expand_symtabs_symbol_matcher_ftype): New typedef.
12422 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12423 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12424 * symfile.c (expand_partial_symbol_names): Update to use
12425 expand_symtabs_symbol_matcher_ftype.
12426 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12427 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12428 Arg name_matcher renamed to symbol_matcher.
12429 * psymtab.c (recursively_search_psymtabs): Update to use
12430 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12431 sym_matcher.
12432 (expand_symtabs_matching_via_partial): Update to use
12433 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12434 Arg name_matcher renamed to symbol_matcher.
12435
12436 2014-01-14 Doug Evans <dje@google.com>
12437
12438 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12439 (map_partial_symbol_filenames): Ditto.
12440 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12441 (map_partial_symbol_filenames): Ditto.
12442 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12443 (map_partial_symbol_filenames): Ditto.
12444 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12445 (map_partial_symbol_filenames): Ditto.
12446 * symtab.c: Delete #include "psymtab.h".
12447
12448 2014-01-14 Pedro Alves <palves@redhat.com>
12449 Tom Tromey <tromey@redhat.com>
12450
12451 * infrun.c (use_displaced_stepping): Use find_record_target
12452 instead of RECORD_IS_USED.
12453 (adjust_pc_after_break): Use record_full_is_used instead of
12454 RECORD_IS_USED.
12455 * record-btrace.c (record_btrace_open): Call record_preopen
12456 instead of checking RECORD_IS_USED.
12457 * record-full.c (record_full_shortname)
12458 (record_full_core_shortname): New globals.
12459 (record_full_is_used): New function.
12460 (find_full_open): Call record_preopen instead of checking
12461 RECORD_IS_USED.
12462 (init_record_full_ops): Set the target's shortname to
12463 record_full_shortname.
12464 (init_record_full_core_ops): Set the target's shortname to
12465 record_full_core_shortname.
12466 * record-full.h (record_full_is_used): Declare.
12467 * record.c (find_record_target): Make extern.
12468 (record_preopen): New function.
12469 * record.h (RECORD_IS_USED): Delete macro.
12470 (find_record_target, record_preopen): Declare functions.
12471
12472 2014-01-14 Yao Qi <yao@codesourcery.com>
12473
12474 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12475 'len''s type to ULONGEST.
12476 (core_xfer_shared_libraries_aix): Likewise.
12477 * gdbarch.c, gdbarch.h: Regenerated.
12478 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12479 Change type of 'len' to ULONGEST.
12480 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12481 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12482
12483 2014-01-14 Yao Qi <yao@codesourcery.com>
12484
12485 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12486 type of 'len' to ULONGEST.
12487 (linux_xfer_osdata_processgroups): Likewise.
12488 (linux_xfer_osdata_threads): Likewise.
12489 (linux_xfer_osdata_fds): Likewise.
12490 (linux_xfer_osdata_isockets): Likewise.
12491 (linux_xfer_osdata_shm): Likewise.
12492 (linux_xfer_osdata_sem): Likewise.
12493 (linux_xfer_osdata_msg): Likewise.
12494 (linux_common_xfer_osdata): Likewise.
12495 (struct osdata_type) <getter>: Likewise.
12496 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12497 the declaration.
12498
12499 2014-01-14 Yao Qi <yao@codesourcery.com>
12500
12501 * target.h (target_xfer_partial_ftype): Update.
12502 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12503 ULONGEST.
12504 * aix-thread.c (aix_thread_xfer_partial): Change type of
12505 argument 'len' to ULONGEST.
12506 * auxv.c (procfs_xfer_auxv): Likewise.
12507 (ld_so_xfer_auxv): Likewise.
12508 (memory_xfer_auxv): Likewise.
12509 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12510 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12511 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12512 * corelow.c (core_xfer_partial): Likewise.
12513 * ctf.c (ctf_xfer_partial): Likewise.
12514 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12515 '%u'.
12516 (darwin_read_dyld_info): Likewise.
12517 (darwin_xfer_partial): Likewise.
12518 * exec.c (section_table_xfer_memory_partial): Likewise.
12519 (exec_xfer_partial): Likewise.
12520 * exec.h (section_table_xfer_memory_partial): Update
12521 declaration.
12522 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12523 instead of plongest.
12524 (gnu_xfer_partial): Likewise.
12525 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12526 (ia64_hpux_xfer_solib_got): Likewise.
12527 (ia64_hpux_xfer_partial): Likewise.
12528 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12529 * inf-ptrace.c (inf_ptrace_xfer_partial):
12530 * inf-ttrace.c (inf_ttrace_xfer_partial):
12531 * linux-nat.c (linux_xfer_siginfo): Likewise.
12532 (linux_nat_xfer_partial): Likewise.
12533 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12534 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12535 * monitor.c (monitor_xfer_memory): Likewise.
12536 (monitor_xfer_partial): Likewise.
12537 * procfs.c (procfs_xfer_partial): Likewise.
12538 * record-full.c (record_full_xfer_partial): Likewise.
12539 (record_full_core_xfer_partial): Likewise.
12540 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12541 instead of plongest.
12542 (gdbsim_xfer_partial): Likewise.
12543 * remote.c (remote_xfer_partial): Likewise.
12544 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12545 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12546 declaration.
12547 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12548 (rs6000_xfer_shared_libraries): Likewise.
12549 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12550 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12551 (sparc_xfer_partial): Likewise.
12552 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12553 (spu_xfer_partial): Likewise.
12554 * spu-multiarch.c (spu_xfer_partial): Likewise.
12555 * target.c (target_read_live_memory): Likewise.
12556 (memory_xfer_live_readonly_partial): Likewise.
12557 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12558 (target_xfer_partial, default_xfer_partial): Likewise.
12559 (current_xfer_partial): Likewise.
12560 * tracepoint.c (tfile_xfer_partial): Likewise.
12561 * windows-nat.c (windows_xfer_memory): Likewise. Call
12562 pulongest instead of plongest.
12563 (windows_xfer_partial): Likewise.
12564 (windows_xfer_shared_libraries): Likewise.
12565
12566 2014-01-14 Yao Qi <yao@codesourcery.com>
12567
12568 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12569 target_xfer_partial_ftype.
12570
12571 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12572
12573 PR python/15464
12574 PR python/16113
12575 * valops.c (value_struct_elt_bitpos): New function
12576 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12577 object to 'None' if the field name is an empty string ("").
12578 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12579 attribute to look for a field when 'name' is 'None'.
12580 (get_field_type): New function
12581
12582 2014-01-13 Doug Evans <dje@google.com>
12583
12584 PR symtab/16426
12585 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12586 (try_open_dwop_file): Ditto.
12587 * gdb_bfd.c: #include "vec.h".
12588 (bfdp): New typedef.
12589 (struct gdb_bfd_data): New member included_bfds.
12590 (gdb_bfd_unref): Unref all included bfds.
12591 (gdb_bfd_record_inclusion): New function.
12592 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12593
12594 2014-01-13 Tom Tromey <tromey@redhat.com>
12595
12596 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12597
12598 2014-01-13 Tom Tromey <tromey@redhat.com>
12599
12600 * defs.h (use_windows): Remove.
12601 * gdb.c (main): Update.
12602 * main.c (captured_main, gdb_main): Update.
12603 * main.h (struct captured_main_args) <use_windows>: Remove.
12604 * top.c (use_windows): Remove.
12605
12606 2014-01-13 Tom Tromey <tromey@redhat.com>
12607
12608 * defs.h (deprecated_flush_hook): Remove.
12609
12610 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12611
12612 PR threads/16216
12613 * linux-thread-db.c (try_thread_db_load): Add parameter
12614 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12615 (try_thread_db_load_from_pdir_1): Move it there from here.
12616 (try_thread_db_load_from_sdir): Update caller.
12617 (try_thread_db_load_from_dir): Move it there from here.
12618
12619 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12620
12621 * regformats/regdat.sh: Always rewrite the register file.
12622
12623 2014-01-13 Pedro Alves <palves@redhat.com>
12624
12625 * Makefile.in (CHECK_HEADERS): New variable.
12626 (check-headers:): New rule.
12627
12628 2014-01-13 Tom Tromey <tromey@redhat.com>
12629
12630 * cli/cli-setshow.c (do_set_command): Update.
12631 * defs.h (deprecated_set_hook): Remove.
12632 * top.c (deprecated_set_hook): Remove.
12633
12634 2014-01-13 Pedro Alves <palves@redhat.com>
12635
12636 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12637 the tracepoint if the PC is a pseudo-register.
12638
12639 2014-01-13 Tom Tromey <tromey@redhat.com>
12640
12641 * defs.h (XCALLOC): Remove.
12642 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12643 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12644 * dwarf2loc.c (allocate_piece_closure): Likewise.
12645 * elfread.c (elf_symfile_segments): Likewise.
12646 (elf_symfile_segments): Likewise.
12647 * gdbtypes.c (copy_type_recursive): Likewise.
12648 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12649 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12650 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12651 XCALLOC.
12652 * mt-tdep.c (mt_gdbarch_init): Likewise.
12653 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12654 XCALLOC.
12655 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12656 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12657 * registry.c (registry_alloc_data): Likewise.
12658 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12659 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12660 * serial.c (serial_fdopen_ops): Likewise.
12661 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12662 XCALLOC.
12663 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12664 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12665 not XCALLOC.
12666
12667 2014-01-13 Tom Tromey <tromey@redhat.com>
12668
12669 * defs.h (XMALLOC): Remove.
12670 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12671 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12672 * cli-out.c (struct ui_out *): Likewise.
12673 * cli/cli-dump.c (add_dump_command): Likewise.
12674 (add_dump_command): Likewise.
12675 * complaints.c (get_complaints): Likewise.
12676 (find_complaint): Likewise.
12677 * dwarf2-frame.c (execute_cfa_program): Likewise.
12678 * dwarf2read.c (abbrev_table_read_table): Likewise.
12679 * gdbarch.sh: Likewise.
12680 * gdbarch.c: Rebuild.
12681 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12682 * interps.c (interp_new): Likewise.
12683 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12684 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12685 * mi/mi-console.c (mi_console_file_new): Likewise.
12686 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12687 * mi/mi-out.c (mi_out_new): Likewise.
12688 * mi/mi-parse.c (mi_parse): Likewise.
12689 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12690 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12691 * observer.c (xalloc_observer_list_node): Likewise.
12692 * regcache.c (regcache_xmalloc_1): Likewise.
12693 * reggroups.c (reggroup_new): Likewise.
12694 (_initialize_reggroup): Likewise.
12695 * registry.c (register_data_with_cleanup): Likewise.
12696 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12697 * ser-base.c (serial_ttystate): Likewise.
12698 * ser-mingw.c (make_pipe_state): Likewise.
12699 * ser-pipe.c (pipe_open): Likewise.
12700 * serial.c (serial_open): Likewise.
12701 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12702 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12703 (tui_alloc_win_info): Likewise.
12704 (tui_add_content_elements): Likewise.
12705 * tui/tui-file.c (tui_file_new): Likewise.
12706 * tui/tui-out.c (tui_out_new): Likewise.
12707 * ui-file.c (mem_file_new): Likewise.
12708 * ui-out.c (push_level): Likewise.
12709 (make_cleanup_ui_out_end): Likewise.
12710 (append_header_to_list): Likewise.
12711 (ui_out_new): Likewise.
12712 * user-regs.c (user_reg_add_builtin): Likewise.
12713
12714 2014-01-13 Tom Tromey <tromey@redhat.com>
12715
12716 * defs.h (XZALLOC): Remove.
12717 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12718 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12719 (get_ada_tasks_inferior_data): Likewise.
12720 * auto-load.c (get_auto_load_pspace_data): Likewise.
12721 * auxv.c (get_auxv_inferior_data): Likewise.
12722 * bfd-target.c (target_bfd_reopen): Likewise.
12723 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12724 (deprecated_insert_raw_breakpoint): Likewise.
12725 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12726 * corelow.c (core_open): Likewise.
12727 * darwin-nat.c (darwin_check_new_threads): Likewise.
12728 (darwin_attach_pid): Likewise.
12729 * dummy-frame.c (dummy_frame_push): Likewise.
12730 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12731 * dwarf2loc.c (allocate_piece_closure): Likewise.
12732 * elfread.c (elf_symfile_segments): Likewise.
12733 * eval.c (ptrmath_type_p): Likewise.
12734 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12735 * gdbtypes.c (alloc_type_arch): Likewise.
12736 (alloc_type_instance): Likewise.
12737 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12738 * inf-child.c (inf_child_can_use_agent): Likewise.
12739 * inflow.c (get_inflow_inferior_data): Likewise.
12740 * infrun.c (save_infcall_suspend_state): Likewise.
12741 * jit.c (jit_reader_load): Likewise.
12742 (get_jit_objfile_data): Likewise.
12743 (get_jit_program_space_data): Likewise.
12744 (jit_object_open_impl): Likewise.
12745 (jit_symtab_open_impl): Likewise.
12746 (jit_block_open_impl): Likewise.
12747 (jit_frame_sniffer): Likewise.
12748 * linux-fork.c (add_fork): Likewise.
12749 * maint.c (make_command_stats_cleanup): Likewise.
12750 * objfiles.c (get_objfile_pspace_data): Likewise.
12751 * opencl-lang.c (struct lval_closure): Likewise.
12752 * osdata.c (osdata_start_osdata): Likewise.
12753 * progspace.c (new_address_space): Likewise.
12754 (add_program_space): Likewise.
12755 * remote-sim.c (get_sim_inferior_data): Likewise.
12756 * sh-tdep.c (sh_gdbarch_init): Likewise.
12757 * skip.c (Ignore): Likewise.
12758 (skip_delete_command): Likewise.
12759 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12760 (library_list_start_library): Likewise.
12761 (solib_aix_current_sos): Likewise.
12762 * solib-darwin.c (get_darwin_info): Likewise.
12763 (darwin_current_sos): Likewise.
12764 * solib-dsbt.c (get_dsbt_info): Likewise.
12765 * solib-ia64-hpux.c (new_so_list): Likewise.
12766 (ia64_hpux_get_solib_linkage_addr): Likewise.
12767 * solib-spu.c (append_ocl_sos): Likewise.
12768 (spu_current_sos): Likewise.
12769 * solib-svr4.c (get_svr4_info): Likewise.
12770 (svr4_keep_data_in_core): Likewise.
12771 (library_list_start_library): Likewise.
12772 (svr4_default_sos): Likewise.
12773 (svr4_read_so_list): Likewise.
12774 * solib-target.c (library_list_start_library): Likewise.
12775 (solib_target_current_sos): Likewise.
12776 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12777 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12778 * symfile.c (default_symfile_segments): Likewise.
12779 * target-descriptions.c (tdesc_data_init): Likewise.
12780 (tdesc_create_reg): Likewise.
12781 (struct tdesc_type *): Likewise.
12782 (tdesc_create_vector): Likewise.
12783 (tdesc_set_struct_size): Likewise.
12784 (struct tdesc_type *): Likewise.
12785 (tdesc_free_feature): Likewise.
12786 (tdesc_create_feature): Likewise.
12787 * windows-nat.c (windows_add_thread): Likewise.
12788 (windows_make_so): Likewise.
12789 * xml-support.c (gdb_xml_body_text): Likewise.
12790 (gdb_xml_create_parser_and_cleanup): Likewise.
12791 (xml_process_xincludes): Likewise.
12792 * xml-syscall.c (allocate_syscalls_info): Likewise.
12793 (syscall_create_syscall_desc): Likewise.
12794
12795 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12796
12797 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12798 function, with code from i386_stap_parse_special_token.
12799 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12800 (i386_stap_parse_special_token): Move code to the two functions
12801 above; simplify it.
12802
12803 2014-01-09 Pedro Alves <palves@redhat.com>
12804 Hui Zhu <hui@codesourcery.com>
12805
12806 PR gdb/16101
12807 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12808 bp_err_string. Don't mark the location shlib_disabled if the
12809 error thrown wasn't a generic or memory error. Catch errors
12810 thrown while inserting breakpoints in overlayed code. Output
12811 error message of software breakpoints.
12812 * remote.c (remote_insert_breakpoint): If this breakpoint has
12813 target-side commands but this stub doesn't support Z0 packets,
12814 throw NOT_SUPPORTED_ERROR error.
12815 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12816 * target.h (target_insert_breakpoint): Extend comment.
12817 (target_insert_hw_breakpoint): Add comment.
12818
12819 2014-01-08 Pedro Alves <palves@redhat.com>
12820
12821 * remote.c (remote_add_thread): Add threads silently if starting
12822 up.
12823 (remote_notice_new_inferior): If in all-stop, and starting up,
12824 don't call notice_new_inferior.
12825 (get_current_thread): New function, factored out from ...
12826 (add_current_inferior_and_thread): ... this. Adjust.
12827 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12828 found any thread, then select the remote's current thread as GDB's
12829 current thread too.
12830
12831 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12832
12833 * NEWS: Create a new section for the next release branch.
12834 Rename the section of the current branch, now that it has
12835 been cut.
12836
12837 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12838
12839 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12840 * version.in: Bump version to 7.7.50.DATE-cvs.
12841
12842 2014-01-08 Yao Qi <yao@codesourcery.com>
12843
12844 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12845 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12846 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12847
12848 2014-01-08 Yao Qi <yao@codesourcery.com>
12849
12850 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12851 return value of bfd_get_filename to symbol_file_add_from_bfd.
12852
12853 2014-01-08 Pierre Muller <muller@sourceware.org>
12854
12855 Fix PR16201.
12856 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12857 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12858 to prim_record_mininal_symbol_and_info.
12859 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12860 in call to prim_record_minimal_symbol_and_info.
12861 (read_pe_exported_syms): Set index field of section_data.
12862
12863 2014-01-07 Andrew Pinski <apinski@cavium.com>
12864
12865 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12866 * features/aarch64.c: Regenerate.
12867
12868 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12869
12870 * target.c (return_null): Define.
12871 (update_current_target): Use it instead of return_zero for
12872 functions that return a pointer.
12873
12874 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12875
12876 * source.c (add_path): Fix check for duplicated paths in the previously
12877 included paths.
12878
12879 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12880
12881 * ada-lang.c: Remove duplicated include statements.
12882 * alphabsd-nat.c: Ditto.
12883 * amd64-darwin-tdep.c: Ditto.
12884 * amd64fbsd-nat.c: Ditto.
12885 * auto-load.c: Ditto.
12886 * ax-gdb.c: Ditto.
12887 * breakpoint.c: Ditto.
12888 * dbxread.c: Ditto.
12889 * fork-child.c: Ditto.
12890 * gdb_usleep.c: Ditto.
12891 * i386-darwin-tdep.c: Ditto.
12892 * i386fbsd-nat.c: Ditto.
12893 * infcmd.c: Ditto.
12894 * inferior.c: Ditto.
12895 * jv-lang.c: Ditto.
12896 * linux-nat.c: Ditto.
12897 * linux-tdep.c: Ditto.
12898 * m68kbsd-nat.c: Ditto.
12899 * m68klinux-nat.c: Ditto.
12900 * microblaze-tdep.c: Ditto.
12901 * mips-linux-tdep.c: Ditto.
12902 * mn10300-tdep.c: Ditto.
12903 * nto-tdep.c: Ditto.
12904 * opencl-lang.c: Ditto.
12905 * osdata.c: Ditto.
12906 * printcmd.c: Ditto.
12907 * regcache.c: Ditto.
12908 * remote-m32r-sdi.c: Ditto.
12909 * remote.c: Ditto.
12910 * symfile.c: Ditto.
12911 * symtab.c: Ditto.
12912 * tilegx-linux-nat.c: Ditto.
12913 * tilegx-tdep.c: Ditto.
12914 * tracepoint.c: Ditto.
12915 * valops.c: Ditto.
12916 * vaxbsd-nat.c: Ditto.
12917 * windows-nat.c: Ditto.
12918 * xtensa-tdep.c: Ditto.
12919
12920 2014-01-07 Yao Qi <yao@codesourcery.com>
12921
12922 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12923
12924 2014-01-07 Yao Qi <yao@codesourcery.com>
12925 Joel Brobecker <brobecker@adacore.com>
12926
12927 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12928 (pdc_write_regs): Likewise.
12929 (fetch_regs_kernel_thread): Likewise.
12930 (store_regs_kernel_thread): Likewise.
12931
12932 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12933
12934 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12935 tagged type objects to their actual type.
12936
12937 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12938
12939 * ada-valprint.c (print_field_values): Add "language" parameter.
12940 Update calls to print_field_values and print_variant_part.
12941 Pass new parameter "language" in call to val_print instead
12942 of "current_language". Replace call to ada_val_print by call
12943 to val_print.
12944 (print_variant_part): Add "language" parameter.
12945 (ada_val_print_struct_union): Update call to print_field_values.
12946
12947 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12948
12949 * ada-valprint.c (ui_memcpy): Delete.
12950 (ada_print_floating): Update documentation. Add empty line
12951 between between function documentation and implementation.
12952 Delete variable "buffer". Use ui_file_xstrdup in place of
12953 ui_file_put. Minor adjustments following this change.
12954
12955 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12956
12957 * ada-valprint.c (ada_val_print_string): New function,
12958 extracted from ada_val_print_array.
12959 (ada_val_print_array): Replace extracted code by call
12960 to ada_val_print_string followed by a return. Move
12961 "else" branch to the function's top block.
12962
12963 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12964
12965 * ada-valprint.c (ada_val_print_array): Move implementation
12966 down. Rename parameter "offset" and "val" into "offset_aligned"
12967 and "original_value" respectively. Add parameter "offset".
12968
12969 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12970
12971 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12972 re-organizing the code. Change the "???" message printed
12973 when target type is a TYPE_CODE_UNDEF into
12974 "<ref to undefined type>".
12975
12976 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12977
12978 * ada-valprint.c (print_record): Delete, implementation inlined...
12979 (ada_val_print_struct_union): ... here. Remove call to
12980 ada_check_typedef in inlined implementation.
12981
12982 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12983
12984 * ada-valprint.c (ada_val_print_gnat_array): New function,
12985 extracted from ada_val_print_1;
12986 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12987 (ada_val_print_flt, ada_val_print_struct_union)
12988 (ada_val_print_ref): Likewise.
12989 (ada_val_print_1): Delete variables i and elttype.
12990 Replace extracted-out code by call to corresponding
12991 new functions.
12992
12993 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12994
12995 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12996
12997 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12998
12999 * ada-valprint.c (ada_val_print_1): Replace calls to
13000 ada_val_print_1 by calls to val_print.
13001
13002 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13003
13004 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13005 Update calls to self accordingly. Replace calls to c_val_print
13006 by calls to val_print.
13007
13008 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13009
13010 * ada-valprint.c (print_record): Delete declaration.
13011 (adjust_type_signedness, ada_val_print_1): Likewise.
13012 (ada_val_print): Move function implementation down.
13013 (print_variant_part, print_field_values, print_record):
13014 Move function implementation up.
13015
13016 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13017
13018 * python/py-type.c (typy_get_name): New function.
13019 (type_object_getset): Add entry for attribute "name".
13020 * NEWS: Add entry mentioning this new attribute.
13021
13022 2014-01-07 Yao Qi <yao@codesourcery.com>
13023
13024 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13025 statement.
13026
13027 2014-01-07 Yao Qi <yao@codesourcery.com>
13028
13029 * gnu-nat.c (info_port_rights): Add qualifier const to
13030 argument args.
13031
13032 2014-01-07 Yao Qi <yao@codesourcery.com>
13033
13034 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13035
13036 2014-01-07 Yao Qi <yao@codesourcery.com>
13037
13038 * gnu-nat.c (make_inf) Update declaration.
13039 (make_inf): Make it static.
13040 (inf_set_traced): Likewise.
13041 (inf_port_to_thread, inf_task_died_status): Likewise.
13042
13043 2014-01-07 Yao Qi <yao@codesourcery.com>
13044
13045 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13046
13047 2014-01-07 Yao Qi <yao@codesourcery.com>
13048
13049 * gnu-nat.c (_initialize_gnu_nat): Declare.
13050
13051 2014-01-07 Yao Qi <yao@codesourcery.com>
13052
13053 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13054 'enum bfd_endian'.
13055 (struct gdbarch_info) <byte_order>: Change type to
13056 'enum bfd_endian'.
13057 <byte_order_for_code>: Likewise.
13058 * gdbarch.c, gdbarch.h: Regenerated.
13059
13060 2014-01-06 Sasha Smundak <asmundak@google.com>
13061
13062 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13063
13064 2014-01-06 Tom Tromey <tromey@redhat.com>
13065
13066 * doublest.c (convert_doublest_to_floatformat): Use const, not
13067 CONST.
13068 * somread.c (som_symtab_read): Likewise.
13069
13070 2014-01-07 Hui Zhu <hui@codesourcery.com>
13071
13072 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13073 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13074 (gdb_bfd_fopen): Ditto.
13075 (gdb_bfd_openr): Ditto.
13076 (gdb_bfd_openw): Ditto.
13077 (gdb_bfd_openr_iovec): Ditto.
13078 (gdb_bfd_fdopenr): Ditto.
13079 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13080 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13081 with xstrdup.
13082 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13083 with xstrdup.
13084 * symfile-mem.c (symbol_file_add_from_memory): Removed
13085 gdb_bfd_stash_filename.
13086
13087 2014-01-03 Doug Evans <dje@google.com>
13088
13089 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13090 output.
13091
13092 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13093
13094 Update year range in copyright notice of all files.
13095
13096 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13097
13098 * top.c (print_gdb_version): Set copyright year to 2014.
13099
13100 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13101
13102 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13103
13104 For older changes see ChangeLog-2013.
13105 \f
13106 Local Variables:
13107 mode: change-log
13108 left-margin: 8
13109 fill-column: 74
13110 version-control: never
13111 coding: utf-8
13112 End:
This page took 0.298382 seconds and 5 git commands to generate.