gdb/17347 - Regression: GDB stopped on run with attached process
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-11 Pedro Alves <palves@redhat.com>
2
3 PR gdb/17347
4 * main.c: Include "infrun.h".
5 (catch_command_errors, catch_command_errors_const): Wait for the
6 foreground command to complete.
7 * top.c (maybe_wait_sync_command_done): New function, factored out
8 from ...
9 (maybe_wait_sync_command_done): ... here.
10 * top.h (maybe_wait_sync_command_done): New declaration.
11
12 2014-09-11 Tom Tromey <tromey@redhat.com>
13 Gary Benson <gbenson@redhat.com>
14
15 * common/symbol.h: New file.
16 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
17 * minsyms.c (find_minimal_symbol_address): New function.
18 * common/agent.c: Include common/symbol.h.
19 [!GDBSERVER]: Don't include objfiles.h.
20 (agent_look_up_symbols): Use find_minimal_symbol_address.
21
22 2014-09-11 Gary Benson <gbenson@redhat.com>
23
24 * target/target.h (target_stop_ptid, target_continue_ptid):
25 Declare.
26 * target.c (target_stop_ptid, target_continue_ptid): New
27 functions.
28 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
29 (agent_run_command): Always use target_stop_ptid and
30 target_continue_ptid.
31
32 2014-09-11 Tom Tromey <tromey@redhat.com>
33 Gary Benson <gbenson@redhat.com>
34
35 * target/target.h: New file.
36 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
37 * target.h: Include target/target.h.
38 (target_read_memory, target_write_memory): Don't declare.
39 * target.c (target_read_uint32): New function.
40 * common/agent.c: Include target/target.h.
41 [!GDBSERVER]: Don't include target.h.
42 (helper_thread_id): Type changed to uint32_t.
43 (agent_get_helper_thread_id): Use target_read_uint32.
44 (agent_run_command): Always use target_read_memory and
45 target_write_memory.
46 (agent_capability): Type changed to uint32_t.
47 (agent_capability_check): Use target_read_uint32.
48
49 2014-09-11 Gary Benson <gbenson@redhat.com>
50
51 * common/common-debug.h (show_debug_regs): Declare.
52 * common/common-debug.c (show_debug_regs): Define.
53 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
54 all uses with show_debug_regs. Replace all uses that considered
55 debug_hw_points as a multi-value integer with straight boolean
56 uses.
57 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
58 with show_debug_regs.
59 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
60 all uses with show_debug_regs.
61 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
62 uses with show_debug_regs.
63
64 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
65
66 * findvar.c (address_from_register): Handle targets requiring
67 a special conversion routine even for plain pointer types.
68
69 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
70
71 * rs6000-nat.c (exec_one_dummy_insn): Remove.
72 (store_register): Do not call exec_one_dummy_insn.
73
74 2014-09-10 Joel Brobecker <brobecker@adacore.com>
75
76 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
77 dereference it first. Use value_enclosing_type instead of
78 value_type.
79 (ada_array_length): Likewise.
80
81 2014-09-10 Joel Brobecker <brobecker@adacore.com>
82
83 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
84 Adjust function implementation and documentation accordingly.
85 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
86 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
87 Update call to ada_value_ptr_subscript.
88
89 2014-09-10 Joel Brobecker <brobecker@adacore.com>
90
91 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
92 instead of VAL's type.
93
94 2014-09-10 Joel Brobecker <brobecker@adacore.com>
95
96 * amd64-linux-nat.c: Add <sys/uio.h> #include.
97
98 2014-09-09 Doug Evans <xdje42@gmail.com>
99
100 PR guile/17367
101 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
102 last parameter to pkg-config, not first.
103 * configure.ac: Pass --with-guile provided pkg-config path to
104 GDB_GUILE_PROGRAM_NAMES.
105 * configure: Regenerate.
106
107 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
108
109 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
110 Bertazi".
111
112 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
113
114 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
115 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
116 the list of sections determining GDB_OSABI_IRIX.
117
118 2014-09-09 James Hogan <james.hogan@imgtec.com>
119
120 * MAINTAINERS (Write After Approval): Add "James Hogan".
121
122 2014-09-09 James Hogan <james.hogan@imgtec.com>
123
124 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
125
126 2014-09-09 Joel Brobecker <brobecker@adacore.com>
127
128 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
129
130 2014-09-08 Doug Evans <xdje42@gmail.com>
131
132 PR 17247
133 * guile.c: #include <signal.h>.
134 (_initialize_guile): Block SIGCHLD while initializing Guile.
135
136 Replaces the following, which is reverted.
137
138 2014-07-26 Doug Evans <xdje42@gmail.com>
139
140 PR 17185
141 * configure.ac: Add check for header gc/gc.h.
142 Add check for function setenv.
143 * configure: Regenerate.
144 * config.in: Regenerate.
145 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
146
147 2014-09-08 Doug Evans <xdje42@gmail.com>
148
149 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
150 with named constant. Fix style of pointer comparison.
151 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
152
153 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
154
155 PR gdb/17035
156 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
157 decide whether we display the command on "show user".
158 * cli/cli-script.c (show_user_1): Only verify cmdlines after
159 printing command name.
160 * cli/cli-decode.h (cli_user_command_p): Declare new function.
161 * cli/cli-decode.c (cli_user_command_p): Create helper function
162 to verify whether cmd_list_element is a user-defined command.
163
164 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
165
166 PR python/17355
167 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
168 Fix goto out of TRY_CATCH.
169
170 2014-09-06 Doug Evans <xdje42@gmail.com>
171 Tom Tromey <tromey@redhat.com>
172
173 PR 15276
174 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
175 $_any_caller_matches.
176 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
177 * python/lib/gdb/function/caller_is.py: New file.
178
179 2014-09-06 Doug Evans <xdje42@gmail.com>
180
181 * infcmd.c (program_info): Fix typo.
182
183 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
184
185 PR gdb/17235
186 * stap-probe.c (stap_parse_single_operand): Delete unused variable
187 'number'. New variable 'has_digit'. Rewrite code to deal with
188 subexpressions on SDT probes.
189
190 2014-09-04 Pedro Alves <palves@redhat.com>
191
192 * c-exp.y (parse_number): Skip handling base-switching prefixes if
193 the input is only one character long.
194
195 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
196
197 PR fortran/17237
198 * f-valprint.c (f_val_print): Specify the correct print option to
199 use when printing integer values.
200
201 2014-09-04 Gary Benson <gbenson@redhat.com>
202
203 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
204 Remove code to cope with LWPs wrapped as PIDs.
205 Add assertions to ensure no wrapped LWPs are passed.
206
207 2014-09-04 Pedro Alves <palves@redhat.com>
208
209 * value.c (value_ranges_copy_adjusted): New function, factored out
210 from ...
211 (value_contents_copy_raw): ... here.
212 (unpack_value_bits_as_long_1): Rename back to ...
213 (unpack_bits_as_long): ... this. Remove 'original_value' and
214 'result' parameters. Change return type to LONGEST.
215 (unpack_value_bits_as_long): Delete.
216 (unpack_value_field_as_long_1): Delete.
217 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
218 (unpack_value_bitfield): New function.
219 (value_field_bitfield): Reimplement using unpack_value_bitfield.
220 (value_fetch_lazy): Use unpack_value_bitfield.
221 * value.h (unpack_value_bits_as_long): Delete declaration.
222
223 2014-09-03 Sasha Smundak <asmundak@google.com>
224
225 * python/py-frame.c (frapy_read_register): New function.
226
227 2014-09-03 James Hogan <james.hogan@imgtec.com>
228
229 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
230 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
231
232 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
233
234 PR python/16699
235 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
236 function.
237 (add_cmd): Set "completer_handle_brkchars" to NULL.
238 * cli/cli-decode.h (struct cmd_list_element)
239 <completer_handle_brkchars>: New field.
240 * command.h (completer_ftype_void): New typedef.
241 (set_cmd_completer_handle_brkchars): New prototype.
242 * completer.c (set_gdb_completion_word_break_characters): New
243 function.
244 (complete_line_internal): Call "completer_handle_brkchars"
245 callback from command.
246 * completer.h: Include "command.h".
247 (set_gdb_completion_word_break_characters): New prototype.
248 * python/py-cmd.c (cmdpy_completer_helper): New function.
249 (cmdpy_completer_handle_brkchars): New function.
250 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
251 (cmdpy_init): Set completer_handle_brkchars to
252 cmdpy_completer_handle_brkchars.
253
254 2014-09-03 Gary Benson <gbenson@redhat.com>
255
256 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
257 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
258 Loop conditions changed to equivalent form.
259 (struct x86_debug_reg_state): Updated dr_ref_count comment.
260 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
261 ALL_DEBUG_ADDRESS_REGISTERS.
262
263 2014-09-03 Joel Brobecker <brobecker@adacore.com>
264
265 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
266 description fix.
267
268 2014-09-02 Doug Evans <dje@google.com>
269
270 * typeprint.c (find_global_typedef): Fix comment.
271
272 2014-09-02 Gary Benson <gbenson@redhat.com>
273
274 * i386-nat.h: Renamed as...
275 * x86-nat.h: New file. All type, function and variable name
276 prefixes changed from "i386_" to "x86_". All references updated.
277 * i386-nat.c: Renamed as...
278 * x86-nat.c: New file. All type, function and variable name
279 prefixes changed from "i386_" to "x86_". All references updated.
280 * common/i386-xstate.h: Renamed as...
281 * common/x86-xstate.h: New file. All type, function and variable
282 name prefixes changed from "i386_" to "x86_". All references
283 updated.
284 * nat/i386-cpuid.h: Renamed as...
285 * nat/x86-cpuid.h: New file. All type, function and variable name
286 prefixes changed from "i386_" to "x86_". All references updated.
287 * nat/i386-gcc-cpuid.h: Renamed as...
288 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
289 name prefixes changed from "i386_" to "x86_". All references
290 updated.
291 * nat/i386-dregs.h: Renamed as...
292 * nat/x86-dregs.h: New file. All type, function and variable name
293 prefixes changed from "i386_" to "x86_". All references updated.
294 * nat/i386-dregs.c: Renamed as...
295 * nat/x86-dregs.c: New file. All type, function and variable name
296 prefixes changed from "i386_" to "x86_". All references updated.
297
298 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
299
300 * varobj.c (_initialize_varobj): Move to the end of file.
301
302 2014-08-29 Gary Benson <gbenson@redhat.com>
303
304 * common/common-exceptions.h: New file.
305 * common/common-exceptions.c: Likewise.
306 * Makefile.in (SFILES): Add common/common-exceptions.c.
307 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
308 (COMMON_OBS): Add common-exceptions.o.
309 (common-exceptions.o): New rule.
310 * exceptions.h (common-exceptions.h): Include.
311 (gdb_setjmp.h): Do not include.
312 (return_reason): Moved to common-exceptions.h.
313 (enum return_reason): Likewise.
314 (RETURN_MASK): Likewise.
315 (typedef return_mask): Likewise.
316 (enum errors): Likewise.
317 (struct gdb_exception): Likewise.
318 (exceptions_state_mc_init): Likewise.
319 (exceptions_state_mc_action_iter): Likewise.
320 (exceptions_state_mc_action_iter_1): Likewise.
321 (TRY_CATCH): Likewise.
322 (throw_exception): Likewise.
323 (throw_verror): Likewise.
324 (throw_vquit): Likewise.
325 (throw_error): Likewise.
326 (throw_quit): Likewise.
327 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
328 (enum catcher_action): Likewise.
329 (struct catcher): Likewise.
330 (current_catcher): Likewise.
331 (catcher_list_size): Likewise.
332 (exceptions_state_mc_init): Likewise.
333 (catcher_pop): Likewise.
334 (exceptions_state_mc): Likewise.
335 (exceptions_state_mc_action_iter): Likewise.
336 (exceptions_state_mc_action_iter_1): Likewise.
337 (throw_exception): Likewise.
338 (exception_messages): Likewise.
339 (exception_messages_size): Likewise.
340 (throw_it): Likewise.
341 (throw_verror): Likewise.
342 (throw_vquit): Likewise.
343 (throw_error): Likewise.
344 (throw_quit): Likewise.
345 (prepare_to_throw_exception): New function.
346
347 2014-08-29 Gary Benson <gbenson@redhat.com>
348
349 * common/gdb_setjmp.h: New file.
350 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
351 * configure.ac: Move sigsetjmp check...
352 * common/common.m4: ...here.
353 * configure: Regenerate.
354 * cp-support.c (SIGJMP_BUF): Delete.
355 (SIGSETJMP): Likewise.
356 (SIGLONGJMP): Likewise.
357 * exceptions.h (gdb_setjmp.h): Include.
358 (setjmp.h): Do not include.
359 (EXCEPTIONS_SIGJMP_BUF): Delete.
360 (EXCEPTIONS_SIGSETJMP): Likewise.
361 (EXCEPTIONS_SIGLONGJMP): Likewise.
362 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
363 from gdb_setjmp.h.
364 * exceptions.c: Likewise.
365
366 2014-08-29 Gary Benson <gbenson@redhat.com>
367
368 * cleanups.h: Moved to...
369 * common/cleanups.h: New file.
370 * cleanups.c: Moved to...
371 * common/cleanups.c: New file. Include common-defs.h and
372 cleanups.h. Do not include defs.h.
373 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
374 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
375 (cleanups.o): New rule.
376
377 2014-08-29 Gary Benson <gbenson@redhat.com>
378
379 * common/errors.h (internal_warning): New declaration.
380 (internal_vwarning): Likewise.
381 * common/errors.c (internal_warning): New function.
382 * utils.h (internal_warning): Don't declare.
383 (internal_vwarning): Likewise.
384 * utils.c (internal_warning): Removed.
385
386 2014-08-29 Gary Benson <gbenson@redhat.com>
387
388 * main.c (captured_main): Use warning during startup.
389 Prefix startup warning messages with command name.
390
391 2014-08-29 Gary Benson <gbenson@redhat.com>
392
393 * main.c (captured_main): Handle usage errors with error.
394
395 2014-08-29 Gary Benson <gbenson@redhat.com>
396
397 * go32-nat.c (go32_create_inferior): Replace a fprintf/
398 exit pair with a call to error. Wrap the message with _().
399
400 2014-08-29 Gary Benson <gbenson@redhat.com>
401
402 * main.c (captured_main): Replace a fprintf/exit
403 pair with a call to error. Wrap the message with _().
404
405 2014-08-29 Gary Benson <gbenson@redhat.com>
406
407 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
408 pairs with calls to error. Wrap the message with _().
409
410 2014-08-29 Gary Benson <gbenson@redhat.com>
411
412 * utils.c (vwarning): Protect calls to target_terminal_ours
413 and wrap_here.
414
415 2014-08-29 Gary Benson <gbenson@redhat.com>
416
417 * exceptions.c (print_flush): Protect calls to
418 target_terminal_ours and wrap_here.
419
420 2014-08-29 Gary Benson <gbenson@redhat.com>
421
422 * utils.h (filtered_printing_initialized): New declaration.
423 * utils.c (abort_with_message): New function.
424 (internal_vproblem): Use abort_with_message for first level
425 recursive internal problems, and if gdb_stderr is not set up.
426 Protect calls to target_terminal_ours, begin_line and query.
427
428 2014-08-28 Doug Evans <dje@google.com>
429
430 * symtab.c (in_prologue): Move definition to better spot.
431 (skip_prologue_using_sal): Ditto.
432
433 2014-08-28 Doug Evans <dje@google.com>
434
435 * symtab.c (find_function_start_sal): Move definition to better spot.
436
437 2014-08-28 Yao Qi <yao@codesourcery.com>
438
439 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
440 found_stack_adjust in forward scan. Remove condition check
441 on found_stack_adjust which is always true. Indent the code.
442
443 2014-08-28 Yao Qi <yao@codesourcery.com>
444
445 * dwarf2read.c (dwarf_decode_lines): Update declaration.
446 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
447 (dwarf_decode_lines): Remove argument
448 want_line_info. Remove condition check on want_line_info.
449 Callers update.
450
451 2014-08-27 Doug Evans <dje@google.com>
452
453 * dwarf2read.c (dwarf_record_line): Fix typo.
454
455 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
456
457 * target.h (struct target_ops::to_terminal_save_ours): Remove
458 declaration.
459 (target_terminal_save_ours): Remove macro.
460 * target-delegates.c: Regenerate.
461 * inf-child.c (inf_child_target): Don't set the nonexistent
462 field to_terminal_save_ours.
463 * inferior.h (child_terminal_save_ours): Remove declaration.
464 * terminal.h (gdb_save_tty_state): New declaration.
465 * inflow.c (child_terminal_save_ours): Rename to ...
466 (gdb_save_tty_state): ... this.
467 * tui/tui.c: Include terminal.h.
468 (tui_enable): Use gdb_save_tty_state instead of
469 target_terminal_save_ours.
470 (tui_disable): Likewise.
471
472 2014-08-25 Doug Evans <dje@google.com>
473
474 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
475 Pass NULL instead of 0 for context pointer.
476
477 2014-08-25 Yao Qi <yao@codesourcery.com>
478
479 * dwarf2read.c: Fix grammatical error.
480
481 2014-08-24 Yao Qi <yao@codesourcery.com>
482
483 * dwarf2read.c (scan_partial_symbols): Update comments.
484 Rename argument 'need_pc' with 'set_addrmap'.
485 (add_partial_namespace): Rename argument 'need_pc' with
486 'set_addrmap'.
487 (add_partial_module): Likewise.
488 (add_partial_subprogram): Likewise. Update comments.
489 (dwarf2_name): Fix typo.
490
491 2014-08-22 Doug Evans <dje@google.com>
492
493 PR 17276
494 * dwarf2read.c (dwarf_record_line_p): New function.
495 (dwarf_decode_lines_1): Ignore subsequent line number entries
496 for the same line if any entry had a non-zero discriminator.
497
498 2014-08-22 Doug Evans <dje@google.com>
499
500 * buildsym.h (record_line_ftype): New typedef.
501 (record_line): Use it.
502 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
503 (dwarf_decode_lines_1): Call them.
504
505 2014-08-22 Yao Qi <yao@codesourcery.com>
506
507 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
508 (ctf_end): Remove code.
509
510 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
511
512 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
513 (linux_make_corefile_notes): call update_thread_list, protected against
514 exceptions.
515
516 2014-08-21 Pedro Alves <palves@redhat.com>
517
518 * infcmd.c (attach_command): Remove comment.
519
520 2014-08-21 Bin Cheng <bin.cheng@arm.com>
521
522 * aarch64-linux-nat.c (dr_changed_t): Change the type from
523 unsigned LONGEST to ULONGEST.
524
525 2014-08-20 Pedro Alves <palves@redhat.com>
526
527 * Makefile.in (check-read1): New rule.
528
529 2014-08-20 Joel Brobecker <brobecker@adacore.com>
530
531 * value.c (value_from_contents_and_address): Strip resolved_type's
532 typedef layers before checking its TYPE_DATA_LOCATION.
533
534 2014-08-20 Pedro Alves <palves@redhat.com>
535
536 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
537
538 2014-08-20 Yao Qi <yao@codesourcery.com>
539
540 * amd64-tdep.c (amd64_classify): Add a blank line after the
541 example. Move "*/" to a new line.
542 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
543 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
544 * dwarf2read.c (psymtab_include_file_name): Likewise.
545
546 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
547 Pedro Alves <palves@redhat.com>
548
549 PR symtab/14604
550 PR symtab/14605
551 * ada-lang.c (coerce_unspec_val_to_type): Use
552 value_contents_copy_raw.
553 * ada-valprint.c (val_print_packed_array_elements): Adjust.
554 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
555 * cp-valprint.c (cp_print_value_fields): Let the common printing
556 code handle optimized out values.
557 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
558 * d-valprint.c (dynamic_array_type): Use
559 value_bits_any_optimized_out.
560 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
561 check_any_valid fields.
562 (check_pieced_value_bits): Delete and inline ...
563 (check_pieced_synthetic_pointer): ... here.
564 (check_pieced_value_validity): Delete.
565 (check_pieced_value_invalid): Delete.
566 (pieced_value_funcs): Remove check_validity and check_any_valid
567 fields.
568 (read_pieced_value): Use mark_value_bits_optimized_out.
569 (write_pieced_value): Switch to use
570 mark_value_bytes_optimized_out.
571 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
572 of assuming the whole value is optimized out.
573 * findvar.c (read_frame_register_value): Remove special handling
574 of optimized out registers.
575 (value_from_register): Use mark_value_bytes_optimized_out.
576 * frame-unwind.c (frame_unwind_got_optimized): Use
577 mark_value_bytes_optimized_out.
578 * jv-valprint.c (java_value_print): Adjust.
579 (java_print_value_fields): Let the common printing code handle
580 optimized out values.
581 * mips-tdep.c (mips_print_register): Remove special handling of
582 optimized out registers.
583 * opencl-lang.c (lval_func_check_validity): Delete.
584 (lval_func_check_any_valid): Delete.
585 (opencl_value_funcs): Remove check_validity and check_any_valid
586 fields.
587 * p-valprint.c (pascal_object_print_value_fields): Let the common
588 printing code handle optimized out values.
589 * stack.c (read_frame_arg): Remove special handling of optimized
590 out values. Fetch both VAL and ENTRYVAL before comparing
591 contents. Adjust to value_available_contents_eq rename.
592 * valprint.c (valprint_check_validity)
593 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
594 (val_print_array_elements): Adjust.
595 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
596 (value_bits_any_optimized_out): New function.
597 (value_entirely_covered_by_range_vector): New function, factored
598 out from value_entirely_unavailable.
599 (value_entirely_unavailable): Reimplement.
600 (value_entirely_optimized_out): New function.
601 (insert_into_bit_range_vector): New function, factored out from
602 mark_value_bits_unavailable.
603 (mark_value_bits_unavailable): Reimplement.
604 (struct ranges_and_idx): New struct.
605 (find_first_range_overlap_and_match): New function, factored out
606 from value_available_contents_bits_eq.
607 (value_available_contents_bits_eq): Rename to ...
608 (value_contents_bits_eq): ... this. Check both unavailable
609 contents and optimized out contents.
610 (value_available_contents_eq): Rename to ...
611 (value_contents_eq): ... this.
612 (allocate_value_lazy): Remove reference to the old optimized_out
613 boolean.
614 (allocate_optimized_out_value): Use
615 mark_value_bytes_optimized_out.
616 (require_not_optimized_out): Adjust to check whether the
617 optimized_out vec is empty.
618 (ranges_copy_adjusted): New function, factored out from
619 value_contents_copy_raw.
620 (value_contents_copy_raw): Also copy the optimized out ranges.
621 Assert the destination ranges aren't optimized out.
622 (value_contents_copy): Update comment, remove call to
623 require_not_optimized_out.
624 (value_contents_equal): Adjust to check whether the optimized_out
625 vec is empty.
626 (set_value_optimized_out, value_optimized_out_const): Delete.
627 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
628 New functions.
629 (value_entirely_optimized_out, value_bits_valid): Delete.
630 (value_copy): Take a VEC copy of the 'optimized_out' field.
631 (value_primitive_field): Remove special handling of optimized out.
632 (value_fetch_lazy): Assert that lazy values have no unavailable
633 regions. Use value_bits_any_optimized_out. Remove some special
634 handling for optimized out values.
635 * value.h: Add intro comment about <optimized out> and
636 <unavailable>.
637 (struct lval_funcs): Remove check_validity and check_any_valid
638 fields.
639 (set_value_optimized_out, value_optimized_out_const): Remove.
640 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
641 New declarations.
642 (value_bits_any_optimized_out): New declaration.
643 (value_bits_valid): Delete declaration.
644 (value_available_contents_eq): Rename to ...
645 (value_contents_eq): ... this, and extend comments.
646
647 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
648
649 Fix -fsanitize=address on unreadable inferior strings.
650 * valprint.c (val_print_string): Fix access before BUFFER.
651
652 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
653
654 * target.c (target_struct_size): Remove.
655 (target_struct_allocsize): Remove.
656 (DEFAULT_ALLOCSIZE): Remove.
657 (target_ops_p): New typedef.
658 (DEF_VEC_P (target_ops_p)): New vector type.
659 (target_structs): Change type to VEC (target_ops_p).
660 (add_target_with_completer): Replace "push" code by VEC_safe_push.
661 (find_default_run_target): Rewrite for loop following changes to
662 target_structs.
663
664 2014-08-19 Joel Brobecker <brobecker@adacore.com>
665
666 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
667 Adjust code accordingly. Adjust function description comment.
668
669 2014-08-19 Yao Qi <yao@codesourcery.com>
670
671 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
672 types.
673
674 2014-08-19 Alan Modra <amodra@gmail.com>
675
676 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
677 * config.in: Regenerate.
678 * configure: Regenerate.
679
680 2014-08-19 Tom Tromey <tromey@redhat.com>
681 Gary Benson <gbenson@redhat.com>
682
683 * common/common-debug.h: New file.
684 * common/common-debug.c: Likewise.
685 * debug.c: Likewise.
686 * Makefile.in (SFILES): Add common/common-debug.c.
687 (HFILES_NO_SRCDIR): Add common/common-debug.h.
688 (COMMON_OBS): Add common-debug.o and debug.o.
689 (common-debug.o): New rule.
690 * common/common-defs.h: Include common-debug.h.
691 * common/agent.c (debug_agent_printf): New function.
692 (DEBUG_AGENT): Redefine.
693 * nat/i386-dregs.c (debug_printf): Undefine.
694
695 2014-08-19 Gary Benson <gbenson@redhat.com>
696
697 * common/common-defs.h: Include print-utils.h.
698 * utils.h: Do not include print-utils.h.
699
700 2014-08-19 Tom Tromey <tromey@redhat.com>
701 Gary Benson <gbenson@redhat.com>
702
703 * common/common-types.h: New file.
704 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
705 * common/common-defs.h: Include common-types.h.
706 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
707 (ULONGEST): Remove.
708
709 2014-08-19 Tom Tromey <tromey@redhat.com>
710 Gary Benson <gbenson@redhat.com>
711
712 * common/errors.h: New file.
713 * common/errors.c: Likewise.
714 * Makefile.in (SFILES): Add common/errors.c.
715 (HFILES_NO_SRCDIR): Add common/errors.h.
716 (COMMON_OBS): Add errors.o.
717 (errors.o): New rule.
718 * common/common-defs.h: Include errors.h.
719 * utils.h (perror_with_name, error, verror, warning, vwarning):
720 Don't declare.
721 * common/common-utils.h: (malloc_failure, internal_error):
722 Likewise.
723
724 2014-08-19 Gary Benson <gbenson@redhat.com>
725
726 * utils.c (internal_vproblem): Always print the message.
727
728 2014-08-18 Doug Evans <dje@google.com>
729
730 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
731
732 2014-08-18 Joel Brobecker <brobecker@adacore.com>
733
734 * ada-typeprint.c (type_is_full_subrange_of_target_type):
735 Return 0 if TYPE is dynamic.
736 (print_range): Add handling of dynamic ranges.
737
738 2014-08-18 Keven Boell <keven.boell@intel.com>
739 Joel Brobecker <brobecker@adacore.com>
740
741 * gdbtypes.h (struct main_type): Add field "data_location".
742 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
743 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
744 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
745 a dynamic data location.
746 (resolve_dynamic_type): Add DW_AT_data_location handling.
747 (copy_recursive, copy_type): Copy the data_location information
748 when present.
749 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
750 * value.c (value_from_contents_and_address): Add
751 DW_AT_data_location handling.
752
753 2014-08-18 Keven Boell <keven.boell@intel.com>
754 Joel Brobecker <brobecker@adacore.com>
755
756 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
757 field "get_object_address".
758 * dwarf2expr.c (execute_stack_op): Add handling for
759 DW_OP_push_object_address.
760 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
761 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
762 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
763 (dwarf_expr_get_obj_addr): New function.
764 (dwarf_expr_ctx_funcs): Add get_object_address field.
765 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
766 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
767 (dwarf2_evaluate_property): Add parameter "address". Use it.
768 (needs_get_obj_addr): New function.
769 (needs_frame_ctx_funcs): Add get_object_address field.
770 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
771 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
772 (resolve_dynamic_array): Likewise.
773
774 2014-08-18 Joel Brobecker <brobecker@adacore.com>
775
776 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
777 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
778 fixed value for records and unions for which some GNAT encodings
779 are present.
780
781 2014-08-18 Joel Brobecker <brobecker@adacore.com>
782
783 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
784 rewrite to avoid "else if" and "else" constructs. Should be
785 a no-op in practice.
786
787 2014-08-18 Joel Brobecker <brobecker@adacore.com>
788
789 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
790 of lexical block.
791
792 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
793
794 PR c++/17132
795 * eval.c: Update all calls to find_overload_match.
796 * valarith.c: Likewise.
797 (value_user_defined_cpp_op, value_user_defined_op): New
798 argument NOSIDE. Update all callers.
799 * valops.c (find_overload_match): New argument NOSIDE.
800 * value.h (find_overload_match): Update signature.
801
802 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
803
804 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
805 'items' methods instead of 'iteritems' method on dictionaries.
806
807 2014-08-15 Doug Evans <dje@google.com>
808
809 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
810 closer to use.
811
812 2014-08-15 Doug Evans <dje@google.com>
813
814 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
815
816 2014-08-15 Doug Evans <dje@google.com>
817
818 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
819
820 2014-08-15 Doug Evans <dje@google.com>
821
822 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
823 unused.
824
825 2014-08-15 Eli Zaretskii <eliz@gnu.org>
826
827 * dcache.h: Include target.h, to avoid compile time warnings.
828
829 2014-08-15 Joel Brobecker <brobecker@adacore.com>
830
831 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
832 frame_info" partial declaration.
833 * gdbarch.h: Regenerate.
834
835 2014-08-15 Yao Qi <yao@codesourcery.com>
836
837 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
838 Add parameter 'decode_for_pst_p'. Callers update.
839
840 2014-08-13 Yao Qi <yao@codesourcery.com>
841
842 PR build/17104
843 * configure.ac: Use local variable 'pos'.
844 * configure: Regenerated.
845
846 2014-08-11 Doug Evans <dje@google.com>
847
848 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
849 message, it is redundant with "Reading symbols from ..." message.
850
851 2014-08-10 Doug Evans <xdje42@gmail.com>
852
853 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
854
855 2014-08-09 Yao Qi <yao@codesourcery.com>
856
857 PR remote/9053
858 * remote.c (remote_xfer_partial): Remove dead code.
859
860 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
861
862 * ia64-linux-tdep.c: Include "regset.h".
863 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
864 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
865 (ia64_linux_supply_fpregset): New function.
866 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
867 (ia64_linux_regset_from_core_section): New function.
868 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
869 method.
870
871 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
872
873 * m68klinux-tdep.c: Include "regset.h".
874 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
875 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
876 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
877 (m68k_linux_regset_from_core_section): New function.
878 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
879 method.
880
881 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
882
883 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
884 function. Move logic to...
885 (tilegx_linux_regmap): ... this new register map.
886 (tilegx_linux_regset): Refer to register map, replace supply
887 method by regcache_supply_regset, and add collect method.
888 * tilegx-tdep.h (enum tilegx_regnum): New enum value
889 TILEGX_FIRST_EASY_REGNUM.
890
891 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
892
893 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
894 that calls regcache_supply_regset and handles the EPC register
895 separately. Move main logic to...
896 (score7_linux_gregmap): ... this new register map.
897 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
898 (score7_linux_gregset): Refer to register map. Add collect method.
899 (score7_linux_regset_from_core_section): Replace
900 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
901 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
902 (struct regset): Delete unused forward declaraction.
903 (struct pt_regs): Delete structure definition.
904 (elf_gregset_t): Delete typedef.
905
906 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
907
908 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
909 (nios2_core_regset): Add collect method.
910
911 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
912
913 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
914 platform-independent and don't write to read-only input buffer.
915 (m32r_linux_collect_gregset): New function.
916 (m32r_linux_gregset): Add collect method.
917
918 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
919
920 * hppa-linux-tdep.c (greg_map): Rename to...
921 (hppa_linux_gregmap): ... this. Also convert to
922 regcache_map_entry format.
923 (hppa_linux_supply_regset): Delete function.
924 (hppa_linux_supply_fpregset): Delete function. Move logic to...
925 (hppa_linux_fpregmap): ... this new register map.
926 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
927 register map, replace supply method by regcache_supply_regset, and
928 add collect method regcache_collect_regset.
929
930 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
931
932 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
933 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
934 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
935 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
936 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
937 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
938 (frv_linux_supply_gregset): Replace main logic by call to
939 regcache_supply_regset, but keep clearing gr32-gr63.
940 (frv_linux_supply_fpregset): Delete function.
941 (frv_linux_gregset): Refer to appropriate register map and add
942 regcache_collect_regset as the collect method.
943 (frv_linux_fpregset): Likewise. Also exchange the supply method
944 by regcache_supply_regset.
945
946 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
947
948 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
949 by call to alpha_supply_int_regs.
950 (alpha_linux_collect_gregset): New function.
951 (alpha_linux_supply_fpregset): Replace logic by call to
952 alpha_supply_fp_regs.
953 (alpha_linux_collect_fpregset): New function.
954 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
955
956 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
957
958 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
959 by call to regcache_collect_regset.
960 (supply_gregset, supply_fpregset): Call regcache_supply_regset
961 instead of aarch64_linux_supply_gregset/_fpregset.
962 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
963 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
964 header file instead.
965 (aarch64_linux_supply_gregset, supply_gregset_from_core)
966 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
967 functions. Move logic to ...
968 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
969 register maps.
970 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
971 refer to new register maps, replace *_regset_from_core by
972 regcache_supply_regset, and also use regcache_collect_regset.
973 * aarch64-linux-tdep.h: Include "regset.h".
974 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
975 Delete prototypes.
976 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
977 macros, moved from C source file.
978 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
979 variable declarations.
980
981 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
982
983 * s390-linux-nat.c: Include "regset.h".
984 (regmap_gregset): Delete macro.
985 (s390_64_regmap_gregset): New register map for
986 regcache_supply/_collect_regset.
987 (s390_64_gregset): New regset.
988 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
989 (regmap_fpregset): Delete macro.
990 (s390_native_supply, s390_native_collect): Delete functions.
991 (supply_gregset, fill_gregset): Replace s390-specific regmap
992 handling by a call to regcache_supply/_collect_regset.
993 (supply_fpregset, fill_fpregset): Call regcache_supply/
994 _collect_regset instead of s390_native_supply/_collect.
995 (fetch_regset, store_regset): Likewise. Also change the last
996 parameter to a regset instead of a regmap.
997 (s390_linux_fetch_inferior_registers)
998 (390_linux_store_inferior_registers): Adjust last parameter in
999 calls to fetch_regset and store_regset.
1000 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1001 (s390_gregmap): ... this. Also make static const and convert to
1002 regcache_map_entry format.
1003 (s390x_regmap_gregset): Delete.
1004 (s390_regmap_fpregset): Rename to...
1005 (s390_fpregmap): ... this. Make static const and convert to
1006 regcache_map_entry format.
1007 (s390_regmap_upper, s390_regmap_last_break)
1008 (s390x_regmap_last_break, s390_regmap_system_call)
1009 (s390_regmap_tdb): Likewise.
1010 (s390_supply_regset, s390_collect_regset): Remove functions.
1011 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1012 s390_supply_regset.
1013 (s390_gregset, s390_fpregset, s390_upper_regset)
1014 (s390_last_break_regset, s390x_last_break_regset)
1015 (s390_system_call_regset, s390_tdb_regset): Make global and
1016 replace s390_supply/_collect_regset by regcache_supply/
1017 _collect_regset.
1018 (s390x_gregset): Delete.
1019 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1020 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1021 (s390_regmap_fpregset, s390_regmap_last_break)
1022 (s390x_regmap_last_break, s390_regmap_system_call)
1023 (s390_regmap_tdb): Delete global variable declarations.
1024 (s390_gregset, s390_fpregset, s390_last_break_regset)
1025 (s390x_last_break_regset, s390_system_call_regset)
1026 (s390_tdb_regset): New global variable declarations.
1027
1028 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1029
1030 * regcache.c: Include "regset.h".
1031 (regcache_transfer_regset): New local function.
1032 (regcache_supply_regset, regcache_collect_regset): New functions.
1033 * regcache.h (struct regcache_map_entry): New structure.
1034 (REGCACHE_MAP_SKIP): New enum value.
1035 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1036
1037 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1038
1039 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1040 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1041 (ppc_linux_collect_gregset ): Likewise.
1042 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1043 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1044 (ppc_collect_vrregset): Likewise.
1045 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1046 Likewise.
1047
1048 2014-08-07 Yao Qi <yao@codesourcery.com>
1049
1050 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1051 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1052 * remote.c (remote_read_bytes): Likewise.
1053
1054 2014-08-07 Yao Qi <yao@codesourcery.com>
1055
1056 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1057
1058 2014-08-07 Yao Qi <yao@codesourcery.com>
1059
1060 PR remote/17230
1061 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1062 TARGET_XFER_OK instead of 0.
1063
1064 2014-08-07 Gary Benson <gbenson@redhat.com>
1065
1066 * common/common-defs.h: Include errno.h.
1067 * defs.h: Do not include errno.h.
1068 * ada-typeprint.c: Likewise.
1069 * c-typeprint.c: Likewise.
1070 * core-regset.c: Likewise.
1071 * corefile.c: Likewise.
1072 * corelow.c: Likewise.
1073 * event-loop.c: Likewise.
1074 * f-typeprint.c: Likewise.
1075 * gnu-nat.c: Likewise.
1076 * go32-nat.c: Likewise.
1077 * i386gnu-nat.c: Likewise.
1078 * m2-typeprint.c: Likewise.
1079 * nat/linux-btrace.c: Likewise.
1080 * p-typeprint.c: Likewise.
1081 * procfs.c: Likewise.
1082 * remote-sim.c: Likewise.
1083 * rs6000-nat.c: Likewise.
1084 * target.c: Likewise.
1085 * typeprint.c: Likewise.
1086 * ui-file.c: Likewise.
1087 * valops.c: Likewise.
1088 * valprint.c: Likewise.
1089
1090 2014-08-07 Gary Benson <gbenson@redhat.com>
1091
1092 * common/common-defs.h: Include string.h.
1093 * aarch64-tdep.c: Do not include string.h.
1094 * ada-exp.y: Likewise.
1095 * ada-lang.c: Likewise.
1096 * ada-lex.l: Likewise.
1097 * ada-typeprint.c: Likewise.
1098 * ada-valprint.c: Likewise.
1099 * aix-thread.c: Likewise.
1100 * alpha-linux-tdep.c: Likewise.
1101 * alpha-mdebug-tdep.c: Likewise.
1102 * alpha-nat.c: Likewise.
1103 * alpha-osf1-tdep.c: Likewise.
1104 * alpha-tdep.c: Likewise.
1105 * alphanbsd-tdep.c: Likewise.
1106 * amd64-dicos-tdep.c: Likewise.
1107 * amd64-linux-tdep.c: Likewise.
1108 * amd64-nat.c: Likewise.
1109 * amd64-sol2-tdep.c: Likewise.
1110 * amd64fbsd-tdep.c: Likewise.
1111 * amd64obsd-tdep.c: Likewise.
1112 * arch-utils.c: Likewise.
1113 * arm-linux-nat.c: Likewise.
1114 * arm-linux-tdep.c: Likewise.
1115 * arm-tdep.c: Likewise.
1116 * arm-wince-tdep.c: Likewise.
1117 * armbsd-tdep.c: Likewise.
1118 * armnbsd-nat.c: Likewise.
1119 * armnbsd-tdep.c: Likewise.
1120 * armobsd-tdep.c: Likewise.
1121 * avr-tdep.c: Likewise.
1122 * ax-gdb.c: Likewise.
1123 * ax-general.c: Likewise.
1124 * bcache.c: Likewise.
1125 * bfin-tdep.c: Likewise.
1126 * breakpoint.c: Likewise.
1127 * build-id.c: Likewise.
1128 * buildsym.c: Likewise.
1129 * c-exp.y: Likewise.
1130 * c-lang.c: Likewise.
1131 * c-typeprint.c: Likewise.
1132 * c-valprint.c: Likewise.
1133 * charset.c: Likewise.
1134 * cli-out.c: Likewise.
1135 * cli/cli-cmds.c: Likewise.
1136 * cli/cli-decode.c: Likewise.
1137 * cli/cli-dump.c: Likewise.
1138 * cli/cli-interp.c: Likewise.
1139 * cli/cli-logging.c: Likewise.
1140 * cli/cli-script.c: Likewise.
1141 * cli/cli-setshow.c: Likewise.
1142 * cli/cli-utils.c: Likewise.
1143 * coffread.c: Likewise.
1144 * common/agent.c: Likewise.
1145 * common/buffer.c: Likewise.
1146 * common/buffer.h: Likewise.
1147 * common/common-utils.c: Likewise.
1148 * common/filestuff.c: Likewise.
1149 * common/filestuff.c: Likewise.
1150 * common/format.c: Likewise.
1151 * common/print-utils.c: Likewise.
1152 * common/rsp-low.c: Likewise.
1153 * common/signals.c: Likewise.
1154 * common/vec.h: Likewise.
1155 * common/xml-utils.c: Likewise.
1156 * core-regset.c: Likewise.
1157 * corefile.c: Likewise.
1158 * corelow.c: Likewise.
1159 * cp-abi.c: Likewise.
1160 * cp-name-parser.y: Likewise.
1161 * cp-support.c: Likewise.
1162 * cp-valprint.c: Likewise.
1163 * cris-tdep.c: Likewise.
1164 * d-exp.y: Likewise.
1165 * darwin-nat.c: Likewise.
1166 * dbxread.c: Likewise.
1167 * dcache.c: Likewise.
1168 * demangle.c: Likewise.
1169 * dicos-tdep.c: Likewise.
1170 * disasm.c: Likewise.
1171 * doublest.c: Likewise.
1172 * dsrec.c: Likewise.
1173 * dummy-frame.c: Likewise.
1174 * dwarf2-frame.c: Likewise.
1175 * dwarf2loc.c: Likewise.
1176 * dwarf2read.c: Likewise.
1177 * elfread.c: Likewise.
1178 * environ.c: Likewise.
1179 * eval.c: Likewise.
1180 * event-loop.c: Likewise.
1181 * exceptions.c: Likewise.
1182 * exec.c: Likewise.
1183 * expprint.c: Likewise.
1184 * f-exp.y: Likewise.
1185 * f-lang.c: Likewise.
1186 * f-typeprint.c: Likewise.
1187 * f-valprint.c: Likewise.
1188 * fbsd-nat.c: Likewise.
1189 * findcmd.c: Likewise.
1190 * findvar.c: Likewise.
1191 * fork-child.c: Likewise.
1192 * frame.c: Likewise.
1193 * frv-linux-tdep.c: Likewise.
1194 * frv-tdep.c: Likewise.
1195 * gdb.c: Likewise.
1196 * gdb_bfd.c: Likewise.
1197 * gdbarch.c: Likewise.
1198 * gdbarch.sh: Likewise.
1199 * gdbtypes.c: Likewise.
1200 * gnu-nat.c: Likewise.
1201 * gnu-v2-abi.c: Likewise.
1202 * gnu-v3-abi.c: Likewise.
1203 * go-exp.y: Likewise.
1204 * go-lang.c: Likewise.
1205 * go32-nat.c: Likewise.
1206 * guile/guile.c: Likewise.
1207 * guile/scm-auto-load.c: Likewise.
1208 * hppa-hpux-tdep.c: Likewise.
1209 * hppa-linux-nat.c: Likewise.
1210 * hppanbsd-tdep.c: Likewise.
1211 * hppaobsd-tdep.c: Likewise.
1212 * i386-cygwin-tdep.c: Likewise.
1213 * i386-dicos-tdep.c: Likewise.
1214 * i386-linux-tdep.c: Likewise.
1215 * i386-nto-tdep.c: Likewise.
1216 * i386-sol2-tdep.c: Likewise.
1217 * i386-tdep.c: Likewise.
1218 * i386bsd-tdep.c: Likewise.
1219 * i386gnu-nat.c: Likewise.
1220 * i386nbsd-tdep.c: Likewise.
1221 * i386obsd-tdep.c: Likewise.
1222 * i387-tdep.c: Likewise.
1223 * ia64-libunwind-tdep.c: Likewise.
1224 * ia64-linux-nat.c: Likewise.
1225 * inf-child.c: Likewise.
1226 * inf-ptrace.c: Likewise.
1227 * inf-ttrace.c: Likewise.
1228 * infcall.c: Likewise.
1229 * infcmd.c: Likewise.
1230 * inflow.c: Likewise.
1231 * infrun.c: Likewise.
1232 * interps.c: Likewise.
1233 * iq2000-tdep.c: Likewise.
1234 * irix5-nat.c: Likewise.
1235 * jv-exp.y: Likewise.
1236 * jv-lang.c: Likewise.
1237 * jv-typeprint.c: Likewise.
1238 * jv-valprint.c: Likewise.
1239 * language.c: Likewise.
1240 * linux-fork.c: Likewise.
1241 * linux-nat.c: Likewise.
1242 * lm32-tdep.c: Likewise.
1243 * m2-exp.y: Likewise.
1244 * m2-typeprint.c: Likewise.
1245 * m32c-tdep.c: Likewise.
1246 * m32r-linux-nat.c: Likewise.
1247 * m32r-linux-tdep.c: Likewise.
1248 * m32r-rom.c: Likewise.
1249 * m32r-tdep.c: Likewise.
1250 * m68hc11-tdep.c: Likewise.
1251 * m68k-tdep.c: Likewise.
1252 * m68kbsd-tdep.c: Likewise.
1253 * m68klinux-nat.c: Likewise.
1254 * m68klinux-tdep.c: Likewise.
1255 * m88k-tdep.c: Likewise.
1256 * machoread.c: Likewise.
1257 * macrocmd.c: Likewise.
1258 * main.c: Likewise.
1259 * mdebugread.c: Likewise.
1260 * mem-break.c: Likewise.
1261 * memattr.c: Likewise.
1262 * memory-map.c: Likewise.
1263 * mep-tdep.c: Likewise.
1264 * mi/mi-cmd-break.c: Likewise.
1265 * mi/mi-cmd-disas.c: Likewise.
1266 * mi/mi-cmd-env.c: Likewise.
1267 * mi/mi-cmd-stack.c: Likewise.
1268 * mi/mi-cmd-var.c: Likewise.
1269 * mi/mi-cmds.c: Likewise.
1270 * mi/mi-console.c: Likewise.
1271 * mi/mi-getopt.c: Likewise.
1272 * mi/mi-interp.c: Likewise.
1273 * mi/mi-main.c: Likewise.
1274 * mi/mi-parse.c: Likewise.
1275 * microblaze-rom.c: Likewise.
1276 * microblaze-tdep.c: Likewise.
1277 * mingw-hdep.c: Likewise.
1278 * minidebug.c: Likewise.
1279 * minsyms.c: Likewise.
1280 * mips-irix-tdep.c: Likewise.
1281 * mips-linux-tdep.c: Likewise.
1282 * mips-tdep.c: Likewise.
1283 * mips64obsd-tdep.c: Likewise.
1284 * mipsnbsd-tdep.c: Likewise.
1285 * mipsread.c: Likewise.
1286 * mn10300-linux-tdep.c: Likewise.
1287 * mn10300-tdep.c: Likewise.
1288 * monitor.c: Likewise.
1289 * moxie-tdep.c: Likewise.
1290 * mt-tdep.c: Likewise.
1291 * nat/linux-btrace.c: Likewise.
1292 * nat/linux-osdata.c: Likewise.
1293 * nat/linux-procfs.c: Likewise.
1294 * nat/linux-ptrace.c: Likewise.
1295 * nat/linux-waitpid.c: Likewise.
1296 * nbsd-tdep.c: Likewise.
1297 * nios2-linux-tdep.c: Likewise.
1298 * nto-procfs.c: Likewise.
1299 * nto-tdep.c: Likewise.
1300 * objc-lang.c: Likewise.
1301 * objfiles.c: Likewise.
1302 * opencl-lang.c: Likewise.
1303 * osabi.c: Likewise.
1304 * osdata.c: Likewise.
1305 * p-exp.y: Likewise.
1306 * p-lang.c: Likewise.
1307 * p-typeprint.c: Likewise.
1308 * parse.c: Likewise.
1309 * posix-hdep.c: Likewise.
1310 * ppc-linux-nat.c: Likewise.
1311 * ppc-sysv-tdep.c: Likewise.
1312 * ppcfbsd-tdep.c: Likewise.
1313 * ppcnbsd-tdep.c: Likewise.
1314 * ppcobsd-tdep.c: Likewise.
1315 * printcmd.c: Likewise.
1316 * procfs.c: Likewise.
1317 * prologue-value.c: Likewise.
1318 * python/py-auto-load.c: Likewise.
1319 * python/py-gdb-readline.c: Likewise.
1320 * ravenscar-thread.c: Likewise.
1321 * regcache.c: Likewise.
1322 * registry.c: Likewise.
1323 * remote-fileio.c: Likewise.
1324 * remote-m32r-sdi.c: Likewise.
1325 * remote-mips.c: Likewise.
1326 * remote-notif.c: Likewise.
1327 * remote-sim.c: Likewise.
1328 * remote.c: Likewise.
1329 * reverse.c: Likewise.
1330 * rs6000-aix-tdep.c: Likewise.
1331 * ser-base.c: Likewise.
1332 * ser-go32.c: Likewise.
1333 * ser-mingw.c: Likewise.
1334 * ser-pipe.c: Likewise.
1335 * ser-tcp.c: Likewise.
1336 * ser-unix.c: Likewise.
1337 * serial.c: Likewise.
1338 * sh-tdep.c: Likewise.
1339 * sh64-tdep.c: Likewise.
1340 * shnbsd-tdep.c: Likewise.
1341 * skip.c: Likewise.
1342 * sol-thread.c: Likewise.
1343 * solib-dsbt.c: Likewise.
1344 * solib-frv.c: Likewise.
1345 * solib-osf.c: Likewise.
1346 * solib-som.c: Likewise.
1347 * solib-spu.c: Likewise.
1348 * solib-target.c: Likewise.
1349 * solib.c: Likewise.
1350 * somread.c: Likewise.
1351 * source.c: Likewise.
1352 * sparc-nat.c: Likewise.
1353 * sparc-sol2-tdep.c: Likewise.
1354 * sparc-tdep.c: Likewise.
1355 * sparc64-tdep.c: Likewise.
1356 * sparc64fbsd-tdep.c: Likewise.
1357 * sparc64nbsd-tdep.c: Likewise.
1358 * sparcnbsd-tdep.c: Likewise.
1359 * spu-linux-nat.c: Likewise.
1360 * spu-multiarch.c: Likewise.
1361 * spu-tdep.c: Likewise.
1362 * stabsread.c: Likewise.
1363 * stack.c: Likewise.
1364 * std-regs.c: Likewise.
1365 * symfile.c: Likewise.
1366 * symmisc.c: Likewise.
1367 * symtab.c: Likewise.
1368 * target.c: Likewise.
1369 * thread.c: Likewise.
1370 * tilegx-linux-nat.c: Likewise.
1371 * tilegx-tdep.c: Likewise.
1372 * top.c: Likewise.
1373 * tracepoint.c: Likewise.
1374 * tui/tui-command.c: Likewise.
1375 * tui/tui-data.c: Likewise.
1376 * tui/tui-disasm.c: Likewise.
1377 * tui/tui-file.c: Likewise.
1378 * tui/tui-layout.c: Likewise.
1379 * tui/tui-out.c: Likewise.
1380 * tui/tui-regs.c: Likewise.
1381 * tui/tui-source.c: Likewise.
1382 * tui/tui-stack.c: Likewise.
1383 * tui/tui-win.c: Likewise.
1384 * tui/tui-windata.c: Likewise.
1385 * tui/tui-winsource.c: Likewise.
1386 * typeprint.c: Likewise.
1387 * ui-file.c: Likewise.
1388 * ui-out.c: Likewise.
1389 * user-regs.c: Likewise.
1390 * utils.c: Likewise.
1391 * v850-tdep.c: Likewise.
1392 * valarith.c: Likewise.
1393 * valops.c: Likewise.
1394 * valprint.c: Likewise.
1395 * value.c: Likewise.
1396 * varobj.c: Likewise.
1397 * vax-tdep.c: Likewise.
1398 * vaxnbsd-tdep.c: Likewise.
1399 * vaxobsd-tdep.c: Likewise.
1400 * windows-nat.c: Likewise.
1401 * xcoffread.c: Likewise.
1402 * xml-support.c: Likewise.
1403 * xstormy16-tdep.c: Likewise.
1404 * xtensa-linux-nat.c: Likewise.
1405
1406 2014-08-07 Gary Benson <gbenson@redhat.com>
1407
1408 * common/common-defs.h: Include gdb_assert.h.
1409 * aarch64-tdep.c: Do not include gdb_assert.h.
1410 * addrmap.c: Likewise.
1411 * aix-thread.c: Likewise.
1412 * alpha-linux-tdep.c: Likewise.
1413 * alpha-mdebug-tdep.c: Likewise.
1414 * alphanbsd-tdep.c: Likewise.
1415 * amd64-nat.c: Likewise.
1416 * amd64-tdep.c: Likewise.
1417 * amd64bsd-nat.c: Likewise.
1418 * amd64fbsd-nat.c: Likewise.
1419 * amd64fbsd-tdep.c: Likewise.
1420 * amd64nbsd-nat.c: Likewise.
1421 * amd64nbsd-tdep.c: Likewise.
1422 * amd64obsd-nat.c: Likewise.
1423 * amd64obsd-tdep.c: Likewise.
1424 * arch-utils.c: Likewise.
1425 * arm-tdep.c: Likewise.
1426 * armbsd-tdep.c: Likewise.
1427 * auxv.c: Likewise.
1428 * bcache.c: Likewise.
1429 * bfin-tdep.c: Likewise.
1430 * blockframe.c: Likewise.
1431 * breakpoint.c: Likewise.
1432 * bsd-kvm.c: Likewise.
1433 * bsd-uthread.c: Likewise.
1434 * buildsym.c: Likewise.
1435 * c-exp.y: Likewise.
1436 * c-lang.c: Likewise.
1437 * charset.c: Likewise.
1438 * cleanups.c: Likewise.
1439 * cli-out.c: Likewise.
1440 * cli/cli-decode.c: Likewise.
1441 * cli/cli-dump.c: Likewise.
1442 * cli/cli-logging.c: Likewise.
1443 * cli/cli-script.c: Likewise.
1444 * cli/cli-utils.c: Likewise.
1445 * coffread.c: Likewise.
1446 * common/common-utils.c: Likewise.
1447 * common/queue.h: Likewise.
1448 * common/signals.c: Likewise.
1449 * common/vec.h: Likewise.
1450 * complaints.c: Likewise.
1451 * completer.c: Likewise.
1452 * corelow.c: Likewise.
1453 * cp-abi.c: Likewise.
1454 * cp-name-parser.y: Likewise.
1455 * cp-namespace.c: Likewise.
1456 * cp-support.c: Likewise.
1457 * cris-tdep.c: Likewise.
1458 * dbxread.c: Likewise.
1459 * dictionary.c: Likewise.
1460 * doublest.c: Likewise.
1461 * dsrec.c: Likewise.
1462 * dummy-frame.c: Likewise.
1463 * dwarf2-frame-tailcall.c: Likewise.
1464 * dwarf2-frame.c: Likewise.
1465 * dwarf2expr.c: Likewise.
1466 * dwarf2loc.c: Likewise.
1467 * dwarf2read.c: Likewise.
1468 * eval.c: Likewise.
1469 * event-loop.c: Likewise.
1470 * exceptions.c: Likewise.
1471 * expprint.c: Likewise.
1472 * f-valprint.c: Likewise.
1473 * fbsd-nat.c: Likewise.
1474 * findvar.c: Likewise.
1475 * frame-unwind.c: Likewise.
1476 * frame.c: Likewise.
1477 * frv-tdep.c: Likewise.
1478 * gcore.c: Likewise.
1479 * gdb-dlfcn.c: Likewise.
1480 * gdb_bfd.c: Likewise.
1481 * gdbarch.c: Likewise.
1482 * gdbarch.sh: Likewise.
1483 * gdbtypes.c: Likewise.
1484 * gnu-nat.c: Likewise.
1485 * gnu-v3-abi.c: Likewise.
1486 * go-lang.c: Likewise.
1487 * guile/scm-exception.c: Likewise.
1488 * guile/scm-gsmob.c: Likewise.
1489 * guile/scm-lazy-string.c: Likewise.
1490 * guile/scm-math.c: Likewise.
1491 * guile/scm-pretty-print.c: Likewise.
1492 * guile/scm-safe-call.c: Likewise.
1493 * guile/scm-utils.c: Likewise.
1494 * guile/scm-value.c: Likewise.
1495 * h8300-tdep.c: Likewise.
1496 * hppa-hpux-nat.c: Likewise.
1497 * hppa-tdep.c: Likewise.
1498 * hppanbsd-tdep.c: Likewise.
1499 * hppaobsd-tdep.c: Likewise.
1500 * i386-darwin-nat.c: Likewise.
1501 * i386-darwin-tdep.c: Likewise.
1502 * i386-nto-tdep.c: Likewise.
1503 * i386-tdep.c: Likewise.
1504 * i386bsd-nat.c: Likewise.
1505 * i386fbsd-tdep.c: Likewise.
1506 * i386gnu-nat.c: Likewise.
1507 * i386nbsd-tdep.c: Likewise.
1508 * i386obsd-tdep.c: Likewise.
1509 * i387-tdep.c: Likewise.
1510 * ia64-libunwind-tdep.c: Likewise.
1511 * ia64-tdep.c: Likewise.
1512 * inf-ptrace.c: Likewise.
1513 * inf-ttrace.c: Likewise.
1514 * infcall.c: Likewise.
1515 * infcmd.c: Likewise.
1516 * infrun.c: Likewise.
1517 * inline-frame.c: Likewise.
1518 * interps.c: Likewise.
1519 * jv-lang.c: Likewise.
1520 * jv-typeprint.c: Likewise.
1521 * linux-fork.c: Likewise.
1522 * linux-nat.c: Likewise.
1523 * linux-thread-db.c: Likewise.
1524 * m32c-tdep.c: Likewise.
1525 * m32r-linux-nat.c: Likewise.
1526 * m32r-tdep.c: Likewise.
1527 * m68k-tdep.c: Likewise.
1528 * m68kbsd-nat.c: Likewise.
1529 * m68kbsd-tdep.c: Likewise.
1530 * m88k-tdep.c: Likewise.
1531 * machoread.c: Likewise.
1532 * macroexp.c: Likewise.
1533 * macrotab.c: Likewise.
1534 * maint.c: Likewise.
1535 * mdebugread.c: Likewise.
1536 * memory-map.c: Likewise.
1537 * mep-tdep.c: Likewise.
1538 * mi/mi-common.c: Likewise.
1539 * microblaze-tdep.c: Likewise.
1540 * mingw-hdep.c: Likewise.
1541 * mips-linux-nat.c: Likewise.
1542 * mips-linux-tdep.c: Likewise.
1543 * mips-tdep.c: Likewise.
1544 * mips64obsd-tdep.c: Likewise.
1545 * mipsnbsd-tdep.c: Likewise.
1546 * mn10300-linux-tdep.c: Likewise.
1547 * mn10300-tdep.c: Likewise.
1548 * moxie-tdep.c: Likewise.
1549 * mt-tdep.c: Likewise.
1550 * nat/linux-btrace.c: Likewise.
1551 * nat/linux-osdata.c: Likewise.
1552 * nat/linux-ptrace.c: Likewise.
1553 * nat/mips-linux-watch.c: Likewise.
1554 * nios2-linux-tdep.c: Likewise.
1555 * nios2-tdep.c: Likewise.
1556 * objc-lang.c: Likewise.
1557 * objfiles.c: Likewise.
1558 * obsd-nat.c: Likewise.
1559 * opencl-lang.c: Likewise.
1560 * osabi.c: Likewise.
1561 * parse.c: Likewise.
1562 * ppc-linux-nat.c: Likewise.
1563 * ppc-sysv-tdep.c: Likewise.
1564 * ppcfbsd-nat.c: Likewise.
1565 * ppcfbsd-tdep.c: Likewise.
1566 * ppcnbsd-nat.c: Likewise.
1567 * ppcnbsd-tdep.c: Likewise.
1568 * ppcobsd-nat.c: Likewise.
1569 * ppcobsd-tdep.c: Likewise.
1570 * printcmd.c: Likewise.
1571 * procfs.c: Likewise.
1572 * prologue-value.c: Likewise.
1573 * psymtab.c: Likewise.
1574 * python/py-lazy-string.c: Likewise.
1575 * python/py-value.c: Likewise.
1576 * regcache.c: Likewise.
1577 * reggroups.c: Likewise.
1578 * registry.c: Likewise.
1579 * remote-sim.c: Likewise.
1580 * remote.c: Likewise.
1581 * rs6000-aix-tdep.c: Likewise.
1582 * rs6000-tdep.c: Likewise.
1583 * s390-linux-tdep.c: Likewise.
1584 * score-tdep.c: Likewise.
1585 * ser-base.c: Likewise.
1586 * ser-mingw.c: Likewise.
1587 * sh-tdep.c: Likewise.
1588 * sh64-tdep.c: Likewise.
1589 * solib-darwin.c: Likewise.
1590 * solib-spu.c: Likewise.
1591 * solib-svr4.c: Likewise.
1592 * source.c: Likewise.
1593 * sparc-nat.c: Likewise.
1594 * sparc-sol2-tdep.c: Likewise.
1595 * sparc-tdep.c: Likewise.
1596 * sparc64-sol2-tdep.c: Likewise.
1597 * sparc64-tdep.c: Likewise.
1598 * sparc64fbsd-tdep.c: Likewise.
1599 * sparc64nbsd-tdep.c: Likewise.
1600 * sparc64obsd-tdep.c: Likewise.
1601 * sparcnbsd-tdep.c: Likewise.
1602 * sparcobsd-tdep.c: Likewise.
1603 * spu-multiarch.c: Likewise.
1604 * spu-tdep.c: Likewise.
1605 * stabsread.c: Likewise.
1606 * stack.c: Likewise.
1607 * symfile.c: Likewise.
1608 * symtab.c: Likewise.
1609 * target-descriptions.c: Likewise.
1610 * target-memory.c: Likewise.
1611 * target.c: Likewise.
1612 * tic6x-linux-tdep.c: Likewise.
1613 * tic6x-tdep.c: Likewise.
1614 * tilegx-linux-nat.c: Likewise.
1615 * tilegx-tdep.c: Likewise.
1616 * top.c: Likewise.
1617 * tramp-frame.c: Likewise.
1618 * tui/tui-out.c: Likewise.
1619 * tui/tui-winsource.c: Likewise.
1620 * ui-out.c: Likewise.
1621 * user-regs.c: Likewise.
1622 * utils.c: Likewise.
1623 * v850-tdep.c: Likewise.
1624 * valops.c: Likewise.
1625 * value.c: Likewise.
1626 * varobj.c: Likewise.
1627 * vax-nat.c: Likewise.
1628 * xml-syscall.c: Likewise.
1629 * xml-tdesc.c: Likewise.
1630 * xstormy16-tdep.c: Likewise.
1631 * xtensa-linux-nat.c: Likewise.
1632 * xtensa-tdep.c: Likewise.
1633
1634 2014-08-07 Gary Benson <gbenson@redhat.com>
1635
1636 * common/common-defs.h: Include common-utils.h.
1637 * defs.h: Do not include common-utils.h.
1638 * common/gdb_assert.h: Likewise.
1639 * darwin-nat.h: Likewise.
1640 * nat/linux-btrace.c: Likewise.
1641 * target/waitstatus.h: Likewise.
1642
1643 2014-08-07 Gary Benson <gbenson@redhat.com>
1644
1645 * common/common-defs.h: Include ptid.h.
1646 * defs.h: Do not include ptid.h.
1647 * inferior.h: Likewise.
1648 * infrun.h: Likewise.
1649 * nat/linux-btrace.h: Likewise.
1650 * nat/linux-osdata.h: Likewise.
1651 * target/waitstatus.h: Likewise.
1652
1653 2014-08-07 Gary Benson <gbenson@redhat.com>
1654
1655 * common/common-defs.h: Include gdb_locale.h.
1656 * defs.h: Do not include gdb_locale.h.
1657
1658 2014-08-07 Gary Benson <gbenson@redhat.com>
1659
1660 * common/common-defs.h: Include gdb/signals.h.
1661 * defs.h: Do not include gdb/signals.h.
1662
1663 2014-08-07 Gary Benson <gbenson@redhat.com>
1664
1665 * common/common-defs.h: Include pathmax.h.
1666 * defs.h: Do not include pathmax.h.
1667
1668 2014-08-07 Gary Benson <gbenson@redhat.com>
1669
1670 * common/common-defs.h: Include libiberty.h.
1671 * defs.h: Do not include libiberty.h.
1672 * common/queue.h: Likewise.
1673 * cp-name-parser.y: Likewise.
1674 * mi/mi-cmd-catch.c: Likewise.
1675 * python/python.c: Likewise.
1676
1677 2014-08-07 Gary Benson <gbenson@redhat.com>
1678
1679 * common/common-defs.h: Include ansidecl.h.
1680 * defs.h: Do not include ansidecl.h.
1681 * common/buffer.h: Likewise.
1682 * common/common-utils.h: Likewise.
1683
1684 2014-08-07 Gary Benson <gbenson@redhat.com>
1685
1686 * common/common-defs.h: Include stddef.h.
1687 * defs.h: Do not include stddef.h.
1688 * common/common-utils.h: Likewise.
1689 * amd64fbsd-nat.c: Likewise.
1690 * bcache.c: Likewise.
1691 * charset.c: Likewise.
1692 * common/buffer.h: Likewise.
1693 * common/vec.h: Likewise.
1694 * i386bsd-nat.c: Likewise.
1695 * nat/linux-btrace.h: Likewise.
1696 * ppcfbsd-nat.c: Likewise.
1697 * ppcnbsd-tdep.h: Likewise.
1698 * ppcobsd-nat.c: Likewise.
1699 * ppcobsd-tdep.h: Likewise.
1700 * python/py-gdb-readline.c: Likewise.
1701
1702 2014-08-07 Gary Benson <gbenson@redhat.com>
1703
1704 * common/common-defs.h: Include stdarg.h.
1705 * defs.h: Do not include stdarg.h.
1706 * ada-lang.c: Likewise.
1707 * common/common-utils.h: Likewise.
1708 * guile/scm-string.c: Likewise.
1709 * guile/scm-utils.c: Likewise.
1710 * m32c-tdep.c: Likewise.
1711
1712 2014-08-07 Gary Benson <gbenson@redhat.com>
1713
1714 * common/common-defs.h: Include stdlib.h.
1715 * defs.h: Do not include stdlib.h.
1716 * addrmap.c: Likewise.
1717 * bcache.c: Likewise.
1718 * common/buffer.c: Likewise.
1719 * common/common-utils.c: Likewise.
1720 * cp-name-parser.y: Likewise.
1721 * go32-nat.c: Likewise.
1722 * mn10300-linux-tdep.c: Likewise.
1723 * nat/linux-osdata.c: Likewise.
1724 * tui/tui.c: Likewise.
1725 * windows-nat.c: Likewise.
1726
1727 2014-08-07 Gary Benson <gbenson@redhat.com>
1728
1729 * common/common-defs.h: Include stdio.h.
1730 * defs.h: Do not include stdio.h.
1731 * ada-lang.c: Likewise.
1732 * common/buffer.c: Likewise.
1733 * common/common-utils.c: Likewise.
1734 * cp-name-parser.y: Likewise.
1735 * gnu-nat.c: Likewise.
1736 * go32-nat.c: Likewise.
1737 * i386gnu-nat.c: Likewise.
1738 * proc-api.c: Likewise.
1739 * proc-events.c: Likewise.
1740 * proc-flags.c: Likewise.
1741 * proc-why.c: Likewise.
1742 * python/python-internal.h: Likewise.
1743 * target-memory.c: Likewise.
1744 * tui/tui-io.c: Likewise.
1745 * tui/tui.c: Likewise.
1746
1747 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1748
1749 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1750 (scan_dyntag_auxv): Same.
1751
1752 2014-08-06 Yao Qi <yao@codesourcery.com>
1753
1754 * amd64-linux-nat.c: Remove duplicated include
1755 "x86-linux-nat.h".
1756 * i386-linux-nat.c: Likewise.
1757
1758 2014-08-06 Yao Qi <yao@codesourcery.com>
1759
1760 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1761 operand" with "Special opcode" in comments.
1762
1763 2014-08-05 Gary Benson <gbenson@redhat.com>
1764
1765 * interps.c (initialize_interps): Remove prototype.
1766 (interpreter_initialized): Remove static global.
1767 (interp_add): Do not call initialize_interps.
1768 (initialize_interps): Remove function.
1769
1770 2014-08-05 Gary Benson <gbenson@redhat.com>
1771
1772 * utils.c (vwarning): Remove spurious va_end.
1773
1774 2014-08-05 Alan Modra <amodra@gmail.com>
1775
1776 * charset.c (convert_between_encodings): Cast result of obstack_base.
1777 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1778 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1779 (read_unwind_info): Use size_t for some locals.
1780 * jit.c (finalize_symtab): Likewise.
1781 * utils.c (hashtab_obstack_allocate): Likewise.
1782 * symmisc.c (print_objfile_statistics): Update format strings.
1783
1784 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1785
1786 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1787 (Changes in GDB 7.8): ... here.
1788
1789 2014-08-04 Tom Tromey <tromey@redhat.com>
1790
1791 * target.c (set_targetdebug): New function.
1792 (initialize_targets): Pass set_targetdebug when creating "set
1793 debug target".
1794
1795 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1796
1797 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1798 if detecting a variable-sized field that is not the last field.
1799 Fix struct type length computation.
1800
1801 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1802
1803 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1804 Add debug trace.
1805
1806 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1807
1808 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1809 Remove "+ 8" offset in computation of CHAIN_VMA.
1810
1811 2014-07-31 Doug Evans <dje@google.com>
1812
1813 * inflow.c (child_terminal_inferior): Add comment.
1814 (child_terminal_ours_for_output): Add comment.
1815 (child_terminal_ours): Add comment.
1816 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1817 (linux_nat_terminal_ours): Add comment.
1818
1819 2014-07-31 Gary Benson <gbenson@redhat.com>
1820
1821 * common/btrace-common.h: Do not include defs.h or server.h.
1822 * nat/mips-linux-watch.h: Likewise.
1823 * gdb-dlfcn.h: Do not include defs.h.
1824 * tracefile.h: Likewise.
1825
1826 2014-07-30 Roland McGrath <mcgrathr@google.com>
1827
1828 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1829
1830 2014-07-30 Tom Tromey <tromey@redhat.com>
1831
1832 * bsd-kvm.c (bsd_kvm_open): Constify.
1833 * corelow.c (core_open): Constify.
1834 * ctf.c (ctf_open): Constify.
1835 * dbug-rom.c (dbug_open): Constify.
1836 * exec.c (exec_open): Constify.
1837 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1838 * microblaze-rom.c (picobug_open): Constify.
1839 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1840 Constify.
1841 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1842 * record-btrace.c (record_btrace_open): Constify.
1843 * record-full.c (record_full_core_open_1, record_full_open_1)
1844 (record_full_open): Constify.
1845 * remote-m32r-sdi.c (m32r_open): Constify.
1846 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1847 (rockhopper_open, lsi_open): Constify.
1848 * remote-sim.c (gdbsim_open): Constify.
1849 * remote.c (remote_open, extended_remote_open, remote_open_1):
1850 Constify.
1851 * target.h (struct target_ops) <to_open>: Make "arg" const.
1852 * tracefile-tfile.c (tfile_open): Constify.
1853
1854 2014-07-30 Tom Tromey <tromey@redhat.com>
1855
1856 * breakpoint.c (map_breakpoint_numbers): Update.
1857 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1858 (get_number_const): New function.
1859 (get_number): Rewrite using get_number_const.
1860 (init_number_or_range): Make "string" const.
1861 (number_is_in_list): Make "list" const.
1862 * cli/cli-utils.h (get_number_const): Declare.
1863 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1864 (init_number_or_range, number_is_in_list): Update.
1865 * printcmd.c (map_display_numbers): Update.
1866 * value.c (value_from_history_ref): Constify.
1867 * value.h (value_from_history_ref): Update.
1868
1869 2014-07-30 Tom Tromey <tromey@redhat.com>
1870
1871 * corefile.c (hook_type, call_extra_exec_file_hooks)
1872 (specify_exec_file_hook): Constify.
1873 * exec.c (exec_file_attach): Make "filename" const.
1874 * gdbcore.h (deprecated_exec_file_display_hook)
1875 (specify_exec_file_hook, exec_file_attach): Constify.
1876 * main.c (captured_main): Use catch_command_errors_const.
1877
1878 2014-07-30 Tom Tromey <tromey@redhat.com>
1879
1880 * target.c (open_target): New function.
1881 (add_target_with_completer, add_deprecated_target_alias): Use
1882 set_cmd_sfunc, set_cmd_context.
1883 (debug_to_open): Remove.
1884 (setup_target_debug): Update.
1885
1886 2014-07-30 Yao Qi <yao@codesourcery.com>
1887
1888 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1889 comments.
1890 * parse.c (exp_iterate): Update comments.
1891
1892 2014-07-30 Gary Benson <gbenson@redhat.com>
1893
1894 * common/common-defs.h: New file.
1895 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1896 * defs.h: Include common-defs.h.
1897 Do not include config.h or build-gnulib/config.h.
1898
1899 2014-07-30 Gary Benson <gbenson@redhat.com>
1900
1901 * common/common-utils.h: Do not include config.h.
1902 * nat/linux-btrace.h: Likewise.
1903
1904 2014-07-30 Gary Benson <gbenson@redhat.com>
1905
1906 * btrace.c: Include defs.h.
1907 * common/ptid.c: Include defs.h or server.h as appropriate.
1908 * nat/mips-linux-watch.c: Likewise.
1909
1910 2014-07-29 Tom Tromey <tromey@redhat.com>
1911
1912 * target.c (target_is_pushed): Simplify.
1913
1914 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1915
1916 GDB 7.8 released.
1917
1918 2014-07-29 Yao Qi <yao@codesourcery.com>
1919
1920 PR gdb/17206
1921 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1922
1923 2014-07-28 Doug Evans <xdje42@gmail.com>
1924
1925 PR guile/17203
1926 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1927 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1928 parameters.
1929
1930 2014-07-28 Will Newton <will.newton@linaro.org>
1931
1932 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1933 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1934 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1935 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1936 (THUMB2_EABI_SYSCALL): Likewise.
1937 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1938 struct tramp_frame.
1939 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1940 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1941
1942 2014-07-27 Doug Evans <xdje42@gmail.com>
1943
1944 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1945
1946 2014-07-27 Doug Evans <xdje42@gmail.com>
1947
1948 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1949
1950 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1951 Doug Evans <xdje42@gmail.com>
1952
1953 PR guile/17146
1954 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1955 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1956 * configure.ac: Try to use guild to compile an scm file, if it fails
1957 then disable guile support.
1958 * configure: Regenerate.
1959 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1960 GUILE_FILE_LIST.
1961 (GUILE_COMPILED_FILES): New variable.
1962 (GUILE_FILES) Update.
1963 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1964 (stamp-guile): Compile scm files.
1965 * guile/guile.c (boot_guile_support): New function.
1966 (standard_throw_args_p): New function.
1967 (print_standard_throw_error, print_throw_error): New functions.
1968 (handle_boot_error): New function.
1969 (initialize_scheme_side): Rewrite to call boot_guile_support.
1970 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1971 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1972
1973 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1974 Doug Evans <xdje42@gmail.com>
1975
1976 PR guile/17146
1977 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1978 * guile/lib/gdb/support.scm: New file.
1979 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1980 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1981 All uses updated.
1982 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1983 All uses updated.
1984 (%assert-type): Ditto, and renamed to assert-type.
1985 (%exception-print-style): Delete.
1986
1987 2014-07-26 Doug Evans <xdje42@gmail.com>
1988
1989 PR build/17105
1990 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1991 * configure: Regenerate.
1992 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1993 PYTHON_FILES.
1994 (PYTHON_FILES): New variable.
1995 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1996 (GUILE_FILES): New variable.
1997 (stamp-python, install-python, uninstall-python): Handle empty
1998 file list.
1999 (stamp-guile, install-guile, uninstall-guile): Ditto.
2000
2001 2014-07-26 Doug Evans <xdje42@gmail.com>
2002
2003 PR guile/17177
2004 * guile/lib/gdb.scm (pretty-printers): Export.
2005 (set-pretty-printers!): Export.
2006 * guile/lib/gdb/printing.scm (gdb module): Update.
2007 (prepend-pretty-printer!, append-pretty-printer!): Update.
2008 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2009 (pretty_printer_list_var): Delete.
2010 (pretty_printer_list): New static global.
2011 (gdbscm_pretty_printers): New function.
2012 (gdbscm_set_pretty_printers_x): New function.
2013 (ppscm_find_pretty_printer_from_gdb): Update.
2014 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2015 (gdbscm_initialize_pretty_printers): Update.
2016
2017 2014-07-26 Doug Evans <xdje42@gmail.com>
2018
2019 PR 17185
2020 * configure.ac: Add check for header gc/gc.h.
2021 Add check for function setenv.
2022 * configure: Regenerate.
2023 * config.in: Regenerate.
2024 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2025
2026 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2027
2028 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2029 variation in gdbarch matching.
2030
2031 2014-07-25 Tom Tromey <tromey@redhat.com>
2032
2033 * exec.c (using_exec_ops): Remove.
2034 (exec_close_1): Update. Remove extraneous block, reindent.
2035 (add_target_sections): Use target_is_pushed.
2036
2037 2014-07-25 Pedro Alves <palves@redhat.com>
2038
2039 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2040 * monitor.c (monitor_create_inferior): Likewise.
2041 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2042 * remote-sim.c (gdbsim_create_inferior): Likewise.
2043 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2044 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2045 * windows-nat.c (do_initial_windows_stuff): Likewise.
2046
2047 2014-07-25 Pedro Alves <palves@redhat.com>
2048
2049 * NEWS: Mention signal passing and "signal" command changes.
2050 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2051 comment.
2052 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2053 call.
2054 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2055 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2056 (jump_command): Adjust clear_proceed_status call.
2057 (signal_command): Warn if other thread that are resumed have
2058 signals that will be delivered. Adjust clear_proceed_status call.
2059 (until_next_command, finish_command)
2060 (proceed_after_attach_callback, attach_command_post_wait)
2061 (attach_command): Adjust clear_proceed_status call.
2062 * infrun.c (proceed_after_vfork_done): Likewise.
2063 (proceed_after_attach_callback): Adjust comment.
2064 (clear_proceed_status_thread): Clear stop_signal if not in pass
2065 state.
2066 (clear_proceed_status_callback): Delete.
2067 (clear_proceed_status): New 'step' parameter. Only clear the
2068 proceed status of threads the command being prepared is about to
2069 resume.
2070 (proceed): If passed in an explicit signal, override stop_signal
2071 with it. Don't pass the last stop signal to the thread we're
2072 resuming.
2073 (init_wait_for_inferior): Adjust clear_proceed_status call.
2074 (switch_back_to_stepped_thread): Clear the signal if it should not
2075 be passed.
2076 * infrun.h (clear_proceed_status): New 'step' parameter.
2077 (user_visible_resume_ptid): Add comment.
2078 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2079 signal is in pass state.
2080 * remote.c (append_pending_thread_resumptions): Likewise.
2081 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2082
2083 2014-07-25 Tom Tromey <tromey@redhat.com>
2084
2085 * target.h (target_stopped_data_address)
2086 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2087 parentheses.
2088
2089 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2090
2091 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2092 comments.
2093 (avr_pointer_to_address): Likewise.
2094
2095 2014-07-24 Tom Tromey <tromey@redhat.com>
2096
2097 * monitor.c (compile_pattern): Update.
2098 * target.h (struct target_ops) <to_shortname, to_longname,
2099 to_doc>: Now const.
2100
2101 2014-07-24 Tom Tromey <tromey@redhat.com>
2102
2103 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2104 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2105 (add_info_alias, add_com): Make "doc" const.
2106 (print_doc_line): Make "str" const.
2107 (delete_cmd): Update.
2108 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2109 (print_doc_line): Update.
2110 * cli/cli-script.c (document_command): Update.
2111 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2112 (add_com, add_info, add_info_alias): Update.
2113 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2114 * python/py-cmd.c (cmdpy_destroyer): Update.
2115
2116 2014-07-24 Tom Tromey <tromey@redhat.com>
2117
2118 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2119 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2120 (help_cmd_list): Constify.
2121 (lookup_cmd): Update.
2122 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2123 const.
2124 (help_cmd_list, apropos_cmd): Update.
2125 * cli/cli-script.c (show_user): Update.
2126 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2127 * cli/cli-setshow.h (cmd_show_list): Update.
2128 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2129 (cmd_show_list): Update.
2130 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2131 * python/py-cmd.c (cmdpy_destroyer): Update.
2132
2133 2014-07-24 Tom Tromey <tromey@redhat.com>
2134
2135 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2136 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2137 const.
2138 * command.h (deprecate_cmd): Update.
2139 * maint.c (maintenance_do_deprecate): Add casts.
2140
2141 2014-07-24 Tom Tromey <tromey@redhat.com>
2142
2143 * cli/cli-decode.c (help_cmd): Make parameter "const".
2144 * cli/cli-decode.h (help_cmd): Update.
2145
2146 2014-07-24 Tom Tromey <tromey@redhat.com>
2147
2148 * stack.c (up_silently_base, down_silently_base): Make argument
2149 const.
2150
2151 2014-07-24 Tom Tromey <tromey@redhat.com>
2152
2153 * solib.c (solib_add): Make "pattern" const.
2154 * solib.h (solib_add): Update.
2155
2156 2014-07-24 Tom Tromey <tromey@redhat.com>
2157
2158 * remote.c (remote_serial_open, print_packet, putpkt)
2159 (putpkt_binary): Constify.
2160 * remote.h (putpkt): Update.
2161
2162 2014-07-24 Tom Tromey <tromey@redhat.com>
2163
2164 * monitor.c (monitor_open): Make "args" const.
2165 * monitor.h (monitor_open): Update.
2166
2167 2014-07-24 Tom Tromey <tromey@redhat.com>
2168
2169 * maint.c (match_bfd_flags): Make "string" const.
2170 (print_bfd_section_info): Remove casts.
2171 (print_objfile_section_info): Make "string" const.
2172
2173 2014-07-24 Tom Tromey <tromey@redhat.com>
2174
2175 * inf-child.c (inf_child_open_target): Make "arg" const.
2176 * inf-child.h (inf_child_open_target): Update.
2177
2178 2014-07-24 Tom Tromey <tromey@redhat.com>
2179
2180 * environ.c (unset_in_environ): Make "var" const.
2181 * environ.h (unset_in_environ): Update.
2182
2183 2014-07-24 Tom Tromey <tromey@redhat.com>
2184
2185 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2186 Make "cmd" const.
2187 (scan_filename_with_cleanup): Likewise.
2188 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2189 Make arguments const.
2190 (restore_command): Update.
2191
2192 2014-07-24 Pedro Alves <palves@redhat.com>
2193
2194 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2195
2196 2014-07-24 Tom Tromey <tromey@redhat.com>
2197 Gary Benson <gbenson@redhat.com>
2198
2199 * nat/linux-ptrace.c (additional_flags): New global.
2200 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2201 additional_flags; don't check GDBSERVER.
2202 (linux_ptrace_set_additional_flags): New function.
2203 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2204 Declare.
2205 * linux-nat.c (_initialize_linux_nat): Call
2206 linux_ptrace_set_additional_flags.
2207
2208 2014-07-24 Tom Tromey <tromey@redhat.com>
2209
2210 * make-target-delegates (munge_type, write_debugmethod): New
2211 functions.
2212 (debug_names): New global.
2213 ($TARGET_DEBUG_PRINTER): New global.
2214 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2215 name.
2216 Write debug methods. Generate init_debug_target.
2217 * target-debug.h: New file.
2218 * target-delegates.c: Rebuild.
2219 * target.c: Include target-debug.h.
2220 (debug_target): Hoist definition.
2221 (target_kill, target_get_section_table, target_memory_map)
2222 (target_flash_erase, target_flash_done, target_detach)
2223 (target_disconnect, target_wait, target_resume)
2224 (target_pass_signals, target_program_signals, target_follow_fork)
2225 (target_mourn_inferior, target_search_memory)
2226 (target_thread_address_space, target_close)
2227 (target_find_new_threads, target_core_of_thread)
2228 (target_verify_memory, target_insert_mask_watchpoint)
2229 (target_remove_mask_watchpoint): Remove targetdebug code.
2230 (debug_to_post_attach, debug_to_prepare_to_store)
2231 (debug_to_files_info, debug_to_insert_breakpoint)
2232 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2233 (debug_to_region_ok_for_hw_watchpoint)
2234 (debug_to_can_accel_watchpoint_condition)
2235 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2236 (debug_to_watchpoint_addr_within_range)
2237 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2238 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2239 (debug_to_terminal_init, debug_to_terminal_inferior)
2240 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2241 (debug_to_terminal_save_ours, debug_to_terminal_info)
2242 (debug_to_load, debug_to_post_startup_inferior)
2243 (debug_to_insert_fork_catchpoint)
2244 (debug_to_remove_fork_catchpoint)
2245 (debug_to_insert_vfork_catchpoint)
2246 (debug_to_remove_vfork_catchpoint)
2247 (debug_to_insert_exec_catchpoint)
2248 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2249 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2250 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2251 (setup_target_debug): Call init_debug_target.
2252 * target.h (TARGET_DEBUG_PRINTER): New macro.
2253 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2254 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2255
2256 2014-07-24 Gary Benson <gbenson@redhat.com>
2257
2258 * exceptions.h (throw_vfatal): Renamed to...
2259 (throw_vquit): New declaration.
2260 (throw_quit): Likewise.
2261 * exceptions.c (throw_vfatal): Renamed to...
2262 (throw_vquit): New function.
2263 (throw_quit): Likewise.
2264 (throw_error): Call throw_verror rather than throw_it.
2265 * utils.h (vfatal): Removed.
2266 (fatal): Likewise.
2267 * utils.c (vfatal): Removed.
2268 (fatal): Likewise.
2269 (internal_verror): Replaced call to fatal with call to throw_quit.
2270 (quit): Replaced calls to fatal with calls to throw_quit.
2271
2272 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2273
2274 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2275 target_read_code.
2276
2277 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2278
2279 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2280 less than zero in conditional expression.
2281
2282 2014-07-23 Tom Tromey <tromey@redhat.com>
2283
2284 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2285 ($INTRO_PART): Don't match whitespace.
2286 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2287 argument matching.
2288 ($METHOD): Add $METHOD_TRAILER.
2289 (trim): Rewrite.
2290 (scan_target_h): New sub.
2291 Change main loop not to collect state.
2292 * target-delegates.c: Rebuild.
2293
2294 2014-07-23 Gary Benson <gbenson@redhat.com>
2295
2296 * cp-support.c (gdb_demangle): Fix build on systems without
2297 sigaltstack.
2298
2299 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2300
2301 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2302 for reference entry value target data value.
2303
2304 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2305
2306 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2307 value_available_contents_eq.
2308
2309 2014-07-22 Pedro Alves <palves@redhat.com>
2310
2311 * value.c (allocate_optimized_out_value): Don't mark value as
2312 non-lazy.
2313
2314 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2315
2316 * MAINTAINERS (Write After Approval): Update my email address.
2317
2318 2014-07-20 Doug Evans <dje@google.com>
2319
2320 PR server/17147
2321 * remote.c (putpkt_binary): Add text to error message.
2322
2323 2014-07-20 Yao Qi <yao@codesourcery.com>
2324
2325 * eval.c: Remove "Chill" from comments.
2326 * gdbtypes.h: Likewise.
2327 * symtab.h: Likewise.
2328
2329 2014-07-20 Yao Qi <yao@codesourcery.com>
2330
2331 * std-operator.def: Update comments to TERNOP_SLICE.
2332
2333 2014-07-20 Yao Qi <yao@codesourcery.com>
2334
2335 * std-operator.def: Remove BINOP_RANGE.
2336 * breakpoint.c (watchpoint_exp_is_const): Update.
2337 * expprint.c (dump_subexp_body_standard): Likewise.
2338 * eval.c (init_array_element): Remove dead code.
2339 (evaluate_subexp_standard): Likewise.
2340
2341 2014-07-20 Yao Qi <yao@codesourcery.com>
2342
2343 * std-operator.def: Remove BINOP_IN.
2344 * breakpoint.c (watchpoint_exp_is_const): Update.
2345 * eval.c (evaluate_subexp_standard): Likewise.
2346 * expprint.c (dump_subexp_body_standard): Likewise.
2347
2348 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2349
2350 * microblaze-tdep.c (microblaze_register_names): Add
2351 the rshr and rslr register names.
2352 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2353 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2354 Use of tdesc_numbered_register. Use of
2355 microblaze_register_g_packet_guesses. Use of
2356 tdesc_use_registers. Use of set_gdbarch_register_type.
2357 (microblaze_register_g_packet_guesses): New.
2358 * microblaze-tdep.h (microblaze_reg_num): Add
2359 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2360 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2361 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2362 * features/microblaze-core.xml: New file.
2363 * features/microblaze-stack-protect.xml: New file.
2364 * features/microblaze-with-stack-protect.c: New file.
2365 * features/microblaze-with-stack-protect.xml: New file.
2366 * features/microblaze.xml: New file.
2367 * features/microblaze.c: New file.
2368 * features/Makefile (microblaze-with-stack-protect): Add
2369 microblaze-with-stack-protect microblaze and microblaze-expedite.
2370 * regformats/microblaze-with-stack-protect.dat: New file.
2371 * regformats/microblaze.dat: New file.
2372 * doc/gdb.texinfo (MicroBlaze Features): Added.
2373
2374 2014-07-18 Tom Tromey <tromey@redhat.com>
2375
2376 * exec.c (exec_ops): Now static.
2377 * exec.h (exec_ops): Don't declare.
2378
2379 2014-07-18 Tom Tromey <tromey@redhat.com>
2380
2381 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2382 to find_target_beneath.
2383 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2384 find_target_beneath.
2385 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2386
2387 2014-07-18 Tom Tromey <tromey@redhat.com>
2388
2389 PR gdb/17130:
2390 * utils.c (quit): Use target_supports_terminal_ours.
2391 * target.h (target_supports_terminal_ours): Declare.
2392 * target.c (target_supports_delete_record): Don't check
2393 to_delete_record against NULL.
2394 (target_supports_terminal_ours): New function.
2395
2396 2014-07-18 Tom Tromey <tromey@redhat.com>
2397
2398 PR gdb/17130:
2399 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2400 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2401 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2402 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2403 * windows-nat.c (windows_xfer_partial): Always delegate.
2404 * record-btrace.c (record_btrace_xfer_partial): Simplify
2405 delegation.
2406 (record_btrace_fetch_registers, record_btrace_store_registers)
2407 (record_btrace_prepare_to_store, record_btrace_resume)
2408 (record_btrace_wait, record_btrace_find_new_threads)
2409 (record_btrace_thread_alive): Likewise.
2410 * procfs.c (procfs_xfer_partial): Always delegate.
2411 * corelow.c (core_xfer_partial): Always delegate.
2412 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2413
2414 2014-07-18 Tom Tromey <tromey@redhat.com>
2415
2416 * exec.c (exec_make_note_section): Move earlier.
2417
2418 2014-07-17 Doug Evans <dje@google.com>
2419
2420 PR gdb/17170
2421 * maint.c (count_symtabs_and_blocks): Handle NULL
2422 current_program_space.
2423 (report_command_stats): Check global enabled flag in addition to
2424 recorded enabled flag.
2425 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2426
2427 2014-07-16 Pedro Alves <palves@redhat.com>
2428
2429 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2430
2431 2014-07-16 Tom Tromey <tromey@redhat.com>
2432
2433 * target.h (struct target_ops) <to_delete_record>: Reformat
2434 comment.
2435
2436 2014-07-16 Tom Tromey <tromey@redhat.com>
2437
2438 * target-delegates.c: Rebuild.
2439
2440 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2441
2442 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2443 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2444 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2445 (avr_pointer_to_address): Likewise.
2446 (avr_address_class_type_flags): New function.
2447 (avr_address_class_type_flags_to_name): Likewise.
2448 (avr_address_class_name_to_type_flags): Likewise.
2449 (avr_gdbarch_init): Set address_class_type_flags,
2450 address_class_type_flags_to_name and
2451 address_class_name_to_type_flags.
2452
2453 2014-07-15 Pedro Alves <palves@redhat.com>
2454
2455 * linux-nat.c (kill_callback): Save errno and work with saved
2456 copy.
2457
2458 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2459
2460 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2461
2462 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2463
2464 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2465 breakpoint support correctly.
2466
2467 2014-07-14 Pedro Alves <palves@redhat.com>
2468
2469 * utils.c (prompt_for_continue): Call target_terminal_ours.
2470
2471 2014-07-14 Pedro Alves <palves@redhat.com>
2472
2473 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2474 catch_errors. Don't re-enable stdin or notify observers where,
2475 and rethrow error.
2476 (fetch_inferior_event_wrapper): Delete.
2477
2478 2014-07-14 Pedro Alves <palves@redhat.com>
2479
2480 PR gdb/17072
2481 * top.c: Include "inf-loop.h".
2482 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2483 field.
2484 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2485 was async before.
2486 (gdb_readline_wrapper): Store whether the target is async, and
2487 make it sync.
2488
2489 2014-07-14 Pedro Alves <palves@redhat.com>
2490
2491 PR gdb/17072
2492 * top.c (gdb_readline_wrapper_line): Tweak comment.
2493 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2494 the input handler callback.
2495
2496 2014-07-14 Pedro Alves <palves@redhat.com>
2497
2498 PR gdb/17072
2499 * main.c: Include event-top.h.
2500 (handle_command_errors): New function.
2501 (catch_command_errors, catch_command_errors_const): Use it.
2502
2503 2014-07-14 Pedro Alves <palves@redhat.com>
2504
2505 * exceptions.c (catch_command_errors, catch_command_errors_const):
2506 Moved to main.c.
2507 * exceptions.h (catch_command_errors_ftype)
2508 (catch_command_errors_const_ftype): Moved to main.c.
2509 (catch_command_errors, catch_command_errors_const): Delete
2510 declarations.
2511 * main.c (catch_command_errors_ftype)
2512 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2513 (catch_command_errors, catch_command_errors_const)): Moved here
2514 from exceptions.c and make static.
2515
2516 2014-07-14 Pedro Alves <palves@redhat.com>
2517
2518 * exceptions.c (print_any_exception): Delete.
2519 (catch_exceptions_with_msg): Use exception_print instead of
2520 print_any_exception.
2521 (catch_errors): Use exception_fprintf instead of
2522 print_any_exception.
2523 (catch_command_errors, catch_command_errors_const): Use
2524 exception_print instead of print_any_exception.
2525
2526 2014-07-14 Pedro Alves <palves@redhat.com>
2527
2528 * infcall.c (run_inferior_call): Set 'sync_execution' while
2529 running the inferior call.
2530
2531 2014-07-14 Pedro Alves <palves@redhat.com>
2532
2533 * value.c (value_contents_equal): Delete function.
2534 * value.h (value_contents_equal): Delete declaration.
2535
2536 2014-07-14 Tom Tromey <tromey@redhat.com>
2537
2538 PR exp/17106:
2539 * gdbtypes.c (is_dynamic_type_internal): New function, from
2540 is_dynamic_type.
2541 (is_dynamic_type): Rewrite.
2542 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2543 (resolve_dynamic_struct): Likewise.
2544 (resolve_dynamic_type_internal): New function, from
2545 resolve_dynamic_type.
2546 (resolve_dynamic_type): Rewrite.
2547
2548 2014-07-14 Tom Tromey <tromey@redhat.com>
2549
2550 * target.c (target_require_runnable): Also check record_stratum.
2551 Update comment.
2552
2553 2014-07-11 Yao Qi <yao@codesourcery.com>
2554
2555 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2556 thumb_instruction_restores_sp return true.
2557
2558 2014-07-11 Yao Qi <yao@codesourcery.com>
2559
2560 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2561 (thumb_in_function_epilogue_p): Call
2562 thumb_instruction_restores_sp.
2563
2564 2014-07-11 Yao Qi <yao@codesourcery.com>
2565
2566 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2567 'add sp, #imm'.
2568 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2569
2570 2014-07-11 Gary Benson <gbenson@redhat.com>
2571
2572 * amd64-linux-nat.c (gdbcore.h): Remove include.
2573 (regset.h): Likewise.
2574 (nat/linux-btrace.h): Likewise.
2575 (btrace.h): Likewise.
2576 (gdb_assert.h): Likewise.
2577 (string.h): Likewise.
2578 (sys/uio.h): Likewise.
2579 (sys/debugreg.h): Likewise.
2580 (sys/syscall.h): Likewise.
2581 (sys/procfs.h): Likewise.
2582 (sys/user.h): Likewise.
2583 (asm/ptrace.h): Likewise.
2584 (i386-nat.h): Likewise.
2585 * i386-linux-nat.c (i386-nat.h): Likewise.
2586 (regset.h): Likewise.
2587 (target.h): Likewise.
2588 (linux-nat.h): Likewise.
2589 (nat/linux-btrace.h): Likewise.
2590 (btrace.h): Likewise.
2591 (gdb_assert.h): Likewise.
2592 (string.h): Likewise.
2593 (sys/uio.h): Likewise.
2594 (sys/user.h): Likewise.
2595 (sys/procfs.h): Likewise.
2596 (sys/reg.h): Likewise.
2597 (sys/debugreg.h): Likewise.
2598 (ORIG_EAX): Remove definition.
2599
2600 2014-07-11 Gary Benson <gbenson@redhat.com>
2601
2602 * i386-linux-nat.h: New file.
2603 * x86-linux-nat.h: Likewise.
2604 * x86-linux-nat.c: Likewise.
2605 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2606 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2607 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2608 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2609 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2610 (PTRACE_SETREGSET): Likewise.
2611 (arch_lwp_info): Now in x86-linux-nat.c.
2612 (have_ptrace_getregset): Now in x86-linux-nat.h.
2613 (x86_linux_dr_get): Now in x86-linux-nat.c.
2614 (x86_linux_dr_set): Likewise.
2615 (x86_linux_dr_get_addr): Likewise.
2616 (x86_linux_dr_get_control): Likewise.
2617 (x86_linux_dr_get_status): Likewise.
2618 (update_debug_registers_callback): Likewise.
2619 (x86_linux_dr_set_control): Likewise.
2620 (x86_linux_dr_set_addr): Likewise.
2621 (x86_linux_prepare_to_resume): Likewise.
2622 (x86_linux_new_thread): Likewise.
2623 (x86_linux_new_fork): Likewise.
2624 (x86_linux_get_thread_area): Likewise.
2625 (super_post_startup_inferior): Likewise.
2626 (x86_linux_child_post_startup_inferior): Likewise.
2627 (AMD64_LINUX_USER64_CS): Likewise.
2628 (AMD64_LINUX_X32_DS): Likewise.
2629 (x86_linux_read_description): Likewise.
2630 (x86_linux_enable_btrace): Likewise.
2631 (x86_linux_disable_btrace): Likewise.
2632 (x86_linux_teardown_btrace): Likewise.
2633 (x86_linux_read_btrace): Likewise.
2634 (x86_linux_create_target): Likewise.
2635 (x86_linux_add_target): Likewise.
2636 * i386-linux-nat.c (x86-linux-nat.h): New include.
2637 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2638 (PTRACE_SETREGSET): Likewise.
2639 (arch_lwp_info): Now in x86-linux-nat.c.
2640 (have_ptrace_getregset): Now in x86-linux-nat.h.
2641 (x86_linux_dr_get): Now in x86-linux-nat.c.
2642 (x86_linux_dr_set): Likewise.
2643 (x86_linux_dr_get_addr): Likewise.
2644 (x86_linux_dr_get_control): Likewise.
2645 (x86_linux_dr_get_status): Likewise.
2646 (update_debug_registers_callback): Likewise.
2647 (x86_linux_dr_set_control): Likewise.
2648 (x86_linux_dr_set_addr): Likewise.
2649 (x86_linux_prepare_to_resume): Likewise.
2650 (x86_linux_new_thread): Likewise.
2651 (x86_linux_new_fork): Likewise.
2652 (x86_linux_get_thread_area): Likewise.
2653 (super_post_startup_inferior): Likewise.
2654 (x86_linux_child_post_startup_inferior): Likewise.
2655 (AMD64_LINUX_USER64_CS): Likewise.
2656 (AMD64_LINUX_X32_DS): Likewise.
2657 (x86_linux_read_description): Likewise.
2658 (x86_linux_enable_btrace): Likewise.
2659 (x86_linux_disable_btrace): Likewise.
2660 (x86_linux_teardown_btrace): Likewise.
2661 (x86_linux_read_btrace): Likewise.
2662 (x86_linux_create_target): Likewise.
2663 (x86_linux_add_target): Likewise.
2664
2665 2014-07-11 Gary Benson <gbenson@redhat.com>
2666
2667 * amd64-linux-nat.c: Comment and whitespace changes.
2668 * i386-linux-nat.c: Comment and whitespace changes.
2669
2670 2014-07-11 Gary Benson <gbenson@redhat.com>
2671
2672 * amd64-linux-nat.c (x86_linux_create_target): New function.
2673 (x86_linux_add_target): Likewise.
2674 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2675 * i386-linux-nat.c (x86_linux_create_target): New function.
2676 (x86_linux_add_target): Likewise.
2677 (_initialize_i386_linux_nat): Delegate to the above new functions.
2678
2679 2014-07-11 Gary Benson <gbenson@redhat.com>
2680
2681 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2682 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2683 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2684 (ps_get_thread_area): Delegate to the above.
2685
2686 2014-07-11 Gary Benson <gbenson@redhat.com>
2687
2688 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2689 x86_linux_read_description. All uses updated. amd64-specific
2690 code conditionalized. Conditionalized i386-specific code added.
2691 Redundant cast removed.
2692 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2693 x86_linux_read_description. All uses updated. i386-specific
2694 code conditionalized. Conditionalized amd64-specific code added.
2695 One sizeof replaced with the actual type it is describing.
2696
2697 2014-07-11 Gary Benson <gbenson@redhat.com>
2698
2699 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2700 x86_linux_dr_get. All uses updated.
2701 (amd64_linux_dr_set): Renamed to
2702 x86_linux_dr_set. All uses updated.
2703 (amd64_linux_dr_get_addr): Renamed to
2704 x86_linux_dr_get_addr. All uses updated.
2705 (amd64_linux_dr_get_control): Renamed to
2706 x86_linux_dr_get_control. All uses updated.
2707 (amd64_linux_dr_get_status): Renamed to
2708 x86_linux_dr_get_status. All uses updated.
2709 (amd64_linux_dr_set_control): Renamed to
2710 x86_linux_dr_set_control. All uses updated.
2711 (amd64_linux_dr_set_addr): Renamed to
2712 x86_linux_dr_set_addr. All uses updated.
2713 (amd64_linux_prepare_to_resume): Renamed to
2714 x86_linux_prepare_to_resume. All uses updated.
2715 (amd64_linux_new_thread): Renamed to
2716 x86_linux_new_thread. All uses updated.
2717 (amd64_linux_new_fork): Renamed to
2718 x86_linux_new_fork. All uses updated.
2719 (amd64_linux_child_post_startup_inferior): Renamed to
2720 x86_linux_child_post_startup_inferior. All uses updated.
2721 (amd64_linux_enable_btrace): Renamed to
2722 x86_linux_enable_btrace. All uses updated.
2723 (amd64_linux_disable_btrace): Renamed to
2724 x86_linux_disable_btrace. All uses updated.
2725 (amd64_linux_teardown_btrace): Renamed to
2726 x86_linux_teardown_btrace. All uses updated.
2727 (amd64_linux_read_btrace): Renamed to
2728 x86_linux_read_btrace. All uses updated.
2729 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2730 x86_linux_dr_get. All uses updated.
2731 (i386_linux_dr_set): Renamed to
2732 x86_linux_dr_set. All uses updated.
2733 (i386_linux_dr_get_addr): Renamed to
2734 x86_linux_dr_get_addr. All uses updated.
2735 (i386_linux_dr_get_control): Renamed to
2736 x86_linux_dr_get_control. All uses updated.
2737 (i386_linux_dr_get_status): Renamed to
2738 x86_linux_dr_get_status. All uses updated.
2739 (i386_linux_dr_set_control): Renamed to
2740 x86_linux_dr_set_control. All uses updated.
2741 (i386_linux_dr_set_addr): Renamed to
2742 x86_linux_dr_set_addr. All uses updated.
2743 (i386_linux_prepare_to_resume): Renamed to
2744 x86_linux_prepare_to_resume. All uses updated.
2745 (i386_linux_new_thread): Renamed to
2746 x86_linux_new_thread. All uses updated.
2747 (i386_linux_new_fork): Renamed to
2748 x86_linux_new_fork. All uses updated.
2749 (i386_linux_child_post_startup_inferior): Renamed to
2750 x86_linux_child_post_startup_inferior. All uses updated.
2751 (i386_linux_enable_btrace): Renamed to
2752 x86_linux_enable_btrace. All uses updated.
2753 (i386_linux_disable_btrace): Renamed to
2754 x86_linux_disable_btrace. All uses updated.
2755 (i386_linux_teardown_btrace): Renamed to
2756 x86_linux_teardown_btrace. All uses updated.
2757 (i386_linux_read_btrace): Renamed to
2758 x86_linux_read_btrace. All uses updated.
2759
2760 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2761
2762 * remote.c (extended_remote_post_attach): New function.
2763 (init_extended_remote_ops): Install it as to_post_attach method.
2764
2765 2014-07-09 Pedro Alves <palves@redhat.com>
2766
2767 * infcmd.c (attach_command_post_wait): Don't call
2768 target_terminal_inferior here.
2769 (attach_command): Call it here instead.
2770
2771 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2772
2773 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2774 field.
2775 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2776 from varobj.c, with additional checks.
2777 (c_varobj_ops): Fill in is_path_expr_parent field.
2778 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2779 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2780 field.
2781 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2782 ops method.
2783 (varobj_default_is_path_expr_parent): New function.
2784 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2785 (varobj_default_is_path_expr_parent): Declare new function.
2786
2787 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2788
2789 * infcmd.c (finish_backward): Turn internal error into normal error.
2790
2791 2014-07-07 Pedro Alves <palves@redhat.com>
2792
2793 PR gdb/17096
2794 * remote.c (async_handle_remote_sigint)
2795 (async_handle_remote_sigint_twice): Call
2796 gdb_call_async_signal_handler instead of
2797 mark_async_signal_handler.
2798
2799 2014-07-07 Tom Tromey <tromey@redhat.com>
2800
2801 * target-delegates.c: Rebuild.
2802 * target.c (target_info_record): Remove.
2803 * record.c (info_record_command): Unconditionally call
2804 to_info_record.
2805 * target.h (struct target_ops) <to_info_record>: Use
2806 TARGET_DEFAULT_IGNORE.
2807 (target_info_record): Remove.
2808
2809 2014-07-07 Tom Tromey <tromey@redhat.com>
2810
2811 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2812 TARGET_DEFAULT_NORETURN.
2813 * target.c (generic_tls_error): New function.
2814 (target_translate_tls_address): Don't search target stack.
2815 * target-delegates.c: Rebuild.
2816 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2817 stack.
2818 * linux-thread-db.c (thread_db_get_thread_local_address):
2819 Unconditionally call beneath target.
2820
2821 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2822
2823 * cli/cli-logging.c (pop_output_files): Assign targerr to
2824 gdb_stdtargerr.
2825
2826 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2827
2828 * MAINTAINERS (Write After Approval): Update my email address.
2829
2830 2014-07-02 Gary Benson <gbenson@redhat.com>
2831
2832 * proc-service.c (ps_xfer_memory): Update comment.
2833 (ps_pstop): Remove unused function.
2834 (ps_pcontinue): Likewise.
2835 (ps_lstop): Likewise.
2836 (ps_lcontinue): Likewise.
2837 (ps_lgetxregsize): Likewise.
2838 (ps_lgetxregs): Likewise.
2839 (ps_lsetxregs): Likewise.
2840 (ps_plog): Likewise.
2841 (ps_ptread): Likewise.
2842 (ps_ptwrite): Likewise.
2843
2844 2014-07-01 Mark Wielaard <mjw@redhat.com>
2845
2846 * dwarf2read.c (add_array_cv_type): New function.
2847 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2848 (read_tag_volatile_type): Likewise.
2849
2850 2014-07-01 Tom Tromey <tromey@redhat.com>
2851
2852 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2853 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2854 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2855 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2856 * command.h (cmd_cfunc_ftype): Move earlier.
2857 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2858 (add_com, add_info): Use cmd_cfunc_ftype.
2859
2860 2014-06-30 Tom Tromey <tromey@redhat.com>
2861
2862 * symtab.c (operator_chars): Make parameters and return type
2863 const.
2864 (file_matches): Make "files" const.
2865 (struct search_symbols_data) <files>: Now const.
2866 (search_symbols): Make "regexp" and "files" parameters const.
2867 Update.
2868 (symtab_symbol_info): Remove cast.
2869 (rbreak_command): Update.
2870 * symtab.h (search_symbols): Update.
2871
2872 2014-06-27 Yao Qi <yao@codesourcery.com>
2873
2874 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2875 Change parameter type to 'struct thread_info *'. Caller
2876 updated.
2877 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2878 Update declaration.
2879 * dummy-frame.c (struct dummy_frame_id): New.
2880 (dummy_frame_id_eq): New function.
2881 (struct dummy_frame) <id>: Change its type to 'struct
2882 dummy_frame_id'.
2883 (dummy_frame_push): Add parameter ptid and save it in
2884 dummy_frame_id.
2885 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2886 inferior_ptid.
2887 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2888 to inferior_ptid.
2889 (lookup_dummy_frame): Change parameter type to 'struct
2890 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2891 instead of frame_id_eq.
2892 (dummy_frame_pop): Add parameter ptid. Callers updated.
2893 Update comments. Compose dummy_frame_id and pass it to
2894 lookup_dummy_frame.
2895 (dummy_frame_discard): Add parameter ptid.
2896 (dummy_frame_sniffer): Compose dummy_frame_id and call
2897 dummy_frame_id_eq instead of frame_id_eq.
2898 (fprint_dummy_frames): Print ptid.
2899 * dummy-frame.h: Remove comments.
2900 (dummy_frame_push): Add ptid in declaration.
2901 (dummy_frame_pop, dummy_frame_discard): Likewise.
2902
2903 2014-06-26 Tom Tromey <tromey@redhat.com>
2904
2905 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2906 * command.h (error_no_arg): Update.
2907
2908 2014-06-26 Tom Tromey <tromey@redhat.com>
2909
2910 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2911 (do_show_command): Make "arg" const.
2912 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2913
2914 2014-06-26 Tom Tromey <tromey@redhat.com>
2915
2916 * record-full.c (record_full_get_bookmark): Make "args" const.
2917 (record_full_goto_bookmark): Make "raw_bookmark" const.
2918 * record.c (record_goto): New function.
2919 (cmd_record_goto): Use it. Now static.
2920 * record.h (record_goto): Declare.
2921 (cmd_record_goto): Remove declaration.
2922 * target-delegates.c: Rebuild.
2923 * target.h (struct target_ops) <to_get_bookmark,
2924 to_goto_bookmark>: Make parameter const.
2925
2926 2014-06-26 Tom Tromey <tromey@redhat.com>
2927
2928 * defs.h (generic_load): Update.
2929 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2930 * monitor.c (monitor_load): Make "args" const.
2931 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2932 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2933 const.
2934 (mips_load): Make "file" const.
2935 * remote-sim.c (gdbsim_load): Make "args" const.
2936 * remote.c (remote_load): Make "name" const.
2937 * symfile.c (generic_load): Make "args" const.
2938 * target-delegates.c: Rebuild.
2939 * target.c (target_load): Make "arg" const.
2940 (debug_to_load): Make "args" const.
2941 * target.h (struct target_ops) <to_load>: Make parameter const.
2942 (target_load): Update.
2943
2944 2014-06-26 Tom Tromey <tromey@redhat.com>
2945
2946 PR symtab/16902:
2947 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2948 (dwarf2_physname, read_partial_die)
2949 (guess_partial_die_structure_name, fixup_partial_die)
2950 (guess_full_die_structure_name, anonymous_struct_prefix)
2951 (dwarf2_name): Use per-BFD obstack.
2952
2953 2014-06-26 Yao Qi <yao@codesourcery.com>
2954
2955 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2956 dummyframe and this_id into inner block below.
2957
2958 2014-06-26 Yao Qi <yao@codesourcery.com>
2959
2960 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2961 with "signal_pass[0]" in the initialization of signal_pass.
2962
2963 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2964
2965 * record-btrace.c (record_btrace_generating_corefile)
2966 (record_btrace_prepare_to_generate_core)
2967 (record_btrace_done_generating_core): New.
2968 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2969 (record_btrace_store_registers, record_btrace_prepare_to_store):
2970 Forward request when generating a core file.
2971 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2972 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2973 to_done_generating_core.
2974
2975 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2976
2977 * target.h (target_ops) <to_prepare_to_generate_core>
2978 <to_done_generating_core>: New.
2979 (target_prepare_to_generate_core, target_done_generating_core): New.
2980 * target.c (target_prepare_to_generate_core)
2981 (target_done_generating_core): New.
2982 * target-delegates.c: Regenerate.
2983 * gcore.c: (write_gcore_file): Rename to ...
2984 (write_gcore_file_1): ...this.
2985 (write_gcore_file): Call target_prepare_to_generate_core
2986 and target_done_generating_core.
2987
2988 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2989
2990 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2991 * gcore.c (write_gcore_file): Free memory returned from
2992 make_corefile_notes.
2993 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2994 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2995
2996 2014-06-24 Yao Qi <yao@codesourcery.com>
2997
2998 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2999 (arm_linux_init_abi): Set skip_trampoline_code with
3000 gdbarch_skip_trampoline_code instead of
3001 find_solib_trampoline_target.
3002
3003 2014-06-24 Yao Qi <yao@codesourcery.com>
3004
3005 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3006 arm_skip_bx_reg returns non-zero.
3007
3008 2014-06-24 Yao Qi <yao@codesourcery.com>
3009
3010 * arm-tdep.c (arm_skip_bx_reg): New function.
3011 (arm_skip_stub): Call arm_skip_bx_reg.
3012
3013 2014-06-23 Don Breazeal <donb@codesourcery.com>
3014
3015 * MAINTAINERS: Add myself as write-after-approval maintainer.
3016
3017 2014-06-23 Pedro Alves <palves@redhat.com>
3018
3019 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3020 DR_CONTROL before setting DR0..DR3.
3021 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3022 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3023 bits of DR_CONTROL related to the debug register slot being
3024 disabled. If all slots are vacant, clear local slowdown as well,
3025 and assert DR_CONTROL is 0.
3026
3027 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3028
3029 * python/lib/gdb/command/xmethods.py
3030 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3031 current progspace only if the string "progspace" matches LOCUS_RE.
3032
3033 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3034
3035 Fix --with-system-readline with readline-6.3 patch 5.
3036 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3037 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3038 types.
3039
3040 2014-06-20 Tom Tromey <tromey@redhat.com>
3041
3042 * dwarf2read.c (dw2_get_real_path): Use correct type in
3043 OBSTACK_CALLOC.
3044 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3045
3046 2014-06-20 Gary Benson <gbenson@redhat.com>
3047
3048 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3049 * common/glibc_thread_db.h: Likewise.
3050 * common/i386-cpuid.h: Likewise.
3051 * common/i386-gcc-cpuid.h: Likewise.
3052 * common/linux-btrace.h: Likewise.
3053 * common/linux-osdata.h: Likewise.
3054 * common/linux-procfs.h: Likewise.
3055 * common/linux-ptrace.h: Likewise.
3056 * common/mips-linux-watch.h: Likewise.
3057 * common/linux-btrace.c: Moved to nat.
3058 * common/linux-osdata.c: Likewise.
3059 * common/linux-procfs.c: Likewise.
3060 * common/linux-ptrace.c: Likewise.
3061 * common/mips-linux-watch.c: Likewise.
3062 * nat/gdb_thread_db.h: Moved from common.
3063 * nat/glibc_thread_db.h: Likewise.
3064 * nat/i386-cpuid.h: Likewise.
3065 * nat/i386-gcc-cpuid.h: Likewise.
3066 * nat/linux-btrace.c: Likewise.
3067 * nat/linux-btrace.h: Likewise.
3068 * nat/linux-osdata.c: Likewise.
3069 * nat/linux-osdata.h: Likewise.
3070 * nat/linux-procfs.c: Likewise.
3071 * nat/linux-procfs.h: Likewise.
3072 * nat/linux-ptrace.c: Likewise.
3073 * nat/linux-ptrace.h: Likewise.
3074 * nat/mips-linux-watch.c: Likewise.
3075 * nat/mips-linux-watch.h: Likewise.
3076 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3077 (object file files): Reordered.
3078 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3079 of glibc_thread_db.h.
3080
3081 2014-06-20 Gary Benson <gbenson@redhat.com>
3082
3083 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3084 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3085 (i386_dr_low): Likewise.
3086 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3087 (i386_dr_low_set_addr): Likewise.
3088 (i386_dr_low_get_addr): Likewise.
3089 (i386_dr_low_can_set_control): Likewise.
3090 (i386_dr_low_set_control): Likewise.
3091 (i386_dr_low_get_control): Likewise.
3092 (i386_dr_low_get_status): Likewise.
3093 (i386_get_debug_register_length): Likewise.
3094 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3095 (i386_dr_low): Likewise.
3096 * nat/i386-dregs.c (i386-low.h): Remove include.
3097 (i386-nat.h): Likewise.
3098 (nat/i386-dregs.h): New include.
3099 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3100 (i386_dr_low_set_addr): Likewise.
3101 (i386_dr_low_get_addr): Likewise.
3102 (i386_dr_low_can_set_control): Likewise.
3103 (i386_dr_low_set_control): Likewise.
3104 (i386_dr_low_get_control): Likewise.
3105 (i386_dr_low_get_status): Likewise.
3106 (i386_get_debug_register_length): Likewise.
3107 (debug_hw_points): Likewise.
3108
3109 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3110
3111 * Makefile.in (SFILES): Add d-exp.y.
3112 (YYFILES): Add d-exp.c.
3113 (YYOBJ): Add d-exp.o.
3114 (local-maintainer-clean): Delete d-exp.c.
3115 * d-exp.y: New file.
3116 * d-lang.h (d_parse): New declaration.
3117 (d_error): New declaration.
3118 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3119 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3120 PREC_ORDER operators.
3121 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3122
3123 2014-06-19 Yao Qi <yao@codesourcery.com>
3124
3125 * gdbthread.h (any_running): Remove the declaration.
3126 * thread.c (any_running): Remove.
3127
3128 2014-06-19 Yao Qi <yao@codesourcery.com>
3129
3130 * gdbthread.h (struct thread_info) <state>: Change its type to
3131 'enum thread_state'. Update comments.
3132
3133 2014-06-19 Pedro Alves <palves@redhat.com>
3134
3135 * gdbthread.h (ALL_THREADS): Delete.
3136 (ALL_NON_EXITED_THREADS): New macro.
3137 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3138 instead of ALL_THREADS.
3139 * infrun.c (find_thread_needs_step_over)
3140 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3141 instead of ALL_THREADS.
3142 * record-btrace.c (record_btrace_open)
3143 (record_btrace_stop_recording, record_btrace_close)
3144 (record_btrace_is_replaying, record_btrace_resume)
3145 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3146 * remote.c (append_pending_thread_resumptions): Likewise.
3147 * thread.c (thread_apply_all_command): Likewise.
3148
3149 2014-06-19 Gary Benson <gbenson@redhat.com>
3150
3151 * i386-nat.c (i386_stopped_by_watchpoint):
3152 Use i386_dr_stopped_by_watchpoint.
3153 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3154 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3155
3156 2014-06-19 Gary Benson <gbenson@redhat.com>
3157
3158 * nat/i386-dregs.c: New file.
3159 * Makefile.in (i386-dregs.o): New rule.
3160 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3161 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3162 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3163 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3164 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3165 * config/i386/go32.mh (NATDEPFILES): Likewise.
3166 * config/i386/linux.mh (NATDEPFILES): Likewise.
3167 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3168 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3169 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3170 * i386-nat.h (debug_hw_points): New declaration.
3171 * i386-nat.c (breakpoint.h): Remove include.
3172 (command.h): Likewise.
3173 (target.h): Likewise.
3174 (gdb_assert.h): Likewise.
3175 (debug_hw_points): Made nonstatic.
3176 (debug_printf): Now in i386-dregs.c.
3177 (TARGET_HAS_DR_LEN_8): Likewise.
3178 (DR_CONTROL_SHIFT): Likewise.
3179 (DR_CONTROL_SIZE): Likewise.
3180 (DR_RW_EXECUTE): Likewise.
3181 (DR_RW_WRITE): Likewise.
3182 (DR_RW_READ): Likewise.
3183 (DR_RW_IORW): Likewise.
3184 (DR_LEN_1): Likewise.
3185 (DR_LEN_2): Likewise.
3186 (DR_LEN_4): Likewise.
3187 (DR_LEN_8): Likewise.
3188 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3189 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3190 (DR_ENABLE_SIZE): Likewise.
3191 (DR_LOCAL_SLOWDOWN): Likewise.
3192 (DR_GLOBAL_SLOWDOWN): Likewise.
3193 (DR_CONTROL_RESERVED): Likewise.
3194 (I386_DR_CONTROL_MASK): Likewise.
3195 (I386_DR_VACANT): Likewise.
3196 (I386_DR_LOCAL_ENABLE): Likewise.
3197 (I386_DR_GLOBAL_ENABLE): Likewise.
3198 (I386_DR_DISABLE): Likewise.
3199 (I386_DR_SET_RW_LEN): Likewise.
3200 (I386_DR_GET_RW_LEN): Likewise.
3201 (I386_DR_WATCH_HIT): Likewise.
3202 (i386_wp_op_t): Likewise.
3203 (i386_show_dr): Likewise.
3204 (i386_length_and_rw_bits): Likewise.
3205 (i386_insert_aligned_watchpoint): Likewise.
3206 (i386_remove_aligned_watchpoint): Likewise.
3207 (i386_handle_nonaligned_watchpoint): Likewise.
3208 (i386_update_inferior_debug_regs): Likewise.
3209 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3210 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3211 (i386_region_ok_for_watchpoint):
3212 Use i386_dr_region_ok_for_watchpoint.
3213 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3214
3215 2014-06-19 Gary Benson <gbenson@redhat.com>
3216
3217 * i386-nat.c (i386_insert_hw_breakpoint): Use
3218 i386_insert_watchpoint.
3219 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3220
3221 2014-06-19 Gary Benson <gbenson@redhat.com>
3222
3223 * i386-nat.c (i386_dr_show): Renamed to
3224 i386_show_dr and made static. All uses updated.
3225 (i386_dr_length_and_rw_bits): Renamed to
3226 i386_length_and_rw_bits and made static.
3227 All uses updated.
3228 (i386_dr_insert_aligned_watchpoint): Renamed to
3229 i386_insert_aligned_watchpoint and made static.
3230 All uses updated.
3231 (i386_dr_remove_aligned_watchpoint): Renamed to
3232 i386_remove_aligned_watchpoint and made static.
3233 All uses updated.
3234 (i386_dr_update_inferior_debug_regs): Renamed to
3235 i386_update_inferior_debug_regs and made static.
3236 All uses updated.
3237 * nat/i386-dregs.h (i386_dr_show): Removed.
3238 (i386_dr_length_and_rw_bits): Likewise.
3239 (i386_dr_insert_aligned_watchpoint): Likewise.
3240 (i386_dr_remove_aligned_watchpoint): Likewise.
3241 (i386_dr_update_inferior_debug_regs): Likewise.
3242
3243 2014-06-19 Gary Benson <gbenson@redhat.com>
3244
3245 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3246 * configure: Regenerate.
3247 * config.in: Likewise.
3248 * main.c (signal.h): New include.
3249 (setup_alternate_signal_stack): New function.
3250 (captured_main): Call the above.
3251 * cp-support.c (signal.h): New include.
3252 (catch_demangler_crashes): New flag.
3253 (SIGJMP_BUF): New define.
3254 (SIGSETJMP): Likewise.
3255 (SIGLONGJMP): Likewise.
3256 (gdb_demangle_jmp_buf): New static global.
3257 (gdb_demangle_attempt_core_dump): Likewise.
3258 (gdb_demangle_signal_handler): New function.
3259 (gdb_demangle): If catch_demangler_crashes is set, install the
3260 above signal handler before calling bfd_demangle, and restore
3261 the original signal handler afterwards. Display the offending
3262 symbol and call demangler_warning the first time a segmentation
3263 fault is caught.
3264 (_initialize_cp_support): New maint set/show command.
3265
3266 2014-06-19 Gary Benson <gbenson@redhat.com>
3267
3268 * utils.h (resource_limit_kind): New enum.
3269 (can_dump_core): New declaration.
3270 (warn_cant_dump_core): Likewise.
3271 (dump_core): Likewise.
3272 * utils.c (dump_core): Made nonstatic. Added new
3273 parameter "limit_kind".
3274 (can_dump_core): Made nonstatic. Moved printing code to...
3275 (warn_cant_dump_core): New function.
3276 (can_dump_core_warn): Likewise.
3277 (internal_vproblem): Replace calls to can_dump_core with
3278 calls to can_dump_core_warn. Supply new argument to each.
3279
3280 2014-06-19 Gary Benson <gbenson@redhat.com>
3281
3282 * utils.h (demangler_vwarning): New declaration.
3283 (demangler_warning): Likewise.
3284 * utils.c (struct internal_problem)
3285 <user_settable_should_quit>: New field.
3286 <user_settable_should_dump_core>: Likewise
3287 (internal_error_problem): Add values for above new fields.
3288 (internal_warning_problem): Likewise.
3289 (demangler_warning_problem): New static global.
3290 (demangler_vwarning): New function.
3291 (demangler_warning): Likewise.
3292 (add_internal_problem_command): Selectively add commands.
3293 (_initialize_utils): New internal problem command.
3294 * maint.c (maintenance_demangler_warning): New function.
3295 (_initialize_maint_cmds): New command.
3296
3297 2014-06-18 Tom Tromey <tromey@redhat.com>
3298
3299 * f-valprint.c (info_common_command_for_block): Update.
3300 * symtab.h (struct general_symbol_info) <common_block>: Now
3301 const.
3302
3303 2014-06-18 Tom Tromey <tromey@redhat.com>
3304
3305 * symtab.h (struct symtab) <blockvector>: Now const.
3306 * ada-lang.c (ada_add_global_exceptions): Update.
3307 * buildsym.c (augment_type_symtab): Update.
3308 * dwarf2read.c (dw2_lookup_symbol): Update.
3309 * jit.c (finalize_symtab): Update.
3310 * jv-lang.c (add_class_symtab_symbol): Update.
3311 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3312 Update.
3313 * objfiles.c (objfile_relocate1): Update.
3314 * psymtab.c (lookup_symbol_aux_psymtabs)
3315 (maintenance_check_psymtabs): Update.
3316 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3317 Update.
3318 * spu-tdep.c (spu_catch_start): Update.
3319 * symmisc.c (dump_symtab_1): Update.
3320 * symtab.c (lookup_global_symbol_from_objfile)
3321 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3322 (basic_lookup_transparent_type_quick)
3323 (basic_lookup_transparent_type, find_pc_sect_symtab)
3324 (find_pc_sect_line, search_symbols): Update.
3325 * block.c (find_block_in_blockvector): Make "bl" const.
3326 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3327 const.
3328 (blockvector_contains_pc): Make "bv" const.
3329 (block_for_pc_sect): Update.
3330 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3331 (blockvector_contains_pc): Update.
3332 * breakpoint.c (resolve_sal_pc): Update.
3333 * inline-frame.c (block_starting_point_at): Update.
3334
3335 2014-06-18 Tom Tromey <tromey@redhat.com>
3336
3337 * completer.c (complete_line): Make "line_buffer" const.
3338 * completer.h (complete_line): Update.
3339
3340 2014-06-18 Tom Tromey <tromey@redhat.com>
3341
3342 * symtab.c (add_macro_name): Remove unneeded cast.
3343
3344 2014-06-18 Tom Tromey <tromey@redhat.com>
3345
3346 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3347 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3348
3349 2014-06-18 Tom Tromey <tromey@redhat.com>
3350
3351 * probe.c (info_probes_for_ops): Make "arg" const.
3352 * probe.h (info_probes_for_ops): Update.
3353
3354 2014-06-18 Tom Tromey <tromey@redhat.com>
3355
3356 * varobj.c (varobj_create): Update.
3357 * valops.c (value_of_this): Update.
3358 * tracepoint.c (add_local_symbols, scope_info): Update.
3359 * symtab.h (struct general_symbol_info) <block>: Now const.
3360 * symtab.c (skip_prologue_sal)
3361 (default_make_symbol_completion_list_break_on)
3362 (skip_prologue_using_sal): Update.
3363 * stack.h (iterate_over_block_locals)
3364 (iterate_over_block_local_vars): Update.
3365 * stack.c (print_frame_args): Update.
3366 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3367 parameter const.
3368 (get_selected_block): Make return type const.
3369 * python/py-frame.c (frapy_block): Update.
3370 * python/py-block.c (gdbpy_block_for_pc): Update.
3371 * p-exp.y (%union) <bval>: Now const.
3372 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3373 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3374 * m2-exp.y (%union) <bval>: Now const.
3375 * linespec.c (get_current_search_block): Make return type const.
3376 (create_sals_line_offset, find_label_symbols): Update.
3377 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3378 Update.
3379 (block_starting_point_at): Make "block" const.
3380 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3381 (check_exception_resume): Update.
3382 * guile/scm-frame.c (gdbscm_frame_block): Update.
3383 * guile/scm-block.c (gdbscm_lookup_block): Update.
3384 * frame.h (get_frame_block): Update.
3385 (get_selected_block): Make return type const.
3386 * frame.c (frame_id_inner): Update.
3387 * f-valprint.c (info_common_command_for_block)
3388 (info_common_command): Update.
3389 * dwarf2loc.c (dwarf2_find_location_expression)
3390 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3391 (locexpr_describe_location_piece): Update.
3392 * c-exp.y (%union) <bval>: Now const.
3393 * breakpoint.c (resolve_sal_pc): Update.
3394 * blockframe.c (get_frame_block):Make return type const.
3395 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3396 (block_innermost_frame): Update.
3397 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3398 (block_for_pc, block_for_pc_sect): Update.
3399 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3400 'pblock' const.
3401 (block_for_pc_sect, block_for_pc): Make return type const.
3402 * ax-gdb.c (gen_expr): Update.
3403 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3404 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3405 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3406 (ada_read_var_value): Update.
3407 * ada-exp.y (struct name_info) <block>: Now const.
3408 (%union): Likewise.
3409 (block_lookup): Constify.
3410
3411 2014-06-18 Gary Benson <gbenson@redhat.com>
3412
3413 * nat/i386-dregs.h: New file.
3414 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3415 * i386-nat.h (i386-dregs.h): New include.
3416 (DR_FIRSTADDR): Now in i386-dregs.h.
3417 (DR_LASTADDR): Likewise.
3418 (DR_NADDR): Likewise.
3419 (DR_STATUS): Likewise.
3420 (DR_CONTROL): Likewise.
3421 (i386_debug_reg_state): Likewise.
3422 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3423
3424 2014-06-18 Don Breazeal <donb@codesourcery.com>
3425
3426 * breakpoint.c (set_longjmp_breakpoint): Call
3427 momentary_breakpoint_from_master with additional argument.
3428 (set_longjmp_breakpoint_for_call_dummy): Call
3429 momentary_breakpoint_from_master with additional argument.
3430 (set_std_terminate_breakpoint): Call
3431 momentary_breakpoint_from_master with additional argument.
3432 (momentary_breakpoint_from_master): Add argument to function
3433 definition and use it to initialize structure member flag.
3434 (clone_momentary_breakpoint): Call
3435 momentary_breakpoint_from_master with additional argument.
3436 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3437 member flags set in momentary_breakpoint_from_master.
3438
3439 2014-06-18 Gary Benson <gbenson@redhat.com>
3440
3441 * i386-nat.c (i386_show_dr): Renamed to
3442 i386_dr_show and made nonstatic. All uses updated.
3443 (i386_length_and_rw_bits): Renamed to
3444 i386_dr_length_and_rw_bits and made nonstatic.
3445 All uses updated.
3446 (i386_insert_aligned_watchpoint): Renamed to
3447 i386_dr_insert_aligned_watchpoint and made nonstatic.
3448 All uses updated.
3449 (i386_remove_aligned_watchpoint): Renamed to
3450 i386_dr_remove_aligned_watchpoint and made nonstatic.
3451 All uses updated.
3452 (i386_update_inferior_debug_regs): Renamed to
3453 i386_dr_update_inferior_debug_regs and made nonstatic.
3454 All uses updated.
3455
3456 2014-06-18 Gary Benson <gbenson@redhat.com>
3457
3458 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3459 (i386_dr_low_can_set_control): Likewise.
3460 (i386_dr_low_set_addr): Likewise.
3461 (i386_dr_low_set_control): Likewise.
3462 (i386_dr_low_get_addr): Likewise.
3463 (i386_dr_low_get_status): Likewise.
3464 (i386_dr_low_get_control): Likewise.
3465 (i386_insert_aligned_watchpoint): Use new macros.
3466 (i386_update_inferior_debug_regs): Likewise.
3467 (i386_stopped_data_address): Likewise.
3468
3469 2014-06-18 Gary Benson <gbenson@redhat.com>
3470
3471 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3472 New parameter. All uses updated.
3473
3474 2014-06-18 Gary Benson <gbenson@redhat.com>
3475
3476 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3477 All uses updated.
3478
3479 2014-06-18 Gary Benson <gbenson@redhat.com>
3480
3481 * i386-nat.c (debug_printf): New macro.
3482 (i386_get_debug_register_length): Likewise.
3483 (TARGET_HAS_DR_LEN_8): Use above macro.
3484 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3485 and printf_unfiltered. Use phex to format values.
3486
3487 2014-06-18 Gary Benson <gbenson@redhat.com>
3488
3489 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3490 Make const.
3491
3492 2014-06-18 Gary Benson <gbenson@redhat.com>
3493
3494 * i386-nat.c: Comment changes.
3495
3496 2014-06-18 Gary Benson <gbenson@redhat.com>
3497
3498 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3499
3500 2014-06-18 Gary Benson <gbenson@redhat.com>
3501
3502 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3503 (i386_insert_aligned_watchpoint): Likewise.
3504 (i386_remove_aligned_watchpoint): Likewise.
3505 (i386_handle_nonaligned_watchpoint): Likewise.
3506
3507 2014-06-18 Gary Benson <gbenson@redhat.com>
3508
3509 * i386-nat.c: Whitespace changes.
3510
3511 2014-06-17 Samuel Bronson <naesten@gmail.com>
3512
3513 * MAINTAINERS: Update Roland McGrath's email address.
3514 Thanks to Sergio Durigan Junior for pointing out that he left
3515 Red Hat a while ago, and giving me a current address.
3516
3517 2014-06-17 Tom Tromey <tromey@redhat.com>
3518
3519 * utils.h (savestring): Remove declaration.
3520
3521 2014-06-17 Tom Tromey <tromey@redhat.com>
3522
3523 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3524
3525 2014-06-16 Keith Seitz <keiths@redhat.com>
3526
3527 PR mi/15863
3528 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3529 to update the varobj if inferior_ptid is null_ptid.
3530
3531 2014-06-16 Tom Tromey <tromey@redhat.com>
3532
3533 * target.h (struct target_ops) <to_info_proc>: Make parameter
3534 const.
3535 (target_info_proc): Update.
3536 * target.c (target_info_proc): Make "args" const.
3537 * procfs.c (procfs_info_proc): Update.
3538 * linux-tdep.c (linux_info_proc): Update.
3539 (linux_core_info_proc_mappings): Make "args" const.
3540 (linux_core_info_proc): Update.
3541 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3542 * gdbarch.c: Rebuild.
3543 * gdbarch.h: Rebuild.
3544 * corelow.c (core_info_proc): Update.
3545
3546 2014-06-16 Tom Tromey <tromey@redhat.com>
3547
3548 * target.h (struct target_ops) <to_disconnect>: Make parameter
3549 const.
3550 (target_disconnect): Update.
3551 * target.c (target_disconnect): Make "args" const.
3552 * target-delegates.c: Rebuild.
3553 * remote.c (remote_disconnect): Update.
3554 * record.h (record_disconnect): Update.
3555 * record.c (record_disconnect): Update.
3556 * inf-child.c (inf_child_disconnect): Update.
3557
3558 2014-06-16 Tom Tromey <tromey@redhat.com>
3559
3560 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3561 * target.c (debug_to_rcmd, default_rcmd): Update.
3562 * target-delegates.c: Rebuild.
3563 * remote.c (remote_rcmd): Update.
3564 * monitor.c (monitor_rcmd): Update.
3565
3566 2014-06-16 Pedro Alves <palves@redhat.com>
3567
3568 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3569 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3570 have OBJF_SHARED set.
3571 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3572 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3573 instead of OBJF_USERLOADED.
3574 * objfiles.h (OBJF_SHARED): Update comment.
3575 (userloaded_objfile_contains_address_p): Rename to ...
3576 (shared_objfile_contains_address_p): ... this, and update
3577 comments.
3578 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3579 new objfile.
3580 (remove_symbol_file_command): Skip objfiles that don't have
3581 OBJF_SHARED set.
3582
3583 2014-06-16 Tom Tromey <tromey@redhat.com>
3584
3585 * minsyms.h (prim_record_minimal_symbol)
3586 (prim_record_minimal_symbol_and_info): Update comments.
3587
3588 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3589
3590 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3591 or --without-guile, according to how GDB was built.
3592
3593 2014-06-13 Tom Tromey <tromey@redhat.com>
3594
3595 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3596 to help_list.
3597 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3598 to help_list.
3599 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3600 help_list.
3601 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3602 help_list.Pass all_commands, not -1, to help_list.
3603 * cli/cli-dump.c (dump_command, append_command)
3604 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3605 (binary_dump_command, binary_append_command): Pass all_commands,
3606 not -1, to help_list.
3607 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3608 -1, to help_list.
3609 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3610 -1, to help_list.
3611 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3612 help_list.
3613 * top.c (set_history): Pass all_commands, not -1, to help_list.
3614 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3615 all_commands, not -1, to help_list.
3616 * symfile.c (overlay_command): Pass all_commands, not -1, to
3617 help_list.
3618 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3619 help_list.
3620 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3621 help_list.
3622 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3623 -1, to help_list.
3624 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3625 not -1, to help_list.
3626 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3627 not -1, to help_list.
3628 * maint.c (maintenance_command, maintenance_info_command)
3629 (maintenance_print_command, maintenance_set_cmd): Pass
3630 all_commands, not -1, to help_list.
3631 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3632 help_list.
3633 * language.c (set_check): Pass all_commands, not -1, to help_list.
3634 * infcmd.c (unset_command): Pass all_commands, not -1, to
3635 help_list.
3636 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3637 help_list.
3638 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3639 help_list.
3640 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3641 help_list.
3642 * breakpoint.c (save_command): Pass all_commands, not -1, to
3643 help_list.
3644 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3645 all_commands, not -1, to help_list.
3646
3647 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3648
3649 * regcache.c (struct register_to_invalidate): New structure.
3650 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3651 functions.
3652 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3653
3654 2014-06-12 Yao Qi <yao@codesourcery.com>
3655
3656 * varobj.c (varobj_get_num_children): Call
3657 varobj_is_dynamic_p.
3658 (varobj_list_children): Likewise.
3659 (varobj_update): Likewise. Update comments.
3660
3661 2014-06-12 Yao Qi <yao@codesourcery.com>
3662
3663 * varobj.c (varobj_pretty_printed_p): Rename to ...
3664 (varobj_is_dynamic_p): ... this. New function.
3665 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3666 (varobj_is_dynamic_p): Declare.
3667 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3668 (mi_print_value_p, varobj_update_one): Likewise.
3669
3670 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3671 Yao Qi <yao@codesourcery.com>
3672
3673 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3674 (varobj_get_iterator): Wrap up code for pretty-printer by
3675 "#if HAVE_PYTHON" and "#endif".
3676 (update_dynamic_varobj_children): Likewise.
3677
3678 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3679 Yao Qi <yao@codesourcery.com>
3680
3681 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3682 gdb_python_initialized is false. Move some code from varobj.c.
3683 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3684 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3685 (struct varobj_item): Moved to varobj-iter.h".
3686 (varobj_clear_saved_item): New function.
3687 (update_dynamic_varobj_children): Move python-related code to
3688 py-varobj.c.
3689 (free_variable): Call varobj_clear_saved_item and
3690 varobj_iter_delete.
3691
3692 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3693 Yao Qi <yao@codesourcery.com>
3694
3695 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3696 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3697 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3698 (py-varobj.o): New rule.
3699 * python/py-varobj.c: New file.
3700 * python/python-internal.h (py_varobj_get_iterator): Declare.
3701 * varobj-iter.h: New file.
3702 * varobj.c: Include "varobj-iter.h"
3703 (struct varobj) <child_iter>: Change its type from "PyObject *"
3704 to "struct varobj_iter *".
3705 <saved_item>: Likewise.
3706 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3707 [HAVE_PYTHON] (varobj_get_iterator): New function.
3708 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3709 python-specific code to python/py-varobj.c.
3710 (install_visualizer): Call varobj_iter_delete instead of
3711 Py_XDECREF.
3712 * varobj.h (varobj_ensure_python_env): Declare.
3713
3714 2014-06-12 Yao Qi <yao@codesourcery.com>
3715
3716 * varobj.c (struct varobj_item): New structure.
3717 (create_child_with_value): Update declaration.
3718 (varobj_add_child): Replace arguments 'name' and 'value' with
3719 'item'. All callers updated.
3720 (install_dynamic_child): Likewise.
3721 (update_dynamic_varobj_children): Likewise.
3722 (varobj_add_child): Likewise.
3723 (create_child_with_value): Likewise.
3724
3725 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3726
3727 * NEWS: Create a new section for the next release branch.
3728 Rename the section of the current branch, now that it has
3729 been cut.
3730
3731 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3732
3733 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3734 * version.in: Bump version to 7.8.50.DATE-cvs.
3735
3736 2014-06-11 Pedro Alves <palves@redhat.com>
3737
3738 PR remote/17028
3739 * ser-mingw.c (net_windows_socket_check_pending): New function.
3740 (net_windows_select_thread): Ignore spurious wakeups. Use
3741 net_windows_socket_check_pending.
3742 (net_windows_wait_handle): Check for pending events with
3743 ioctlsocket, through net_windows_socket_check_pending, instead of
3744 checking the socket's event.
3745
3746 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3747
3748 * python/python-internal.h (gdb_PyObject_GetAttrString)
3749 (gdb_PyObject_HasAttrString): New inline function definitions.
3750 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3751 char * of the second argument to PyObject_GetAttrString.
3752
3753 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3754
3755 * serial.c (serial_write): Fix index of character to be printed
3756 in call to serial_logchar when serial debug traces are enabled.
3757
3758 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3759
3760 * gdbtypes (resolve_dynamic_range): Add function description.
3761
3762 2014-06-09 Pedro Alves <palves@redhat.com>
3763
3764 * linux-nat.c (linux_child_follow_fork): Initialize status with
3765 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3766 inner block. Only pass the signal to PTRACE_DETACH if in pass
3767 state.
3768
3769 2014-06-09 Gary Benson <gbenson@redhat.com>
3770
3771 * common/signals.c (gdb_signal_from_host): Reorder to separate
3772 the always-available ANSI-standard signals from the signals that
3773 require checking.
3774 (do_gdb_signal_to_host): Likewise.
3775 * proc-events.c (signal_table): Likewise.
3776
3777 2014-06-08 Hui Zhu <hui@codesourcery.com>
3778
3779 * common/linux-ptrace.c (linux_disable_event_reporting): New
3780 function.
3781 * common/linux-ptrace.h (linux_disable_event_reporting): New
3782 declaration.
3783 * linux-nat.c (linux_child_follow_fork): Do a single step before
3784 detach.
3785
3786 2014-06-07 Keith Seitz <keiths@redhat.com>
3787
3788 Revert:
3789 PR c++/16253
3790 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3791 from symbol_matches_domain in symtab.c. All local callers
3792 of symbol_matches_domain updated.
3793 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3794 search STRUCT_DOMAIN.
3795 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3796 independently. standard_lookup will do that automatically.
3797 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3798 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3799 (cp_lookup_symbol_in_namespace): Likewise.
3800 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3801 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3802 may return a STRUCT_DOMAIN match.
3803 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3804 * cp-support.c: Include language.h.
3805 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3806 VAR_DOMAIN.
3807 * psymtab.c (match_partial_symbol): Compare the requested
3808 domain with the symbol's domain directly.
3809 (lookup_partial_symbol): Likewise.
3810 * symtab.c (lookup_symbol_in_language): Explain when/why
3811 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3812 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3813 appropriate languages.
3814 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3815 and moved to ada-lang.c
3816 (lookup_block_symbol): Explain that this function only returns
3817 symbol matching the requested DOMAIN.
3818 Compare the requested domain with the symbol's domain directly.
3819 (iterate_over_symbols): Compare the requested domain with the
3820 symbol's domain directly.
3821 * symtab.h (symbol_matches_domain): Remove.
3822
3823 2014-06-06 Doug Evans <xdje42@gmail.com>
3824
3825 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3826 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3827 (gdbscm_guile_version_is_at_least): Declare.
3828 (gdbscm_scm_string_to_int): Declare.
3829 * guile/guile.c (gdbscm_guile_major_version): New global.
3830 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3831 (guile_datadir): New static global.
3832 (gdbscm_guile_data_directory): New function.
3833 (initialize_scheme_side): Update.
3834 (misc_guile_functions): Add guile-data-directory.
3835 (initialize_gdb_module): Fetch guile version number.
3836 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3837 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3838 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3839 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3840 comments.
3841 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3842 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3843 * guile/scm-value.c (gdbscm_value_to_string): Only call
3844 scm_port_conversion_strategy if Guile version >= 2.0.6.
3845
3846 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3847
3848 * main.c (print_gdb_help): Add -q and --silent.
3849
3850 2014-06-06 Gary Benson <gbenson@redhat.com>
3851
3852 * common/signals.c: Remove preprocessor conditionals for
3853 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3854 SIGSEGV and SIGTERM.
3855 * proc-events.c: Likewise.
3856
3857 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3858
3859 * symfile.c (symfile_free_objfile): Remove restriction to
3860 OBJF_USERLOADED.
3861 * symfile-mem.c (symbol_file_add_from_memory): Call
3862 add_target_sections_of_objfile.
3863
3864 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3865
3866 * guile/scm-value.c (gdbscm_history_append_x): Use
3867 'vlscm_get_value_smob_arg_unsafe' instead of
3868 'vlscm_scm_to_value'.
3869
3870 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3871
3872 PR mi/15806
3873 * utils.c (printchar): Don't escape at all if quoter is NUL.
3874 Update function documentation to clarify effect of parameter
3875 QUOTER.
3876 * remote.c (escape_buffer): Pass '\\' as the quoter to
3877 fputstrn_unfiltered.
3878 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3879 generate the output.
3880 (mi_solib_unloaded): Same.
3881
3882 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3883
3884 * development.sh: Delete.
3885 * Makefile.in (config.status): Adjust dependency on development.sh.
3886 * configure.ac: Adjust development.sh source call.
3887 * configure: Regenerate.
3888
3889 2014-06-04 Doug Evans <xdje42@gmail.com>
3890
3891 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3892 is_scheme_bkpt, spec.
3893 (bpscm_make_breakpoint_smob): Initialize new members.
3894 (gdbscm_create_breakpoint_x): Split into two ...
3895 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3896 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3897 (scheme_function breakpoint_functions): Update.
3898 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3899 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3900 register-breakpoint!.
3901
3902 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3903
3904 PR server/17023
3905 * mem-break.c (z_type_supported): Return zero if
3906 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3907
3908 2014-06-04 Tom Tromey <tromey@redhat.com>
3909
3910 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3911 value_from_contents_and_address_unresolved.
3912 (ada_template_to_fixed_record_type_1): Likewise.
3913 (ada_which_variant_applies): Likewise.
3914 * value.h (value_from_contents_and_address_unresolved): Declare.
3915 * value.c (value_from_contents_and_address_unresolved): New
3916 function.
3917 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3918 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3919 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3920
3921 2014-06-04 Tom Tromey <tromey@redhat.com>
3922
3923 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3924
3925 2014-06-04 Tom Tromey <tromey@redhat.com>
3926
3927 * procfs.c (procfs_attach): Make "args" const.
3928 * windows-nat.c (windows_attach): Make "args" const.
3929 * nto-procfs.c (procfs_attach): Make "args" const.
3930 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3931 * go32-nat.c (go32_attach): Make "args" const.
3932 * gnu-nat.c (gnu_attach): Make "args" const.
3933 * darwin-nat.c (darwin_attach): Make "args" const.
3934 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3935 * linux-nat.c (linux_nat_attach): Make "args" const.
3936 * remote.c (extended_remote_attach_1, extended_remote_attach):
3937 Make "args" const.
3938 * target.h (struct target_ops) <to_attach>: Make "args" const.
3939 (find_default_attach): Likewise.
3940 * utils.c (parse_pid_to_attach): Make "args" const.
3941 * utils.h (parse_pid_to_attach): Update.
3942
3943 2014-06-04 Tom Tromey <tromey@redhat.com>
3944
3945 * target-delegates.c: Rebuild.
3946 * target.c (default_thread_address_space): New function.
3947 (target_thread_address_space): Simplify.
3948 * target.h (struct target_ops) <to_thread_address_space>: Add
3949 TARGET_DEFAULT_FUNC.
3950
3951 2014-06-04 Doug Evans <xdje42@gmail.com>
3952
3953 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3954
3955 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3956
3957 * record-btrace.c: Include event-loop.h and inf-loop.h.
3958 (record_btrace_resume_exec_dir)
3959 (record_btrace_async_inferior_event_handler)
3960 (record_btrace_handle_async_inferior_event): New.
3961 (record_btrace_open): Create async event handler.
3962 (record_btrace_close): Delete async event handler.
3963 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3964 Mark async event handler.
3965 (record_btrace_execution_direction): New.
3966 (init_record_btrace_ops): Initialize to_execution_direction.
3967
3968 2014-06-03 Doug Evans <xdje42@gmail.com>
3969
3970 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3971 (gdbscm_make_parameter): Ditto.
3972
3973 2014-06-03 Doug Evans <dje@google.com>
3974
3975 * exec.c (exec_close_1): Call clear_section_table instead of
3976 resize_section_table.
3977 (clear_section_table): New function.
3978 (resize_section_table): Make static. Rename arg num_added to
3979 adjustment.
3980 * exec.h (clear_section_table): Declare.
3981 (resize_section_table): Delete.
3982 * progspace.c (release_program_space): Call clear_section_table
3983 instead of resize_section_table.
3984
3985 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3986
3987 * NEWS (Python Scripting): Add entry about the new xmethods
3988 feature.
3989
3990 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3991
3992 * python/py-xmethods.c: New file.
3993 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3994 (objfpy_dealloc): XDECREF on the new xmethods field.
3995 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3996 field.
3997 (objfpy_get_xmethods): New function.
3998 (objfile_getset): New entry 'xmethods'.
3999 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4000 (pspy_dealloc): XDECREF on the new xmethods field.
4001 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4002 field.
4003 (pspy_get_xmethods): New function.
4004 (pspace_getset): New entry 'xmethods'.
4005 * python/python-internal.h: Add declarations for new functions.
4006 * python/python.c (_initialize_python): Invoke
4007 gdbpy_initialize_xmethods.
4008 * python/lib/gdb/__init__.py (xmethods): New
4009 attribute.
4010 * python/lib/gdb/xmethod.py: New file.
4011 * python/lib/gdb/command/xmethods.py: New file.
4012
4013 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4014
4015 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4016 best match method returned by find_overload_match is an xmethod.
4017 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4018 the best matching operator returned by find_overload_match is an
4019 xmethod.
4020 * valops.c: #include "extension.h".
4021 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4022 Return void. The list of matching source methods is returned in
4023 "fn_list" and a vector of matching debug method workers is
4024 returned in "xm_worker_vec". Update all callers.
4025 (value_find_oload_method_list): Likewise.
4026 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4027 non-NULL, then the index of the best matching method in this
4028 vector is returned. Update all callers.
4029 (find_overload_match): Include xmethods while performing overload
4030 resolution.
4031
4032 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4033
4034 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4035 * extension-priv.h (struct extension_language_ops): Add the
4036 xmethod interface.
4037 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4038 get_matching_xmethod_workers, get_xmethod_argtypes,
4039 invoke_xmethod, free_xmethod_worker,
4040 free_xmethod_worker_vec): New functions.
4041 * extension.h: #include "common/vec.h".
4042 New function declarations.
4043 (struct xmethod_worker): New struct.
4044 (VEC (xmethod_worker_ptr)): New vector type.
4045 (xmethod_worker_ptr): New typedef.
4046 (xmethod_worker_vec): Likewise.
4047 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4048 builtin_type.
4049 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4050 (struct builtin_type): New field "xmethod".
4051 * valarith.c (value_ptradd): Assert that the value argument is not
4052 lval_xcallable.
4053 * valops.c (value_must_coerce_to_target): Return 0 for
4054 lval_xcallable values.
4055 * value.c (struct value): New field XM_WORKER in the field
4056 LOCATION.
4057 (value_address, value_raw_address): Return 0 for lval_xcallable
4058 values.
4059 (set_value_address): Assert that the value is not an
4060 lval_xcallable.
4061 (value_free): Free the associated xmethod worker when freeing
4062 lval_xcallable values.
4063 (set_value_component_location): Assert that the WHOLE value is not
4064 lval_xcallable.
4065 (value_of_xmethod, call_xmethod): New functions.
4066 * value.h: Declare "struct xmethod_worker".
4067 Declare new functions value_of_xmethod, call_xmethod.
4068
4069 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4070 Pedro Alves <palves@redhat.com>
4071
4072 PR breakpoints/17000
4073 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4074 New function, extracted from software_breakpoint_inserted_here_p.
4075 (software_breakpoint_inserted_here_p): Replace factored out code
4076 by call to find_non_raw_software_breakpoint_inserted_here.
4077 (bp_target_info_copy_insertion_state): New function.
4078 (bkpt_insert_location): Handle the case of a single-step
4079 breakpoint already inserted at the same address.
4080 (bkpt_remove_location): Handle the case of a single-step
4081 breakpoint still inserted at the same address.
4082 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4083 breakpoint already inserted at the same address.
4084 (deprecated_remove_raw_breakpoint): Handle the case of a
4085 non-raw breakpoint still inserted at the same address.
4086 (find_single_step_breakpoint): New function, extracted from
4087 single_step_breakpoint_inserted_here_p.
4088 (find_single_step_breakpoint): New function,
4089 factored out from single_step_breakpoint_inserted_here_p.
4090 (single_step_breakpoint_inserted_here_p): Reimplement.
4091
4092 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4093
4094 Pushed by Joel Brobecker <brobecker@adacore.com>
4095 * source.c (show_substitute_path_command): Fix display of matching
4096 substitution rules.
4097
4098 2014-06-03 Gary Benson <gbenson@redhat.com>
4099
4100 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4101
4102 2014-06-02 Doug Evans <xdje42@gmail.com>
4103
4104 Add parameter support for Guile.
4105 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4106 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4107 (scm-param.o): New rule.
4108 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4109 (gdbscm_misc_error): Declare.
4110 (gdbscm_canonicalize_command_name): Declare.
4111 (gdbscm_scm_to_host_string): Declare.
4112 (gdbscm_scm_from_host_string): Declare.
4113 (gdbscm_initialize_parameters): Declare.
4114 * guile/guile.c (initialize_gdb_module): Call
4115 gdbscm_initialize_parameters.
4116 * guile/lib/gdb.scm: Export parameter symbols.
4117 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4118 cmdscm_canonicalize_name and made public. All callers updated.
4119 * guile/scm-exception.c (gdbscm_misc_error): New function.
4120 * guile/scm-param.c: New file.
4121 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4122 (gdbscm_scm_to_host_string): New function.
4123 (gdbscm_scm_from_host_string): New function.
4124 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4125
4126 2014-06-02 Doug Evans <xdje42@gmail.com>
4127
4128 Add command support for Guile.
4129 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4130 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4131 (scm-cmd.o): New rule.
4132 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4133 (gdbscm_user_error_p): Declare.
4134 (gdbscm_parse_command_name): Declare.
4135 (gdbscm_valid_command_class_p): Declare.
4136 (gdbscm_initialize_commands): Declare.
4137 * guile/guile.c (initialize_gdb_module): Call
4138 gdbscm_initialize_commands.
4139 * guile/lib/gdb.scm: Export command symbols.
4140 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4141 (throw-user-error): New function.
4142 * guile/scm-cmd.c: New file.
4143 * guile/scm-exception.c (user_error_symbol): New static global.
4144 (gdbscm_user_error_p): New function.
4145 (gdbscm_initialize_exceptions): Set user_error_symbol.
4146 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4147
4148 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4149
4150 * top.c (command_loop): Handle comments here...
4151 (command_line_input): ... not here.
4152
4153 2014-06-02 Doug Evans <xdje42@gmail.com>
4154
4155 Add progspace support for Guile.
4156 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4157 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4158 (scm-progspace.o): New rule.
4159 * guile/guile-internal.h (pspace_smob): New typedef.
4160 (psscm_pspace_smob_pretty_printers): Declare.
4161 (psscm_pspace_smob_from_pspace): Declare.
4162 (psscm_scm_from_pspace): Declare.
4163 * guile/guile.c (initialize_gdb_module): Call
4164 gdbscm_initialize_pspaces.
4165 * guile/lib/gdb.scm: Export progspace symbols.
4166 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4167 support.
4168 (append-pretty-printer!): Ditto.
4169 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4170 Implement.
4171 * guile/scm-progspace.c: New file.
4172
4173 2014-06-03 Alan Modra <amodra@gmail.com>
4174
4175 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4176 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4177
4178 2014-06-02 Doug Evans <dje@google.com>
4179
4180 Add support for skeletonless type units.
4181 * dwarf2read.c (struct dwarf2_per_objfile): New member
4182 n_allocated_type_units.
4183 (struct dwarf2_per_objfile) <tu_stats>: New member
4184 nr_all_type_units_reallocs.
4185 (create_signatured_type_table_from_index): Initialize
4186 n_allocated_type_units
4187 (create_all_type_units): Ditto.
4188 (add_type_unit): Move up in file. New arg slot.
4189 All callers updated. Increase space for all_type_units more
4190 efficiently.
4191 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4192 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4193 (lookup_dwp_signatured_type): Ditto.
4194 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4195 All callers updated.
4196 (build_type_psymtabs_1): Leave type_unit_groups as
4197 NULL if no TUs present.
4198 (print_tu_stats): New function.
4199 (process_skeletonless_type_unit): New function.
4200 (process_dwo_file_for_skeletonless_type_units): New
4201 function.
4202 (process_skeletonless_type_units): New function.
4203 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4204 Call print tu_stats if debugging enabled.
4205
4206 2014-06-02 Pedro Alves <palves@redhat.com>
4207
4208 * breakpoint.c (build_target_command_list): Don't build a command
4209 list if we have any duplicate location that isn't a dprintf.
4210
4211 2014-06-02 Pedro Alves <palves@redhat.com>
4212
4213 * breakpoint.c (dprintf_breakpoint_hit): New function.
4214 (initialize_breakpoint_ops): Install it as dprintf's
4215 breakpoint_hit method.
4216
4217 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4218
4219 * source.c (substitute_path_rule_matches): Simplify using
4220 filename_ncmp instead of FILENAME_CMP.
4221
4222 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4223
4224 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4225
4226 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4227
4228 * configure.ac: When Guile is available, check for the
4229 availability of 'scm_new_smob'.
4230 * configure, config.h.in: Regenerate.
4231 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4232 function.
4233
4234 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4235
4236 * frame.c (struct frame_info): Add stop_string field.
4237 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4238 (get_prev_frame_always): Old content moved into
4239 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4240 TRY_CATCH, handle MEMORY_ERROR exceptions.
4241 (frame_stop_reason_string): New function definition.
4242 * frame.h (unwind_stop_reason_to_string): Extend comment to
4243 mention frame_stop_reason_string.
4244 (frame_stop_reason_string): New function declaration.
4245 * stack.c (frame_info): Switch to frame_stop_reason_string.
4246 (backtrace_command_1): Switch to frame_stop_reason_string.
4247 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4248 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4249 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4250
4251 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4252
4253 * frame.c (frame_stop_reason_string): Rename to ...
4254 (unwind_stop_reason_to_string): this.
4255 * frame.h (frame_stop_reason_string): Rename to ...
4256 (unwind_stop_reason_to_string): this.
4257 * stack.c (frame_info): Update call to frame_stop_reason_string.
4258 (backtrace_command_1): Likewise.
4259 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4260 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4261
4262 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4263
4264 * frame.c (remove_prev_frame): New function.
4265 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4266 remove_prev_frame.
4267
4268 2014-05-29 Pedro Alves <palves@redhat.com>
4269
4270 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4271 and make it const. When a single-step decays to a continue,
4272 clear 'step', not 'hw_step'. Pass whether the caller wanted
4273 to step to user_visible_resume_ptid, not what we ask the
4274 target to do.
4275
4276 2014-05-29 Pedro Alves <palves@redhat.com>
4277
4278 * infrun.c (process_event_stop_test, handle_step_into_function)
4279 (handle_step_into_function_backward): Adjust.
4280 Don't set the even thread's stop_step and call stop_waiting before
4281 calling end_stepping_range. Instead do that ...
4282 (end_stepping_range): ... here. Take an ecs pointer parameter.
4283
4284 2014-05-29 Pedro Alves <palves@redhat.com>
4285
4286 * infrun.c (stop_stepping): Rename to ...
4287 (stop_waiting): ... this.
4288 (proceed): Update comment.
4289 (process_event_stop_test, handle_inferior_event)
4290 (handle_signal_stop, handle_step_into_function)
4291 (handle_step_into_function_backward): Update.
4292
4293 2014-05-29 Pedro Alves <palves@redhat.com>
4294
4295 * infcall.c (run_inferior_call): Don't check whether the current
4296 thread is running after the proceed call.
4297
4298 2014-05-29 Pedro Alves <palves@redhat.com>
4299 Tom Tromey <tromey@redhat.com>
4300
4301 * NEWS: Mention "maint set target-async", "set mi-async", and that
4302 background execution commands are now always available.
4303 * target.h (target_async_permitted): Update comment.
4304 * target.c (target_async_permitted, target_async_permitted_1):
4305 Default to 1.
4306 (set_target_async_command): Rename to ...
4307 (maint_set_target_async_command): ... this.
4308 (show_target_async_command): Rename to ...
4309 (maint_show_target_async_command): ... this.
4310 (_initialize_target): Adjust.
4311 * infcmd.c (prepare_execution_command): Make extern.
4312 * inferior.h (prepare_execution_command): Declare.
4313 * infrun.c (set_observer_mode): Leave target async alone.
4314 * mi/mi-interp.c (mi_interpreter_init): Install
4315 mi_on_sync_execution_done as sync_execution_done observer.
4316 (mi_on_sync_execution_done): New function.
4317 (mi_execute_command_input_handler): Don't print the prompt if we
4318 just started a synchronous command with an async target.
4319 (mi_on_resume): Check sync_execution before printing prompt.
4320 * mi/mi-main.h (mi_async_p): Declare.
4321 * mi/mi-main.c: Include gdbcmd.h.
4322 (mi_async_p): New function.
4323 (mi_async, mi_async_1): New globals.
4324 (set_mi_async_command, show_mi_async_command, mi_async): New
4325 functions.
4326 (exec_continue): Call prepare_execution_command.
4327 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4328 (mi_execute_async_cli_command): Use mi_async_p.
4329 (_initialize_mi_main): Install "set mi-async". Make
4330 "target-async" a deprecated alias.
4331
4332 2014-05-29 Pedro Alves <palves@redhat.com>
4333
4334 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4335 (_initialize_cli_interp): Adjust.
4336 * event-loop.c: Include "observer.h".
4337 (start_event_loop): Notify 'command_error' observers instead of
4338 calling display_gdb_prompt. Remove FIXME comment.
4339 * event-top.c (display_gdb_prompt): Remove call into the
4340 interpreters.
4341 * inf-loop.c: Include "observer.h".
4342 (inferior_event_handler): Notify 'command_error' observers instead
4343 of calling display_gdb_prompt.
4344 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4345 observers instead of calling display_gdb_prompt.
4346 * interps.c (interp_set): Don't call display_gdb_prompt.
4347 (current_interp_display_prompt_p): Delete.
4348 * interps.h (interp_prompt_p): Delete declaration.
4349 (interp_prompt_p_ftype): Delete.
4350 (struct interp_procs) <prompt_proc_p>: Delete field.
4351 (current_interp_display_prompt_p): Delete declaration.
4352 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4353 (_initialize_mi_interp): Adjust.
4354 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4355 'command_error' observers.
4356 (tui_on_sync_execution_done, tui_on_command_error): New
4357 functions.
4358 (tui_display_prompt_p): Delete.
4359 (_initialize_tui_interp): Adjust.
4360
4361 2014-05-29 Pedro Alves <palves@redhat.com>
4362
4363 PR gdb/13860
4364 * cli/cli-interp.c: Include infrun.h and observer.h.
4365 (cli_uiout, cli_interp): New globals.
4366 (cli_on_signal_received, cli_on_end_stepping_range)
4367 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4368 functions.
4369 (cli_interpreter_init): Install them as 'end_stepping_range',
4370 'signal_received' 'signal_exited', 'exited' and 'no_history'
4371 observers.
4372 (_initialize_cli_interp): Remove cli_interp local.
4373 * infrun.c (handle_inferior_event): Call the several stop reason
4374 observers instead of printing the stop reason directly.
4375 (end_stepping_range): New function.
4376 (print_end_stepping_range_reason, print_signal_exited_reason)
4377 (print_exited_reason, print_signal_received_reason)
4378 (print_no_history_reason): Make static, and add an uiout
4379 parameter. Print to that instead of to CURRENT_UIOUT.
4380 * infrun.h (print_end_stepping_range_reason)
4381 (print_signal_exited_reason, print_exited_reason)
4382 (print_signal_received_reason print_no_history_reason): New
4383 declarations.
4384 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4385 'mi_uiout'.
4386 <cli_uiout>: New field.
4387 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4388 uiout for CLI output. Install 'signal_received',
4389 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4390 observers.
4391 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4392 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4393 (mi_on_no_history): New functions.
4394 (ui_out_free_cleanup): Delete function.
4395 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4396 instead use the one already stored in the MI interpreter data.
4397 (mi_ui_out): Adjust.
4398 * tui/tui-interp.c: Include infrun.h and observer.h.
4399 (tui_interp): New global.
4400 (tui_on_signal_received, tui_on_end_stepping_range)
4401 (tui_on_signal_exited, tui_on_exited)
4402 (tui_on_no_history): New functions.
4403 (tui_init): Install them as 'end_stepping_range',
4404 'signal_received' 'signal_exited', 'exited' and 'no_history'
4405 observers.
4406 (_initialize_tui_interp): Delete tui_interp local.
4407
4408 2014-05-29 Pedro Alves <palves@redhat.com>
4409
4410 PR gdb/15713
4411 * linux-nat.c (linux_nat_resume_callback): Rename the second
4412 parameter to 'except'. Skip LP if it points to EXCEPT.
4413 (linux_nat_resume): Don't mark the event lwp as not stopped
4414 before resuming sibling lwps. Instead ask
4415 linux_nat_resume_callback to skip the event lwp. Mark it as not
4416 stopped after actually resuming it.
4417 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4418 resuming it.
4419 (wait_lwp): Mark the lwp as stopped here.
4420 (stop_wait_callback): Mark the lwp as not stopped right after
4421 resuming it. Don't mark lwps as stopped here.
4422 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4423 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4424
4425 2014-05-29 Pedro Alves <palves@redhat.com>
4426
4427 PR PR15693
4428 * infrun.c (resume): Determine how much to resume depending on
4429 whether the caller wanted a step, not whether we can hardware step
4430 the target. Mark all threads that we intend to run as running,
4431 unless we're calling an inferior function.
4432 (normal_stop): If the thread is running an infcall, don't finish
4433 thread state.
4434 * target.c (target_resume): Don't mark threads as running here.
4435
4436 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4437
4438 * serial.c (_initialize_serial): Remove support for
4439 the "set remotebaud" and "show remotebaud" commands.
4440 * NEWS: Add entry documenting the removal of that command.
4441
4442 2014-05-28 Yao Qi <yao@codesourcery.com>
4443
4444 * charset.c: Fix typo in comments.
4445
4446 2014-05-27 Gary Benson <gbenson@redhat.com>
4447
4448 * utils.c (internal_vproblem): Prompt for a bug report.
4449
4450 2014-05-26 Andy Wingo <wingo@igalia.com>
4451
4452 * guile/scm-arch.c (arscm_mark_arch_smob):
4453 * guile/scm-block.c (bkscm_mark_block_smob)
4454 (bkscm_mark_block_syms_progress_smob):
4455 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4456 * guile/scm-exception.c (exscm_mark_exception_smob):
4457 * guile/scm-frame.c (frscm_mark_frame_smob):
4458 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4459 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4460 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4461 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4462 (ppscm_mark_pretty_printer_worker_smob):
4463 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4464 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4465 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4466 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4467 mark functions.
4468 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4469 function.
4470
4471 2014-05-26 Andy Wingo <wingo@igalia.com>
4472 Doug Evans <xdje42@gmail.com>
4473
4474 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4475 empty_base_class. All uses updated.
4476 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4477 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4478 Adapt all callers.
4479 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4480 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4481 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4482 (gdbscm_gsmob_has_property_p, add_property_name)
4483 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4484 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4485 (gdb-object-has-property?, gdb-object-properties): Remove.
4486 (gdb-object-kind): Renamed from gsmob-kind.
4487
4488 2014-05-26 Andy Wingo <wingo@igalia.com>
4489
4490 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4491 * configure: Regenerate.
4492
4493 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4494
4495 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4496
4497 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4498
4499 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4500 (replay_memory_access_read_only, replay_memory_access_read_write)
4501 (replay_memory_access_types, replay_memory_access)
4502 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4503 (cmd_set_record_btrace, cmd_show_record_btrace)
4504 (cmd_show_replay_memory_access): New.
4505 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4506 (record_btrace_remove_breakpoint): Replace
4507 record_btrace_allow_memory_access with replay_memory_access.
4508 (_initialize_record_btrace): Add commands.
4509 * NEWS: Announce it.
4510
4511 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4512
4513 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4514
4515 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4516
4517 * MAINTAINERS (Write After Approval): Move self back from
4518 paper trail.
4519
4520 2014-05-22 Pedro Alves <palves@redhat.com>
4521
4522 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4523 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4524 (disable_randomization, enum exec_direction_kind)
4525 (execution_direction, stop_registers, start_remote)
4526 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4527 (wait_for_inferior, normal_stop, get_last_target_status)
4528 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4529 (insert_step_resume_breakpoint_at_sal)
4530 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4531 (set_step_info, print_stop_event, signal_stop_state)
4532 (signal_print_state, signal_pass_state, signal_stop_update)
4533 (signal_print_update, signal_pass_update)
4534 (update_signals_program_target, clear_exit_convenience_vars)
4535 (displaced_step_dump_bytes, update_observer_mode)
4536 (signal_catch_update, gdb_signal_from_command): Move
4537 declarations ...
4538 * infrun.h: ... to this new file.
4539 * amd64-tdep.c: Include infrun.h.
4540 * annotate.c: Include infrun.h.
4541 * arch-utils.c: Include infrun.h.
4542 * arm-linux-tdep.c: Include infrun.h.
4543 * arm-tdep.c: Include infrun.h.
4544 * break-catch-sig.c: Include infrun.h.
4545 * breakpoint.c: Include infrun.h.
4546 * common/agent.c: Include infrun.h instead of inferior.h.
4547 * corelow.c: Include infrun.h.
4548 * event-top.c: Include infrun.h.
4549 * go32-nat.c: Include infrun.h.
4550 * i386-tdep.c: Include infrun.h.
4551 * inf-loop.c: Include infrun.h.
4552 * infcall.c: Include infrun.h.
4553 * infcmd.c: Include infrun.h.
4554 * infrun.c: Include infrun.h.
4555 * linux-fork.c: Include infrun.h.
4556 * linux-nat.c: Include infrun.h.
4557 * linux-thread-db.c: Include infrun.h.
4558 * monitor.c: Include infrun.h.
4559 * nto-tdep.c: Include infrun.h.
4560 * procfs.c: Include infrun.h.
4561 * record-btrace.c: Include infrun.h.
4562 * record-full.c: Include infrun.h.
4563 * remote-m32r-sdi.c: Include infrun.h.
4564 * remote-mips.c: Include infrun.h.
4565 * remote-notif.c: Include infrun.h.
4566 * remote-sim.c: Include infrun.h.
4567 * remote.c: Include infrun.h.
4568 * reverse.c: Include infrun.h.
4569 * rs6000-tdep.c: Include infrun.h.
4570 * s390-linux-tdep.c: Include infrun.h.
4571 * solib-irix.c: Include infrun.h.
4572 * solib-osf.c: Include infrun.h.
4573 * solib-svr4.c: Include infrun.h.
4574 * target.c: Include infrun.h.
4575 * top.c: Include infrun.h.
4576 * windows-nat.c: Include infrun.h.
4577 * mi/mi-interp.c: Include infrun.h.
4578 * mi/mi-main.c: Include infrun.h.
4579 * python/py-threadevent.c: Include infrun.h.
4580
4581 2014-05-22 Pedro Alves <palves@redhat.com>
4582
4583 * infrun.c (handle_inferior_event): Store the exit code for
4584 --return-child-result here, instead of ...
4585 (print_exited_reason): ... here.
4586
4587 2014-05-21 Pedro Alves <palves@redhat.com>
4588
4589 PR gdb/13860
4590 * gdbthread.h (struct thread_control_state): New field
4591 `command_interp'.
4592 * infrun.c (follow_fork): Copy the new thread control field to the
4593 child fork thread.
4594 (clear_proceed_status_thread): Clear the new thread control field.
4595 (proceed): Set the new thread control field.
4596 * interps.h (command_interp): Declare.
4597 * interps.c (command_interpreter): New global.
4598 (command_interp): New function.
4599 (interp_exec): Set `command_interpreter' while here.
4600 * cli-out.c (cli_uiout_dtor): New function.
4601 (cli_ui_out_impl): Install it.
4602 * mi/mi-interp.c: Include cli-out.h.
4603 (mi_cmd_interpreter_exec): Add comment.
4604 (restore_current_uiout_cleanup): New function.
4605 (ui_out_free_cleanup): New function.
4606 (mi_on_normal_stop): If finishing an execution command started by
4607 a CLI command, or any kind of breakpoint-like event triggered,
4608 print the stop event to the output (CLI) stream.
4609 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4610
4611 2014-05-21 Pedro Alves <palves@redhat.com>
4612
4613 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4614 current source line having changed.
4615 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4616 * infrun.c (normal_stop): Adjust call to
4617 set_current_sal_from_frame.
4618 * source.c (clear_lines_listed_range): New function.
4619 (set_current_source_symtab_and_line, identify_source_line): Clear
4620 the lines listed range.
4621 (line_info): Handle the first "info line" after the current source
4622 line having changed.
4623 * stack.c (print_stack_frame): Remove center handling.
4624 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4625 center sal.line.
4626
4627 2014-05-21 Pedro Alves <palves@redhat.com>
4628
4629 * inf-child.c (inf_child_mourn_inferior): New function.
4630 * inf-child.h (inf_child_mourn_inferior): New declaration.
4631 * darwin-nat.c (darwin_mourn_inferior): Use
4632 inf_child_mourn_inferior.
4633 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4634 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4635 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4636 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4637 * windows-nat.c (windows_mourn_inferior): Likewise.
4638
4639 2014-05-21 Doug Evans <xdje42@gmail.com>
4640
4641 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4642
4643 2014-05-21 Doug Evans <xdje42@gmail.com>
4644
4645 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4646 (gdbscm_out_of_range_error): Ditto.
4647 (gdbscm_memory_error): Ditto.
4648 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4649 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4650 (gdbscm_out_of_range_error): Update.
4651 (gdbscm_memory_error): Update.
4652 (gdbscm_scm_to_target_string_unsafe): Delete.
4653
4654 2014-05-21 Pedro Alves <palves@redhat.com>
4655
4656 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4657 globals.
4658 (inf_child_open_target): New function.
4659 (inf_child_open): Use inf_child_open_target to push the target
4660 instead of erroring out.
4661 (inf_child_disconnect, inf_child_close)
4662 (inf_child_maybe_unpush_target): New functions.
4663 (inf_child_target): Install inf_child_disconnect and
4664 inf_child_close. Store a pointer to the returned object.
4665 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4666 declarations.
4667 * target.c (auto_connect_native_target): New global.
4668 (show_default_run_target): New function.
4669 (find_default_run_target): Return NULL if automatically connecting
4670 to the native target is disabled.
4671 (_initialize_target): Install set/show auto-connect-native-target.
4672 * NEWS: Mention "set auto-connect-native-target", and "target
4673 native".
4674 * linux-nat.c (super_close): New global.
4675 (linux_nat_close): Call super_close.
4676 (linux_nat_add_target): Store a pointer to the base class's
4677 to_close method.
4678 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4679 inf_child_maybe_unpush.
4680 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4681 already pushed.
4682 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4683 the inferior. Use inf_child_maybe_unpush_target.
4684 (inf_ttrace_attach): Don't push the target if it is already
4685 pushed.
4686 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4687 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4688 after mourning the inferior. Use inf_child_maybe_unpush_target.
4689 (darwin_attach_pid): Don't push the target if it is already
4690 pushed.
4691 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4692 mourning the inferior. Use inf_child_maybe_unpush_target.
4693 (gnu_detach): Use inf_child_maybe_unpush_target.
4694 * go32-nat.c (go32_create_inferior): Don't push the target if it
4695 is already pushed.
4696 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4697 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4698 (procfs_open): Rename to ...
4699 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4700 comments. Can target_preopen before changing node. Call
4701 inf_child_open_target to push the target explicitly.
4702 (procfs_attach): Don't push the target if it is already pushed.
4703 (procfs_detach): Use inf_child_maybe_unpush_target.
4704 (procfs_create_inferior): Don't push the target if it is already
4705 pushed.
4706 (nto_native_ops): New global.
4707 (procfs_open): Reimplement.
4708 (procfs_native_open): New function.
4709 (init_procfs_targets): Install procfs_native_open as to_open of
4710 "target native". Store a pointer to the "native" target in
4711 nto_native_ops.
4712 * procfs.c (procfs_attach): Don't push the target if it is already
4713 pushed.
4714 (procfs_detach): Use inf_child_maybe_unpush_target.
4715 (procfs_mourn_inferior): Only unpush the target after mourning the
4716 inferior. Use inf_child_maybe_unpush_target.
4717 (procfs_init_inferior): Don't push the target if it is already
4718 pushed.
4719 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4720 if it is already pushed.
4721
4722 2014-05-21 Pedro Alves <palves@redhat.com>
4723
4724 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4725 and "procfs" targets are now called "native" instead.
4726
4727 2014-05-21 Pedro Alves <palves@redhat.com>
4728
4729 * go32-nat.c (go32_open): Delete.
4730 (go32_target): Don't override the to_open method.
4731
4732 2014-05-21 Pedro Alves <palves@redhat.com>
4733
4734 * nto-procfs.c (procfs_can_run): New function.
4735 (nto_procfs_ops): New global.
4736 (init_procfs_targets): New, based on procfs_target. Install
4737 "target native" in addition to "target procfs".
4738 (_initialize_procfs): Call init_procfs_targets instead of adding
4739 the target here.
4740
4741 2014-05-21 Pedro Alves <palves@redhat.com>
4742
4743 * windows-nat.c (windows_target): Don't override to_shortname,
4744 to_longname or to_doc.
4745
4746 2014-05-21 Pedro Alves <palves@redhat.com>
4747
4748 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4749 to_doc.
4750
4751 2014-05-21 Pedro Alves <palves@redhat.com>
4752
4753 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4754 to_shortname, to_longname or to_doc.
4755
4756 2014-05-21 Pedro Alves <palves@redhat.com>
4757
4758 * go32-nat.c (go32_target): Don't override to_shortname,
4759 to_longname or to_doc.
4760
4761 2014-05-21 Pedro Alves <palves@redhat.com>
4762
4763 * inf-child.c (inf_child_open): Remove mention of "child".
4764 (inf_child_target): Rename target to "native" instead of "child".
4765
4766 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4767
4768 * Makefile.in (SFILES): Delete "regset.c".
4769 (COMMON_OBS): Delete "regset.o".
4770 * regset.c: Remove.
4771 * regset.h (regset_alloc): Delete prototype.
4772
4773 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4774
4775 * sparc-linux-tdep.c (sparc32_linux_gregset)
4776 (sparc32_linux_fpregset): New static regset structures.
4777 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4778 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4779 'fpregset' fields.
4780 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4781 (sparc64_linux_fpregset): New static regset structures.
4782 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4783 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4784 New static regset structures.
4785 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4786 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4787 New static regset structures.
4788 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4789 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4790 New static regset structures.
4791 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4792 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4793 New static regset structures.
4794 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4795
4796 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4797
4798 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4799 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4800 register maps ("regmaps") from "*regset" to "*regmap". Do this
4801 for all regmap types and variables.
4802 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4803 (sparc32_linux_supply_core_gregset)
4804 (sparc32_linux_collect_core_gregset)
4805 (sparc32_linux_supply_core_fpregset)
4806 (sparc32_linux_collect_core_fpregset): Likewise.
4807 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4808 (sparc_gregmap, sparc_fpregmap): ... these.
4809 (sparc_supply_gregset, sparc_collect_gregset)
4810 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4811 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4812 (_initialize_sparc_nat): Rename regmaps.
4813 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4814 (sparc_gregmap, sparc_fpregmap): ... these.
4815 (sparc_supply_gregset, sparc_collect_gregset)
4816 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4817 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4818 Rename macros to...
4819 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4820 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4821 Likewise.
4822 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4823 Rename to...
4824 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4825 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4826 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4827 regmaps.
4828 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4829 (sparc32_bsd_fpregset): Rename to...
4830 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4831 (sparc32_bsd_fpregmap): ... these.
4832 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4833 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4834 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4835 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4836 (struct sparc_gregmap, struct sparc_fpregmap)
4837 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4838 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4839 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4840 (sparc32_supply_regset, sparc32_collect_gregset)
4841 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4842 prototypes.
4843 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4844 (sparc64_linux_ptrace_gregmap): ... this.
4845 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4846 (_initialize_sparc64_linux_nat): Rename regmaps.
4847 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4848 (sparc64_linux_core_gregmap): ... this.
4849 (sparc64_linux_supply_core_gregset)
4850 (sparc64_linux_collect_core_gregset)
4851 (sparc64_linux_supply_core_fpregset)
4852 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4853 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4854 (sparc64_sol2_fpregset): Rename to...
4855 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4856 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4857 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4858 regmaps.
4859 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4860 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4861 (sparc64_bsd_fpregset): Rename to...
4862 (struct sparc_gregmap, sparc64_sol2_gregmap)
4863 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4864 (sparc64_bsd_fpregmap): ... these.
4865 (sparc64_supply_gregset, sparc64_collect_gregset)
4866 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4867 prototypes.
4868 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4869 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4870 (sparc64fbsd_gregmap): ... this.
4871 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4872 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4873 Rename regmaps.
4874 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4875 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4876 (sparc64nbsd_collect_fpregset): Likewise.
4877 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4878 (sparc64nbsd_gregmap): ... this.
4879 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4880 regmaps.
4881 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4882 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4883 (sparc64obsd_gregmap): ... this.
4884 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4885 regmaps.
4886 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4887 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4888 (sparc32nbsd_gregmap): ... this.
4889 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4890 regmaps.
4891
4892 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4893
4894 * score-tdep.c (score7_linux_gregset): New static regset
4895 structure.
4896 (score7_linux_regset_from_core_section): Remove dynamic regset
4897 allocation.
4898 (score_gdbarch_init): Drop allocation of tdep structure.
4899 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4900
4901 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4902
4903 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4904 regset structures.
4905 (am33_regset_from_core_section): Remove dynamic regset
4906 allocations.
4907
4908 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4909
4910 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4911 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4912 structures.
4913 (mips_linux_regset_from_core_section): Remove dynamic regset
4914 allocations.
4915 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4916 'gregset64', 'fpregset', and 'fpregset64'.
4917 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4918 deleted tdep fields.
4919
4920 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4921
4922 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4923 regset structures.
4924 (amd64_regset_from_core_section): Remove dynamic regset
4925 allocations.
4926 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4927 structure.
4928 (amd64obsd_regset_from_core_section): Remove dynamic regset
4929 allocation.
4930 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4931 Likewise.
4932 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4933 x86-common regset supply function.
4934 * i386-tdep.c (i386_collect_gregset): Make static.
4935 (i386_gregset): New global regset structure.
4936 (i386_fpregset, i386_xstateregset): New static regset structures.
4937 (i386_regset_from_core_section): Remove dynamic regset
4938 allocations.
4939 (i386_gdbarch_init): Remove initialization of tdep fields
4940 'gregset', 'fpregset', and 'xstateregset'.
4941 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4942 'fpregset', and 'xstateregset'.
4943 (i386_collect_gregset): Remove prototype.
4944 (i386_gregset): New declaration.
4945 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4946 structure.
4947 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4948 allocation.
4949
4950 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4951
4952 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4953 (arm_linux_vfpregset): New static regset structures.
4954 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4955 regset structures.
4956 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4957 and 'vfpregset' fields.
4958
4959 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4960
4961 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4962 (aarch64_linux_fpregset): New static regset structures.
4963 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4964 of regset structures.
4965 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4966 'fpregset' fields.
4967
4968 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4969
4970 * regset.h (struct regset): Remove gdbarch field.
4971 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4972 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4973 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4974 Likewise.
4975 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4976 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4977 (ppc32_linux_vsxregset): Likewise.
4978 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4979 via the regcache instead of the regset.
4980 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4981 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4982 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4983 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4984 Likewise.
4985
4986 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4987
4988 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4989 Constify structures.
4990 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4991 (alphanbsd_aout_gregset): Likewise.
4992 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4993 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4994 Likewise.
4995 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4996 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4997 Likewise.
4998 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4999 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5000 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5001 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5002 * m88k-tdep.c (m88k_gregset): Likewise.
5003 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5004 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5005 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5006 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5007 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5008 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5009 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5010 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5011 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5012 Likewise.
5013 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5014 * sh-tdep.h (sh_corefile_gregset): Likewise.
5015 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5016 * vax-tdep.c (vax_gregset): Likewise.
5017
5018 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5019
5020 Fix TLS access for -static -pthread.
5021 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5022 (try_thread_db_load_1): Initialize it.
5023 (thread_db_get_thread_local_address): Call it if LM is zero.
5024 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5025 * target.h (struct target_ops) (to_get_thread_local_address): Add
5026 load_module_addr comment.
5027
5028 2014-05-21 Pedro Alves <palves@redhat.com>
5029
5030 * dcache.c (dcache_read_memory_partial): If reading the cache line
5031 fails, fallback to reading just the memory the caller wanted.
5032
5033 2014-05-20 Doug Evans <dje@google.com>
5034
5035 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5036 instead of get_current_arch.
5037
5038 2014-05-20 Pedro Alves <palves@redhat.com>
5039
5040 * NEWS: Mention that compare-sections now works with all targets.
5041
5042 * remote.c (PACKET_qCRC): New enum value.
5043 (remote_verify_memory): Don't send qCRC if the target has no
5044 execution. Use packet_support/packet_ok. If the target doesn't
5045 support the qCRC packet, fallback to a deep memory copy.
5046 (compare_sections_command): Say "target image" instead of "remote
5047 executable".
5048 (_initialize_remote): Add PACKET_qCRC to the list of config
5049 packets that have no associated command. Extend comment.
5050 * target.c (simple_verify_memory, default_verify_memory): New
5051 function.
5052 * target.h (struct target_ops) <to_verify_memory>: Default to
5053 default_verify_memory.
5054 (simple_verify_memory): New declaration.
5055 * target-delegates.c: Regenerate.
5056
5057 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5058
5059 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5060
5061 2014-05-20 Hui Zhu <hui@codesourcery.com>
5062 Yao Qi <yao@codesourcery.com>
5063
5064 PR backtrace/16558
5065 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5066 and change address of sp and pc.
5067
5068 2014-05-19 Tom Tromey <tromey@redhat.com>
5069
5070 * gdbtypes.c (rank_function): Use XNEWVEC.
5071 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5072
5073 2014-05-19 Doug Evans <dje@google.com>
5074
5075 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5076 build_type_unit_groups and moved closer to only caller. Remove
5077 arguments. All references updated. Remove outdated .gdb_index
5078 comment.
5079 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5080 build_type_psymtabs_1.
5081
5082 2014-05-19 Doug Evans <dje@google.com>
5083
5084 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5085 n_type_unit_groups, all_type_unit_groups. All uses removed.
5086 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5087 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5088 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5089 (add_type_unit_group_to_table): Delete.
5090
5091 2014-05-19 Doug Evans <dje@google.com>
5092
5093 * eval.c (evaluate_subexp_standard): Add some comments.
5094
5095 2014-05-17 Doug Evans <xdje42@gmail.com>
5096
5097 * progspace.c (remove_program_space): Delete, unused.
5098 * progspace.h (remove_program_space): Ditto.
5099
5100 2014-05-17 Doug Evans <xdje42@gmail.com>
5101
5102 * inferior.c (prune_inferiors): Fix comment.
5103 (remove_inferior_command): Call prune_program_spaces.
5104
5105 2014-05-16 Doug Evans <dje@google.com>
5106
5107 New command line option -D.
5108 * NEWS: Mention it.
5109 * main.c (set_gdb_data_directory): New function.
5110 (captured_main): Recognize -D. Flag error for --data-directory "".
5111 Call set_gdb_data_directory.
5112 (print_gdb_help): Print --data-directory, -D.
5113 * main.h (set_gdb_data_directory): Declare.
5114 * top.c (staged_gdb_datadir): New static global.
5115 (set_gdb_datadir): Call set_gdb_data_directory
5116 (show_gdb_datadir): New function.
5117 (init_main): Update init of data-directory parameter.
5118
5119 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5120
5121 Import the "dirfd" gnulib module.
5122 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5123 * gnulib/aclocal.m4: Update.
5124 * gnulib/config.in: Update.
5125 * gnulib/configure: Update.
5126 * gnulib/import/Makefile.am: Update.
5127 * gnulib/import/Makefile.in: Update.
5128 * gnulib/import/dirfd.c: New.
5129 * gnulib/import/m4/dirfd.m4: New.
5130 * gnulib/import/m4/gnulib-cache.m4: Update.
5131 * gnulib/import/m4/gnulib-comp.m4: Update.
5132
5133 2014-05-16 Pierre Muller <muller@sourceware.org>
5134 Yao Qi <yao@codesourcery.com>
5135
5136 * valprint.c (print_wchar): Move the code on checking whether
5137 W is a printable wide char to the default branch of switch
5138 statement below. Call wchar_printable instead of gdb_iswprint.
5139
5140 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5141
5142 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5143 ldr.w and ldrd instructions.
5144
5145 2014-05-15 Doug Evans <dje@google.com>
5146
5147 * dwarf2read.c (read_structure_type): Delete outdated comments.
5148
5149 2014-05-14 Tom Tromey <tromey@redhat.com>
5150
5151 * macrocmd.c (print_macro_definition): Reindent.
5152
5153 2014-05-13 Doug Evans <xdje42@gmail.com>
5154
5155 * python/py-cmd.c (cmdpy_completer): Add comment.
5156 (completers): Make const.
5157
5158 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5159
5160 * infrun.c (resume): Remove should_resume (unused). Move up
5161 declaration of resume_ptid.
5162
5163 2014-05-13 Tom Tromey <tromey@redhat.com>
5164
5165 * language.h (unop_type_check): Remove.
5166 (binop_type_check): Don't declare.
5167
5168 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5169
5170 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5171 call to regcache_raw_collect.
5172
5173 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5174
5175 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5176 mi_console->quote as the quoting character.
5177
5178 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5179
5180 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5181
5182 2014-04-29 Tom Tromey <tromey@redhat.com>
5183
5184 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5185 "show debug varobj".
5186
5187 2014-05-07 Kyle McMartin <kyle@redhat.com>
5188
5189 Pushed by Joel Brobecker <brobecker@adacore.com>.
5190 * aarch64-tdep.c (aarch64_software_single_step): New function.
5191 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5192 with aarch64_software_single_step.
5193
5194 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5195
5196 GDB 7.7.1 released.
5197
5198 2014-05-05 Keith Seitz <keiths@redhat.com>
5199
5200 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5201 variable or history value is successfully parsed.
5202
5203 2014-05-05 Yao Qi <yao@codesourcery.com>
5204 Pedro Alves <palves@redhat.com>
5205
5206 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5207 address of blocks that intersects the requested range. Trim
5208 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5209 sections.
5210 * ctf.c (ctf_xfer_partial): Likewise.
5211
5212 2014-05-05 Yao Qi <yao@codesourcery.com>
5213
5214 * printcmd.c (display_command): Remove the check to
5215 target_has_execution.
5216
5217 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5218
5219 * ppcobsd-nat.c: Include "obsd-nat.h".
5220 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5221 add_target.
5222 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5223
5224 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5225
5226 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5227 and 16-bit signed and unsigned arguments. Update comment.
5228 (stap_parse_probe_arguments): Extend code to handle such
5229 arguments. Use warning instead of complaint to notify about
5230 unrecognized bitness.
5231
5232 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5233
5234 PR breakpoints/16889
5235 * stap-probe.c (stap_parse_probe_arguments): Simplify
5236 check for non-prefixed probes (i.e., probes whose
5237 arguments do not start with "N@"). Always set the
5238 argument type to a sane value.
5239
5240 2014-05-01 David Taylor <dtaylor@emc.com>
5241
5242 * remote.c (compare_sections_command): Add -r option to compare
5243 all loadable read-only sections.
5244
5245 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5246
5247 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5248 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5249 Update all callers.
5250 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5251 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5252 Remove unused CORE_ADDR argument. Update all callers.
5253
5254 2014-04-29 Pedro Alves <palves@redhat.com>
5255
5256 * remote.c (struct packet_config) <detect>: Extend comment.
5257 (add_packet_config_cmd): Don't set the config's detect or support
5258 fields here.
5259 (init_all_packet_configs): Also initialize the config's 'detect'
5260 field.
5261 (reset_all_packet_configs_support): New function.
5262 (remote_open_1): Call reset_all_packet_configs_support instead of
5263 init_all_packet_configs.
5264 (_initialize_remote): Initialize all packet configs. Assert that
5265 all packets have an associated command, except a few known
5266 outliers.
5267
5268 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5269
5270 * dwarf2read.c (read_subrange_type): Handle dynamic
5271 DW_AT_lower_bound attributes.
5272
5273 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5274
5275 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5276 dynamic bounds before computing its upper bound.
5277 (ada_discrete_type_low_bound): Same as above with the lower bound.
5278
5279 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5280
5281 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5282 range types. Adjust the array handling implementation to
5283 take advantage of this change.
5284 (resolve_dynamic_range): New function, mostly extracted from
5285 resolve_dynamic_bounds.
5286 (resolve_dynamic_array): New function, mostly extracted from
5287 resolve_dynamic_bounds.
5288 (resolve_dynamic_bounds): Delete.
5289 (resolve_dynamic_type): Reimplement. Add handling of
5290 TYPE_CODE_RANGE types.
5291
5292 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5293
5294 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5295 handling of parallel ___XA types.
5296
5297 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5298
5299 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5300 unnecessary second call to static_unwrap_type.
5301
5302 2014-04-27 Hui Zhu <hui@codesourcery.com>
5303
5304 * stack.c (print_frame_info): Call do_gdb_disassembly with
5305 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5306
5307 2014-04-26 Doug Evans <xdje42@gmail.com>
5308
5309 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5310
5311 2014-04-25 Pedro Alves <palves@redhat.com>
5312
5313 PR server/16255
5314 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5315 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5316 and newline from built string.
5317 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5318 (linux_ptrace_attach_fail_reason): ... this.
5319 * linux-nat.c (linux_nat_attach): Adjust to use
5320 linux_ptrace_attach_fail_reason.
5321
5322 2014-04-25 Pedro Alves <palves@redhat.com>
5323
5324 * remote.c (struct remote_state): Remove multi_process_aware,
5325 non_stop_aware, cond_tracepoints, cond_breakpoints,
5326 breakpoint_commands, fast_tracepoints, static_tracepoints,
5327 install_in_trace, disconnected_tracing,
5328 enable_disable_tracepoints, string_tracing, and
5329 augmented_libraries_svr4_read fields.
5330 (remote_multi_process_p): Move further below in the file.
5331 (struct packet_config): Add comments.
5332 (update_packet_config): Delete function.
5333 (show_packet_config_cmd): Use packet_config_support.
5334 (add_packet_config_cmd): Use NULL as set callback.
5335 (packet_ok): "set remote foo-packet"-style commands no longer
5336 change config->supported -- adjust.
5337 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5338 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5339 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5340 (PACKET_QNonStop, PACKET_multiprocess_feature)
5341 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5342 (PACKET_DisconnectedTracing_feature)
5343 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5344 (set_remote_protocol_packet_cmd): Delete function.
5345 (packet_config_support, packet_support): New functions.
5346 (set_remote_protocol_Z_packet_cmd): Don't call
5347 update_packet_config.
5348 (remote_query_attached, remote_pass_signals)
5349 (remote_program_signals, remote_threads_info)
5350 (remote_threads_extra_info, remote_start_remote): Use
5351 packet_support.
5352 (remote_start_remote): Use packet_config_support and
5353 packet_support.
5354 (init_all_packet_configs): Set all packets to unknown support,
5355 instead of calling update_packet_config.
5356 (remote_check_symbols): Use packet_support.
5357 (remote_supported_packet): Unconditionally set the packet config's
5358 support status.
5359 (remote_multi_process_feature, remote_non_stop_feature)
5360 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5361 (remote_breakpoint_commands_feature)
5362 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5363 (remote_install_in_trace_feature)
5364 (remote_disconnected_tracing_feature)
5365 (remote_enable_disable_tracepoint_feature)
5366 (remote_string_tracing_feature)
5367 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5368 (remote_protocol_features): Adjust to use remote_supported_packet
5369 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5370 "ConditionalTracepoints", "ConditionalBreakpoints",
5371 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5372 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5373 "EnableDisableTracepoints", and "tracenz".
5374 (remote_query_supported): Use packet_support.
5375 (remote_open_1): Adjust.
5376 (extended_remote_attach_1): Use packet_support. Switch on the
5377 result of packet_ok instead of checking whether the packet ended
5378 up disabled.
5379 (remote_vcont_resume): Use packet_support.
5380 (remote_resume, remote_stop_ns, fetch_register_using_p)
5381 (remote_prepare_to_store, store_register_using_P)
5382 (check_binary_download, remote_write_bytes): Use packet_support.
5383 (remote_vkill): Use packet_support. Switch on the result of
5384 packet_ok instead of checking whether the packet ended up
5385 disabled.
5386 (extended_remote_supports_disable_randomization): Use
5387 packet_support.
5388 (extended_remote_run): Switch on the result of packet_ok instead
5389 of checking whether the packet ended up disabled.
5390 (remote_insert_breakpoint, remote_remove_breakpoint)
5391 (remote_insert_watchpoint, remote_remove_watchpoint)
5392 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5393 packet_support.
5394 (remote_search_memory): Use packet_config_support.
5395 (remote_get_thread_local_address, remote_get_tib_address)
5396 (remote_hostio_send_command, remote_can_execute_reverse): Use
5397 packet_support.
5398 (remote_supports_cond_tracepoints)
5399 (remote_supports_cond_breakpoints)
5400 (remote_supports_fast_tracepoints)
5401 (remote_supports_static_tracepoints)
5402 (remote_supports_install_in_trace)
5403 (remote_supports_enable_disable_tracepoint)
5404 (remote_supports_string_tracing)
5405 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5406 the packet config says the feature is enabled or disabled.
5407 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5408 (remote_get_trace_status): Use packet_support.
5409 (remote_set_disconnected_tracing): Adjust to check whether the
5410 feature is enabled with packet_support.
5411 (remote_set_trace_buffer_size, remote_use_agent)
5412 (remote_can_use_agent, remote_supports_btrace): Use
5413 packet_support.
5414 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5415 Use packet_config_support.
5416 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5417 the packet config says the feature is enabled or disabled.
5418 (set_range_stepping): Use packet_support.
5419
5420 2014-04-25 Tom Tromey <tromey@redhat.com>
5421
5422 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5423 argument.
5424
5425 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5426
5427 * NEWS: Mention support for C99 variable length arrays.
5428
5429 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5430
5431 * ada-lang.c (standard_exc): Expand introductory comment.
5432
5433 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5434 Walfred Tedeschi <walfred.tedeschi@intel.com>
5435
5436 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5437 AVX512 registers.
5438 (amd64_linux_read_description): Add code to handle AVX512 xstate
5439 mask and return respective tdesc.
5440 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5441 and features/i386/x32-avx512-linux.c.
5442 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5443 (amd64_linux_core_read_description): Add code to handle AVX512
5444 xstate mask and return respective tdesc.
5445 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5446 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5447 calculation.
5448 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5449 (tdesc_amd64_avx512_linux): New prototype.
5450 (tdesc_x32_avx512_linux): Likewise.
5451 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5452 features/i386/x32-avx512.c.
5453 (amd64_ymm_avx512_names): New register names for pseudo
5454 registers YMM16-31.
5455 (amd64_ymmh_avx512_names): New register names for raw registers
5456 YMMH16-31.
5457 (amd64_k_names): New register names for K registers.
5458 (amd64_zmmh_names): New register names for ZMM raw registers.
5459 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5460 (amd64_xmm_avx512_names): New register names for XMM16-31
5461 registers.
5462 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5463 registers.
5464 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5465 if feature is present.
5466 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5467 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5468 (AMD64_NUM_REGS): Adjust to new number of registers.
5469 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5470 registers supplied via XSTATE by AVX512 registers.
5471 (i386_linux_read_description): Add case for AVX512.
5472 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5473 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5474 (i386_linux_core_read_description): Add case for AVX512.
5475 (i386_linux_init_abi): Install supported register note section
5476 for AVX512.
5477 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5478 AVX512.
5479 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5480 registers to be number of zmm7h + 1.
5481 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5482 * i386-tdep.c: Include features/i386/i386-avx512.c.
5483 (i386_zmm_names): Add ZMM pseudo register names array.
5484 (i386_zmmh_names): Add ZMM raw register names array.
5485 (i386_k_names): Add K raw register names array.
5486 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5487 registers. AVX512 has 16 more ZMM registers than there are YMM
5488 registers.
5489 (i386_zmmh_regnum_p): Add function to look up register number of
5490 ZMM raw registers.
5491 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5492 (i386_k_regnum_p): Likewise for K raw registers.
5493 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5494 registers added by AVX512.
5495 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5496 registers added by AVX512.
5497 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5498 added by AVX512.
5499 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5500 (i386_pseudo_register_name): Add ZMM pseudo registers.
5501 (i386_zmm_type): Construct and return vector registers type for ZMM
5502 registers.
5503 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5504 ZMM0-31 pseudo registers and K registers.
5505 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5506 and YMM16-31 registers from register cache.
5507 (i386_pseudo_register_write): Add code to write K, ZMM and
5508 YMM16-31 registers.
5509 (i386_register_reggroup_p): Add code to include/exclude AVX512
5510 registers in/from respective register groups.
5511 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5512 registers if feature is present in xcr0.
5513 (i386_gdbarch_init): Add code to initialize AVX512 feature
5514 variables in tdep structure, wire in pseudo registers and call
5515 initialize_tdesc_i386_avx512.
5516 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5517 variables.
5518 (i386_regnum): Add AVX512 registers.
5519 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5520 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5521 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5522 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5523 512 bits wide.
5524 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5525 (i386_ymm_avx512_regnum_p): Likewise.
5526 (i386_k_regnum_p): Likewise.
5527 (i386_zmm_regnum_p): Likewise.
5528 (i386_zmmh_regnum_p): Likewise.
5529 * i387-tdep.c : Update year in copyright notice.
5530 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5531 XSAVE buffer.
5532 (XSAVE_YMM_AVX512_ADDR): New macro.
5533 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5534 XSAVE buffer.
5535 (XSAVE_XMM_AVX512_ADDR): New macro.
5536 (xsave_avx512_k_offset): New table for K register offsets in
5537 XSAVE buffer.
5538 (XSAVE_AVX512_K_ADDR): New macro.
5539 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5540 in XSAVE buffer.
5541 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5542 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5543 buffer.
5544 (i387_collect_xsave): Add code to collect AVX512 registers from
5545 XSAVE buffer.
5546 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5547 of XMM16-31 registers.
5548 (I387_NUM_K_REGS): New define for number of K registers.
5549 (I387_K0_REGNUM): New define for K0 register number.
5550 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5551 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5552 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5553 registers.
5554 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5555 (I387_XMM16_REGNUM): New define for XMM16 register number.
5556 (I387_YMM0_REGNUM): New define for YMM0 register number.
5557 (I387_KEND_REGNUM): New define for last K register number.
5558 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5559 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5560 number.
5561 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5562 number.
5563 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5564 size.
5565 * features/Makefile: Add AVX512 related files.
5566 * features/i386/32bit-avx512.xml: New file.
5567 * features/i386/64bit-avx512.xml: Likewise.
5568 * features/i386/amd64-avx512-linux.c: Likewise.
5569 * features/i386/amd64-avx512-linux.xml: Likewise.
5570 * features/i386/amd64-avx512.c: Likewise.
5571 * features/i386/amd64-avx512.xml: Likewise.
5572 * features/i386/i386-avx512-linux.c: Likewise.
5573 * features/i386/i386-avx512-linux.xml: Likewise.
5574 * features/i386/i386-avx512.c: Likewise.
5575 * features/i386/i386-avx512.xml: Likewise.
5576 * features/i386/x32-avx512-linux.c: Likewise.
5577 * features/i386/x32-avx512-linux.xml: Likewise.
5578 * features/i386/x32-avx512.c: Likewise.
5579 * features/i386/x32-avx512.xml: Likewise.
5580 * regformats/i386/amd64-avx512-linux.dat: New file.
5581 * regformats/i386/amd64-avx512.dat: Likewise.
5582 * regformats/i386/i386-avx512-linux.dat: Likewise.
5583 * regformats/i386/i386-avx512.dat: Likewise.
5584 * regformats/i386/x32-avx512-linux.dat: Likewise.
5585 * regformats/i386/x32-avx512.dat: Likewise.
5586 * NEWS: Add note about new support for AVX512.
5587
5588
5589 2014-04-23 Pedro Alves <palves@redhat.com>
5590
5591 * breakpoint.c (insert_bp_location): Tolerate errors if the
5592 breakpoint is set in a user-loaded objfile.
5593 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5594 location is marked shlib_disabled. If the breakpoint is set in a
5595 user-loaded objfile is a GDB-side memory breakpoint, validate it
5596 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5597 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5598 flag.
5599 * mem-break.c (memory_validate_breakpoint): New function.
5600 * objfiles.c (userloaded_objfile_contains_address_p): New
5601 function.
5602 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5603 * target.h (memory_validate_breakpoint): New declaration.
5604
5605 2014-04-23 Pedro Alves <palves@redhat.com>
5606
5607 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5608 the breakpoint is set in a shared library, only suppress
5609 errors for software breakpoints, not hardware breakpoints.
5610
5611 2014-04-22 Pedro Alves <palves@redhat.com>
5612
5613 * infrun.c (schedlock_applies): New function, factored out from
5614 find_thread_needs_step_over.
5615 (find_thread_needs_step_over): Use it.
5616 (switch_back_to_stepped_thread): Always clear trap_expected if the
5617 step over is finished. Return early if scheduler locking applies.
5618 Look for the stepping thread and a potential step-over thread with
5619 a single loop.
5620 (currently_stepping_or_nexting_callback): Delete.
5621
5622 2014-04-22 Nick Clifton <nickc@redhat.com>
5623
5624 * NEWS: Mention that ARM sim now supports tracing.
5625
5626 2014-04-22 Yao Qi <yao@codesourcery.com>
5627
5628 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5629 to ...
5630 * tracefile.c (tracefile_fetch_registers): ... it. New
5631 function.
5632 * tracefile.h (tracefile_fetch_registers): Declare.
5633 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5634 tracefile_fetch_registers.
5635
5636 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5637
5638 PR gdb/14018
5639 * windows-nat.c (thread_rec): Don't display a warning when
5640 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5641 fails for any reason, set th->suspended to -1, so that we don't
5642 try to resume such a thread. Also, don't return NULL in these
5643 cases, to avoid completely ruin the session due to "PC register is
5644 not available" error.
5645 (do_windows_fetch_inferior_registers): Check errors in
5646 GetThreadContext call.
5647 (windows_continue): Accept an additional argument KILLED; if not
5648 zero, ignore errors in the SetThreadContext call, since the
5649 inferior was killed and is shutting down.
5650 (windows_resume, get_windows_debug_event)
5651 (windows_create_inferior, windows_mourn_inferior)
5652 (windows_kill_inferior): All callers of windows_continue changed
5653 to adjust to its new calling sequence.
5654
5655 2014-04-19 Yao Qi <yao@codesourcery.com>
5656
5657 * ctf.c (ctf_open): Call post_create_inferior.
5658
5659 2014-04-19 Yao Qi <yao@codesourcery.com>
5660
5661 * ctf.c (handle_id): New static variable.
5662 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5663 value. Get the declaration of event "register" and get length
5664 of field "contents".
5665
5666 2014-04-19 Yao Qi <yao@codesourcery.com>
5667
5668 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5669
5670 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5671
5672 * valops.c (oload_method_static): Remove unnecessary argument
5673 METHOD. Update all callers.
5674
5675 2014-04-18 Pedro alves <palves@redhat.com>
5676 Tom Tromey <tromey@redhat.com>
5677
5678 PR backtrace/15558
5679 * frame.c (get_prev_frame_1): Rename to ...
5680 (get_prev_frame_always): ... this, and make extern. Adjust.
5681 (skip_artificial_frames): Use get_prev_frame_always.
5682 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5683 (get_frame_unwind_stop_reason): Adjust to rename.
5684 * frame.h (get_prev_frame_always): Declare.
5685 * inline-frame.c: Include frame.h.
5686 (inline_frame_this_id): Use get_prev_frame_always.
5687
5688 2014-04-18 Tristan Gingold <gingold@adacore.com>
5689
5690 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5691 code by using bfd_mach_o_get_base_address.
5692
5693 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5694
5695 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5696 (spu_ax_pseudo_register_collect): New function.
5697 (spu_ax_pseudo_register_push_stack): Likewise.
5698 (spu_dwarf_reg_to_regnum): Likewise.
5699 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5700
5701 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5702
5703 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5704 Replace FRAME argument with FRAME_ID.
5705 * gdbarch.c, gdbarch.h: Regenerate.
5706 * findvar.c (default_value_from_register): Add GDBARCH argument;
5707 replace FRAME by FRAME_ID. No longer call get_frame_id.
5708 (value_from_register): Update call to gdbarch_value_from_register.
5709 * value.h (default_value_from_register): Update prototype.
5710 * s390-linux-tdep.c (s390_value_from_register): Update interface
5711 and call to default_value_from_register.
5712 * spu-tdep.c (spu_value_from_register): Likewise.
5713
5714 * findvar.c (address_from_register): Remove TYPE argument.
5715 Do not call value_from_register; use gdbarch_value_from_register
5716 with null_frame_id instead.
5717 * value.h (address_from_register): Update prototype.
5718 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5719 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5720 address_from_register interface change.
5721
5722 2014-04-17 Yao Qi <yao@codesourcery.com>
5723
5724 * gdbtypes.h: Update comments to link to types and macros'
5725 definitions.
5726
5727 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5728
5729 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5730
5731 2014-04-16 Keith Seitz <keiths@redhat.com>
5732
5733 PR gdb/15827
5734 * dwarf2read.c (skip_one_die): Check that all relative-offset
5735 sibling DIEs fall within range of the current reader's buffer.
5736 (read_partial_die): Likewise.
5737
5738 2014-04-16 Keith Seitz <keiths@redhat.com>
5739
5740 PR c++/16597
5741 * cp-namespace.c (lookup_symbol_file): If the type name of
5742 `this' is NULL, return immediately.
5743
5744 2014-04-14 Keith Seitz <keiths@redhat.com>
5745
5746 PR c++/16253
5747 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5748 from symbol_matches_domain in symtab.c. All local callers
5749 of symbol_matches_domain updated.
5750 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5751 search STRUCT_DOMAIN.
5752 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5753 independently. standard_lookup will do that automatically.
5754 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5755 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5756 (cp_lookup_symbol_in_namespace): Likewise.
5757 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5758 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5759 may return a STRUCT_DOMAIN match.
5760 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5761 * cp-support.c: Include language.h.
5762 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5763 VAR_DOMAIN.
5764 * psymtab.c (match_partial_symbol): Compare the requested
5765 domain with the symbol's domain directly.
5766 (lookup_partial_symbol): Likewise.
5767 * symtab.c (lookup_symbol_in_language): Explain when/why
5768 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5769 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5770 appropriate languages.
5771 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5772 and moved to ada-lang.c
5773 (lookup_block_symbol): Explain that this function only returns
5774 symbol matching the requested DOMAIN.
5775 Compare the requested domain with the symbol's domain directly.
5776 (iterate_over_symbols): Compare the requested domain with the
5777 symbol's domain directly.
5778 * symtab.h (symbol_matches_domain): Remove.
5779
5780 2014-04-14 Tom Tromey <tromey@redhat.com>
5781
5782 PR c++/15246:
5783 * c-exp.y (type_aggregate_p): New function.
5784 (qualified_name, classify_inner_name): Use it.
5785 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5786 and TYPE_TARGET_TYPE of an enum type.
5787 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5788 an enum type.
5789 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5790 handle TYPE_DECLARED_CLASS.
5791 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5792 types.
5793 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5794 * valops.c (enum_constant_from_type): New function.
5795 (value_aggregate_elt): Use it.
5796 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5797 TYPE_CODE_ENUM.
5798
5799 2014-04-14 Tom Tromey <tromey@redhat.com>
5800
5801 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5802 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5803 const.
5804 * value.h (value_aggregate_elt): Update.
5805
5806 2014-04-14 Tom Tromey <tromey@redhat.com>
5807
5808 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5809
5810 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5811
5812 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5813 (evaluate_subexp_standard): Pass noside argument.
5814 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5815 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5816 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5817 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5818 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5819
5820 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5821
5822 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5823 points to a constant blob.
5824
5825 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5826
5827 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5828 property and store it as the high bound and flag the range accordingly.
5829 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5830 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5831 * gdbtypes.h (enum range_flags): New enum.
5832 (struct range_bounds): Add flags member.
5833
5834 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5835
5836 * c-typeprint.c (c_type_print_varspec_suffix): Added
5837 check for not yet resolved high bound. If unresolved, print
5838 "variable length" string to the console instead of random
5839 length.
5840
5841 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5842
5843 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5844 value.
5845 (ada_template_to_fixed_record_type_1): Likewise.
5846 (ada_to_fixed_type_1): Likewise.
5847 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5848 (cp_print_value): Likewise.
5849 * d-valprint.c (dynamic_array_type): Likewise.
5850 * findvar.c (address_of_variable): Likewise.
5851 * jv-valprint.c (java_value_print): Likewise.
5852 * valops.c (value_ind): Likewise.
5853 * value.c (coerce_ref): Likewise.
5854
5855 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5856
5857 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5858 value and retrieve the dynamic type size.
5859
5860 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5861
5862 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5863 passed to sizeof is dynamic evaluate the argument to compute the length.
5864
5865 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5866 Joel Brobecker <brobecker@adacore.com>
5867
5868 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5869 (dwarf2_evaluate_property): New function.
5870 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5871 * dwarf2read.c (attr_to_dynamic_prop): New function.
5872 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5873 attribute.
5874 * gdbtypes.c: Include dwarf2loc.h.
5875 (is_dynamic_type): New function.
5876 (resolve_dynamic_type): New function.
5877 (resolve_dynamic_bounds): New function.
5878 (get_type_length): New function.
5879 (check_typedef): Use get_type_length to compute type length.
5880 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5881 (TYPE_LOW_BOUND_KIND): New macro.
5882 (is_dynamic_type): New function prototype.
5883 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5884 to resolve dynamic properties of the type. Update comment.
5885 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5886
5887 2014-04-14 Richard Henderson <rth@redhat.com>
5888
5889 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5890
5891 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5892 Doug Evans <xdje42@gmail.com>
5893
5894 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5895 dereference TYPE_CODE_REF values.
5896
5897 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5898
5899 Revert the following changes due to regressions:
5900
5901 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5902 (dwarf2_evaluate_property): New function.
5903 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5904 * dwarf2read.c (attr_to_dynamic_prop): New function.
5905 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5906 attribute.
5907 * gdbtypes.c: Include dwarf2loc.h.
5908 (is_dynamic_type): New function.
5909 (resolve_dynamic_type): New function.
5910 (resolve_dynamic_bounds): New function.
5911 (get_type_length): New function.
5912 (check_typedef): Use get_type_length to compute type length.
5913 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5914 (TYPE_LOW_BOUND_KIND): New macro.
5915 (is_dynamic_type): New function prototype.
5916 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5917 to resolve dynamic properties of the type. Update comment.
5918 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5919
5920 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5921 passed to sizeof is dynamic evaluate the argument to compute the length.
5922
5923 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5924 value and retrieve the dynamic type size.
5925
5926 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5927 (ada_template_to_fixed_record_type_1): Likewise.
5928 (ada_to_fixed_type_1): Likewise.
5929 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5930 (cp_print_value): Likewise.
5931 * d-valprint.c (dynamic_array_type): Likewise.
5932 * eval.c (evaluate_subexp_with_coercion): Likewise.
5933 * findvar.c (address_of_variable): Likewise.
5934 * jv-valprint.c (java_value_print): Likewise.
5935 * valops.c (value_ind): Likewise.
5936 * value.c (coerce_ref): Likewise.
5937
5938 * c-typeprint.c (c_type_print_varspec_suffix): Added
5939 check for not yet resolved high bound. If unresolved, print
5940 "variable length" string to the console instead of random
5941 length.
5942
5943 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5944 property and store it as the high bound and flag the range accordingly.
5945 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5946 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5947 * gdbtypes.h (enum range_flags): New enum.
5948 (struct range_bounds): Add flags member.
5949
5950 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5951 points to a constant blob.
5952
5953 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5954 (evaluate_subexp_standard): Pass noside argument.
5955 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5956 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5957 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5958 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5959 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5960
5961 2014-04-11 Keith Seitz <keiths@redhat.com>
5962
5963 PR c++/16675
5964 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5965 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5966 reference types.
5967
5968 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5969
5970 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5971 (evaluate_subexp_standard): Pass noside argument.
5972 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5973 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5974 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5975 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5976 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5977
5978 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5979
5980 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5981 points to a constant blob.
5982
5983 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5984
5985 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5986 property and store it as the high bound and flag the range accordingly.
5987 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5988 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5989 * gdbtypes.h (enum range_flags): New enum.
5990 (struct range_bounds): Add flags member.
5991
5992 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5993
5994 * c-typeprint.c (c_type_print_varspec_suffix): Added
5995 check for not yet resolved high bound. If unresolved, print
5996 "variable length" string to the console instead of random
5997 length.
5998
5999 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6000
6001 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6002 (ada_template_to_fixed_record_type_1): Likewise.
6003 (ada_to_fixed_type_1): Likewise.
6004 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6005 (cp_print_value): Likewise.
6006 * d-valprint.c (dynamic_array_type): Likewise.
6007 * eval.c (evaluate_subexp_with_coercion): Likewise.
6008 * findvar.c (address_of_variable): Likewise.
6009 * jv-valprint.c (java_value_print): Likewise.
6010 * valops.c (value_ind): Likewise.
6011 * value.c (coerce_ref): Likewise.
6012
6013 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6014
6015 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6016 value and retrieve the dynamic type size.
6017
6018 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6019
6020 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6021 passed to sizeof is dynamic evaluate the argument to compute the length.
6022
6023 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6024
6025 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6026 (dwarf2_evaluate_property): New function.
6027 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6028 * dwarf2read.c (attr_to_dynamic_prop): New function.
6029 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6030 attribute.
6031 * gdbtypes.c: Include dwarf2loc.h.
6032 (is_dynamic_type): New function.
6033 (resolve_dynamic_type): New function.
6034 (resolve_dynamic_bounds): New function.
6035 (get_type_length): New function.
6036 (check_typedef): Use get_type_length to compute type length.
6037 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6038 (TYPE_LOW_BOUND_KIND): New macro.
6039 (is_dynamic_type): New function prototype.
6040 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6041 to resolve dynamic properties of the type. Update comment.
6042 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6043
6044 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6045
6046 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6047 declaring high/low bounds and change uses accordingly. Call
6048 create_range_type instead of create_static_range_type.
6049 * gdbtypes.c (create_range_type): New function.
6050 (create_range_type): Convert bounds into struct bound_prop and pass
6051 them to create_range_type.
6052 * gdbtypes.h (struct bound_prop): New struct.
6053 (create_range_type): New function prototype.
6054 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6055 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6056 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6057 part of the bound.
6058 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6059
6060 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6061
6062 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6063 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6064 * ada-lang.c: All uses of create_range_type updated.
6065 * coffread.c: All uses of create_range_type updated.
6066 * dwarf2read.c: All uses of create_range_type updated.
6067 * f-exp.y: All uses of create_range_type updated.
6068 * m2-valprint.c: All uses of create_range_type updated.
6069 * mdebugread.c: All uses of create_range_type updated.
6070 * stabsread.c: All uses of create_range_type updated.
6071 * valops.c: All uses of create_range_type updated.
6072 * valprint.c: All uses of create_range_type updated.
6073
6074 2014-04-10 Pedro Alves <palves@redhat.com>
6075
6076 * breakpoint.c (single_step_breakpoints)
6077 (single_step_gdbarch): Move up in the file.
6078 (one_breakpoint_xfer_memory): New function, factored out from ...
6079 (breakpoint_xfer_memory): ... here. Also process single-step
6080 breakpoints.
6081
6082 2014-04-09 Tristan Gingold <gingold@adacore.com>
6083
6084 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6085 comments.
6086 (darwin_decode_exception_message): Free port only after use.
6087
6088 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6089
6090 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6091 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6092 when setting the size of call_length.
6093
6094 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6095
6096 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6097 dereference TYPE_CODE_REF values.
6098
6099 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6100
6101 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6102 end of warning message.
6103
6104 2014-04-03 Doug Evans <dje@google.com>
6105
6106 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6107 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6108
6109 2014-04-02 Alan Modra <amodra@gmail.com>
6110
6111 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6112 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6113 (struct symbol_file_add_from_memory_args): Add size field.
6114 (find_vdso_size): New function.
6115 (add_vsyscall_page): Attempt to find vdso size.
6116
6117 2014-04-01 Doug Evans <dje@google.com>
6118
6119 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6120
6121 2014-04-01 Tristan Gingold <gingold@adacore.com>
6122
6123 * darwin-nat.c (darwin_encode_reply): Add prototype.
6124 (darwin_decode_exception_message): Reply to unknown inferiors.
6125 (darwin_decode_message): Handle message by id. Ignore message
6126 to unknown inferior.
6127 (darwin_wait): Discard unknown messages, add debug trace.
6128
6129 2014-03-31 Doug Evans <dje@google.com>
6130
6131 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6132 comp_dir_string.
6133
6134 2014-03-31 Doug Evans <dje@google.com>
6135
6136 New option "set print symbol-loading".
6137 * NEWS: Mention it.
6138 * solib.c (solib_read_symbols): Only print symbol loading messages
6139 if requested.
6140 (solib_add): If symbol loading is in "brief" mode, notify user
6141 symbols are being loaded.
6142 (reload_shared_libraries_1): Ditto.
6143 * symfile.c (print_symbol_loading_off): New static global.
6144 (print_symbol_loading_brief): New static global.
6145 (print_symbol_loading_full): New static global.
6146 (print_symbol_loading_enums): New static global.
6147 (print_symbol_loading): New static global.
6148 (print_symbol_loading_p): New function.
6149 (symbol_file_add_with_addrs): Only print symbol loading messages
6150 if requested.
6151 (_initialize_symfile): Register "print symbol-loading" set/show
6152 command.
6153 * symfile.h (print_symbol_loading_p): Declare.
6154
6155 2014-03-30 Doug Evans <xdje42@gmail.com>
6156
6157 * infrun.c (set_last_target_status): New function.
6158 (handle_inferior_event): Call it.
6159
6160 2014-03-30 Doug Evans <xdje42@gmail.com>
6161
6162 * inferior.h (enum stop_kind): Improve comment.
6163
6164 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6165
6166 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6167 a reference, strip the reference layer before calling
6168 the lang_ops value_has_mutated callback.
6169
6170 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6171
6172 Remove some globals from our parser.
6173 * language.c (unk_lang_parser): Add "struct parser_state"
6174 argument.
6175 * language.h (struct language_defn) <la_parser>: Likewise.
6176 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6177 (initialize_expout): Add "struct parser_state" argument.
6178 Rewrite function to use the parser state.
6179 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6180 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6181 write_exp_elt_longcst, write_exp_elt_dblcst,
6182 write_exp_elt_decfloatcst, write_exp_elt_type,
6183 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6184 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6185 write_dollar_variable): Likewise.
6186 (parse_exp_in_context_1): Use parser state.
6187 (insert_type_address_space): Add "struct parser_state" argument.
6188 Use parser state.
6189 (increase_expout_size): New function.
6190 * parser-defs.h: Forward declare "struct language_defn" and
6191 "struct parser_state".
6192 (expout, expout_size, expout_ptr): Remove extern declarations.
6193 (parse_gdbarch, parse_language): Rewrite macro declarations to
6194 accept the parser state.
6195 (struct parser_state): New struct.
6196 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6197 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6198 write_exp_elt_decfloatcst, write_exp_elt_type,
6199 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6200 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6201 write_exp_msymbol, write_dollar_variable,
6202 mark_struct_expression, insert_type_address_space): Add "struct
6203 parser_state" argument.
6204 (increase_expout_size): New function.
6205 * utils.c (do_clear_parser_state): New function.
6206 (make_cleanup_clear_parser_state): Likewise.
6207 * utils.h (make_cleanup_clear_parser_state): New function
6208 prototype.
6209 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6210 Update calls to write_exp* in order to pass the parser state.
6211 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6212 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6213 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6214 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6215 * stap-probe.c (stap_parse_register_operand): Likewise.
6216 (stap_parse_single_operand): Likewise.
6217 (stap_parse_argument_1): Likewise.
6218 (stap_parse_argument): Use parser state.
6219 * stap-probe.h: Include "parser-defs.h".
6220 (struct stap_parse_info) <pstate>: New field.
6221 * c-exp.y (parse_type): Rewrite to use parser state.
6222 (yyparse): Redefine to c_parse_internal.
6223 (pstate): New global variable.
6224 (parse_number): Add "struct parser_state" argument.
6225 (write_destructor_name): Likewise.
6226 (type_exp): Update calls to write_exp* and similars in order to
6227 use parser state.
6228 (exp1, exp, variable, qualified_name, space_identifier,
6229 typename, typebase): Likewise.
6230 (write_destructor_name, parse_number, lex_one_token,
6231 classify_name, classify_inner_name, c_parse): Add "struct
6232 parser_state" argument. Update function to use parser state.
6233 * c-lang.h: Forward declare "struct parser_state".
6234 (c_parse): Add "struct parser_state" argument.
6235 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6236 (yyparse): Redefine macro to ada_parse_internal.
6237 (pstate): New variable.
6238 (write_int, write_object_renaming, write_var_or_type,
6239 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6240 type_int, type_long, type_long_long, type_float, type_double,
6241 type_long_double, type_char, type_boolean, type_system_address):
6242 Add "struct parser_state" argument.
6243 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6244 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6245 var_or_type, aggregate, aggregate_component_list,
6246 positional_list, others, component_group,
6247 component_associations): Update calls to write_exp* and similar
6248 functions in order to use parser state.
6249 (ada_parse, write_var_from_sym, write_int,
6250 write_exp_op_with_string, write_object_renaming,
6251 find_primitive_type, write_selectors, write_ambiguous_var,
6252 write_var_or_type, write_name_assoc, type_int, type_long,
6253 type_long_long, type_float, type_double, type_long_double,
6254 type_char, type_boolean, type_system_address): Add "struct
6255 parser_state" argument. Adjust function to use parser state.
6256 * ada-lang.c (parse): Likewise.
6257 * ada-lang.h: Forward declare "struct parser_state".
6258 (ada_parse): Add "struct parser_state" argument.
6259 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6260 calls to both functions.
6261 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6262 parser state.
6263 (yyparse): Redefine macro to f_parse_internal.
6264 (pstate): New variable.
6265 (parse_number): Add "struct parser_state" argument.
6266 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6267 and similars in order to use parser state.
6268 (parse_number): Adjust code to use parser state.
6269 (yylex): Likewise.
6270 (f_parse): New function.
6271 * f-lang.h: Forward declare "struct parser_state".
6272 (f_parse): Add "struct parser_state" argument.
6273 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6274 parser state.
6275 (yyparse): Redefine macro for java_parse_internal.
6276 (pstate): New variable.
6277 (push_expression_name, push_expression_name, insert_exp): Add
6278 "struct parser_state" argument.
6279 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6280 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6281 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6282 PostIncrementExpression, PostDecrementExpression,
6283 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6284 UnaryExpressionNotPlusMinus, CastExpression,
6285 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6286 RelationalExpression, EqualityExpression, AndExpression,
6287 ExclusiveOrExpression, InclusiveOrExpression,
6288 ConditionalAndExpression, ConditionalOrExpression,
6289 ConditionalExpression, Assignment, LeftHandSide): Update
6290 calls to write_exp* and similars in order to use parser state.
6291 (parse_number): Ajust code to use parser state.
6292 (yylex): Likewise.
6293 (java_parse): New function.
6294 (push_variable): Add "struct parser_state" argument. Adjust
6295 code to user parser state.
6296 (push_fieldnames, push_qualified_expression_name,
6297 push_expression_name, insert_exp): Likewise.
6298 * jv-lang.h: Forward declare "struct parser_state".
6299 (java_parse): Add "struct parser_state" argument.
6300 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6301 parser state.
6302 (yyparse): Redefine macro to m2_parse_internal.
6303 (pstate): New variable.
6304 (type_exp, exp, fblock, variable, type): Update calls to
6305 write_exp* and similars to use parser state.
6306 (yylex): Likewise.
6307 (m2_parse): New function.
6308 * m2-lang.h: Forward declare "struct parser_state".
6309 (m2_parse): Add "struct parser_state" argument.
6310 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6311 * objc-lang.h: Forward declare "struct parser_state".
6312 (end_msglist): Add "struct parser_state" argument.
6313 * p-exp.y (parse_type): Rewrite macro to use parser state.
6314 (yyparse): Redefine macro to pascal_parse_internal.
6315 (pstate): New variable.
6316 (parse_number): Add "struct parser_state" argument.
6317 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6318 write_exp* and similars in order to use parser state.
6319 (parse_number, yylex): Adjust code to use parser state.
6320 (pascal_parse): New function.
6321 * p-lang.h: Forward declare "struct parser_state".
6322 (pascal_parse): Add "struct parser_state" argument.
6323 * go-exp.y (parse_type): Rewrite macro to use parser state.
6324 (yyparse): Redefine macro to go_parse_internal.
6325 (pstate): New variable.
6326 (parse_number): Add "struct parser_state" argument.
6327 (type_exp, exp1, exp, variable, type): Update calls to
6328 write_exp* and similars in order to use parser state.
6329 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6330 to use parser state.
6331 (go_parse): Likewise.
6332 * go-lang.h: Forward declare "struct parser_state".
6333 (go_parse): Add "struct parser_state" argument.
6334
6335 2014-03-27 Doug Evans <dje@google.com>
6336
6337 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6338
6339 2014-03-27 Doug Evans <dje@google.com>
6340
6341 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6342 Remove argument abbrev_section. All callers updated.
6343
6344 2014-03-27 Doug Evans <dje@google.com>
6345
6346 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6347 addr_base, ranges_base.
6348
6349 2014-03-26 Keith Seitz <keiths@redhat.com>
6350
6351 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6352 types, not VAR_DOMAIN.
6353
6354 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6355
6356 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6357 "ra" registers.
6358 * features/nios2-linux.c: Regenerated.
6359 * features/nios2.c: Regenerated.
6360
6361 2014-03-25 Pedro Alves <palves@redhat.com>
6362
6363 * cli/cli-script.c (script_from_file): Force the interpreter to
6364 sync mode.
6365
6366 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6367
6368 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6369 small stack allocation.
6370
6371 2014-03-24 Tristan Gingold <gingold@adacore.com>
6372
6373 * darwin-nat.c (exc_server): Remove unused prototype.
6374 (darwin_dump_message): Correctly display data on x86_64.
6375 (darwin_encode_reply): Fix style.
6376 Add comments and fix indentation.
6377
6378 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6379
6380 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6381
6382 2014-03-22 Doug Evans <xdje42@gmail.com>
6383
6384 * infcmd.c: Whitespace fixes.
6385 (interrupt_command): Merge two function comments into one.
6386
6387 2014-03-22 Doug Evans <xdje42@gmail.com>
6388
6389 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6390 All uses updated.
6391
6392 2014-03-22 Yao Qi <yao@codesourcery.com>
6393
6394 * remote.c (target_read_live_memory): Remove.
6395 (memory_xfer_live_readonly_partial): Rename it to
6396 remote_xfer_live_readonly_partial. Remove argument 'object'.
6397 All callers updated. Call remote_read_bytes_1
6398 instead of target_read_live_memory.
6399 * tracepoint.c (set_traceframe_number): Remove.
6400 (make_cleanup_restore_traceframe_number): Likewise .
6401 * tracepoint.h (set_traceframe_number): Remove declaration.
6402 (make_cleanup_restore_traceframe_number): Likewise.
6403
6404 2014-03-22 Yao Qi <yao@codesourcery.com>
6405
6406 * remote.c (remote_read_bytes): Move code on reading from the
6407 remote stub to ...
6408 (remote_read_bytes_1): ... here. New function.
6409
6410 2014-03-22 Yao Qi <yao@codesourcery.com>
6411
6412 * ctf.c (ctf_xfer_partial): Check the return value of
6413 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6414 return TARGET_XFER_UNAVAILABLE.
6415 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6416 * target.c (target_read_live_memory): Move it to remote.c.
6417 (memory_xfer_live_readonly_partial): Likewise.
6418 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6419 * remote.c (target_read_live_memory): Moved from target.c.
6420 (memory_xfer_live_readonly_partial): Likewise.
6421 (remote_read_bytes): Factored out from
6422 memory_xfer_partial_1.
6423
6424 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6425
6426 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6427 NULL pointer.
6428
6429 2014-03-21 Pedro Alves <palves@redhat.com>
6430
6431 * infrun.c (normal_stop): Extend comment.
6432
6433 2014-03-21 Hui Zhu <hui@codesourcery.com>
6434 Pedro Alves <palves@redhat.com>
6435
6436 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6437 static buffer.
6438 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6439 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6440 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6441
6442 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6443
6444 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6445 `z' formatted output modifier.
6446
6447 2014-03-20 Tom Tromey <tromey@redhat.com>
6448 Sergio Durigan Junior <sergiodj@redhat.com>
6449
6450 * probe.c (parse_probes): Turn assert into an ordinary error.
6451 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6452 exceptions when parsing probes. Rearrange the code for clarity.
6453
6454 2014-03-20 Tom Tromey <tromey@redhat.com>
6455
6456 PR gdb/14135
6457 * top.c (execute_command): Only dispatch events if the command
6458 started the target.
6459
6460 2014-03-20 Tom Tromey <tromey@redhat.com>
6461
6462 PR cli/15718
6463 * infcall.c: Include event-top.h.
6464 (run_inferior_call): Call async_disable_stdin if needed.
6465
6466 2014-03-20 Pedro Alves <palves@redhat.com>
6467
6468 * infrun.c (prepare_to_proceed): Delete.
6469 (thread_still_needs_step_over): New function.
6470 (find_thread_needs_step_over): New function.
6471 (proceed): If the current thread needs a step-over, set its
6472 steping_over_breakpoint flag. Adjust to use
6473 find_thread_needs_step_over instead of prepare_to_proceed.
6474 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6475 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6476 breakpoint.
6477 (switch_back_to_stepped_thread): Step over breakpoints of all
6478 threads not the stepping thread, before switching back to the
6479 stepping thread.
6480
6481 2014-03-20 Pedro Alves <palves@redhat.com>
6482
6483 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6484 extern.
6485 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6486 * infrun.c (saved_singlestep_ptid)
6487 (stepping_past_singlestep_breakpoint): Delete.
6488 (resume): Remove stepping_past_singlestep_breakpoint handling.
6489 (proceed): Store the prev_pc of the stepping thread too.
6490 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6491 singlestep_pc.
6492 (enum infwait_states): Delete infwait_thread_hop_state.
6493 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6494 field.
6495 (handle_inferior_event): Adjust.
6496 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6497 handling and the thread-hop code. Before removing single-step
6498 breakpoints, check whether the thread hit a single-step breakpoint
6499 of another thread. If it did, the trap is not a random signal.
6500 (switch_back_to_stepped_thread): If the event thread hit a
6501 single-step breakpoint, unblock it before switching to the
6502 stepping thread. Handle the case of the stepped thread having
6503 advanced already.
6504 (keep_going): Handle the case of the current thread moving past a
6505 single-step breakpoint.
6506
6507 2014-03-20 Pedro Alves <palves@redhat.com>
6508
6509 PR breakpoints/7143
6510 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6511 are being stepped over.
6512 (breakpoint_address_match): Make extern.
6513 * breakpoint.h (breakpoint_address_match): New declaration.
6514 * inferior.h (stepping_past_instruction_at): New declaration.
6515 * infrun.c (struct step_over_info): New type.
6516 (step_over_info): New global.
6517 (set_step_over_info, clear_step_over_info)
6518 (stepping_past_instruction_at): New functions.
6519 (handle_inferior_event): Clear the step-over info when
6520 trap_expected is cleared.
6521 (resume): Remove now stale comment.
6522 (clear_proceed_status): Clear step-over info.
6523 (proceed): Adjust step-over handling to set or clear the step-over
6524 info instead of removing all breakpoints.
6525 (handle_signal_stop): When setting up a thread-hop, don't remove
6526 breakpoints here.
6527 (stop_stepping): Clear step-over info.
6528 (keep_going): Adjust step-over handling to set or clear step-over
6529 info and then always inserting breakpoints, instead of removing
6530 all breakpoints when stepping over one.
6531
6532 2014-03-20 Pedro Alves <palves@redhat.com>
6533
6534 * infrun.c (previous_inferior_ptid): Adjust comment.
6535 (deferred_step_ptid): Delete.
6536 (infrun_thread_ptid_changed, prepare_to_proceed)
6537 (init_wait_for_inferior): Adjust.
6538 (handle_signal_stop): Delete deferred_step_ptid handling.
6539
6540 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6541
6542 PR gdb/15358
6543 * defs.h (sync_quit_force_run): New declaration.
6544 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6545 * event-top.c (async_sigterm_handler): New declaration.
6546 (async_sigterm_token): New variable.
6547 (async_init_signals): Create also async_sigterm_token.
6548 (async_sigterm_handler): New function.
6549 (sync_quit_force_run): New variable.
6550 (handle_sigterm): Replace quit_force call by other calls.
6551 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6552
6553 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6554
6555 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6556 offset into SPE pseudo registers.
6557
6558 2014-03-18 Pedro Alves <palves@redhat.com>
6559
6560 PR gdb/13860
6561 * inferior.h (print_stop_event): Declare.
6562 * infrun.c (print_stop_event): New, factored out from ...
6563 (normal_stop): ... this.
6564 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6565 of bpstat_print/print_stack_frame.
6566
6567 2014-03-17 Tom Tromey <tromey@redhat.com>
6568
6569 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6570
6571 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6572
6573 * ada-lang.c (decode_constrained_packed_array): Perform a
6574 minimal coercion for reference with coerce_ref instead of
6575 ada_coerce_ref.
6576
6577 2014-03-17 Tristan Gingold <gingold@adacore.com>
6578
6579 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6580 (darwin_solib_create_inferior_hook): Emit a warning if version
6581 is unhandled.
6582
6583 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6584
6585 * python/py-value.c (get_field_flag): Cast flag_name argument to
6586 PyObject_GetAttrString to support Python 2.4.
6587
6588 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6589
6590 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6591 (Global Maintainers): Remove Jan Kratochvil.
6592
6593 2014-03-14 Pedro Alves <palves@redhat.com>
6594
6595 * inferior.h (terminal_ours_for_output): Rename to ...
6596 (child_terminal_ours_for_output): ... this.
6597 (terminal_save_ours): Rename to ...
6598 (child_terminal_save_ours): ... this.
6599 (terminal_ours): Rename to ...
6600 (child_terminal_ours): ... this.
6601 (terminal_inferior): Rename to ...
6602 (child_terminal_inferior): ... this.
6603 (terminal_init_inferior): Rename to ...
6604 (child_terminal_init_inferior): ... this.
6605 (terminal_init_inferior_with_pgrp): Rename to ...
6606 (child_terminal_init_inferior_with_pgrp): ... this.
6607 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6608 (child_terminal_init_with_pgrp): ... this.
6609 (terminal_save_ours): Rename to ...
6610 (child_terminal_save_ours): ... this.
6611 (terminal_init_inferior): Rename to ...
6612 (child_terminal_init): ... this. Adjust.
6613 (terminal_inferior): Rename to ...
6614 (child_terminal_inferior): ... this.
6615 (terminal_ours_for_output): Rename to ...
6616 (child_terminal_ours_for_output): ... this. Adjust.
6617 (terminal_ours): Rename to ...
6618 (child_terminal_ours): ... this.
6619 (terminal_ours_1): Rename to ...
6620 (child_terminal_ours_1): ... this. Adjust.
6621 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6622 * windows-nat.c (do_initial_windows_stuff): Adjust.
6623 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6624 (gnu_terminal_init): ... this. Adjust.
6625 (gnu_target): Adjust.
6626 * inf-child.c (inf_child_target): Adjust.
6627
6628 2014-03-13 Doug Evans <xdje42@gmail.com>
6629
6630 PR guile/16612
6631 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6632 new eq?-hashtab.
6633
6634 2014-03-13 Doug Evans <xdje42@gmail.com>
6635
6636 * value.c (record_latest_value): Call release_value_or_incref
6637 instead of release_value.
6638
6639 2014-03-13 Pedro Alves <palves@redhat.com>
6640
6641 * procfs.c (procfs_target): Don't override to_shortname,
6642 to_longname or to_doc.
6643
6644 2014-03-13 Pedro Alves <palves@redhat.com>
6645
6646 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6647 Unix in user visible strings.
6648
6649 2014-03-12 Stan Shebs <stan@codesourcery.com>
6650
6651 * gdbtypes.h: Annotate comments for Doxygen, add a page
6652 block comment with some general info.
6653
6654 2014-03-12 Pedro Alves <palves@redhat.com>
6655
6656 * infcmd.c (prepare_execution_command): New function, factored out
6657 from several execution commands.
6658 (run_command_1, continue_command, step_1, jump_command)
6659 (signal_command, until_command, advance_command, finish_command)
6660 (attach_command): Use prepare_execution_command.
6661
6662 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6663
6664 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6665 (MAX_BPTS): Define.
6666 (MAX_WPTS): Define.
6667 (struct arm_linux_thread_points): Removed.
6668 (struct arm_linux_process_info): New.
6669 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6670 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6671 (arm_linux_find_breakpoints_by_tid): Removed.
6672 (struct arch_lwp_info): New.
6673 (arm_linux_find_process_pid): New functions.
6674 (arm_linux_add_process): New functions.
6675 (arm_linux_process_info_get): New functions.
6676 (arm_linux_forget_process): New function.
6677 (arm_linux_get_debug_reg_state): New function.
6678 (struct update_registers_data): New.
6679 (update_registers_callback): New function.
6680 (arm_linux_insert_hw_breakpoint1): Updated.
6681 (arm_linux_remove_hw_breakpoint1): Updated.
6682 (arm_linux_insert_hw_breakpoint): Updated.
6683 (arm_linux_remove_hw_breakpoint): Updated.
6684 (arm_linux_insert_watchpoint): Updated.
6685 (arm_linux_remove_watchpoint): Updated.
6686 (arm_linux_new_thread): Updated.
6687 (arm_linux_prepare_to_resume): New function.
6688 (arm_linux_new_fork): New function.
6689 (_initialize_arm_linux_nat): Updated.
6690
6691 2014-03-12 Pedro Alves <palves@redhat.com>
6692
6693 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6694
6695 2014-03-12 Tom Tromey <tromey@redhat.com>
6696
6697 * inf-child.c (return_zero): New function.
6698 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6699 * aix-thread.c (aix_thread_inferior_created): New function.
6700 (aix_thread_attach): Remove.
6701 (init_aix_thread_ops): Don't set to_attach.
6702 (_initialize_aix_thread): Register inferior_created observer.
6703 * corelow.c (init_core_ops): Don't set to_attach or
6704 to_create_inferior.
6705 * exec.c (init_exec_ops): Don't set to_attach or
6706 to_create_inferior.
6707 * infcmd.c (run_command_1): Use find_run_target. Make direct
6708 target calls.
6709 (attach_command): Use find_attach_target. Make direct target
6710 calls.
6711 * record-btrace.c (init_record_btrace_ops): Don't set
6712 to_create_inferior.
6713 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6714 Remove.
6715 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6716 set to_create_inferior.
6717 * target.c (complete_target_initialization): Add assertion.
6718 (target_create_inferior): Remove.
6719 (find_default_attach, find_default_create_inferior): Remove.
6720 (find_attach_target, find_run_target): New functions.
6721 (find_default_is_async_p, find_default_can_async_p)
6722 (target_supports_non_stop, target_attach): Remove.
6723 (init_dummy_target): Don't set to_create_inferior or
6724 to_supports_non_stop.
6725 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6726 TARGET_DEFAULT_FUNC.
6727 <to_create_inferior>: Add comment.
6728 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6729 TARGET_DEFAULT_RETURN.
6730 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6731 (find_attach_target, find_run_target): Declare.
6732 (target_create_inferior): Remove.
6733 (target_has_execution_1): Update comment.
6734 (target_supports_non_stop): Remove.
6735 * target-delegates.c: Rebuild.
6736
6737 2014-03-12 Pedro Alves <palves@redhat.com>
6738
6739 * inf-child.h: Update comment to not mention Unix.
6740
6741 2014-03-12 Pedro Alves <palves@redhat.com>
6742
6743 * inf-child.c: Update top comment to not mention Unix. Add
6744 generic comment describing how this target is meant to be used.
6745 (inf_child_post_attach, inf_child_post_startup_inferior)
6746 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6747 Unix in comment.
6748
6749 2014-03-12 Pedro Alves <palves@redhat.com>
6750
6751 * nto-procfs.c: Include inf-child.h.
6752 (procfs_ops): Delete global.
6753 (procfs_can_run): Delete method.
6754 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6755 target pointer instead of referencing procfs_ops.
6756 (procfs_prepare_to_store): Delete.
6757 (init_procfs_ops): Delete function.
6758 (procfs_target): New function, based on init_procfs_ops, but
6759 inherit inf_child_target.
6760 (_initialize_procfs): Use procfs_target.
6761
6762 2014-03-12 Pedro Alves <palves@redhat.com>
6763
6764 * windows-nat.c: Include inf-child.h.
6765 (windows_ops): Delete global.
6766 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6767 methods.
6768 (init_windows_ops): Delete function.
6769 (windows_target): New function, based on init_windows_ops, but
6770 inherit inf_child_target.
6771 (_initialize_windows_nat): Use windows_target. Install x86
6772 specific target methods here.
6773
6774 2014-03-10 Doug Evans <xdje42@gmail.com>
6775
6776 * guile/guile.c (call_initialize_gdb_module): New function.
6777 (initialize_guile): Replace call to scm_init_guile with call to
6778 scm_with_guile.
6779
6780 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6781
6782 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6783 in call to TYPE_CODE macro.
6784
6785 2014-03-10 Jerome Guitton <guitton@adacore.com>
6786
6787 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6788 Resolve tagged types to full view.
6789
6790 2014-03-10 Hui Zhu <hui@codesourcery.com>
6791
6792 * target.h (target_insert_breakpoint): Remove "hardware" from its
6793 comments.
6794
6795 2014-03-07 Doug Evans <dje@google.com>
6796
6797 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6798
6799 2014-03-07 Doug Evans <dje@google.com>
6800
6801 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6802 Remove unused local comp_dir_attr. Assert exactly one of
6803 stub_comp_unit_die, stub_comp_dir is non-NULL.
6804
6805 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6806
6807 * target.h (complete_target_initialization, add_target):
6808 Add comment.
6809
6810 2014-03-07 Pedro Alves <palves@redhat.com>
6811
6812 * go32-nat.c: Include inf-child.h.
6813 (go32_ops): Delete global.
6814 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6815 Delete methods.
6816 (go32_create_inferior): Push the passed in target pointer instead
6817 of referencing go32_ops.
6818 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6819 (go32_target): New function, based on init_go32_ops, but inherit
6820 inf_child_target.
6821 (_initialize_go32_nat): Use go32_target. Move parts of
6822 init_go32_ops here.
6823
6824 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6825
6826 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6827 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6828 SYMBOL_VALUE_ADDRESS.
6829 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6830
6831 2014-03-06 Yao Qi <yao@codesourcery.com>
6832
6833 * breakpoint.c (get_tracepoint_by_number): Remove argument
6834 optional_p. All callers updated. Adjust comments. Update
6835 output message.
6836 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6837
6838 2014-03-06 Yao Qi <yao@codesourcery.com>
6839
6840 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6841 early if get_number returns zero. Use 'p' instead of 'args'.
6842
6843 2014-03-06 Yao Qi <yao@codesourcery.com>
6844
6845 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6846 message.
6847
6848 2014-03-06 Yao Qi <yao@codesourcery.com>
6849
6850 PR breakpoints/16508
6851 * tracepoint.c (check_trace_running): New function.
6852 (trace_find_command): Move code to check_trace_running and
6853 call check_trace_running.
6854 (trace_find_pc_command): Likewise.
6855 (trace_find_tracepoint_command): Likewise.
6856 (trace_find_line_command): Likewise.
6857 (trace_find_range_command): Likewise.
6858 * tracepoint.h (check_trace_running): Likewise.
6859 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6860
6861 2014-03-06 Yao Qi <yao@codesourcery.com>
6862
6863 * target.h (struct target_ops) <to_traceframe_info>: Use
6864 TARGET_DEFAULT_NORETURN (tcomplain ()).
6865 * target-delegates.c: Regenerated.
6866
6867 2014-03-05 Pedro Alves <palves@redhat.com>
6868
6869 PR gdb/16575
6870 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6871 void. Update comment.
6872 (dcache_xfer_memory): Delete.
6873 (dcache_read_memory_partial): New, based on the read bits of
6874 dcache_xfer_memory.
6875 (dcache_update): Add status parameter. Use ULONGEST for len, and
6876 adjust. Discard cache lines if the reason for the update was
6877 error.
6878 * dcache.h (dcache_xfer_memory): Delete declaration.
6879 (dcache_read_memory_partial): New declaration.
6880 (dcache_update): Update prototype.
6881 * target.c (raw_memory_xfer_partial): Update the dcache here.
6882 (memory_xfer_partial_1): Don't handle dcache writes here.
6883
6884 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6885
6886 * remote-sim.c (gdbsim_load): Add const to prog.
6887
6888 2014-03-03 Tom Tromey <tromey@redhat.com>
6889
6890 * elfread.c (probe_key): Change to bfd_data.
6891 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6892 now per-BFD, not per-objfile.
6893 * stap-probe.c (stap_probe_destroy): Update comment.
6894 (handle_stap_probe): Allocate on the per-BFD obstack.
6895
6896 2014-03-03 Tom Tromey <tromey@redhat.com>
6897
6898 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6899 * breakpoint.c (create_longjmp_master_breakpoint): Use
6900 get_probe_address.
6901 (add_location_to_breakpoint, bkpt_probe_insert_location)
6902 (bkpt_probe_remove_location): Update.
6903 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6904 * elfread.c (elf_symfile_relocate_probe): Remove.
6905 (elf_probe_fns): Update.
6906 (insert_exception_resume_breakpoint): Change type of "probe"
6907 parameter to bound_probe.
6908 (check_exception_resume): Update.
6909 * objfiles.c (objfile_relocate1): Don't relocate probes.
6910 * probe.c (bound_probe_s): New typedef.
6911 (parse_probes): Use get_probe_address. Set sal's objfile.
6912 (find_probe_by_pc): Return a bound_probe.
6913 (collect_probes): Return a VEC(bound_probe_s).
6914 (compare_probes): Update.
6915 (gen_ui_out_table_header_info): Change type of "probes"
6916 parameter. Update.
6917 (info_probes_for_ops): Update.
6918 (get_probe_address): New function.
6919 (probe_safe_evaluate_at_pc): Update.
6920 * probe.h (struct probe_ops) <get_probe_address>: New field.
6921 <set_semaphore, clear_semaphore>: Add objfile parameter.
6922 (struct probe) <objfile>: Remove field.
6923 <arch>: New field.
6924 <address>: Update comment.
6925 (struct bound_probe): New.
6926 (find_probe_by_pc): Return a bound_probe.
6927 (get_probe_address): Declare.
6928 * solib-svr4.c (struct probe_and_action) <address>: New field.
6929 (hash_probe_and_action, equal_probe_and_action): Update.
6930 (register_solib_event_probe): Add address parameter.
6931 (solib_event_probe_at): Update.
6932 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6933 get_probe_address.
6934 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6935 (stap_get_probe_address): New function.
6936 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6937 (compile_probe_arg): Update.
6938 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6939 address.
6940 (handle_stap_probe): Don't relocate the probe.
6941 (stap_relocate): Remove.
6942 (stap_gen_info_probes_table_values): Update.
6943 (stap_probe_ops): Remove stap_relocate.
6944 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6945 (debug_sym_probe_fns): Update.
6946 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6947 * symtab.c (init_sal): Use memset.
6948 * symtab.h (struct symtab_and_line) <objfile>: New field.
6949 * tracepoint.c (start_tracing, stop_tracing): Update.
6950
6951 2014-03-03 Tom Tromey <tromey@redhat.com>
6952
6953 * probe.h (parse_probes, find_probe_by_pc)
6954 (find_probes_in_objfile): Fix comments.
6955
6956 2014-03-02 Doug Evans <xdje42@gmail.com>
6957
6958 * infrun.c (handle_signal_stop): Replace test for
6959 TARGET_WAITKIND_STOPPED with an assert.
6960
6961 2014-03-02 Doug Evans <xdje42@gmail.com>
6962
6963 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6964
6965 2014-03-02 Doug Evans <xdje42@gmail.com>
6966
6967 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6968
6969 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6970
6971 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6972
6973 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6974
6975 * i386obsd-nat.c: Include "obsd-nat.h".
6976 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6977 add_target.
6978 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6979
6980 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6981
6982 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6983
6984 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6985
6986 * mips64obsd-nat.c: Include "obsd-nath".
6987 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6988 add_target
6989 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6990
6991 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6992
6993 * amd64obsd-nat.c: Include "obsd-nat,h.
6994 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6995 add_target.
6996 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6997
6998 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6999
7000 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7001 (find_overload_match): Update call to find_oload_champ.
7002 (find_oload_champ_namespace_loop): Likewise
7003
7004 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7005
7006 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7007
7008 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7009 * config/sparc/obsd64.mh: New file.
7010 * sparc64obsd-nat.c: New file.
7011
7012 * obsd-nat.h: New file.
7013 * obsd-nat.c: New file.
7014 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7015 (ALLDEPFILES): Add obsd-nat.c.
7016
7017 2014-02-28 Tom Tromey <tromey@redhat.com>
7018
7019 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7020 * cli-out.h (cli_ui_out_impl): Now const.
7021 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7022 * ui-out.c (struct ui_out) <impl>: Now const.
7023 (default_ui_out_impl): Now const.
7024 (ui_out_new): Make 'impl' parameter const.
7025 * ui-out.h (ui_out_new): Update.
7026
7027 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7028
7029 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7030
7031 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7032
7033 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7034
7035 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7036
7037 Additional PR 8882 fix.
7038 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7039
7040 2014-02-27 Pedro Alves <palves@redhat.com>
7041
7042 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7043 isn't set.
7044
7045 2014-02-27 Pedro Alves <palves@redhat.com>
7046
7047 PR 12702
7048 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7049 * nat/linux-waitpid.c: Include string.h.
7050 (status_to_str): Moved here and made extern.
7051 * nat/linux-waitpid.h (status_to_str): New declaration.
7052
7053 2014-02-27 Hui Zhu <hui@codesourcery.com>
7054
7055 PR 12702
7056 * infrun.c (ptid_match): Move ...
7057 * common/ptid.c (ptid_match): ... here.
7058 * inferior.h (ptid_match): Move ...
7059 * common/ptid.h (ptid_match): ... here.
7060
7061 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7062
7063 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7064 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7065 gdb_target_obs.
7066
7067 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7068
7069 * obsd-tdep.c (obsd_auxv_parse): New function.
7070 (obsd_init_abi): Set auxv_parse.
7071
7072 * gdbarch.sh (auxv_parse): New.
7073 * gdbarch.h: Regenerated.
7074 * gdbarch.c: Regenerated.
7075 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7076
7077 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7078
7079 * guile/scm-value.c (gdbscm_history_append_x): New function.
7080 (value_functions): Add it.
7081
7082 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7083
7084 * dwarf2read.c (attr_value_as_address): New function.
7085 (dwarf2_find_base_address, read_call_site_scope): Use
7086 attr_value_as_address in place of DW_ADDR.
7087 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7088 the low and high addresses. Slight rework of the handling
7089 of the high pc being a constant form, and limit it to
7090 DWARF verson 4 or higher.
7091 (dwarf2_record_block_ranges): Likewise.
7092 (read_partial_die): Likewise.
7093 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7094
7095 2014-02-26 Tom Tromey <tromey@redhat.com>
7096
7097 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7098
7099 2014-02-26 Tom Tromey <tromey@redhat.com>
7100
7101 * elfread.c (elf_read_minimal_symbols): Return early if
7102 minimal symbols have already been read. Add "ei" parameter.
7103 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7104 * minsyms.c (prim_record_minimal_symbol_full): Update.
7105 * objfiles.h (struct objstats) <n_minsyms>: Move...
7106 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7107 * symmisc.c (print_objfile_statistics): Update.
7108
7109 2014-02-26 Tom Tromey <tromey@redhat.com>
7110
7111 * elfread.c (elf_read_minimal_symbols): New function, from
7112 elf_symfile_read.
7113 (elf_symfile_read): Call it.
7114
7115 2014-02-26 Tom Tromey <tromey@redhat.com>
7116
7117 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7118 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7119 (lookup_minimal_symbol_solib_trampoline)
7120 (lookup_minimal_symbol_by_pc_section_1)
7121 (lookup_minimal_symbol_and_objfile): Update.
7122 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7123 Don't allocate a minimal symbol if minsyms have already been read.
7124 (build_minimal_symbol_hash_tables): Update.
7125 (install_minimal_symbols): Do nothing if minsyms already read.
7126 Use the per-BFD obstack.
7127 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7128 * objfiles.c (allocate_objfile): Call
7129 terminate_minimal_symbol_table later.
7130 (have_minimal_symbols): Update.
7131 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7132 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7133 Move from struct objfile.
7134 <minsyms_read>: New field.
7135 (struct objfile) <msymbols, minimal_symbol_count,
7136 msymbol_hash, msymbol_demangled_hash>: Move.
7137 (ALL_OBJFILE_MSYMBOLS): Update.
7138 * symfile.c (read_symbols): Set minsyms_read.
7139 (reread_symbols): Update.
7140 * symmisc.c (dump_objfile, dump_msymbols): Update.
7141
7142 2014-02-26 Tom Tromey <tromey@redhat.com>
7143
7144 * minsyms.c (msymbols_sort): Remove.
7145 * minsyms.h (msymbols_sort): Remove.
7146 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7147 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7148 * elfread.c (elf_symtab_read): Don't add section offsets.
7149 * xcoffread.c (record_minimal_symbol): Don't add section offset
7150 to minimal symbol address.
7151 * somread.c (text_offset, data_offset): Remove.
7152 (som_symtab_read): Don't add section offsets to minimal symbol
7153 addresses.
7154 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7155 Don't add section offsets to minimal symbols.
7156 * coffread.c (coff_symtab_read): Don't add section offsets
7157 to minimal symbol addresses.
7158 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7159 to minimal symbol addresses.
7160 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7161 section offset to minimal symbol addresses.
7162 * mdebugread.c (parse_partial_symbols): Don't add section
7163 offset to minimal symbol addresses.
7164 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7165 offset to minimal symbol addresses.
7166
7167 2014-02-26 Tom Tromey <tromey@redhat.com>
7168
7169 * ada-lang.c (ada_main_name): Update.
7170 (ada_add_standard_exceptions): Update.
7171 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7172 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7173 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7174 * auxv.c (ld_so_xfer_auxv): Update.
7175 * avr-tdep.c (avr_scan_prologue): Update.
7176 * ax-gdb.c (gen_var_ref): Update.
7177 * blockframe.c (get_pc_function_start)
7178 (find_pc_partial_function_gnu_ifunc): Update.
7179 * breakpoint.c (create_overlay_event_breakpoint)
7180 (create_longjmp_master_breakpoint)
7181 (create_std_terminate_master_breakpoint)
7182 (create_exception_master_breakpoint): Update.
7183 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7184 * c-valprint.c (c_val_print): Update.
7185 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7186 * common/agent.c (agent_look_up_symbols): Update.
7187 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7188 * dwarf2loc.c (call_site_to_target_addr): Update.
7189 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7190 * elfread.c (elf_gnu_ifunc_record_cache)
7191 (elf_gnu_ifunc_resolve_by_got): Update.
7192 * findvar.c (default_read_var_value): Update.
7193 * frame.c (inside_main_func): Update.
7194 * frv-tdep.c (frv_frame_this_id): Update.
7195 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7196 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7197 Update.
7198 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7199 (hppa_hpux_find_dummy_bpaddr): Update.
7200 * hppa-tdep.c (hppa_symbol_address): Update.
7201 * infcmd.c (until_next_command): Update.
7202 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7203 Update.
7204 * linespec.c (minsym_found, add_minsym): Update.
7205 * linux-nat.c (get_signo): Update.
7206 * linux-thread-db.c (inferior_has_bug): Update.
7207 * m32c-tdep.c (m32c_return_value)
7208 (m32c_m16c_address_to_pointer): Update.
7209 * m32r-tdep.c (m32r_frame_this_id): Update.
7210 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7211 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7212 * maint.c (maintenance_translate_address): Update.
7213 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7214 (frob_address): New function.
7215 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7216 frob_address. Rename parameter to "pc_in".
7217 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7218 addresses.
7219 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7220 Update.
7221 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7222 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7223 * objc-lang.c (find_objc_msgsend): Update.
7224 * objfiles.c (objfile_relocate1): Update.
7225 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7226 * p-valprint.c (pascal_val_print): Update.
7227 * parse.c (write_exp_msymbol): Update.
7228 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7229 (ppc_elfv2_skip_entrypoint): Update.
7230 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7231 * printcmd.c (build_address_symbolic, msym_info)
7232 (address_info): Update.
7233 * proc-service.c (ps_pglobal_lookup): Update.
7234 * psymtab.c (find_pc_sect_psymtab_closer)
7235 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7236 Change msymbol parameter to bound_minimal_symbol.
7237 * ravenscar-thread.c (get_running_thread_id): Update.
7238 * remote.c (remote_check_symbols): Update.
7239 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7240 address.
7241 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7242 * solib-dsbt.c (lm_base): Update.
7243 * solib-frv.c (lm_base, main_got): Update.
7244 * solib-irix.c (locate_base): Update.
7245 * solib-som.c (som_solib_create_inferior_hook)
7246 (link_map_start): Update.
7247 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7248 * solib-svr4.c (elf_locate_base, enable_break): Update.
7249 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7250 (flush_ea_cache): Update.
7251 * stabsread.c (define_symbol, scan_file_globals): Update.
7252 * stack.c (find_frame_funname): Update.
7253 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7254 (debug_qf_find_pc_sect_symtab): Update.
7255 * symfile.c (simple_read_overlay_table)
7256 (simple_overlay_update): Update.
7257 * symfile.h (struct quick_symbol_functions)
7258 <find_pc_sect_symtab>: Change type of msymbol to
7259 bound_minimal_symbol.
7260 * symmisc.c (dump_msymbols): Update.
7261 * symtab.c (find_pc_sect_symtab_via_partial)
7262 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7263 (search_symbols, print_msymbol_info): Update.
7264 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7265 (MSYMBOL_VALUE_ADDRESS): Redefine.
7266 (BMSYMBOL_VALUE_ADDRESS): New macro.
7267 * tracepoint.c (scope_info): Update.
7268 * tui/tui-disasm.c (tui_find_disassembly_address)
7269 (tui_get_begin_asm_address): Update.
7270 * valops.c (find_function_in_inferior): Update.
7271 * value.c (value_static_field, value_fn_field): Update.
7272
7273 2014-02-26 Tom Tromey <tromey@redhat.com>
7274
7275 * ada-lang.c (ada_update_initial_language): Update.
7276 (ada_main_name, ada_has_this_exception_support): Update.
7277 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7278 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7279 * arm-tdep.c (arm_skip_stub): Update.
7280 * auxv.c (ld_so_xfer_auxv): Update.
7281 * avr-tdep.c (avr_scan_prologue): Update.
7282 * ax-gdb.c (gen_var_ref): Update.
7283 * breakpoint.c (struct breakpoint_objfile_data)
7284 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7285 type to bound_minimal_symbol.
7286 (create_overlay_event_breakpoint)
7287 (create_longjmp_master_breakpoint)
7288 (create_std_terminate_master_breakpoint)
7289 (create_exception_master_breakpoint): Update.
7290 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7291 * c-exp.y (classify_name): Update.
7292 * coffread.c (coff_symfile_read): Update.
7293 * common/agent.c (agent_look_up_symbols): Update.
7294 * d-lang.c (d_main_name): Update.
7295 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7296 * dec-thread.c (enable_dec_thread): Update.
7297 * dwarf2loc.c (call_site_to_target_addr): Update.
7298 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7299 * eval.c (evaluate_subexp_standard): Update.
7300 * findvar.c (struct minsym_lookup_data) <result>: Change type
7301 to bound_minimal_symbol.
7302 <objfile>: Remove.
7303 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7304 * frame.c (inside_main_func): Update.
7305 * frv-tdep.c (frv_frame_this_id): Update.
7306 * gcore.c (call_target_sbrk): Update.
7307 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7308 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7309 Update.
7310 * go-lang.c (go_main_name): Update.
7311 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7312 (hppa_hpux_find_import_stub_for_addr): Update.
7313 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7314 Update. Change return type.
7315 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7316 type.
7317 * jit.c (jit_breakpoint_re_set_internal): Update.
7318 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7319 Update.
7320 * linux-nat.c (get_signo): Update.
7321 * linux-thread-db.c (inferior_has_bug): Update
7322 * m32c-tdep.c (m32c_return_value)
7323 (m32c_m16c_address_to_pointer): Update.
7324 * m32r-tdep.c (m32r_frame_this_id): Update.
7325 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7326 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7327 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7328 lookup_minimal_symbol. Change return type.
7329 (lookup_minimal_symbol): Remove.
7330 (lookup_bound_minimal_symbol): Update.
7331 (lookup_minimal_symbol_text): Change return type.
7332 (lookup_minimal_symbol_solib_trampoline): Change return type.
7333 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7334 (lookup_minimal_symbol_solib_trampoline): Change return type.
7335 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7336 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7337 (value_nsstring, find_imps): Update.
7338 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7339 * p-lang.c (pascal_main_name): Update.
7340 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7341 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7342 * proc-service.c (ps_pglobal_lookup): Update.
7343 * ravenscar-thread.c (get_running_thread_msymbol): Change
7344 return type.
7345 (has_ravenscar_runtime, get_running_thread_id): Update.
7346 * remote.c (remote_check_symbols): Update.
7347 * sol-thread.c (ps_pglobal_lookup): Update.
7348 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7349 * solib-dsbt.c (lm_base): Update.
7350 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7351 Update.
7352 * solib-irix.c (locate_base): Update.
7353 * solib-som.c (som_solib_create_inferior_hook)
7354 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7355 Update.
7356 * solib-spu.c (spu_enable_break): Update.
7357 * solib-svr4.c (elf_locate_base, enable_break): Update.
7358 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7359 (flush_ea_cache): Update.
7360 * stabsread.c (define_symbol): Update.
7361 * symfile.c (simple_read_overlay_table): Update.
7362 * symtab.c (find_pc_sect_line): Update.
7363 * tracepoint.c (scope_info): Update.
7364 * tui-disasm.c (tui_get_begin_asm_address): Update.
7365 * value.c (value_static_field): Update.
7366
7367 2014-02-26 Tom Tromey <tromey@redhat.com>
7368
7369 * minsyms.c (prim_record_minimal_symbol_full): Use
7370 SET_MSYMBOL_VALUE_ADDRESS.
7371 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7372 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7373 SET_MSYMBOL_VALUE_ADDRESS.
7374 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7375 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7376
7377 2014-02-26 Tom Tromey <tromey@redhat.com>
7378
7379 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7380 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7381 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7382 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7383 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7384 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7385 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7386 * ada-lang.c (ada_main_name): Update.
7387 (ada_lookup_simple_minsym): Update.
7388 (ada_make_symbol_completion_list): Update.
7389 (ada_add_standard_exceptions): Update.
7390 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7391 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7392 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7393 * arm-tdep.c (skip_prologue_function): Update.
7394 (arm_skip_stack_protector, arm_skip_stub): Update.
7395 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7396 (arm_wince_skip_main_prologue): Update.
7397 * auxv.c (ld_so_xfer_auxv): Update.
7398 * avr-tdep.c (avr_scan_prologue): Update.
7399 * ax-gdb.c (gen_var_ref): Update.
7400 * block.c (call_site_for_pc): Update.
7401 * blockframe.c (get_pc_function_start): Update.
7402 (find_pc_partial_function_gnu_ifunc): Update.
7403 * breakpoint.c (create_overlay_event_breakpoint): Update.
7404 (create_longjmp_master_breakpoint): Update.
7405 (create_std_terminate_master_breakpoint): Update.
7406 (create_exception_master_breakpoint): Update.
7407 (resolve_sal_pc): Update.
7408 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7409 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7410 Update.
7411 * c-valprint.c (c_val_print): Update.
7412 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7413 * coffread.c (coff_symfile_read): Update.
7414 * common/agent.c (agent_look_up_symbols): Update.
7415 * dbxread.c (find_stab_function_addr): Update.
7416 (end_psymtab): Update.
7417 * dwarf2loc.c (call_site_to_target_addr): Update.
7418 (func_verify_no_selftailcall): Update.
7419 (tailcall_dump): Update.
7420 (call_site_find_chain_1): Update.
7421 (dwarf_expr_reg_to_entry_parameter): Update.
7422 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7423 (elf_gnu_ifunc_resolve_by_got): Update.
7424 * f-valprint.c (info_common_command): Update.
7425 * findvar.c (read_var_value): Update.
7426 * frame.c (get_prev_frame_1): Update.
7427 (inside_main_func): Update.
7428 * frv-tdep.c (frv_skip_main_prologue): Update.
7429 (frv_frame_this_id): Update.
7430 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7431 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7432 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7433 (gnuv3_skip_trampoline): Update.
7434 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7435 (hppa64_hpux_in_solib_call_trampoline): Update.
7436 (hppa_hpux_skip_trampoline_code): Update.
7437 (hppa64_hpux_search_dummy_call_sequence): Update.
7438 (hppa_hpux_find_import_stub_for_addr): Update.
7439 (hppa_hpux_find_dummy_bpaddr): Update.
7440 * hppa-tdep.c (hppa_symbol_address)
7441 (hppa_lookup_stub_minimal_symbol): Update.
7442 * i386-tdep.c (i386_skip_main_prologue): Update.
7443 (i386_pe_skip_trampoline_code): Update.
7444 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7445 * infcall.c (get_function_name): Update.
7446 * infcmd.c (until_next_command): Update.
7447 * jit.c (jit_breakpoint_re_set_internal): Update.
7448 (jit_inferior_init): Update.
7449 * linespec.c (minsym_found): Update.
7450 (add_minsym): Update.
7451 * linux-fork.c (info_checkpoints_command): Update.
7452 * linux-nat.c (get_signo): Update.
7453 * linux-thread-db.c (inferior_has_bug): Update.
7454 * m32c-tdep.c (m32c_return_value): Update.
7455 (m32c_m16c_address_to_pointer): Update.
7456 (m32c_m16c_pointer_to_address): Update.
7457 * m32r-tdep.c (m32r_frame_this_id): Update.
7458 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7459 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7460 * maint.c (maintenance_translate_address): Update.
7461 * minsyms.c (add_minsym_to_hash_table): Update.
7462 (add_minsym_to_demangled_hash_table): Update.
7463 (msymbol_objfile): Update.
7464 (lookup_minimal_symbol): Update.
7465 (iterate_over_minimal_symbols): Update.
7466 (lookup_minimal_symbol_text): Update.
7467 (lookup_minimal_symbol_by_pc_name): Update.
7468 (lookup_minimal_symbol_solib_trampoline): Update.
7469 (lookup_minimal_symbol_by_pc_section_1): Update.
7470 (lookup_minimal_symbol_and_objfile): Update.
7471 (prim_record_minimal_symbol_full): Update.
7472 (compare_minimal_symbols): Update.
7473 (compact_minimal_symbols): Update.
7474 (build_minimal_symbol_hash_tables): Update.
7475 (install_minimal_symbols): Update.
7476 (terminate_minimal_symbol_table): Update.
7477 (find_solib_trampoline_target): Update.
7478 (minimal_symbol_upper_bound): Update.
7479 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7480 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7481 (mips_skip_pic_trampoline_code): Update.
7482 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7483 * objc-lang.c (selectors_info): Update.
7484 (classes_info): Update.
7485 (find_methods): Update.
7486 (find_imps): Update.
7487 (find_objc_msgsend): Update.
7488 * objfiles.c (objfile_relocate1): Update.
7489 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7490 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7491 * p-valprint.c (pascal_val_print): Update.
7492 * parse.c (write_exp_msymbol): Update.
7493 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7494 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7495 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7496 * printcmd.c (build_address_symbolic): Update.
7497 (sym_info): Update.
7498 (address_info): Update.
7499 * proc-service.c (ps_pglobal_lookup): Update.
7500 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7501 (find_pc_sect_psymtab): Update.
7502 * python/py-framefilter.c (py_print_frame): Update.
7503 * ravenscar-thread.c (get_running_thread_id): Update.
7504 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7505 Update.
7506 * remote.c (remote_check_symbols): Update.
7507 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7508 (rs6000_skip_trampoline_code): Update.
7509 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7510 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7511 * solib-dsbt.c (lm_base): Update.
7512 * solib-frv.c (lm_base): Update.
7513 (main_got): Update.
7514 * solib-irix.c (locate_base): Update.
7515 * solib-som.c (som_solib_create_inferior_hook): Update.
7516 (som_solib_desire_dynamic_linker_symbols): Update.
7517 (link_map_start): Update.
7518 * solib-spu.c (spu_enable_break): Update.
7519 (ocl_enable_break): Update.
7520 * solib-svr4.c (elf_locate_base): Update.
7521 (enable_break): Update.
7522 * spu-tdep.c (spu_get_overlay_table): Update.
7523 (spu_catch_start): Update.
7524 (flush_ea_cache): Update.
7525 * stabsread.c (define_symbol): Update.
7526 (scan_file_globals): Update.
7527 * stack.c (find_frame_funname): Update.
7528 (frame_info): Update.
7529 * symfile.c (simple_read_overlay_table): Update.
7530 (simple_overlay_update): Update.
7531 * symmisc.c (dump_msymbols): Update.
7532 * symtab.c (fixup_section): Update.
7533 (find_pc_sect_line): Update.
7534 (skip_prologue_sal): Update.
7535 (search_symbols): Update.
7536 (print_msymbol_info): Update.
7537 (rbreak_command): Update.
7538 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7539 (completion_list_objc_symbol): Update.
7540 (default_make_symbol_completion_list_break_on): Update.
7541 * tracepoint.c (scope_info): Update.
7542 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7543 (tui_get_begin_asm_address): Update.
7544 * valops.c (find_function_in_inferior): Update.
7545 * value.c (value_static_field): Update.
7546 (value_fn_field): Update.
7547
7548 2014-02-26 Tom Tromey <tromey@redhat.com>
7549
7550 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7551 bound minimal symbols. Move code that knows about minsym
7552 table layout...
7553 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7554 function.
7555 * minsyms.h (minimal_symbol_upper_bound): Declare.
7556 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7557 minimal_symbol_upper_bound.
7558
7559 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7560
7561 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7562 Use the type's name if its basic type does not have a tag.
7563
7564 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7565
7566 * dwarf2read.c (read_subrange_type): Add comment.
7567
7568 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7569
7570 * dwarf2read.c (update_enumeration_type_from_children): New
7571 function, mostly extracted from process_structure_scope.
7572 (read_enumeration_type): Call update_enumeration_type_from_children.
7573 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7574 and flag_flag_enum fields.
7575
7576 2014-02-26 Pedro Alves <palves@redhat.com>
7577
7578 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7579 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7580 to_xfer_partial method.
7581
7582 2014-02-26 Pedro Alves <palves@redhat.com>
7583
7584 * target.c (complete_target_initialization): Don't install
7585 default_xfer_partial as to_xfer_partial hook.
7586 (nomemory): Delete.
7587 (update_current_target): Don't INHERIT nor de_fault
7588 deprecated_xfer_memory. Delete de_fault macro.
7589 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7590 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7591 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7592 field.
7593
7594 2014-02-26 Pedro Alves <palves@redhat.com>
7595
7596 * go32-nat.c (my_write_child): New function.
7597 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7598 (go32_xfer_partial): New function.
7599 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7600 Instead install a to_xfer_partial hook.
7601
7602 2014-02-26 Pedro Alves <palves@redhat.com>
7603
7604 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7605 to_xfer_partial helper. Rewrite.
7606 (procfs_xfer_partial): New function.
7607 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7608 Install a to_xfer_partial hook.
7609
7610 2014-02-26 Pedro Alves <palves@redhat.com>
7611
7612 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7613 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7614 (m32r_xfer_partial): New function.
7615 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7616 Install a to_xfer_partial hook.
7617
7618 2014-02-26 Pedro Alves <palves@redhat.com>
7619
7620 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7621 helper.
7622 (mips_xfer_partial): New function.
7623 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7624 hook. Install a to_xfer_partial hook.
7625
7626 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7627
7628 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7629 * gdbtypes.c (create_array_type_with_stride): New function,
7630 renaming create_array_type, but with an added parameter
7631 called "bit_stride".
7632 (create_array_type): Re-implement using
7633 create_array_type_with_stride.
7634 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7635 and DW_AT_bit_stride attributes.
7636
7637 2014-02-26 Pedro Alves <palves@redhat.com>
7638
7639 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7640 task-specific breakpoints.
7641
7642 2014-02-25 Pedro Alves <palves@redhat.com>
7643
7644 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7645 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7646
7647 2014-02-25 Stan Shebs <stan@codesourcery.com>
7648
7649 * defs.h: Annotate comments for Doxygen.
7650
7651 2014-02-25 Tom Tromey <tromey@redhat.com>
7652
7653 * target.h (target_ignore): Don't declare.
7654 * target.c (target_ignore): Remove.
7655
7656 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7657
7658 PR gdb/16626
7659 * auto-load.c (auto_load_objfile_script_1): Change filename to
7660 debugfile.
7661
7662 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7663
7664 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7665 documentation. Adjust prototype to match the target_ops
7666 to_xfer_partial method. Adjust implementation accordingly.
7667
7668 2014-02-25 Hui Zhu <hui@codesourcery.com>
7669
7670 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7671 to_traceframe_info.
7672
7673 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7674
7675 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7676 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7677 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7678 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7679 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7680 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7681 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7682 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7683 New constants.
7684 (rl78_register_type): Use a data pointer type for SP and
7685 new pseudo registers mentioned above. Use a 16 bit integer
7686 type for all other register pairs.
7687 (rl78_register_name, rl78_g10_register_name): Update for
7688 new pseudo registers.
7689 (rl78_pseudo_register_read): Likewise.
7690 (rl78_pseudo_register_write): Likewise.
7691 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7692 to the newly added pseudo registers.
7693
7694 2014-02-24 Doug Evans <dje@google.com>
7695
7696 * value.c (record_latest_value): Fix comment.
7697 * printcmd.c (print_command_1): Remove code to handle -1 return from
7698 record_latest_value.
7699
7700 2014-02-24 Pedro Alves <palves@redhat.com>
7701
7702 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7703 deprecated_xfer_memory hook.
7704 (procfs_xfer_partial): Call procfs_xfer_memory instead
7705 of the deprecated_xfer_memory target hook.
7706 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7707 helper.
7708
7709 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7710
7711 * windows-nat.c (windows_xfer_shared_libraries): Return
7712 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7713 requested object is TARGET_OBJECT_LIBRARIES.
7714
7715 2014-02-24 Yao Qi <yao@codesourcery.com>
7716
7717 * target.h (enum target_xfer_status)
7718 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7719 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7720 explicitly. New.
7721 * corefile.c (memory_error_message): User updated.
7722 * exec.c (section_table_read_available_memory): Likewise.
7723 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7724 * target.c (target_xfer_status_to_string): Likewise.
7725 (raw_memory_xfer_partial): Likewise.
7726 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7727 * valops.c (read_value_memory): Likewise.
7728 * exec.h: Update comments.
7729
7730 2014-02-24 Yao Qi <yao@codesourcery.com>
7731
7732 * target.c (target_xfer_status_to_string): Rename argument err
7733 to status.
7734 * target.h (target_xfer_status_to_string): Update declaration.
7735 Replace target_xfer_error_to_string with
7736 target_xfer_status_to_string in comment.
7737
7738 2014-02-24 Yao Qi <yao@codesourcery.com>
7739
7740 * mips-linux-nat.c (super_close): Update its type.
7741 (mips_linux_close): Pass 'self' to super_close.
7742
7743 2014-02-24 Yao Qi <yao@codesourcery.com>
7744
7745 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7746 * corefile.c (read_memory): Adjusted.
7747 * target.c (target_write_with_progress): Adjusted.
7748
7749 2014-02-23 Yao Qi <yao@codesourcery.com>
7750
7751 Revert two patches:
7752
7753 2013-10-25 Yao Qi <yao@codesourcery.com>
7754
7755 * remote.c (remote_traceframe_info): Return early if
7756 traceframe is not selected.
7757
7758 2013-07-19 Yao Qi <yao@codesourcery.com>
7759
7760 * target.c (update_current_target): Change the default action
7761 of 'to_traceframe_info' from tcomplain to return_zero.
7762 * target.h (struct target_ops) <to_traceframe_info>: Add more
7763 comments.
7764
7765 2014-02-23 Yao Qi <yao@codesourcery.com>
7766
7767 * valops.c (read_value_memory): Rewrite it. Call
7768 target_xfer_partial in a loop.
7769 * exec.h (section_table_available_memory): Remove declaration.
7770 Move comments to ...
7771 * exec.c (section_table_available_memory): ... here. Make it
7772 static.
7773
7774 2014-02-23 Yao Qi <yao@codesourcery.com>
7775
7776 * exec.c (section_table_read_available_memory): New function.
7777 * exec.h (section_table_read_available_memory): Declare.
7778 * ctf.c (ctf_xfer_partial): Call
7779 section_table_read_available_memory.
7780 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7781
7782 2014-02-23 Yao Qi <yao@codesourcery.com>
7783
7784 * ctf.c (ctf_xfer_partial): Move code to ...
7785 * exec.c (exec_read_partial_read_only): ... it. New function.
7786 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7787 * tracefile.c: Include "exec.h".
7788 * exec.h (exec_read_partial_read_only): Declare.
7789
7790 2014-02-23 Yao Qi <yao@codesourcery.com>
7791
7792 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7793 (tfile_has_memory): Remove.
7794 (init_tfile_ops): Don't set fields to_has_all_memory and
7795 to_has_memory of tfile_ops.
7796 * tracefile.c (tracefile_has_all_memory): New function.
7797 (tracefile_has_memory): New function.
7798 (init_tracefile_ops): Initialize fields to_has_all_memory and
7799 to_has_memory of 'ops'.
7800
7801 2014-02-23 Yao Qi <yao@codesourcery.com>
7802
7803 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7804 (ctf_thread_alive, ctf_get_trace_status): Remove.
7805 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7806 init_tracefile_ops.
7807 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7808 (tfile_has_stack, tfile_has_registers): Remove.
7809 (tfile_thread_alive): Remove.
7810 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7811 init_tracefile_ops.
7812 * tracefile.c (tracefile_has_stack): New function.
7813 (tracefile_has_registers): New function.
7814 (tracefile_thread_alive): New function.
7815 (tracefile_get_trace_status): New function.
7816 (init_tracefile_ops): New function.
7817 * tracefile.h (init_tracefile_ops): Declare.
7818
7819 2014-02-23 Yao Qi <yao@codesourcery.com>
7820
7821 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7822 (O_LARGEFILE): Likewise.
7823 (tfile_ops): Likewise.
7824 (TRACE_HEADER_SIZE): Likewise.
7825 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7826 (cur_data_size): Likewise.
7827 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7828 (tfile_close, tfile_files_info): Likewise.
7829 (tfile_get_trace_status): Likewise.
7830 (tfile_get_tracepoint_status): Likewise.
7831 (tfile_get_traceframe_address): Likewise.
7832 (tfile_trace_find, match_blocktype): Likewise.
7833 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7834 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7835 (tfile_get_trace_state_variable_value): Likewise.
7836 (tfile_has_all_memory, tfile_has_memory): Likewise.
7837 (tfile_has_stack, tfile_has_registers): Likewise.
7838 (tfile_thread_alive, build_traceframe_info): Likewise.
7839 (tfile_traceframe_info, init_tfile_ops): Likewise.
7840 (_initialize_tracepoint): Don't call init_tfile_ops
7841 and add_target_with_completer.
7842 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7843 exec.h, completer.h and filenames.h.
7844 (_initialize_tracefile_tfile): New function.
7845
7846 2014-02-23 Yao Qi <yao@codesourcery.com>
7847
7848 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7849 tracefile-tfile.o.
7850 (HFILES_NO_SRCDIR): Add tracefile.h.
7851 * ctf.c: Include "tracefile.h".
7852 * tracefile.h: New file.
7853 * tracefile.c: New file
7854 * tracefile-tfile.c: New file.
7855 * tracepoint.c: Include "tracefile.h".
7856 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7857 (stop_reason_names): Add const.
7858 (trace_file_writer_xfree): Move it to tracefile.c.
7859 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7860 (trace_save_ctf): Likewise.
7861 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7862 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7863 (tfile_write_header, tfile_write_regblock_type): Likewise.
7864 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7865 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7866 (tfile_write_raw_data, tfile_end): Likewise.
7867 (tfile_trace_file_writer_new): Likewise.
7868 (free_uploaded_tp): Make it extern.
7869 (free_uploaded_tsv): Make it extern.
7870 (_initialize_tracepoint): Move code to register command 'tsave'
7871 to tracefile.c.
7872 * tracepoint.h (stop_reason_names): Declare.
7873 (struct trace_frame_write_ops): Move it to tracefile.h.
7874 (struct trace_file_write_ops): Likewise.
7875 (struct trace_file_writer): Likewise.
7876 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7877
7878 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7879
7880 PR gdb/16594
7881 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7882 process name.
7883 (get_cores_used_by_process): New parameter num_cores, use it.
7884 (linux_xfer_osdata_processes): Pass num_cores to it.
7885 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7886 process name.
7887
7888 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7889
7890 * target.c (memory_xfer_partial): Fix length arg in call to
7891 breakpoint_xfer_memory.
7892
7893 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7894
7895 PR tdep/16397
7896 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7897 number comes after the + or - signs. Adjust length of register
7898 name to be extracted.
7899
7900 2014-02-20 Tom Tromey <tromey@redhat.com>
7901
7902 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7903 (ada_varobj_ops): Mark "extern".
7904
7905 2014-02-20 Tom Tromey <tromey@redhat.com>
7906
7907 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7908
7909 2014-02-20 Doug Evans <xdje42@gmail.com>
7910
7911 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7912 All callers updated.
7913 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7914 All callers updated.
7915 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7916 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7917
7918 2014-02-20 lin zuojian <manjian2006@gmail.com>
7919 Joel Brobecker <brobecker@adacore.com>
7920 Doug Evans <xdje42@gmail.com>
7921
7922 PR symtab/16581
7923 * dwarf2read.c (struct die_info): New member in_process.
7924 (reset_die_in_process): New function.
7925 (process_die): Set it at the start, reset when returning.
7926 (inherit_abstract_dies): Only call process_die if origin_child_die
7927 not already being processed.
7928
7929 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7930
7931 * windows-nat.c (handle_unload_dll): Add function documentation.
7932 (do_initial_windows_stuff): Add comment explaining why we wait
7933 until after inferior initialization has finished before
7934 processing all DLLs.
7935
7936 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7937
7938 * windows-nat.c (get_module_name): Delete.
7939 (windows_get_exec_module_filename): New function, mostly
7940 inspired from get_module_name.
7941 (windows_pid_to_exec_file): Replace call to get_module_name
7942 by call to windows_get_exec_module_filename.
7943
7944 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7945
7946 * windows-nat.c (handle_load_dll): Rewrite this function's
7947 introductory comment. Remove code using get_module_name
7948 to get the DLL's name.
7949
7950 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7951
7952 * windows-nat.c (get_windows_debug_event): Ignore
7953 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7954 if windows_initialization_done == 0.
7955 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7956 Adjust implementation to always load all DLLs.
7957 (do_initial_windows_stuff): Replace call to
7958 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7959
7960 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7961
7962 * windows-nat.c (_initialize_windows_nat): Deprecate the
7963 "dll-symbols" command. Turn the "add-shared-symbol-files"
7964 and "assf" aliases into commands, and deprecate them as well.
7965 * NEWS: Add entry explaining that "dll-symbols" and its two
7966 aliases are now deprecated.
7967
7968 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7969
7970 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7971 new-line in debug string. Remove trailing spaces.
7972
7973 2014-02-19 Stan Shebs <stan@codesourcery.com>
7974
7975 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7976
7977 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7978
7979 * NEWS: Add entry for the new feature
7980 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7981 and class values.
7982
7983 2014-02-19 Stan Shebs <stan@codesourcery.com>
7984
7985 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7986
7987 2014-02-19 Pedro Alves <palves@redhat.com>
7988
7989 * common/ptid.h (struct ptid): Mention that process_stratum
7990 targets should prefer ptid.lwp.
7991
7992 2014-02-19 Pedro Alves <palves@redhat.com>
7993
7994 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7995 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7996 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7997 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7998 store remote thread ids rather than ptid.tid.
7999 (_initialize_remote): Adjust.
8000
8001 2014-02-19 Tom Tromey <tromey@redhat.com>
8002
8003 * target.c (target_get_unwinder): Rewrite.
8004 (target_get_tailcall_unwinder): Rewrite.
8005 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8006 (record_btrace_to_get_tailcall_unwinder): New function.
8007 (init_record_btrace_ops): Update.
8008 * target.h (struct target_ops) <to_get_unwinder,
8009 to_get_tailcall_unwinder>: Now function pointers. Use
8010 TARGET_DEFAULT_RETURN.
8011
8012 2014-02-19 Tom Tromey <tromey@redhat.com>
8013
8014 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8015 argument.
8016 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8017
8018 2014-02-19 Tom Tromey <tromey@redhat.com>
8019
8020 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8021 directly.
8022 * target-delegates.c: Rebuild.
8023 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8024 TARGET_DEFAULT_FUNC.
8025 * target.c (default_target_decr_pc_after_break): Rename from
8026 forward_target_decr_pc_after_break. Simplify.
8027 (target_decr_pc_after_break): Rely on delegation.
8028
8029 2014-02-19 Tom Tromey <tromey@redhat.com>
8030
8031 * target.c (update_current_target): Do not INHERIT to_doc or
8032 to_magic. Do not de_fault to_open or to_close.
8033
8034 2014-02-19 Tom Tromey <tromey@redhat.com>
8035
8036 * gcore.h (objfile_find_memory_regions): Declare.
8037 * gcore.c (objfile_find_memory_regions): No longer static. Add
8038 "self" argument.
8039 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8040 * exec.c: Include gcore.h.
8041 (exec_set_find_memory_regions): Remove.
8042 (exec_find_memory_regions): Remove.
8043 (exec_do_find_memory_regions): Remove.
8044 (init_exec_ops): Update.
8045 * defs.h (exec_set_find_memory_regions): Remove.
8046
8047 2014-02-19 Tom Tromey <tromey@redhat.com>
8048
8049 * target-delegates.c: Rebuild.
8050 * target.h (struct target_ops) <to_extra_thread_info,
8051 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8052 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8053 not 0, in TARGET_DEFAULT_RETURN.
8054
8055 2014-02-19 Tom Tromey <tromey@redhat.com>
8056
8057 * target.c (complete_target_initialization): Remove casts. Use
8058 return_zero_has_execution.
8059 (return_zero): Add "ignore" argument.
8060 (return_zero_has_execution): New function.
8061 (init_dummy_target): Remove casts. Use
8062 return_zero_has_execution.
8063
8064 2014-02-19 Tom Tromey <tromey@redhat.com>
8065
8066 * target.c (update_current_target): Update comments. Do not
8067 INHERIT to_stratum.
8068
8069 2014-02-19 Tom Tromey <tromey@redhat.com>
8070
8071 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8072 needed.
8073 * corelow.c (core_read_description): Delegate when needed.
8074 * remote.c (remote_read_description): Delegate when needed.
8075 * target-delegates.c: Rebuild.
8076 * target.c (target_read_description): Rewrite.
8077 * target.h (struct target_ops) <to_read_description>: Update
8078 comment. Use TARGET_DEFAULT_RETURN.
8079
8080 2014-02-19 Tom Tromey <tromey@redhat.com>
8081
8082 * target-delegates.c: Rebuild.
8083 * target.c (update_current_target): Don't inherit or default
8084 to_can_run.
8085 (find_default_run_target): Check against delegate_can_run.
8086 * target.h (struct target_ops) <to_can_run>: Use
8087 TARGET_DEFAULT_RETURN.
8088
8089 2014-02-19 Tom Tromey <tromey@redhat.com>
8090
8091 * target-delegates.c: Rebuild.
8092 * target.c (target_disconnect): Unconditionally delegate.
8093 * target.h (struct target_ops) <to_disconnect>: Use
8094 TARGET_DEFAULT_NORETURN.
8095
8096 2014-02-19 Tom Tromey <tromey@redhat.com>
8097
8098 * record.c (record_stop): Unconditionally delegate.
8099 * target-delegates.c: Rebuild.
8100 * target.c (target_stop_recording): Unconditionally delegate.
8101 * target.h (struct target_ops) <to_stop_recording>: Use
8102 TARGET_DEFAULT_IGNORE.
8103
8104 2014-02-19 Tom Tromey <tromey@redhat.com>
8105
8106 * target-delegates.c: Rebuild.
8107 * target.c (target_enable_btrace): Unconditionally delegate.
8108 * target.h (struct target_ops) <to_enable_btrace>: Use
8109 TARGET_DEFAULT_NORETURN.
8110
8111 2014-02-19 Tom Tromey <tromey@redhat.com>
8112
8113 * target-delegates.c: Rebuild.
8114 * target.c (target_read_btrace): Unconditionally delegate.
8115 * target.h (struct target_ops) <to_read_btrace>: Use
8116 TARGET_DEFAULT_NORETURN.
8117
8118 2014-02-19 Tom Tromey <tromey@redhat.com>
8119
8120 * target-delegates.c: Rebuild.
8121 * target.c (target_teardown_btrace): Unconditionally delegate.
8122 * target.h (struct target_ops) <to_teardown_btrace>: Use
8123 TARGET_DEFAULT_NORETURN.
8124
8125 2014-02-19 Tom Tromey <tromey@redhat.com>
8126
8127 * target-delegates.c: Rebuild.
8128 * target.c (target_disable_btrace): Unconditionally delegate.
8129 * target.h (struct target_ops) <to_disable_btrace>: Use
8130 TARGET_DEFAULT_NORETURN.
8131
8132 2014-02-19 Tom Tromey <tromey@redhat.com>
8133
8134 * target-delegates.c: Rebuild.
8135 * target.c (default_search_memory): New function.
8136 (simple_search_memory): Update comment.
8137 (target_search_memory): Unconditionally delegate.
8138 * target.h (struct target_ops) <to_search_memory>: Use
8139 TARGET_DEFAULT_FUNC.
8140
8141 2014-02-19 Tom Tromey <tromey@redhat.com>
8142
8143 * auxv.c (default_auxv_parse): No longer static.
8144 (target_auxv_parse): Unconditionally delegate.
8145 * auxv.h (default_auxv_parse): Declare.
8146 * target-delegates.c: Rebuild.
8147 * target.c: Include auxv.h.
8148 * target.h (struct target_ops) <to_auxv_parse>: Use
8149 TARGET_DEFAULT_FUNC.
8150
8151 2014-02-19 Tom Tromey <tromey@redhat.com>
8152
8153 * target-delegates.c: Rebuild.
8154 * target.c (target_memory_map): Unconditionally delegate.
8155 * target.h (struct target_ops) <to_memory_map>: Use
8156 TARGET_DEFAULT_RETURN.
8157
8158 2014-02-19 Tom Tromey <tromey@redhat.com>
8159
8160 * target-delegates.c: Rebuild.
8161 * target.c (target_thread_alive): Unconditionally delegate.
8162 * target.h (struct target_ops) <to_thread_alive>: Use
8163 TARGET_DEFAULT_RETURN.
8164
8165 2014-02-19 Tom Tromey <tromey@redhat.com>
8166
8167 * target-delegates.c: Rebuild.
8168 * target.c (target_save_record): Unconditionally delegate.
8169 * target.h (struct target_ops) <to_save_record>: Use
8170 TARGET_DEFAULT_NORETURN.
8171
8172 2014-02-19 Tom Tromey <tromey@redhat.com>
8173
8174 * target-delegates.c: Rebuild.
8175 * target.c (target_delete_record): Unconditionally delegate.
8176 * target.h (struct target_ops) <to_delete_record>: Use
8177 TARGET_DEFAULT_NORETURN.
8178
8179 2014-02-19 Tom Tromey <tromey@redhat.com>
8180
8181 * target-delegates.c: Rebuild.
8182 * target.c (target_record_is_replaying): Unconditionally
8183 delegate.
8184 * target.h (struct target_ops) <to_record_is_replaying>: Use
8185 TARGET_DEFAULT_RETURN.
8186
8187 2014-02-19 Tom Tromey <tromey@redhat.com>
8188
8189 * target-delegates.c: Rebuild.
8190 * target.c (target_goto_record_begin): Unconditionally delegate.
8191 * target.h (struct target_ops) <to_goto_record_begin>: Use
8192 TARGET_DEFAULT_NORETURN.
8193
8194 2014-02-19 Tom Tromey <tromey@redhat.com>
8195
8196 * target-delegates.c: Rebuild.
8197 * target.c (target_goto_record_end): Unconditionally delegate.
8198 * target.h (struct target_ops) <to_goto_record_end>: Use
8199 TARGET_DEFAULT_NORETURN.
8200
8201 2014-02-19 Tom Tromey <tromey@redhat.com>
8202
8203 * target-delegates.c: Rebuild.
8204 * target.c (target_goto_record): Unconditionally delegate.
8205 * target.h (struct target_ops) <to_goto_record>: Use
8206 TARGET_DEFAULT_NORETURN.
8207
8208 2014-02-19 Tom Tromey <tromey@redhat.com>
8209
8210 * target-delegates.c: Rebuild.
8211 * target.c (target_insn_history): Unconditionally delegate.
8212 * target.h (struct target_ops) <to_insn_history>: Use
8213 TARGET_DEFAULT_NORETURN.
8214
8215 2014-02-19 Tom Tromey <tromey@redhat.com>
8216
8217 * target-delegates.c: Rebuild.
8218 * target.c (target_insn_history_from): Unconditionally delegate.
8219 * target.h (struct target_ops) <to_insn_history_from>: Use
8220 TARGET_DEFAULT_NORETURN.
8221
8222 2014-02-19 Tom Tromey <tromey@redhat.com>
8223
8224 * target-delegates.c: Rebuild.
8225 * target.c (target_insn_history_range): Unconditionally delegate.
8226 * target.h (struct target_ops) <to_insn_history_range>: Use
8227 TARGET_DEFAULT_NORETURN.
8228
8229 2014-02-19 Tom Tromey <tromey@redhat.com>
8230
8231 * target-delegates.c: Rebuild.
8232 * target.c (target_call_history): Unconditionally delegate.
8233 * target.h (struct target_ops) <to_call_history>: Use
8234 TARGET_DEFAULT_NORETURN.
8235
8236 2014-02-19 Tom Tromey <tromey@redhat.com>
8237
8238 * target-delegates.c: Rebuild.
8239 * target.c (target_call_history_from): Unconditionally delegate.
8240 * target.h (struct target_ops) <to_call_history_from>: Use
8241 TARGET_DEFAULT_NORETURN.
8242
8243 2014-02-19 Tom Tromey <tromey@redhat.com>
8244
8245 * target-delegates.c: Rebuild.
8246 * target.c (target_call_history_range): Unconditionally delegate.
8247 * target.h (struct target_ops) <to_call_history_range>: Use
8248 TARGET_DEFAULT_NORETURN.
8249
8250 2014-02-19 Tom Tromey <tromey@redhat.com>
8251
8252 * target-delegates.c: Rebuild.
8253 * target.c (target_verify_memory): Unconditionally delegate.
8254 * target.h (struct target_ops) <to_verify_memory>: Use
8255 TARGET_DEFAULT_NORETURN.
8256
8257 2014-02-19 Tom Tromey <tromey@redhat.com>
8258
8259 * target-delegates.c: Rebuild.
8260 * target.c (target_core_of_thread): Unconditionally delegate.
8261 * target.h (struct target_ops) <to_core_of_thread>: Use
8262 TARGET_DEFAULT_RETURN.
8263
8264 2014-02-19 Tom Tromey <tromey@redhat.com>
8265
8266 * target-delegates.c: Rebuild.
8267 * target.c (target_flash_done): Unconditionally delegate.
8268 * target.h (struct target_ops) <to_flash_done>: Use
8269 TARGET_DEFAULT_NORETURN.
8270
8271 2014-02-19 Tom Tromey <tromey@redhat.com>
8272
8273 * target-delegates.c: Rebuild.
8274 * target.c (target_flash_erase): Unconditionally delegate.
8275 * target.h (struct target_ops) <to_flash_erase>: Use
8276 TARGET_DEFAULT_NORETURN.
8277
8278 2014-02-19 Tom Tromey <tromey@redhat.com>
8279
8280 * target-delegates.c: Rebuild.
8281 * target.c (target_get_section_table): Unconditionally delegate.
8282 * target.h (struct target_ops) <to_get_section_table>: Use
8283 TARGET_DEFAULT_RETURN.
8284
8285 2014-02-19 Tom Tromey <tromey@redhat.com>
8286
8287 * target-delegates.c: Rebuild.
8288 * target.c (target_pid_to_str): Unconditionally delegate.
8289 (init_dummy_target): Don't initialize to_pid_to_str.
8290 (default_pid_to_str): Rename from dummy_pid_to_str.
8291 * target.h (struct target_ops) <to_pid_to_str>: Use
8292 TARGET_DEFAULT_FUNC.
8293
8294 2014-02-19 Tom Tromey <tromey@redhat.com>
8295
8296 * target-delegates.c: Rebuild.
8297 * target.c (target_find_new_threads): Unconditionally delegate.
8298 * target.h (struct target_ops) <to_find_new_threads>: Use
8299 TARGET_DEFAULT_RETURN.
8300
8301 2014-02-19 Tom Tromey <tromey@redhat.com>
8302
8303 * target-delegates.c: Rebuild.
8304 * target.c (target_program_signals): Unconditionally delegate.
8305 * target.h (struct target_ops) <to_program_signals>: Use
8306 TARGET_DEFAULT_IGNORE.
8307
8308 2014-02-19 Tom Tromey <tromey@redhat.com>
8309
8310 * target-delegates.c: Rebuild.
8311 * target.c (target_pass_signals): Unconditionally delegate.
8312 * target.h (struct target_ops) <to_pass_signals>: Use
8313 TARGET_DEFAULT_IGNORE.
8314
8315 2014-02-19 Tom Tromey <tromey@redhat.com>
8316
8317 * target-delegates.c: Rebuild.
8318 * target.c (default_mourn_inferior): New function.
8319 (target_mourn_inferior): Unconditionally delegate.
8320 * target.h (struct target_ops) <to_mourn_inferior>: Use
8321 TARGET_DEFAULT_FUNC.
8322
8323 2014-02-19 Tom Tromey <tromey@redhat.com>
8324
8325 * target-delegates.c: Rebuild.
8326 * target.c (default_follow_fork): New function.
8327 (target_follow_fork): Unconditionally delegate.
8328 * target.h (struct target_ops) <to_follow_fork>: Use
8329 TARGET_DEFAULT_FUNC.
8330
8331 2014-02-19 Tom Tromey <tromey@redhat.com>
8332
8333 * target-delegates.c: Rebuild.
8334 * target.c (target_kill): Unconditionally delegate.
8335 * target.h (struct target_ops) <to_kill>: Use
8336 TARGET_DEFAULT_NORETURN.
8337
8338 2014-02-19 Tom Tromey <tromey@redhat.com>
8339
8340 * target-delegates.c: Rebuild.
8341 * target.c (target_masked_watch_num_registers): Unconditionally
8342 delegate.
8343 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8344 Use TARGET_DEFAULT_RETURN.
8345
8346 2014-02-19 Tom Tromey <tromey@redhat.com>
8347
8348 * target-delegates.c: Rebuild.
8349 * target.c (target_remove_mask_watchpoint): Unconditionally
8350 delegate.
8351 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8352 TARGET_DEFAULT_RETURN.
8353
8354 2014-02-19 Tom Tromey <tromey@redhat.com>
8355
8356 * target-delegates.c: Rebuild.
8357 * target.c (target_insert_mask_watchpoint): Unconditionally
8358 delegate.
8359 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8360 TARGET_DEFAULT_RETURN.
8361
8362 2014-02-19 Tom Tromey <tromey@redhat.com>
8363
8364 * target-delegates.c: Rebuild.
8365 * target.c (target_ranged_break_num_registers): Unconditionally
8366 delegate.
8367 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8368 Use TARGET_DEFAULT_RETURN.
8369
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8371
8372 * target-delegates.c: Rebuild.
8373 * target.c (target_fetch_registers): Unconditionally delegate.
8374 * target.h (struct target_ops) <to_fetch_registers>: Use
8375 TARGET_DEFAULT_NORETURN.
8376
8377 2014-02-19 Tom Tromey <tromey@redhat.com>
8378
8379 * target-delegates.c: Rebuild.
8380 * target.c (update_current_target): Don't inherit or default
8381 to_stop.
8382 * target.h (struct target_ops) <to_stop>: Use
8383 TARGET_DEFAULT_IGNORE.
8384
8385 2014-02-19 Tom Tromey <tromey@redhat.com>
8386
8387 * target-delegates.c: Rebuild.
8388 * target.c (update_current_target): Don't inherit or default
8389 to_can_run_breakpoint_commands.
8390 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8391 Use TARGET_DEFAULT_RETURN.
8392
8393 2014-02-19 Tom Tromey <tromey@redhat.com>
8394
8395 * target-delegates.c: Rebuild.
8396 * target.c (update_current_target): Don't inherit or default
8397 to_supports_evaluation_of_breakpoint_conditions.
8398 * target.h (struct target_ops)
8399 <to_supports_evaluation_of_breakpoint_conditions>: Use
8400 TARGET_DEFAULT_RETURN.
8401
8402 2014-02-19 Tom Tromey <tromey@redhat.com>
8403
8404 * target-delegates.c: Rebuild.
8405 * target.c (update_current_target): Don't inherit or default
8406 to_augmented_libraries_svr4_read.
8407 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8408 Use TARGET_DEFAULT_RETURN.
8409
8410 2014-02-19 Tom Tromey <tromey@redhat.com>
8411
8412 * target-delegates.c: Rebuild.
8413 * target.c (update_current_target): Don't inherit or default
8414 to_can_use_agent.
8415 * target.h (struct target_ops) <to_can_use_agent>: Use
8416 TARGET_DEFAULT_RETURN.
8417
8418 2014-02-19 Tom Tromey <tromey@redhat.com>
8419
8420 * target-delegates.c: Rebuild.
8421 * target.c (update_current_target): Don't inherit or default
8422 to_use_agent.
8423 * target.h (struct target_ops) <to_use_agent>: Use
8424 TARGET_DEFAULT_NORETURN.
8425
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8427
8428 * target-delegates.c: Rebuild.
8429 * target.c (update_current_target): Don't inherit or default
8430 to_traceframe_info.
8431 (return_null): Remove.
8432 * target.h (struct target_ops) <to_traceframe_info>: Use
8433 TARGET_DEFAULT_RETURN.
8434
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8436
8437 * target-delegates.c: Rebuild.
8438 * target.c (update_current_target): Don't inherit or default
8439 to_static_tracepoint_markers_by_strid.
8440 * target.h (struct target_ops)
8441 <to_static_tracepoint_markers_by_strid>: Use
8442 TARGET_DEFAULT_NORETURN.
8443
8444 2014-02-19 Tom Tromey <tromey@redhat.com>
8445
8446 * target-delegates.c: Rebuild.
8447 * target.c (update_current_target): Don't inherit or default
8448 to_static_tracepoint_marker_at.
8449 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8450 Use TARGET_DEFAULT_RETURN.
8451
8452 2014-02-19 Tom Tromey <tromey@redhat.com>
8453
8454 * target-delegates.c: Rebuild.
8455 * target.c (update_current_target): Don't inherit or default
8456 to_set_permissions.
8457 * target.h (struct target_ops) <to_set_permissions>: Use
8458 TARGET_DEFAULT_IGNORE.
8459
8460 2014-02-19 Tom Tromey <tromey@redhat.com>
8461
8462 * target-delegates.c: Rebuild.
8463 * target.c (update_current_target): Don't inherit or default
8464 to_get_tib_address.
8465 * target.h (struct target_ops) <to_get_tib_address>: Use
8466 TARGET_DEFAULT_NORETURN.
8467
8468 2014-02-19 Tom Tromey <tromey@redhat.com>
8469
8470 * target-delegates.c: Rebuild.
8471 * target.c (update_current_target): Don't inherit or default
8472 to_set_trace_notes.
8473 * target.h (struct target_ops) <to_set_trace_notes>: Use
8474 TARGET_DEFAULT_RETURN.
8475
8476 2014-02-19 Tom Tromey <tromey@redhat.com>
8477
8478 * target-delegates.c: Rebuild.
8479 * target.c (update_current_target): Don't initialize
8480 to_set_trace_buffer_size.
8481 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8482 TARGET_DEFAULT_IGNORE.
8483
8484 2014-02-19 Tom Tromey <tromey@redhat.com>
8485
8486 * target-delegates.c: Rebuild.
8487 * target.c (update_current_target): Don't inherit or default
8488 to_set_circular_trace_buffer.
8489 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8490 TARGET_DEFAULT_IGNORE.
8491
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8493
8494 * target-delegates.c: Rebuild.
8495 * target.c (update_current_target): Don't inherit or default
8496 to_set_disconnected_tracing.
8497 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8498 TARGET_DEFAULT_IGNORE.
8499
8500 2014-02-19 Tom Tromey <tromey@redhat.com>
8501
8502 * target-delegates.c: Rebuild.
8503 * target.c (update_current_target): Don't inherit or default
8504 to_get_min_fast_tracepoint_insn_len.
8505 (return_minus_one): Remove.
8506 * target.h (struct target_ops)
8507 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8508
8509 2014-02-19 Tom Tromey <tromey@redhat.com>
8510
8511 * target-delegates.c: Rebuild.
8512 * target.c (update_current_target): Don't inherit or default
8513 to_get_raw_trace_data.
8514 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8515 TARGET_DEFAULT_NORETURN.
8516
8517 2014-02-19 Tom Tromey <tromey@redhat.com>
8518
8519 * target-delegates.c: Rebuild.
8520 * target.c (update_current_target): Don't inherit or default
8521 to_upload_trace_state_variables.
8522 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8523 Use TARGET_DEFAULT_RETURN.
8524
8525 2014-02-19 Tom Tromey <tromey@redhat.com>
8526
8527 * target-delegates.c: Rebuild.
8528 * target.c (update_current_target): Don't inherit or default
8529 to_upload_tracepoints.
8530 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8531 TARGET_DEFAULT_RETURN.
8532
8533 2014-02-19 Tom Tromey <tromey@redhat.com>
8534
8535 * target-delegates.c: Rebuild.
8536 * target.c (update_current_target): Don't inherit or default
8537 to_save_trace_data.
8538 * target.h (struct target_ops) <to_save_trace_data>: Use
8539 TARGET_DEFAULT_NORETURN.
8540
8541 2014-02-19 Tom Tromey <tromey@redhat.com>
8542
8543 * target-delegates.c: Rebuild.
8544 * target.c (update_current_target): Don't inherit or default
8545 to_get_trace_state_variable_value.
8546 * target.h (struct target_ops)
8547 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8548
8549 2014-02-19 Tom Tromey <tromey@redhat.com>
8550
8551 * target-delegates.c: Rebuild.
8552 * target.c (update_current_target): Don't inherit or default
8553 to_trace_find.
8554 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8555
8556 2014-02-19 Tom Tromey <tromey@redhat.com>
8557
8558 * target-delegates.c: Rebuild.
8559 * target.c (update_current_target): Don't inherit or default
8560 to_trace_stop.
8561 * target.h (struct target_ops) <to_trace_stop>: Use
8562 TARGET_DEFAULT_NORETURN.
8563
8564 2014-02-19 Tom Tromey <tromey@redhat.com>
8565
8566 * target-delegates.c: Rebuild.
8567 * target.c (update_current_target): Don't inherit or default
8568 to_get_tracepoint_status.
8569 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8570 TARGET_DEFAULT_NORETURN.
8571
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8573
8574 * target-delegates.c: Rebuild.
8575 * target.c (update_current_target): Don't inherit or default
8576 to_get_trace_status.
8577 * target.h (struct target_ops) <to_get_trace_status>: Use
8578 TARGET_DEFAULT_RETURN.
8579
8580 2014-02-19 Tom Tromey <tromey@redhat.com>
8581
8582 * target-delegates.c: Rebuild.
8583 * target.c (update_current_target): Don't inherit or default
8584 to_trace_start.
8585 * target.h (struct target_ops) <to_trace_start>: Use
8586 TARGET_DEFAULT_NORETURN.
8587
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * target-delegates.c: Rebuild.
8591 * target.c (update_current_target): Don't inherit or default
8592 to_trace_set_readonly_regions.
8593 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8594 Use TARGET_DEFAULT_NORETURN.
8595
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target-delegates.c: Rebuild.
8599 * target.c (update_current_target): Don't inherit or default
8600 to_disable_tracepoint.
8601 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8602 TARGET_DEFAULT_NORETURN.
8603
8604 2014-02-19 Tom Tromey <tromey@redhat.com>
8605
8606 * target-delegates.c: Rebuild.
8607 * target.c (update_current_target): Don't inherit or default
8608 to_enable_tracepoint.
8609 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8610 TARGET_DEFAULT_NORETURN.
8611
8612 2014-02-19 Tom Tromey <tromey@redhat.com>
8613
8614 * target-delegates.c: Rebuild.
8615 * target.c (update_current_target): Don't inherit or default
8616 to_download_trace_state_variable.
8617 * target.h (struct target_ops) <to_download_trace_state_variable>:
8618 Use TARGET_DEFAULT_NORETURN.
8619
8620 2014-02-19 Tom Tromey <tromey@redhat.com>
8621
8622 * target-delegates.c: Rebuild.
8623 * target.c (update_current_target): Don't inherit or default
8624 to_can_download_tracepoint.
8625 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8626 TARGET_DEFAULT_RETURN.
8627
8628 2014-02-19 Tom Tromey <tromey@redhat.com>
8629
8630 * target-delegates.c: Rebuild.
8631 * target.c (update_current_target): Don't inherit or default
8632 to_download_tracepoint.
8633 * target.h (struct target_ops) <to_download_tracepoint>: Use
8634 TARGET_DEFAULT_NORETURN.
8635
8636 2014-02-19 Tom Tromey <tromey@redhat.com>
8637
8638 * target-delegates.c: Rebuild.
8639 * target.c (update_current_target): Don't inherit or default
8640 to_trace_init.
8641 * target.h (struct target_ops) <to_trace_init>: Use
8642 TARGET_DEFAULT_RETURN.
8643
8644 2014-02-19 Tom Tromey <tromey@redhat.com>
8645
8646 * target-delegates.c: Rebuild.
8647 * target.c (update_current_target): Don't inherit or default
8648 to_supports_string_tracing.
8649 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8650 TARGET_DEFAULT_RETURN.
8651
8652 2014-02-19 Tom Tromey <tromey@redhat.com>
8653
8654 * target-delegates.c: Rebuild.
8655 * target.c (update_current_target): Don't inherit or default
8656 to_supports_enable_disable_tracepoint.
8657 * target.h (struct target_ops)
8658 <to_supports_enable_disable_tracepoint>: Use
8659 TARGET_DEFAULT_RETURN.
8660
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * target-delegates.c: Rebuild.
8664 * target.c (update_current_target): Don't inherit or default
8665 to_supports_multi_process.
8666 * target.h (struct target_ops) <to_supports_multi_process>: Use
8667 TARGET_DEFAULT_RETURN.
8668
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8670
8671 * target-delegates.c: Rebuild.
8672 * target.c (update_current_target): Don't inherit or default
8673 to_get_ada_task_ptid.
8674 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8675 TARGET_DEFAULT_FUNC.
8676
8677 2014-02-19 Tom Tromey <tromey@redhat.com>
8678
8679 * target-delegates.c: Rebuild.
8680 * target.c (update_current_target): Don't inherit or default
8681 to_thread_architecture.
8682 * target.h (struct target_ops) <to_thread_architecture>: Use
8683 TARGET_DEFAULT_FUNC.
8684
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8686
8687 * target-delegates.c: Rebuild.
8688 * target.c (update_current_target): Don't inherit or default
8689 to_execution_direction.
8690 * target.h (struct target_ops) <to_execution_direction>: Use
8691 TARGET_DEFAULT_FUNC.
8692
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8694
8695 * target-delegates.c: Rebuild.
8696 * target.c (update_current_target): Don't inherit or default
8697 to_can_execute_reverse.
8698 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8699 TARGET_DEFAULT_RETURN.
8700 (target_can_execute_reverse): Unconditionally delegate.
8701
8702 2014-02-19 Tom Tromey <tromey@redhat.com>
8703
8704 * target-delegates.c: Rebuild.
8705 * target.c (update_current_target): Don't inherit or default
8706 to_goto_bookmark.
8707 (dummy_goto_bookmark): Remove.
8708 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8709 * target.h (struct target_ops) <to_goto_bookmark>: Use
8710 TARGET_DEFAULT_NORETURN.
8711
8712 2014-02-19 Tom Tromey <tromey@redhat.com>
8713
8714 * target-delegates.c: Rebuild.
8715 * target.c (update_current_target): Don't inherit or default
8716 to_get_bookmark.
8717 (dummy_get_bookmark): Remove.
8718 (init_dummy_target): Don't inherit or default to_get_bookmark.
8719 * target.h (struct target_ops) <to_get_bookmark>: Use
8720 TARGET_DEFAULT_NORETURN
8721
8722 2014-02-19 Tom Tromey <tromey@redhat.com>
8723
8724 * target-delegates.c: Rebuild.
8725 * target.c (update_current_target): Don't inherit or default
8726 to_make_corefile_notes.
8727 (init_dummy_target): Don't initialize to_make_corefile_notes.
8728 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8729 TARGET_DEFAULT_FUNC.
8730
8731 2014-02-19 Tom Tromey <tromey@redhat.com>
8732
8733 * target-delegates.c: Rebuild.
8734 * target.c (update_current_target): Don't inherit or default
8735 to_find_memory_regions.
8736 (init_dummy_target): Don't initialize to_find_memory_regions.
8737 * target.h (struct target_ops) <to_find_memory_regions>: Use
8738 TARGET_DEFAULT_FUNC.
8739
8740 2014-02-19 Tom Tromey <tromey@redhat.com>
8741
8742 * target-delegates.c: Rebuild.
8743 * target.c (update_current_target): Don't inherit or default
8744 to_log_command.
8745 * target.h (struct target_ops) <to_log_command>: Use
8746 TARGET_DEFAULT_IGNORE.
8747 (target_log_command): Unconditionally delegate.
8748
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8750
8751 * target-delegates.c: Rebuild.
8752 * target.c (update_current_target): Don't inherit or default
8753 to_pid_to_exec_file.
8754 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8755 TARGET_DEFAULT_RETURN.
8756
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't inherit or default
8761 to_thread_name.
8762 (target_thread_name): Unconditionally delegate.
8763 * target.h (struct target_ops) <to_thread_name>: Use
8764 TARGET_DEFAULT_RETURN.
8765
8766 2014-02-19 Tom Tromey <tromey@redhat.com>
8767
8768 * target-delegates.c: Rebuild.
8769 * target.c (update_current_target): Don't inherit or default
8770 to_extra_thread_info.
8771 * target.h (struct target_ops) <to_extra_thread_info>: Use
8772 TARGET_DEFAULT_RETURN.
8773
8774 2014-02-19 Tom Tromey <tromey@redhat.com>
8775
8776 * target-delegates.c: Rebuild.
8777 * target.c (update_current_target): Don't inherit or default
8778 to_has_exited.
8779 * target.h (struct target_ops) <to_has_exited>: Use
8780 TARGET_DEFAULT_RETURN..
8781
8782 2014-02-19 Tom Tromey <tromey@redhat.com>
8783
8784 * target-delegates.c: Rebuild.
8785 * target.c (update_current_target): Don't inherit or default
8786 to_set_syscall_catchpoint.
8787 (return_one): Remove.
8788 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8789 TARGET_DEFAULT_RETURN.
8790
8791 2014-02-19 Tom Tromey <tromey@redhat.com>
8792
8793 * target-delegates.c: Rebuild.
8794 * target.c (update_current_target): Don't inherit or default
8795 to_insert_exec_catchpoint.
8796 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8797 TARGET_DEFAULT_RETURN.
8798
8799 2014-01-08 Tom Tromey <tromey@redhat.com>
8800
8801 * target-delegates.c: Rebuild.
8802 * target.c (update_current_target): Don't inherit or default
8803 to_insert_exec_catchpoint.
8804 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8805 TARGET_DEFAULT_RETURN.
8806
8807 2014-02-19 Tom Tromey <tromey@redhat.com>
8808
8809 * target-delegates.c: Rebuild.
8810 * target.c (update_current_target): Don't inherit or default
8811 to_remove_vfork_catchpoint.
8812 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8813 TARGET_DEFAULT_RETURN.
8814
8815 2014-02-19 Tom Tromey <tromey@redhat.com>
8816
8817 * target-delegates.c: Rebuild.
8818 * target.c (update_current_target): Don't inherit or default
8819 to_insert_vfork_catchpoint.
8820 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8821 TARGET_DEFAULT_RETURN.
8822
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8824
8825 * target-delegates.c: Rebuild.
8826 * target.c (update_current_target): Don't inherit or default
8827 to_remove_fork_catchpoint.
8828 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8829 TARGET_DEFAULT_RETURN.
8830
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * target-delegates.c: Rebuild.
8834 * target.c (update_current_target): Don't inherit or default
8835 to_insert_fork_catchpoint.
8836 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8837 TARGET_DEFAULT_RETURN.
8838
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8840
8841 * target-delegates.c: Rebuild.
8842 * target.c (update_current_target): Don't inherit or default
8843 to_post_startup_inferior.
8844 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8845 TARGET_DEFAULT_IGNORE.
8846
8847 2014-02-19 Tom Tromey <tromey@redhat.com>
8848
8849 * target-delegates.c: Rebuild.
8850 * target.c (update_current_target): Don't inherit or default
8851 to_load.
8852 * target.h (struct target_ops) <to_load>: Use
8853 TARGET_DEFAULT_NORETURN.
8854
8855 2014-02-19 Tom Tromey <tromey@redhat.com>
8856
8857 * target-delegates.c: Rebuild.
8858 * target.c (update_current_target): Don't inherit or default
8859 to_terminal_info.
8860 * target.h (struct target_ops) <to_terminal_info>: Use
8861 TARGET_DEFAULT_FUNC.
8862
8863 2014-02-19 Tom Tromey <tromey@redhat.com>
8864
8865 * target-delegates.c: Rebuild.
8866 * target.c (update_current_target): Don't inherit or default
8867 to_terminal_save_ours.
8868 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8869 TARGET_DEFAULT_IGNORE.
8870
8871 2014-02-19 Tom Tromey <tromey@redhat.com>
8872
8873 * target-delegates.c: Rebuild.
8874 * target.c (update_current_target): Don't inherit or default
8875 to_terminal_ours.
8876 * target.h (struct target_ops) <to_terminal_ours>: Use
8877 TARGET_DEFAULT_IGNORE.
8878
8879 2014-02-19 Tom Tromey <tromey@redhat.com>
8880
8881 * target-delegates.c: Rebuild.
8882 * target.c (update_current_target): Don't inherit or default
8883 to_terminal_ours_for_output.
8884 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8885 TARGET_DEFAULT_IGNORE.
8886
8887 2014-02-19 Tom Tromey <tromey@redhat.com>
8888
8889 * target-delegates.c: Rebuild.
8890 * target.c (update_current_target): Don't inherit or default
8891 to_terminal_inferior.
8892 * target.h (struct target_ops) <to_terminal_inferior>: Use
8893 TARGET_DEFAULT_IGNORE.
8894
8895 2014-02-19 Tom Tromey <tromey@redhat.com>
8896
8897 * target-delegates.c: Rebuild.
8898 * target.c (update_current_target): Don't inherit or default
8899 to_terminal_init.
8900 * target.h (struct target_ops) <to_terminal_init>: Use
8901 TARGET_DEFAULT_IGNORE.
8902
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * target-delegates.c: Rebuild.
8906 * target.c (update_current_target): Don't inherit or default
8907 to_can_accel_watchpoint_condition.
8908 * target.h (struct target_ops)
8909 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8910
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8912
8913 * target-delegates.c: Rebuild.
8914 * target.c (update_current_target): Don't inherit or default
8915 to_region_ok_for_hw_watchpoint.
8916 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8917 Use TARGET_DEFAULT_FUNC.
8918
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8920
8921 * target-delegates.c: Rebuild.
8922 * target.c (update_current_target): Don't inherit or default
8923 to_watchpoint_addr_within_range.
8924 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8925 Use TARGET_DEFAULT_FUNC.
8926
8927 2014-02-19 Tom Tromey <tromey@redhat.com>
8928
8929 * target-delegates.c: Rebuild.
8930 * target.c (update_current_target): Don't inherit or default
8931 to_remove_watchpoint.
8932 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8933 TARGET_DEFAULT_NORETURN.
8934
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8936
8937 * target-delegates.c: Rebuild.
8938 * target.c (update_current_target): Don't inherit or default
8939 to_insert_watchpoint.
8940 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8941 TARGET_DEFAULT_RETURN.
8942
8943 2014-02-19 Tom Tromey <tromey@redhat.com>
8944
8945 * target-delegates.c: Rebuild.
8946 * target.c (update_current_target): Don't inherit or default
8947 to_remove_hw_breakpoint.
8948 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8949 TARGET_DEFAULT_RETURN.
8950
8951 2014-02-19 Tom Tromey <tromey@redhat.com>
8952
8953 * target-delegates.c: Rebuild.
8954 * target.c (update_current_target): Don't inherit or default
8955 to_insert_hw_breakpoint.
8956 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8957 TARGET_DEFAULT_RETURN.
8958
8959 2014-02-19 Tom Tromey <tromey@redhat.com>
8960
8961 * target-delegates.c: Rebuild.
8962 * target.c (update_current_target): Don't inherit or default
8963 to_can_use_hw_breakpoint.
8964 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8965 TARGET_DEFAULT_RETURN.
8966
8967 2014-02-19 Tom Tromey <tromey@redhat.com>
8968
8969 * target-delegates.c: Rebuild.
8970 * target.c (update_current_target): Don't inherit or default
8971 to_files_info.
8972 * target.h (struct target_ops) <to_files_info>: Use
8973 TARGET_DEFAULT_IGNORE.
8974
8975 2014-02-19 Tom Tromey <tromey@redhat.com>
8976
8977 * target-delegates.c: Rebuild.
8978 * target.c (update_current_target): Don't inherit or default
8979 to_store.
8980 * target.h (struct target_ops) <to_store>: Use
8981 TARGET_DEFAULT_NORETURN.
8982
8983 2014-02-19 Tom Tromey <tromey@redhat.com>
8984
8985 * target-delegates.c: Rebuild.
8986 * target.c (update_current_target): Don't inherit or default
8987 to_post_attach.
8988 * target.h (struct target_ops) <to_post_attach>: Use
8989 TARGET_DEFAULT_IGNORE.
8990
8991 2014-02-19 Tom Tromey <tromey@redhat.com>
8992
8993 * target-delegates.c: Rebuild.
8994 * target.c (update_current_target): Don't inherit or default
8995 to_rcmd.
8996 (default_rcmd): New function.
8997 (do_monitor_command): Unconditionally delegate.
8998 * target.h (struct target_ops) <to_rmcd>: Use
8999 TARGET_DEFAULT_FUNC.
9000
9001 2014-02-19 Tom Tromey <tromey@redhat.com>
9002
9003 * target-delegates.c: Rebuild.
9004 * target.c (init_dummy_target): Don't initialize to_attach.
9005 (target_attach): Unconditionally delegate.
9006 * target.h (struct target_ops) <to_attach>: Use
9007 TARGET_DEFAULT_FUNC.
9008
9009 2014-02-19 Tom Tromey <tromey@redhat.com>
9010
9011 * target-delegates.c: Rebuild.
9012 * target.c (target_detach): Unconditionally delegate.
9013 (init_dummy_target): Don't initialize to_detach.
9014 * target.h (struct target_ops) <to_detach>: Use
9015 TARGET_DEFAULT_IGNORE.
9016
9017 2014-02-19 Tom Tromey <tromey@redhat.com>
9018
9019 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9020 Add argument.
9021 (target_augmented_libraries_svr4_read): Add argument.
9022 * target.c (update_current_target): Update.
9023 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9024 argument.
9025
9026 2014-02-19 Tom Tromey <tromey@redhat.com>
9027
9028 * target.h (struct target_ops) <to_call_history_range>: Add
9029 argument.
9030 * target.c (target_call_history_range): Add argument.
9031 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9032 argument.
9033 (record_btrace_call_history_from): Update.
9034
9035 2014-02-19 Tom Tromey <tromey@redhat.com>
9036
9037 * target.h (struct target_ops) <to_call_history_from>: Add
9038 argument.
9039 * target.c (target_call_history_from): Add argument.
9040 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9041 argument.
9042
9043 2014-02-19 Tom Tromey <tromey@redhat.com>
9044
9045 * target.h (struct target_ops) <to_call_history>: Add argument.
9046 * target.c (target_call_history): Add argument.
9047 * record-btrace.c (record_btrace_call_history): Add 'self'
9048 argument.
9049
9050 2014-02-19 Tom Tromey <tromey@redhat.com>
9051
9052 * target.h (struct target_ops) <to_insn_history_range>: Add
9053 argument.
9054 * target.c (target_insn_history_range): Add argument.
9055 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9056 argument.
9057 (record_btrace_insn_history_from): Update.
9058
9059 2014-02-19 Tom Tromey <tromey@redhat.com>
9060
9061 * target.h (struct target_ops) <to_insn_history_from>: Add
9062 argument.
9063 * target.c (target_insn_history_from): Add argument.
9064 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9065 argument.
9066
9067 2014-02-19 Tom Tromey <tromey@redhat.com>
9068
9069 * target.h (struct target_ops) <to_insn_history>: Add argument.
9070 * target.c (target_insn_history): Add argument.
9071 * record-btrace.c (record_btrace_insn_history): Add 'self'
9072 argument.
9073
9074 2014-02-19 Tom Tromey <tromey@redhat.com>
9075
9076 * target.h (struct target_ops) <to_goto_record>: Add argument.
9077 * target.c (target_goto_record): Add argument.
9078 * record-full.c (record_full_goto): Add 'self' argument.
9079 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9080
9081 2014-02-19 Tom Tromey <tromey@redhat.com>
9082
9083 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9084 * target.c (target_goto_record_end): Add argument.
9085 * record-full.c (record_full_goto_end): Add 'self' argument.
9086 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9087
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9089
9090 * target.h (struct target_ops) <to_goto_record_begin>: Add
9091 argument.
9092 * target.c (target_goto_record_begin): Add argument.
9093 * record-full.c (record_full_goto_begin): Add 'self' argument.
9094 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9095 argument.
9096
9097 2014-02-19 Tom Tromey <tromey@redhat.com>
9098
9099 * target.h (struct target_ops) <to_record_is_replaying>: Add
9100 argument.
9101 * target.c (target_record_is_replaying): Add argument.
9102 * record-full.c (record_full_is_replaying): Add 'self' argument.
9103 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9104 argument.
9105 (record_btrace_xfer_partial, record_btrace_store_registers)
9106 (record_btrace_prepare_to_store, record_btrace_resume)
9107 (record_btrace_wait, record_btrace_decr_pc_after_break)
9108 (record_btrace_find_new_threads, record_btrace_thread_alive):
9109 Update.
9110
9111 2014-02-19 Tom Tromey <tromey@redhat.com>
9112
9113 * target.h (struct target_ops) <to_delete_record>: Add argument.
9114 * target.c (target_delete_record): Add argument.
9115 * record-full.c (record_full_delete): Add 'self' argument.
9116
9117 2014-02-19 Tom Tromey <tromey@redhat.com>
9118
9119 * target.h (struct target_ops) <to_save_record>: Add argument.
9120 * target.c (target_save_record): Add argument.
9121 * record-full.c (record_full_save): Add 'self' argument.
9122 (record_full_save): Add 'self' argument.
9123
9124 2014-02-19 Tom Tromey <tromey@redhat.com>
9125
9126 * target.h (struct target_ops) <to_info_record>: Add argument.
9127 * target.c (target_info_record): Add argument.
9128 * record.c (info_record_command): Add argument.
9129 * record-full.c (record_full_info): Add 'self' argument.
9130 * record-btrace.c (record_btrace_info): Add 'self' argument.
9131
9132 2014-02-19 Tom Tromey <tromey@redhat.com>
9133
9134 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9135 * target.c (target_stop_recording): Add argument.
9136 * record.c (record_stop): Add argument.
9137 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9138 argument.
9139
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9141
9142 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9143 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9144 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9145 argument.
9146 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9147 (_initialize_amd64_linux_nat): Use it.
9148 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9149 (_initialize_i386_linux_nat): Use it.
9150
9151 2014-02-19 Tom Tromey <tromey@redhat.com>
9152
9153 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9154 * target.c (target_teardown_btrace): Add argument.
9155 * remote.c (remote_teardown_btrace): Add 'self' argument.
9156 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9157 argument.
9158 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9159 argument.
9160
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9162
9163 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9164 * target.c (target_disable_btrace): Add argument.
9165 * remote.c (remote_disable_btrace): Add 'self' argument.
9166 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9167 argument.
9168 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9169 argument.
9170
9171 2014-02-19 Tom Tromey <tromey@redhat.com>
9172
9173 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9174 * target.c (target_enable_btrace): Add argument.
9175 * remote.c (remote_enable_btrace): Add 'self' argument.
9176 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9177 argument.
9178 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9179 argument.
9180
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9182
9183 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9184 (target_can_use_agent): Add argument.
9185 * target.c (update_current_target): Update.
9186 * remote.c (remote_can_use_agent): Add 'self' argument.
9187 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9188
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9190
9191 * target.h (struct target_ops) <to_use_agent>: Add argument.
9192 (target_use_agent): Add argument.
9193 * target.c (update_current_target): Update.
9194 * remote.c (remote_use_agent): Add 'self' argument.
9195 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9196
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9198
9199 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9200 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9201 (target_traceframe_info): Add argument.
9202 * target.c (update_current_target): Update.
9203 * remote.c (remote_traceframe_info): Add 'self' argument.
9204 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9205
9206 2014-02-19 Tom Tromey <tromey@redhat.com>
9207
9208 * target.h (target_static_tracepoint_markers_by_strid): Add
9209 argument.
9210 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9211 'self' argument.
9212 * target.c (update_current_target): Update.
9213 * remote.c (struct target_ops)
9214 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9215 * linux-nat.c (struct target_ops)
9216 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9217
9218 2014-02-19 Tom Tromey <tromey@redhat.com>
9219
9220 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9221 Add argument.
9222 (target_static_tracepoint_marker_at): Add argument.
9223 * target.c (update_current_target): Update.
9224 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9225 argument.
9226
9227 2014-02-19 Tom Tromey <tromey@redhat.com>
9228
9229 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9230 (target_set_permissions): Add argument.
9231 * target.c (update_current_target): Update.
9232 * remote.c (remote_set_permissions): Add 'self' argument.
9233 (remote_start_remote): Update.
9234
9235 2014-02-19 Tom Tromey <tromey@redhat.com>
9236
9237 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9238 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9239 (target_get_tib_address): Add argument.
9240 * target.c (update_current_target): Update.
9241 * remote.c (remote_get_tib_address): Add 'self' argument.
9242
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9244
9245 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9246 (target_set_trace_notes): Add argument.
9247 * target.c (update_current_target): Update.
9248 * remote.c (remote_set_trace_notes): Add 'self' argument.
9249
9250 2014-02-19 Tom Tromey <tromey@redhat.com>
9251
9252 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9253 argument.
9254 (target_set_trace_buffer_size): Add argument.
9255 * target.c (update_current_target): Update.
9256 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9257
9258 2014-02-19 Tom Tromey <tromey@redhat.com>
9259
9260 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9261 argument.
9262 (target_set_circular_trace_buffer): Add argument.
9263 * target.c (update_current_target): Update.
9264 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9265 argument.
9266
9267 2014-02-19 Tom Tromey <tromey@redhat.com>
9268
9269 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9270 argument.
9271 (target_set_disconnected_tracing): Add argument.
9272 * target.c (update_current_target): Update.
9273 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9274
9275 2014-02-19 Tom Tromey <tromey@redhat.com>
9276
9277 * target.h (struct target_ops)
9278 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9279 (target_get_min_fast_tracepoint_insn_len): Add argument.
9280 * target.c (update_current_target): Update.
9281 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9282 argument.
9283
9284 2014-02-19 Tom Tromey <tromey@redhat.com>
9285
9286 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9287 argument.
9288 (target_get_raw_trace_data): Add argument.
9289 * target.c (update_current_target): Update.
9290 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9291
9292 2014-02-19 Tom Tromey <tromey@redhat.com>
9293
9294 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9295 Add argument.
9296 (target_upload_trace_state_variables): Add argument.
9297 * target.c (update_current_target): Update.
9298 * remote.c (remote_upload_trace_state_variables): Add 'self'
9299 argument.
9300 (remote_start_remote): Update.
9301
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9303
9304 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9305 argument.
9306 (target_upload_tracepoints): Add argument.
9307 * target.c (update_current_target): Update.
9308 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9309 (remote_start_remote): Update.
9310
9311 2014-02-19 Tom Tromey <tromey@redhat.com>
9312
9313 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9314 (target_save_trace_data): Add argument.
9315 * target.c (update_current_target): Update.
9316 * remote.c (remote_save_trace_data): Add 'self' argument.
9317
9318 2014-02-19 Tom Tromey <tromey@redhat.com>
9319
9320 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9321 argument.
9322 * target.h (struct target_ops)
9323 <to_get_trace_state_variable_value>: Add argument.
9324 (target_get_trace_state_variable_value): Add argument.
9325 * target.c (update_current_target): Update.
9326 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9327 argument.
9328 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9329
9330 2014-02-19 Tom Tromey <tromey@redhat.com>
9331
9332 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9333 * target.h (struct target_ops) <to_trace_find>: Add argument.
9334 (target_trace_find): Add argument.
9335 * target.c (update_current_target): Update.
9336 * remote.c (remote_trace_find): Add 'self' argument.
9337 * ctf.c (ctf_trace_find): Add 'self' argument.
9338
9339 2014-02-19 Tom Tromey <tromey@redhat.com>
9340
9341 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9342 (target_trace_stop): Add argument.
9343 * target.c (update_current_target): Update.
9344 * remote.c (remote_trace_stop): Add 'self' argument.
9345
9346 2014-02-19 Tom Tromey <tromey@redhat.com>
9347
9348 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9349 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9350 argument.
9351 (target_get_tracepoint_status): Add argument.
9352 * target.c (update_current_target): Update.
9353 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9354
9355 2014-02-19 Tom Tromey <tromey@redhat.com>
9356
9357 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9358 * target.h (struct target_ops) <to_get_trace_status>: Add
9359 argument.
9360 (target_get_trace_status): Add argument.
9361 * target.c (update_current_target): Update.
9362 * remote.c (remote_get_trace_status): Add 'self' argument.
9363 (remote_start_remote, remote_can_download_tracepoint): Update.
9364 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9365
9366 2014-02-19 Tom Tromey <tromey@redhat.com>
9367
9368 * target.h (struct target_ops) <to_trace_start>: Add argument.
9369 (target_trace_start): Add argument.
9370 * target.c (update_current_target): Update.
9371 * remote.c (remote_trace_start): Add 'self' argument.
9372
9373 2014-02-19 Tom Tromey <tromey@redhat.com>
9374
9375 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9376 Add argument.
9377 (target_trace_set_readonly_regions): Add argument.
9378 * target.c (update_current_target): Update.
9379 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9380 argument.
9381
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9385 argument.
9386 (target_disable_tracepoint): Add argument.
9387 * target.c (update_current_target): Update.
9388 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9389
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9391
9392 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9393 argument.
9394 (target_enable_tracepoint): Add argument.
9395 * target.c (update_current_target): Update.
9396 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9397
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9399
9400 * target.h (struct target_ops) <to_download_trace_state_variable>:
9401 Add argument.
9402 (target_download_trace_state_variable): Add argument.
9403 * target.c (update_current_target): Update.
9404 * remote.c (remote_download_trace_state_variable): Add 'self'
9405 argument.
9406
9407 2014-02-19 Tom Tromey <tromey@redhat.com>
9408
9409 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9410 argument.
9411 (target_can_download_tracepoint): Add argument.
9412 * target.c (update_current_target): Update.
9413 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9414
9415 2014-02-19 Tom Tromey <tromey@redhat.com>
9416
9417 * target.h (struct target_ops) <to_download_tracepoint>: Add
9418 argument.
9419 (target_download_tracepoint): Add argument.
9420 * target.c (update_current_target): Update.
9421 * remote.c (remote_download_tracepoint): Add 'self' argument.
9422
9423 2014-02-19 Tom Tromey <tromey@redhat.com>
9424
9425 * target.h (struct target_ops) <to_trace_init>: Add argument.
9426 (target_trace_init): Add argument.
9427 * target.c (update_current_target): Update.
9428 * remote.c (remote_trace_init): Add 'self' argument.
9429
9430 2014-02-19 Tom Tromey <tromey@redhat.com>
9431
9432 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9433 * target.c (target_fileio_readlink): Add argument.
9434 * remote.c (remote_hostio_readlink): Add 'self' argument.
9435 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9436
9437 2014-02-19 Tom Tromey <tromey@redhat.com>
9438
9439 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9440 * target.c (target_fileio_unlink): Add argument.
9441 * remote.c (remote_hostio_unlink): Add 'self' argument.
9442 (remote_file_delete): Update.
9443 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9444
9445 2014-02-19 Tom Tromey <tromey@redhat.com>
9446
9447 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9448 * target.c (target_fileio_close): Add argument.
9449 * remote.c (remote_hostio_close): Add 'self' argument.
9450 (remote_hostio_close_cleanup): Update.
9451 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9452 Update.
9453 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9454
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9456
9457 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9458 * target.c (target_fileio_pread): Add argument.
9459 * remote.c (remote_hostio_pread): Add 'self' argument.
9460 (remote_bfd_iovec_pread, remote_file_get): Update.
9461 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9462
9463 2014-02-19 Tom Tromey <tromey@redhat.com>
9464
9465 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9466 * target.c (target_fileio_pwrite): Add argument.
9467 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9468 (remote_file_put): Update.
9469 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9470
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9472
9473 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9474 * target.c (target_fileio_open): Add argument.
9475 * remote.c (remote_hostio_open): Add 'self' argument.
9476 (remote_bfd_iovec_open): Add 'self' argument.
9477 (remote_file_put): Add 'self' argument.
9478 (remote_file_get): Add 'self' argument.
9479 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9480
9481 2014-02-19 Tom Tromey <tromey@redhat.com>
9482
9483 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9484 Add argument.
9485 (target_can_run_breakpoint_commands): Add argument.
9486 * target.c (update_current_target): Update.
9487 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9488 argument.
9489 (remote_insert_breakpoint): Add 'self' argument.
9490 (remote_insert_hw_breakpoint): Add 'self' argument.
9491 (remote_can_run_breakpoint_commands): Add 'self' argument.
9492
9493 2014-02-19 Tom Tromey <tromey@redhat.com>
9494
9495 * target.h (struct target_ops)
9496 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9497 (target_supports_evaluation_of_breakpoint_conditions): Add
9498 argument.
9499 * target.c (update_current_target): Update.
9500 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9501 argument.
9502 (remote_insert_breakpoint): Add 'self' argument.
9503 (remote_insert_hw_breakpoint): Add 'self' argument.
9504 (remote_supports_cond_breakpoints): Add 'self' argument.
9505
9506 2014-02-19 Tom Tromey <tromey@redhat.com>
9507
9508 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9509 argument.
9510 (target_supports_string_tracing): Add argument.
9511 * target.c (update_current_target): Update.
9512 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9513
9514 2014-02-19 Tom Tromey <tromey@redhat.com>
9515
9516 * target.h (struct target_ops)
9517 <to_supports_disable_randomization>: Add argument.
9518 * target.c (find_default_supports_disable_randomization): Add
9519 argument.
9520 (target_supports_disable_randomization): Add argument.
9521 (find_default_supports_disable_randomization): Add 'self'
9522 argument.
9523 * remote.c (extended_remote_supports_disable_randomization): Add
9524 'self' argument.
9525 (remote_supports_disable_randomization): Add 'self' argument.
9526 (extended_remote_create_inferior): Update.
9527 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9528 'self' argument.
9529
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9531
9532 * target.h (struct target_ops)
9533 <to_supports_enable_disable_tracepoint>: Add argument.
9534 (target_supports_enable_disable_tracepoint): Add argument.
9535 * target.c (update_current_target): Update.
9536 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9537 argument.
9538
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9540
9541 * target.h (struct target_ops) <to_supports_multi_process>: Add
9542 argument.
9543 (target_supports_multi_process): Add argument.
9544 * target.c (update_current_target): Update.
9545 * remote.c (remote_supports_multi_process): Add 'self' argument.
9546 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9547 argument.
9548 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9549 argument.
9550
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9552
9553 * target.h (struct target_ops) <to_execution_direction>: Add
9554 argument.
9555 (target_execution_direction): Add argument.
9556 * target.c (default_execution_direction): Add 'self' argument.
9557 * record-full.c (record_full_execution_direction): Add 'self'
9558 argument.
9559
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9561
9562 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9563 argument.
9564 (target_can_execute_reverse): Add argument.
9565 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9566 * record-full.c (record_full_can_execute_reverse): Add 'self'
9567 argument.
9568 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9569 argument.
9570
9571 2014-02-19 Tom Tromey <tromey@redhat.com>
9572
9573 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9574 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9575 argument.
9576 (target_get_ada_task_ptid): Add argument.
9577 * target.c (update_current_target): Update.
9578 (default_get_ada_task_ptid): Add 'self' argument.
9579 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9580 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9581 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9582 argument.
9583 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9584 argument.
9585 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9586 argument.
9587 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9588 argument.
9589 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9590 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9591 argument.
9592
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9594
9595 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9596 (target_goto_bookmark): Add argument.
9597 * target.c (dummy_goto_bookmark): Add 'self' argument.
9598 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9599
9600 2014-02-19 Tom Tromey <tromey@redhat.com>
9601
9602 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9603 (target_get_bookmark): Add argument.
9604 * target.c (dummy_get_bookmark): Add 'self' argument.
9605 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9606
9607 2014-02-19 Tom Tromey <tromey@redhat.com>
9608
9609 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9610 argument.
9611 (target_make_corefile_notes): Add argument.
9612 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9613 * procfs.c (procfs_make_note_section): Add 'self' argument.
9614 (procfs_make_note_section): Add 'self' argument.
9615 (procfs_make_note_section): Add 'self' argument.
9616 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9617 argument.
9618 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9619 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9620 * exec.c (exec_make_note_section): Add 'self' argument.
9621 (exec_make_note_section): Add 'self' argument.
9622
9623 2014-02-19 Tom Tromey <tromey@redhat.com>
9624
9625 * target.h (struct target_ops) <to_find_memory_regions>: Add
9626 argument.
9627 (target_find_memory_regions): Add argument.
9628 * target.c (dummy_find_memory_regions): Add 'self' argument.
9629 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9630 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9631 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9632 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9633 * exec. (exec_do_find_memory_regions): New global.
9634 (exec_set_find_memory_regions): Rewrite.
9635 (exec_find_memory_regions): New function.
9636 (init_exec_ops): Use exec_find_memory_regions.
9637
9638 2014-02-19 Tom Tromey <tromey@redhat.com>
9639
9640 * target.h (struct target_ops) <to_supports_non_stop>: Add
9641 argument.
9642 * target.c (find_default_supports_non_stop): Add argument.
9643 (target_supports_non_stop): Add argument.
9644 (find_default_supports_non_stop): Add 'self' argument.
9645 * remote.c (remote_supports_non_stop): Add 'self' argument.
9646 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9647
9648 2014-02-19 Tom Tromey <tromey@redhat.com>
9649
9650 * target.h (struct target_ops) <to_log_command>: Add argument.
9651 (target_log_command): Add argument.
9652 * serial.h (serial_log_command): Add 'self' argument.
9653 * serial.c (serial_log_command): Add 'self' argument.
9654
9655 2014-02-19 Tom Tromey <tromey@redhat.com>
9656
9657 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9658 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9659 argument.
9660 (target_pid_to_exec_file): Add argument.
9661 * target.c (debug_to_pid_to_exec_file): Add argument.
9662 (update_current_target): Update.
9663 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9664 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9665 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9666 (linux_handle_extended_wait): Update.
9667 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9668 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9669 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9670 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9671
9672 2014-02-19 Tom Tromey <tromey@redhat.com>
9673
9674 * target.h (struct target_ops) <to_rcmd>: Add argument.
9675 (target_rcmd): Add argument.
9676 * target.c (debug_to_rcmd): Add argument.
9677 (update_current_target, do_monitor_command): Update.
9678 * remote.c (remote_rcmd): Add 'self' argument.
9679 * monitor.c (monitor_rcmd): Add 'self' argument.
9680
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9682
9683 * windows-nat.c (windows_stop): Add 'self' argument.
9684 * target.h (struct target_ops) <to_stop>: Add argument.
9685 * target.c (target_stop): Add argument.
9686 (debug_to_stop): Add argument.
9687 (update_current_target): Update.
9688 * remote.c (remote_stop): Add 'self' argument.
9689 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9690 (gdbsim_cntrl_c): Update.
9691 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9692 * procfs.c (procfs_stop): Add 'self' argument.
9693 * nto-procfs.c (procfs_stop): Add 'self' argument.
9694 * monitor.c (monitor_stop): Add 'self' argument.
9695 (monitor_open): Update.
9696 * linux-nat.c (linux_nat_stop): Add argument.
9697 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9698 * gnu-nat.c (gnu_stop): Add 'self' argument.
9699 * darwin-nat.c (darwin_stop): Add 'self' argument.
9700
9701 2014-02-19 Tom Tromey <tromey@redhat.com>
9702
9703 * target.h (struct target_ops) <to_thread_name>: Add argument.
9704 * target.c (target_thread_name): Add argument.
9705 (update_current_target): Update.
9706 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9707
9708 2014-02-19 Tom Tromey <tromey@redhat.com>
9709
9710 * target.h (struct target_ops) <to_extra_thread_info>: Add
9711 argument.
9712 (target_extra_thread_info): Add argument.
9713 * target.c (update_current_target): Update.
9714 * remote.c (remote_threads_extra_info): Add 'self' argument.
9715 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9716 argument.
9717 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9718 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9719 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9720 argument.
9721 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9722 argument.
9723 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9724 argument.
9725 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9726 argument.
9727
9728 2014-02-19 Tom Tromey <tromey@redhat.com>
9729
9730 * target.h (struct target_ops) <to_program_signals>: Add argument.
9731 * target.c (target_program_signals): Add argument.
9732 * remote.c (remote_program_signals): Add 'self' argument.
9733
9734 2014-02-19 Tom Tromey <tromey@redhat.com>
9735
9736 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9737 * target.c (target_pass_signals): Add argument.
9738 * remote.c (remote_pass_signals): Add 'self' argument.
9739 (remote_start_remote): Update.
9740 * procfs.c (procfs_pass_signals): Add 'self' argument.
9741 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9742 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9743 (linux_nat_create_inferior, linux_nat_attach): Update.
9744
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9746
9747 * windows-nat.c (windows_can_run): Add 'self' argument.
9748 * target.h (struct target_ops) <to_can_run>: Add argument.
9749 (target_can_run): Add argument.
9750 * target.c (debug_to_can_run): Add argument.
9751 (update_current_target): Update.
9752 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9753 * inf-child.c (inf_child_can_run): Add 'self' argument.
9754 * go32-nat.c (go32_can_run): Add 'self' argument.
9755
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9757
9758 * target.h (struct target_ops) <to_has_exited>: Add argument.
9759 (target_has_exited): Add argument.
9760 * target.c (debug_to_has_exited): Add argument.
9761 (update_current_target): Update.
9762
9763 2014-02-19 Tom Tromey <tromey@redhat.com>
9764
9765 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9766 argument.
9767 (target_set_syscall_catchpoint): Add argument.
9768 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9769 argument.
9770 * target.c (update_current_target): Update.
9771
9772 2014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9775 argument.
9776 (target_remove_exec_catchpoint): Add argument.
9777 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9778 (update_current_target): Update.
9779 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9780 argument.
9781
9782 2014-02-19 Tom Tromey <tromey@redhat.com>
9783
9784 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9785 argument.
9786 (target_insert_exec_catchpoint): Add argument.
9787 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9788 (update_current_target): Update.
9789 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9790 argument.
9791
9792 2014-02-19 Tom Tromey <tromey@redhat.com>
9793
9794 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9795 argument.
9796 (target_remove_vfork_catchpoint): Add argument.
9797 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9798 (update_current_target): Update.
9799 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9800 argument.
9801
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9803
9804 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9805 argument.
9806 (target_insert_vfork_catchpoint): Add argument.
9807 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9808 (update_current_target): Update.
9809 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9810 argument.
9811
9812 2014-02-19 Tom Tromey <tromey@redhat.com>
9813
9814 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9815 argument.
9816 (target_remove_fork_catchpoint): Add argument.
9817 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9818 (update_current_target): Update.
9819 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9820 argument.
9821
9822 2014-02-19 Tom Tromey <tromey@redhat.com>
9823
9824 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9825 argument.
9826 (target_insert_fork_catchpoint): Add argument.
9827 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9828 (update_current_target): Update.
9829 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9830 argument.
9831
9832 2014-02-19 Tom Tromey <tromey@redhat.com>
9833
9834 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9835 argument.
9836 (target_post_startup_inferior): Add argument.
9837 * target.c (debug_to_post_startup_inferior): Add argument.
9838 (update_current_target): Update.
9839 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9840 argument.
9841 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9842 argument.
9843 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9844 argument.
9845 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9846 argument.
9847 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9848 'self' argument.
9849 (super_post_startup_inferior): Likewise.
9850 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9851 'self' argument.
9852 (super_post_startup_inferior): Likewise.
9853 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9854 Add 'self' argument.
9855 (super_post_startup_inferior): Likewise.
9856
9857 2014-02-19 Tom Tromey <tromey@redhat.com>
9858
9859 * target.h (struct target_ops) <to_load>: Add argument.
9860 * target.c (target_load): Add argument.
9861 (debug_to_load): Add argument.
9862 (update_current_target): Update.
9863 * remote.c (remote_load): Add 'self' argument.
9864 * remote-sim.c (gdbsim_load): Add 'self' argument.
9865 * remote-mips.c (mips_load): Add 'self' argument.
9866 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9867 * monitor.c (monitor_load): Add 'self' argument.
9868 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9869
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9873 (target_terminal_info): Add argument.
9874 * target.c (debug_to_terminal_info): Add argument.
9875 (default_terminal_info): Likewise.
9876 * inflow.c (child_terminal_info): Add 'self' argument.
9877 * inferior.h (child_terminal_info): Add 'self' argument.
9878 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9879
9880 2014-02-19 Tom Tromey <tromey@redhat.com>
9881
9882 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9883 argument.
9884 (target_terminal_save_ours): Add argument.
9885 * target.c (debug_to_terminal_save_ours): Add argument.
9886 (update_current_target): Update.
9887 * inflow.c (terminal_save_ours): Add 'self' argument.
9888 * inferior.h (terminal_save_ours): Add 'self' argument.
9889
9890 2014-02-19 Tom Tromey <tromey@redhat.com>
9891
9892 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9893 (target_terminal_ours): Add argument.
9894 * target.c (debug_to_terminal_ours): Add argument.
9895 (update_current_target): Update.
9896 * remote.c (remote_terminal_ours): Add 'self' argument.
9897 (remote_close): Update.
9898 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9899 * inflow.c (terminal_ours): Add 'self' argument.
9900 * inferior.h (terminal_ours): Add 'self' argument.
9901 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9902
9903 2014-02-19 Pedro Alves <palves@redhat.com>
9904 Tom Tromey <tromey@redhat.com>
9905
9906 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9907 argument.
9908 (target_terminal_ours_for_output): Add argument.
9909 * target.c (debug_to_terminal_ours_for_output): Add argument.
9910 (update_current_target): Update.
9911 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9912 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9913 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9914
9915 2014-02-19 Tom Tromey <tromey@redhat.com>
9916
9917 * target.h (struct target_ops) <to_terminal_inferior>: Add
9918 argument.
9919 * target.c (target_terminal_inferior): Add argument.
9920 (update_current_target): Update.
9921 * remote.c (remote_terminal_inferior): Add 'self' argument.
9922 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9923 * inflow.c (terminal_inferior): Add 'self' argument.
9924 * inferior.h (terminal_inferior): Add 'self' argument.
9925 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9926 (go32_terminal_inferior): Add 'self' argument.
9927
9928 2014-02-19 Tom Tromey <tromey@redhat.com>
9929
9930 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9931 (target_terminal_init): Add argument.
9932 * target.c (debug_to_terminal_init): Add argument.
9933 (update_current_target): Update.
9934 * inflow.c (terminal_init_inferior): Add 'self' argument.
9935 * inferior.h (terminal_init_inferior): Add 'self' argument.
9936 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9937 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9938
9939 2014-02-19 Tom Tromey <tromey@redhat.com>
9940
9941 * target.h (struct target_ops)
9942 <to_can_accel_watchpoint_condition>: Add argument.
9943 (target_can_accel_watchpoint_condition): Add argument.
9944 * target.c (debug_to_can_accel_watchpoint_condition): Add
9945 argument.
9946 (update_current_target): Update.
9947 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9948 'self' argument.
9949
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9951
9952 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9953 Add argument.
9954 (target_region_ok_for_hw_watchpoint): Add argument.
9955 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9956 (default_region_ok_for_hw_watchpoint): Add argument.
9957 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9958 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9959 argument.
9960 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9961 argument.
9962 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9963 argument.
9964 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9965 'self' argument.
9966 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9967 'self' argument.
9968 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9969 'self' argument.
9970 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9971 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9972 'self' argument.
9973 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9974 Add 'self' argument.
9975
9976 2014-02-19 Tom Tromey <tromey@redhat.com>
9977
9978 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9979 argument.
9980 (target_insert_watchpoint): Add argument.
9981 * target.c (debug_to_insert_watchpoint): Add argument.
9982 (update_current_target): Update.
9983 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9984 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9985 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9986 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9987 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9988 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9989 argument.
9990 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9991 (procfs_insert_hw_watchpoint): Add 'self' argument.
9992 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9993 argument.
9994 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9995 argument.
9996 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9997 argument.
9998 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9999 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10000 argument.
10001 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10002 'self' argument.
10003
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10005
10006 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10007 argument.
10008 (target_remove_watchpoint): Add argument.
10009 * target.c (debug_to_remove_watchpoint): Add argument.
10010 (update_current_target): Update.
10011 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10012 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10013 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10014 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10015 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10016 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10017 argument.
10018 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10019 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10020 argument.
10021 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10022 argument.
10023 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10024 argument.
10025 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10026 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10027 argument.
10028 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10029 'self' argument.
10030
10031 2014-02-19 Tom Tromey <tromey@redhat.com>
10032
10033 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10034 argument.
10035 (target_remove_hw_breakpoint): Add argument.
10036 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10037 (update_current_target): Update.
10038 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10039 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10040 argument.
10041 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10042 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10043 argument.
10044 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10045 'self' argument.
10046
10047 2014-02-19 Tom Tromey <tromey@redhat.com>
10048
10049 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10050 argument.
10051 (target_insert_hw_breakpoint): Add argument.
10052 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10053 (update_current_target): Update.
10054 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10055 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10056 argument.
10057 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10058 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10059 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10060 argument.
10061 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10062 'self' argument.
10063
10064 2014-02-19 Tom Tromey <tromey@redhat.com>
10065
10066 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10067 argument.
10068 (target_can_use_hardware_watchpoint): Add argument.
10069 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10070 (update_current_target): Update.
10071 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10072 argument.
10073 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10074 argument.
10075 * remote.c (remote_check_watch_resources): Add 'self' argument.
10076 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10077 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10078 argument.
10079 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10080 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10081 argument.
10082 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10083 argument.
10084 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10085 argument.
10086 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10087 argument.
10088 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10089 argument.
10090 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10091 argument.
10092 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10093 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10094 argument.
10095 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10096 'self' argument.
10097
10098 2014-02-19 Tom Tromey <tromey@redhat.com>
10099
10100 * target.h (struct target_ops) <to_post_attach>: Add argument.
10101 (target_post_attach): Add argument.
10102 * target.c (debug_to_post_attach): Add argument.
10103 (update_current_target): Update.
10104 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10105 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10106 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10107 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10108 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10109
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * windows-nat.c (windows_close): Add 'self' argument.
10113 * tracepoint.c (tfile_close): Add 'self' argument.
10114 * target.h (struct target_ops) <to_close>: Add argument.
10115 * target.c (target_close): Add argument.
10116 (update_current_target): Update.
10117 * remote.c (remote_close): Add 'self' argument.
10118 * remote-sim.c (gdbsim_close): Add 'self' argument.
10119 * remote-mips.c (mips_close): Add 'self' argument.
10120 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10121 * record-full.c (record_full_close): Add 'self' argument.
10122 * record-btrace.c (record_btrace_close): Add 'self' argument.
10123 * monitor.h (monitor_close): Add 'self' argument.
10124 * monitor.c (monitor_close): Add 'self' argument.
10125 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10126 * linux-nat.c (linux_nat_close): Add argument.
10127 * go32-nat.c (go32_close): Add 'self' argument.
10128 * exec.c (exec_close_1): Add 'self' argument.
10129 * ctf.c (ctf_close): Add 'self' argument.
10130 * corelow.c (core_close): Add 'self' argument.
10131 (core_close_cleanup): Update.
10132 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10133 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10134
10135 2014-02-19 Tom Tromey <tromey@redhat.com>
10136
10137 * remote.c (remote_load): New function.
10138 (init_remote_ops): Use it.
10139
10140 2014-02-19 Tom Tromey <tromey@redhat.com>
10141
10142 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10143 argument.
10144 * common/linux-btrace.h (linux_supports_btrace): Update.
10145 * remote.c (remote_supports_btrace): Add "self" argument.
10146 * target-delegates.c: Rebuild.
10147 * target.c (target_supports_btrace): Remove.
10148 * target.h (struct target_ops) <to_supports_btrace>: Add
10149 target_ops argument.
10150 (target_supports_btrace): New define.
10151
10152 2014-02-19 Tom Tromey <tromey@redhat.com>
10153
10154 * record-full.c (record_full_beneath_to_resume_ops)
10155 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10156 (record_full_beneath_to_wait)
10157 (record_full_beneath_to_store_registers_ops)
10158 (record_full_beneath_to_store_registers)
10159 (record_full_beneath_to_xfer_partial_ops)
10160 (record_full_beneath_to_xfer_partial)
10161 (record_full_beneath_to_insert_breakpoint_ops)
10162 (record_full_beneath_to_insert_breakpoint)
10163 (record_full_beneath_to_remove_breakpoint_ops)
10164 (record_full_beneath_to_remove_breakpoint)
10165 (record_full_beneath_to_stopped_by_watchpoint)
10166 (record_full_beneath_to_stopped_data_address)
10167 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10168 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10169 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10170 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10171 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10172 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10173 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10174 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10175 (record_full_resume, record_full_wait_1)
10176 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10177 (record_full_store_registers, record_full_xfer_partial)
10178 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10179 (record_full_async, record_full_core_xfer_partial): Use target
10180 delegation.
10181 * target-delegates.c: Rebuild.
10182 * target.c (current_xfer_partial): Remove.
10183 (update_current_target): Do not INHERIT or de_fault
10184 to_insert_breakpoint, to_remove_breakpoint,
10185 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10186 to_is_async_p, to_async. Do not set to_xfer_partial field.
10187 (default_xfer_partial): Simplify.
10188 (current_xfer_partial): Remove.
10189 (target_wait, target_resume): Simplify.
10190 (find_default_can_async_p, find_default_is_async_p): Update.
10191 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10192 to_xfer_partial, to_stopped_by_watchpoint,
10193 to_stopped_data_address.
10194 (target_store_registers): Simplify.
10195 (forward_target_remove_breakpoint)
10196 (forward_target_insert_breakpoint): Remove.
10197 (target_remove_breakpoint, target_insert_breakpoint)
10198 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10199 * target.h (struct target_ops) <to_resume, to_wait,
10200 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10201 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10202 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10203 markup.
10204 (forward_target_remove_breakpoint)
10205 (forward_target_insert_breakpoint): Remove.
10206 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10207 directly.
10208 (record_btrace_insert_breakpoint): Delegate directly.
10209
10210 2014-02-19 Tom Tromey <tromey@redhat.com>
10211
10212 PR build/7701:
10213 * target-delegates.c: New file.
10214 * target.c: Include target-delegates.c.
10215 (init_dummy_target): Call install_dummy_methods.
10216 (complete_target_initialization): Call install_delegators.
10217 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10218 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10219 * make-target-delegates: New file.
10220
10221 2014-02-19 Tom Tromey <tromey@redhat.com>
10222
10223 * record.c (find_record_target): Use find_target_at.
10224 * target.c (find_target_at): New function.
10225 * target.h (find_target_at): Declare.
10226
10227 2014-02-19 Tom Tromey <tromey@redhat.com>
10228
10229 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10230 Add 'ops' argument.
10231 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10232 'ops' argument.
10233 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10234 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10235 'ops' argument.
10236 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10237 argument.
10238 * linux-nat.c (save_sigtrap): Update.
10239 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10240 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10241 (linux_nat_close): Update.
10242 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10243 argument.
10244 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10245 argument.
10246 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10247 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10248 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10249 (tmp_to_async): Add 'ops' argument.
10250 (record_full_stopped_by_watchpoint, record_full_async)
10251 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10252 argument.
10253 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10254 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10255 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10256 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10257 (remote_is_async_p, remote_async): Add 'ops' argument.
10258 (remote_stopped_data_address): Update.
10259 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10260 * target.c (update_current_target)
10261 (find_default_can_async_p, find_default_is_async_p): Update.
10262 (init_dummy_target): Update.
10263 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10264 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10265 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10266 (target_can_async_p, target_is_async_p, target_async)
10267 (target_stopped_by_watchpoint): Update.
10268
10269 2014-02-19 Yao Qi <yao@codesourcery.com>
10270
10271 PR gdb/16220
10272 * gdbarch.sh: Remove startup_gdbarch.
10273 * gdbarch.c: Regenerated.
10274 * gdbarch.h: Likewise.
10275
10276 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10277
10278 * rl78-tdep.c (rl78_g10_register_name): New function.
10279 (rl78_return_value): Add g10 support.
10280 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10281 g10.
10282
10283 2014-02-17 Doug Evans <xdje42@gmail.com>
10284
10285 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10286 (SUBDIR_GUILE_SRCS): Ditto.
10287 (scm-gsmob.o): Ditto.
10288
10289 2014-02-17 Yao Qi <yao@codesourcery.com>
10290
10291 * gnu-nat.c (ILL_RPC): Declare defined function.
10292
10293 2014-02-17 Yao Qi <yao@codesourcery.com>
10294
10295 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10296 mach_msg_type_number_t.
10297 (gnu_write_inferior): Likewise.
10298
10299 2014-02-17 Yao Qi <yao@codesourcery.com>
10300
10301 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10302 in format string.
10303 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10304 (inf_validate_procs, inf_signal): Likewise.
10305 (S_exception_raise_request): Likewise.
10306 (do_mach_notify_dead_name): Likewise.
10307 (steal_exc_port): Likewise.
10308 (gnu_read_inferior): Change 'copy_count''s type to
10309 mach_msg_type_number_t.
10310 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10311 format string.
10312
10313 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10314
10315 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10316 flag. Adjust all users; in particular...
10317 (gnu_wait): ..., don't decrement its value in here...
10318 (gnu_create_inferior): ..., and instead set the flag in here,
10319 around the startup_inferior call, and call that one with
10320 START_INFERIOR_TRAPS_EXPECTED.
10321
10322 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10323 (ILL_RPC): ... new macro.
10324 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10325 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10326 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10327 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10328 functions with ILL_RPC macro.
10329 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10330 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10331 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10332 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10333 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10334 (S_proc_getlogin_reply, S_proc_getsid_reply)
10335 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10336 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10337 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10338 (S_proc_getnports_reply, S_proc_is_important_reply)
10339 (S_proc_get_code_reply): New stub functions, generated with
10340 ILL_RPC macro.
10341
10342 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10343 collected the type check structures.
10344
10345 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10346
10347 2014-02-14 Doug Evans <dje@google.com>
10348
10349 * target.c (target_write_partial): Fix result type.
10350
10351 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10352
10353 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10354 the proper offsets to access fpregset_t.
10355
10356 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10357
10358 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10359 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10360 * h8300-tdep.c (setmachinelist): Remove global.
10361 * hppa-tdep.c (hppa_sigtramp): Remove global.
10362 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10363 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10364 * ravenscar-thread.c (update_target_observer): Remove global.
10365 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10366
10367 2014-02-12 Tom Tromey <tromey@redhat.com>
10368
10369 * common/rsp-low.c: Update comments.
10370 * common/rsp-low.h: Update comments.
10371
10372 2014-02-12 Tom Tromey <tromey@redhat.com>
10373
10374 * common/rsp-low.c (convert_ascii_to_int): Remove.
10375 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10376
10377 2014-02-12 Tom Tromey <tromey@redhat.com>
10378
10379 * common/rsp-low.h (unhexify): Don't declare.
10380 * common/rsp-low.c (unhexify): Remove.
10381
10382 2014-02-12 Tom Tromey <tromey@redhat.com>
10383
10384 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10385 * common/rsp-low.c (convert_int_to_ascii): Remove.
10386
10387 2014-02-12 Tom Tromey <tromey@redhat.com>
10388
10389 * common/rsp-low.h (hexify): Don't declare.
10390 * common/rsp-low.c (hexify): Remove.
10391
10392 2014-02-12 Tom Tromey <tromey@redhat.com>
10393
10394 * common/rsp-low.c (hexify): Never take strlen of argument.
10395
10396 2014-02-12 Tom Tromey <tromey@redhat.com>
10397
10398 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10399 * remote.c (extended_remote_run, remote_rcmd)
10400 (remote_download_trace_state_variable, remote_save_trace_data)
10401 (remote_set_trace_notes): Update.
10402 * tracepoint.c (encode_source_string, tfile_write_status)
10403 (tfile_write_uploaded_tsv): Update.
10404
10405 2014-02-12 Tom Tromey <tromey@redhat.com>
10406
10407 * tracepoint.c: Include rsp-low.h.
10408 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10409 * remote.c: Include rsp-low.h.
10410 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10411 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10412 (remote_unescape_input): Move to common/rsp-low.c.
10413 * common/rsp-low.h: New file.
10414 * common/rsp-low.c: New file.
10415 * Makefile.in (SFILES): Add common/rsp-low.c.
10416 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10417 (COMMON_OBS): Add rsp-low.o.
10418 (rsp-low.o): New target.
10419
10420 2014-02-12 Tom Tromey <tromey@redhat.com>
10421
10422 * utils.h: Include print-utils.h.
10423 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10424 (int_string, core_addr_to_string, core_addr_to_string_nz)
10425 (hex_string, hex_string_custom): Don't declare.
10426 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10427 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10428 (hex_string_custom, int_string, core_addr_to_string)
10429 (core_addr_to_string_nz, host_address_to_string): Move to
10430 common/print-utils.c.
10431 * common/print-utils.h: New file.
10432 * common/print-utils.c: New file
10433 * Makefile.in (SFILES): Add common/print-utils.c.
10434 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10435 (COMMON_OBS): Add print-utils.o.
10436 (print-utils.o): New target.
10437
10438 2014-02-12 Tom Tromey <tromey@redhat.com>
10439
10440 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10441
10442 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10443
10444 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10445
10446 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10447
10448 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10449 if a PT_IO ptrace request returns sucessfully but indicates that 0
10450 bytes were transferred.
10451
10452 2014-02-12 Pedro Alves <palves@redhat.com>
10453 Kevin Buettner <kevinb@redhat.com>
10454
10455 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10456 TYPE_INSTANCE_FLAG_CODE_SPACE.
10457
10458 2014-02-12 Pedro Alves <palves@redhat.com>
10459
10460 * h8300-tdep.c (pseudo_from_raw_register)
10461 (raw_from_pseudo_register): New functions.
10462 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10463 them.
10464
10465 2014-02-12 Pedro Alves <palves@redhat.com>
10466
10467 * h8300-tdep.c (h8300_register_sim_regno): New function.
10468 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10469 gdbarch_register_sim_regno hook.
10470
10471 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10472
10473 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10474
10475 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10476
10477 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10478
10479 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10480
10481 * obsd-tdep.h (obsd_init_abi): New prototype.
10482 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10483 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10484 (obsd_init_abi): New functions.
10485 * i386obsd-tdep.c: Include "obsd-tdep.h".
10486 (i386obsd_init_abi): Call obsd_init_abi.
10487 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10488 (amd64obsd_init_abi): Call obsd_init_abi.
10489 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10490 obsd-tdep.c to gdb_target_obs.
10491
10492 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10493
10494 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10495 double float arguments to 16-byte in the argument slots.
10496
10497 2014-02-11 Doug Evans <xdje42@gmail.com>
10498
10499 * configure.ac: Don't crash if pkg-config is not found and guile
10500 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10501 in guile checks.
10502 * configure: Regenerate.
10503
10504 2014-02-11 Yao Qi <yao@codesourcery.com>
10505
10506 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10507 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10508 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10509 * gnu-nat.c (gnu_xfer_memory): Likewise.
10510 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10511 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10512 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10513 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10514
10515 2014-02-11 Yao Qi <yao@codesourcery.com>
10516
10517 * target.h (enum target_xfer_error): Rename to ...
10518 (enum target_xfer_status): ... it. New. All users updated.
10519 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10520 New.
10521 (TARGET_XFER_STATUS_ERROR_P): New macro.
10522 (target_xfer_error_to_string): Remove declaration.
10523 (target_xfer_status_to_string): Declare.
10524 (target_xfer_partial_ftype): Adjust it.
10525 (struct target_ops) <to_xfer_partial>: Return
10526 target_xfer_status. Add argument xfered_len. Update
10527 comments.
10528 * target.c (target_xfer_error_to_string): Rename to ...
10529 (target_xfer_status_to_string): ... it. New. All callers
10530 updated.
10531 (target_read_live_memory): Likewise. Call target_xfer_partial
10532 instead of target_read.
10533 (memory_xfer_live_readonly_partial): Return
10534 target_xfer_status. Add argument xfered_len.
10535 (raw_memory_xfer_partial): Likewise.
10536 (memory_xfer_partial_1): Likewise.
10537 (memory_xfer_partial): Likewise.
10538 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10539 properly. Update debug message.
10540 (default_xfer_partial, current_xfer_partial): Likewise.
10541 (target_write_partial): Likewise.
10542 (target_read_partial): Likewise. All callers updated.
10543 (read_whatever_is_readable): Likewise.
10544 (target_write_with_progress): Likewise.
10545 (target_read_alloc_1): Likewise.
10546
10547 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10548 * auxv.c (procfs_xfer_auxv): Likewise.
10549 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10550 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10551 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10552 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10553 * corefile.c (read_memory): Adjust.
10554 * corelow.c (core_xfer_partial): Likewise.
10555 * ctf.c (ctf_xfer_partial): Likewise.
10556 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10557 updated.
10558 (darwin_xfer_partial): Likewise.
10559 * exec.c (section_table_xfer_memory_partial): Likewise. All
10560 callers updated.
10561 (exec_xfer_partial): Likewise.
10562 * exec.h (section_table_xfer_memory_partial): Update
10563 declaration.
10564 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10565 negative.
10566 (gnu_xfer_partial): Likewise.
10567 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10568 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10569 (ia64_hpux_xfer_solib_got): Likewise.
10570 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10571 type of 'partial_len' to ULONGEST.
10572 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10573 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10574 (linux_nat_xfer_partial): Likewise.
10575 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10576 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10577 * monitor.c (monitor_xfer_memory): Likewise.
10578 (monitor_xfer_partial): Likewise.
10579 * procfs.c (procfs_xfer_partial): Likewise.
10580 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10581 * record-full.c (record_full_xfer_partial): Likewise.
10582 (record_full_core_xfer_partial): Likewise.
10583 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10584 (gdbsim_xfer_partial): Likewise.
10585 * remote.c (remote_write_bytes_aux): Likewise. All callers
10586 updated.
10587 (remote_write_bytes, remote_read_bytes): Likewise. All
10588 callers updated.
10589 (remote_flash_erase): Likewise. All callers updated.
10590 (remote_write_qxfer): Likewise. All callers updated.
10591 (remote_read_qxfer): Likewise. All callers updated.
10592 (remote_xfer_partial): Likewise.
10593 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10594 (rs6000_xfer_shared_libraries): Likewise.
10595 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10596 (sol_thread_xfer_partial): Likewise.
10597 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10598 (sparc_xfer_partial): Likewise.
10599 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10600 updated.
10601 (spu_xfer_partial): Likewise.
10602 * spu-multiarch.c (spu_xfer_partial): Likewise.
10603 * tracepoint.c (tfile_xfer_partial): Likewise.
10604 * windows-nat.c (windows_xfer_memory): Likewise.
10605 (windows_xfer_shared_libraries): Likewise.
10606 (windows_xfer_partial): Likewise.
10607 * valprint.c: Replace 'target_xfer_error' with
10608 'target_xfer_status' in comments.
10609
10610 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10611
10612 Checked in by Joel Brobecker <brobecker@adacore.com>.
10613 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10614
10615 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10616
10617 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10618 function parameters.
10619
10620 2014-02-10 Will Newton <will.newton@linaro.org>
10621
10622 * elfread.c (elf_rel_plt_read): Look for a .got section if
10623 looking up .got.plt fails.
10624 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10625 on address passed to elf_gnu_ifunc_record_cache.
10626 (elf_gnu_ifunc_resolve_addr): Likewise.
10627 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10628
10629 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10630
10631 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10632 (X_RETTURN): New macro.
10633 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10634
10635 * sparc64-tdep.c (sparc64_init_abi): Hook
10636 sparc_in_function_epilogue_p.
10637
10638 2014-02-10 Gary Benson <gbenson@redhat.com>
10639
10640 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10641 Rename name_matcher to symbol_matcher.
10642
10643 2014-02-10 Gary Benson <gbenson@redhat.com>
10644
10645 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10646 Use expand_symtabs_file_matcher_ftype and
10647 expand_symtabs_symbol_matcher_ftype.
10648
10649 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10650
10651 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10652 (struct ada_symbol_cache): New.
10653 (ada_free_symbol_cache): Forward declare.
10654 (struct ada_pspace_data): New.
10655 (ada_pspace_data_handle): New static global.
10656 (get_ada_pspace_data, ada_pspace_data_cleanup)
10657 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10658 (cache_space, cache): Delete, now folded inside struct
10659 ada_pspace_data.
10660 (ada_get_symbol_cache): New function.
10661 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10662 implementation.
10663 (_initialize_ada_language): Remove initialization of cache_space.
10664 Move call to observer_attach_inferior_exit up, grouping it
10665 with the other observer registrations inside this function.
10666 Rename command to be more general. Add call to
10667 register_program_space_data_with_cleanup.
10668
10669 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10670
10671 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10672 ada_new_objfile_observer.
10673 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10674 (_initialize_tasks): Update uses of ada_new_objfile_observer
10675 and ada_tasks_normal_stop_observer.
10676
10677 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10678
10679 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10680 returned by the 'Length attribute to integer.
10681
10682 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10683
10684 * ada-lang.c (_initialize_ada_language): Initialize
10685 cache_space obstack.
10686
10687 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10688
10689 * ada-lang.c (HASH_SIZE): New macro.
10690 (struct cache_entry): New type.
10691 (cache_space, cache): New static globals.
10692 (ada_clear_symbol_cache, find_entry): New functions.
10693 (lookup_cached_symbol, cache_symbol): Implement.
10694 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10695 (_initialize_ada_language): Attach ada_new_objfile_observer
10696 and ada_free_objfile_observer.
10697
10698 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10699
10700 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10701 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10702 struct block * parameter.
10703 (ada_lookup_symbol_list_worker): Constify local variable "block".
10704 Remove cast which is no longer necessary.
10705
10706 2014-02-10 Doug Evans <xdje42@gmail.com>
10707
10708 Add Guile as an extension language.
10709 * NEWS: Mention Guile scripting.
10710 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10711 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10712 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10713 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10714 (CLIBS): Add GUILE_LIBS.
10715 (install-guile): New rule.
10716 (guile.o): New rule.
10717 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10718 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10719 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10720 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10721 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10722 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10723 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10724 * configure.ac: New option --with-guile.
10725 * configure: Regenerate.
10726 * config.in: Regenerate.
10727 * auto-load.c: Remove #include "python/python.h". Add #include
10728 "gdb/section-scripts.h".
10729 (source_section_scripts): Handle Guile scripts.
10730 (_initialize_auto_load): Add name of Guile objfile script to
10731 scripts-directory help text.
10732 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10733 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10734 (struct breakpoint): New member scm_bp_object.
10735 * defs.h (enum command_control_type): New value guile_control.
10736 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10737 "extension.h".
10738 (show_user): Update comment.
10739 (_initialize_cli_cmds): Update help text for "show user". Update help
10740 text for max-user-call-depth.
10741 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10742 "extension.h".
10743 (multi_line_command_p): Add guile_control.
10744 (print_command_lines): Handle guile_control.
10745 (execute_control_command, recurse_read_control_structure): Ditto.
10746 (process_next_line): Recognize "guile" commands.
10747 * disasm.c (gdb_disassemble_info): Make non-static.
10748 * disasm.h: #include "dis-asm.h".
10749 (struct gdbarch): Add forward decl.
10750 (gdb_disassemble_info): Declare.
10751 * extension.c: #include "guile/guile.h".
10752 (extension_languages): Add guile.
10753 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10754 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10755 * gdbtypes.c (get_unsigned_type_max): New function.
10756 (get_signed_type_minmax): New function.
10757 * gdbtypes.h (get_unsigned_type_max): Declare.
10758 (get_signed_type_minmax): Declare.
10759 * guile/README: New file.
10760 * guile/guile-internal.h: New file.
10761 * guile/guile.c: New file.
10762 * guile/guile.h: New file.
10763 * guile/scm-arch.c: New file.
10764 * guile/scm-auto-load.c: New file.
10765 * guile/scm-block.c: New file.
10766 * guile/scm-breakpoint.c: New file.
10767 * guile/scm-disasm.c: New file.
10768 * guile/scm-exception.c: New file.
10769 * guile/scm-frame.c: New file.
10770 * guile/scm-gsmob.c: New file.
10771 * guile/scm-iterator.c: New file.
10772 * guile/scm-lazy-string.c: New file.
10773 * guile/scm-math.c: New file.
10774 * guile/scm-objfile.c: New file.
10775 * guile/scm-ports.c: New file.
10776 * guile/scm-pretty-print.c: New file.
10777 * guile/scm-safe-call.c: New file.
10778 * guile/scm-string.c: New file.
10779 * guile/scm-symbol.c: New file.
10780 * guile/scm-symtab.c: New file.
10781 * guile/scm-type.c: New file.
10782 * guile/scm-utils.c: New file.
10783 * guile/scm-value.c: New file.
10784 * guile/lib/gdb.scm: New file.
10785 * guile/lib/gdb/boot.scm: New file.
10786 * guile/lib/gdb/experimental.scm: New file.
10787 * guile/lib/gdb/init.scm: New file.
10788 * guile/lib/gdb/iterator.scm: New file.
10789 * guile/lib/gdb/printing.scm: New file.
10790 * guile/lib/gdb/types.scm: New file.
10791 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10792 (VPATH): Add $(GUILE_SRCDIR).
10793 (GUILE_DIR): New variable.
10794 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10795 (all): Add stamp-guile dependency.
10796 (stamp-guile): New rule.
10797 (clean-guile, install-guile, uninstall-guile): New rules.
10798 (install-only): Add install-guile dependency.
10799 (uninstall): Add uninstall-guile dependency.
10800 (clean): Add clean-guile dependency.
10801
10802 2014-02-09 Doug Evans <xdje42@gmail.com>
10803
10804 Revert this patch (which I approved, mea culpa).
10805
10806 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10807
10808 * Makefile.in (all-lib): Remove.
10809 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10810
10811 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10812
10813 Fix Python stack corruption.
10814 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10815 gdb_py_longest.
10816
10817 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10818
10819 * Makefile.in (all-lib): Remove.
10820 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10821
10822 2014-02-07 Doug Evans <dje@google.com>
10823
10824 * extension-priv.h (extension_language_script_ops): Add comment.
10825 (extension_language_ops): Add comment.
10826 (active_ext_lang_state): Fix typo in comment.
10827
10828 2014-02-07 Pedro Alves <palves@redhat.com>
10829
10830 PR breakpoints/16292
10831 * infrun.c (handle_signal_stop) <signal arrives while stepping
10832 over a breakpoint>: Switch back to the stepping thread.
10833
10834 2014-02-07 Yao Qi <yao@codesourcery.com>
10835
10836 * target.c (target_xfer_partial): Return zero if LEN is zero.
10837
10838 2014-02-07 Yao Qi <yao@codesourcery.com>
10839
10840 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10841 (ld_so_xfer_auxv): Likewise.
10842 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10843 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10844 * corelow.c (core_xfer_partial): Likewise.
10845 * ctf.c (ctf_xfer_partial): Likewise.
10846 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10847 (darwin_xfer_partial): Likewise.
10848 * exec.c (exec_xfer_partial): Likewise.
10849 * gnu-nat.c (gnu_xfer_partial): Likewise.
10850 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10851 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10852 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10853 * linux-nat.c (linux_xfer_siginfo): Likewise.
10854 (linux_proc_xfer_spu): Likewise.
10855 * procfs.c (procfs_xfer_partial): Likewise.
10856 * record-full.c (record_full_xfer_partial): Likewise.
10857 (record_full_core_xfer_partial): Likewise.
10858 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10859 * remote.c (remote_write_qxfer): Likewise.
10860 (remote_write_qxfer, remote_read_qxfer): Likewise.
10861 (remote_xfer_partial): Likewise.
10862 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10863 (rs6000_xfer_shared_libraries): Likewise.
10864 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10865 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10866 (spu_xfer_partial): Likewise.
10867 * target.c (memory_xfer_partial_1): Likewise.
10868 * tracepoint.c (tfile_xfer_partial): Likewise.
10869 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10870 (windows_xfer_partial): Likewise.
10871
10872 2014-02-07 Yao Qi <yao@codesourcery.com>
10873
10874 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10875 comments.
10876 (core_xfer_shared_libraries_aix): Likewise.
10877 * gdbarch.c, gdbarch.h: Regenerated.
10878 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10879 ULONGEST. Change 'len_avail' type to ULONGEST.
10880 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10881 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10882 declaration.
10883 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10884
10885 2014-02-07 Yao Qi <yao@codesourcery.com>
10886
10887 * corefile.c (memory_error): Get 'exception' from ERR and pass
10888 'exception' to throw_error.
10889
10890 2014-02-06 Doug Evans <xdje42@gmail.com>
10891
10892 * configure.ac (libpython checking): Remove all but python.o from
10893 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10894 * configure: Regenerate.
10895
10896 * Makefile.in (SFILES): Add extension.c.
10897 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10898 (COMMON_OBS): Add extension.o.
10899 * extension.h: New file.
10900 * extension-priv.h: New file.
10901 * extension.c: New file.
10902
10903 * python/python-internal.h: #include "extension.h".
10904 (gdbpy_auto_load_enabled): Declare.
10905 (gdbpy_apply_val_pretty_printer): Declare.
10906 (gdbpy_apply_frame_filter): Declare.
10907 (gdbpy_preserve_values): Declare.
10908 (gdbpy_breakpoint_cond_says_stop): Declare.
10909 (gdbpy_breakpoint_has_cond): Declare.
10910 (void source_python_script_for_objfile): Delete.
10911 * python/python.c: #include "extension-priv.h".
10912 Delete inclusion of "observer.h".
10913 (extension_language_python): Moved here and renamed from
10914 script_language_python in py-auto-load.c.
10915 Redefined to be of type extension_language_defn.
10916 (python_extension_script_ops): New global.
10917 (python_extension_ops): New global.
10918 (struct python_env): New member previous_active.
10919 (restore_python_env): Call restore_active_ext_lang.
10920 (ensure_python_env): Call set_active_ext_lang.
10921 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10922 New arg extlang.
10923 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10924 New arg extlang.
10925 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10926 New arg extlang.
10927 (gdbpy_eval_from_control_command): Renamed from
10928 eval_python_from_control_command, made static. New arg extlang.
10929 (gdbpy_source_script) Renamed from source_python_script, made static.
10930 New arg extlang.
10931 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10932 result to int. New arg extlang.
10933 (gdbpy_source_objfile_script): Renamed from
10934 source_python_script_for_objfile, made static. New arg extlang.
10935 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10936 static. New args extlang, extlang_printers. Change result type to
10937 "void".
10938 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10939 static. New arg extlang. Rename arg printers to extlang_printers
10940 and change type to ext_lang_type_printers *.
10941 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10942 static. Replace argument arg with extlang, extlang_printers.
10943 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10944 (!HAVE_PYTHON, source_python_script): Delete.
10945 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10946 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10947 (!HAVE_PYTHON, start_type_printers): Delete.
10948 (!HAVE_PYTHON, apply_type_printers): Delete.
10949 (!HAVE_PYTHON, free_type_printers): Delete.
10950 (_initialize_python): Delete call to observer_attach_before_prompt.
10951 (finalize_python): Set/restore active extension language.
10952 (gdbpy_finish_initialization) Renamed from
10953 finish_python_initialization, made static. New arg extlang.
10954 (gdbpy_initialized): New function.
10955 * python/python.h: #include "extension.h". Delete #include
10956 "value.h", "mi/mi-cmds.h".
10957 (extension_language_python): Declare.
10958 (GDBPY_AUTO_FILE_NAME): Delete.
10959 (enum py_bt_status): Moved to extension.h and renamed to
10960 ext_lang_bt_status.
10961 (enum frame_filter_flags): Moved to extension.h.
10962 (enum py_frame_args): Moved to extension.h and renamed to
10963 ext_lang_frame_args.
10964 (finish_python_initialization): Delete.
10965 (eval_python_from_control_command): Delete.
10966 (source_python_script): Delete.
10967 (apply_val_pretty_printer): Delete.
10968 (apply_frame_filter): Delete.
10969 (preserve_python_values): Delete.
10970 (gdbpy_script_language_defn): Delete.
10971 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10972 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10973
10974 * auto-load.c: #include "extension.h".
10975 (GDB_AUTO_FILE_NAME): Delete.
10976 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10977 (script_language_gdb): Delete, moved to extension.c and renamed to
10978 extension_language_gdb.
10979 (source_gdb_script_for_objfile): Delete.
10980 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10981 (loaded_script): Change type of language member to
10982 struct extension_language_defn *.
10983 (init_loaded_scripts_info): Initialize
10984 unsupported_script_warning_printed.
10985 (maybe_add_script): Make static. Change type of language arg to
10986 struct extension_language_defn *.
10987 (clear_section_scripts): Reset unsupported_script_warning_printed.
10988 (auto_load_objfile_script_1): Rewrite to use extension language API.
10989 (auto_load_objfile_script): Make public. Remove support-compiled-in
10990 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10991 (source_section_scripts): Rewrite to use extension language API.
10992 (load_auto_scripts_for_objfile): Rewrite to use
10993 auto_load_scripts_for_objfile.
10994 (collect_matching_scripts_data): Change type of language member to
10995 struct extension_language_defn *.
10996 (auto_load_info_scripts): Change type of language arg to
10997 struct extension_language_defn *.
10998 (unsupported_script_warning_print): New function.
10999 (script_not_found_warning_print): Make static.
11000 (_initialize_auto_load): Rewrite construction of scripts-directory
11001 help.
11002 * auto-load.h (struct objfile): Add forward decl.
11003 (struct script_language): Delete.
11004 (struct auto_load_pspace_info): Add forward decl.
11005 (struct extension_language_defn): Add forward decl.
11006 (maybe_add_script): Delete.
11007 (auto_load_objfile_script): Declare.
11008 (script_not_found_warning_print): Delete.
11009 (auto_load_info_scripts): Update prototype.
11010 (auto_load_gdb_scripts_enabled): Declare.
11011 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11012 auto_load_python_scripts_enabled and made public.
11013 (script_language_python): Delete, moved to python.c.
11014 (gdbpy_script_language_defn): Delete.
11015 (info_auto_load_python_scripts): Update to use
11016 extension_language_python.
11017
11018 * breakpoint.c (condition_command): Replace call to
11019 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11020 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11021 with call to breakpoint_ext_lang_cond_says_stop.
11022 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11023 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11024 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11025 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11026 New arg slang.
11027 (local_setattro): Print name of extension language with existing
11028 stop condition.
11029
11030 * valprint.c (val_print, value_print): Update to call
11031 apply_ext_lang_val_pretty_printer.
11032 * cp-valprint.c (cp_print_value): Update call to
11033 apply_ext_lang_val_pretty_printer.
11034 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11035 (gdbpy_apply_val_pretty_printer): Renamed from
11036 apply_val_pretty_printer. New arg extlang.
11037 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11038
11039 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11040 extension language API.
11041 * cli/cli-script.c (execute_control_command): Update to call
11042 eval_ext_lang_from_control_command.
11043
11044 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11045 enum ext_lang_bt_status values. Update call to
11046 apply_ext_lang_frame_filter.
11047 (mi_cmd_stack_list_locals): Ditto.
11048 (mi_cmd_stack_list_args): Ditto.
11049 (mi_cmd_stack_list_variables): Ditto.
11050 * mi/mi-main.c: Delete #include "python/python-internal.h".
11051 Add #include "extension.h".
11052 (mi_cmd_list_features): Replace reference to python internal variable
11053 gdb_python_initialized with call to ext_lang_initialized_p.
11054
11055 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11056 Update to use enum ext_lang_frame_args. Update to call
11057 apply_ext_lang_frame_filter.
11058 * python/py-framefilter.c (extract_sym): Update to use enum
11059 ext_lang_bt_status.
11060 (extract_value, py_print_type, py_print_value): Ditto.
11061 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11062 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11063 (py_print_frame): Ditto.
11064 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11065 New arg extlang. Update to use enum ext_lang_bt_status.
11066
11067 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11068 finish_python_initialization. Replace with call to
11069 finish_ext_lang_initialization.
11070
11071 * typeprint.c (do_free_global_table): Update to call
11072 free_ext_lang_type_printers.
11073 (create_global_typedef_table): Update to call
11074 start_ext_lang_type_printers.
11075 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11076 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11077 (type_print_options): Change type of global_printers from "void *"
11078 to "struct ext_lang_type_printers *".
11079
11080 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11081 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11082 (gdbpy_preserve_values): Renamed from preserve_python_values.
11083 New arg extlang.
11084 (!HAVE_PYTHON, preserve_python_values): Delete.
11085
11086 * utils.c (quit_flag): Delete, moved to extension.c.
11087 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11088 extension.c.
11089
11090 * eval.c: Delete #include "python/python.h".
11091 * main.c: Delete #include "python/python.h".
11092
11093 * defs.h: Update comment.
11094
11095 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11096
11097 GDB 7.7 released.
11098
11099 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11100
11101 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11102 defined.
11103
11104 2014-02-05 Yao Qi <yao@codesourcery.com>
11105
11106 * remote.c (remote_pass_signals): Remove local 'buf' and use
11107 rs->buf.
11108 (remote_program_signals): Likewise.
11109
11110 2014-02-05 Yao Qi <yao@codesourcery.com>
11111
11112 * ctf.c: Include "inferior.h" and "gdbthread.h".
11113 (CTF_PID): A new macro.
11114 (ctf_open): Call inferior_appeared and add_thread_silent.
11115 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11116 (ctf_thread_alive): New function.
11117 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11118
11119 2014-02-05 Yao Qi <yao@codesourcery.com>
11120
11121 Revert this patch:
11122
11123 2013-05-24 Yao Qi <yao@codesourcery.com>
11124
11125 * tracepoint.c (TFILE_PID): Remove.
11126 (tfile_open): Don't add thread and inferior.
11127 (tfile_close): Don't set 'inferior_ptid'. Don't call
11128 exit_inferior_silent.
11129 (tfile_thread_alive): Remove.
11130 (init_tfile_ops): Don't set field 'to_thread_alive' of
11131 tfile_ops.
11132
11133 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11134
11135 * remote.c (remote_start_remote): Call remote_check_symbols even
11136 if only symbol-file (not file) has been given.
11137
11138 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11139
11140 * gdbarch.sh (skip_entrypoint): New callback.
11141 * gdbarch.c, gdbarch.h: Regenerate.
11142 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11143 * infrun.c (fill_in_stop_func): Likewise.
11144 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11145 (ppc_elfv2_elf_make_msymbol_special): New function.
11146 (ppc_elfv2_skip_entrypoint): Likewise.
11147 (ppc_linux_init_abi): Install them for ELFv2.
11148
11149 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11150
11151 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11152 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11153 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11154 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11155 structures returned in GPRs.
11156
11157 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11158
11159 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11160 offset to the stack parameter list for the ELFv2 ABI.
11161
11162 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11163
11164 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11165 set_gdbarch_convert_from_func_ptr_addr and
11166 set_gdbarch_elf_make_msymbol_special for ELFv1.
11167 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11168 function descriptors on ELFv1.
11169 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11170 set up r12 at function entry.
11171
11172 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11173
11174 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11175 (struct gdbarch_tdep): New member elf_abi.
11176
11177 * rs6000-tdep.c: Include "elf/ppc64.h".
11178 (rs6000_gdbarch_init): Detect ELF ABI version.
11179
11180 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11181
11182 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11183 within a register pair holding a DFP 128-bit value on little-endian.
11184 (ppc64_sysv_abi_return_value_base): Likewise.
11185 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11186 (dfp_pseudo_register_write): Likewise.
11187
11188 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11189
11190 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11191 offset on little-endian when passing _Decimal32.
11192 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11193
11194 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11195
11196 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11197 of the overlapped FP register within the VSX register on little-
11198 endian platforms.
11199 (efpr_pseudo_register_write): Likewise.
11200
11201 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11202
11203 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11204 offset on little-endian when passing small structures.
11205
11206 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11207
11208 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11209 (struct ppc64_sysv_argpos): New data structure.
11210 (ppc64_sysv_abi_push_float): Remove.
11211 (ppc64_sysv_abi_push_val): New function.
11212 (ppc64_sysv_abi_push_integer): Likewise.
11213 (ppc64_sysv_abi_push_freg): Likewise.
11214 (ppc64_sysv_abi_push_vreg): Likewise.
11215 (ppc64_sysv_abi_push_param): Likewise.
11216 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11217 (ppc64_sysv_abi_return_value_base): New function.
11218 (ppc64_sysv_abi_return_value): Refactor to use it.
11219
11220 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11221
11222 * NEWS: Document new target powerpc64le-*-linux*.
11223
11224 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11225
11226 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11227 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11228 core dumps.
11229 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11230 register set used in ELF core dumps. Add floating-point register set.
11231
11232 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11233
11234 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11235 dwarf2_to_gdb[] table using symbolic constants. Adjust
11236 penultimate entry from number representing the PC register
11237 to symbolic constant representing the MDR register. Add
11238 constant for the PC register to the end of the table.
11239
11240 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11241
11242 * bsd-kvm.c: Include <sys/param.h>
11243
11244 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11245
11246 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11247
11248 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11249
11250 * ada-lang.h (clear_ada_sym_cache): Delete.
11251
11252 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11253
11254 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11255
11256 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11257
11258 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11259 the sigreturn register save area only if the syscall is
11260 sigreturn.
11261
11262 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11263
11264 * valops.c (value_slice): Minor reformatting.
11265
11266 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11267
11268 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11269
11270 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11271
11272 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11273 New static globals.
11274 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11275 (ada_ignore_descriptive_types_p): New static global.
11276 (find_parallel_type_by_descriptive_type): Return immediately
11277 if ada_ignore_descriptive_types_p is set.
11278 (_initialize_ada_language): Register new commands "maintenance
11279 set ada", "maintenance show ada", "maintenance set ada
11280 ignore-descriptive-types" and "maintenance show ada
11281 ignore-descriptive-types".
11282 * NEWS: Add entry for new "maint ada set/show
11283 ignore-descriptive-types" commands.
11284
11285 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11286
11287 * record-btrace.c (record_btrace_close): Call btrace_teardown
11288 for all threads.
11289
11290 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11291
11292 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11293 "ui-out.h".
11294
11295 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11296
11297 * ada-typeprint (type_is_full_subrange_of_target_type):
11298 New function.
11299 (print_range): Add parameter bounds_prefered_p. If not set,
11300 try printing range types using the name of their base type.
11301 (print_range_type): Add parameter bounds_prefered_p.
11302 Use it in call to print_range.
11303 (print_array_type, ada_print_type): Update calls to print_range
11304 and print_range_type.
11305
11306 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11307
11308 * ada-typeprint.c (print_array_type, print_choices, print_range)
11309 (print_range_bound, print_dynamic_range_bound, print_range_type):
11310 Remove declaration.
11311
11312 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11313
11314 * ada-typeprint.c (print_range): Add missing empty line
11315 after local declaration.
11316
11317 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11318
11319 * ada-valprint.c (print_optional_low_bound): Get index_type's
11320 target type for as long as it is a TYPE_CODE_RANGE.
11321
11322 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11323
11324 * procfs.c (procfs_make_note_section): Remove assertion and
11325 associated comment.
11326
11327 2014-01-24 Yao Qi <yao@codesourcery.com>
11328
11329 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11330 * corelow.c (get_core_siginfo): Likewise.
11331
11332 2014-01-24 Yao Qi <yao@codesourcery.com>
11333
11334 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11335 ULONGEST. Don't check 'len' is negative.
11336 (remote_write_bytes): Change type of 'len' to ULONGEST.
11337
11338 2014-01-23 Tom Tromey <tromey@redhat.com>
11339
11340 PR python/16485:
11341 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11342 Handle exception from frame.block.
11343 (FrameVars.fetch_frame_locals): Likewise.
11344
11345 2014-01-23 Tom Tromey <tromey@redhat.com>
11346
11347 PR python/16487:
11348 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11349 on a NULL pointer. Move "goto error" to correct place.
11350
11351 2014-01-23 Tom Tromey <tromey@redhat.com>
11352
11353 PR python/16491:
11354 * python/py-framefilter.c (apply_frame_filter): Call
11355 ensure_python_env after computing gdbarch.
11356
11357 2014-01-23 Yao Qi <yao@codesourcery.com>
11358
11359 * target.c (raw_memory_xfer_partial): Change argument type
11360 from void * to gdb_byte *.
11361 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11362
11363 2014-01-22 Doug Evans <dje@google.com>
11364
11365 New gdbserver option --debug-format=timestamp.
11366 * NEWS: Mention it.
11367
11368 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11369
11370 * syscalls/s390x-linux.xml: New file.
11371 * syscalls/s390-linux.xml: New file.
11372 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11373 (XML_SYSCALL_FILENAME_S390X): Likewise.
11374 (op_svc): New enum value for SVC opcode.
11375 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11376 (s390_linux_get_syscall_number): New function.
11377 (s390_gdbarch_init): Register '*get_syscall_number' and the
11378 syscall xml file name.
11379 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11380 "s390-linux.xml" and "s390x-linux.xml".
11381 * NEWS: Announce new feature.
11382
11383 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11384
11385 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11386
11387 2014-01-22 Pedro Alves <palves@redhat.com>
11388
11389 * xtensa-config.c: Include defs.h.
11390
11391 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11392
11393 * common/common-utils.h: Add "ARI:" comment beside __func__
11394 reference.
11395
11396 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11397
11398 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11399 documentation a bit.
11400
11401 2014-01-21 Roland McGrath <mcgrathr@google.com>
11402
11403 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11404 * configure: Regenerate.
11405 * aclocal.m4: Regenerate.
11406 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11407 New substituted variables.
11408 (install-strip): New target.
11409 (INSTALL_SCRIPT): New substituted variable.
11410 (FLAGS_TO_PASS): Add it.
11411 (install-only): Use $(INSTALL_SCRIPT) rather than
11412 $(INSTALL_PROGRAM) for gcore.
11413
11414 2014-01-20 Tom Tromey <tromey@redhat.com>
11415
11416 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11417 together.
11418
11419 2014-01-20 Tom Tromey <tromey@redhat.com>
11420
11421 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11422 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11423 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11424 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11425 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11426 (struct cmd_list_element) <flags>: Remove.
11427 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11428 doc_allocated>: New fields.
11429 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11430 bitfields.
11431 * maint.c (maintenance_do_deprecate): Update.
11432 * top.c (execute_command): Update.
11433
11434 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11435
11436 * xtensa-linux-nat.c: Include asm/ptrace.h.
11437
11438 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11439
11440 * Makefile.in (SFILES): Add d-support.c.
11441 (COMMON_OBS): Add d-support.o.
11442 * d-lang.h (d_parse_symbol): Add comment, now defined in
11443 d-support.c.
11444 * d-lang.c (parse_call_convention)
11445 (parse_attributes, parse_function_types)
11446 (parse_function_args, parse_type, parse_identifier)
11447 (call_convention_p, d_parse_symbol): Move functions to ...
11448 * d-support.c: ... New file.
11449
11450 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11451
11452 * d-lang.h (d_parse_symbol): Add declaration.
11453 * d-lang.c (extract_identifiers)
11454 (extract_type_info): Remove functions.
11455 (parse_call_convention, parse_attributes)
11456 (parse_function_types, parse_function_args)
11457 (parse_type, parse_identifier, call_convention_p)
11458 (d_parse_symbol): New functions.
11459 (d_demangle): Use d_parse_symbol to demangle D symbols.
11460
11461 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11462
11463 * d-lang.h (struct builtin_d_type): New data type.
11464 (builtin_d_type): Add declaration.
11465 * d-lang.c (d_language_arch_info, build_d_types)
11466 (builtin_d_type): New functions.
11467 (enum d_primitive_types): New data type.
11468 (d_language_defn): Change c_language_arch_info to
11469 d_language_arch_info.
11470 (d_type_data): New static variable.
11471 (_initialize_d_language): Initialize d_type_data.
11472
11473 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11474
11475 * d-lang.h (d_main_name): Add declaration.
11476 * d-lang.c (d_main_name): New function.
11477 * symtab.c (find_main_name): Add call to d_main_name.
11478
11479 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11480
11481 * d-lang.c (d_language_defn): Change macro_expansion_c to
11482 macro_expansion_no.
11483
11484 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11485
11486 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11487
11488 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11489
11490 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11491 gdb_exception" declaration.
11492 * remote.c (getpkt_or_notif_sane): Likewise.
11493
11494 2014-01-17 Doug Evans <dje@google.com>
11495
11496 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11497 function, contents of dirnames_to_char_ptr_vec_append moved here.
11498 (delim_string_to_char_ptr_vec): New function.
11499 (dirnames_to_char_ptr_vec_append): Rewrite.
11500 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11501
11502 2014-01-17 Doug Evans <dje@google.com>
11503
11504 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11505 and moved here ...
11506 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11507 #include "common-utils.h".
11508 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11509 * common/vec.h (VEC_ASSERT_PASS): Update.
11510 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11511 (MACH_CHECK_ERROR): Update.
11512
11513 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11514
11515 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11516 comments.
11517 * gdbarch.h: Regenerate.
11518
11519 2014-01-16 Tom Tromey <tromey@redhat.com>
11520
11521 * value.c (struct value) <regnum>: Move earlier.
11522
11523 2014-01-16 Tom Tromey <tromey@redhat.com>
11524
11525 * remote.c (extended_remote_create_inferior): Rename from
11526 extended_remote_create_inferior_1. Add "ops" argument. Remove
11527 old implementation.
11528
11529 2014-01-16 Pedro Alves <palves@redhat.com>
11530
11531 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11532 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11533 the backchain.
11534
11535 2014-01-16 Doug Evans <dje@google.com>
11536
11537 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11538
11539 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11540
11541 * btrace.h (btrace_thread_flag): New.
11542 (struct btrace_thread_info) <flags>: New.
11543 * record-btrace.c (record_btrace_resume_thread)
11544 (record_btrace_find_thread_to_move, btrace_step_no_history)
11545 (btrace_step_stopped, record_btrace_start_replaying)
11546 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11547 (record_btrace_find_resume_thread): New.
11548 (record_btrace_resume, record_btrace_wait): Extend.
11549 (record_btrace_can_execute_reverse): New.
11550 (record_btrace_open): Fail in non-stop mode.
11551 (record_btrace_set_replay): Split into this, ...
11552 (record_btrace_stop_replaying): ... this, ...
11553 (record_btrace_clear_histories): ... and this.
11554 (init_record_btrace_ops): Init to_can_execute_reverse.
11555 * NEWS: Announce it.
11556
11557 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11558
11559 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11560 (forward_target_decr_pc_after_break)
11561 (target_decr_pc_after_break): New.
11562 * target.c (forward_target_decr_pc_after_break)
11563 (target_decr_pc_after_break): New.
11564 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11565 instead of gdbarch_decr_pc_after_break.
11566 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11567 instead of gdbarch_decr_pc_after_break.
11568 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11569 instead of gdbarch_decr_pc_after_break.
11570 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11571 instead of gdbarch_decr_pc_after_break.
11572 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11573 instead of gdbarch_decr_pc_after_break.
11574 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11575 instead of gdbarch_decr_pc_after_break.
11576
11577 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11578
11579 * btrace.c: Include regcache.h.
11580 (btrace_add_pc): New.
11581 (btrace_enable): Call btrace_add_pc.
11582 (btrace_is_empty): New.
11583 * btrace.h (btrace_is_empty): New.
11584 * record-btrace.c (require_btrace, record_btrace_info): Call
11585 btrace_is_empty.
11586
11587 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11588
11589 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11590 Support delta reads.
11591 (linux_disable_btrace): Change return type.
11592 * common/linux-btrace.h (linux_read_btrace): Change parameters
11593 and return type to allow error reporting. Update users.
11594 (linux_disable_btrace): Change return type. Update users.
11595 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11596 New.
11597 (btrace_error): New.
11598 (btrace_block) <begin>: Comment on BEGIN == 0.
11599 * btrace.c (btrace_compute_ftrace): Start from the end of
11600 the current trace.
11601 (btrace_stitch_trace, btrace_clear_history): New.
11602 (btrace_fetch): Read delta trace, return if replaying.
11603 (btrace_clear): Move clear history code to btrace_clear_history.
11604 (parse_xml_btrace): Throw an error if parsing failed.
11605 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11606 and return type to allow error reporting.
11607 (target_read_btrace): Change parameters and return type to allow
11608 error reporting.
11609 * target.c (target_read_btrace): Update.
11610 * remote.c (remote_read_btrace): Support delta reads. Pass
11611 errors on.
11612 * NEWS: Announce it.
11613
11614 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11615
11616 * record.h (record_btrace_frame_unwind)
11617 (record_btrace_tailcall_frame_unwind): New declarations.
11618 * dwarf2-frame: Include record.h
11619 (dwarf2_frame_cfa): Throw an error for btrace frames.
11620 * record-btrace.c: Include hashtab.h.
11621 (btrace_get_bfun_name): New.
11622 (btrace_call_history): Call btrace_get_bfun_name.
11623 (struct btrace_frame_cache): New.
11624 (bfcache): New.
11625 (bfcache_hash, bfcache_eq, bfcache_new): New.
11626 (btrace_get_frame_function): New.
11627 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11628 (record_btrace_frame_this_id): Compute own id.
11629 (record_btrace_frame_prev_register): Provide PC, throw_error
11630 for all other registers.
11631 (record_btrace_frame_sniffer): Detect btrace frames.
11632 (record_btrace_tailcall_frame_sniffer): New.
11633 (record_btrace_frame_dealloc_cache): New.
11634 (record_btrace_frame_unwind): Add new functions.
11635 (record_btrace_tailcall_frame_unwind): New.
11636 (_initialize_record_btrace): Allocate cache.
11637 * btrace.c (btrace_clear): Call reinit_frame_cache.
11638 * NEWS: Announce it.
11639
11640 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11641
11642 * record-btrace.c (record_btrace_set_replay)
11643 (record_btrace_goto_begin, record_btrace_goto_end)
11644 (record_btrace_goto): New.
11645 (init_record_btrace_ops): Initialize them.
11646 * NEWS: Announce it.
11647
11648 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11649
11650 * record-btrace.c (record_btrace_find_new_threads)
11651 (record_btrace_thread_alive): New.
11652 (init_record_btrace_ops): Initialize to_find_new_threads and
11653 to_thread_alive.
11654
11655 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11656
11657 * record-btrace.c (record_btrace_resume): New.
11658 (record_btrace_wait): New.
11659 (init_record_btrace_ops): Initialize to_wait and to_resume.
11660
11661 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11662
11663 * record-btrace.c (record_btrace_xfer_partial)
11664 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11665 (record_btrace_allow_memory_access): New.
11666 (init_record_btrace_ops): Initialize new methods.
11667 * target.c (raw_memory_xfer_partial): Bail out if target reports
11668 that this memory is not available.
11669
11670 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11671
11672 * target.h (target_ops) <to_insert_breakpoint>
11673 <to_remove_breakpoint>: Add target_ops parameter.
11674 (forward_target_insert_breakpoint): New.
11675 (forward_target_remove_breakpoint): New.
11676 (memory_remove_breakpoint, memory_insert_breakpoint):
11677 Add target_ops parameter.
11678 * target.c (target_insert_breakpoint): Split into this and ...
11679 (forward_target_insert_breakpoint): ... this.
11680 (target_remove_breakpoint): Split into this and ...
11681 (forward_target_remove_breakpoint): ... this.
11682 (debug_to_insert_breakpoint): Add target_ops parameter.
11683 Call forward_target_insert_breakpoint.
11684 (debug_to_remove_breakpoint): Add target_ops parameter.
11685 Call forward_target_remove_breakpoint.
11686 (update_current_target): Do not inherit or default to_insert_breakpoint
11687 and to_remove_breakpoint.
11688 * corelow.c (ignore): Add target_ops parameter.
11689 * exec.c (ignore): Add target_ops parameter.
11690 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11691 Add target_ops parameter.
11692 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11693 Add target_ops parameter.
11694 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11695 Add target_ops parameter.
11696 * record-full.c (record_full_beneath_to_insert_breakpoint)
11697 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11698 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11699 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11700 (record_full_core_remove_breakpoint): Add target_ops parameter.
11701 Update users.
11702 (record_full_beneath_to_insert_breakpoint_ops)
11703 (record_full_beneath_to_remove_breakpoint_ops)
11704 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11705 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11706 tmp_to_remove_breakpoint_ops,
11707 record_full_beneath_to_insert_breakpoint_ops, and
11708 record_full_beneath_to_remove_breakpoint_ops.
11709 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11710 (m32r_remove_breakpoint): Add target_ops parameter.
11711 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11712 Add target_ops parameter.
11713 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11714 Add target_ops parameter.
11715
11716 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11717 Markus Metzger <markus.t.metzger@intel.com>
11718
11719 * record-btrace.c: Include frame-unwind.h.
11720 (record_btrace_frame_unwind_stop_reason)
11721 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11722 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11723 New.
11724 (init_record_btrace_ops): Install it.
11725
11726 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11727
11728 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11729 get_prev_frame_1.
11730
11731 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11732
11733 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11734 earlier.
11735
11736 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11737
11738 * frame-unwind.c: Include target.h.
11739 (frame_unwind_try_unwinder): New function with code from ...
11740 (frame_unwind_find_by_frame): ... here. New variable
11741 unwinder_from_target, call also target_get_unwinder)
11742 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11743 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11744 * target.h (struct target_ops): New fields to_get_unwinder and
11745 to_get_tailcall_unwinder.
11746 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11747
11748 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11749
11750 * record-btrace.c (record_btrace_fetch_registers)
11751 (record_btrace_store_registers)
11752 (record_btrace_to_prepare_to_store): New.
11753 (init_record_btrace_ops): Add the above.
11754
11755 2014-01-16 Tom Tromey <tromey@redhat.com>
11756
11757 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11758 * target.h (struct target_ops) <to_prepare_to_store>: Add
11759 argument.
11760 (target_prepare_to_store): Add argument.
11761 * target.c (debug_to_prepare_to_store): Add argument.
11762 (update_current_target): Update.
11763 * remote.c (remote_prepare_to_store): Add 'self' argument.
11764 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11765 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11766 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11767 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11768 argument.
11769 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11770 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11771 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11772 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11773 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11774
11775 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11776
11777 * btrace.h (replay) <replay>: New.
11778 (btrace_is_replaying): New.
11779 * btrace.c (btrace_clear): Free replay iterator.
11780 (btrace_is_replaying): New.
11781 * record-btrace.c (record_btrace_is_replaying): New.
11782 (record_btrace_info): Print insn number if replaying.
11783 (record_btrace_insn_history): Start at replay position.
11784 (record_btrace_call_history): Start at replay position.
11785 (init_record_btrace_ops): Init to_record_is_replaying.
11786
11787 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11788
11789 * record-btrace.c (record_btrace_insn_history_range): Include
11790 end.
11791 (record_btrace_insn_history_from): Adjust range.
11792 (record_btrace_call_history_range): Include
11793 end.
11794 (record_btrace_call_history_from): Adjust range.
11795 * NEWS: Announce changes.
11796
11797 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11798
11799 * record.h (enum record_print_flag)
11800 <record_print_indent_calls>: New.
11801 * record.c (get_call_history_modifiers): Recognize /c modifier.
11802 (_initialize_record): Document /c modifier.
11803 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11804 Reorder fields. Optionally indent the function name. Update
11805 all users.
11806 * NEWS: Announce changes.
11807
11808 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11809
11810 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11811
11812 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11813
11814 * btrace.c (ftrace_new_function): Start counting at one.
11815 * record-btrace.c (record_btrace_info): Adjust number of calls
11816 and insns.
11817 * NEWS: Announce it.
11818
11819 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11820
11821 * record-btrace.c (btrace_call_history_insn_range): Print
11822 insn range as [begin, end].
11823
11824 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11825
11826 * btrace.h (struct btrace_func_link): New.
11827 (enum btrace_function_flag): New.
11828 (struct btrace_inst): Rename to ...
11829 (struct btrace_insn): ...this. Update all users.
11830 (struct btrace_func) <ibegin, iend>: Remove.
11831 (struct btrace_func_link): New.
11832 (struct btrace_func): Rename to ...
11833 (struct btrace_function): ...this. Update all users.
11834 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11835 (number, level, flags>: New.
11836 (struct btrace_insn_iterator): Rename to ...
11837 (struct btrace_insn_history): ...this.
11838 Update all users.
11839 (struct btrace_insn_iterator, btrace_call_iterator): New.
11840 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11841 (struct btrace_target_info) <begin, end, level>
11842 <insn_history, call_history>: New.
11843 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11844 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11845 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11846 (btrace_call_number, btrace_call_begin, btrace_call_end)
11847 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11848 (btrace_find_function_by_number, btrace_set_insn_history)
11849 (btrace_set_call_history): New.
11850 * btrace.c (btrace_init_insn_iterator)
11851 (btrace_init_func_iterator, compute_itrace): Remove.
11852 (ftrace_print_function_name, ftrace_print_filename)
11853 (ftrace_skip_file): Change
11854 parameter to const.
11855 (ftrace_init_func): Remove.
11856 (ftrace_debug): Use new btrace_function fields.
11857 (ftrace_function_switched): Also consider gaining and
11858 losing symbol information).
11859 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11860 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11861 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11862 New.
11863 (ftrace_new_function): Move. Remove debug print.
11864 (ftrace_update_lines, ftrace_update_insns): New.
11865 (ftrace_update_function): Check for call, ret, and jump.
11866 (compute_ftrace): Renamed to ...
11867 (btrace_compute_ftrace): ...this. Rewritten to compute call
11868 stack.
11869 (btrace_fetch, btrace_clear): Updated.
11870 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11871 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11872 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11873 (btrace_call_number, btrace_call_begin, btrace_call_end)
11874 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11875 (btrace_find_function_by_number, btrace_set_insn_history)
11876 (btrace_set_call_history): New.
11877 * record-btrace.c (require_btrace): Use new btrace thread
11878 info fields.
11879 (record_btrace_info, btrace_insn_history)
11880 (record_btrace_insn_history, record_btrace_insn_history_range):
11881 Use new btrace thread info fields and new iterator.
11882 (btrace_func_history_src_line): Rename to ...
11883 (btrace_call_history_src_line): ...this. Use new btrace
11884 thread info fields.
11885 (btrace_func_history): Rename to ...
11886 (btrace_call_history): ...this. Use new btrace thread info
11887 fields and new iterator.
11888 (record_btrace_call_history, record_btrace_call_history_range):
11889 Use new btrace thread info fields and new iterator.
11890
11891 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11892
11893 * frame.h (frame_id_build_unavailable_stack_special): New.
11894 * frame.c (frame_id_build_unavailable_stack_special): New.
11895
11896 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11897
11898 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11899 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11900 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11901 to gdbarch.
11902 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11903 (i386_insn_is_jump, i386_jmp_p): New.
11904 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11905 insn_is_jump to gdbarch.
11906 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11907 * gdbarch.h: Regenerated.
11908 * gdbarch.c: Regenerated.
11909 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11910 (default_insn_is_jump): New.
11911 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11912 (default_insn_is_jump): New.
11913
11914 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11915
11916 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11917 Change to ...
11918 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11919 (btrace_read_type) <btrace_read_new>: Change to ...
11920 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11921
11922 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11923
11924 * common/linux-btrace.c (linux_read_btrace): Free trace from
11925 previous iteration.
11926
11927 2014-01-15 Doug Evans <dje@google.com>
11928
11929 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11930 uint32_t.
11931
11932 2014-01-15 Tom Tromey <tromey@redhat.com>
11933
11934 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11935 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11936 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11937 (set_objfile_main_name): New function.
11938 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11939 language_of_main>: New fields.
11940 (set_objfile_main_name): Declare.
11941 * symtab.c (find_main_name): Loop over objfiles to find the main
11942 name and language.
11943 (set_main_name): Now static.
11944 (get_main_info): Add comment.
11945 * symtab.h (set_main_name): Don't declare.
11946
11947 2014-01-15 Tom Tromey <tromey@redhat.com>
11948
11949 * symtab.c (main_progspace_key): New global.
11950 (struct main_info): New.
11951 (name_of_main, language_of_main): Remove.
11952 (get_main_info, main_info_cleanup): New function.
11953 (set_main_name, main_name, main_language): Use get_main_info.
11954 (_initialize_symtab): Initialize main_progspace_key.
11955
11956 2014-01-15 Tom Tromey <tromey@redhat.com>
11957
11958 * dbxread.c (process_one_symbol): Update.
11959 * dwarf2read.c (read_partial_die): Update.
11960 * symfile.c (set_initial_language): Call main_language.
11961 * symtab.c (language_of_main): Now static.
11962 (set_main_name): Add 'lang' parameter.
11963 (find_main_name): Update.
11964 (main_language): New function.
11965 (symtab_observer_executable_changed): Update.
11966 * symtab.h (set_main_name): Update.
11967 (language_of_main): Remove.
11968 (main_language): Declare.
11969
11970 2014-01-15 Tom Tromey <tromey@redhat.com>
11971
11972 * symfile.c (init_entry_point_info): Use new "initialized" field.
11973 Update.
11974 * objfiles.h (struct entry_point) <initialized>: New field.
11975 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11976 (struct objfile) <ei>: ...here. Remove.
11977 * objfiles.c (entry_point_address_query): Update.
11978
11979 2014-01-15 Tom Tromey <tromey@redhat.com>
11980
11981 * objfiles.c (entry_point_address_query): Relocate entry point
11982 address.
11983 (objfile_relocate1): Do not relocate entry point address.
11984 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11985 <the_bfd_section_index>: New field.
11986 * symfile.c (init_entry_point_info): Find the entry point's
11987 section.
11988
11989 2014-01-15 Tom Tromey <tromey@redhat.com>
11990
11991 * solib-frv.c (enable_break): Use entry_point_address_query.
11992
11993 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11994
11995 * NEWS: Add note on improved process record-replay on
11996 arm*-linux* targets.
11997
11998 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11999
12000 * arm-tdep.c (enum arm_record_result): New enum.
12001 (arm_record_unsupported_insn): New function.
12002 (arm_record_coproc_data_proc): Removed.
12003 (thumb2_record_ld_st_multiple): New function.
12004 (thumb2_record_ld_st_dual_ex_tbb): New function.
12005 (thumb2_record_data_proc_sreg_mimm): New function.
12006 (thumb2_record_ps_dest_generic): New function.
12007 (thumb2_record_branch_misc_cntrl): New function.
12008 (thumb2_record_str_single_data): New function.
12009 (thumb2_record_ld_mem_hints): New function.
12010 (thumb2_record_ld_word): New function.
12011 (thumb2_record_lmul_lmla_div): New function.
12012 (thumb2_record_decode_insn_handler): New function.
12013 (decode_insn): Add thumb32 instruction handlers.
12014
12015 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12016
12017 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12018 (struct arm_linux_record_tdep): Declare.
12019 (arm_canonicalize_syscall): New function.
12020 (arm_all_but_pc_registers_record): New function.
12021 (arm_linux_syscall_record): New function.
12022 (arm_linux_init_abi): Add syscall recording constructs.
12023 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12024 decoding. (arm_record_coproc_data_proc): Update arm syscall
12025 decoding.
12026 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12027 <arm_syscall_record>: New field.
12028 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12029 gdb_target_obs.
12030
12031 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12032
12033 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12034 register for push instruction recording.
12035
12036 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12037
12038 * arm-tdep.c (thumb_record_misc): Update to correct logical
12039 error while recording ldm, ldmia and pop instructions.
12040
12041 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12042
12043 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12044
12045 2014-01-15 Pedro Alves <palves@redhat.com>
12046
12047 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12048 (go32_resume, go32_fetch_registers, store_register)
12049 (go32_store_registers, go32_prepare_to_store)
12050 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12051 (go32_create_inferior, go32_can_run, go32_terminal_init)
12052 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12053 declarations.
12054
12055 2014-01-15 Tom Tromey <tromey@redhat.com>
12056
12057 * target.h (async_callback_ftype): New typedef.
12058 (struct target_ops) <to_async>: Use it.
12059
12060 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12061
12062 * python/py-value.c (get_field_type): Remove unnecessary curly
12063 braces for single-statement if block.
12064
12065 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12066
12067 * python/py-type.c (convert_field): Add missing empty line
12068 after declarations.
12069
12070 2014-01-14 Doug Evans <dje@google.com>
12071
12072 * symfile.h (expand_symtabs_matching): Renamed from
12073 expand_partial_symbol_names. Update prototype.
12074 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12075 * symfile.c (expand_symtabs_matching): Renamed from
12076 expand_partial_symbol_names. New args file_matcher, kind.
12077 Rename arg fun to symbol_matcher.
12078 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12079 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12080 ada_expand_partial_symbol_name.
12081 (ada_make_symbol_completion_list): Update to call
12082 expand_symtabs_matching.
12083 (ada_add_global_exceptions): Call expand_symtabs_matching.
12084 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12085 call map_symbol_filenames.
12086 * symtab.c (sources_info): Update to call map_symbol_filenames.
12087 (search_symbols): Call expand_symtabs_matching.
12088 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12089 (default_make_symbol_completion_list_break_on): Update to call
12090 expand_symtabs_matching.
12091 (make_source_files_completion_list): Update to call
12092 map_symbol_filenames.
12093
12094 2014-01-14 Doug Evans <dje@google.com>
12095
12096 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12097 (expand_symtabs_symbol_matcher_ftype): New typedef.
12098 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12099 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12100 * symfile.c (expand_partial_symbol_names): Update to use
12101 expand_symtabs_symbol_matcher_ftype.
12102 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12103 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12104 Arg name_matcher renamed to symbol_matcher.
12105 * psymtab.c (recursively_search_psymtabs): Update to use
12106 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12107 sym_matcher.
12108 (expand_symtabs_matching_via_partial): Update to use
12109 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12110 Arg name_matcher renamed to symbol_matcher.
12111
12112 2014-01-14 Doug Evans <dje@google.com>
12113
12114 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12115 (map_partial_symbol_filenames): Ditto.
12116 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12117 (map_partial_symbol_filenames): Ditto.
12118 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12119 (map_partial_symbol_filenames): Ditto.
12120 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12121 (map_partial_symbol_filenames): Ditto.
12122 * symtab.c: Delete #include "psymtab.h".
12123
12124 2014-01-14 Pedro Alves <palves@redhat.com>
12125 Tom Tromey <tromey@redhat.com>
12126
12127 * infrun.c (use_displaced_stepping): Use find_record_target
12128 instead of RECORD_IS_USED.
12129 (adjust_pc_after_break): Use record_full_is_used instead of
12130 RECORD_IS_USED.
12131 * record-btrace.c (record_btrace_open): Call record_preopen
12132 instead of checking RECORD_IS_USED.
12133 * record-full.c (record_full_shortname)
12134 (record_full_core_shortname): New globals.
12135 (record_full_is_used): New function.
12136 (find_full_open): Call record_preopen instead of checking
12137 RECORD_IS_USED.
12138 (init_record_full_ops): Set the target's shortname to
12139 record_full_shortname.
12140 (init_record_full_core_ops): Set the target's shortname to
12141 record_full_core_shortname.
12142 * record-full.h (record_full_is_used): Declare.
12143 * record.c (find_record_target): Make extern.
12144 (record_preopen): New function.
12145 * record.h (RECORD_IS_USED): Delete macro.
12146 (find_record_target, record_preopen): Declare functions.
12147
12148 2014-01-14 Yao Qi <yao@codesourcery.com>
12149
12150 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12151 'len''s type to ULONGEST.
12152 (core_xfer_shared_libraries_aix): Likewise.
12153 * gdbarch.c, gdbarch.h: Regenerated.
12154 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12155 Change type of 'len' to ULONGEST.
12156 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12157 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12158
12159 2014-01-14 Yao Qi <yao@codesourcery.com>
12160
12161 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12162 type of 'len' to ULONGEST.
12163 (linux_xfer_osdata_processgroups): Likewise.
12164 (linux_xfer_osdata_threads): Likewise.
12165 (linux_xfer_osdata_fds): Likewise.
12166 (linux_xfer_osdata_isockets): Likewise.
12167 (linux_xfer_osdata_shm): Likewise.
12168 (linux_xfer_osdata_sem): Likewise.
12169 (linux_xfer_osdata_msg): Likewise.
12170 (linux_common_xfer_osdata): Likewise.
12171 (struct osdata_type) <getter>: Likewise.
12172 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12173 the declaration.
12174
12175 2014-01-14 Yao Qi <yao@codesourcery.com>
12176
12177 * target.h (target_xfer_partial_ftype): Update.
12178 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12179 ULONGEST.
12180 * aix-thread.c (aix_thread_xfer_partial): Change type of
12181 argument 'len' to ULONGEST.
12182 * auxv.c (procfs_xfer_auxv): Likewise.
12183 (ld_so_xfer_auxv): Likewise.
12184 (memory_xfer_auxv): Likewise.
12185 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12186 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12187 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12188 * corelow.c (core_xfer_partial): Likewise.
12189 * ctf.c (ctf_xfer_partial): Likewise.
12190 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12191 '%u'.
12192 (darwin_read_dyld_info): Likewise.
12193 (darwin_xfer_partial): Likewise.
12194 * exec.c (section_table_xfer_memory_partial): Likewise.
12195 (exec_xfer_partial): Likewise.
12196 * exec.h (section_table_xfer_memory_partial): Update
12197 declaration.
12198 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12199 instead of plongest.
12200 (gnu_xfer_partial): Likewise.
12201 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12202 (ia64_hpux_xfer_solib_got): Likewise.
12203 (ia64_hpux_xfer_partial): Likewise.
12204 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12205 * inf-ptrace.c (inf_ptrace_xfer_partial):
12206 * inf-ttrace.c (inf_ttrace_xfer_partial):
12207 * linux-nat.c (linux_xfer_siginfo): Likewise.
12208 (linux_nat_xfer_partial): Likewise.
12209 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12210 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12211 * monitor.c (monitor_xfer_memory): Likewise.
12212 (monitor_xfer_partial): Likewise.
12213 * procfs.c (procfs_xfer_partial): Likewise.
12214 * record-full.c (record_full_xfer_partial): Likewise.
12215 (record_full_core_xfer_partial): Likewise.
12216 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12217 instead of plongest.
12218 (gdbsim_xfer_partial): Likewise.
12219 * remote.c (remote_xfer_partial): Likewise.
12220 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12221 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12222 declaration.
12223 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12224 (rs6000_xfer_shared_libraries): Likewise.
12225 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12226 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12227 (sparc_xfer_partial): Likewise.
12228 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12229 (spu_xfer_partial): Likewise.
12230 * spu-multiarch.c (spu_xfer_partial): Likewise.
12231 * target.c (target_read_live_memory): Likewise.
12232 (memory_xfer_live_readonly_partial): Likewise.
12233 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12234 (target_xfer_partial, default_xfer_partial): Likewise.
12235 (current_xfer_partial): Likewise.
12236 * tracepoint.c (tfile_xfer_partial): Likewise.
12237 * windows-nat.c (windows_xfer_memory): Likewise. Call
12238 pulongest instead of plongest.
12239 (windows_xfer_partial): Likewise.
12240 (windows_xfer_shared_libraries): Likewise.
12241
12242 2014-01-14 Yao Qi <yao@codesourcery.com>
12243
12244 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12245 target_xfer_partial_ftype.
12246
12247 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12248
12249 PR python/15464
12250 PR python/16113
12251 * valops.c (value_struct_elt_bitpos): New function
12252 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12253 object to 'None' if the field name is an empty string ("").
12254 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12255 attribute to look for a field when 'name' is 'None'.
12256 (get_field_type): New function
12257
12258 2014-01-13 Doug Evans <dje@google.com>
12259
12260 PR symtab/16426
12261 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12262 (try_open_dwop_file): Ditto.
12263 * gdb_bfd.c: #include "vec.h".
12264 (bfdp): New typedef.
12265 (struct gdb_bfd_data): New member included_bfds.
12266 (gdb_bfd_unref): Unref all included bfds.
12267 (gdb_bfd_record_inclusion): New function.
12268 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12269
12270 2014-01-13 Tom Tromey <tromey@redhat.com>
12271
12272 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12273
12274 2014-01-13 Tom Tromey <tromey@redhat.com>
12275
12276 * defs.h (use_windows): Remove.
12277 * gdb.c (main): Update.
12278 * main.c (captured_main, gdb_main): Update.
12279 * main.h (struct captured_main_args) <use_windows>: Remove.
12280 * top.c (use_windows): Remove.
12281
12282 2014-01-13 Tom Tromey <tromey@redhat.com>
12283
12284 * defs.h (deprecated_flush_hook): Remove.
12285
12286 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12287
12288 PR threads/16216
12289 * linux-thread-db.c (try_thread_db_load): Add parameter
12290 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12291 (try_thread_db_load_from_pdir_1): Move it there from here.
12292 (try_thread_db_load_from_sdir): Update caller.
12293 (try_thread_db_load_from_dir): Move it there from here.
12294
12295 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12296
12297 * regformats/regdat.sh: Always rewrite the register file.
12298
12299 2014-01-13 Pedro Alves <palves@redhat.com>
12300
12301 * Makefile.in (CHECK_HEADERS): New variable.
12302 (check-headers:): New rule.
12303
12304 2014-01-13 Tom Tromey <tromey@redhat.com>
12305
12306 * cli/cli-setshow.c (do_set_command): Update.
12307 * defs.h (deprecated_set_hook): Remove.
12308 * top.c (deprecated_set_hook): Remove.
12309
12310 2014-01-13 Pedro Alves <palves@redhat.com>
12311
12312 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12313 the tracepoint if the PC is a pseudo-register.
12314
12315 2014-01-13 Tom Tromey <tromey@redhat.com>
12316
12317 * defs.h (XCALLOC): Remove.
12318 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12319 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12320 * dwarf2loc.c (allocate_piece_closure): Likewise.
12321 * elfread.c (elf_symfile_segments): Likewise.
12322 (elf_symfile_segments): Likewise.
12323 * gdbtypes.c (copy_type_recursive): Likewise.
12324 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12325 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12326 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12327 XCALLOC.
12328 * mt-tdep.c (mt_gdbarch_init): Likewise.
12329 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12330 XCALLOC.
12331 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12332 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12333 * registry.c (registry_alloc_data): Likewise.
12334 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12335 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12336 * serial.c (serial_fdopen_ops): Likewise.
12337 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12338 XCALLOC.
12339 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12340 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12341 not XCALLOC.
12342
12343 2014-01-13 Tom Tromey <tromey@redhat.com>
12344
12345 * defs.h (XMALLOC): Remove.
12346 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12347 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12348 * cli-out.c (struct ui_out *): Likewise.
12349 * cli/cli-dump.c (add_dump_command): Likewise.
12350 (add_dump_command): Likewise.
12351 * complaints.c (get_complaints): Likewise.
12352 (find_complaint): Likewise.
12353 * dwarf2-frame.c (execute_cfa_program): Likewise.
12354 * dwarf2read.c (abbrev_table_read_table): Likewise.
12355 * gdbarch.sh: Likewise.
12356 * gdbarch.c: Rebuild.
12357 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12358 * interps.c (interp_new): Likewise.
12359 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12360 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12361 * mi/mi-console.c (mi_console_file_new): Likewise.
12362 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12363 * mi/mi-out.c (mi_out_new): Likewise.
12364 * mi/mi-parse.c (mi_parse): Likewise.
12365 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12366 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12367 * observer.c (xalloc_observer_list_node): Likewise.
12368 * regcache.c (regcache_xmalloc_1): Likewise.
12369 * reggroups.c (reggroup_new): Likewise.
12370 (_initialize_reggroup): Likewise.
12371 * registry.c (register_data_with_cleanup): Likewise.
12372 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12373 * ser-base.c (serial_ttystate): Likewise.
12374 * ser-mingw.c (make_pipe_state): Likewise.
12375 * ser-pipe.c (pipe_open): Likewise.
12376 * serial.c (serial_open): Likewise.
12377 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12378 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12379 (tui_alloc_win_info): Likewise.
12380 (tui_add_content_elements): Likewise.
12381 * tui/tui-file.c (tui_file_new): Likewise.
12382 * tui/tui-out.c (tui_out_new): Likewise.
12383 * ui-file.c (mem_file_new): Likewise.
12384 * ui-out.c (push_level): Likewise.
12385 (make_cleanup_ui_out_end): Likewise.
12386 (append_header_to_list): Likewise.
12387 (ui_out_new): Likewise.
12388 * user-regs.c (user_reg_add_builtin): Likewise.
12389
12390 2014-01-13 Tom Tromey <tromey@redhat.com>
12391
12392 * defs.h (XZALLOC): Remove.
12393 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12394 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12395 (get_ada_tasks_inferior_data): Likewise.
12396 * auto-load.c (get_auto_load_pspace_data): Likewise.
12397 * auxv.c (get_auxv_inferior_data): Likewise.
12398 * bfd-target.c (target_bfd_reopen): Likewise.
12399 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12400 (deprecated_insert_raw_breakpoint): Likewise.
12401 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12402 * corelow.c (core_open): Likewise.
12403 * darwin-nat.c (darwin_check_new_threads): Likewise.
12404 (darwin_attach_pid): Likewise.
12405 * dummy-frame.c (dummy_frame_push): Likewise.
12406 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12407 * dwarf2loc.c (allocate_piece_closure): Likewise.
12408 * elfread.c (elf_symfile_segments): Likewise.
12409 * eval.c (ptrmath_type_p): Likewise.
12410 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12411 * gdbtypes.c (alloc_type_arch): Likewise.
12412 (alloc_type_instance): Likewise.
12413 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12414 * inf-child.c (inf_child_can_use_agent): Likewise.
12415 * inflow.c (get_inflow_inferior_data): Likewise.
12416 * infrun.c (save_infcall_suspend_state): Likewise.
12417 * jit.c (jit_reader_load): Likewise.
12418 (get_jit_objfile_data): Likewise.
12419 (get_jit_program_space_data): Likewise.
12420 (jit_object_open_impl): Likewise.
12421 (jit_symtab_open_impl): Likewise.
12422 (jit_block_open_impl): Likewise.
12423 (jit_frame_sniffer): Likewise.
12424 * linux-fork.c (add_fork): Likewise.
12425 * maint.c (make_command_stats_cleanup): Likewise.
12426 * objfiles.c (get_objfile_pspace_data): Likewise.
12427 * opencl-lang.c (struct lval_closure): Likewise.
12428 * osdata.c (osdata_start_osdata): Likewise.
12429 * progspace.c (new_address_space): Likewise.
12430 (add_program_space): Likewise.
12431 * remote-sim.c (get_sim_inferior_data): Likewise.
12432 * sh-tdep.c (sh_gdbarch_init): Likewise.
12433 * skip.c (Ignore): Likewise.
12434 (skip_delete_command): Likewise.
12435 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12436 (library_list_start_library): Likewise.
12437 (solib_aix_current_sos): Likewise.
12438 * solib-darwin.c (get_darwin_info): Likewise.
12439 (darwin_current_sos): Likewise.
12440 * solib-dsbt.c (get_dsbt_info): Likewise.
12441 * solib-ia64-hpux.c (new_so_list): Likewise.
12442 (ia64_hpux_get_solib_linkage_addr): Likewise.
12443 * solib-spu.c (append_ocl_sos): Likewise.
12444 (spu_current_sos): Likewise.
12445 * solib-svr4.c (get_svr4_info): Likewise.
12446 (svr4_keep_data_in_core): Likewise.
12447 (library_list_start_library): Likewise.
12448 (svr4_default_sos): Likewise.
12449 (svr4_read_so_list): Likewise.
12450 * solib-target.c (library_list_start_library): Likewise.
12451 (solib_target_current_sos): Likewise.
12452 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12453 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12454 * symfile.c (default_symfile_segments): Likewise.
12455 * target-descriptions.c (tdesc_data_init): Likewise.
12456 (tdesc_create_reg): Likewise.
12457 (struct tdesc_type *): Likewise.
12458 (tdesc_create_vector): Likewise.
12459 (tdesc_set_struct_size): Likewise.
12460 (struct tdesc_type *): Likewise.
12461 (tdesc_free_feature): Likewise.
12462 (tdesc_create_feature): Likewise.
12463 * windows-nat.c (windows_add_thread): Likewise.
12464 (windows_make_so): Likewise.
12465 * xml-support.c (gdb_xml_body_text): Likewise.
12466 (gdb_xml_create_parser_and_cleanup): Likewise.
12467 (xml_process_xincludes): Likewise.
12468 * xml-syscall.c (allocate_syscalls_info): Likewise.
12469 (syscall_create_syscall_desc): Likewise.
12470
12471 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12472
12473 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12474 function, with code from i386_stap_parse_special_token.
12475 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12476 (i386_stap_parse_special_token): Move code to the two functions
12477 above; simplify it.
12478
12479 2014-01-09 Pedro Alves <palves@redhat.com>
12480 Hui Zhu <hui@codesourcery.com>
12481
12482 PR gdb/16101
12483 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12484 bp_err_string. Don't mark the location shlib_disabled if the
12485 error thrown wasn't a generic or memory error. Catch errors
12486 thrown while inserting breakpoints in overlayed code. Output
12487 error message of software breakpoints.
12488 * remote.c (remote_insert_breakpoint): If this breakpoint has
12489 target-side commands but this stub doesn't support Z0 packets,
12490 throw NOT_SUPPORTED_ERROR error.
12491 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12492 * target.h (target_insert_breakpoint): Extend comment.
12493 (target_insert_hw_breakpoint): Add comment.
12494
12495 2014-01-08 Pedro Alves <palves@redhat.com>
12496
12497 * remote.c (remote_add_thread): Add threads silently if starting
12498 up.
12499 (remote_notice_new_inferior): If in all-stop, and starting up,
12500 don't call notice_new_inferior.
12501 (get_current_thread): New function, factored out from ...
12502 (add_current_inferior_and_thread): ... this. Adjust.
12503 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12504 found any thread, then select the remote's current thread as GDB's
12505 current thread too.
12506
12507 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12508
12509 * NEWS: Create a new section for the next release branch.
12510 Rename the section of the current branch, now that it has
12511 been cut.
12512
12513 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12514
12515 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12516 * version.in: Bump version to 7.7.50.DATE-cvs.
12517
12518 2014-01-08 Yao Qi <yao@codesourcery.com>
12519
12520 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12521 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12522 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12523
12524 2014-01-08 Yao Qi <yao@codesourcery.com>
12525
12526 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12527 return value of bfd_get_filename to symbol_file_add_from_bfd.
12528
12529 2014-01-08 Pierre Muller <muller@sourceware.org>
12530
12531 Fix PR16201.
12532 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12533 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12534 to prim_record_mininal_symbol_and_info.
12535 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12536 in call to prim_record_minimal_symbol_and_info.
12537 (read_pe_exported_syms): Set index field of section_data.
12538
12539 2014-01-07 Andrew Pinski <apinski@cavium.com>
12540
12541 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12542 * features/aarch64.c: Regenerate.
12543
12544 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12545
12546 * target.c (return_null): Define.
12547 (update_current_target): Use it instead of return_zero for
12548 functions that return a pointer.
12549
12550 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12551
12552 * source.c (add_path): Fix check for duplicated paths in the previously
12553 included paths.
12554
12555 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12556
12557 * ada-lang.c: Remove duplicated include statements.
12558 * alphabsd-nat.c: Ditto.
12559 * amd64-darwin-tdep.c: Ditto.
12560 * amd64fbsd-nat.c: Ditto.
12561 * auto-load.c: Ditto.
12562 * ax-gdb.c: Ditto.
12563 * breakpoint.c: Ditto.
12564 * dbxread.c: Ditto.
12565 * fork-child.c: Ditto.
12566 * gdb_usleep.c: Ditto.
12567 * i386-darwin-tdep.c: Ditto.
12568 * i386fbsd-nat.c: Ditto.
12569 * infcmd.c: Ditto.
12570 * inferior.c: Ditto.
12571 * jv-lang.c: Ditto.
12572 * linux-nat.c: Ditto.
12573 * linux-tdep.c: Ditto.
12574 * m68kbsd-nat.c: Ditto.
12575 * m68klinux-nat.c: Ditto.
12576 * microblaze-tdep.c: Ditto.
12577 * mips-linux-tdep.c: Ditto.
12578 * mn10300-tdep.c: Ditto.
12579 * nto-tdep.c: Ditto.
12580 * opencl-lang.c: Ditto.
12581 * osdata.c: Ditto.
12582 * printcmd.c: Ditto.
12583 * regcache.c: Ditto.
12584 * remote-m32r-sdi.c: Ditto.
12585 * remote.c: Ditto.
12586 * symfile.c: Ditto.
12587 * symtab.c: Ditto.
12588 * tilegx-linux-nat.c: Ditto.
12589 * tilegx-tdep.c: Ditto.
12590 * tracepoint.c: Ditto.
12591 * valops.c: Ditto.
12592 * vaxbsd-nat.c: Ditto.
12593 * windows-nat.c: Ditto.
12594 * xtensa-tdep.c: Ditto.
12595
12596 2014-01-07 Yao Qi <yao@codesourcery.com>
12597
12598 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12599
12600 2014-01-07 Yao Qi <yao@codesourcery.com>
12601 Joel Brobecker <brobecker@adacore.com>
12602
12603 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12604 (pdc_write_regs): Likewise.
12605 (fetch_regs_kernel_thread): Likewise.
12606 (store_regs_kernel_thread): Likewise.
12607
12608 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12609
12610 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12611 tagged type objects to their actual type.
12612
12613 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12614
12615 * ada-valprint.c (print_field_values): Add "language" parameter.
12616 Update calls to print_field_values and print_variant_part.
12617 Pass new parameter "language" in call to val_print instead
12618 of "current_language". Replace call to ada_val_print by call
12619 to val_print.
12620 (print_variant_part): Add "language" parameter.
12621 (ada_val_print_struct_union): Update call to print_field_values.
12622
12623 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12624
12625 * ada-valprint.c (ui_memcpy): Delete.
12626 (ada_print_floating): Update documentation. Add empty line
12627 between between function documentation and implementation.
12628 Delete variable "buffer". Use ui_file_xstrdup in place of
12629 ui_file_put. Minor adjustments following this change.
12630
12631 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12632
12633 * ada-valprint.c (ada_val_print_string): New function,
12634 extracted from ada_val_print_array.
12635 (ada_val_print_array): Replace extracted code by call
12636 to ada_val_print_string followed by a return. Move
12637 "else" branch to the function's top block.
12638
12639 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12640
12641 * ada-valprint.c (ada_val_print_array): Move implementation
12642 down. Rename parameter "offset" and "val" into "offset_aligned"
12643 and "original_value" respectively. Add parameter "offset".
12644
12645 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12646
12647 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12648 re-organizing the code. Change the "???" message printed
12649 when target type is a TYPE_CODE_UNDEF into
12650 "<ref to undefined type>".
12651
12652 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12653
12654 * ada-valprint.c (print_record): Delete, implementation inlined...
12655 (ada_val_print_struct_union): ... here. Remove call to
12656 ada_check_typedef in inlined implementation.
12657
12658 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12659
12660 * ada-valprint.c (ada_val_print_gnat_array): New function,
12661 extracted from ada_val_print_1;
12662 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12663 (ada_val_print_flt, ada_val_print_struct_union)
12664 (ada_val_print_ref): Likewise.
12665 (ada_val_print_1): Delete variables i and elttype.
12666 Replace extracted-out code by call to corresponding
12667 new functions.
12668
12669 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12670
12671 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12672
12673 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12674
12675 * ada-valprint.c (ada_val_print_1): Replace calls to
12676 ada_val_print_1 by calls to val_print.
12677
12678 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12679
12680 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12681 Update calls to self accordingly. Replace calls to c_val_print
12682 by calls to val_print.
12683
12684 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12685
12686 * ada-valprint.c (print_record): Delete declaration.
12687 (adjust_type_signedness, ada_val_print_1): Likewise.
12688 (ada_val_print): Move function implementation down.
12689 (print_variant_part, print_field_values, print_record):
12690 Move function implementation up.
12691
12692 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12693
12694 * python/py-type.c (typy_get_name): New function.
12695 (type_object_getset): Add entry for attribute "name".
12696 * NEWS: Add entry mentioning this new attribute.
12697
12698 2014-01-07 Yao Qi <yao@codesourcery.com>
12699
12700 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12701 statement.
12702
12703 2014-01-07 Yao Qi <yao@codesourcery.com>
12704
12705 * gnu-nat.c (info_port_rights): Add qualifier const to
12706 argument args.
12707
12708 2014-01-07 Yao Qi <yao@codesourcery.com>
12709
12710 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12711
12712 2014-01-07 Yao Qi <yao@codesourcery.com>
12713
12714 * gnu-nat.c (make_inf) Update declaration.
12715 (make_inf): Make it static.
12716 (inf_set_traced): Likewise.
12717 (inf_port_to_thread, inf_task_died_status): Likewise.
12718
12719 2014-01-07 Yao Qi <yao@codesourcery.com>
12720
12721 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12722
12723 2014-01-07 Yao Qi <yao@codesourcery.com>
12724
12725 * gnu-nat.c (_initialize_gnu_nat): Declare.
12726
12727 2014-01-07 Yao Qi <yao@codesourcery.com>
12728
12729 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12730 'enum bfd_endian'.
12731 (struct gdbarch_info) <byte_order>: Change type to
12732 'enum bfd_endian'.
12733 <byte_order_for_code>: Likewise.
12734 * gdbarch.c, gdbarch.h: Regenerated.
12735
12736 2014-01-06 Sasha Smundak <asmundak@google.com>
12737
12738 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12739
12740 2014-01-06 Tom Tromey <tromey@redhat.com>
12741
12742 * doublest.c (convert_doublest_to_floatformat): Use const, not
12743 CONST.
12744 * somread.c (som_symtab_read): Likewise.
12745
12746 2014-01-07 Hui Zhu <hui@codesourcery.com>
12747
12748 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12749 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12750 (gdb_bfd_fopen): Ditto.
12751 (gdb_bfd_openr): Ditto.
12752 (gdb_bfd_openw): Ditto.
12753 (gdb_bfd_openr_iovec): Ditto.
12754 (gdb_bfd_fdopenr): Ditto.
12755 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12756 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12757 with xstrdup.
12758 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12759 with xstrdup.
12760 * symfile-mem.c (symbol_file_add_from_memory): Removed
12761 gdb_bfd_stash_filename.
12762
12763 2014-01-03 Doug Evans <dje@google.com>
12764
12765 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12766 output.
12767
12768 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12769
12770 Update year range in copyright notice of all files.
12771
12772 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12773
12774 * top.c (print_gdb_version): Set copyright year to 2014.
12775
12776 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12777
12778 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12779
12780 For older changes see ChangeLog-2013.
12781 \f
12782 Local Variables:
12783 mode: change-log
12784 left-margin: 8
12785 fill-column: 74
12786 version-control: never
12787 coding: utf-8
12788 End:
This page took 0.276166 seconds and 5 git commands to generate.