30112cb6ca8097fdcf88032241c9743f17ad1dfb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2
3 * regcache.h (struct regset): Declare.
4
5 2014-09-11 Pedro Alves <palves@redhat.com>
6
7 PR gdb/17347
8 * main.c: Include "infrun.h".
9 (catch_command_errors, catch_command_errors_const): Wait for the
10 foreground command to complete.
11 * top.c (maybe_wait_sync_command_done): New function, factored out
12 from ...
13 (maybe_wait_sync_command_done): ... here.
14 * top.h (maybe_wait_sync_command_done): New declaration.
15
16 2014-09-11 Tom Tromey <tromey@redhat.com>
17 Gary Benson <gbenson@redhat.com>
18
19 * common/symbol.h: New file.
20 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
21 * minsyms.c (find_minimal_symbol_address): New function.
22 * common/agent.c: Include common/symbol.h.
23 [!GDBSERVER]: Don't include objfiles.h.
24 (agent_look_up_symbols): Use find_minimal_symbol_address.
25
26 2014-09-11 Gary Benson <gbenson@redhat.com>
27
28 * target/target.h (target_stop_ptid, target_continue_ptid):
29 Declare.
30 * target.c (target_stop_ptid, target_continue_ptid): New
31 functions.
32 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
33 (agent_run_command): Always use target_stop_ptid and
34 target_continue_ptid.
35
36 2014-09-11 Tom Tromey <tromey@redhat.com>
37 Gary Benson <gbenson@redhat.com>
38
39 * target/target.h: New file.
40 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
41 * target.h: Include target/target.h.
42 (target_read_memory, target_write_memory): Don't declare.
43 * target.c (target_read_uint32): New function.
44 * common/agent.c: Include target/target.h.
45 [!GDBSERVER]: Don't include target.h.
46 (helper_thread_id): Type changed to uint32_t.
47 (agent_get_helper_thread_id): Use target_read_uint32.
48 (agent_run_command): Always use target_read_memory and
49 target_write_memory.
50 (agent_capability): Type changed to uint32_t.
51 (agent_capability_check): Use target_read_uint32.
52
53 2014-09-11 Gary Benson <gbenson@redhat.com>
54
55 * common/common-debug.h (show_debug_regs): Declare.
56 * common/common-debug.c (show_debug_regs): Define.
57 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
58 all uses with show_debug_regs. Replace all uses that considered
59 debug_hw_points as a multi-value integer with straight boolean
60 uses.
61 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
62 with show_debug_regs.
63 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
64 all uses with show_debug_regs.
65 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
66 uses with show_debug_regs.
67
68 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
69
70 * findvar.c (address_from_register): Handle targets requiring
71 a special conversion routine even for plain pointer types.
72
73 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
74
75 * rs6000-nat.c (exec_one_dummy_insn): Remove.
76 (store_register): Do not call exec_one_dummy_insn.
77
78 2014-09-10 Joel Brobecker <brobecker@adacore.com>
79
80 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
81 dereference it first. Use value_enclosing_type instead of
82 value_type.
83 (ada_array_length): Likewise.
84
85 2014-09-10 Joel Brobecker <brobecker@adacore.com>
86
87 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
88 Adjust function implementation and documentation accordingly.
89 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
90 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
91 Update call to ada_value_ptr_subscript.
92
93 2014-09-10 Joel Brobecker <brobecker@adacore.com>
94
95 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
96 instead of VAL's type.
97
98 2014-09-10 Joel Brobecker <brobecker@adacore.com>
99
100 * amd64-linux-nat.c: Add <sys/uio.h> #include.
101
102 2014-09-09 Doug Evans <xdje42@gmail.com>
103
104 PR guile/17367
105 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
106 last parameter to pkg-config, not first.
107 * configure.ac: Pass --with-guile provided pkg-config path to
108 GDB_GUILE_PROGRAM_NAMES.
109 * configure: Regenerate.
110
111 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
112
113 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
114 Bertazi".
115
116 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
117
118 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
119 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
120 the list of sections determining GDB_OSABI_IRIX.
121
122 2014-09-09 James Hogan <james.hogan@imgtec.com>
123
124 * MAINTAINERS (Write After Approval): Add "James Hogan".
125
126 2014-09-09 James Hogan <james.hogan@imgtec.com>
127
128 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
129
130 2014-09-09 Joel Brobecker <brobecker@adacore.com>
131
132 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
133
134 2014-09-08 Doug Evans <xdje42@gmail.com>
135
136 PR 17247
137 * guile.c: #include <signal.h>.
138 (_initialize_guile): Block SIGCHLD while initializing Guile.
139
140 Replaces the following, which is reverted.
141
142 2014-07-26 Doug Evans <xdje42@gmail.com>
143
144 PR 17185
145 * configure.ac: Add check for header gc/gc.h.
146 Add check for function setenv.
147 * configure: Regenerate.
148 * config.in: Regenerate.
149 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
150
151 2014-09-08 Doug Evans <xdje42@gmail.com>
152
153 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
154 with named constant. Fix style of pointer comparison.
155 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
156
157 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
158
159 PR gdb/17035
160 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
161 decide whether we display the command on "show user".
162 * cli/cli-script.c (show_user_1): Only verify cmdlines after
163 printing command name.
164 * cli/cli-decode.h (cli_user_command_p): Declare new function.
165 * cli/cli-decode.c (cli_user_command_p): Create helper function
166 to verify whether cmd_list_element is a user-defined command.
167
168 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
169
170 PR python/17355
171 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
172 Fix goto out of TRY_CATCH.
173
174 2014-09-06 Doug Evans <xdje42@gmail.com>
175 Tom Tromey <tromey@redhat.com>
176
177 PR 15276
178 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
179 $_any_caller_matches.
180 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
181 * python/lib/gdb/function/caller_is.py: New file.
182
183 2014-09-06 Doug Evans <xdje42@gmail.com>
184
185 * infcmd.c (program_info): Fix typo.
186
187 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
188
189 PR gdb/17235
190 * stap-probe.c (stap_parse_single_operand): Delete unused variable
191 'number'. New variable 'has_digit'. Rewrite code to deal with
192 subexpressions on SDT probes.
193
194 2014-09-04 Pedro Alves <palves@redhat.com>
195
196 * c-exp.y (parse_number): Skip handling base-switching prefixes if
197 the input is only one character long.
198
199 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
200
201 PR fortran/17237
202 * f-valprint.c (f_val_print): Specify the correct print option to
203 use when printing integer values.
204
205 2014-09-04 Gary Benson <gbenson@redhat.com>
206
207 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
208 Remove code to cope with LWPs wrapped as PIDs.
209 Add assertions to ensure no wrapped LWPs are passed.
210
211 2014-09-04 Pedro Alves <palves@redhat.com>
212
213 * value.c (value_ranges_copy_adjusted): New function, factored out
214 from ...
215 (value_contents_copy_raw): ... here.
216 (unpack_value_bits_as_long_1): Rename back to ...
217 (unpack_bits_as_long): ... this. Remove 'original_value' and
218 'result' parameters. Change return type to LONGEST.
219 (unpack_value_bits_as_long): Delete.
220 (unpack_value_field_as_long_1): Delete.
221 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
222 (unpack_value_bitfield): New function.
223 (value_field_bitfield): Reimplement using unpack_value_bitfield.
224 (value_fetch_lazy): Use unpack_value_bitfield.
225 * value.h (unpack_value_bits_as_long): Delete declaration.
226
227 2014-09-03 Sasha Smundak <asmundak@google.com>
228
229 * python/py-frame.c (frapy_read_register): New function.
230
231 2014-09-03 James Hogan <james.hogan@imgtec.com>
232
233 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
234 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
235
236 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
237
238 PR python/16699
239 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
240 function.
241 (add_cmd): Set "completer_handle_brkchars" to NULL.
242 * cli/cli-decode.h (struct cmd_list_element)
243 <completer_handle_brkchars>: New field.
244 * command.h (completer_ftype_void): New typedef.
245 (set_cmd_completer_handle_brkchars): New prototype.
246 * completer.c (set_gdb_completion_word_break_characters): New
247 function.
248 (complete_line_internal): Call "completer_handle_brkchars"
249 callback from command.
250 * completer.h: Include "command.h".
251 (set_gdb_completion_word_break_characters): New prototype.
252 * python/py-cmd.c (cmdpy_completer_helper): New function.
253 (cmdpy_completer_handle_brkchars): New function.
254 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
255 (cmdpy_init): Set completer_handle_brkchars to
256 cmdpy_completer_handle_brkchars.
257
258 2014-09-03 Gary Benson <gbenson@redhat.com>
259
260 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
261 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
262 Loop conditions changed to equivalent form.
263 (struct x86_debug_reg_state): Updated dr_ref_count comment.
264 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
265 ALL_DEBUG_ADDRESS_REGISTERS.
266
267 2014-09-03 Joel Brobecker <brobecker@adacore.com>
268
269 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
270 description fix.
271
272 2014-09-02 Doug Evans <dje@google.com>
273
274 * typeprint.c (find_global_typedef): Fix comment.
275
276 2014-09-02 Gary Benson <gbenson@redhat.com>
277
278 * i386-nat.h: Renamed as...
279 * x86-nat.h: New file. All type, function and variable name
280 prefixes changed from "i386_" to "x86_". All references updated.
281 * i386-nat.c: Renamed as...
282 * x86-nat.c: New file. All type, function and variable name
283 prefixes changed from "i386_" to "x86_". All references updated.
284 * common/i386-xstate.h: Renamed as...
285 * common/x86-xstate.h: New file. All type, function and variable
286 name prefixes changed from "i386_" to "x86_". All references
287 updated.
288 * nat/i386-cpuid.h: Renamed as...
289 * nat/x86-cpuid.h: New file. All type, function and variable name
290 prefixes changed from "i386_" to "x86_". All references updated.
291 * nat/i386-gcc-cpuid.h: Renamed as...
292 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
293 name prefixes changed from "i386_" to "x86_". All references
294 updated.
295 * nat/i386-dregs.h: Renamed as...
296 * nat/x86-dregs.h: New file. All type, function and variable name
297 prefixes changed from "i386_" to "x86_". All references updated.
298 * nat/i386-dregs.c: Renamed as...
299 * nat/x86-dregs.c: New file. All type, function and variable name
300 prefixes changed from "i386_" to "x86_". All references updated.
301
302 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
303
304 * varobj.c (_initialize_varobj): Move to the end of file.
305
306 2014-08-29 Gary Benson <gbenson@redhat.com>
307
308 * common/common-exceptions.h: New file.
309 * common/common-exceptions.c: Likewise.
310 * Makefile.in (SFILES): Add common/common-exceptions.c.
311 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
312 (COMMON_OBS): Add common-exceptions.o.
313 (common-exceptions.o): New rule.
314 * exceptions.h (common-exceptions.h): Include.
315 (gdb_setjmp.h): Do not include.
316 (return_reason): Moved to common-exceptions.h.
317 (enum return_reason): Likewise.
318 (RETURN_MASK): Likewise.
319 (typedef return_mask): Likewise.
320 (enum errors): Likewise.
321 (struct gdb_exception): Likewise.
322 (exceptions_state_mc_init): Likewise.
323 (exceptions_state_mc_action_iter): Likewise.
324 (exceptions_state_mc_action_iter_1): Likewise.
325 (TRY_CATCH): Likewise.
326 (throw_exception): Likewise.
327 (throw_verror): Likewise.
328 (throw_vquit): Likewise.
329 (throw_error): Likewise.
330 (throw_quit): Likewise.
331 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
332 (enum catcher_action): Likewise.
333 (struct catcher): Likewise.
334 (current_catcher): Likewise.
335 (catcher_list_size): Likewise.
336 (exceptions_state_mc_init): Likewise.
337 (catcher_pop): Likewise.
338 (exceptions_state_mc): Likewise.
339 (exceptions_state_mc_action_iter): Likewise.
340 (exceptions_state_mc_action_iter_1): Likewise.
341 (throw_exception): Likewise.
342 (exception_messages): Likewise.
343 (exception_messages_size): Likewise.
344 (throw_it): Likewise.
345 (throw_verror): Likewise.
346 (throw_vquit): Likewise.
347 (throw_error): Likewise.
348 (throw_quit): Likewise.
349 (prepare_to_throw_exception): New function.
350
351 2014-08-29 Gary Benson <gbenson@redhat.com>
352
353 * common/gdb_setjmp.h: New file.
354 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
355 * configure.ac: Move sigsetjmp check...
356 * common/common.m4: ...here.
357 * configure: Regenerate.
358 * cp-support.c (SIGJMP_BUF): Delete.
359 (SIGSETJMP): Likewise.
360 (SIGLONGJMP): Likewise.
361 * exceptions.h (gdb_setjmp.h): Include.
362 (setjmp.h): Do not include.
363 (EXCEPTIONS_SIGJMP_BUF): Delete.
364 (EXCEPTIONS_SIGSETJMP): Likewise.
365 (EXCEPTIONS_SIGLONGJMP): Likewise.
366 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
367 from gdb_setjmp.h.
368 * exceptions.c: Likewise.
369
370 2014-08-29 Gary Benson <gbenson@redhat.com>
371
372 * cleanups.h: Moved to...
373 * common/cleanups.h: New file.
374 * cleanups.c: Moved to...
375 * common/cleanups.c: New file. Include common-defs.h and
376 cleanups.h. Do not include defs.h.
377 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
378 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
379 (cleanups.o): New rule.
380
381 2014-08-29 Gary Benson <gbenson@redhat.com>
382
383 * common/errors.h (internal_warning): New declaration.
384 (internal_vwarning): Likewise.
385 * common/errors.c (internal_warning): New function.
386 * utils.h (internal_warning): Don't declare.
387 (internal_vwarning): Likewise.
388 * utils.c (internal_warning): Removed.
389
390 2014-08-29 Gary Benson <gbenson@redhat.com>
391
392 * main.c (captured_main): Use warning during startup.
393 Prefix startup warning messages with command name.
394
395 2014-08-29 Gary Benson <gbenson@redhat.com>
396
397 * main.c (captured_main): Handle usage errors with error.
398
399 2014-08-29 Gary Benson <gbenson@redhat.com>
400
401 * go32-nat.c (go32_create_inferior): Replace a fprintf/
402 exit pair with a call to error. Wrap the message with _().
403
404 2014-08-29 Gary Benson <gbenson@redhat.com>
405
406 * main.c (captured_main): Replace a fprintf/exit
407 pair with a call to error. Wrap the message with _().
408
409 2014-08-29 Gary Benson <gbenson@redhat.com>
410
411 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
412 pairs with calls to error. Wrap the message with _().
413
414 2014-08-29 Gary Benson <gbenson@redhat.com>
415
416 * utils.c (vwarning): Protect calls to target_terminal_ours
417 and wrap_here.
418
419 2014-08-29 Gary Benson <gbenson@redhat.com>
420
421 * exceptions.c (print_flush): Protect calls to
422 target_terminal_ours and wrap_here.
423
424 2014-08-29 Gary Benson <gbenson@redhat.com>
425
426 * utils.h (filtered_printing_initialized): New declaration.
427 * utils.c (abort_with_message): New function.
428 (internal_vproblem): Use abort_with_message for first level
429 recursive internal problems, and if gdb_stderr is not set up.
430 Protect calls to target_terminal_ours, begin_line and query.
431
432 2014-08-28 Doug Evans <dje@google.com>
433
434 * symtab.c (in_prologue): Move definition to better spot.
435 (skip_prologue_using_sal): Ditto.
436
437 2014-08-28 Doug Evans <dje@google.com>
438
439 * symtab.c (find_function_start_sal): Move definition to better spot.
440
441 2014-08-28 Yao Qi <yao@codesourcery.com>
442
443 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
444 found_stack_adjust in forward scan. Remove condition check
445 on found_stack_adjust which is always true. Indent the code.
446
447 2014-08-28 Yao Qi <yao@codesourcery.com>
448
449 * dwarf2read.c (dwarf_decode_lines): Update declaration.
450 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
451 (dwarf_decode_lines): Remove argument
452 want_line_info. Remove condition check on want_line_info.
453 Callers update.
454
455 2014-08-27 Doug Evans <dje@google.com>
456
457 * dwarf2read.c (dwarf_record_line): Fix typo.
458
459 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
460
461 * target.h (struct target_ops::to_terminal_save_ours): Remove
462 declaration.
463 (target_terminal_save_ours): Remove macro.
464 * target-delegates.c: Regenerate.
465 * inf-child.c (inf_child_target): Don't set the nonexistent
466 field to_terminal_save_ours.
467 * inferior.h (child_terminal_save_ours): Remove declaration.
468 * terminal.h (gdb_save_tty_state): New declaration.
469 * inflow.c (child_terminal_save_ours): Rename to ...
470 (gdb_save_tty_state): ... this.
471 * tui/tui.c: Include terminal.h.
472 (tui_enable): Use gdb_save_tty_state instead of
473 target_terminal_save_ours.
474 (tui_disable): Likewise.
475
476 2014-08-25 Doug Evans <dje@google.com>
477
478 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
479 Pass NULL instead of 0 for context pointer.
480
481 2014-08-25 Yao Qi <yao@codesourcery.com>
482
483 * dwarf2read.c: Fix grammatical error.
484
485 2014-08-24 Yao Qi <yao@codesourcery.com>
486
487 * dwarf2read.c (scan_partial_symbols): Update comments.
488 Rename argument 'need_pc' with 'set_addrmap'.
489 (add_partial_namespace): Rename argument 'need_pc' with
490 'set_addrmap'.
491 (add_partial_module): Likewise.
492 (add_partial_subprogram): Likewise. Update comments.
493 (dwarf2_name): Fix typo.
494
495 2014-08-22 Doug Evans <dje@google.com>
496
497 PR 17276
498 * dwarf2read.c (dwarf_record_line_p): New function.
499 (dwarf_decode_lines_1): Ignore subsequent line number entries
500 for the same line if any entry had a non-zero discriminator.
501
502 2014-08-22 Doug Evans <dje@google.com>
503
504 * buildsym.h (record_line_ftype): New typedef.
505 (record_line): Use it.
506 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
507 (dwarf_decode_lines_1): Call them.
508
509 2014-08-22 Yao Qi <yao@codesourcery.com>
510
511 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
512 (ctf_end): Remove code.
513
514 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
515
516 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
517 (linux_make_corefile_notes): call update_thread_list, protected against
518 exceptions.
519
520 2014-08-21 Pedro Alves <palves@redhat.com>
521
522 * infcmd.c (attach_command): Remove comment.
523
524 2014-08-21 Bin Cheng <bin.cheng@arm.com>
525
526 * aarch64-linux-nat.c (dr_changed_t): Change the type from
527 unsigned LONGEST to ULONGEST.
528
529 2014-08-20 Pedro Alves <palves@redhat.com>
530
531 * Makefile.in (check-read1): New rule.
532
533 2014-08-20 Joel Brobecker <brobecker@adacore.com>
534
535 * value.c (value_from_contents_and_address): Strip resolved_type's
536 typedef layers before checking its TYPE_DATA_LOCATION.
537
538 2014-08-20 Pedro Alves <palves@redhat.com>
539
540 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
541
542 2014-08-20 Yao Qi <yao@codesourcery.com>
543
544 * amd64-tdep.c (amd64_classify): Add a blank line after the
545 example. Move "*/" to a new line.
546 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
547 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
548 * dwarf2read.c (psymtab_include_file_name): Likewise.
549
550 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
551 Pedro Alves <palves@redhat.com>
552
553 PR symtab/14604
554 PR symtab/14605
555 * ada-lang.c (coerce_unspec_val_to_type): Use
556 value_contents_copy_raw.
557 * ada-valprint.c (val_print_packed_array_elements): Adjust.
558 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
559 * cp-valprint.c (cp_print_value_fields): Let the common printing
560 code handle optimized out values.
561 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
562 * d-valprint.c (dynamic_array_type): Use
563 value_bits_any_optimized_out.
564 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
565 check_any_valid fields.
566 (check_pieced_value_bits): Delete and inline ...
567 (check_pieced_synthetic_pointer): ... here.
568 (check_pieced_value_validity): Delete.
569 (check_pieced_value_invalid): Delete.
570 (pieced_value_funcs): Remove check_validity and check_any_valid
571 fields.
572 (read_pieced_value): Use mark_value_bits_optimized_out.
573 (write_pieced_value): Switch to use
574 mark_value_bytes_optimized_out.
575 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
576 of assuming the whole value is optimized out.
577 * findvar.c (read_frame_register_value): Remove special handling
578 of optimized out registers.
579 (value_from_register): Use mark_value_bytes_optimized_out.
580 * frame-unwind.c (frame_unwind_got_optimized): Use
581 mark_value_bytes_optimized_out.
582 * jv-valprint.c (java_value_print): Adjust.
583 (java_print_value_fields): Let the common printing code handle
584 optimized out values.
585 * mips-tdep.c (mips_print_register): Remove special handling of
586 optimized out registers.
587 * opencl-lang.c (lval_func_check_validity): Delete.
588 (lval_func_check_any_valid): Delete.
589 (opencl_value_funcs): Remove check_validity and check_any_valid
590 fields.
591 * p-valprint.c (pascal_object_print_value_fields): Let the common
592 printing code handle optimized out values.
593 * stack.c (read_frame_arg): Remove special handling of optimized
594 out values. Fetch both VAL and ENTRYVAL before comparing
595 contents. Adjust to value_available_contents_eq rename.
596 * valprint.c (valprint_check_validity)
597 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
598 (val_print_array_elements): Adjust.
599 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
600 (value_bits_any_optimized_out): New function.
601 (value_entirely_covered_by_range_vector): New function, factored
602 out from value_entirely_unavailable.
603 (value_entirely_unavailable): Reimplement.
604 (value_entirely_optimized_out): New function.
605 (insert_into_bit_range_vector): New function, factored out from
606 mark_value_bits_unavailable.
607 (mark_value_bits_unavailable): Reimplement.
608 (struct ranges_and_idx): New struct.
609 (find_first_range_overlap_and_match): New function, factored out
610 from value_available_contents_bits_eq.
611 (value_available_contents_bits_eq): Rename to ...
612 (value_contents_bits_eq): ... this. Check both unavailable
613 contents and optimized out contents.
614 (value_available_contents_eq): Rename to ...
615 (value_contents_eq): ... this.
616 (allocate_value_lazy): Remove reference to the old optimized_out
617 boolean.
618 (allocate_optimized_out_value): Use
619 mark_value_bytes_optimized_out.
620 (require_not_optimized_out): Adjust to check whether the
621 optimized_out vec is empty.
622 (ranges_copy_adjusted): New function, factored out from
623 value_contents_copy_raw.
624 (value_contents_copy_raw): Also copy the optimized out ranges.
625 Assert the destination ranges aren't optimized out.
626 (value_contents_copy): Update comment, remove call to
627 require_not_optimized_out.
628 (value_contents_equal): Adjust to check whether the optimized_out
629 vec is empty.
630 (set_value_optimized_out, value_optimized_out_const): Delete.
631 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
632 New functions.
633 (value_entirely_optimized_out, value_bits_valid): Delete.
634 (value_copy): Take a VEC copy of the 'optimized_out' field.
635 (value_primitive_field): Remove special handling of optimized out.
636 (value_fetch_lazy): Assert that lazy values have no unavailable
637 regions. Use value_bits_any_optimized_out. Remove some special
638 handling for optimized out values.
639 * value.h: Add intro comment about <optimized out> and
640 <unavailable>.
641 (struct lval_funcs): Remove check_validity and check_any_valid
642 fields.
643 (set_value_optimized_out, value_optimized_out_const): Remove.
644 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
645 New declarations.
646 (value_bits_any_optimized_out): New declaration.
647 (value_bits_valid): Delete declaration.
648 (value_available_contents_eq): Rename to ...
649 (value_contents_eq): ... this, and extend comments.
650
651 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
652
653 Fix -fsanitize=address on unreadable inferior strings.
654 * valprint.c (val_print_string): Fix access before BUFFER.
655
656 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
657
658 * target.c (target_struct_size): Remove.
659 (target_struct_allocsize): Remove.
660 (DEFAULT_ALLOCSIZE): Remove.
661 (target_ops_p): New typedef.
662 (DEF_VEC_P (target_ops_p)): New vector type.
663 (target_structs): Change type to VEC (target_ops_p).
664 (add_target_with_completer): Replace "push" code by VEC_safe_push.
665 (find_default_run_target): Rewrite for loop following changes to
666 target_structs.
667
668 2014-08-19 Joel Brobecker <brobecker@adacore.com>
669
670 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
671 Adjust code accordingly. Adjust function description comment.
672
673 2014-08-19 Yao Qi <yao@codesourcery.com>
674
675 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
676 types.
677
678 2014-08-19 Alan Modra <amodra@gmail.com>
679
680 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
681 * config.in: Regenerate.
682 * configure: Regenerate.
683
684 2014-08-19 Tom Tromey <tromey@redhat.com>
685 Gary Benson <gbenson@redhat.com>
686
687 * common/common-debug.h: New file.
688 * common/common-debug.c: Likewise.
689 * debug.c: Likewise.
690 * Makefile.in (SFILES): Add common/common-debug.c.
691 (HFILES_NO_SRCDIR): Add common/common-debug.h.
692 (COMMON_OBS): Add common-debug.o and debug.o.
693 (common-debug.o): New rule.
694 * common/common-defs.h: Include common-debug.h.
695 * common/agent.c (debug_agent_printf): New function.
696 (DEBUG_AGENT): Redefine.
697 * nat/i386-dregs.c (debug_printf): Undefine.
698
699 2014-08-19 Gary Benson <gbenson@redhat.com>
700
701 * common/common-defs.h: Include print-utils.h.
702 * utils.h: Do not include print-utils.h.
703
704 2014-08-19 Tom Tromey <tromey@redhat.com>
705 Gary Benson <gbenson@redhat.com>
706
707 * common/common-types.h: New file.
708 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
709 * common/common-defs.h: Include common-types.h.
710 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
711 (ULONGEST): Remove.
712
713 2014-08-19 Tom Tromey <tromey@redhat.com>
714 Gary Benson <gbenson@redhat.com>
715
716 * common/errors.h: New file.
717 * common/errors.c: Likewise.
718 * Makefile.in (SFILES): Add common/errors.c.
719 (HFILES_NO_SRCDIR): Add common/errors.h.
720 (COMMON_OBS): Add errors.o.
721 (errors.o): New rule.
722 * common/common-defs.h: Include errors.h.
723 * utils.h (perror_with_name, error, verror, warning, vwarning):
724 Don't declare.
725 * common/common-utils.h: (malloc_failure, internal_error):
726 Likewise.
727
728 2014-08-19 Gary Benson <gbenson@redhat.com>
729
730 * utils.c (internal_vproblem): Always print the message.
731
732 2014-08-18 Doug Evans <dje@google.com>
733
734 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
735
736 2014-08-18 Joel Brobecker <brobecker@adacore.com>
737
738 * ada-typeprint.c (type_is_full_subrange_of_target_type):
739 Return 0 if TYPE is dynamic.
740 (print_range): Add handling of dynamic ranges.
741
742 2014-08-18 Keven Boell <keven.boell@intel.com>
743 Joel Brobecker <brobecker@adacore.com>
744
745 * gdbtypes.h (struct main_type): Add field "data_location".
746 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
747 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
748 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
749 a dynamic data location.
750 (resolve_dynamic_type): Add DW_AT_data_location handling.
751 (copy_recursive, copy_type): Copy the data_location information
752 when present.
753 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
754 * value.c (value_from_contents_and_address): Add
755 DW_AT_data_location handling.
756
757 2014-08-18 Keven Boell <keven.boell@intel.com>
758 Joel Brobecker <brobecker@adacore.com>
759
760 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
761 field "get_object_address".
762 * dwarf2expr.c (execute_stack_op): Add handling for
763 DW_OP_push_object_address.
764 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
765 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
766 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
767 (dwarf_expr_get_obj_addr): New function.
768 (dwarf_expr_ctx_funcs): Add get_object_address field.
769 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
770 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
771 (dwarf2_evaluate_property): Add parameter "address". Use it.
772 (needs_get_obj_addr): New function.
773 (needs_frame_ctx_funcs): Add get_object_address field.
774 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
775 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
776 (resolve_dynamic_array): Likewise.
777
778 2014-08-18 Joel Brobecker <brobecker@adacore.com>
779
780 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
781 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
782 fixed value for records and unions for which some GNAT encodings
783 are present.
784
785 2014-08-18 Joel Brobecker <brobecker@adacore.com>
786
787 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
788 rewrite to avoid "else if" and "else" constructs. Should be
789 a no-op in practice.
790
791 2014-08-18 Joel Brobecker <brobecker@adacore.com>
792
793 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
794 of lexical block.
795
796 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
797
798 PR c++/17132
799 * eval.c: Update all calls to find_overload_match.
800 * valarith.c: Likewise.
801 (value_user_defined_cpp_op, value_user_defined_op): New
802 argument NOSIDE. Update all callers.
803 * valops.c (find_overload_match): New argument NOSIDE.
804 * value.h (find_overload_match): Update signature.
805
806 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
807
808 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
809 'items' methods instead of 'iteritems' method on dictionaries.
810
811 2014-08-15 Doug Evans <dje@google.com>
812
813 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
814 closer to use.
815
816 2014-08-15 Doug Evans <dje@google.com>
817
818 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
819
820 2014-08-15 Doug Evans <dje@google.com>
821
822 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
823
824 2014-08-15 Doug Evans <dje@google.com>
825
826 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
827 unused.
828
829 2014-08-15 Eli Zaretskii <eliz@gnu.org>
830
831 * dcache.h: Include target.h, to avoid compile time warnings.
832
833 2014-08-15 Joel Brobecker <brobecker@adacore.com>
834
835 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
836 frame_info" partial declaration.
837 * gdbarch.h: Regenerate.
838
839 2014-08-15 Yao Qi <yao@codesourcery.com>
840
841 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
842 Add parameter 'decode_for_pst_p'. Callers update.
843
844 2014-08-13 Yao Qi <yao@codesourcery.com>
845
846 PR build/17104
847 * configure.ac: Use local variable 'pos'.
848 * configure: Regenerated.
849
850 2014-08-11 Doug Evans <dje@google.com>
851
852 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
853 message, it is redundant with "Reading symbols from ..." message.
854
855 2014-08-10 Doug Evans <xdje42@gmail.com>
856
857 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
858
859 2014-08-09 Yao Qi <yao@codesourcery.com>
860
861 PR remote/9053
862 * remote.c (remote_xfer_partial): Remove dead code.
863
864 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
865
866 * ia64-linux-tdep.c: Include "regset.h".
867 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
868 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
869 (ia64_linux_supply_fpregset): New function.
870 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
871 (ia64_linux_regset_from_core_section): New function.
872 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
873 method.
874
875 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
876
877 * m68klinux-tdep.c: Include "regset.h".
878 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
879 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
880 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
881 (m68k_linux_regset_from_core_section): New function.
882 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
883 method.
884
885 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
886
887 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
888 function. Move logic to...
889 (tilegx_linux_regmap): ... this new register map.
890 (tilegx_linux_regset): Refer to register map, replace supply
891 method by regcache_supply_regset, and add collect method.
892 * tilegx-tdep.h (enum tilegx_regnum): New enum value
893 TILEGX_FIRST_EASY_REGNUM.
894
895 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
896
897 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
898 that calls regcache_supply_regset and handles the EPC register
899 separately. Move main logic to...
900 (score7_linux_gregmap): ... this new register map.
901 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
902 (score7_linux_gregset): Refer to register map. Add collect method.
903 (score7_linux_regset_from_core_section): Replace
904 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
905 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
906 (struct regset): Delete unused forward declaraction.
907 (struct pt_regs): Delete structure definition.
908 (elf_gregset_t): Delete typedef.
909
910 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
911
912 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
913 (nios2_core_regset): Add collect method.
914
915 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
916
917 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
918 platform-independent and don't write to read-only input buffer.
919 (m32r_linux_collect_gregset): New function.
920 (m32r_linux_gregset): Add collect method.
921
922 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
923
924 * hppa-linux-tdep.c (greg_map): Rename to...
925 (hppa_linux_gregmap): ... this. Also convert to
926 regcache_map_entry format.
927 (hppa_linux_supply_regset): Delete function.
928 (hppa_linux_supply_fpregset): Delete function. Move logic to...
929 (hppa_linux_fpregmap): ... this new register map.
930 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
931 register map, replace supply method by regcache_supply_regset, and
932 add collect method regcache_collect_regset.
933
934 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
935
936 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
937 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
938 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
939 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
940 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
941 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
942 (frv_linux_supply_gregset): Replace main logic by call to
943 regcache_supply_regset, but keep clearing gr32-gr63.
944 (frv_linux_supply_fpregset): Delete function.
945 (frv_linux_gregset): Refer to appropriate register map and add
946 regcache_collect_regset as the collect method.
947 (frv_linux_fpregset): Likewise. Also exchange the supply method
948 by regcache_supply_regset.
949
950 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
951
952 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
953 by call to alpha_supply_int_regs.
954 (alpha_linux_collect_gregset): New function.
955 (alpha_linux_supply_fpregset): Replace logic by call to
956 alpha_supply_fp_regs.
957 (alpha_linux_collect_fpregset): New function.
958 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
959
960 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
961
962 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
963 by call to regcache_collect_regset.
964 (supply_gregset, supply_fpregset): Call regcache_supply_regset
965 instead of aarch64_linux_supply_gregset/_fpregset.
966 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
967 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
968 header file instead.
969 (aarch64_linux_supply_gregset, supply_gregset_from_core)
970 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
971 functions. Move logic to ...
972 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
973 register maps.
974 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
975 refer to new register maps, replace *_regset_from_core by
976 regcache_supply_regset, and also use regcache_collect_regset.
977 * aarch64-linux-tdep.h: Include "regset.h".
978 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
979 Delete prototypes.
980 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
981 macros, moved from C source file.
982 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
983 variable declarations.
984
985 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
986
987 * s390-linux-nat.c: Include "regset.h".
988 (regmap_gregset): Delete macro.
989 (s390_64_regmap_gregset): New register map for
990 regcache_supply/_collect_regset.
991 (s390_64_gregset): New regset.
992 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
993 (regmap_fpregset): Delete macro.
994 (s390_native_supply, s390_native_collect): Delete functions.
995 (supply_gregset, fill_gregset): Replace s390-specific regmap
996 handling by a call to regcache_supply/_collect_regset.
997 (supply_fpregset, fill_fpregset): Call regcache_supply/
998 _collect_regset instead of s390_native_supply/_collect.
999 (fetch_regset, store_regset): Likewise. Also change the last
1000 parameter to a regset instead of a regmap.
1001 (s390_linux_fetch_inferior_registers)
1002 (390_linux_store_inferior_registers): Adjust last parameter in
1003 calls to fetch_regset and store_regset.
1004 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1005 (s390_gregmap): ... this. Also make static const and convert to
1006 regcache_map_entry format.
1007 (s390x_regmap_gregset): Delete.
1008 (s390_regmap_fpregset): Rename to...
1009 (s390_fpregmap): ... this. Make static const and convert to
1010 regcache_map_entry format.
1011 (s390_regmap_upper, s390_regmap_last_break)
1012 (s390x_regmap_last_break, s390_regmap_system_call)
1013 (s390_regmap_tdb): Likewise.
1014 (s390_supply_regset, s390_collect_regset): Remove functions.
1015 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1016 s390_supply_regset.
1017 (s390_gregset, s390_fpregset, s390_upper_regset)
1018 (s390_last_break_regset, s390x_last_break_regset)
1019 (s390_system_call_regset, s390_tdb_regset): Make global and
1020 replace s390_supply/_collect_regset by regcache_supply/
1021 _collect_regset.
1022 (s390x_gregset): Delete.
1023 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1024 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1025 (s390_regmap_fpregset, s390_regmap_last_break)
1026 (s390x_regmap_last_break, s390_regmap_system_call)
1027 (s390_regmap_tdb): Delete global variable declarations.
1028 (s390_gregset, s390_fpregset, s390_last_break_regset)
1029 (s390x_last_break_regset, s390_system_call_regset)
1030 (s390_tdb_regset): New global variable declarations.
1031
1032 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1033
1034 * regcache.c: Include "regset.h".
1035 (regcache_transfer_regset): New local function.
1036 (regcache_supply_regset, regcache_collect_regset): New functions.
1037 * regcache.h (struct regcache_map_entry): New structure.
1038 (REGCACHE_MAP_SKIP): New enum value.
1039 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1040
1041 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1042
1043 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1044 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1045 (ppc_linux_collect_gregset ): Likewise.
1046 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1047 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1048 (ppc_collect_vrregset): Likewise.
1049 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1050 Likewise.
1051
1052 2014-08-07 Yao Qi <yao@codesourcery.com>
1053
1054 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1055 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1056 * remote.c (remote_read_bytes): Likewise.
1057
1058 2014-08-07 Yao Qi <yao@codesourcery.com>
1059
1060 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1061
1062 2014-08-07 Yao Qi <yao@codesourcery.com>
1063
1064 PR remote/17230
1065 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1066 TARGET_XFER_OK instead of 0.
1067
1068 2014-08-07 Gary Benson <gbenson@redhat.com>
1069
1070 * common/common-defs.h: Include errno.h.
1071 * defs.h: Do not include errno.h.
1072 * ada-typeprint.c: Likewise.
1073 * c-typeprint.c: Likewise.
1074 * core-regset.c: Likewise.
1075 * corefile.c: Likewise.
1076 * corelow.c: Likewise.
1077 * event-loop.c: Likewise.
1078 * f-typeprint.c: Likewise.
1079 * gnu-nat.c: Likewise.
1080 * go32-nat.c: Likewise.
1081 * i386gnu-nat.c: Likewise.
1082 * m2-typeprint.c: Likewise.
1083 * nat/linux-btrace.c: Likewise.
1084 * p-typeprint.c: Likewise.
1085 * procfs.c: Likewise.
1086 * remote-sim.c: Likewise.
1087 * rs6000-nat.c: Likewise.
1088 * target.c: Likewise.
1089 * typeprint.c: Likewise.
1090 * ui-file.c: Likewise.
1091 * valops.c: Likewise.
1092 * valprint.c: Likewise.
1093
1094 2014-08-07 Gary Benson <gbenson@redhat.com>
1095
1096 * common/common-defs.h: Include string.h.
1097 * aarch64-tdep.c: Do not include string.h.
1098 * ada-exp.y: Likewise.
1099 * ada-lang.c: Likewise.
1100 * ada-lex.l: Likewise.
1101 * ada-typeprint.c: Likewise.
1102 * ada-valprint.c: Likewise.
1103 * aix-thread.c: Likewise.
1104 * alpha-linux-tdep.c: Likewise.
1105 * alpha-mdebug-tdep.c: Likewise.
1106 * alpha-nat.c: Likewise.
1107 * alpha-osf1-tdep.c: Likewise.
1108 * alpha-tdep.c: Likewise.
1109 * alphanbsd-tdep.c: Likewise.
1110 * amd64-dicos-tdep.c: Likewise.
1111 * amd64-linux-tdep.c: Likewise.
1112 * amd64-nat.c: Likewise.
1113 * amd64-sol2-tdep.c: Likewise.
1114 * amd64fbsd-tdep.c: Likewise.
1115 * amd64obsd-tdep.c: Likewise.
1116 * arch-utils.c: Likewise.
1117 * arm-linux-nat.c: Likewise.
1118 * arm-linux-tdep.c: Likewise.
1119 * arm-tdep.c: Likewise.
1120 * arm-wince-tdep.c: Likewise.
1121 * armbsd-tdep.c: Likewise.
1122 * armnbsd-nat.c: Likewise.
1123 * armnbsd-tdep.c: Likewise.
1124 * armobsd-tdep.c: Likewise.
1125 * avr-tdep.c: Likewise.
1126 * ax-gdb.c: Likewise.
1127 * ax-general.c: Likewise.
1128 * bcache.c: Likewise.
1129 * bfin-tdep.c: Likewise.
1130 * breakpoint.c: Likewise.
1131 * build-id.c: Likewise.
1132 * buildsym.c: Likewise.
1133 * c-exp.y: Likewise.
1134 * c-lang.c: Likewise.
1135 * c-typeprint.c: Likewise.
1136 * c-valprint.c: Likewise.
1137 * charset.c: Likewise.
1138 * cli-out.c: Likewise.
1139 * cli/cli-cmds.c: Likewise.
1140 * cli/cli-decode.c: Likewise.
1141 * cli/cli-dump.c: Likewise.
1142 * cli/cli-interp.c: Likewise.
1143 * cli/cli-logging.c: Likewise.
1144 * cli/cli-script.c: Likewise.
1145 * cli/cli-setshow.c: Likewise.
1146 * cli/cli-utils.c: Likewise.
1147 * coffread.c: Likewise.
1148 * common/agent.c: Likewise.
1149 * common/buffer.c: Likewise.
1150 * common/buffer.h: Likewise.
1151 * common/common-utils.c: Likewise.
1152 * common/filestuff.c: Likewise.
1153 * common/filestuff.c: Likewise.
1154 * common/format.c: Likewise.
1155 * common/print-utils.c: Likewise.
1156 * common/rsp-low.c: Likewise.
1157 * common/signals.c: Likewise.
1158 * common/vec.h: Likewise.
1159 * common/xml-utils.c: Likewise.
1160 * core-regset.c: Likewise.
1161 * corefile.c: Likewise.
1162 * corelow.c: Likewise.
1163 * cp-abi.c: Likewise.
1164 * cp-name-parser.y: Likewise.
1165 * cp-support.c: Likewise.
1166 * cp-valprint.c: Likewise.
1167 * cris-tdep.c: Likewise.
1168 * d-exp.y: Likewise.
1169 * darwin-nat.c: Likewise.
1170 * dbxread.c: Likewise.
1171 * dcache.c: Likewise.
1172 * demangle.c: Likewise.
1173 * dicos-tdep.c: Likewise.
1174 * disasm.c: Likewise.
1175 * doublest.c: Likewise.
1176 * dsrec.c: Likewise.
1177 * dummy-frame.c: Likewise.
1178 * dwarf2-frame.c: Likewise.
1179 * dwarf2loc.c: Likewise.
1180 * dwarf2read.c: Likewise.
1181 * elfread.c: Likewise.
1182 * environ.c: Likewise.
1183 * eval.c: Likewise.
1184 * event-loop.c: Likewise.
1185 * exceptions.c: Likewise.
1186 * exec.c: Likewise.
1187 * expprint.c: Likewise.
1188 * f-exp.y: Likewise.
1189 * f-lang.c: Likewise.
1190 * f-typeprint.c: Likewise.
1191 * f-valprint.c: Likewise.
1192 * fbsd-nat.c: Likewise.
1193 * findcmd.c: Likewise.
1194 * findvar.c: Likewise.
1195 * fork-child.c: Likewise.
1196 * frame.c: Likewise.
1197 * frv-linux-tdep.c: Likewise.
1198 * frv-tdep.c: Likewise.
1199 * gdb.c: Likewise.
1200 * gdb_bfd.c: Likewise.
1201 * gdbarch.c: Likewise.
1202 * gdbarch.sh: Likewise.
1203 * gdbtypes.c: Likewise.
1204 * gnu-nat.c: Likewise.
1205 * gnu-v2-abi.c: Likewise.
1206 * gnu-v3-abi.c: Likewise.
1207 * go-exp.y: Likewise.
1208 * go-lang.c: Likewise.
1209 * go32-nat.c: Likewise.
1210 * guile/guile.c: Likewise.
1211 * guile/scm-auto-load.c: Likewise.
1212 * hppa-hpux-tdep.c: Likewise.
1213 * hppa-linux-nat.c: Likewise.
1214 * hppanbsd-tdep.c: Likewise.
1215 * hppaobsd-tdep.c: Likewise.
1216 * i386-cygwin-tdep.c: Likewise.
1217 * i386-dicos-tdep.c: Likewise.
1218 * i386-linux-tdep.c: Likewise.
1219 * i386-nto-tdep.c: Likewise.
1220 * i386-sol2-tdep.c: Likewise.
1221 * i386-tdep.c: Likewise.
1222 * i386bsd-tdep.c: Likewise.
1223 * i386gnu-nat.c: Likewise.
1224 * i386nbsd-tdep.c: Likewise.
1225 * i386obsd-tdep.c: Likewise.
1226 * i387-tdep.c: Likewise.
1227 * ia64-libunwind-tdep.c: Likewise.
1228 * ia64-linux-nat.c: Likewise.
1229 * inf-child.c: Likewise.
1230 * inf-ptrace.c: Likewise.
1231 * inf-ttrace.c: Likewise.
1232 * infcall.c: Likewise.
1233 * infcmd.c: Likewise.
1234 * inflow.c: Likewise.
1235 * infrun.c: Likewise.
1236 * interps.c: Likewise.
1237 * iq2000-tdep.c: Likewise.
1238 * irix5-nat.c: Likewise.
1239 * jv-exp.y: Likewise.
1240 * jv-lang.c: Likewise.
1241 * jv-typeprint.c: Likewise.
1242 * jv-valprint.c: Likewise.
1243 * language.c: Likewise.
1244 * linux-fork.c: Likewise.
1245 * linux-nat.c: Likewise.
1246 * lm32-tdep.c: Likewise.
1247 * m2-exp.y: Likewise.
1248 * m2-typeprint.c: Likewise.
1249 * m32c-tdep.c: Likewise.
1250 * m32r-linux-nat.c: Likewise.
1251 * m32r-linux-tdep.c: Likewise.
1252 * m32r-rom.c: Likewise.
1253 * m32r-tdep.c: Likewise.
1254 * m68hc11-tdep.c: Likewise.
1255 * m68k-tdep.c: Likewise.
1256 * m68kbsd-tdep.c: Likewise.
1257 * m68klinux-nat.c: Likewise.
1258 * m68klinux-tdep.c: Likewise.
1259 * m88k-tdep.c: Likewise.
1260 * machoread.c: Likewise.
1261 * macrocmd.c: Likewise.
1262 * main.c: Likewise.
1263 * mdebugread.c: Likewise.
1264 * mem-break.c: Likewise.
1265 * memattr.c: Likewise.
1266 * memory-map.c: Likewise.
1267 * mep-tdep.c: Likewise.
1268 * mi/mi-cmd-break.c: Likewise.
1269 * mi/mi-cmd-disas.c: Likewise.
1270 * mi/mi-cmd-env.c: Likewise.
1271 * mi/mi-cmd-stack.c: Likewise.
1272 * mi/mi-cmd-var.c: Likewise.
1273 * mi/mi-cmds.c: Likewise.
1274 * mi/mi-console.c: Likewise.
1275 * mi/mi-getopt.c: Likewise.
1276 * mi/mi-interp.c: Likewise.
1277 * mi/mi-main.c: Likewise.
1278 * mi/mi-parse.c: Likewise.
1279 * microblaze-rom.c: Likewise.
1280 * microblaze-tdep.c: Likewise.
1281 * mingw-hdep.c: Likewise.
1282 * minidebug.c: Likewise.
1283 * minsyms.c: Likewise.
1284 * mips-irix-tdep.c: Likewise.
1285 * mips-linux-tdep.c: Likewise.
1286 * mips-tdep.c: Likewise.
1287 * mips64obsd-tdep.c: Likewise.
1288 * mipsnbsd-tdep.c: Likewise.
1289 * mipsread.c: Likewise.
1290 * mn10300-linux-tdep.c: Likewise.
1291 * mn10300-tdep.c: Likewise.
1292 * monitor.c: Likewise.
1293 * moxie-tdep.c: Likewise.
1294 * mt-tdep.c: Likewise.
1295 * nat/linux-btrace.c: Likewise.
1296 * nat/linux-osdata.c: Likewise.
1297 * nat/linux-procfs.c: Likewise.
1298 * nat/linux-ptrace.c: Likewise.
1299 * nat/linux-waitpid.c: Likewise.
1300 * nbsd-tdep.c: Likewise.
1301 * nios2-linux-tdep.c: Likewise.
1302 * nto-procfs.c: Likewise.
1303 * nto-tdep.c: Likewise.
1304 * objc-lang.c: Likewise.
1305 * objfiles.c: Likewise.
1306 * opencl-lang.c: Likewise.
1307 * osabi.c: Likewise.
1308 * osdata.c: Likewise.
1309 * p-exp.y: Likewise.
1310 * p-lang.c: Likewise.
1311 * p-typeprint.c: Likewise.
1312 * parse.c: Likewise.
1313 * posix-hdep.c: Likewise.
1314 * ppc-linux-nat.c: Likewise.
1315 * ppc-sysv-tdep.c: Likewise.
1316 * ppcfbsd-tdep.c: Likewise.
1317 * ppcnbsd-tdep.c: Likewise.
1318 * ppcobsd-tdep.c: Likewise.
1319 * printcmd.c: Likewise.
1320 * procfs.c: Likewise.
1321 * prologue-value.c: Likewise.
1322 * python/py-auto-load.c: Likewise.
1323 * python/py-gdb-readline.c: Likewise.
1324 * ravenscar-thread.c: Likewise.
1325 * regcache.c: Likewise.
1326 * registry.c: Likewise.
1327 * remote-fileio.c: Likewise.
1328 * remote-m32r-sdi.c: Likewise.
1329 * remote-mips.c: Likewise.
1330 * remote-notif.c: Likewise.
1331 * remote-sim.c: Likewise.
1332 * remote.c: Likewise.
1333 * reverse.c: Likewise.
1334 * rs6000-aix-tdep.c: Likewise.
1335 * ser-base.c: Likewise.
1336 * ser-go32.c: Likewise.
1337 * ser-mingw.c: Likewise.
1338 * ser-pipe.c: Likewise.
1339 * ser-tcp.c: Likewise.
1340 * ser-unix.c: Likewise.
1341 * serial.c: Likewise.
1342 * sh-tdep.c: Likewise.
1343 * sh64-tdep.c: Likewise.
1344 * shnbsd-tdep.c: Likewise.
1345 * skip.c: Likewise.
1346 * sol-thread.c: Likewise.
1347 * solib-dsbt.c: Likewise.
1348 * solib-frv.c: Likewise.
1349 * solib-osf.c: Likewise.
1350 * solib-som.c: Likewise.
1351 * solib-spu.c: Likewise.
1352 * solib-target.c: Likewise.
1353 * solib.c: Likewise.
1354 * somread.c: Likewise.
1355 * source.c: Likewise.
1356 * sparc-nat.c: Likewise.
1357 * sparc-sol2-tdep.c: Likewise.
1358 * sparc-tdep.c: Likewise.
1359 * sparc64-tdep.c: Likewise.
1360 * sparc64fbsd-tdep.c: Likewise.
1361 * sparc64nbsd-tdep.c: Likewise.
1362 * sparcnbsd-tdep.c: Likewise.
1363 * spu-linux-nat.c: Likewise.
1364 * spu-multiarch.c: Likewise.
1365 * spu-tdep.c: Likewise.
1366 * stabsread.c: Likewise.
1367 * stack.c: Likewise.
1368 * std-regs.c: Likewise.
1369 * symfile.c: Likewise.
1370 * symmisc.c: Likewise.
1371 * symtab.c: Likewise.
1372 * target.c: Likewise.
1373 * thread.c: Likewise.
1374 * tilegx-linux-nat.c: Likewise.
1375 * tilegx-tdep.c: Likewise.
1376 * top.c: Likewise.
1377 * tracepoint.c: Likewise.
1378 * tui/tui-command.c: Likewise.
1379 * tui/tui-data.c: Likewise.
1380 * tui/tui-disasm.c: Likewise.
1381 * tui/tui-file.c: Likewise.
1382 * tui/tui-layout.c: Likewise.
1383 * tui/tui-out.c: Likewise.
1384 * tui/tui-regs.c: Likewise.
1385 * tui/tui-source.c: Likewise.
1386 * tui/tui-stack.c: Likewise.
1387 * tui/tui-win.c: Likewise.
1388 * tui/tui-windata.c: Likewise.
1389 * tui/tui-winsource.c: Likewise.
1390 * typeprint.c: Likewise.
1391 * ui-file.c: Likewise.
1392 * ui-out.c: Likewise.
1393 * user-regs.c: Likewise.
1394 * utils.c: Likewise.
1395 * v850-tdep.c: Likewise.
1396 * valarith.c: Likewise.
1397 * valops.c: Likewise.
1398 * valprint.c: Likewise.
1399 * value.c: Likewise.
1400 * varobj.c: Likewise.
1401 * vax-tdep.c: Likewise.
1402 * vaxnbsd-tdep.c: Likewise.
1403 * vaxobsd-tdep.c: Likewise.
1404 * windows-nat.c: Likewise.
1405 * xcoffread.c: Likewise.
1406 * xml-support.c: Likewise.
1407 * xstormy16-tdep.c: Likewise.
1408 * xtensa-linux-nat.c: Likewise.
1409
1410 2014-08-07 Gary Benson <gbenson@redhat.com>
1411
1412 * common/common-defs.h: Include gdb_assert.h.
1413 * aarch64-tdep.c: Do not include gdb_assert.h.
1414 * addrmap.c: Likewise.
1415 * aix-thread.c: Likewise.
1416 * alpha-linux-tdep.c: Likewise.
1417 * alpha-mdebug-tdep.c: Likewise.
1418 * alphanbsd-tdep.c: Likewise.
1419 * amd64-nat.c: Likewise.
1420 * amd64-tdep.c: Likewise.
1421 * amd64bsd-nat.c: Likewise.
1422 * amd64fbsd-nat.c: Likewise.
1423 * amd64fbsd-tdep.c: Likewise.
1424 * amd64nbsd-nat.c: Likewise.
1425 * amd64nbsd-tdep.c: Likewise.
1426 * amd64obsd-nat.c: Likewise.
1427 * amd64obsd-tdep.c: Likewise.
1428 * arch-utils.c: Likewise.
1429 * arm-tdep.c: Likewise.
1430 * armbsd-tdep.c: Likewise.
1431 * auxv.c: Likewise.
1432 * bcache.c: Likewise.
1433 * bfin-tdep.c: Likewise.
1434 * blockframe.c: Likewise.
1435 * breakpoint.c: Likewise.
1436 * bsd-kvm.c: Likewise.
1437 * bsd-uthread.c: Likewise.
1438 * buildsym.c: Likewise.
1439 * c-exp.y: Likewise.
1440 * c-lang.c: Likewise.
1441 * charset.c: Likewise.
1442 * cleanups.c: Likewise.
1443 * cli-out.c: Likewise.
1444 * cli/cli-decode.c: Likewise.
1445 * cli/cli-dump.c: Likewise.
1446 * cli/cli-logging.c: Likewise.
1447 * cli/cli-script.c: Likewise.
1448 * cli/cli-utils.c: Likewise.
1449 * coffread.c: Likewise.
1450 * common/common-utils.c: Likewise.
1451 * common/queue.h: Likewise.
1452 * common/signals.c: Likewise.
1453 * common/vec.h: Likewise.
1454 * complaints.c: Likewise.
1455 * completer.c: Likewise.
1456 * corelow.c: Likewise.
1457 * cp-abi.c: Likewise.
1458 * cp-name-parser.y: Likewise.
1459 * cp-namespace.c: Likewise.
1460 * cp-support.c: Likewise.
1461 * cris-tdep.c: Likewise.
1462 * dbxread.c: Likewise.
1463 * dictionary.c: Likewise.
1464 * doublest.c: Likewise.
1465 * dsrec.c: Likewise.
1466 * dummy-frame.c: Likewise.
1467 * dwarf2-frame-tailcall.c: Likewise.
1468 * dwarf2-frame.c: Likewise.
1469 * dwarf2expr.c: Likewise.
1470 * dwarf2loc.c: Likewise.
1471 * dwarf2read.c: Likewise.
1472 * eval.c: Likewise.
1473 * event-loop.c: Likewise.
1474 * exceptions.c: Likewise.
1475 * expprint.c: Likewise.
1476 * f-valprint.c: Likewise.
1477 * fbsd-nat.c: Likewise.
1478 * findvar.c: Likewise.
1479 * frame-unwind.c: Likewise.
1480 * frame.c: Likewise.
1481 * frv-tdep.c: Likewise.
1482 * gcore.c: Likewise.
1483 * gdb-dlfcn.c: Likewise.
1484 * gdb_bfd.c: Likewise.
1485 * gdbarch.c: Likewise.
1486 * gdbarch.sh: Likewise.
1487 * gdbtypes.c: Likewise.
1488 * gnu-nat.c: Likewise.
1489 * gnu-v3-abi.c: Likewise.
1490 * go-lang.c: Likewise.
1491 * guile/scm-exception.c: Likewise.
1492 * guile/scm-gsmob.c: Likewise.
1493 * guile/scm-lazy-string.c: Likewise.
1494 * guile/scm-math.c: Likewise.
1495 * guile/scm-pretty-print.c: Likewise.
1496 * guile/scm-safe-call.c: Likewise.
1497 * guile/scm-utils.c: Likewise.
1498 * guile/scm-value.c: Likewise.
1499 * h8300-tdep.c: Likewise.
1500 * hppa-hpux-nat.c: Likewise.
1501 * hppa-tdep.c: Likewise.
1502 * hppanbsd-tdep.c: Likewise.
1503 * hppaobsd-tdep.c: Likewise.
1504 * i386-darwin-nat.c: Likewise.
1505 * i386-darwin-tdep.c: Likewise.
1506 * i386-nto-tdep.c: Likewise.
1507 * i386-tdep.c: Likewise.
1508 * i386bsd-nat.c: Likewise.
1509 * i386fbsd-tdep.c: Likewise.
1510 * i386gnu-nat.c: Likewise.
1511 * i386nbsd-tdep.c: Likewise.
1512 * i386obsd-tdep.c: Likewise.
1513 * i387-tdep.c: Likewise.
1514 * ia64-libunwind-tdep.c: Likewise.
1515 * ia64-tdep.c: Likewise.
1516 * inf-ptrace.c: Likewise.
1517 * inf-ttrace.c: Likewise.
1518 * infcall.c: Likewise.
1519 * infcmd.c: Likewise.
1520 * infrun.c: Likewise.
1521 * inline-frame.c: Likewise.
1522 * interps.c: Likewise.
1523 * jv-lang.c: Likewise.
1524 * jv-typeprint.c: Likewise.
1525 * linux-fork.c: Likewise.
1526 * linux-nat.c: Likewise.
1527 * linux-thread-db.c: Likewise.
1528 * m32c-tdep.c: Likewise.
1529 * m32r-linux-nat.c: Likewise.
1530 * m32r-tdep.c: Likewise.
1531 * m68k-tdep.c: Likewise.
1532 * m68kbsd-nat.c: Likewise.
1533 * m68kbsd-tdep.c: Likewise.
1534 * m88k-tdep.c: Likewise.
1535 * machoread.c: Likewise.
1536 * macroexp.c: Likewise.
1537 * macrotab.c: Likewise.
1538 * maint.c: Likewise.
1539 * mdebugread.c: Likewise.
1540 * memory-map.c: Likewise.
1541 * mep-tdep.c: Likewise.
1542 * mi/mi-common.c: Likewise.
1543 * microblaze-tdep.c: Likewise.
1544 * mingw-hdep.c: Likewise.
1545 * mips-linux-nat.c: Likewise.
1546 * mips-linux-tdep.c: Likewise.
1547 * mips-tdep.c: Likewise.
1548 * mips64obsd-tdep.c: Likewise.
1549 * mipsnbsd-tdep.c: Likewise.
1550 * mn10300-linux-tdep.c: Likewise.
1551 * mn10300-tdep.c: Likewise.
1552 * moxie-tdep.c: Likewise.
1553 * mt-tdep.c: Likewise.
1554 * nat/linux-btrace.c: Likewise.
1555 * nat/linux-osdata.c: Likewise.
1556 * nat/linux-ptrace.c: Likewise.
1557 * nat/mips-linux-watch.c: Likewise.
1558 * nios2-linux-tdep.c: Likewise.
1559 * nios2-tdep.c: Likewise.
1560 * objc-lang.c: Likewise.
1561 * objfiles.c: Likewise.
1562 * obsd-nat.c: Likewise.
1563 * opencl-lang.c: Likewise.
1564 * osabi.c: Likewise.
1565 * parse.c: Likewise.
1566 * ppc-linux-nat.c: Likewise.
1567 * ppc-sysv-tdep.c: Likewise.
1568 * ppcfbsd-nat.c: Likewise.
1569 * ppcfbsd-tdep.c: Likewise.
1570 * ppcnbsd-nat.c: Likewise.
1571 * ppcnbsd-tdep.c: Likewise.
1572 * ppcobsd-nat.c: Likewise.
1573 * ppcobsd-tdep.c: Likewise.
1574 * printcmd.c: Likewise.
1575 * procfs.c: Likewise.
1576 * prologue-value.c: Likewise.
1577 * psymtab.c: Likewise.
1578 * python/py-lazy-string.c: Likewise.
1579 * python/py-value.c: Likewise.
1580 * regcache.c: Likewise.
1581 * reggroups.c: Likewise.
1582 * registry.c: Likewise.
1583 * remote-sim.c: Likewise.
1584 * remote.c: Likewise.
1585 * rs6000-aix-tdep.c: Likewise.
1586 * rs6000-tdep.c: Likewise.
1587 * s390-linux-tdep.c: Likewise.
1588 * score-tdep.c: Likewise.
1589 * ser-base.c: Likewise.
1590 * ser-mingw.c: Likewise.
1591 * sh-tdep.c: Likewise.
1592 * sh64-tdep.c: Likewise.
1593 * solib-darwin.c: Likewise.
1594 * solib-spu.c: Likewise.
1595 * solib-svr4.c: Likewise.
1596 * source.c: Likewise.
1597 * sparc-nat.c: Likewise.
1598 * sparc-sol2-tdep.c: Likewise.
1599 * sparc-tdep.c: Likewise.
1600 * sparc64-sol2-tdep.c: Likewise.
1601 * sparc64-tdep.c: Likewise.
1602 * sparc64fbsd-tdep.c: Likewise.
1603 * sparc64nbsd-tdep.c: Likewise.
1604 * sparc64obsd-tdep.c: Likewise.
1605 * sparcnbsd-tdep.c: Likewise.
1606 * sparcobsd-tdep.c: Likewise.
1607 * spu-multiarch.c: Likewise.
1608 * spu-tdep.c: Likewise.
1609 * stabsread.c: Likewise.
1610 * stack.c: Likewise.
1611 * symfile.c: Likewise.
1612 * symtab.c: Likewise.
1613 * target-descriptions.c: Likewise.
1614 * target-memory.c: Likewise.
1615 * target.c: Likewise.
1616 * tic6x-linux-tdep.c: Likewise.
1617 * tic6x-tdep.c: Likewise.
1618 * tilegx-linux-nat.c: Likewise.
1619 * tilegx-tdep.c: Likewise.
1620 * top.c: Likewise.
1621 * tramp-frame.c: Likewise.
1622 * tui/tui-out.c: Likewise.
1623 * tui/tui-winsource.c: Likewise.
1624 * ui-out.c: Likewise.
1625 * user-regs.c: Likewise.
1626 * utils.c: Likewise.
1627 * v850-tdep.c: Likewise.
1628 * valops.c: Likewise.
1629 * value.c: Likewise.
1630 * varobj.c: Likewise.
1631 * vax-nat.c: Likewise.
1632 * xml-syscall.c: Likewise.
1633 * xml-tdesc.c: Likewise.
1634 * xstormy16-tdep.c: Likewise.
1635 * xtensa-linux-nat.c: Likewise.
1636 * xtensa-tdep.c: Likewise.
1637
1638 2014-08-07 Gary Benson <gbenson@redhat.com>
1639
1640 * common/common-defs.h: Include common-utils.h.
1641 * defs.h: Do not include common-utils.h.
1642 * common/gdb_assert.h: Likewise.
1643 * darwin-nat.h: Likewise.
1644 * nat/linux-btrace.c: Likewise.
1645 * target/waitstatus.h: Likewise.
1646
1647 2014-08-07 Gary Benson <gbenson@redhat.com>
1648
1649 * common/common-defs.h: Include ptid.h.
1650 * defs.h: Do not include ptid.h.
1651 * inferior.h: Likewise.
1652 * infrun.h: Likewise.
1653 * nat/linux-btrace.h: Likewise.
1654 * nat/linux-osdata.h: Likewise.
1655 * target/waitstatus.h: Likewise.
1656
1657 2014-08-07 Gary Benson <gbenson@redhat.com>
1658
1659 * common/common-defs.h: Include gdb_locale.h.
1660 * defs.h: Do not include gdb_locale.h.
1661
1662 2014-08-07 Gary Benson <gbenson@redhat.com>
1663
1664 * common/common-defs.h: Include gdb/signals.h.
1665 * defs.h: Do not include gdb/signals.h.
1666
1667 2014-08-07 Gary Benson <gbenson@redhat.com>
1668
1669 * common/common-defs.h: Include pathmax.h.
1670 * defs.h: Do not include pathmax.h.
1671
1672 2014-08-07 Gary Benson <gbenson@redhat.com>
1673
1674 * common/common-defs.h: Include libiberty.h.
1675 * defs.h: Do not include libiberty.h.
1676 * common/queue.h: Likewise.
1677 * cp-name-parser.y: Likewise.
1678 * mi/mi-cmd-catch.c: Likewise.
1679 * python/python.c: Likewise.
1680
1681 2014-08-07 Gary Benson <gbenson@redhat.com>
1682
1683 * common/common-defs.h: Include ansidecl.h.
1684 * defs.h: Do not include ansidecl.h.
1685 * common/buffer.h: Likewise.
1686 * common/common-utils.h: Likewise.
1687
1688 2014-08-07 Gary Benson <gbenson@redhat.com>
1689
1690 * common/common-defs.h: Include stddef.h.
1691 * defs.h: Do not include stddef.h.
1692 * common/common-utils.h: Likewise.
1693 * amd64fbsd-nat.c: Likewise.
1694 * bcache.c: Likewise.
1695 * charset.c: Likewise.
1696 * common/buffer.h: Likewise.
1697 * common/vec.h: Likewise.
1698 * i386bsd-nat.c: Likewise.
1699 * nat/linux-btrace.h: Likewise.
1700 * ppcfbsd-nat.c: Likewise.
1701 * ppcnbsd-tdep.h: Likewise.
1702 * ppcobsd-nat.c: Likewise.
1703 * ppcobsd-tdep.h: Likewise.
1704 * python/py-gdb-readline.c: Likewise.
1705
1706 2014-08-07 Gary Benson <gbenson@redhat.com>
1707
1708 * common/common-defs.h: Include stdarg.h.
1709 * defs.h: Do not include stdarg.h.
1710 * ada-lang.c: Likewise.
1711 * common/common-utils.h: Likewise.
1712 * guile/scm-string.c: Likewise.
1713 * guile/scm-utils.c: Likewise.
1714 * m32c-tdep.c: Likewise.
1715
1716 2014-08-07 Gary Benson <gbenson@redhat.com>
1717
1718 * common/common-defs.h: Include stdlib.h.
1719 * defs.h: Do not include stdlib.h.
1720 * addrmap.c: Likewise.
1721 * bcache.c: Likewise.
1722 * common/buffer.c: Likewise.
1723 * common/common-utils.c: Likewise.
1724 * cp-name-parser.y: Likewise.
1725 * go32-nat.c: Likewise.
1726 * mn10300-linux-tdep.c: Likewise.
1727 * nat/linux-osdata.c: Likewise.
1728 * tui/tui.c: Likewise.
1729 * windows-nat.c: Likewise.
1730
1731 2014-08-07 Gary Benson <gbenson@redhat.com>
1732
1733 * common/common-defs.h: Include stdio.h.
1734 * defs.h: Do not include stdio.h.
1735 * ada-lang.c: Likewise.
1736 * common/buffer.c: Likewise.
1737 * common/common-utils.c: Likewise.
1738 * cp-name-parser.y: Likewise.
1739 * gnu-nat.c: Likewise.
1740 * go32-nat.c: Likewise.
1741 * i386gnu-nat.c: Likewise.
1742 * proc-api.c: Likewise.
1743 * proc-events.c: Likewise.
1744 * proc-flags.c: Likewise.
1745 * proc-why.c: Likewise.
1746 * python/python-internal.h: Likewise.
1747 * target-memory.c: Likewise.
1748 * tui/tui-io.c: Likewise.
1749 * tui/tui.c: Likewise.
1750
1751 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1752
1753 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1754 (scan_dyntag_auxv): Same.
1755
1756 2014-08-06 Yao Qi <yao@codesourcery.com>
1757
1758 * amd64-linux-nat.c: Remove duplicated include
1759 "x86-linux-nat.h".
1760 * i386-linux-nat.c: Likewise.
1761
1762 2014-08-06 Yao Qi <yao@codesourcery.com>
1763
1764 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1765 operand" with "Special opcode" in comments.
1766
1767 2014-08-05 Gary Benson <gbenson@redhat.com>
1768
1769 * interps.c (initialize_interps): Remove prototype.
1770 (interpreter_initialized): Remove static global.
1771 (interp_add): Do not call initialize_interps.
1772 (initialize_interps): Remove function.
1773
1774 2014-08-05 Gary Benson <gbenson@redhat.com>
1775
1776 * utils.c (vwarning): Remove spurious va_end.
1777
1778 2014-08-05 Alan Modra <amodra@gmail.com>
1779
1780 * charset.c (convert_between_encodings): Cast result of obstack_base.
1781 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1782 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1783 (read_unwind_info): Use size_t for some locals.
1784 * jit.c (finalize_symtab): Likewise.
1785 * utils.c (hashtab_obstack_allocate): Likewise.
1786 * symmisc.c (print_objfile_statistics): Update format strings.
1787
1788 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1789
1790 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1791 (Changes in GDB 7.8): ... here.
1792
1793 2014-08-04 Tom Tromey <tromey@redhat.com>
1794
1795 * target.c (set_targetdebug): New function.
1796 (initialize_targets): Pass set_targetdebug when creating "set
1797 debug target".
1798
1799 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1800
1801 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1802 if detecting a variable-sized field that is not the last field.
1803 Fix struct type length computation.
1804
1805 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1806
1807 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1808 Add debug trace.
1809
1810 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1811
1812 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1813 Remove "+ 8" offset in computation of CHAIN_VMA.
1814
1815 2014-07-31 Doug Evans <dje@google.com>
1816
1817 * inflow.c (child_terminal_inferior): Add comment.
1818 (child_terminal_ours_for_output): Add comment.
1819 (child_terminal_ours): Add comment.
1820 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1821 (linux_nat_terminal_ours): Add comment.
1822
1823 2014-07-31 Gary Benson <gbenson@redhat.com>
1824
1825 * common/btrace-common.h: Do not include defs.h or server.h.
1826 * nat/mips-linux-watch.h: Likewise.
1827 * gdb-dlfcn.h: Do not include defs.h.
1828 * tracefile.h: Likewise.
1829
1830 2014-07-30 Roland McGrath <mcgrathr@google.com>
1831
1832 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1833
1834 2014-07-30 Tom Tromey <tromey@redhat.com>
1835
1836 * bsd-kvm.c (bsd_kvm_open): Constify.
1837 * corelow.c (core_open): Constify.
1838 * ctf.c (ctf_open): Constify.
1839 * dbug-rom.c (dbug_open): Constify.
1840 * exec.c (exec_open): Constify.
1841 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1842 * microblaze-rom.c (picobug_open): Constify.
1843 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1844 Constify.
1845 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1846 * record-btrace.c (record_btrace_open): Constify.
1847 * record-full.c (record_full_core_open_1, record_full_open_1)
1848 (record_full_open): Constify.
1849 * remote-m32r-sdi.c (m32r_open): Constify.
1850 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1851 (rockhopper_open, lsi_open): Constify.
1852 * remote-sim.c (gdbsim_open): Constify.
1853 * remote.c (remote_open, extended_remote_open, remote_open_1):
1854 Constify.
1855 * target.h (struct target_ops) <to_open>: Make "arg" const.
1856 * tracefile-tfile.c (tfile_open): Constify.
1857
1858 2014-07-30 Tom Tromey <tromey@redhat.com>
1859
1860 * breakpoint.c (map_breakpoint_numbers): Update.
1861 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1862 (get_number_const): New function.
1863 (get_number): Rewrite using get_number_const.
1864 (init_number_or_range): Make "string" const.
1865 (number_is_in_list): Make "list" const.
1866 * cli/cli-utils.h (get_number_const): Declare.
1867 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1868 (init_number_or_range, number_is_in_list): Update.
1869 * printcmd.c (map_display_numbers): Update.
1870 * value.c (value_from_history_ref): Constify.
1871 * value.h (value_from_history_ref): Update.
1872
1873 2014-07-30 Tom Tromey <tromey@redhat.com>
1874
1875 * corefile.c (hook_type, call_extra_exec_file_hooks)
1876 (specify_exec_file_hook): Constify.
1877 * exec.c (exec_file_attach): Make "filename" const.
1878 * gdbcore.h (deprecated_exec_file_display_hook)
1879 (specify_exec_file_hook, exec_file_attach): Constify.
1880 * main.c (captured_main): Use catch_command_errors_const.
1881
1882 2014-07-30 Tom Tromey <tromey@redhat.com>
1883
1884 * target.c (open_target): New function.
1885 (add_target_with_completer, add_deprecated_target_alias): Use
1886 set_cmd_sfunc, set_cmd_context.
1887 (debug_to_open): Remove.
1888 (setup_target_debug): Update.
1889
1890 2014-07-30 Yao Qi <yao@codesourcery.com>
1891
1892 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1893 comments.
1894 * parse.c (exp_iterate): Update comments.
1895
1896 2014-07-30 Gary Benson <gbenson@redhat.com>
1897
1898 * common/common-defs.h: New file.
1899 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1900 * defs.h: Include common-defs.h.
1901 Do not include config.h or build-gnulib/config.h.
1902
1903 2014-07-30 Gary Benson <gbenson@redhat.com>
1904
1905 * common/common-utils.h: Do not include config.h.
1906 * nat/linux-btrace.h: Likewise.
1907
1908 2014-07-30 Gary Benson <gbenson@redhat.com>
1909
1910 * btrace.c: Include defs.h.
1911 * common/ptid.c: Include defs.h or server.h as appropriate.
1912 * nat/mips-linux-watch.c: Likewise.
1913
1914 2014-07-29 Tom Tromey <tromey@redhat.com>
1915
1916 * target.c (target_is_pushed): Simplify.
1917
1918 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1919
1920 GDB 7.8 released.
1921
1922 2014-07-29 Yao Qi <yao@codesourcery.com>
1923
1924 PR gdb/17206
1925 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1926
1927 2014-07-28 Doug Evans <xdje42@gmail.com>
1928
1929 PR guile/17203
1930 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1931 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1932 parameters.
1933
1934 2014-07-28 Will Newton <will.newton@linaro.org>
1935
1936 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1937 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1938 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1939 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1940 (THUMB2_EABI_SYSCALL): Likewise.
1941 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1942 struct tramp_frame.
1943 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1944 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1945
1946 2014-07-27 Doug Evans <xdje42@gmail.com>
1947
1948 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1949
1950 2014-07-27 Doug Evans <xdje42@gmail.com>
1951
1952 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1953
1954 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1955 Doug Evans <xdje42@gmail.com>
1956
1957 PR guile/17146
1958 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1959 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1960 * configure.ac: Try to use guild to compile an scm file, if it fails
1961 then disable guile support.
1962 * configure: Regenerate.
1963 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1964 GUILE_FILE_LIST.
1965 (GUILE_COMPILED_FILES): New variable.
1966 (GUILE_FILES) Update.
1967 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1968 (stamp-guile): Compile scm files.
1969 * guile/guile.c (boot_guile_support): New function.
1970 (standard_throw_args_p): New function.
1971 (print_standard_throw_error, print_throw_error): New functions.
1972 (handle_boot_error): New function.
1973 (initialize_scheme_side): Rewrite to call boot_guile_support.
1974 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1975 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1976
1977 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1978 Doug Evans <xdje42@gmail.com>
1979
1980 PR guile/17146
1981 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1982 * guile/lib/gdb/support.scm: New file.
1983 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1984 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1985 All uses updated.
1986 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1987 All uses updated.
1988 (%assert-type): Ditto, and renamed to assert-type.
1989 (%exception-print-style): Delete.
1990
1991 2014-07-26 Doug Evans <xdje42@gmail.com>
1992
1993 PR build/17105
1994 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1995 * configure: Regenerate.
1996 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1997 PYTHON_FILES.
1998 (PYTHON_FILES): New variable.
1999 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2000 (GUILE_FILES): New variable.
2001 (stamp-python, install-python, uninstall-python): Handle empty
2002 file list.
2003 (stamp-guile, install-guile, uninstall-guile): Ditto.
2004
2005 2014-07-26 Doug Evans <xdje42@gmail.com>
2006
2007 PR guile/17177
2008 * guile/lib/gdb.scm (pretty-printers): Export.
2009 (set-pretty-printers!): Export.
2010 * guile/lib/gdb/printing.scm (gdb module): Update.
2011 (prepend-pretty-printer!, append-pretty-printer!): Update.
2012 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2013 (pretty_printer_list_var): Delete.
2014 (pretty_printer_list): New static global.
2015 (gdbscm_pretty_printers): New function.
2016 (gdbscm_set_pretty_printers_x): New function.
2017 (ppscm_find_pretty_printer_from_gdb): Update.
2018 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2019 (gdbscm_initialize_pretty_printers): Update.
2020
2021 2014-07-26 Doug Evans <xdje42@gmail.com>
2022
2023 PR 17185
2024 * configure.ac: Add check for header gc/gc.h.
2025 Add check for function setenv.
2026 * configure: Regenerate.
2027 * config.in: Regenerate.
2028 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2029
2030 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2031
2032 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2033 variation in gdbarch matching.
2034
2035 2014-07-25 Tom Tromey <tromey@redhat.com>
2036
2037 * exec.c (using_exec_ops): Remove.
2038 (exec_close_1): Update. Remove extraneous block, reindent.
2039 (add_target_sections): Use target_is_pushed.
2040
2041 2014-07-25 Pedro Alves <palves@redhat.com>
2042
2043 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2044 * monitor.c (monitor_create_inferior): Likewise.
2045 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2046 * remote-sim.c (gdbsim_create_inferior): Likewise.
2047 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2048 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2049 * windows-nat.c (do_initial_windows_stuff): Likewise.
2050
2051 2014-07-25 Pedro Alves <palves@redhat.com>
2052
2053 * NEWS: Mention signal passing and "signal" command changes.
2054 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2055 comment.
2056 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2057 call.
2058 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2059 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2060 (jump_command): Adjust clear_proceed_status call.
2061 (signal_command): Warn if other thread that are resumed have
2062 signals that will be delivered. Adjust clear_proceed_status call.
2063 (until_next_command, finish_command)
2064 (proceed_after_attach_callback, attach_command_post_wait)
2065 (attach_command): Adjust clear_proceed_status call.
2066 * infrun.c (proceed_after_vfork_done): Likewise.
2067 (proceed_after_attach_callback): Adjust comment.
2068 (clear_proceed_status_thread): Clear stop_signal if not in pass
2069 state.
2070 (clear_proceed_status_callback): Delete.
2071 (clear_proceed_status): New 'step' parameter. Only clear the
2072 proceed status of threads the command being prepared is about to
2073 resume.
2074 (proceed): If passed in an explicit signal, override stop_signal
2075 with it. Don't pass the last stop signal to the thread we're
2076 resuming.
2077 (init_wait_for_inferior): Adjust clear_proceed_status call.
2078 (switch_back_to_stepped_thread): Clear the signal if it should not
2079 be passed.
2080 * infrun.h (clear_proceed_status): New 'step' parameter.
2081 (user_visible_resume_ptid): Add comment.
2082 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2083 signal is in pass state.
2084 * remote.c (append_pending_thread_resumptions): Likewise.
2085 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2086
2087 2014-07-25 Tom Tromey <tromey@redhat.com>
2088
2089 * target.h (target_stopped_data_address)
2090 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2091 parentheses.
2092
2093 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2094
2095 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2096 comments.
2097 (avr_pointer_to_address): Likewise.
2098
2099 2014-07-24 Tom Tromey <tromey@redhat.com>
2100
2101 * monitor.c (compile_pattern): Update.
2102 * target.h (struct target_ops) <to_shortname, to_longname,
2103 to_doc>: Now const.
2104
2105 2014-07-24 Tom Tromey <tromey@redhat.com>
2106
2107 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2108 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2109 (add_info_alias, add_com): Make "doc" const.
2110 (print_doc_line): Make "str" const.
2111 (delete_cmd): Update.
2112 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2113 (print_doc_line): Update.
2114 * cli/cli-script.c (document_command): Update.
2115 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2116 (add_com, add_info, add_info_alias): Update.
2117 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2118 * python/py-cmd.c (cmdpy_destroyer): Update.
2119
2120 2014-07-24 Tom Tromey <tromey@redhat.com>
2121
2122 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2123 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2124 (help_cmd_list): Constify.
2125 (lookup_cmd): Update.
2126 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2127 const.
2128 (help_cmd_list, apropos_cmd): Update.
2129 * cli/cli-script.c (show_user): Update.
2130 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2131 * cli/cli-setshow.h (cmd_show_list): Update.
2132 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2133 (cmd_show_list): Update.
2134 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2135 * python/py-cmd.c (cmdpy_destroyer): Update.
2136
2137 2014-07-24 Tom Tromey <tromey@redhat.com>
2138
2139 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2140 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2141 const.
2142 * command.h (deprecate_cmd): Update.
2143 * maint.c (maintenance_do_deprecate): Add casts.
2144
2145 2014-07-24 Tom Tromey <tromey@redhat.com>
2146
2147 * cli/cli-decode.c (help_cmd): Make parameter "const".
2148 * cli/cli-decode.h (help_cmd): Update.
2149
2150 2014-07-24 Tom Tromey <tromey@redhat.com>
2151
2152 * stack.c (up_silently_base, down_silently_base): Make argument
2153 const.
2154
2155 2014-07-24 Tom Tromey <tromey@redhat.com>
2156
2157 * solib.c (solib_add): Make "pattern" const.
2158 * solib.h (solib_add): Update.
2159
2160 2014-07-24 Tom Tromey <tromey@redhat.com>
2161
2162 * remote.c (remote_serial_open, print_packet, putpkt)
2163 (putpkt_binary): Constify.
2164 * remote.h (putpkt): Update.
2165
2166 2014-07-24 Tom Tromey <tromey@redhat.com>
2167
2168 * monitor.c (monitor_open): Make "args" const.
2169 * monitor.h (monitor_open): Update.
2170
2171 2014-07-24 Tom Tromey <tromey@redhat.com>
2172
2173 * maint.c (match_bfd_flags): Make "string" const.
2174 (print_bfd_section_info): Remove casts.
2175 (print_objfile_section_info): Make "string" const.
2176
2177 2014-07-24 Tom Tromey <tromey@redhat.com>
2178
2179 * inf-child.c (inf_child_open_target): Make "arg" const.
2180 * inf-child.h (inf_child_open_target): Update.
2181
2182 2014-07-24 Tom Tromey <tromey@redhat.com>
2183
2184 * environ.c (unset_in_environ): Make "var" const.
2185 * environ.h (unset_in_environ): Update.
2186
2187 2014-07-24 Tom Tromey <tromey@redhat.com>
2188
2189 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2190 Make "cmd" const.
2191 (scan_filename_with_cleanup): Likewise.
2192 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2193 Make arguments const.
2194 (restore_command): Update.
2195
2196 2014-07-24 Pedro Alves <palves@redhat.com>
2197
2198 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2199
2200 2014-07-24 Tom Tromey <tromey@redhat.com>
2201 Gary Benson <gbenson@redhat.com>
2202
2203 * nat/linux-ptrace.c (additional_flags): New global.
2204 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2205 additional_flags; don't check GDBSERVER.
2206 (linux_ptrace_set_additional_flags): New function.
2207 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2208 Declare.
2209 * linux-nat.c (_initialize_linux_nat): Call
2210 linux_ptrace_set_additional_flags.
2211
2212 2014-07-24 Tom Tromey <tromey@redhat.com>
2213
2214 * make-target-delegates (munge_type, write_debugmethod): New
2215 functions.
2216 (debug_names): New global.
2217 ($TARGET_DEBUG_PRINTER): New global.
2218 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2219 name.
2220 Write debug methods. Generate init_debug_target.
2221 * target-debug.h: New file.
2222 * target-delegates.c: Rebuild.
2223 * target.c: Include target-debug.h.
2224 (debug_target): Hoist definition.
2225 (target_kill, target_get_section_table, target_memory_map)
2226 (target_flash_erase, target_flash_done, target_detach)
2227 (target_disconnect, target_wait, target_resume)
2228 (target_pass_signals, target_program_signals, target_follow_fork)
2229 (target_mourn_inferior, target_search_memory)
2230 (target_thread_address_space, target_close)
2231 (target_find_new_threads, target_core_of_thread)
2232 (target_verify_memory, target_insert_mask_watchpoint)
2233 (target_remove_mask_watchpoint): Remove targetdebug code.
2234 (debug_to_post_attach, debug_to_prepare_to_store)
2235 (debug_to_files_info, debug_to_insert_breakpoint)
2236 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2237 (debug_to_region_ok_for_hw_watchpoint)
2238 (debug_to_can_accel_watchpoint_condition)
2239 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2240 (debug_to_watchpoint_addr_within_range)
2241 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2242 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2243 (debug_to_terminal_init, debug_to_terminal_inferior)
2244 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2245 (debug_to_terminal_save_ours, debug_to_terminal_info)
2246 (debug_to_load, debug_to_post_startup_inferior)
2247 (debug_to_insert_fork_catchpoint)
2248 (debug_to_remove_fork_catchpoint)
2249 (debug_to_insert_vfork_catchpoint)
2250 (debug_to_remove_vfork_catchpoint)
2251 (debug_to_insert_exec_catchpoint)
2252 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2253 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2254 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2255 (setup_target_debug): Call init_debug_target.
2256 * target.h (TARGET_DEBUG_PRINTER): New macro.
2257 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2258 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2259
2260 2014-07-24 Gary Benson <gbenson@redhat.com>
2261
2262 * exceptions.h (throw_vfatal): Renamed to...
2263 (throw_vquit): New declaration.
2264 (throw_quit): Likewise.
2265 * exceptions.c (throw_vfatal): Renamed to...
2266 (throw_vquit): New function.
2267 (throw_quit): Likewise.
2268 (throw_error): Call throw_verror rather than throw_it.
2269 * utils.h (vfatal): Removed.
2270 (fatal): Likewise.
2271 * utils.c (vfatal): Removed.
2272 (fatal): Likewise.
2273 (internal_verror): Replaced call to fatal with call to throw_quit.
2274 (quit): Replaced calls to fatal with calls to throw_quit.
2275
2276 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2277
2278 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2279 target_read_code.
2280
2281 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2282
2283 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2284 less than zero in conditional expression.
2285
2286 2014-07-23 Tom Tromey <tromey@redhat.com>
2287
2288 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2289 ($INTRO_PART): Don't match whitespace.
2290 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2291 argument matching.
2292 ($METHOD): Add $METHOD_TRAILER.
2293 (trim): Rewrite.
2294 (scan_target_h): New sub.
2295 Change main loop not to collect state.
2296 * target-delegates.c: Rebuild.
2297
2298 2014-07-23 Gary Benson <gbenson@redhat.com>
2299
2300 * cp-support.c (gdb_demangle): Fix build on systems without
2301 sigaltstack.
2302
2303 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2304
2305 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2306 for reference entry value target data value.
2307
2308 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2309
2310 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2311 value_available_contents_eq.
2312
2313 2014-07-22 Pedro Alves <palves@redhat.com>
2314
2315 * value.c (allocate_optimized_out_value): Don't mark value as
2316 non-lazy.
2317
2318 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2319
2320 * MAINTAINERS (Write After Approval): Update my email address.
2321
2322 2014-07-20 Doug Evans <dje@google.com>
2323
2324 PR server/17147
2325 * remote.c (putpkt_binary): Add text to error message.
2326
2327 2014-07-20 Yao Qi <yao@codesourcery.com>
2328
2329 * eval.c: Remove "Chill" from comments.
2330 * gdbtypes.h: Likewise.
2331 * symtab.h: Likewise.
2332
2333 2014-07-20 Yao Qi <yao@codesourcery.com>
2334
2335 * std-operator.def: Update comments to TERNOP_SLICE.
2336
2337 2014-07-20 Yao Qi <yao@codesourcery.com>
2338
2339 * std-operator.def: Remove BINOP_RANGE.
2340 * breakpoint.c (watchpoint_exp_is_const): Update.
2341 * expprint.c (dump_subexp_body_standard): Likewise.
2342 * eval.c (init_array_element): Remove dead code.
2343 (evaluate_subexp_standard): Likewise.
2344
2345 2014-07-20 Yao Qi <yao@codesourcery.com>
2346
2347 * std-operator.def: Remove BINOP_IN.
2348 * breakpoint.c (watchpoint_exp_is_const): Update.
2349 * eval.c (evaluate_subexp_standard): Likewise.
2350 * expprint.c (dump_subexp_body_standard): Likewise.
2351
2352 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2353
2354 * microblaze-tdep.c (microblaze_register_names): Add
2355 the rshr and rslr register names.
2356 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2357 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2358 Use of tdesc_numbered_register. Use of
2359 microblaze_register_g_packet_guesses. Use of
2360 tdesc_use_registers. Use of set_gdbarch_register_type.
2361 (microblaze_register_g_packet_guesses): New.
2362 * microblaze-tdep.h (microblaze_reg_num): Add
2363 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2364 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2365 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2366 * features/microblaze-core.xml: New file.
2367 * features/microblaze-stack-protect.xml: New file.
2368 * features/microblaze-with-stack-protect.c: New file.
2369 * features/microblaze-with-stack-protect.xml: New file.
2370 * features/microblaze.xml: New file.
2371 * features/microblaze.c: New file.
2372 * features/Makefile (microblaze-with-stack-protect): Add
2373 microblaze-with-stack-protect microblaze and microblaze-expedite.
2374 * regformats/microblaze-with-stack-protect.dat: New file.
2375 * regformats/microblaze.dat: New file.
2376 * doc/gdb.texinfo (MicroBlaze Features): Added.
2377
2378 2014-07-18 Tom Tromey <tromey@redhat.com>
2379
2380 * exec.c (exec_ops): Now static.
2381 * exec.h (exec_ops): Don't declare.
2382
2383 2014-07-18 Tom Tromey <tromey@redhat.com>
2384
2385 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2386 to find_target_beneath.
2387 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2388 find_target_beneath.
2389 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2390
2391 2014-07-18 Tom Tromey <tromey@redhat.com>
2392
2393 PR gdb/17130:
2394 * utils.c (quit): Use target_supports_terminal_ours.
2395 * target.h (target_supports_terminal_ours): Declare.
2396 * target.c (target_supports_delete_record): Don't check
2397 to_delete_record against NULL.
2398 (target_supports_terminal_ours): New function.
2399
2400 2014-07-18 Tom Tromey <tromey@redhat.com>
2401
2402 PR gdb/17130:
2403 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2404 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2405 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2406 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2407 * windows-nat.c (windows_xfer_partial): Always delegate.
2408 * record-btrace.c (record_btrace_xfer_partial): Simplify
2409 delegation.
2410 (record_btrace_fetch_registers, record_btrace_store_registers)
2411 (record_btrace_prepare_to_store, record_btrace_resume)
2412 (record_btrace_wait, record_btrace_find_new_threads)
2413 (record_btrace_thread_alive): Likewise.
2414 * procfs.c (procfs_xfer_partial): Always delegate.
2415 * corelow.c (core_xfer_partial): Always delegate.
2416 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2417
2418 2014-07-18 Tom Tromey <tromey@redhat.com>
2419
2420 * exec.c (exec_make_note_section): Move earlier.
2421
2422 2014-07-17 Doug Evans <dje@google.com>
2423
2424 PR gdb/17170
2425 * maint.c (count_symtabs_and_blocks): Handle NULL
2426 current_program_space.
2427 (report_command_stats): Check global enabled flag in addition to
2428 recorded enabled flag.
2429 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2430
2431 2014-07-16 Pedro Alves <palves@redhat.com>
2432
2433 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2434
2435 2014-07-16 Tom Tromey <tromey@redhat.com>
2436
2437 * target.h (struct target_ops) <to_delete_record>: Reformat
2438 comment.
2439
2440 2014-07-16 Tom Tromey <tromey@redhat.com>
2441
2442 * target-delegates.c: Rebuild.
2443
2444 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2445
2446 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2447 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2448 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2449 (avr_pointer_to_address): Likewise.
2450 (avr_address_class_type_flags): New function.
2451 (avr_address_class_type_flags_to_name): Likewise.
2452 (avr_address_class_name_to_type_flags): Likewise.
2453 (avr_gdbarch_init): Set address_class_type_flags,
2454 address_class_type_flags_to_name and
2455 address_class_name_to_type_flags.
2456
2457 2014-07-15 Pedro Alves <palves@redhat.com>
2458
2459 * linux-nat.c (kill_callback): Save errno and work with saved
2460 copy.
2461
2462 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2463
2464 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2465
2466 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2467
2468 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2469 breakpoint support correctly.
2470
2471 2014-07-14 Pedro Alves <palves@redhat.com>
2472
2473 * utils.c (prompt_for_continue): Call target_terminal_ours.
2474
2475 2014-07-14 Pedro Alves <palves@redhat.com>
2476
2477 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2478 catch_errors. Don't re-enable stdin or notify observers where,
2479 and rethrow error.
2480 (fetch_inferior_event_wrapper): Delete.
2481
2482 2014-07-14 Pedro Alves <palves@redhat.com>
2483
2484 PR gdb/17072
2485 * top.c: Include "inf-loop.h".
2486 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2487 field.
2488 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2489 was async before.
2490 (gdb_readline_wrapper): Store whether the target is async, and
2491 make it sync.
2492
2493 2014-07-14 Pedro Alves <palves@redhat.com>
2494
2495 PR gdb/17072
2496 * top.c (gdb_readline_wrapper_line): Tweak comment.
2497 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2498 the input handler callback.
2499
2500 2014-07-14 Pedro Alves <palves@redhat.com>
2501
2502 PR gdb/17072
2503 * main.c: Include event-top.h.
2504 (handle_command_errors): New function.
2505 (catch_command_errors, catch_command_errors_const): Use it.
2506
2507 2014-07-14 Pedro Alves <palves@redhat.com>
2508
2509 * exceptions.c (catch_command_errors, catch_command_errors_const):
2510 Moved to main.c.
2511 * exceptions.h (catch_command_errors_ftype)
2512 (catch_command_errors_const_ftype): Moved to main.c.
2513 (catch_command_errors, catch_command_errors_const): Delete
2514 declarations.
2515 * main.c (catch_command_errors_ftype)
2516 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2517 (catch_command_errors, catch_command_errors_const)): Moved here
2518 from exceptions.c and make static.
2519
2520 2014-07-14 Pedro Alves <palves@redhat.com>
2521
2522 * exceptions.c (print_any_exception): Delete.
2523 (catch_exceptions_with_msg): Use exception_print instead of
2524 print_any_exception.
2525 (catch_errors): Use exception_fprintf instead of
2526 print_any_exception.
2527 (catch_command_errors, catch_command_errors_const): Use
2528 exception_print instead of print_any_exception.
2529
2530 2014-07-14 Pedro Alves <palves@redhat.com>
2531
2532 * infcall.c (run_inferior_call): Set 'sync_execution' while
2533 running the inferior call.
2534
2535 2014-07-14 Pedro Alves <palves@redhat.com>
2536
2537 * value.c (value_contents_equal): Delete function.
2538 * value.h (value_contents_equal): Delete declaration.
2539
2540 2014-07-14 Tom Tromey <tromey@redhat.com>
2541
2542 PR exp/17106:
2543 * gdbtypes.c (is_dynamic_type_internal): New function, from
2544 is_dynamic_type.
2545 (is_dynamic_type): Rewrite.
2546 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2547 (resolve_dynamic_struct): Likewise.
2548 (resolve_dynamic_type_internal): New function, from
2549 resolve_dynamic_type.
2550 (resolve_dynamic_type): Rewrite.
2551
2552 2014-07-14 Tom Tromey <tromey@redhat.com>
2553
2554 * target.c (target_require_runnable): Also check record_stratum.
2555 Update comment.
2556
2557 2014-07-11 Yao Qi <yao@codesourcery.com>
2558
2559 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2560 thumb_instruction_restores_sp return true.
2561
2562 2014-07-11 Yao Qi <yao@codesourcery.com>
2563
2564 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2565 (thumb_in_function_epilogue_p): Call
2566 thumb_instruction_restores_sp.
2567
2568 2014-07-11 Yao Qi <yao@codesourcery.com>
2569
2570 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2571 'add sp, #imm'.
2572 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2573
2574 2014-07-11 Gary Benson <gbenson@redhat.com>
2575
2576 * amd64-linux-nat.c (gdbcore.h): Remove include.
2577 (regset.h): Likewise.
2578 (nat/linux-btrace.h): Likewise.
2579 (btrace.h): Likewise.
2580 (gdb_assert.h): Likewise.
2581 (string.h): Likewise.
2582 (sys/uio.h): Likewise.
2583 (sys/debugreg.h): Likewise.
2584 (sys/syscall.h): Likewise.
2585 (sys/procfs.h): Likewise.
2586 (sys/user.h): Likewise.
2587 (asm/ptrace.h): Likewise.
2588 (i386-nat.h): Likewise.
2589 * i386-linux-nat.c (i386-nat.h): Likewise.
2590 (regset.h): Likewise.
2591 (target.h): Likewise.
2592 (linux-nat.h): Likewise.
2593 (nat/linux-btrace.h): Likewise.
2594 (btrace.h): Likewise.
2595 (gdb_assert.h): Likewise.
2596 (string.h): Likewise.
2597 (sys/uio.h): Likewise.
2598 (sys/user.h): Likewise.
2599 (sys/procfs.h): Likewise.
2600 (sys/reg.h): Likewise.
2601 (sys/debugreg.h): Likewise.
2602 (ORIG_EAX): Remove definition.
2603
2604 2014-07-11 Gary Benson <gbenson@redhat.com>
2605
2606 * i386-linux-nat.h: New file.
2607 * x86-linux-nat.h: Likewise.
2608 * x86-linux-nat.c: Likewise.
2609 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2610 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2611 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2612 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2613 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2614 (PTRACE_SETREGSET): Likewise.
2615 (arch_lwp_info): Now in x86-linux-nat.c.
2616 (have_ptrace_getregset): Now in x86-linux-nat.h.
2617 (x86_linux_dr_get): Now in x86-linux-nat.c.
2618 (x86_linux_dr_set): Likewise.
2619 (x86_linux_dr_get_addr): Likewise.
2620 (x86_linux_dr_get_control): Likewise.
2621 (x86_linux_dr_get_status): Likewise.
2622 (update_debug_registers_callback): Likewise.
2623 (x86_linux_dr_set_control): Likewise.
2624 (x86_linux_dr_set_addr): Likewise.
2625 (x86_linux_prepare_to_resume): Likewise.
2626 (x86_linux_new_thread): Likewise.
2627 (x86_linux_new_fork): Likewise.
2628 (x86_linux_get_thread_area): Likewise.
2629 (super_post_startup_inferior): Likewise.
2630 (x86_linux_child_post_startup_inferior): Likewise.
2631 (AMD64_LINUX_USER64_CS): Likewise.
2632 (AMD64_LINUX_X32_DS): Likewise.
2633 (x86_linux_read_description): Likewise.
2634 (x86_linux_enable_btrace): Likewise.
2635 (x86_linux_disable_btrace): Likewise.
2636 (x86_linux_teardown_btrace): Likewise.
2637 (x86_linux_read_btrace): Likewise.
2638 (x86_linux_create_target): Likewise.
2639 (x86_linux_add_target): Likewise.
2640 * i386-linux-nat.c (x86-linux-nat.h): New include.
2641 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2642 (PTRACE_SETREGSET): Likewise.
2643 (arch_lwp_info): Now in x86-linux-nat.c.
2644 (have_ptrace_getregset): Now in x86-linux-nat.h.
2645 (x86_linux_dr_get): Now in x86-linux-nat.c.
2646 (x86_linux_dr_set): Likewise.
2647 (x86_linux_dr_get_addr): Likewise.
2648 (x86_linux_dr_get_control): Likewise.
2649 (x86_linux_dr_get_status): Likewise.
2650 (update_debug_registers_callback): Likewise.
2651 (x86_linux_dr_set_control): Likewise.
2652 (x86_linux_dr_set_addr): Likewise.
2653 (x86_linux_prepare_to_resume): Likewise.
2654 (x86_linux_new_thread): Likewise.
2655 (x86_linux_new_fork): Likewise.
2656 (x86_linux_get_thread_area): Likewise.
2657 (super_post_startup_inferior): Likewise.
2658 (x86_linux_child_post_startup_inferior): Likewise.
2659 (AMD64_LINUX_USER64_CS): Likewise.
2660 (AMD64_LINUX_X32_DS): Likewise.
2661 (x86_linux_read_description): Likewise.
2662 (x86_linux_enable_btrace): Likewise.
2663 (x86_linux_disable_btrace): Likewise.
2664 (x86_linux_teardown_btrace): Likewise.
2665 (x86_linux_read_btrace): Likewise.
2666 (x86_linux_create_target): Likewise.
2667 (x86_linux_add_target): Likewise.
2668
2669 2014-07-11 Gary Benson <gbenson@redhat.com>
2670
2671 * amd64-linux-nat.c: Comment and whitespace changes.
2672 * i386-linux-nat.c: Comment and whitespace changes.
2673
2674 2014-07-11 Gary Benson <gbenson@redhat.com>
2675
2676 * amd64-linux-nat.c (x86_linux_create_target): New function.
2677 (x86_linux_add_target): Likewise.
2678 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2679 * i386-linux-nat.c (x86_linux_create_target): New function.
2680 (x86_linux_add_target): Likewise.
2681 (_initialize_i386_linux_nat): Delegate to the above new functions.
2682
2683 2014-07-11 Gary Benson <gbenson@redhat.com>
2684
2685 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2686 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2687 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2688 (ps_get_thread_area): Delegate to the above.
2689
2690 2014-07-11 Gary Benson <gbenson@redhat.com>
2691
2692 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2693 x86_linux_read_description. All uses updated. amd64-specific
2694 code conditionalized. Conditionalized i386-specific code added.
2695 Redundant cast removed.
2696 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2697 x86_linux_read_description. All uses updated. i386-specific
2698 code conditionalized. Conditionalized amd64-specific code added.
2699 One sizeof replaced with the actual type it is describing.
2700
2701 2014-07-11 Gary Benson <gbenson@redhat.com>
2702
2703 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2704 x86_linux_dr_get. All uses updated.
2705 (amd64_linux_dr_set): Renamed to
2706 x86_linux_dr_set. All uses updated.
2707 (amd64_linux_dr_get_addr): Renamed to
2708 x86_linux_dr_get_addr. All uses updated.
2709 (amd64_linux_dr_get_control): Renamed to
2710 x86_linux_dr_get_control. All uses updated.
2711 (amd64_linux_dr_get_status): Renamed to
2712 x86_linux_dr_get_status. All uses updated.
2713 (amd64_linux_dr_set_control): Renamed to
2714 x86_linux_dr_set_control. All uses updated.
2715 (amd64_linux_dr_set_addr): Renamed to
2716 x86_linux_dr_set_addr. All uses updated.
2717 (amd64_linux_prepare_to_resume): Renamed to
2718 x86_linux_prepare_to_resume. All uses updated.
2719 (amd64_linux_new_thread): Renamed to
2720 x86_linux_new_thread. All uses updated.
2721 (amd64_linux_new_fork): Renamed to
2722 x86_linux_new_fork. All uses updated.
2723 (amd64_linux_child_post_startup_inferior): Renamed to
2724 x86_linux_child_post_startup_inferior. All uses updated.
2725 (amd64_linux_enable_btrace): Renamed to
2726 x86_linux_enable_btrace. All uses updated.
2727 (amd64_linux_disable_btrace): Renamed to
2728 x86_linux_disable_btrace. All uses updated.
2729 (amd64_linux_teardown_btrace): Renamed to
2730 x86_linux_teardown_btrace. All uses updated.
2731 (amd64_linux_read_btrace): Renamed to
2732 x86_linux_read_btrace. All uses updated.
2733 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2734 x86_linux_dr_get. All uses updated.
2735 (i386_linux_dr_set): Renamed to
2736 x86_linux_dr_set. All uses updated.
2737 (i386_linux_dr_get_addr): Renamed to
2738 x86_linux_dr_get_addr. All uses updated.
2739 (i386_linux_dr_get_control): Renamed to
2740 x86_linux_dr_get_control. All uses updated.
2741 (i386_linux_dr_get_status): Renamed to
2742 x86_linux_dr_get_status. All uses updated.
2743 (i386_linux_dr_set_control): Renamed to
2744 x86_linux_dr_set_control. All uses updated.
2745 (i386_linux_dr_set_addr): Renamed to
2746 x86_linux_dr_set_addr. All uses updated.
2747 (i386_linux_prepare_to_resume): Renamed to
2748 x86_linux_prepare_to_resume. All uses updated.
2749 (i386_linux_new_thread): Renamed to
2750 x86_linux_new_thread. All uses updated.
2751 (i386_linux_new_fork): Renamed to
2752 x86_linux_new_fork. All uses updated.
2753 (i386_linux_child_post_startup_inferior): Renamed to
2754 x86_linux_child_post_startup_inferior. All uses updated.
2755 (i386_linux_enable_btrace): Renamed to
2756 x86_linux_enable_btrace. All uses updated.
2757 (i386_linux_disable_btrace): Renamed to
2758 x86_linux_disable_btrace. All uses updated.
2759 (i386_linux_teardown_btrace): Renamed to
2760 x86_linux_teardown_btrace. All uses updated.
2761 (i386_linux_read_btrace): Renamed to
2762 x86_linux_read_btrace. All uses updated.
2763
2764 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2765
2766 * remote.c (extended_remote_post_attach): New function.
2767 (init_extended_remote_ops): Install it as to_post_attach method.
2768
2769 2014-07-09 Pedro Alves <palves@redhat.com>
2770
2771 * infcmd.c (attach_command_post_wait): Don't call
2772 target_terminal_inferior here.
2773 (attach_command): Call it here instead.
2774
2775 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2776
2777 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2778 field.
2779 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2780 from varobj.c, with additional checks.
2781 (c_varobj_ops): Fill in is_path_expr_parent field.
2782 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2783 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2784 field.
2785 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2786 ops method.
2787 (varobj_default_is_path_expr_parent): New function.
2788 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2789 (varobj_default_is_path_expr_parent): Declare new function.
2790
2791 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2792
2793 * infcmd.c (finish_backward): Turn internal error into normal error.
2794
2795 2014-07-07 Pedro Alves <palves@redhat.com>
2796
2797 PR gdb/17096
2798 * remote.c (async_handle_remote_sigint)
2799 (async_handle_remote_sigint_twice): Call
2800 gdb_call_async_signal_handler instead of
2801 mark_async_signal_handler.
2802
2803 2014-07-07 Tom Tromey <tromey@redhat.com>
2804
2805 * target-delegates.c: Rebuild.
2806 * target.c (target_info_record): Remove.
2807 * record.c (info_record_command): Unconditionally call
2808 to_info_record.
2809 * target.h (struct target_ops) <to_info_record>: Use
2810 TARGET_DEFAULT_IGNORE.
2811 (target_info_record): Remove.
2812
2813 2014-07-07 Tom Tromey <tromey@redhat.com>
2814
2815 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2816 TARGET_DEFAULT_NORETURN.
2817 * target.c (generic_tls_error): New function.
2818 (target_translate_tls_address): Don't search target stack.
2819 * target-delegates.c: Rebuild.
2820 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2821 stack.
2822 * linux-thread-db.c (thread_db_get_thread_local_address):
2823 Unconditionally call beneath target.
2824
2825 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2826
2827 * cli/cli-logging.c (pop_output_files): Assign targerr to
2828 gdb_stdtargerr.
2829
2830 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2831
2832 * MAINTAINERS (Write After Approval): Update my email address.
2833
2834 2014-07-02 Gary Benson <gbenson@redhat.com>
2835
2836 * proc-service.c (ps_xfer_memory): Update comment.
2837 (ps_pstop): Remove unused function.
2838 (ps_pcontinue): Likewise.
2839 (ps_lstop): Likewise.
2840 (ps_lcontinue): Likewise.
2841 (ps_lgetxregsize): Likewise.
2842 (ps_lgetxregs): Likewise.
2843 (ps_lsetxregs): Likewise.
2844 (ps_plog): Likewise.
2845 (ps_ptread): Likewise.
2846 (ps_ptwrite): Likewise.
2847
2848 2014-07-01 Mark Wielaard <mjw@redhat.com>
2849
2850 * dwarf2read.c (add_array_cv_type): New function.
2851 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2852 (read_tag_volatile_type): Likewise.
2853
2854 2014-07-01 Tom Tromey <tromey@redhat.com>
2855
2856 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2857 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2858 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2859 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2860 * command.h (cmd_cfunc_ftype): Move earlier.
2861 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2862 (add_com, add_info): Use cmd_cfunc_ftype.
2863
2864 2014-06-30 Tom Tromey <tromey@redhat.com>
2865
2866 * symtab.c (operator_chars): Make parameters and return type
2867 const.
2868 (file_matches): Make "files" const.
2869 (struct search_symbols_data) <files>: Now const.
2870 (search_symbols): Make "regexp" and "files" parameters const.
2871 Update.
2872 (symtab_symbol_info): Remove cast.
2873 (rbreak_command): Update.
2874 * symtab.h (search_symbols): Update.
2875
2876 2014-06-27 Yao Qi <yao@codesourcery.com>
2877
2878 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2879 Change parameter type to 'struct thread_info *'. Caller
2880 updated.
2881 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2882 Update declaration.
2883 * dummy-frame.c (struct dummy_frame_id): New.
2884 (dummy_frame_id_eq): New function.
2885 (struct dummy_frame) <id>: Change its type to 'struct
2886 dummy_frame_id'.
2887 (dummy_frame_push): Add parameter ptid and save it in
2888 dummy_frame_id.
2889 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2890 inferior_ptid.
2891 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2892 to inferior_ptid.
2893 (lookup_dummy_frame): Change parameter type to 'struct
2894 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2895 instead of frame_id_eq.
2896 (dummy_frame_pop): Add parameter ptid. Callers updated.
2897 Update comments. Compose dummy_frame_id and pass it to
2898 lookup_dummy_frame.
2899 (dummy_frame_discard): Add parameter ptid.
2900 (dummy_frame_sniffer): Compose dummy_frame_id and call
2901 dummy_frame_id_eq instead of frame_id_eq.
2902 (fprint_dummy_frames): Print ptid.
2903 * dummy-frame.h: Remove comments.
2904 (dummy_frame_push): Add ptid in declaration.
2905 (dummy_frame_pop, dummy_frame_discard): Likewise.
2906
2907 2014-06-26 Tom Tromey <tromey@redhat.com>
2908
2909 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2910 * command.h (error_no_arg): Update.
2911
2912 2014-06-26 Tom Tromey <tromey@redhat.com>
2913
2914 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2915 (do_show_command): Make "arg" const.
2916 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2917
2918 2014-06-26 Tom Tromey <tromey@redhat.com>
2919
2920 * record-full.c (record_full_get_bookmark): Make "args" const.
2921 (record_full_goto_bookmark): Make "raw_bookmark" const.
2922 * record.c (record_goto): New function.
2923 (cmd_record_goto): Use it. Now static.
2924 * record.h (record_goto): Declare.
2925 (cmd_record_goto): Remove declaration.
2926 * target-delegates.c: Rebuild.
2927 * target.h (struct target_ops) <to_get_bookmark,
2928 to_goto_bookmark>: Make parameter const.
2929
2930 2014-06-26 Tom Tromey <tromey@redhat.com>
2931
2932 * defs.h (generic_load): Update.
2933 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2934 * monitor.c (monitor_load): Make "args" const.
2935 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2936 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2937 const.
2938 (mips_load): Make "file" const.
2939 * remote-sim.c (gdbsim_load): Make "args" const.
2940 * remote.c (remote_load): Make "name" const.
2941 * symfile.c (generic_load): Make "args" const.
2942 * target-delegates.c: Rebuild.
2943 * target.c (target_load): Make "arg" const.
2944 (debug_to_load): Make "args" const.
2945 * target.h (struct target_ops) <to_load>: Make parameter const.
2946 (target_load): Update.
2947
2948 2014-06-26 Tom Tromey <tromey@redhat.com>
2949
2950 PR symtab/16902:
2951 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2952 (dwarf2_physname, read_partial_die)
2953 (guess_partial_die_structure_name, fixup_partial_die)
2954 (guess_full_die_structure_name, anonymous_struct_prefix)
2955 (dwarf2_name): Use per-BFD obstack.
2956
2957 2014-06-26 Yao Qi <yao@codesourcery.com>
2958
2959 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2960 dummyframe and this_id into inner block below.
2961
2962 2014-06-26 Yao Qi <yao@codesourcery.com>
2963
2964 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2965 with "signal_pass[0]" in the initialization of signal_pass.
2966
2967 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2968
2969 * record-btrace.c (record_btrace_generating_corefile)
2970 (record_btrace_prepare_to_generate_core)
2971 (record_btrace_done_generating_core): New.
2972 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2973 (record_btrace_store_registers, record_btrace_prepare_to_store):
2974 Forward request when generating a core file.
2975 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2976 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2977 to_done_generating_core.
2978
2979 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2980
2981 * target.h (target_ops) <to_prepare_to_generate_core>
2982 <to_done_generating_core>: New.
2983 (target_prepare_to_generate_core, target_done_generating_core): New.
2984 * target.c (target_prepare_to_generate_core)
2985 (target_done_generating_core): New.
2986 * target-delegates.c: Regenerate.
2987 * gcore.c: (write_gcore_file): Rename to ...
2988 (write_gcore_file_1): ...this.
2989 (write_gcore_file): Call target_prepare_to_generate_core
2990 and target_done_generating_core.
2991
2992 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2993
2994 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2995 * gcore.c (write_gcore_file): Free memory returned from
2996 make_corefile_notes.
2997 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2998 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2999
3000 2014-06-24 Yao Qi <yao@codesourcery.com>
3001
3002 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3003 (arm_linux_init_abi): Set skip_trampoline_code with
3004 gdbarch_skip_trampoline_code instead of
3005 find_solib_trampoline_target.
3006
3007 2014-06-24 Yao Qi <yao@codesourcery.com>
3008
3009 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3010 arm_skip_bx_reg returns non-zero.
3011
3012 2014-06-24 Yao Qi <yao@codesourcery.com>
3013
3014 * arm-tdep.c (arm_skip_bx_reg): New function.
3015 (arm_skip_stub): Call arm_skip_bx_reg.
3016
3017 2014-06-23 Don Breazeal <donb@codesourcery.com>
3018
3019 * MAINTAINERS: Add myself as write-after-approval maintainer.
3020
3021 2014-06-23 Pedro Alves <palves@redhat.com>
3022
3023 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3024 DR_CONTROL before setting DR0..DR3.
3025 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3026 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3027 bits of DR_CONTROL related to the debug register slot being
3028 disabled. If all slots are vacant, clear local slowdown as well,
3029 and assert DR_CONTROL is 0.
3030
3031 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3032
3033 * python/lib/gdb/command/xmethods.py
3034 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3035 current progspace only if the string "progspace" matches LOCUS_RE.
3036
3037 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3038
3039 Fix --with-system-readline with readline-6.3 patch 5.
3040 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3041 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3042 types.
3043
3044 2014-06-20 Tom Tromey <tromey@redhat.com>
3045
3046 * dwarf2read.c (dw2_get_real_path): Use correct type in
3047 OBSTACK_CALLOC.
3048 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3049
3050 2014-06-20 Gary Benson <gbenson@redhat.com>
3051
3052 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3053 * common/glibc_thread_db.h: Likewise.
3054 * common/i386-cpuid.h: Likewise.
3055 * common/i386-gcc-cpuid.h: Likewise.
3056 * common/linux-btrace.h: Likewise.
3057 * common/linux-osdata.h: Likewise.
3058 * common/linux-procfs.h: Likewise.
3059 * common/linux-ptrace.h: Likewise.
3060 * common/mips-linux-watch.h: Likewise.
3061 * common/linux-btrace.c: Moved to nat.
3062 * common/linux-osdata.c: Likewise.
3063 * common/linux-procfs.c: Likewise.
3064 * common/linux-ptrace.c: Likewise.
3065 * common/mips-linux-watch.c: Likewise.
3066 * nat/gdb_thread_db.h: Moved from common.
3067 * nat/glibc_thread_db.h: Likewise.
3068 * nat/i386-cpuid.h: Likewise.
3069 * nat/i386-gcc-cpuid.h: Likewise.
3070 * nat/linux-btrace.c: Likewise.
3071 * nat/linux-btrace.h: Likewise.
3072 * nat/linux-osdata.c: Likewise.
3073 * nat/linux-osdata.h: Likewise.
3074 * nat/linux-procfs.c: Likewise.
3075 * nat/linux-procfs.h: Likewise.
3076 * nat/linux-ptrace.c: Likewise.
3077 * nat/linux-ptrace.h: Likewise.
3078 * nat/mips-linux-watch.c: Likewise.
3079 * nat/mips-linux-watch.h: Likewise.
3080 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3081 (object file files): Reordered.
3082 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3083 of glibc_thread_db.h.
3084
3085 2014-06-20 Gary Benson <gbenson@redhat.com>
3086
3087 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3088 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3089 (i386_dr_low): Likewise.
3090 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3091 (i386_dr_low_set_addr): Likewise.
3092 (i386_dr_low_get_addr): Likewise.
3093 (i386_dr_low_can_set_control): Likewise.
3094 (i386_dr_low_set_control): Likewise.
3095 (i386_dr_low_get_control): Likewise.
3096 (i386_dr_low_get_status): Likewise.
3097 (i386_get_debug_register_length): Likewise.
3098 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3099 (i386_dr_low): Likewise.
3100 * nat/i386-dregs.c (i386-low.h): Remove include.
3101 (i386-nat.h): Likewise.
3102 (nat/i386-dregs.h): New include.
3103 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3104 (i386_dr_low_set_addr): Likewise.
3105 (i386_dr_low_get_addr): Likewise.
3106 (i386_dr_low_can_set_control): Likewise.
3107 (i386_dr_low_set_control): Likewise.
3108 (i386_dr_low_get_control): Likewise.
3109 (i386_dr_low_get_status): Likewise.
3110 (i386_get_debug_register_length): Likewise.
3111 (debug_hw_points): Likewise.
3112
3113 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3114
3115 * Makefile.in (SFILES): Add d-exp.y.
3116 (YYFILES): Add d-exp.c.
3117 (YYOBJ): Add d-exp.o.
3118 (local-maintainer-clean): Delete d-exp.c.
3119 * d-exp.y: New file.
3120 * d-lang.h (d_parse): New declaration.
3121 (d_error): New declaration.
3122 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3123 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3124 PREC_ORDER operators.
3125 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3126
3127 2014-06-19 Yao Qi <yao@codesourcery.com>
3128
3129 * gdbthread.h (any_running): Remove the declaration.
3130 * thread.c (any_running): Remove.
3131
3132 2014-06-19 Yao Qi <yao@codesourcery.com>
3133
3134 * gdbthread.h (struct thread_info) <state>: Change its type to
3135 'enum thread_state'. Update comments.
3136
3137 2014-06-19 Pedro Alves <palves@redhat.com>
3138
3139 * gdbthread.h (ALL_THREADS): Delete.
3140 (ALL_NON_EXITED_THREADS): New macro.
3141 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3142 instead of ALL_THREADS.
3143 * infrun.c (find_thread_needs_step_over)
3144 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3145 instead of ALL_THREADS.
3146 * record-btrace.c (record_btrace_open)
3147 (record_btrace_stop_recording, record_btrace_close)
3148 (record_btrace_is_replaying, record_btrace_resume)
3149 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3150 * remote.c (append_pending_thread_resumptions): Likewise.
3151 * thread.c (thread_apply_all_command): Likewise.
3152
3153 2014-06-19 Gary Benson <gbenson@redhat.com>
3154
3155 * i386-nat.c (i386_stopped_by_watchpoint):
3156 Use i386_dr_stopped_by_watchpoint.
3157 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3158 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3159
3160 2014-06-19 Gary Benson <gbenson@redhat.com>
3161
3162 * nat/i386-dregs.c: New file.
3163 * Makefile.in (i386-dregs.o): New rule.
3164 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3165 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3166 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3167 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3168 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3169 * config/i386/go32.mh (NATDEPFILES): Likewise.
3170 * config/i386/linux.mh (NATDEPFILES): Likewise.
3171 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3172 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3173 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3174 * i386-nat.h (debug_hw_points): New declaration.
3175 * i386-nat.c (breakpoint.h): Remove include.
3176 (command.h): Likewise.
3177 (target.h): Likewise.
3178 (gdb_assert.h): Likewise.
3179 (debug_hw_points): Made nonstatic.
3180 (debug_printf): Now in i386-dregs.c.
3181 (TARGET_HAS_DR_LEN_8): Likewise.
3182 (DR_CONTROL_SHIFT): Likewise.
3183 (DR_CONTROL_SIZE): Likewise.
3184 (DR_RW_EXECUTE): Likewise.
3185 (DR_RW_WRITE): Likewise.
3186 (DR_RW_READ): Likewise.
3187 (DR_RW_IORW): Likewise.
3188 (DR_LEN_1): Likewise.
3189 (DR_LEN_2): Likewise.
3190 (DR_LEN_4): Likewise.
3191 (DR_LEN_8): Likewise.
3192 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3193 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3194 (DR_ENABLE_SIZE): Likewise.
3195 (DR_LOCAL_SLOWDOWN): Likewise.
3196 (DR_GLOBAL_SLOWDOWN): Likewise.
3197 (DR_CONTROL_RESERVED): Likewise.
3198 (I386_DR_CONTROL_MASK): Likewise.
3199 (I386_DR_VACANT): Likewise.
3200 (I386_DR_LOCAL_ENABLE): Likewise.
3201 (I386_DR_GLOBAL_ENABLE): Likewise.
3202 (I386_DR_DISABLE): Likewise.
3203 (I386_DR_SET_RW_LEN): Likewise.
3204 (I386_DR_GET_RW_LEN): Likewise.
3205 (I386_DR_WATCH_HIT): Likewise.
3206 (i386_wp_op_t): Likewise.
3207 (i386_show_dr): Likewise.
3208 (i386_length_and_rw_bits): Likewise.
3209 (i386_insert_aligned_watchpoint): Likewise.
3210 (i386_remove_aligned_watchpoint): Likewise.
3211 (i386_handle_nonaligned_watchpoint): Likewise.
3212 (i386_update_inferior_debug_regs): Likewise.
3213 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3214 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3215 (i386_region_ok_for_watchpoint):
3216 Use i386_dr_region_ok_for_watchpoint.
3217 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3218
3219 2014-06-19 Gary Benson <gbenson@redhat.com>
3220
3221 * i386-nat.c (i386_insert_hw_breakpoint): Use
3222 i386_insert_watchpoint.
3223 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3224
3225 2014-06-19 Gary Benson <gbenson@redhat.com>
3226
3227 * i386-nat.c (i386_dr_show): Renamed to
3228 i386_show_dr and made static. All uses updated.
3229 (i386_dr_length_and_rw_bits): Renamed to
3230 i386_length_and_rw_bits and made static.
3231 All uses updated.
3232 (i386_dr_insert_aligned_watchpoint): Renamed to
3233 i386_insert_aligned_watchpoint and made static.
3234 All uses updated.
3235 (i386_dr_remove_aligned_watchpoint): Renamed to
3236 i386_remove_aligned_watchpoint and made static.
3237 All uses updated.
3238 (i386_dr_update_inferior_debug_regs): Renamed to
3239 i386_update_inferior_debug_regs and made static.
3240 All uses updated.
3241 * nat/i386-dregs.h (i386_dr_show): Removed.
3242 (i386_dr_length_and_rw_bits): Likewise.
3243 (i386_dr_insert_aligned_watchpoint): Likewise.
3244 (i386_dr_remove_aligned_watchpoint): Likewise.
3245 (i386_dr_update_inferior_debug_regs): Likewise.
3246
3247 2014-06-19 Gary Benson <gbenson@redhat.com>
3248
3249 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3250 * configure: Regenerate.
3251 * config.in: Likewise.
3252 * main.c (signal.h): New include.
3253 (setup_alternate_signal_stack): New function.
3254 (captured_main): Call the above.
3255 * cp-support.c (signal.h): New include.
3256 (catch_demangler_crashes): New flag.
3257 (SIGJMP_BUF): New define.
3258 (SIGSETJMP): Likewise.
3259 (SIGLONGJMP): Likewise.
3260 (gdb_demangle_jmp_buf): New static global.
3261 (gdb_demangle_attempt_core_dump): Likewise.
3262 (gdb_demangle_signal_handler): New function.
3263 (gdb_demangle): If catch_demangler_crashes is set, install the
3264 above signal handler before calling bfd_demangle, and restore
3265 the original signal handler afterwards. Display the offending
3266 symbol and call demangler_warning the first time a segmentation
3267 fault is caught.
3268 (_initialize_cp_support): New maint set/show command.
3269
3270 2014-06-19 Gary Benson <gbenson@redhat.com>
3271
3272 * utils.h (resource_limit_kind): New enum.
3273 (can_dump_core): New declaration.
3274 (warn_cant_dump_core): Likewise.
3275 (dump_core): Likewise.
3276 * utils.c (dump_core): Made nonstatic. Added new
3277 parameter "limit_kind".
3278 (can_dump_core): Made nonstatic. Moved printing code to...
3279 (warn_cant_dump_core): New function.
3280 (can_dump_core_warn): Likewise.
3281 (internal_vproblem): Replace calls to can_dump_core with
3282 calls to can_dump_core_warn. Supply new argument to each.
3283
3284 2014-06-19 Gary Benson <gbenson@redhat.com>
3285
3286 * utils.h (demangler_vwarning): New declaration.
3287 (demangler_warning): Likewise.
3288 * utils.c (struct internal_problem)
3289 <user_settable_should_quit>: New field.
3290 <user_settable_should_dump_core>: Likewise
3291 (internal_error_problem): Add values for above new fields.
3292 (internal_warning_problem): Likewise.
3293 (demangler_warning_problem): New static global.
3294 (demangler_vwarning): New function.
3295 (demangler_warning): Likewise.
3296 (add_internal_problem_command): Selectively add commands.
3297 (_initialize_utils): New internal problem command.
3298 * maint.c (maintenance_demangler_warning): New function.
3299 (_initialize_maint_cmds): New command.
3300
3301 2014-06-18 Tom Tromey <tromey@redhat.com>
3302
3303 * f-valprint.c (info_common_command_for_block): Update.
3304 * symtab.h (struct general_symbol_info) <common_block>: Now
3305 const.
3306
3307 2014-06-18 Tom Tromey <tromey@redhat.com>
3308
3309 * symtab.h (struct symtab) <blockvector>: Now const.
3310 * ada-lang.c (ada_add_global_exceptions): Update.
3311 * buildsym.c (augment_type_symtab): Update.
3312 * dwarf2read.c (dw2_lookup_symbol): Update.
3313 * jit.c (finalize_symtab): Update.
3314 * jv-lang.c (add_class_symtab_symbol): Update.
3315 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3316 Update.
3317 * objfiles.c (objfile_relocate1): Update.
3318 * psymtab.c (lookup_symbol_aux_psymtabs)
3319 (maintenance_check_psymtabs): Update.
3320 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3321 Update.
3322 * spu-tdep.c (spu_catch_start): Update.
3323 * symmisc.c (dump_symtab_1): Update.
3324 * symtab.c (lookup_global_symbol_from_objfile)
3325 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3326 (basic_lookup_transparent_type_quick)
3327 (basic_lookup_transparent_type, find_pc_sect_symtab)
3328 (find_pc_sect_line, search_symbols): Update.
3329 * block.c (find_block_in_blockvector): Make "bl" const.
3330 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3331 const.
3332 (blockvector_contains_pc): Make "bv" const.
3333 (block_for_pc_sect): Update.
3334 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3335 (blockvector_contains_pc): Update.
3336 * breakpoint.c (resolve_sal_pc): Update.
3337 * inline-frame.c (block_starting_point_at): Update.
3338
3339 2014-06-18 Tom Tromey <tromey@redhat.com>
3340
3341 * completer.c (complete_line): Make "line_buffer" const.
3342 * completer.h (complete_line): Update.
3343
3344 2014-06-18 Tom Tromey <tromey@redhat.com>
3345
3346 * symtab.c (add_macro_name): Remove unneeded cast.
3347
3348 2014-06-18 Tom Tromey <tromey@redhat.com>
3349
3350 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3351 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3352
3353 2014-06-18 Tom Tromey <tromey@redhat.com>
3354
3355 * probe.c (info_probes_for_ops): Make "arg" const.
3356 * probe.h (info_probes_for_ops): Update.
3357
3358 2014-06-18 Tom Tromey <tromey@redhat.com>
3359
3360 * varobj.c (varobj_create): Update.
3361 * valops.c (value_of_this): Update.
3362 * tracepoint.c (add_local_symbols, scope_info): Update.
3363 * symtab.h (struct general_symbol_info) <block>: Now const.
3364 * symtab.c (skip_prologue_sal)
3365 (default_make_symbol_completion_list_break_on)
3366 (skip_prologue_using_sal): Update.
3367 * stack.h (iterate_over_block_locals)
3368 (iterate_over_block_local_vars): Update.
3369 * stack.c (print_frame_args): Update.
3370 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3371 parameter const.
3372 (get_selected_block): Make return type const.
3373 * python/py-frame.c (frapy_block): Update.
3374 * python/py-block.c (gdbpy_block_for_pc): Update.
3375 * p-exp.y (%union) <bval>: Now const.
3376 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3377 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3378 * m2-exp.y (%union) <bval>: Now const.
3379 * linespec.c (get_current_search_block): Make return type const.
3380 (create_sals_line_offset, find_label_symbols): Update.
3381 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3382 Update.
3383 (block_starting_point_at): Make "block" const.
3384 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3385 (check_exception_resume): Update.
3386 * guile/scm-frame.c (gdbscm_frame_block): Update.
3387 * guile/scm-block.c (gdbscm_lookup_block): Update.
3388 * frame.h (get_frame_block): Update.
3389 (get_selected_block): Make return type const.
3390 * frame.c (frame_id_inner): Update.
3391 * f-valprint.c (info_common_command_for_block)
3392 (info_common_command): Update.
3393 * dwarf2loc.c (dwarf2_find_location_expression)
3394 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3395 (locexpr_describe_location_piece): Update.
3396 * c-exp.y (%union) <bval>: Now const.
3397 * breakpoint.c (resolve_sal_pc): Update.
3398 * blockframe.c (get_frame_block):Make return type const.
3399 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3400 (block_innermost_frame): Update.
3401 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3402 (block_for_pc, block_for_pc_sect): Update.
3403 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3404 'pblock' const.
3405 (block_for_pc_sect, block_for_pc): Make return type const.
3406 * ax-gdb.c (gen_expr): Update.
3407 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3408 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3409 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3410 (ada_read_var_value): Update.
3411 * ada-exp.y (struct name_info) <block>: Now const.
3412 (%union): Likewise.
3413 (block_lookup): Constify.
3414
3415 2014-06-18 Gary Benson <gbenson@redhat.com>
3416
3417 * nat/i386-dregs.h: New file.
3418 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3419 * i386-nat.h (i386-dregs.h): New include.
3420 (DR_FIRSTADDR): Now in i386-dregs.h.
3421 (DR_LASTADDR): Likewise.
3422 (DR_NADDR): Likewise.
3423 (DR_STATUS): Likewise.
3424 (DR_CONTROL): Likewise.
3425 (i386_debug_reg_state): Likewise.
3426 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3427
3428 2014-06-18 Don Breazeal <donb@codesourcery.com>
3429
3430 * breakpoint.c (set_longjmp_breakpoint): Call
3431 momentary_breakpoint_from_master with additional argument.
3432 (set_longjmp_breakpoint_for_call_dummy): Call
3433 momentary_breakpoint_from_master with additional argument.
3434 (set_std_terminate_breakpoint): Call
3435 momentary_breakpoint_from_master with additional argument.
3436 (momentary_breakpoint_from_master): Add argument to function
3437 definition and use it to initialize structure member flag.
3438 (clone_momentary_breakpoint): Call
3439 momentary_breakpoint_from_master with additional argument.
3440 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3441 member flags set in momentary_breakpoint_from_master.
3442
3443 2014-06-18 Gary Benson <gbenson@redhat.com>
3444
3445 * i386-nat.c (i386_show_dr): Renamed to
3446 i386_dr_show and made nonstatic. All uses updated.
3447 (i386_length_and_rw_bits): Renamed to
3448 i386_dr_length_and_rw_bits and made nonstatic.
3449 All uses updated.
3450 (i386_insert_aligned_watchpoint): Renamed to
3451 i386_dr_insert_aligned_watchpoint and made nonstatic.
3452 All uses updated.
3453 (i386_remove_aligned_watchpoint): Renamed to
3454 i386_dr_remove_aligned_watchpoint and made nonstatic.
3455 All uses updated.
3456 (i386_update_inferior_debug_regs): Renamed to
3457 i386_dr_update_inferior_debug_regs and made nonstatic.
3458 All uses updated.
3459
3460 2014-06-18 Gary Benson <gbenson@redhat.com>
3461
3462 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3463 (i386_dr_low_can_set_control): Likewise.
3464 (i386_dr_low_set_addr): Likewise.
3465 (i386_dr_low_set_control): Likewise.
3466 (i386_dr_low_get_addr): Likewise.
3467 (i386_dr_low_get_status): Likewise.
3468 (i386_dr_low_get_control): Likewise.
3469 (i386_insert_aligned_watchpoint): Use new macros.
3470 (i386_update_inferior_debug_regs): Likewise.
3471 (i386_stopped_data_address): Likewise.
3472
3473 2014-06-18 Gary Benson <gbenson@redhat.com>
3474
3475 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3476 New parameter. All uses updated.
3477
3478 2014-06-18 Gary Benson <gbenson@redhat.com>
3479
3480 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3481 All uses updated.
3482
3483 2014-06-18 Gary Benson <gbenson@redhat.com>
3484
3485 * i386-nat.c (debug_printf): New macro.
3486 (i386_get_debug_register_length): Likewise.
3487 (TARGET_HAS_DR_LEN_8): Use above macro.
3488 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3489 and printf_unfiltered. Use phex to format values.
3490
3491 2014-06-18 Gary Benson <gbenson@redhat.com>
3492
3493 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3494 Make const.
3495
3496 2014-06-18 Gary Benson <gbenson@redhat.com>
3497
3498 * i386-nat.c: Comment changes.
3499
3500 2014-06-18 Gary Benson <gbenson@redhat.com>
3501
3502 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3503
3504 2014-06-18 Gary Benson <gbenson@redhat.com>
3505
3506 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3507 (i386_insert_aligned_watchpoint): Likewise.
3508 (i386_remove_aligned_watchpoint): Likewise.
3509 (i386_handle_nonaligned_watchpoint): Likewise.
3510
3511 2014-06-18 Gary Benson <gbenson@redhat.com>
3512
3513 * i386-nat.c: Whitespace changes.
3514
3515 2014-06-17 Samuel Bronson <naesten@gmail.com>
3516
3517 * MAINTAINERS: Update Roland McGrath's email address.
3518 Thanks to Sergio Durigan Junior for pointing out that he left
3519 Red Hat a while ago, and giving me a current address.
3520
3521 2014-06-17 Tom Tromey <tromey@redhat.com>
3522
3523 * utils.h (savestring): Remove declaration.
3524
3525 2014-06-17 Tom Tromey <tromey@redhat.com>
3526
3527 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3528
3529 2014-06-16 Keith Seitz <keiths@redhat.com>
3530
3531 PR mi/15863
3532 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3533 to update the varobj if inferior_ptid is null_ptid.
3534
3535 2014-06-16 Tom Tromey <tromey@redhat.com>
3536
3537 * target.h (struct target_ops) <to_info_proc>: Make parameter
3538 const.
3539 (target_info_proc): Update.
3540 * target.c (target_info_proc): Make "args" const.
3541 * procfs.c (procfs_info_proc): Update.
3542 * linux-tdep.c (linux_info_proc): Update.
3543 (linux_core_info_proc_mappings): Make "args" const.
3544 (linux_core_info_proc): Update.
3545 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3546 * gdbarch.c: Rebuild.
3547 * gdbarch.h: Rebuild.
3548 * corelow.c (core_info_proc): Update.
3549
3550 2014-06-16 Tom Tromey <tromey@redhat.com>
3551
3552 * target.h (struct target_ops) <to_disconnect>: Make parameter
3553 const.
3554 (target_disconnect): Update.
3555 * target.c (target_disconnect): Make "args" const.
3556 * target-delegates.c: Rebuild.
3557 * remote.c (remote_disconnect): Update.
3558 * record.h (record_disconnect): Update.
3559 * record.c (record_disconnect): Update.
3560 * inf-child.c (inf_child_disconnect): Update.
3561
3562 2014-06-16 Tom Tromey <tromey@redhat.com>
3563
3564 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3565 * target.c (debug_to_rcmd, default_rcmd): Update.
3566 * target-delegates.c: Rebuild.
3567 * remote.c (remote_rcmd): Update.
3568 * monitor.c (monitor_rcmd): Update.
3569
3570 2014-06-16 Pedro Alves <palves@redhat.com>
3571
3572 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3573 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3574 have OBJF_SHARED set.
3575 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3576 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3577 instead of OBJF_USERLOADED.
3578 * objfiles.h (OBJF_SHARED): Update comment.
3579 (userloaded_objfile_contains_address_p): Rename to ...
3580 (shared_objfile_contains_address_p): ... this, and update
3581 comments.
3582 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3583 new objfile.
3584 (remove_symbol_file_command): Skip objfiles that don't have
3585 OBJF_SHARED set.
3586
3587 2014-06-16 Tom Tromey <tromey@redhat.com>
3588
3589 * minsyms.h (prim_record_minimal_symbol)
3590 (prim_record_minimal_symbol_and_info): Update comments.
3591
3592 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3593
3594 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3595 or --without-guile, according to how GDB was built.
3596
3597 2014-06-13 Tom Tromey <tromey@redhat.com>
3598
3599 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3600 to help_list.
3601 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3602 to help_list.
3603 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3604 help_list.
3605 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3606 help_list.Pass all_commands, not -1, to help_list.
3607 * cli/cli-dump.c (dump_command, append_command)
3608 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3609 (binary_dump_command, binary_append_command): Pass all_commands,
3610 not -1, to help_list.
3611 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3612 -1, to help_list.
3613 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3614 -1, to help_list.
3615 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3616 help_list.
3617 * top.c (set_history): Pass all_commands, not -1, to help_list.
3618 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3619 all_commands, not -1, to help_list.
3620 * symfile.c (overlay_command): Pass all_commands, not -1, to
3621 help_list.
3622 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3623 help_list.
3624 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3625 help_list.
3626 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3627 -1, to help_list.
3628 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3629 not -1, to help_list.
3630 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3631 not -1, to help_list.
3632 * maint.c (maintenance_command, maintenance_info_command)
3633 (maintenance_print_command, maintenance_set_cmd): Pass
3634 all_commands, not -1, to help_list.
3635 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3636 help_list.
3637 * language.c (set_check): Pass all_commands, not -1, to help_list.
3638 * infcmd.c (unset_command): Pass all_commands, not -1, to
3639 help_list.
3640 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3641 help_list.
3642 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3643 help_list.
3644 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3645 help_list.
3646 * breakpoint.c (save_command): Pass all_commands, not -1, to
3647 help_list.
3648 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3649 all_commands, not -1, to help_list.
3650
3651 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3652
3653 * regcache.c (struct register_to_invalidate): New structure.
3654 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3655 functions.
3656 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3657
3658 2014-06-12 Yao Qi <yao@codesourcery.com>
3659
3660 * varobj.c (varobj_get_num_children): Call
3661 varobj_is_dynamic_p.
3662 (varobj_list_children): Likewise.
3663 (varobj_update): Likewise. Update comments.
3664
3665 2014-06-12 Yao Qi <yao@codesourcery.com>
3666
3667 * varobj.c (varobj_pretty_printed_p): Rename to ...
3668 (varobj_is_dynamic_p): ... this. New function.
3669 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3670 (varobj_is_dynamic_p): Declare.
3671 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3672 (mi_print_value_p, varobj_update_one): Likewise.
3673
3674 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3675 Yao Qi <yao@codesourcery.com>
3676
3677 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3678 (varobj_get_iterator): Wrap up code for pretty-printer by
3679 "#if HAVE_PYTHON" and "#endif".
3680 (update_dynamic_varobj_children): Likewise.
3681
3682 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3683 Yao Qi <yao@codesourcery.com>
3684
3685 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3686 gdb_python_initialized is false. Move some code from varobj.c.
3687 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3688 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3689 (struct varobj_item): Moved to varobj-iter.h".
3690 (varobj_clear_saved_item): New function.
3691 (update_dynamic_varobj_children): Move python-related code to
3692 py-varobj.c.
3693 (free_variable): Call varobj_clear_saved_item and
3694 varobj_iter_delete.
3695
3696 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3697 Yao Qi <yao@codesourcery.com>
3698
3699 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3700 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3701 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3702 (py-varobj.o): New rule.
3703 * python/py-varobj.c: New file.
3704 * python/python-internal.h (py_varobj_get_iterator): Declare.
3705 * varobj-iter.h: New file.
3706 * varobj.c: Include "varobj-iter.h"
3707 (struct varobj) <child_iter>: Change its type from "PyObject *"
3708 to "struct varobj_iter *".
3709 <saved_item>: Likewise.
3710 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3711 [HAVE_PYTHON] (varobj_get_iterator): New function.
3712 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3713 python-specific code to python/py-varobj.c.
3714 (install_visualizer): Call varobj_iter_delete instead of
3715 Py_XDECREF.
3716 * varobj.h (varobj_ensure_python_env): Declare.
3717
3718 2014-06-12 Yao Qi <yao@codesourcery.com>
3719
3720 * varobj.c (struct varobj_item): New structure.
3721 (create_child_with_value): Update declaration.
3722 (varobj_add_child): Replace arguments 'name' and 'value' with
3723 'item'. All callers updated.
3724 (install_dynamic_child): Likewise.
3725 (update_dynamic_varobj_children): Likewise.
3726 (varobj_add_child): Likewise.
3727 (create_child_with_value): Likewise.
3728
3729 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3730
3731 * NEWS: Create a new section for the next release branch.
3732 Rename the section of the current branch, now that it has
3733 been cut.
3734
3735 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3736
3737 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3738 * version.in: Bump version to 7.8.50.DATE-cvs.
3739
3740 2014-06-11 Pedro Alves <palves@redhat.com>
3741
3742 PR remote/17028
3743 * ser-mingw.c (net_windows_socket_check_pending): New function.
3744 (net_windows_select_thread): Ignore spurious wakeups. Use
3745 net_windows_socket_check_pending.
3746 (net_windows_wait_handle): Check for pending events with
3747 ioctlsocket, through net_windows_socket_check_pending, instead of
3748 checking the socket's event.
3749
3750 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3751
3752 * python/python-internal.h (gdb_PyObject_GetAttrString)
3753 (gdb_PyObject_HasAttrString): New inline function definitions.
3754 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3755 char * of the second argument to PyObject_GetAttrString.
3756
3757 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3758
3759 * serial.c (serial_write): Fix index of character to be printed
3760 in call to serial_logchar when serial debug traces are enabled.
3761
3762 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3763
3764 * gdbtypes (resolve_dynamic_range): Add function description.
3765
3766 2014-06-09 Pedro Alves <palves@redhat.com>
3767
3768 * linux-nat.c (linux_child_follow_fork): Initialize status with
3769 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3770 inner block. Only pass the signal to PTRACE_DETACH if in pass
3771 state.
3772
3773 2014-06-09 Gary Benson <gbenson@redhat.com>
3774
3775 * common/signals.c (gdb_signal_from_host): Reorder to separate
3776 the always-available ANSI-standard signals from the signals that
3777 require checking.
3778 (do_gdb_signal_to_host): Likewise.
3779 * proc-events.c (signal_table): Likewise.
3780
3781 2014-06-08 Hui Zhu <hui@codesourcery.com>
3782
3783 * common/linux-ptrace.c (linux_disable_event_reporting): New
3784 function.
3785 * common/linux-ptrace.h (linux_disable_event_reporting): New
3786 declaration.
3787 * linux-nat.c (linux_child_follow_fork): Do a single step before
3788 detach.
3789
3790 2014-06-07 Keith Seitz <keiths@redhat.com>
3791
3792 Revert:
3793 PR c++/16253
3794 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3795 from symbol_matches_domain in symtab.c. All local callers
3796 of symbol_matches_domain updated.
3797 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3798 search STRUCT_DOMAIN.
3799 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3800 independently. standard_lookup will do that automatically.
3801 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3802 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3803 (cp_lookup_symbol_in_namespace): Likewise.
3804 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3805 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3806 may return a STRUCT_DOMAIN match.
3807 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3808 * cp-support.c: Include language.h.
3809 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3810 VAR_DOMAIN.
3811 * psymtab.c (match_partial_symbol): Compare the requested
3812 domain with the symbol's domain directly.
3813 (lookup_partial_symbol): Likewise.
3814 * symtab.c (lookup_symbol_in_language): Explain when/why
3815 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3816 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3817 appropriate languages.
3818 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3819 and moved to ada-lang.c
3820 (lookup_block_symbol): Explain that this function only returns
3821 symbol matching the requested DOMAIN.
3822 Compare the requested domain with the symbol's domain directly.
3823 (iterate_over_symbols): Compare the requested domain with the
3824 symbol's domain directly.
3825 * symtab.h (symbol_matches_domain): Remove.
3826
3827 2014-06-06 Doug Evans <xdje42@gmail.com>
3828
3829 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3830 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3831 (gdbscm_guile_version_is_at_least): Declare.
3832 (gdbscm_scm_string_to_int): Declare.
3833 * guile/guile.c (gdbscm_guile_major_version): New global.
3834 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3835 (guile_datadir): New static global.
3836 (gdbscm_guile_data_directory): New function.
3837 (initialize_scheme_side): Update.
3838 (misc_guile_functions): Add guile-data-directory.
3839 (initialize_gdb_module): Fetch guile version number.
3840 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3841 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3842 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3843 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3844 comments.
3845 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3846 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3847 * guile/scm-value.c (gdbscm_value_to_string): Only call
3848 scm_port_conversion_strategy if Guile version >= 2.0.6.
3849
3850 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3851
3852 * main.c (print_gdb_help): Add -q and --silent.
3853
3854 2014-06-06 Gary Benson <gbenson@redhat.com>
3855
3856 * common/signals.c: Remove preprocessor conditionals for
3857 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3858 SIGSEGV and SIGTERM.
3859 * proc-events.c: Likewise.
3860
3861 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3862
3863 * symfile.c (symfile_free_objfile): Remove restriction to
3864 OBJF_USERLOADED.
3865 * symfile-mem.c (symbol_file_add_from_memory): Call
3866 add_target_sections_of_objfile.
3867
3868 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3869
3870 * guile/scm-value.c (gdbscm_history_append_x): Use
3871 'vlscm_get_value_smob_arg_unsafe' instead of
3872 'vlscm_scm_to_value'.
3873
3874 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3875
3876 PR mi/15806
3877 * utils.c (printchar): Don't escape at all if quoter is NUL.
3878 Update function documentation to clarify effect of parameter
3879 QUOTER.
3880 * remote.c (escape_buffer): Pass '\\' as the quoter to
3881 fputstrn_unfiltered.
3882 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3883 generate the output.
3884 (mi_solib_unloaded): Same.
3885
3886 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3887
3888 * development.sh: Delete.
3889 * Makefile.in (config.status): Adjust dependency on development.sh.
3890 * configure.ac: Adjust development.sh source call.
3891 * configure: Regenerate.
3892
3893 2014-06-04 Doug Evans <xdje42@gmail.com>
3894
3895 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3896 is_scheme_bkpt, spec.
3897 (bpscm_make_breakpoint_smob): Initialize new members.
3898 (gdbscm_create_breakpoint_x): Split into two ...
3899 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3900 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3901 (scheme_function breakpoint_functions): Update.
3902 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3903 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3904 register-breakpoint!.
3905
3906 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3907
3908 PR server/17023
3909 * mem-break.c (z_type_supported): Return zero if
3910 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3911
3912 2014-06-04 Tom Tromey <tromey@redhat.com>
3913
3914 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3915 value_from_contents_and_address_unresolved.
3916 (ada_template_to_fixed_record_type_1): Likewise.
3917 (ada_which_variant_applies): Likewise.
3918 * value.h (value_from_contents_and_address_unresolved): Declare.
3919 * value.c (value_from_contents_and_address_unresolved): New
3920 function.
3921 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3922 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3923 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3924
3925 2014-06-04 Tom Tromey <tromey@redhat.com>
3926
3927 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3928
3929 2014-06-04 Tom Tromey <tromey@redhat.com>
3930
3931 * procfs.c (procfs_attach): Make "args" const.
3932 * windows-nat.c (windows_attach): Make "args" const.
3933 * nto-procfs.c (procfs_attach): Make "args" const.
3934 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3935 * go32-nat.c (go32_attach): Make "args" const.
3936 * gnu-nat.c (gnu_attach): Make "args" const.
3937 * darwin-nat.c (darwin_attach): Make "args" const.
3938 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3939 * linux-nat.c (linux_nat_attach): Make "args" const.
3940 * remote.c (extended_remote_attach_1, extended_remote_attach):
3941 Make "args" const.
3942 * target.h (struct target_ops) <to_attach>: Make "args" const.
3943 (find_default_attach): Likewise.
3944 * utils.c (parse_pid_to_attach): Make "args" const.
3945 * utils.h (parse_pid_to_attach): Update.
3946
3947 2014-06-04 Tom Tromey <tromey@redhat.com>
3948
3949 * target-delegates.c: Rebuild.
3950 * target.c (default_thread_address_space): New function.
3951 (target_thread_address_space): Simplify.
3952 * target.h (struct target_ops) <to_thread_address_space>: Add
3953 TARGET_DEFAULT_FUNC.
3954
3955 2014-06-04 Doug Evans <xdje42@gmail.com>
3956
3957 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3958
3959 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3960
3961 * record-btrace.c: Include event-loop.h and inf-loop.h.
3962 (record_btrace_resume_exec_dir)
3963 (record_btrace_async_inferior_event_handler)
3964 (record_btrace_handle_async_inferior_event): New.
3965 (record_btrace_open): Create async event handler.
3966 (record_btrace_close): Delete async event handler.
3967 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3968 Mark async event handler.
3969 (record_btrace_execution_direction): New.
3970 (init_record_btrace_ops): Initialize to_execution_direction.
3971
3972 2014-06-03 Doug Evans <xdje42@gmail.com>
3973
3974 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3975 (gdbscm_make_parameter): Ditto.
3976
3977 2014-06-03 Doug Evans <dje@google.com>
3978
3979 * exec.c (exec_close_1): Call clear_section_table instead of
3980 resize_section_table.
3981 (clear_section_table): New function.
3982 (resize_section_table): Make static. Rename arg num_added to
3983 adjustment.
3984 * exec.h (clear_section_table): Declare.
3985 (resize_section_table): Delete.
3986 * progspace.c (release_program_space): Call clear_section_table
3987 instead of resize_section_table.
3988
3989 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3990
3991 * NEWS (Python Scripting): Add entry about the new xmethods
3992 feature.
3993
3994 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3995
3996 * python/py-xmethods.c: New file.
3997 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3998 (objfpy_dealloc): XDECREF on the new xmethods field.
3999 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4000 field.
4001 (objfpy_get_xmethods): New function.
4002 (objfile_getset): New entry 'xmethods'.
4003 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4004 (pspy_dealloc): XDECREF on the new xmethods field.
4005 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4006 field.
4007 (pspy_get_xmethods): New function.
4008 (pspace_getset): New entry 'xmethods'.
4009 * python/python-internal.h: Add declarations for new functions.
4010 * python/python.c (_initialize_python): Invoke
4011 gdbpy_initialize_xmethods.
4012 * python/lib/gdb/__init__.py (xmethods): New
4013 attribute.
4014 * python/lib/gdb/xmethod.py: New file.
4015 * python/lib/gdb/command/xmethods.py: New file.
4016
4017 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4018
4019 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4020 best match method returned by find_overload_match is an xmethod.
4021 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4022 the best matching operator returned by find_overload_match is an
4023 xmethod.
4024 * valops.c: #include "extension.h".
4025 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4026 Return void. The list of matching source methods is returned in
4027 "fn_list" and a vector of matching debug method workers is
4028 returned in "xm_worker_vec". Update all callers.
4029 (value_find_oload_method_list): Likewise.
4030 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4031 non-NULL, then the index of the best matching method in this
4032 vector is returned. Update all callers.
4033 (find_overload_match): Include xmethods while performing overload
4034 resolution.
4035
4036 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4037
4038 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4039 * extension-priv.h (struct extension_language_ops): Add the
4040 xmethod interface.
4041 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4042 get_matching_xmethod_workers, get_xmethod_argtypes,
4043 invoke_xmethod, free_xmethod_worker,
4044 free_xmethod_worker_vec): New functions.
4045 * extension.h: #include "common/vec.h".
4046 New function declarations.
4047 (struct xmethod_worker): New struct.
4048 (VEC (xmethod_worker_ptr)): New vector type.
4049 (xmethod_worker_ptr): New typedef.
4050 (xmethod_worker_vec): Likewise.
4051 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4052 builtin_type.
4053 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4054 (struct builtin_type): New field "xmethod".
4055 * valarith.c (value_ptradd): Assert that the value argument is not
4056 lval_xcallable.
4057 * valops.c (value_must_coerce_to_target): Return 0 for
4058 lval_xcallable values.
4059 * value.c (struct value): New field XM_WORKER in the field
4060 LOCATION.
4061 (value_address, value_raw_address): Return 0 for lval_xcallable
4062 values.
4063 (set_value_address): Assert that the value is not an
4064 lval_xcallable.
4065 (value_free): Free the associated xmethod worker when freeing
4066 lval_xcallable values.
4067 (set_value_component_location): Assert that the WHOLE value is not
4068 lval_xcallable.
4069 (value_of_xmethod, call_xmethod): New functions.
4070 * value.h: Declare "struct xmethod_worker".
4071 Declare new functions value_of_xmethod, call_xmethod.
4072
4073 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4074 Pedro Alves <palves@redhat.com>
4075
4076 PR breakpoints/17000
4077 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4078 New function, extracted from software_breakpoint_inserted_here_p.
4079 (software_breakpoint_inserted_here_p): Replace factored out code
4080 by call to find_non_raw_software_breakpoint_inserted_here.
4081 (bp_target_info_copy_insertion_state): New function.
4082 (bkpt_insert_location): Handle the case of a single-step
4083 breakpoint already inserted at the same address.
4084 (bkpt_remove_location): Handle the case of a single-step
4085 breakpoint still inserted at the same address.
4086 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4087 breakpoint already inserted at the same address.
4088 (deprecated_remove_raw_breakpoint): Handle the case of a
4089 non-raw breakpoint still inserted at the same address.
4090 (find_single_step_breakpoint): New function, extracted from
4091 single_step_breakpoint_inserted_here_p.
4092 (find_single_step_breakpoint): New function,
4093 factored out from single_step_breakpoint_inserted_here_p.
4094 (single_step_breakpoint_inserted_here_p): Reimplement.
4095
4096 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4097
4098 Pushed by Joel Brobecker <brobecker@adacore.com>
4099 * source.c (show_substitute_path_command): Fix display of matching
4100 substitution rules.
4101
4102 2014-06-03 Gary Benson <gbenson@redhat.com>
4103
4104 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4105
4106 2014-06-02 Doug Evans <xdje42@gmail.com>
4107
4108 Add parameter support for Guile.
4109 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4110 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4111 (scm-param.o): New rule.
4112 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4113 (gdbscm_misc_error): Declare.
4114 (gdbscm_canonicalize_command_name): Declare.
4115 (gdbscm_scm_to_host_string): Declare.
4116 (gdbscm_scm_from_host_string): Declare.
4117 (gdbscm_initialize_parameters): Declare.
4118 * guile/guile.c (initialize_gdb_module): Call
4119 gdbscm_initialize_parameters.
4120 * guile/lib/gdb.scm: Export parameter symbols.
4121 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4122 cmdscm_canonicalize_name and made public. All callers updated.
4123 * guile/scm-exception.c (gdbscm_misc_error): New function.
4124 * guile/scm-param.c: New file.
4125 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4126 (gdbscm_scm_to_host_string): New function.
4127 (gdbscm_scm_from_host_string): New function.
4128 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4129
4130 2014-06-02 Doug Evans <xdje42@gmail.com>
4131
4132 Add command support for Guile.
4133 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4134 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4135 (scm-cmd.o): New rule.
4136 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4137 (gdbscm_user_error_p): Declare.
4138 (gdbscm_parse_command_name): Declare.
4139 (gdbscm_valid_command_class_p): Declare.
4140 (gdbscm_initialize_commands): Declare.
4141 * guile/guile.c (initialize_gdb_module): Call
4142 gdbscm_initialize_commands.
4143 * guile/lib/gdb.scm: Export command symbols.
4144 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4145 (throw-user-error): New function.
4146 * guile/scm-cmd.c: New file.
4147 * guile/scm-exception.c (user_error_symbol): New static global.
4148 (gdbscm_user_error_p): New function.
4149 (gdbscm_initialize_exceptions): Set user_error_symbol.
4150 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4151
4152 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4153
4154 * top.c (command_loop): Handle comments here...
4155 (command_line_input): ... not here.
4156
4157 2014-06-02 Doug Evans <xdje42@gmail.com>
4158
4159 Add progspace support for Guile.
4160 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4161 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4162 (scm-progspace.o): New rule.
4163 * guile/guile-internal.h (pspace_smob): New typedef.
4164 (psscm_pspace_smob_pretty_printers): Declare.
4165 (psscm_pspace_smob_from_pspace): Declare.
4166 (psscm_scm_from_pspace): Declare.
4167 * guile/guile.c (initialize_gdb_module): Call
4168 gdbscm_initialize_pspaces.
4169 * guile/lib/gdb.scm: Export progspace symbols.
4170 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4171 support.
4172 (append-pretty-printer!): Ditto.
4173 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4174 Implement.
4175 * guile/scm-progspace.c: New file.
4176
4177 2014-06-03 Alan Modra <amodra@gmail.com>
4178
4179 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4180 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4181
4182 2014-06-02 Doug Evans <dje@google.com>
4183
4184 Add support for skeletonless type units.
4185 * dwarf2read.c (struct dwarf2_per_objfile): New member
4186 n_allocated_type_units.
4187 (struct dwarf2_per_objfile) <tu_stats>: New member
4188 nr_all_type_units_reallocs.
4189 (create_signatured_type_table_from_index): Initialize
4190 n_allocated_type_units
4191 (create_all_type_units): Ditto.
4192 (add_type_unit): Move up in file. New arg slot.
4193 All callers updated. Increase space for all_type_units more
4194 efficiently.
4195 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4196 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4197 (lookup_dwp_signatured_type): Ditto.
4198 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4199 All callers updated.
4200 (build_type_psymtabs_1): Leave type_unit_groups as
4201 NULL if no TUs present.
4202 (print_tu_stats): New function.
4203 (process_skeletonless_type_unit): New function.
4204 (process_dwo_file_for_skeletonless_type_units): New
4205 function.
4206 (process_skeletonless_type_units): New function.
4207 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4208 Call print tu_stats if debugging enabled.
4209
4210 2014-06-02 Pedro Alves <palves@redhat.com>
4211
4212 * breakpoint.c (build_target_command_list): Don't build a command
4213 list if we have any duplicate location that isn't a dprintf.
4214
4215 2014-06-02 Pedro Alves <palves@redhat.com>
4216
4217 * breakpoint.c (dprintf_breakpoint_hit): New function.
4218 (initialize_breakpoint_ops): Install it as dprintf's
4219 breakpoint_hit method.
4220
4221 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4222
4223 * source.c (substitute_path_rule_matches): Simplify using
4224 filename_ncmp instead of FILENAME_CMP.
4225
4226 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4227
4228 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4229
4230 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4231
4232 * configure.ac: When Guile is available, check for the
4233 availability of 'scm_new_smob'.
4234 * configure, config.h.in: Regenerate.
4235 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4236 function.
4237
4238 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4239
4240 * frame.c (struct frame_info): Add stop_string field.
4241 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4242 (get_prev_frame_always): Old content moved into
4243 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4244 TRY_CATCH, handle MEMORY_ERROR exceptions.
4245 (frame_stop_reason_string): New function definition.
4246 * frame.h (unwind_stop_reason_to_string): Extend comment to
4247 mention frame_stop_reason_string.
4248 (frame_stop_reason_string): New function declaration.
4249 * stack.c (frame_info): Switch to frame_stop_reason_string.
4250 (backtrace_command_1): Switch to frame_stop_reason_string.
4251 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4252 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4253 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4254
4255 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4256
4257 * frame.c (frame_stop_reason_string): Rename to ...
4258 (unwind_stop_reason_to_string): this.
4259 * frame.h (frame_stop_reason_string): Rename to ...
4260 (unwind_stop_reason_to_string): this.
4261 * stack.c (frame_info): Update call to frame_stop_reason_string.
4262 (backtrace_command_1): Likewise.
4263 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4264 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4265
4266 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4267
4268 * frame.c (remove_prev_frame): New function.
4269 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4270 remove_prev_frame.
4271
4272 2014-05-29 Pedro Alves <palves@redhat.com>
4273
4274 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4275 and make it const. When a single-step decays to a continue,
4276 clear 'step', not 'hw_step'. Pass whether the caller wanted
4277 to step to user_visible_resume_ptid, not what we ask the
4278 target to do.
4279
4280 2014-05-29 Pedro Alves <palves@redhat.com>
4281
4282 * infrun.c (process_event_stop_test, handle_step_into_function)
4283 (handle_step_into_function_backward): Adjust.
4284 Don't set the even thread's stop_step and call stop_waiting before
4285 calling end_stepping_range. Instead do that ...
4286 (end_stepping_range): ... here. Take an ecs pointer parameter.
4287
4288 2014-05-29 Pedro Alves <palves@redhat.com>
4289
4290 * infrun.c (stop_stepping): Rename to ...
4291 (stop_waiting): ... this.
4292 (proceed): Update comment.
4293 (process_event_stop_test, handle_inferior_event)
4294 (handle_signal_stop, handle_step_into_function)
4295 (handle_step_into_function_backward): Update.
4296
4297 2014-05-29 Pedro Alves <palves@redhat.com>
4298
4299 * infcall.c (run_inferior_call): Don't check whether the current
4300 thread is running after the proceed call.
4301
4302 2014-05-29 Pedro Alves <palves@redhat.com>
4303 Tom Tromey <tromey@redhat.com>
4304
4305 * NEWS: Mention "maint set target-async", "set mi-async", and that
4306 background execution commands are now always available.
4307 * target.h (target_async_permitted): Update comment.
4308 * target.c (target_async_permitted, target_async_permitted_1):
4309 Default to 1.
4310 (set_target_async_command): Rename to ...
4311 (maint_set_target_async_command): ... this.
4312 (show_target_async_command): Rename to ...
4313 (maint_show_target_async_command): ... this.
4314 (_initialize_target): Adjust.
4315 * infcmd.c (prepare_execution_command): Make extern.
4316 * inferior.h (prepare_execution_command): Declare.
4317 * infrun.c (set_observer_mode): Leave target async alone.
4318 * mi/mi-interp.c (mi_interpreter_init): Install
4319 mi_on_sync_execution_done as sync_execution_done observer.
4320 (mi_on_sync_execution_done): New function.
4321 (mi_execute_command_input_handler): Don't print the prompt if we
4322 just started a synchronous command with an async target.
4323 (mi_on_resume): Check sync_execution before printing prompt.
4324 * mi/mi-main.h (mi_async_p): Declare.
4325 * mi/mi-main.c: Include gdbcmd.h.
4326 (mi_async_p): New function.
4327 (mi_async, mi_async_1): New globals.
4328 (set_mi_async_command, show_mi_async_command, mi_async): New
4329 functions.
4330 (exec_continue): Call prepare_execution_command.
4331 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4332 (mi_execute_async_cli_command): Use mi_async_p.
4333 (_initialize_mi_main): Install "set mi-async". Make
4334 "target-async" a deprecated alias.
4335
4336 2014-05-29 Pedro Alves <palves@redhat.com>
4337
4338 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4339 (_initialize_cli_interp): Adjust.
4340 * event-loop.c: Include "observer.h".
4341 (start_event_loop): Notify 'command_error' observers instead of
4342 calling display_gdb_prompt. Remove FIXME comment.
4343 * event-top.c (display_gdb_prompt): Remove call into the
4344 interpreters.
4345 * inf-loop.c: Include "observer.h".
4346 (inferior_event_handler): Notify 'command_error' observers instead
4347 of calling display_gdb_prompt.
4348 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4349 observers instead of calling display_gdb_prompt.
4350 * interps.c (interp_set): Don't call display_gdb_prompt.
4351 (current_interp_display_prompt_p): Delete.
4352 * interps.h (interp_prompt_p): Delete declaration.
4353 (interp_prompt_p_ftype): Delete.
4354 (struct interp_procs) <prompt_proc_p>: Delete field.
4355 (current_interp_display_prompt_p): Delete declaration.
4356 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4357 (_initialize_mi_interp): Adjust.
4358 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4359 'command_error' observers.
4360 (tui_on_sync_execution_done, tui_on_command_error): New
4361 functions.
4362 (tui_display_prompt_p): Delete.
4363 (_initialize_tui_interp): Adjust.
4364
4365 2014-05-29 Pedro Alves <palves@redhat.com>
4366
4367 PR gdb/13860
4368 * cli/cli-interp.c: Include infrun.h and observer.h.
4369 (cli_uiout, cli_interp): New globals.
4370 (cli_on_signal_received, cli_on_end_stepping_range)
4371 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4372 functions.
4373 (cli_interpreter_init): Install them as 'end_stepping_range',
4374 'signal_received' 'signal_exited', 'exited' and 'no_history'
4375 observers.
4376 (_initialize_cli_interp): Remove cli_interp local.
4377 * infrun.c (handle_inferior_event): Call the several stop reason
4378 observers instead of printing the stop reason directly.
4379 (end_stepping_range): New function.
4380 (print_end_stepping_range_reason, print_signal_exited_reason)
4381 (print_exited_reason, print_signal_received_reason)
4382 (print_no_history_reason): Make static, and add an uiout
4383 parameter. Print to that instead of to CURRENT_UIOUT.
4384 * infrun.h (print_end_stepping_range_reason)
4385 (print_signal_exited_reason, print_exited_reason)
4386 (print_signal_received_reason print_no_history_reason): New
4387 declarations.
4388 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4389 'mi_uiout'.
4390 <cli_uiout>: New field.
4391 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4392 uiout for CLI output. Install 'signal_received',
4393 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4394 observers.
4395 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4396 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4397 (mi_on_no_history): New functions.
4398 (ui_out_free_cleanup): Delete function.
4399 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4400 instead use the one already stored in the MI interpreter data.
4401 (mi_ui_out): Adjust.
4402 * tui/tui-interp.c: Include infrun.h and observer.h.
4403 (tui_interp): New global.
4404 (tui_on_signal_received, tui_on_end_stepping_range)
4405 (tui_on_signal_exited, tui_on_exited)
4406 (tui_on_no_history): New functions.
4407 (tui_init): Install them as 'end_stepping_range',
4408 'signal_received' 'signal_exited', 'exited' and 'no_history'
4409 observers.
4410 (_initialize_tui_interp): Delete tui_interp local.
4411
4412 2014-05-29 Pedro Alves <palves@redhat.com>
4413
4414 PR gdb/15713
4415 * linux-nat.c (linux_nat_resume_callback): Rename the second
4416 parameter to 'except'. Skip LP if it points to EXCEPT.
4417 (linux_nat_resume): Don't mark the event lwp as not stopped
4418 before resuming sibling lwps. Instead ask
4419 linux_nat_resume_callback to skip the event lwp. Mark it as not
4420 stopped after actually resuming it.
4421 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4422 resuming it.
4423 (wait_lwp): Mark the lwp as stopped here.
4424 (stop_wait_callback): Mark the lwp as not stopped right after
4425 resuming it. Don't mark lwps as stopped here.
4426 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4427 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4428
4429 2014-05-29 Pedro Alves <palves@redhat.com>
4430
4431 PR PR15693
4432 * infrun.c (resume): Determine how much to resume depending on
4433 whether the caller wanted a step, not whether we can hardware step
4434 the target. Mark all threads that we intend to run as running,
4435 unless we're calling an inferior function.
4436 (normal_stop): If the thread is running an infcall, don't finish
4437 thread state.
4438 * target.c (target_resume): Don't mark threads as running here.
4439
4440 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4441
4442 * serial.c (_initialize_serial): Remove support for
4443 the "set remotebaud" and "show remotebaud" commands.
4444 * NEWS: Add entry documenting the removal of that command.
4445
4446 2014-05-28 Yao Qi <yao@codesourcery.com>
4447
4448 * charset.c: Fix typo in comments.
4449
4450 2014-05-27 Gary Benson <gbenson@redhat.com>
4451
4452 * utils.c (internal_vproblem): Prompt for a bug report.
4453
4454 2014-05-26 Andy Wingo <wingo@igalia.com>
4455
4456 * guile/scm-arch.c (arscm_mark_arch_smob):
4457 * guile/scm-block.c (bkscm_mark_block_smob)
4458 (bkscm_mark_block_syms_progress_smob):
4459 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4460 * guile/scm-exception.c (exscm_mark_exception_smob):
4461 * guile/scm-frame.c (frscm_mark_frame_smob):
4462 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4463 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4464 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4465 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4466 (ppscm_mark_pretty_printer_worker_smob):
4467 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4468 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4469 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4470 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4471 mark functions.
4472 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4473 function.
4474
4475 2014-05-26 Andy Wingo <wingo@igalia.com>
4476 Doug Evans <xdje42@gmail.com>
4477
4478 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4479 empty_base_class. All uses updated.
4480 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4481 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4482 Adapt all callers.
4483 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4484 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4485 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4486 (gdbscm_gsmob_has_property_p, add_property_name)
4487 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4488 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4489 (gdb-object-has-property?, gdb-object-properties): Remove.
4490 (gdb-object-kind): Renamed from gsmob-kind.
4491
4492 2014-05-26 Andy Wingo <wingo@igalia.com>
4493
4494 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4495 * configure: Regenerate.
4496
4497 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4498
4499 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4500
4501 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4502
4503 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4504 (replay_memory_access_read_only, replay_memory_access_read_write)
4505 (replay_memory_access_types, replay_memory_access)
4506 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4507 (cmd_set_record_btrace, cmd_show_record_btrace)
4508 (cmd_show_replay_memory_access): New.
4509 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4510 (record_btrace_remove_breakpoint): Replace
4511 record_btrace_allow_memory_access with replay_memory_access.
4512 (_initialize_record_btrace): Add commands.
4513 * NEWS: Announce it.
4514
4515 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4516
4517 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4518
4519 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4520
4521 * MAINTAINERS (Write After Approval): Move self back from
4522 paper trail.
4523
4524 2014-05-22 Pedro Alves <palves@redhat.com>
4525
4526 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4527 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4528 (disable_randomization, enum exec_direction_kind)
4529 (execution_direction, stop_registers, start_remote)
4530 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4531 (wait_for_inferior, normal_stop, get_last_target_status)
4532 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4533 (insert_step_resume_breakpoint_at_sal)
4534 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4535 (set_step_info, print_stop_event, signal_stop_state)
4536 (signal_print_state, signal_pass_state, signal_stop_update)
4537 (signal_print_update, signal_pass_update)
4538 (update_signals_program_target, clear_exit_convenience_vars)
4539 (displaced_step_dump_bytes, update_observer_mode)
4540 (signal_catch_update, gdb_signal_from_command): Move
4541 declarations ...
4542 * infrun.h: ... to this new file.
4543 * amd64-tdep.c: Include infrun.h.
4544 * annotate.c: Include infrun.h.
4545 * arch-utils.c: Include infrun.h.
4546 * arm-linux-tdep.c: Include infrun.h.
4547 * arm-tdep.c: Include infrun.h.
4548 * break-catch-sig.c: Include infrun.h.
4549 * breakpoint.c: Include infrun.h.
4550 * common/agent.c: Include infrun.h instead of inferior.h.
4551 * corelow.c: Include infrun.h.
4552 * event-top.c: Include infrun.h.
4553 * go32-nat.c: Include infrun.h.
4554 * i386-tdep.c: Include infrun.h.
4555 * inf-loop.c: Include infrun.h.
4556 * infcall.c: Include infrun.h.
4557 * infcmd.c: Include infrun.h.
4558 * infrun.c: Include infrun.h.
4559 * linux-fork.c: Include infrun.h.
4560 * linux-nat.c: Include infrun.h.
4561 * linux-thread-db.c: Include infrun.h.
4562 * monitor.c: Include infrun.h.
4563 * nto-tdep.c: Include infrun.h.
4564 * procfs.c: Include infrun.h.
4565 * record-btrace.c: Include infrun.h.
4566 * record-full.c: Include infrun.h.
4567 * remote-m32r-sdi.c: Include infrun.h.
4568 * remote-mips.c: Include infrun.h.
4569 * remote-notif.c: Include infrun.h.
4570 * remote-sim.c: Include infrun.h.
4571 * remote.c: Include infrun.h.
4572 * reverse.c: Include infrun.h.
4573 * rs6000-tdep.c: Include infrun.h.
4574 * s390-linux-tdep.c: Include infrun.h.
4575 * solib-irix.c: Include infrun.h.
4576 * solib-osf.c: Include infrun.h.
4577 * solib-svr4.c: Include infrun.h.
4578 * target.c: Include infrun.h.
4579 * top.c: Include infrun.h.
4580 * windows-nat.c: Include infrun.h.
4581 * mi/mi-interp.c: Include infrun.h.
4582 * mi/mi-main.c: Include infrun.h.
4583 * python/py-threadevent.c: Include infrun.h.
4584
4585 2014-05-22 Pedro Alves <palves@redhat.com>
4586
4587 * infrun.c (handle_inferior_event): Store the exit code for
4588 --return-child-result here, instead of ...
4589 (print_exited_reason): ... here.
4590
4591 2014-05-21 Pedro Alves <palves@redhat.com>
4592
4593 PR gdb/13860
4594 * gdbthread.h (struct thread_control_state): New field
4595 `command_interp'.
4596 * infrun.c (follow_fork): Copy the new thread control field to the
4597 child fork thread.
4598 (clear_proceed_status_thread): Clear the new thread control field.
4599 (proceed): Set the new thread control field.
4600 * interps.h (command_interp): Declare.
4601 * interps.c (command_interpreter): New global.
4602 (command_interp): New function.
4603 (interp_exec): Set `command_interpreter' while here.
4604 * cli-out.c (cli_uiout_dtor): New function.
4605 (cli_ui_out_impl): Install it.
4606 * mi/mi-interp.c: Include cli-out.h.
4607 (mi_cmd_interpreter_exec): Add comment.
4608 (restore_current_uiout_cleanup): New function.
4609 (ui_out_free_cleanup): New function.
4610 (mi_on_normal_stop): If finishing an execution command started by
4611 a CLI command, or any kind of breakpoint-like event triggered,
4612 print the stop event to the output (CLI) stream.
4613 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4614
4615 2014-05-21 Pedro Alves <palves@redhat.com>
4616
4617 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4618 current source line having changed.
4619 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4620 * infrun.c (normal_stop): Adjust call to
4621 set_current_sal_from_frame.
4622 * source.c (clear_lines_listed_range): New function.
4623 (set_current_source_symtab_and_line, identify_source_line): Clear
4624 the lines listed range.
4625 (line_info): Handle the first "info line" after the current source
4626 line having changed.
4627 * stack.c (print_stack_frame): Remove center handling.
4628 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4629 center sal.line.
4630
4631 2014-05-21 Pedro Alves <palves@redhat.com>
4632
4633 * inf-child.c (inf_child_mourn_inferior): New function.
4634 * inf-child.h (inf_child_mourn_inferior): New declaration.
4635 * darwin-nat.c (darwin_mourn_inferior): Use
4636 inf_child_mourn_inferior.
4637 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4638 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4639 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4640 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4641 * windows-nat.c (windows_mourn_inferior): Likewise.
4642
4643 2014-05-21 Doug Evans <xdje42@gmail.com>
4644
4645 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4646
4647 2014-05-21 Doug Evans <xdje42@gmail.com>
4648
4649 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4650 (gdbscm_out_of_range_error): Ditto.
4651 (gdbscm_memory_error): Ditto.
4652 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4653 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4654 (gdbscm_out_of_range_error): Update.
4655 (gdbscm_memory_error): Update.
4656 (gdbscm_scm_to_target_string_unsafe): Delete.
4657
4658 2014-05-21 Pedro Alves <palves@redhat.com>
4659
4660 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4661 globals.
4662 (inf_child_open_target): New function.
4663 (inf_child_open): Use inf_child_open_target to push the target
4664 instead of erroring out.
4665 (inf_child_disconnect, inf_child_close)
4666 (inf_child_maybe_unpush_target): New functions.
4667 (inf_child_target): Install inf_child_disconnect and
4668 inf_child_close. Store a pointer to the returned object.
4669 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4670 declarations.
4671 * target.c (auto_connect_native_target): New global.
4672 (show_default_run_target): New function.
4673 (find_default_run_target): Return NULL if automatically connecting
4674 to the native target is disabled.
4675 (_initialize_target): Install set/show auto-connect-native-target.
4676 * NEWS: Mention "set auto-connect-native-target", and "target
4677 native".
4678 * linux-nat.c (super_close): New global.
4679 (linux_nat_close): Call super_close.
4680 (linux_nat_add_target): Store a pointer to the base class's
4681 to_close method.
4682 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4683 inf_child_maybe_unpush.
4684 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4685 already pushed.
4686 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4687 the inferior. Use inf_child_maybe_unpush_target.
4688 (inf_ttrace_attach): Don't push the target if it is already
4689 pushed.
4690 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4691 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4692 after mourning the inferior. Use inf_child_maybe_unpush_target.
4693 (darwin_attach_pid): Don't push the target if it is already
4694 pushed.
4695 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4696 mourning the inferior. Use inf_child_maybe_unpush_target.
4697 (gnu_detach): Use inf_child_maybe_unpush_target.
4698 * go32-nat.c (go32_create_inferior): Don't push the target if it
4699 is already pushed.
4700 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4701 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4702 (procfs_open): Rename to ...
4703 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4704 comments. Can target_preopen before changing node. Call
4705 inf_child_open_target to push the target explicitly.
4706 (procfs_attach): Don't push the target if it is already pushed.
4707 (procfs_detach): Use inf_child_maybe_unpush_target.
4708 (procfs_create_inferior): Don't push the target if it is already
4709 pushed.
4710 (nto_native_ops): New global.
4711 (procfs_open): Reimplement.
4712 (procfs_native_open): New function.
4713 (init_procfs_targets): Install procfs_native_open as to_open of
4714 "target native". Store a pointer to the "native" target in
4715 nto_native_ops.
4716 * procfs.c (procfs_attach): Don't push the target if it is already
4717 pushed.
4718 (procfs_detach): Use inf_child_maybe_unpush_target.
4719 (procfs_mourn_inferior): Only unpush the target after mourning the
4720 inferior. Use inf_child_maybe_unpush_target.
4721 (procfs_init_inferior): Don't push the target if it is already
4722 pushed.
4723 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4724 if it is already pushed.
4725
4726 2014-05-21 Pedro Alves <palves@redhat.com>
4727
4728 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4729 and "procfs" targets are now called "native" instead.
4730
4731 2014-05-21 Pedro Alves <palves@redhat.com>
4732
4733 * go32-nat.c (go32_open): Delete.
4734 (go32_target): Don't override the to_open method.
4735
4736 2014-05-21 Pedro Alves <palves@redhat.com>
4737
4738 * nto-procfs.c (procfs_can_run): New function.
4739 (nto_procfs_ops): New global.
4740 (init_procfs_targets): New, based on procfs_target. Install
4741 "target native" in addition to "target procfs".
4742 (_initialize_procfs): Call init_procfs_targets instead of adding
4743 the target here.
4744
4745 2014-05-21 Pedro Alves <palves@redhat.com>
4746
4747 * windows-nat.c (windows_target): Don't override to_shortname,
4748 to_longname or to_doc.
4749
4750 2014-05-21 Pedro Alves <palves@redhat.com>
4751
4752 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4753 to_doc.
4754
4755 2014-05-21 Pedro Alves <palves@redhat.com>
4756
4757 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4758 to_shortname, to_longname or to_doc.
4759
4760 2014-05-21 Pedro Alves <palves@redhat.com>
4761
4762 * go32-nat.c (go32_target): Don't override to_shortname,
4763 to_longname or to_doc.
4764
4765 2014-05-21 Pedro Alves <palves@redhat.com>
4766
4767 * inf-child.c (inf_child_open): Remove mention of "child".
4768 (inf_child_target): Rename target to "native" instead of "child".
4769
4770 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4771
4772 * Makefile.in (SFILES): Delete "regset.c".
4773 (COMMON_OBS): Delete "regset.o".
4774 * regset.c: Remove.
4775 * regset.h (regset_alloc): Delete prototype.
4776
4777 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4778
4779 * sparc-linux-tdep.c (sparc32_linux_gregset)
4780 (sparc32_linux_fpregset): New static regset structures.
4781 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4782 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4783 'fpregset' fields.
4784 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4785 (sparc64_linux_fpregset): New static regset structures.
4786 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4787 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4788 New static regset structures.
4789 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4790 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4791 New static regset structures.
4792 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4793 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4794 New static regset structures.
4795 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4796 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4797 New static regset structures.
4798 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4799
4800 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4801
4802 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4803 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4804 register maps ("regmaps") from "*regset" to "*regmap". Do this
4805 for all regmap types and variables.
4806 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4807 (sparc32_linux_supply_core_gregset)
4808 (sparc32_linux_collect_core_gregset)
4809 (sparc32_linux_supply_core_fpregset)
4810 (sparc32_linux_collect_core_fpregset): Likewise.
4811 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4812 (sparc_gregmap, sparc_fpregmap): ... these.
4813 (sparc_supply_gregset, sparc_collect_gregset)
4814 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4815 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4816 (_initialize_sparc_nat): Rename regmaps.
4817 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4818 (sparc_gregmap, sparc_fpregmap): ... these.
4819 (sparc_supply_gregset, sparc_collect_gregset)
4820 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4821 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4822 Rename macros to...
4823 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4824 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4825 Likewise.
4826 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4827 Rename to...
4828 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4829 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4830 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4831 regmaps.
4832 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4833 (sparc32_bsd_fpregset): Rename to...
4834 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4835 (sparc32_bsd_fpregmap): ... these.
4836 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4837 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4838 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4839 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4840 (struct sparc_gregmap, struct sparc_fpregmap)
4841 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4842 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4843 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4844 (sparc32_supply_regset, sparc32_collect_gregset)
4845 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4846 prototypes.
4847 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4848 (sparc64_linux_ptrace_gregmap): ... this.
4849 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4850 (_initialize_sparc64_linux_nat): Rename regmaps.
4851 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4852 (sparc64_linux_core_gregmap): ... this.
4853 (sparc64_linux_supply_core_gregset)
4854 (sparc64_linux_collect_core_gregset)
4855 (sparc64_linux_supply_core_fpregset)
4856 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4857 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4858 (sparc64_sol2_fpregset): Rename to...
4859 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4860 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4861 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4862 regmaps.
4863 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4864 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4865 (sparc64_bsd_fpregset): Rename to...
4866 (struct sparc_gregmap, sparc64_sol2_gregmap)
4867 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4868 (sparc64_bsd_fpregmap): ... these.
4869 (sparc64_supply_gregset, sparc64_collect_gregset)
4870 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4871 prototypes.
4872 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4873 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4874 (sparc64fbsd_gregmap): ... this.
4875 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4876 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4877 Rename regmaps.
4878 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4879 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4880 (sparc64nbsd_collect_fpregset): Likewise.
4881 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4882 (sparc64nbsd_gregmap): ... this.
4883 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4884 regmaps.
4885 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4886 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4887 (sparc64obsd_gregmap): ... this.
4888 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4889 regmaps.
4890 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4891 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4892 (sparc32nbsd_gregmap): ... this.
4893 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4894 regmaps.
4895
4896 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4897
4898 * score-tdep.c (score7_linux_gregset): New static regset
4899 structure.
4900 (score7_linux_regset_from_core_section): Remove dynamic regset
4901 allocation.
4902 (score_gdbarch_init): Drop allocation of tdep structure.
4903 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4904
4905 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4906
4907 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4908 regset structures.
4909 (am33_regset_from_core_section): Remove dynamic regset
4910 allocations.
4911
4912 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4913
4914 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4915 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4916 structures.
4917 (mips_linux_regset_from_core_section): Remove dynamic regset
4918 allocations.
4919 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4920 'gregset64', 'fpregset', and 'fpregset64'.
4921 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4922 deleted tdep fields.
4923
4924 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4925
4926 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4927 regset structures.
4928 (amd64_regset_from_core_section): Remove dynamic regset
4929 allocations.
4930 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4931 structure.
4932 (amd64obsd_regset_from_core_section): Remove dynamic regset
4933 allocation.
4934 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4935 Likewise.
4936 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4937 x86-common regset supply function.
4938 * i386-tdep.c (i386_collect_gregset): Make static.
4939 (i386_gregset): New global regset structure.
4940 (i386_fpregset, i386_xstateregset): New static regset structures.
4941 (i386_regset_from_core_section): Remove dynamic regset
4942 allocations.
4943 (i386_gdbarch_init): Remove initialization of tdep fields
4944 'gregset', 'fpregset', and 'xstateregset'.
4945 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4946 'fpregset', and 'xstateregset'.
4947 (i386_collect_gregset): Remove prototype.
4948 (i386_gregset): New declaration.
4949 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4950 structure.
4951 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4952 allocation.
4953
4954 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4955
4956 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4957 (arm_linux_vfpregset): New static regset structures.
4958 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4959 regset structures.
4960 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4961 and 'vfpregset' fields.
4962
4963 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4964
4965 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4966 (aarch64_linux_fpregset): New static regset structures.
4967 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4968 of regset structures.
4969 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4970 'fpregset' fields.
4971
4972 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4973
4974 * regset.h (struct regset): Remove gdbarch field.
4975 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4976 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4977 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4978 Likewise.
4979 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4980 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4981 (ppc32_linux_vsxregset): Likewise.
4982 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4983 via the regcache instead of the regset.
4984 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4985 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4986 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4987 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4988 Likewise.
4989
4990 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4991
4992 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4993 Constify structures.
4994 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4995 (alphanbsd_aout_gregset): Likewise.
4996 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4997 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4998 Likewise.
4999 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5000 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5001 Likewise.
5002 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5003 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5004 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5005 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5006 * m88k-tdep.c (m88k_gregset): Likewise.
5007 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5008 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5009 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5010 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5011 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5012 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5013 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5014 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5015 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5016 Likewise.
5017 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5018 * sh-tdep.h (sh_corefile_gregset): Likewise.
5019 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5020 * vax-tdep.c (vax_gregset): Likewise.
5021
5022 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5023
5024 Fix TLS access for -static -pthread.
5025 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5026 (try_thread_db_load_1): Initialize it.
5027 (thread_db_get_thread_local_address): Call it if LM is zero.
5028 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5029 * target.h (struct target_ops) (to_get_thread_local_address): Add
5030 load_module_addr comment.
5031
5032 2014-05-21 Pedro Alves <palves@redhat.com>
5033
5034 * dcache.c (dcache_read_memory_partial): If reading the cache line
5035 fails, fallback to reading just the memory the caller wanted.
5036
5037 2014-05-20 Doug Evans <dje@google.com>
5038
5039 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5040 instead of get_current_arch.
5041
5042 2014-05-20 Pedro Alves <palves@redhat.com>
5043
5044 * NEWS: Mention that compare-sections now works with all targets.
5045
5046 * remote.c (PACKET_qCRC): New enum value.
5047 (remote_verify_memory): Don't send qCRC if the target has no
5048 execution. Use packet_support/packet_ok. If the target doesn't
5049 support the qCRC packet, fallback to a deep memory copy.
5050 (compare_sections_command): Say "target image" instead of "remote
5051 executable".
5052 (_initialize_remote): Add PACKET_qCRC to the list of config
5053 packets that have no associated command. Extend comment.
5054 * target.c (simple_verify_memory, default_verify_memory): New
5055 function.
5056 * target.h (struct target_ops) <to_verify_memory>: Default to
5057 default_verify_memory.
5058 (simple_verify_memory): New declaration.
5059 * target-delegates.c: Regenerate.
5060
5061 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5062
5063 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5064
5065 2014-05-20 Hui Zhu <hui@codesourcery.com>
5066 Yao Qi <yao@codesourcery.com>
5067
5068 PR backtrace/16558
5069 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5070 and change address of sp and pc.
5071
5072 2014-05-19 Tom Tromey <tromey@redhat.com>
5073
5074 * gdbtypes.c (rank_function): Use XNEWVEC.
5075 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5076
5077 2014-05-19 Doug Evans <dje@google.com>
5078
5079 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5080 build_type_unit_groups and moved closer to only caller. Remove
5081 arguments. All references updated. Remove outdated .gdb_index
5082 comment.
5083 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5084 build_type_psymtabs_1.
5085
5086 2014-05-19 Doug Evans <dje@google.com>
5087
5088 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5089 n_type_unit_groups, all_type_unit_groups. All uses removed.
5090 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5091 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5092 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5093 (add_type_unit_group_to_table): Delete.
5094
5095 2014-05-19 Doug Evans <dje@google.com>
5096
5097 * eval.c (evaluate_subexp_standard): Add some comments.
5098
5099 2014-05-17 Doug Evans <xdje42@gmail.com>
5100
5101 * progspace.c (remove_program_space): Delete, unused.
5102 * progspace.h (remove_program_space): Ditto.
5103
5104 2014-05-17 Doug Evans <xdje42@gmail.com>
5105
5106 * inferior.c (prune_inferiors): Fix comment.
5107 (remove_inferior_command): Call prune_program_spaces.
5108
5109 2014-05-16 Doug Evans <dje@google.com>
5110
5111 New command line option -D.
5112 * NEWS: Mention it.
5113 * main.c (set_gdb_data_directory): New function.
5114 (captured_main): Recognize -D. Flag error for --data-directory "".
5115 Call set_gdb_data_directory.
5116 (print_gdb_help): Print --data-directory, -D.
5117 * main.h (set_gdb_data_directory): Declare.
5118 * top.c (staged_gdb_datadir): New static global.
5119 (set_gdb_datadir): Call set_gdb_data_directory
5120 (show_gdb_datadir): New function.
5121 (init_main): Update init of data-directory parameter.
5122
5123 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5124
5125 Import the "dirfd" gnulib module.
5126 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5127 * gnulib/aclocal.m4: Update.
5128 * gnulib/config.in: Update.
5129 * gnulib/configure: Update.
5130 * gnulib/import/Makefile.am: Update.
5131 * gnulib/import/Makefile.in: Update.
5132 * gnulib/import/dirfd.c: New.
5133 * gnulib/import/m4/dirfd.m4: New.
5134 * gnulib/import/m4/gnulib-cache.m4: Update.
5135 * gnulib/import/m4/gnulib-comp.m4: Update.
5136
5137 2014-05-16 Pierre Muller <muller@sourceware.org>
5138 Yao Qi <yao@codesourcery.com>
5139
5140 * valprint.c (print_wchar): Move the code on checking whether
5141 W is a printable wide char to the default branch of switch
5142 statement below. Call wchar_printable instead of gdb_iswprint.
5143
5144 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5145
5146 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5147 ldr.w and ldrd instructions.
5148
5149 2014-05-15 Doug Evans <dje@google.com>
5150
5151 * dwarf2read.c (read_structure_type): Delete outdated comments.
5152
5153 2014-05-14 Tom Tromey <tromey@redhat.com>
5154
5155 * macrocmd.c (print_macro_definition): Reindent.
5156
5157 2014-05-13 Doug Evans <xdje42@gmail.com>
5158
5159 * python/py-cmd.c (cmdpy_completer): Add comment.
5160 (completers): Make const.
5161
5162 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5163
5164 * infrun.c (resume): Remove should_resume (unused). Move up
5165 declaration of resume_ptid.
5166
5167 2014-05-13 Tom Tromey <tromey@redhat.com>
5168
5169 * language.h (unop_type_check): Remove.
5170 (binop_type_check): Don't declare.
5171
5172 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5173
5174 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5175 call to regcache_raw_collect.
5176
5177 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5178
5179 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5180 mi_console->quote as the quoting character.
5181
5182 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5183
5184 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5185
5186 2014-04-29 Tom Tromey <tromey@redhat.com>
5187
5188 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5189 "show debug varobj".
5190
5191 2014-05-07 Kyle McMartin <kyle@redhat.com>
5192
5193 Pushed by Joel Brobecker <brobecker@adacore.com>.
5194 * aarch64-tdep.c (aarch64_software_single_step): New function.
5195 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5196 with aarch64_software_single_step.
5197
5198 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5199
5200 GDB 7.7.1 released.
5201
5202 2014-05-05 Keith Seitz <keiths@redhat.com>
5203
5204 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5205 variable or history value is successfully parsed.
5206
5207 2014-05-05 Yao Qi <yao@codesourcery.com>
5208 Pedro Alves <palves@redhat.com>
5209
5210 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5211 address of blocks that intersects the requested range. Trim
5212 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5213 sections.
5214 * ctf.c (ctf_xfer_partial): Likewise.
5215
5216 2014-05-05 Yao Qi <yao@codesourcery.com>
5217
5218 * printcmd.c (display_command): Remove the check to
5219 target_has_execution.
5220
5221 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5222
5223 * ppcobsd-nat.c: Include "obsd-nat.h".
5224 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5225 add_target.
5226 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5227
5228 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5229
5230 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5231 and 16-bit signed and unsigned arguments. Update comment.
5232 (stap_parse_probe_arguments): Extend code to handle such
5233 arguments. Use warning instead of complaint to notify about
5234 unrecognized bitness.
5235
5236 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5237
5238 PR breakpoints/16889
5239 * stap-probe.c (stap_parse_probe_arguments): Simplify
5240 check for non-prefixed probes (i.e., probes whose
5241 arguments do not start with "N@"). Always set the
5242 argument type to a sane value.
5243
5244 2014-05-01 David Taylor <dtaylor@emc.com>
5245
5246 * remote.c (compare_sections_command): Add -r option to compare
5247 all loadable read-only sections.
5248
5249 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5250
5251 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5252 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5253 Update all callers.
5254 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5255 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5256 Remove unused CORE_ADDR argument. Update all callers.
5257
5258 2014-04-29 Pedro Alves <palves@redhat.com>
5259
5260 * remote.c (struct packet_config) <detect>: Extend comment.
5261 (add_packet_config_cmd): Don't set the config's detect or support
5262 fields here.
5263 (init_all_packet_configs): Also initialize the config's 'detect'
5264 field.
5265 (reset_all_packet_configs_support): New function.
5266 (remote_open_1): Call reset_all_packet_configs_support instead of
5267 init_all_packet_configs.
5268 (_initialize_remote): Initialize all packet configs. Assert that
5269 all packets have an associated command, except a few known
5270 outliers.
5271
5272 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5273
5274 * dwarf2read.c (read_subrange_type): Handle dynamic
5275 DW_AT_lower_bound attributes.
5276
5277 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5278
5279 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5280 dynamic bounds before computing its upper bound.
5281 (ada_discrete_type_low_bound): Same as above with the lower bound.
5282
5283 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5284
5285 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5286 range types. Adjust the array handling implementation to
5287 take advantage of this change.
5288 (resolve_dynamic_range): New function, mostly extracted from
5289 resolve_dynamic_bounds.
5290 (resolve_dynamic_array): New function, mostly extracted from
5291 resolve_dynamic_bounds.
5292 (resolve_dynamic_bounds): Delete.
5293 (resolve_dynamic_type): Reimplement. Add handling of
5294 TYPE_CODE_RANGE types.
5295
5296 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5297
5298 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5299 handling of parallel ___XA types.
5300
5301 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5302
5303 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5304 unnecessary second call to static_unwrap_type.
5305
5306 2014-04-27 Hui Zhu <hui@codesourcery.com>
5307
5308 * stack.c (print_frame_info): Call do_gdb_disassembly with
5309 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5310
5311 2014-04-26 Doug Evans <xdje42@gmail.com>
5312
5313 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5314
5315 2014-04-25 Pedro Alves <palves@redhat.com>
5316
5317 PR server/16255
5318 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5319 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5320 and newline from built string.
5321 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5322 (linux_ptrace_attach_fail_reason): ... this.
5323 * linux-nat.c (linux_nat_attach): Adjust to use
5324 linux_ptrace_attach_fail_reason.
5325
5326 2014-04-25 Pedro Alves <palves@redhat.com>
5327
5328 * remote.c (struct remote_state): Remove multi_process_aware,
5329 non_stop_aware, cond_tracepoints, cond_breakpoints,
5330 breakpoint_commands, fast_tracepoints, static_tracepoints,
5331 install_in_trace, disconnected_tracing,
5332 enable_disable_tracepoints, string_tracing, and
5333 augmented_libraries_svr4_read fields.
5334 (remote_multi_process_p): Move further below in the file.
5335 (struct packet_config): Add comments.
5336 (update_packet_config): Delete function.
5337 (show_packet_config_cmd): Use packet_config_support.
5338 (add_packet_config_cmd): Use NULL as set callback.
5339 (packet_ok): "set remote foo-packet"-style commands no longer
5340 change config->supported -- adjust.
5341 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5342 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5343 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5344 (PACKET_QNonStop, PACKET_multiprocess_feature)
5345 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5346 (PACKET_DisconnectedTracing_feature)
5347 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5348 (set_remote_protocol_packet_cmd): Delete function.
5349 (packet_config_support, packet_support): New functions.
5350 (set_remote_protocol_Z_packet_cmd): Don't call
5351 update_packet_config.
5352 (remote_query_attached, remote_pass_signals)
5353 (remote_program_signals, remote_threads_info)
5354 (remote_threads_extra_info, remote_start_remote): Use
5355 packet_support.
5356 (remote_start_remote): Use packet_config_support and
5357 packet_support.
5358 (init_all_packet_configs): Set all packets to unknown support,
5359 instead of calling update_packet_config.
5360 (remote_check_symbols): Use packet_support.
5361 (remote_supported_packet): Unconditionally set the packet config's
5362 support status.
5363 (remote_multi_process_feature, remote_non_stop_feature)
5364 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5365 (remote_breakpoint_commands_feature)
5366 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5367 (remote_install_in_trace_feature)
5368 (remote_disconnected_tracing_feature)
5369 (remote_enable_disable_tracepoint_feature)
5370 (remote_string_tracing_feature)
5371 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5372 (remote_protocol_features): Adjust to use remote_supported_packet
5373 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5374 "ConditionalTracepoints", "ConditionalBreakpoints",
5375 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5376 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5377 "EnableDisableTracepoints", and "tracenz".
5378 (remote_query_supported): Use packet_support.
5379 (remote_open_1): Adjust.
5380 (extended_remote_attach_1): Use packet_support. Switch on the
5381 result of packet_ok instead of checking whether the packet ended
5382 up disabled.
5383 (remote_vcont_resume): Use packet_support.
5384 (remote_resume, remote_stop_ns, fetch_register_using_p)
5385 (remote_prepare_to_store, store_register_using_P)
5386 (check_binary_download, remote_write_bytes): Use packet_support.
5387 (remote_vkill): Use packet_support. Switch on the result of
5388 packet_ok instead of checking whether the packet ended up
5389 disabled.
5390 (extended_remote_supports_disable_randomization): Use
5391 packet_support.
5392 (extended_remote_run): Switch on the result of packet_ok instead
5393 of checking whether the packet ended up disabled.
5394 (remote_insert_breakpoint, remote_remove_breakpoint)
5395 (remote_insert_watchpoint, remote_remove_watchpoint)
5396 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5397 packet_support.
5398 (remote_search_memory): Use packet_config_support.
5399 (remote_get_thread_local_address, remote_get_tib_address)
5400 (remote_hostio_send_command, remote_can_execute_reverse): Use
5401 packet_support.
5402 (remote_supports_cond_tracepoints)
5403 (remote_supports_cond_breakpoints)
5404 (remote_supports_fast_tracepoints)
5405 (remote_supports_static_tracepoints)
5406 (remote_supports_install_in_trace)
5407 (remote_supports_enable_disable_tracepoint)
5408 (remote_supports_string_tracing)
5409 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5410 the packet config says the feature is enabled or disabled.
5411 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5412 (remote_get_trace_status): Use packet_support.
5413 (remote_set_disconnected_tracing): Adjust to check whether the
5414 feature is enabled with packet_support.
5415 (remote_set_trace_buffer_size, remote_use_agent)
5416 (remote_can_use_agent, remote_supports_btrace): Use
5417 packet_support.
5418 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5419 Use packet_config_support.
5420 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5421 the packet config says the feature is enabled or disabled.
5422 (set_range_stepping): Use packet_support.
5423
5424 2014-04-25 Tom Tromey <tromey@redhat.com>
5425
5426 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5427 argument.
5428
5429 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5430
5431 * NEWS: Mention support for C99 variable length arrays.
5432
5433 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5434
5435 * ada-lang.c (standard_exc): Expand introductory comment.
5436
5437 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5438 Walfred Tedeschi <walfred.tedeschi@intel.com>
5439
5440 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5441 AVX512 registers.
5442 (amd64_linux_read_description): Add code to handle AVX512 xstate
5443 mask and return respective tdesc.
5444 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5445 and features/i386/x32-avx512-linux.c.
5446 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5447 (amd64_linux_core_read_description): Add code to handle AVX512
5448 xstate mask and return respective tdesc.
5449 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5450 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5451 calculation.
5452 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5453 (tdesc_amd64_avx512_linux): New prototype.
5454 (tdesc_x32_avx512_linux): Likewise.
5455 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5456 features/i386/x32-avx512.c.
5457 (amd64_ymm_avx512_names): New register names for pseudo
5458 registers YMM16-31.
5459 (amd64_ymmh_avx512_names): New register names for raw registers
5460 YMMH16-31.
5461 (amd64_k_names): New register names for K registers.
5462 (amd64_zmmh_names): New register names for ZMM raw registers.
5463 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5464 (amd64_xmm_avx512_names): New register names for XMM16-31
5465 registers.
5466 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5467 registers.
5468 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5469 if feature is present.
5470 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5471 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5472 (AMD64_NUM_REGS): Adjust to new number of registers.
5473 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5474 registers supplied via XSTATE by AVX512 registers.
5475 (i386_linux_read_description): Add case for AVX512.
5476 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5477 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5478 (i386_linux_core_read_description): Add case for AVX512.
5479 (i386_linux_init_abi): Install supported register note section
5480 for AVX512.
5481 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5482 AVX512.
5483 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5484 registers to be number of zmm7h + 1.
5485 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5486 * i386-tdep.c: Include features/i386/i386-avx512.c.
5487 (i386_zmm_names): Add ZMM pseudo register names array.
5488 (i386_zmmh_names): Add ZMM raw register names array.
5489 (i386_k_names): Add K raw register names array.
5490 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5491 registers. AVX512 has 16 more ZMM registers than there are YMM
5492 registers.
5493 (i386_zmmh_regnum_p): Add function to look up register number of
5494 ZMM raw registers.
5495 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5496 (i386_k_regnum_p): Likewise for K raw registers.
5497 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5498 registers added by AVX512.
5499 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5500 registers added by AVX512.
5501 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5502 added by AVX512.
5503 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5504 (i386_pseudo_register_name): Add ZMM pseudo registers.
5505 (i386_zmm_type): Construct and return vector registers type for ZMM
5506 registers.
5507 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5508 ZMM0-31 pseudo registers and K registers.
5509 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5510 and YMM16-31 registers from register cache.
5511 (i386_pseudo_register_write): Add code to write K, ZMM and
5512 YMM16-31 registers.
5513 (i386_register_reggroup_p): Add code to include/exclude AVX512
5514 registers in/from respective register groups.
5515 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5516 registers if feature is present in xcr0.
5517 (i386_gdbarch_init): Add code to initialize AVX512 feature
5518 variables in tdep structure, wire in pseudo registers and call
5519 initialize_tdesc_i386_avx512.
5520 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5521 variables.
5522 (i386_regnum): Add AVX512 registers.
5523 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5524 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5525 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5526 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5527 512 bits wide.
5528 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5529 (i386_ymm_avx512_regnum_p): Likewise.
5530 (i386_k_regnum_p): Likewise.
5531 (i386_zmm_regnum_p): Likewise.
5532 (i386_zmmh_regnum_p): Likewise.
5533 * i387-tdep.c : Update year in copyright notice.
5534 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5535 XSAVE buffer.
5536 (XSAVE_YMM_AVX512_ADDR): New macro.
5537 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5538 XSAVE buffer.
5539 (XSAVE_XMM_AVX512_ADDR): New macro.
5540 (xsave_avx512_k_offset): New table for K register offsets in
5541 XSAVE buffer.
5542 (XSAVE_AVX512_K_ADDR): New macro.
5543 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5544 in XSAVE buffer.
5545 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5546 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5547 buffer.
5548 (i387_collect_xsave): Add code to collect AVX512 registers from
5549 XSAVE buffer.
5550 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5551 of XMM16-31 registers.
5552 (I387_NUM_K_REGS): New define for number of K registers.
5553 (I387_K0_REGNUM): New define for K0 register number.
5554 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5555 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5556 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5557 registers.
5558 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5559 (I387_XMM16_REGNUM): New define for XMM16 register number.
5560 (I387_YMM0_REGNUM): New define for YMM0 register number.
5561 (I387_KEND_REGNUM): New define for last K register number.
5562 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5563 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5564 number.
5565 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5566 number.
5567 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5568 size.
5569 * features/Makefile: Add AVX512 related files.
5570 * features/i386/32bit-avx512.xml: New file.
5571 * features/i386/64bit-avx512.xml: Likewise.
5572 * features/i386/amd64-avx512-linux.c: Likewise.
5573 * features/i386/amd64-avx512-linux.xml: Likewise.
5574 * features/i386/amd64-avx512.c: Likewise.
5575 * features/i386/amd64-avx512.xml: Likewise.
5576 * features/i386/i386-avx512-linux.c: Likewise.
5577 * features/i386/i386-avx512-linux.xml: Likewise.
5578 * features/i386/i386-avx512.c: Likewise.
5579 * features/i386/i386-avx512.xml: Likewise.
5580 * features/i386/x32-avx512-linux.c: Likewise.
5581 * features/i386/x32-avx512-linux.xml: Likewise.
5582 * features/i386/x32-avx512.c: Likewise.
5583 * features/i386/x32-avx512.xml: Likewise.
5584 * regformats/i386/amd64-avx512-linux.dat: New file.
5585 * regformats/i386/amd64-avx512.dat: Likewise.
5586 * regformats/i386/i386-avx512-linux.dat: Likewise.
5587 * regformats/i386/i386-avx512.dat: Likewise.
5588 * regformats/i386/x32-avx512-linux.dat: Likewise.
5589 * regformats/i386/x32-avx512.dat: Likewise.
5590 * NEWS: Add note about new support for AVX512.
5591
5592
5593 2014-04-23 Pedro Alves <palves@redhat.com>
5594
5595 * breakpoint.c (insert_bp_location): Tolerate errors if the
5596 breakpoint is set in a user-loaded objfile.
5597 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5598 location is marked shlib_disabled. If the breakpoint is set in a
5599 user-loaded objfile is a GDB-side memory breakpoint, validate it
5600 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5601 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5602 flag.
5603 * mem-break.c (memory_validate_breakpoint): New function.
5604 * objfiles.c (userloaded_objfile_contains_address_p): New
5605 function.
5606 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5607 * target.h (memory_validate_breakpoint): New declaration.
5608
5609 2014-04-23 Pedro Alves <palves@redhat.com>
5610
5611 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5612 the breakpoint is set in a shared library, only suppress
5613 errors for software breakpoints, not hardware breakpoints.
5614
5615 2014-04-22 Pedro Alves <palves@redhat.com>
5616
5617 * infrun.c (schedlock_applies): New function, factored out from
5618 find_thread_needs_step_over.
5619 (find_thread_needs_step_over): Use it.
5620 (switch_back_to_stepped_thread): Always clear trap_expected if the
5621 step over is finished. Return early if scheduler locking applies.
5622 Look for the stepping thread and a potential step-over thread with
5623 a single loop.
5624 (currently_stepping_or_nexting_callback): Delete.
5625
5626 2014-04-22 Nick Clifton <nickc@redhat.com>
5627
5628 * NEWS: Mention that ARM sim now supports tracing.
5629
5630 2014-04-22 Yao Qi <yao@codesourcery.com>
5631
5632 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5633 to ...
5634 * tracefile.c (tracefile_fetch_registers): ... it. New
5635 function.
5636 * tracefile.h (tracefile_fetch_registers): Declare.
5637 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5638 tracefile_fetch_registers.
5639
5640 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5641
5642 PR gdb/14018
5643 * windows-nat.c (thread_rec): Don't display a warning when
5644 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5645 fails for any reason, set th->suspended to -1, so that we don't
5646 try to resume such a thread. Also, don't return NULL in these
5647 cases, to avoid completely ruin the session due to "PC register is
5648 not available" error.
5649 (do_windows_fetch_inferior_registers): Check errors in
5650 GetThreadContext call.
5651 (windows_continue): Accept an additional argument KILLED; if not
5652 zero, ignore errors in the SetThreadContext call, since the
5653 inferior was killed and is shutting down.
5654 (windows_resume, get_windows_debug_event)
5655 (windows_create_inferior, windows_mourn_inferior)
5656 (windows_kill_inferior): All callers of windows_continue changed
5657 to adjust to its new calling sequence.
5658
5659 2014-04-19 Yao Qi <yao@codesourcery.com>
5660
5661 * ctf.c (ctf_open): Call post_create_inferior.
5662
5663 2014-04-19 Yao Qi <yao@codesourcery.com>
5664
5665 * ctf.c (handle_id): New static variable.
5666 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5667 value. Get the declaration of event "register" and get length
5668 of field "contents".
5669
5670 2014-04-19 Yao Qi <yao@codesourcery.com>
5671
5672 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5673
5674 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5675
5676 * valops.c (oload_method_static): Remove unnecessary argument
5677 METHOD. Update all callers.
5678
5679 2014-04-18 Pedro alves <palves@redhat.com>
5680 Tom Tromey <tromey@redhat.com>
5681
5682 PR backtrace/15558
5683 * frame.c (get_prev_frame_1): Rename to ...
5684 (get_prev_frame_always): ... this, and make extern. Adjust.
5685 (skip_artificial_frames): Use get_prev_frame_always.
5686 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5687 (get_frame_unwind_stop_reason): Adjust to rename.
5688 * frame.h (get_prev_frame_always): Declare.
5689 * inline-frame.c: Include frame.h.
5690 (inline_frame_this_id): Use get_prev_frame_always.
5691
5692 2014-04-18 Tristan Gingold <gingold@adacore.com>
5693
5694 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5695 code by using bfd_mach_o_get_base_address.
5696
5697 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5698
5699 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5700 (spu_ax_pseudo_register_collect): New function.
5701 (spu_ax_pseudo_register_push_stack): Likewise.
5702 (spu_dwarf_reg_to_regnum): Likewise.
5703 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5704
5705 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5706
5707 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5708 Replace FRAME argument with FRAME_ID.
5709 * gdbarch.c, gdbarch.h: Regenerate.
5710 * findvar.c (default_value_from_register): Add GDBARCH argument;
5711 replace FRAME by FRAME_ID. No longer call get_frame_id.
5712 (value_from_register): Update call to gdbarch_value_from_register.
5713 * value.h (default_value_from_register): Update prototype.
5714 * s390-linux-tdep.c (s390_value_from_register): Update interface
5715 and call to default_value_from_register.
5716 * spu-tdep.c (spu_value_from_register): Likewise.
5717
5718 * findvar.c (address_from_register): Remove TYPE argument.
5719 Do not call value_from_register; use gdbarch_value_from_register
5720 with null_frame_id instead.
5721 * value.h (address_from_register): Update prototype.
5722 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5723 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5724 address_from_register interface change.
5725
5726 2014-04-17 Yao Qi <yao@codesourcery.com>
5727
5728 * gdbtypes.h: Update comments to link to types and macros'
5729 definitions.
5730
5731 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5732
5733 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5734
5735 2014-04-16 Keith Seitz <keiths@redhat.com>
5736
5737 PR gdb/15827
5738 * dwarf2read.c (skip_one_die): Check that all relative-offset
5739 sibling DIEs fall within range of the current reader's buffer.
5740 (read_partial_die): Likewise.
5741
5742 2014-04-16 Keith Seitz <keiths@redhat.com>
5743
5744 PR c++/16597
5745 * cp-namespace.c (lookup_symbol_file): If the type name of
5746 `this' is NULL, return immediately.
5747
5748 2014-04-14 Keith Seitz <keiths@redhat.com>
5749
5750 PR c++/16253
5751 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5752 from symbol_matches_domain in symtab.c. All local callers
5753 of symbol_matches_domain updated.
5754 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5755 search STRUCT_DOMAIN.
5756 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5757 independently. standard_lookup will do that automatically.
5758 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5759 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5760 (cp_lookup_symbol_in_namespace): Likewise.
5761 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5762 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5763 may return a STRUCT_DOMAIN match.
5764 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5765 * cp-support.c: Include language.h.
5766 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5767 VAR_DOMAIN.
5768 * psymtab.c (match_partial_symbol): Compare the requested
5769 domain with the symbol's domain directly.
5770 (lookup_partial_symbol): Likewise.
5771 * symtab.c (lookup_symbol_in_language): Explain when/why
5772 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5773 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5774 appropriate languages.
5775 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5776 and moved to ada-lang.c
5777 (lookup_block_symbol): Explain that this function only returns
5778 symbol matching the requested DOMAIN.
5779 Compare the requested domain with the symbol's domain directly.
5780 (iterate_over_symbols): Compare the requested domain with the
5781 symbol's domain directly.
5782 * symtab.h (symbol_matches_domain): Remove.
5783
5784 2014-04-14 Tom Tromey <tromey@redhat.com>
5785
5786 PR c++/15246:
5787 * c-exp.y (type_aggregate_p): New function.
5788 (qualified_name, classify_inner_name): Use it.
5789 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5790 and TYPE_TARGET_TYPE of an enum type.
5791 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5792 an enum type.
5793 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5794 handle TYPE_DECLARED_CLASS.
5795 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5796 types.
5797 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5798 * valops.c (enum_constant_from_type): New function.
5799 (value_aggregate_elt): Use it.
5800 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5801 TYPE_CODE_ENUM.
5802
5803 2014-04-14 Tom Tromey <tromey@redhat.com>
5804
5805 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5806 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5807 const.
5808 * value.h (value_aggregate_elt): Update.
5809
5810 2014-04-14 Tom Tromey <tromey@redhat.com>
5811
5812 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5813
5814 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5815
5816 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5817 (evaluate_subexp_standard): Pass noside argument.
5818 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5819 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5820 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5821 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5822 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5823
5824 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5825
5826 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5827 points to a constant blob.
5828
5829 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5830
5831 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5832 property and store it as the high bound and flag the range accordingly.
5833 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5834 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5835 * gdbtypes.h (enum range_flags): New enum.
5836 (struct range_bounds): Add flags member.
5837
5838 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5839
5840 * c-typeprint.c (c_type_print_varspec_suffix): Added
5841 check for not yet resolved high bound. If unresolved, print
5842 "variable length" string to the console instead of random
5843 length.
5844
5845 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5846
5847 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5848 value.
5849 (ada_template_to_fixed_record_type_1): Likewise.
5850 (ada_to_fixed_type_1): Likewise.
5851 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5852 (cp_print_value): Likewise.
5853 * d-valprint.c (dynamic_array_type): Likewise.
5854 * findvar.c (address_of_variable): Likewise.
5855 * jv-valprint.c (java_value_print): Likewise.
5856 * valops.c (value_ind): Likewise.
5857 * value.c (coerce_ref): Likewise.
5858
5859 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5860
5861 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5862 value and retrieve the dynamic type size.
5863
5864 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5865
5866 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5867 passed to sizeof is dynamic evaluate the argument to compute the length.
5868
5869 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5870 Joel Brobecker <brobecker@adacore.com>
5871
5872 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5873 (dwarf2_evaluate_property): New function.
5874 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5875 * dwarf2read.c (attr_to_dynamic_prop): New function.
5876 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5877 attribute.
5878 * gdbtypes.c: Include dwarf2loc.h.
5879 (is_dynamic_type): New function.
5880 (resolve_dynamic_type): New function.
5881 (resolve_dynamic_bounds): New function.
5882 (get_type_length): New function.
5883 (check_typedef): Use get_type_length to compute type length.
5884 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5885 (TYPE_LOW_BOUND_KIND): New macro.
5886 (is_dynamic_type): New function prototype.
5887 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5888 to resolve dynamic properties of the type. Update comment.
5889 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5890
5891 2014-04-14 Richard Henderson <rth@redhat.com>
5892
5893 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5894
5895 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5896 Doug Evans <xdje42@gmail.com>
5897
5898 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5899 dereference TYPE_CODE_REF values.
5900
5901 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5902
5903 Revert the following changes due to regressions:
5904
5905 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5906 (dwarf2_evaluate_property): New function.
5907 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5908 * dwarf2read.c (attr_to_dynamic_prop): New function.
5909 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5910 attribute.
5911 * gdbtypes.c: Include dwarf2loc.h.
5912 (is_dynamic_type): New function.
5913 (resolve_dynamic_type): New function.
5914 (resolve_dynamic_bounds): New function.
5915 (get_type_length): New function.
5916 (check_typedef): Use get_type_length to compute type length.
5917 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5918 (TYPE_LOW_BOUND_KIND): New macro.
5919 (is_dynamic_type): New function prototype.
5920 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5921 to resolve dynamic properties of the type. Update comment.
5922 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5923
5924 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5925 passed to sizeof is dynamic evaluate the argument to compute the length.
5926
5927 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5928 value and retrieve the dynamic type size.
5929
5930 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5931 (ada_template_to_fixed_record_type_1): Likewise.
5932 (ada_to_fixed_type_1): Likewise.
5933 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5934 (cp_print_value): Likewise.
5935 * d-valprint.c (dynamic_array_type): Likewise.
5936 * eval.c (evaluate_subexp_with_coercion): Likewise.
5937 * findvar.c (address_of_variable): Likewise.
5938 * jv-valprint.c (java_value_print): Likewise.
5939 * valops.c (value_ind): Likewise.
5940 * value.c (coerce_ref): Likewise.
5941
5942 * c-typeprint.c (c_type_print_varspec_suffix): Added
5943 check for not yet resolved high bound. If unresolved, print
5944 "variable length" string to the console instead of random
5945 length.
5946
5947 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5948 property and store it as the high bound and flag the range accordingly.
5949 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5950 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5951 * gdbtypes.h (enum range_flags): New enum.
5952 (struct range_bounds): Add flags member.
5953
5954 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5955 points to a constant blob.
5956
5957 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5958 (evaluate_subexp_standard): Pass noside argument.
5959 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5960 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5961 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5962 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5963 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5964
5965 2014-04-11 Keith Seitz <keiths@redhat.com>
5966
5967 PR c++/16675
5968 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5969 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5970 reference types.
5971
5972 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5973
5974 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5975 (evaluate_subexp_standard): Pass noside argument.
5976 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5977 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5978 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5979 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5980 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5981
5982 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5983
5984 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5985 points to a constant blob.
5986
5987 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5988
5989 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5990 property and store it as the high bound and flag the range accordingly.
5991 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5992 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5993 * gdbtypes.h (enum range_flags): New enum.
5994 (struct range_bounds): Add flags member.
5995
5996 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5997
5998 * c-typeprint.c (c_type_print_varspec_suffix): Added
5999 check for not yet resolved high bound. If unresolved, print
6000 "variable length" string to the console instead of random
6001 length.
6002
6003 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6004
6005 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6006 (ada_template_to_fixed_record_type_1): Likewise.
6007 (ada_to_fixed_type_1): Likewise.
6008 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6009 (cp_print_value): Likewise.
6010 * d-valprint.c (dynamic_array_type): Likewise.
6011 * eval.c (evaluate_subexp_with_coercion): Likewise.
6012 * findvar.c (address_of_variable): Likewise.
6013 * jv-valprint.c (java_value_print): Likewise.
6014 * valops.c (value_ind): Likewise.
6015 * value.c (coerce_ref): Likewise.
6016
6017 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6018
6019 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6020 value and retrieve the dynamic type size.
6021
6022 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6023
6024 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6025 passed to sizeof is dynamic evaluate the argument to compute the length.
6026
6027 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6028
6029 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6030 (dwarf2_evaluate_property): New function.
6031 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6032 * dwarf2read.c (attr_to_dynamic_prop): New function.
6033 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6034 attribute.
6035 * gdbtypes.c: Include dwarf2loc.h.
6036 (is_dynamic_type): New function.
6037 (resolve_dynamic_type): New function.
6038 (resolve_dynamic_bounds): New function.
6039 (get_type_length): New function.
6040 (check_typedef): Use get_type_length to compute type length.
6041 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6042 (TYPE_LOW_BOUND_KIND): New macro.
6043 (is_dynamic_type): New function prototype.
6044 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6045 to resolve dynamic properties of the type. Update comment.
6046 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6047
6048 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6049
6050 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6051 declaring high/low bounds and change uses accordingly. Call
6052 create_range_type instead of create_static_range_type.
6053 * gdbtypes.c (create_range_type): New function.
6054 (create_range_type): Convert bounds into struct bound_prop and pass
6055 them to create_range_type.
6056 * gdbtypes.h (struct bound_prop): New struct.
6057 (create_range_type): New function prototype.
6058 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6059 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6060 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6061 part of the bound.
6062 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6063
6064 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6065
6066 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6067 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6068 * ada-lang.c: All uses of create_range_type updated.
6069 * coffread.c: All uses of create_range_type updated.
6070 * dwarf2read.c: All uses of create_range_type updated.
6071 * f-exp.y: All uses of create_range_type updated.
6072 * m2-valprint.c: All uses of create_range_type updated.
6073 * mdebugread.c: All uses of create_range_type updated.
6074 * stabsread.c: All uses of create_range_type updated.
6075 * valops.c: All uses of create_range_type updated.
6076 * valprint.c: All uses of create_range_type updated.
6077
6078 2014-04-10 Pedro Alves <palves@redhat.com>
6079
6080 * breakpoint.c (single_step_breakpoints)
6081 (single_step_gdbarch): Move up in the file.
6082 (one_breakpoint_xfer_memory): New function, factored out from ...
6083 (breakpoint_xfer_memory): ... here. Also process single-step
6084 breakpoints.
6085
6086 2014-04-09 Tristan Gingold <gingold@adacore.com>
6087
6088 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6089 comments.
6090 (darwin_decode_exception_message): Free port only after use.
6091
6092 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6093
6094 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6095 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6096 when setting the size of call_length.
6097
6098 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6099
6100 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6101 dereference TYPE_CODE_REF values.
6102
6103 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6104
6105 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6106 end of warning message.
6107
6108 2014-04-03 Doug Evans <dje@google.com>
6109
6110 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6111 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6112
6113 2014-04-02 Alan Modra <amodra@gmail.com>
6114
6115 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6116 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6117 (struct symbol_file_add_from_memory_args): Add size field.
6118 (find_vdso_size): New function.
6119 (add_vsyscall_page): Attempt to find vdso size.
6120
6121 2014-04-01 Doug Evans <dje@google.com>
6122
6123 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6124
6125 2014-04-01 Tristan Gingold <gingold@adacore.com>
6126
6127 * darwin-nat.c (darwin_encode_reply): Add prototype.
6128 (darwin_decode_exception_message): Reply to unknown inferiors.
6129 (darwin_decode_message): Handle message by id. Ignore message
6130 to unknown inferior.
6131 (darwin_wait): Discard unknown messages, add debug trace.
6132
6133 2014-03-31 Doug Evans <dje@google.com>
6134
6135 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6136 comp_dir_string.
6137
6138 2014-03-31 Doug Evans <dje@google.com>
6139
6140 New option "set print symbol-loading".
6141 * NEWS: Mention it.
6142 * solib.c (solib_read_symbols): Only print symbol loading messages
6143 if requested.
6144 (solib_add): If symbol loading is in "brief" mode, notify user
6145 symbols are being loaded.
6146 (reload_shared_libraries_1): Ditto.
6147 * symfile.c (print_symbol_loading_off): New static global.
6148 (print_symbol_loading_brief): New static global.
6149 (print_symbol_loading_full): New static global.
6150 (print_symbol_loading_enums): New static global.
6151 (print_symbol_loading): New static global.
6152 (print_symbol_loading_p): New function.
6153 (symbol_file_add_with_addrs): Only print symbol loading messages
6154 if requested.
6155 (_initialize_symfile): Register "print symbol-loading" set/show
6156 command.
6157 * symfile.h (print_symbol_loading_p): Declare.
6158
6159 2014-03-30 Doug Evans <xdje42@gmail.com>
6160
6161 * infrun.c (set_last_target_status): New function.
6162 (handle_inferior_event): Call it.
6163
6164 2014-03-30 Doug Evans <xdje42@gmail.com>
6165
6166 * inferior.h (enum stop_kind): Improve comment.
6167
6168 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6169
6170 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6171 a reference, strip the reference layer before calling
6172 the lang_ops value_has_mutated callback.
6173
6174 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6175
6176 Remove some globals from our parser.
6177 * language.c (unk_lang_parser): Add "struct parser_state"
6178 argument.
6179 * language.h (struct language_defn) <la_parser>: Likewise.
6180 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6181 (initialize_expout): Add "struct parser_state" argument.
6182 Rewrite function to use the parser state.
6183 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6184 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6185 write_exp_elt_longcst, write_exp_elt_dblcst,
6186 write_exp_elt_decfloatcst, write_exp_elt_type,
6187 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6188 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6189 write_dollar_variable): Likewise.
6190 (parse_exp_in_context_1): Use parser state.
6191 (insert_type_address_space): Add "struct parser_state" argument.
6192 Use parser state.
6193 (increase_expout_size): New function.
6194 * parser-defs.h: Forward declare "struct language_defn" and
6195 "struct parser_state".
6196 (expout, expout_size, expout_ptr): Remove extern declarations.
6197 (parse_gdbarch, parse_language): Rewrite macro declarations to
6198 accept the parser state.
6199 (struct parser_state): New struct.
6200 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6201 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6202 write_exp_elt_decfloatcst, write_exp_elt_type,
6203 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6204 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6205 write_exp_msymbol, write_dollar_variable,
6206 mark_struct_expression, insert_type_address_space): Add "struct
6207 parser_state" argument.
6208 (increase_expout_size): New function.
6209 * utils.c (do_clear_parser_state): New function.
6210 (make_cleanup_clear_parser_state): Likewise.
6211 * utils.h (make_cleanup_clear_parser_state): New function
6212 prototype.
6213 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6214 Update calls to write_exp* in order to pass the parser state.
6215 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6216 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6217 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6218 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6219 * stap-probe.c (stap_parse_register_operand): Likewise.
6220 (stap_parse_single_operand): Likewise.
6221 (stap_parse_argument_1): Likewise.
6222 (stap_parse_argument): Use parser state.
6223 * stap-probe.h: Include "parser-defs.h".
6224 (struct stap_parse_info) <pstate>: New field.
6225 * c-exp.y (parse_type): Rewrite to use parser state.
6226 (yyparse): Redefine to c_parse_internal.
6227 (pstate): New global variable.
6228 (parse_number): Add "struct parser_state" argument.
6229 (write_destructor_name): Likewise.
6230 (type_exp): Update calls to write_exp* and similars in order to
6231 use parser state.
6232 (exp1, exp, variable, qualified_name, space_identifier,
6233 typename, typebase): Likewise.
6234 (write_destructor_name, parse_number, lex_one_token,
6235 classify_name, classify_inner_name, c_parse): Add "struct
6236 parser_state" argument. Update function to use parser state.
6237 * c-lang.h: Forward declare "struct parser_state".
6238 (c_parse): Add "struct parser_state" argument.
6239 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6240 (yyparse): Redefine macro to ada_parse_internal.
6241 (pstate): New variable.
6242 (write_int, write_object_renaming, write_var_or_type,
6243 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6244 type_int, type_long, type_long_long, type_float, type_double,
6245 type_long_double, type_char, type_boolean, type_system_address):
6246 Add "struct parser_state" argument.
6247 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6248 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6249 var_or_type, aggregate, aggregate_component_list,
6250 positional_list, others, component_group,
6251 component_associations): Update calls to write_exp* and similar
6252 functions in order to use parser state.
6253 (ada_parse, write_var_from_sym, write_int,
6254 write_exp_op_with_string, write_object_renaming,
6255 find_primitive_type, write_selectors, write_ambiguous_var,
6256 write_var_or_type, write_name_assoc, type_int, type_long,
6257 type_long_long, type_float, type_double, type_long_double,
6258 type_char, type_boolean, type_system_address): Add "struct
6259 parser_state" argument. Adjust function to use parser state.
6260 * ada-lang.c (parse): Likewise.
6261 * ada-lang.h: Forward declare "struct parser_state".
6262 (ada_parse): Add "struct parser_state" argument.
6263 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6264 calls to both functions.
6265 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6266 parser state.
6267 (yyparse): Redefine macro to f_parse_internal.
6268 (pstate): New variable.
6269 (parse_number): Add "struct parser_state" argument.
6270 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6271 and similars in order to use parser state.
6272 (parse_number): Adjust code to use parser state.
6273 (yylex): Likewise.
6274 (f_parse): New function.
6275 * f-lang.h: Forward declare "struct parser_state".
6276 (f_parse): Add "struct parser_state" argument.
6277 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6278 parser state.
6279 (yyparse): Redefine macro for java_parse_internal.
6280 (pstate): New variable.
6281 (push_expression_name, push_expression_name, insert_exp): Add
6282 "struct parser_state" argument.
6283 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6284 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6285 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6286 PostIncrementExpression, PostDecrementExpression,
6287 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6288 UnaryExpressionNotPlusMinus, CastExpression,
6289 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6290 RelationalExpression, EqualityExpression, AndExpression,
6291 ExclusiveOrExpression, InclusiveOrExpression,
6292 ConditionalAndExpression, ConditionalOrExpression,
6293 ConditionalExpression, Assignment, LeftHandSide): Update
6294 calls to write_exp* and similars in order to use parser state.
6295 (parse_number): Ajust code to use parser state.
6296 (yylex): Likewise.
6297 (java_parse): New function.
6298 (push_variable): Add "struct parser_state" argument. Adjust
6299 code to user parser state.
6300 (push_fieldnames, push_qualified_expression_name,
6301 push_expression_name, insert_exp): Likewise.
6302 * jv-lang.h: Forward declare "struct parser_state".
6303 (java_parse): Add "struct parser_state" argument.
6304 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6305 parser state.
6306 (yyparse): Redefine macro to m2_parse_internal.
6307 (pstate): New variable.
6308 (type_exp, exp, fblock, variable, type): Update calls to
6309 write_exp* and similars to use parser state.
6310 (yylex): Likewise.
6311 (m2_parse): New function.
6312 * m2-lang.h: Forward declare "struct parser_state".
6313 (m2_parse): Add "struct parser_state" argument.
6314 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6315 * objc-lang.h: Forward declare "struct parser_state".
6316 (end_msglist): Add "struct parser_state" argument.
6317 * p-exp.y (parse_type): Rewrite macro to use parser state.
6318 (yyparse): Redefine macro to pascal_parse_internal.
6319 (pstate): New variable.
6320 (parse_number): Add "struct parser_state" argument.
6321 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6322 write_exp* and similars in order to use parser state.
6323 (parse_number, yylex): Adjust code to use parser state.
6324 (pascal_parse): New function.
6325 * p-lang.h: Forward declare "struct parser_state".
6326 (pascal_parse): Add "struct parser_state" argument.
6327 * go-exp.y (parse_type): Rewrite macro to use parser state.
6328 (yyparse): Redefine macro to go_parse_internal.
6329 (pstate): New variable.
6330 (parse_number): Add "struct parser_state" argument.
6331 (type_exp, exp1, exp, variable, type): Update calls to
6332 write_exp* and similars in order to use parser state.
6333 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6334 to use parser state.
6335 (go_parse): Likewise.
6336 * go-lang.h: Forward declare "struct parser_state".
6337 (go_parse): Add "struct parser_state" argument.
6338
6339 2014-03-27 Doug Evans <dje@google.com>
6340
6341 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6342
6343 2014-03-27 Doug Evans <dje@google.com>
6344
6345 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6346 Remove argument abbrev_section. All callers updated.
6347
6348 2014-03-27 Doug Evans <dje@google.com>
6349
6350 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6351 addr_base, ranges_base.
6352
6353 2014-03-26 Keith Seitz <keiths@redhat.com>
6354
6355 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6356 types, not VAR_DOMAIN.
6357
6358 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6359
6360 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6361 "ra" registers.
6362 * features/nios2-linux.c: Regenerated.
6363 * features/nios2.c: Regenerated.
6364
6365 2014-03-25 Pedro Alves <palves@redhat.com>
6366
6367 * cli/cli-script.c (script_from_file): Force the interpreter to
6368 sync mode.
6369
6370 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6371
6372 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6373 small stack allocation.
6374
6375 2014-03-24 Tristan Gingold <gingold@adacore.com>
6376
6377 * darwin-nat.c (exc_server): Remove unused prototype.
6378 (darwin_dump_message): Correctly display data on x86_64.
6379 (darwin_encode_reply): Fix style.
6380 Add comments and fix indentation.
6381
6382 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6383
6384 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6385
6386 2014-03-22 Doug Evans <xdje42@gmail.com>
6387
6388 * infcmd.c: Whitespace fixes.
6389 (interrupt_command): Merge two function comments into one.
6390
6391 2014-03-22 Doug Evans <xdje42@gmail.com>
6392
6393 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6394 All uses updated.
6395
6396 2014-03-22 Yao Qi <yao@codesourcery.com>
6397
6398 * remote.c (target_read_live_memory): Remove.
6399 (memory_xfer_live_readonly_partial): Rename it to
6400 remote_xfer_live_readonly_partial. Remove argument 'object'.
6401 All callers updated. Call remote_read_bytes_1
6402 instead of target_read_live_memory.
6403 * tracepoint.c (set_traceframe_number): Remove.
6404 (make_cleanup_restore_traceframe_number): Likewise .
6405 * tracepoint.h (set_traceframe_number): Remove declaration.
6406 (make_cleanup_restore_traceframe_number): Likewise.
6407
6408 2014-03-22 Yao Qi <yao@codesourcery.com>
6409
6410 * remote.c (remote_read_bytes): Move code on reading from the
6411 remote stub to ...
6412 (remote_read_bytes_1): ... here. New function.
6413
6414 2014-03-22 Yao Qi <yao@codesourcery.com>
6415
6416 * ctf.c (ctf_xfer_partial): Check the return value of
6417 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6418 return TARGET_XFER_UNAVAILABLE.
6419 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6420 * target.c (target_read_live_memory): Move it to remote.c.
6421 (memory_xfer_live_readonly_partial): Likewise.
6422 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6423 * remote.c (target_read_live_memory): Moved from target.c.
6424 (memory_xfer_live_readonly_partial): Likewise.
6425 (remote_read_bytes): Factored out from
6426 memory_xfer_partial_1.
6427
6428 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6429
6430 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6431 NULL pointer.
6432
6433 2014-03-21 Pedro Alves <palves@redhat.com>
6434
6435 * infrun.c (normal_stop): Extend comment.
6436
6437 2014-03-21 Hui Zhu <hui@codesourcery.com>
6438 Pedro Alves <palves@redhat.com>
6439
6440 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6441 static buffer.
6442 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6443 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6444 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6445
6446 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6447
6448 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6449 `z' formatted output modifier.
6450
6451 2014-03-20 Tom Tromey <tromey@redhat.com>
6452 Sergio Durigan Junior <sergiodj@redhat.com>
6453
6454 * probe.c (parse_probes): Turn assert into an ordinary error.
6455 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6456 exceptions when parsing probes. Rearrange the code for clarity.
6457
6458 2014-03-20 Tom Tromey <tromey@redhat.com>
6459
6460 PR gdb/14135
6461 * top.c (execute_command): Only dispatch events if the command
6462 started the target.
6463
6464 2014-03-20 Tom Tromey <tromey@redhat.com>
6465
6466 PR cli/15718
6467 * infcall.c: Include event-top.h.
6468 (run_inferior_call): Call async_disable_stdin if needed.
6469
6470 2014-03-20 Pedro Alves <palves@redhat.com>
6471
6472 * infrun.c (prepare_to_proceed): Delete.
6473 (thread_still_needs_step_over): New function.
6474 (find_thread_needs_step_over): New function.
6475 (proceed): If the current thread needs a step-over, set its
6476 steping_over_breakpoint flag. Adjust to use
6477 find_thread_needs_step_over instead of prepare_to_proceed.
6478 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6479 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6480 breakpoint.
6481 (switch_back_to_stepped_thread): Step over breakpoints of all
6482 threads not the stepping thread, before switching back to the
6483 stepping thread.
6484
6485 2014-03-20 Pedro Alves <palves@redhat.com>
6486
6487 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6488 extern.
6489 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6490 * infrun.c (saved_singlestep_ptid)
6491 (stepping_past_singlestep_breakpoint): Delete.
6492 (resume): Remove stepping_past_singlestep_breakpoint handling.
6493 (proceed): Store the prev_pc of the stepping thread too.
6494 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6495 singlestep_pc.
6496 (enum infwait_states): Delete infwait_thread_hop_state.
6497 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6498 field.
6499 (handle_inferior_event): Adjust.
6500 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6501 handling and the thread-hop code. Before removing single-step
6502 breakpoints, check whether the thread hit a single-step breakpoint
6503 of another thread. If it did, the trap is not a random signal.
6504 (switch_back_to_stepped_thread): If the event thread hit a
6505 single-step breakpoint, unblock it before switching to the
6506 stepping thread. Handle the case of the stepped thread having
6507 advanced already.
6508 (keep_going): Handle the case of the current thread moving past a
6509 single-step breakpoint.
6510
6511 2014-03-20 Pedro Alves <palves@redhat.com>
6512
6513 PR breakpoints/7143
6514 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6515 are being stepped over.
6516 (breakpoint_address_match): Make extern.
6517 * breakpoint.h (breakpoint_address_match): New declaration.
6518 * inferior.h (stepping_past_instruction_at): New declaration.
6519 * infrun.c (struct step_over_info): New type.
6520 (step_over_info): New global.
6521 (set_step_over_info, clear_step_over_info)
6522 (stepping_past_instruction_at): New functions.
6523 (handle_inferior_event): Clear the step-over info when
6524 trap_expected is cleared.
6525 (resume): Remove now stale comment.
6526 (clear_proceed_status): Clear step-over info.
6527 (proceed): Adjust step-over handling to set or clear the step-over
6528 info instead of removing all breakpoints.
6529 (handle_signal_stop): When setting up a thread-hop, don't remove
6530 breakpoints here.
6531 (stop_stepping): Clear step-over info.
6532 (keep_going): Adjust step-over handling to set or clear step-over
6533 info and then always inserting breakpoints, instead of removing
6534 all breakpoints when stepping over one.
6535
6536 2014-03-20 Pedro Alves <palves@redhat.com>
6537
6538 * infrun.c (previous_inferior_ptid): Adjust comment.
6539 (deferred_step_ptid): Delete.
6540 (infrun_thread_ptid_changed, prepare_to_proceed)
6541 (init_wait_for_inferior): Adjust.
6542 (handle_signal_stop): Delete deferred_step_ptid handling.
6543
6544 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6545
6546 PR gdb/15358
6547 * defs.h (sync_quit_force_run): New declaration.
6548 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6549 * event-top.c (async_sigterm_handler): New declaration.
6550 (async_sigterm_token): New variable.
6551 (async_init_signals): Create also async_sigterm_token.
6552 (async_sigterm_handler): New function.
6553 (sync_quit_force_run): New variable.
6554 (handle_sigterm): Replace quit_force call by other calls.
6555 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6556
6557 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6558
6559 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6560 offset into SPE pseudo registers.
6561
6562 2014-03-18 Pedro Alves <palves@redhat.com>
6563
6564 PR gdb/13860
6565 * inferior.h (print_stop_event): Declare.
6566 * infrun.c (print_stop_event): New, factored out from ...
6567 (normal_stop): ... this.
6568 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6569 of bpstat_print/print_stack_frame.
6570
6571 2014-03-17 Tom Tromey <tromey@redhat.com>
6572
6573 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6574
6575 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6576
6577 * ada-lang.c (decode_constrained_packed_array): Perform a
6578 minimal coercion for reference with coerce_ref instead of
6579 ada_coerce_ref.
6580
6581 2014-03-17 Tristan Gingold <gingold@adacore.com>
6582
6583 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6584 (darwin_solib_create_inferior_hook): Emit a warning if version
6585 is unhandled.
6586
6587 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6588
6589 * python/py-value.c (get_field_flag): Cast flag_name argument to
6590 PyObject_GetAttrString to support Python 2.4.
6591
6592 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6593
6594 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6595 (Global Maintainers): Remove Jan Kratochvil.
6596
6597 2014-03-14 Pedro Alves <palves@redhat.com>
6598
6599 * inferior.h (terminal_ours_for_output): Rename to ...
6600 (child_terminal_ours_for_output): ... this.
6601 (terminal_save_ours): Rename to ...
6602 (child_terminal_save_ours): ... this.
6603 (terminal_ours): Rename to ...
6604 (child_terminal_ours): ... this.
6605 (terminal_inferior): Rename to ...
6606 (child_terminal_inferior): ... this.
6607 (terminal_init_inferior): Rename to ...
6608 (child_terminal_init_inferior): ... this.
6609 (terminal_init_inferior_with_pgrp): Rename to ...
6610 (child_terminal_init_inferior_with_pgrp): ... this.
6611 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6612 (child_terminal_init_with_pgrp): ... this.
6613 (terminal_save_ours): Rename to ...
6614 (child_terminal_save_ours): ... this.
6615 (terminal_init_inferior): Rename to ...
6616 (child_terminal_init): ... this. Adjust.
6617 (terminal_inferior): Rename to ...
6618 (child_terminal_inferior): ... this.
6619 (terminal_ours_for_output): Rename to ...
6620 (child_terminal_ours_for_output): ... this. Adjust.
6621 (terminal_ours): Rename to ...
6622 (child_terminal_ours): ... this.
6623 (terminal_ours_1): Rename to ...
6624 (child_terminal_ours_1): ... this. Adjust.
6625 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6626 * windows-nat.c (do_initial_windows_stuff): Adjust.
6627 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6628 (gnu_terminal_init): ... this. Adjust.
6629 (gnu_target): Adjust.
6630 * inf-child.c (inf_child_target): Adjust.
6631
6632 2014-03-13 Doug Evans <xdje42@gmail.com>
6633
6634 PR guile/16612
6635 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6636 new eq?-hashtab.
6637
6638 2014-03-13 Doug Evans <xdje42@gmail.com>
6639
6640 * value.c (record_latest_value): Call release_value_or_incref
6641 instead of release_value.
6642
6643 2014-03-13 Pedro Alves <palves@redhat.com>
6644
6645 * procfs.c (procfs_target): Don't override to_shortname,
6646 to_longname or to_doc.
6647
6648 2014-03-13 Pedro Alves <palves@redhat.com>
6649
6650 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6651 Unix in user visible strings.
6652
6653 2014-03-12 Stan Shebs <stan@codesourcery.com>
6654
6655 * gdbtypes.h: Annotate comments for Doxygen, add a page
6656 block comment with some general info.
6657
6658 2014-03-12 Pedro Alves <palves@redhat.com>
6659
6660 * infcmd.c (prepare_execution_command): New function, factored out
6661 from several execution commands.
6662 (run_command_1, continue_command, step_1, jump_command)
6663 (signal_command, until_command, advance_command, finish_command)
6664 (attach_command): Use prepare_execution_command.
6665
6666 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6667
6668 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6669 (MAX_BPTS): Define.
6670 (MAX_WPTS): Define.
6671 (struct arm_linux_thread_points): Removed.
6672 (struct arm_linux_process_info): New.
6673 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6674 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6675 (arm_linux_find_breakpoints_by_tid): Removed.
6676 (struct arch_lwp_info): New.
6677 (arm_linux_find_process_pid): New functions.
6678 (arm_linux_add_process): New functions.
6679 (arm_linux_process_info_get): New functions.
6680 (arm_linux_forget_process): New function.
6681 (arm_linux_get_debug_reg_state): New function.
6682 (struct update_registers_data): New.
6683 (update_registers_callback): New function.
6684 (arm_linux_insert_hw_breakpoint1): Updated.
6685 (arm_linux_remove_hw_breakpoint1): Updated.
6686 (arm_linux_insert_hw_breakpoint): Updated.
6687 (arm_linux_remove_hw_breakpoint): Updated.
6688 (arm_linux_insert_watchpoint): Updated.
6689 (arm_linux_remove_watchpoint): Updated.
6690 (arm_linux_new_thread): Updated.
6691 (arm_linux_prepare_to_resume): New function.
6692 (arm_linux_new_fork): New function.
6693 (_initialize_arm_linux_nat): Updated.
6694
6695 2014-03-12 Pedro Alves <palves@redhat.com>
6696
6697 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6698
6699 2014-03-12 Tom Tromey <tromey@redhat.com>
6700
6701 * inf-child.c (return_zero): New function.
6702 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6703 * aix-thread.c (aix_thread_inferior_created): New function.
6704 (aix_thread_attach): Remove.
6705 (init_aix_thread_ops): Don't set to_attach.
6706 (_initialize_aix_thread): Register inferior_created observer.
6707 * corelow.c (init_core_ops): Don't set to_attach or
6708 to_create_inferior.
6709 * exec.c (init_exec_ops): Don't set to_attach or
6710 to_create_inferior.
6711 * infcmd.c (run_command_1): Use find_run_target. Make direct
6712 target calls.
6713 (attach_command): Use find_attach_target. Make direct target
6714 calls.
6715 * record-btrace.c (init_record_btrace_ops): Don't set
6716 to_create_inferior.
6717 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6718 Remove.
6719 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6720 set to_create_inferior.
6721 * target.c (complete_target_initialization): Add assertion.
6722 (target_create_inferior): Remove.
6723 (find_default_attach, find_default_create_inferior): Remove.
6724 (find_attach_target, find_run_target): New functions.
6725 (find_default_is_async_p, find_default_can_async_p)
6726 (target_supports_non_stop, target_attach): Remove.
6727 (init_dummy_target): Don't set to_create_inferior or
6728 to_supports_non_stop.
6729 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6730 TARGET_DEFAULT_FUNC.
6731 <to_create_inferior>: Add comment.
6732 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6733 TARGET_DEFAULT_RETURN.
6734 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6735 (find_attach_target, find_run_target): Declare.
6736 (target_create_inferior): Remove.
6737 (target_has_execution_1): Update comment.
6738 (target_supports_non_stop): Remove.
6739 * target-delegates.c: Rebuild.
6740
6741 2014-03-12 Pedro Alves <palves@redhat.com>
6742
6743 * inf-child.h: Update comment to not mention Unix.
6744
6745 2014-03-12 Pedro Alves <palves@redhat.com>
6746
6747 * inf-child.c: Update top comment to not mention Unix. Add
6748 generic comment describing how this target is meant to be used.
6749 (inf_child_post_attach, inf_child_post_startup_inferior)
6750 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6751 Unix in comment.
6752
6753 2014-03-12 Pedro Alves <palves@redhat.com>
6754
6755 * nto-procfs.c: Include inf-child.h.
6756 (procfs_ops): Delete global.
6757 (procfs_can_run): Delete method.
6758 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6759 target pointer instead of referencing procfs_ops.
6760 (procfs_prepare_to_store): Delete.
6761 (init_procfs_ops): Delete function.
6762 (procfs_target): New function, based on init_procfs_ops, but
6763 inherit inf_child_target.
6764 (_initialize_procfs): Use procfs_target.
6765
6766 2014-03-12 Pedro Alves <palves@redhat.com>
6767
6768 * windows-nat.c: Include inf-child.h.
6769 (windows_ops): Delete global.
6770 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6771 methods.
6772 (init_windows_ops): Delete function.
6773 (windows_target): New function, based on init_windows_ops, but
6774 inherit inf_child_target.
6775 (_initialize_windows_nat): Use windows_target. Install x86
6776 specific target methods here.
6777
6778 2014-03-10 Doug Evans <xdje42@gmail.com>
6779
6780 * guile/guile.c (call_initialize_gdb_module): New function.
6781 (initialize_guile): Replace call to scm_init_guile with call to
6782 scm_with_guile.
6783
6784 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6785
6786 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6787 in call to TYPE_CODE macro.
6788
6789 2014-03-10 Jerome Guitton <guitton@adacore.com>
6790
6791 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6792 Resolve tagged types to full view.
6793
6794 2014-03-10 Hui Zhu <hui@codesourcery.com>
6795
6796 * target.h (target_insert_breakpoint): Remove "hardware" from its
6797 comments.
6798
6799 2014-03-07 Doug Evans <dje@google.com>
6800
6801 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6802
6803 2014-03-07 Doug Evans <dje@google.com>
6804
6805 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6806 Remove unused local comp_dir_attr. Assert exactly one of
6807 stub_comp_unit_die, stub_comp_dir is non-NULL.
6808
6809 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6810
6811 * target.h (complete_target_initialization, add_target):
6812 Add comment.
6813
6814 2014-03-07 Pedro Alves <palves@redhat.com>
6815
6816 * go32-nat.c: Include inf-child.h.
6817 (go32_ops): Delete global.
6818 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6819 Delete methods.
6820 (go32_create_inferior): Push the passed in target pointer instead
6821 of referencing go32_ops.
6822 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6823 (go32_target): New function, based on init_go32_ops, but inherit
6824 inf_child_target.
6825 (_initialize_go32_nat): Use go32_target. Move parts of
6826 init_go32_ops here.
6827
6828 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6829
6830 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6831 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6832 SYMBOL_VALUE_ADDRESS.
6833 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6834
6835 2014-03-06 Yao Qi <yao@codesourcery.com>
6836
6837 * breakpoint.c (get_tracepoint_by_number): Remove argument
6838 optional_p. All callers updated. Adjust comments. Update
6839 output message.
6840 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6841
6842 2014-03-06 Yao Qi <yao@codesourcery.com>
6843
6844 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6845 early if get_number returns zero. Use 'p' instead of 'args'.
6846
6847 2014-03-06 Yao Qi <yao@codesourcery.com>
6848
6849 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6850 message.
6851
6852 2014-03-06 Yao Qi <yao@codesourcery.com>
6853
6854 PR breakpoints/16508
6855 * tracepoint.c (check_trace_running): New function.
6856 (trace_find_command): Move code to check_trace_running and
6857 call check_trace_running.
6858 (trace_find_pc_command): Likewise.
6859 (trace_find_tracepoint_command): Likewise.
6860 (trace_find_line_command): Likewise.
6861 (trace_find_range_command): Likewise.
6862 * tracepoint.h (check_trace_running): Likewise.
6863 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6864
6865 2014-03-06 Yao Qi <yao@codesourcery.com>
6866
6867 * target.h (struct target_ops) <to_traceframe_info>: Use
6868 TARGET_DEFAULT_NORETURN (tcomplain ()).
6869 * target-delegates.c: Regenerated.
6870
6871 2014-03-05 Pedro Alves <palves@redhat.com>
6872
6873 PR gdb/16575
6874 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6875 void. Update comment.
6876 (dcache_xfer_memory): Delete.
6877 (dcache_read_memory_partial): New, based on the read bits of
6878 dcache_xfer_memory.
6879 (dcache_update): Add status parameter. Use ULONGEST for len, and
6880 adjust. Discard cache lines if the reason for the update was
6881 error.
6882 * dcache.h (dcache_xfer_memory): Delete declaration.
6883 (dcache_read_memory_partial): New declaration.
6884 (dcache_update): Update prototype.
6885 * target.c (raw_memory_xfer_partial): Update the dcache here.
6886 (memory_xfer_partial_1): Don't handle dcache writes here.
6887
6888 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6889
6890 * remote-sim.c (gdbsim_load): Add const to prog.
6891
6892 2014-03-03 Tom Tromey <tromey@redhat.com>
6893
6894 * elfread.c (probe_key): Change to bfd_data.
6895 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6896 now per-BFD, not per-objfile.
6897 * stap-probe.c (stap_probe_destroy): Update comment.
6898 (handle_stap_probe): Allocate on the per-BFD obstack.
6899
6900 2014-03-03 Tom Tromey <tromey@redhat.com>
6901
6902 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6903 * breakpoint.c (create_longjmp_master_breakpoint): Use
6904 get_probe_address.
6905 (add_location_to_breakpoint, bkpt_probe_insert_location)
6906 (bkpt_probe_remove_location): Update.
6907 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6908 * elfread.c (elf_symfile_relocate_probe): Remove.
6909 (elf_probe_fns): Update.
6910 (insert_exception_resume_breakpoint): Change type of "probe"
6911 parameter to bound_probe.
6912 (check_exception_resume): Update.
6913 * objfiles.c (objfile_relocate1): Don't relocate probes.
6914 * probe.c (bound_probe_s): New typedef.
6915 (parse_probes): Use get_probe_address. Set sal's objfile.
6916 (find_probe_by_pc): Return a bound_probe.
6917 (collect_probes): Return a VEC(bound_probe_s).
6918 (compare_probes): Update.
6919 (gen_ui_out_table_header_info): Change type of "probes"
6920 parameter. Update.
6921 (info_probes_for_ops): Update.
6922 (get_probe_address): New function.
6923 (probe_safe_evaluate_at_pc): Update.
6924 * probe.h (struct probe_ops) <get_probe_address>: New field.
6925 <set_semaphore, clear_semaphore>: Add objfile parameter.
6926 (struct probe) <objfile>: Remove field.
6927 <arch>: New field.
6928 <address>: Update comment.
6929 (struct bound_probe): New.
6930 (find_probe_by_pc): Return a bound_probe.
6931 (get_probe_address): Declare.
6932 * solib-svr4.c (struct probe_and_action) <address>: New field.
6933 (hash_probe_and_action, equal_probe_and_action): Update.
6934 (register_solib_event_probe): Add address parameter.
6935 (solib_event_probe_at): Update.
6936 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6937 get_probe_address.
6938 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6939 (stap_get_probe_address): New function.
6940 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6941 (compile_probe_arg): Update.
6942 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6943 address.
6944 (handle_stap_probe): Don't relocate the probe.
6945 (stap_relocate): Remove.
6946 (stap_gen_info_probes_table_values): Update.
6947 (stap_probe_ops): Remove stap_relocate.
6948 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6949 (debug_sym_probe_fns): Update.
6950 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6951 * symtab.c (init_sal): Use memset.
6952 * symtab.h (struct symtab_and_line) <objfile>: New field.
6953 * tracepoint.c (start_tracing, stop_tracing): Update.
6954
6955 2014-03-03 Tom Tromey <tromey@redhat.com>
6956
6957 * probe.h (parse_probes, find_probe_by_pc)
6958 (find_probes_in_objfile): Fix comments.
6959
6960 2014-03-02 Doug Evans <xdje42@gmail.com>
6961
6962 * infrun.c (handle_signal_stop): Replace test for
6963 TARGET_WAITKIND_STOPPED with an assert.
6964
6965 2014-03-02 Doug Evans <xdje42@gmail.com>
6966
6967 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6968
6969 2014-03-02 Doug Evans <xdje42@gmail.com>
6970
6971 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6972
6973 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6974
6975 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6976
6977 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6978
6979 * i386obsd-nat.c: Include "obsd-nat.h".
6980 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6981 add_target.
6982 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6983
6984 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6985
6986 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6987
6988 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6989
6990 * mips64obsd-nat.c: Include "obsd-nath".
6991 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6992 add_target
6993 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6994
6995 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6996
6997 * amd64obsd-nat.c: Include "obsd-nat,h.
6998 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6999 add_target.
7000 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7001
7002 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7003
7004 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7005 (find_overload_match): Update call to find_oload_champ.
7006 (find_oload_champ_namespace_loop): Likewise
7007
7008 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7009
7010 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7011
7012 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7013 * config/sparc/obsd64.mh: New file.
7014 * sparc64obsd-nat.c: New file.
7015
7016 * obsd-nat.h: New file.
7017 * obsd-nat.c: New file.
7018 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7019 (ALLDEPFILES): Add obsd-nat.c.
7020
7021 2014-02-28 Tom Tromey <tromey@redhat.com>
7022
7023 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7024 * cli-out.h (cli_ui_out_impl): Now const.
7025 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7026 * ui-out.c (struct ui_out) <impl>: Now const.
7027 (default_ui_out_impl): Now const.
7028 (ui_out_new): Make 'impl' parameter const.
7029 * ui-out.h (ui_out_new): Update.
7030
7031 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7032
7033 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7034
7035 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7036
7037 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7038
7039 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7040
7041 Additional PR 8882 fix.
7042 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7043
7044 2014-02-27 Pedro Alves <palves@redhat.com>
7045
7046 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7047 isn't set.
7048
7049 2014-02-27 Pedro Alves <palves@redhat.com>
7050
7051 PR 12702
7052 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7053 * nat/linux-waitpid.c: Include string.h.
7054 (status_to_str): Moved here and made extern.
7055 * nat/linux-waitpid.h (status_to_str): New declaration.
7056
7057 2014-02-27 Hui Zhu <hui@codesourcery.com>
7058
7059 PR 12702
7060 * infrun.c (ptid_match): Move ...
7061 * common/ptid.c (ptid_match): ... here.
7062 * inferior.h (ptid_match): Move ...
7063 * common/ptid.h (ptid_match): ... here.
7064
7065 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7066
7067 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7068 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7069 gdb_target_obs.
7070
7071 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7072
7073 * obsd-tdep.c (obsd_auxv_parse): New function.
7074 (obsd_init_abi): Set auxv_parse.
7075
7076 * gdbarch.sh (auxv_parse): New.
7077 * gdbarch.h: Regenerated.
7078 * gdbarch.c: Regenerated.
7079 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7080
7081 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7082
7083 * guile/scm-value.c (gdbscm_history_append_x): New function.
7084 (value_functions): Add it.
7085
7086 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7087
7088 * dwarf2read.c (attr_value_as_address): New function.
7089 (dwarf2_find_base_address, read_call_site_scope): Use
7090 attr_value_as_address in place of DW_ADDR.
7091 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7092 the low and high addresses. Slight rework of the handling
7093 of the high pc being a constant form, and limit it to
7094 DWARF verson 4 or higher.
7095 (dwarf2_record_block_ranges): Likewise.
7096 (read_partial_die): Likewise.
7097 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7098
7099 2014-02-26 Tom Tromey <tromey@redhat.com>
7100
7101 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7102
7103 2014-02-26 Tom Tromey <tromey@redhat.com>
7104
7105 * elfread.c (elf_read_minimal_symbols): Return early if
7106 minimal symbols have already been read. Add "ei" parameter.
7107 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7108 * minsyms.c (prim_record_minimal_symbol_full): Update.
7109 * objfiles.h (struct objstats) <n_minsyms>: Move...
7110 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7111 * symmisc.c (print_objfile_statistics): Update.
7112
7113 2014-02-26 Tom Tromey <tromey@redhat.com>
7114
7115 * elfread.c (elf_read_minimal_symbols): New function, from
7116 elf_symfile_read.
7117 (elf_symfile_read): Call it.
7118
7119 2014-02-26 Tom Tromey <tromey@redhat.com>
7120
7121 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7122 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7123 (lookup_minimal_symbol_solib_trampoline)
7124 (lookup_minimal_symbol_by_pc_section_1)
7125 (lookup_minimal_symbol_and_objfile): Update.
7126 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7127 Don't allocate a minimal symbol if minsyms have already been read.
7128 (build_minimal_symbol_hash_tables): Update.
7129 (install_minimal_symbols): Do nothing if minsyms already read.
7130 Use the per-BFD obstack.
7131 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7132 * objfiles.c (allocate_objfile): Call
7133 terminate_minimal_symbol_table later.
7134 (have_minimal_symbols): Update.
7135 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7136 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7137 Move from struct objfile.
7138 <minsyms_read>: New field.
7139 (struct objfile) <msymbols, minimal_symbol_count,
7140 msymbol_hash, msymbol_demangled_hash>: Move.
7141 (ALL_OBJFILE_MSYMBOLS): Update.
7142 * symfile.c (read_symbols): Set minsyms_read.
7143 (reread_symbols): Update.
7144 * symmisc.c (dump_objfile, dump_msymbols): Update.
7145
7146 2014-02-26 Tom Tromey <tromey@redhat.com>
7147
7148 * minsyms.c (msymbols_sort): Remove.
7149 * minsyms.h (msymbols_sort): Remove.
7150 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7151 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7152 * elfread.c (elf_symtab_read): Don't add section offsets.
7153 * xcoffread.c (record_minimal_symbol): Don't add section offset
7154 to minimal symbol address.
7155 * somread.c (text_offset, data_offset): Remove.
7156 (som_symtab_read): Don't add section offsets to minimal symbol
7157 addresses.
7158 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7159 Don't add section offsets to minimal symbols.
7160 * coffread.c (coff_symtab_read): Don't add section offsets
7161 to minimal symbol addresses.
7162 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7163 to minimal symbol addresses.
7164 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7165 section offset to minimal symbol addresses.
7166 * mdebugread.c (parse_partial_symbols): Don't add section
7167 offset to minimal symbol addresses.
7168 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7169 offset to minimal symbol addresses.
7170
7171 2014-02-26 Tom Tromey <tromey@redhat.com>
7172
7173 * ada-lang.c (ada_main_name): Update.
7174 (ada_add_standard_exceptions): Update.
7175 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7176 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7177 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7178 * auxv.c (ld_so_xfer_auxv): Update.
7179 * avr-tdep.c (avr_scan_prologue): Update.
7180 * ax-gdb.c (gen_var_ref): Update.
7181 * blockframe.c (get_pc_function_start)
7182 (find_pc_partial_function_gnu_ifunc): Update.
7183 * breakpoint.c (create_overlay_event_breakpoint)
7184 (create_longjmp_master_breakpoint)
7185 (create_std_terminate_master_breakpoint)
7186 (create_exception_master_breakpoint): Update.
7187 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7188 * c-valprint.c (c_val_print): Update.
7189 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7190 * common/agent.c (agent_look_up_symbols): Update.
7191 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7192 * dwarf2loc.c (call_site_to_target_addr): Update.
7193 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7194 * elfread.c (elf_gnu_ifunc_record_cache)
7195 (elf_gnu_ifunc_resolve_by_got): Update.
7196 * findvar.c (default_read_var_value): Update.
7197 * frame.c (inside_main_func): Update.
7198 * frv-tdep.c (frv_frame_this_id): Update.
7199 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7200 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7201 Update.
7202 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7203 (hppa_hpux_find_dummy_bpaddr): Update.
7204 * hppa-tdep.c (hppa_symbol_address): Update.
7205 * infcmd.c (until_next_command): Update.
7206 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7207 Update.
7208 * linespec.c (minsym_found, add_minsym): Update.
7209 * linux-nat.c (get_signo): Update.
7210 * linux-thread-db.c (inferior_has_bug): Update.
7211 * m32c-tdep.c (m32c_return_value)
7212 (m32c_m16c_address_to_pointer): Update.
7213 * m32r-tdep.c (m32r_frame_this_id): Update.
7214 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7215 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7216 * maint.c (maintenance_translate_address): Update.
7217 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7218 (frob_address): New function.
7219 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7220 frob_address. Rename parameter to "pc_in".
7221 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7222 addresses.
7223 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7224 Update.
7225 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7226 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7227 * objc-lang.c (find_objc_msgsend): Update.
7228 * objfiles.c (objfile_relocate1): Update.
7229 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7230 * p-valprint.c (pascal_val_print): Update.
7231 * parse.c (write_exp_msymbol): Update.
7232 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7233 (ppc_elfv2_skip_entrypoint): Update.
7234 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7235 * printcmd.c (build_address_symbolic, msym_info)
7236 (address_info): Update.
7237 * proc-service.c (ps_pglobal_lookup): Update.
7238 * psymtab.c (find_pc_sect_psymtab_closer)
7239 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7240 Change msymbol parameter to bound_minimal_symbol.
7241 * ravenscar-thread.c (get_running_thread_id): Update.
7242 * remote.c (remote_check_symbols): Update.
7243 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7244 address.
7245 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7246 * solib-dsbt.c (lm_base): Update.
7247 * solib-frv.c (lm_base, main_got): Update.
7248 * solib-irix.c (locate_base): Update.
7249 * solib-som.c (som_solib_create_inferior_hook)
7250 (link_map_start): Update.
7251 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7252 * solib-svr4.c (elf_locate_base, enable_break): Update.
7253 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7254 (flush_ea_cache): Update.
7255 * stabsread.c (define_symbol, scan_file_globals): Update.
7256 * stack.c (find_frame_funname): Update.
7257 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7258 (debug_qf_find_pc_sect_symtab): Update.
7259 * symfile.c (simple_read_overlay_table)
7260 (simple_overlay_update): Update.
7261 * symfile.h (struct quick_symbol_functions)
7262 <find_pc_sect_symtab>: Change type of msymbol to
7263 bound_minimal_symbol.
7264 * symmisc.c (dump_msymbols): Update.
7265 * symtab.c (find_pc_sect_symtab_via_partial)
7266 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7267 (search_symbols, print_msymbol_info): Update.
7268 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7269 (MSYMBOL_VALUE_ADDRESS): Redefine.
7270 (BMSYMBOL_VALUE_ADDRESS): New macro.
7271 * tracepoint.c (scope_info): Update.
7272 * tui/tui-disasm.c (tui_find_disassembly_address)
7273 (tui_get_begin_asm_address): Update.
7274 * valops.c (find_function_in_inferior): Update.
7275 * value.c (value_static_field, value_fn_field): Update.
7276
7277 2014-02-26 Tom Tromey <tromey@redhat.com>
7278
7279 * ada-lang.c (ada_update_initial_language): Update.
7280 (ada_main_name, ada_has_this_exception_support): Update.
7281 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7282 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7283 * arm-tdep.c (arm_skip_stub): Update.
7284 * auxv.c (ld_so_xfer_auxv): Update.
7285 * avr-tdep.c (avr_scan_prologue): Update.
7286 * ax-gdb.c (gen_var_ref): Update.
7287 * breakpoint.c (struct breakpoint_objfile_data)
7288 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7289 type to bound_minimal_symbol.
7290 (create_overlay_event_breakpoint)
7291 (create_longjmp_master_breakpoint)
7292 (create_std_terminate_master_breakpoint)
7293 (create_exception_master_breakpoint): Update.
7294 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7295 * c-exp.y (classify_name): Update.
7296 * coffread.c (coff_symfile_read): Update.
7297 * common/agent.c (agent_look_up_symbols): Update.
7298 * d-lang.c (d_main_name): Update.
7299 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7300 * dec-thread.c (enable_dec_thread): Update.
7301 * dwarf2loc.c (call_site_to_target_addr): Update.
7302 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7303 * eval.c (evaluate_subexp_standard): Update.
7304 * findvar.c (struct minsym_lookup_data) <result>: Change type
7305 to bound_minimal_symbol.
7306 <objfile>: Remove.
7307 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7308 * frame.c (inside_main_func): Update.
7309 * frv-tdep.c (frv_frame_this_id): Update.
7310 * gcore.c (call_target_sbrk): Update.
7311 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7312 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7313 Update.
7314 * go-lang.c (go_main_name): Update.
7315 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7316 (hppa_hpux_find_import_stub_for_addr): Update.
7317 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7318 Update. Change return type.
7319 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7320 type.
7321 * jit.c (jit_breakpoint_re_set_internal): Update.
7322 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7323 Update.
7324 * linux-nat.c (get_signo): Update.
7325 * linux-thread-db.c (inferior_has_bug): Update
7326 * m32c-tdep.c (m32c_return_value)
7327 (m32c_m16c_address_to_pointer): Update.
7328 * m32r-tdep.c (m32r_frame_this_id): Update.
7329 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7330 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7331 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7332 lookup_minimal_symbol. Change return type.
7333 (lookup_minimal_symbol): Remove.
7334 (lookup_bound_minimal_symbol): Update.
7335 (lookup_minimal_symbol_text): Change return type.
7336 (lookup_minimal_symbol_solib_trampoline): Change return type.
7337 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7338 (lookup_minimal_symbol_solib_trampoline): Change return type.
7339 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7340 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7341 (value_nsstring, find_imps): Update.
7342 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7343 * p-lang.c (pascal_main_name): Update.
7344 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7345 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7346 * proc-service.c (ps_pglobal_lookup): Update.
7347 * ravenscar-thread.c (get_running_thread_msymbol): Change
7348 return type.
7349 (has_ravenscar_runtime, get_running_thread_id): Update.
7350 * remote.c (remote_check_symbols): Update.
7351 * sol-thread.c (ps_pglobal_lookup): Update.
7352 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7353 * solib-dsbt.c (lm_base): Update.
7354 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7355 Update.
7356 * solib-irix.c (locate_base): Update.
7357 * solib-som.c (som_solib_create_inferior_hook)
7358 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7359 Update.
7360 * solib-spu.c (spu_enable_break): Update.
7361 * solib-svr4.c (elf_locate_base, enable_break): Update.
7362 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7363 (flush_ea_cache): Update.
7364 * stabsread.c (define_symbol): Update.
7365 * symfile.c (simple_read_overlay_table): Update.
7366 * symtab.c (find_pc_sect_line): Update.
7367 * tracepoint.c (scope_info): Update.
7368 * tui-disasm.c (tui_get_begin_asm_address): Update.
7369 * value.c (value_static_field): Update.
7370
7371 2014-02-26 Tom Tromey <tromey@redhat.com>
7372
7373 * minsyms.c (prim_record_minimal_symbol_full): Use
7374 SET_MSYMBOL_VALUE_ADDRESS.
7375 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7376 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7377 SET_MSYMBOL_VALUE_ADDRESS.
7378 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7379 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7380
7381 2014-02-26 Tom Tromey <tromey@redhat.com>
7382
7383 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7384 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7385 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7386 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7387 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7388 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7389 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7390 * ada-lang.c (ada_main_name): Update.
7391 (ada_lookup_simple_minsym): Update.
7392 (ada_make_symbol_completion_list): Update.
7393 (ada_add_standard_exceptions): Update.
7394 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7395 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7396 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7397 * arm-tdep.c (skip_prologue_function): Update.
7398 (arm_skip_stack_protector, arm_skip_stub): Update.
7399 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7400 (arm_wince_skip_main_prologue): Update.
7401 * auxv.c (ld_so_xfer_auxv): Update.
7402 * avr-tdep.c (avr_scan_prologue): Update.
7403 * ax-gdb.c (gen_var_ref): Update.
7404 * block.c (call_site_for_pc): Update.
7405 * blockframe.c (get_pc_function_start): Update.
7406 (find_pc_partial_function_gnu_ifunc): Update.
7407 * breakpoint.c (create_overlay_event_breakpoint): Update.
7408 (create_longjmp_master_breakpoint): Update.
7409 (create_std_terminate_master_breakpoint): Update.
7410 (create_exception_master_breakpoint): Update.
7411 (resolve_sal_pc): Update.
7412 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7413 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7414 Update.
7415 * c-valprint.c (c_val_print): Update.
7416 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7417 * coffread.c (coff_symfile_read): Update.
7418 * common/agent.c (agent_look_up_symbols): Update.
7419 * dbxread.c (find_stab_function_addr): Update.
7420 (end_psymtab): Update.
7421 * dwarf2loc.c (call_site_to_target_addr): Update.
7422 (func_verify_no_selftailcall): Update.
7423 (tailcall_dump): Update.
7424 (call_site_find_chain_1): Update.
7425 (dwarf_expr_reg_to_entry_parameter): Update.
7426 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7427 (elf_gnu_ifunc_resolve_by_got): Update.
7428 * f-valprint.c (info_common_command): Update.
7429 * findvar.c (read_var_value): Update.
7430 * frame.c (get_prev_frame_1): Update.
7431 (inside_main_func): Update.
7432 * frv-tdep.c (frv_skip_main_prologue): Update.
7433 (frv_frame_this_id): Update.
7434 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7435 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7436 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7437 (gnuv3_skip_trampoline): Update.
7438 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7439 (hppa64_hpux_in_solib_call_trampoline): Update.
7440 (hppa_hpux_skip_trampoline_code): Update.
7441 (hppa64_hpux_search_dummy_call_sequence): Update.
7442 (hppa_hpux_find_import_stub_for_addr): Update.
7443 (hppa_hpux_find_dummy_bpaddr): Update.
7444 * hppa-tdep.c (hppa_symbol_address)
7445 (hppa_lookup_stub_minimal_symbol): Update.
7446 * i386-tdep.c (i386_skip_main_prologue): Update.
7447 (i386_pe_skip_trampoline_code): Update.
7448 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7449 * infcall.c (get_function_name): Update.
7450 * infcmd.c (until_next_command): Update.
7451 * jit.c (jit_breakpoint_re_set_internal): Update.
7452 (jit_inferior_init): Update.
7453 * linespec.c (minsym_found): Update.
7454 (add_minsym): Update.
7455 * linux-fork.c (info_checkpoints_command): Update.
7456 * linux-nat.c (get_signo): Update.
7457 * linux-thread-db.c (inferior_has_bug): Update.
7458 * m32c-tdep.c (m32c_return_value): Update.
7459 (m32c_m16c_address_to_pointer): Update.
7460 (m32c_m16c_pointer_to_address): Update.
7461 * m32r-tdep.c (m32r_frame_this_id): Update.
7462 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7463 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7464 * maint.c (maintenance_translate_address): Update.
7465 * minsyms.c (add_minsym_to_hash_table): Update.
7466 (add_minsym_to_demangled_hash_table): Update.
7467 (msymbol_objfile): Update.
7468 (lookup_minimal_symbol): Update.
7469 (iterate_over_minimal_symbols): Update.
7470 (lookup_minimal_symbol_text): Update.
7471 (lookup_minimal_symbol_by_pc_name): Update.
7472 (lookup_minimal_symbol_solib_trampoline): Update.
7473 (lookup_minimal_symbol_by_pc_section_1): Update.
7474 (lookup_minimal_symbol_and_objfile): Update.
7475 (prim_record_minimal_symbol_full): Update.
7476 (compare_minimal_symbols): Update.
7477 (compact_minimal_symbols): Update.
7478 (build_minimal_symbol_hash_tables): Update.
7479 (install_minimal_symbols): Update.
7480 (terminate_minimal_symbol_table): Update.
7481 (find_solib_trampoline_target): Update.
7482 (minimal_symbol_upper_bound): Update.
7483 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7484 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7485 (mips_skip_pic_trampoline_code): Update.
7486 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7487 * objc-lang.c (selectors_info): Update.
7488 (classes_info): Update.
7489 (find_methods): Update.
7490 (find_imps): Update.
7491 (find_objc_msgsend): Update.
7492 * objfiles.c (objfile_relocate1): Update.
7493 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7494 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7495 * p-valprint.c (pascal_val_print): Update.
7496 * parse.c (write_exp_msymbol): Update.
7497 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7498 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7499 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7500 * printcmd.c (build_address_symbolic): Update.
7501 (sym_info): Update.
7502 (address_info): Update.
7503 * proc-service.c (ps_pglobal_lookup): Update.
7504 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7505 (find_pc_sect_psymtab): Update.
7506 * python/py-framefilter.c (py_print_frame): Update.
7507 * ravenscar-thread.c (get_running_thread_id): Update.
7508 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7509 Update.
7510 * remote.c (remote_check_symbols): Update.
7511 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7512 (rs6000_skip_trampoline_code): Update.
7513 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7514 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7515 * solib-dsbt.c (lm_base): Update.
7516 * solib-frv.c (lm_base): Update.
7517 (main_got): Update.
7518 * solib-irix.c (locate_base): Update.
7519 * solib-som.c (som_solib_create_inferior_hook): Update.
7520 (som_solib_desire_dynamic_linker_symbols): Update.
7521 (link_map_start): Update.
7522 * solib-spu.c (spu_enable_break): Update.
7523 (ocl_enable_break): Update.
7524 * solib-svr4.c (elf_locate_base): Update.
7525 (enable_break): Update.
7526 * spu-tdep.c (spu_get_overlay_table): Update.
7527 (spu_catch_start): Update.
7528 (flush_ea_cache): Update.
7529 * stabsread.c (define_symbol): Update.
7530 (scan_file_globals): Update.
7531 * stack.c (find_frame_funname): Update.
7532 (frame_info): Update.
7533 * symfile.c (simple_read_overlay_table): Update.
7534 (simple_overlay_update): Update.
7535 * symmisc.c (dump_msymbols): Update.
7536 * symtab.c (fixup_section): Update.
7537 (find_pc_sect_line): Update.
7538 (skip_prologue_sal): Update.
7539 (search_symbols): Update.
7540 (print_msymbol_info): Update.
7541 (rbreak_command): Update.
7542 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7543 (completion_list_objc_symbol): Update.
7544 (default_make_symbol_completion_list_break_on): Update.
7545 * tracepoint.c (scope_info): Update.
7546 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7547 (tui_get_begin_asm_address): Update.
7548 * valops.c (find_function_in_inferior): Update.
7549 * value.c (value_static_field): Update.
7550 (value_fn_field): Update.
7551
7552 2014-02-26 Tom Tromey <tromey@redhat.com>
7553
7554 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7555 bound minimal symbols. Move code that knows about minsym
7556 table layout...
7557 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7558 function.
7559 * minsyms.h (minimal_symbol_upper_bound): Declare.
7560 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7561 minimal_symbol_upper_bound.
7562
7563 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7564
7565 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7566 Use the type's name if its basic type does not have a tag.
7567
7568 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7569
7570 * dwarf2read.c (read_subrange_type): Add comment.
7571
7572 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7573
7574 * dwarf2read.c (update_enumeration_type_from_children): New
7575 function, mostly extracted from process_structure_scope.
7576 (read_enumeration_type): Call update_enumeration_type_from_children.
7577 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7578 and flag_flag_enum fields.
7579
7580 2014-02-26 Pedro Alves <palves@redhat.com>
7581
7582 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7583 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7584 to_xfer_partial method.
7585
7586 2014-02-26 Pedro Alves <palves@redhat.com>
7587
7588 * target.c (complete_target_initialization): Don't install
7589 default_xfer_partial as to_xfer_partial hook.
7590 (nomemory): Delete.
7591 (update_current_target): Don't INHERIT nor de_fault
7592 deprecated_xfer_memory. Delete de_fault macro.
7593 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7594 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7595 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7596 field.
7597
7598 2014-02-26 Pedro Alves <palves@redhat.com>
7599
7600 * go32-nat.c (my_write_child): New function.
7601 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7602 (go32_xfer_partial): New function.
7603 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7604 Instead install a to_xfer_partial hook.
7605
7606 2014-02-26 Pedro Alves <palves@redhat.com>
7607
7608 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7609 to_xfer_partial helper. Rewrite.
7610 (procfs_xfer_partial): New function.
7611 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7612 Install a to_xfer_partial hook.
7613
7614 2014-02-26 Pedro Alves <palves@redhat.com>
7615
7616 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7617 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7618 (m32r_xfer_partial): New function.
7619 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7620 Install a to_xfer_partial hook.
7621
7622 2014-02-26 Pedro Alves <palves@redhat.com>
7623
7624 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7625 helper.
7626 (mips_xfer_partial): New function.
7627 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7628 hook. Install a to_xfer_partial hook.
7629
7630 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7631
7632 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7633 * gdbtypes.c (create_array_type_with_stride): New function,
7634 renaming create_array_type, but with an added parameter
7635 called "bit_stride".
7636 (create_array_type): Re-implement using
7637 create_array_type_with_stride.
7638 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7639 and DW_AT_bit_stride attributes.
7640
7641 2014-02-26 Pedro Alves <palves@redhat.com>
7642
7643 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7644 task-specific breakpoints.
7645
7646 2014-02-25 Pedro Alves <palves@redhat.com>
7647
7648 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7649 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7650
7651 2014-02-25 Stan Shebs <stan@codesourcery.com>
7652
7653 * defs.h: Annotate comments for Doxygen.
7654
7655 2014-02-25 Tom Tromey <tromey@redhat.com>
7656
7657 * target.h (target_ignore): Don't declare.
7658 * target.c (target_ignore): Remove.
7659
7660 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7661
7662 PR gdb/16626
7663 * auto-load.c (auto_load_objfile_script_1): Change filename to
7664 debugfile.
7665
7666 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7667
7668 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7669 documentation. Adjust prototype to match the target_ops
7670 to_xfer_partial method. Adjust implementation accordingly.
7671
7672 2014-02-25 Hui Zhu <hui@codesourcery.com>
7673
7674 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7675 to_traceframe_info.
7676
7677 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7678
7679 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7680 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7681 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7682 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7683 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7684 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7685 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7686 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7687 New constants.
7688 (rl78_register_type): Use a data pointer type for SP and
7689 new pseudo registers mentioned above. Use a 16 bit integer
7690 type for all other register pairs.
7691 (rl78_register_name, rl78_g10_register_name): Update for
7692 new pseudo registers.
7693 (rl78_pseudo_register_read): Likewise.
7694 (rl78_pseudo_register_write): Likewise.
7695 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7696 to the newly added pseudo registers.
7697
7698 2014-02-24 Doug Evans <dje@google.com>
7699
7700 * value.c (record_latest_value): Fix comment.
7701 * printcmd.c (print_command_1): Remove code to handle -1 return from
7702 record_latest_value.
7703
7704 2014-02-24 Pedro Alves <palves@redhat.com>
7705
7706 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7707 deprecated_xfer_memory hook.
7708 (procfs_xfer_partial): Call procfs_xfer_memory instead
7709 of the deprecated_xfer_memory target hook.
7710 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7711 helper.
7712
7713 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7714
7715 * windows-nat.c (windows_xfer_shared_libraries): Return
7716 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7717 requested object is TARGET_OBJECT_LIBRARIES.
7718
7719 2014-02-24 Yao Qi <yao@codesourcery.com>
7720
7721 * target.h (enum target_xfer_status)
7722 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7723 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7724 explicitly. New.
7725 * corefile.c (memory_error_message): User updated.
7726 * exec.c (section_table_read_available_memory): Likewise.
7727 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7728 * target.c (target_xfer_status_to_string): Likewise.
7729 (raw_memory_xfer_partial): Likewise.
7730 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7731 * valops.c (read_value_memory): Likewise.
7732 * exec.h: Update comments.
7733
7734 2014-02-24 Yao Qi <yao@codesourcery.com>
7735
7736 * target.c (target_xfer_status_to_string): Rename argument err
7737 to status.
7738 * target.h (target_xfer_status_to_string): Update declaration.
7739 Replace target_xfer_error_to_string with
7740 target_xfer_status_to_string in comment.
7741
7742 2014-02-24 Yao Qi <yao@codesourcery.com>
7743
7744 * mips-linux-nat.c (super_close): Update its type.
7745 (mips_linux_close): Pass 'self' to super_close.
7746
7747 2014-02-24 Yao Qi <yao@codesourcery.com>
7748
7749 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7750 * corefile.c (read_memory): Adjusted.
7751 * target.c (target_write_with_progress): Adjusted.
7752
7753 2014-02-23 Yao Qi <yao@codesourcery.com>
7754
7755 Revert two patches:
7756
7757 2013-10-25 Yao Qi <yao@codesourcery.com>
7758
7759 * remote.c (remote_traceframe_info): Return early if
7760 traceframe is not selected.
7761
7762 2013-07-19 Yao Qi <yao@codesourcery.com>
7763
7764 * target.c (update_current_target): Change the default action
7765 of 'to_traceframe_info' from tcomplain to return_zero.
7766 * target.h (struct target_ops) <to_traceframe_info>: Add more
7767 comments.
7768
7769 2014-02-23 Yao Qi <yao@codesourcery.com>
7770
7771 * valops.c (read_value_memory): Rewrite it. Call
7772 target_xfer_partial in a loop.
7773 * exec.h (section_table_available_memory): Remove declaration.
7774 Move comments to ...
7775 * exec.c (section_table_available_memory): ... here. Make it
7776 static.
7777
7778 2014-02-23 Yao Qi <yao@codesourcery.com>
7779
7780 * exec.c (section_table_read_available_memory): New function.
7781 * exec.h (section_table_read_available_memory): Declare.
7782 * ctf.c (ctf_xfer_partial): Call
7783 section_table_read_available_memory.
7784 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7785
7786 2014-02-23 Yao Qi <yao@codesourcery.com>
7787
7788 * ctf.c (ctf_xfer_partial): Move code to ...
7789 * exec.c (exec_read_partial_read_only): ... it. New function.
7790 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7791 * tracefile.c: Include "exec.h".
7792 * exec.h (exec_read_partial_read_only): Declare.
7793
7794 2014-02-23 Yao Qi <yao@codesourcery.com>
7795
7796 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7797 (tfile_has_memory): Remove.
7798 (init_tfile_ops): Don't set fields to_has_all_memory and
7799 to_has_memory of tfile_ops.
7800 * tracefile.c (tracefile_has_all_memory): New function.
7801 (tracefile_has_memory): New function.
7802 (init_tracefile_ops): Initialize fields to_has_all_memory and
7803 to_has_memory of 'ops'.
7804
7805 2014-02-23 Yao Qi <yao@codesourcery.com>
7806
7807 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7808 (ctf_thread_alive, ctf_get_trace_status): Remove.
7809 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7810 init_tracefile_ops.
7811 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7812 (tfile_has_stack, tfile_has_registers): Remove.
7813 (tfile_thread_alive): Remove.
7814 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7815 init_tracefile_ops.
7816 * tracefile.c (tracefile_has_stack): New function.
7817 (tracefile_has_registers): New function.
7818 (tracefile_thread_alive): New function.
7819 (tracefile_get_trace_status): New function.
7820 (init_tracefile_ops): New function.
7821 * tracefile.h (init_tracefile_ops): Declare.
7822
7823 2014-02-23 Yao Qi <yao@codesourcery.com>
7824
7825 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7826 (O_LARGEFILE): Likewise.
7827 (tfile_ops): Likewise.
7828 (TRACE_HEADER_SIZE): Likewise.
7829 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7830 (cur_data_size): Likewise.
7831 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7832 (tfile_close, tfile_files_info): Likewise.
7833 (tfile_get_trace_status): Likewise.
7834 (tfile_get_tracepoint_status): Likewise.
7835 (tfile_get_traceframe_address): Likewise.
7836 (tfile_trace_find, match_blocktype): Likewise.
7837 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7838 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7839 (tfile_get_trace_state_variable_value): Likewise.
7840 (tfile_has_all_memory, tfile_has_memory): Likewise.
7841 (tfile_has_stack, tfile_has_registers): Likewise.
7842 (tfile_thread_alive, build_traceframe_info): Likewise.
7843 (tfile_traceframe_info, init_tfile_ops): Likewise.
7844 (_initialize_tracepoint): Don't call init_tfile_ops
7845 and add_target_with_completer.
7846 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7847 exec.h, completer.h and filenames.h.
7848 (_initialize_tracefile_tfile): New function.
7849
7850 2014-02-23 Yao Qi <yao@codesourcery.com>
7851
7852 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7853 tracefile-tfile.o.
7854 (HFILES_NO_SRCDIR): Add tracefile.h.
7855 * ctf.c: Include "tracefile.h".
7856 * tracefile.h: New file.
7857 * tracefile.c: New file
7858 * tracefile-tfile.c: New file.
7859 * tracepoint.c: Include "tracefile.h".
7860 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7861 (stop_reason_names): Add const.
7862 (trace_file_writer_xfree): Move it to tracefile.c.
7863 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7864 (trace_save_ctf): Likewise.
7865 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7866 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7867 (tfile_write_header, tfile_write_regblock_type): Likewise.
7868 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7869 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7870 (tfile_write_raw_data, tfile_end): Likewise.
7871 (tfile_trace_file_writer_new): Likewise.
7872 (free_uploaded_tp): Make it extern.
7873 (free_uploaded_tsv): Make it extern.
7874 (_initialize_tracepoint): Move code to register command 'tsave'
7875 to tracefile.c.
7876 * tracepoint.h (stop_reason_names): Declare.
7877 (struct trace_frame_write_ops): Move it to tracefile.h.
7878 (struct trace_file_write_ops): Likewise.
7879 (struct trace_file_writer): Likewise.
7880 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7881
7882 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7883
7884 PR gdb/16594
7885 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7886 process name.
7887 (get_cores_used_by_process): New parameter num_cores, use it.
7888 (linux_xfer_osdata_processes): Pass num_cores to it.
7889 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7890 process name.
7891
7892 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7893
7894 * target.c (memory_xfer_partial): Fix length arg in call to
7895 breakpoint_xfer_memory.
7896
7897 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7898
7899 PR tdep/16397
7900 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7901 number comes after the + or - signs. Adjust length of register
7902 name to be extracted.
7903
7904 2014-02-20 Tom Tromey <tromey@redhat.com>
7905
7906 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7907 (ada_varobj_ops): Mark "extern".
7908
7909 2014-02-20 Tom Tromey <tromey@redhat.com>
7910
7911 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7912
7913 2014-02-20 Doug Evans <xdje42@gmail.com>
7914
7915 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7916 All callers updated.
7917 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7918 All callers updated.
7919 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7920 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7921
7922 2014-02-20 lin zuojian <manjian2006@gmail.com>
7923 Joel Brobecker <brobecker@adacore.com>
7924 Doug Evans <xdje42@gmail.com>
7925
7926 PR symtab/16581
7927 * dwarf2read.c (struct die_info): New member in_process.
7928 (reset_die_in_process): New function.
7929 (process_die): Set it at the start, reset when returning.
7930 (inherit_abstract_dies): Only call process_die if origin_child_die
7931 not already being processed.
7932
7933 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7934
7935 * windows-nat.c (handle_unload_dll): Add function documentation.
7936 (do_initial_windows_stuff): Add comment explaining why we wait
7937 until after inferior initialization has finished before
7938 processing all DLLs.
7939
7940 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7941
7942 * windows-nat.c (get_module_name): Delete.
7943 (windows_get_exec_module_filename): New function, mostly
7944 inspired from get_module_name.
7945 (windows_pid_to_exec_file): Replace call to get_module_name
7946 by call to windows_get_exec_module_filename.
7947
7948 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7949
7950 * windows-nat.c (handle_load_dll): Rewrite this function's
7951 introductory comment. Remove code using get_module_name
7952 to get the DLL's name.
7953
7954 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7955
7956 * windows-nat.c (get_windows_debug_event): Ignore
7957 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7958 if windows_initialization_done == 0.
7959 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7960 Adjust implementation to always load all DLLs.
7961 (do_initial_windows_stuff): Replace call to
7962 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7963
7964 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7965
7966 * windows-nat.c (_initialize_windows_nat): Deprecate the
7967 "dll-symbols" command. Turn the "add-shared-symbol-files"
7968 and "assf" aliases into commands, and deprecate them as well.
7969 * NEWS: Add entry explaining that "dll-symbols" and its two
7970 aliases are now deprecated.
7971
7972 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7973
7974 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7975 new-line in debug string. Remove trailing spaces.
7976
7977 2014-02-19 Stan Shebs <stan@codesourcery.com>
7978
7979 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7980
7981 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7982
7983 * NEWS: Add entry for the new feature
7984 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7985 and class values.
7986
7987 2014-02-19 Stan Shebs <stan@codesourcery.com>
7988
7989 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7990
7991 2014-02-19 Pedro Alves <palves@redhat.com>
7992
7993 * common/ptid.h (struct ptid): Mention that process_stratum
7994 targets should prefer ptid.lwp.
7995
7996 2014-02-19 Pedro Alves <palves@redhat.com>
7997
7998 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7999 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8000 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8001 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8002 store remote thread ids rather than ptid.tid.
8003 (_initialize_remote): Adjust.
8004
8005 2014-02-19 Tom Tromey <tromey@redhat.com>
8006
8007 * target.c (target_get_unwinder): Rewrite.
8008 (target_get_tailcall_unwinder): Rewrite.
8009 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8010 (record_btrace_to_get_tailcall_unwinder): New function.
8011 (init_record_btrace_ops): Update.
8012 * target.h (struct target_ops) <to_get_unwinder,
8013 to_get_tailcall_unwinder>: Now function pointers. Use
8014 TARGET_DEFAULT_RETURN.
8015
8016 2014-02-19 Tom Tromey <tromey@redhat.com>
8017
8018 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8019 argument.
8020 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8021
8022 2014-02-19 Tom Tromey <tromey@redhat.com>
8023
8024 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8025 directly.
8026 * target-delegates.c: Rebuild.
8027 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8028 TARGET_DEFAULT_FUNC.
8029 * target.c (default_target_decr_pc_after_break): Rename from
8030 forward_target_decr_pc_after_break. Simplify.
8031 (target_decr_pc_after_break): Rely on delegation.
8032
8033 2014-02-19 Tom Tromey <tromey@redhat.com>
8034
8035 * target.c (update_current_target): Do not INHERIT to_doc or
8036 to_magic. Do not de_fault to_open or to_close.
8037
8038 2014-02-19 Tom Tromey <tromey@redhat.com>
8039
8040 * gcore.h (objfile_find_memory_regions): Declare.
8041 * gcore.c (objfile_find_memory_regions): No longer static. Add
8042 "self" argument.
8043 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8044 * exec.c: Include gcore.h.
8045 (exec_set_find_memory_regions): Remove.
8046 (exec_find_memory_regions): Remove.
8047 (exec_do_find_memory_regions): Remove.
8048 (init_exec_ops): Update.
8049 * defs.h (exec_set_find_memory_regions): Remove.
8050
8051 2014-02-19 Tom Tromey <tromey@redhat.com>
8052
8053 * target-delegates.c: Rebuild.
8054 * target.h (struct target_ops) <to_extra_thread_info,
8055 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8056 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8057 not 0, in TARGET_DEFAULT_RETURN.
8058
8059 2014-02-19 Tom Tromey <tromey@redhat.com>
8060
8061 * target.c (complete_target_initialization): Remove casts. Use
8062 return_zero_has_execution.
8063 (return_zero): Add "ignore" argument.
8064 (return_zero_has_execution): New function.
8065 (init_dummy_target): Remove casts. Use
8066 return_zero_has_execution.
8067
8068 2014-02-19 Tom Tromey <tromey@redhat.com>
8069
8070 * target.c (update_current_target): Update comments. Do not
8071 INHERIT to_stratum.
8072
8073 2014-02-19 Tom Tromey <tromey@redhat.com>
8074
8075 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8076 needed.
8077 * corelow.c (core_read_description): Delegate when needed.
8078 * remote.c (remote_read_description): Delegate when needed.
8079 * target-delegates.c: Rebuild.
8080 * target.c (target_read_description): Rewrite.
8081 * target.h (struct target_ops) <to_read_description>: Update
8082 comment. Use TARGET_DEFAULT_RETURN.
8083
8084 2014-02-19 Tom Tromey <tromey@redhat.com>
8085
8086 * target-delegates.c: Rebuild.
8087 * target.c (update_current_target): Don't inherit or default
8088 to_can_run.
8089 (find_default_run_target): Check against delegate_can_run.
8090 * target.h (struct target_ops) <to_can_run>: Use
8091 TARGET_DEFAULT_RETURN.
8092
8093 2014-02-19 Tom Tromey <tromey@redhat.com>
8094
8095 * target-delegates.c: Rebuild.
8096 * target.c (target_disconnect): Unconditionally delegate.
8097 * target.h (struct target_ops) <to_disconnect>: Use
8098 TARGET_DEFAULT_NORETURN.
8099
8100 2014-02-19 Tom Tromey <tromey@redhat.com>
8101
8102 * record.c (record_stop): Unconditionally delegate.
8103 * target-delegates.c: Rebuild.
8104 * target.c (target_stop_recording): Unconditionally delegate.
8105 * target.h (struct target_ops) <to_stop_recording>: Use
8106 TARGET_DEFAULT_IGNORE.
8107
8108 2014-02-19 Tom Tromey <tromey@redhat.com>
8109
8110 * target-delegates.c: Rebuild.
8111 * target.c (target_enable_btrace): Unconditionally delegate.
8112 * target.h (struct target_ops) <to_enable_btrace>: Use
8113 TARGET_DEFAULT_NORETURN.
8114
8115 2014-02-19 Tom Tromey <tromey@redhat.com>
8116
8117 * target-delegates.c: Rebuild.
8118 * target.c (target_read_btrace): Unconditionally delegate.
8119 * target.h (struct target_ops) <to_read_btrace>: Use
8120 TARGET_DEFAULT_NORETURN.
8121
8122 2014-02-19 Tom Tromey <tromey@redhat.com>
8123
8124 * target-delegates.c: Rebuild.
8125 * target.c (target_teardown_btrace): Unconditionally delegate.
8126 * target.h (struct target_ops) <to_teardown_btrace>: Use
8127 TARGET_DEFAULT_NORETURN.
8128
8129 2014-02-19 Tom Tromey <tromey@redhat.com>
8130
8131 * target-delegates.c: Rebuild.
8132 * target.c (target_disable_btrace): Unconditionally delegate.
8133 * target.h (struct target_ops) <to_disable_btrace>: Use
8134 TARGET_DEFAULT_NORETURN.
8135
8136 2014-02-19 Tom Tromey <tromey@redhat.com>
8137
8138 * target-delegates.c: Rebuild.
8139 * target.c (default_search_memory): New function.
8140 (simple_search_memory): Update comment.
8141 (target_search_memory): Unconditionally delegate.
8142 * target.h (struct target_ops) <to_search_memory>: Use
8143 TARGET_DEFAULT_FUNC.
8144
8145 2014-02-19 Tom Tromey <tromey@redhat.com>
8146
8147 * auxv.c (default_auxv_parse): No longer static.
8148 (target_auxv_parse): Unconditionally delegate.
8149 * auxv.h (default_auxv_parse): Declare.
8150 * target-delegates.c: Rebuild.
8151 * target.c: Include auxv.h.
8152 * target.h (struct target_ops) <to_auxv_parse>: Use
8153 TARGET_DEFAULT_FUNC.
8154
8155 2014-02-19 Tom Tromey <tromey@redhat.com>
8156
8157 * target-delegates.c: Rebuild.
8158 * target.c (target_memory_map): Unconditionally delegate.
8159 * target.h (struct target_ops) <to_memory_map>: Use
8160 TARGET_DEFAULT_RETURN.
8161
8162 2014-02-19 Tom Tromey <tromey@redhat.com>
8163
8164 * target-delegates.c: Rebuild.
8165 * target.c (target_thread_alive): Unconditionally delegate.
8166 * target.h (struct target_ops) <to_thread_alive>: Use
8167 TARGET_DEFAULT_RETURN.
8168
8169 2014-02-19 Tom Tromey <tromey@redhat.com>
8170
8171 * target-delegates.c: Rebuild.
8172 * target.c (target_save_record): Unconditionally delegate.
8173 * target.h (struct target_ops) <to_save_record>: Use
8174 TARGET_DEFAULT_NORETURN.
8175
8176 2014-02-19 Tom Tromey <tromey@redhat.com>
8177
8178 * target-delegates.c: Rebuild.
8179 * target.c (target_delete_record): Unconditionally delegate.
8180 * target.h (struct target_ops) <to_delete_record>: Use
8181 TARGET_DEFAULT_NORETURN.
8182
8183 2014-02-19 Tom Tromey <tromey@redhat.com>
8184
8185 * target-delegates.c: Rebuild.
8186 * target.c (target_record_is_replaying): Unconditionally
8187 delegate.
8188 * target.h (struct target_ops) <to_record_is_replaying>: Use
8189 TARGET_DEFAULT_RETURN.
8190
8191 2014-02-19 Tom Tromey <tromey@redhat.com>
8192
8193 * target-delegates.c: Rebuild.
8194 * target.c (target_goto_record_begin): Unconditionally delegate.
8195 * target.h (struct target_ops) <to_goto_record_begin>: Use
8196 TARGET_DEFAULT_NORETURN.
8197
8198 2014-02-19 Tom Tromey <tromey@redhat.com>
8199
8200 * target-delegates.c: Rebuild.
8201 * target.c (target_goto_record_end): Unconditionally delegate.
8202 * target.h (struct target_ops) <to_goto_record_end>: Use
8203 TARGET_DEFAULT_NORETURN.
8204
8205 2014-02-19 Tom Tromey <tromey@redhat.com>
8206
8207 * target-delegates.c: Rebuild.
8208 * target.c (target_goto_record): Unconditionally delegate.
8209 * target.h (struct target_ops) <to_goto_record>: Use
8210 TARGET_DEFAULT_NORETURN.
8211
8212 2014-02-19 Tom Tromey <tromey@redhat.com>
8213
8214 * target-delegates.c: Rebuild.
8215 * target.c (target_insn_history): Unconditionally delegate.
8216 * target.h (struct target_ops) <to_insn_history>: Use
8217 TARGET_DEFAULT_NORETURN.
8218
8219 2014-02-19 Tom Tromey <tromey@redhat.com>
8220
8221 * target-delegates.c: Rebuild.
8222 * target.c (target_insn_history_from): Unconditionally delegate.
8223 * target.h (struct target_ops) <to_insn_history_from>: Use
8224 TARGET_DEFAULT_NORETURN.
8225
8226 2014-02-19 Tom Tromey <tromey@redhat.com>
8227
8228 * target-delegates.c: Rebuild.
8229 * target.c (target_insn_history_range): Unconditionally delegate.
8230 * target.h (struct target_ops) <to_insn_history_range>: Use
8231 TARGET_DEFAULT_NORETURN.
8232
8233 2014-02-19 Tom Tromey <tromey@redhat.com>
8234
8235 * target-delegates.c: Rebuild.
8236 * target.c (target_call_history): Unconditionally delegate.
8237 * target.h (struct target_ops) <to_call_history>: Use
8238 TARGET_DEFAULT_NORETURN.
8239
8240 2014-02-19 Tom Tromey <tromey@redhat.com>
8241
8242 * target-delegates.c: Rebuild.
8243 * target.c (target_call_history_from): Unconditionally delegate.
8244 * target.h (struct target_ops) <to_call_history_from>: Use
8245 TARGET_DEFAULT_NORETURN.
8246
8247 2014-02-19 Tom Tromey <tromey@redhat.com>
8248
8249 * target-delegates.c: Rebuild.
8250 * target.c (target_call_history_range): Unconditionally delegate.
8251 * target.h (struct target_ops) <to_call_history_range>: Use
8252 TARGET_DEFAULT_NORETURN.
8253
8254 2014-02-19 Tom Tromey <tromey@redhat.com>
8255
8256 * target-delegates.c: Rebuild.
8257 * target.c (target_verify_memory): Unconditionally delegate.
8258 * target.h (struct target_ops) <to_verify_memory>: Use
8259 TARGET_DEFAULT_NORETURN.
8260
8261 2014-02-19 Tom Tromey <tromey@redhat.com>
8262
8263 * target-delegates.c: Rebuild.
8264 * target.c (target_core_of_thread): Unconditionally delegate.
8265 * target.h (struct target_ops) <to_core_of_thread>: Use
8266 TARGET_DEFAULT_RETURN.
8267
8268 2014-02-19 Tom Tromey <tromey@redhat.com>
8269
8270 * target-delegates.c: Rebuild.
8271 * target.c (target_flash_done): Unconditionally delegate.
8272 * target.h (struct target_ops) <to_flash_done>: Use
8273 TARGET_DEFAULT_NORETURN.
8274
8275 2014-02-19 Tom Tromey <tromey@redhat.com>
8276
8277 * target-delegates.c: Rebuild.
8278 * target.c (target_flash_erase): Unconditionally delegate.
8279 * target.h (struct target_ops) <to_flash_erase>: Use
8280 TARGET_DEFAULT_NORETURN.
8281
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8283
8284 * target-delegates.c: Rebuild.
8285 * target.c (target_get_section_table): Unconditionally delegate.
8286 * target.h (struct target_ops) <to_get_section_table>: Use
8287 TARGET_DEFAULT_RETURN.
8288
8289 2014-02-19 Tom Tromey <tromey@redhat.com>
8290
8291 * target-delegates.c: Rebuild.
8292 * target.c (target_pid_to_str): Unconditionally delegate.
8293 (init_dummy_target): Don't initialize to_pid_to_str.
8294 (default_pid_to_str): Rename from dummy_pid_to_str.
8295 * target.h (struct target_ops) <to_pid_to_str>: Use
8296 TARGET_DEFAULT_FUNC.
8297
8298 2014-02-19 Tom Tromey <tromey@redhat.com>
8299
8300 * target-delegates.c: Rebuild.
8301 * target.c (target_find_new_threads): Unconditionally delegate.
8302 * target.h (struct target_ops) <to_find_new_threads>: Use
8303 TARGET_DEFAULT_RETURN.
8304
8305 2014-02-19 Tom Tromey <tromey@redhat.com>
8306
8307 * target-delegates.c: Rebuild.
8308 * target.c (target_program_signals): Unconditionally delegate.
8309 * target.h (struct target_ops) <to_program_signals>: Use
8310 TARGET_DEFAULT_IGNORE.
8311
8312 2014-02-19 Tom Tromey <tromey@redhat.com>
8313
8314 * target-delegates.c: Rebuild.
8315 * target.c (target_pass_signals): Unconditionally delegate.
8316 * target.h (struct target_ops) <to_pass_signals>: Use
8317 TARGET_DEFAULT_IGNORE.
8318
8319 2014-02-19 Tom Tromey <tromey@redhat.com>
8320
8321 * target-delegates.c: Rebuild.
8322 * target.c (default_mourn_inferior): New function.
8323 (target_mourn_inferior): Unconditionally delegate.
8324 * target.h (struct target_ops) <to_mourn_inferior>: Use
8325 TARGET_DEFAULT_FUNC.
8326
8327 2014-02-19 Tom Tromey <tromey@redhat.com>
8328
8329 * target-delegates.c: Rebuild.
8330 * target.c (default_follow_fork): New function.
8331 (target_follow_fork): Unconditionally delegate.
8332 * target.h (struct target_ops) <to_follow_fork>: Use
8333 TARGET_DEFAULT_FUNC.
8334
8335 2014-02-19 Tom Tromey <tromey@redhat.com>
8336
8337 * target-delegates.c: Rebuild.
8338 * target.c (target_kill): Unconditionally delegate.
8339 * target.h (struct target_ops) <to_kill>: Use
8340 TARGET_DEFAULT_NORETURN.
8341
8342 2014-02-19 Tom Tromey <tromey@redhat.com>
8343
8344 * target-delegates.c: Rebuild.
8345 * target.c (target_masked_watch_num_registers): Unconditionally
8346 delegate.
8347 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8348 Use TARGET_DEFAULT_RETURN.
8349
8350 2014-02-19 Tom Tromey <tromey@redhat.com>
8351
8352 * target-delegates.c: Rebuild.
8353 * target.c (target_remove_mask_watchpoint): Unconditionally
8354 delegate.
8355 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8356 TARGET_DEFAULT_RETURN.
8357
8358 2014-02-19 Tom Tromey <tromey@redhat.com>
8359
8360 * target-delegates.c: Rebuild.
8361 * target.c (target_insert_mask_watchpoint): Unconditionally
8362 delegate.
8363 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8364 TARGET_DEFAULT_RETURN.
8365
8366 2014-02-19 Tom Tromey <tromey@redhat.com>
8367
8368 * target-delegates.c: Rebuild.
8369 * target.c (target_ranged_break_num_registers): Unconditionally
8370 delegate.
8371 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8372 Use TARGET_DEFAULT_RETURN.
8373
8374 2014-02-19 Tom Tromey <tromey@redhat.com>
8375
8376 * target-delegates.c: Rebuild.
8377 * target.c (target_fetch_registers): Unconditionally delegate.
8378 * target.h (struct target_ops) <to_fetch_registers>: Use
8379 TARGET_DEFAULT_NORETURN.
8380
8381 2014-02-19 Tom Tromey <tromey@redhat.com>
8382
8383 * target-delegates.c: Rebuild.
8384 * target.c (update_current_target): Don't inherit or default
8385 to_stop.
8386 * target.h (struct target_ops) <to_stop>: Use
8387 TARGET_DEFAULT_IGNORE.
8388
8389 2014-02-19 Tom Tromey <tromey@redhat.com>
8390
8391 * target-delegates.c: Rebuild.
8392 * target.c (update_current_target): Don't inherit or default
8393 to_can_run_breakpoint_commands.
8394 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8395 Use TARGET_DEFAULT_RETURN.
8396
8397 2014-02-19 Tom Tromey <tromey@redhat.com>
8398
8399 * target-delegates.c: Rebuild.
8400 * target.c (update_current_target): Don't inherit or default
8401 to_supports_evaluation_of_breakpoint_conditions.
8402 * target.h (struct target_ops)
8403 <to_supports_evaluation_of_breakpoint_conditions>: Use
8404 TARGET_DEFAULT_RETURN.
8405
8406 2014-02-19 Tom Tromey <tromey@redhat.com>
8407
8408 * target-delegates.c: Rebuild.
8409 * target.c (update_current_target): Don't inherit or default
8410 to_augmented_libraries_svr4_read.
8411 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8412 Use TARGET_DEFAULT_RETURN.
8413
8414 2014-02-19 Tom Tromey <tromey@redhat.com>
8415
8416 * target-delegates.c: Rebuild.
8417 * target.c (update_current_target): Don't inherit or default
8418 to_can_use_agent.
8419 * target.h (struct target_ops) <to_can_use_agent>: Use
8420 TARGET_DEFAULT_RETURN.
8421
8422 2014-02-19 Tom Tromey <tromey@redhat.com>
8423
8424 * target-delegates.c: Rebuild.
8425 * target.c (update_current_target): Don't inherit or default
8426 to_use_agent.
8427 * target.h (struct target_ops) <to_use_agent>: Use
8428 TARGET_DEFAULT_NORETURN.
8429
8430 2014-02-19 Tom Tromey <tromey@redhat.com>
8431
8432 * target-delegates.c: Rebuild.
8433 * target.c (update_current_target): Don't inherit or default
8434 to_traceframe_info.
8435 (return_null): Remove.
8436 * target.h (struct target_ops) <to_traceframe_info>: Use
8437 TARGET_DEFAULT_RETURN.
8438
8439 2014-02-19 Tom Tromey <tromey@redhat.com>
8440
8441 * target-delegates.c: Rebuild.
8442 * target.c (update_current_target): Don't inherit or default
8443 to_static_tracepoint_markers_by_strid.
8444 * target.h (struct target_ops)
8445 <to_static_tracepoint_markers_by_strid>: Use
8446 TARGET_DEFAULT_NORETURN.
8447
8448 2014-02-19 Tom Tromey <tromey@redhat.com>
8449
8450 * target-delegates.c: Rebuild.
8451 * target.c (update_current_target): Don't inherit or default
8452 to_static_tracepoint_marker_at.
8453 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8454 Use TARGET_DEFAULT_RETURN.
8455
8456 2014-02-19 Tom Tromey <tromey@redhat.com>
8457
8458 * target-delegates.c: Rebuild.
8459 * target.c (update_current_target): Don't inherit or default
8460 to_set_permissions.
8461 * target.h (struct target_ops) <to_set_permissions>: Use
8462 TARGET_DEFAULT_IGNORE.
8463
8464 2014-02-19 Tom Tromey <tromey@redhat.com>
8465
8466 * target-delegates.c: Rebuild.
8467 * target.c (update_current_target): Don't inherit or default
8468 to_get_tib_address.
8469 * target.h (struct target_ops) <to_get_tib_address>: Use
8470 TARGET_DEFAULT_NORETURN.
8471
8472 2014-02-19 Tom Tromey <tromey@redhat.com>
8473
8474 * target-delegates.c: Rebuild.
8475 * target.c (update_current_target): Don't inherit or default
8476 to_set_trace_notes.
8477 * target.h (struct target_ops) <to_set_trace_notes>: Use
8478 TARGET_DEFAULT_RETURN.
8479
8480 2014-02-19 Tom Tromey <tromey@redhat.com>
8481
8482 * target-delegates.c: Rebuild.
8483 * target.c (update_current_target): Don't initialize
8484 to_set_trace_buffer_size.
8485 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8486 TARGET_DEFAULT_IGNORE.
8487
8488 2014-02-19 Tom Tromey <tromey@redhat.com>
8489
8490 * target-delegates.c: Rebuild.
8491 * target.c (update_current_target): Don't inherit or default
8492 to_set_circular_trace_buffer.
8493 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8494 TARGET_DEFAULT_IGNORE.
8495
8496 2014-02-19 Tom Tromey <tromey@redhat.com>
8497
8498 * target-delegates.c: Rebuild.
8499 * target.c (update_current_target): Don't inherit or default
8500 to_set_disconnected_tracing.
8501 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8502 TARGET_DEFAULT_IGNORE.
8503
8504 2014-02-19 Tom Tromey <tromey@redhat.com>
8505
8506 * target-delegates.c: Rebuild.
8507 * target.c (update_current_target): Don't inherit or default
8508 to_get_min_fast_tracepoint_insn_len.
8509 (return_minus_one): Remove.
8510 * target.h (struct target_ops)
8511 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8512
8513 2014-02-19 Tom Tromey <tromey@redhat.com>
8514
8515 * target-delegates.c: Rebuild.
8516 * target.c (update_current_target): Don't inherit or default
8517 to_get_raw_trace_data.
8518 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8519 TARGET_DEFAULT_NORETURN.
8520
8521 2014-02-19 Tom Tromey <tromey@redhat.com>
8522
8523 * target-delegates.c: Rebuild.
8524 * target.c (update_current_target): Don't inherit or default
8525 to_upload_trace_state_variables.
8526 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8527 Use TARGET_DEFAULT_RETURN.
8528
8529 2014-02-19 Tom Tromey <tromey@redhat.com>
8530
8531 * target-delegates.c: Rebuild.
8532 * target.c (update_current_target): Don't inherit or default
8533 to_upload_tracepoints.
8534 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8535 TARGET_DEFAULT_RETURN.
8536
8537 2014-02-19 Tom Tromey <tromey@redhat.com>
8538
8539 * target-delegates.c: Rebuild.
8540 * target.c (update_current_target): Don't inherit or default
8541 to_save_trace_data.
8542 * target.h (struct target_ops) <to_save_trace_data>: Use
8543 TARGET_DEFAULT_NORETURN.
8544
8545 2014-02-19 Tom Tromey <tromey@redhat.com>
8546
8547 * target-delegates.c: Rebuild.
8548 * target.c (update_current_target): Don't inherit or default
8549 to_get_trace_state_variable_value.
8550 * target.h (struct target_ops)
8551 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8552
8553 2014-02-19 Tom Tromey <tromey@redhat.com>
8554
8555 * target-delegates.c: Rebuild.
8556 * target.c (update_current_target): Don't inherit or default
8557 to_trace_find.
8558 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8559
8560 2014-02-19 Tom Tromey <tromey@redhat.com>
8561
8562 * target-delegates.c: Rebuild.
8563 * target.c (update_current_target): Don't inherit or default
8564 to_trace_stop.
8565 * target.h (struct target_ops) <to_trace_stop>: Use
8566 TARGET_DEFAULT_NORETURN.
8567
8568 2014-02-19 Tom Tromey <tromey@redhat.com>
8569
8570 * target-delegates.c: Rebuild.
8571 * target.c (update_current_target): Don't inherit or default
8572 to_get_tracepoint_status.
8573 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8574 TARGET_DEFAULT_NORETURN.
8575
8576 2014-02-19 Tom Tromey <tromey@redhat.com>
8577
8578 * target-delegates.c: Rebuild.
8579 * target.c (update_current_target): Don't inherit or default
8580 to_get_trace_status.
8581 * target.h (struct target_ops) <to_get_trace_status>: Use
8582 TARGET_DEFAULT_RETURN.
8583
8584 2014-02-19 Tom Tromey <tromey@redhat.com>
8585
8586 * target-delegates.c: Rebuild.
8587 * target.c (update_current_target): Don't inherit or default
8588 to_trace_start.
8589 * target.h (struct target_ops) <to_trace_start>: Use
8590 TARGET_DEFAULT_NORETURN.
8591
8592 2014-02-19 Tom Tromey <tromey@redhat.com>
8593
8594 * target-delegates.c: Rebuild.
8595 * target.c (update_current_target): Don't inherit or default
8596 to_trace_set_readonly_regions.
8597 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8598 Use TARGET_DEFAULT_NORETURN.
8599
8600 2014-02-19 Tom Tromey <tromey@redhat.com>
8601
8602 * target-delegates.c: Rebuild.
8603 * target.c (update_current_target): Don't inherit or default
8604 to_disable_tracepoint.
8605 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8606 TARGET_DEFAULT_NORETURN.
8607
8608 2014-02-19 Tom Tromey <tromey@redhat.com>
8609
8610 * target-delegates.c: Rebuild.
8611 * target.c (update_current_target): Don't inherit or default
8612 to_enable_tracepoint.
8613 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8614 TARGET_DEFAULT_NORETURN.
8615
8616 2014-02-19 Tom Tromey <tromey@redhat.com>
8617
8618 * target-delegates.c: Rebuild.
8619 * target.c (update_current_target): Don't inherit or default
8620 to_download_trace_state_variable.
8621 * target.h (struct target_ops) <to_download_trace_state_variable>:
8622 Use TARGET_DEFAULT_NORETURN.
8623
8624 2014-02-19 Tom Tromey <tromey@redhat.com>
8625
8626 * target-delegates.c: Rebuild.
8627 * target.c (update_current_target): Don't inherit or default
8628 to_can_download_tracepoint.
8629 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8630 TARGET_DEFAULT_RETURN.
8631
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8633
8634 * target-delegates.c: Rebuild.
8635 * target.c (update_current_target): Don't inherit or default
8636 to_download_tracepoint.
8637 * target.h (struct target_ops) <to_download_tracepoint>: Use
8638 TARGET_DEFAULT_NORETURN.
8639
8640 2014-02-19 Tom Tromey <tromey@redhat.com>
8641
8642 * target-delegates.c: Rebuild.
8643 * target.c (update_current_target): Don't inherit or default
8644 to_trace_init.
8645 * target.h (struct target_ops) <to_trace_init>: Use
8646 TARGET_DEFAULT_RETURN.
8647
8648 2014-02-19 Tom Tromey <tromey@redhat.com>
8649
8650 * target-delegates.c: Rebuild.
8651 * target.c (update_current_target): Don't inherit or default
8652 to_supports_string_tracing.
8653 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8654 TARGET_DEFAULT_RETURN.
8655
8656 2014-02-19 Tom Tromey <tromey@redhat.com>
8657
8658 * target-delegates.c: Rebuild.
8659 * target.c (update_current_target): Don't inherit or default
8660 to_supports_enable_disable_tracepoint.
8661 * target.h (struct target_ops)
8662 <to_supports_enable_disable_tracepoint>: Use
8663 TARGET_DEFAULT_RETURN.
8664
8665 2014-02-19 Tom Tromey <tromey@redhat.com>
8666
8667 * target-delegates.c: Rebuild.
8668 * target.c (update_current_target): Don't inherit or default
8669 to_supports_multi_process.
8670 * target.h (struct target_ops) <to_supports_multi_process>: Use
8671 TARGET_DEFAULT_RETURN.
8672
8673 2014-02-19 Tom Tromey <tromey@redhat.com>
8674
8675 * target-delegates.c: Rebuild.
8676 * target.c (update_current_target): Don't inherit or default
8677 to_get_ada_task_ptid.
8678 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8679 TARGET_DEFAULT_FUNC.
8680
8681 2014-02-19 Tom Tromey <tromey@redhat.com>
8682
8683 * target-delegates.c: Rebuild.
8684 * target.c (update_current_target): Don't inherit or default
8685 to_thread_architecture.
8686 * target.h (struct target_ops) <to_thread_architecture>: Use
8687 TARGET_DEFAULT_FUNC.
8688
8689 2014-02-19 Tom Tromey <tromey@redhat.com>
8690
8691 * target-delegates.c: Rebuild.
8692 * target.c (update_current_target): Don't inherit or default
8693 to_execution_direction.
8694 * target.h (struct target_ops) <to_execution_direction>: Use
8695 TARGET_DEFAULT_FUNC.
8696
8697 2014-02-19 Tom Tromey <tromey@redhat.com>
8698
8699 * target-delegates.c: Rebuild.
8700 * target.c (update_current_target): Don't inherit or default
8701 to_can_execute_reverse.
8702 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8703 TARGET_DEFAULT_RETURN.
8704 (target_can_execute_reverse): Unconditionally delegate.
8705
8706 2014-02-19 Tom Tromey <tromey@redhat.com>
8707
8708 * target-delegates.c: Rebuild.
8709 * target.c (update_current_target): Don't inherit or default
8710 to_goto_bookmark.
8711 (dummy_goto_bookmark): Remove.
8712 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8713 * target.h (struct target_ops) <to_goto_bookmark>: Use
8714 TARGET_DEFAULT_NORETURN.
8715
8716 2014-02-19 Tom Tromey <tromey@redhat.com>
8717
8718 * target-delegates.c: Rebuild.
8719 * target.c (update_current_target): Don't inherit or default
8720 to_get_bookmark.
8721 (dummy_get_bookmark): Remove.
8722 (init_dummy_target): Don't inherit or default to_get_bookmark.
8723 * target.h (struct target_ops) <to_get_bookmark>: Use
8724 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
8731 (init_dummy_target): Don't initialize to_make_corefile_notes.
8732 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8733 TARGET_DEFAULT_FUNC.
8734
8735 2014-02-19 Tom Tromey <tromey@redhat.com>
8736
8737 * target-delegates.c: Rebuild.
8738 * target.c (update_current_target): Don't inherit or default
8739 to_find_memory_regions.
8740 (init_dummy_target): Don't initialize to_find_memory_regions.
8741 * target.h (struct target_ops) <to_find_memory_regions>: Use
8742 TARGET_DEFAULT_FUNC.
8743
8744 2014-02-19 Tom Tromey <tromey@redhat.com>
8745
8746 * target-delegates.c: Rebuild.
8747 * target.c (update_current_target): Don't inherit or default
8748 to_log_command.
8749 * target.h (struct target_ops) <to_log_command>: Use
8750 TARGET_DEFAULT_IGNORE.
8751 (target_log_command): Unconditionally delegate.
8752
8753 2014-02-19 Tom Tromey <tromey@redhat.com>
8754
8755 * target-delegates.c: Rebuild.
8756 * target.c (update_current_target): Don't inherit or default
8757 to_pid_to_exec_file.
8758 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8759 TARGET_DEFAULT_RETURN.
8760
8761 2014-02-19 Tom Tromey <tromey@redhat.com>
8762
8763 * target-delegates.c: Rebuild.
8764 * target.c (update_current_target): Don't inherit or default
8765 to_thread_name.
8766 (target_thread_name): Unconditionally delegate.
8767 * target.h (struct target_ops) <to_thread_name>: Use
8768 TARGET_DEFAULT_RETURN.
8769
8770 2014-02-19 Tom Tromey <tromey@redhat.com>
8771
8772 * target-delegates.c: Rebuild.
8773 * target.c (update_current_target): Don't inherit or default
8774 to_extra_thread_info.
8775 * target.h (struct target_ops) <to_extra_thread_info>: Use
8776 TARGET_DEFAULT_RETURN.
8777
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8779
8780 * target-delegates.c: Rebuild.
8781 * target.c (update_current_target): Don't inherit or default
8782 to_has_exited.
8783 * target.h (struct target_ops) <to_has_exited>: Use
8784 TARGET_DEFAULT_RETURN..
8785
8786 2014-02-19 Tom Tromey <tromey@redhat.com>
8787
8788 * target-delegates.c: Rebuild.
8789 * target.c (update_current_target): Don't inherit or default
8790 to_set_syscall_catchpoint.
8791 (return_one): Remove.
8792 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8793 TARGET_DEFAULT_RETURN.
8794
8795 2014-02-19 Tom Tromey <tromey@redhat.com>
8796
8797 * target-delegates.c: Rebuild.
8798 * target.c (update_current_target): Don't inherit or default
8799 to_insert_exec_catchpoint.
8800 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8801 TARGET_DEFAULT_RETURN.
8802
8803 2014-01-08 Tom Tromey <tromey@redhat.com>
8804
8805 * target-delegates.c: Rebuild.
8806 * target.c (update_current_target): Don't inherit or default
8807 to_insert_exec_catchpoint.
8808 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8809 TARGET_DEFAULT_RETURN.
8810
8811 2014-02-19 Tom Tromey <tromey@redhat.com>
8812
8813 * target-delegates.c: Rebuild.
8814 * target.c (update_current_target): Don't inherit or default
8815 to_remove_vfork_catchpoint.
8816 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8817 TARGET_DEFAULT_RETURN.
8818
8819 2014-02-19 Tom Tromey <tromey@redhat.com>
8820
8821 * target-delegates.c: Rebuild.
8822 * target.c (update_current_target): Don't inherit or default
8823 to_insert_vfork_catchpoint.
8824 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8825 TARGET_DEFAULT_RETURN.
8826
8827 2014-02-19 Tom Tromey <tromey@redhat.com>
8828
8829 * target-delegates.c: Rebuild.
8830 * target.c (update_current_target): Don't inherit or default
8831 to_remove_fork_catchpoint.
8832 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8833 TARGET_DEFAULT_RETURN.
8834
8835 2014-02-19 Tom Tromey <tromey@redhat.com>
8836
8837 * target-delegates.c: Rebuild.
8838 * target.c (update_current_target): Don't inherit or default
8839 to_insert_fork_catchpoint.
8840 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8841 TARGET_DEFAULT_RETURN.
8842
8843 2014-02-19 Tom Tromey <tromey@redhat.com>
8844
8845 * target-delegates.c: Rebuild.
8846 * target.c (update_current_target): Don't inherit or default
8847 to_post_startup_inferior.
8848 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8849 TARGET_DEFAULT_IGNORE.
8850
8851 2014-02-19 Tom Tromey <tromey@redhat.com>
8852
8853 * target-delegates.c: Rebuild.
8854 * target.c (update_current_target): Don't inherit or default
8855 to_load.
8856 * target.h (struct target_ops) <to_load>: Use
8857 TARGET_DEFAULT_NORETURN.
8858
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8860
8861 * target-delegates.c: Rebuild.
8862 * target.c (update_current_target): Don't inherit or default
8863 to_terminal_info.
8864 * target.h (struct target_ops) <to_terminal_info>: Use
8865 TARGET_DEFAULT_FUNC.
8866
8867 2014-02-19 Tom Tromey <tromey@redhat.com>
8868
8869 * target-delegates.c: Rebuild.
8870 * target.c (update_current_target): Don't inherit or default
8871 to_terminal_save_ours.
8872 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8873 TARGET_DEFAULT_IGNORE.
8874
8875 2014-02-19 Tom Tromey <tromey@redhat.com>
8876
8877 * target-delegates.c: Rebuild.
8878 * target.c (update_current_target): Don't inherit or default
8879 to_terminal_ours.
8880 * target.h (struct target_ops) <to_terminal_ours>: Use
8881 TARGET_DEFAULT_IGNORE.
8882
8883 2014-02-19 Tom Tromey <tromey@redhat.com>
8884
8885 * target-delegates.c: Rebuild.
8886 * target.c (update_current_target): Don't inherit or default
8887 to_terminal_ours_for_output.
8888 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8889 TARGET_DEFAULT_IGNORE.
8890
8891 2014-02-19 Tom Tromey <tromey@redhat.com>
8892
8893 * target-delegates.c: Rebuild.
8894 * target.c (update_current_target): Don't inherit or default
8895 to_terminal_inferior.
8896 * target.h (struct target_ops) <to_terminal_inferior>: Use
8897 TARGET_DEFAULT_IGNORE.
8898
8899 2014-02-19 Tom Tromey <tromey@redhat.com>
8900
8901 * target-delegates.c: Rebuild.
8902 * target.c (update_current_target): Don't inherit or default
8903 to_terminal_init.
8904 * target.h (struct target_ops) <to_terminal_init>: Use
8905 TARGET_DEFAULT_IGNORE.
8906
8907 2014-02-19 Tom Tromey <tromey@redhat.com>
8908
8909 * target-delegates.c: Rebuild.
8910 * target.c (update_current_target): Don't inherit or default
8911 to_can_accel_watchpoint_condition.
8912 * target.h (struct target_ops)
8913 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8914
8915 2014-02-19 Tom Tromey <tromey@redhat.com>
8916
8917 * target-delegates.c: Rebuild.
8918 * target.c (update_current_target): Don't inherit or default
8919 to_region_ok_for_hw_watchpoint.
8920 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8921 Use TARGET_DEFAULT_FUNC.
8922
8923 2014-02-19 Tom Tromey <tromey@redhat.com>
8924
8925 * target-delegates.c: Rebuild.
8926 * target.c (update_current_target): Don't inherit or default
8927 to_watchpoint_addr_within_range.
8928 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8929 Use TARGET_DEFAULT_FUNC.
8930
8931 2014-02-19 Tom Tromey <tromey@redhat.com>
8932
8933 * target-delegates.c: Rebuild.
8934 * target.c (update_current_target): Don't inherit or default
8935 to_remove_watchpoint.
8936 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8937 TARGET_DEFAULT_NORETURN.
8938
8939 2014-02-19 Tom Tromey <tromey@redhat.com>
8940
8941 * target-delegates.c: Rebuild.
8942 * target.c (update_current_target): Don't inherit or default
8943 to_insert_watchpoint.
8944 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8945 TARGET_DEFAULT_RETURN.
8946
8947 2014-02-19 Tom Tromey <tromey@redhat.com>
8948
8949 * target-delegates.c: Rebuild.
8950 * target.c (update_current_target): Don't inherit or default
8951 to_remove_hw_breakpoint.
8952 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8953 TARGET_DEFAULT_RETURN.
8954
8955 2014-02-19 Tom Tromey <tromey@redhat.com>
8956
8957 * target-delegates.c: Rebuild.
8958 * target.c (update_current_target): Don't inherit or default
8959 to_insert_hw_breakpoint.
8960 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8961 TARGET_DEFAULT_RETURN.
8962
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8964
8965 * target-delegates.c: Rebuild.
8966 * target.c (update_current_target): Don't inherit or default
8967 to_can_use_hw_breakpoint.
8968 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8969 TARGET_DEFAULT_RETURN.
8970
8971 2014-02-19 Tom Tromey <tromey@redhat.com>
8972
8973 * target-delegates.c: Rebuild.
8974 * target.c (update_current_target): Don't inherit or default
8975 to_files_info.
8976 * target.h (struct target_ops) <to_files_info>: Use
8977 TARGET_DEFAULT_IGNORE.
8978
8979 2014-02-19 Tom Tromey <tromey@redhat.com>
8980
8981 * target-delegates.c: Rebuild.
8982 * target.c (update_current_target): Don't inherit or default
8983 to_store.
8984 * target.h (struct target_ops) <to_store>: Use
8985 TARGET_DEFAULT_NORETURN.
8986
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * target-delegates.c: Rebuild.
8990 * target.c (update_current_target): Don't inherit or default
8991 to_post_attach.
8992 * target.h (struct target_ops) <to_post_attach>: Use
8993 TARGET_DEFAULT_IGNORE.
8994
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8996
8997 * target-delegates.c: Rebuild.
8998 * target.c (update_current_target): Don't inherit or default
8999 to_rcmd.
9000 (default_rcmd): New function.
9001 (do_monitor_command): Unconditionally delegate.
9002 * target.h (struct target_ops) <to_rmcd>: Use
9003 TARGET_DEFAULT_FUNC.
9004
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9006
9007 * target-delegates.c: Rebuild.
9008 * target.c (init_dummy_target): Don't initialize to_attach.
9009 (target_attach): Unconditionally delegate.
9010 * target.h (struct target_ops) <to_attach>: Use
9011 TARGET_DEFAULT_FUNC.
9012
9013 2014-02-19 Tom Tromey <tromey@redhat.com>
9014
9015 * target-delegates.c: Rebuild.
9016 * target.c (target_detach): Unconditionally delegate.
9017 (init_dummy_target): Don't initialize to_detach.
9018 * target.h (struct target_ops) <to_detach>: Use
9019 TARGET_DEFAULT_IGNORE.
9020
9021 2014-02-19 Tom Tromey <tromey@redhat.com>
9022
9023 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9024 Add argument.
9025 (target_augmented_libraries_svr4_read): Add argument.
9026 * target.c (update_current_target): Update.
9027 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9028 argument.
9029
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9031
9032 * target.h (struct target_ops) <to_call_history_range>: Add
9033 argument.
9034 * target.c (target_call_history_range): Add argument.
9035 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9036 argument.
9037 (record_btrace_call_history_from): Update.
9038
9039 2014-02-19 Tom Tromey <tromey@redhat.com>
9040
9041 * target.h (struct target_ops) <to_call_history_from>: Add
9042 argument.
9043 * target.c (target_call_history_from): Add argument.
9044 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9045 argument.
9046
9047 2014-02-19 Tom Tromey <tromey@redhat.com>
9048
9049 * target.h (struct target_ops) <to_call_history>: Add argument.
9050 * target.c (target_call_history): Add argument.
9051 * record-btrace.c (record_btrace_call_history): Add 'self'
9052 argument.
9053
9054 2014-02-19 Tom Tromey <tromey@redhat.com>
9055
9056 * target.h (struct target_ops) <to_insn_history_range>: Add
9057 argument.
9058 * target.c (target_insn_history_range): Add argument.
9059 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9060 argument.
9061 (record_btrace_insn_history_from): Update.
9062
9063 2014-02-19 Tom Tromey <tromey@redhat.com>
9064
9065 * target.h (struct target_ops) <to_insn_history_from>: Add
9066 argument.
9067 * target.c (target_insn_history_from): Add argument.
9068 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9069 argument.
9070
9071 2014-02-19 Tom Tromey <tromey@redhat.com>
9072
9073 * target.h (struct target_ops) <to_insn_history>: Add argument.
9074 * target.c (target_insn_history): Add argument.
9075 * record-btrace.c (record_btrace_insn_history): Add 'self'
9076 argument.
9077
9078 2014-02-19 Tom Tromey <tromey@redhat.com>
9079
9080 * target.h (struct target_ops) <to_goto_record>: Add argument.
9081 * target.c (target_goto_record): Add argument.
9082 * record-full.c (record_full_goto): Add 'self' argument.
9083 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9084
9085 2014-02-19 Tom Tromey <tromey@redhat.com>
9086
9087 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9088 * target.c (target_goto_record_end): Add argument.
9089 * record-full.c (record_full_goto_end): Add 'self' argument.
9090 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9091
9092 2014-02-19 Tom Tromey <tromey@redhat.com>
9093
9094 * target.h (struct target_ops) <to_goto_record_begin>: Add
9095 argument.
9096 * target.c (target_goto_record_begin): Add argument.
9097 * record-full.c (record_full_goto_begin): Add 'self' argument.
9098 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9099 argument.
9100
9101 2014-02-19 Tom Tromey <tromey@redhat.com>
9102
9103 * target.h (struct target_ops) <to_record_is_replaying>: Add
9104 argument.
9105 * target.c (target_record_is_replaying): Add argument.
9106 * record-full.c (record_full_is_replaying): Add 'self' argument.
9107 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9108 argument.
9109 (record_btrace_xfer_partial, record_btrace_store_registers)
9110 (record_btrace_prepare_to_store, record_btrace_resume)
9111 (record_btrace_wait, record_btrace_decr_pc_after_break)
9112 (record_btrace_find_new_threads, record_btrace_thread_alive):
9113 Update.
9114
9115 2014-02-19 Tom Tromey <tromey@redhat.com>
9116
9117 * target.h (struct target_ops) <to_delete_record>: Add argument.
9118 * target.c (target_delete_record): Add argument.
9119 * record-full.c (record_full_delete): Add 'self' argument.
9120
9121 2014-02-19 Tom Tromey <tromey@redhat.com>
9122
9123 * target.h (struct target_ops) <to_save_record>: Add argument.
9124 * target.c (target_save_record): Add argument.
9125 * record-full.c (record_full_save): Add 'self' argument.
9126 (record_full_save): Add 'self' argument.
9127
9128 2014-02-19 Tom Tromey <tromey@redhat.com>
9129
9130 * target.h (struct target_ops) <to_info_record>: Add argument.
9131 * target.c (target_info_record): Add argument.
9132 * record.c (info_record_command): Add argument.
9133 * record-full.c (record_full_info): Add 'self' argument.
9134 * record-btrace.c (record_btrace_info): Add 'self' argument.
9135
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9137
9138 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9139 * target.c (target_stop_recording): Add argument.
9140 * record.c (record_stop): Add argument.
9141 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9142 argument.
9143
9144 2014-02-19 Tom Tromey <tromey@redhat.com>
9145
9146 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9147 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9148 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9149 argument.
9150 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9151 (_initialize_amd64_linux_nat): Use it.
9152 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9153 (_initialize_i386_linux_nat): Use it.
9154
9155 2014-02-19 Tom Tromey <tromey@redhat.com>
9156
9157 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9158 * target.c (target_teardown_btrace): Add argument.
9159 * remote.c (remote_teardown_btrace): Add 'self' argument.
9160 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9161 argument.
9162 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9163 argument.
9164
9165 2014-02-19 Tom Tromey <tromey@redhat.com>
9166
9167 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9168 * target.c (target_disable_btrace): Add argument.
9169 * remote.c (remote_disable_btrace): Add 'self' argument.
9170 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9171 argument.
9172 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9173 argument.
9174
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9176
9177 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9178 * target.c (target_enable_btrace): Add argument.
9179 * remote.c (remote_enable_btrace): Add 'self' argument.
9180 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9181 argument.
9182 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9183 argument.
9184
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9186
9187 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9188 (target_can_use_agent): Add argument.
9189 * target.c (update_current_target): Update.
9190 * remote.c (remote_can_use_agent): Add 'self' argument.
9191 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9192
9193 2014-02-19 Tom Tromey <tromey@redhat.com>
9194
9195 * target.h (struct target_ops) <to_use_agent>: Add argument.
9196 (target_use_agent): Add argument.
9197 * target.c (update_current_target): Update.
9198 * remote.c (remote_use_agent): Add 'self' argument.
9199 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9200
9201 2014-02-19 Tom Tromey <tromey@redhat.com>
9202
9203 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9204 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9205 (target_traceframe_info): Add argument.
9206 * target.c (update_current_target): Update.
9207 * remote.c (remote_traceframe_info): Add 'self' argument.
9208 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9209
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9211
9212 * target.h (target_static_tracepoint_markers_by_strid): Add
9213 argument.
9214 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9215 'self' argument.
9216 * target.c (update_current_target): Update.
9217 * remote.c (struct target_ops)
9218 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9219 * linux-nat.c (struct target_ops)
9220 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9221
9222 2014-02-19 Tom Tromey <tromey@redhat.com>
9223
9224 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9225 Add argument.
9226 (target_static_tracepoint_marker_at): Add argument.
9227 * target.c (update_current_target): Update.
9228 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9229 argument.
9230
9231 2014-02-19 Tom Tromey <tromey@redhat.com>
9232
9233 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9234 (target_set_permissions): Add argument.
9235 * target.c (update_current_target): Update.
9236 * remote.c (remote_set_permissions): Add 'self' argument.
9237 (remote_start_remote): Update.
9238
9239 2014-02-19 Tom Tromey <tromey@redhat.com>
9240
9241 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9242 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9243 (target_get_tib_address): Add argument.
9244 * target.c (update_current_target): Update.
9245 * remote.c (remote_get_tib_address): Add 'self' argument.
9246
9247 2014-02-19 Tom Tromey <tromey@redhat.com>
9248
9249 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9250 (target_set_trace_notes): Add argument.
9251 * target.c (update_current_target): Update.
9252 * remote.c (remote_set_trace_notes): Add 'self' argument.
9253
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9255
9256 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9257 argument.
9258 (target_set_trace_buffer_size): Add argument.
9259 * target.c (update_current_target): Update.
9260 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9261
9262 2014-02-19 Tom Tromey <tromey@redhat.com>
9263
9264 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9265 argument.
9266 (target_set_circular_trace_buffer): Add argument.
9267 * target.c (update_current_target): Update.
9268 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9269 argument.
9270
9271 2014-02-19 Tom Tromey <tromey@redhat.com>
9272
9273 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9274 argument.
9275 (target_set_disconnected_tracing): Add argument.
9276 * target.c (update_current_target): Update.
9277 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9278
9279 2014-02-19 Tom Tromey <tromey@redhat.com>
9280
9281 * target.h (struct target_ops)
9282 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9283 (target_get_min_fast_tracepoint_insn_len): Add argument.
9284 * target.c (update_current_target): Update.
9285 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9286 argument.
9287
9288 2014-02-19 Tom Tromey <tromey@redhat.com>
9289
9290 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9291 argument.
9292 (target_get_raw_trace_data): Add argument.
9293 * target.c (update_current_target): Update.
9294 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9295
9296 2014-02-19 Tom Tromey <tromey@redhat.com>
9297
9298 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9299 Add argument.
9300 (target_upload_trace_state_variables): Add argument.
9301 * target.c (update_current_target): Update.
9302 * remote.c (remote_upload_trace_state_variables): Add 'self'
9303 argument.
9304 (remote_start_remote): Update.
9305
9306 2014-02-19 Tom Tromey <tromey@redhat.com>
9307
9308 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9309 argument.
9310 (target_upload_tracepoints): Add argument.
9311 * target.c (update_current_target): Update.
9312 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9313 (remote_start_remote): Update.
9314
9315 2014-02-19 Tom Tromey <tromey@redhat.com>
9316
9317 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9318 (target_save_trace_data): Add argument.
9319 * target.c (update_current_target): Update.
9320 * remote.c (remote_save_trace_data): Add 'self' argument.
9321
9322 2014-02-19 Tom Tromey <tromey@redhat.com>
9323
9324 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9325 argument.
9326 * target.h (struct target_ops)
9327 <to_get_trace_state_variable_value>: Add argument.
9328 (target_get_trace_state_variable_value): Add argument.
9329 * target.c (update_current_target): Update.
9330 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9331 argument.
9332 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9333
9334 2014-02-19 Tom Tromey <tromey@redhat.com>
9335
9336 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9337 * target.h (struct target_ops) <to_trace_find>: Add argument.
9338 (target_trace_find): Add argument.
9339 * target.c (update_current_target): Update.
9340 * remote.c (remote_trace_find): Add 'self' argument.
9341 * ctf.c (ctf_trace_find): Add 'self' argument.
9342
9343 2014-02-19 Tom Tromey <tromey@redhat.com>
9344
9345 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9346 (target_trace_stop): Add argument.
9347 * target.c (update_current_target): Update.
9348 * remote.c (remote_trace_stop): Add 'self' argument.
9349
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9353 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9354 argument.
9355 (target_get_tracepoint_status): Add argument.
9356 * target.c (update_current_target): Update.
9357 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9358
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9360
9361 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9362 * target.h (struct target_ops) <to_get_trace_status>: Add
9363 argument.
9364 (target_get_trace_status): Add argument.
9365 * target.c (update_current_target): Update.
9366 * remote.c (remote_get_trace_status): Add 'self' argument.
9367 (remote_start_remote, remote_can_download_tracepoint): Update.
9368 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9369
9370 2014-02-19 Tom Tromey <tromey@redhat.com>
9371
9372 * target.h (struct target_ops) <to_trace_start>: Add argument.
9373 (target_trace_start): Add argument.
9374 * target.c (update_current_target): Update.
9375 * remote.c (remote_trace_start): Add 'self' argument.
9376
9377 2014-02-19 Tom Tromey <tromey@redhat.com>
9378
9379 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9380 Add argument.
9381 (target_trace_set_readonly_regions): Add argument.
9382 * target.c (update_current_target): Update.
9383 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9384 argument.
9385
9386 2014-02-19 Tom Tromey <tromey@redhat.com>
9387
9388 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9389 argument.
9390 (target_disable_tracepoint): Add argument.
9391 * target.c (update_current_target): Update.
9392 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9393
9394 2014-02-19 Tom Tromey <tromey@redhat.com>
9395
9396 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9397 argument.
9398 (target_enable_tracepoint): Add argument.
9399 * target.c (update_current_target): Update.
9400 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9401
9402 2014-02-19 Tom Tromey <tromey@redhat.com>
9403
9404 * target.h (struct target_ops) <to_download_trace_state_variable>:
9405 Add argument.
9406 (target_download_trace_state_variable): Add argument.
9407 * target.c (update_current_target): Update.
9408 * remote.c (remote_download_trace_state_variable): Add 'self'
9409 argument.
9410
9411 2014-02-19 Tom Tromey <tromey@redhat.com>
9412
9413 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9414 argument.
9415 (target_can_download_tracepoint): Add argument.
9416 * target.c (update_current_target): Update.
9417 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9418
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9420
9421 * target.h (struct target_ops) <to_download_tracepoint>: Add
9422 argument.
9423 (target_download_tracepoint): Add argument.
9424 * target.c (update_current_target): Update.
9425 * remote.c (remote_download_tracepoint): Add 'self' argument.
9426
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9428
9429 * target.h (struct target_ops) <to_trace_init>: Add argument.
9430 (target_trace_init): Add argument.
9431 * target.c (update_current_target): Update.
9432 * remote.c (remote_trace_init): Add 'self' argument.
9433
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9435
9436 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9437 * target.c (target_fileio_readlink): Add argument.
9438 * remote.c (remote_hostio_readlink): Add 'self' argument.
9439 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9440
9441 2014-02-19 Tom Tromey <tromey@redhat.com>
9442
9443 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9444 * target.c (target_fileio_unlink): Add argument.
9445 * remote.c (remote_hostio_unlink): Add 'self' argument.
9446 (remote_file_delete): Update.
9447 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9448
9449 2014-02-19 Tom Tromey <tromey@redhat.com>
9450
9451 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9452 * target.c (target_fileio_close): Add argument.
9453 * remote.c (remote_hostio_close): Add 'self' argument.
9454 (remote_hostio_close_cleanup): Update.
9455 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9456 Update.
9457 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9458
9459 2014-02-19 Tom Tromey <tromey@redhat.com>
9460
9461 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9462 * target.c (target_fileio_pread): Add argument.
9463 * remote.c (remote_hostio_pread): Add 'self' argument.
9464 (remote_bfd_iovec_pread, remote_file_get): Update.
9465 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9466
9467 2014-02-19 Tom Tromey <tromey@redhat.com>
9468
9469 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9470 * target.c (target_fileio_pwrite): Add argument.
9471 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9472 (remote_file_put): Update.
9473 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9474
9475 2014-02-19 Tom Tromey <tromey@redhat.com>
9476
9477 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9478 * target.c (target_fileio_open): Add argument.
9479 * remote.c (remote_hostio_open): Add 'self' argument.
9480 (remote_bfd_iovec_open): Add 'self' argument.
9481 (remote_file_put): Add 'self' argument.
9482 (remote_file_get): Add 'self' argument.
9483 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9484
9485 2014-02-19 Tom Tromey <tromey@redhat.com>
9486
9487 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9488 Add argument.
9489 (target_can_run_breakpoint_commands): Add argument.
9490 * target.c (update_current_target): Update.
9491 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9492 argument.
9493 (remote_insert_breakpoint): Add 'self' argument.
9494 (remote_insert_hw_breakpoint): Add 'self' argument.
9495 (remote_can_run_breakpoint_commands): Add 'self' argument.
9496
9497 2014-02-19 Tom Tromey <tromey@redhat.com>
9498
9499 * target.h (struct target_ops)
9500 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9501 (target_supports_evaluation_of_breakpoint_conditions): Add
9502 argument.
9503 * target.c (update_current_target): Update.
9504 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9505 argument.
9506 (remote_insert_breakpoint): Add 'self' argument.
9507 (remote_insert_hw_breakpoint): Add 'self' argument.
9508 (remote_supports_cond_breakpoints): Add 'self' argument.
9509
9510 2014-02-19 Tom Tromey <tromey@redhat.com>
9511
9512 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9513 argument.
9514 (target_supports_string_tracing): Add argument.
9515 * target.c (update_current_target): Update.
9516 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9517
9518 2014-02-19 Tom Tromey <tromey@redhat.com>
9519
9520 * target.h (struct target_ops)
9521 <to_supports_disable_randomization>: Add argument.
9522 * target.c (find_default_supports_disable_randomization): Add
9523 argument.
9524 (target_supports_disable_randomization): Add argument.
9525 (find_default_supports_disable_randomization): Add 'self'
9526 argument.
9527 * remote.c (extended_remote_supports_disable_randomization): Add
9528 'self' argument.
9529 (remote_supports_disable_randomization): Add 'self' argument.
9530 (extended_remote_create_inferior): Update.
9531 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9532 'self' argument.
9533
9534 2014-02-19 Tom Tromey <tromey@redhat.com>
9535
9536 * target.h (struct target_ops)
9537 <to_supports_enable_disable_tracepoint>: Add argument.
9538 (target_supports_enable_disable_tracepoint): Add argument.
9539 * target.c (update_current_target): Update.
9540 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9541 argument.
9542
9543 2014-02-19 Tom Tromey <tromey@redhat.com>
9544
9545 * target.h (struct target_ops) <to_supports_multi_process>: Add
9546 argument.
9547 (target_supports_multi_process): Add argument.
9548 * target.c (update_current_target): Update.
9549 * remote.c (remote_supports_multi_process): Add 'self' argument.
9550 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9551 argument.
9552 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9553 argument.
9554
9555 2014-02-19 Tom Tromey <tromey@redhat.com>
9556
9557 * target.h (struct target_ops) <to_execution_direction>: Add
9558 argument.
9559 (target_execution_direction): Add argument.
9560 * target.c (default_execution_direction): Add 'self' argument.
9561 * record-full.c (record_full_execution_direction): Add 'self'
9562 argument.
9563
9564 2014-02-19 Tom Tromey <tromey@redhat.com>
9565
9566 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9567 argument.
9568 (target_can_execute_reverse): Add argument.
9569 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9570 * record-full.c (record_full_can_execute_reverse): Add 'self'
9571 argument.
9572 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9573 argument.
9574
9575 2014-02-19 Tom Tromey <tromey@redhat.com>
9576
9577 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9578 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9579 argument.
9580 (target_get_ada_task_ptid): Add argument.
9581 * target.c (update_current_target): Update.
9582 (default_get_ada_task_ptid): Add 'self' argument.
9583 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9584 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9585 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9586 argument.
9587 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9588 argument.
9589 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9590 argument.
9591 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9592 argument.
9593 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9594 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9595 argument.
9596
9597 2014-02-19 Tom Tromey <tromey@redhat.com>
9598
9599 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9600 (target_goto_bookmark): Add argument.
9601 * target.c (dummy_goto_bookmark): Add 'self' argument.
9602 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9603
9604 2014-02-19 Tom Tromey <tromey@redhat.com>
9605
9606 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9607 (target_get_bookmark): Add argument.
9608 * target.c (dummy_get_bookmark): Add 'self' argument.
9609 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9610
9611 2014-02-19 Tom Tromey <tromey@redhat.com>
9612
9613 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9614 argument.
9615 (target_make_corefile_notes): Add argument.
9616 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9617 * procfs.c (procfs_make_note_section): Add 'self' argument.
9618 (procfs_make_note_section): Add 'self' argument.
9619 (procfs_make_note_section): Add 'self' argument.
9620 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9621 argument.
9622 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9623 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9624 * exec.c (exec_make_note_section): Add 'self' argument.
9625 (exec_make_note_section): Add 'self' argument.
9626
9627 2014-02-19 Tom Tromey <tromey@redhat.com>
9628
9629 * target.h (struct target_ops) <to_find_memory_regions>: Add
9630 argument.
9631 (target_find_memory_regions): Add argument.
9632 * target.c (dummy_find_memory_regions): Add 'self' argument.
9633 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9634 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9635 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9636 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9637 * exec. (exec_do_find_memory_regions): New global.
9638 (exec_set_find_memory_regions): Rewrite.
9639 (exec_find_memory_regions): New function.
9640 (init_exec_ops): Use exec_find_memory_regions.
9641
9642 2014-02-19 Tom Tromey <tromey@redhat.com>
9643
9644 * target.h (struct target_ops) <to_supports_non_stop>: Add
9645 argument.
9646 * target.c (find_default_supports_non_stop): Add argument.
9647 (target_supports_non_stop): Add argument.
9648 (find_default_supports_non_stop): Add 'self' argument.
9649 * remote.c (remote_supports_non_stop): Add 'self' argument.
9650 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9651
9652 2014-02-19 Tom Tromey <tromey@redhat.com>
9653
9654 * target.h (struct target_ops) <to_log_command>: Add argument.
9655 (target_log_command): Add argument.
9656 * serial.h (serial_log_command): Add 'self' argument.
9657 * serial.c (serial_log_command): Add 'self' argument.
9658
9659 2014-02-19 Tom Tromey <tromey@redhat.com>
9660
9661 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9662 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9663 argument.
9664 (target_pid_to_exec_file): Add argument.
9665 * target.c (debug_to_pid_to_exec_file): Add argument.
9666 (update_current_target): Update.
9667 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9668 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9669 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9670 (linux_handle_extended_wait): Update.
9671 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9672 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9673 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9674 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9675
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9677
9678 * target.h (struct target_ops) <to_rcmd>: Add argument.
9679 (target_rcmd): Add argument.
9680 * target.c (debug_to_rcmd): Add argument.
9681 (update_current_target, do_monitor_command): Update.
9682 * remote.c (remote_rcmd): Add 'self' argument.
9683 * monitor.c (monitor_rcmd): Add 'self' argument.
9684
9685 2014-02-19 Tom Tromey <tromey@redhat.com>
9686
9687 * windows-nat.c (windows_stop): Add 'self' argument.
9688 * target.h (struct target_ops) <to_stop>: Add argument.
9689 * target.c (target_stop): Add argument.
9690 (debug_to_stop): Add argument.
9691 (update_current_target): Update.
9692 * remote.c (remote_stop): Add 'self' argument.
9693 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9694 (gdbsim_cntrl_c): Update.
9695 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9696 * procfs.c (procfs_stop): Add 'self' argument.
9697 * nto-procfs.c (procfs_stop): Add 'self' argument.
9698 * monitor.c (monitor_stop): Add 'self' argument.
9699 (monitor_open): Update.
9700 * linux-nat.c (linux_nat_stop): Add argument.
9701 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9702 * gnu-nat.c (gnu_stop): Add 'self' argument.
9703 * darwin-nat.c (darwin_stop): Add 'self' argument.
9704
9705 2014-02-19 Tom Tromey <tromey@redhat.com>
9706
9707 * target.h (struct target_ops) <to_thread_name>: Add argument.
9708 * target.c (target_thread_name): Add argument.
9709 (update_current_target): Update.
9710 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9711
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9713
9714 * target.h (struct target_ops) <to_extra_thread_info>: Add
9715 argument.
9716 (target_extra_thread_info): Add argument.
9717 * target.c (update_current_target): Update.
9718 * remote.c (remote_threads_extra_info): Add 'self' argument.
9719 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9720 argument.
9721 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9722 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9723 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9724 argument.
9725 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9726 argument.
9727 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9728 argument.
9729 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9730 argument.
9731
9732 2014-02-19 Tom Tromey <tromey@redhat.com>
9733
9734 * target.h (struct target_ops) <to_program_signals>: Add argument.
9735 * target.c (target_program_signals): Add argument.
9736 * remote.c (remote_program_signals): Add 'self' argument.
9737
9738 2014-02-19 Tom Tromey <tromey@redhat.com>
9739
9740 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9741 * target.c (target_pass_signals): Add argument.
9742 * remote.c (remote_pass_signals): Add 'self' argument.
9743 (remote_start_remote): Update.
9744 * procfs.c (procfs_pass_signals): Add 'self' argument.
9745 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9746 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9747 (linux_nat_create_inferior, linux_nat_attach): Update.
9748
9749 2014-02-19 Tom Tromey <tromey@redhat.com>
9750
9751 * windows-nat.c (windows_can_run): Add 'self' argument.
9752 * target.h (struct target_ops) <to_can_run>: Add argument.
9753 (target_can_run): Add argument.
9754 * target.c (debug_to_can_run): Add argument.
9755 (update_current_target): Update.
9756 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9757 * inf-child.c (inf_child_can_run): Add 'self' argument.
9758 * go32-nat.c (go32_can_run): Add 'self' argument.
9759
9760 2014-02-19 Tom Tromey <tromey@redhat.com>
9761
9762 * target.h (struct target_ops) <to_has_exited>: Add argument.
9763 (target_has_exited): Add argument.
9764 * target.c (debug_to_has_exited): Add argument.
9765 (update_current_target): Update.
9766
9767 2014-02-19 Tom Tromey <tromey@redhat.com>
9768
9769 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9770 argument.
9771 (target_set_syscall_catchpoint): Add argument.
9772 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9773 argument.
9774 * target.c (update_current_target): Update.
9775
9776 2014-02-19 Tom Tromey <tromey@redhat.com>
9777
9778 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9779 argument.
9780 (target_remove_exec_catchpoint): Add argument.
9781 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9782 (update_current_target): Update.
9783 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9784 argument.
9785
9786 2014-02-19 Tom Tromey <tromey@redhat.com>
9787
9788 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9789 argument.
9790 (target_insert_exec_catchpoint): Add argument.
9791 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9792 (update_current_target): Update.
9793 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9794 argument.
9795
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9797
9798 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9799 argument.
9800 (target_remove_vfork_catchpoint): Add argument.
9801 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9802 (update_current_target): Update.
9803 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9804 argument.
9805
9806 2014-02-19 Tom Tromey <tromey@redhat.com>
9807
9808 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9809 argument.
9810 (target_insert_vfork_catchpoint): Add argument.
9811 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9812 (update_current_target): Update.
9813 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9814 argument.
9815
9816 2014-02-19 Tom Tromey <tromey@redhat.com>
9817
9818 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9819 argument.
9820 (target_remove_fork_catchpoint): Add argument.
9821 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9822 (update_current_target): Update.
9823 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9824 argument.
9825
9826 2014-02-19 Tom Tromey <tromey@redhat.com>
9827
9828 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9829 argument.
9830 (target_insert_fork_catchpoint): Add argument.
9831 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9832 (update_current_target): Update.
9833 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9834 argument.
9835
9836 2014-02-19 Tom Tromey <tromey@redhat.com>
9837
9838 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9839 argument.
9840 (target_post_startup_inferior): Add argument.
9841 * target.c (debug_to_post_startup_inferior): Add argument.
9842 (update_current_target): Update.
9843 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9844 argument.
9845 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9846 argument.
9847 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9848 argument.
9849 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9850 argument.
9851 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9852 'self' argument.
9853 (super_post_startup_inferior): Likewise.
9854 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9855 'self' argument.
9856 (super_post_startup_inferior): Likewise.
9857 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9858 Add 'self' argument.
9859 (super_post_startup_inferior): Likewise.
9860
9861 2014-02-19 Tom Tromey <tromey@redhat.com>
9862
9863 * target.h (struct target_ops) <to_load>: Add argument.
9864 * target.c (target_load): Add argument.
9865 (debug_to_load): Add argument.
9866 (update_current_target): Update.
9867 * remote.c (remote_load): Add 'self' argument.
9868 * remote-sim.c (gdbsim_load): Add 'self' argument.
9869 * remote-mips.c (mips_load): Add 'self' argument.
9870 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9871 * monitor.c (monitor_load): Add 'self' argument.
9872 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9873
9874 2014-02-19 Tom Tromey <tromey@redhat.com>
9875
9876 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9877 (target_terminal_info): Add argument.
9878 * target.c (debug_to_terminal_info): Add argument.
9879 (default_terminal_info): Likewise.
9880 * inflow.c (child_terminal_info): Add 'self' argument.
9881 * inferior.h (child_terminal_info): Add 'self' argument.
9882 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9883
9884 2014-02-19 Tom Tromey <tromey@redhat.com>
9885
9886 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9887 argument.
9888 (target_terminal_save_ours): Add argument.
9889 * target.c (debug_to_terminal_save_ours): Add argument.
9890 (update_current_target): Update.
9891 * inflow.c (terminal_save_ours): Add 'self' argument.
9892 * inferior.h (terminal_save_ours): Add 'self' argument.
9893
9894 2014-02-19 Tom Tromey <tromey@redhat.com>
9895
9896 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9897 (target_terminal_ours): Add argument.
9898 * target.c (debug_to_terminal_ours): Add argument.
9899 (update_current_target): Update.
9900 * remote.c (remote_terminal_ours): Add 'self' argument.
9901 (remote_close): Update.
9902 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9903 * inflow.c (terminal_ours): Add 'self' argument.
9904 * inferior.h (terminal_ours): Add 'self' argument.
9905 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9906
9907 2014-02-19 Pedro Alves <palves@redhat.com>
9908 Tom Tromey <tromey@redhat.com>
9909
9910 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9911 argument.
9912 (target_terminal_ours_for_output): Add argument.
9913 * target.c (debug_to_terminal_ours_for_output): Add argument.
9914 (update_current_target): Update.
9915 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9916 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9917 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9918
9919 2014-02-19 Tom Tromey <tromey@redhat.com>
9920
9921 * target.h (struct target_ops) <to_terminal_inferior>: Add
9922 argument.
9923 * target.c (target_terminal_inferior): Add argument.
9924 (update_current_target): Update.
9925 * remote.c (remote_terminal_inferior): Add 'self' argument.
9926 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9927 * inflow.c (terminal_inferior): Add 'self' argument.
9928 * inferior.h (terminal_inferior): Add 'self' argument.
9929 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9930 (go32_terminal_inferior): Add 'self' argument.
9931
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9933
9934 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9935 (target_terminal_init): Add argument.
9936 * target.c (debug_to_terminal_init): Add argument.
9937 (update_current_target): Update.
9938 * inflow.c (terminal_init_inferior): Add 'self' argument.
9939 * inferior.h (terminal_init_inferior): Add 'self' argument.
9940 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9941 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9942
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9944
9945 * target.h (struct target_ops)
9946 <to_can_accel_watchpoint_condition>: Add argument.
9947 (target_can_accel_watchpoint_condition): Add argument.
9948 * target.c (debug_to_can_accel_watchpoint_condition): Add
9949 argument.
9950 (update_current_target): Update.
9951 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9952 'self' argument.
9953
9954 2014-02-19 Tom Tromey <tromey@redhat.com>
9955
9956 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9957 Add argument.
9958 (target_region_ok_for_hw_watchpoint): Add argument.
9959 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9960 (default_region_ok_for_hw_watchpoint): Add argument.
9961 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9962 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9963 argument.
9964 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9965 argument.
9966 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9967 argument.
9968 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9969 'self' argument.
9970 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9971 'self' argument.
9972 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9973 'self' argument.
9974 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9975 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9976 'self' argument.
9977 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9978 Add 'self' argument.
9979
9980 2014-02-19 Tom Tromey <tromey@redhat.com>
9981
9982 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9983 argument.
9984 (target_insert_watchpoint): Add argument.
9985 * target.c (debug_to_insert_watchpoint): Add argument.
9986 (update_current_target): Update.
9987 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9988 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9989 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9990 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9991 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9992 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9993 argument.
9994 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9995 (procfs_insert_hw_watchpoint): Add 'self' argument.
9996 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9997 argument.
9998 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9999 argument.
10000 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10001 argument.
10002 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10003 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10004 argument.
10005 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10006 'self' argument.
10007
10008 2014-02-19 Tom Tromey <tromey@redhat.com>
10009
10010 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10011 argument.
10012 (target_remove_watchpoint): Add argument.
10013 * target.c (debug_to_remove_watchpoint): Add argument.
10014 (update_current_target): Update.
10015 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10016 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10017 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10018 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10019 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10020 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10021 argument.
10022 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10023 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10024 argument.
10025 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10026 argument.
10027 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10028 argument.
10029 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10030 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10031 argument.
10032 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10033 'self' argument.
10034
10035 2014-02-19 Tom Tromey <tromey@redhat.com>
10036
10037 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10038 argument.
10039 (target_remove_hw_breakpoint): Add argument.
10040 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10041 (update_current_target): Update.
10042 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10043 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10044 argument.
10045 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10046 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10047 argument.
10048 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10049 'self' argument.
10050
10051 2014-02-19 Tom Tromey <tromey@redhat.com>
10052
10053 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10054 argument.
10055 (target_insert_hw_breakpoint): Add argument.
10056 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10057 (update_current_target): Update.
10058 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10059 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10060 argument.
10061 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10062 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10063 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10064 argument.
10065 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10066 'self' argument.
10067
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10069
10070 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10071 argument.
10072 (target_can_use_hardware_watchpoint): Add argument.
10073 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10074 (update_current_target): Update.
10075 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10076 argument.
10077 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10078 argument.
10079 * remote.c (remote_check_watch_resources): Add 'self' argument.
10080 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10081 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10082 argument.
10083 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10084 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10085 argument.
10086 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10087 argument.
10088 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10089 argument.
10090 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10091 argument.
10092 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10093 argument.
10094 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10095 argument.
10096 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10097 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10098 argument.
10099 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10100 'self' argument.
10101
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10103
10104 * target.h (struct target_ops) <to_post_attach>: Add argument.
10105 (target_post_attach): Add argument.
10106 * target.c (debug_to_post_attach): Add argument.
10107 (update_current_target): Update.
10108 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10109 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10110 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10111 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10112 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10113
10114 2014-02-19 Tom Tromey <tromey@redhat.com>
10115
10116 * windows-nat.c (windows_close): Add 'self' argument.
10117 * tracepoint.c (tfile_close): Add 'self' argument.
10118 * target.h (struct target_ops) <to_close>: Add argument.
10119 * target.c (target_close): Add argument.
10120 (update_current_target): Update.
10121 * remote.c (remote_close): Add 'self' argument.
10122 * remote-sim.c (gdbsim_close): Add 'self' argument.
10123 * remote-mips.c (mips_close): Add 'self' argument.
10124 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10125 * record-full.c (record_full_close): Add 'self' argument.
10126 * record-btrace.c (record_btrace_close): Add 'self' argument.
10127 * monitor.h (monitor_close): Add 'self' argument.
10128 * monitor.c (monitor_close): Add 'self' argument.
10129 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10130 * linux-nat.c (linux_nat_close): Add argument.
10131 * go32-nat.c (go32_close): Add 'self' argument.
10132 * exec.c (exec_close_1): Add 'self' argument.
10133 * ctf.c (ctf_close): Add 'self' argument.
10134 * corelow.c (core_close): Add 'self' argument.
10135 (core_close_cleanup): Update.
10136 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10137 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10138
10139 2014-02-19 Tom Tromey <tromey@redhat.com>
10140
10141 * remote.c (remote_load): New function.
10142 (init_remote_ops): Use it.
10143
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10145
10146 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10147 argument.
10148 * common/linux-btrace.h (linux_supports_btrace): Update.
10149 * remote.c (remote_supports_btrace): Add "self" argument.
10150 * target-delegates.c: Rebuild.
10151 * target.c (target_supports_btrace): Remove.
10152 * target.h (struct target_ops) <to_supports_btrace>: Add
10153 target_ops argument.
10154 (target_supports_btrace): New define.
10155
10156 2014-02-19 Tom Tromey <tromey@redhat.com>
10157
10158 * record-full.c (record_full_beneath_to_resume_ops)
10159 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10160 (record_full_beneath_to_wait)
10161 (record_full_beneath_to_store_registers_ops)
10162 (record_full_beneath_to_store_registers)
10163 (record_full_beneath_to_xfer_partial_ops)
10164 (record_full_beneath_to_xfer_partial)
10165 (record_full_beneath_to_insert_breakpoint_ops)
10166 (record_full_beneath_to_insert_breakpoint)
10167 (record_full_beneath_to_remove_breakpoint_ops)
10168 (record_full_beneath_to_remove_breakpoint)
10169 (record_full_beneath_to_stopped_by_watchpoint)
10170 (record_full_beneath_to_stopped_data_address)
10171 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10172 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10173 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10174 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10175 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10176 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10177 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10178 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10179 (record_full_resume, record_full_wait_1)
10180 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10181 (record_full_store_registers, record_full_xfer_partial)
10182 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10183 (record_full_async, record_full_core_xfer_partial): Use target
10184 delegation.
10185 * target-delegates.c: Rebuild.
10186 * target.c (current_xfer_partial): Remove.
10187 (update_current_target): Do not INHERIT or de_fault
10188 to_insert_breakpoint, to_remove_breakpoint,
10189 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10190 to_is_async_p, to_async. Do not set to_xfer_partial field.
10191 (default_xfer_partial): Simplify.
10192 (current_xfer_partial): Remove.
10193 (target_wait, target_resume): Simplify.
10194 (find_default_can_async_p, find_default_is_async_p): Update.
10195 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10196 to_xfer_partial, to_stopped_by_watchpoint,
10197 to_stopped_data_address.
10198 (target_store_registers): Simplify.
10199 (forward_target_remove_breakpoint)
10200 (forward_target_insert_breakpoint): Remove.
10201 (target_remove_breakpoint, target_insert_breakpoint)
10202 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10203 * target.h (struct target_ops) <to_resume, to_wait,
10204 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10205 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10206 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10207 markup.
10208 (forward_target_remove_breakpoint)
10209 (forward_target_insert_breakpoint): Remove.
10210 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10211 directly.
10212 (record_btrace_insert_breakpoint): Delegate directly.
10213
10214 2014-02-19 Tom Tromey <tromey@redhat.com>
10215
10216 PR build/7701:
10217 * target-delegates.c: New file.
10218 * target.c: Include target-delegates.c.
10219 (init_dummy_target): Call install_dummy_methods.
10220 (complete_target_initialization): Call install_delegators.
10221 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10222 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10223 * make-target-delegates: New file.
10224
10225 2014-02-19 Tom Tromey <tromey@redhat.com>
10226
10227 * record.c (find_record_target): Use find_target_at.
10228 * target.c (find_target_at): New function.
10229 * target.h (find_target_at): Declare.
10230
10231 2014-02-19 Tom Tromey <tromey@redhat.com>
10232
10233 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10234 Add 'ops' argument.
10235 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10236 'ops' argument.
10237 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10238 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10239 'ops' argument.
10240 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10241 argument.
10242 * linux-nat.c (save_sigtrap): Update.
10243 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10244 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10245 (linux_nat_close): Update.
10246 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10247 argument.
10248 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10249 argument.
10250 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10251 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10252 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10253 (tmp_to_async): Add 'ops' argument.
10254 (record_full_stopped_by_watchpoint, record_full_async)
10255 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10256 argument.
10257 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10258 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10259 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10260 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10261 (remote_is_async_p, remote_async): Add 'ops' argument.
10262 (remote_stopped_data_address): Update.
10263 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10264 * target.c (update_current_target)
10265 (find_default_can_async_p, find_default_is_async_p): Update.
10266 (init_dummy_target): Update.
10267 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10268 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10269 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10270 (target_can_async_p, target_is_async_p, target_async)
10271 (target_stopped_by_watchpoint): Update.
10272
10273 2014-02-19 Yao Qi <yao@codesourcery.com>
10274
10275 PR gdb/16220
10276 * gdbarch.sh: Remove startup_gdbarch.
10277 * gdbarch.c: Regenerated.
10278 * gdbarch.h: Likewise.
10279
10280 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10281
10282 * rl78-tdep.c (rl78_g10_register_name): New function.
10283 (rl78_return_value): Add g10 support.
10284 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10285 g10.
10286
10287 2014-02-17 Doug Evans <xdje42@gmail.com>
10288
10289 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10290 (SUBDIR_GUILE_SRCS): Ditto.
10291 (scm-gsmob.o): Ditto.
10292
10293 2014-02-17 Yao Qi <yao@codesourcery.com>
10294
10295 * gnu-nat.c (ILL_RPC): Declare defined function.
10296
10297 2014-02-17 Yao Qi <yao@codesourcery.com>
10298
10299 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10300 mach_msg_type_number_t.
10301 (gnu_write_inferior): Likewise.
10302
10303 2014-02-17 Yao Qi <yao@codesourcery.com>
10304
10305 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10306 in format string.
10307 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10308 (inf_validate_procs, inf_signal): Likewise.
10309 (S_exception_raise_request): Likewise.
10310 (do_mach_notify_dead_name): Likewise.
10311 (steal_exc_port): Likewise.
10312 (gnu_read_inferior): Change 'copy_count''s type to
10313 mach_msg_type_number_t.
10314 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10315 format string.
10316
10317 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10318
10319 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10320 flag. Adjust all users; in particular...
10321 (gnu_wait): ..., don't decrement its value in here...
10322 (gnu_create_inferior): ..., and instead set the flag in here,
10323 around the startup_inferior call, and call that one with
10324 START_INFERIOR_TRAPS_EXPECTED.
10325
10326 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10327 (ILL_RPC): ... new macro.
10328 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10329 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10330 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10331 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10332 functions with ILL_RPC macro.
10333 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10334 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10335 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10336 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10337 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10338 (S_proc_getlogin_reply, S_proc_getsid_reply)
10339 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10340 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10341 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10342 (S_proc_getnports_reply, S_proc_is_important_reply)
10343 (S_proc_get_code_reply): New stub functions, generated with
10344 ILL_RPC macro.
10345
10346 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10347 collected the type check structures.
10348
10349 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10350
10351 2014-02-14 Doug Evans <dje@google.com>
10352
10353 * target.c (target_write_partial): Fix result type.
10354
10355 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10356
10357 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10358 the proper offsets to access fpregset_t.
10359
10360 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10361
10362 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10363 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10364 * h8300-tdep.c (setmachinelist): Remove global.
10365 * hppa-tdep.c (hppa_sigtramp): Remove global.
10366 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10367 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10368 * ravenscar-thread.c (update_target_observer): Remove global.
10369 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10370
10371 2014-02-12 Tom Tromey <tromey@redhat.com>
10372
10373 * common/rsp-low.c: Update comments.
10374 * common/rsp-low.h: Update comments.
10375
10376 2014-02-12 Tom Tromey <tromey@redhat.com>
10377
10378 * common/rsp-low.c (convert_ascii_to_int): Remove.
10379 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10380
10381 2014-02-12 Tom Tromey <tromey@redhat.com>
10382
10383 * common/rsp-low.h (unhexify): Don't declare.
10384 * common/rsp-low.c (unhexify): Remove.
10385
10386 2014-02-12 Tom Tromey <tromey@redhat.com>
10387
10388 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10389 * common/rsp-low.c (convert_int_to_ascii): Remove.
10390
10391 2014-02-12 Tom Tromey <tromey@redhat.com>
10392
10393 * common/rsp-low.h (hexify): Don't declare.
10394 * common/rsp-low.c (hexify): Remove.
10395
10396 2014-02-12 Tom Tromey <tromey@redhat.com>
10397
10398 * common/rsp-low.c (hexify): Never take strlen of argument.
10399
10400 2014-02-12 Tom Tromey <tromey@redhat.com>
10401
10402 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10403 * remote.c (extended_remote_run, remote_rcmd)
10404 (remote_download_trace_state_variable, remote_save_trace_data)
10405 (remote_set_trace_notes): Update.
10406 * tracepoint.c (encode_source_string, tfile_write_status)
10407 (tfile_write_uploaded_tsv): Update.
10408
10409 2014-02-12 Tom Tromey <tromey@redhat.com>
10410
10411 * tracepoint.c: Include rsp-low.h.
10412 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10413 * remote.c: Include rsp-low.h.
10414 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10415 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10416 (remote_unescape_input): Move to common/rsp-low.c.
10417 * common/rsp-low.h: New file.
10418 * common/rsp-low.c: New file.
10419 * Makefile.in (SFILES): Add common/rsp-low.c.
10420 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10421 (COMMON_OBS): Add rsp-low.o.
10422 (rsp-low.o): New target.
10423
10424 2014-02-12 Tom Tromey <tromey@redhat.com>
10425
10426 * utils.h: Include print-utils.h.
10427 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10428 (int_string, core_addr_to_string, core_addr_to_string_nz)
10429 (hex_string, hex_string_custom): Don't declare.
10430 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10431 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10432 (hex_string_custom, int_string, core_addr_to_string)
10433 (core_addr_to_string_nz, host_address_to_string): Move to
10434 common/print-utils.c.
10435 * common/print-utils.h: New file.
10436 * common/print-utils.c: New file
10437 * Makefile.in (SFILES): Add common/print-utils.c.
10438 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10439 (COMMON_OBS): Add print-utils.o.
10440 (print-utils.o): New target.
10441
10442 2014-02-12 Tom Tromey <tromey@redhat.com>
10443
10444 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10445
10446 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10447
10448 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10449
10450 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10451
10452 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10453 if a PT_IO ptrace request returns sucessfully but indicates that 0
10454 bytes were transferred.
10455
10456 2014-02-12 Pedro Alves <palves@redhat.com>
10457 Kevin Buettner <kevinb@redhat.com>
10458
10459 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10460 TYPE_INSTANCE_FLAG_CODE_SPACE.
10461
10462 2014-02-12 Pedro Alves <palves@redhat.com>
10463
10464 * h8300-tdep.c (pseudo_from_raw_register)
10465 (raw_from_pseudo_register): New functions.
10466 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10467 them.
10468
10469 2014-02-12 Pedro Alves <palves@redhat.com>
10470
10471 * h8300-tdep.c (h8300_register_sim_regno): New function.
10472 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10473 gdbarch_register_sim_regno hook.
10474
10475 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10476
10477 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10478
10479 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10480
10481 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10482
10483 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10484
10485 * obsd-tdep.h (obsd_init_abi): New prototype.
10486 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10487 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10488 (obsd_init_abi): New functions.
10489 * i386obsd-tdep.c: Include "obsd-tdep.h".
10490 (i386obsd_init_abi): Call obsd_init_abi.
10491 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10492 (amd64obsd_init_abi): Call obsd_init_abi.
10493 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10494 obsd-tdep.c to gdb_target_obs.
10495
10496 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10497
10498 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10499 double float arguments to 16-byte in the argument slots.
10500
10501 2014-02-11 Doug Evans <xdje42@gmail.com>
10502
10503 * configure.ac: Don't crash if pkg-config is not found and guile
10504 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10505 in guile checks.
10506 * configure: Regenerate.
10507
10508 2014-02-11 Yao Qi <yao@codesourcery.com>
10509
10510 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10511 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10512 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10513 * gnu-nat.c (gnu_xfer_memory): Likewise.
10514 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10515 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10516 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10517 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10518
10519 2014-02-11 Yao Qi <yao@codesourcery.com>
10520
10521 * target.h (enum target_xfer_error): Rename to ...
10522 (enum target_xfer_status): ... it. New. All users updated.
10523 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10524 New.
10525 (TARGET_XFER_STATUS_ERROR_P): New macro.
10526 (target_xfer_error_to_string): Remove declaration.
10527 (target_xfer_status_to_string): Declare.
10528 (target_xfer_partial_ftype): Adjust it.
10529 (struct target_ops) <to_xfer_partial>: Return
10530 target_xfer_status. Add argument xfered_len. Update
10531 comments.
10532 * target.c (target_xfer_error_to_string): Rename to ...
10533 (target_xfer_status_to_string): ... it. New. All callers
10534 updated.
10535 (target_read_live_memory): Likewise. Call target_xfer_partial
10536 instead of target_read.
10537 (memory_xfer_live_readonly_partial): Return
10538 target_xfer_status. Add argument xfered_len.
10539 (raw_memory_xfer_partial): Likewise.
10540 (memory_xfer_partial_1): Likewise.
10541 (memory_xfer_partial): Likewise.
10542 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10543 properly. Update debug message.
10544 (default_xfer_partial, current_xfer_partial): Likewise.
10545 (target_write_partial): Likewise.
10546 (target_read_partial): Likewise. All callers updated.
10547 (read_whatever_is_readable): Likewise.
10548 (target_write_with_progress): Likewise.
10549 (target_read_alloc_1): Likewise.
10550
10551 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10552 * auxv.c (procfs_xfer_auxv): Likewise.
10553 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10554 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10555 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10556 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10557 * corefile.c (read_memory): Adjust.
10558 * corelow.c (core_xfer_partial): Likewise.
10559 * ctf.c (ctf_xfer_partial): Likewise.
10560 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10561 updated.
10562 (darwin_xfer_partial): Likewise.
10563 * exec.c (section_table_xfer_memory_partial): Likewise. All
10564 callers updated.
10565 (exec_xfer_partial): Likewise.
10566 * exec.h (section_table_xfer_memory_partial): Update
10567 declaration.
10568 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10569 negative.
10570 (gnu_xfer_partial): Likewise.
10571 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10572 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10573 (ia64_hpux_xfer_solib_got): Likewise.
10574 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10575 type of 'partial_len' to ULONGEST.
10576 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10577 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10578 (linux_nat_xfer_partial): Likewise.
10579 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10580 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10581 * monitor.c (monitor_xfer_memory): Likewise.
10582 (monitor_xfer_partial): Likewise.
10583 * procfs.c (procfs_xfer_partial): Likewise.
10584 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10585 * record-full.c (record_full_xfer_partial): Likewise.
10586 (record_full_core_xfer_partial): Likewise.
10587 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10588 (gdbsim_xfer_partial): Likewise.
10589 * remote.c (remote_write_bytes_aux): Likewise. All callers
10590 updated.
10591 (remote_write_bytes, remote_read_bytes): Likewise. All
10592 callers updated.
10593 (remote_flash_erase): Likewise. All callers updated.
10594 (remote_write_qxfer): Likewise. All callers updated.
10595 (remote_read_qxfer): Likewise. All callers updated.
10596 (remote_xfer_partial): Likewise.
10597 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10598 (rs6000_xfer_shared_libraries): Likewise.
10599 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10600 (sol_thread_xfer_partial): Likewise.
10601 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10602 (sparc_xfer_partial): Likewise.
10603 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10604 updated.
10605 (spu_xfer_partial): Likewise.
10606 * spu-multiarch.c (spu_xfer_partial): Likewise.
10607 * tracepoint.c (tfile_xfer_partial): Likewise.
10608 * windows-nat.c (windows_xfer_memory): Likewise.
10609 (windows_xfer_shared_libraries): Likewise.
10610 (windows_xfer_partial): Likewise.
10611 * valprint.c: Replace 'target_xfer_error' with
10612 'target_xfer_status' in comments.
10613
10614 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10615
10616 Checked in by Joel Brobecker <brobecker@adacore.com>.
10617 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10618
10619 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10620
10621 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10622 function parameters.
10623
10624 2014-02-10 Will Newton <will.newton@linaro.org>
10625
10626 * elfread.c (elf_rel_plt_read): Look for a .got section if
10627 looking up .got.plt fails.
10628 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10629 on address passed to elf_gnu_ifunc_record_cache.
10630 (elf_gnu_ifunc_resolve_addr): Likewise.
10631 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10632
10633 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10634
10635 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10636 (X_RETTURN): New macro.
10637 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10638
10639 * sparc64-tdep.c (sparc64_init_abi): Hook
10640 sparc_in_function_epilogue_p.
10641
10642 2014-02-10 Gary Benson <gbenson@redhat.com>
10643
10644 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10645 Rename name_matcher to symbol_matcher.
10646
10647 2014-02-10 Gary Benson <gbenson@redhat.com>
10648
10649 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10650 Use expand_symtabs_file_matcher_ftype and
10651 expand_symtabs_symbol_matcher_ftype.
10652
10653 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10654
10655 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10656 (struct ada_symbol_cache): New.
10657 (ada_free_symbol_cache): Forward declare.
10658 (struct ada_pspace_data): New.
10659 (ada_pspace_data_handle): New static global.
10660 (get_ada_pspace_data, ada_pspace_data_cleanup)
10661 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10662 (cache_space, cache): Delete, now folded inside struct
10663 ada_pspace_data.
10664 (ada_get_symbol_cache): New function.
10665 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10666 implementation.
10667 (_initialize_ada_language): Remove initialization of cache_space.
10668 Move call to observer_attach_inferior_exit up, grouping it
10669 with the other observer registrations inside this function.
10670 Rename command to be more general. Add call to
10671 register_program_space_data_with_cleanup.
10672
10673 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10674
10675 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10676 ada_new_objfile_observer.
10677 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10678 (_initialize_tasks): Update uses of ada_new_objfile_observer
10679 and ada_tasks_normal_stop_observer.
10680
10681 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10682
10683 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10684 returned by the 'Length attribute to integer.
10685
10686 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10687
10688 * ada-lang.c (_initialize_ada_language): Initialize
10689 cache_space obstack.
10690
10691 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10692
10693 * ada-lang.c (HASH_SIZE): New macro.
10694 (struct cache_entry): New type.
10695 (cache_space, cache): New static globals.
10696 (ada_clear_symbol_cache, find_entry): New functions.
10697 (lookup_cached_symbol, cache_symbol): Implement.
10698 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10699 (_initialize_ada_language): Attach ada_new_objfile_observer
10700 and ada_free_objfile_observer.
10701
10702 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10703
10704 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10705 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10706 struct block * parameter.
10707 (ada_lookup_symbol_list_worker): Constify local variable "block".
10708 Remove cast which is no longer necessary.
10709
10710 2014-02-10 Doug Evans <xdje42@gmail.com>
10711
10712 Add Guile as an extension language.
10713 * NEWS: Mention Guile scripting.
10714 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10715 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10716 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10717 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10718 (CLIBS): Add GUILE_LIBS.
10719 (install-guile): New rule.
10720 (guile.o): New rule.
10721 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10722 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10723 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10724 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10725 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10726 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10727 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10728 * configure.ac: New option --with-guile.
10729 * configure: Regenerate.
10730 * config.in: Regenerate.
10731 * auto-load.c: Remove #include "python/python.h". Add #include
10732 "gdb/section-scripts.h".
10733 (source_section_scripts): Handle Guile scripts.
10734 (_initialize_auto_load): Add name of Guile objfile script to
10735 scripts-directory help text.
10736 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10737 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10738 (struct breakpoint): New member scm_bp_object.
10739 * defs.h (enum command_control_type): New value guile_control.
10740 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10741 "extension.h".
10742 (show_user): Update comment.
10743 (_initialize_cli_cmds): Update help text for "show user". Update help
10744 text for max-user-call-depth.
10745 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10746 "extension.h".
10747 (multi_line_command_p): Add guile_control.
10748 (print_command_lines): Handle guile_control.
10749 (execute_control_command, recurse_read_control_structure): Ditto.
10750 (process_next_line): Recognize "guile" commands.
10751 * disasm.c (gdb_disassemble_info): Make non-static.
10752 * disasm.h: #include "dis-asm.h".
10753 (struct gdbarch): Add forward decl.
10754 (gdb_disassemble_info): Declare.
10755 * extension.c: #include "guile/guile.h".
10756 (extension_languages): Add guile.
10757 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10758 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10759 * gdbtypes.c (get_unsigned_type_max): New function.
10760 (get_signed_type_minmax): New function.
10761 * gdbtypes.h (get_unsigned_type_max): Declare.
10762 (get_signed_type_minmax): Declare.
10763 * guile/README: New file.
10764 * guile/guile-internal.h: New file.
10765 * guile/guile.c: New file.
10766 * guile/guile.h: New file.
10767 * guile/scm-arch.c: New file.
10768 * guile/scm-auto-load.c: New file.
10769 * guile/scm-block.c: New file.
10770 * guile/scm-breakpoint.c: New file.
10771 * guile/scm-disasm.c: New file.
10772 * guile/scm-exception.c: New file.
10773 * guile/scm-frame.c: New file.
10774 * guile/scm-gsmob.c: New file.
10775 * guile/scm-iterator.c: New file.
10776 * guile/scm-lazy-string.c: New file.
10777 * guile/scm-math.c: New file.
10778 * guile/scm-objfile.c: New file.
10779 * guile/scm-ports.c: New file.
10780 * guile/scm-pretty-print.c: New file.
10781 * guile/scm-safe-call.c: New file.
10782 * guile/scm-string.c: New file.
10783 * guile/scm-symbol.c: New file.
10784 * guile/scm-symtab.c: New file.
10785 * guile/scm-type.c: New file.
10786 * guile/scm-utils.c: New file.
10787 * guile/scm-value.c: New file.
10788 * guile/lib/gdb.scm: New file.
10789 * guile/lib/gdb/boot.scm: New file.
10790 * guile/lib/gdb/experimental.scm: New file.
10791 * guile/lib/gdb/init.scm: New file.
10792 * guile/lib/gdb/iterator.scm: New file.
10793 * guile/lib/gdb/printing.scm: New file.
10794 * guile/lib/gdb/types.scm: New file.
10795 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10796 (VPATH): Add $(GUILE_SRCDIR).
10797 (GUILE_DIR): New variable.
10798 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10799 (all): Add stamp-guile dependency.
10800 (stamp-guile): New rule.
10801 (clean-guile, install-guile, uninstall-guile): New rules.
10802 (install-only): Add install-guile dependency.
10803 (uninstall): Add uninstall-guile dependency.
10804 (clean): Add clean-guile dependency.
10805
10806 2014-02-09 Doug Evans <xdje42@gmail.com>
10807
10808 Revert this patch (which I approved, mea culpa).
10809
10810 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10811
10812 * Makefile.in (all-lib): Remove.
10813 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10814
10815 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10816
10817 Fix Python stack corruption.
10818 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10819 gdb_py_longest.
10820
10821 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10822
10823 * Makefile.in (all-lib): Remove.
10824 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10825
10826 2014-02-07 Doug Evans <dje@google.com>
10827
10828 * extension-priv.h (extension_language_script_ops): Add comment.
10829 (extension_language_ops): Add comment.
10830 (active_ext_lang_state): Fix typo in comment.
10831
10832 2014-02-07 Pedro Alves <palves@redhat.com>
10833
10834 PR breakpoints/16292
10835 * infrun.c (handle_signal_stop) <signal arrives while stepping
10836 over a breakpoint>: Switch back to the stepping thread.
10837
10838 2014-02-07 Yao Qi <yao@codesourcery.com>
10839
10840 * target.c (target_xfer_partial): Return zero if LEN is zero.
10841
10842 2014-02-07 Yao Qi <yao@codesourcery.com>
10843
10844 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10845 (ld_so_xfer_auxv): Likewise.
10846 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10847 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10848 * corelow.c (core_xfer_partial): Likewise.
10849 * ctf.c (ctf_xfer_partial): Likewise.
10850 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10851 (darwin_xfer_partial): Likewise.
10852 * exec.c (exec_xfer_partial): Likewise.
10853 * gnu-nat.c (gnu_xfer_partial): Likewise.
10854 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10855 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10856 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10857 * linux-nat.c (linux_xfer_siginfo): Likewise.
10858 (linux_proc_xfer_spu): Likewise.
10859 * procfs.c (procfs_xfer_partial): Likewise.
10860 * record-full.c (record_full_xfer_partial): Likewise.
10861 (record_full_core_xfer_partial): Likewise.
10862 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10863 * remote.c (remote_write_qxfer): Likewise.
10864 (remote_write_qxfer, remote_read_qxfer): Likewise.
10865 (remote_xfer_partial): Likewise.
10866 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10867 (rs6000_xfer_shared_libraries): Likewise.
10868 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10869 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10870 (spu_xfer_partial): Likewise.
10871 * target.c (memory_xfer_partial_1): Likewise.
10872 * tracepoint.c (tfile_xfer_partial): Likewise.
10873 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10874 (windows_xfer_partial): Likewise.
10875
10876 2014-02-07 Yao Qi <yao@codesourcery.com>
10877
10878 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10879 comments.
10880 (core_xfer_shared_libraries_aix): Likewise.
10881 * gdbarch.c, gdbarch.h: Regenerated.
10882 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10883 ULONGEST. Change 'len_avail' type to ULONGEST.
10884 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10885 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10886 declaration.
10887 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10888
10889 2014-02-07 Yao Qi <yao@codesourcery.com>
10890
10891 * corefile.c (memory_error): Get 'exception' from ERR and pass
10892 'exception' to throw_error.
10893
10894 2014-02-06 Doug Evans <xdje42@gmail.com>
10895
10896 * configure.ac (libpython checking): Remove all but python.o from
10897 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10898 * configure: Regenerate.
10899
10900 * Makefile.in (SFILES): Add extension.c.
10901 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10902 (COMMON_OBS): Add extension.o.
10903 * extension.h: New file.
10904 * extension-priv.h: New file.
10905 * extension.c: New file.
10906
10907 * python/python-internal.h: #include "extension.h".
10908 (gdbpy_auto_load_enabled): Declare.
10909 (gdbpy_apply_val_pretty_printer): Declare.
10910 (gdbpy_apply_frame_filter): Declare.
10911 (gdbpy_preserve_values): Declare.
10912 (gdbpy_breakpoint_cond_says_stop): Declare.
10913 (gdbpy_breakpoint_has_cond): Declare.
10914 (void source_python_script_for_objfile): Delete.
10915 * python/python.c: #include "extension-priv.h".
10916 Delete inclusion of "observer.h".
10917 (extension_language_python): Moved here and renamed from
10918 script_language_python in py-auto-load.c.
10919 Redefined to be of type extension_language_defn.
10920 (python_extension_script_ops): New global.
10921 (python_extension_ops): New global.
10922 (struct python_env): New member previous_active.
10923 (restore_python_env): Call restore_active_ext_lang.
10924 (ensure_python_env): Call set_active_ext_lang.
10925 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10926 New arg extlang.
10927 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10928 New arg extlang.
10929 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10930 New arg extlang.
10931 (gdbpy_eval_from_control_command): Renamed from
10932 eval_python_from_control_command, made static. New arg extlang.
10933 (gdbpy_source_script) Renamed from source_python_script, made static.
10934 New arg extlang.
10935 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10936 result to int. New arg extlang.
10937 (gdbpy_source_objfile_script): Renamed from
10938 source_python_script_for_objfile, made static. New arg extlang.
10939 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10940 static. New args extlang, extlang_printers. Change result type to
10941 "void".
10942 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10943 static. New arg extlang. Rename arg printers to extlang_printers
10944 and change type to ext_lang_type_printers *.
10945 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10946 static. Replace argument arg with extlang, extlang_printers.
10947 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10948 (!HAVE_PYTHON, source_python_script): Delete.
10949 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10950 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10951 (!HAVE_PYTHON, start_type_printers): Delete.
10952 (!HAVE_PYTHON, apply_type_printers): Delete.
10953 (!HAVE_PYTHON, free_type_printers): Delete.
10954 (_initialize_python): Delete call to observer_attach_before_prompt.
10955 (finalize_python): Set/restore active extension language.
10956 (gdbpy_finish_initialization) Renamed from
10957 finish_python_initialization, made static. New arg extlang.
10958 (gdbpy_initialized): New function.
10959 * python/python.h: #include "extension.h". Delete #include
10960 "value.h", "mi/mi-cmds.h".
10961 (extension_language_python): Declare.
10962 (GDBPY_AUTO_FILE_NAME): Delete.
10963 (enum py_bt_status): Moved to extension.h and renamed to
10964 ext_lang_bt_status.
10965 (enum frame_filter_flags): Moved to extension.h.
10966 (enum py_frame_args): Moved to extension.h and renamed to
10967 ext_lang_frame_args.
10968 (finish_python_initialization): Delete.
10969 (eval_python_from_control_command): Delete.
10970 (source_python_script): Delete.
10971 (apply_val_pretty_printer): Delete.
10972 (apply_frame_filter): Delete.
10973 (preserve_python_values): Delete.
10974 (gdbpy_script_language_defn): Delete.
10975 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10976 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10977
10978 * auto-load.c: #include "extension.h".
10979 (GDB_AUTO_FILE_NAME): Delete.
10980 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10981 (script_language_gdb): Delete, moved to extension.c and renamed to
10982 extension_language_gdb.
10983 (source_gdb_script_for_objfile): Delete.
10984 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10985 (loaded_script): Change type of language member to
10986 struct extension_language_defn *.
10987 (init_loaded_scripts_info): Initialize
10988 unsupported_script_warning_printed.
10989 (maybe_add_script): Make static. Change type of language arg to
10990 struct extension_language_defn *.
10991 (clear_section_scripts): Reset unsupported_script_warning_printed.
10992 (auto_load_objfile_script_1): Rewrite to use extension language API.
10993 (auto_load_objfile_script): Make public. Remove support-compiled-in
10994 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10995 (source_section_scripts): Rewrite to use extension language API.
10996 (load_auto_scripts_for_objfile): Rewrite to use
10997 auto_load_scripts_for_objfile.
10998 (collect_matching_scripts_data): Change type of language member to
10999 struct extension_language_defn *.
11000 (auto_load_info_scripts): Change type of language arg to
11001 struct extension_language_defn *.
11002 (unsupported_script_warning_print): New function.
11003 (script_not_found_warning_print): Make static.
11004 (_initialize_auto_load): Rewrite construction of scripts-directory
11005 help.
11006 * auto-load.h (struct objfile): Add forward decl.
11007 (struct script_language): Delete.
11008 (struct auto_load_pspace_info): Add forward decl.
11009 (struct extension_language_defn): Add forward decl.
11010 (maybe_add_script): Delete.
11011 (auto_load_objfile_script): Declare.
11012 (script_not_found_warning_print): Delete.
11013 (auto_load_info_scripts): Update prototype.
11014 (auto_load_gdb_scripts_enabled): Declare.
11015 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11016 auto_load_python_scripts_enabled and made public.
11017 (script_language_python): Delete, moved to python.c.
11018 (gdbpy_script_language_defn): Delete.
11019 (info_auto_load_python_scripts): Update to use
11020 extension_language_python.
11021
11022 * breakpoint.c (condition_command): Replace call to
11023 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11024 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11025 with call to breakpoint_ext_lang_cond_says_stop.
11026 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11027 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11028 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11029 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11030 New arg slang.
11031 (local_setattro): Print name of extension language with existing
11032 stop condition.
11033
11034 * valprint.c (val_print, value_print): Update to call
11035 apply_ext_lang_val_pretty_printer.
11036 * cp-valprint.c (cp_print_value): Update call to
11037 apply_ext_lang_val_pretty_printer.
11038 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11039 (gdbpy_apply_val_pretty_printer): Renamed from
11040 apply_val_pretty_printer. New arg extlang.
11041 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11042
11043 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11044 extension language API.
11045 * cli/cli-script.c (execute_control_command): Update to call
11046 eval_ext_lang_from_control_command.
11047
11048 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11049 enum ext_lang_bt_status values. Update call to
11050 apply_ext_lang_frame_filter.
11051 (mi_cmd_stack_list_locals): Ditto.
11052 (mi_cmd_stack_list_args): Ditto.
11053 (mi_cmd_stack_list_variables): Ditto.
11054 * mi/mi-main.c: Delete #include "python/python-internal.h".
11055 Add #include "extension.h".
11056 (mi_cmd_list_features): Replace reference to python internal variable
11057 gdb_python_initialized with call to ext_lang_initialized_p.
11058
11059 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11060 Update to use enum ext_lang_frame_args. Update to call
11061 apply_ext_lang_frame_filter.
11062 * python/py-framefilter.c (extract_sym): Update to use enum
11063 ext_lang_bt_status.
11064 (extract_value, py_print_type, py_print_value): Ditto.
11065 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11066 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11067 (py_print_frame): Ditto.
11068 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11069 New arg extlang. Update to use enum ext_lang_bt_status.
11070
11071 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11072 finish_python_initialization. Replace with call to
11073 finish_ext_lang_initialization.
11074
11075 * typeprint.c (do_free_global_table): Update to call
11076 free_ext_lang_type_printers.
11077 (create_global_typedef_table): Update to call
11078 start_ext_lang_type_printers.
11079 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11080 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11081 (type_print_options): Change type of global_printers from "void *"
11082 to "struct ext_lang_type_printers *".
11083
11084 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11085 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11086 (gdbpy_preserve_values): Renamed from preserve_python_values.
11087 New arg extlang.
11088 (!HAVE_PYTHON, preserve_python_values): Delete.
11089
11090 * utils.c (quit_flag): Delete, moved to extension.c.
11091 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11092 extension.c.
11093
11094 * eval.c: Delete #include "python/python.h".
11095 * main.c: Delete #include "python/python.h".
11096
11097 * defs.h: Update comment.
11098
11099 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11100
11101 GDB 7.7 released.
11102
11103 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11104
11105 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11106 defined.
11107
11108 2014-02-05 Yao Qi <yao@codesourcery.com>
11109
11110 * remote.c (remote_pass_signals): Remove local 'buf' and use
11111 rs->buf.
11112 (remote_program_signals): Likewise.
11113
11114 2014-02-05 Yao Qi <yao@codesourcery.com>
11115
11116 * ctf.c: Include "inferior.h" and "gdbthread.h".
11117 (CTF_PID): A new macro.
11118 (ctf_open): Call inferior_appeared and add_thread_silent.
11119 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11120 (ctf_thread_alive): New function.
11121 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11122
11123 2014-02-05 Yao Qi <yao@codesourcery.com>
11124
11125 Revert this patch:
11126
11127 2013-05-24 Yao Qi <yao@codesourcery.com>
11128
11129 * tracepoint.c (TFILE_PID): Remove.
11130 (tfile_open): Don't add thread and inferior.
11131 (tfile_close): Don't set 'inferior_ptid'. Don't call
11132 exit_inferior_silent.
11133 (tfile_thread_alive): Remove.
11134 (init_tfile_ops): Don't set field 'to_thread_alive' of
11135 tfile_ops.
11136
11137 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11138
11139 * remote.c (remote_start_remote): Call remote_check_symbols even
11140 if only symbol-file (not file) has been given.
11141
11142 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11143
11144 * gdbarch.sh (skip_entrypoint): New callback.
11145 * gdbarch.c, gdbarch.h: Regenerate.
11146 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11147 * infrun.c (fill_in_stop_func): Likewise.
11148 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11149 (ppc_elfv2_elf_make_msymbol_special): New function.
11150 (ppc_elfv2_skip_entrypoint): Likewise.
11151 (ppc_linux_init_abi): Install them for ELFv2.
11152
11153 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11154
11155 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11156 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11157 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11158 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11159 structures returned in GPRs.
11160
11161 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11162
11163 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11164 offset to the stack parameter list for the ELFv2 ABI.
11165
11166 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11167
11168 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11169 set_gdbarch_convert_from_func_ptr_addr and
11170 set_gdbarch_elf_make_msymbol_special for ELFv1.
11171 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11172 function descriptors on ELFv1.
11173 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11174 set up r12 at function entry.
11175
11176 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11177
11178 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11179 (struct gdbarch_tdep): New member elf_abi.
11180
11181 * rs6000-tdep.c: Include "elf/ppc64.h".
11182 (rs6000_gdbarch_init): Detect ELF ABI version.
11183
11184 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11185
11186 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11187 within a register pair holding a DFP 128-bit value on little-endian.
11188 (ppc64_sysv_abi_return_value_base): Likewise.
11189 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11190 (dfp_pseudo_register_write): Likewise.
11191
11192 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11193
11194 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11195 offset on little-endian when passing _Decimal32.
11196 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11197
11198 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11199
11200 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11201 of the overlapped FP register within the VSX register on little-
11202 endian platforms.
11203 (efpr_pseudo_register_write): Likewise.
11204
11205 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11206
11207 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11208 offset on little-endian when passing small structures.
11209
11210 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11211
11212 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11213 (struct ppc64_sysv_argpos): New data structure.
11214 (ppc64_sysv_abi_push_float): Remove.
11215 (ppc64_sysv_abi_push_val): New function.
11216 (ppc64_sysv_abi_push_integer): Likewise.
11217 (ppc64_sysv_abi_push_freg): Likewise.
11218 (ppc64_sysv_abi_push_vreg): Likewise.
11219 (ppc64_sysv_abi_push_param): Likewise.
11220 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11221 (ppc64_sysv_abi_return_value_base): New function.
11222 (ppc64_sysv_abi_return_value): Refactor to use it.
11223
11224 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11225
11226 * NEWS: Document new target powerpc64le-*-linux*.
11227
11228 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11229
11230 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11231 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11232 core dumps.
11233 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11234 register set used in ELF core dumps. Add floating-point register set.
11235
11236 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11237
11238 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11239 dwarf2_to_gdb[] table using symbolic constants. Adjust
11240 penultimate entry from number representing the PC register
11241 to symbolic constant representing the MDR register. Add
11242 constant for the PC register to the end of the table.
11243
11244 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11245
11246 * bsd-kvm.c: Include <sys/param.h>
11247
11248 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11249
11250 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11251
11252 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11253
11254 * ada-lang.h (clear_ada_sym_cache): Delete.
11255
11256 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11257
11258 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11259
11260 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11261
11262 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11263 the sigreturn register save area only if the syscall is
11264 sigreturn.
11265
11266 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11267
11268 * valops.c (value_slice): Minor reformatting.
11269
11270 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11271
11272 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11273
11274 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11275
11276 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11277 New static globals.
11278 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11279 (ada_ignore_descriptive_types_p): New static global.
11280 (find_parallel_type_by_descriptive_type): Return immediately
11281 if ada_ignore_descriptive_types_p is set.
11282 (_initialize_ada_language): Register new commands "maintenance
11283 set ada", "maintenance show ada", "maintenance set ada
11284 ignore-descriptive-types" and "maintenance show ada
11285 ignore-descriptive-types".
11286 * NEWS: Add entry for new "maint ada set/show
11287 ignore-descriptive-types" commands.
11288
11289 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11290
11291 * record-btrace.c (record_btrace_close): Call btrace_teardown
11292 for all threads.
11293
11294 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11295
11296 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11297 "ui-out.h".
11298
11299 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11300
11301 * ada-typeprint (type_is_full_subrange_of_target_type):
11302 New function.
11303 (print_range): Add parameter bounds_prefered_p. If not set,
11304 try printing range types using the name of their base type.
11305 (print_range_type): Add parameter bounds_prefered_p.
11306 Use it in call to print_range.
11307 (print_array_type, ada_print_type): Update calls to print_range
11308 and print_range_type.
11309
11310 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11311
11312 * ada-typeprint.c (print_array_type, print_choices, print_range)
11313 (print_range_bound, print_dynamic_range_bound, print_range_type):
11314 Remove declaration.
11315
11316 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11317
11318 * ada-typeprint.c (print_range): Add missing empty line
11319 after local declaration.
11320
11321 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11322
11323 * ada-valprint.c (print_optional_low_bound): Get index_type's
11324 target type for as long as it is a TYPE_CODE_RANGE.
11325
11326 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11327
11328 * procfs.c (procfs_make_note_section): Remove assertion and
11329 associated comment.
11330
11331 2014-01-24 Yao Qi <yao@codesourcery.com>
11332
11333 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11334 * corelow.c (get_core_siginfo): Likewise.
11335
11336 2014-01-24 Yao Qi <yao@codesourcery.com>
11337
11338 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11339 ULONGEST. Don't check 'len' is negative.
11340 (remote_write_bytes): Change type of 'len' to ULONGEST.
11341
11342 2014-01-23 Tom Tromey <tromey@redhat.com>
11343
11344 PR python/16485:
11345 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11346 Handle exception from frame.block.
11347 (FrameVars.fetch_frame_locals): Likewise.
11348
11349 2014-01-23 Tom Tromey <tromey@redhat.com>
11350
11351 PR python/16487:
11352 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11353 on a NULL pointer. Move "goto error" to correct place.
11354
11355 2014-01-23 Tom Tromey <tromey@redhat.com>
11356
11357 PR python/16491:
11358 * python/py-framefilter.c (apply_frame_filter): Call
11359 ensure_python_env after computing gdbarch.
11360
11361 2014-01-23 Yao Qi <yao@codesourcery.com>
11362
11363 * target.c (raw_memory_xfer_partial): Change argument type
11364 from void * to gdb_byte *.
11365 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11366
11367 2014-01-22 Doug Evans <dje@google.com>
11368
11369 New gdbserver option --debug-format=timestamp.
11370 * NEWS: Mention it.
11371
11372 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11373
11374 * syscalls/s390x-linux.xml: New file.
11375 * syscalls/s390-linux.xml: New file.
11376 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11377 (XML_SYSCALL_FILENAME_S390X): Likewise.
11378 (op_svc): New enum value for SVC opcode.
11379 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11380 (s390_linux_get_syscall_number): New function.
11381 (s390_gdbarch_init): Register '*get_syscall_number' and the
11382 syscall xml file name.
11383 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11384 "s390-linux.xml" and "s390x-linux.xml".
11385 * NEWS: Announce new feature.
11386
11387 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11388
11389 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11390
11391 2014-01-22 Pedro Alves <palves@redhat.com>
11392
11393 * xtensa-config.c: Include defs.h.
11394
11395 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11396
11397 * common/common-utils.h: Add "ARI:" comment beside __func__
11398 reference.
11399
11400 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11401
11402 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11403 documentation a bit.
11404
11405 2014-01-21 Roland McGrath <mcgrathr@google.com>
11406
11407 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11408 * configure: Regenerate.
11409 * aclocal.m4: Regenerate.
11410 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11411 New substituted variables.
11412 (install-strip): New target.
11413 (INSTALL_SCRIPT): New substituted variable.
11414 (FLAGS_TO_PASS): Add it.
11415 (install-only): Use $(INSTALL_SCRIPT) rather than
11416 $(INSTALL_PROGRAM) for gcore.
11417
11418 2014-01-20 Tom Tromey <tromey@redhat.com>
11419
11420 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11421 together.
11422
11423 2014-01-20 Tom Tromey <tromey@redhat.com>
11424
11425 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11426 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11427 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11428 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11429 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11430 (struct cmd_list_element) <flags>: Remove.
11431 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11432 doc_allocated>: New fields.
11433 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11434 bitfields.
11435 * maint.c (maintenance_do_deprecate): Update.
11436 * top.c (execute_command): Update.
11437
11438 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11439
11440 * xtensa-linux-nat.c: Include asm/ptrace.h.
11441
11442 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11443
11444 * Makefile.in (SFILES): Add d-support.c.
11445 (COMMON_OBS): Add d-support.o.
11446 * d-lang.h (d_parse_symbol): Add comment, now defined in
11447 d-support.c.
11448 * d-lang.c (parse_call_convention)
11449 (parse_attributes, parse_function_types)
11450 (parse_function_args, parse_type, parse_identifier)
11451 (call_convention_p, d_parse_symbol): Move functions to ...
11452 * d-support.c: ... New file.
11453
11454 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11455
11456 * d-lang.h (d_parse_symbol): Add declaration.
11457 * d-lang.c (extract_identifiers)
11458 (extract_type_info): Remove functions.
11459 (parse_call_convention, parse_attributes)
11460 (parse_function_types, parse_function_args)
11461 (parse_type, parse_identifier, call_convention_p)
11462 (d_parse_symbol): New functions.
11463 (d_demangle): Use d_parse_symbol to demangle D symbols.
11464
11465 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11466
11467 * d-lang.h (struct builtin_d_type): New data type.
11468 (builtin_d_type): Add declaration.
11469 * d-lang.c (d_language_arch_info, build_d_types)
11470 (builtin_d_type): New functions.
11471 (enum d_primitive_types): New data type.
11472 (d_language_defn): Change c_language_arch_info to
11473 d_language_arch_info.
11474 (d_type_data): New static variable.
11475 (_initialize_d_language): Initialize d_type_data.
11476
11477 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11478
11479 * d-lang.h (d_main_name): Add declaration.
11480 * d-lang.c (d_main_name): New function.
11481 * symtab.c (find_main_name): Add call to d_main_name.
11482
11483 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11484
11485 * d-lang.c (d_language_defn): Change macro_expansion_c to
11486 macro_expansion_no.
11487
11488 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11489
11490 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11491
11492 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11493
11494 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11495 gdb_exception" declaration.
11496 * remote.c (getpkt_or_notif_sane): Likewise.
11497
11498 2014-01-17 Doug Evans <dje@google.com>
11499
11500 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11501 function, contents of dirnames_to_char_ptr_vec_append moved here.
11502 (delim_string_to_char_ptr_vec): New function.
11503 (dirnames_to_char_ptr_vec_append): Rewrite.
11504 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11505
11506 2014-01-17 Doug Evans <dje@google.com>
11507
11508 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11509 and moved here ...
11510 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11511 #include "common-utils.h".
11512 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11513 * common/vec.h (VEC_ASSERT_PASS): Update.
11514 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11515 (MACH_CHECK_ERROR): Update.
11516
11517 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11518
11519 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11520 comments.
11521 * gdbarch.h: Regenerate.
11522
11523 2014-01-16 Tom Tromey <tromey@redhat.com>
11524
11525 * value.c (struct value) <regnum>: Move earlier.
11526
11527 2014-01-16 Tom Tromey <tromey@redhat.com>
11528
11529 * remote.c (extended_remote_create_inferior): Rename from
11530 extended_remote_create_inferior_1. Add "ops" argument. Remove
11531 old implementation.
11532
11533 2014-01-16 Pedro Alves <palves@redhat.com>
11534
11535 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11536 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11537 the backchain.
11538
11539 2014-01-16 Doug Evans <dje@google.com>
11540
11541 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11542
11543 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11544
11545 * btrace.h (btrace_thread_flag): New.
11546 (struct btrace_thread_info) <flags>: New.
11547 * record-btrace.c (record_btrace_resume_thread)
11548 (record_btrace_find_thread_to_move, btrace_step_no_history)
11549 (btrace_step_stopped, record_btrace_start_replaying)
11550 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11551 (record_btrace_find_resume_thread): New.
11552 (record_btrace_resume, record_btrace_wait): Extend.
11553 (record_btrace_can_execute_reverse): New.
11554 (record_btrace_open): Fail in non-stop mode.
11555 (record_btrace_set_replay): Split into this, ...
11556 (record_btrace_stop_replaying): ... this, ...
11557 (record_btrace_clear_histories): ... and this.
11558 (init_record_btrace_ops): Init to_can_execute_reverse.
11559 * NEWS: Announce it.
11560
11561 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11562
11563 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11564 (forward_target_decr_pc_after_break)
11565 (target_decr_pc_after_break): New.
11566 * target.c (forward_target_decr_pc_after_break)
11567 (target_decr_pc_after_break): New.
11568 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11569 instead of gdbarch_decr_pc_after_break.
11570 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11571 instead of gdbarch_decr_pc_after_break.
11572 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11573 instead of gdbarch_decr_pc_after_break.
11574 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11575 instead of gdbarch_decr_pc_after_break.
11576 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11577 instead of gdbarch_decr_pc_after_break.
11578 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11579 instead of gdbarch_decr_pc_after_break.
11580
11581 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11582
11583 * btrace.c: Include regcache.h.
11584 (btrace_add_pc): New.
11585 (btrace_enable): Call btrace_add_pc.
11586 (btrace_is_empty): New.
11587 * btrace.h (btrace_is_empty): New.
11588 * record-btrace.c (require_btrace, record_btrace_info): Call
11589 btrace_is_empty.
11590
11591 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11592
11593 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11594 Support delta reads.
11595 (linux_disable_btrace): Change return type.
11596 * common/linux-btrace.h (linux_read_btrace): Change parameters
11597 and return type to allow error reporting. Update users.
11598 (linux_disable_btrace): Change return type. Update users.
11599 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11600 New.
11601 (btrace_error): New.
11602 (btrace_block) <begin>: Comment on BEGIN == 0.
11603 * btrace.c (btrace_compute_ftrace): Start from the end of
11604 the current trace.
11605 (btrace_stitch_trace, btrace_clear_history): New.
11606 (btrace_fetch): Read delta trace, return if replaying.
11607 (btrace_clear): Move clear history code to btrace_clear_history.
11608 (parse_xml_btrace): Throw an error if parsing failed.
11609 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11610 and return type to allow error reporting.
11611 (target_read_btrace): Change parameters and return type to allow
11612 error reporting.
11613 * target.c (target_read_btrace): Update.
11614 * remote.c (remote_read_btrace): Support delta reads. Pass
11615 errors on.
11616 * NEWS: Announce it.
11617
11618 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11619
11620 * record.h (record_btrace_frame_unwind)
11621 (record_btrace_tailcall_frame_unwind): New declarations.
11622 * dwarf2-frame: Include record.h
11623 (dwarf2_frame_cfa): Throw an error for btrace frames.
11624 * record-btrace.c: Include hashtab.h.
11625 (btrace_get_bfun_name): New.
11626 (btrace_call_history): Call btrace_get_bfun_name.
11627 (struct btrace_frame_cache): New.
11628 (bfcache): New.
11629 (bfcache_hash, bfcache_eq, bfcache_new): New.
11630 (btrace_get_frame_function): New.
11631 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11632 (record_btrace_frame_this_id): Compute own id.
11633 (record_btrace_frame_prev_register): Provide PC, throw_error
11634 for all other registers.
11635 (record_btrace_frame_sniffer): Detect btrace frames.
11636 (record_btrace_tailcall_frame_sniffer): New.
11637 (record_btrace_frame_dealloc_cache): New.
11638 (record_btrace_frame_unwind): Add new functions.
11639 (record_btrace_tailcall_frame_unwind): New.
11640 (_initialize_record_btrace): Allocate cache.
11641 * btrace.c (btrace_clear): Call reinit_frame_cache.
11642 * NEWS: Announce it.
11643
11644 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11645
11646 * record-btrace.c (record_btrace_set_replay)
11647 (record_btrace_goto_begin, record_btrace_goto_end)
11648 (record_btrace_goto): New.
11649 (init_record_btrace_ops): Initialize them.
11650 * NEWS: Announce it.
11651
11652 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11653
11654 * record-btrace.c (record_btrace_find_new_threads)
11655 (record_btrace_thread_alive): New.
11656 (init_record_btrace_ops): Initialize to_find_new_threads and
11657 to_thread_alive.
11658
11659 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11660
11661 * record-btrace.c (record_btrace_resume): New.
11662 (record_btrace_wait): New.
11663 (init_record_btrace_ops): Initialize to_wait and to_resume.
11664
11665 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11666
11667 * record-btrace.c (record_btrace_xfer_partial)
11668 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11669 (record_btrace_allow_memory_access): New.
11670 (init_record_btrace_ops): Initialize new methods.
11671 * target.c (raw_memory_xfer_partial): Bail out if target reports
11672 that this memory is not available.
11673
11674 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11675
11676 * target.h (target_ops) <to_insert_breakpoint>
11677 <to_remove_breakpoint>: Add target_ops parameter.
11678 (forward_target_insert_breakpoint): New.
11679 (forward_target_remove_breakpoint): New.
11680 (memory_remove_breakpoint, memory_insert_breakpoint):
11681 Add target_ops parameter.
11682 * target.c (target_insert_breakpoint): Split into this and ...
11683 (forward_target_insert_breakpoint): ... this.
11684 (target_remove_breakpoint): Split into this and ...
11685 (forward_target_remove_breakpoint): ... this.
11686 (debug_to_insert_breakpoint): Add target_ops parameter.
11687 Call forward_target_insert_breakpoint.
11688 (debug_to_remove_breakpoint): Add target_ops parameter.
11689 Call forward_target_remove_breakpoint.
11690 (update_current_target): Do not inherit or default to_insert_breakpoint
11691 and to_remove_breakpoint.
11692 * corelow.c (ignore): Add target_ops parameter.
11693 * exec.c (ignore): Add target_ops parameter.
11694 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11695 Add target_ops parameter.
11696 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11697 Add target_ops parameter.
11698 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11699 Add target_ops parameter.
11700 * record-full.c (record_full_beneath_to_insert_breakpoint)
11701 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11702 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11703 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11704 (record_full_core_remove_breakpoint): Add target_ops parameter.
11705 Update users.
11706 (record_full_beneath_to_insert_breakpoint_ops)
11707 (record_full_beneath_to_remove_breakpoint_ops)
11708 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11709 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11710 tmp_to_remove_breakpoint_ops,
11711 record_full_beneath_to_insert_breakpoint_ops, and
11712 record_full_beneath_to_remove_breakpoint_ops.
11713 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11714 (m32r_remove_breakpoint): Add target_ops parameter.
11715 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11716 Add target_ops parameter.
11717 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11718 Add target_ops parameter.
11719
11720 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11721 Markus Metzger <markus.t.metzger@intel.com>
11722
11723 * record-btrace.c: Include frame-unwind.h.
11724 (record_btrace_frame_unwind_stop_reason)
11725 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11726 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11727 New.
11728 (init_record_btrace_ops): Install it.
11729
11730 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11731
11732 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11733 get_prev_frame_1.
11734
11735 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11736
11737 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11738 earlier.
11739
11740 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11741
11742 * frame-unwind.c: Include target.h.
11743 (frame_unwind_try_unwinder): New function with code from ...
11744 (frame_unwind_find_by_frame): ... here. New variable
11745 unwinder_from_target, call also target_get_unwinder)
11746 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11747 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11748 * target.h (struct target_ops): New fields to_get_unwinder and
11749 to_get_tailcall_unwinder.
11750 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11751
11752 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11753
11754 * record-btrace.c (record_btrace_fetch_registers)
11755 (record_btrace_store_registers)
11756 (record_btrace_to_prepare_to_store): New.
11757 (init_record_btrace_ops): Add the above.
11758
11759 2014-01-16 Tom Tromey <tromey@redhat.com>
11760
11761 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11762 * target.h (struct target_ops) <to_prepare_to_store>: Add
11763 argument.
11764 (target_prepare_to_store): Add argument.
11765 * target.c (debug_to_prepare_to_store): Add argument.
11766 (update_current_target): Update.
11767 * remote.c (remote_prepare_to_store): Add 'self' argument.
11768 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11769 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11770 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11771 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11772 argument.
11773 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11774 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11775 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11776 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11777 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11778
11779 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11780
11781 * btrace.h (replay) <replay>: New.
11782 (btrace_is_replaying): New.
11783 * btrace.c (btrace_clear): Free replay iterator.
11784 (btrace_is_replaying): New.
11785 * record-btrace.c (record_btrace_is_replaying): New.
11786 (record_btrace_info): Print insn number if replaying.
11787 (record_btrace_insn_history): Start at replay position.
11788 (record_btrace_call_history): Start at replay position.
11789 (init_record_btrace_ops): Init to_record_is_replaying.
11790
11791 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11792
11793 * record-btrace.c (record_btrace_insn_history_range): Include
11794 end.
11795 (record_btrace_insn_history_from): Adjust range.
11796 (record_btrace_call_history_range): Include
11797 end.
11798 (record_btrace_call_history_from): Adjust range.
11799 * NEWS: Announce changes.
11800
11801 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11802
11803 * record.h (enum record_print_flag)
11804 <record_print_indent_calls>: New.
11805 * record.c (get_call_history_modifiers): Recognize /c modifier.
11806 (_initialize_record): Document /c modifier.
11807 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11808 Reorder fields. Optionally indent the function name. Update
11809 all users.
11810 * NEWS: Announce changes.
11811
11812 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11813
11814 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11815
11816 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11817
11818 * btrace.c (ftrace_new_function): Start counting at one.
11819 * record-btrace.c (record_btrace_info): Adjust number of calls
11820 and insns.
11821 * NEWS: Announce it.
11822
11823 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11824
11825 * record-btrace.c (btrace_call_history_insn_range): Print
11826 insn range as [begin, end].
11827
11828 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11829
11830 * btrace.h (struct btrace_func_link): New.
11831 (enum btrace_function_flag): New.
11832 (struct btrace_inst): Rename to ...
11833 (struct btrace_insn): ...this. Update all users.
11834 (struct btrace_func) <ibegin, iend>: Remove.
11835 (struct btrace_func_link): New.
11836 (struct btrace_func): Rename to ...
11837 (struct btrace_function): ...this. Update all users.
11838 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11839 (number, level, flags>: New.
11840 (struct btrace_insn_iterator): Rename to ...
11841 (struct btrace_insn_history): ...this.
11842 Update all users.
11843 (struct btrace_insn_iterator, btrace_call_iterator): New.
11844 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11845 (struct btrace_target_info) <begin, end, level>
11846 <insn_history, call_history>: New.
11847 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11848 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11849 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11850 (btrace_call_number, btrace_call_begin, btrace_call_end)
11851 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11852 (btrace_find_function_by_number, btrace_set_insn_history)
11853 (btrace_set_call_history): New.
11854 * btrace.c (btrace_init_insn_iterator)
11855 (btrace_init_func_iterator, compute_itrace): Remove.
11856 (ftrace_print_function_name, ftrace_print_filename)
11857 (ftrace_skip_file): Change
11858 parameter to const.
11859 (ftrace_init_func): Remove.
11860 (ftrace_debug): Use new btrace_function fields.
11861 (ftrace_function_switched): Also consider gaining and
11862 losing symbol information).
11863 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11864 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11865 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11866 New.
11867 (ftrace_new_function): Move. Remove debug print.
11868 (ftrace_update_lines, ftrace_update_insns): New.
11869 (ftrace_update_function): Check for call, ret, and jump.
11870 (compute_ftrace): Renamed to ...
11871 (btrace_compute_ftrace): ...this. Rewritten to compute call
11872 stack.
11873 (btrace_fetch, btrace_clear): Updated.
11874 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11875 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11876 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11877 (btrace_call_number, btrace_call_begin, btrace_call_end)
11878 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11879 (btrace_find_function_by_number, btrace_set_insn_history)
11880 (btrace_set_call_history): New.
11881 * record-btrace.c (require_btrace): Use new btrace thread
11882 info fields.
11883 (record_btrace_info, btrace_insn_history)
11884 (record_btrace_insn_history, record_btrace_insn_history_range):
11885 Use new btrace thread info fields and new iterator.
11886 (btrace_func_history_src_line): Rename to ...
11887 (btrace_call_history_src_line): ...this. Use new btrace
11888 thread info fields.
11889 (btrace_func_history): Rename to ...
11890 (btrace_call_history): ...this. Use new btrace thread info
11891 fields and new iterator.
11892 (record_btrace_call_history, record_btrace_call_history_range):
11893 Use new btrace thread info fields and new iterator.
11894
11895 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11896
11897 * frame.h (frame_id_build_unavailable_stack_special): New.
11898 * frame.c (frame_id_build_unavailable_stack_special): New.
11899
11900 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11901
11902 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11903 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11904 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11905 to gdbarch.
11906 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11907 (i386_insn_is_jump, i386_jmp_p): New.
11908 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11909 insn_is_jump to gdbarch.
11910 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11911 * gdbarch.h: Regenerated.
11912 * gdbarch.c: Regenerated.
11913 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11914 (default_insn_is_jump): New.
11915 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11916 (default_insn_is_jump): New.
11917
11918 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11919
11920 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11921 Change to ...
11922 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11923 (btrace_read_type) <btrace_read_new>: Change to ...
11924 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11925
11926 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11927
11928 * common/linux-btrace.c (linux_read_btrace): Free trace from
11929 previous iteration.
11930
11931 2014-01-15 Doug Evans <dje@google.com>
11932
11933 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11934 uint32_t.
11935
11936 2014-01-15 Tom Tromey <tromey@redhat.com>
11937
11938 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11939 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11940 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11941 (set_objfile_main_name): New function.
11942 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11943 language_of_main>: New fields.
11944 (set_objfile_main_name): Declare.
11945 * symtab.c (find_main_name): Loop over objfiles to find the main
11946 name and language.
11947 (set_main_name): Now static.
11948 (get_main_info): Add comment.
11949 * symtab.h (set_main_name): Don't declare.
11950
11951 2014-01-15 Tom Tromey <tromey@redhat.com>
11952
11953 * symtab.c (main_progspace_key): New global.
11954 (struct main_info): New.
11955 (name_of_main, language_of_main): Remove.
11956 (get_main_info, main_info_cleanup): New function.
11957 (set_main_name, main_name, main_language): Use get_main_info.
11958 (_initialize_symtab): Initialize main_progspace_key.
11959
11960 2014-01-15 Tom Tromey <tromey@redhat.com>
11961
11962 * dbxread.c (process_one_symbol): Update.
11963 * dwarf2read.c (read_partial_die): Update.
11964 * symfile.c (set_initial_language): Call main_language.
11965 * symtab.c (language_of_main): Now static.
11966 (set_main_name): Add 'lang' parameter.
11967 (find_main_name): Update.
11968 (main_language): New function.
11969 (symtab_observer_executable_changed): Update.
11970 * symtab.h (set_main_name): Update.
11971 (language_of_main): Remove.
11972 (main_language): Declare.
11973
11974 2014-01-15 Tom Tromey <tromey@redhat.com>
11975
11976 * symfile.c (init_entry_point_info): Use new "initialized" field.
11977 Update.
11978 * objfiles.h (struct entry_point) <initialized>: New field.
11979 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11980 (struct objfile) <ei>: ...here. Remove.
11981 * objfiles.c (entry_point_address_query): Update.
11982
11983 2014-01-15 Tom Tromey <tromey@redhat.com>
11984
11985 * objfiles.c (entry_point_address_query): Relocate entry point
11986 address.
11987 (objfile_relocate1): Do not relocate entry point address.
11988 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11989 <the_bfd_section_index>: New field.
11990 * symfile.c (init_entry_point_info): Find the entry point's
11991 section.
11992
11993 2014-01-15 Tom Tromey <tromey@redhat.com>
11994
11995 * solib-frv.c (enable_break): Use entry_point_address_query.
11996
11997 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11998
11999 * NEWS: Add note on improved process record-replay on
12000 arm*-linux* targets.
12001
12002 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12003
12004 * arm-tdep.c (enum arm_record_result): New enum.
12005 (arm_record_unsupported_insn): New function.
12006 (arm_record_coproc_data_proc): Removed.
12007 (thumb2_record_ld_st_multiple): New function.
12008 (thumb2_record_ld_st_dual_ex_tbb): New function.
12009 (thumb2_record_data_proc_sreg_mimm): New function.
12010 (thumb2_record_ps_dest_generic): New function.
12011 (thumb2_record_branch_misc_cntrl): New function.
12012 (thumb2_record_str_single_data): New function.
12013 (thumb2_record_ld_mem_hints): New function.
12014 (thumb2_record_ld_word): New function.
12015 (thumb2_record_lmul_lmla_div): New function.
12016 (thumb2_record_decode_insn_handler): New function.
12017 (decode_insn): Add thumb32 instruction handlers.
12018
12019 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12020
12021 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12022 (struct arm_linux_record_tdep): Declare.
12023 (arm_canonicalize_syscall): New function.
12024 (arm_all_but_pc_registers_record): New function.
12025 (arm_linux_syscall_record): New function.
12026 (arm_linux_init_abi): Add syscall recording constructs.
12027 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12028 decoding. (arm_record_coproc_data_proc): Update arm syscall
12029 decoding.
12030 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12031 <arm_syscall_record>: New field.
12032 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12033 gdb_target_obs.
12034
12035 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12036
12037 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12038 register for push instruction recording.
12039
12040 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12041
12042 * arm-tdep.c (thumb_record_misc): Update to correct logical
12043 error while recording ldm, ldmia and pop instructions.
12044
12045 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12046
12047 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12048
12049 2014-01-15 Pedro Alves <palves@redhat.com>
12050
12051 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12052 (go32_resume, go32_fetch_registers, store_register)
12053 (go32_store_registers, go32_prepare_to_store)
12054 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12055 (go32_create_inferior, go32_can_run, go32_terminal_init)
12056 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12057 declarations.
12058
12059 2014-01-15 Tom Tromey <tromey@redhat.com>
12060
12061 * target.h (async_callback_ftype): New typedef.
12062 (struct target_ops) <to_async>: Use it.
12063
12064 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12065
12066 * python/py-value.c (get_field_type): Remove unnecessary curly
12067 braces for single-statement if block.
12068
12069 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12070
12071 * python/py-type.c (convert_field): Add missing empty line
12072 after declarations.
12073
12074 2014-01-14 Doug Evans <dje@google.com>
12075
12076 * symfile.h (expand_symtabs_matching): Renamed from
12077 expand_partial_symbol_names. Update prototype.
12078 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12079 * symfile.c (expand_symtabs_matching): Renamed from
12080 expand_partial_symbol_names. New args file_matcher, kind.
12081 Rename arg fun to symbol_matcher.
12082 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12083 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12084 ada_expand_partial_symbol_name.
12085 (ada_make_symbol_completion_list): Update to call
12086 expand_symtabs_matching.
12087 (ada_add_global_exceptions): Call expand_symtabs_matching.
12088 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12089 call map_symbol_filenames.
12090 * symtab.c (sources_info): Update to call map_symbol_filenames.
12091 (search_symbols): Call expand_symtabs_matching.
12092 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12093 (default_make_symbol_completion_list_break_on): Update to call
12094 expand_symtabs_matching.
12095 (make_source_files_completion_list): Update to call
12096 map_symbol_filenames.
12097
12098 2014-01-14 Doug Evans <dje@google.com>
12099
12100 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12101 (expand_symtabs_symbol_matcher_ftype): New typedef.
12102 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12103 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12104 * symfile.c (expand_partial_symbol_names): Update to use
12105 expand_symtabs_symbol_matcher_ftype.
12106 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12107 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12108 Arg name_matcher renamed to symbol_matcher.
12109 * psymtab.c (recursively_search_psymtabs): Update to use
12110 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12111 sym_matcher.
12112 (expand_symtabs_matching_via_partial): Update to use
12113 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12114 Arg name_matcher renamed to symbol_matcher.
12115
12116 2014-01-14 Doug Evans <dje@google.com>
12117
12118 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12119 (map_partial_symbol_filenames): Ditto.
12120 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12121 (map_partial_symbol_filenames): Ditto.
12122 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12123 (map_partial_symbol_filenames): Ditto.
12124 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12125 (map_partial_symbol_filenames): Ditto.
12126 * symtab.c: Delete #include "psymtab.h".
12127
12128 2014-01-14 Pedro Alves <palves@redhat.com>
12129 Tom Tromey <tromey@redhat.com>
12130
12131 * infrun.c (use_displaced_stepping): Use find_record_target
12132 instead of RECORD_IS_USED.
12133 (adjust_pc_after_break): Use record_full_is_used instead of
12134 RECORD_IS_USED.
12135 * record-btrace.c (record_btrace_open): Call record_preopen
12136 instead of checking RECORD_IS_USED.
12137 * record-full.c (record_full_shortname)
12138 (record_full_core_shortname): New globals.
12139 (record_full_is_used): New function.
12140 (find_full_open): Call record_preopen instead of checking
12141 RECORD_IS_USED.
12142 (init_record_full_ops): Set the target's shortname to
12143 record_full_shortname.
12144 (init_record_full_core_ops): Set the target's shortname to
12145 record_full_core_shortname.
12146 * record-full.h (record_full_is_used): Declare.
12147 * record.c (find_record_target): Make extern.
12148 (record_preopen): New function.
12149 * record.h (RECORD_IS_USED): Delete macro.
12150 (find_record_target, record_preopen): Declare functions.
12151
12152 2014-01-14 Yao Qi <yao@codesourcery.com>
12153
12154 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12155 'len''s type to ULONGEST.
12156 (core_xfer_shared_libraries_aix): Likewise.
12157 * gdbarch.c, gdbarch.h: Regenerated.
12158 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12159 Change type of 'len' to ULONGEST.
12160 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12161 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12162
12163 2014-01-14 Yao Qi <yao@codesourcery.com>
12164
12165 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12166 type of 'len' to ULONGEST.
12167 (linux_xfer_osdata_processgroups): Likewise.
12168 (linux_xfer_osdata_threads): Likewise.
12169 (linux_xfer_osdata_fds): Likewise.
12170 (linux_xfer_osdata_isockets): Likewise.
12171 (linux_xfer_osdata_shm): Likewise.
12172 (linux_xfer_osdata_sem): Likewise.
12173 (linux_xfer_osdata_msg): Likewise.
12174 (linux_common_xfer_osdata): Likewise.
12175 (struct osdata_type) <getter>: Likewise.
12176 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12177 the declaration.
12178
12179 2014-01-14 Yao Qi <yao@codesourcery.com>
12180
12181 * target.h (target_xfer_partial_ftype): Update.
12182 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12183 ULONGEST.
12184 * aix-thread.c (aix_thread_xfer_partial): Change type of
12185 argument 'len' to ULONGEST.
12186 * auxv.c (procfs_xfer_auxv): Likewise.
12187 (ld_so_xfer_auxv): Likewise.
12188 (memory_xfer_auxv): Likewise.
12189 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12190 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12191 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12192 * corelow.c (core_xfer_partial): Likewise.
12193 * ctf.c (ctf_xfer_partial): Likewise.
12194 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12195 '%u'.
12196 (darwin_read_dyld_info): Likewise.
12197 (darwin_xfer_partial): Likewise.
12198 * exec.c (section_table_xfer_memory_partial): Likewise.
12199 (exec_xfer_partial): Likewise.
12200 * exec.h (section_table_xfer_memory_partial): Update
12201 declaration.
12202 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12203 instead of plongest.
12204 (gnu_xfer_partial): Likewise.
12205 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12206 (ia64_hpux_xfer_solib_got): Likewise.
12207 (ia64_hpux_xfer_partial): Likewise.
12208 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12209 * inf-ptrace.c (inf_ptrace_xfer_partial):
12210 * inf-ttrace.c (inf_ttrace_xfer_partial):
12211 * linux-nat.c (linux_xfer_siginfo): Likewise.
12212 (linux_nat_xfer_partial): Likewise.
12213 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12214 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12215 * monitor.c (monitor_xfer_memory): Likewise.
12216 (monitor_xfer_partial): Likewise.
12217 * procfs.c (procfs_xfer_partial): Likewise.
12218 * record-full.c (record_full_xfer_partial): Likewise.
12219 (record_full_core_xfer_partial): Likewise.
12220 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12221 instead of plongest.
12222 (gdbsim_xfer_partial): Likewise.
12223 * remote.c (remote_xfer_partial): Likewise.
12224 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12225 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12226 declaration.
12227 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12228 (rs6000_xfer_shared_libraries): Likewise.
12229 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12230 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12231 (sparc_xfer_partial): Likewise.
12232 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12233 (spu_xfer_partial): Likewise.
12234 * spu-multiarch.c (spu_xfer_partial): Likewise.
12235 * target.c (target_read_live_memory): Likewise.
12236 (memory_xfer_live_readonly_partial): Likewise.
12237 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12238 (target_xfer_partial, default_xfer_partial): Likewise.
12239 (current_xfer_partial): Likewise.
12240 * tracepoint.c (tfile_xfer_partial): Likewise.
12241 * windows-nat.c (windows_xfer_memory): Likewise. Call
12242 pulongest instead of plongest.
12243 (windows_xfer_partial): Likewise.
12244 (windows_xfer_shared_libraries): Likewise.
12245
12246 2014-01-14 Yao Qi <yao@codesourcery.com>
12247
12248 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12249 target_xfer_partial_ftype.
12250
12251 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12252
12253 PR python/15464
12254 PR python/16113
12255 * valops.c (value_struct_elt_bitpos): New function
12256 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12257 object to 'None' if the field name is an empty string ("").
12258 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12259 attribute to look for a field when 'name' is 'None'.
12260 (get_field_type): New function
12261
12262 2014-01-13 Doug Evans <dje@google.com>
12263
12264 PR symtab/16426
12265 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12266 (try_open_dwop_file): Ditto.
12267 * gdb_bfd.c: #include "vec.h".
12268 (bfdp): New typedef.
12269 (struct gdb_bfd_data): New member included_bfds.
12270 (gdb_bfd_unref): Unref all included bfds.
12271 (gdb_bfd_record_inclusion): New function.
12272 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12273
12274 2014-01-13 Tom Tromey <tromey@redhat.com>
12275
12276 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12277
12278 2014-01-13 Tom Tromey <tromey@redhat.com>
12279
12280 * defs.h (use_windows): Remove.
12281 * gdb.c (main): Update.
12282 * main.c (captured_main, gdb_main): Update.
12283 * main.h (struct captured_main_args) <use_windows>: Remove.
12284 * top.c (use_windows): Remove.
12285
12286 2014-01-13 Tom Tromey <tromey@redhat.com>
12287
12288 * defs.h (deprecated_flush_hook): Remove.
12289
12290 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12291
12292 PR threads/16216
12293 * linux-thread-db.c (try_thread_db_load): Add parameter
12294 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12295 (try_thread_db_load_from_pdir_1): Move it there from here.
12296 (try_thread_db_load_from_sdir): Update caller.
12297 (try_thread_db_load_from_dir): Move it there from here.
12298
12299 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12300
12301 * regformats/regdat.sh: Always rewrite the register file.
12302
12303 2014-01-13 Pedro Alves <palves@redhat.com>
12304
12305 * Makefile.in (CHECK_HEADERS): New variable.
12306 (check-headers:): New rule.
12307
12308 2014-01-13 Tom Tromey <tromey@redhat.com>
12309
12310 * cli/cli-setshow.c (do_set_command): Update.
12311 * defs.h (deprecated_set_hook): Remove.
12312 * top.c (deprecated_set_hook): Remove.
12313
12314 2014-01-13 Pedro Alves <palves@redhat.com>
12315
12316 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12317 the tracepoint if the PC is a pseudo-register.
12318
12319 2014-01-13 Tom Tromey <tromey@redhat.com>
12320
12321 * defs.h (XCALLOC): Remove.
12322 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12323 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12324 * dwarf2loc.c (allocate_piece_closure): Likewise.
12325 * elfread.c (elf_symfile_segments): Likewise.
12326 (elf_symfile_segments): Likewise.
12327 * gdbtypes.c (copy_type_recursive): Likewise.
12328 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12329 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12330 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12331 XCALLOC.
12332 * mt-tdep.c (mt_gdbarch_init): Likewise.
12333 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12334 XCALLOC.
12335 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12336 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12337 * registry.c (registry_alloc_data): Likewise.
12338 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12339 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12340 * serial.c (serial_fdopen_ops): Likewise.
12341 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12342 XCALLOC.
12343 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12344 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12345 not XCALLOC.
12346
12347 2014-01-13 Tom Tromey <tromey@redhat.com>
12348
12349 * defs.h (XMALLOC): Remove.
12350 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12351 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12352 * cli-out.c (struct ui_out *): Likewise.
12353 * cli/cli-dump.c (add_dump_command): Likewise.
12354 (add_dump_command): Likewise.
12355 * complaints.c (get_complaints): Likewise.
12356 (find_complaint): Likewise.
12357 * dwarf2-frame.c (execute_cfa_program): Likewise.
12358 * dwarf2read.c (abbrev_table_read_table): Likewise.
12359 * gdbarch.sh: Likewise.
12360 * gdbarch.c: Rebuild.
12361 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12362 * interps.c (interp_new): Likewise.
12363 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12364 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12365 * mi/mi-console.c (mi_console_file_new): Likewise.
12366 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12367 * mi/mi-out.c (mi_out_new): Likewise.
12368 * mi/mi-parse.c (mi_parse): Likewise.
12369 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12370 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12371 * observer.c (xalloc_observer_list_node): Likewise.
12372 * regcache.c (regcache_xmalloc_1): Likewise.
12373 * reggroups.c (reggroup_new): Likewise.
12374 (_initialize_reggroup): Likewise.
12375 * registry.c (register_data_with_cleanup): Likewise.
12376 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12377 * ser-base.c (serial_ttystate): Likewise.
12378 * ser-mingw.c (make_pipe_state): Likewise.
12379 * ser-pipe.c (pipe_open): Likewise.
12380 * serial.c (serial_open): Likewise.
12381 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12382 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12383 (tui_alloc_win_info): Likewise.
12384 (tui_add_content_elements): Likewise.
12385 * tui/tui-file.c (tui_file_new): Likewise.
12386 * tui/tui-out.c (tui_out_new): Likewise.
12387 * ui-file.c (mem_file_new): Likewise.
12388 * ui-out.c (push_level): Likewise.
12389 (make_cleanup_ui_out_end): Likewise.
12390 (append_header_to_list): Likewise.
12391 (ui_out_new): Likewise.
12392 * user-regs.c (user_reg_add_builtin): Likewise.
12393
12394 2014-01-13 Tom Tromey <tromey@redhat.com>
12395
12396 * defs.h (XZALLOC): Remove.
12397 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12398 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12399 (get_ada_tasks_inferior_data): Likewise.
12400 * auto-load.c (get_auto_load_pspace_data): Likewise.
12401 * auxv.c (get_auxv_inferior_data): Likewise.
12402 * bfd-target.c (target_bfd_reopen): Likewise.
12403 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12404 (deprecated_insert_raw_breakpoint): Likewise.
12405 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12406 * corelow.c (core_open): Likewise.
12407 * darwin-nat.c (darwin_check_new_threads): Likewise.
12408 (darwin_attach_pid): Likewise.
12409 * dummy-frame.c (dummy_frame_push): Likewise.
12410 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12411 * dwarf2loc.c (allocate_piece_closure): Likewise.
12412 * elfread.c (elf_symfile_segments): Likewise.
12413 * eval.c (ptrmath_type_p): Likewise.
12414 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12415 * gdbtypes.c (alloc_type_arch): Likewise.
12416 (alloc_type_instance): Likewise.
12417 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12418 * inf-child.c (inf_child_can_use_agent): Likewise.
12419 * inflow.c (get_inflow_inferior_data): Likewise.
12420 * infrun.c (save_infcall_suspend_state): Likewise.
12421 * jit.c (jit_reader_load): Likewise.
12422 (get_jit_objfile_data): Likewise.
12423 (get_jit_program_space_data): Likewise.
12424 (jit_object_open_impl): Likewise.
12425 (jit_symtab_open_impl): Likewise.
12426 (jit_block_open_impl): Likewise.
12427 (jit_frame_sniffer): Likewise.
12428 * linux-fork.c (add_fork): Likewise.
12429 * maint.c (make_command_stats_cleanup): Likewise.
12430 * objfiles.c (get_objfile_pspace_data): Likewise.
12431 * opencl-lang.c (struct lval_closure): Likewise.
12432 * osdata.c (osdata_start_osdata): Likewise.
12433 * progspace.c (new_address_space): Likewise.
12434 (add_program_space): Likewise.
12435 * remote-sim.c (get_sim_inferior_data): Likewise.
12436 * sh-tdep.c (sh_gdbarch_init): Likewise.
12437 * skip.c (Ignore): Likewise.
12438 (skip_delete_command): Likewise.
12439 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12440 (library_list_start_library): Likewise.
12441 (solib_aix_current_sos): Likewise.
12442 * solib-darwin.c (get_darwin_info): Likewise.
12443 (darwin_current_sos): Likewise.
12444 * solib-dsbt.c (get_dsbt_info): Likewise.
12445 * solib-ia64-hpux.c (new_so_list): Likewise.
12446 (ia64_hpux_get_solib_linkage_addr): Likewise.
12447 * solib-spu.c (append_ocl_sos): Likewise.
12448 (spu_current_sos): Likewise.
12449 * solib-svr4.c (get_svr4_info): Likewise.
12450 (svr4_keep_data_in_core): Likewise.
12451 (library_list_start_library): Likewise.
12452 (svr4_default_sos): Likewise.
12453 (svr4_read_so_list): Likewise.
12454 * solib-target.c (library_list_start_library): Likewise.
12455 (solib_target_current_sos): Likewise.
12456 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12457 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12458 * symfile.c (default_symfile_segments): Likewise.
12459 * target-descriptions.c (tdesc_data_init): Likewise.
12460 (tdesc_create_reg): Likewise.
12461 (struct tdesc_type *): Likewise.
12462 (tdesc_create_vector): Likewise.
12463 (tdesc_set_struct_size): Likewise.
12464 (struct tdesc_type *): Likewise.
12465 (tdesc_free_feature): Likewise.
12466 (tdesc_create_feature): Likewise.
12467 * windows-nat.c (windows_add_thread): Likewise.
12468 (windows_make_so): Likewise.
12469 * xml-support.c (gdb_xml_body_text): Likewise.
12470 (gdb_xml_create_parser_and_cleanup): Likewise.
12471 (xml_process_xincludes): Likewise.
12472 * xml-syscall.c (allocate_syscalls_info): Likewise.
12473 (syscall_create_syscall_desc): Likewise.
12474
12475 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12476
12477 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12478 function, with code from i386_stap_parse_special_token.
12479 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12480 (i386_stap_parse_special_token): Move code to the two functions
12481 above; simplify it.
12482
12483 2014-01-09 Pedro Alves <palves@redhat.com>
12484 Hui Zhu <hui@codesourcery.com>
12485
12486 PR gdb/16101
12487 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12488 bp_err_string. Don't mark the location shlib_disabled if the
12489 error thrown wasn't a generic or memory error. Catch errors
12490 thrown while inserting breakpoints in overlayed code. Output
12491 error message of software breakpoints.
12492 * remote.c (remote_insert_breakpoint): If this breakpoint has
12493 target-side commands but this stub doesn't support Z0 packets,
12494 throw NOT_SUPPORTED_ERROR error.
12495 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12496 * target.h (target_insert_breakpoint): Extend comment.
12497 (target_insert_hw_breakpoint): Add comment.
12498
12499 2014-01-08 Pedro Alves <palves@redhat.com>
12500
12501 * remote.c (remote_add_thread): Add threads silently if starting
12502 up.
12503 (remote_notice_new_inferior): If in all-stop, and starting up,
12504 don't call notice_new_inferior.
12505 (get_current_thread): New function, factored out from ...
12506 (add_current_inferior_and_thread): ... this. Adjust.
12507 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12508 found any thread, then select the remote's current thread as GDB's
12509 current thread too.
12510
12511 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12512
12513 * NEWS: Create a new section for the next release branch.
12514 Rename the section of the current branch, now that it has
12515 been cut.
12516
12517 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12518
12519 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12520 * version.in: Bump version to 7.7.50.DATE-cvs.
12521
12522 2014-01-08 Yao Qi <yao@codesourcery.com>
12523
12524 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12525 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12526 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12527
12528 2014-01-08 Yao Qi <yao@codesourcery.com>
12529
12530 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12531 return value of bfd_get_filename to symbol_file_add_from_bfd.
12532
12533 2014-01-08 Pierre Muller <muller@sourceware.org>
12534
12535 Fix PR16201.
12536 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12537 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12538 to prim_record_mininal_symbol_and_info.
12539 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12540 in call to prim_record_minimal_symbol_and_info.
12541 (read_pe_exported_syms): Set index field of section_data.
12542
12543 2014-01-07 Andrew Pinski <apinski@cavium.com>
12544
12545 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12546 * features/aarch64.c: Regenerate.
12547
12548 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12549
12550 * target.c (return_null): Define.
12551 (update_current_target): Use it instead of return_zero for
12552 functions that return a pointer.
12553
12554 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12555
12556 * source.c (add_path): Fix check for duplicated paths in the previously
12557 included paths.
12558
12559 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12560
12561 * ada-lang.c: Remove duplicated include statements.
12562 * alphabsd-nat.c: Ditto.
12563 * amd64-darwin-tdep.c: Ditto.
12564 * amd64fbsd-nat.c: Ditto.
12565 * auto-load.c: Ditto.
12566 * ax-gdb.c: Ditto.
12567 * breakpoint.c: Ditto.
12568 * dbxread.c: Ditto.
12569 * fork-child.c: Ditto.
12570 * gdb_usleep.c: Ditto.
12571 * i386-darwin-tdep.c: Ditto.
12572 * i386fbsd-nat.c: Ditto.
12573 * infcmd.c: Ditto.
12574 * inferior.c: Ditto.
12575 * jv-lang.c: Ditto.
12576 * linux-nat.c: Ditto.
12577 * linux-tdep.c: Ditto.
12578 * m68kbsd-nat.c: Ditto.
12579 * m68klinux-nat.c: Ditto.
12580 * microblaze-tdep.c: Ditto.
12581 * mips-linux-tdep.c: Ditto.
12582 * mn10300-tdep.c: Ditto.
12583 * nto-tdep.c: Ditto.
12584 * opencl-lang.c: Ditto.
12585 * osdata.c: Ditto.
12586 * printcmd.c: Ditto.
12587 * regcache.c: Ditto.
12588 * remote-m32r-sdi.c: Ditto.
12589 * remote.c: Ditto.
12590 * symfile.c: Ditto.
12591 * symtab.c: Ditto.
12592 * tilegx-linux-nat.c: Ditto.
12593 * tilegx-tdep.c: Ditto.
12594 * tracepoint.c: Ditto.
12595 * valops.c: Ditto.
12596 * vaxbsd-nat.c: Ditto.
12597 * windows-nat.c: Ditto.
12598 * xtensa-tdep.c: Ditto.
12599
12600 2014-01-07 Yao Qi <yao@codesourcery.com>
12601
12602 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12603
12604 2014-01-07 Yao Qi <yao@codesourcery.com>
12605 Joel Brobecker <brobecker@adacore.com>
12606
12607 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12608 (pdc_write_regs): Likewise.
12609 (fetch_regs_kernel_thread): Likewise.
12610 (store_regs_kernel_thread): Likewise.
12611
12612 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12613
12614 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12615 tagged type objects to their actual type.
12616
12617 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12618
12619 * ada-valprint.c (print_field_values): Add "language" parameter.
12620 Update calls to print_field_values and print_variant_part.
12621 Pass new parameter "language" in call to val_print instead
12622 of "current_language". Replace call to ada_val_print by call
12623 to val_print.
12624 (print_variant_part): Add "language" parameter.
12625 (ada_val_print_struct_union): Update call to print_field_values.
12626
12627 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12628
12629 * ada-valprint.c (ui_memcpy): Delete.
12630 (ada_print_floating): Update documentation. Add empty line
12631 between between function documentation and implementation.
12632 Delete variable "buffer". Use ui_file_xstrdup in place of
12633 ui_file_put. Minor adjustments following this change.
12634
12635 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12636
12637 * ada-valprint.c (ada_val_print_string): New function,
12638 extracted from ada_val_print_array.
12639 (ada_val_print_array): Replace extracted code by call
12640 to ada_val_print_string followed by a return. Move
12641 "else" branch to the function's top block.
12642
12643 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12644
12645 * ada-valprint.c (ada_val_print_array): Move implementation
12646 down. Rename parameter "offset" and "val" into "offset_aligned"
12647 and "original_value" respectively. Add parameter "offset".
12648
12649 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12650
12651 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12652 re-organizing the code. Change the "???" message printed
12653 when target type is a TYPE_CODE_UNDEF into
12654 "<ref to undefined type>".
12655
12656 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12657
12658 * ada-valprint.c (print_record): Delete, implementation inlined...
12659 (ada_val_print_struct_union): ... here. Remove call to
12660 ada_check_typedef in inlined implementation.
12661
12662 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12663
12664 * ada-valprint.c (ada_val_print_gnat_array): New function,
12665 extracted from ada_val_print_1;
12666 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12667 (ada_val_print_flt, ada_val_print_struct_union)
12668 (ada_val_print_ref): Likewise.
12669 (ada_val_print_1): Delete variables i and elttype.
12670 Replace extracted-out code by call to corresponding
12671 new functions.
12672
12673 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12674
12675 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12676
12677 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12678
12679 * ada-valprint.c (ada_val_print_1): Replace calls to
12680 ada_val_print_1 by calls to val_print.
12681
12682 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12683
12684 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12685 Update calls to self accordingly. Replace calls to c_val_print
12686 by calls to val_print.
12687
12688 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12689
12690 * ada-valprint.c (print_record): Delete declaration.
12691 (adjust_type_signedness, ada_val_print_1): Likewise.
12692 (ada_val_print): Move function implementation down.
12693 (print_variant_part, print_field_values, print_record):
12694 Move function implementation up.
12695
12696 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12697
12698 * python/py-type.c (typy_get_name): New function.
12699 (type_object_getset): Add entry for attribute "name".
12700 * NEWS: Add entry mentioning this new attribute.
12701
12702 2014-01-07 Yao Qi <yao@codesourcery.com>
12703
12704 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12705 statement.
12706
12707 2014-01-07 Yao Qi <yao@codesourcery.com>
12708
12709 * gnu-nat.c (info_port_rights): Add qualifier const to
12710 argument args.
12711
12712 2014-01-07 Yao Qi <yao@codesourcery.com>
12713
12714 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12715
12716 2014-01-07 Yao Qi <yao@codesourcery.com>
12717
12718 * gnu-nat.c (make_inf) Update declaration.
12719 (make_inf): Make it static.
12720 (inf_set_traced): Likewise.
12721 (inf_port_to_thread, inf_task_died_status): Likewise.
12722
12723 2014-01-07 Yao Qi <yao@codesourcery.com>
12724
12725 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12726
12727 2014-01-07 Yao Qi <yao@codesourcery.com>
12728
12729 * gnu-nat.c (_initialize_gnu_nat): Declare.
12730
12731 2014-01-07 Yao Qi <yao@codesourcery.com>
12732
12733 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12734 'enum bfd_endian'.
12735 (struct gdbarch_info) <byte_order>: Change type to
12736 'enum bfd_endian'.
12737 <byte_order_for_code>: Likewise.
12738 * gdbarch.c, gdbarch.h: Regenerated.
12739
12740 2014-01-06 Sasha Smundak <asmundak@google.com>
12741
12742 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12743
12744 2014-01-06 Tom Tromey <tromey@redhat.com>
12745
12746 * doublest.c (convert_doublest_to_floatformat): Use const, not
12747 CONST.
12748 * somread.c (som_symtab_read): Likewise.
12749
12750 2014-01-07 Hui Zhu <hui@codesourcery.com>
12751
12752 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12753 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12754 (gdb_bfd_fopen): Ditto.
12755 (gdb_bfd_openr): Ditto.
12756 (gdb_bfd_openw): Ditto.
12757 (gdb_bfd_openr_iovec): Ditto.
12758 (gdb_bfd_fdopenr): Ditto.
12759 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12760 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12761 with xstrdup.
12762 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12763 with xstrdup.
12764 * symfile-mem.c (symbol_file_add_from_memory): Removed
12765 gdb_bfd_stash_filename.
12766
12767 2014-01-03 Doug Evans <dje@google.com>
12768
12769 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12770 output.
12771
12772 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12773
12774 Update year range in copyright notice of all files.
12775
12776 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12777
12778 * top.c (print_gdb_version): Set copyright year to 2014.
12779
12780 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12781
12782 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12783
12784 For older changes see ChangeLog-2013.
12785 \f
12786 Local Variables:
12787 mode: change-log
12788 left-margin: 8
12789 fill-column: 74
12790 version-control: never
12791 coding: utf-8
12792 End:
This page took 0.298318 seconds and 4 git commands to generate.