PR tdep/17379: Fix internal-error when stack pointer is invalid.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2 Ulrich Weigand  <uweigand@de.ibm.com>
3
4 PR tdep/17379
5 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
6 instead of read_memory_unsigned_integer.
7
8 2014-09-12 Gary Benson <gbenson@redhat.com>
9
10 * nat/linux-waitpid.c: Include common-defs.h.
11 [GDBSERVER]: Add FIXME comment.
12 [!GDBSERVER]: Don't include defs.h or signal.h.
13 (linux_debug) [!GDBSERVER]: Remove empty block.
14
15 2014-09-12 Gary Benson <gbenson@redhat.com>
16
17 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
18 Don't include defs.h or server.h.
19
20 2014-09-12 Gary Benson <gbenson@redhat.com>
21
22 * nat/linux-btrace.c: Include common-defs.h.
23 Don't include defs.h, server.h or gdbthread.h.
24 * nat/linux-btrace.h (struct target_ops): New forward declaration.
25
26 2014-09-12 Gary Benson <gbenson@redhat.com>
27
28 * common/agent.c: Include common-defs.h.
29 Don't include defs.h or server.h.
30 * common/buffer.c: Likewise.
31 * common/common-debug.c: Likewise.
32 * common/common-utils.c: Likewise.
33 * common/errors.c: Likewise.
34 * common/filestuff.c: Likewise.
35 * common/format.c: Likewise.
36 * common/gdb_vecs.c: Likewise.
37 * common/print-utils.c: Likewise.
38 * common/ptid.c: Likewise.
39 * common/rsp-low.c: Likewise.
40 * common/signals.c: Likewise.
41 * common/vec.c: Likewise.
42 * common/xml-utils.c: Likewise.
43 * nat/linux-osdata.c: Likewise.
44 * nat/linux-procfs.c: Likewise.
45 * nat/linux-ptrace.c: Likewise.
46 * nat/mips-linux-watch.c: Likewise.
47 * target/waitstatus.c: Likewise.
48
49 2014-09-12 Tom Tromey <tromey@redhat.com>
50 Gary Benson <gbenson@redhat.com>
51
52 * common/common-regcache.h: New file.
53 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
54 * regcache.h: Include common-regcache.h.
55 (regcache_read_pc): Don't declare.
56 * regcache.c (get_thread_regcache_for_ptid): New function.
57 * nat/linux-btrace.c: Don't include regcache.h.
58 Include common-regcache.h.
59 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
60
61 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
62
63 * regcache.h (struct regset): Declare.
64
65 2014-09-11 Pedro Alves <palves@redhat.com>
66
67 PR gdb/17347
68 * main.c: Include "infrun.h".
69 (catch_command_errors, catch_command_errors_const): Wait for the
70 foreground command to complete.
71 * top.c (maybe_wait_sync_command_done): New function, factored out
72 from ...
73 (maybe_wait_sync_command_done): ... here.
74 * top.h (maybe_wait_sync_command_done): New declaration.
75
76 2014-09-11 Tom Tromey <tromey@redhat.com>
77 Gary Benson <gbenson@redhat.com>
78
79 * common/symbol.h: New file.
80 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
81 * minsyms.c (find_minimal_symbol_address): New function.
82 * common/agent.c: Include common/symbol.h.
83 [!GDBSERVER]: Don't include objfiles.h.
84 (agent_look_up_symbols): Use find_minimal_symbol_address.
85
86 2014-09-11 Gary Benson <gbenson@redhat.com>
87
88 * target/target.h (target_stop_ptid, target_continue_ptid):
89 Declare.
90 * target.c (target_stop_ptid, target_continue_ptid): New
91 functions.
92 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
93 (agent_run_command): Always use target_stop_ptid and
94 target_continue_ptid.
95
96 2014-09-11 Tom Tromey <tromey@redhat.com>
97 Gary Benson <gbenson@redhat.com>
98
99 * target/target.h: New file.
100 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
101 * target.h: Include target/target.h.
102 (target_read_memory, target_write_memory): Don't declare.
103 * target.c (target_read_uint32): New function.
104 * common/agent.c: Include target/target.h.
105 [!GDBSERVER]: Don't include target.h.
106 (helper_thread_id): Type changed to uint32_t.
107 (agent_get_helper_thread_id): Use target_read_uint32.
108 (agent_run_command): Always use target_read_memory and
109 target_write_memory.
110 (agent_capability): Type changed to uint32_t.
111 (agent_capability_check): Use target_read_uint32.
112
113 2014-09-11 Gary Benson <gbenson@redhat.com>
114
115 * common/common-debug.h (show_debug_regs): Declare.
116 * common/common-debug.c (show_debug_regs): Define.
117 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
118 all uses with show_debug_regs. Replace all uses that considered
119 debug_hw_points as a multi-value integer with straight boolean
120 uses.
121 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
122 with show_debug_regs.
123 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
124 all uses with show_debug_regs.
125 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
126 uses with show_debug_regs.
127
128 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
129
130 * findvar.c (address_from_register): Handle targets requiring
131 a special conversion routine even for plain pointer types.
132
133 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
134
135 * rs6000-nat.c (exec_one_dummy_insn): Remove.
136 (store_register): Do not call exec_one_dummy_insn.
137
138 2014-09-10 Joel Brobecker <brobecker@adacore.com>
139
140 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
141 dereference it first. Use value_enclosing_type instead of
142 value_type.
143 (ada_array_length): Likewise.
144
145 2014-09-10 Joel Brobecker <brobecker@adacore.com>
146
147 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
148 Adjust function implementation and documentation accordingly.
149 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
150 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
151 Update call to ada_value_ptr_subscript.
152
153 2014-09-10 Joel Brobecker <brobecker@adacore.com>
154
155 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
156 instead of VAL's type.
157
158 2014-09-10 Joel Brobecker <brobecker@adacore.com>
159
160 * amd64-linux-nat.c: Add <sys/uio.h> #include.
161
162 2014-09-09 Doug Evans <xdje42@gmail.com>
163
164 PR guile/17367
165 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
166 last parameter to pkg-config, not first.
167 * configure.ac: Pass --with-guile provided pkg-config path to
168 GDB_GUILE_PROGRAM_NAMES.
169 * configure: Regenerate.
170
171 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
172
173 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
174 Bertazi".
175
176 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
177
178 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
179 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
180 the list of sections determining GDB_OSABI_IRIX.
181
182 2014-09-09 James Hogan <james.hogan@imgtec.com>
183
184 * MAINTAINERS (Write After Approval): Add "James Hogan".
185
186 2014-09-09 James Hogan <james.hogan@imgtec.com>
187
188 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
189
190 2014-09-09 Joel Brobecker <brobecker@adacore.com>
191
192 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
193
194 2014-09-08 Doug Evans <xdje42@gmail.com>
195
196 PR 17247
197 * guile.c: #include <signal.h>.
198 (_initialize_guile): Block SIGCHLD while initializing Guile.
199
200 Replaces the following, which is reverted.
201
202 2014-07-26 Doug Evans <xdje42@gmail.com>
203
204 PR 17185
205 * configure.ac: Add check for header gc/gc.h.
206 Add check for function setenv.
207 * configure: Regenerate.
208 * config.in: Regenerate.
209 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
210
211 2014-09-08 Doug Evans <xdje42@gmail.com>
212
213 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
214 with named constant. Fix style of pointer comparison.
215 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
216
217 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
218
219 PR gdb/17035
220 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
221 decide whether we display the command on "show user".
222 * cli/cli-script.c (show_user_1): Only verify cmdlines after
223 printing command name.
224 * cli/cli-decode.h (cli_user_command_p): Declare new function.
225 * cli/cli-decode.c (cli_user_command_p): Create helper function
226 to verify whether cmd_list_element is a user-defined command.
227
228 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
229
230 PR python/17355
231 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
232 Fix goto out of TRY_CATCH.
233
234 2014-09-06 Doug Evans <xdje42@gmail.com>
235 Tom Tromey <tromey@redhat.com>
236
237 PR 15276
238 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
239 $_any_caller_matches.
240 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
241 * python/lib/gdb/function/caller_is.py: New file.
242
243 2014-09-06 Doug Evans <xdje42@gmail.com>
244
245 * infcmd.c (program_info): Fix typo.
246
247 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
248
249 PR gdb/17235
250 * stap-probe.c (stap_parse_single_operand): Delete unused variable
251 'number'. New variable 'has_digit'. Rewrite code to deal with
252 subexpressions on SDT probes.
253
254 2014-09-04 Pedro Alves <palves@redhat.com>
255
256 * c-exp.y (parse_number): Skip handling base-switching prefixes if
257 the input is only one character long.
258
259 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
260
261 PR fortran/17237
262 * f-valprint.c (f_val_print): Specify the correct print option to
263 use when printing integer values.
264
265 2014-09-04 Gary Benson <gbenson@redhat.com>
266
267 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
268 Remove code to cope with LWPs wrapped as PIDs.
269 Add assertions to ensure no wrapped LWPs are passed.
270
271 2014-09-04 Pedro Alves <palves@redhat.com>
272
273 * value.c (value_ranges_copy_adjusted): New function, factored out
274 from ...
275 (value_contents_copy_raw): ... here.
276 (unpack_value_bits_as_long_1): Rename back to ...
277 (unpack_bits_as_long): ... this. Remove 'original_value' and
278 'result' parameters. Change return type to LONGEST.
279 (unpack_value_bits_as_long): Delete.
280 (unpack_value_field_as_long_1): Delete.
281 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
282 (unpack_value_bitfield): New function.
283 (value_field_bitfield): Reimplement using unpack_value_bitfield.
284 (value_fetch_lazy): Use unpack_value_bitfield.
285 * value.h (unpack_value_bits_as_long): Delete declaration.
286
287 2014-09-03 Sasha Smundak <asmundak@google.com>
288
289 * python/py-frame.c (frapy_read_register): New function.
290
291 2014-09-03 James Hogan <james.hogan@imgtec.com>
292
293 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
294 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
295
296 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
297
298 PR python/16699
299 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
300 function.
301 (add_cmd): Set "completer_handle_brkchars" to NULL.
302 * cli/cli-decode.h (struct cmd_list_element)
303 <completer_handle_brkchars>: New field.
304 * command.h (completer_ftype_void): New typedef.
305 (set_cmd_completer_handle_brkchars): New prototype.
306 * completer.c (set_gdb_completion_word_break_characters): New
307 function.
308 (complete_line_internal): Call "completer_handle_brkchars"
309 callback from command.
310 * completer.h: Include "command.h".
311 (set_gdb_completion_word_break_characters): New prototype.
312 * python/py-cmd.c (cmdpy_completer_helper): New function.
313 (cmdpy_completer_handle_brkchars): New function.
314 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
315 (cmdpy_init): Set completer_handle_brkchars to
316 cmdpy_completer_handle_brkchars.
317
318 2014-09-03 Gary Benson <gbenson@redhat.com>
319
320 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
321 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
322 Loop conditions changed to equivalent form.
323 (struct x86_debug_reg_state): Updated dr_ref_count comment.
324 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
325 ALL_DEBUG_ADDRESS_REGISTERS.
326
327 2014-09-03 Joel Brobecker <brobecker@adacore.com>
328
329 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
330 description fix.
331
332 2014-09-02 Doug Evans <dje@google.com>
333
334 * typeprint.c (find_global_typedef): Fix comment.
335
336 2014-09-02 Gary Benson <gbenson@redhat.com>
337
338 * i386-nat.h: Renamed as...
339 * x86-nat.h: New file. All type, function and variable name
340 prefixes changed from "i386_" to "x86_". All references updated.
341 * i386-nat.c: Renamed as...
342 * x86-nat.c: New file. All type, function and variable name
343 prefixes changed from "i386_" to "x86_". All references updated.
344 * common/i386-xstate.h: Renamed as...
345 * common/x86-xstate.h: New file. All type, function and variable
346 name prefixes changed from "i386_" to "x86_". All references
347 updated.
348 * nat/i386-cpuid.h: Renamed as...
349 * nat/x86-cpuid.h: New file. All type, function and variable name
350 prefixes changed from "i386_" to "x86_". All references updated.
351 * nat/i386-gcc-cpuid.h: Renamed as...
352 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
353 name prefixes changed from "i386_" to "x86_". All references
354 updated.
355 * nat/i386-dregs.h: Renamed as...
356 * nat/x86-dregs.h: New file. All type, function and variable name
357 prefixes changed from "i386_" to "x86_". All references updated.
358 * nat/i386-dregs.c: Renamed as...
359 * nat/x86-dregs.c: New file. All type, function and variable name
360 prefixes changed from "i386_" to "x86_". All references updated.
361
362 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
363
364 * varobj.c (_initialize_varobj): Move to the end of file.
365
366 2014-08-29 Gary Benson <gbenson@redhat.com>
367
368 * common/common-exceptions.h: New file.
369 * common/common-exceptions.c: Likewise.
370 * Makefile.in (SFILES): Add common/common-exceptions.c.
371 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
372 (COMMON_OBS): Add common-exceptions.o.
373 (common-exceptions.o): New rule.
374 * exceptions.h (common-exceptions.h): Include.
375 (gdb_setjmp.h): Do not include.
376 (return_reason): Moved to common-exceptions.h.
377 (enum return_reason): Likewise.
378 (RETURN_MASK): Likewise.
379 (typedef return_mask): Likewise.
380 (enum errors): Likewise.
381 (struct gdb_exception): Likewise.
382 (exceptions_state_mc_init): Likewise.
383 (exceptions_state_mc_action_iter): Likewise.
384 (exceptions_state_mc_action_iter_1): Likewise.
385 (TRY_CATCH): Likewise.
386 (throw_exception): Likewise.
387 (throw_verror): Likewise.
388 (throw_vquit): Likewise.
389 (throw_error): Likewise.
390 (throw_quit): Likewise.
391 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
392 (enum catcher_action): Likewise.
393 (struct catcher): Likewise.
394 (current_catcher): Likewise.
395 (catcher_list_size): Likewise.
396 (exceptions_state_mc_init): Likewise.
397 (catcher_pop): Likewise.
398 (exceptions_state_mc): Likewise.
399 (exceptions_state_mc_action_iter): Likewise.
400 (exceptions_state_mc_action_iter_1): Likewise.
401 (throw_exception): Likewise.
402 (exception_messages): Likewise.
403 (exception_messages_size): Likewise.
404 (throw_it): Likewise.
405 (throw_verror): Likewise.
406 (throw_vquit): Likewise.
407 (throw_error): Likewise.
408 (throw_quit): Likewise.
409 (prepare_to_throw_exception): New function.
410
411 2014-08-29 Gary Benson <gbenson@redhat.com>
412
413 * common/gdb_setjmp.h: New file.
414 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
415 * configure.ac: Move sigsetjmp check...
416 * common/common.m4: ...here.
417 * configure: Regenerate.
418 * cp-support.c (SIGJMP_BUF): Delete.
419 (SIGSETJMP): Likewise.
420 (SIGLONGJMP): Likewise.
421 * exceptions.h (gdb_setjmp.h): Include.
422 (setjmp.h): Do not include.
423 (EXCEPTIONS_SIGJMP_BUF): Delete.
424 (EXCEPTIONS_SIGSETJMP): Likewise.
425 (EXCEPTIONS_SIGLONGJMP): Likewise.
426 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
427 from gdb_setjmp.h.
428 * exceptions.c: Likewise.
429
430 2014-08-29 Gary Benson <gbenson@redhat.com>
431
432 * cleanups.h: Moved to...
433 * common/cleanups.h: New file.
434 * cleanups.c: Moved to...
435 * common/cleanups.c: New file. Include common-defs.h and
436 cleanups.h. Do not include defs.h.
437 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
438 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
439 (cleanups.o): New rule.
440
441 2014-08-29 Gary Benson <gbenson@redhat.com>
442
443 * common/errors.h (internal_warning): New declaration.
444 (internal_vwarning): Likewise.
445 * common/errors.c (internal_warning): New function.
446 * utils.h (internal_warning): Don't declare.
447 (internal_vwarning): Likewise.
448 * utils.c (internal_warning): Removed.
449
450 2014-08-29 Gary Benson <gbenson@redhat.com>
451
452 * main.c (captured_main): Use warning during startup.
453 Prefix startup warning messages with command name.
454
455 2014-08-29 Gary Benson <gbenson@redhat.com>
456
457 * main.c (captured_main): Handle usage errors with error.
458
459 2014-08-29 Gary Benson <gbenson@redhat.com>
460
461 * go32-nat.c (go32_create_inferior): Replace a fprintf/
462 exit pair with a call to error. Wrap the message with _().
463
464 2014-08-29 Gary Benson <gbenson@redhat.com>
465
466 * main.c (captured_main): Replace a fprintf/exit
467 pair with a call to error. Wrap the message with _().
468
469 2014-08-29 Gary Benson <gbenson@redhat.com>
470
471 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
472 pairs with calls to error. Wrap the message with _().
473
474 2014-08-29 Gary Benson <gbenson@redhat.com>
475
476 * utils.c (vwarning): Protect calls to target_terminal_ours
477 and wrap_here.
478
479 2014-08-29 Gary Benson <gbenson@redhat.com>
480
481 * exceptions.c (print_flush): Protect calls to
482 target_terminal_ours and wrap_here.
483
484 2014-08-29 Gary Benson <gbenson@redhat.com>
485
486 * utils.h (filtered_printing_initialized): New declaration.
487 * utils.c (abort_with_message): New function.
488 (internal_vproblem): Use abort_with_message for first level
489 recursive internal problems, and if gdb_stderr is not set up.
490 Protect calls to target_terminal_ours, begin_line and query.
491
492 2014-08-28 Doug Evans <dje@google.com>
493
494 * symtab.c (in_prologue): Move definition to better spot.
495 (skip_prologue_using_sal): Ditto.
496
497 2014-08-28 Doug Evans <dje@google.com>
498
499 * symtab.c (find_function_start_sal): Move definition to better spot.
500
501 2014-08-28 Yao Qi <yao@codesourcery.com>
502
503 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
504 found_stack_adjust in forward scan. Remove condition check
505 on found_stack_adjust which is always true. Indent the code.
506
507 2014-08-28 Yao Qi <yao@codesourcery.com>
508
509 * dwarf2read.c (dwarf_decode_lines): Update declaration.
510 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
511 (dwarf_decode_lines): Remove argument
512 want_line_info. Remove condition check on want_line_info.
513 Callers update.
514
515 2014-08-27 Doug Evans <dje@google.com>
516
517 * dwarf2read.c (dwarf_record_line): Fix typo.
518
519 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
520
521 * target.h (struct target_ops::to_terminal_save_ours): Remove
522 declaration.
523 (target_terminal_save_ours): Remove macro.
524 * target-delegates.c: Regenerate.
525 * inf-child.c (inf_child_target): Don't set the nonexistent
526 field to_terminal_save_ours.
527 * inferior.h (child_terminal_save_ours): Remove declaration.
528 * terminal.h (gdb_save_tty_state): New declaration.
529 * inflow.c (child_terminal_save_ours): Rename to ...
530 (gdb_save_tty_state): ... this.
531 * tui/tui.c: Include terminal.h.
532 (tui_enable): Use gdb_save_tty_state instead of
533 target_terminal_save_ours.
534 (tui_disable): Likewise.
535
536 2014-08-25 Doug Evans <dje@google.com>
537
538 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
539 Pass NULL instead of 0 for context pointer.
540
541 2014-08-25 Yao Qi <yao@codesourcery.com>
542
543 * dwarf2read.c: Fix grammatical error.
544
545 2014-08-24 Yao Qi <yao@codesourcery.com>
546
547 * dwarf2read.c (scan_partial_symbols): Update comments.
548 Rename argument 'need_pc' with 'set_addrmap'.
549 (add_partial_namespace): Rename argument 'need_pc' with
550 'set_addrmap'.
551 (add_partial_module): Likewise.
552 (add_partial_subprogram): Likewise. Update comments.
553 (dwarf2_name): Fix typo.
554
555 2014-08-22 Doug Evans <dje@google.com>
556
557 PR 17276
558 * dwarf2read.c (dwarf_record_line_p): New function.
559 (dwarf_decode_lines_1): Ignore subsequent line number entries
560 for the same line if any entry had a non-zero discriminator.
561
562 2014-08-22 Doug Evans <dje@google.com>
563
564 * buildsym.h (record_line_ftype): New typedef.
565 (record_line): Use it.
566 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
567 (dwarf_decode_lines_1): Call them.
568
569 2014-08-22 Yao Qi <yao@codesourcery.com>
570
571 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
572 (ctf_end): Remove code.
573
574 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
575
576 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
577 (linux_make_corefile_notes): call update_thread_list, protected against
578 exceptions.
579
580 2014-08-21 Pedro Alves <palves@redhat.com>
581
582 * infcmd.c (attach_command): Remove comment.
583
584 2014-08-21 Bin Cheng <bin.cheng@arm.com>
585
586 * aarch64-linux-nat.c (dr_changed_t): Change the type from
587 unsigned LONGEST to ULONGEST.
588
589 2014-08-20 Pedro Alves <palves@redhat.com>
590
591 * Makefile.in (check-read1): New rule.
592
593 2014-08-20 Joel Brobecker <brobecker@adacore.com>
594
595 * value.c (value_from_contents_and_address): Strip resolved_type's
596 typedef layers before checking its TYPE_DATA_LOCATION.
597
598 2014-08-20 Pedro Alves <palves@redhat.com>
599
600 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
601
602 2014-08-20 Yao Qi <yao@codesourcery.com>
603
604 * amd64-tdep.c (amd64_classify): Add a blank line after the
605 example. Move "*/" to a new line.
606 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
607 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
608 * dwarf2read.c (psymtab_include_file_name): Likewise.
609
610 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
611 Pedro Alves <palves@redhat.com>
612
613 PR symtab/14604
614 PR symtab/14605
615 * ada-lang.c (coerce_unspec_val_to_type): Use
616 value_contents_copy_raw.
617 * ada-valprint.c (val_print_packed_array_elements): Adjust.
618 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
619 * cp-valprint.c (cp_print_value_fields): Let the common printing
620 code handle optimized out values.
621 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
622 * d-valprint.c (dynamic_array_type): Use
623 value_bits_any_optimized_out.
624 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
625 check_any_valid fields.
626 (check_pieced_value_bits): Delete and inline ...
627 (check_pieced_synthetic_pointer): ... here.
628 (check_pieced_value_validity): Delete.
629 (check_pieced_value_invalid): Delete.
630 (pieced_value_funcs): Remove check_validity and check_any_valid
631 fields.
632 (read_pieced_value): Use mark_value_bits_optimized_out.
633 (write_pieced_value): Switch to use
634 mark_value_bytes_optimized_out.
635 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
636 of assuming the whole value is optimized out.
637 * findvar.c (read_frame_register_value): Remove special handling
638 of optimized out registers.
639 (value_from_register): Use mark_value_bytes_optimized_out.
640 * frame-unwind.c (frame_unwind_got_optimized): Use
641 mark_value_bytes_optimized_out.
642 * jv-valprint.c (java_value_print): Adjust.
643 (java_print_value_fields): Let the common printing code handle
644 optimized out values.
645 * mips-tdep.c (mips_print_register): Remove special handling of
646 optimized out registers.
647 * opencl-lang.c (lval_func_check_validity): Delete.
648 (lval_func_check_any_valid): Delete.
649 (opencl_value_funcs): Remove check_validity and check_any_valid
650 fields.
651 * p-valprint.c (pascal_object_print_value_fields): Let the common
652 printing code handle optimized out values.
653 * stack.c (read_frame_arg): Remove special handling of optimized
654 out values. Fetch both VAL and ENTRYVAL before comparing
655 contents. Adjust to value_available_contents_eq rename.
656 * valprint.c (valprint_check_validity)
657 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
658 (val_print_array_elements): Adjust.
659 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
660 (value_bits_any_optimized_out): New function.
661 (value_entirely_covered_by_range_vector): New function, factored
662 out from value_entirely_unavailable.
663 (value_entirely_unavailable): Reimplement.
664 (value_entirely_optimized_out): New function.
665 (insert_into_bit_range_vector): New function, factored out from
666 mark_value_bits_unavailable.
667 (mark_value_bits_unavailable): Reimplement.
668 (struct ranges_and_idx): New struct.
669 (find_first_range_overlap_and_match): New function, factored out
670 from value_available_contents_bits_eq.
671 (value_available_contents_bits_eq): Rename to ...
672 (value_contents_bits_eq): ... this. Check both unavailable
673 contents and optimized out contents.
674 (value_available_contents_eq): Rename to ...
675 (value_contents_eq): ... this.
676 (allocate_value_lazy): Remove reference to the old optimized_out
677 boolean.
678 (allocate_optimized_out_value): Use
679 mark_value_bytes_optimized_out.
680 (require_not_optimized_out): Adjust to check whether the
681 optimized_out vec is empty.
682 (ranges_copy_adjusted): New function, factored out from
683 value_contents_copy_raw.
684 (value_contents_copy_raw): Also copy the optimized out ranges.
685 Assert the destination ranges aren't optimized out.
686 (value_contents_copy): Update comment, remove call to
687 require_not_optimized_out.
688 (value_contents_equal): Adjust to check whether the optimized_out
689 vec is empty.
690 (set_value_optimized_out, value_optimized_out_const): Delete.
691 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
692 New functions.
693 (value_entirely_optimized_out, value_bits_valid): Delete.
694 (value_copy): Take a VEC copy of the 'optimized_out' field.
695 (value_primitive_field): Remove special handling of optimized out.
696 (value_fetch_lazy): Assert that lazy values have no unavailable
697 regions. Use value_bits_any_optimized_out. Remove some special
698 handling for optimized out values.
699 * value.h: Add intro comment about <optimized out> and
700 <unavailable>.
701 (struct lval_funcs): Remove check_validity and check_any_valid
702 fields.
703 (set_value_optimized_out, value_optimized_out_const): Remove.
704 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
705 New declarations.
706 (value_bits_any_optimized_out): New declaration.
707 (value_bits_valid): Delete declaration.
708 (value_available_contents_eq): Rename to ...
709 (value_contents_eq): ... this, and extend comments.
710
711 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
712
713 Fix -fsanitize=address on unreadable inferior strings.
714 * valprint.c (val_print_string): Fix access before BUFFER.
715
716 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
717
718 * target.c (target_struct_size): Remove.
719 (target_struct_allocsize): Remove.
720 (DEFAULT_ALLOCSIZE): Remove.
721 (target_ops_p): New typedef.
722 (DEF_VEC_P (target_ops_p)): New vector type.
723 (target_structs): Change type to VEC (target_ops_p).
724 (add_target_with_completer): Replace "push" code by VEC_safe_push.
725 (find_default_run_target): Rewrite for loop following changes to
726 target_structs.
727
728 2014-08-19 Joel Brobecker <brobecker@adacore.com>
729
730 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
731 Adjust code accordingly. Adjust function description comment.
732
733 2014-08-19 Yao Qi <yao@codesourcery.com>
734
735 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
736 types.
737
738 2014-08-19 Alan Modra <amodra@gmail.com>
739
740 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
741 * config.in: Regenerate.
742 * configure: Regenerate.
743
744 2014-08-19 Tom Tromey <tromey@redhat.com>
745 Gary Benson <gbenson@redhat.com>
746
747 * common/common-debug.h: New file.
748 * common/common-debug.c: Likewise.
749 * debug.c: Likewise.
750 * Makefile.in (SFILES): Add common/common-debug.c.
751 (HFILES_NO_SRCDIR): Add common/common-debug.h.
752 (COMMON_OBS): Add common-debug.o and debug.o.
753 (common-debug.o): New rule.
754 * common/common-defs.h: Include common-debug.h.
755 * common/agent.c (debug_agent_printf): New function.
756 (DEBUG_AGENT): Redefine.
757 * nat/i386-dregs.c (debug_printf): Undefine.
758
759 2014-08-19 Gary Benson <gbenson@redhat.com>
760
761 * common/common-defs.h: Include print-utils.h.
762 * utils.h: Do not include print-utils.h.
763
764 2014-08-19 Tom Tromey <tromey@redhat.com>
765 Gary Benson <gbenson@redhat.com>
766
767 * common/common-types.h: New file.
768 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
769 * common/common-defs.h: Include common-types.h.
770 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
771 (ULONGEST): Remove.
772
773 2014-08-19 Tom Tromey <tromey@redhat.com>
774 Gary Benson <gbenson@redhat.com>
775
776 * common/errors.h: New file.
777 * common/errors.c: Likewise.
778 * Makefile.in (SFILES): Add common/errors.c.
779 (HFILES_NO_SRCDIR): Add common/errors.h.
780 (COMMON_OBS): Add errors.o.
781 (errors.o): New rule.
782 * common/common-defs.h: Include errors.h.
783 * utils.h (perror_with_name, error, verror, warning, vwarning):
784 Don't declare.
785 * common/common-utils.h: (malloc_failure, internal_error):
786 Likewise.
787
788 2014-08-19 Gary Benson <gbenson@redhat.com>
789
790 * utils.c (internal_vproblem): Always print the message.
791
792 2014-08-18 Doug Evans <dje@google.com>
793
794 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
795
796 2014-08-18 Joel Brobecker <brobecker@adacore.com>
797
798 * ada-typeprint.c (type_is_full_subrange_of_target_type):
799 Return 0 if TYPE is dynamic.
800 (print_range): Add handling of dynamic ranges.
801
802 2014-08-18 Keven Boell <keven.boell@intel.com>
803 Joel Brobecker <brobecker@adacore.com>
804
805 * gdbtypes.h (struct main_type): Add field "data_location".
806 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
807 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
808 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
809 a dynamic data location.
810 (resolve_dynamic_type): Add DW_AT_data_location handling.
811 (copy_recursive, copy_type): Copy the data_location information
812 when present.
813 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
814 * value.c (value_from_contents_and_address): Add
815 DW_AT_data_location handling.
816
817 2014-08-18 Keven Boell <keven.boell@intel.com>
818 Joel Brobecker <brobecker@adacore.com>
819
820 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
821 field "get_object_address".
822 * dwarf2expr.c (execute_stack_op): Add handling for
823 DW_OP_push_object_address.
824 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
825 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
826 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
827 (dwarf_expr_get_obj_addr): New function.
828 (dwarf_expr_ctx_funcs): Add get_object_address field.
829 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
830 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
831 (dwarf2_evaluate_property): Add parameter "address". Use it.
832 (needs_get_obj_addr): New function.
833 (needs_frame_ctx_funcs): Add get_object_address field.
834 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
835 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
836 (resolve_dynamic_array): Likewise.
837
838 2014-08-18 Joel Brobecker <brobecker@adacore.com>
839
840 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
841 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
842 fixed value for records and unions for which some GNAT encodings
843 are present.
844
845 2014-08-18 Joel Brobecker <brobecker@adacore.com>
846
847 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
848 rewrite to avoid "else if" and "else" constructs. Should be
849 a no-op in practice.
850
851 2014-08-18 Joel Brobecker <brobecker@adacore.com>
852
853 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
854 of lexical block.
855
856 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
857
858 PR c++/17132
859 * eval.c: Update all calls to find_overload_match.
860 * valarith.c: Likewise.
861 (value_user_defined_cpp_op, value_user_defined_op): New
862 argument NOSIDE. Update all callers.
863 * valops.c (find_overload_match): New argument NOSIDE.
864 * value.h (find_overload_match): Update signature.
865
866 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
867
868 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
869 'items' methods instead of 'iteritems' method on dictionaries.
870
871 2014-08-15 Doug Evans <dje@google.com>
872
873 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
874 closer to use.
875
876 2014-08-15 Doug Evans <dje@google.com>
877
878 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
879
880 2014-08-15 Doug Evans <dje@google.com>
881
882 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
883
884 2014-08-15 Doug Evans <dje@google.com>
885
886 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
887 unused.
888
889 2014-08-15 Eli Zaretskii <eliz@gnu.org>
890
891 * dcache.h: Include target.h, to avoid compile time warnings.
892
893 2014-08-15 Joel Brobecker <brobecker@adacore.com>
894
895 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
896 frame_info" partial declaration.
897 * gdbarch.h: Regenerate.
898
899 2014-08-15 Yao Qi <yao@codesourcery.com>
900
901 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
902 Add parameter 'decode_for_pst_p'. Callers update.
903
904 2014-08-13 Yao Qi <yao@codesourcery.com>
905
906 PR build/17104
907 * configure.ac: Use local variable 'pos'.
908 * configure: Regenerated.
909
910 2014-08-11 Doug Evans <dje@google.com>
911
912 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
913 message, it is redundant with "Reading symbols from ..." message.
914
915 2014-08-10 Doug Evans <xdje42@gmail.com>
916
917 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
918
919 2014-08-09 Yao Qi <yao@codesourcery.com>
920
921 PR remote/9053
922 * remote.c (remote_xfer_partial): Remove dead code.
923
924 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
925
926 * ia64-linux-tdep.c: Include "regset.h".
927 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
928 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
929 (ia64_linux_supply_fpregset): New function.
930 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
931 (ia64_linux_regset_from_core_section): New function.
932 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
933 method.
934
935 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
936
937 * m68klinux-tdep.c: Include "regset.h".
938 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
939 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
940 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
941 (m68k_linux_regset_from_core_section): New function.
942 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
943 method.
944
945 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
946
947 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
948 function. Move logic to...
949 (tilegx_linux_regmap): ... this new register map.
950 (tilegx_linux_regset): Refer to register map, replace supply
951 method by regcache_supply_regset, and add collect method.
952 * tilegx-tdep.h (enum tilegx_regnum): New enum value
953 TILEGX_FIRST_EASY_REGNUM.
954
955 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
956
957 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
958 that calls regcache_supply_regset and handles the EPC register
959 separately. Move main logic to...
960 (score7_linux_gregmap): ... this new register map.
961 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
962 (score7_linux_gregset): Refer to register map. Add collect method.
963 (score7_linux_regset_from_core_section): Replace
964 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
965 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
966 (struct regset): Delete unused forward declaraction.
967 (struct pt_regs): Delete structure definition.
968 (elf_gregset_t): Delete typedef.
969
970 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
971
972 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
973 (nios2_core_regset): Add collect method.
974
975 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
976
977 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
978 platform-independent and don't write to read-only input buffer.
979 (m32r_linux_collect_gregset): New function.
980 (m32r_linux_gregset): Add collect method.
981
982 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
983
984 * hppa-linux-tdep.c (greg_map): Rename to...
985 (hppa_linux_gregmap): ... this. Also convert to
986 regcache_map_entry format.
987 (hppa_linux_supply_regset): Delete function.
988 (hppa_linux_supply_fpregset): Delete function. Move logic to...
989 (hppa_linux_fpregmap): ... this new register map.
990 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
991 register map, replace supply method by regcache_supply_regset, and
992 add collect method regcache_collect_regset.
993
994 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
995
996 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
997 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
998 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
999 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1000 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1001 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1002 (frv_linux_supply_gregset): Replace main logic by call to
1003 regcache_supply_regset, but keep clearing gr32-gr63.
1004 (frv_linux_supply_fpregset): Delete function.
1005 (frv_linux_gregset): Refer to appropriate register map and add
1006 regcache_collect_regset as the collect method.
1007 (frv_linux_fpregset): Likewise. Also exchange the supply method
1008 by regcache_supply_regset.
1009
1010 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1011
1012 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1013 by call to alpha_supply_int_regs.
1014 (alpha_linux_collect_gregset): New function.
1015 (alpha_linux_supply_fpregset): Replace logic by call to
1016 alpha_supply_fp_regs.
1017 (alpha_linux_collect_fpregset): New function.
1018 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1019
1020 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1021
1022 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1023 by call to regcache_collect_regset.
1024 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1025 instead of aarch64_linux_supply_gregset/_fpregset.
1026 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1027 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1028 header file instead.
1029 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1030 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1031 functions. Move logic to ...
1032 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1033 register maps.
1034 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1035 refer to new register maps, replace *_regset_from_core by
1036 regcache_supply_regset, and also use regcache_collect_regset.
1037 * aarch64-linux-tdep.h: Include "regset.h".
1038 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1039 Delete prototypes.
1040 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1041 macros, moved from C source file.
1042 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1043 variable declarations.
1044
1045 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1046
1047 * s390-linux-nat.c: Include "regset.h".
1048 (regmap_gregset): Delete macro.
1049 (s390_64_regmap_gregset): New register map for
1050 regcache_supply/_collect_regset.
1051 (s390_64_gregset): New regset.
1052 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1053 (regmap_fpregset): Delete macro.
1054 (s390_native_supply, s390_native_collect): Delete functions.
1055 (supply_gregset, fill_gregset): Replace s390-specific regmap
1056 handling by a call to regcache_supply/_collect_regset.
1057 (supply_fpregset, fill_fpregset): Call regcache_supply/
1058 _collect_regset instead of s390_native_supply/_collect.
1059 (fetch_regset, store_regset): Likewise. Also change the last
1060 parameter to a regset instead of a regmap.
1061 (s390_linux_fetch_inferior_registers)
1062 (390_linux_store_inferior_registers): Adjust last parameter in
1063 calls to fetch_regset and store_regset.
1064 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1065 (s390_gregmap): ... this. Also make static const and convert to
1066 regcache_map_entry format.
1067 (s390x_regmap_gregset): Delete.
1068 (s390_regmap_fpregset): Rename to...
1069 (s390_fpregmap): ... this. Make static const and convert to
1070 regcache_map_entry format.
1071 (s390_regmap_upper, s390_regmap_last_break)
1072 (s390x_regmap_last_break, s390_regmap_system_call)
1073 (s390_regmap_tdb): Likewise.
1074 (s390_supply_regset, s390_collect_regset): Remove functions.
1075 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1076 s390_supply_regset.
1077 (s390_gregset, s390_fpregset, s390_upper_regset)
1078 (s390_last_break_regset, s390x_last_break_regset)
1079 (s390_system_call_regset, s390_tdb_regset): Make global and
1080 replace s390_supply/_collect_regset by regcache_supply/
1081 _collect_regset.
1082 (s390x_gregset): Delete.
1083 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1084 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1085 (s390_regmap_fpregset, s390_regmap_last_break)
1086 (s390x_regmap_last_break, s390_regmap_system_call)
1087 (s390_regmap_tdb): Delete global variable declarations.
1088 (s390_gregset, s390_fpregset, s390_last_break_regset)
1089 (s390x_last_break_regset, s390_system_call_regset)
1090 (s390_tdb_regset): New global variable declarations.
1091
1092 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1093
1094 * regcache.c: Include "regset.h".
1095 (regcache_transfer_regset): New local function.
1096 (regcache_supply_regset, regcache_collect_regset): New functions.
1097 * regcache.h (struct regcache_map_entry): New structure.
1098 (REGCACHE_MAP_SKIP): New enum value.
1099 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1100
1101 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1102
1103 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1104 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1105 (ppc_linux_collect_gregset ): Likewise.
1106 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1107 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1108 (ppc_collect_vrregset): Likewise.
1109 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1110 Likewise.
1111
1112 2014-08-07 Yao Qi <yao@codesourcery.com>
1113
1114 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1115 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1116 * remote.c (remote_read_bytes): Likewise.
1117
1118 2014-08-07 Yao Qi <yao@codesourcery.com>
1119
1120 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1121
1122 2014-08-07 Yao Qi <yao@codesourcery.com>
1123
1124 PR remote/17230
1125 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1126 TARGET_XFER_OK instead of 0.
1127
1128 2014-08-07 Gary Benson <gbenson@redhat.com>
1129
1130 * common/common-defs.h: Include errno.h.
1131 * defs.h: Do not include errno.h.
1132 * ada-typeprint.c: Likewise.
1133 * c-typeprint.c: Likewise.
1134 * core-regset.c: Likewise.
1135 * corefile.c: Likewise.
1136 * corelow.c: Likewise.
1137 * event-loop.c: Likewise.
1138 * f-typeprint.c: Likewise.
1139 * gnu-nat.c: Likewise.
1140 * go32-nat.c: Likewise.
1141 * i386gnu-nat.c: Likewise.
1142 * m2-typeprint.c: Likewise.
1143 * nat/linux-btrace.c: Likewise.
1144 * p-typeprint.c: Likewise.
1145 * procfs.c: Likewise.
1146 * remote-sim.c: Likewise.
1147 * rs6000-nat.c: Likewise.
1148 * target.c: Likewise.
1149 * typeprint.c: Likewise.
1150 * ui-file.c: Likewise.
1151 * valops.c: Likewise.
1152 * valprint.c: Likewise.
1153
1154 2014-08-07 Gary Benson <gbenson@redhat.com>
1155
1156 * common/common-defs.h: Include string.h.
1157 * aarch64-tdep.c: Do not include string.h.
1158 * ada-exp.y: Likewise.
1159 * ada-lang.c: Likewise.
1160 * ada-lex.l: Likewise.
1161 * ada-typeprint.c: Likewise.
1162 * ada-valprint.c: Likewise.
1163 * aix-thread.c: Likewise.
1164 * alpha-linux-tdep.c: Likewise.
1165 * alpha-mdebug-tdep.c: Likewise.
1166 * alpha-nat.c: Likewise.
1167 * alpha-osf1-tdep.c: Likewise.
1168 * alpha-tdep.c: Likewise.
1169 * alphanbsd-tdep.c: Likewise.
1170 * amd64-dicos-tdep.c: Likewise.
1171 * amd64-linux-tdep.c: Likewise.
1172 * amd64-nat.c: Likewise.
1173 * amd64-sol2-tdep.c: Likewise.
1174 * amd64fbsd-tdep.c: Likewise.
1175 * amd64obsd-tdep.c: Likewise.
1176 * arch-utils.c: Likewise.
1177 * arm-linux-nat.c: Likewise.
1178 * arm-linux-tdep.c: Likewise.
1179 * arm-tdep.c: Likewise.
1180 * arm-wince-tdep.c: Likewise.
1181 * armbsd-tdep.c: Likewise.
1182 * armnbsd-nat.c: Likewise.
1183 * armnbsd-tdep.c: Likewise.
1184 * armobsd-tdep.c: Likewise.
1185 * avr-tdep.c: Likewise.
1186 * ax-gdb.c: Likewise.
1187 * ax-general.c: Likewise.
1188 * bcache.c: Likewise.
1189 * bfin-tdep.c: Likewise.
1190 * breakpoint.c: Likewise.
1191 * build-id.c: Likewise.
1192 * buildsym.c: Likewise.
1193 * c-exp.y: Likewise.
1194 * c-lang.c: Likewise.
1195 * c-typeprint.c: Likewise.
1196 * c-valprint.c: Likewise.
1197 * charset.c: Likewise.
1198 * cli-out.c: Likewise.
1199 * cli/cli-cmds.c: Likewise.
1200 * cli/cli-decode.c: Likewise.
1201 * cli/cli-dump.c: Likewise.
1202 * cli/cli-interp.c: Likewise.
1203 * cli/cli-logging.c: Likewise.
1204 * cli/cli-script.c: Likewise.
1205 * cli/cli-setshow.c: Likewise.
1206 * cli/cli-utils.c: Likewise.
1207 * coffread.c: Likewise.
1208 * common/agent.c: Likewise.
1209 * common/buffer.c: Likewise.
1210 * common/buffer.h: Likewise.
1211 * common/common-utils.c: Likewise.
1212 * common/filestuff.c: Likewise.
1213 * common/filestuff.c: Likewise.
1214 * common/format.c: Likewise.
1215 * common/print-utils.c: Likewise.
1216 * common/rsp-low.c: Likewise.
1217 * common/signals.c: Likewise.
1218 * common/vec.h: Likewise.
1219 * common/xml-utils.c: Likewise.
1220 * core-regset.c: Likewise.
1221 * corefile.c: Likewise.
1222 * corelow.c: Likewise.
1223 * cp-abi.c: Likewise.
1224 * cp-name-parser.y: Likewise.
1225 * cp-support.c: Likewise.
1226 * cp-valprint.c: Likewise.
1227 * cris-tdep.c: Likewise.
1228 * d-exp.y: Likewise.
1229 * darwin-nat.c: Likewise.
1230 * dbxread.c: Likewise.
1231 * dcache.c: Likewise.
1232 * demangle.c: Likewise.
1233 * dicos-tdep.c: Likewise.
1234 * disasm.c: Likewise.
1235 * doublest.c: Likewise.
1236 * dsrec.c: Likewise.
1237 * dummy-frame.c: Likewise.
1238 * dwarf2-frame.c: Likewise.
1239 * dwarf2loc.c: Likewise.
1240 * dwarf2read.c: Likewise.
1241 * elfread.c: Likewise.
1242 * environ.c: Likewise.
1243 * eval.c: Likewise.
1244 * event-loop.c: Likewise.
1245 * exceptions.c: Likewise.
1246 * exec.c: Likewise.
1247 * expprint.c: Likewise.
1248 * f-exp.y: Likewise.
1249 * f-lang.c: Likewise.
1250 * f-typeprint.c: Likewise.
1251 * f-valprint.c: Likewise.
1252 * fbsd-nat.c: Likewise.
1253 * findcmd.c: Likewise.
1254 * findvar.c: Likewise.
1255 * fork-child.c: Likewise.
1256 * frame.c: Likewise.
1257 * frv-linux-tdep.c: Likewise.
1258 * frv-tdep.c: Likewise.
1259 * gdb.c: Likewise.
1260 * gdb_bfd.c: Likewise.
1261 * gdbarch.c: Likewise.
1262 * gdbarch.sh: Likewise.
1263 * gdbtypes.c: Likewise.
1264 * gnu-nat.c: Likewise.
1265 * gnu-v2-abi.c: Likewise.
1266 * gnu-v3-abi.c: Likewise.
1267 * go-exp.y: Likewise.
1268 * go-lang.c: Likewise.
1269 * go32-nat.c: Likewise.
1270 * guile/guile.c: Likewise.
1271 * guile/scm-auto-load.c: Likewise.
1272 * hppa-hpux-tdep.c: Likewise.
1273 * hppa-linux-nat.c: Likewise.
1274 * hppanbsd-tdep.c: Likewise.
1275 * hppaobsd-tdep.c: Likewise.
1276 * i386-cygwin-tdep.c: Likewise.
1277 * i386-dicos-tdep.c: Likewise.
1278 * i386-linux-tdep.c: Likewise.
1279 * i386-nto-tdep.c: Likewise.
1280 * i386-sol2-tdep.c: Likewise.
1281 * i386-tdep.c: Likewise.
1282 * i386bsd-tdep.c: Likewise.
1283 * i386gnu-nat.c: Likewise.
1284 * i386nbsd-tdep.c: Likewise.
1285 * i386obsd-tdep.c: Likewise.
1286 * i387-tdep.c: Likewise.
1287 * ia64-libunwind-tdep.c: Likewise.
1288 * ia64-linux-nat.c: Likewise.
1289 * inf-child.c: Likewise.
1290 * inf-ptrace.c: Likewise.
1291 * inf-ttrace.c: Likewise.
1292 * infcall.c: Likewise.
1293 * infcmd.c: Likewise.
1294 * inflow.c: Likewise.
1295 * infrun.c: Likewise.
1296 * interps.c: Likewise.
1297 * iq2000-tdep.c: Likewise.
1298 * irix5-nat.c: Likewise.
1299 * jv-exp.y: Likewise.
1300 * jv-lang.c: Likewise.
1301 * jv-typeprint.c: Likewise.
1302 * jv-valprint.c: Likewise.
1303 * language.c: Likewise.
1304 * linux-fork.c: Likewise.
1305 * linux-nat.c: Likewise.
1306 * lm32-tdep.c: Likewise.
1307 * m2-exp.y: Likewise.
1308 * m2-typeprint.c: Likewise.
1309 * m32c-tdep.c: Likewise.
1310 * m32r-linux-nat.c: Likewise.
1311 * m32r-linux-tdep.c: Likewise.
1312 * m32r-rom.c: Likewise.
1313 * m32r-tdep.c: Likewise.
1314 * m68hc11-tdep.c: Likewise.
1315 * m68k-tdep.c: Likewise.
1316 * m68kbsd-tdep.c: Likewise.
1317 * m68klinux-nat.c: Likewise.
1318 * m68klinux-tdep.c: Likewise.
1319 * m88k-tdep.c: Likewise.
1320 * machoread.c: Likewise.
1321 * macrocmd.c: Likewise.
1322 * main.c: Likewise.
1323 * mdebugread.c: Likewise.
1324 * mem-break.c: Likewise.
1325 * memattr.c: Likewise.
1326 * memory-map.c: Likewise.
1327 * mep-tdep.c: Likewise.
1328 * mi/mi-cmd-break.c: Likewise.
1329 * mi/mi-cmd-disas.c: Likewise.
1330 * mi/mi-cmd-env.c: Likewise.
1331 * mi/mi-cmd-stack.c: Likewise.
1332 * mi/mi-cmd-var.c: Likewise.
1333 * mi/mi-cmds.c: Likewise.
1334 * mi/mi-console.c: Likewise.
1335 * mi/mi-getopt.c: Likewise.
1336 * mi/mi-interp.c: Likewise.
1337 * mi/mi-main.c: Likewise.
1338 * mi/mi-parse.c: Likewise.
1339 * microblaze-rom.c: Likewise.
1340 * microblaze-tdep.c: Likewise.
1341 * mingw-hdep.c: Likewise.
1342 * minidebug.c: Likewise.
1343 * minsyms.c: Likewise.
1344 * mips-irix-tdep.c: Likewise.
1345 * mips-linux-tdep.c: Likewise.
1346 * mips-tdep.c: Likewise.
1347 * mips64obsd-tdep.c: Likewise.
1348 * mipsnbsd-tdep.c: Likewise.
1349 * mipsread.c: Likewise.
1350 * mn10300-linux-tdep.c: Likewise.
1351 * mn10300-tdep.c: Likewise.
1352 * monitor.c: Likewise.
1353 * moxie-tdep.c: Likewise.
1354 * mt-tdep.c: Likewise.
1355 * nat/linux-btrace.c: Likewise.
1356 * nat/linux-osdata.c: Likewise.
1357 * nat/linux-procfs.c: Likewise.
1358 * nat/linux-ptrace.c: Likewise.
1359 * nat/linux-waitpid.c: Likewise.
1360 * nbsd-tdep.c: Likewise.
1361 * nios2-linux-tdep.c: Likewise.
1362 * nto-procfs.c: Likewise.
1363 * nto-tdep.c: Likewise.
1364 * objc-lang.c: Likewise.
1365 * objfiles.c: Likewise.
1366 * opencl-lang.c: Likewise.
1367 * osabi.c: Likewise.
1368 * osdata.c: Likewise.
1369 * p-exp.y: Likewise.
1370 * p-lang.c: Likewise.
1371 * p-typeprint.c: Likewise.
1372 * parse.c: Likewise.
1373 * posix-hdep.c: Likewise.
1374 * ppc-linux-nat.c: Likewise.
1375 * ppc-sysv-tdep.c: Likewise.
1376 * ppcfbsd-tdep.c: Likewise.
1377 * ppcnbsd-tdep.c: Likewise.
1378 * ppcobsd-tdep.c: Likewise.
1379 * printcmd.c: Likewise.
1380 * procfs.c: Likewise.
1381 * prologue-value.c: Likewise.
1382 * python/py-auto-load.c: Likewise.
1383 * python/py-gdb-readline.c: Likewise.
1384 * ravenscar-thread.c: Likewise.
1385 * regcache.c: Likewise.
1386 * registry.c: Likewise.
1387 * remote-fileio.c: Likewise.
1388 * remote-m32r-sdi.c: Likewise.
1389 * remote-mips.c: Likewise.
1390 * remote-notif.c: Likewise.
1391 * remote-sim.c: Likewise.
1392 * remote.c: Likewise.
1393 * reverse.c: Likewise.
1394 * rs6000-aix-tdep.c: Likewise.
1395 * ser-base.c: Likewise.
1396 * ser-go32.c: Likewise.
1397 * ser-mingw.c: Likewise.
1398 * ser-pipe.c: Likewise.
1399 * ser-tcp.c: Likewise.
1400 * ser-unix.c: Likewise.
1401 * serial.c: Likewise.
1402 * sh-tdep.c: Likewise.
1403 * sh64-tdep.c: Likewise.
1404 * shnbsd-tdep.c: Likewise.
1405 * skip.c: Likewise.
1406 * sol-thread.c: Likewise.
1407 * solib-dsbt.c: Likewise.
1408 * solib-frv.c: Likewise.
1409 * solib-osf.c: Likewise.
1410 * solib-som.c: Likewise.
1411 * solib-spu.c: Likewise.
1412 * solib-target.c: Likewise.
1413 * solib.c: Likewise.
1414 * somread.c: Likewise.
1415 * source.c: Likewise.
1416 * sparc-nat.c: Likewise.
1417 * sparc-sol2-tdep.c: Likewise.
1418 * sparc-tdep.c: Likewise.
1419 * sparc64-tdep.c: Likewise.
1420 * sparc64fbsd-tdep.c: Likewise.
1421 * sparc64nbsd-tdep.c: Likewise.
1422 * sparcnbsd-tdep.c: Likewise.
1423 * spu-linux-nat.c: Likewise.
1424 * spu-multiarch.c: Likewise.
1425 * spu-tdep.c: Likewise.
1426 * stabsread.c: Likewise.
1427 * stack.c: Likewise.
1428 * std-regs.c: Likewise.
1429 * symfile.c: Likewise.
1430 * symmisc.c: Likewise.
1431 * symtab.c: Likewise.
1432 * target.c: Likewise.
1433 * thread.c: Likewise.
1434 * tilegx-linux-nat.c: Likewise.
1435 * tilegx-tdep.c: Likewise.
1436 * top.c: Likewise.
1437 * tracepoint.c: Likewise.
1438 * tui/tui-command.c: Likewise.
1439 * tui/tui-data.c: Likewise.
1440 * tui/tui-disasm.c: Likewise.
1441 * tui/tui-file.c: Likewise.
1442 * tui/tui-layout.c: Likewise.
1443 * tui/tui-out.c: Likewise.
1444 * tui/tui-regs.c: Likewise.
1445 * tui/tui-source.c: Likewise.
1446 * tui/tui-stack.c: Likewise.
1447 * tui/tui-win.c: Likewise.
1448 * tui/tui-windata.c: Likewise.
1449 * tui/tui-winsource.c: Likewise.
1450 * typeprint.c: Likewise.
1451 * ui-file.c: Likewise.
1452 * ui-out.c: Likewise.
1453 * user-regs.c: Likewise.
1454 * utils.c: Likewise.
1455 * v850-tdep.c: Likewise.
1456 * valarith.c: Likewise.
1457 * valops.c: Likewise.
1458 * valprint.c: Likewise.
1459 * value.c: Likewise.
1460 * varobj.c: Likewise.
1461 * vax-tdep.c: Likewise.
1462 * vaxnbsd-tdep.c: Likewise.
1463 * vaxobsd-tdep.c: Likewise.
1464 * windows-nat.c: Likewise.
1465 * xcoffread.c: Likewise.
1466 * xml-support.c: Likewise.
1467 * xstormy16-tdep.c: Likewise.
1468 * xtensa-linux-nat.c: Likewise.
1469
1470 2014-08-07 Gary Benson <gbenson@redhat.com>
1471
1472 * common/common-defs.h: Include gdb_assert.h.
1473 * aarch64-tdep.c: Do not include gdb_assert.h.
1474 * addrmap.c: Likewise.
1475 * aix-thread.c: Likewise.
1476 * alpha-linux-tdep.c: Likewise.
1477 * alpha-mdebug-tdep.c: Likewise.
1478 * alphanbsd-tdep.c: Likewise.
1479 * amd64-nat.c: Likewise.
1480 * amd64-tdep.c: Likewise.
1481 * amd64bsd-nat.c: Likewise.
1482 * amd64fbsd-nat.c: Likewise.
1483 * amd64fbsd-tdep.c: Likewise.
1484 * amd64nbsd-nat.c: Likewise.
1485 * amd64nbsd-tdep.c: Likewise.
1486 * amd64obsd-nat.c: Likewise.
1487 * amd64obsd-tdep.c: Likewise.
1488 * arch-utils.c: Likewise.
1489 * arm-tdep.c: Likewise.
1490 * armbsd-tdep.c: Likewise.
1491 * auxv.c: Likewise.
1492 * bcache.c: Likewise.
1493 * bfin-tdep.c: Likewise.
1494 * blockframe.c: Likewise.
1495 * breakpoint.c: Likewise.
1496 * bsd-kvm.c: Likewise.
1497 * bsd-uthread.c: Likewise.
1498 * buildsym.c: Likewise.
1499 * c-exp.y: Likewise.
1500 * c-lang.c: Likewise.
1501 * charset.c: Likewise.
1502 * cleanups.c: Likewise.
1503 * cli-out.c: Likewise.
1504 * cli/cli-decode.c: Likewise.
1505 * cli/cli-dump.c: Likewise.
1506 * cli/cli-logging.c: Likewise.
1507 * cli/cli-script.c: Likewise.
1508 * cli/cli-utils.c: Likewise.
1509 * coffread.c: Likewise.
1510 * common/common-utils.c: Likewise.
1511 * common/queue.h: Likewise.
1512 * common/signals.c: Likewise.
1513 * common/vec.h: Likewise.
1514 * complaints.c: Likewise.
1515 * completer.c: Likewise.
1516 * corelow.c: Likewise.
1517 * cp-abi.c: Likewise.
1518 * cp-name-parser.y: Likewise.
1519 * cp-namespace.c: Likewise.
1520 * cp-support.c: Likewise.
1521 * cris-tdep.c: Likewise.
1522 * dbxread.c: Likewise.
1523 * dictionary.c: Likewise.
1524 * doublest.c: Likewise.
1525 * dsrec.c: Likewise.
1526 * dummy-frame.c: Likewise.
1527 * dwarf2-frame-tailcall.c: Likewise.
1528 * dwarf2-frame.c: Likewise.
1529 * dwarf2expr.c: Likewise.
1530 * dwarf2loc.c: Likewise.
1531 * dwarf2read.c: Likewise.
1532 * eval.c: Likewise.
1533 * event-loop.c: Likewise.
1534 * exceptions.c: Likewise.
1535 * expprint.c: Likewise.
1536 * f-valprint.c: Likewise.
1537 * fbsd-nat.c: Likewise.
1538 * findvar.c: Likewise.
1539 * frame-unwind.c: Likewise.
1540 * frame.c: Likewise.
1541 * frv-tdep.c: Likewise.
1542 * gcore.c: Likewise.
1543 * gdb-dlfcn.c: Likewise.
1544 * gdb_bfd.c: Likewise.
1545 * gdbarch.c: Likewise.
1546 * gdbarch.sh: Likewise.
1547 * gdbtypes.c: Likewise.
1548 * gnu-nat.c: Likewise.
1549 * gnu-v3-abi.c: Likewise.
1550 * go-lang.c: Likewise.
1551 * guile/scm-exception.c: Likewise.
1552 * guile/scm-gsmob.c: Likewise.
1553 * guile/scm-lazy-string.c: Likewise.
1554 * guile/scm-math.c: Likewise.
1555 * guile/scm-pretty-print.c: Likewise.
1556 * guile/scm-safe-call.c: Likewise.
1557 * guile/scm-utils.c: Likewise.
1558 * guile/scm-value.c: Likewise.
1559 * h8300-tdep.c: Likewise.
1560 * hppa-hpux-nat.c: Likewise.
1561 * hppa-tdep.c: Likewise.
1562 * hppanbsd-tdep.c: Likewise.
1563 * hppaobsd-tdep.c: Likewise.
1564 * i386-darwin-nat.c: Likewise.
1565 * i386-darwin-tdep.c: Likewise.
1566 * i386-nto-tdep.c: Likewise.
1567 * i386-tdep.c: Likewise.
1568 * i386bsd-nat.c: Likewise.
1569 * i386fbsd-tdep.c: Likewise.
1570 * i386gnu-nat.c: Likewise.
1571 * i386nbsd-tdep.c: Likewise.
1572 * i386obsd-tdep.c: Likewise.
1573 * i387-tdep.c: Likewise.
1574 * ia64-libunwind-tdep.c: Likewise.
1575 * ia64-tdep.c: Likewise.
1576 * inf-ptrace.c: Likewise.
1577 * inf-ttrace.c: Likewise.
1578 * infcall.c: Likewise.
1579 * infcmd.c: Likewise.
1580 * infrun.c: Likewise.
1581 * inline-frame.c: Likewise.
1582 * interps.c: Likewise.
1583 * jv-lang.c: Likewise.
1584 * jv-typeprint.c: Likewise.
1585 * linux-fork.c: Likewise.
1586 * linux-nat.c: Likewise.
1587 * linux-thread-db.c: Likewise.
1588 * m32c-tdep.c: Likewise.
1589 * m32r-linux-nat.c: Likewise.
1590 * m32r-tdep.c: Likewise.
1591 * m68k-tdep.c: Likewise.
1592 * m68kbsd-nat.c: Likewise.
1593 * m68kbsd-tdep.c: Likewise.
1594 * m88k-tdep.c: Likewise.
1595 * machoread.c: Likewise.
1596 * macroexp.c: Likewise.
1597 * macrotab.c: Likewise.
1598 * maint.c: Likewise.
1599 * mdebugread.c: Likewise.
1600 * memory-map.c: Likewise.
1601 * mep-tdep.c: Likewise.
1602 * mi/mi-common.c: Likewise.
1603 * microblaze-tdep.c: Likewise.
1604 * mingw-hdep.c: Likewise.
1605 * mips-linux-nat.c: Likewise.
1606 * mips-linux-tdep.c: Likewise.
1607 * mips-tdep.c: Likewise.
1608 * mips64obsd-tdep.c: Likewise.
1609 * mipsnbsd-tdep.c: Likewise.
1610 * mn10300-linux-tdep.c: Likewise.
1611 * mn10300-tdep.c: Likewise.
1612 * moxie-tdep.c: Likewise.
1613 * mt-tdep.c: Likewise.
1614 * nat/linux-btrace.c: Likewise.
1615 * nat/linux-osdata.c: Likewise.
1616 * nat/linux-ptrace.c: Likewise.
1617 * nat/mips-linux-watch.c: Likewise.
1618 * nios2-linux-tdep.c: Likewise.
1619 * nios2-tdep.c: Likewise.
1620 * objc-lang.c: Likewise.
1621 * objfiles.c: Likewise.
1622 * obsd-nat.c: Likewise.
1623 * opencl-lang.c: Likewise.
1624 * osabi.c: Likewise.
1625 * parse.c: Likewise.
1626 * ppc-linux-nat.c: Likewise.
1627 * ppc-sysv-tdep.c: Likewise.
1628 * ppcfbsd-nat.c: Likewise.
1629 * ppcfbsd-tdep.c: Likewise.
1630 * ppcnbsd-nat.c: Likewise.
1631 * ppcnbsd-tdep.c: Likewise.
1632 * ppcobsd-nat.c: Likewise.
1633 * ppcobsd-tdep.c: Likewise.
1634 * printcmd.c: Likewise.
1635 * procfs.c: Likewise.
1636 * prologue-value.c: Likewise.
1637 * psymtab.c: Likewise.
1638 * python/py-lazy-string.c: Likewise.
1639 * python/py-value.c: Likewise.
1640 * regcache.c: Likewise.
1641 * reggroups.c: Likewise.
1642 * registry.c: Likewise.
1643 * remote-sim.c: Likewise.
1644 * remote.c: Likewise.
1645 * rs6000-aix-tdep.c: Likewise.
1646 * rs6000-tdep.c: Likewise.
1647 * s390-linux-tdep.c: Likewise.
1648 * score-tdep.c: Likewise.
1649 * ser-base.c: Likewise.
1650 * ser-mingw.c: Likewise.
1651 * sh-tdep.c: Likewise.
1652 * sh64-tdep.c: Likewise.
1653 * solib-darwin.c: Likewise.
1654 * solib-spu.c: Likewise.
1655 * solib-svr4.c: Likewise.
1656 * source.c: Likewise.
1657 * sparc-nat.c: Likewise.
1658 * sparc-sol2-tdep.c: Likewise.
1659 * sparc-tdep.c: Likewise.
1660 * sparc64-sol2-tdep.c: Likewise.
1661 * sparc64-tdep.c: Likewise.
1662 * sparc64fbsd-tdep.c: Likewise.
1663 * sparc64nbsd-tdep.c: Likewise.
1664 * sparc64obsd-tdep.c: Likewise.
1665 * sparcnbsd-tdep.c: Likewise.
1666 * sparcobsd-tdep.c: Likewise.
1667 * spu-multiarch.c: Likewise.
1668 * spu-tdep.c: Likewise.
1669 * stabsread.c: Likewise.
1670 * stack.c: Likewise.
1671 * symfile.c: Likewise.
1672 * symtab.c: Likewise.
1673 * target-descriptions.c: Likewise.
1674 * target-memory.c: Likewise.
1675 * target.c: Likewise.
1676 * tic6x-linux-tdep.c: Likewise.
1677 * tic6x-tdep.c: Likewise.
1678 * tilegx-linux-nat.c: Likewise.
1679 * tilegx-tdep.c: Likewise.
1680 * top.c: Likewise.
1681 * tramp-frame.c: Likewise.
1682 * tui/tui-out.c: Likewise.
1683 * tui/tui-winsource.c: Likewise.
1684 * ui-out.c: Likewise.
1685 * user-regs.c: Likewise.
1686 * utils.c: Likewise.
1687 * v850-tdep.c: Likewise.
1688 * valops.c: Likewise.
1689 * value.c: Likewise.
1690 * varobj.c: Likewise.
1691 * vax-nat.c: Likewise.
1692 * xml-syscall.c: Likewise.
1693 * xml-tdesc.c: Likewise.
1694 * xstormy16-tdep.c: Likewise.
1695 * xtensa-linux-nat.c: Likewise.
1696 * xtensa-tdep.c: Likewise.
1697
1698 2014-08-07 Gary Benson <gbenson@redhat.com>
1699
1700 * common/common-defs.h: Include common-utils.h.
1701 * defs.h: Do not include common-utils.h.
1702 * common/gdb_assert.h: Likewise.
1703 * darwin-nat.h: Likewise.
1704 * nat/linux-btrace.c: Likewise.
1705 * target/waitstatus.h: Likewise.
1706
1707 2014-08-07 Gary Benson <gbenson@redhat.com>
1708
1709 * common/common-defs.h: Include ptid.h.
1710 * defs.h: Do not include ptid.h.
1711 * inferior.h: Likewise.
1712 * infrun.h: Likewise.
1713 * nat/linux-btrace.h: Likewise.
1714 * nat/linux-osdata.h: Likewise.
1715 * target/waitstatus.h: Likewise.
1716
1717 2014-08-07 Gary Benson <gbenson@redhat.com>
1718
1719 * common/common-defs.h: Include gdb_locale.h.
1720 * defs.h: Do not include gdb_locale.h.
1721
1722 2014-08-07 Gary Benson <gbenson@redhat.com>
1723
1724 * common/common-defs.h: Include gdb/signals.h.
1725 * defs.h: Do not include gdb/signals.h.
1726
1727 2014-08-07 Gary Benson <gbenson@redhat.com>
1728
1729 * common/common-defs.h: Include pathmax.h.
1730 * defs.h: Do not include pathmax.h.
1731
1732 2014-08-07 Gary Benson <gbenson@redhat.com>
1733
1734 * common/common-defs.h: Include libiberty.h.
1735 * defs.h: Do not include libiberty.h.
1736 * common/queue.h: Likewise.
1737 * cp-name-parser.y: Likewise.
1738 * mi/mi-cmd-catch.c: Likewise.
1739 * python/python.c: Likewise.
1740
1741 2014-08-07 Gary Benson <gbenson@redhat.com>
1742
1743 * common/common-defs.h: Include ansidecl.h.
1744 * defs.h: Do not include ansidecl.h.
1745 * common/buffer.h: Likewise.
1746 * common/common-utils.h: Likewise.
1747
1748 2014-08-07 Gary Benson <gbenson@redhat.com>
1749
1750 * common/common-defs.h: Include stddef.h.
1751 * defs.h: Do not include stddef.h.
1752 * common/common-utils.h: Likewise.
1753 * amd64fbsd-nat.c: Likewise.
1754 * bcache.c: Likewise.
1755 * charset.c: Likewise.
1756 * common/buffer.h: Likewise.
1757 * common/vec.h: Likewise.
1758 * i386bsd-nat.c: Likewise.
1759 * nat/linux-btrace.h: Likewise.
1760 * ppcfbsd-nat.c: Likewise.
1761 * ppcnbsd-tdep.h: Likewise.
1762 * ppcobsd-nat.c: Likewise.
1763 * ppcobsd-tdep.h: Likewise.
1764 * python/py-gdb-readline.c: Likewise.
1765
1766 2014-08-07 Gary Benson <gbenson@redhat.com>
1767
1768 * common/common-defs.h: Include stdarg.h.
1769 * defs.h: Do not include stdarg.h.
1770 * ada-lang.c: Likewise.
1771 * common/common-utils.h: Likewise.
1772 * guile/scm-string.c: Likewise.
1773 * guile/scm-utils.c: Likewise.
1774 * m32c-tdep.c: Likewise.
1775
1776 2014-08-07 Gary Benson <gbenson@redhat.com>
1777
1778 * common/common-defs.h: Include stdlib.h.
1779 * defs.h: Do not include stdlib.h.
1780 * addrmap.c: Likewise.
1781 * bcache.c: Likewise.
1782 * common/buffer.c: Likewise.
1783 * common/common-utils.c: Likewise.
1784 * cp-name-parser.y: Likewise.
1785 * go32-nat.c: Likewise.
1786 * mn10300-linux-tdep.c: Likewise.
1787 * nat/linux-osdata.c: Likewise.
1788 * tui/tui.c: Likewise.
1789 * windows-nat.c: Likewise.
1790
1791 2014-08-07 Gary Benson <gbenson@redhat.com>
1792
1793 * common/common-defs.h: Include stdio.h.
1794 * defs.h: Do not include stdio.h.
1795 * ada-lang.c: Likewise.
1796 * common/buffer.c: Likewise.
1797 * common/common-utils.c: Likewise.
1798 * cp-name-parser.y: Likewise.
1799 * gnu-nat.c: Likewise.
1800 * go32-nat.c: Likewise.
1801 * i386gnu-nat.c: Likewise.
1802 * proc-api.c: Likewise.
1803 * proc-events.c: Likewise.
1804 * proc-flags.c: Likewise.
1805 * proc-why.c: Likewise.
1806 * python/python-internal.h: Likewise.
1807 * target-memory.c: Likewise.
1808 * tui/tui-io.c: Likewise.
1809 * tui/tui.c: Likewise.
1810
1811 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1812
1813 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1814 (scan_dyntag_auxv): Same.
1815
1816 2014-08-06 Yao Qi <yao@codesourcery.com>
1817
1818 * amd64-linux-nat.c: Remove duplicated include
1819 "x86-linux-nat.h".
1820 * i386-linux-nat.c: Likewise.
1821
1822 2014-08-06 Yao Qi <yao@codesourcery.com>
1823
1824 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1825 operand" with "Special opcode" in comments.
1826
1827 2014-08-05 Gary Benson <gbenson@redhat.com>
1828
1829 * interps.c (initialize_interps): Remove prototype.
1830 (interpreter_initialized): Remove static global.
1831 (interp_add): Do not call initialize_interps.
1832 (initialize_interps): Remove function.
1833
1834 2014-08-05 Gary Benson <gbenson@redhat.com>
1835
1836 * utils.c (vwarning): Remove spurious va_end.
1837
1838 2014-08-05 Alan Modra <amodra@gmail.com>
1839
1840 * charset.c (convert_between_encodings): Cast result of obstack_base.
1841 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1842 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1843 (read_unwind_info): Use size_t for some locals.
1844 * jit.c (finalize_symtab): Likewise.
1845 * utils.c (hashtab_obstack_allocate): Likewise.
1846 * symmisc.c (print_objfile_statistics): Update format strings.
1847
1848 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1849
1850 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1851 (Changes in GDB 7.8): ... here.
1852
1853 2014-08-04 Tom Tromey <tromey@redhat.com>
1854
1855 * target.c (set_targetdebug): New function.
1856 (initialize_targets): Pass set_targetdebug when creating "set
1857 debug target".
1858
1859 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1860
1861 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1862 if detecting a variable-sized field that is not the last field.
1863 Fix struct type length computation.
1864
1865 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1866
1867 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1868 Add debug trace.
1869
1870 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1871
1872 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1873 Remove "+ 8" offset in computation of CHAIN_VMA.
1874
1875 2014-07-31 Doug Evans <dje@google.com>
1876
1877 * inflow.c (child_terminal_inferior): Add comment.
1878 (child_terminal_ours_for_output): Add comment.
1879 (child_terminal_ours): Add comment.
1880 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1881 (linux_nat_terminal_ours): Add comment.
1882
1883 2014-07-31 Gary Benson <gbenson@redhat.com>
1884
1885 * common/btrace-common.h: Do not include defs.h or server.h.
1886 * nat/mips-linux-watch.h: Likewise.
1887 * gdb-dlfcn.h: Do not include defs.h.
1888 * tracefile.h: Likewise.
1889
1890 2014-07-30 Roland McGrath <mcgrathr@google.com>
1891
1892 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1893
1894 2014-07-30 Tom Tromey <tromey@redhat.com>
1895
1896 * bsd-kvm.c (bsd_kvm_open): Constify.
1897 * corelow.c (core_open): Constify.
1898 * ctf.c (ctf_open): Constify.
1899 * dbug-rom.c (dbug_open): Constify.
1900 * exec.c (exec_open): Constify.
1901 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1902 * microblaze-rom.c (picobug_open): Constify.
1903 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1904 Constify.
1905 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1906 * record-btrace.c (record_btrace_open): Constify.
1907 * record-full.c (record_full_core_open_1, record_full_open_1)
1908 (record_full_open): Constify.
1909 * remote-m32r-sdi.c (m32r_open): Constify.
1910 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1911 (rockhopper_open, lsi_open): Constify.
1912 * remote-sim.c (gdbsim_open): Constify.
1913 * remote.c (remote_open, extended_remote_open, remote_open_1):
1914 Constify.
1915 * target.h (struct target_ops) <to_open>: Make "arg" const.
1916 * tracefile-tfile.c (tfile_open): Constify.
1917
1918 2014-07-30 Tom Tromey <tromey@redhat.com>
1919
1920 * breakpoint.c (map_breakpoint_numbers): Update.
1921 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1922 (get_number_const): New function.
1923 (get_number): Rewrite using get_number_const.
1924 (init_number_or_range): Make "string" const.
1925 (number_is_in_list): Make "list" const.
1926 * cli/cli-utils.h (get_number_const): Declare.
1927 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1928 (init_number_or_range, number_is_in_list): Update.
1929 * printcmd.c (map_display_numbers): Update.
1930 * value.c (value_from_history_ref): Constify.
1931 * value.h (value_from_history_ref): Update.
1932
1933 2014-07-30 Tom Tromey <tromey@redhat.com>
1934
1935 * corefile.c (hook_type, call_extra_exec_file_hooks)
1936 (specify_exec_file_hook): Constify.
1937 * exec.c (exec_file_attach): Make "filename" const.
1938 * gdbcore.h (deprecated_exec_file_display_hook)
1939 (specify_exec_file_hook, exec_file_attach): Constify.
1940 * main.c (captured_main): Use catch_command_errors_const.
1941
1942 2014-07-30 Tom Tromey <tromey@redhat.com>
1943
1944 * target.c (open_target): New function.
1945 (add_target_with_completer, add_deprecated_target_alias): Use
1946 set_cmd_sfunc, set_cmd_context.
1947 (debug_to_open): Remove.
1948 (setup_target_debug): Update.
1949
1950 2014-07-30 Yao Qi <yao@codesourcery.com>
1951
1952 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1953 comments.
1954 * parse.c (exp_iterate): Update comments.
1955
1956 2014-07-30 Gary Benson <gbenson@redhat.com>
1957
1958 * common/common-defs.h: New file.
1959 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1960 * defs.h: Include common-defs.h.
1961 Do not include config.h or build-gnulib/config.h.
1962
1963 2014-07-30 Gary Benson <gbenson@redhat.com>
1964
1965 * common/common-utils.h: Do not include config.h.
1966 * nat/linux-btrace.h: Likewise.
1967
1968 2014-07-30 Gary Benson <gbenson@redhat.com>
1969
1970 * btrace.c: Include defs.h.
1971 * common/ptid.c: Include defs.h or server.h as appropriate.
1972 * nat/mips-linux-watch.c: Likewise.
1973
1974 2014-07-29 Tom Tromey <tromey@redhat.com>
1975
1976 * target.c (target_is_pushed): Simplify.
1977
1978 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1979
1980 GDB 7.8 released.
1981
1982 2014-07-29 Yao Qi <yao@codesourcery.com>
1983
1984 PR gdb/17206
1985 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1986
1987 2014-07-28 Doug Evans <xdje42@gmail.com>
1988
1989 PR guile/17203
1990 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1991 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1992 parameters.
1993
1994 2014-07-28 Will Newton <will.newton@linaro.org>
1995
1996 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1997 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1998 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1999 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2000 (THUMB2_EABI_SYSCALL): Likewise.
2001 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2002 struct tramp_frame.
2003 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2004 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2005
2006 2014-07-27 Doug Evans <xdje42@gmail.com>
2007
2008 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2009
2010 2014-07-27 Doug Evans <xdje42@gmail.com>
2011
2012 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2013
2014 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2015 Doug Evans <xdje42@gmail.com>
2016
2017 PR guile/17146
2018 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2019 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2020 * configure.ac: Try to use guild to compile an scm file, if it fails
2021 then disable guile support.
2022 * configure: Regenerate.
2023 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2024 GUILE_FILE_LIST.
2025 (GUILE_COMPILED_FILES): New variable.
2026 (GUILE_FILES) Update.
2027 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2028 (stamp-guile): Compile scm files.
2029 * guile/guile.c (boot_guile_support): New function.
2030 (standard_throw_args_p): New function.
2031 (print_standard_throw_error, print_throw_error): New functions.
2032 (handle_boot_error): New function.
2033 (initialize_scheme_side): Rewrite to call boot_guile_support.
2034 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2035 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2036
2037 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2038 Doug Evans <xdje42@gmail.com>
2039
2040 PR guile/17146
2041 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2042 * guile/lib/gdb/support.scm: New file.
2043 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2044 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2045 All uses updated.
2046 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2047 All uses updated.
2048 (%assert-type): Ditto, and renamed to assert-type.
2049 (%exception-print-style): Delete.
2050
2051 2014-07-26 Doug Evans <xdje42@gmail.com>
2052
2053 PR build/17105
2054 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2055 * configure: Regenerate.
2056 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2057 PYTHON_FILES.
2058 (PYTHON_FILES): New variable.
2059 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2060 (GUILE_FILES): New variable.
2061 (stamp-python, install-python, uninstall-python): Handle empty
2062 file list.
2063 (stamp-guile, install-guile, uninstall-guile): Ditto.
2064
2065 2014-07-26 Doug Evans <xdje42@gmail.com>
2066
2067 PR guile/17177
2068 * guile/lib/gdb.scm (pretty-printers): Export.
2069 (set-pretty-printers!): Export.
2070 * guile/lib/gdb/printing.scm (gdb module): Update.
2071 (prepend-pretty-printer!, append-pretty-printer!): Update.
2072 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2073 (pretty_printer_list_var): Delete.
2074 (pretty_printer_list): New static global.
2075 (gdbscm_pretty_printers): New function.
2076 (gdbscm_set_pretty_printers_x): New function.
2077 (ppscm_find_pretty_printer_from_gdb): Update.
2078 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2079 (gdbscm_initialize_pretty_printers): Update.
2080
2081 2014-07-26 Doug Evans <xdje42@gmail.com>
2082
2083 PR 17185
2084 * configure.ac: Add check for header gc/gc.h.
2085 Add check for function setenv.
2086 * configure: Regenerate.
2087 * config.in: Regenerate.
2088 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2089
2090 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2091
2092 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2093 variation in gdbarch matching.
2094
2095 2014-07-25 Tom Tromey <tromey@redhat.com>
2096
2097 * exec.c (using_exec_ops): Remove.
2098 (exec_close_1): Update. Remove extraneous block, reindent.
2099 (add_target_sections): Use target_is_pushed.
2100
2101 2014-07-25 Pedro Alves <palves@redhat.com>
2102
2103 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2104 * monitor.c (monitor_create_inferior): Likewise.
2105 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2106 * remote-sim.c (gdbsim_create_inferior): Likewise.
2107 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2108 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2109 * windows-nat.c (do_initial_windows_stuff): Likewise.
2110
2111 2014-07-25 Pedro Alves <palves@redhat.com>
2112
2113 * NEWS: Mention signal passing and "signal" command changes.
2114 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2115 comment.
2116 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2117 call.
2118 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2119 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2120 (jump_command): Adjust clear_proceed_status call.
2121 (signal_command): Warn if other thread that are resumed have
2122 signals that will be delivered. Adjust clear_proceed_status call.
2123 (until_next_command, finish_command)
2124 (proceed_after_attach_callback, attach_command_post_wait)
2125 (attach_command): Adjust clear_proceed_status call.
2126 * infrun.c (proceed_after_vfork_done): Likewise.
2127 (proceed_after_attach_callback): Adjust comment.
2128 (clear_proceed_status_thread): Clear stop_signal if not in pass
2129 state.
2130 (clear_proceed_status_callback): Delete.
2131 (clear_proceed_status): New 'step' parameter. Only clear the
2132 proceed status of threads the command being prepared is about to
2133 resume.
2134 (proceed): If passed in an explicit signal, override stop_signal
2135 with it. Don't pass the last stop signal to the thread we're
2136 resuming.
2137 (init_wait_for_inferior): Adjust clear_proceed_status call.
2138 (switch_back_to_stepped_thread): Clear the signal if it should not
2139 be passed.
2140 * infrun.h (clear_proceed_status): New 'step' parameter.
2141 (user_visible_resume_ptid): Add comment.
2142 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2143 signal is in pass state.
2144 * remote.c (append_pending_thread_resumptions): Likewise.
2145 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2146
2147 2014-07-25 Tom Tromey <tromey@redhat.com>
2148
2149 * target.h (target_stopped_data_address)
2150 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2151 parentheses.
2152
2153 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2154
2155 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2156 comments.
2157 (avr_pointer_to_address): Likewise.
2158
2159 2014-07-24 Tom Tromey <tromey@redhat.com>
2160
2161 * monitor.c (compile_pattern): Update.
2162 * target.h (struct target_ops) <to_shortname, to_longname,
2163 to_doc>: Now const.
2164
2165 2014-07-24 Tom Tromey <tromey@redhat.com>
2166
2167 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2168 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2169 (add_info_alias, add_com): Make "doc" const.
2170 (print_doc_line): Make "str" const.
2171 (delete_cmd): Update.
2172 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2173 (print_doc_line): Update.
2174 * cli/cli-script.c (document_command): Update.
2175 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2176 (add_com, add_info, add_info_alias): Update.
2177 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2178 * python/py-cmd.c (cmdpy_destroyer): Update.
2179
2180 2014-07-24 Tom Tromey <tromey@redhat.com>
2181
2182 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2183 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2184 (help_cmd_list): Constify.
2185 (lookup_cmd): Update.
2186 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2187 const.
2188 (help_cmd_list, apropos_cmd): Update.
2189 * cli/cli-script.c (show_user): Update.
2190 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2191 * cli/cli-setshow.h (cmd_show_list): Update.
2192 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2193 (cmd_show_list): Update.
2194 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2195 * python/py-cmd.c (cmdpy_destroyer): Update.
2196
2197 2014-07-24 Tom Tromey <tromey@redhat.com>
2198
2199 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2200 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2201 const.
2202 * command.h (deprecate_cmd): Update.
2203 * maint.c (maintenance_do_deprecate): Add casts.
2204
2205 2014-07-24 Tom Tromey <tromey@redhat.com>
2206
2207 * cli/cli-decode.c (help_cmd): Make parameter "const".
2208 * cli/cli-decode.h (help_cmd): Update.
2209
2210 2014-07-24 Tom Tromey <tromey@redhat.com>
2211
2212 * stack.c (up_silently_base, down_silently_base): Make argument
2213 const.
2214
2215 2014-07-24 Tom Tromey <tromey@redhat.com>
2216
2217 * solib.c (solib_add): Make "pattern" const.
2218 * solib.h (solib_add): Update.
2219
2220 2014-07-24 Tom Tromey <tromey@redhat.com>
2221
2222 * remote.c (remote_serial_open, print_packet, putpkt)
2223 (putpkt_binary): Constify.
2224 * remote.h (putpkt): Update.
2225
2226 2014-07-24 Tom Tromey <tromey@redhat.com>
2227
2228 * monitor.c (monitor_open): Make "args" const.
2229 * monitor.h (monitor_open): Update.
2230
2231 2014-07-24 Tom Tromey <tromey@redhat.com>
2232
2233 * maint.c (match_bfd_flags): Make "string" const.
2234 (print_bfd_section_info): Remove casts.
2235 (print_objfile_section_info): Make "string" const.
2236
2237 2014-07-24 Tom Tromey <tromey@redhat.com>
2238
2239 * inf-child.c (inf_child_open_target): Make "arg" const.
2240 * inf-child.h (inf_child_open_target): Update.
2241
2242 2014-07-24 Tom Tromey <tromey@redhat.com>
2243
2244 * environ.c (unset_in_environ): Make "var" const.
2245 * environ.h (unset_in_environ): Update.
2246
2247 2014-07-24 Tom Tromey <tromey@redhat.com>
2248
2249 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2250 Make "cmd" const.
2251 (scan_filename_with_cleanup): Likewise.
2252 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2253 Make arguments const.
2254 (restore_command): Update.
2255
2256 2014-07-24 Pedro Alves <palves@redhat.com>
2257
2258 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2259
2260 2014-07-24 Tom Tromey <tromey@redhat.com>
2261 Gary Benson <gbenson@redhat.com>
2262
2263 * nat/linux-ptrace.c (additional_flags): New global.
2264 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2265 additional_flags; don't check GDBSERVER.
2266 (linux_ptrace_set_additional_flags): New function.
2267 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2268 Declare.
2269 * linux-nat.c (_initialize_linux_nat): Call
2270 linux_ptrace_set_additional_flags.
2271
2272 2014-07-24 Tom Tromey <tromey@redhat.com>
2273
2274 * make-target-delegates (munge_type, write_debugmethod): New
2275 functions.
2276 (debug_names): New global.
2277 ($TARGET_DEBUG_PRINTER): New global.
2278 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2279 name.
2280 Write debug methods. Generate init_debug_target.
2281 * target-debug.h: New file.
2282 * target-delegates.c: Rebuild.
2283 * target.c: Include target-debug.h.
2284 (debug_target): Hoist definition.
2285 (target_kill, target_get_section_table, target_memory_map)
2286 (target_flash_erase, target_flash_done, target_detach)
2287 (target_disconnect, target_wait, target_resume)
2288 (target_pass_signals, target_program_signals, target_follow_fork)
2289 (target_mourn_inferior, target_search_memory)
2290 (target_thread_address_space, target_close)
2291 (target_find_new_threads, target_core_of_thread)
2292 (target_verify_memory, target_insert_mask_watchpoint)
2293 (target_remove_mask_watchpoint): Remove targetdebug code.
2294 (debug_to_post_attach, debug_to_prepare_to_store)
2295 (debug_to_files_info, debug_to_insert_breakpoint)
2296 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2297 (debug_to_region_ok_for_hw_watchpoint)
2298 (debug_to_can_accel_watchpoint_condition)
2299 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2300 (debug_to_watchpoint_addr_within_range)
2301 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2302 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2303 (debug_to_terminal_init, debug_to_terminal_inferior)
2304 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2305 (debug_to_terminal_save_ours, debug_to_terminal_info)
2306 (debug_to_load, debug_to_post_startup_inferior)
2307 (debug_to_insert_fork_catchpoint)
2308 (debug_to_remove_fork_catchpoint)
2309 (debug_to_insert_vfork_catchpoint)
2310 (debug_to_remove_vfork_catchpoint)
2311 (debug_to_insert_exec_catchpoint)
2312 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2313 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2314 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2315 (setup_target_debug): Call init_debug_target.
2316 * target.h (TARGET_DEBUG_PRINTER): New macro.
2317 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2318 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2319
2320 2014-07-24 Gary Benson <gbenson@redhat.com>
2321
2322 * exceptions.h (throw_vfatal): Renamed to...
2323 (throw_vquit): New declaration.
2324 (throw_quit): Likewise.
2325 * exceptions.c (throw_vfatal): Renamed to...
2326 (throw_vquit): New function.
2327 (throw_quit): Likewise.
2328 (throw_error): Call throw_verror rather than throw_it.
2329 * utils.h (vfatal): Removed.
2330 (fatal): Likewise.
2331 * utils.c (vfatal): Removed.
2332 (fatal): Likewise.
2333 (internal_verror): Replaced call to fatal with call to throw_quit.
2334 (quit): Replaced calls to fatal with calls to throw_quit.
2335
2336 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2337
2338 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2339 target_read_code.
2340
2341 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2342
2343 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2344 less than zero in conditional expression.
2345
2346 2014-07-23 Tom Tromey <tromey@redhat.com>
2347
2348 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2349 ($INTRO_PART): Don't match whitespace.
2350 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2351 argument matching.
2352 ($METHOD): Add $METHOD_TRAILER.
2353 (trim): Rewrite.
2354 (scan_target_h): New sub.
2355 Change main loop not to collect state.
2356 * target-delegates.c: Rebuild.
2357
2358 2014-07-23 Gary Benson <gbenson@redhat.com>
2359
2360 * cp-support.c (gdb_demangle): Fix build on systems without
2361 sigaltstack.
2362
2363 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2364
2365 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2366 for reference entry value target data value.
2367
2368 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2369
2370 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2371 value_available_contents_eq.
2372
2373 2014-07-22 Pedro Alves <palves@redhat.com>
2374
2375 * value.c (allocate_optimized_out_value): Don't mark value as
2376 non-lazy.
2377
2378 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2379
2380 * MAINTAINERS (Write After Approval): Update my email address.
2381
2382 2014-07-20 Doug Evans <dje@google.com>
2383
2384 PR server/17147
2385 * remote.c (putpkt_binary): Add text to error message.
2386
2387 2014-07-20 Yao Qi <yao@codesourcery.com>
2388
2389 * eval.c: Remove "Chill" from comments.
2390 * gdbtypes.h: Likewise.
2391 * symtab.h: Likewise.
2392
2393 2014-07-20 Yao Qi <yao@codesourcery.com>
2394
2395 * std-operator.def: Update comments to TERNOP_SLICE.
2396
2397 2014-07-20 Yao Qi <yao@codesourcery.com>
2398
2399 * std-operator.def: Remove BINOP_RANGE.
2400 * breakpoint.c (watchpoint_exp_is_const): Update.
2401 * expprint.c (dump_subexp_body_standard): Likewise.
2402 * eval.c (init_array_element): Remove dead code.
2403 (evaluate_subexp_standard): Likewise.
2404
2405 2014-07-20 Yao Qi <yao@codesourcery.com>
2406
2407 * std-operator.def: Remove BINOP_IN.
2408 * breakpoint.c (watchpoint_exp_is_const): Update.
2409 * eval.c (evaluate_subexp_standard): Likewise.
2410 * expprint.c (dump_subexp_body_standard): Likewise.
2411
2412 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2413
2414 * microblaze-tdep.c (microblaze_register_names): Add
2415 the rshr and rslr register names.
2416 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2417 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2418 Use of tdesc_numbered_register. Use of
2419 microblaze_register_g_packet_guesses. Use of
2420 tdesc_use_registers. Use of set_gdbarch_register_type.
2421 (microblaze_register_g_packet_guesses): New.
2422 * microblaze-tdep.h (microblaze_reg_num): Add
2423 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2424 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2425 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2426 * features/microblaze-core.xml: New file.
2427 * features/microblaze-stack-protect.xml: New file.
2428 * features/microblaze-with-stack-protect.c: New file.
2429 * features/microblaze-with-stack-protect.xml: New file.
2430 * features/microblaze.xml: New file.
2431 * features/microblaze.c: New file.
2432 * features/Makefile (microblaze-with-stack-protect): Add
2433 microblaze-with-stack-protect microblaze and microblaze-expedite.
2434 * regformats/microblaze-with-stack-protect.dat: New file.
2435 * regformats/microblaze.dat: New file.
2436 * doc/gdb.texinfo (MicroBlaze Features): Added.
2437
2438 2014-07-18 Tom Tromey <tromey@redhat.com>
2439
2440 * exec.c (exec_ops): Now static.
2441 * exec.h (exec_ops): Don't declare.
2442
2443 2014-07-18 Tom Tromey <tromey@redhat.com>
2444
2445 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2446 to find_target_beneath.
2447 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2448 find_target_beneath.
2449 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2450
2451 2014-07-18 Tom Tromey <tromey@redhat.com>
2452
2453 PR gdb/17130:
2454 * utils.c (quit): Use target_supports_terminal_ours.
2455 * target.h (target_supports_terminal_ours): Declare.
2456 * target.c (target_supports_delete_record): Don't check
2457 to_delete_record against NULL.
2458 (target_supports_terminal_ours): New function.
2459
2460 2014-07-18 Tom Tromey <tromey@redhat.com>
2461
2462 PR gdb/17130:
2463 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2464 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2465 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2466 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2467 * windows-nat.c (windows_xfer_partial): Always delegate.
2468 * record-btrace.c (record_btrace_xfer_partial): Simplify
2469 delegation.
2470 (record_btrace_fetch_registers, record_btrace_store_registers)
2471 (record_btrace_prepare_to_store, record_btrace_resume)
2472 (record_btrace_wait, record_btrace_find_new_threads)
2473 (record_btrace_thread_alive): Likewise.
2474 * procfs.c (procfs_xfer_partial): Always delegate.
2475 * corelow.c (core_xfer_partial): Always delegate.
2476 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2477
2478 2014-07-18 Tom Tromey <tromey@redhat.com>
2479
2480 * exec.c (exec_make_note_section): Move earlier.
2481
2482 2014-07-17 Doug Evans <dje@google.com>
2483
2484 PR gdb/17170
2485 * maint.c (count_symtabs_and_blocks): Handle NULL
2486 current_program_space.
2487 (report_command_stats): Check global enabled flag in addition to
2488 recorded enabled flag.
2489 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2490
2491 2014-07-16 Pedro Alves <palves@redhat.com>
2492
2493 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2494
2495 2014-07-16 Tom Tromey <tromey@redhat.com>
2496
2497 * target.h (struct target_ops) <to_delete_record>: Reformat
2498 comment.
2499
2500 2014-07-16 Tom Tromey <tromey@redhat.com>
2501
2502 * target-delegates.c: Rebuild.
2503
2504 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2505
2506 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2507 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2508 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2509 (avr_pointer_to_address): Likewise.
2510 (avr_address_class_type_flags): New function.
2511 (avr_address_class_type_flags_to_name): Likewise.
2512 (avr_address_class_name_to_type_flags): Likewise.
2513 (avr_gdbarch_init): Set address_class_type_flags,
2514 address_class_type_flags_to_name and
2515 address_class_name_to_type_flags.
2516
2517 2014-07-15 Pedro Alves <palves@redhat.com>
2518
2519 * linux-nat.c (kill_callback): Save errno and work with saved
2520 copy.
2521
2522 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2523
2524 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2525
2526 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2527
2528 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2529 breakpoint support correctly.
2530
2531 2014-07-14 Pedro Alves <palves@redhat.com>
2532
2533 * utils.c (prompt_for_continue): Call target_terminal_ours.
2534
2535 2014-07-14 Pedro Alves <palves@redhat.com>
2536
2537 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2538 catch_errors. Don't re-enable stdin or notify observers where,
2539 and rethrow error.
2540 (fetch_inferior_event_wrapper): Delete.
2541
2542 2014-07-14 Pedro Alves <palves@redhat.com>
2543
2544 PR gdb/17072
2545 * top.c: Include "inf-loop.h".
2546 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2547 field.
2548 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2549 was async before.
2550 (gdb_readline_wrapper): Store whether the target is async, and
2551 make it sync.
2552
2553 2014-07-14 Pedro Alves <palves@redhat.com>
2554
2555 PR gdb/17072
2556 * top.c (gdb_readline_wrapper_line): Tweak comment.
2557 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2558 the input handler callback.
2559
2560 2014-07-14 Pedro Alves <palves@redhat.com>
2561
2562 PR gdb/17072
2563 * main.c: Include event-top.h.
2564 (handle_command_errors): New function.
2565 (catch_command_errors, catch_command_errors_const): Use it.
2566
2567 2014-07-14 Pedro Alves <palves@redhat.com>
2568
2569 * exceptions.c (catch_command_errors, catch_command_errors_const):
2570 Moved to main.c.
2571 * exceptions.h (catch_command_errors_ftype)
2572 (catch_command_errors_const_ftype): Moved to main.c.
2573 (catch_command_errors, catch_command_errors_const): Delete
2574 declarations.
2575 * main.c (catch_command_errors_ftype)
2576 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2577 (catch_command_errors, catch_command_errors_const)): Moved here
2578 from exceptions.c and make static.
2579
2580 2014-07-14 Pedro Alves <palves@redhat.com>
2581
2582 * exceptions.c (print_any_exception): Delete.
2583 (catch_exceptions_with_msg): Use exception_print instead of
2584 print_any_exception.
2585 (catch_errors): Use exception_fprintf instead of
2586 print_any_exception.
2587 (catch_command_errors, catch_command_errors_const): Use
2588 exception_print instead of print_any_exception.
2589
2590 2014-07-14 Pedro Alves <palves@redhat.com>
2591
2592 * infcall.c (run_inferior_call): Set 'sync_execution' while
2593 running the inferior call.
2594
2595 2014-07-14 Pedro Alves <palves@redhat.com>
2596
2597 * value.c (value_contents_equal): Delete function.
2598 * value.h (value_contents_equal): Delete declaration.
2599
2600 2014-07-14 Tom Tromey <tromey@redhat.com>
2601
2602 PR exp/17106:
2603 * gdbtypes.c (is_dynamic_type_internal): New function, from
2604 is_dynamic_type.
2605 (is_dynamic_type): Rewrite.
2606 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2607 (resolve_dynamic_struct): Likewise.
2608 (resolve_dynamic_type_internal): New function, from
2609 resolve_dynamic_type.
2610 (resolve_dynamic_type): Rewrite.
2611
2612 2014-07-14 Tom Tromey <tromey@redhat.com>
2613
2614 * target.c (target_require_runnable): Also check record_stratum.
2615 Update comment.
2616
2617 2014-07-11 Yao Qi <yao@codesourcery.com>
2618
2619 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2620 thumb_instruction_restores_sp return true.
2621
2622 2014-07-11 Yao Qi <yao@codesourcery.com>
2623
2624 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2625 (thumb_in_function_epilogue_p): Call
2626 thumb_instruction_restores_sp.
2627
2628 2014-07-11 Yao Qi <yao@codesourcery.com>
2629
2630 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2631 'add sp, #imm'.
2632 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2633
2634 2014-07-11 Gary Benson <gbenson@redhat.com>
2635
2636 * amd64-linux-nat.c (gdbcore.h): Remove include.
2637 (regset.h): Likewise.
2638 (nat/linux-btrace.h): Likewise.
2639 (btrace.h): Likewise.
2640 (gdb_assert.h): Likewise.
2641 (string.h): Likewise.
2642 (sys/uio.h): Likewise.
2643 (sys/debugreg.h): Likewise.
2644 (sys/syscall.h): Likewise.
2645 (sys/procfs.h): Likewise.
2646 (sys/user.h): Likewise.
2647 (asm/ptrace.h): Likewise.
2648 (i386-nat.h): Likewise.
2649 * i386-linux-nat.c (i386-nat.h): Likewise.
2650 (regset.h): Likewise.
2651 (target.h): Likewise.
2652 (linux-nat.h): Likewise.
2653 (nat/linux-btrace.h): Likewise.
2654 (btrace.h): Likewise.
2655 (gdb_assert.h): Likewise.
2656 (string.h): Likewise.
2657 (sys/uio.h): Likewise.
2658 (sys/user.h): Likewise.
2659 (sys/procfs.h): Likewise.
2660 (sys/reg.h): Likewise.
2661 (sys/debugreg.h): Likewise.
2662 (ORIG_EAX): Remove definition.
2663
2664 2014-07-11 Gary Benson <gbenson@redhat.com>
2665
2666 * i386-linux-nat.h: New file.
2667 * x86-linux-nat.h: Likewise.
2668 * x86-linux-nat.c: Likewise.
2669 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2670 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2671 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2672 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2673 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2674 (PTRACE_SETREGSET): Likewise.
2675 (arch_lwp_info): Now in x86-linux-nat.c.
2676 (have_ptrace_getregset): Now in x86-linux-nat.h.
2677 (x86_linux_dr_get): Now in x86-linux-nat.c.
2678 (x86_linux_dr_set): Likewise.
2679 (x86_linux_dr_get_addr): Likewise.
2680 (x86_linux_dr_get_control): Likewise.
2681 (x86_linux_dr_get_status): Likewise.
2682 (update_debug_registers_callback): Likewise.
2683 (x86_linux_dr_set_control): Likewise.
2684 (x86_linux_dr_set_addr): Likewise.
2685 (x86_linux_prepare_to_resume): Likewise.
2686 (x86_linux_new_thread): Likewise.
2687 (x86_linux_new_fork): Likewise.
2688 (x86_linux_get_thread_area): Likewise.
2689 (super_post_startup_inferior): Likewise.
2690 (x86_linux_child_post_startup_inferior): Likewise.
2691 (AMD64_LINUX_USER64_CS): Likewise.
2692 (AMD64_LINUX_X32_DS): Likewise.
2693 (x86_linux_read_description): Likewise.
2694 (x86_linux_enable_btrace): Likewise.
2695 (x86_linux_disable_btrace): Likewise.
2696 (x86_linux_teardown_btrace): Likewise.
2697 (x86_linux_read_btrace): Likewise.
2698 (x86_linux_create_target): Likewise.
2699 (x86_linux_add_target): Likewise.
2700 * i386-linux-nat.c (x86-linux-nat.h): New include.
2701 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2702 (PTRACE_SETREGSET): Likewise.
2703 (arch_lwp_info): Now in x86-linux-nat.c.
2704 (have_ptrace_getregset): Now in x86-linux-nat.h.
2705 (x86_linux_dr_get): Now in x86-linux-nat.c.
2706 (x86_linux_dr_set): Likewise.
2707 (x86_linux_dr_get_addr): Likewise.
2708 (x86_linux_dr_get_control): Likewise.
2709 (x86_linux_dr_get_status): Likewise.
2710 (update_debug_registers_callback): Likewise.
2711 (x86_linux_dr_set_control): Likewise.
2712 (x86_linux_dr_set_addr): Likewise.
2713 (x86_linux_prepare_to_resume): Likewise.
2714 (x86_linux_new_thread): Likewise.
2715 (x86_linux_new_fork): Likewise.
2716 (x86_linux_get_thread_area): Likewise.
2717 (super_post_startup_inferior): Likewise.
2718 (x86_linux_child_post_startup_inferior): Likewise.
2719 (AMD64_LINUX_USER64_CS): Likewise.
2720 (AMD64_LINUX_X32_DS): Likewise.
2721 (x86_linux_read_description): Likewise.
2722 (x86_linux_enable_btrace): Likewise.
2723 (x86_linux_disable_btrace): Likewise.
2724 (x86_linux_teardown_btrace): Likewise.
2725 (x86_linux_read_btrace): Likewise.
2726 (x86_linux_create_target): Likewise.
2727 (x86_linux_add_target): Likewise.
2728
2729 2014-07-11 Gary Benson <gbenson@redhat.com>
2730
2731 * amd64-linux-nat.c: Comment and whitespace changes.
2732 * i386-linux-nat.c: Comment and whitespace changes.
2733
2734 2014-07-11 Gary Benson <gbenson@redhat.com>
2735
2736 * amd64-linux-nat.c (x86_linux_create_target): New function.
2737 (x86_linux_add_target): Likewise.
2738 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2739 * i386-linux-nat.c (x86_linux_create_target): New function.
2740 (x86_linux_add_target): Likewise.
2741 (_initialize_i386_linux_nat): Delegate to the above new functions.
2742
2743 2014-07-11 Gary Benson <gbenson@redhat.com>
2744
2745 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2746 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2747 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2748 (ps_get_thread_area): Delegate to the above.
2749
2750 2014-07-11 Gary Benson <gbenson@redhat.com>
2751
2752 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2753 x86_linux_read_description. All uses updated. amd64-specific
2754 code conditionalized. Conditionalized i386-specific code added.
2755 Redundant cast removed.
2756 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2757 x86_linux_read_description. All uses updated. i386-specific
2758 code conditionalized. Conditionalized amd64-specific code added.
2759 One sizeof replaced with the actual type it is describing.
2760
2761 2014-07-11 Gary Benson <gbenson@redhat.com>
2762
2763 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2764 x86_linux_dr_get. All uses updated.
2765 (amd64_linux_dr_set): Renamed to
2766 x86_linux_dr_set. All uses updated.
2767 (amd64_linux_dr_get_addr): Renamed to
2768 x86_linux_dr_get_addr. All uses updated.
2769 (amd64_linux_dr_get_control): Renamed to
2770 x86_linux_dr_get_control. All uses updated.
2771 (amd64_linux_dr_get_status): Renamed to
2772 x86_linux_dr_get_status. All uses updated.
2773 (amd64_linux_dr_set_control): Renamed to
2774 x86_linux_dr_set_control. All uses updated.
2775 (amd64_linux_dr_set_addr): Renamed to
2776 x86_linux_dr_set_addr. All uses updated.
2777 (amd64_linux_prepare_to_resume): Renamed to
2778 x86_linux_prepare_to_resume. All uses updated.
2779 (amd64_linux_new_thread): Renamed to
2780 x86_linux_new_thread. All uses updated.
2781 (amd64_linux_new_fork): Renamed to
2782 x86_linux_new_fork. All uses updated.
2783 (amd64_linux_child_post_startup_inferior): Renamed to
2784 x86_linux_child_post_startup_inferior. All uses updated.
2785 (amd64_linux_enable_btrace): Renamed to
2786 x86_linux_enable_btrace. All uses updated.
2787 (amd64_linux_disable_btrace): Renamed to
2788 x86_linux_disable_btrace. All uses updated.
2789 (amd64_linux_teardown_btrace): Renamed to
2790 x86_linux_teardown_btrace. All uses updated.
2791 (amd64_linux_read_btrace): Renamed to
2792 x86_linux_read_btrace. All uses updated.
2793 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2794 x86_linux_dr_get. All uses updated.
2795 (i386_linux_dr_set): Renamed to
2796 x86_linux_dr_set. All uses updated.
2797 (i386_linux_dr_get_addr): Renamed to
2798 x86_linux_dr_get_addr. All uses updated.
2799 (i386_linux_dr_get_control): Renamed to
2800 x86_linux_dr_get_control. All uses updated.
2801 (i386_linux_dr_get_status): Renamed to
2802 x86_linux_dr_get_status. All uses updated.
2803 (i386_linux_dr_set_control): Renamed to
2804 x86_linux_dr_set_control. All uses updated.
2805 (i386_linux_dr_set_addr): Renamed to
2806 x86_linux_dr_set_addr. All uses updated.
2807 (i386_linux_prepare_to_resume): Renamed to
2808 x86_linux_prepare_to_resume. All uses updated.
2809 (i386_linux_new_thread): Renamed to
2810 x86_linux_new_thread. All uses updated.
2811 (i386_linux_new_fork): Renamed to
2812 x86_linux_new_fork. All uses updated.
2813 (i386_linux_child_post_startup_inferior): Renamed to
2814 x86_linux_child_post_startup_inferior. All uses updated.
2815 (i386_linux_enable_btrace): Renamed to
2816 x86_linux_enable_btrace. All uses updated.
2817 (i386_linux_disable_btrace): Renamed to
2818 x86_linux_disable_btrace. All uses updated.
2819 (i386_linux_teardown_btrace): Renamed to
2820 x86_linux_teardown_btrace. All uses updated.
2821 (i386_linux_read_btrace): Renamed to
2822 x86_linux_read_btrace. All uses updated.
2823
2824 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2825
2826 * remote.c (extended_remote_post_attach): New function.
2827 (init_extended_remote_ops): Install it as to_post_attach method.
2828
2829 2014-07-09 Pedro Alves <palves@redhat.com>
2830
2831 * infcmd.c (attach_command_post_wait): Don't call
2832 target_terminal_inferior here.
2833 (attach_command): Call it here instead.
2834
2835 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2836
2837 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2838 field.
2839 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2840 from varobj.c, with additional checks.
2841 (c_varobj_ops): Fill in is_path_expr_parent field.
2842 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2843 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2844 field.
2845 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2846 ops method.
2847 (varobj_default_is_path_expr_parent): New function.
2848 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2849 (varobj_default_is_path_expr_parent): Declare new function.
2850
2851 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2852
2853 * infcmd.c (finish_backward): Turn internal error into normal error.
2854
2855 2014-07-07 Pedro Alves <palves@redhat.com>
2856
2857 PR gdb/17096
2858 * remote.c (async_handle_remote_sigint)
2859 (async_handle_remote_sigint_twice): Call
2860 gdb_call_async_signal_handler instead of
2861 mark_async_signal_handler.
2862
2863 2014-07-07 Tom Tromey <tromey@redhat.com>
2864
2865 * target-delegates.c: Rebuild.
2866 * target.c (target_info_record): Remove.
2867 * record.c (info_record_command): Unconditionally call
2868 to_info_record.
2869 * target.h (struct target_ops) <to_info_record>: Use
2870 TARGET_DEFAULT_IGNORE.
2871 (target_info_record): Remove.
2872
2873 2014-07-07 Tom Tromey <tromey@redhat.com>
2874
2875 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2876 TARGET_DEFAULT_NORETURN.
2877 * target.c (generic_tls_error): New function.
2878 (target_translate_tls_address): Don't search target stack.
2879 * target-delegates.c: Rebuild.
2880 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2881 stack.
2882 * linux-thread-db.c (thread_db_get_thread_local_address):
2883 Unconditionally call beneath target.
2884
2885 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2886
2887 * cli/cli-logging.c (pop_output_files): Assign targerr to
2888 gdb_stdtargerr.
2889
2890 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2891
2892 * MAINTAINERS (Write After Approval): Update my email address.
2893
2894 2014-07-02 Gary Benson <gbenson@redhat.com>
2895
2896 * proc-service.c (ps_xfer_memory): Update comment.
2897 (ps_pstop): Remove unused function.
2898 (ps_pcontinue): Likewise.
2899 (ps_lstop): Likewise.
2900 (ps_lcontinue): Likewise.
2901 (ps_lgetxregsize): Likewise.
2902 (ps_lgetxregs): Likewise.
2903 (ps_lsetxregs): Likewise.
2904 (ps_plog): Likewise.
2905 (ps_ptread): Likewise.
2906 (ps_ptwrite): Likewise.
2907
2908 2014-07-01 Mark Wielaard <mjw@redhat.com>
2909
2910 * dwarf2read.c (add_array_cv_type): New function.
2911 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2912 (read_tag_volatile_type): Likewise.
2913
2914 2014-07-01 Tom Tromey <tromey@redhat.com>
2915
2916 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2917 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2918 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2919 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2920 * command.h (cmd_cfunc_ftype): Move earlier.
2921 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2922 (add_com, add_info): Use cmd_cfunc_ftype.
2923
2924 2014-06-30 Tom Tromey <tromey@redhat.com>
2925
2926 * symtab.c (operator_chars): Make parameters and return type
2927 const.
2928 (file_matches): Make "files" const.
2929 (struct search_symbols_data) <files>: Now const.
2930 (search_symbols): Make "regexp" and "files" parameters const.
2931 Update.
2932 (symtab_symbol_info): Remove cast.
2933 (rbreak_command): Update.
2934 * symtab.h (search_symbols): Update.
2935
2936 2014-06-27 Yao Qi <yao@codesourcery.com>
2937
2938 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2939 Change parameter type to 'struct thread_info *'. Caller
2940 updated.
2941 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2942 Update declaration.
2943 * dummy-frame.c (struct dummy_frame_id): New.
2944 (dummy_frame_id_eq): New function.
2945 (struct dummy_frame) <id>: Change its type to 'struct
2946 dummy_frame_id'.
2947 (dummy_frame_push): Add parameter ptid and save it in
2948 dummy_frame_id.
2949 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2950 inferior_ptid.
2951 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2952 to inferior_ptid.
2953 (lookup_dummy_frame): Change parameter type to 'struct
2954 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2955 instead of frame_id_eq.
2956 (dummy_frame_pop): Add parameter ptid. Callers updated.
2957 Update comments. Compose dummy_frame_id and pass it to
2958 lookup_dummy_frame.
2959 (dummy_frame_discard): Add parameter ptid.
2960 (dummy_frame_sniffer): Compose dummy_frame_id and call
2961 dummy_frame_id_eq instead of frame_id_eq.
2962 (fprint_dummy_frames): Print ptid.
2963 * dummy-frame.h: Remove comments.
2964 (dummy_frame_push): Add ptid in declaration.
2965 (dummy_frame_pop, dummy_frame_discard): Likewise.
2966
2967 2014-06-26 Tom Tromey <tromey@redhat.com>
2968
2969 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2970 * command.h (error_no_arg): Update.
2971
2972 2014-06-26 Tom Tromey <tromey@redhat.com>
2973
2974 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2975 (do_show_command): Make "arg" const.
2976 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2977
2978 2014-06-26 Tom Tromey <tromey@redhat.com>
2979
2980 * record-full.c (record_full_get_bookmark): Make "args" const.
2981 (record_full_goto_bookmark): Make "raw_bookmark" const.
2982 * record.c (record_goto): New function.
2983 (cmd_record_goto): Use it. Now static.
2984 * record.h (record_goto): Declare.
2985 (cmd_record_goto): Remove declaration.
2986 * target-delegates.c: Rebuild.
2987 * target.h (struct target_ops) <to_get_bookmark,
2988 to_goto_bookmark>: Make parameter const.
2989
2990 2014-06-26 Tom Tromey <tromey@redhat.com>
2991
2992 * defs.h (generic_load): Update.
2993 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2994 * monitor.c (monitor_load): Make "args" const.
2995 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2996 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2997 const.
2998 (mips_load): Make "file" const.
2999 * remote-sim.c (gdbsim_load): Make "args" const.
3000 * remote.c (remote_load): Make "name" const.
3001 * symfile.c (generic_load): Make "args" const.
3002 * target-delegates.c: Rebuild.
3003 * target.c (target_load): Make "arg" const.
3004 (debug_to_load): Make "args" const.
3005 * target.h (struct target_ops) <to_load>: Make parameter const.
3006 (target_load): Update.
3007
3008 2014-06-26 Tom Tromey <tromey@redhat.com>
3009
3010 PR symtab/16902:
3011 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3012 (dwarf2_physname, read_partial_die)
3013 (guess_partial_die_structure_name, fixup_partial_die)
3014 (guess_full_die_structure_name, anonymous_struct_prefix)
3015 (dwarf2_name): Use per-BFD obstack.
3016
3017 2014-06-26 Yao Qi <yao@codesourcery.com>
3018
3019 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3020 dummyframe and this_id into inner block below.
3021
3022 2014-06-26 Yao Qi <yao@codesourcery.com>
3023
3024 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3025 with "signal_pass[0]" in the initialization of signal_pass.
3026
3027 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3028
3029 * record-btrace.c (record_btrace_generating_corefile)
3030 (record_btrace_prepare_to_generate_core)
3031 (record_btrace_done_generating_core): New.
3032 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3033 (record_btrace_store_registers, record_btrace_prepare_to_store):
3034 Forward request when generating a core file.
3035 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3036 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3037 to_done_generating_core.
3038
3039 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3040
3041 * target.h (target_ops) <to_prepare_to_generate_core>
3042 <to_done_generating_core>: New.
3043 (target_prepare_to_generate_core, target_done_generating_core): New.
3044 * target.c (target_prepare_to_generate_core)
3045 (target_done_generating_core): New.
3046 * target-delegates.c: Regenerate.
3047 * gcore.c: (write_gcore_file): Rename to ...
3048 (write_gcore_file_1): ...this.
3049 (write_gcore_file): Call target_prepare_to_generate_core
3050 and target_done_generating_core.
3051
3052 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3053
3054 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3055 * gcore.c (write_gcore_file): Free memory returned from
3056 make_corefile_notes.
3057 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3058 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3059
3060 2014-06-24 Yao Qi <yao@codesourcery.com>
3061
3062 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3063 (arm_linux_init_abi): Set skip_trampoline_code with
3064 gdbarch_skip_trampoline_code instead of
3065 find_solib_trampoline_target.
3066
3067 2014-06-24 Yao Qi <yao@codesourcery.com>
3068
3069 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3070 arm_skip_bx_reg returns non-zero.
3071
3072 2014-06-24 Yao Qi <yao@codesourcery.com>
3073
3074 * arm-tdep.c (arm_skip_bx_reg): New function.
3075 (arm_skip_stub): Call arm_skip_bx_reg.
3076
3077 2014-06-23 Don Breazeal <donb@codesourcery.com>
3078
3079 * MAINTAINERS: Add myself as write-after-approval maintainer.
3080
3081 2014-06-23 Pedro Alves <palves@redhat.com>
3082
3083 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3084 DR_CONTROL before setting DR0..DR3.
3085 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3086 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3087 bits of DR_CONTROL related to the debug register slot being
3088 disabled. If all slots are vacant, clear local slowdown as well,
3089 and assert DR_CONTROL is 0.
3090
3091 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3092
3093 * python/lib/gdb/command/xmethods.py
3094 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3095 current progspace only if the string "progspace" matches LOCUS_RE.
3096
3097 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3098
3099 Fix --with-system-readline with readline-6.3 patch 5.
3100 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3101 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3102 types.
3103
3104 2014-06-20 Tom Tromey <tromey@redhat.com>
3105
3106 * dwarf2read.c (dw2_get_real_path): Use correct type in
3107 OBSTACK_CALLOC.
3108 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3109
3110 2014-06-20 Gary Benson <gbenson@redhat.com>
3111
3112 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3113 * common/glibc_thread_db.h: Likewise.
3114 * common/i386-cpuid.h: Likewise.
3115 * common/i386-gcc-cpuid.h: Likewise.
3116 * common/linux-btrace.h: Likewise.
3117 * common/linux-osdata.h: Likewise.
3118 * common/linux-procfs.h: Likewise.
3119 * common/linux-ptrace.h: Likewise.
3120 * common/mips-linux-watch.h: Likewise.
3121 * common/linux-btrace.c: Moved to nat.
3122 * common/linux-osdata.c: Likewise.
3123 * common/linux-procfs.c: Likewise.
3124 * common/linux-ptrace.c: Likewise.
3125 * common/mips-linux-watch.c: Likewise.
3126 * nat/gdb_thread_db.h: Moved from common.
3127 * nat/glibc_thread_db.h: Likewise.
3128 * nat/i386-cpuid.h: Likewise.
3129 * nat/i386-gcc-cpuid.h: Likewise.
3130 * nat/linux-btrace.c: Likewise.
3131 * nat/linux-btrace.h: Likewise.
3132 * nat/linux-osdata.c: Likewise.
3133 * nat/linux-osdata.h: Likewise.
3134 * nat/linux-procfs.c: Likewise.
3135 * nat/linux-procfs.h: Likewise.
3136 * nat/linux-ptrace.c: Likewise.
3137 * nat/linux-ptrace.h: Likewise.
3138 * nat/mips-linux-watch.c: Likewise.
3139 * nat/mips-linux-watch.h: Likewise.
3140 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3141 (object file files): Reordered.
3142 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3143 of glibc_thread_db.h.
3144
3145 2014-06-20 Gary Benson <gbenson@redhat.com>
3146
3147 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3148 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3149 (i386_dr_low): Likewise.
3150 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3151 (i386_dr_low_set_addr): Likewise.
3152 (i386_dr_low_get_addr): Likewise.
3153 (i386_dr_low_can_set_control): Likewise.
3154 (i386_dr_low_set_control): Likewise.
3155 (i386_dr_low_get_control): Likewise.
3156 (i386_dr_low_get_status): Likewise.
3157 (i386_get_debug_register_length): Likewise.
3158 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3159 (i386_dr_low): Likewise.
3160 * nat/i386-dregs.c (i386-low.h): Remove include.
3161 (i386-nat.h): Likewise.
3162 (nat/i386-dregs.h): New include.
3163 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3164 (i386_dr_low_set_addr): Likewise.
3165 (i386_dr_low_get_addr): Likewise.
3166 (i386_dr_low_can_set_control): Likewise.
3167 (i386_dr_low_set_control): Likewise.
3168 (i386_dr_low_get_control): Likewise.
3169 (i386_dr_low_get_status): Likewise.
3170 (i386_get_debug_register_length): Likewise.
3171 (debug_hw_points): Likewise.
3172
3173 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3174
3175 * Makefile.in (SFILES): Add d-exp.y.
3176 (YYFILES): Add d-exp.c.
3177 (YYOBJ): Add d-exp.o.
3178 (local-maintainer-clean): Delete d-exp.c.
3179 * d-exp.y: New file.
3180 * d-lang.h (d_parse): New declaration.
3181 (d_error): New declaration.
3182 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3183 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3184 PREC_ORDER operators.
3185 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3186
3187 2014-06-19 Yao Qi <yao@codesourcery.com>
3188
3189 * gdbthread.h (any_running): Remove the declaration.
3190 * thread.c (any_running): Remove.
3191
3192 2014-06-19 Yao Qi <yao@codesourcery.com>
3193
3194 * gdbthread.h (struct thread_info) <state>: Change its type to
3195 'enum thread_state'. Update comments.
3196
3197 2014-06-19 Pedro Alves <palves@redhat.com>
3198
3199 * gdbthread.h (ALL_THREADS): Delete.
3200 (ALL_NON_EXITED_THREADS): New macro.
3201 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3202 instead of ALL_THREADS.
3203 * infrun.c (find_thread_needs_step_over)
3204 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3205 instead of ALL_THREADS.
3206 * record-btrace.c (record_btrace_open)
3207 (record_btrace_stop_recording, record_btrace_close)
3208 (record_btrace_is_replaying, record_btrace_resume)
3209 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3210 * remote.c (append_pending_thread_resumptions): Likewise.
3211 * thread.c (thread_apply_all_command): Likewise.
3212
3213 2014-06-19 Gary Benson <gbenson@redhat.com>
3214
3215 * i386-nat.c (i386_stopped_by_watchpoint):
3216 Use i386_dr_stopped_by_watchpoint.
3217 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3218 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3219
3220 2014-06-19 Gary Benson <gbenson@redhat.com>
3221
3222 * nat/i386-dregs.c: New file.
3223 * Makefile.in (i386-dregs.o): New rule.
3224 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3225 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3226 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3227 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3228 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3229 * config/i386/go32.mh (NATDEPFILES): Likewise.
3230 * config/i386/linux.mh (NATDEPFILES): Likewise.
3231 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3232 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3233 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3234 * i386-nat.h (debug_hw_points): New declaration.
3235 * i386-nat.c (breakpoint.h): Remove include.
3236 (command.h): Likewise.
3237 (target.h): Likewise.
3238 (gdb_assert.h): Likewise.
3239 (debug_hw_points): Made nonstatic.
3240 (debug_printf): Now in i386-dregs.c.
3241 (TARGET_HAS_DR_LEN_8): Likewise.
3242 (DR_CONTROL_SHIFT): Likewise.
3243 (DR_CONTROL_SIZE): Likewise.
3244 (DR_RW_EXECUTE): Likewise.
3245 (DR_RW_WRITE): Likewise.
3246 (DR_RW_READ): Likewise.
3247 (DR_RW_IORW): Likewise.
3248 (DR_LEN_1): Likewise.
3249 (DR_LEN_2): Likewise.
3250 (DR_LEN_4): Likewise.
3251 (DR_LEN_8): Likewise.
3252 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3253 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3254 (DR_ENABLE_SIZE): Likewise.
3255 (DR_LOCAL_SLOWDOWN): Likewise.
3256 (DR_GLOBAL_SLOWDOWN): Likewise.
3257 (DR_CONTROL_RESERVED): Likewise.
3258 (I386_DR_CONTROL_MASK): Likewise.
3259 (I386_DR_VACANT): Likewise.
3260 (I386_DR_LOCAL_ENABLE): Likewise.
3261 (I386_DR_GLOBAL_ENABLE): Likewise.
3262 (I386_DR_DISABLE): Likewise.
3263 (I386_DR_SET_RW_LEN): Likewise.
3264 (I386_DR_GET_RW_LEN): Likewise.
3265 (I386_DR_WATCH_HIT): Likewise.
3266 (i386_wp_op_t): Likewise.
3267 (i386_show_dr): Likewise.
3268 (i386_length_and_rw_bits): Likewise.
3269 (i386_insert_aligned_watchpoint): Likewise.
3270 (i386_remove_aligned_watchpoint): Likewise.
3271 (i386_handle_nonaligned_watchpoint): Likewise.
3272 (i386_update_inferior_debug_regs): Likewise.
3273 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3274 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3275 (i386_region_ok_for_watchpoint):
3276 Use i386_dr_region_ok_for_watchpoint.
3277 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3278
3279 2014-06-19 Gary Benson <gbenson@redhat.com>
3280
3281 * i386-nat.c (i386_insert_hw_breakpoint): Use
3282 i386_insert_watchpoint.
3283 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3284
3285 2014-06-19 Gary Benson <gbenson@redhat.com>
3286
3287 * i386-nat.c (i386_dr_show): Renamed to
3288 i386_show_dr and made static. All uses updated.
3289 (i386_dr_length_and_rw_bits): Renamed to
3290 i386_length_and_rw_bits and made static.
3291 All uses updated.
3292 (i386_dr_insert_aligned_watchpoint): Renamed to
3293 i386_insert_aligned_watchpoint and made static.
3294 All uses updated.
3295 (i386_dr_remove_aligned_watchpoint): Renamed to
3296 i386_remove_aligned_watchpoint and made static.
3297 All uses updated.
3298 (i386_dr_update_inferior_debug_regs): Renamed to
3299 i386_update_inferior_debug_regs and made static.
3300 All uses updated.
3301 * nat/i386-dregs.h (i386_dr_show): Removed.
3302 (i386_dr_length_and_rw_bits): Likewise.
3303 (i386_dr_insert_aligned_watchpoint): Likewise.
3304 (i386_dr_remove_aligned_watchpoint): Likewise.
3305 (i386_dr_update_inferior_debug_regs): Likewise.
3306
3307 2014-06-19 Gary Benson <gbenson@redhat.com>
3308
3309 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3310 * configure: Regenerate.
3311 * config.in: Likewise.
3312 * main.c (signal.h): New include.
3313 (setup_alternate_signal_stack): New function.
3314 (captured_main): Call the above.
3315 * cp-support.c (signal.h): New include.
3316 (catch_demangler_crashes): New flag.
3317 (SIGJMP_BUF): New define.
3318 (SIGSETJMP): Likewise.
3319 (SIGLONGJMP): Likewise.
3320 (gdb_demangle_jmp_buf): New static global.
3321 (gdb_demangle_attempt_core_dump): Likewise.
3322 (gdb_demangle_signal_handler): New function.
3323 (gdb_demangle): If catch_demangler_crashes is set, install the
3324 above signal handler before calling bfd_demangle, and restore
3325 the original signal handler afterwards. Display the offending
3326 symbol and call demangler_warning the first time a segmentation
3327 fault is caught.
3328 (_initialize_cp_support): New maint set/show command.
3329
3330 2014-06-19 Gary Benson <gbenson@redhat.com>
3331
3332 * utils.h (resource_limit_kind): New enum.
3333 (can_dump_core): New declaration.
3334 (warn_cant_dump_core): Likewise.
3335 (dump_core): Likewise.
3336 * utils.c (dump_core): Made nonstatic. Added new
3337 parameter "limit_kind".
3338 (can_dump_core): Made nonstatic. Moved printing code to...
3339 (warn_cant_dump_core): New function.
3340 (can_dump_core_warn): Likewise.
3341 (internal_vproblem): Replace calls to can_dump_core with
3342 calls to can_dump_core_warn. Supply new argument to each.
3343
3344 2014-06-19 Gary Benson <gbenson@redhat.com>
3345
3346 * utils.h (demangler_vwarning): New declaration.
3347 (demangler_warning): Likewise.
3348 * utils.c (struct internal_problem)
3349 <user_settable_should_quit>: New field.
3350 <user_settable_should_dump_core>: Likewise
3351 (internal_error_problem): Add values for above new fields.
3352 (internal_warning_problem): Likewise.
3353 (demangler_warning_problem): New static global.
3354 (demangler_vwarning): New function.
3355 (demangler_warning): Likewise.
3356 (add_internal_problem_command): Selectively add commands.
3357 (_initialize_utils): New internal problem command.
3358 * maint.c (maintenance_demangler_warning): New function.
3359 (_initialize_maint_cmds): New command.
3360
3361 2014-06-18 Tom Tromey <tromey@redhat.com>
3362
3363 * f-valprint.c (info_common_command_for_block): Update.
3364 * symtab.h (struct general_symbol_info) <common_block>: Now
3365 const.
3366
3367 2014-06-18 Tom Tromey <tromey@redhat.com>
3368
3369 * symtab.h (struct symtab) <blockvector>: Now const.
3370 * ada-lang.c (ada_add_global_exceptions): Update.
3371 * buildsym.c (augment_type_symtab): Update.
3372 * dwarf2read.c (dw2_lookup_symbol): Update.
3373 * jit.c (finalize_symtab): Update.
3374 * jv-lang.c (add_class_symtab_symbol): Update.
3375 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3376 Update.
3377 * objfiles.c (objfile_relocate1): Update.
3378 * psymtab.c (lookup_symbol_aux_psymtabs)
3379 (maintenance_check_psymtabs): Update.
3380 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3381 Update.
3382 * spu-tdep.c (spu_catch_start): Update.
3383 * symmisc.c (dump_symtab_1): Update.
3384 * symtab.c (lookup_global_symbol_from_objfile)
3385 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3386 (basic_lookup_transparent_type_quick)
3387 (basic_lookup_transparent_type, find_pc_sect_symtab)
3388 (find_pc_sect_line, search_symbols): Update.
3389 * block.c (find_block_in_blockvector): Make "bl" const.
3390 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3391 const.
3392 (blockvector_contains_pc): Make "bv" const.
3393 (block_for_pc_sect): Update.
3394 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3395 (blockvector_contains_pc): Update.
3396 * breakpoint.c (resolve_sal_pc): Update.
3397 * inline-frame.c (block_starting_point_at): Update.
3398
3399 2014-06-18 Tom Tromey <tromey@redhat.com>
3400
3401 * completer.c (complete_line): Make "line_buffer" const.
3402 * completer.h (complete_line): Update.
3403
3404 2014-06-18 Tom Tromey <tromey@redhat.com>
3405
3406 * symtab.c (add_macro_name): Remove unneeded cast.
3407
3408 2014-06-18 Tom Tromey <tromey@redhat.com>
3409
3410 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3411 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3412
3413 2014-06-18 Tom Tromey <tromey@redhat.com>
3414
3415 * probe.c (info_probes_for_ops): Make "arg" const.
3416 * probe.h (info_probes_for_ops): Update.
3417
3418 2014-06-18 Tom Tromey <tromey@redhat.com>
3419
3420 * varobj.c (varobj_create): Update.
3421 * valops.c (value_of_this): Update.
3422 * tracepoint.c (add_local_symbols, scope_info): Update.
3423 * symtab.h (struct general_symbol_info) <block>: Now const.
3424 * symtab.c (skip_prologue_sal)
3425 (default_make_symbol_completion_list_break_on)
3426 (skip_prologue_using_sal): Update.
3427 * stack.h (iterate_over_block_locals)
3428 (iterate_over_block_local_vars): Update.
3429 * stack.c (print_frame_args): Update.
3430 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3431 parameter const.
3432 (get_selected_block): Make return type const.
3433 * python/py-frame.c (frapy_block): Update.
3434 * python/py-block.c (gdbpy_block_for_pc): Update.
3435 * p-exp.y (%union) <bval>: Now const.
3436 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3437 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3438 * m2-exp.y (%union) <bval>: Now const.
3439 * linespec.c (get_current_search_block): Make return type const.
3440 (create_sals_line_offset, find_label_symbols): Update.
3441 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3442 Update.
3443 (block_starting_point_at): Make "block" const.
3444 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3445 (check_exception_resume): Update.
3446 * guile/scm-frame.c (gdbscm_frame_block): Update.
3447 * guile/scm-block.c (gdbscm_lookup_block): Update.
3448 * frame.h (get_frame_block): Update.
3449 (get_selected_block): Make return type const.
3450 * frame.c (frame_id_inner): Update.
3451 * f-valprint.c (info_common_command_for_block)
3452 (info_common_command): Update.
3453 * dwarf2loc.c (dwarf2_find_location_expression)
3454 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3455 (locexpr_describe_location_piece): Update.
3456 * c-exp.y (%union) <bval>: Now const.
3457 * breakpoint.c (resolve_sal_pc): Update.
3458 * blockframe.c (get_frame_block):Make return type const.
3459 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3460 (block_innermost_frame): Update.
3461 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3462 (block_for_pc, block_for_pc_sect): Update.
3463 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3464 'pblock' const.
3465 (block_for_pc_sect, block_for_pc): Make return type const.
3466 * ax-gdb.c (gen_expr): Update.
3467 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3468 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3469 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3470 (ada_read_var_value): Update.
3471 * ada-exp.y (struct name_info) <block>: Now const.
3472 (%union): Likewise.
3473 (block_lookup): Constify.
3474
3475 2014-06-18 Gary Benson <gbenson@redhat.com>
3476
3477 * nat/i386-dregs.h: New file.
3478 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3479 * i386-nat.h (i386-dregs.h): New include.
3480 (DR_FIRSTADDR): Now in i386-dregs.h.
3481 (DR_LASTADDR): Likewise.
3482 (DR_NADDR): Likewise.
3483 (DR_STATUS): Likewise.
3484 (DR_CONTROL): Likewise.
3485 (i386_debug_reg_state): Likewise.
3486 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3487
3488 2014-06-18 Don Breazeal <donb@codesourcery.com>
3489
3490 * breakpoint.c (set_longjmp_breakpoint): Call
3491 momentary_breakpoint_from_master with additional argument.
3492 (set_longjmp_breakpoint_for_call_dummy): Call
3493 momentary_breakpoint_from_master with additional argument.
3494 (set_std_terminate_breakpoint): Call
3495 momentary_breakpoint_from_master with additional argument.
3496 (momentary_breakpoint_from_master): Add argument to function
3497 definition and use it to initialize structure member flag.
3498 (clone_momentary_breakpoint): Call
3499 momentary_breakpoint_from_master with additional argument.
3500 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3501 member flags set in momentary_breakpoint_from_master.
3502
3503 2014-06-18 Gary Benson <gbenson@redhat.com>
3504
3505 * i386-nat.c (i386_show_dr): Renamed to
3506 i386_dr_show and made nonstatic. All uses updated.
3507 (i386_length_and_rw_bits): Renamed to
3508 i386_dr_length_and_rw_bits and made nonstatic.
3509 All uses updated.
3510 (i386_insert_aligned_watchpoint): Renamed to
3511 i386_dr_insert_aligned_watchpoint and made nonstatic.
3512 All uses updated.
3513 (i386_remove_aligned_watchpoint): Renamed to
3514 i386_dr_remove_aligned_watchpoint and made nonstatic.
3515 All uses updated.
3516 (i386_update_inferior_debug_regs): Renamed to
3517 i386_dr_update_inferior_debug_regs and made nonstatic.
3518 All uses updated.
3519
3520 2014-06-18 Gary Benson <gbenson@redhat.com>
3521
3522 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3523 (i386_dr_low_can_set_control): Likewise.
3524 (i386_dr_low_set_addr): Likewise.
3525 (i386_dr_low_set_control): Likewise.
3526 (i386_dr_low_get_addr): Likewise.
3527 (i386_dr_low_get_status): Likewise.
3528 (i386_dr_low_get_control): Likewise.
3529 (i386_insert_aligned_watchpoint): Use new macros.
3530 (i386_update_inferior_debug_regs): Likewise.
3531 (i386_stopped_data_address): Likewise.
3532
3533 2014-06-18 Gary Benson <gbenson@redhat.com>
3534
3535 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3536 New parameter. All uses updated.
3537
3538 2014-06-18 Gary Benson <gbenson@redhat.com>
3539
3540 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3541 All uses updated.
3542
3543 2014-06-18 Gary Benson <gbenson@redhat.com>
3544
3545 * i386-nat.c (debug_printf): New macro.
3546 (i386_get_debug_register_length): Likewise.
3547 (TARGET_HAS_DR_LEN_8): Use above macro.
3548 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3549 and printf_unfiltered. Use phex to format values.
3550
3551 2014-06-18 Gary Benson <gbenson@redhat.com>
3552
3553 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3554 Make const.
3555
3556 2014-06-18 Gary Benson <gbenson@redhat.com>
3557
3558 * i386-nat.c: Comment changes.
3559
3560 2014-06-18 Gary Benson <gbenson@redhat.com>
3561
3562 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3563
3564 2014-06-18 Gary Benson <gbenson@redhat.com>
3565
3566 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3567 (i386_insert_aligned_watchpoint): Likewise.
3568 (i386_remove_aligned_watchpoint): Likewise.
3569 (i386_handle_nonaligned_watchpoint): Likewise.
3570
3571 2014-06-18 Gary Benson <gbenson@redhat.com>
3572
3573 * i386-nat.c: Whitespace changes.
3574
3575 2014-06-17 Samuel Bronson <naesten@gmail.com>
3576
3577 * MAINTAINERS: Update Roland McGrath's email address.
3578 Thanks to Sergio Durigan Junior for pointing out that he left
3579 Red Hat a while ago, and giving me a current address.
3580
3581 2014-06-17 Tom Tromey <tromey@redhat.com>
3582
3583 * utils.h (savestring): Remove declaration.
3584
3585 2014-06-17 Tom Tromey <tromey@redhat.com>
3586
3587 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3588
3589 2014-06-16 Keith Seitz <keiths@redhat.com>
3590
3591 PR mi/15863
3592 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3593 to update the varobj if inferior_ptid is null_ptid.
3594
3595 2014-06-16 Tom Tromey <tromey@redhat.com>
3596
3597 * target.h (struct target_ops) <to_info_proc>: Make parameter
3598 const.
3599 (target_info_proc): Update.
3600 * target.c (target_info_proc): Make "args" const.
3601 * procfs.c (procfs_info_proc): Update.
3602 * linux-tdep.c (linux_info_proc): Update.
3603 (linux_core_info_proc_mappings): Make "args" const.
3604 (linux_core_info_proc): Update.
3605 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3606 * gdbarch.c: Rebuild.
3607 * gdbarch.h: Rebuild.
3608 * corelow.c (core_info_proc): Update.
3609
3610 2014-06-16 Tom Tromey <tromey@redhat.com>
3611
3612 * target.h (struct target_ops) <to_disconnect>: Make parameter
3613 const.
3614 (target_disconnect): Update.
3615 * target.c (target_disconnect): Make "args" const.
3616 * target-delegates.c: Rebuild.
3617 * remote.c (remote_disconnect): Update.
3618 * record.h (record_disconnect): Update.
3619 * record.c (record_disconnect): Update.
3620 * inf-child.c (inf_child_disconnect): Update.
3621
3622 2014-06-16 Tom Tromey <tromey@redhat.com>
3623
3624 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3625 * target.c (debug_to_rcmd, default_rcmd): Update.
3626 * target-delegates.c: Rebuild.
3627 * remote.c (remote_rcmd): Update.
3628 * monitor.c (monitor_rcmd): Update.
3629
3630 2014-06-16 Pedro Alves <palves@redhat.com>
3631
3632 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3633 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3634 have OBJF_SHARED set.
3635 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3636 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3637 instead of OBJF_USERLOADED.
3638 * objfiles.h (OBJF_SHARED): Update comment.
3639 (userloaded_objfile_contains_address_p): Rename to ...
3640 (shared_objfile_contains_address_p): ... this, and update
3641 comments.
3642 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3643 new objfile.
3644 (remove_symbol_file_command): Skip objfiles that don't have
3645 OBJF_SHARED set.
3646
3647 2014-06-16 Tom Tromey <tromey@redhat.com>
3648
3649 * minsyms.h (prim_record_minimal_symbol)
3650 (prim_record_minimal_symbol_and_info): Update comments.
3651
3652 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3653
3654 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3655 or --without-guile, according to how GDB was built.
3656
3657 2014-06-13 Tom Tromey <tromey@redhat.com>
3658
3659 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3660 to help_list.
3661 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3662 to help_list.
3663 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3664 help_list.
3665 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3666 help_list.Pass all_commands, not -1, to help_list.
3667 * cli/cli-dump.c (dump_command, append_command)
3668 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3669 (binary_dump_command, binary_append_command): Pass all_commands,
3670 not -1, to help_list.
3671 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3672 -1, to help_list.
3673 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3674 -1, to help_list.
3675 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3676 help_list.
3677 * top.c (set_history): Pass all_commands, not -1, to help_list.
3678 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3679 all_commands, not -1, to help_list.
3680 * symfile.c (overlay_command): Pass all_commands, not -1, to
3681 help_list.
3682 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3683 help_list.
3684 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3685 help_list.
3686 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3687 -1, to help_list.
3688 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3689 not -1, to help_list.
3690 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3691 not -1, to help_list.
3692 * maint.c (maintenance_command, maintenance_info_command)
3693 (maintenance_print_command, maintenance_set_cmd): Pass
3694 all_commands, not -1, to help_list.
3695 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3696 help_list.
3697 * language.c (set_check): Pass all_commands, not -1, to help_list.
3698 * infcmd.c (unset_command): Pass all_commands, not -1, to
3699 help_list.
3700 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3701 help_list.
3702 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3703 help_list.
3704 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3705 help_list.
3706 * breakpoint.c (save_command): Pass all_commands, not -1, to
3707 help_list.
3708 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3709 all_commands, not -1, to help_list.
3710
3711 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3712
3713 * regcache.c (struct register_to_invalidate): New structure.
3714 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3715 functions.
3716 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3717
3718 2014-06-12 Yao Qi <yao@codesourcery.com>
3719
3720 * varobj.c (varobj_get_num_children): Call
3721 varobj_is_dynamic_p.
3722 (varobj_list_children): Likewise.
3723 (varobj_update): Likewise. Update comments.
3724
3725 2014-06-12 Yao Qi <yao@codesourcery.com>
3726
3727 * varobj.c (varobj_pretty_printed_p): Rename to ...
3728 (varobj_is_dynamic_p): ... this. New function.
3729 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3730 (varobj_is_dynamic_p): Declare.
3731 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3732 (mi_print_value_p, varobj_update_one): Likewise.
3733
3734 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3735 Yao Qi <yao@codesourcery.com>
3736
3737 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3738 (varobj_get_iterator): Wrap up code for pretty-printer by
3739 "#if HAVE_PYTHON" and "#endif".
3740 (update_dynamic_varobj_children): Likewise.
3741
3742 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3743 Yao Qi <yao@codesourcery.com>
3744
3745 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3746 gdb_python_initialized is false. Move some code from varobj.c.
3747 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3748 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3749 (struct varobj_item): Moved to varobj-iter.h".
3750 (varobj_clear_saved_item): New function.
3751 (update_dynamic_varobj_children): Move python-related code to
3752 py-varobj.c.
3753 (free_variable): Call varobj_clear_saved_item and
3754 varobj_iter_delete.
3755
3756 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3757 Yao Qi <yao@codesourcery.com>
3758
3759 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3760 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3761 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3762 (py-varobj.o): New rule.
3763 * python/py-varobj.c: New file.
3764 * python/python-internal.h (py_varobj_get_iterator): Declare.
3765 * varobj-iter.h: New file.
3766 * varobj.c: Include "varobj-iter.h"
3767 (struct varobj) <child_iter>: Change its type from "PyObject *"
3768 to "struct varobj_iter *".
3769 <saved_item>: Likewise.
3770 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3771 [HAVE_PYTHON] (varobj_get_iterator): New function.
3772 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3773 python-specific code to python/py-varobj.c.
3774 (install_visualizer): Call varobj_iter_delete instead of
3775 Py_XDECREF.
3776 * varobj.h (varobj_ensure_python_env): Declare.
3777
3778 2014-06-12 Yao Qi <yao@codesourcery.com>
3779
3780 * varobj.c (struct varobj_item): New structure.
3781 (create_child_with_value): Update declaration.
3782 (varobj_add_child): Replace arguments 'name' and 'value' with
3783 'item'. All callers updated.
3784 (install_dynamic_child): Likewise.
3785 (update_dynamic_varobj_children): Likewise.
3786 (varobj_add_child): Likewise.
3787 (create_child_with_value): Likewise.
3788
3789 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3790
3791 * NEWS: Create a new section for the next release branch.
3792 Rename the section of the current branch, now that it has
3793 been cut.
3794
3795 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3796
3797 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3798 * version.in: Bump version to 7.8.50.DATE-cvs.
3799
3800 2014-06-11 Pedro Alves <palves@redhat.com>
3801
3802 PR remote/17028
3803 * ser-mingw.c (net_windows_socket_check_pending): New function.
3804 (net_windows_select_thread): Ignore spurious wakeups. Use
3805 net_windows_socket_check_pending.
3806 (net_windows_wait_handle): Check for pending events with
3807 ioctlsocket, through net_windows_socket_check_pending, instead of
3808 checking the socket's event.
3809
3810 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3811
3812 * python/python-internal.h (gdb_PyObject_GetAttrString)
3813 (gdb_PyObject_HasAttrString): New inline function definitions.
3814 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3815 char * of the second argument to PyObject_GetAttrString.
3816
3817 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3818
3819 * serial.c (serial_write): Fix index of character to be printed
3820 in call to serial_logchar when serial debug traces are enabled.
3821
3822 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3823
3824 * gdbtypes (resolve_dynamic_range): Add function description.
3825
3826 2014-06-09 Pedro Alves <palves@redhat.com>
3827
3828 * linux-nat.c (linux_child_follow_fork): Initialize status with
3829 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3830 inner block. Only pass the signal to PTRACE_DETACH if in pass
3831 state.
3832
3833 2014-06-09 Gary Benson <gbenson@redhat.com>
3834
3835 * common/signals.c (gdb_signal_from_host): Reorder to separate
3836 the always-available ANSI-standard signals from the signals that
3837 require checking.
3838 (do_gdb_signal_to_host): Likewise.
3839 * proc-events.c (signal_table): Likewise.
3840
3841 2014-06-08 Hui Zhu <hui@codesourcery.com>
3842
3843 * common/linux-ptrace.c (linux_disable_event_reporting): New
3844 function.
3845 * common/linux-ptrace.h (linux_disable_event_reporting): New
3846 declaration.
3847 * linux-nat.c (linux_child_follow_fork): Do a single step before
3848 detach.
3849
3850 2014-06-07 Keith Seitz <keiths@redhat.com>
3851
3852 Revert:
3853 PR c++/16253
3854 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3855 from symbol_matches_domain in symtab.c. All local callers
3856 of symbol_matches_domain updated.
3857 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3858 search STRUCT_DOMAIN.
3859 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3860 independently. standard_lookup will do that automatically.
3861 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3862 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3863 (cp_lookup_symbol_in_namespace): Likewise.
3864 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3865 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3866 may return a STRUCT_DOMAIN match.
3867 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3868 * cp-support.c: Include language.h.
3869 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3870 VAR_DOMAIN.
3871 * psymtab.c (match_partial_symbol): Compare the requested
3872 domain with the symbol's domain directly.
3873 (lookup_partial_symbol): Likewise.
3874 * symtab.c (lookup_symbol_in_language): Explain when/why
3875 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3876 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3877 appropriate languages.
3878 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3879 and moved to ada-lang.c
3880 (lookup_block_symbol): Explain that this function only returns
3881 symbol matching the requested DOMAIN.
3882 Compare the requested domain with the symbol's domain directly.
3883 (iterate_over_symbols): Compare the requested domain with the
3884 symbol's domain directly.
3885 * symtab.h (symbol_matches_domain): Remove.
3886
3887 2014-06-06 Doug Evans <xdje42@gmail.com>
3888
3889 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3890 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3891 (gdbscm_guile_version_is_at_least): Declare.
3892 (gdbscm_scm_string_to_int): Declare.
3893 * guile/guile.c (gdbscm_guile_major_version): New global.
3894 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3895 (guile_datadir): New static global.
3896 (gdbscm_guile_data_directory): New function.
3897 (initialize_scheme_side): Update.
3898 (misc_guile_functions): Add guile-data-directory.
3899 (initialize_gdb_module): Fetch guile version number.
3900 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3901 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3902 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3903 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3904 comments.
3905 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3906 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3907 * guile/scm-value.c (gdbscm_value_to_string): Only call
3908 scm_port_conversion_strategy if Guile version >= 2.0.6.
3909
3910 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3911
3912 * main.c (print_gdb_help): Add -q and --silent.
3913
3914 2014-06-06 Gary Benson <gbenson@redhat.com>
3915
3916 * common/signals.c: Remove preprocessor conditionals for
3917 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3918 SIGSEGV and SIGTERM.
3919 * proc-events.c: Likewise.
3920
3921 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3922
3923 * symfile.c (symfile_free_objfile): Remove restriction to
3924 OBJF_USERLOADED.
3925 * symfile-mem.c (symbol_file_add_from_memory): Call
3926 add_target_sections_of_objfile.
3927
3928 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3929
3930 * guile/scm-value.c (gdbscm_history_append_x): Use
3931 'vlscm_get_value_smob_arg_unsafe' instead of
3932 'vlscm_scm_to_value'.
3933
3934 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3935
3936 PR mi/15806
3937 * utils.c (printchar): Don't escape at all if quoter is NUL.
3938 Update function documentation to clarify effect of parameter
3939 QUOTER.
3940 * remote.c (escape_buffer): Pass '\\' as the quoter to
3941 fputstrn_unfiltered.
3942 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3943 generate the output.
3944 (mi_solib_unloaded): Same.
3945
3946 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3947
3948 * development.sh: Delete.
3949 * Makefile.in (config.status): Adjust dependency on development.sh.
3950 * configure.ac: Adjust development.sh source call.
3951 * configure: Regenerate.
3952
3953 2014-06-04 Doug Evans <xdje42@gmail.com>
3954
3955 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3956 is_scheme_bkpt, spec.
3957 (bpscm_make_breakpoint_smob): Initialize new members.
3958 (gdbscm_create_breakpoint_x): Split into two ...
3959 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3960 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3961 (scheme_function breakpoint_functions): Update.
3962 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3963 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3964 register-breakpoint!.
3965
3966 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3967
3968 PR server/17023
3969 * mem-break.c (z_type_supported): Return zero if
3970 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3971
3972 2014-06-04 Tom Tromey <tromey@redhat.com>
3973
3974 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3975 value_from_contents_and_address_unresolved.
3976 (ada_template_to_fixed_record_type_1): Likewise.
3977 (ada_which_variant_applies): Likewise.
3978 * value.h (value_from_contents_and_address_unresolved): Declare.
3979 * value.c (value_from_contents_and_address_unresolved): New
3980 function.
3981 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3982 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3983 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3984
3985 2014-06-04 Tom Tromey <tromey@redhat.com>
3986
3987 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3988
3989 2014-06-04 Tom Tromey <tromey@redhat.com>
3990
3991 * procfs.c (procfs_attach): Make "args" const.
3992 * windows-nat.c (windows_attach): Make "args" const.
3993 * nto-procfs.c (procfs_attach): Make "args" const.
3994 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3995 * go32-nat.c (go32_attach): Make "args" const.
3996 * gnu-nat.c (gnu_attach): Make "args" const.
3997 * darwin-nat.c (darwin_attach): Make "args" const.
3998 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3999 * linux-nat.c (linux_nat_attach): Make "args" const.
4000 * remote.c (extended_remote_attach_1, extended_remote_attach):
4001 Make "args" const.
4002 * target.h (struct target_ops) <to_attach>: Make "args" const.
4003 (find_default_attach): Likewise.
4004 * utils.c (parse_pid_to_attach): Make "args" const.
4005 * utils.h (parse_pid_to_attach): Update.
4006
4007 2014-06-04 Tom Tromey <tromey@redhat.com>
4008
4009 * target-delegates.c: Rebuild.
4010 * target.c (default_thread_address_space): New function.
4011 (target_thread_address_space): Simplify.
4012 * target.h (struct target_ops) <to_thread_address_space>: Add
4013 TARGET_DEFAULT_FUNC.
4014
4015 2014-06-04 Doug Evans <xdje42@gmail.com>
4016
4017 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4018
4019 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4020
4021 * record-btrace.c: Include event-loop.h and inf-loop.h.
4022 (record_btrace_resume_exec_dir)
4023 (record_btrace_async_inferior_event_handler)
4024 (record_btrace_handle_async_inferior_event): New.
4025 (record_btrace_open): Create async event handler.
4026 (record_btrace_close): Delete async event handler.
4027 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4028 Mark async event handler.
4029 (record_btrace_execution_direction): New.
4030 (init_record_btrace_ops): Initialize to_execution_direction.
4031
4032 2014-06-03 Doug Evans <xdje42@gmail.com>
4033
4034 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4035 (gdbscm_make_parameter): Ditto.
4036
4037 2014-06-03 Doug Evans <dje@google.com>
4038
4039 * exec.c (exec_close_1): Call clear_section_table instead of
4040 resize_section_table.
4041 (clear_section_table): New function.
4042 (resize_section_table): Make static. Rename arg num_added to
4043 adjustment.
4044 * exec.h (clear_section_table): Declare.
4045 (resize_section_table): Delete.
4046 * progspace.c (release_program_space): Call clear_section_table
4047 instead of resize_section_table.
4048
4049 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4050
4051 * NEWS (Python Scripting): Add entry about the new xmethods
4052 feature.
4053
4054 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4055
4056 * python/py-xmethods.c: New file.
4057 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4058 (objfpy_dealloc): XDECREF on the new xmethods field.
4059 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4060 field.
4061 (objfpy_get_xmethods): New function.
4062 (objfile_getset): New entry 'xmethods'.
4063 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4064 (pspy_dealloc): XDECREF on the new xmethods field.
4065 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4066 field.
4067 (pspy_get_xmethods): New function.
4068 (pspace_getset): New entry 'xmethods'.
4069 * python/python-internal.h: Add declarations for new functions.
4070 * python/python.c (_initialize_python): Invoke
4071 gdbpy_initialize_xmethods.
4072 * python/lib/gdb/__init__.py (xmethods): New
4073 attribute.
4074 * python/lib/gdb/xmethod.py: New file.
4075 * python/lib/gdb/command/xmethods.py: New file.
4076
4077 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4078
4079 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4080 best match method returned by find_overload_match is an xmethod.
4081 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4082 the best matching operator returned by find_overload_match is an
4083 xmethod.
4084 * valops.c: #include "extension.h".
4085 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4086 Return void. The list of matching source methods is returned in
4087 "fn_list" and a vector of matching debug method workers is
4088 returned in "xm_worker_vec". Update all callers.
4089 (value_find_oload_method_list): Likewise.
4090 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4091 non-NULL, then the index of the best matching method in this
4092 vector is returned. Update all callers.
4093 (find_overload_match): Include xmethods while performing overload
4094 resolution.
4095
4096 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4097
4098 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4099 * extension-priv.h (struct extension_language_ops): Add the
4100 xmethod interface.
4101 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4102 get_matching_xmethod_workers, get_xmethod_argtypes,
4103 invoke_xmethod, free_xmethod_worker,
4104 free_xmethod_worker_vec): New functions.
4105 * extension.h: #include "common/vec.h".
4106 New function declarations.
4107 (struct xmethod_worker): New struct.
4108 (VEC (xmethod_worker_ptr)): New vector type.
4109 (xmethod_worker_ptr): New typedef.
4110 (xmethod_worker_vec): Likewise.
4111 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4112 builtin_type.
4113 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4114 (struct builtin_type): New field "xmethod".
4115 * valarith.c (value_ptradd): Assert that the value argument is not
4116 lval_xcallable.
4117 * valops.c (value_must_coerce_to_target): Return 0 for
4118 lval_xcallable values.
4119 * value.c (struct value): New field XM_WORKER in the field
4120 LOCATION.
4121 (value_address, value_raw_address): Return 0 for lval_xcallable
4122 values.
4123 (set_value_address): Assert that the value is not an
4124 lval_xcallable.
4125 (value_free): Free the associated xmethod worker when freeing
4126 lval_xcallable values.
4127 (set_value_component_location): Assert that the WHOLE value is not
4128 lval_xcallable.
4129 (value_of_xmethod, call_xmethod): New functions.
4130 * value.h: Declare "struct xmethod_worker".
4131 Declare new functions value_of_xmethod, call_xmethod.
4132
4133 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4134 Pedro Alves <palves@redhat.com>
4135
4136 PR breakpoints/17000
4137 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4138 New function, extracted from software_breakpoint_inserted_here_p.
4139 (software_breakpoint_inserted_here_p): Replace factored out code
4140 by call to find_non_raw_software_breakpoint_inserted_here.
4141 (bp_target_info_copy_insertion_state): New function.
4142 (bkpt_insert_location): Handle the case of a single-step
4143 breakpoint already inserted at the same address.
4144 (bkpt_remove_location): Handle the case of a single-step
4145 breakpoint still inserted at the same address.
4146 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4147 breakpoint already inserted at the same address.
4148 (deprecated_remove_raw_breakpoint): Handle the case of a
4149 non-raw breakpoint still inserted at the same address.
4150 (find_single_step_breakpoint): New function, extracted from
4151 single_step_breakpoint_inserted_here_p.
4152 (find_single_step_breakpoint): New function,
4153 factored out from single_step_breakpoint_inserted_here_p.
4154 (single_step_breakpoint_inserted_here_p): Reimplement.
4155
4156 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4157
4158 Pushed by Joel Brobecker <brobecker@adacore.com>
4159 * source.c (show_substitute_path_command): Fix display of matching
4160 substitution rules.
4161
4162 2014-06-03 Gary Benson <gbenson@redhat.com>
4163
4164 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4165
4166 2014-06-02 Doug Evans <xdje42@gmail.com>
4167
4168 Add parameter support for Guile.
4169 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4170 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4171 (scm-param.o): New rule.
4172 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4173 (gdbscm_misc_error): Declare.
4174 (gdbscm_canonicalize_command_name): Declare.
4175 (gdbscm_scm_to_host_string): Declare.
4176 (gdbscm_scm_from_host_string): Declare.
4177 (gdbscm_initialize_parameters): Declare.
4178 * guile/guile.c (initialize_gdb_module): Call
4179 gdbscm_initialize_parameters.
4180 * guile/lib/gdb.scm: Export parameter symbols.
4181 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4182 cmdscm_canonicalize_name and made public. All callers updated.
4183 * guile/scm-exception.c (gdbscm_misc_error): New function.
4184 * guile/scm-param.c: New file.
4185 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4186 (gdbscm_scm_to_host_string): New function.
4187 (gdbscm_scm_from_host_string): New function.
4188 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4189
4190 2014-06-02 Doug Evans <xdje42@gmail.com>
4191
4192 Add command support for Guile.
4193 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4194 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4195 (scm-cmd.o): New rule.
4196 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4197 (gdbscm_user_error_p): Declare.
4198 (gdbscm_parse_command_name): Declare.
4199 (gdbscm_valid_command_class_p): Declare.
4200 (gdbscm_initialize_commands): Declare.
4201 * guile/guile.c (initialize_gdb_module): Call
4202 gdbscm_initialize_commands.
4203 * guile/lib/gdb.scm: Export command symbols.
4204 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4205 (throw-user-error): New function.
4206 * guile/scm-cmd.c: New file.
4207 * guile/scm-exception.c (user_error_symbol): New static global.
4208 (gdbscm_user_error_p): New function.
4209 (gdbscm_initialize_exceptions): Set user_error_symbol.
4210 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4211
4212 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4213
4214 * top.c (command_loop): Handle comments here...
4215 (command_line_input): ... not here.
4216
4217 2014-06-02 Doug Evans <xdje42@gmail.com>
4218
4219 Add progspace support for Guile.
4220 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4221 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4222 (scm-progspace.o): New rule.
4223 * guile/guile-internal.h (pspace_smob): New typedef.
4224 (psscm_pspace_smob_pretty_printers): Declare.
4225 (psscm_pspace_smob_from_pspace): Declare.
4226 (psscm_scm_from_pspace): Declare.
4227 * guile/guile.c (initialize_gdb_module): Call
4228 gdbscm_initialize_pspaces.
4229 * guile/lib/gdb.scm: Export progspace symbols.
4230 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4231 support.
4232 (append-pretty-printer!): Ditto.
4233 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4234 Implement.
4235 * guile/scm-progspace.c: New file.
4236
4237 2014-06-03 Alan Modra <amodra@gmail.com>
4238
4239 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4240 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4241
4242 2014-06-02 Doug Evans <dje@google.com>
4243
4244 Add support for skeletonless type units.
4245 * dwarf2read.c (struct dwarf2_per_objfile): New member
4246 n_allocated_type_units.
4247 (struct dwarf2_per_objfile) <tu_stats>: New member
4248 nr_all_type_units_reallocs.
4249 (create_signatured_type_table_from_index): Initialize
4250 n_allocated_type_units
4251 (create_all_type_units): Ditto.
4252 (add_type_unit): Move up in file. New arg slot.
4253 All callers updated. Increase space for all_type_units more
4254 efficiently.
4255 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4256 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4257 (lookup_dwp_signatured_type): Ditto.
4258 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4259 All callers updated.
4260 (build_type_psymtabs_1): Leave type_unit_groups as
4261 NULL if no TUs present.
4262 (print_tu_stats): New function.
4263 (process_skeletonless_type_unit): New function.
4264 (process_dwo_file_for_skeletonless_type_units): New
4265 function.
4266 (process_skeletonless_type_units): New function.
4267 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4268 Call print tu_stats if debugging enabled.
4269
4270 2014-06-02 Pedro Alves <palves@redhat.com>
4271
4272 * breakpoint.c (build_target_command_list): Don't build a command
4273 list if we have any duplicate location that isn't a dprintf.
4274
4275 2014-06-02 Pedro Alves <palves@redhat.com>
4276
4277 * breakpoint.c (dprintf_breakpoint_hit): New function.
4278 (initialize_breakpoint_ops): Install it as dprintf's
4279 breakpoint_hit method.
4280
4281 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4282
4283 * source.c (substitute_path_rule_matches): Simplify using
4284 filename_ncmp instead of FILENAME_CMP.
4285
4286 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4287
4288 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4289
4290 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4291
4292 * configure.ac: When Guile is available, check for the
4293 availability of 'scm_new_smob'.
4294 * configure, config.h.in: Regenerate.
4295 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4296 function.
4297
4298 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4299
4300 * frame.c (struct frame_info): Add stop_string field.
4301 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4302 (get_prev_frame_always): Old content moved into
4303 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4304 TRY_CATCH, handle MEMORY_ERROR exceptions.
4305 (frame_stop_reason_string): New function definition.
4306 * frame.h (unwind_stop_reason_to_string): Extend comment to
4307 mention frame_stop_reason_string.
4308 (frame_stop_reason_string): New function declaration.
4309 * stack.c (frame_info): Switch to frame_stop_reason_string.
4310 (backtrace_command_1): Switch to frame_stop_reason_string.
4311 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4312 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4313 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4314
4315 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4316
4317 * frame.c (frame_stop_reason_string): Rename to ...
4318 (unwind_stop_reason_to_string): this.
4319 * frame.h (frame_stop_reason_string): Rename to ...
4320 (unwind_stop_reason_to_string): this.
4321 * stack.c (frame_info): Update call to frame_stop_reason_string.
4322 (backtrace_command_1): Likewise.
4323 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4324 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4325
4326 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4327
4328 * frame.c (remove_prev_frame): New function.
4329 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4330 remove_prev_frame.
4331
4332 2014-05-29 Pedro Alves <palves@redhat.com>
4333
4334 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4335 and make it const. When a single-step decays to a continue,
4336 clear 'step', not 'hw_step'. Pass whether the caller wanted
4337 to step to user_visible_resume_ptid, not what we ask the
4338 target to do.
4339
4340 2014-05-29 Pedro Alves <palves@redhat.com>
4341
4342 * infrun.c (process_event_stop_test, handle_step_into_function)
4343 (handle_step_into_function_backward): Adjust.
4344 Don't set the even thread's stop_step and call stop_waiting before
4345 calling end_stepping_range. Instead do that ...
4346 (end_stepping_range): ... here. Take an ecs pointer parameter.
4347
4348 2014-05-29 Pedro Alves <palves@redhat.com>
4349
4350 * infrun.c (stop_stepping): Rename to ...
4351 (stop_waiting): ... this.
4352 (proceed): Update comment.
4353 (process_event_stop_test, handle_inferior_event)
4354 (handle_signal_stop, handle_step_into_function)
4355 (handle_step_into_function_backward): Update.
4356
4357 2014-05-29 Pedro Alves <palves@redhat.com>
4358
4359 * infcall.c (run_inferior_call): Don't check whether the current
4360 thread is running after the proceed call.
4361
4362 2014-05-29 Pedro Alves <palves@redhat.com>
4363 Tom Tromey <tromey@redhat.com>
4364
4365 * NEWS: Mention "maint set target-async", "set mi-async", and that
4366 background execution commands are now always available.
4367 * target.h (target_async_permitted): Update comment.
4368 * target.c (target_async_permitted, target_async_permitted_1):
4369 Default to 1.
4370 (set_target_async_command): Rename to ...
4371 (maint_set_target_async_command): ... this.
4372 (show_target_async_command): Rename to ...
4373 (maint_show_target_async_command): ... this.
4374 (_initialize_target): Adjust.
4375 * infcmd.c (prepare_execution_command): Make extern.
4376 * inferior.h (prepare_execution_command): Declare.
4377 * infrun.c (set_observer_mode): Leave target async alone.
4378 * mi/mi-interp.c (mi_interpreter_init): Install
4379 mi_on_sync_execution_done as sync_execution_done observer.
4380 (mi_on_sync_execution_done): New function.
4381 (mi_execute_command_input_handler): Don't print the prompt if we
4382 just started a synchronous command with an async target.
4383 (mi_on_resume): Check sync_execution before printing prompt.
4384 * mi/mi-main.h (mi_async_p): Declare.
4385 * mi/mi-main.c: Include gdbcmd.h.
4386 (mi_async_p): New function.
4387 (mi_async, mi_async_1): New globals.
4388 (set_mi_async_command, show_mi_async_command, mi_async): New
4389 functions.
4390 (exec_continue): Call prepare_execution_command.
4391 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4392 (mi_execute_async_cli_command): Use mi_async_p.
4393 (_initialize_mi_main): Install "set mi-async". Make
4394 "target-async" a deprecated alias.
4395
4396 2014-05-29 Pedro Alves <palves@redhat.com>
4397
4398 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4399 (_initialize_cli_interp): Adjust.
4400 * event-loop.c: Include "observer.h".
4401 (start_event_loop): Notify 'command_error' observers instead of
4402 calling display_gdb_prompt. Remove FIXME comment.
4403 * event-top.c (display_gdb_prompt): Remove call into the
4404 interpreters.
4405 * inf-loop.c: Include "observer.h".
4406 (inferior_event_handler): Notify 'command_error' observers instead
4407 of calling display_gdb_prompt.
4408 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4409 observers instead of calling display_gdb_prompt.
4410 * interps.c (interp_set): Don't call display_gdb_prompt.
4411 (current_interp_display_prompt_p): Delete.
4412 * interps.h (interp_prompt_p): Delete declaration.
4413 (interp_prompt_p_ftype): Delete.
4414 (struct interp_procs) <prompt_proc_p>: Delete field.
4415 (current_interp_display_prompt_p): Delete declaration.
4416 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4417 (_initialize_mi_interp): Adjust.
4418 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4419 'command_error' observers.
4420 (tui_on_sync_execution_done, tui_on_command_error): New
4421 functions.
4422 (tui_display_prompt_p): Delete.
4423 (_initialize_tui_interp): Adjust.
4424
4425 2014-05-29 Pedro Alves <palves@redhat.com>
4426
4427 PR gdb/13860
4428 * cli/cli-interp.c: Include infrun.h and observer.h.
4429 (cli_uiout, cli_interp): New globals.
4430 (cli_on_signal_received, cli_on_end_stepping_range)
4431 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4432 functions.
4433 (cli_interpreter_init): Install them as 'end_stepping_range',
4434 'signal_received' 'signal_exited', 'exited' and 'no_history'
4435 observers.
4436 (_initialize_cli_interp): Remove cli_interp local.
4437 * infrun.c (handle_inferior_event): Call the several stop reason
4438 observers instead of printing the stop reason directly.
4439 (end_stepping_range): New function.
4440 (print_end_stepping_range_reason, print_signal_exited_reason)
4441 (print_exited_reason, print_signal_received_reason)
4442 (print_no_history_reason): Make static, and add an uiout
4443 parameter. Print to that instead of to CURRENT_UIOUT.
4444 * infrun.h (print_end_stepping_range_reason)
4445 (print_signal_exited_reason, print_exited_reason)
4446 (print_signal_received_reason print_no_history_reason): New
4447 declarations.
4448 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4449 'mi_uiout'.
4450 <cli_uiout>: New field.
4451 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4452 uiout for CLI output. Install 'signal_received',
4453 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4454 observers.
4455 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4456 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4457 (mi_on_no_history): New functions.
4458 (ui_out_free_cleanup): Delete function.
4459 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4460 instead use the one already stored in the MI interpreter data.
4461 (mi_ui_out): Adjust.
4462 * tui/tui-interp.c: Include infrun.h and observer.h.
4463 (tui_interp): New global.
4464 (tui_on_signal_received, tui_on_end_stepping_range)
4465 (tui_on_signal_exited, tui_on_exited)
4466 (tui_on_no_history): New functions.
4467 (tui_init): Install them as 'end_stepping_range',
4468 'signal_received' 'signal_exited', 'exited' and 'no_history'
4469 observers.
4470 (_initialize_tui_interp): Delete tui_interp local.
4471
4472 2014-05-29 Pedro Alves <palves@redhat.com>
4473
4474 PR gdb/15713
4475 * linux-nat.c (linux_nat_resume_callback): Rename the second
4476 parameter to 'except'. Skip LP if it points to EXCEPT.
4477 (linux_nat_resume): Don't mark the event lwp as not stopped
4478 before resuming sibling lwps. Instead ask
4479 linux_nat_resume_callback to skip the event lwp. Mark it as not
4480 stopped after actually resuming it.
4481 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4482 resuming it.
4483 (wait_lwp): Mark the lwp as stopped here.
4484 (stop_wait_callback): Mark the lwp as not stopped right after
4485 resuming it. Don't mark lwps as stopped here.
4486 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4487 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4488
4489 2014-05-29 Pedro Alves <palves@redhat.com>
4490
4491 PR PR15693
4492 * infrun.c (resume): Determine how much to resume depending on
4493 whether the caller wanted a step, not whether we can hardware step
4494 the target. Mark all threads that we intend to run as running,
4495 unless we're calling an inferior function.
4496 (normal_stop): If the thread is running an infcall, don't finish
4497 thread state.
4498 * target.c (target_resume): Don't mark threads as running here.
4499
4500 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4501
4502 * serial.c (_initialize_serial): Remove support for
4503 the "set remotebaud" and "show remotebaud" commands.
4504 * NEWS: Add entry documenting the removal of that command.
4505
4506 2014-05-28 Yao Qi <yao@codesourcery.com>
4507
4508 * charset.c: Fix typo in comments.
4509
4510 2014-05-27 Gary Benson <gbenson@redhat.com>
4511
4512 * utils.c (internal_vproblem): Prompt for a bug report.
4513
4514 2014-05-26 Andy Wingo <wingo@igalia.com>
4515
4516 * guile/scm-arch.c (arscm_mark_arch_smob):
4517 * guile/scm-block.c (bkscm_mark_block_smob)
4518 (bkscm_mark_block_syms_progress_smob):
4519 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4520 * guile/scm-exception.c (exscm_mark_exception_smob):
4521 * guile/scm-frame.c (frscm_mark_frame_smob):
4522 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4523 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4524 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4525 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4526 (ppscm_mark_pretty_printer_worker_smob):
4527 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4528 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4529 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4530 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4531 mark functions.
4532 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4533 function.
4534
4535 2014-05-26 Andy Wingo <wingo@igalia.com>
4536 Doug Evans <xdje42@gmail.com>
4537
4538 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4539 empty_base_class. All uses updated.
4540 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4541 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4542 Adapt all callers.
4543 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4544 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4545 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4546 (gdbscm_gsmob_has_property_p, add_property_name)
4547 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4548 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4549 (gdb-object-has-property?, gdb-object-properties): Remove.
4550 (gdb-object-kind): Renamed from gsmob-kind.
4551
4552 2014-05-26 Andy Wingo <wingo@igalia.com>
4553
4554 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4555 * configure: Regenerate.
4556
4557 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4558
4559 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4560
4561 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4562
4563 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4564 (replay_memory_access_read_only, replay_memory_access_read_write)
4565 (replay_memory_access_types, replay_memory_access)
4566 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4567 (cmd_set_record_btrace, cmd_show_record_btrace)
4568 (cmd_show_replay_memory_access): New.
4569 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4570 (record_btrace_remove_breakpoint): Replace
4571 record_btrace_allow_memory_access with replay_memory_access.
4572 (_initialize_record_btrace): Add commands.
4573 * NEWS: Announce it.
4574
4575 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4576
4577 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4578
4579 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4580
4581 * MAINTAINERS (Write After Approval): Move self back from
4582 paper trail.
4583
4584 2014-05-22 Pedro Alves <palves@redhat.com>
4585
4586 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4587 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4588 (disable_randomization, enum exec_direction_kind)
4589 (execution_direction, stop_registers, start_remote)
4590 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4591 (wait_for_inferior, normal_stop, get_last_target_status)
4592 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4593 (insert_step_resume_breakpoint_at_sal)
4594 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4595 (set_step_info, print_stop_event, signal_stop_state)
4596 (signal_print_state, signal_pass_state, signal_stop_update)
4597 (signal_print_update, signal_pass_update)
4598 (update_signals_program_target, clear_exit_convenience_vars)
4599 (displaced_step_dump_bytes, update_observer_mode)
4600 (signal_catch_update, gdb_signal_from_command): Move
4601 declarations ...
4602 * infrun.h: ... to this new file.
4603 * amd64-tdep.c: Include infrun.h.
4604 * annotate.c: Include infrun.h.
4605 * arch-utils.c: Include infrun.h.
4606 * arm-linux-tdep.c: Include infrun.h.
4607 * arm-tdep.c: Include infrun.h.
4608 * break-catch-sig.c: Include infrun.h.
4609 * breakpoint.c: Include infrun.h.
4610 * common/agent.c: Include infrun.h instead of inferior.h.
4611 * corelow.c: Include infrun.h.
4612 * event-top.c: Include infrun.h.
4613 * go32-nat.c: Include infrun.h.
4614 * i386-tdep.c: Include infrun.h.
4615 * inf-loop.c: Include infrun.h.
4616 * infcall.c: Include infrun.h.
4617 * infcmd.c: Include infrun.h.
4618 * infrun.c: Include infrun.h.
4619 * linux-fork.c: Include infrun.h.
4620 * linux-nat.c: Include infrun.h.
4621 * linux-thread-db.c: Include infrun.h.
4622 * monitor.c: Include infrun.h.
4623 * nto-tdep.c: Include infrun.h.
4624 * procfs.c: Include infrun.h.
4625 * record-btrace.c: Include infrun.h.
4626 * record-full.c: Include infrun.h.
4627 * remote-m32r-sdi.c: Include infrun.h.
4628 * remote-mips.c: Include infrun.h.
4629 * remote-notif.c: Include infrun.h.
4630 * remote-sim.c: Include infrun.h.
4631 * remote.c: Include infrun.h.
4632 * reverse.c: Include infrun.h.
4633 * rs6000-tdep.c: Include infrun.h.
4634 * s390-linux-tdep.c: Include infrun.h.
4635 * solib-irix.c: Include infrun.h.
4636 * solib-osf.c: Include infrun.h.
4637 * solib-svr4.c: Include infrun.h.
4638 * target.c: Include infrun.h.
4639 * top.c: Include infrun.h.
4640 * windows-nat.c: Include infrun.h.
4641 * mi/mi-interp.c: Include infrun.h.
4642 * mi/mi-main.c: Include infrun.h.
4643 * python/py-threadevent.c: Include infrun.h.
4644
4645 2014-05-22 Pedro Alves <palves@redhat.com>
4646
4647 * infrun.c (handle_inferior_event): Store the exit code for
4648 --return-child-result here, instead of ...
4649 (print_exited_reason): ... here.
4650
4651 2014-05-21 Pedro Alves <palves@redhat.com>
4652
4653 PR gdb/13860
4654 * gdbthread.h (struct thread_control_state): New field
4655 `command_interp'.
4656 * infrun.c (follow_fork): Copy the new thread control field to the
4657 child fork thread.
4658 (clear_proceed_status_thread): Clear the new thread control field.
4659 (proceed): Set the new thread control field.
4660 * interps.h (command_interp): Declare.
4661 * interps.c (command_interpreter): New global.
4662 (command_interp): New function.
4663 (interp_exec): Set `command_interpreter' while here.
4664 * cli-out.c (cli_uiout_dtor): New function.
4665 (cli_ui_out_impl): Install it.
4666 * mi/mi-interp.c: Include cli-out.h.
4667 (mi_cmd_interpreter_exec): Add comment.
4668 (restore_current_uiout_cleanup): New function.
4669 (ui_out_free_cleanup): New function.
4670 (mi_on_normal_stop): If finishing an execution command started by
4671 a CLI command, or any kind of breakpoint-like event triggered,
4672 print the stop event to the output (CLI) stream.
4673 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4674
4675 2014-05-21 Pedro Alves <palves@redhat.com>
4676
4677 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4678 current source line having changed.
4679 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4680 * infrun.c (normal_stop): Adjust call to
4681 set_current_sal_from_frame.
4682 * source.c (clear_lines_listed_range): New function.
4683 (set_current_source_symtab_and_line, identify_source_line): Clear
4684 the lines listed range.
4685 (line_info): Handle the first "info line" after the current source
4686 line having changed.
4687 * stack.c (print_stack_frame): Remove center handling.
4688 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4689 center sal.line.
4690
4691 2014-05-21 Pedro Alves <palves@redhat.com>
4692
4693 * inf-child.c (inf_child_mourn_inferior): New function.
4694 * inf-child.h (inf_child_mourn_inferior): New declaration.
4695 * darwin-nat.c (darwin_mourn_inferior): Use
4696 inf_child_mourn_inferior.
4697 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4698 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4699 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4700 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4701 * windows-nat.c (windows_mourn_inferior): Likewise.
4702
4703 2014-05-21 Doug Evans <xdje42@gmail.com>
4704
4705 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4706
4707 2014-05-21 Doug Evans <xdje42@gmail.com>
4708
4709 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4710 (gdbscm_out_of_range_error): Ditto.
4711 (gdbscm_memory_error): Ditto.
4712 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4713 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4714 (gdbscm_out_of_range_error): Update.
4715 (gdbscm_memory_error): Update.
4716 (gdbscm_scm_to_target_string_unsafe): Delete.
4717
4718 2014-05-21 Pedro Alves <palves@redhat.com>
4719
4720 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4721 globals.
4722 (inf_child_open_target): New function.
4723 (inf_child_open): Use inf_child_open_target to push the target
4724 instead of erroring out.
4725 (inf_child_disconnect, inf_child_close)
4726 (inf_child_maybe_unpush_target): New functions.
4727 (inf_child_target): Install inf_child_disconnect and
4728 inf_child_close. Store a pointer to the returned object.
4729 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4730 declarations.
4731 * target.c (auto_connect_native_target): New global.
4732 (show_default_run_target): New function.
4733 (find_default_run_target): Return NULL if automatically connecting
4734 to the native target is disabled.
4735 (_initialize_target): Install set/show auto-connect-native-target.
4736 * NEWS: Mention "set auto-connect-native-target", and "target
4737 native".
4738 * linux-nat.c (super_close): New global.
4739 (linux_nat_close): Call super_close.
4740 (linux_nat_add_target): Store a pointer to the base class's
4741 to_close method.
4742 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4743 inf_child_maybe_unpush.
4744 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4745 already pushed.
4746 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4747 the inferior. Use inf_child_maybe_unpush_target.
4748 (inf_ttrace_attach): Don't push the target if it is already
4749 pushed.
4750 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4751 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4752 after mourning the inferior. Use inf_child_maybe_unpush_target.
4753 (darwin_attach_pid): Don't push the target if it is already
4754 pushed.
4755 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4756 mourning the inferior. Use inf_child_maybe_unpush_target.
4757 (gnu_detach): Use inf_child_maybe_unpush_target.
4758 * go32-nat.c (go32_create_inferior): Don't push the target if it
4759 is already pushed.
4760 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4761 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4762 (procfs_open): Rename to ...
4763 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4764 comments. Can target_preopen before changing node. Call
4765 inf_child_open_target to push the target explicitly.
4766 (procfs_attach): Don't push the target if it is already pushed.
4767 (procfs_detach): Use inf_child_maybe_unpush_target.
4768 (procfs_create_inferior): Don't push the target if it is already
4769 pushed.
4770 (nto_native_ops): New global.
4771 (procfs_open): Reimplement.
4772 (procfs_native_open): New function.
4773 (init_procfs_targets): Install procfs_native_open as to_open of
4774 "target native". Store a pointer to the "native" target in
4775 nto_native_ops.
4776 * procfs.c (procfs_attach): Don't push the target if it is already
4777 pushed.
4778 (procfs_detach): Use inf_child_maybe_unpush_target.
4779 (procfs_mourn_inferior): Only unpush the target after mourning the
4780 inferior. Use inf_child_maybe_unpush_target.
4781 (procfs_init_inferior): Don't push the target if it is already
4782 pushed.
4783 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4784 if it is already pushed.
4785
4786 2014-05-21 Pedro Alves <palves@redhat.com>
4787
4788 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4789 and "procfs" targets are now called "native" instead.
4790
4791 2014-05-21 Pedro Alves <palves@redhat.com>
4792
4793 * go32-nat.c (go32_open): Delete.
4794 (go32_target): Don't override the to_open method.
4795
4796 2014-05-21 Pedro Alves <palves@redhat.com>
4797
4798 * nto-procfs.c (procfs_can_run): New function.
4799 (nto_procfs_ops): New global.
4800 (init_procfs_targets): New, based on procfs_target. Install
4801 "target native" in addition to "target procfs".
4802 (_initialize_procfs): Call init_procfs_targets instead of adding
4803 the target here.
4804
4805 2014-05-21 Pedro Alves <palves@redhat.com>
4806
4807 * windows-nat.c (windows_target): Don't override to_shortname,
4808 to_longname or to_doc.
4809
4810 2014-05-21 Pedro Alves <palves@redhat.com>
4811
4812 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4813 to_doc.
4814
4815 2014-05-21 Pedro Alves <palves@redhat.com>
4816
4817 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4818 to_shortname, to_longname or to_doc.
4819
4820 2014-05-21 Pedro Alves <palves@redhat.com>
4821
4822 * go32-nat.c (go32_target): Don't override to_shortname,
4823 to_longname or to_doc.
4824
4825 2014-05-21 Pedro Alves <palves@redhat.com>
4826
4827 * inf-child.c (inf_child_open): Remove mention of "child".
4828 (inf_child_target): Rename target to "native" instead of "child".
4829
4830 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4831
4832 * Makefile.in (SFILES): Delete "regset.c".
4833 (COMMON_OBS): Delete "regset.o".
4834 * regset.c: Remove.
4835 * regset.h (regset_alloc): Delete prototype.
4836
4837 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4838
4839 * sparc-linux-tdep.c (sparc32_linux_gregset)
4840 (sparc32_linux_fpregset): New static regset structures.
4841 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4842 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4843 'fpregset' fields.
4844 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4845 (sparc64_linux_fpregset): New static regset structures.
4846 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4847 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4848 New static regset structures.
4849 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4850 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4851 New static regset structures.
4852 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4853 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4854 New static regset structures.
4855 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4856 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4857 New static regset structures.
4858 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4859
4860 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4861
4862 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4863 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4864 register maps ("regmaps") from "*regset" to "*regmap". Do this
4865 for all regmap types and variables.
4866 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4867 (sparc32_linux_supply_core_gregset)
4868 (sparc32_linux_collect_core_gregset)
4869 (sparc32_linux_supply_core_fpregset)
4870 (sparc32_linux_collect_core_fpregset): Likewise.
4871 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4872 (sparc_gregmap, sparc_fpregmap): ... these.
4873 (sparc_supply_gregset, sparc_collect_gregset)
4874 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4875 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4876 (_initialize_sparc_nat): Rename regmaps.
4877 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4878 (sparc_gregmap, sparc_fpregmap): ... these.
4879 (sparc_supply_gregset, sparc_collect_gregset)
4880 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4881 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4882 Rename macros to...
4883 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4884 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4885 Likewise.
4886 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4887 Rename to...
4888 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4889 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4890 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4891 regmaps.
4892 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4893 (sparc32_bsd_fpregset): Rename to...
4894 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4895 (sparc32_bsd_fpregmap): ... these.
4896 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4897 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4898 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4899 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4900 (struct sparc_gregmap, struct sparc_fpregmap)
4901 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4902 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4903 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4904 (sparc32_supply_regset, sparc32_collect_gregset)
4905 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4906 prototypes.
4907 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4908 (sparc64_linux_ptrace_gregmap): ... this.
4909 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4910 (_initialize_sparc64_linux_nat): Rename regmaps.
4911 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4912 (sparc64_linux_core_gregmap): ... this.
4913 (sparc64_linux_supply_core_gregset)
4914 (sparc64_linux_collect_core_gregset)
4915 (sparc64_linux_supply_core_fpregset)
4916 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4917 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4918 (sparc64_sol2_fpregset): Rename to...
4919 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4920 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4921 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4922 regmaps.
4923 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4924 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4925 (sparc64_bsd_fpregset): Rename to...
4926 (struct sparc_gregmap, sparc64_sol2_gregmap)
4927 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4928 (sparc64_bsd_fpregmap): ... these.
4929 (sparc64_supply_gregset, sparc64_collect_gregset)
4930 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4931 prototypes.
4932 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4933 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4934 (sparc64fbsd_gregmap): ... this.
4935 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4936 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4937 Rename regmaps.
4938 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4939 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4940 (sparc64nbsd_collect_fpregset): Likewise.
4941 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4942 (sparc64nbsd_gregmap): ... this.
4943 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4944 regmaps.
4945 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4946 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4947 (sparc64obsd_gregmap): ... this.
4948 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4949 regmaps.
4950 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4951 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4952 (sparc32nbsd_gregmap): ... this.
4953 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4954 regmaps.
4955
4956 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4957
4958 * score-tdep.c (score7_linux_gregset): New static regset
4959 structure.
4960 (score7_linux_regset_from_core_section): Remove dynamic regset
4961 allocation.
4962 (score_gdbarch_init): Drop allocation of tdep structure.
4963 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4964
4965 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4966
4967 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4968 regset structures.
4969 (am33_regset_from_core_section): Remove dynamic regset
4970 allocations.
4971
4972 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4973
4974 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4975 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4976 structures.
4977 (mips_linux_regset_from_core_section): Remove dynamic regset
4978 allocations.
4979 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4980 'gregset64', 'fpregset', and 'fpregset64'.
4981 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4982 deleted tdep fields.
4983
4984 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4985
4986 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4987 regset structures.
4988 (amd64_regset_from_core_section): Remove dynamic regset
4989 allocations.
4990 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4991 structure.
4992 (amd64obsd_regset_from_core_section): Remove dynamic regset
4993 allocation.
4994 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4995 Likewise.
4996 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4997 x86-common regset supply function.
4998 * i386-tdep.c (i386_collect_gregset): Make static.
4999 (i386_gregset): New global regset structure.
5000 (i386_fpregset, i386_xstateregset): New static regset structures.
5001 (i386_regset_from_core_section): Remove dynamic regset
5002 allocations.
5003 (i386_gdbarch_init): Remove initialization of tdep fields
5004 'gregset', 'fpregset', and 'xstateregset'.
5005 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5006 'fpregset', and 'xstateregset'.
5007 (i386_collect_gregset): Remove prototype.
5008 (i386_gregset): New declaration.
5009 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5010 structure.
5011 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5012 allocation.
5013
5014 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5015
5016 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5017 (arm_linux_vfpregset): New static regset structures.
5018 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5019 regset structures.
5020 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5021 and 'vfpregset' fields.
5022
5023 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5024
5025 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5026 (aarch64_linux_fpregset): New static regset structures.
5027 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5028 of regset structures.
5029 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5030 'fpregset' fields.
5031
5032 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5033
5034 * regset.h (struct regset): Remove gdbarch field.
5035 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5036 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5037 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5038 Likewise.
5039 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5040 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5041 (ppc32_linux_vsxregset): Likewise.
5042 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5043 via the regcache instead of the regset.
5044 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5045 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5046 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5047 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5048 Likewise.
5049
5050 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5051
5052 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5053 Constify structures.
5054 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5055 (alphanbsd_aout_gregset): Likewise.
5056 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5057 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5058 Likewise.
5059 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5060 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5061 Likewise.
5062 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5063 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5064 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5065 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5066 * m88k-tdep.c (m88k_gregset): Likewise.
5067 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5068 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5069 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5070 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5071 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5072 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5073 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5074 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5075 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5076 Likewise.
5077 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5078 * sh-tdep.h (sh_corefile_gregset): Likewise.
5079 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5080 * vax-tdep.c (vax_gregset): Likewise.
5081
5082 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5083
5084 Fix TLS access for -static -pthread.
5085 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5086 (try_thread_db_load_1): Initialize it.
5087 (thread_db_get_thread_local_address): Call it if LM is zero.
5088 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5089 * target.h (struct target_ops) (to_get_thread_local_address): Add
5090 load_module_addr comment.
5091
5092 2014-05-21 Pedro Alves <palves@redhat.com>
5093
5094 * dcache.c (dcache_read_memory_partial): If reading the cache line
5095 fails, fallback to reading just the memory the caller wanted.
5096
5097 2014-05-20 Doug Evans <dje@google.com>
5098
5099 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5100 instead of get_current_arch.
5101
5102 2014-05-20 Pedro Alves <palves@redhat.com>
5103
5104 * NEWS: Mention that compare-sections now works with all targets.
5105
5106 * remote.c (PACKET_qCRC): New enum value.
5107 (remote_verify_memory): Don't send qCRC if the target has no
5108 execution. Use packet_support/packet_ok. If the target doesn't
5109 support the qCRC packet, fallback to a deep memory copy.
5110 (compare_sections_command): Say "target image" instead of "remote
5111 executable".
5112 (_initialize_remote): Add PACKET_qCRC to the list of config
5113 packets that have no associated command. Extend comment.
5114 * target.c (simple_verify_memory, default_verify_memory): New
5115 function.
5116 * target.h (struct target_ops) <to_verify_memory>: Default to
5117 default_verify_memory.
5118 (simple_verify_memory): New declaration.
5119 * target-delegates.c: Regenerate.
5120
5121 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5122
5123 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5124
5125 2014-05-20 Hui Zhu <hui@codesourcery.com>
5126 Yao Qi <yao@codesourcery.com>
5127
5128 PR backtrace/16558
5129 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5130 and change address of sp and pc.
5131
5132 2014-05-19 Tom Tromey <tromey@redhat.com>
5133
5134 * gdbtypes.c (rank_function): Use XNEWVEC.
5135 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5136
5137 2014-05-19 Doug Evans <dje@google.com>
5138
5139 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5140 build_type_unit_groups and moved closer to only caller. Remove
5141 arguments. All references updated. Remove outdated .gdb_index
5142 comment.
5143 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5144 build_type_psymtabs_1.
5145
5146 2014-05-19 Doug Evans <dje@google.com>
5147
5148 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5149 n_type_unit_groups, all_type_unit_groups. All uses removed.
5150 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5151 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5152 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5153 (add_type_unit_group_to_table): Delete.
5154
5155 2014-05-19 Doug Evans <dje@google.com>
5156
5157 * eval.c (evaluate_subexp_standard): Add some comments.
5158
5159 2014-05-17 Doug Evans <xdje42@gmail.com>
5160
5161 * progspace.c (remove_program_space): Delete, unused.
5162 * progspace.h (remove_program_space): Ditto.
5163
5164 2014-05-17 Doug Evans <xdje42@gmail.com>
5165
5166 * inferior.c (prune_inferiors): Fix comment.
5167 (remove_inferior_command): Call prune_program_spaces.
5168
5169 2014-05-16 Doug Evans <dje@google.com>
5170
5171 New command line option -D.
5172 * NEWS: Mention it.
5173 * main.c (set_gdb_data_directory): New function.
5174 (captured_main): Recognize -D. Flag error for --data-directory "".
5175 Call set_gdb_data_directory.
5176 (print_gdb_help): Print --data-directory, -D.
5177 * main.h (set_gdb_data_directory): Declare.
5178 * top.c (staged_gdb_datadir): New static global.
5179 (set_gdb_datadir): Call set_gdb_data_directory
5180 (show_gdb_datadir): New function.
5181 (init_main): Update init of data-directory parameter.
5182
5183 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5184
5185 Import the "dirfd" gnulib module.
5186 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5187 * gnulib/aclocal.m4: Update.
5188 * gnulib/config.in: Update.
5189 * gnulib/configure: Update.
5190 * gnulib/import/Makefile.am: Update.
5191 * gnulib/import/Makefile.in: Update.
5192 * gnulib/import/dirfd.c: New.
5193 * gnulib/import/m4/dirfd.m4: New.
5194 * gnulib/import/m4/gnulib-cache.m4: Update.
5195 * gnulib/import/m4/gnulib-comp.m4: Update.
5196
5197 2014-05-16 Pierre Muller <muller@sourceware.org>
5198 Yao Qi <yao@codesourcery.com>
5199
5200 * valprint.c (print_wchar): Move the code on checking whether
5201 W is a printable wide char to the default branch of switch
5202 statement below. Call wchar_printable instead of gdb_iswprint.
5203
5204 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5205
5206 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5207 ldr.w and ldrd instructions.
5208
5209 2014-05-15 Doug Evans <dje@google.com>
5210
5211 * dwarf2read.c (read_structure_type): Delete outdated comments.
5212
5213 2014-05-14 Tom Tromey <tromey@redhat.com>
5214
5215 * macrocmd.c (print_macro_definition): Reindent.
5216
5217 2014-05-13 Doug Evans <xdje42@gmail.com>
5218
5219 * python/py-cmd.c (cmdpy_completer): Add comment.
5220 (completers): Make const.
5221
5222 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5223
5224 * infrun.c (resume): Remove should_resume (unused). Move up
5225 declaration of resume_ptid.
5226
5227 2014-05-13 Tom Tromey <tromey@redhat.com>
5228
5229 * language.h (unop_type_check): Remove.
5230 (binop_type_check): Don't declare.
5231
5232 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5233
5234 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5235 call to regcache_raw_collect.
5236
5237 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5238
5239 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5240 mi_console->quote as the quoting character.
5241
5242 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5243
5244 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5245
5246 2014-04-29 Tom Tromey <tromey@redhat.com>
5247
5248 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5249 "show debug varobj".
5250
5251 2014-05-07 Kyle McMartin <kyle@redhat.com>
5252
5253 Pushed by Joel Brobecker <brobecker@adacore.com>.
5254 * aarch64-tdep.c (aarch64_software_single_step): New function.
5255 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5256 with aarch64_software_single_step.
5257
5258 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5259
5260 GDB 7.7.1 released.
5261
5262 2014-05-05 Keith Seitz <keiths@redhat.com>
5263
5264 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5265 variable or history value is successfully parsed.
5266
5267 2014-05-05 Yao Qi <yao@codesourcery.com>
5268 Pedro Alves <palves@redhat.com>
5269
5270 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5271 address of blocks that intersects the requested range. Trim
5272 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5273 sections.
5274 * ctf.c (ctf_xfer_partial): Likewise.
5275
5276 2014-05-05 Yao Qi <yao@codesourcery.com>
5277
5278 * printcmd.c (display_command): Remove the check to
5279 target_has_execution.
5280
5281 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5282
5283 * ppcobsd-nat.c: Include "obsd-nat.h".
5284 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5285 add_target.
5286 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5287
5288 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5289
5290 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5291 and 16-bit signed and unsigned arguments. Update comment.
5292 (stap_parse_probe_arguments): Extend code to handle such
5293 arguments. Use warning instead of complaint to notify about
5294 unrecognized bitness.
5295
5296 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5297
5298 PR breakpoints/16889
5299 * stap-probe.c (stap_parse_probe_arguments): Simplify
5300 check for non-prefixed probes (i.e., probes whose
5301 arguments do not start with "N@"). Always set the
5302 argument type to a sane value.
5303
5304 2014-05-01 David Taylor <dtaylor@emc.com>
5305
5306 * remote.c (compare_sections_command): Add -r option to compare
5307 all loadable read-only sections.
5308
5309 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5310
5311 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5312 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5313 Update all callers.
5314 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5315 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5316 Remove unused CORE_ADDR argument. Update all callers.
5317
5318 2014-04-29 Pedro Alves <palves@redhat.com>
5319
5320 * remote.c (struct packet_config) <detect>: Extend comment.
5321 (add_packet_config_cmd): Don't set the config's detect or support
5322 fields here.
5323 (init_all_packet_configs): Also initialize the config's 'detect'
5324 field.
5325 (reset_all_packet_configs_support): New function.
5326 (remote_open_1): Call reset_all_packet_configs_support instead of
5327 init_all_packet_configs.
5328 (_initialize_remote): Initialize all packet configs. Assert that
5329 all packets have an associated command, except a few known
5330 outliers.
5331
5332 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5333
5334 * dwarf2read.c (read_subrange_type): Handle dynamic
5335 DW_AT_lower_bound attributes.
5336
5337 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5338
5339 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5340 dynamic bounds before computing its upper bound.
5341 (ada_discrete_type_low_bound): Same as above with the lower bound.
5342
5343 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5344
5345 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5346 range types. Adjust the array handling implementation to
5347 take advantage of this change.
5348 (resolve_dynamic_range): New function, mostly extracted from
5349 resolve_dynamic_bounds.
5350 (resolve_dynamic_array): New function, mostly extracted from
5351 resolve_dynamic_bounds.
5352 (resolve_dynamic_bounds): Delete.
5353 (resolve_dynamic_type): Reimplement. Add handling of
5354 TYPE_CODE_RANGE types.
5355
5356 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5357
5358 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5359 handling of parallel ___XA types.
5360
5361 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5362
5363 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5364 unnecessary second call to static_unwrap_type.
5365
5366 2014-04-27 Hui Zhu <hui@codesourcery.com>
5367
5368 * stack.c (print_frame_info): Call do_gdb_disassembly with
5369 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5370
5371 2014-04-26 Doug Evans <xdje42@gmail.com>
5372
5373 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5374
5375 2014-04-25 Pedro Alves <palves@redhat.com>
5376
5377 PR server/16255
5378 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5379 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5380 and newline from built string.
5381 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5382 (linux_ptrace_attach_fail_reason): ... this.
5383 * linux-nat.c (linux_nat_attach): Adjust to use
5384 linux_ptrace_attach_fail_reason.
5385
5386 2014-04-25 Pedro Alves <palves@redhat.com>
5387
5388 * remote.c (struct remote_state): Remove multi_process_aware,
5389 non_stop_aware, cond_tracepoints, cond_breakpoints,
5390 breakpoint_commands, fast_tracepoints, static_tracepoints,
5391 install_in_trace, disconnected_tracing,
5392 enable_disable_tracepoints, string_tracing, and
5393 augmented_libraries_svr4_read fields.
5394 (remote_multi_process_p): Move further below in the file.
5395 (struct packet_config): Add comments.
5396 (update_packet_config): Delete function.
5397 (show_packet_config_cmd): Use packet_config_support.
5398 (add_packet_config_cmd): Use NULL as set callback.
5399 (packet_ok): "set remote foo-packet"-style commands no longer
5400 change config->supported -- adjust.
5401 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5402 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5403 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5404 (PACKET_QNonStop, PACKET_multiprocess_feature)
5405 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5406 (PACKET_DisconnectedTracing_feature)
5407 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5408 (set_remote_protocol_packet_cmd): Delete function.
5409 (packet_config_support, packet_support): New functions.
5410 (set_remote_protocol_Z_packet_cmd): Don't call
5411 update_packet_config.
5412 (remote_query_attached, remote_pass_signals)
5413 (remote_program_signals, remote_threads_info)
5414 (remote_threads_extra_info, remote_start_remote): Use
5415 packet_support.
5416 (remote_start_remote): Use packet_config_support and
5417 packet_support.
5418 (init_all_packet_configs): Set all packets to unknown support,
5419 instead of calling update_packet_config.
5420 (remote_check_symbols): Use packet_support.
5421 (remote_supported_packet): Unconditionally set the packet config's
5422 support status.
5423 (remote_multi_process_feature, remote_non_stop_feature)
5424 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5425 (remote_breakpoint_commands_feature)
5426 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5427 (remote_install_in_trace_feature)
5428 (remote_disconnected_tracing_feature)
5429 (remote_enable_disable_tracepoint_feature)
5430 (remote_string_tracing_feature)
5431 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5432 (remote_protocol_features): Adjust to use remote_supported_packet
5433 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5434 "ConditionalTracepoints", "ConditionalBreakpoints",
5435 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5436 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5437 "EnableDisableTracepoints", and "tracenz".
5438 (remote_query_supported): Use packet_support.
5439 (remote_open_1): Adjust.
5440 (extended_remote_attach_1): Use packet_support. Switch on the
5441 result of packet_ok instead of checking whether the packet ended
5442 up disabled.
5443 (remote_vcont_resume): Use packet_support.
5444 (remote_resume, remote_stop_ns, fetch_register_using_p)
5445 (remote_prepare_to_store, store_register_using_P)
5446 (check_binary_download, remote_write_bytes): Use packet_support.
5447 (remote_vkill): Use packet_support. Switch on the result of
5448 packet_ok instead of checking whether the packet ended up
5449 disabled.
5450 (extended_remote_supports_disable_randomization): Use
5451 packet_support.
5452 (extended_remote_run): Switch on the result of packet_ok instead
5453 of checking whether the packet ended up disabled.
5454 (remote_insert_breakpoint, remote_remove_breakpoint)
5455 (remote_insert_watchpoint, remote_remove_watchpoint)
5456 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5457 packet_support.
5458 (remote_search_memory): Use packet_config_support.
5459 (remote_get_thread_local_address, remote_get_tib_address)
5460 (remote_hostio_send_command, remote_can_execute_reverse): Use
5461 packet_support.
5462 (remote_supports_cond_tracepoints)
5463 (remote_supports_cond_breakpoints)
5464 (remote_supports_fast_tracepoints)
5465 (remote_supports_static_tracepoints)
5466 (remote_supports_install_in_trace)
5467 (remote_supports_enable_disable_tracepoint)
5468 (remote_supports_string_tracing)
5469 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5470 the packet config says the feature is enabled or disabled.
5471 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5472 (remote_get_trace_status): Use packet_support.
5473 (remote_set_disconnected_tracing): Adjust to check whether the
5474 feature is enabled with packet_support.
5475 (remote_set_trace_buffer_size, remote_use_agent)
5476 (remote_can_use_agent, remote_supports_btrace): Use
5477 packet_support.
5478 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5479 Use packet_config_support.
5480 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5481 the packet config says the feature is enabled or disabled.
5482 (set_range_stepping): Use packet_support.
5483
5484 2014-04-25 Tom Tromey <tromey@redhat.com>
5485
5486 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5487 argument.
5488
5489 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5490
5491 * NEWS: Mention support for C99 variable length arrays.
5492
5493 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5494
5495 * ada-lang.c (standard_exc): Expand introductory comment.
5496
5497 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5498 Walfred Tedeschi <walfred.tedeschi@intel.com>
5499
5500 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5501 AVX512 registers.
5502 (amd64_linux_read_description): Add code to handle AVX512 xstate
5503 mask and return respective tdesc.
5504 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5505 and features/i386/x32-avx512-linux.c.
5506 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5507 (amd64_linux_core_read_description): Add code to handle AVX512
5508 xstate mask and return respective tdesc.
5509 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5510 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5511 calculation.
5512 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5513 (tdesc_amd64_avx512_linux): New prototype.
5514 (tdesc_x32_avx512_linux): Likewise.
5515 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5516 features/i386/x32-avx512.c.
5517 (amd64_ymm_avx512_names): New register names for pseudo
5518 registers YMM16-31.
5519 (amd64_ymmh_avx512_names): New register names for raw registers
5520 YMMH16-31.
5521 (amd64_k_names): New register names for K registers.
5522 (amd64_zmmh_names): New register names for ZMM raw registers.
5523 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5524 (amd64_xmm_avx512_names): New register names for XMM16-31
5525 registers.
5526 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5527 registers.
5528 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5529 if feature is present.
5530 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5531 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5532 (AMD64_NUM_REGS): Adjust to new number of registers.
5533 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5534 registers supplied via XSTATE by AVX512 registers.
5535 (i386_linux_read_description): Add case for AVX512.
5536 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5537 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5538 (i386_linux_core_read_description): Add case for AVX512.
5539 (i386_linux_init_abi): Install supported register note section
5540 for AVX512.
5541 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5542 AVX512.
5543 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5544 registers to be number of zmm7h + 1.
5545 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5546 * i386-tdep.c: Include features/i386/i386-avx512.c.
5547 (i386_zmm_names): Add ZMM pseudo register names array.
5548 (i386_zmmh_names): Add ZMM raw register names array.
5549 (i386_k_names): Add K raw register names array.
5550 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5551 registers. AVX512 has 16 more ZMM registers than there are YMM
5552 registers.
5553 (i386_zmmh_regnum_p): Add function to look up register number of
5554 ZMM raw registers.
5555 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5556 (i386_k_regnum_p): Likewise for K raw registers.
5557 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5558 registers added by AVX512.
5559 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5560 registers added by AVX512.
5561 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5562 added by AVX512.
5563 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5564 (i386_pseudo_register_name): Add ZMM pseudo registers.
5565 (i386_zmm_type): Construct and return vector registers type for ZMM
5566 registers.
5567 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5568 ZMM0-31 pseudo registers and K registers.
5569 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5570 and YMM16-31 registers from register cache.
5571 (i386_pseudo_register_write): Add code to write K, ZMM and
5572 YMM16-31 registers.
5573 (i386_register_reggroup_p): Add code to include/exclude AVX512
5574 registers in/from respective register groups.
5575 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5576 registers if feature is present in xcr0.
5577 (i386_gdbarch_init): Add code to initialize AVX512 feature
5578 variables in tdep structure, wire in pseudo registers and call
5579 initialize_tdesc_i386_avx512.
5580 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5581 variables.
5582 (i386_regnum): Add AVX512 registers.
5583 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5584 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5585 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5586 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5587 512 bits wide.
5588 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5589 (i386_ymm_avx512_regnum_p): Likewise.
5590 (i386_k_regnum_p): Likewise.
5591 (i386_zmm_regnum_p): Likewise.
5592 (i386_zmmh_regnum_p): Likewise.
5593 * i387-tdep.c : Update year in copyright notice.
5594 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5595 XSAVE buffer.
5596 (XSAVE_YMM_AVX512_ADDR): New macro.
5597 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5598 XSAVE buffer.
5599 (XSAVE_XMM_AVX512_ADDR): New macro.
5600 (xsave_avx512_k_offset): New table for K register offsets in
5601 XSAVE buffer.
5602 (XSAVE_AVX512_K_ADDR): New macro.
5603 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5604 in XSAVE buffer.
5605 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5606 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5607 buffer.
5608 (i387_collect_xsave): Add code to collect AVX512 registers from
5609 XSAVE buffer.
5610 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5611 of XMM16-31 registers.
5612 (I387_NUM_K_REGS): New define for number of K registers.
5613 (I387_K0_REGNUM): New define for K0 register number.
5614 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5615 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5616 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5617 registers.
5618 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5619 (I387_XMM16_REGNUM): New define for XMM16 register number.
5620 (I387_YMM0_REGNUM): New define for YMM0 register number.
5621 (I387_KEND_REGNUM): New define for last K register number.
5622 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5623 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5624 number.
5625 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5626 number.
5627 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5628 size.
5629 * features/Makefile: Add AVX512 related files.
5630 * features/i386/32bit-avx512.xml: New file.
5631 * features/i386/64bit-avx512.xml: Likewise.
5632 * features/i386/amd64-avx512-linux.c: Likewise.
5633 * features/i386/amd64-avx512-linux.xml: Likewise.
5634 * features/i386/amd64-avx512.c: Likewise.
5635 * features/i386/amd64-avx512.xml: Likewise.
5636 * features/i386/i386-avx512-linux.c: Likewise.
5637 * features/i386/i386-avx512-linux.xml: Likewise.
5638 * features/i386/i386-avx512.c: Likewise.
5639 * features/i386/i386-avx512.xml: Likewise.
5640 * features/i386/x32-avx512-linux.c: Likewise.
5641 * features/i386/x32-avx512-linux.xml: Likewise.
5642 * features/i386/x32-avx512.c: Likewise.
5643 * features/i386/x32-avx512.xml: Likewise.
5644 * regformats/i386/amd64-avx512-linux.dat: New file.
5645 * regformats/i386/amd64-avx512.dat: Likewise.
5646 * regformats/i386/i386-avx512-linux.dat: Likewise.
5647 * regformats/i386/i386-avx512.dat: Likewise.
5648 * regformats/i386/x32-avx512-linux.dat: Likewise.
5649 * regformats/i386/x32-avx512.dat: Likewise.
5650 * NEWS: Add note about new support for AVX512.
5651
5652
5653 2014-04-23 Pedro Alves <palves@redhat.com>
5654
5655 * breakpoint.c (insert_bp_location): Tolerate errors if the
5656 breakpoint is set in a user-loaded objfile.
5657 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5658 location is marked shlib_disabled. If the breakpoint is set in a
5659 user-loaded objfile is a GDB-side memory breakpoint, validate it
5660 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5661 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5662 flag.
5663 * mem-break.c (memory_validate_breakpoint): New function.
5664 * objfiles.c (userloaded_objfile_contains_address_p): New
5665 function.
5666 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5667 * target.h (memory_validate_breakpoint): New declaration.
5668
5669 2014-04-23 Pedro Alves <palves@redhat.com>
5670
5671 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5672 the breakpoint is set in a shared library, only suppress
5673 errors for software breakpoints, not hardware breakpoints.
5674
5675 2014-04-22 Pedro Alves <palves@redhat.com>
5676
5677 * infrun.c (schedlock_applies): New function, factored out from
5678 find_thread_needs_step_over.
5679 (find_thread_needs_step_over): Use it.
5680 (switch_back_to_stepped_thread): Always clear trap_expected if the
5681 step over is finished. Return early if scheduler locking applies.
5682 Look for the stepping thread and a potential step-over thread with
5683 a single loop.
5684 (currently_stepping_or_nexting_callback): Delete.
5685
5686 2014-04-22 Nick Clifton <nickc@redhat.com>
5687
5688 * NEWS: Mention that ARM sim now supports tracing.
5689
5690 2014-04-22 Yao Qi <yao@codesourcery.com>
5691
5692 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5693 to ...
5694 * tracefile.c (tracefile_fetch_registers): ... it. New
5695 function.
5696 * tracefile.h (tracefile_fetch_registers): Declare.
5697 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5698 tracefile_fetch_registers.
5699
5700 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5701
5702 PR gdb/14018
5703 * windows-nat.c (thread_rec): Don't display a warning when
5704 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5705 fails for any reason, set th->suspended to -1, so that we don't
5706 try to resume such a thread. Also, don't return NULL in these
5707 cases, to avoid completely ruin the session due to "PC register is
5708 not available" error.
5709 (do_windows_fetch_inferior_registers): Check errors in
5710 GetThreadContext call.
5711 (windows_continue): Accept an additional argument KILLED; if not
5712 zero, ignore errors in the SetThreadContext call, since the
5713 inferior was killed and is shutting down.
5714 (windows_resume, get_windows_debug_event)
5715 (windows_create_inferior, windows_mourn_inferior)
5716 (windows_kill_inferior): All callers of windows_continue changed
5717 to adjust to its new calling sequence.
5718
5719 2014-04-19 Yao Qi <yao@codesourcery.com>
5720
5721 * ctf.c (ctf_open): Call post_create_inferior.
5722
5723 2014-04-19 Yao Qi <yao@codesourcery.com>
5724
5725 * ctf.c (handle_id): New static variable.
5726 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5727 value. Get the declaration of event "register" and get length
5728 of field "contents".
5729
5730 2014-04-19 Yao Qi <yao@codesourcery.com>
5731
5732 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5733
5734 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5735
5736 * valops.c (oload_method_static): Remove unnecessary argument
5737 METHOD. Update all callers.
5738
5739 2014-04-18 Pedro alves <palves@redhat.com>
5740 Tom Tromey <tromey@redhat.com>
5741
5742 PR backtrace/15558
5743 * frame.c (get_prev_frame_1): Rename to ...
5744 (get_prev_frame_always): ... this, and make extern. Adjust.
5745 (skip_artificial_frames): Use get_prev_frame_always.
5746 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5747 (get_frame_unwind_stop_reason): Adjust to rename.
5748 * frame.h (get_prev_frame_always): Declare.
5749 * inline-frame.c: Include frame.h.
5750 (inline_frame_this_id): Use get_prev_frame_always.
5751
5752 2014-04-18 Tristan Gingold <gingold@adacore.com>
5753
5754 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5755 code by using bfd_mach_o_get_base_address.
5756
5757 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5758
5759 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5760 (spu_ax_pseudo_register_collect): New function.
5761 (spu_ax_pseudo_register_push_stack): Likewise.
5762 (spu_dwarf_reg_to_regnum): Likewise.
5763 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5764
5765 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5766
5767 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5768 Replace FRAME argument with FRAME_ID.
5769 * gdbarch.c, gdbarch.h: Regenerate.
5770 * findvar.c (default_value_from_register): Add GDBARCH argument;
5771 replace FRAME by FRAME_ID. No longer call get_frame_id.
5772 (value_from_register): Update call to gdbarch_value_from_register.
5773 * value.h (default_value_from_register): Update prototype.
5774 * s390-linux-tdep.c (s390_value_from_register): Update interface
5775 and call to default_value_from_register.
5776 * spu-tdep.c (spu_value_from_register): Likewise.
5777
5778 * findvar.c (address_from_register): Remove TYPE argument.
5779 Do not call value_from_register; use gdbarch_value_from_register
5780 with null_frame_id instead.
5781 * value.h (address_from_register): Update prototype.
5782 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5783 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5784 address_from_register interface change.
5785
5786 2014-04-17 Yao Qi <yao@codesourcery.com>
5787
5788 * gdbtypes.h: Update comments to link to types and macros'
5789 definitions.
5790
5791 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5792
5793 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5794
5795 2014-04-16 Keith Seitz <keiths@redhat.com>
5796
5797 PR gdb/15827
5798 * dwarf2read.c (skip_one_die): Check that all relative-offset
5799 sibling DIEs fall within range of the current reader's buffer.
5800 (read_partial_die): Likewise.
5801
5802 2014-04-16 Keith Seitz <keiths@redhat.com>
5803
5804 PR c++/16597
5805 * cp-namespace.c (lookup_symbol_file): If the type name of
5806 `this' is NULL, return immediately.
5807
5808 2014-04-14 Keith Seitz <keiths@redhat.com>
5809
5810 PR c++/16253
5811 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5812 from symbol_matches_domain in symtab.c. All local callers
5813 of symbol_matches_domain updated.
5814 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5815 search STRUCT_DOMAIN.
5816 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5817 independently. standard_lookup will do that automatically.
5818 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5819 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5820 (cp_lookup_symbol_in_namespace): Likewise.
5821 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5822 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5823 may return a STRUCT_DOMAIN match.
5824 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5825 * cp-support.c: Include language.h.
5826 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5827 VAR_DOMAIN.
5828 * psymtab.c (match_partial_symbol): Compare the requested
5829 domain with the symbol's domain directly.
5830 (lookup_partial_symbol): Likewise.
5831 * symtab.c (lookup_symbol_in_language): Explain when/why
5832 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5833 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5834 appropriate languages.
5835 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5836 and moved to ada-lang.c
5837 (lookup_block_symbol): Explain that this function only returns
5838 symbol matching the requested DOMAIN.
5839 Compare the requested domain with the symbol's domain directly.
5840 (iterate_over_symbols): Compare the requested domain with the
5841 symbol's domain directly.
5842 * symtab.h (symbol_matches_domain): Remove.
5843
5844 2014-04-14 Tom Tromey <tromey@redhat.com>
5845
5846 PR c++/15246:
5847 * c-exp.y (type_aggregate_p): New function.
5848 (qualified_name, classify_inner_name): Use it.
5849 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5850 and TYPE_TARGET_TYPE of an enum type.
5851 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5852 an enum type.
5853 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5854 handle TYPE_DECLARED_CLASS.
5855 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5856 types.
5857 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5858 * valops.c (enum_constant_from_type): New function.
5859 (value_aggregate_elt): Use it.
5860 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5861 TYPE_CODE_ENUM.
5862
5863 2014-04-14 Tom Tromey <tromey@redhat.com>
5864
5865 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5866 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5867 const.
5868 * value.h (value_aggregate_elt): Update.
5869
5870 2014-04-14 Tom Tromey <tromey@redhat.com>
5871
5872 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5873
5874 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5875
5876 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5877 (evaluate_subexp_standard): Pass noside argument.
5878 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5879 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5880 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5881 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5882 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5883
5884 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5885
5886 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5887 points to a constant blob.
5888
5889 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5890
5891 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5892 property and store it as the high bound and flag the range accordingly.
5893 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5894 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5895 * gdbtypes.h (enum range_flags): New enum.
5896 (struct range_bounds): Add flags member.
5897
5898 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5899
5900 * c-typeprint.c (c_type_print_varspec_suffix): Added
5901 check for not yet resolved high bound. If unresolved, print
5902 "variable length" string to the console instead of random
5903 length.
5904
5905 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5906
5907 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5908 value.
5909 (ada_template_to_fixed_record_type_1): Likewise.
5910 (ada_to_fixed_type_1): Likewise.
5911 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5912 (cp_print_value): Likewise.
5913 * d-valprint.c (dynamic_array_type): Likewise.
5914 * findvar.c (address_of_variable): Likewise.
5915 * jv-valprint.c (java_value_print): Likewise.
5916 * valops.c (value_ind): Likewise.
5917 * value.c (coerce_ref): Likewise.
5918
5919 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5920
5921 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5922 value and retrieve the dynamic type size.
5923
5924 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5925
5926 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5927 passed to sizeof is dynamic evaluate the argument to compute the length.
5928
5929 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5930 Joel Brobecker <brobecker@adacore.com>
5931
5932 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5933 (dwarf2_evaluate_property): New function.
5934 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5935 * dwarf2read.c (attr_to_dynamic_prop): New function.
5936 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5937 attribute.
5938 * gdbtypes.c: Include dwarf2loc.h.
5939 (is_dynamic_type): New function.
5940 (resolve_dynamic_type): New function.
5941 (resolve_dynamic_bounds): New function.
5942 (get_type_length): New function.
5943 (check_typedef): Use get_type_length to compute type length.
5944 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5945 (TYPE_LOW_BOUND_KIND): New macro.
5946 (is_dynamic_type): New function prototype.
5947 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5948 to resolve dynamic properties of the type. Update comment.
5949 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5950
5951 2014-04-14 Richard Henderson <rth@redhat.com>
5952
5953 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5954
5955 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5956 Doug Evans <xdje42@gmail.com>
5957
5958 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5959 dereference TYPE_CODE_REF values.
5960
5961 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5962
5963 Revert the following changes due to regressions:
5964
5965 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5966 (dwarf2_evaluate_property): New function.
5967 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5968 * dwarf2read.c (attr_to_dynamic_prop): New function.
5969 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5970 attribute.
5971 * gdbtypes.c: Include dwarf2loc.h.
5972 (is_dynamic_type): New function.
5973 (resolve_dynamic_type): New function.
5974 (resolve_dynamic_bounds): New function.
5975 (get_type_length): New function.
5976 (check_typedef): Use get_type_length to compute type length.
5977 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5978 (TYPE_LOW_BOUND_KIND): New macro.
5979 (is_dynamic_type): New function prototype.
5980 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5981 to resolve dynamic properties of the type. Update comment.
5982 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5983
5984 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5985 passed to sizeof is dynamic evaluate the argument to compute the length.
5986
5987 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5988 value and retrieve the dynamic type size.
5989
5990 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5991 (ada_template_to_fixed_record_type_1): Likewise.
5992 (ada_to_fixed_type_1): Likewise.
5993 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5994 (cp_print_value): Likewise.
5995 * d-valprint.c (dynamic_array_type): Likewise.
5996 * eval.c (evaluate_subexp_with_coercion): Likewise.
5997 * findvar.c (address_of_variable): Likewise.
5998 * jv-valprint.c (java_value_print): Likewise.
5999 * valops.c (value_ind): Likewise.
6000 * value.c (coerce_ref): Likewise.
6001
6002 * c-typeprint.c (c_type_print_varspec_suffix): Added
6003 check for not yet resolved high bound. If unresolved, print
6004 "variable length" string to the console instead of random
6005 length.
6006
6007 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6008 property and store it as the high bound and flag the range accordingly.
6009 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6010 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6011 * gdbtypes.h (enum range_flags): New enum.
6012 (struct range_bounds): Add flags member.
6013
6014 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6015 points to a constant blob.
6016
6017 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6018 (evaluate_subexp_standard): Pass noside argument.
6019 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6020 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6021 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6022 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6023 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6024
6025 2014-04-11 Keith Seitz <keiths@redhat.com>
6026
6027 PR c++/16675
6028 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6029 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6030 reference types.
6031
6032 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6033
6034 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6035 (evaluate_subexp_standard): Pass noside argument.
6036 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6037 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6038 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6039 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6040 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6041
6042 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6043
6044 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6045 points to a constant blob.
6046
6047 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6048
6049 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6050 property and store it as the high bound and flag the range accordingly.
6051 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6052 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6053 * gdbtypes.h (enum range_flags): New enum.
6054 (struct range_bounds): Add flags member.
6055
6056 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6057
6058 * c-typeprint.c (c_type_print_varspec_suffix): Added
6059 check for not yet resolved high bound. If unresolved, print
6060 "variable length" string to the console instead of random
6061 length.
6062
6063 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6064
6065 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6066 (ada_template_to_fixed_record_type_1): Likewise.
6067 (ada_to_fixed_type_1): Likewise.
6068 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6069 (cp_print_value): Likewise.
6070 * d-valprint.c (dynamic_array_type): Likewise.
6071 * eval.c (evaluate_subexp_with_coercion): Likewise.
6072 * findvar.c (address_of_variable): Likewise.
6073 * jv-valprint.c (java_value_print): Likewise.
6074 * valops.c (value_ind): Likewise.
6075 * value.c (coerce_ref): Likewise.
6076
6077 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6078
6079 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6080 value and retrieve the dynamic type size.
6081
6082 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6083
6084 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6085 passed to sizeof is dynamic evaluate the argument to compute the length.
6086
6087 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6088
6089 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6090 (dwarf2_evaluate_property): New function.
6091 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6092 * dwarf2read.c (attr_to_dynamic_prop): New function.
6093 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6094 attribute.
6095 * gdbtypes.c: Include dwarf2loc.h.
6096 (is_dynamic_type): New function.
6097 (resolve_dynamic_type): New function.
6098 (resolve_dynamic_bounds): New function.
6099 (get_type_length): New function.
6100 (check_typedef): Use get_type_length to compute type length.
6101 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6102 (TYPE_LOW_BOUND_KIND): New macro.
6103 (is_dynamic_type): New function prototype.
6104 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6105 to resolve dynamic properties of the type. Update comment.
6106 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6107
6108 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6109
6110 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6111 declaring high/low bounds and change uses accordingly. Call
6112 create_range_type instead of create_static_range_type.
6113 * gdbtypes.c (create_range_type): New function.
6114 (create_range_type): Convert bounds into struct bound_prop and pass
6115 them to create_range_type.
6116 * gdbtypes.h (struct bound_prop): New struct.
6117 (create_range_type): New function prototype.
6118 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6119 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6120 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6121 part of the bound.
6122 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6123
6124 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6125
6126 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6127 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6128 * ada-lang.c: All uses of create_range_type updated.
6129 * coffread.c: All uses of create_range_type updated.
6130 * dwarf2read.c: All uses of create_range_type updated.
6131 * f-exp.y: All uses of create_range_type updated.
6132 * m2-valprint.c: All uses of create_range_type updated.
6133 * mdebugread.c: All uses of create_range_type updated.
6134 * stabsread.c: All uses of create_range_type updated.
6135 * valops.c: All uses of create_range_type updated.
6136 * valprint.c: All uses of create_range_type updated.
6137
6138 2014-04-10 Pedro Alves <palves@redhat.com>
6139
6140 * breakpoint.c (single_step_breakpoints)
6141 (single_step_gdbarch): Move up in the file.
6142 (one_breakpoint_xfer_memory): New function, factored out from ...
6143 (breakpoint_xfer_memory): ... here. Also process single-step
6144 breakpoints.
6145
6146 2014-04-09 Tristan Gingold <gingold@adacore.com>
6147
6148 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6149 comments.
6150 (darwin_decode_exception_message): Free port only after use.
6151
6152 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6153
6154 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6155 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6156 when setting the size of call_length.
6157
6158 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6159
6160 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6161 dereference TYPE_CODE_REF values.
6162
6163 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6164
6165 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6166 end of warning message.
6167
6168 2014-04-03 Doug Evans <dje@google.com>
6169
6170 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6171 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6172
6173 2014-04-02 Alan Modra <amodra@gmail.com>
6174
6175 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6176 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6177 (struct symbol_file_add_from_memory_args): Add size field.
6178 (find_vdso_size): New function.
6179 (add_vsyscall_page): Attempt to find vdso size.
6180
6181 2014-04-01 Doug Evans <dje@google.com>
6182
6183 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6184
6185 2014-04-01 Tristan Gingold <gingold@adacore.com>
6186
6187 * darwin-nat.c (darwin_encode_reply): Add prototype.
6188 (darwin_decode_exception_message): Reply to unknown inferiors.
6189 (darwin_decode_message): Handle message by id. Ignore message
6190 to unknown inferior.
6191 (darwin_wait): Discard unknown messages, add debug trace.
6192
6193 2014-03-31 Doug Evans <dje@google.com>
6194
6195 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6196 comp_dir_string.
6197
6198 2014-03-31 Doug Evans <dje@google.com>
6199
6200 New option "set print symbol-loading".
6201 * NEWS: Mention it.
6202 * solib.c (solib_read_symbols): Only print symbol loading messages
6203 if requested.
6204 (solib_add): If symbol loading is in "brief" mode, notify user
6205 symbols are being loaded.
6206 (reload_shared_libraries_1): Ditto.
6207 * symfile.c (print_symbol_loading_off): New static global.
6208 (print_symbol_loading_brief): New static global.
6209 (print_symbol_loading_full): New static global.
6210 (print_symbol_loading_enums): New static global.
6211 (print_symbol_loading): New static global.
6212 (print_symbol_loading_p): New function.
6213 (symbol_file_add_with_addrs): Only print symbol loading messages
6214 if requested.
6215 (_initialize_symfile): Register "print symbol-loading" set/show
6216 command.
6217 * symfile.h (print_symbol_loading_p): Declare.
6218
6219 2014-03-30 Doug Evans <xdje42@gmail.com>
6220
6221 * infrun.c (set_last_target_status): New function.
6222 (handle_inferior_event): Call it.
6223
6224 2014-03-30 Doug Evans <xdje42@gmail.com>
6225
6226 * inferior.h (enum stop_kind): Improve comment.
6227
6228 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6229
6230 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6231 a reference, strip the reference layer before calling
6232 the lang_ops value_has_mutated callback.
6233
6234 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6235
6236 Remove some globals from our parser.
6237 * language.c (unk_lang_parser): Add "struct parser_state"
6238 argument.
6239 * language.h (struct language_defn) <la_parser>: Likewise.
6240 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6241 (initialize_expout): Add "struct parser_state" argument.
6242 Rewrite function to use the parser state.
6243 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6244 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6245 write_exp_elt_longcst, write_exp_elt_dblcst,
6246 write_exp_elt_decfloatcst, write_exp_elt_type,
6247 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6248 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6249 write_dollar_variable): Likewise.
6250 (parse_exp_in_context_1): Use parser state.
6251 (insert_type_address_space): Add "struct parser_state" argument.
6252 Use parser state.
6253 (increase_expout_size): New function.
6254 * parser-defs.h: Forward declare "struct language_defn" and
6255 "struct parser_state".
6256 (expout, expout_size, expout_ptr): Remove extern declarations.
6257 (parse_gdbarch, parse_language): Rewrite macro declarations to
6258 accept the parser state.
6259 (struct parser_state): New struct.
6260 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6261 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6262 write_exp_elt_decfloatcst, write_exp_elt_type,
6263 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6264 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6265 write_exp_msymbol, write_dollar_variable,
6266 mark_struct_expression, insert_type_address_space): Add "struct
6267 parser_state" argument.
6268 (increase_expout_size): New function.
6269 * utils.c (do_clear_parser_state): New function.
6270 (make_cleanup_clear_parser_state): Likewise.
6271 * utils.h (make_cleanup_clear_parser_state): New function
6272 prototype.
6273 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6274 Update calls to write_exp* in order to pass the parser state.
6275 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6276 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6277 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6278 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6279 * stap-probe.c (stap_parse_register_operand): Likewise.
6280 (stap_parse_single_operand): Likewise.
6281 (stap_parse_argument_1): Likewise.
6282 (stap_parse_argument): Use parser state.
6283 * stap-probe.h: Include "parser-defs.h".
6284 (struct stap_parse_info) <pstate>: New field.
6285 * c-exp.y (parse_type): Rewrite to use parser state.
6286 (yyparse): Redefine to c_parse_internal.
6287 (pstate): New global variable.
6288 (parse_number): Add "struct parser_state" argument.
6289 (write_destructor_name): Likewise.
6290 (type_exp): Update calls to write_exp* and similars in order to
6291 use parser state.
6292 (exp1, exp, variable, qualified_name, space_identifier,
6293 typename, typebase): Likewise.
6294 (write_destructor_name, parse_number, lex_one_token,
6295 classify_name, classify_inner_name, c_parse): Add "struct
6296 parser_state" argument. Update function to use parser state.
6297 * c-lang.h: Forward declare "struct parser_state".
6298 (c_parse): Add "struct parser_state" argument.
6299 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6300 (yyparse): Redefine macro to ada_parse_internal.
6301 (pstate): New variable.
6302 (write_int, write_object_renaming, write_var_or_type,
6303 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6304 type_int, type_long, type_long_long, type_float, type_double,
6305 type_long_double, type_char, type_boolean, type_system_address):
6306 Add "struct parser_state" argument.
6307 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6308 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6309 var_or_type, aggregate, aggregate_component_list,
6310 positional_list, others, component_group,
6311 component_associations): Update calls to write_exp* and similar
6312 functions in order to use parser state.
6313 (ada_parse, write_var_from_sym, write_int,
6314 write_exp_op_with_string, write_object_renaming,
6315 find_primitive_type, write_selectors, write_ambiguous_var,
6316 write_var_or_type, write_name_assoc, type_int, type_long,
6317 type_long_long, type_float, type_double, type_long_double,
6318 type_char, type_boolean, type_system_address): Add "struct
6319 parser_state" argument. Adjust function to use parser state.
6320 * ada-lang.c (parse): Likewise.
6321 * ada-lang.h: Forward declare "struct parser_state".
6322 (ada_parse): Add "struct parser_state" argument.
6323 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6324 calls to both functions.
6325 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6326 parser state.
6327 (yyparse): Redefine macro to f_parse_internal.
6328 (pstate): New variable.
6329 (parse_number): Add "struct parser_state" argument.
6330 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6331 and similars in order to use parser state.
6332 (parse_number): Adjust code to use parser state.
6333 (yylex): Likewise.
6334 (f_parse): New function.
6335 * f-lang.h: Forward declare "struct parser_state".
6336 (f_parse): Add "struct parser_state" argument.
6337 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6338 parser state.
6339 (yyparse): Redefine macro for java_parse_internal.
6340 (pstate): New variable.
6341 (push_expression_name, push_expression_name, insert_exp): Add
6342 "struct parser_state" argument.
6343 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6344 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6345 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6346 PostIncrementExpression, PostDecrementExpression,
6347 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6348 UnaryExpressionNotPlusMinus, CastExpression,
6349 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6350 RelationalExpression, EqualityExpression, AndExpression,
6351 ExclusiveOrExpression, InclusiveOrExpression,
6352 ConditionalAndExpression, ConditionalOrExpression,
6353 ConditionalExpression, Assignment, LeftHandSide): Update
6354 calls to write_exp* and similars in order to use parser state.
6355 (parse_number): Ajust code to use parser state.
6356 (yylex): Likewise.
6357 (java_parse): New function.
6358 (push_variable): Add "struct parser_state" argument. Adjust
6359 code to user parser state.
6360 (push_fieldnames, push_qualified_expression_name,
6361 push_expression_name, insert_exp): Likewise.
6362 * jv-lang.h: Forward declare "struct parser_state".
6363 (java_parse): Add "struct parser_state" argument.
6364 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6365 parser state.
6366 (yyparse): Redefine macro to m2_parse_internal.
6367 (pstate): New variable.
6368 (type_exp, exp, fblock, variable, type): Update calls to
6369 write_exp* and similars to use parser state.
6370 (yylex): Likewise.
6371 (m2_parse): New function.
6372 * m2-lang.h: Forward declare "struct parser_state".
6373 (m2_parse): Add "struct parser_state" argument.
6374 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6375 * objc-lang.h: Forward declare "struct parser_state".
6376 (end_msglist): Add "struct parser_state" argument.
6377 * p-exp.y (parse_type): Rewrite macro to use parser state.
6378 (yyparse): Redefine macro to pascal_parse_internal.
6379 (pstate): New variable.
6380 (parse_number): Add "struct parser_state" argument.
6381 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6382 write_exp* and similars in order to use parser state.
6383 (parse_number, yylex): Adjust code to use parser state.
6384 (pascal_parse): New function.
6385 * p-lang.h: Forward declare "struct parser_state".
6386 (pascal_parse): Add "struct parser_state" argument.
6387 * go-exp.y (parse_type): Rewrite macro to use parser state.
6388 (yyparse): Redefine macro to go_parse_internal.
6389 (pstate): New variable.
6390 (parse_number): Add "struct parser_state" argument.
6391 (type_exp, exp1, exp, variable, type): Update calls to
6392 write_exp* and similars in order to use parser state.
6393 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6394 to use parser state.
6395 (go_parse): Likewise.
6396 * go-lang.h: Forward declare "struct parser_state".
6397 (go_parse): Add "struct parser_state" argument.
6398
6399 2014-03-27 Doug Evans <dje@google.com>
6400
6401 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6402
6403 2014-03-27 Doug Evans <dje@google.com>
6404
6405 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6406 Remove argument abbrev_section. All callers updated.
6407
6408 2014-03-27 Doug Evans <dje@google.com>
6409
6410 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6411 addr_base, ranges_base.
6412
6413 2014-03-26 Keith Seitz <keiths@redhat.com>
6414
6415 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6416 types, not VAR_DOMAIN.
6417
6418 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6419
6420 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6421 "ra" registers.
6422 * features/nios2-linux.c: Regenerated.
6423 * features/nios2.c: Regenerated.
6424
6425 2014-03-25 Pedro Alves <palves@redhat.com>
6426
6427 * cli/cli-script.c (script_from_file): Force the interpreter to
6428 sync mode.
6429
6430 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6431
6432 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6433 small stack allocation.
6434
6435 2014-03-24 Tristan Gingold <gingold@adacore.com>
6436
6437 * darwin-nat.c (exc_server): Remove unused prototype.
6438 (darwin_dump_message): Correctly display data on x86_64.
6439 (darwin_encode_reply): Fix style.
6440 Add comments and fix indentation.
6441
6442 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6443
6444 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6445
6446 2014-03-22 Doug Evans <xdje42@gmail.com>
6447
6448 * infcmd.c: Whitespace fixes.
6449 (interrupt_command): Merge two function comments into one.
6450
6451 2014-03-22 Doug Evans <xdje42@gmail.com>
6452
6453 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6454 All uses updated.
6455
6456 2014-03-22 Yao Qi <yao@codesourcery.com>
6457
6458 * remote.c (target_read_live_memory): Remove.
6459 (memory_xfer_live_readonly_partial): Rename it to
6460 remote_xfer_live_readonly_partial. Remove argument 'object'.
6461 All callers updated. Call remote_read_bytes_1
6462 instead of target_read_live_memory.
6463 * tracepoint.c (set_traceframe_number): Remove.
6464 (make_cleanup_restore_traceframe_number): Likewise .
6465 * tracepoint.h (set_traceframe_number): Remove declaration.
6466 (make_cleanup_restore_traceframe_number): Likewise.
6467
6468 2014-03-22 Yao Qi <yao@codesourcery.com>
6469
6470 * remote.c (remote_read_bytes): Move code on reading from the
6471 remote stub to ...
6472 (remote_read_bytes_1): ... here. New function.
6473
6474 2014-03-22 Yao Qi <yao@codesourcery.com>
6475
6476 * ctf.c (ctf_xfer_partial): Check the return value of
6477 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6478 return TARGET_XFER_UNAVAILABLE.
6479 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6480 * target.c (target_read_live_memory): Move it to remote.c.
6481 (memory_xfer_live_readonly_partial): Likewise.
6482 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6483 * remote.c (target_read_live_memory): Moved from target.c.
6484 (memory_xfer_live_readonly_partial): Likewise.
6485 (remote_read_bytes): Factored out from
6486 memory_xfer_partial_1.
6487
6488 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6489
6490 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6491 NULL pointer.
6492
6493 2014-03-21 Pedro Alves <palves@redhat.com>
6494
6495 * infrun.c (normal_stop): Extend comment.
6496
6497 2014-03-21 Hui Zhu <hui@codesourcery.com>
6498 Pedro Alves <palves@redhat.com>
6499
6500 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6501 static buffer.
6502 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6503 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6504 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6505
6506 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6507
6508 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6509 `z' formatted output modifier.
6510
6511 2014-03-20 Tom Tromey <tromey@redhat.com>
6512 Sergio Durigan Junior <sergiodj@redhat.com>
6513
6514 * probe.c (parse_probes): Turn assert into an ordinary error.
6515 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6516 exceptions when parsing probes. Rearrange the code for clarity.
6517
6518 2014-03-20 Tom Tromey <tromey@redhat.com>
6519
6520 PR gdb/14135
6521 * top.c (execute_command): Only dispatch events if the command
6522 started the target.
6523
6524 2014-03-20 Tom Tromey <tromey@redhat.com>
6525
6526 PR cli/15718
6527 * infcall.c: Include event-top.h.
6528 (run_inferior_call): Call async_disable_stdin if needed.
6529
6530 2014-03-20 Pedro Alves <palves@redhat.com>
6531
6532 * infrun.c (prepare_to_proceed): Delete.
6533 (thread_still_needs_step_over): New function.
6534 (find_thread_needs_step_over): New function.
6535 (proceed): If the current thread needs a step-over, set its
6536 steping_over_breakpoint flag. Adjust to use
6537 find_thread_needs_step_over instead of prepare_to_proceed.
6538 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6539 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6540 breakpoint.
6541 (switch_back_to_stepped_thread): Step over breakpoints of all
6542 threads not the stepping thread, before switching back to the
6543 stepping thread.
6544
6545 2014-03-20 Pedro Alves <palves@redhat.com>
6546
6547 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6548 extern.
6549 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6550 * infrun.c (saved_singlestep_ptid)
6551 (stepping_past_singlestep_breakpoint): Delete.
6552 (resume): Remove stepping_past_singlestep_breakpoint handling.
6553 (proceed): Store the prev_pc of the stepping thread too.
6554 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6555 singlestep_pc.
6556 (enum infwait_states): Delete infwait_thread_hop_state.
6557 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6558 field.
6559 (handle_inferior_event): Adjust.
6560 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6561 handling and the thread-hop code. Before removing single-step
6562 breakpoints, check whether the thread hit a single-step breakpoint
6563 of another thread. If it did, the trap is not a random signal.
6564 (switch_back_to_stepped_thread): If the event thread hit a
6565 single-step breakpoint, unblock it before switching to the
6566 stepping thread. Handle the case of the stepped thread having
6567 advanced already.
6568 (keep_going): Handle the case of the current thread moving past a
6569 single-step breakpoint.
6570
6571 2014-03-20 Pedro Alves <palves@redhat.com>
6572
6573 PR breakpoints/7143
6574 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6575 are being stepped over.
6576 (breakpoint_address_match): Make extern.
6577 * breakpoint.h (breakpoint_address_match): New declaration.
6578 * inferior.h (stepping_past_instruction_at): New declaration.
6579 * infrun.c (struct step_over_info): New type.
6580 (step_over_info): New global.
6581 (set_step_over_info, clear_step_over_info)
6582 (stepping_past_instruction_at): New functions.
6583 (handle_inferior_event): Clear the step-over info when
6584 trap_expected is cleared.
6585 (resume): Remove now stale comment.
6586 (clear_proceed_status): Clear step-over info.
6587 (proceed): Adjust step-over handling to set or clear the step-over
6588 info instead of removing all breakpoints.
6589 (handle_signal_stop): When setting up a thread-hop, don't remove
6590 breakpoints here.
6591 (stop_stepping): Clear step-over info.
6592 (keep_going): Adjust step-over handling to set or clear step-over
6593 info and then always inserting breakpoints, instead of removing
6594 all breakpoints when stepping over one.
6595
6596 2014-03-20 Pedro Alves <palves@redhat.com>
6597
6598 * infrun.c (previous_inferior_ptid): Adjust comment.
6599 (deferred_step_ptid): Delete.
6600 (infrun_thread_ptid_changed, prepare_to_proceed)
6601 (init_wait_for_inferior): Adjust.
6602 (handle_signal_stop): Delete deferred_step_ptid handling.
6603
6604 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6605
6606 PR gdb/15358
6607 * defs.h (sync_quit_force_run): New declaration.
6608 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6609 * event-top.c (async_sigterm_handler): New declaration.
6610 (async_sigterm_token): New variable.
6611 (async_init_signals): Create also async_sigterm_token.
6612 (async_sigterm_handler): New function.
6613 (sync_quit_force_run): New variable.
6614 (handle_sigterm): Replace quit_force call by other calls.
6615 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6616
6617 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6618
6619 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6620 offset into SPE pseudo registers.
6621
6622 2014-03-18 Pedro Alves <palves@redhat.com>
6623
6624 PR gdb/13860
6625 * inferior.h (print_stop_event): Declare.
6626 * infrun.c (print_stop_event): New, factored out from ...
6627 (normal_stop): ... this.
6628 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6629 of bpstat_print/print_stack_frame.
6630
6631 2014-03-17 Tom Tromey <tromey@redhat.com>
6632
6633 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6634
6635 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6636
6637 * ada-lang.c (decode_constrained_packed_array): Perform a
6638 minimal coercion for reference with coerce_ref instead of
6639 ada_coerce_ref.
6640
6641 2014-03-17 Tristan Gingold <gingold@adacore.com>
6642
6643 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6644 (darwin_solib_create_inferior_hook): Emit a warning if version
6645 is unhandled.
6646
6647 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6648
6649 * python/py-value.c (get_field_flag): Cast flag_name argument to
6650 PyObject_GetAttrString to support Python 2.4.
6651
6652 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6653
6654 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6655 (Global Maintainers): Remove Jan Kratochvil.
6656
6657 2014-03-14 Pedro Alves <palves@redhat.com>
6658
6659 * inferior.h (terminal_ours_for_output): Rename to ...
6660 (child_terminal_ours_for_output): ... this.
6661 (terminal_save_ours): Rename to ...
6662 (child_terminal_save_ours): ... this.
6663 (terminal_ours): Rename to ...
6664 (child_terminal_ours): ... this.
6665 (terminal_inferior): Rename to ...
6666 (child_terminal_inferior): ... this.
6667 (terminal_init_inferior): Rename to ...
6668 (child_terminal_init_inferior): ... this.
6669 (terminal_init_inferior_with_pgrp): Rename to ...
6670 (child_terminal_init_inferior_with_pgrp): ... this.
6671 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6672 (child_terminal_init_with_pgrp): ... this.
6673 (terminal_save_ours): Rename to ...
6674 (child_terminal_save_ours): ... this.
6675 (terminal_init_inferior): Rename to ...
6676 (child_terminal_init): ... this. Adjust.
6677 (terminal_inferior): Rename to ...
6678 (child_terminal_inferior): ... this.
6679 (terminal_ours_for_output): Rename to ...
6680 (child_terminal_ours_for_output): ... this. Adjust.
6681 (terminal_ours): Rename to ...
6682 (child_terminal_ours): ... this.
6683 (terminal_ours_1): Rename to ...
6684 (child_terminal_ours_1): ... this. Adjust.
6685 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6686 * windows-nat.c (do_initial_windows_stuff): Adjust.
6687 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6688 (gnu_terminal_init): ... this. Adjust.
6689 (gnu_target): Adjust.
6690 * inf-child.c (inf_child_target): Adjust.
6691
6692 2014-03-13 Doug Evans <xdje42@gmail.com>
6693
6694 PR guile/16612
6695 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6696 new eq?-hashtab.
6697
6698 2014-03-13 Doug Evans <xdje42@gmail.com>
6699
6700 * value.c (record_latest_value): Call release_value_or_incref
6701 instead of release_value.
6702
6703 2014-03-13 Pedro Alves <palves@redhat.com>
6704
6705 * procfs.c (procfs_target): Don't override to_shortname,
6706 to_longname or to_doc.
6707
6708 2014-03-13 Pedro Alves <palves@redhat.com>
6709
6710 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6711 Unix in user visible strings.
6712
6713 2014-03-12 Stan Shebs <stan@codesourcery.com>
6714
6715 * gdbtypes.h: Annotate comments for Doxygen, add a page
6716 block comment with some general info.
6717
6718 2014-03-12 Pedro Alves <palves@redhat.com>
6719
6720 * infcmd.c (prepare_execution_command): New function, factored out
6721 from several execution commands.
6722 (run_command_1, continue_command, step_1, jump_command)
6723 (signal_command, until_command, advance_command, finish_command)
6724 (attach_command): Use prepare_execution_command.
6725
6726 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6727
6728 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6729 (MAX_BPTS): Define.
6730 (MAX_WPTS): Define.
6731 (struct arm_linux_thread_points): Removed.
6732 (struct arm_linux_process_info): New.
6733 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6734 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6735 (arm_linux_find_breakpoints_by_tid): Removed.
6736 (struct arch_lwp_info): New.
6737 (arm_linux_find_process_pid): New functions.
6738 (arm_linux_add_process): New functions.
6739 (arm_linux_process_info_get): New functions.
6740 (arm_linux_forget_process): New function.
6741 (arm_linux_get_debug_reg_state): New function.
6742 (struct update_registers_data): New.
6743 (update_registers_callback): New function.
6744 (arm_linux_insert_hw_breakpoint1): Updated.
6745 (arm_linux_remove_hw_breakpoint1): Updated.
6746 (arm_linux_insert_hw_breakpoint): Updated.
6747 (arm_linux_remove_hw_breakpoint): Updated.
6748 (arm_linux_insert_watchpoint): Updated.
6749 (arm_linux_remove_watchpoint): Updated.
6750 (arm_linux_new_thread): Updated.
6751 (arm_linux_prepare_to_resume): New function.
6752 (arm_linux_new_fork): New function.
6753 (_initialize_arm_linux_nat): Updated.
6754
6755 2014-03-12 Pedro Alves <palves@redhat.com>
6756
6757 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6758
6759 2014-03-12 Tom Tromey <tromey@redhat.com>
6760
6761 * inf-child.c (return_zero): New function.
6762 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6763 * aix-thread.c (aix_thread_inferior_created): New function.
6764 (aix_thread_attach): Remove.
6765 (init_aix_thread_ops): Don't set to_attach.
6766 (_initialize_aix_thread): Register inferior_created observer.
6767 * corelow.c (init_core_ops): Don't set to_attach or
6768 to_create_inferior.
6769 * exec.c (init_exec_ops): Don't set to_attach or
6770 to_create_inferior.
6771 * infcmd.c (run_command_1): Use find_run_target. Make direct
6772 target calls.
6773 (attach_command): Use find_attach_target. Make direct target
6774 calls.
6775 * record-btrace.c (init_record_btrace_ops): Don't set
6776 to_create_inferior.
6777 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6778 Remove.
6779 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6780 set to_create_inferior.
6781 * target.c (complete_target_initialization): Add assertion.
6782 (target_create_inferior): Remove.
6783 (find_default_attach, find_default_create_inferior): Remove.
6784 (find_attach_target, find_run_target): New functions.
6785 (find_default_is_async_p, find_default_can_async_p)
6786 (target_supports_non_stop, target_attach): Remove.
6787 (init_dummy_target): Don't set to_create_inferior or
6788 to_supports_non_stop.
6789 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6790 TARGET_DEFAULT_FUNC.
6791 <to_create_inferior>: Add comment.
6792 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6793 TARGET_DEFAULT_RETURN.
6794 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6795 (find_attach_target, find_run_target): Declare.
6796 (target_create_inferior): Remove.
6797 (target_has_execution_1): Update comment.
6798 (target_supports_non_stop): Remove.
6799 * target-delegates.c: Rebuild.
6800
6801 2014-03-12 Pedro Alves <palves@redhat.com>
6802
6803 * inf-child.h: Update comment to not mention Unix.
6804
6805 2014-03-12 Pedro Alves <palves@redhat.com>
6806
6807 * inf-child.c: Update top comment to not mention Unix. Add
6808 generic comment describing how this target is meant to be used.
6809 (inf_child_post_attach, inf_child_post_startup_inferior)
6810 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6811 Unix in comment.
6812
6813 2014-03-12 Pedro Alves <palves@redhat.com>
6814
6815 * nto-procfs.c: Include inf-child.h.
6816 (procfs_ops): Delete global.
6817 (procfs_can_run): Delete method.
6818 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6819 target pointer instead of referencing procfs_ops.
6820 (procfs_prepare_to_store): Delete.
6821 (init_procfs_ops): Delete function.
6822 (procfs_target): New function, based on init_procfs_ops, but
6823 inherit inf_child_target.
6824 (_initialize_procfs): Use procfs_target.
6825
6826 2014-03-12 Pedro Alves <palves@redhat.com>
6827
6828 * windows-nat.c: Include inf-child.h.
6829 (windows_ops): Delete global.
6830 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6831 methods.
6832 (init_windows_ops): Delete function.
6833 (windows_target): New function, based on init_windows_ops, but
6834 inherit inf_child_target.
6835 (_initialize_windows_nat): Use windows_target. Install x86
6836 specific target methods here.
6837
6838 2014-03-10 Doug Evans <xdje42@gmail.com>
6839
6840 * guile/guile.c (call_initialize_gdb_module): New function.
6841 (initialize_guile): Replace call to scm_init_guile with call to
6842 scm_with_guile.
6843
6844 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6845
6846 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6847 in call to TYPE_CODE macro.
6848
6849 2014-03-10 Jerome Guitton <guitton@adacore.com>
6850
6851 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6852 Resolve tagged types to full view.
6853
6854 2014-03-10 Hui Zhu <hui@codesourcery.com>
6855
6856 * target.h (target_insert_breakpoint): Remove "hardware" from its
6857 comments.
6858
6859 2014-03-07 Doug Evans <dje@google.com>
6860
6861 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6862
6863 2014-03-07 Doug Evans <dje@google.com>
6864
6865 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6866 Remove unused local comp_dir_attr. Assert exactly one of
6867 stub_comp_unit_die, stub_comp_dir is non-NULL.
6868
6869 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6870
6871 * target.h (complete_target_initialization, add_target):
6872 Add comment.
6873
6874 2014-03-07 Pedro Alves <palves@redhat.com>
6875
6876 * go32-nat.c: Include inf-child.h.
6877 (go32_ops): Delete global.
6878 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6879 Delete methods.
6880 (go32_create_inferior): Push the passed in target pointer instead
6881 of referencing go32_ops.
6882 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6883 (go32_target): New function, based on init_go32_ops, but inherit
6884 inf_child_target.
6885 (_initialize_go32_nat): Use go32_target. Move parts of
6886 init_go32_ops here.
6887
6888 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6889
6890 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6891 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6892 SYMBOL_VALUE_ADDRESS.
6893 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6894
6895 2014-03-06 Yao Qi <yao@codesourcery.com>
6896
6897 * breakpoint.c (get_tracepoint_by_number): Remove argument
6898 optional_p. All callers updated. Adjust comments. Update
6899 output message.
6900 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6901
6902 2014-03-06 Yao Qi <yao@codesourcery.com>
6903
6904 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6905 early if get_number returns zero. Use 'p' instead of 'args'.
6906
6907 2014-03-06 Yao Qi <yao@codesourcery.com>
6908
6909 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6910 message.
6911
6912 2014-03-06 Yao Qi <yao@codesourcery.com>
6913
6914 PR breakpoints/16508
6915 * tracepoint.c (check_trace_running): New function.
6916 (trace_find_command): Move code to check_trace_running and
6917 call check_trace_running.
6918 (trace_find_pc_command): Likewise.
6919 (trace_find_tracepoint_command): Likewise.
6920 (trace_find_line_command): Likewise.
6921 (trace_find_range_command): Likewise.
6922 * tracepoint.h (check_trace_running): Likewise.
6923 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6924
6925 2014-03-06 Yao Qi <yao@codesourcery.com>
6926
6927 * target.h (struct target_ops) <to_traceframe_info>: Use
6928 TARGET_DEFAULT_NORETURN (tcomplain ()).
6929 * target-delegates.c: Regenerated.
6930
6931 2014-03-05 Pedro Alves <palves@redhat.com>
6932
6933 PR gdb/16575
6934 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6935 void. Update comment.
6936 (dcache_xfer_memory): Delete.
6937 (dcache_read_memory_partial): New, based on the read bits of
6938 dcache_xfer_memory.
6939 (dcache_update): Add status parameter. Use ULONGEST for len, and
6940 adjust. Discard cache lines if the reason for the update was
6941 error.
6942 * dcache.h (dcache_xfer_memory): Delete declaration.
6943 (dcache_read_memory_partial): New declaration.
6944 (dcache_update): Update prototype.
6945 * target.c (raw_memory_xfer_partial): Update the dcache here.
6946 (memory_xfer_partial_1): Don't handle dcache writes here.
6947
6948 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6949
6950 * remote-sim.c (gdbsim_load): Add const to prog.
6951
6952 2014-03-03 Tom Tromey <tromey@redhat.com>
6953
6954 * elfread.c (probe_key): Change to bfd_data.
6955 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6956 now per-BFD, not per-objfile.
6957 * stap-probe.c (stap_probe_destroy): Update comment.
6958 (handle_stap_probe): Allocate on the per-BFD obstack.
6959
6960 2014-03-03 Tom Tromey <tromey@redhat.com>
6961
6962 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6963 * breakpoint.c (create_longjmp_master_breakpoint): Use
6964 get_probe_address.
6965 (add_location_to_breakpoint, bkpt_probe_insert_location)
6966 (bkpt_probe_remove_location): Update.
6967 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6968 * elfread.c (elf_symfile_relocate_probe): Remove.
6969 (elf_probe_fns): Update.
6970 (insert_exception_resume_breakpoint): Change type of "probe"
6971 parameter to bound_probe.
6972 (check_exception_resume): Update.
6973 * objfiles.c (objfile_relocate1): Don't relocate probes.
6974 * probe.c (bound_probe_s): New typedef.
6975 (parse_probes): Use get_probe_address. Set sal's objfile.
6976 (find_probe_by_pc): Return a bound_probe.
6977 (collect_probes): Return a VEC(bound_probe_s).
6978 (compare_probes): Update.
6979 (gen_ui_out_table_header_info): Change type of "probes"
6980 parameter. Update.
6981 (info_probes_for_ops): Update.
6982 (get_probe_address): New function.
6983 (probe_safe_evaluate_at_pc): Update.
6984 * probe.h (struct probe_ops) <get_probe_address>: New field.
6985 <set_semaphore, clear_semaphore>: Add objfile parameter.
6986 (struct probe) <objfile>: Remove field.
6987 <arch>: New field.
6988 <address>: Update comment.
6989 (struct bound_probe): New.
6990 (find_probe_by_pc): Return a bound_probe.
6991 (get_probe_address): Declare.
6992 * solib-svr4.c (struct probe_and_action) <address>: New field.
6993 (hash_probe_and_action, equal_probe_and_action): Update.
6994 (register_solib_event_probe): Add address parameter.
6995 (solib_event_probe_at): Update.
6996 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6997 get_probe_address.
6998 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6999 (stap_get_probe_address): New function.
7000 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7001 (compile_probe_arg): Update.
7002 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7003 address.
7004 (handle_stap_probe): Don't relocate the probe.
7005 (stap_relocate): Remove.
7006 (stap_gen_info_probes_table_values): Update.
7007 (stap_probe_ops): Remove stap_relocate.
7008 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7009 (debug_sym_probe_fns): Update.
7010 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7011 * symtab.c (init_sal): Use memset.
7012 * symtab.h (struct symtab_and_line) <objfile>: New field.
7013 * tracepoint.c (start_tracing, stop_tracing): Update.
7014
7015 2014-03-03 Tom Tromey <tromey@redhat.com>
7016
7017 * probe.h (parse_probes, find_probe_by_pc)
7018 (find_probes_in_objfile): Fix comments.
7019
7020 2014-03-02 Doug Evans <xdje42@gmail.com>
7021
7022 * infrun.c (handle_signal_stop): Replace test for
7023 TARGET_WAITKIND_STOPPED with an assert.
7024
7025 2014-03-02 Doug Evans <xdje42@gmail.com>
7026
7027 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7028
7029 2014-03-02 Doug Evans <xdje42@gmail.com>
7030
7031 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7032
7033 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7034
7035 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7036
7037 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7038
7039 * i386obsd-nat.c: Include "obsd-nat.h".
7040 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7041 add_target.
7042 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7043
7044 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7045
7046 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7047
7048 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7049
7050 * mips64obsd-nat.c: Include "obsd-nath".
7051 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7052 add_target
7053 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7054
7055 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7056
7057 * amd64obsd-nat.c: Include "obsd-nat,h.
7058 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7059 add_target.
7060 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7061
7062 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7063
7064 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7065 (find_overload_match): Update call to find_oload_champ.
7066 (find_oload_champ_namespace_loop): Likewise
7067
7068 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7069
7070 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7071
7072 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7073 * config/sparc/obsd64.mh: New file.
7074 * sparc64obsd-nat.c: New file.
7075
7076 * obsd-nat.h: New file.
7077 * obsd-nat.c: New file.
7078 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7079 (ALLDEPFILES): Add obsd-nat.c.
7080
7081 2014-02-28 Tom Tromey <tromey@redhat.com>
7082
7083 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7084 * cli-out.h (cli_ui_out_impl): Now const.
7085 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7086 * ui-out.c (struct ui_out) <impl>: Now const.
7087 (default_ui_out_impl): Now const.
7088 (ui_out_new): Make 'impl' parameter const.
7089 * ui-out.h (ui_out_new): Update.
7090
7091 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7092
7093 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7094
7095 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7096
7097 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7098
7099 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7100
7101 Additional PR 8882 fix.
7102 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7103
7104 2014-02-27 Pedro Alves <palves@redhat.com>
7105
7106 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7107 isn't set.
7108
7109 2014-02-27 Pedro Alves <palves@redhat.com>
7110
7111 PR 12702
7112 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7113 * nat/linux-waitpid.c: Include string.h.
7114 (status_to_str): Moved here and made extern.
7115 * nat/linux-waitpid.h (status_to_str): New declaration.
7116
7117 2014-02-27 Hui Zhu <hui@codesourcery.com>
7118
7119 PR 12702
7120 * infrun.c (ptid_match): Move ...
7121 * common/ptid.c (ptid_match): ... here.
7122 * inferior.h (ptid_match): Move ...
7123 * common/ptid.h (ptid_match): ... here.
7124
7125 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7126
7127 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7128 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7129 gdb_target_obs.
7130
7131 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7132
7133 * obsd-tdep.c (obsd_auxv_parse): New function.
7134 (obsd_init_abi): Set auxv_parse.
7135
7136 * gdbarch.sh (auxv_parse): New.
7137 * gdbarch.h: Regenerated.
7138 * gdbarch.c: Regenerated.
7139 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7140
7141 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7142
7143 * guile/scm-value.c (gdbscm_history_append_x): New function.
7144 (value_functions): Add it.
7145
7146 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7147
7148 * dwarf2read.c (attr_value_as_address): New function.
7149 (dwarf2_find_base_address, read_call_site_scope): Use
7150 attr_value_as_address in place of DW_ADDR.
7151 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7152 the low and high addresses. Slight rework of the handling
7153 of the high pc being a constant form, and limit it to
7154 DWARF verson 4 or higher.
7155 (dwarf2_record_block_ranges): Likewise.
7156 (read_partial_die): Likewise.
7157 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7158
7159 2014-02-26 Tom Tromey <tromey@redhat.com>
7160
7161 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7162
7163 2014-02-26 Tom Tromey <tromey@redhat.com>
7164
7165 * elfread.c (elf_read_minimal_symbols): Return early if
7166 minimal symbols have already been read. Add "ei" parameter.
7167 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7168 * minsyms.c (prim_record_minimal_symbol_full): Update.
7169 * objfiles.h (struct objstats) <n_minsyms>: Move...
7170 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7171 * symmisc.c (print_objfile_statistics): Update.
7172
7173 2014-02-26 Tom Tromey <tromey@redhat.com>
7174
7175 * elfread.c (elf_read_minimal_symbols): New function, from
7176 elf_symfile_read.
7177 (elf_symfile_read): Call it.
7178
7179 2014-02-26 Tom Tromey <tromey@redhat.com>
7180
7181 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7182 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7183 (lookup_minimal_symbol_solib_trampoline)
7184 (lookup_minimal_symbol_by_pc_section_1)
7185 (lookup_minimal_symbol_and_objfile): Update.
7186 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7187 Don't allocate a minimal symbol if minsyms have already been read.
7188 (build_minimal_symbol_hash_tables): Update.
7189 (install_minimal_symbols): Do nothing if minsyms already read.
7190 Use the per-BFD obstack.
7191 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7192 * objfiles.c (allocate_objfile): Call
7193 terminate_minimal_symbol_table later.
7194 (have_minimal_symbols): Update.
7195 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7196 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7197 Move from struct objfile.
7198 <minsyms_read>: New field.
7199 (struct objfile) <msymbols, minimal_symbol_count,
7200 msymbol_hash, msymbol_demangled_hash>: Move.
7201 (ALL_OBJFILE_MSYMBOLS): Update.
7202 * symfile.c (read_symbols): Set minsyms_read.
7203 (reread_symbols): Update.
7204 * symmisc.c (dump_objfile, dump_msymbols): Update.
7205
7206 2014-02-26 Tom Tromey <tromey@redhat.com>
7207
7208 * minsyms.c (msymbols_sort): Remove.
7209 * minsyms.h (msymbols_sort): Remove.
7210 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7211 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7212 * elfread.c (elf_symtab_read): Don't add section offsets.
7213 * xcoffread.c (record_minimal_symbol): Don't add section offset
7214 to minimal symbol address.
7215 * somread.c (text_offset, data_offset): Remove.
7216 (som_symtab_read): Don't add section offsets to minimal symbol
7217 addresses.
7218 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7219 Don't add section offsets to minimal symbols.
7220 * coffread.c (coff_symtab_read): Don't add section offsets
7221 to minimal symbol addresses.
7222 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7223 to minimal symbol addresses.
7224 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7225 section offset to minimal symbol addresses.
7226 * mdebugread.c (parse_partial_symbols): Don't add section
7227 offset to minimal symbol addresses.
7228 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7229 offset to minimal symbol addresses.
7230
7231 2014-02-26 Tom Tromey <tromey@redhat.com>
7232
7233 * ada-lang.c (ada_main_name): Update.
7234 (ada_add_standard_exceptions): Update.
7235 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7236 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7237 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7238 * auxv.c (ld_so_xfer_auxv): Update.
7239 * avr-tdep.c (avr_scan_prologue): Update.
7240 * ax-gdb.c (gen_var_ref): Update.
7241 * blockframe.c (get_pc_function_start)
7242 (find_pc_partial_function_gnu_ifunc): Update.
7243 * breakpoint.c (create_overlay_event_breakpoint)
7244 (create_longjmp_master_breakpoint)
7245 (create_std_terminate_master_breakpoint)
7246 (create_exception_master_breakpoint): Update.
7247 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7248 * c-valprint.c (c_val_print): Update.
7249 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7250 * common/agent.c (agent_look_up_symbols): Update.
7251 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7252 * dwarf2loc.c (call_site_to_target_addr): Update.
7253 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7254 * elfread.c (elf_gnu_ifunc_record_cache)
7255 (elf_gnu_ifunc_resolve_by_got): Update.
7256 * findvar.c (default_read_var_value): Update.
7257 * frame.c (inside_main_func): Update.
7258 * frv-tdep.c (frv_frame_this_id): Update.
7259 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7260 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7261 Update.
7262 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7263 (hppa_hpux_find_dummy_bpaddr): Update.
7264 * hppa-tdep.c (hppa_symbol_address): Update.
7265 * infcmd.c (until_next_command): Update.
7266 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7267 Update.
7268 * linespec.c (minsym_found, add_minsym): Update.
7269 * linux-nat.c (get_signo): Update.
7270 * linux-thread-db.c (inferior_has_bug): Update.
7271 * m32c-tdep.c (m32c_return_value)
7272 (m32c_m16c_address_to_pointer): Update.
7273 * m32r-tdep.c (m32r_frame_this_id): Update.
7274 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7275 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7276 * maint.c (maintenance_translate_address): Update.
7277 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7278 (frob_address): New function.
7279 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7280 frob_address. Rename parameter to "pc_in".
7281 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7282 addresses.
7283 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7284 Update.
7285 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7286 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7287 * objc-lang.c (find_objc_msgsend): Update.
7288 * objfiles.c (objfile_relocate1): Update.
7289 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7290 * p-valprint.c (pascal_val_print): Update.
7291 * parse.c (write_exp_msymbol): Update.
7292 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7293 (ppc_elfv2_skip_entrypoint): Update.
7294 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7295 * printcmd.c (build_address_symbolic, msym_info)
7296 (address_info): Update.
7297 * proc-service.c (ps_pglobal_lookup): Update.
7298 * psymtab.c (find_pc_sect_psymtab_closer)
7299 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7300 Change msymbol parameter to bound_minimal_symbol.
7301 * ravenscar-thread.c (get_running_thread_id): Update.
7302 * remote.c (remote_check_symbols): Update.
7303 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7304 address.
7305 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7306 * solib-dsbt.c (lm_base): Update.
7307 * solib-frv.c (lm_base, main_got): Update.
7308 * solib-irix.c (locate_base): Update.
7309 * solib-som.c (som_solib_create_inferior_hook)
7310 (link_map_start): Update.
7311 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7312 * solib-svr4.c (elf_locate_base, enable_break): Update.
7313 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7314 (flush_ea_cache): Update.
7315 * stabsread.c (define_symbol, scan_file_globals): Update.
7316 * stack.c (find_frame_funname): Update.
7317 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7318 (debug_qf_find_pc_sect_symtab): Update.
7319 * symfile.c (simple_read_overlay_table)
7320 (simple_overlay_update): Update.
7321 * symfile.h (struct quick_symbol_functions)
7322 <find_pc_sect_symtab>: Change type of msymbol to
7323 bound_minimal_symbol.
7324 * symmisc.c (dump_msymbols): Update.
7325 * symtab.c (find_pc_sect_symtab_via_partial)
7326 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7327 (search_symbols, print_msymbol_info): Update.
7328 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7329 (MSYMBOL_VALUE_ADDRESS): Redefine.
7330 (BMSYMBOL_VALUE_ADDRESS): New macro.
7331 * tracepoint.c (scope_info): Update.
7332 * tui/tui-disasm.c (tui_find_disassembly_address)
7333 (tui_get_begin_asm_address): Update.
7334 * valops.c (find_function_in_inferior): Update.
7335 * value.c (value_static_field, value_fn_field): Update.
7336
7337 2014-02-26 Tom Tromey <tromey@redhat.com>
7338
7339 * ada-lang.c (ada_update_initial_language): Update.
7340 (ada_main_name, ada_has_this_exception_support): Update.
7341 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7342 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7343 * arm-tdep.c (arm_skip_stub): Update.
7344 * auxv.c (ld_so_xfer_auxv): Update.
7345 * avr-tdep.c (avr_scan_prologue): Update.
7346 * ax-gdb.c (gen_var_ref): Update.
7347 * breakpoint.c (struct breakpoint_objfile_data)
7348 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7349 type to bound_minimal_symbol.
7350 (create_overlay_event_breakpoint)
7351 (create_longjmp_master_breakpoint)
7352 (create_std_terminate_master_breakpoint)
7353 (create_exception_master_breakpoint): Update.
7354 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7355 * c-exp.y (classify_name): Update.
7356 * coffread.c (coff_symfile_read): Update.
7357 * common/agent.c (agent_look_up_symbols): Update.
7358 * d-lang.c (d_main_name): Update.
7359 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7360 * dec-thread.c (enable_dec_thread): Update.
7361 * dwarf2loc.c (call_site_to_target_addr): Update.
7362 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7363 * eval.c (evaluate_subexp_standard): Update.
7364 * findvar.c (struct minsym_lookup_data) <result>: Change type
7365 to bound_minimal_symbol.
7366 <objfile>: Remove.
7367 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7368 * frame.c (inside_main_func): Update.
7369 * frv-tdep.c (frv_frame_this_id): Update.
7370 * gcore.c (call_target_sbrk): Update.
7371 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7372 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7373 Update.
7374 * go-lang.c (go_main_name): Update.
7375 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7376 (hppa_hpux_find_import_stub_for_addr): Update.
7377 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7378 Update. Change return type.
7379 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7380 type.
7381 * jit.c (jit_breakpoint_re_set_internal): Update.
7382 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7383 Update.
7384 * linux-nat.c (get_signo): Update.
7385 * linux-thread-db.c (inferior_has_bug): Update
7386 * m32c-tdep.c (m32c_return_value)
7387 (m32c_m16c_address_to_pointer): Update.
7388 * m32r-tdep.c (m32r_frame_this_id): Update.
7389 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7390 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7391 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7392 lookup_minimal_symbol. Change return type.
7393 (lookup_minimal_symbol): Remove.
7394 (lookup_bound_minimal_symbol): Update.
7395 (lookup_minimal_symbol_text): Change return type.
7396 (lookup_minimal_symbol_solib_trampoline): Change return type.
7397 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7398 (lookup_minimal_symbol_solib_trampoline): Change return type.
7399 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7400 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7401 (value_nsstring, find_imps): Update.
7402 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7403 * p-lang.c (pascal_main_name): Update.
7404 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7405 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7406 * proc-service.c (ps_pglobal_lookup): Update.
7407 * ravenscar-thread.c (get_running_thread_msymbol): Change
7408 return type.
7409 (has_ravenscar_runtime, get_running_thread_id): Update.
7410 * remote.c (remote_check_symbols): Update.
7411 * sol-thread.c (ps_pglobal_lookup): Update.
7412 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7413 * solib-dsbt.c (lm_base): Update.
7414 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7415 Update.
7416 * solib-irix.c (locate_base): Update.
7417 * solib-som.c (som_solib_create_inferior_hook)
7418 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7419 Update.
7420 * solib-spu.c (spu_enable_break): Update.
7421 * solib-svr4.c (elf_locate_base, enable_break): Update.
7422 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7423 (flush_ea_cache): Update.
7424 * stabsread.c (define_symbol): Update.
7425 * symfile.c (simple_read_overlay_table): Update.
7426 * symtab.c (find_pc_sect_line): Update.
7427 * tracepoint.c (scope_info): Update.
7428 * tui-disasm.c (tui_get_begin_asm_address): Update.
7429 * value.c (value_static_field): Update.
7430
7431 2014-02-26 Tom Tromey <tromey@redhat.com>
7432
7433 * minsyms.c (prim_record_minimal_symbol_full): Use
7434 SET_MSYMBOL_VALUE_ADDRESS.
7435 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7436 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7437 SET_MSYMBOL_VALUE_ADDRESS.
7438 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7439 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7440
7441 2014-02-26 Tom Tromey <tromey@redhat.com>
7442
7443 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7444 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7445 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7446 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7447 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7448 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7449 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7450 * ada-lang.c (ada_main_name): Update.
7451 (ada_lookup_simple_minsym): Update.
7452 (ada_make_symbol_completion_list): Update.
7453 (ada_add_standard_exceptions): Update.
7454 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7455 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7456 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7457 * arm-tdep.c (skip_prologue_function): Update.
7458 (arm_skip_stack_protector, arm_skip_stub): Update.
7459 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7460 (arm_wince_skip_main_prologue): Update.
7461 * auxv.c (ld_so_xfer_auxv): Update.
7462 * avr-tdep.c (avr_scan_prologue): Update.
7463 * ax-gdb.c (gen_var_ref): Update.
7464 * block.c (call_site_for_pc): Update.
7465 * blockframe.c (get_pc_function_start): Update.
7466 (find_pc_partial_function_gnu_ifunc): Update.
7467 * breakpoint.c (create_overlay_event_breakpoint): Update.
7468 (create_longjmp_master_breakpoint): Update.
7469 (create_std_terminate_master_breakpoint): Update.
7470 (create_exception_master_breakpoint): Update.
7471 (resolve_sal_pc): Update.
7472 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7473 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7474 Update.
7475 * c-valprint.c (c_val_print): Update.
7476 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7477 * coffread.c (coff_symfile_read): Update.
7478 * common/agent.c (agent_look_up_symbols): Update.
7479 * dbxread.c (find_stab_function_addr): Update.
7480 (end_psymtab): Update.
7481 * dwarf2loc.c (call_site_to_target_addr): Update.
7482 (func_verify_no_selftailcall): Update.
7483 (tailcall_dump): Update.
7484 (call_site_find_chain_1): Update.
7485 (dwarf_expr_reg_to_entry_parameter): Update.
7486 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7487 (elf_gnu_ifunc_resolve_by_got): Update.
7488 * f-valprint.c (info_common_command): Update.
7489 * findvar.c (read_var_value): Update.
7490 * frame.c (get_prev_frame_1): Update.
7491 (inside_main_func): Update.
7492 * frv-tdep.c (frv_skip_main_prologue): Update.
7493 (frv_frame_this_id): Update.
7494 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7495 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7496 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7497 (gnuv3_skip_trampoline): Update.
7498 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7499 (hppa64_hpux_in_solib_call_trampoline): Update.
7500 (hppa_hpux_skip_trampoline_code): Update.
7501 (hppa64_hpux_search_dummy_call_sequence): Update.
7502 (hppa_hpux_find_import_stub_for_addr): Update.
7503 (hppa_hpux_find_dummy_bpaddr): Update.
7504 * hppa-tdep.c (hppa_symbol_address)
7505 (hppa_lookup_stub_minimal_symbol): Update.
7506 * i386-tdep.c (i386_skip_main_prologue): Update.
7507 (i386_pe_skip_trampoline_code): Update.
7508 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7509 * infcall.c (get_function_name): Update.
7510 * infcmd.c (until_next_command): Update.
7511 * jit.c (jit_breakpoint_re_set_internal): Update.
7512 (jit_inferior_init): Update.
7513 * linespec.c (minsym_found): Update.
7514 (add_minsym): Update.
7515 * linux-fork.c (info_checkpoints_command): Update.
7516 * linux-nat.c (get_signo): Update.
7517 * linux-thread-db.c (inferior_has_bug): Update.
7518 * m32c-tdep.c (m32c_return_value): Update.
7519 (m32c_m16c_address_to_pointer): Update.
7520 (m32c_m16c_pointer_to_address): Update.
7521 * m32r-tdep.c (m32r_frame_this_id): Update.
7522 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7523 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7524 * maint.c (maintenance_translate_address): Update.
7525 * minsyms.c (add_minsym_to_hash_table): Update.
7526 (add_minsym_to_demangled_hash_table): Update.
7527 (msymbol_objfile): Update.
7528 (lookup_minimal_symbol): Update.
7529 (iterate_over_minimal_symbols): Update.
7530 (lookup_minimal_symbol_text): Update.
7531 (lookup_minimal_symbol_by_pc_name): Update.
7532 (lookup_minimal_symbol_solib_trampoline): Update.
7533 (lookup_minimal_symbol_by_pc_section_1): Update.
7534 (lookup_minimal_symbol_and_objfile): Update.
7535 (prim_record_minimal_symbol_full): Update.
7536 (compare_minimal_symbols): Update.
7537 (compact_minimal_symbols): Update.
7538 (build_minimal_symbol_hash_tables): Update.
7539 (install_minimal_symbols): Update.
7540 (terminate_minimal_symbol_table): Update.
7541 (find_solib_trampoline_target): Update.
7542 (minimal_symbol_upper_bound): Update.
7543 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7544 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7545 (mips_skip_pic_trampoline_code): Update.
7546 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7547 * objc-lang.c (selectors_info): Update.
7548 (classes_info): Update.
7549 (find_methods): Update.
7550 (find_imps): Update.
7551 (find_objc_msgsend): Update.
7552 * objfiles.c (objfile_relocate1): Update.
7553 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7554 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7555 * p-valprint.c (pascal_val_print): Update.
7556 * parse.c (write_exp_msymbol): Update.
7557 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7558 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7559 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7560 * printcmd.c (build_address_symbolic): Update.
7561 (sym_info): Update.
7562 (address_info): Update.
7563 * proc-service.c (ps_pglobal_lookup): Update.
7564 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7565 (find_pc_sect_psymtab): Update.
7566 * python/py-framefilter.c (py_print_frame): Update.
7567 * ravenscar-thread.c (get_running_thread_id): Update.
7568 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7569 Update.
7570 * remote.c (remote_check_symbols): Update.
7571 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7572 (rs6000_skip_trampoline_code): Update.
7573 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7574 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7575 * solib-dsbt.c (lm_base): Update.
7576 * solib-frv.c (lm_base): Update.
7577 (main_got): Update.
7578 * solib-irix.c (locate_base): Update.
7579 * solib-som.c (som_solib_create_inferior_hook): Update.
7580 (som_solib_desire_dynamic_linker_symbols): Update.
7581 (link_map_start): Update.
7582 * solib-spu.c (spu_enable_break): Update.
7583 (ocl_enable_break): Update.
7584 * solib-svr4.c (elf_locate_base): Update.
7585 (enable_break): Update.
7586 * spu-tdep.c (spu_get_overlay_table): Update.
7587 (spu_catch_start): Update.
7588 (flush_ea_cache): Update.
7589 * stabsread.c (define_symbol): Update.
7590 (scan_file_globals): Update.
7591 * stack.c (find_frame_funname): Update.
7592 (frame_info): Update.
7593 * symfile.c (simple_read_overlay_table): Update.
7594 (simple_overlay_update): Update.
7595 * symmisc.c (dump_msymbols): Update.
7596 * symtab.c (fixup_section): Update.
7597 (find_pc_sect_line): Update.
7598 (skip_prologue_sal): Update.
7599 (search_symbols): Update.
7600 (print_msymbol_info): Update.
7601 (rbreak_command): Update.
7602 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7603 (completion_list_objc_symbol): Update.
7604 (default_make_symbol_completion_list_break_on): Update.
7605 * tracepoint.c (scope_info): Update.
7606 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7607 (tui_get_begin_asm_address): Update.
7608 * valops.c (find_function_in_inferior): Update.
7609 * value.c (value_static_field): Update.
7610 (value_fn_field): Update.
7611
7612 2014-02-26 Tom Tromey <tromey@redhat.com>
7613
7614 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7615 bound minimal symbols. Move code that knows about minsym
7616 table layout...
7617 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7618 function.
7619 * minsyms.h (minimal_symbol_upper_bound): Declare.
7620 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7621 minimal_symbol_upper_bound.
7622
7623 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7624
7625 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7626 Use the type's name if its basic type does not have a tag.
7627
7628 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7629
7630 * dwarf2read.c (read_subrange_type): Add comment.
7631
7632 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7633
7634 * dwarf2read.c (update_enumeration_type_from_children): New
7635 function, mostly extracted from process_structure_scope.
7636 (read_enumeration_type): Call update_enumeration_type_from_children.
7637 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7638 and flag_flag_enum fields.
7639
7640 2014-02-26 Pedro Alves <palves@redhat.com>
7641
7642 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7643 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7644 to_xfer_partial method.
7645
7646 2014-02-26 Pedro Alves <palves@redhat.com>
7647
7648 * target.c (complete_target_initialization): Don't install
7649 default_xfer_partial as to_xfer_partial hook.
7650 (nomemory): Delete.
7651 (update_current_target): Don't INHERIT nor de_fault
7652 deprecated_xfer_memory. Delete de_fault macro.
7653 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7654 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7655 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7656 field.
7657
7658 2014-02-26 Pedro Alves <palves@redhat.com>
7659
7660 * go32-nat.c (my_write_child): New function.
7661 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7662 (go32_xfer_partial): New function.
7663 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7664 Instead install a to_xfer_partial hook.
7665
7666 2014-02-26 Pedro Alves <palves@redhat.com>
7667
7668 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7669 to_xfer_partial helper. Rewrite.
7670 (procfs_xfer_partial): New function.
7671 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7672 Install a to_xfer_partial hook.
7673
7674 2014-02-26 Pedro Alves <palves@redhat.com>
7675
7676 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7677 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7678 (m32r_xfer_partial): New function.
7679 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7680 Install a to_xfer_partial hook.
7681
7682 2014-02-26 Pedro Alves <palves@redhat.com>
7683
7684 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7685 helper.
7686 (mips_xfer_partial): New function.
7687 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7688 hook. Install a to_xfer_partial hook.
7689
7690 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7691
7692 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7693 * gdbtypes.c (create_array_type_with_stride): New function,
7694 renaming create_array_type, but with an added parameter
7695 called "bit_stride".
7696 (create_array_type): Re-implement using
7697 create_array_type_with_stride.
7698 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7699 and DW_AT_bit_stride attributes.
7700
7701 2014-02-26 Pedro Alves <palves@redhat.com>
7702
7703 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7704 task-specific breakpoints.
7705
7706 2014-02-25 Pedro Alves <palves@redhat.com>
7707
7708 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7709 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7710
7711 2014-02-25 Stan Shebs <stan@codesourcery.com>
7712
7713 * defs.h: Annotate comments for Doxygen.
7714
7715 2014-02-25 Tom Tromey <tromey@redhat.com>
7716
7717 * target.h (target_ignore): Don't declare.
7718 * target.c (target_ignore): Remove.
7719
7720 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7721
7722 PR gdb/16626
7723 * auto-load.c (auto_load_objfile_script_1): Change filename to
7724 debugfile.
7725
7726 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7727
7728 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7729 documentation. Adjust prototype to match the target_ops
7730 to_xfer_partial method. Adjust implementation accordingly.
7731
7732 2014-02-25 Hui Zhu <hui@codesourcery.com>
7733
7734 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7735 to_traceframe_info.
7736
7737 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7738
7739 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7740 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7741 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7742 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7743 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7744 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7745 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7746 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7747 New constants.
7748 (rl78_register_type): Use a data pointer type for SP and
7749 new pseudo registers mentioned above. Use a 16 bit integer
7750 type for all other register pairs.
7751 (rl78_register_name, rl78_g10_register_name): Update for
7752 new pseudo registers.
7753 (rl78_pseudo_register_read): Likewise.
7754 (rl78_pseudo_register_write): Likewise.
7755 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7756 to the newly added pseudo registers.
7757
7758 2014-02-24 Doug Evans <dje@google.com>
7759
7760 * value.c (record_latest_value): Fix comment.
7761 * printcmd.c (print_command_1): Remove code to handle -1 return from
7762 record_latest_value.
7763
7764 2014-02-24 Pedro Alves <palves@redhat.com>
7765
7766 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7767 deprecated_xfer_memory hook.
7768 (procfs_xfer_partial): Call procfs_xfer_memory instead
7769 of the deprecated_xfer_memory target hook.
7770 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7771 helper.
7772
7773 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7774
7775 * windows-nat.c (windows_xfer_shared_libraries): Return
7776 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7777 requested object is TARGET_OBJECT_LIBRARIES.
7778
7779 2014-02-24 Yao Qi <yao@codesourcery.com>
7780
7781 * target.h (enum target_xfer_status)
7782 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7783 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7784 explicitly. New.
7785 * corefile.c (memory_error_message): User updated.
7786 * exec.c (section_table_read_available_memory): Likewise.
7787 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7788 * target.c (target_xfer_status_to_string): Likewise.
7789 (raw_memory_xfer_partial): Likewise.
7790 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7791 * valops.c (read_value_memory): Likewise.
7792 * exec.h: Update comments.
7793
7794 2014-02-24 Yao Qi <yao@codesourcery.com>
7795
7796 * target.c (target_xfer_status_to_string): Rename argument err
7797 to status.
7798 * target.h (target_xfer_status_to_string): Update declaration.
7799 Replace target_xfer_error_to_string with
7800 target_xfer_status_to_string in comment.
7801
7802 2014-02-24 Yao Qi <yao@codesourcery.com>
7803
7804 * mips-linux-nat.c (super_close): Update its type.
7805 (mips_linux_close): Pass 'self' to super_close.
7806
7807 2014-02-24 Yao Qi <yao@codesourcery.com>
7808
7809 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7810 * corefile.c (read_memory): Adjusted.
7811 * target.c (target_write_with_progress): Adjusted.
7812
7813 2014-02-23 Yao Qi <yao@codesourcery.com>
7814
7815 Revert two patches:
7816
7817 2013-10-25 Yao Qi <yao@codesourcery.com>
7818
7819 * remote.c (remote_traceframe_info): Return early if
7820 traceframe is not selected.
7821
7822 2013-07-19 Yao Qi <yao@codesourcery.com>
7823
7824 * target.c (update_current_target): Change the default action
7825 of 'to_traceframe_info' from tcomplain to return_zero.
7826 * target.h (struct target_ops) <to_traceframe_info>: Add more
7827 comments.
7828
7829 2014-02-23 Yao Qi <yao@codesourcery.com>
7830
7831 * valops.c (read_value_memory): Rewrite it. Call
7832 target_xfer_partial in a loop.
7833 * exec.h (section_table_available_memory): Remove declaration.
7834 Move comments to ...
7835 * exec.c (section_table_available_memory): ... here. Make it
7836 static.
7837
7838 2014-02-23 Yao Qi <yao@codesourcery.com>
7839
7840 * exec.c (section_table_read_available_memory): New function.
7841 * exec.h (section_table_read_available_memory): Declare.
7842 * ctf.c (ctf_xfer_partial): Call
7843 section_table_read_available_memory.
7844 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7845
7846 2014-02-23 Yao Qi <yao@codesourcery.com>
7847
7848 * ctf.c (ctf_xfer_partial): Move code to ...
7849 * exec.c (exec_read_partial_read_only): ... it. New function.
7850 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7851 * tracefile.c: Include "exec.h".
7852 * exec.h (exec_read_partial_read_only): Declare.
7853
7854 2014-02-23 Yao Qi <yao@codesourcery.com>
7855
7856 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7857 (tfile_has_memory): Remove.
7858 (init_tfile_ops): Don't set fields to_has_all_memory and
7859 to_has_memory of tfile_ops.
7860 * tracefile.c (tracefile_has_all_memory): New function.
7861 (tracefile_has_memory): New function.
7862 (init_tracefile_ops): Initialize fields to_has_all_memory and
7863 to_has_memory of 'ops'.
7864
7865 2014-02-23 Yao Qi <yao@codesourcery.com>
7866
7867 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7868 (ctf_thread_alive, ctf_get_trace_status): Remove.
7869 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7870 init_tracefile_ops.
7871 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7872 (tfile_has_stack, tfile_has_registers): Remove.
7873 (tfile_thread_alive): Remove.
7874 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7875 init_tracefile_ops.
7876 * tracefile.c (tracefile_has_stack): New function.
7877 (tracefile_has_registers): New function.
7878 (tracefile_thread_alive): New function.
7879 (tracefile_get_trace_status): New function.
7880 (init_tracefile_ops): New function.
7881 * tracefile.h (init_tracefile_ops): Declare.
7882
7883 2014-02-23 Yao Qi <yao@codesourcery.com>
7884
7885 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7886 (O_LARGEFILE): Likewise.
7887 (tfile_ops): Likewise.
7888 (TRACE_HEADER_SIZE): Likewise.
7889 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7890 (cur_data_size): Likewise.
7891 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7892 (tfile_close, tfile_files_info): Likewise.
7893 (tfile_get_trace_status): Likewise.
7894 (tfile_get_tracepoint_status): Likewise.
7895 (tfile_get_traceframe_address): Likewise.
7896 (tfile_trace_find, match_blocktype): Likewise.
7897 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7898 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7899 (tfile_get_trace_state_variable_value): Likewise.
7900 (tfile_has_all_memory, tfile_has_memory): Likewise.
7901 (tfile_has_stack, tfile_has_registers): Likewise.
7902 (tfile_thread_alive, build_traceframe_info): Likewise.
7903 (tfile_traceframe_info, init_tfile_ops): Likewise.
7904 (_initialize_tracepoint): Don't call init_tfile_ops
7905 and add_target_with_completer.
7906 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7907 exec.h, completer.h and filenames.h.
7908 (_initialize_tracefile_tfile): New function.
7909
7910 2014-02-23 Yao Qi <yao@codesourcery.com>
7911
7912 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7913 tracefile-tfile.o.
7914 (HFILES_NO_SRCDIR): Add tracefile.h.
7915 * ctf.c: Include "tracefile.h".
7916 * tracefile.h: New file.
7917 * tracefile.c: New file
7918 * tracefile-tfile.c: New file.
7919 * tracepoint.c: Include "tracefile.h".
7920 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7921 (stop_reason_names): Add const.
7922 (trace_file_writer_xfree): Move it to tracefile.c.
7923 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7924 (trace_save_ctf): Likewise.
7925 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7926 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7927 (tfile_write_header, tfile_write_regblock_type): Likewise.
7928 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7929 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7930 (tfile_write_raw_data, tfile_end): Likewise.
7931 (tfile_trace_file_writer_new): Likewise.
7932 (free_uploaded_tp): Make it extern.
7933 (free_uploaded_tsv): Make it extern.
7934 (_initialize_tracepoint): Move code to register command 'tsave'
7935 to tracefile.c.
7936 * tracepoint.h (stop_reason_names): Declare.
7937 (struct trace_frame_write_ops): Move it to tracefile.h.
7938 (struct trace_file_write_ops): Likewise.
7939 (struct trace_file_writer): Likewise.
7940 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7941
7942 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7943
7944 PR gdb/16594
7945 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7946 process name.
7947 (get_cores_used_by_process): New parameter num_cores, use it.
7948 (linux_xfer_osdata_processes): Pass num_cores to it.
7949 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7950 process name.
7951
7952 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7953
7954 * target.c (memory_xfer_partial): Fix length arg in call to
7955 breakpoint_xfer_memory.
7956
7957 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7958
7959 PR tdep/16397
7960 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7961 number comes after the + or - signs. Adjust length of register
7962 name to be extracted.
7963
7964 2014-02-20 Tom Tromey <tromey@redhat.com>
7965
7966 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7967 (ada_varobj_ops): Mark "extern".
7968
7969 2014-02-20 Tom Tromey <tromey@redhat.com>
7970
7971 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7972
7973 2014-02-20 Doug Evans <xdje42@gmail.com>
7974
7975 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7976 All callers updated.
7977 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7978 All callers updated.
7979 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7980 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7981
7982 2014-02-20 lin zuojian <manjian2006@gmail.com>
7983 Joel Brobecker <brobecker@adacore.com>
7984 Doug Evans <xdje42@gmail.com>
7985
7986 PR symtab/16581
7987 * dwarf2read.c (struct die_info): New member in_process.
7988 (reset_die_in_process): New function.
7989 (process_die): Set it at the start, reset when returning.
7990 (inherit_abstract_dies): Only call process_die if origin_child_die
7991 not already being processed.
7992
7993 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7994
7995 * windows-nat.c (handle_unload_dll): Add function documentation.
7996 (do_initial_windows_stuff): Add comment explaining why we wait
7997 until after inferior initialization has finished before
7998 processing all DLLs.
7999
8000 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8001
8002 * windows-nat.c (get_module_name): Delete.
8003 (windows_get_exec_module_filename): New function, mostly
8004 inspired from get_module_name.
8005 (windows_pid_to_exec_file): Replace call to get_module_name
8006 by call to windows_get_exec_module_filename.
8007
8008 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8009
8010 * windows-nat.c (handle_load_dll): Rewrite this function's
8011 introductory comment. Remove code using get_module_name
8012 to get the DLL's name.
8013
8014 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8015
8016 * windows-nat.c (get_windows_debug_event): Ignore
8017 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8018 if windows_initialization_done == 0.
8019 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8020 Adjust implementation to always load all DLLs.
8021 (do_initial_windows_stuff): Replace call to
8022 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8023
8024 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8025
8026 * windows-nat.c (_initialize_windows_nat): Deprecate the
8027 "dll-symbols" command. Turn the "add-shared-symbol-files"
8028 and "assf" aliases into commands, and deprecate them as well.
8029 * NEWS: Add entry explaining that "dll-symbols" and its two
8030 aliases are now deprecated.
8031
8032 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8033
8034 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8035 new-line in debug string. Remove trailing spaces.
8036
8037 2014-02-19 Stan Shebs <stan@codesourcery.com>
8038
8039 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8040
8041 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8042
8043 * NEWS: Add entry for the new feature
8044 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8045 and class values.
8046
8047 2014-02-19 Stan Shebs <stan@codesourcery.com>
8048
8049 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8050
8051 2014-02-19 Pedro Alves <palves@redhat.com>
8052
8053 * common/ptid.h (struct ptid): Mention that process_stratum
8054 targets should prefer ptid.lwp.
8055
8056 2014-02-19 Pedro Alves <palves@redhat.com>
8057
8058 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8059 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8060 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8061 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8062 store remote thread ids rather than ptid.tid.
8063 (_initialize_remote): Adjust.
8064
8065 2014-02-19 Tom Tromey <tromey@redhat.com>
8066
8067 * target.c (target_get_unwinder): Rewrite.
8068 (target_get_tailcall_unwinder): Rewrite.
8069 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8070 (record_btrace_to_get_tailcall_unwinder): New function.
8071 (init_record_btrace_ops): Update.
8072 * target.h (struct target_ops) <to_get_unwinder,
8073 to_get_tailcall_unwinder>: Now function pointers. Use
8074 TARGET_DEFAULT_RETURN.
8075
8076 2014-02-19 Tom Tromey <tromey@redhat.com>
8077
8078 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8079 argument.
8080 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8081
8082 2014-02-19 Tom Tromey <tromey@redhat.com>
8083
8084 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8085 directly.
8086 * target-delegates.c: Rebuild.
8087 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8088 TARGET_DEFAULT_FUNC.
8089 * target.c (default_target_decr_pc_after_break): Rename from
8090 forward_target_decr_pc_after_break. Simplify.
8091 (target_decr_pc_after_break): Rely on delegation.
8092
8093 2014-02-19 Tom Tromey <tromey@redhat.com>
8094
8095 * target.c (update_current_target): Do not INHERIT to_doc or
8096 to_magic. Do not de_fault to_open or to_close.
8097
8098 2014-02-19 Tom Tromey <tromey@redhat.com>
8099
8100 * gcore.h (objfile_find_memory_regions): Declare.
8101 * gcore.c (objfile_find_memory_regions): No longer static. Add
8102 "self" argument.
8103 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8104 * exec.c: Include gcore.h.
8105 (exec_set_find_memory_regions): Remove.
8106 (exec_find_memory_regions): Remove.
8107 (exec_do_find_memory_regions): Remove.
8108 (init_exec_ops): Update.
8109 * defs.h (exec_set_find_memory_regions): Remove.
8110
8111 2014-02-19 Tom Tromey <tromey@redhat.com>
8112
8113 * target-delegates.c: Rebuild.
8114 * target.h (struct target_ops) <to_extra_thread_info,
8115 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8116 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8117 not 0, in TARGET_DEFAULT_RETURN.
8118
8119 2014-02-19 Tom Tromey <tromey@redhat.com>
8120
8121 * target.c (complete_target_initialization): Remove casts. Use
8122 return_zero_has_execution.
8123 (return_zero): Add "ignore" argument.
8124 (return_zero_has_execution): New function.
8125 (init_dummy_target): Remove casts. Use
8126 return_zero_has_execution.
8127
8128 2014-02-19 Tom Tromey <tromey@redhat.com>
8129
8130 * target.c (update_current_target): Update comments. Do not
8131 INHERIT to_stratum.
8132
8133 2014-02-19 Tom Tromey <tromey@redhat.com>
8134
8135 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8136 needed.
8137 * corelow.c (core_read_description): Delegate when needed.
8138 * remote.c (remote_read_description): Delegate when needed.
8139 * target-delegates.c: Rebuild.
8140 * target.c (target_read_description): Rewrite.
8141 * target.h (struct target_ops) <to_read_description>: Update
8142 comment. Use TARGET_DEFAULT_RETURN.
8143
8144 2014-02-19 Tom Tromey <tromey@redhat.com>
8145
8146 * target-delegates.c: Rebuild.
8147 * target.c (update_current_target): Don't inherit or default
8148 to_can_run.
8149 (find_default_run_target): Check against delegate_can_run.
8150 * target.h (struct target_ops) <to_can_run>: Use
8151 TARGET_DEFAULT_RETURN.
8152
8153 2014-02-19 Tom Tromey <tromey@redhat.com>
8154
8155 * target-delegates.c: Rebuild.
8156 * target.c (target_disconnect): Unconditionally delegate.
8157 * target.h (struct target_ops) <to_disconnect>: Use
8158 TARGET_DEFAULT_NORETURN.
8159
8160 2014-02-19 Tom Tromey <tromey@redhat.com>
8161
8162 * record.c (record_stop): Unconditionally delegate.
8163 * target-delegates.c: Rebuild.
8164 * target.c (target_stop_recording): Unconditionally delegate.
8165 * target.h (struct target_ops) <to_stop_recording>: Use
8166 TARGET_DEFAULT_IGNORE.
8167
8168 2014-02-19 Tom Tromey <tromey@redhat.com>
8169
8170 * target-delegates.c: Rebuild.
8171 * target.c (target_enable_btrace): Unconditionally delegate.
8172 * target.h (struct target_ops) <to_enable_btrace>: Use
8173 TARGET_DEFAULT_NORETURN.
8174
8175 2014-02-19 Tom Tromey <tromey@redhat.com>
8176
8177 * target-delegates.c: Rebuild.
8178 * target.c (target_read_btrace): Unconditionally delegate.
8179 * target.h (struct target_ops) <to_read_btrace>: Use
8180 TARGET_DEFAULT_NORETURN.
8181
8182 2014-02-19 Tom Tromey <tromey@redhat.com>
8183
8184 * target-delegates.c: Rebuild.
8185 * target.c (target_teardown_btrace): Unconditionally delegate.
8186 * target.h (struct target_ops) <to_teardown_btrace>: Use
8187 TARGET_DEFAULT_NORETURN.
8188
8189 2014-02-19 Tom Tromey <tromey@redhat.com>
8190
8191 * target-delegates.c: Rebuild.
8192 * target.c (target_disable_btrace): Unconditionally delegate.
8193 * target.h (struct target_ops) <to_disable_btrace>: Use
8194 TARGET_DEFAULT_NORETURN.
8195
8196 2014-02-19 Tom Tromey <tromey@redhat.com>
8197
8198 * target-delegates.c: Rebuild.
8199 * target.c (default_search_memory): New function.
8200 (simple_search_memory): Update comment.
8201 (target_search_memory): Unconditionally delegate.
8202 * target.h (struct target_ops) <to_search_memory>: Use
8203 TARGET_DEFAULT_FUNC.
8204
8205 2014-02-19 Tom Tromey <tromey@redhat.com>
8206
8207 * auxv.c (default_auxv_parse): No longer static.
8208 (target_auxv_parse): Unconditionally delegate.
8209 * auxv.h (default_auxv_parse): Declare.
8210 * target-delegates.c: Rebuild.
8211 * target.c: Include auxv.h.
8212 * target.h (struct target_ops) <to_auxv_parse>: Use
8213 TARGET_DEFAULT_FUNC.
8214
8215 2014-02-19 Tom Tromey <tromey@redhat.com>
8216
8217 * target-delegates.c: Rebuild.
8218 * target.c (target_memory_map): Unconditionally delegate.
8219 * target.h (struct target_ops) <to_memory_map>: Use
8220 TARGET_DEFAULT_RETURN.
8221
8222 2014-02-19 Tom Tromey <tromey@redhat.com>
8223
8224 * target-delegates.c: Rebuild.
8225 * target.c (target_thread_alive): Unconditionally delegate.
8226 * target.h (struct target_ops) <to_thread_alive>: Use
8227 TARGET_DEFAULT_RETURN.
8228
8229 2014-02-19 Tom Tromey <tromey@redhat.com>
8230
8231 * target-delegates.c: Rebuild.
8232 * target.c (target_save_record): Unconditionally delegate.
8233 * target.h (struct target_ops) <to_save_record>: 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_delete_record): Unconditionally delegate.
8240 * target.h (struct target_ops) <to_delete_record>: 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_record_is_replaying): Unconditionally
8247 delegate.
8248 * target.h (struct target_ops) <to_record_is_replaying>: Use
8249 TARGET_DEFAULT_RETURN.
8250
8251 2014-02-19 Tom Tromey <tromey@redhat.com>
8252
8253 * target-delegates.c: Rebuild.
8254 * target.c (target_goto_record_begin): Unconditionally delegate.
8255 * target.h (struct target_ops) <to_goto_record_begin>: Use
8256 TARGET_DEFAULT_NORETURN.
8257
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8259
8260 * target-delegates.c: Rebuild.
8261 * target.c (target_goto_record_end): Unconditionally delegate.
8262 * target.h (struct target_ops) <to_goto_record_end>: Use
8263 TARGET_DEFAULT_NORETURN.
8264
8265 2014-02-19 Tom Tromey <tromey@redhat.com>
8266
8267 * target-delegates.c: Rebuild.
8268 * target.c (target_goto_record): Unconditionally delegate.
8269 * target.h (struct target_ops) <to_goto_record>: Use
8270 TARGET_DEFAULT_NORETURN.
8271
8272 2014-02-19 Tom Tromey <tromey@redhat.com>
8273
8274 * target-delegates.c: Rebuild.
8275 * target.c (target_insn_history): Unconditionally delegate.
8276 * target.h (struct target_ops) <to_insn_history>: Use
8277 TARGET_DEFAULT_NORETURN.
8278
8279 2014-02-19 Tom Tromey <tromey@redhat.com>
8280
8281 * target-delegates.c: Rebuild.
8282 * target.c (target_insn_history_from): Unconditionally delegate.
8283 * target.h (struct target_ops) <to_insn_history_from>: Use
8284 TARGET_DEFAULT_NORETURN.
8285
8286 2014-02-19 Tom Tromey <tromey@redhat.com>
8287
8288 * target-delegates.c: Rebuild.
8289 * target.c (target_insn_history_range): Unconditionally delegate.
8290 * target.h (struct target_ops) <to_insn_history_range>: Use
8291 TARGET_DEFAULT_NORETURN.
8292
8293 2014-02-19 Tom Tromey <tromey@redhat.com>
8294
8295 * target-delegates.c: Rebuild.
8296 * target.c (target_call_history): Unconditionally delegate.
8297 * target.h (struct target_ops) <to_call_history>: Use
8298 TARGET_DEFAULT_NORETURN.
8299
8300 2014-02-19 Tom Tromey <tromey@redhat.com>
8301
8302 * target-delegates.c: Rebuild.
8303 * target.c (target_call_history_from): Unconditionally delegate.
8304 * target.h (struct target_ops) <to_call_history_from>: Use
8305 TARGET_DEFAULT_NORETURN.
8306
8307 2014-02-19 Tom Tromey <tromey@redhat.com>
8308
8309 * target-delegates.c: Rebuild.
8310 * target.c (target_call_history_range): Unconditionally delegate.
8311 * target.h (struct target_ops) <to_call_history_range>: Use
8312 TARGET_DEFAULT_NORETURN.
8313
8314 2014-02-19 Tom Tromey <tromey@redhat.com>
8315
8316 * target-delegates.c: Rebuild.
8317 * target.c (target_verify_memory): Unconditionally delegate.
8318 * target.h (struct target_ops) <to_verify_memory>: Use
8319 TARGET_DEFAULT_NORETURN.
8320
8321 2014-02-19 Tom Tromey <tromey@redhat.com>
8322
8323 * target-delegates.c: Rebuild.
8324 * target.c (target_core_of_thread): Unconditionally delegate.
8325 * target.h (struct target_ops) <to_core_of_thread>: Use
8326 TARGET_DEFAULT_RETURN.
8327
8328 2014-02-19 Tom Tromey <tromey@redhat.com>
8329
8330 * target-delegates.c: Rebuild.
8331 * target.c (target_flash_done): Unconditionally delegate.
8332 * target.h (struct target_ops) <to_flash_done>: Use
8333 TARGET_DEFAULT_NORETURN.
8334
8335 2014-02-19 Tom Tromey <tromey@redhat.com>
8336
8337 * target-delegates.c: Rebuild.
8338 * target.c (target_flash_erase): Unconditionally delegate.
8339 * target.h (struct target_ops) <to_flash_erase>: Use
8340 TARGET_DEFAULT_NORETURN.
8341
8342 2014-02-19 Tom Tromey <tromey@redhat.com>
8343
8344 * target-delegates.c: Rebuild.
8345 * target.c (target_get_section_table): Unconditionally delegate.
8346 * target.h (struct target_ops) <to_get_section_table>: Use
8347 TARGET_DEFAULT_RETURN.
8348
8349 2014-02-19 Tom Tromey <tromey@redhat.com>
8350
8351 * target-delegates.c: Rebuild.
8352 * target.c (target_pid_to_str): Unconditionally delegate.
8353 (init_dummy_target): Don't initialize to_pid_to_str.
8354 (default_pid_to_str): Rename from dummy_pid_to_str.
8355 * target.h (struct target_ops) <to_pid_to_str>: Use
8356 TARGET_DEFAULT_FUNC.
8357
8358 2014-02-19 Tom Tromey <tromey@redhat.com>
8359
8360 * target-delegates.c: Rebuild.
8361 * target.c (target_find_new_threads): Unconditionally delegate.
8362 * target.h (struct target_ops) <to_find_new_threads>: Use
8363 TARGET_DEFAULT_RETURN.
8364
8365 2014-02-19 Tom Tromey <tromey@redhat.com>
8366
8367 * target-delegates.c: Rebuild.
8368 * target.c (target_program_signals): Unconditionally delegate.
8369 * target.h (struct target_ops) <to_program_signals>: Use
8370 TARGET_DEFAULT_IGNORE.
8371
8372 2014-02-19 Tom Tromey <tromey@redhat.com>
8373
8374 * target-delegates.c: Rebuild.
8375 * target.c (target_pass_signals): Unconditionally delegate.
8376 * target.h (struct target_ops) <to_pass_signals>: Use
8377 TARGET_DEFAULT_IGNORE.
8378
8379 2014-02-19 Tom Tromey <tromey@redhat.com>
8380
8381 * target-delegates.c: Rebuild.
8382 * target.c (default_mourn_inferior): New function.
8383 (target_mourn_inferior): Unconditionally delegate.
8384 * target.h (struct target_ops) <to_mourn_inferior>: Use
8385 TARGET_DEFAULT_FUNC.
8386
8387 2014-02-19 Tom Tromey <tromey@redhat.com>
8388
8389 * target-delegates.c: Rebuild.
8390 * target.c (default_follow_fork): New function.
8391 (target_follow_fork): Unconditionally delegate.
8392 * target.h (struct target_ops) <to_follow_fork>: Use
8393 TARGET_DEFAULT_FUNC.
8394
8395 2014-02-19 Tom Tromey <tromey@redhat.com>
8396
8397 * target-delegates.c: Rebuild.
8398 * target.c (target_kill): Unconditionally delegate.
8399 * target.h (struct target_ops) <to_kill>: Use
8400 TARGET_DEFAULT_NORETURN.
8401
8402 2014-02-19 Tom Tromey <tromey@redhat.com>
8403
8404 * target-delegates.c: Rebuild.
8405 * target.c (target_masked_watch_num_registers): Unconditionally
8406 delegate.
8407 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8408 Use TARGET_DEFAULT_RETURN.
8409
8410 2014-02-19 Tom Tromey <tromey@redhat.com>
8411
8412 * target-delegates.c: Rebuild.
8413 * target.c (target_remove_mask_watchpoint): Unconditionally
8414 delegate.
8415 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8416 TARGET_DEFAULT_RETURN.
8417
8418 2014-02-19 Tom Tromey <tromey@redhat.com>
8419
8420 * target-delegates.c: Rebuild.
8421 * target.c (target_insert_mask_watchpoint): Unconditionally
8422 delegate.
8423 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8424 TARGET_DEFAULT_RETURN.
8425
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8427
8428 * target-delegates.c: Rebuild.
8429 * target.c (target_ranged_break_num_registers): Unconditionally
8430 delegate.
8431 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8432 Use TARGET_DEFAULT_RETURN.
8433
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8435
8436 * target-delegates.c: Rebuild.
8437 * target.c (target_fetch_registers): Unconditionally delegate.
8438 * target.h (struct target_ops) <to_fetch_registers>: Use
8439 TARGET_DEFAULT_NORETURN.
8440
8441 2014-02-19 Tom Tromey <tromey@redhat.com>
8442
8443 * target-delegates.c: Rebuild.
8444 * target.c (update_current_target): Don't inherit or default
8445 to_stop.
8446 * target.h (struct target_ops) <to_stop>: Use
8447 TARGET_DEFAULT_IGNORE.
8448
8449 2014-02-19 Tom Tromey <tromey@redhat.com>
8450
8451 * target-delegates.c: Rebuild.
8452 * target.c (update_current_target): Don't inherit or default
8453 to_can_run_breakpoint_commands.
8454 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8455 Use TARGET_DEFAULT_RETURN.
8456
8457 2014-02-19 Tom Tromey <tromey@redhat.com>
8458
8459 * target-delegates.c: Rebuild.
8460 * target.c (update_current_target): Don't inherit or default
8461 to_supports_evaluation_of_breakpoint_conditions.
8462 * target.h (struct target_ops)
8463 <to_supports_evaluation_of_breakpoint_conditions>: Use
8464 TARGET_DEFAULT_RETURN.
8465
8466 2014-02-19 Tom Tromey <tromey@redhat.com>
8467
8468 * target-delegates.c: Rebuild.
8469 * target.c (update_current_target): Don't inherit or default
8470 to_augmented_libraries_svr4_read.
8471 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8472 Use TARGET_DEFAULT_RETURN.
8473
8474 2014-02-19 Tom Tromey <tromey@redhat.com>
8475
8476 * target-delegates.c: Rebuild.
8477 * target.c (update_current_target): Don't inherit or default
8478 to_can_use_agent.
8479 * target.h (struct target_ops) <to_can_use_agent>: Use
8480 TARGET_DEFAULT_RETURN.
8481
8482 2014-02-19 Tom Tromey <tromey@redhat.com>
8483
8484 * target-delegates.c: Rebuild.
8485 * target.c (update_current_target): Don't inherit or default
8486 to_use_agent.
8487 * target.h (struct target_ops) <to_use_agent>: Use
8488 TARGET_DEFAULT_NORETURN.
8489
8490 2014-02-19 Tom Tromey <tromey@redhat.com>
8491
8492 * target-delegates.c: Rebuild.
8493 * target.c (update_current_target): Don't inherit or default
8494 to_traceframe_info.
8495 (return_null): Remove.
8496 * target.h (struct target_ops) <to_traceframe_info>: Use
8497 TARGET_DEFAULT_RETURN.
8498
8499 2014-02-19 Tom Tromey <tromey@redhat.com>
8500
8501 * target-delegates.c: Rebuild.
8502 * target.c (update_current_target): Don't inherit or default
8503 to_static_tracepoint_markers_by_strid.
8504 * target.h (struct target_ops)
8505 <to_static_tracepoint_markers_by_strid>: Use
8506 TARGET_DEFAULT_NORETURN.
8507
8508 2014-02-19 Tom Tromey <tromey@redhat.com>
8509
8510 * target-delegates.c: Rebuild.
8511 * target.c (update_current_target): Don't inherit or default
8512 to_static_tracepoint_marker_at.
8513 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8514 Use TARGET_DEFAULT_RETURN.
8515
8516 2014-02-19 Tom Tromey <tromey@redhat.com>
8517
8518 * target-delegates.c: Rebuild.
8519 * target.c (update_current_target): Don't inherit or default
8520 to_set_permissions.
8521 * target.h (struct target_ops) <to_set_permissions>: Use
8522 TARGET_DEFAULT_IGNORE.
8523
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8525
8526 * target-delegates.c: Rebuild.
8527 * target.c (update_current_target): Don't inherit or default
8528 to_get_tib_address.
8529 * target.h (struct target_ops) <to_get_tib_address>: Use
8530 TARGET_DEFAULT_NORETURN.
8531
8532 2014-02-19 Tom Tromey <tromey@redhat.com>
8533
8534 * target-delegates.c: Rebuild.
8535 * target.c (update_current_target): Don't inherit or default
8536 to_set_trace_notes.
8537 * target.h (struct target_ops) <to_set_trace_notes>: Use
8538 TARGET_DEFAULT_RETURN.
8539
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8541
8542 * target-delegates.c: Rebuild.
8543 * target.c (update_current_target): Don't initialize
8544 to_set_trace_buffer_size.
8545 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8546 TARGET_DEFAULT_IGNORE.
8547
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8549
8550 * target-delegates.c: Rebuild.
8551 * target.c (update_current_target): Don't inherit or default
8552 to_set_circular_trace_buffer.
8553 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8554 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
8561 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8562 TARGET_DEFAULT_IGNORE.
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_min_fast_tracepoint_insn_len.
8569 (return_minus_one): Remove.
8570 * target.h (struct target_ops)
8571 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8572
8573 2014-02-19 Tom Tromey <tromey@redhat.com>
8574
8575 * target-delegates.c: Rebuild.
8576 * target.c (update_current_target): Don't inherit or default
8577 to_get_raw_trace_data.
8578 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8579 TARGET_DEFAULT_NORETURN.
8580
8581 2014-02-19 Tom Tromey <tromey@redhat.com>
8582
8583 * target-delegates.c: Rebuild.
8584 * target.c (update_current_target): Don't inherit or default
8585 to_upload_trace_state_variables.
8586 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8587 Use TARGET_DEFAULT_RETURN.
8588
8589 2014-02-19 Tom Tromey <tromey@redhat.com>
8590
8591 * target-delegates.c: Rebuild.
8592 * target.c (update_current_target): Don't inherit or default
8593 to_upload_tracepoints.
8594 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8595 TARGET_DEFAULT_RETURN.
8596
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8598
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8601 to_save_trace_data.
8602 * target.h (struct target_ops) <to_save_trace_data>: Use
8603 TARGET_DEFAULT_NORETURN.
8604
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8606
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8609 to_get_trace_state_variable_value.
8610 * target.h (struct target_ops)
8611 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8612
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_trace_find.
8618 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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_trace_stop.
8625 * target.h (struct target_ops) <to_trace_stop>: Use
8626 TARGET_DEFAULT_NORETURN.
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_get_tracepoint_status.
8633 * target.h (struct target_ops) <to_get_tracepoint_status>: 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_get_trace_status.
8641 * target.h (struct target_ops) <to_get_trace_status>: 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_trace_start.
8649 * target.h (struct target_ops) <to_trace_start>: Use
8650 TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
8657 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8658 Use TARGET_DEFAULT_NORETURN.
8659
8660 2014-02-19 Tom Tromey <tromey@redhat.com>
8661
8662 * target-delegates.c: Rebuild.
8663 * target.c (update_current_target): Don't inherit or default
8664 to_disable_tracepoint.
8665 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8666 TARGET_DEFAULT_NORETURN.
8667
8668 2014-02-19 Tom Tromey <tromey@redhat.com>
8669
8670 * target-delegates.c: Rebuild.
8671 * target.c (update_current_target): Don't inherit or default
8672 to_enable_tracepoint.
8673 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8674 TARGET_DEFAULT_NORETURN.
8675
8676 2014-02-19 Tom Tromey <tromey@redhat.com>
8677
8678 * target-delegates.c: Rebuild.
8679 * target.c (update_current_target): Don't inherit or default
8680 to_download_trace_state_variable.
8681 * target.h (struct target_ops) <to_download_trace_state_variable>:
8682 Use TARGET_DEFAULT_NORETURN.
8683
8684 2014-02-19 Tom Tromey <tromey@redhat.com>
8685
8686 * target-delegates.c: Rebuild.
8687 * target.c (update_current_target): Don't inherit or default
8688 to_can_download_tracepoint.
8689 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8690 TARGET_DEFAULT_RETURN.
8691
8692 2014-02-19 Tom Tromey <tromey@redhat.com>
8693
8694 * target-delegates.c: Rebuild.
8695 * target.c (update_current_target): Don't inherit or default
8696 to_download_tracepoint.
8697 * target.h (struct target_ops) <to_download_tracepoint>: Use
8698 TARGET_DEFAULT_NORETURN.
8699
8700 2014-02-19 Tom Tromey <tromey@redhat.com>
8701
8702 * target-delegates.c: Rebuild.
8703 * target.c (update_current_target): Don't inherit or default
8704 to_trace_init.
8705 * target.h (struct target_ops) <to_trace_init>: Use
8706 TARGET_DEFAULT_RETURN.
8707
8708 2014-02-19 Tom Tromey <tromey@redhat.com>
8709
8710 * target-delegates.c: Rebuild.
8711 * target.c (update_current_target): Don't inherit or default
8712 to_supports_string_tracing.
8713 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8714 TARGET_DEFAULT_RETURN.
8715
8716 2014-02-19 Tom Tromey <tromey@redhat.com>
8717
8718 * target-delegates.c: Rebuild.
8719 * target.c (update_current_target): Don't inherit or default
8720 to_supports_enable_disable_tracepoint.
8721 * target.h (struct target_ops)
8722 <to_supports_enable_disable_tracepoint>: Use
8723 TARGET_DEFAULT_RETURN.
8724
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8726
8727 * target-delegates.c: Rebuild.
8728 * target.c (update_current_target): Don't inherit or default
8729 to_supports_multi_process.
8730 * target.h (struct target_ops) <to_supports_multi_process>: Use
8731 TARGET_DEFAULT_RETURN.
8732
8733 2014-02-19 Tom Tromey <tromey@redhat.com>
8734
8735 * target-delegates.c: Rebuild.
8736 * target.c (update_current_target): Don't inherit or default
8737 to_get_ada_task_ptid.
8738 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8739 TARGET_DEFAULT_FUNC.
8740
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8742
8743 * target-delegates.c: Rebuild.
8744 * target.c (update_current_target): Don't inherit or default
8745 to_thread_architecture.
8746 * target.h (struct target_ops) <to_thread_architecture>: Use
8747 TARGET_DEFAULT_FUNC.
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_execution_direction.
8754 * target.h (struct target_ops) <to_execution_direction>: Use
8755 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
8762 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8763 TARGET_DEFAULT_RETURN.
8764 (target_can_execute_reverse): Unconditionally delegate.
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_goto_bookmark.
8771 (dummy_goto_bookmark): Remove.
8772 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8773 * target.h (struct target_ops) <to_goto_bookmark>: Use
8774 TARGET_DEFAULT_NORETURN.
8775
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8777
8778 * target-delegates.c: Rebuild.
8779 * target.c (update_current_target): Don't inherit or default
8780 to_get_bookmark.
8781 (dummy_get_bookmark): Remove.
8782 (init_dummy_target): Don't inherit or default to_get_bookmark.
8783 * target.h (struct target_ops) <to_get_bookmark>: Use
8784 TARGET_DEFAULT_NORETURN
8785
8786 2014-02-19 Tom Tromey <tromey@redhat.com>
8787
8788 * target-delegates.c: Rebuild.
8789 * target.c (update_current_target): Don't inherit or default
8790 to_make_corefile_notes.
8791 (init_dummy_target): Don't initialize to_make_corefile_notes.
8792 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8793 TARGET_DEFAULT_FUNC.
8794
8795 2014-02-19 Tom Tromey <tromey@redhat.com>
8796
8797 * target-delegates.c: Rebuild.
8798 * target.c (update_current_target): Don't inherit or default
8799 to_find_memory_regions.
8800 (init_dummy_target): Don't initialize to_find_memory_regions.
8801 * target.h (struct target_ops) <to_find_memory_regions>: Use
8802 TARGET_DEFAULT_FUNC.
8803
8804 2014-02-19 Tom Tromey <tromey@redhat.com>
8805
8806 * target-delegates.c: Rebuild.
8807 * target.c (update_current_target): Don't inherit or default
8808 to_log_command.
8809 * target.h (struct target_ops) <to_log_command>: Use
8810 TARGET_DEFAULT_IGNORE.
8811 (target_log_command): Unconditionally delegate.
8812
8813 2014-02-19 Tom Tromey <tromey@redhat.com>
8814
8815 * target-delegates.c: Rebuild.
8816 * target.c (update_current_target): Don't inherit or default
8817 to_pid_to_exec_file.
8818 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8819 TARGET_DEFAULT_RETURN.
8820
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8822
8823 * target-delegates.c: Rebuild.
8824 * target.c (update_current_target): Don't inherit or default
8825 to_thread_name.
8826 (target_thread_name): Unconditionally delegate.
8827 * target.h (struct target_ops) <to_thread_name>: Use
8828 TARGET_DEFAULT_RETURN.
8829
8830 2014-02-19 Tom Tromey <tromey@redhat.com>
8831
8832 * target-delegates.c: Rebuild.
8833 * target.c (update_current_target): Don't inherit or default
8834 to_extra_thread_info.
8835 * target.h (struct target_ops) <to_extra_thread_info>: Use
8836 TARGET_DEFAULT_RETURN.
8837
8838 2014-02-19 Tom Tromey <tromey@redhat.com>
8839
8840 * target-delegates.c: Rebuild.
8841 * target.c (update_current_target): Don't inherit or default
8842 to_has_exited.
8843 * target.h (struct target_ops) <to_has_exited>: Use
8844 TARGET_DEFAULT_RETURN..
8845
8846 2014-02-19 Tom Tromey <tromey@redhat.com>
8847
8848 * target-delegates.c: Rebuild.
8849 * target.c (update_current_target): Don't inherit or default
8850 to_set_syscall_catchpoint.
8851 (return_one): Remove.
8852 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8853 TARGET_DEFAULT_RETURN.
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_insert_exec_catchpoint.
8860 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8861 TARGET_DEFAULT_RETURN.
8862
8863 2014-01-08 Tom Tromey <tromey@redhat.com>
8864
8865 * target-delegates.c: Rebuild.
8866 * target.c (update_current_target): Don't inherit or default
8867 to_insert_exec_catchpoint.
8868 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8869 TARGET_DEFAULT_RETURN.
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_remove_vfork_catchpoint.
8876 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8877 TARGET_DEFAULT_RETURN.
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_insert_vfork_catchpoint.
8884 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8885 TARGET_DEFAULT_RETURN.
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_remove_fork_catchpoint.
8892 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8893 TARGET_DEFAULT_RETURN.
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_insert_fork_catchpoint.
8900 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8901 TARGET_DEFAULT_RETURN.
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_post_startup_inferior.
8908 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8909 TARGET_DEFAULT_IGNORE.
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_load.
8916 * target.h (struct target_ops) <to_load>: Use
8917 TARGET_DEFAULT_NORETURN.
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_terminal_info.
8924 * target.h (struct target_ops) <to_terminal_info>: Use
8925 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_terminal_save_ours.
8932 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8933 TARGET_DEFAULT_IGNORE.
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_terminal_ours.
8940 * target.h (struct target_ops) <to_terminal_ours>: Use
8941 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
8948 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8949 TARGET_DEFAULT_IGNORE.
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_terminal_inferior.
8956 * target.h (struct target_ops) <to_terminal_inferior>: Use
8957 TARGET_DEFAULT_IGNORE.
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_terminal_init.
8964 * target.h (struct target_ops) <to_terminal_init>: Use
8965 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
8972 * target.h (struct target_ops)
8973 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
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_region_ok_for_hw_watchpoint.
8980 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8981 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
8988 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8989 Use TARGET_DEFAULT_FUNC.
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_remove_watchpoint.
8996 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8997 TARGET_DEFAULT_NORETURN.
8998
8999 2014-02-19 Tom Tromey <tromey@redhat.com>
9000
9001 * target-delegates.c: Rebuild.
9002 * target.c (update_current_target): Don't inherit or default
9003 to_insert_watchpoint.
9004 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9005 TARGET_DEFAULT_RETURN.
9006
9007 2014-02-19 Tom Tromey <tromey@redhat.com>
9008
9009 * target-delegates.c: Rebuild.
9010 * target.c (update_current_target): Don't inherit or default
9011 to_remove_hw_breakpoint.
9012 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9013 TARGET_DEFAULT_RETURN.
9014
9015 2014-02-19 Tom Tromey <tromey@redhat.com>
9016
9017 * target-delegates.c: Rebuild.
9018 * target.c (update_current_target): Don't inherit or default
9019 to_insert_hw_breakpoint.
9020 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9021 TARGET_DEFAULT_RETURN.
9022
9023 2014-02-19 Tom Tromey <tromey@redhat.com>
9024
9025 * target-delegates.c: Rebuild.
9026 * target.c (update_current_target): Don't inherit or default
9027 to_can_use_hw_breakpoint.
9028 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9029 TARGET_DEFAULT_RETURN.
9030
9031 2014-02-19 Tom Tromey <tromey@redhat.com>
9032
9033 * target-delegates.c: Rebuild.
9034 * target.c (update_current_target): Don't inherit or default
9035 to_files_info.
9036 * target.h (struct target_ops) <to_files_info>: Use
9037 TARGET_DEFAULT_IGNORE.
9038
9039 2014-02-19 Tom Tromey <tromey@redhat.com>
9040
9041 * target-delegates.c: Rebuild.
9042 * target.c (update_current_target): Don't inherit or default
9043 to_store.
9044 * target.h (struct target_ops) <to_store>: Use
9045 TARGET_DEFAULT_NORETURN.
9046
9047 2014-02-19 Tom Tromey <tromey@redhat.com>
9048
9049 * target-delegates.c: Rebuild.
9050 * target.c (update_current_target): Don't inherit or default
9051 to_post_attach.
9052 * target.h (struct target_ops) <to_post_attach>: Use
9053 TARGET_DEFAULT_IGNORE.
9054
9055 2014-02-19 Tom Tromey <tromey@redhat.com>
9056
9057 * target-delegates.c: Rebuild.
9058 * target.c (update_current_target): Don't inherit or default
9059 to_rcmd.
9060 (default_rcmd): New function.
9061 (do_monitor_command): Unconditionally delegate.
9062 * target.h (struct target_ops) <to_rmcd>: Use
9063 TARGET_DEFAULT_FUNC.
9064
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9066
9067 * target-delegates.c: Rebuild.
9068 * target.c (init_dummy_target): Don't initialize to_attach.
9069 (target_attach): Unconditionally delegate.
9070 * target.h (struct target_ops) <to_attach>: Use
9071 TARGET_DEFAULT_FUNC.
9072
9073 2014-02-19 Tom Tromey <tromey@redhat.com>
9074
9075 * target-delegates.c: Rebuild.
9076 * target.c (target_detach): Unconditionally delegate.
9077 (init_dummy_target): Don't initialize to_detach.
9078 * target.h (struct target_ops) <to_detach>: Use
9079 TARGET_DEFAULT_IGNORE.
9080
9081 2014-02-19 Tom Tromey <tromey@redhat.com>
9082
9083 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9084 Add argument.
9085 (target_augmented_libraries_svr4_read): Add argument.
9086 * target.c (update_current_target): Update.
9087 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9088 argument.
9089
9090 2014-02-19 Tom Tromey <tromey@redhat.com>
9091
9092 * target.h (struct target_ops) <to_call_history_range>: Add
9093 argument.
9094 * target.c (target_call_history_range): Add argument.
9095 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9096 argument.
9097 (record_btrace_call_history_from): Update.
9098
9099 2014-02-19 Tom Tromey <tromey@redhat.com>
9100
9101 * target.h (struct target_ops) <to_call_history_from>: Add
9102 argument.
9103 * target.c (target_call_history_from): Add argument.
9104 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9105 argument.
9106
9107 2014-02-19 Tom Tromey <tromey@redhat.com>
9108
9109 * target.h (struct target_ops) <to_call_history>: Add argument.
9110 * target.c (target_call_history): Add argument.
9111 * record-btrace.c (record_btrace_call_history): Add 'self'
9112 argument.
9113
9114 2014-02-19 Tom Tromey <tromey@redhat.com>
9115
9116 * target.h (struct target_ops) <to_insn_history_range>: Add
9117 argument.
9118 * target.c (target_insn_history_range): Add argument.
9119 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9120 argument.
9121 (record_btrace_insn_history_from): Update.
9122
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9124
9125 * target.h (struct target_ops) <to_insn_history_from>: Add
9126 argument.
9127 * target.c (target_insn_history_from): Add argument.
9128 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9129 argument.
9130
9131 2014-02-19 Tom Tromey <tromey@redhat.com>
9132
9133 * target.h (struct target_ops) <to_insn_history>: Add argument.
9134 * target.c (target_insn_history): Add argument.
9135 * record-btrace.c (record_btrace_insn_history): Add 'self'
9136 argument.
9137
9138 2014-02-19 Tom Tromey <tromey@redhat.com>
9139
9140 * target.h (struct target_ops) <to_goto_record>: Add argument.
9141 * target.c (target_goto_record): Add argument.
9142 * record-full.c (record_full_goto): Add 'self' argument.
9143 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9144
9145 2014-02-19 Tom Tromey <tromey@redhat.com>
9146
9147 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9148 * target.c (target_goto_record_end): Add argument.
9149 * record-full.c (record_full_goto_end): Add 'self' argument.
9150 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9151
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9153
9154 * target.h (struct target_ops) <to_goto_record_begin>: Add
9155 argument.
9156 * target.c (target_goto_record_begin): Add argument.
9157 * record-full.c (record_full_goto_begin): Add 'self' argument.
9158 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9159 argument.
9160
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9162
9163 * target.h (struct target_ops) <to_record_is_replaying>: Add
9164 argument.
9165 * target.c (target_record_is_replaying): Add argument.
9166 * record-full.c (record_full_is_replaying): Add 'self' argument.
9167 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9168 argument.
9169 (record_btrace_xfer_partial, record_btrace_store_registers)
9170 (record_btrace_prepare_to_store, record_btrace_resume)
9171 (record_btrace_wait, record_btrace_decr_pc_after_break)
9172 (record_btrace_find_new_threads, record_btrace_thread_alive):
9173 Update.
9174
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9176
9177 * target.h (struct target_ops) <to_delete_record>: Add argument.
9178 * target.c (target_delete_record): Add argument.
9179 * record-full.c (record_full_delete): Add 'self' argument.
9180
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9182
9183 * target.h (struct target_ops) <to_save_record>: Add argument.
9184 * target.c (target_save_record): Add argument.
9185 * record-full.c (record_full_save): Add 'self' argument.
9186 (record_full_save): Add 'self' argument.
9187
9188 2014-02-19 Tom Tromey <tromey@redhat.com>
9189
9190 * target.h (struct target_ops) <to_info_record>: Add argument.
9191 * target.c (target_info_record): Add argument.
9192 * record.c (info_record_command): Add argument.
9193 * record-full.c (record_full_info): Add 'self' argument.
9194 * record-btrace.c (record_btrace_info): Add 'self' argument.
9195
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9197
9198 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9199 * target.c (target_stop_recording): Add argument.
9200 * record.c (record_stop): Add argument.
9201 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9202 argument.
9203
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9205
9206 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9207 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9208 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9209 argument.
9210 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9211 (_initialize_amd64_linux_nat): Use it.
9212 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9213 (_initialize_i386_linux_nat): Use it.
9214
9215 2014-02-19 Tom Tromey <tromey@redhat.com>
9216
9217 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9218 * target.c (target_teardown_btrace): Add argument.
9219 * remote.c (remote_teardown_btrace): Add 'self' argument.
9220 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9221 argument.
9222 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9223 argument.
9224
9225 2014-02-19 Tom Tromey <tromey@redhat.com>
9226
9227 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9228 * target.c (target_disable_btrace): Add argument.
9229 * remote.c (remote_disable_btrace): Add 'self' argument.
9230 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9231 argument.
9232 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9233 argument.
9234
9235 2014-02-19 Tom Tromey <tromey@redhat.com>
9236
9237 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9238 * target.c (target_enable_btrace): Add argument.
9239 * remote.c (remote_enable_btrace): Add 'self' argument.
9240 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9241 argument.
9242 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9243 argument.
9244
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9248 (target_can_use_agent): Add argument.
9249 * target.c (update_current_target): Update.
9250 * remote.c (remote_can_use_agent): Add 'self' argument.
9251 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9252
9253 2014-02-19 Tom Tromey <tromey@redhat.com>
9254
9255 * target.h (struct target_ops) <to_use_agent>: Add argument.
9256 (target_use_agent): Add argument.
9257 * target.c (update_current_target): Update.
9258 * remote.c (remote_use_agent): Add 'self' argument.
9259 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9260
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9262
9263 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9264 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9265 (target_traceframe_info): Add argument.
9266 * target.c (update_current_target): Update.
9267 * remote.c (remote_traceframe_info): Add 'self' argument.
9268 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9269
9270 2014-02-19 Tom Tromey <tromey@redhat.com>
9271
9272 * target.h (target_static_tracepoint_markers_by_strid): Add
9273 argument.
9274 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9275 'self' argument.
9276 * target.c (update_current_target): Update.
9277 * remote.c (struct target_ops)
9278 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9279 * linux-nat.c (struct target_ops)
9280 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9281
9282 2014-02-19 Tom Tromey <tromey@redhat.com>
9283
9284 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9285 Add argument.
9286 (target_static_tracepoint_marker_at): Add argument.
9287 * target.c (update_current_target): Update.
9288 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9289 argument.
9290
9291 2014-02-19 Tom Tromey <tromey@redhat.com>
9292
9293 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9294 (target_set_permissions): Add argument.
9295 * target.c (update_current_target): Update.
9296 * remote.c (remote_set_permissions): Add 'self' argument.
9297 (remote_start_remote): Update.
9298
9299 2014-02-19 Tom Tromey <tromey@redhat.com>
9300
9301 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9302 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9303 (target_get_tib_address): Add argument.
9304 * target.c (update_current_target): Update.
9305 * remote.c (remote_get_tib_address): Add 'self' argument.
9306
9307 2014-02-19 Tom Tromey <tromey@redhat.com>
9308
9309 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9310 (target_set_trace_notes): Add argument.
9311 * target.c (update_current_target): Update.
9312 * remote.c (remote_set_trace_notes): Add 'self' argument.
9313
9314 2014-02-19 Tom Tromey <tromey@redhat.com>
9315
9316 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9317 argument.
9318 (target_set_trace_buffer_size): Add argument.
9319 * target.c (update_current_target): Update.
9320 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9321
9322 2014-02-19 Tom Tromey <tromey@redhat.com>
9323
9324 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9325 argument.
9326 (target_set_circular_trace_buffer): Add argument.
9327 * target.c (update_current_target): Update.
9328 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9329 argument.
9330
9331 2014-02-19 Tom Tromey <tromey@redhat.com>
9332
9333 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9334 argument.
9335 (target_set_disconnected_tracing): Add argument.
9336 * target.c (update_current_target): Update.
9337 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9338
9339 2014-02-19 Tom Tromey <tromey@redhat.com>
9340
9341 * target.h (struct target_ops)
9342 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9343 (target_get_min_fast_tracepoint_insn_len): Add argument.
9344 * target.c (update_current_target): Update.
9345 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9346 argument.
9347
9348 2014-02-19 Tom Tromey <tromey@redhat.com>
9349
9350 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9351 argument.
9352 (target_get_raw_trace_data): Add argument.
9353 * target.c (update_current_target): Update.
9354 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9355
9356 2014-02-19 Tom Tromey <tromey@redhat.com>
9357
9358 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9359 Add argument.
9360 (target_upload_trace_state_variables): Add argument.
9361 * target.c (update_current_target): Update.
9362 * remote.c (remote_upload_trace_state_variables): Add 'self'
9363 argument.
9364 (remote_start_remote): Update.
9365
9366 2014-02-19 Tom Tromey <tromey@redhat.com>
9367
9368 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9369 argument.
9370 (target_upload_tracepoints): Add argument.
9371 * target.c (update_current_target): Update.
9372 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9373 (remote_start_remote): Update.
9374
9375 2014-02-19 Tom Tromey <tromey@redhat.com>
9376
9377 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9378 (target_save_trace_data): Add argument.
9379 * target.c (update_current_target): Update.
9380 * remote.c (remote_save_trace_data): Add 'self' argument.
9381
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9385 argument.
9386 * target.h (struct target_ops)
9387 <to_get_trace_state_variable_value>: Add argument.
9388 (target_get_trace_state_variable_value): Add argument.
9389 * target.c (update_current_target): Update.
9390 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9391 argument.
9392 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9393
9394 2014-02-19 Tom Tromey <tromey@redhat.com>
9395
9396 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9397 * target.h (struct target_ops) <to_trace_find>: Add argument.
9398 (target_trace_find): Add argument.
9399 * target.c (update_current_target): Update.
9400 * remote.c (remote_trace_find): Add 'self' argument.
9401 * ctf.c (ctf_trace_find): Add 'self' argument.
9402
9403 2014-02-19 Tom Tromey <tromey@redhat.com>
9404
9405 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9406 (target_trace_stop): Add argument.
9407 * target.c (update_current_target): Update.
9408 * remote.c (remote_trace_stop): Add 'self' argument.
9409
9410 2014-02-19 Tom Tromey <tromey@redhat.com>
9411
9412 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9413 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9414 argument.
9415 (target_get_tracepoint_status): Add argument.
9416 * target.c (update_current_target): Update.
9417 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9418
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9420
9421 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9422 * target.h (struct target_ops) <to_get_trace_status>: Add
9423 argument.
9424 (target_get_trace_status): Add argument.
9425 * target.c (update_current_target): Update.
9426 * remote.c (remote_get_trace_status): Add 'self' argument.
9427 (remote_start_remote, remote_can_download_tracepoint): Update.
9428 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9429
9430 2014-02-19 Tom Tromey <tromey@redhat.com>
9431
9432 * target.h (struct target_ops) <to_trace_start>: Add argument.
9433 (target_trace_start): Add argument.
9434 * target.c (update_current_target): Update.
9435 * remote.c (remote_trace_start): Add 'self' argument.
9436
9437 2014-02-19 Tom Tromey <tromey@redhat.com>
9438
9439 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9440 Add argument.
9441 (target_trace_set_readonly_regions): Add argument.
9442 * target.c (update_current_target): Update.
9443 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9444 argument.
9445
9446 2014-02-19 Tom Tromey <tromey@redhat.com>
9447
9448 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9449 argument.
9450 (target_disable_tracepoint): Add argument.
9451 * target.c (update_current_target): Update.
9452 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9453
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9455
9456 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9457 argument.
9458 (target_enable_tracepoint): Add argument.
9459 * target.c (update_current_target): Update.
9460 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9461
9462 2014-02-19 Tom Tromey <tromey@redhat.com>
9463
9464 * target.h (struct target_ops) <to_download_trace_state_variable>:
9465 Add argument.
9466 (target_download_trace_state_variable): Add argument.
9467 * target.c (update_current_target): Update.
9468 * remote.c (remote_download_trace_state_variable): Add 'self'
9469 argument.
9470
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9472
9473 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9474 argument.
9475 (target_can_download_tracepoint): Add argument.
9476 * target.c (update_current_target): Update.
9477 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9478
9479 2014-02-19 Tom Tromey <tromey@redhat.com>
9480
9481 * target.h (struct target_ops) <to_download_tracepoint>: Add
9482 argument.
9483 (target_download_tracepoint): Add argument.
9484 * target.c (update_current_target): Update.
9485 * remote.c (remote_download_tracepoint): Add 'self' argument.
9486
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9488
9489 * target.h (struct target_ops) <to_trace_init>: Add argument.
9490 (target_trace_init): Add argument.
9491 * target.c (update_current_target): Update.
9492 * remote.c (remote_trace_init): Add 'self' argument.
9493
9494 2014-02-19 Tom Tromey <tromey@redhat.com>
9495
9496 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9497 * target.c (target_fileio_readlink): Add argument.
9498 * remote.c (remote_hostio_readlink): Add 'self' argument.
9499 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9500
9501 2014-02-19 Tom Tromey <tromey@redhat.com>
9502
9503 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9504 * target.c (target_fileio_unlink): Add argument.
9505 * remote.c (remote_hostio_unlink): Add 'self' argument.
9506 (remote_file_delete): Update.
9507 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9508
9509 2014-02-19 Tom Tromey <tromey@redhat.com>
9510
9511 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9512 * target.c (target_fileio_close): Add argument.
9513 * remote.c (remote_hostio_close): Add 'self' argument.
9514 (remote_hostio_close_cleanup): Update.
9515 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9516 Update.
9517 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9518
9519 2014-02-19 Tom Tromey <tromey@redhat.com>
9520
9521 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9522 * target.c (target_fileio_pread): Add argument.
9523 * remote.c (remote_hostio_pread): Add 'self' argument.
9524 (remote_bfd_iovec_pread, remote_file_get): Update.
9525 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9526
9527 2014-02-19 Tom Tromey <tromey@redhat.com>
9528
9529 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9530 * target.c (target_fileio_pwrite): Add argument.
9531 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9532 (remote_file_put): Update.
9533 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9534
9535 2014-02-19 Tom Tromey <tromey@redhat.com>
9536
9537 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9538 * target.c (target_fileio_open): Add argument.
9539 * remote.c (remote_hostio_open): Add 'self' argument.
9540 (remote_bfd_iovec_open): Add 'self' argument.
9541 (remote_file_put): Add 'self' argument.
9542 (remote_file_get): Add 'self' argument.
9543 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9544
9545 2014-02-19 Tom Tromey <tromey@redhat.com>
9546
9547 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9548 Add argument.
9549 (target_can_run_breakpoint_commands): Add argument.
9550 * target.c (update_current_target): Update.
9551 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9552 argument.
9553 (remote_insert_breakpoint): Add 'self' argument.
9554 (remote_insert_hw_breakpoint): Add 'self' argument.
9555 (remote_can_run_breakpoint_commands): Add 'self' argument.
9556
9557 2014-02-19 Tom Tromey <tromey@redhat.com>
9558
9559 * target.h (struct target_ops)
9560 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9561 (target_supports_evaluation_of_breakpoint_conditions): Add
9562 argument.
9563 * target.c (update_current_target): Update.
9564 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9565 argument.
9566 (remote_insert_breakpoint): Add 'self' argument.
9567 (remote_insert_hw_breakpoint): Add 'self' argument.
9568 (remote_supports_cond_breakpoints): Add 'self' argument.
9569
9570 2014-02-19 Tom Tromey <tromey@redhat.com>
9571
9572 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9573 argument.
9574 (target_supports_string_tracing): Add argument.
9575 * target.c (update_current_target): Update.
9576 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9577
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9579
9580 * target.h (struct target_ops)
9581 <to_supports_disable_randomization>: Add argument.
9582 * target.c (find_default_supports_disable_randomization): Add
9583 argument.
9584 (target_supports_disable_randomization): Add argument.
9585 (find_default_supports_disable_randomization): Add 'self'
9586 argument.
9587 * remote.c (extended_remote_supports_disable_randomization): Add
9588 'self' argument.
9589 (remote_supports_disable_randomization): Add 'self' argument.
9590 (extended_remote_create_inferior): Update.
9591 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9592 'self' argument.
9593
9594 2014-02-19 Tom Tromey <tromey@redhat.com>
9595
9596 * target.h (struct target_ops)
9597 <to_supports_enable_disable_tracepoint>: Add argument.
9598 (target_supports_enable_disable_tracepoint): Add argument.
9599 * target.c (update_current_target): Update.
9600 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9601 argument.
9602
9603 2014-02-19 Tom Tromey <tromey@redhat.com>
9604
9605 * target.h (struct target_ops) <to_supports_multi_process>: Add
9606 argument.
9607 (target_supports_multi_process): Add argument.
9608 * target.c (update_current_target): Update.
9609 * remote.c (remote_supports_multi_process): Add 'self' argument.
9610 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9611 argument.
9612 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9613 argument.
9614
9615 2014-02-19 Tom Tromey <tromey@redhat.com>
9616
9617 * target.h (struct target_ops) <to_execution_direction>: Add
9618 argument.
9619 (target_execution_direction): Add argument.
9620 * target.c (default_execution_direction): Add 'self' argument.
9621 * record-full.c (record_full_execution_direction): Add 'self'
9622 argument.
9623
9624 2014-02-19 Tom Tromey <tromey@redhat.com>
9625
9626 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9627 argument.
9628 (target_can_execute_reverse): Add argument.
9629 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9630 * record-full.c (record_full_can_execute_reverse): Add 'self'
9631 argument.
9632 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9633 argument.
9634
9635 2014-02-19 Tom Tromey <tromey@redhat.com>
9636
9637 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9638 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9639 argument.
9640 (target_get_ada_task_ptid): Add argument.
9641 * target.c (update_current_target): Update.
9642 (default_get_ada_task_ptid): Add 'self' argument.
9643 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9644 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9645 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9646 argument.
9647 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9648 argument.
9649 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9650 argument.
9651 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9652 argument.
9653 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9654 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9655 argument.
9656
9657 2014-02-19 Tom Tromey <tromey@redhat.com>
9658
9659 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9660 (target_goto_bookmark): Add argument.
9661 * target.c (dummy_goto_bookmark): Add 'self' argument.
9662 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9663
9664 2014-02-19 Tom Tromey <tromey@redhat.com>
9665
9666 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9667 (target_get_bookmark): Add argument.
9668 * target.c (dummy_get_bookmark): Add 'self' argument.
9669 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9670
9671 2014-02-19 Tom Tromey <tromey@redhat.com>
9672
9673 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9674 argument.
9675 (target_make_corefile_notes): Add argument.
9676 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9677 * procfs.c (procfs_make_note_section): Add 'self' argument.
9678 (procfs_make_note_section): Add 'self' argument.
9679 (procfs_make_note_section): Add 'self' argument.
9680 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9681 argument.
9682 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9683 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9684 * exec.c (exec_make_note_section): Add 'self' argument.
9685 (exec_make_note_section): Add 'self' argument.
9686
9687 2014-02-19 Tom Tromey <tromey@redhat.com>
9688
9689 * target.h (struct target_ops) <to_find_memory_regions>: Add
9690 argument.
9691 (target_find_memory_regions): Add argument.
9692 * target.c (dummy_find_memory_regions): Add 'self' argument.
9693 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9694 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9695 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9696 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9697 * exec. (exec_do_find_memory_regions): New global.
9698 (exec_set_find_memory_regions): Rewrite.
9699 (exec_find_memory_regions): New function.
9700 (init_exec_ops): Use exec_find_memory_regions.
9701
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9703
9704 * target.h (struct target_ops) <to_supports_non_stop>: Add
9705 argument.
9706 * target.c (find_default_supports_non_stop): Add argument.
9707 (target_supports_non_stop): Add argument.
9708 (find_default_supports_non_stop): Add 'self' argument.
9709 * remote.c (remote_supports_non_stop): Add 'self' argument.
9710 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9711
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9713
9714 * target.h (struct target_ops) <to_log_command>: Add argument.
9715 (target_log_command): Add argument.
9716 * serial.h (serial_log_command): Add 'self' argument.
9717 * serial.c (serial_log_command): Add 'self' argument.
9718
9719 2014-02-19 Tom Tromey <tromey@redhat.com>
9720
9721 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9722 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9723 argument.
9724 (target_pid_to_exec_file): Add argument.
9725 * target.c (debug_to_pid_to_exec_file): Add argument.
9726 (update_current_target): Update.
9727 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9728 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9729 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9730 (linux_handle_extended_wait): Update.
9731 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9732 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9733 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9734 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9735
9736 2014-02-19 Tom Tromey <tromey@redhat.com>
9737
9738 * target.h (struct target_ops) <to_rcmd>: Add argument.
9739 (target_rcmd): Add argument.
9740 * target.c (debug_to_rcmd): Add argument.
9741 (update_current_target, do_monitor_command): Update.
9742 * remote.c (remote_rcmd): Add 'self' argument.
9743 * monitor.c (monitor_rcmd): Add 'self' argument.
9744
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9746
9747 * windows-nat.c (windows_stop): Add 'self' argument.
9748 * target.h (struct target_ops) <to_stop>: Add argument.
9749 * target.c (target_stop): Add argument.
9750 (debug_to_stop): Add argument.
9751 (update_current_target): Update.
9752 * remote.c (remote_stop): Add 'self' argument.
9753 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9754 (gdbsim_cntrl_c): Update.
9755 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9756 * procfs.c (procfs_stop): Add 'self' argument.
9757 * nto-procfs.c (procfs_stop): Add 'self' argument.
9758 * monitor.c (monitor_stop): Add 'self' argument.
9759 (monitor_open): Update.
9760 * linux-nat.c (linux_nat_stop): Add argument.
9761 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9762 * gnu-nat.c (gnu_stop): Add 'self' argument.
9763 * darwin-nat.c (darwin_stop): Add 'self' argument.
9764
9765 2014-02-19 Tom Tromey <tromey@redhat.com>
9766
9767 * target.h (struct target_ops) <to_thread_name>: Add argument.
9768 * target.c (target_thread_name): Add argument.
9769 (update_current_target): Update.
9770 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9771
9772 2014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target.h (struct target_ops) <to_extra_thread_info>: Add
9775 argument.
9776 (target_extra_thread_info): Add argument.
9777 * target.c (update_current_target): Update.
9778 * remote.c (remote_threads_extra_info): Add 'self' argument.
9779 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9780 argument.
9781 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9782 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9783 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9784 argument.
9785 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9786 argument.
9787 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9788 argument.
9789 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9790 argument.
9791
9792 2014-02-19 Tom Tromey <tromey@redhat.com>
9793
9794 * target.h (struct target_ops) <to_program_signals>: Add argument.
9795 * target.c (target_program_signals): Add argument.
9796 * remote.c (remote_program_signals): Add 'self' argument.
9797
9798 2014-02-19 Tom Tromey <tromey@redhat.com>
9799
9800 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9801 * target.c (target_pass_signals): Add argument.
9802 * remote.c (remote_pass_signals): Add 'self' argument.
9803 (remote_start_remote): Update.
9804 * procfs.c (procfs_pass_signals): Add 'self' argument.
9805 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9806 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9807 (linux_nat_create_inferior, linux_nat_attach): Update.
9808
9809 2014-02-19 Tom Tromey <tromey@redhat.com>
9810
9811 * windows-nat.c (windows_can_run): Add 'self' argument.
9812 * target.h (struct target_ops) <to_can_run>: Add argument.
9813 (target_can_run): Add argument.
9814 * target.c (debug_to_can_run): Add argument.
9815 (update_current_target): Update.
9816 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9817 * inf-child.c (inf_child_can_run): Add 'self' argument.
9818 * go32-nat.c (go32_can_run): Add 'self' argument.
9819
9820 2014-02-19 Tom Tromey <tromey@redhat.com>
9821
9822 * target.h (struct target_ops) <to_has_exited>: Add argument.
9823 (target_has_exited): Add argument.
9824 * target.c (debug_to_has_exited): Add argument.
9825 (update_current_target): Update.
9826
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9828
9829 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9830 argument.
9831 (target_set_syscall_catchpoint): Add argument.
9832 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9833 argument.
9834 * target.c (update_current_target): Update.
9835
9836 2014-02-19 Tom Tromey <tromey@redhat.com>
9837
9838 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9839 argument.
9840 (target_remove_exec_catchpoint): Add argument.
9841 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9842 (update_current_target): Update.
9843 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9844 argument.
9845
9846 2014-02-19 Tom Tromey <tromey@redhat.com>
9847
9848 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9849 argument.
9850 (target_insert_exec_catchpoint): Add argument.
9851 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9852 (update_current_target): Update.
9853 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9854 argument.
9855
9856 2014-02-19 Tom Tromey <tromey@redhat.com>
9857
9858 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9859 argument.
9860 (target_remove_vfork_catchpoint): Add argument.
9861 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9862 (update_current_target): Update.
9863 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9864 argument.
9865
9866 2014-02-19 Tom Tromey <tromey@redhat.com>
9867
9868 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9869 argument.
9870 (target_insert_vfork_catchpoint): Add argument.
9871 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9872 (update_current_target): Update.
9873 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9874 argument.
9875
9876 2014-02-19 Tom Tromey <tromey@redhat.com>
9877
9878 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9879 argument.
9880 (target_remove_fork_catchpoint): Add argument.
9881 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9882 (update_current_target): Update.
9883 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9884 argument.
9885
9886 2014-02-19 Tom Tromey <tromey@redhat.com>
9887
9888 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9889 argument.
9890 (target_insert_fork_catchpoint): Add argument.
9891 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9892 (update_current_target): Update.
9893 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9894 argument.
9895
9896 2014-02-19 Tom Tromey <tromey@redhat.com>
9897
9898 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9899 argument.
9900 (target_post_startup_inferior): Add argument.
9901 * target.c (debug_to_post_startup_inferior): Add argument.
9902 (update_current_target): Update.
9903 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9904 argument.
9905 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9906 argument.
9907 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9908 argument.
9909 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9910 argument.
9911 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9912 'self' argument.
9913 (super_post_startup_inferior): Likewise.
9914 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9915 'self' argument.
9916 (super_post_startup_inferior): Likewise.
9917 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9918 Add 'self' argument.
9919 (super_post_startup_inferior): Likewise.
9920
9921 2014-02-19 Tom Tromey <tromey@redhat.com>
9922
9923 * target.h (struct target_ops) <to_load>: Add argument.
9924 * target.c (target_load): Add argument.
9925 (debug_to_load): Add argument.
9926 (update_current_target): Update.
9927 * remote.c (remote_load): Add 'self' argument.
9928 * remote-sim.c (gdbsim_load): Add 'self' argument.
9929 * remote-mips.c (mips_load): Add 'self' argument.
9930 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9931 * monitor.c (monitor_load): Add 'self' argument.
9932 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9933
9934 2014-02-19 Tom Tromey <tromey@redhat.com>
9935
9936 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9937 (target_terminal_info): Add argument.
9938 * target.c (debug_to_terminal_info): Add argument.
9939 (default_terminal_info): Likewise.
9940 * inflow.c (child_terminal_info): Add 'self' argument.
9941 * inferior.h (child_terminal_info): Add 'self' argument.
9942 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9943
9944 2014-02-19 Tom Tromey <tromey@redhat.com>
9945
9946 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9947 argument.
9948 (target_terminal_save_ours): Add argument.
9949 * target.c (debug_to_terminal_save_ours): Add argument.
9950 (update_current_target): Update.
9951 * inflow.c (terminal_save_ours): Add 'self' argument.
9952 * inferior.h (terminal_save_ours): Add 'self' argument.
9953
9954 2014-02-19 Tom Tromey <tromey@redhat.com>
9955
9956 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9957 (target_terminal_ours): Add argument.
9958 * target.c (debug_to_terminal_ours): Add argument.
9959 (update_current_target): Update.
9960 * remote.c (remote_terminal_ours): Add 'self' argument.
9961 (remote_close): Update.
9962 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9963 * inflow.c (terminal_ours): Add 'self' argument.
9964 * inferior.h (terminal_ours): Add 'self' argument.
9965 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9966
9967 2014-02-19 Pedro Alves <palves@redhat.com>
9968 Tom Tromey <tromey@redhat.com>
9969
9970 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9971 argument.
9972 (target_terminal_ours_for_output): Add argument.
9973 * target.c (debug_to_terminal_ours_for_output): Add argument.
9974 (update_current_target): Update.
9975 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9976 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9977 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9978
9979 2014-02-19 Tom Tromey <tromey@redhat.com>
9980
9981 * target.h (struct target_ops) <to_terminal_inferior>: Add
9982 argument.
9983 * target.c (target_terminal_inferior): Add argument.
9984 (update_current_target): Update.
9985 * remote.c (remote_terminal_inferior): Add 'self' argument.
9986 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9987 * inflow.c (terminal_inferior): Add 'self' argument.
9988 * inferior.h (terminal_inferior): Add 'self' argument.
9989 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9990 (go32_terminal_inferior): Add 'self' argument.
9991
9992 2014-02-19 Tom Tromey <tromey@redhat.com>
9993
9994 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9995 (target_terminal_init): Add argument.
9996 * target.c (debug_to_terminal_init): Add argument.
9997 (update_current_target): Update.
9998 * inflow.c (terminal_init_inferior): Add 'self' argument.
9999 * inferior.h (terminal_init_inferior): Add 'self' argument.
10000 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10001 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10002
10003 2014-02-19 Tom Tromey <tromey@redhat.com>
10004
10005 * target.h (struct target_ops)
10006 <to_can_accel_watchpoint_condition>: Add argument.
10007 (target_can_accel_watchpoint_condition): Add argument.
10008 * target.c (debug_to_can_accel_watchpoint_condition): Add
10009 argument.
10010 (update_current_target): Update.
10011 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10012 'self' argument.
10013
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10017 Add argument.
10018 (target_region_ok_for_hw_watchpoint): Add argument.
10019 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10020 (default_region_ok_for_hw_watchpoint): Add argument.
10021 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10022 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10023 argument.
10024 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10025 argument.
10026 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10027 argument.
10028 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10029 'self' argument.
10030 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10031 'self' argument.
10032 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10033 'self' argument.
10034 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10035 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10036 'self' argument.
10037 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10038 Add 'self' argument.
10039
10040 2014-02-19 Tom Tromey <tromey@redhat.com>
10041
10042 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10043 argument.
10044 (target_insert_watchpoint): Add argument.
10045 * target.c (debug_to_insert_watchpoint): Add argument.
10046 (update_current_target): Update.
10047 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10048 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10049 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10050 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10051 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10052 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10053 argument.
10054 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10055 (procfs_insert_hw_watchpoint): Add 'self' argument.
10056 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10057 argument.
10058 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10059 argument.
10060 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10061 argument.
10062 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10063 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10064 argument.
10065 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10066 'self' argument.
10067
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10069
10070 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10071 argument.
10072 (target_remove_watchpoint): Add argument.
10073 * target.c (debug_to_remove_watchpoint): Add argument.
10074 (update_current_target): Update.
10075 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10076 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10077 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10078 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10079 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10080 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10081 argument.
10082 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10083 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10084 argument.
10085 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10086 argument.
10087 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10088 argument.
10089 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10090 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10091 argument.
10092 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10093 'self' argument.
10094
10095 2014-02-19 Tom Tromey <tromey@redhat.com>
10096
10097 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10098 argument.
10099 (target_remove_hw_breakpoint): Add argument.
10100 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10101 (update_current_target): Update.
10102 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10103 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10104 argument.
10105 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10106 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10107 argument.
10108 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10109 'self' argument.
10110
10111 2014-02-19 Tom Tromey <tromey@redhat.com>
10112
10113 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10114 argument.
10115 (target_insert_hw_breakpoint): Add argument.
10116 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10117 (update_current_target): Update.
10118 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10119 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10120 argument.
10121 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10122 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10123 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10124 argument.
10125 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10126 'self' argument.
10127
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10129
10130 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10131 argument.
10132 (target_can_use_hardware_watchpoint): Add argument.
10133 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10134 (update_current_target): Update.
10135 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10136 argument.
10137 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10138 argument.
10139 * remote.c (remote_check_watch_resources): Add 'self' argument.
10140 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10141 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10142 argument.
10143 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10144 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10145 argument.
10146 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10147 argument.
10148 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10149 argument.
10150 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10151 argument.
10152 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10153 argument.
10154 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10155 argument.
10156 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10157 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10158 argument.
10159 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10160 'self' argument.
10161
10162 2014-02-19 Tom Tromey <tromey@redhat.com>
10163
10164 * target.h (struct target_ops) <to_post_attach>: Add argument.
10165 (target_post_attach): Add argument.
10166 * target.c (debug_to_post_attach): Add argument.
10167 (update_current_target): Update.
10168 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10169 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10170 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10171 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10172 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10173
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10175
10176 * windows-nat.c (windows_close): Add 'self' argument.
10177 * tracepoint.c (tfile_close): Add 'self' argument.
10178 * target.h (struct target_ops) <to_close>: Add argument.
10179 * target.c (target_close): Add argument.
10180 (update_current_target): Update.
10181 * remote.c (remote_close): Add 'self' argument.
10182 * remote-sim.c (gdbsim_close): Add 'self' argument.
10183 * remote-mips.c (mips_close): Add 'self' argument.
10184 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10185 * record-full.c (record_full_close): Add 'self' argument.
10186 * record-btrace.c (record_btrace_close): Add 'self' argument.
10187 * monitor.h (monitor_close): Add 'self' argument.
10188 * monitor.c (monitor_close): Add 'self' argument.
10189 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10190 * linux-nat.c (linux_nat_close): Add argument.
10191 * go32-nat.c (go32_close): Add 'self' argument.
10192 * exec.c (exec_close_1): Add 'self' argument.
10193 * ctf.c (ctf_close): Add 'self' argument.
10194 * corelow.c (core_close): Add 'self' argument.
10195 (core_close_cleanup): Update.
10196 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10197 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10198
10199 2014-02-19 Tom Tromey <tromey@redhat.com>
10200
10201 * remote.c (remote_load): New function.
10202 (init_remote_ops): Use it.
10203
10204 2014-02-19 Tom Tromey <tromey@redhat.com>
10205
10206 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10207 argument.
10208 * common/linux-btrace.h (linux_supports_btrace): Update.
10209 * remote.c (remote_supports_btrace): Add "self" argument.
10210 * target-delegates.c: Rebuild.
10211 * target.c (target_supports_btrace): Remove.
10212 * target.h (struct target_ops) <to_supports_btrace>: Add
10213 target_ops argument.
10214 (target_supports_btrace): New define.
10215
10216 2014-02-19 Tom Tromey <tromey@redhat.com>
10217
10218 * record-full.c (record_full_beneath_to_resume_ops)
10219 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10220 (record_full_beneath_to_wait)
10221 (record_full_beneath_to_store_registers_ops)
10222 (record_full_beneath_to_store_registers)
10223 (record_full_beneath_to_xfer_partial_ops)
10224 (record_full_beneath_to_xfer_partial)
10225 (record_full_beneath_to_insert_breakpoint_ops)
10226 (record_full_beneath_to_insert_breakpoint)
10227 (record_full_beneath_to_remove_breakpoint_ops)
10228 (record_full_beneath_to_remove_breakpoint)
10229 (record_full_beneath_to_stopped_by_watchpoint)
10230 (record_full_beneath_to_stopped_data_address)
10231 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10232 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10233 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10234 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10235 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10236 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10237 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10238 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10239 (record_full_resume, record_full_wait_1)
10240 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10241 (record_full_store_registers, record_full_xfer_partial)
10242 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10243 (record_full_async, record_full_core_xfer_partial): Use target
10244 delegation.
10245 * target-delegates.c: Rebuild.
10246 * target.c (current_xfer_partial): Remove.
10247 (update_current_target): Do not INHERIT or de_fault
10248 to_insert_breakpoint, to_remove_breakpoint,
10249 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10250 to_is_async_p, to_async. Do not set to_xfer_partial field.
10251 (default_xfer_partial): Simplify.
10252 (current_xfer_partial): Remove.
10253 (target_wait, target_resume): Simplify.
10254 (find_default_can_async_p, find_default_is_async_p): Update.
10255 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10256 to_xfer_partial, to_stopped_by_watchpoint,
10257 to_stopped_data_address.
10258 (target_store_registers): Simplify.
10259 (forward_target_remove_breakpoint)
10260 (forward_target_insert_breakpoint): Remove.
10261 (target_remove_breakpoint, target_insert_breakpoint)
10262 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10263 * target.h (struct target_ops) <to_resume, to_wait,
10264 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10265 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10266 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10267 markup.
10268 (forward_target_remove_breakpoint)
10269 (forward_target_insert_breakpoint): Remove.
10270 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10271 directly.
10272 (record_btrace_insert_breakpoint): Delegate directly.
10273
10274 2014-02-19 Tom Tromey <tromey@redhat.com>
10275
10276 PR build/7701:
10277 * target-delegates.c: New file.
10278 * target.c: Include target-delegates.c.
10279 (init_dummy_target): Call install_dummy_methods.
10280 (complete_target_initialization): Call install_delegators.
10281 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10282 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10283 * make-target-delegates: New file.
10284
10285 2014-02-19 Tom Tromey <tromey@redhat.com>
10286
10287 * record.c (find_record_target): Use find_target_at.
10288 * target.c (find_target_at): New function.
10289 * target.h (find_target_at): Declare.
10290
10291 2014-02-19 Tom Tromey <tromey@redhat.com>
10292
10293 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10294 Add 'ops' argument.
10295 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10296 'ops' argument.
10297 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10298 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10299 'ops' argument.
10300 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10301 argument.
10302 * linux-nat.c (save_sigtrap): Update.
10303 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10304 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10305 (linux_nat_close): Update.
10306 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10307 argument.
10308 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10309 argument.
10310 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10311 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10312 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10313 (tmp_to_async): Add 'ops' argument.
10314 (record_full_stopped_by_watchpoint, record_full_async)
10315 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10316 argument.
10317 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10318 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10319 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10320 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10321 (remote_is_async_p, remote_async): Add 'ops' argument.
10322 (remote_stopped_data_address): Update.
10323 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10324 * target.c (update_current_target)
10325 (find_default_can_async_p, find_default_is_async_p): Update.
10326 (init_dummy_target): Update.
10327 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10328 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10329 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10330 (target_can_async_p, target_is_async_p, target_async)
10331 (target_stopped_by_watchpoint): Update.
10332
10333 2014-02-19 Yao Qi <yao@codesourcery.com>
10334
10335 PR gdb/16220
10336 * gdbarch.sh: Remove startup_gdbarch.
10337 * gdbarch.c: Regenerated.
10338 * gdbarch.h: Likewise.
10339
10340 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10341
10342 * rl78-tdep.c (rl78_g10_register_name): New function.
10343 (rl78_return_value): Add g10 support.
10344 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10345 g10.
10346
10347 2014-02-17 Doug Evans <xdje42@gmail.com>
10348
10349 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10350 (SUBDIR_GUILE_SRCS): Ditto.
10351 (scm-gsmob.o): Ditto.
10352
10353 2014-02-17 Yao Qi <yao@codesourcery.com>
10354
10355 * gnu-nat.c (ILL_RPC): Declare defined function.
10356
10357 2014-02-17 Yao Qi <yao@codesourcery.com>
10358
10359 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10360 mach_msg_type_number_t.
10361 (gnu_write_inferior): Likewise.
10362
10363 2014-02-17 Yao Qi <yao@codesourcery.com>
10364
10365 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10366 in format string.
10367 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10368 (inf_validate_procs, inf_signal): Likewise.
10369 (S_exception_raise_request): Likewise.
10370 (do_mach_notify_dead_name): Likewise.
10371 (steal_exc_port): Likewise.
10372 (gnu_read_inferior): Change 'copy_count''s type to
10373 mach_msg_type_number_t.
10374 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10375 format string.
10376
10377 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10378
10379 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10380 flag. Adjust all users; in particular...
10381 (gnu_wait): ..., don't decrement its value in here...
10382 (gnu_create_inferior): ..., and instead set the flag in here,
10383 around the startup_inferior call, and call that one with
10384 START_INFERIOR_TRAPS_EXPECTED.
10385
10386 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10387 (ILL_RPC): ... new macro.
10388 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10389 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10390 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10391 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10392 functions with ILL_RPC macro.
10393 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10394 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10395 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10396 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10397 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10398 (S_proc_getlogin_reply, S_proc_getsid_reply)
10399 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10400 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10401 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10402 (S_proc_getnports_reply, S_proc_is_important_reply)
10403 (S_proc_get_code_reply): New stub functions, generated with
10404 ILL_RPC macro.
10405
10406 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10407 collected the type check structures.
10408
10409 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10410
10411 2014-02-14 Doug Evans <dje@google.com>
10412
10413 * target.c (target_write_partial): Fix result type.
10414
10415 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10416
10417 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10418 the proper offsets to access fpregset_t.
10419
10420 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10421
10422 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10423 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10424 * h8300-tdep.c (setmachinelist): Remove global.
10425 * hppa-tdep.c (hppa_sigtramp): Remove global.
10426 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10427 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10428 * ravenscar-thread.c (update_target_observer): Remove global.
10429 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10430
10431 2014-02-12 Tom Tromey <tromey@redhat.com>
10432
10433 * common/rsp-low.c: Update comments.
10434 * common/rsp-low.h: Update comments.
10435
10436 2014-02-12 Tom Tromey <tromey@redhat.com>
10437
10438 * common/rsp-low.c (convert_ascii_to_int): Remove.
10439 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10440
10441 2014-02-12 Tom Tromey <tromey@redhat.com>
10442
10443 * common/rsp-low.h (unhexify): Don't declare.
10444 * common/rsp-low.c (unhexify): Remove.
10445
10446 2014-02-12 Tom Tromey <tromey@redhat.com>
10447
10448 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10449 * common/rsp-low.c (convert_int_to_ascii): Remove.
10450
10451 2014-02-12 Tom Tromey <tromey@redhat.com>
10452
10453 * common/rsp-low.h (hexify): Don't declare.
10454 * common/rsp-low.c (hexify): Remove.
10455
10456 2014-02-12 Tom Tromey <tromey@redhat.com>
10457
10458 * common/rsp-low.c (hexify): Never take strlen of argument.
10459
10460 2014-02-12 Tom Tromey <tromey@redhat.com>
10461
10462 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10463 * remote.c (extended_remote_run, remote_rcmd)
10464 (remote_download_trace_state_variable, remote_save_trace_data)
10465 (remote_set_trace_notes): Update.
10466 * tracepoint.c (encode_source_string, tfile_write_status)
10467 (tfile_write_uploaded_tsv): Update.
10468
10469 2014-02-12 Tom Tromey <tromey@redhat.com>
10470
10471 * tracepoint.c: Include rsp-low.h.
10472 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10473 * remote.c: Include rsp-low.h.
10474 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10475 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10476 (remote_unescape_input): Move to common/rsp-low.c.
10477 * common/rsp-low.h: New file.
10478 * common/rsp-low.c: New file.
10479 * Makefile.in (SFILES): Add common/rsp-low.c.
10480 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10481 (COMMON_OBS): Add rsp-low.o.
10482 (rsp-low.o): New target.
10483
10484 2014-02-12 Tom Tromey <tromey@redhat.com>
10485
10486 * utils.h: Include print-utils.h.
10487 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10488 (int_string, core_addr_to_string, core_addr_to_string_nz)
10489 (hex_string, hex_string_custom): Don't declare.
10490 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10491 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10492 (hex_string_custom, int_string, core_addr_to_string)
10493 (core_addr_to_string_nz, host_address_to_string): Move to
10494 common/print-utils.c.
10495 * common/print-utils.h: New file.
10496 * common/print-utils.c: New file
10497 * Makefile.in (SFILES): Add common/print-utils.c.
10498 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10499 (COMMON_OBS): Add print-utils.o.
10500 (print-utils.o): New target.
10501
10502 2014-02-12 Tom Tromey <tromey@redhat.com>
10503
10504 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10505
10506 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10507
10508 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10509
10510 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10511
10512 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10513 if a PT_IO ptrace request returns sucessfully but indicates that 0
10514 bytes were transferred.
10515
10516 2014-02-12 Pedro Alves <palves@redhat.com>
10517 Kevin Buettner <kevinb@redhat.com>
10518
10519 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10520 TYPE_INSTANCE_FLAG_CODE_SPACE.
10521
10522 2014-02-12 Pedro Alves <palves@redhat.com>
10523
10524 * h8300-tdep.c (pseudo_from_raw_register)
10525 (raw_from_pseudo_register): New functions.
10526 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10527 them.
10528
10529 2014-02-12 Pedro Alves <palves@redhat.com>
10530
10531 * h8300-tdep.c (h8300_register_sim_regno): New function.
10532 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10533 gdbarch_register_sim_regno hook.
10534
10535 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10536
10537 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10538
10539 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10540
10541 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10542
10543 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10544
10545 * obsd-tdep.h (obsd_init_abi): New prototype.
10546 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10547 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10548 (obsd_init_abi): New functions.
10549 * i386obsd-tdep.c: Include "obsd-tdep.h".
10550 (i386obsd_init_abi): Call obsd_init_abi.
10551 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10552 (amd64obsd_init_abi): Call obsd_init_abi.
10553 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10554 obsd-tdep.c to gdb_target_obs.
10555
10556 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10557
10558 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10559 double float arguments to 16-byte in the argument slots.
10560
10561 2014-02-11 Doug Evans <xdje42@gmail.com>
10562
10563 * configure.ac: Don't crash if pkg-config is not found and guile
10564 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10565 in guile checks.
10566 * configure: Regenerate.
10567
10568 2014-02-11 Yao Qi <yao@codesourcery.com>
10569
10570 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10571 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10572 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10573 * gnu-nat.c (gnu_xfer_memory): Likewise.
10574 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10575 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10576 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10577 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10578
10579 2014-02-11 Yao Qi <yao@codesourcery.com>
10580
10581 * target.h (enum target_xfer_error): Rename to ...
10582 (enum target_xfer_status): ... it. New. All users updated.
10583 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10584 New.
10585 (TARGET_XFER_STATUS_ERROR_P): New macro.
10586 (target_xfer_error_to_string): Remove declaration.
10587 (target_xfer_status_to_string): Declare.
10588 (target_xfer_partial_ftype): Adjust it.
10589 (struct target_ops) <to_xfer_partial>: Return
10590 target_xfer_status. Add argument xfered_len. Update
10591 comments.
10592 * target.c (target_xfer_error_to_string): Rename to ...
10593 (target_xfer_status_to_string): ... it. New. All callers
10594 updated.
10595 (target_read_live_memory): Likewise. Call target_xfer_partial
10596 instead of target_read.
10597 (memory_xfer_live_readonly_partial): Return
10598 target_xfer_status. Add argument xfered_len.
10599 (raw_memory_xfer_partial): Likewise.
10600 (memory_xfer_partial_1): Likewise.
10601 (memory_xfer_partial): Likewise.
10602 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10603 properly. Update debug message.
10604 (default_xfer_partial, current_xfer_partial): Likewise.
10605 (target_write_partial): Likewise.
10606 (target_read_partial): Likewise. All callers updated.
10607 (read_whatever_is_readable): Likewise.
10608 (target_write_with_progress): Likewise.
10609 (target_read_alloc_1): Likewise.
10610
10611 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10612 * auxv.c (procfs_xfer_auxv): Likewise.
10613 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10614 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10615 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10616 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10617 * corefile.c (read_memory): Adjust.
10618 * corelow.c (core_xfer_partial): Likewise.
10619 * ctf.c (ctf_xfer_partial): Likewise.
10620 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10621 updated.
10622 (darwin_xfer_partial): Likewise.
10623 * exec.c (section_table_xfer_memory_partial): Likewise. All
10624 callers updated.
10625 (exec_xfer_partial): Likewise.
10626 * exec.h (section_table_xfer_memory_partial): Update
10627 declaration.
10628 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10629 negative.
10630 (gnu_xfer_partial): Likewise.
10631 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10632 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10633 (ia64_hpux_xfer_solib_got): Likewise.
10634 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10635 type of 'partial_len' to ULONGEST.
10636 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10637 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10638 (linux_nat_xfer_partial): Likewise.
10639 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10640 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10641 * monitor.c (monitor_xfer_memory): Likewise.
10642 (monitor_xfer_partial): Likewise.
10643 * procfs.c (procfs_xfer_partial): Likewise.
10644 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10645 * record-full.c (record_full_xfer_partial): Likewise.
10646 (record_full_core_xfer_partial): Likewise.
10647 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10648 (gdbsim_xfer_partial): Likewise.
10649 * remote.c (remote_write_bytes_aux): Likewise. All callers
10650 updated.
10651 (remote_write_bytes, remote_read_bytes): Likewise. All
10652 callers updated.
10653 (remote_flash_erase): Likewise. All callers updated.
10654 (remote_write_qxfer): Likewise. All callers updated.
10655 (remote_read_qxfer): Likewise. All callers updated.
10656 (remote_xfer_partial): Likewise.
10657 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10658 (rs6000_xfer_shared_libraries): Likewise.
10659 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10660 (sol_thread_xfer_partial): Likewise.
10661 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10662 (sparc_xfer_partial): Likewise.
10663 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10664 updated.
10665 (spu_xfer_partial): Likewise.
10666 * spu-multiarch.c (spu_xfer_partial): Likewise.
10667 * tracepoint.c (tfile_xfer_partial): Likewise.
10668 * windows-nat.c (windows_xfer_memory): Likewise.
10669 (windows_xfer_shared_libraries): Likewise.
10670 (windows_xfer_partial): Likewise.
10671 * valprint.c: Replace 'target_xfer_error' with
10672 'target_xfer_status' in comments.
10673
10674 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10675
10676 Checked in by Joel Brobecker <brobecker@adacore.com>.
10677 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10678
10679 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10680
10681 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10682 function parameters.
10683
10684 2014-02-10 Will Newton <will.newton@linaro.org>
10685
10686 * elfread.c (elf_rel_plt_read): Look for a .got section if
10687 looking up .got.plt fails.
10688 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10689 on address passed to elf_gnu_ifunc_record_cache.
10690 (elf_gnu_ifunc_resolve_addr): Likewise.
10691 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10692
10693 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10694
10695 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10696 (X_RETTURN): New macro.
10697 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10698
10699 * sparc64-tdep.c (sparc64_init_abi): Hook
10700 sparc_in_function_epilogue_p.
10701
10702 2014-02-10 Gary Benson <gbenson@redhat.com>
10703
10704 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10705 Rename name_matcher to symbol_matcher.
10706
10707 2014-02-10 Gary Benson <gbenson@redhat.com>
10708
10709 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10710 Use expand_symtabs_file_matcher_ftype and
10711 expand_symtabs_symbol_matcher_ftype.
10712
10713 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10714
10715 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10716 (struct ada_symbol_cache): New.
10717 (ada_free_symbol_cache): Forward declare.
10718 (struct ada_pspace_data): New.
10719 (ada_pspace_data_handle): New static global.
10720 (get_ada_pspace_data, ada_pspace_data_cleanup)
10721 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10722 (cache_space, cache): Delete, now folded inside struct
10723 ada_pspace_data.
10724 (ada_get_symbol_cache): New function.
10725 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10726 implementation.
10727 (_initialize_ada_language): Remove initialization of cache_space.
10728 Move call to observer_attach_inferior_exit up, grouping it
10729 with the other observer registrations inside this function.
10730 Rename command to be more general. Add call to
10731 register_program_space_data_with_cleanup.
10732
10733 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10734
10735 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10736 ada_new_objfile_observer.
10737 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10738 (_initialize_tasks): Update uses of ada_new_objfile_observer
10739 and ada_tasks_normal_stop_observer.
10740
10741 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10742
10743 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10744 returned by the 'Length attribute to integer.
10745
10746 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10747
10748 * ada-lang.c (_initialize_ada_language): Initialize
10749 cache_space obstack.
10750
10751 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10752
10753 * ada-lang.c (HASH_SIZE): New macro.
10754 (struct cache_entry): New type.
10755 (cache_space, cache): New static globals.
10756 (ada_clear_symbol_cache, find_entry): New functions.
10757 (lookup_cached_symbol, cache_symbol): Implement.
10758 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10759 (_initialize_ada_language): Attach ada_new_objfile_observer
10760 and ada_free_objfile_observer.
10761
10762 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10763
10764 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10765 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10766 struct block * parameter.
10767 (ada_lookup_symbol_list_worker): Constify local variable "block".
10768 Remove cast which is no longer necessary.
10769
10770 2014-02-10 Doug Evans <xdje42@gmail.com>
10771
10772 Add Guile as an extension language.
10773 * NEWS: Mention Guile scripting.
10774 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10775 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10776 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10777 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10778 (CLIBS): Add GUILE_LIBS.
10779 (install-guile): New rule.
10780 (guile.o): New rule.
10781 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10782 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10783 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10784 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10785 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10786 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10787 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10788 * configure.ac: New option --with-guile.
10789 * configure: Regenerate.
10790 * config.in: Regenerate.
10791 * auto-load.c: Remove #include "python/python.h". Add #include
10792 "gdb/section-scripts.h".
10793 (source_section_scripts): Handle Guile scripts.
10794 (_initialize_auto_load): Add name of Guile objfile script to
10795 scripts-directory help text.
10796 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10797 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10798 (struct breakpoint): New member scm_bp_object.
10799 * defs.h (enum command_control_type): New value guile_control.
10800 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10801 "extension.h".
10802 (show_user): Update comment.
10803 (_initialize_cli_cmds): Update help text for "show user". Update help
10804 text for max-user-call-depth.
10805 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10806 "extension.h".
10807 (multi_line_command_p): Add guile_control.
10808 (print_command_lines): Handle guile_control.
10809 (execute_control_command, recurse_read_control_structure): Ditto.
10810 (process_next_line): Recognize "guile" commands.
10811 * disasm.c (gdb_disassemble_info): Make non-static.
10812 * disasm.h: #include "dis-asm.h".
10813 (struct gdbarch): Add forward decl.
10814 (gdb_disassemble_info): Declare.
10815 * extension.c: #include "guile/guile.h".
10816 (extension_languages): Add guile.
10817 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10818 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10819 * gdbtypes.c (get_unsigned_type_max): New function.
10820 (get_signed_type_minmax): New function.
10821 * gdbtypes.h (get_unsigned_type_max): Declare.
10822 (get_signed_type_minmax): Declare.
10823 * guile/README: New file.
10824 * guile/guile-internal.h: New file.
10825 * guile/guile.c: New file.
10826 * guile/guile.h: New file.
10827 * guile/scm-arch.c: New file.
10828 * guile/scm-auto-load.c: New file.
10829 * guile/scm-block.c: New file.
10830 * guile/scm-breakpoint.c: New file.
10831 * guile/scm-disasm.c: New file.
10832 * guile/scm-exception.c: New file.
10833 * guile/scm-frame.c: New file.
10834 * guile/scm-gsmob.c: New file.
10835 * guile/scm-iterator.c: New file.
10836 * guile/scm-lazy-string.c: New file.
10837 * guile/scm-math.c: New file.
10838 * guile/scm-objfile.c: New file.
10839 * guile/scm-ports.c: New file.
10840 * guile/scm-pretty-print.c: New file.
10841 * guile/scm-safe-call.c: New file.
10842 * guile/scm-string.c: New file.
10843 * guile/scm-symbol.c: New file.
10844 * guile/scm-symtab.c: New file.
10845 * guile/scm-type.c: New file.
10846 * guile/scm-utils.c: New file.
10847 * guile/scm-value.c: New file.
10848 * guile/lib/gdb.scm: New file.
10849 * guile/lib/gdb/boot.scm: New file.
10850 * guile/lib/gdb/experimental.scm: New file.
10851 * guile/lib/gdb/init.scm: New file.
10852 * guile/lib/gdb/iterator.scm: New file.
10853 * guile/lib/gdb/printing.scm: New file.
10854 * guile/lib/gdb/types.scm: New file.
10855 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10856 (VPATH): Add $(GUILE_SRCDIR).
10857 (GUILE_DIR): New variable.
10858 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10859 (all): Add stamp-guile dependency.
10860 (stamp-guile): New rule.
10861 (clean-guile, install-guile, uninstall-guile): New rules.
10862 (install-only): Add install-guile dependency.
10863 (uninstall): Add uninstall-guile dependency.
10864 (clean): Add clean-guile dependency.
10865
10866 2014-02-09 Doug Evans <xdje42@gmail.com>
10867
10868 Revert this patch (which I approved, mea culpa).
10869
10870 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10871
10872 * Makefile.in (all-lib): Remove.
10873 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10874
10875 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10876
10877 Fix Python stack corruption.
10878 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10879 gdb_py_longest.
10880
10881 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10882
10883 * Makefile.in (all-lib): Remove.
10884 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10885
10886 2014-02-07 Doug Evans <dje@google.com>
10887
10888 * extension-priv.h (extension_language_script_ops): Add comment.
10889 (extension_language_ops): Add comment.
10890 (active_ext_lang_state): Fix typo in comment.
10891
10892 2014-02-07 Pedro Alves <palves@redhat.com>
10893
10894 PR breakpoints/16292
10895 * infrun.c (handle_signal_stop) <signal arrives while stepping
10896 over a breakpoint>: Switch back to the stepping thread.
10897
10898 2014-02-07 Yao Qi <yao@codesourcery.com>
10899
10900 * target.c (target_xfer_partial): Return zero if LEN is zero.
10901
10902 2014-02-07 Yao Qi <yao@codesourcery.com>
10903
10904 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10905 (ld_so_xfer_auxv): Likewise.
10906 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10907 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10908 * corelow.c (core_xfer_partial): Likewise.
10909 * ctf.c (ctf_xfer_partial): Likewise.
10910 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10911 (darwin_xfer_partial): Likewise.
10912 * exec.c (exec_xfer_partial): Likewise.
10913 * gnu-nat.c (gnu_xfer_partial): Likewise.
10914 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10915 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10916 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10917 * linux-nat.c (linux_xfer_siginfo): Likewise.
10918 (linux_proc_xfer_spu): Likewise.
10919 * procfs.c (procfs_xfer_partial): Likewise.
10920 * record-full.c (record_full_xfer_partial): Likewise.
10921 (record_full_core_xfer_partial): Likewise.
10922 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10923 * remote.c (remote_write_qxfer): Likewise.
10924 (remote_write_qxfer, remote_read_qxfer): Likewise.
10925 (remote_xfer_partial): Likewise.
10926 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10927 (rs6000_xfer_shared_libraries): Likewise.
10928 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10929 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10930 (spu_xfer_partial): Likewise.
10931 * target.c (memory_xfer_partial_1): Likewise.
10932 * tracepoint.c (tfile_xfer_partial): Likewise.
10933 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10934 (windows_xfer_partial): Likewise.
10935
10936 2014-02-07 Yao Qi <yao@codesourcery.com>
10937
10938 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10939 comments.
10940 (core_xfer_shared_libraries_aix): Likewise.
10941 * gdbarch.c, gdbarch.h: Regenerated.
10942 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10943 ULONGEST. Change 'len_avail' type to ULONGEST.
10944 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10945 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10946 declaration.
10947 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10948
10949 2014-02-07 Yao Qi <yao@codesourcery.com>
10950
10951 * corefile.c (memory_error): Get 'exception' from ERR and pass
10952 'exception' to throw_error.
10953
10954 2014-02-06 Doug Evans <xdje42@gmail.com>
10955
10956 * configure.ac (libpython checking): Remove all but python.o from
10957 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10958 * configure: Regenerate.
10959
10960 * Makefile.in (SFILES): Add extension.c.
10961 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10962 (COMMON_OBS): Add extension.o.
10963 * extension.h: New file.
10964 * extension-priv.h: New file.
10965 * extension.c: New file.
10966
10967 * python/python-internal.h: #include "extension.h".
10968 (gdbpy_auto_load_enabled): Declare.
10969 (gdbpy_apply_val_pretty_printer): Declare.
10970 (gdbpy_apply_frame_filter): Declare.
10971 (gdbpy_preserve_values): Declare.
10972 (gdbpy_breakpoint_cond_says_stop): Declare.
10973 (gdbpy_breakpoint_has_cond): Declare.
10974 (void source_python_script_for_objfile): Delete.
10975 * python/python.c: #include "extension-priv.h".
10976 Delete inclusion of "observer.h".
10977 (extension_language_python): Moved here and renamed from
10978 script_language_python in py-auto-load.c.
10979 Redefined to be of type extension_language_defn.
10980 (python_extension_script_ops): New global.
10981 (python_extension_ops): New global.
10982 (struct python_env): New member previous_active.
10983 (restore_python_env): Call restore_active_ext_lang.
10984 (ensure_python_env): Call set_active_ext_lang.
10985 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10986 New arg extlang.
10987 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10988 New arg extlang.
10989 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10990 New arg extlang.
10991 (gdbpy_eval_from_control_command): Renamed from
10992 eval_python_from_control_command, made static. New arg extlang.
10993 (gdbpy_source_script) Renamed from source_python_script, made static.
10994 New arg extlang.
10995 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10996 result to int. New arg extlang.
10997 (gdbpy_source_objfile_script): Renamed from
10998 source_python_script_for_objfile, made static. New arg extlang.
10999 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11000 static. New args extlang, extlang_printers. Change result type to
11001 "void".
11002 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11003 static. New arg extlang. Rename arg printers to extlang_printers
11004 and change type to ext_lang_type_printers *.
11005 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11006 static. Replace argument arg with extlang, extlang_printers.
11007 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11008 (!HAVE_PYTHON, source_python_script): Delete.
11009 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11010 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11011 (!HAVE_PYTHON, start_type_printers): Delete.
11012 (!HAVE_PYTHON, apply_type_printers): Delete.
11013 (!HAVE_PYTHON, free_type_printers): Delete.
11014 (_initialize_python): Delete call to observer_attach_before_prompt.
11015 (finalize_python): Set/restore active extension language.
11016 (gdbpy_finish_initialization) Renamed from
11017 finish_python_initialization, made static. New arg extlang.
11018 (gdbpy_initialized): New function.
11019 * python/python.h: #include "extension.h". Delete #include
11020 "value.h", "mi/mi-cmds.h".
11021 (extension_language_python): Declare.
11022 (GDBPY_AUTO_FILE_NAME): Delete.
11023 (enum py_bt_status): Moved to extension.h and renamed to
11024 ext_lang_bt_status.
11025 (enum frame_filter_flags): Moved to extension.h.
11026 (enum py_frame_args): Moved to extension.h and renamed to
11027 ext_lang_frame_args.
11028 (finish_python_initialization): Delete.
11029 (eval_python_from_control_command): Delete.
11030 (source_python_script): Delete.
11031 (apply_val_pretty_printer): Delete.
11032 (apply_frame_filter): Delete.
11033 (preserve_python_values): Delete.
11034 (gdbpy_script_language_defn): Delete.
11035 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11036 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11037
11038 * auto-load.c: #include "extension.h".
11039 (GDB_AUTO_FILE_NAME): Delete.
11040 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11041 (script_language_gdb): Delete, moved to extension.c and renamed to
11042 extension_language_gdb.
11043 (source_gdb_script_for_objfile): Delete.
11044 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11045 (loaded_script): Change type of language member to
11046 struct extension_language_defn *.
11047 (init_loaded_scripts_info): Initialize
11048 unsupported_script_warning_printed.
11049 (maybe_add_script): Make static. Change type of language arg to
11050 struct extension_language_defn *.
11051 (clear_section_scripts): Reset unsupported_script_warning_printed.
11052 (auto_load_objfile_script_1): Rewrite to use extension language API.
11053 (auto_load_objfile_script): Make public. Remove support-compiled-in
11054 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11055 (source_section_scripts): Rewrite to use extension language API.
11056 (load_auto_scripts_for_objfile): Rewrite to use
11057 auto_load_scripts_for_objfile.
11058 (collect_matching_scripts_data): Change type of language member to
11059 struct extension_language_defn *.
11060 (auto_load_info_scripts): Change type of language arg to
11061 struct extension_language_defn *.
11062 (unsupported_script_warning_print): New function.
11063 (script_not_found_warning_print): Make static.
11064 (_initialize_auto_load): Rewrite construction of scripts-directory
11065 help.
11066 * auto-load.h (struct objfile): Add forward decl.
11067 (struct script_language): Delete.
11068 (struct auto_load_pspace_info): Add forward decl.
11069 (struct extension_language_defn): Add forward decl.
11070 (maybe_add_script): Delete.
11071 (auto_load_objfile_script): Declare.
11072 (script_not_found_warning_print): Delete.
11073 (auto_load_info_scripts): Update prototype.
11074 (auto_load_gdb_scripts_enabled): Declare.
11075 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11076 auto_load_python_scripts_enabled and made public.
11077 (script_language_python): Delete, moved to python.c.
11078 (gdbpy_script_language_defn): Delete.
11079 (info_auto_load_python_scripts): Update to use
11080 extension_language_python.
11081
11082 * breakpoint.c (condition_command): Replace call to
11083 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11084 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11085 with call to breakpoint_ext_lang_cond_says_stop.
11086 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11087 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11088 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11089 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11090 New arg slang.
11091 (local_setattro): Print name of extension language with existing
11092 stop condition.
11093
11094 * valprint.c (val_print, value_print): Update to call
11095 apply_ext_lang_val_pretty_printer.
11096 * cp-valprint.c (cp_print_value): Update call to
11097 apply_ext_lang_val_pretty_printer.
11098 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11099 (gdbpy_apply_val_pretty_printer): Renamed from
11100 apply_val_pretty_printer. New arg extlang.
11101 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11102
11103 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11104 extension language API.
11105 * cli/cli-script.c (execute_control_command): Update to call
11106 eval_ext_lang_from_control_command.
11107
11108 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11109 enum ext_lang_bt_status values. Update call to
11110 apply_ext_lang_frame_filter.
11111 (mi_cmd_stack_list_locals): Ditto.
11112 (mi_cmd_stack_list_args): Ditto.
11113 (mi_cmd_stack_list_variables): Ditto.
11114 * mi/mi-main.c: Delete #include "python/python-internal.h".
11115 Add #include "extension.h".
11116 (mi_cmd_list_features): Replace reference to python internal variable
11117 gdb_python_initialized with call to ext_lang_initialized_p.
11118
11119 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11120 Update to use enum ext_lang_frame_args. Update to call
11121 apply_ext_lang_frame_filter.
11122 * python/py-framefilter.c (extract_sym): Update to use enum
11123 ext_lang_bt_status.
11124 (extract_value, py_print_type, py_print_value): Ditto.
11125 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11126 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11127 (py_print_frame): Ditto.
11128 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11129 New arg extlang. Update to use enum ext_lang_bt_status.
11130
11131 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11132 finish_python_initialization. Replace with call to
11133 finish_ext_lang_initialization.
11134
11135 * typeprint.c (do_free_global_table): Update to call
11136 free_ext_lang_type_printers.
11137 (create_global_typedef_table): Update to call
11138 start_ext_lang_type_printers.
11139 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11140 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11141 (type_print_options): Change type of global_printers from "void *"
11142 to "struct ext_lang_type_printers *".
11143
11144 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11145 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11146 (gdbpy_preserve_values): Renamed from preserve_python_values.
11147 New arg extlang.
11148 (!HAVE_PYTHON, preserve_python_values): Delete.
11149
11150 * utils.c (quit_flag): Delete, moved to extension.c.
11151 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11152 extension.c.
11153
11154 * eval.c: Delete #include "python/python.h".
11155 * main.c: Delete #include "python/python.h".
11156
11157 * defs.h: Update comment.
11158
11159 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11160
11161 GDB 7.7 released.
11162
11163 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11164
11165 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11166 defined.
11167
11168 2014-02-05 Yao Qi <yao@codesourcery.com>
11169
11170 * remote.c (remote_pass_signals): Remove local 'buf' and use
11171 rs->buf.
11172 (remote_program_signals): Likewise.
11173
11174 2014-02-05 Yao Qi <yao@codesourcery.com>
11175
11176 * ctf.c: Include "inferior.h" and "gdbthread.h".
11177 (CTF_PID): A new macro.
11178 (ctf_open): Call inferior_appeared and add_thread_silent.
11179 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11180 (ctf_thread_alive): New function.
11181 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11182
11183 2014-02-05 Yao Qi <yao@codesourcery.com>
11184
11185 Revert this patch:
11186
11187 2013-05-24 Yao Qi <yao@codesourcery.com>
11188
11189 * tracepoint.c (TFILE_PID): Remove.
11190 (tfile_open): Don't add thread and inferior.
11191 (tfile_close): Don't set 'inferior_ptid'. Don't call
11192 exit_inferior_silent.
11193 (tfile_thread_alive): Remove.
11194 (init_tfile_ops): Don't set field 'to_thread_alive' of
11195 tfile_ops.
11196
11197 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11198
11199 * remote.c (remote_start_remote): Call remote_check_symbols even
11200 if only symbol-file (not file) has been given.
11201
11202 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11203
11204 * gdbarch.sh (skip_entrypoint): New callback.
11205 * gdbarch.c, gdbarch.h: Regenerate.
11206 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11207 * infrun.c (fill_in_stop_func): Likewise.
11208 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11209 (ppc_elfv2_elf_make_msymbol_special): New function.
11210 (ppc_elfv2_skip_entrypoint): Likewise.
11211 (ppc_linux_init_abi): Install them for ELFv2.
11212
11213 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11214
11215 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11216 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11217 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11218 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11219 structures returned in GPRs.
11220
11221 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11222
11223 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11224 offset to the stack parameter list for the ELFv2 ABI.
11225
11226 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11227
11228 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11229 set_gdbarch_convert_from_func_ptr_addr and
11230 set_gdbarch_elf_make_msymbol_special for ELFv1.
11231 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11232 function descriptors on ELFv1.
11233 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11234 set up r12 at function entry.
11235
11236 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11237
11238 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11239 (struct gdbarch_tdep): New member elf_abi.
11240
11241 * rs6000-tdep.c: Include "elf/ppc64.h".
11242 (rs6000_gdbarch_init): Detect ELF ABI version.
11243
11244 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11245
11246 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11247 within a register pair holding a DFP 128-bit value on little-endian.
11248 (ppc64_sysv_abi_return_value_base): Likewise.
11249 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11250 (dfp_pseudo_register_write): Likewise.
11251
11252 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11253
11254 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11255 offset on little-endian when passing _Decimal32.
11256 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11257
11258 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11259
11260 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11261 of the overlapped FP register within the VSX register on little-
11262 endian platforms.
11263 (efpr_pseudo_register_write): Likewise.
11264
11265 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11266
11267 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11268 offset on little-endian when passing small structures.
11269
11270 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11271
11272 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11273 (struct ppc64_sysv_argpos): New data structure.
11274 (ppc64_sysv_abi_push_float): Remove.
11275 (ppc64_sysv_abi_push_val): New function.
11276 (ppc64_sysv_abi_push_integer): Likewise.
11277 (ppc64_sysv_abi_push_freg): Likewise.
11278 (ppc64_sysv_abi_push_vreg): Likewise.
11279 (ppc64_sysv_abi_push_param): Likewise.
11280 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11281 (ppc64_sysv_abi_return_value_base): New function.
11282 (ppc64_sysv_abi_return_value): Refactor to use it.
11283
11284 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11285
11286 * NEWS: Document new target powerpc64le-*-linux*.
11287
11288 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11289
11290 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11291 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11292 core dumps.
11293 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11294 register set used in ELF core dumps. Add floating-point register set.
11295
11296 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11297
11298 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11299 dwarf2_to_gdb[] table using symbolic constants. Adjust
11300 penultimate entry from number representing the PC register
11301 to symbolic constant representing the MDR register. Add
11302 constant for the PC register to the end of the table.
11303
11304 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11305
11306 * bsd-kvm.c: Include <sys/param.h>
11307
11308 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11309
11310 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11311
11312 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11313
11314 * ada-lang.h (clear_ada_sym_cache): Delete.
11315
11316 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11317
11318 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11319
11320 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11321
11322 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11323 the sigreturn register save area only if the syscall is
11324 sigreturn.
11325
11326 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11327
11328 * valops.c (value_slice): Minor reformatting.
11329
11330 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11331
11332 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11333
11334 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11335
11336 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11337 New static globals.
11338 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11339 (ada_ignore_descriptive_types_p): New static global.
11340 (find_parallel_type_by_descriptive_type): Return immediately
11341 if ada_ignore_descriptive_types_p is set.
11342 (_initialize_ada_language): Register new commands "maintenance
11343 set ada", "maintenance show ada", "maintenance set ada
11344 ignore-descriptive-types" and "maintenance show ada
11345 ignore-descriptive-types".
11346 * NEWS: Add entry for new "maint ada set/show
11347 ignore-descriptive-types" commands.
11348
11349 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11350
11351 * record-btrace.c (record_btrace_close): Call btrace_teardown
11352 for all threads.
11353
11354 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11355
11356 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11357 "ui-out.h".
11358
11359 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11360
11361 * ada-typeprint (type_is_full_subrange_of_target_type):
11362 New function.
11363 (print_range): Add parameter bounds_prefered_p. If not set,
11364 try printing range types using the name of their base type.
11365 (print_range_type): Add parameter bounds_prefered_p.
11366 Use it in call to print_range.
11367 (print_array_type, ada_print_type): Update calls to print_range
11368 and print_range_type.
11369
11370 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11371
11372 * ada-typeprint.c (print_array_type, print_choices, print_range)
11373 (print_range_bound, print_dynamic_range_bound, print_range_type):
11374 Remove declaration.
11375
11376 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11377
11378 * ada-typeprint.c (print_range): Add missing empty line
11379 after local declaration.
11380
11381 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11382
11383 * ada-valprint.c (print_optional_low_bound): Get index_type's
11384 target type for as long as it is a TYPE_CODE_RANGE.
11385
11386 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11387
11388 * procfs.c (procfs_make_note_section): Remove assertion and
11389 associated comment.
11390
11391 2014-01-24 Yao Qi <yao@codesourcery.com>
11392
11393 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11394 * corelow.c (get_core_siginfo): Likewise.
11395
11396 2014-01-24 Yao Qi <yao@codesourcery.com>
11397
11398 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11399 ULONGEST. Don't check 'len' is negative.
11400 (remote_write_bytes): Change type of 'len' to ULONGEST.
11401
11402 2014-01-23 Tom Tromey <tromey@redhat.com>
11403
11404 PR python/16485:
11405 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11406 Handle exception from frame.block.
11407 (FrameVars.fetch_frame_locals): Likewise.
11408
11409 2014-01-23 Tom Tromey <tromey@redhat.com>
11410
11411 PR python/16487:
11412 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11413 on a NULL pointer. Move "goto error" to correct place.
11414
11415 2014-01-23 Tom Tromey <tromey@redhat.com>
11416
11417 PR python/16491:
11418 * python/py-framefilter.c (apply_frame_filter): Call
11419 ensure_python_env after computing gdbarch.
11420
11421 2014-01-23 Yao Qi <yao@codesourcery.com>
11422
11423 * target.c (raw_memory_xfer_partial): Change argument type
11424 from void * to gdb_byte *.
11425 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11426
11427 2014-01-22 Doug Evans <dje@google.com>
11428
11429 New gdbserver option --debug-format=timestamp.
11430 * NEWS: Mention it.
11431
11432 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11433
11434 * syscalls/s390x-linux.xml: New file.
11435 * syscalls/s390-linux.xml: New file.
11436 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11437 (XML_SYSCALL_FILENAME_S390X): Likewise.
11438 (op_svc): New enum value for SVC opcode.
11439 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11440 (s390_linux_get_syscall_number): New function.
11441 (s390_gdbarch_init): Register '*get_syscall_number' and the
11442 syscall xml file name.
11443 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11444 "s390-linux.xml" and "s390x-linux.xml".
11445 * NEWS: Announce new feature.
11446
11447 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11448
11449 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11450
11451 2014-01-22 Pedro Alves <palves@redhat.com>
11452
11453 * xtensa-config.c: Include defs.h.
11454
11455 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11456
11457 * common/common-utils.h: Add "ARI:" comment beside __func__
11458 reference.
11459
11460 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11461
11462 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11463 documentation a bit.
11464
11465 2014-01-21 Roland McGrath <mcgrathr@google.com>
11466
11467 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11468 * configure: Regenerate.
11469 * aclocal.m4: Regenerate.
11470 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11471 New substituted variables.
11472 (install-strip): New target.
11473 (INSTALL_SCRIPT): New substituted variable.
11474 (FLAGS_TO_PASS): Add it.
11475 (install-only): Use $(INSTALL_SCRIPT) rather than
11476 $(INSTALL_PROGRAM) for gcore.
11477
11478 2014-01-20 Tom Tromey <tromey@redhat.com>
11479
11480 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11481 together.
11482
11483 2014-01-20 Tom Tromey <tromey@redhat.com>
11484
11485 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11486 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11487 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11488 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11489 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11490 (struct cmd_list_element) <flags>: Remove.
11491 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11492 doc_allocated>: New fields.
11493 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11494 bitfields.
11495 * maint.c (maintenance_do_deprecate): Update.
11496 * top.c (execute_command): Update.
11497
11498 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11499
11500 * xtensa-linux-nat.c: Include asm/ptrace.h.
11501
11502 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11503
11504 * Makefile.in (SFILES): Add d-support.c.
11505 (COMMON_OBS): Add d-support.o.
11506 * d-lang.h (d_parse_symbol): Add comment, now defined in
11507 d-support.c.
11508 * d-lang.c (parse_call_convention)
11509 (parse_attributes, parse_function_types)
11510 (parse_function_args, parse_type, parse_identifier)
11511 (call_convention_p, d_parse_symbol): Move functions to ...
11512 * d-support.c: ... New file.
11513
11514 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11515
11516 * d-lang.h (d_parse_symbol): Add declaration.
11517 * d-lang.c (extract_identifiers)
11518 (extract_type_info): Remove functions.
11519 (parse_call_convention, parse_attributes)
11520 (parse_function_types, parse_function_args)
11521 (parse_type, parse_identifier, call_convention_p)
11522 (d_parse_symbol): New functions.
11523 (d_demangle): Use d_parse_symbol to demangle D symbols.
11524
11525 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11526
11527 * d-lang.h (struct builtin_d_type): New data type.
11528 (builtin_d_type): Add declaration.
11529 * d-lang.c (d_language_arch_info, build_d_types)
11530 (builtin_d_type): New functions.
11531 (enum d_primitive_types): New data type.
11532 (d_language_defn): Change c_language_arch_info to
11533 d_language_arch_info.
11534 (d_type_data): New static variable.
11535 (_initialize_d_language): Initialize d_type_data.
11536
11537 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11538
11539 * d-lang.h (d_main_name): Add declaration.
11540 * d-lang.c (d_main_name): New function.
11541 * symtab.c (find_main_name): Add call to d_main_name.
11542
11543 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11544
11545 * d-lang.c (d_language_defn): Change macro_expansion_c to
11546 macro_expansion_no.
11547
11548 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11549
11550 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11551
11552 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11553
11554 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11555 gdb_exception" declaration.
11556 * remote.c (getpkt_or_notif_sane): Likewise.
11557
11558 2014-01-17 Doug Evans <dje@google.com>
11559
11560 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11561 function, contents of dirnames_to_char_ptr_vec_append moved here.
11562 (delim_string_to_char_ptr_vec): New function.
11563 (dirnames_to_char_ptr_vec_append): Rewrite.
11564 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11565
11566 2014-01-17 Doug Evans <dje@google.com>
11567
11568 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11569 and moved here ...
11570 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11571 #include "common-utils.h".
11572 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11573 * common/vec.h (VEC_ASSERT_PASS): Update.
11574 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11575 (MACH_CHECK_ERROR): Update.
11576
11577 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11578
11579 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11580 comments.
11581 * gdbarch.h: Regenerate.
11582
11583 2014-01-16 Tom Tromey <tromey@redhat.com>
11584
11585 * value.c (struct value) <regnum>: Move earlier.
11586
11587 2014-01-16 Tom Tromey <tromey@redhat.com>
11588
11589 * remote.c (extended_remote_create_inferior): Rename from
11590 extended_remote_create_inferior_1. Add "ops" argument. Remove
11591 old implementation.
11592
11593 2014-01-16 Pedro Alves <palves@redhat.com>
11594
11595 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11596 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11597 the backchain.
11598
11599 2014-01-16 Doug Evans <dje@google.com>
11600
11601 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11602
11603 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11604
11605 * btrace.h (btrace_thread_flag): New.
11606 (struct btrace_thread_info) <flags>: New.
11607 * record-btrace.c (record_btrace_resume_thread)
11608 (record_btrace_find_thread_to_move, btrace_step_no_history)
11609 (btrace_step_stopped, record_btrace_start_replaying)
11610 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11611 (record_btrace_find_resume_thread): New.
11612 (record_btrace_resume, record_btrace_wait): Extend.
11613 (record_btrace_can_execute_reverse): New.
11614 (record_btrace_open): Fail in non-stop mode.
11615 (record_btrace_set_replay): Split into this, ...
11616 (record_btrace_stop_replaying): ... this, ...
11617 (record_btrace_clear_histories): ... and this.
11618 (init_record_btrace_ops): Init to_can_execute_reverse.
11619 * NEWS: Announce it.
11620
11621 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11622
11623 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11624 (forward_target_decr_pc_after_break)
11625 (target_decr_pc_after_break): New.
11626 * target.c (forward_target_decr_pc_after_break)
11627 (target_decr_pc_after_break): New.
11628 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11629 instead of gdbarch_decr_pc_after_break.
11630 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11631 instead of gdbarch_decr_pc_after_break.
11632 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11633 instead of gdbarch_decr_pc_after_break.
11634 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11635 instead of gdbarch_decr_pc_after_break.
11636 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11637 instead of gdbarch_decr_pc_after_break.
11638 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11639 instead of gdbarch_decr_pc_after_break.
11640
11641 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11642
11643 * btrace.c: Include regcache.h.
11644 (btrace_add_pc): New.
11645 (btrace_enable): Call btrace_add_pc.
11646 (btrace_is_empty): New.
11647 * btrace.h (btrace_is_empty): New.
11648 * record-btrace.c (require_btrace, record_btrace_info): Call
11649 btrace_is_empty.
11650
11651 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11652
11653 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11654 Support delta reads.
11655 (linux_disable_btrace): Change return type.
11656 * common/linux-btrace.h (linux_read_btrace): Change parameters
11657 and return type to allow error reporting. Update users.
11658 (linux_disable_btrace): Change return type. Update users.
11659 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11660 New.
11661 (btrace_error): New.
11662 (btrace_block) <begin>: Comment on BEGIN == 0.
11663 * btrace.c (btrace_compute_ftrace): Start from the end of
11664 the current trace.
11665 (btrace_stitch_trace, btrace_clear_history): New.
11666 (btrace_fetch): Read delta trace, return if replaying.
11667 (btrace_clear): Move clear history code to btrace_clear_history.
11668 (parse_xml_btrace): Throw an error if parsing failed.
11669 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11670 and return type to allow error reporting.
11671 (target_read_btrace): Change parameters and return type to allow
11672 error reporting.
11673 * target.c (target_read_btrace): Update.
11674 * remote.c (remote_read_btrace): Support delta reads. Pass
11675 errors on.
11676 * NEWS: Announce it.
11677
11678 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11679
11680 * record.h (record_btrace_frame_unwind)
11681 (record_btrace_tailcall_frame_unwind): New declarations.
11682 * dwarf2-frame: Include record.h
11683 (dwarf2_frame_cfa): Throw an error for btrace frames.
11684 * record-btrace.c: Include hashtab.h.
11685 (btrace_get_bfun_name): New.
11686 (btrace_call_history): Call btrace_get_bfun_name.
11687 (struct btrace_frame_cache): New.
11688 (bfcache): New.
11689 (bfcache_hash, bfcache_eq, bfcache_new): New.
11690 (btrace_get_frame_function): New.
11691 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11692 (record_btrace_frame_this_id): Compute own id.
11693 (record_btrace_frame_prev_register): Provide PC, throw_error
11694 for all other registers.
11695 (record_btrace_frame_sniffer): Detect btrace frames.
11696 (record_btrace_tailcall_frame_sniffer): New.
11697 (record_btrace_frame_dealloc_cache): New.
11698 (record_btrace_frame_unwind): Add new functions.
11699 (record_btrace_tailcall_frame_unwind): New.
11700 (_initialize_record_btrace): Allocate cache.
11701 * btrace.c (btrace_clear): Call reinit_frame_cache.
11702 * NEWS: Announce it.
11703
11704 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11705
11706 * record-btrace.c (record_btrace_set_replay)
11707 (record_btrace_goto_begin, record_btrace_goto_end)
11708 (record_btrace_goto): New.
11709 (init_record_btrace_ops): Initialize them.
11710 * NEWS: Announce it.
11711
11712 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11713
11714 * record-btrace.c (record_btrace_find_new_threads)
11715 (record_btrace_thread_alive): New.
11716 (init_record_btrace_ops): Initialize to_find_new_threads and
11717 to_thread_alive.
11718
11719 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11720
11721 * record-btrace.c (record_btrace_resume): New.
11722 (record_btrace_wait): New.
11723 (init_record_btrace_ops): Initialize to_wait and to_resume.
11724
11725 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11726
11727 * record-btrace.c (record_btrace_xfer_partial)
11728 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11729 (record_btrace_allow_memory_access): New.
11730 (init_record_btrace_ops): Initialize new methods.
11731 * target.c (raw_memory_xfer_partial): Bail out if target reports
11732 that this memory is not available.
11733
11734 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11735
11736 * target.h (target_ops) <to_insert_breakpoint>
11737 <to_remove_breakpoint>: Add target_ops parameter.
11738 (forward_target_insert_breakpoint): New.
11739 (forward_target_remove_breakpoint): New.
11740 (memory_remove_breakpoint, memory_insert_breakpoint):
11741 Add target_ops parameter.
11742 * target.c (target_insert_breakpoint): Split into this and ...
11743 (forward_target_insert_breakpoint): ... this.
11744 (target_remove_breakpoint): Split into this and ...
11745 (forward_target_remove_breakpoint): ... this.
11746 (debug_to_insert_breakpoint): Add target_ops parameter.
11747 Call forward_target_insert_breakpoint.
11748 (debug_to_remove_breakpoint): Add target_ops parameter.
11749 Call forward_target_remove_breakpoint.
11750 (update_current_target): Do not inherit or default to_insert_breakpoint
11751 and to_remove_breakpoint.
11752 * corelow.c (ignore): Add target_ops parameter.
11753 * exec.c (ignore): Add target_ops parameter.
11754 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11755 Add target_ops parameter.
11756 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11757 Add target_ops parameter.
11758 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11759 Add target_ops parameter.
11760 * record-full.c (record_full_beneath_to_insert_breakpoint)
11761 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11762 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11763 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11764 (record_full_core_remove_breakpoint): Add target_ops parameter.
11765 Update users.
11766 (record_full_beneath_to_insert_breakpoint_ops)
11767 (record_full_beneath_to_remove_breakpoint_ops)
11768 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11769 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11770 tmp_to_remove_breakpoint_ops,
11771 record_full_beneath_to_insert_breakpoint_ops, and
11772 record_full_beneath_to_remove_breakpoint_ops.
11773 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11774 (m32r_remove_breakpoint): Add target_ops parameter.
11775 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11776 Add target_ops parameter.
11777 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11778 Add target_ops parameter.
11779
11780 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11781 Markus Metzger <markus.t.metzger@intel.com>
11782
11783 * record-btrace.c: Include frame-unwind.h.
11784 (record_btrace_frame_unwind_stop_reason)
11785 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11786 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11787 New.
11788 (init_record_btrace_ops): Install it.
11789
11790 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11791
11792 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11793 get_prev_frame_1.
11794
11795 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11796
11797 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11798 earlier.
11799
11800 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11801
11802 * frame-unwind.c: Include target.h.
11803 (frame_unwind_try_unwinder): New function with code from ...
11804 (frame_unwind_find_by_frame): ... here. New variable
11805 unwinder_from_target, call also target_get_unwinder)
11806 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11807 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11808 * target.h (struct target_ops): New fields to_get_unwinder and
11809 to_get_tailcall_unwinder.
11810 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11811
11812 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11813
11814 * record-btrace.c (record_btrace_fetch_registers)
11815 (record_btrace_store_registers)
11816 (record_btrace_to_prepare_to_store): New.
11817 (init_record_btrace_ops): Add the above.
11818
11819 2014-01-16 Tom Tromey <tromey@redhat.com>
11820
11821 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11822 * target.h (struct target_ops) <to_prepare_to_store>: Add
11823 argument.
11824 (target_prepare_to_store): Add argument.
11825 * target.c (debug_to_prepare_to_store): Add argument.
11826 (update_current_target): Update.
11827 * remote.c (remote_prepare_to_store): Add 'self' argument.
11828 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11829 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11830 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11831 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11832 argument.
11833 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11834 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11835 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11836 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11837 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11838
11839 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11840
11841 * btrace.h (replay) <replay>: New.
11842 (btrace_is_replaying): New.
11843 * btrace.c (btrace_clear): Free replay iterator.
11844 (btrace_is_replaying): New.
11845 * record-btrace.c (record_btrace_is_replaying): New.
11846 (record_btrace_info): Print insn number if replaying.
11847 (record_btrace_insn_history): Start at replay position.
11848 (record_btrace_call_history): Start at replay position.
11849 (init_record_btrace_ops): Init to_record_is_replaying.
11850
11851 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11852
11853 * record-btrace.c (record_btrace_insn_history_range): Include
11854 end.
11855 (record_btrace_insn_history_from): Adjust range.
11856 (record_btrace_call_history_range): Include
11857 end.
11858 (record_btrace_call_history_from): Adjust range.
11859 * NEWS: Announce changes.
11860
11861 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11862
11863 * record.h (enum record_print_flag)
11864 <record_print_indent_calls>: New.
11865 * record.c (get_call_history_modifiers): Recognize /c modifier.
11866 (_initialize_record): Document /c modifier.
11867 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11868 Reorder fields. Optionally indent the function name. Update
11869 all users.
11870 * NEWS: Announce changes.
11871
11872 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11873
11874 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11875
11876 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11877
11878 * btrace.c (ftrace_new_function): Start counting at one.
11879 * record-btrace.c (record_btrace_info): Adjust number of calls
11880 and insns.
11881 * NEWS: Announce it.
11882
11883 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11884
11885 * record-btrace.c (btrace_call_history_insn_range): Print
11886 insn range as [begin, end].
11887
11888 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11889
11890 * btrace.h (struct btrace_func_link): New.
11891 (enum btrace_function_flag): New.
11892 (struct btrace_inst): Rename to ...
11893 (struct btrace_insn): ...this. Update all users.
11894 (struct btrace_func) <ibegin, iend>: Remove.
11895 (struct btrace_func_link): New.
11896 (struct btrace_func): Rename to ...
11897 (struct btrace_function): ...this. Update all users.
11898 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11899 (number, level, flags>: New.
11900 (struct btrace_insn_iterator): Rename to ...
11901 (struct btrace_insn_history): ...this.
11902 Update all users.
11903 (struct btrace_insn_iterator, btrace_call_iterator): New.
11904 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11905 (struct btrace_target_info) <begin, end, level>
11906 <insn_history, call_history>: New.
11907 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11908 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11909 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11910 (btrace_call_number, btrace_call_begin, btrace_call_end)
11911 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11912 (btrace_find_function_by_number, btrace_set_insn_history)
11913 (btrace_set_call_history): New.
11914 * btrace.c (btrace_init_insn_iterator)
11915 (btrace_init_func_iterator, compute_itrace): Remove.
11916 (ftrace_print_function_name, ftrace_print_filename)
11917 (ftrace_skip_file): Change
11918 parameter to const.
11919 (ftrace_init_func): Remove.
11920 (ftrace_debug): Use new btrace_function fields.
11921 (ftrace_function_switched): Also consider gaining and
11922 losing symbol information).
11923 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11924 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11925 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11926 New.
11927 (ftrace_new_function): Move. Remove debug print.
11928 (ftrace_update_lines, ftrace_update_insns): New.
11929 (ftrace_update_function): Check for call, ret, and jump.
11930 (compute_ftrace): Renamed to ...
11931 (btrace_compute_ftrace): ...this. Rewritten to compute call
11932 stack.
11933 (btrace_fetch, btrace_clear): Updated.
11934 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11935 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11936 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11937 (btrace_call_number, btrace_call_begin, btrace_call_end)
11938 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11939 (btrace_find_function_by_number, btrace_set_insn_history)
11940 (btrace_set_call_history): New.
11941 * record-btrace.c (require_btrace): Use new btrace thread
11942 info fields.
11943 (record_btrace_info, btrace_insn_history)
11944 (record_btrace_insn_history, record_btrace_insn_history_range):
11945 Use new btrace thread info fields and new iterator.
11946 (btrace_func_history_src_line): Rename to ...
11947 (btrace_call_history_src_line): ...this. Use new btrace
11948 thread info fields.
11949 (btrace_func_history): Rename to ...
11950 (btrace_call_history): ...this. Use new btrace thread info
11951 fields and new iterator.
11952 (record_btrace_call_history, record_btrace_call_history_range):
11953 Use new btrace thread info fields and new iterator.
11954
11955 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11956
11957 * frame.h (frame_id_build_unavailable_stack_special): New.
11958 * frame.c (frame_id_build_unavailable_stack_special): New.
11959
11960 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11961
11962 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11963 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11964 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11965 to gdbarch.
11966 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11967 (i386_insn_is_jump, i386_jmp_p): New.
11968 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11969 insn_is_jump to gdbarch.
11970 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11971 * gdbarch.h: Regenerated.
11972 * gdbarch.c: Regenerated.
11973 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11974 (default_insn_is_jump): New.
11975 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11976 (default_insn_is_jump): New.
11977
11978 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11979
11980 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11981 Change to ...
11982 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11983 (btrace_read_type) <btrace_read_new>: Change to ...
11984 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11985
11986 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11987
11988 * common/linux-btrace.c (linux_read_btrace): Free trace from
11989 previous iteration.
11990
11991 2014-01-15 Doug Evans <dje@google.com>
11992
11993 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11994 uint32_t.
11995
11996 2014-01-15 Tom Tromey <tromey@redhat.com>
11997
11998 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11999 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12000 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12001 (set_objfile_main_name): New function.
12002 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12003 language_of_main>: New fields.
12004 (set_objfile_main_name): Declare.
12005 * symtab.c (find_main_name): Loop over objfiles to find the main
12006 name and language.
12007 (set_main_name): Now static.
12008 (get_main_info): Add comment.
12009 * symtab.h (set_main_name): Don't declare.
12010
12011 2014-01-15 Tom Tromey <tromey@redhat.com>
12012
12013 * symtab.c (main_progspace_key): New global.
12014 (struct main_info): New.
12015 (name_of_main, language_of_main): Remove.
12016 (get_main_info, main_info_cleanup): New function.
12017 (set_main_name, main_name, main_language): Use get_main_info.
12018 (_initialize_symtab): Initialize main_progspace_key.
12019
12020 2014-01-15 Tom Tromey <tromey@redhat.com>
12021
12022 * dbxread.c (process_one_symbol): Update.
12023 * dwarf2read.c (read_partial_die): Update.
12024 * symfile.c (set_initial_language): Call main_language.
12025 * symtab.c (language_of_main): Now static.
12026 (set_main_name): Add 'lang' parameter.
12027 (find_main_name): Update.
12028 (main_language): New function.
12029 (symtab_observer_executable_changed): Update.
12030 * symtab.h (set_main_name): Update.
12031 (language_of_main): Remove.
12032 (main_language): Declare.
12033
12034 2014-01-15 Tom Tromey <tromey@redhat.com>
12035
12036 * symfile.c (init_entry_point_info): Use new "initialized" field.
12037 Update.
12038 * objfiles.h (struct entry_point) <initialized>: New field.
12039 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12040 (struct objfile) <ei>: ...here. Remove.
12041 * objfiles.c (entry_point_address_query): Update.
12042
12043 2014-01-15 Tom Tromey <tromey@redhat.com>
12044
12045 * objfiles.c (entry_point_address_query): Relocate entry point
12046 address.
12047 (objfile_relocate1): Do not relocate entry point address.
12048 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12049 <the_bfd_section_index>: New field.
12050 * symfile.c (init_entry_point_info): Find the entry point's
12051 section.
12052
12053 2014-01-15 Tom Tromey <tromey@redhat.com>
12054
12055 * solib-frv.c (enable_break): Use entry_point_address_query.
12056
12057 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12058
12059 * NEWS: Add note on improved process record-replay on
12060 arm*-linux* targets.
12061
12062 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12063
12064 * arm-tdep.c (enum arm_record_result): New enum.
12065 (arm_record_unsupported_insn): New function.
12066 (arm_record_coproc_data_proc): Removed.
12067 (thumb2_record_ld_st_multiple): New function.
12068 (thumb2_record_ld_st_dual_ex_tbb): New function.
12069 (thumb2_record_data_proc_sreg_mimm): New function.
12070 (thumb2_record_ps_dest_generic): New function.
12071 (thumb2_record_branch_misc_cntrl): New function.
12072 (thumb2_record_str_single_data): New function.
12073 (thumb2_record_ld_mem_hints): New function.
12074 (thumb2_record_ld_word): New function.
12075 (thumb2_record_lmul_lmla_div): New function.
12076 (thumb2_record_decode_insn_handler): New function.
12077 (decode_insn): Add thumb32 instruction handlers.
12078
12079 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12080
12081 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12082 (struct arm_linux_record_tdep): Declare.
12083 (arm_canonicalize_syscall): New function.
12084 (arm_all_but_pc_registers_record): New function.
12085 (arm_linux_syscall_record): New function.
12086 (arm_linux_init_abi): Add syscall recording constructs.
12087 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12088 decoding. (arm_record_coproc_data_proc): Update arm syscall
12089 decoding.
12090 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12091 <arm_syscall_record>: New field.
12092 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12093 gdb_target_obs.
12094
12095 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12096
12097 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12098 register for push instruction recording.
12099
12100 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12101
12102 * arm-tdep.c (thumb_record_misc): Update to correct logical
12103 error while recording ldm, ldmia and pop instructions.
12104
12105 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12106
12107 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12108
12109 2014-01-15 Pedro Alves <palves@redhat.com>
12110
12111 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12112 (go32_resume, go32_fetch_registers, store_register)
12113 (go32_store_registers, go32_prepare_to_store)
12114 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12115 (go32_create_inferior, go32_can_run, go32_terminal_init)
12116 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12117 declarations.
12118
12119 2014-01-15 Tom Tromey <tromey@redhat.com>
12120
12121 * target.h (async_callback_ftype): New typedef.
12122 (struct target_ops) <to_async>: Use it.
12123
12124 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12125
12126 * python/py-value.c (get_field_type): Remove unnecessary curly
12127 braces for single-statement if block.
12128
12129 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12130
12131 * python/py-type.c (convert_field): Add missing empty line
12132 after declarations.
12133
12134 2014-01-14 Doug Evans <dje@google.com>
12135
12136 * symfile.h (expand_symtabs_matching): Renamed from
12137 expand_partial_symbol_names. Update prototype.
12138 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12139 * symfile.c (expand_symtabs_matching): Renamed from
12140 expand_partial_symbol_names. New args file_matcher, kind.
12141 Rename arg fun to symbol_matcher.
12142 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12143 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12144 ada_expand_partial_symbol_name.
12145 (ada_make_symbol_completion_list): Update to call
12146 expand_symtabs_matching.
12147 (ada_add_global_exceptions): Call expand_symtabs_matching.
12148 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12149 call map_symbol_filenames.
12150 * symtab.c (sources_info): Update to call map_symbol_filenames.
12151 (search_symbols): Call expand_symtabs_matching.
12152 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12153 (default_make_symbol_completion_list_break_on): Update to call
12154 expand_symtabs_matching.
12155 (make_source_files_completion_list): Update to call
12156 map_symbol_filenames.
12157
12158 2014-01-14 Doug Evans <dje@google.com>
12159
12160 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12161 (expand_symtabs_symbol_matcher_ftype): New typedef.
12162 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12163 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12164 * symfile.c (expand_partial_symbol_names): Update to use
12165 expand_symtabs_symbol_matcher_ftype.
12166 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12167 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12168 Arg name_matcher renamed to symbol_matcher.
12169 * psymtab.c (recursively_search_psymtabs): Update to use
12170 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12171 sym_matcher.
12172 (expand_symtabs_matching_via_partial): Update to use
12173 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12174 Arg name_matcher renamed to symbol_matcher.
12175
12176 2014-01-14 Doug Evans <dje@google.com>
12177
12178 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12179 (map_partial_symbol_filenames): Ditto.
12180 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12181 (map_partial_symbol_filenames): Ditto.
12182 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12183 (map_partial_symbol_filenames): Ditto.
12184 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12185 (map_partial_symbol_filenames): Ditto.
12186 * symtab.c: Delete #include "psymtab.h".
12187
12188 2014-01-14 Pedro Alves <palves@redhat.com>
12189 Tom Tromey <tromey@redhat.com>
12190
12191 * infrun.c (use_displaced_stepping): Use find_record_target
12192 instead of RECORD_IS_USED.
12193 (adjust_pc_after_break): Use record_full_is_used instead of
12194 RECORD_IS_USED.
12195 * record-btrace.c (record_btrace_open): Call record_preopen
12196 instead of checking RECORD_IS_USED.
12197 * record-full.c (record_full_shortname)
12198 (record_full_core_shortname): New globals.
12199 (record_full_is_used): New function.
12200 (find_full_open): Call record_preopen instead of checking
12201 RECORD_IS_USED.
12202 (init_record_full_ops): Set the target's shortname to
12203 record_full_shortname.
12204 (init_record_full_core_ops): Set the target's shortname to
12205 record_full_core_shortname.
12206 * record-full.h (record_full_is_used): Declare.
12207 * record.c (find_record_target): Make extern.
12208 (record_preopen): New function.
12209 * record.h (RECORD_IS_USED): Delete macro.
12210 (find_record_target, record_preopen): Declare functions.
12211
12212 2014-01-14 Yao Qi <yao@codesourcery.com>
12213
12214 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12215 'len''s type to ULONGEST.
12216 (core_xfer_shared_libraries_aix): Likewise.
12217 * gdbarch.c, gdbarch.h: Regenerated.
12218 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12219 Change type of 'len' to ULONGEST.
12220 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12221 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12222
12223 2014-01-14 Yao Qi <yao@codesourcery.com>
12224
12225 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12226 type of 'len' to ULONGEST.
12227 (linux_xfer_osdata_processgroups): Likewise.
12228 (linux_xfer_osdata_threads): Likewise.
12229 (linux_xfer_osdata_fds): Likewise.
12230 (linux_xfer_osdata_isockets): Likewise.
12231 (linux_xfer_osdata_shm): Likewise.
12232 (linux_xfer_osdata_sem): Likewise.
12233 (linux_xfer_osdata_msg): Likewise.
12234 (linux_common_xfer_osdata): Likewise.
12235 (struct osdata_type) <getter>: Likewise.
12236 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12237 the declaration.
12238
12239 2014-01-14 Yao Qi <yao@codesourcery.com>
12240
12241 * target.h (target_xfer_partial_ftype): Update.
12242 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12243 ULONGEST.
12244 * aix-thread.c (aix_thread_xfer_partial): Change type of
12245 argument 'len' to ULONGEST.
12246 * auxv.c (procfs_xfer_auxv): Likewise.
12247 (ld_so_xfer_auxv): Likewise.
12248 (memory_xfer_auxv): Likewise.
12249 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12250 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12251 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12252 * corelow.c (core_xfer_partial): Likewise.
12253 * ctf.c (ctf_xfer_partial): Likewise.
12254 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12255 '%u'.
12256 (darwin_read_dyld_info): Likewise.
12257 (darwin_xfer_partial): Likewise.
12258 * exec.c (section_table_xfer_memory_partial): Likewise.
12259 (exec_xfer_partial): Likewise.
12260 * exec.h (section_table_xfer_memory_partial): Update
12261 declaration.
12262 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12263 instead of plongest.
12264 (gnu_xfer_partial): Likewise.
12265 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12266 (ia64_hpux_xfer_solib_got): Likewise.
12267 (ia64_hpux_xfer_partial): Likewise.
12268 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12269 * inf-ptrace.c (inf_ptrace_xfer_partial):
12270 * inf-ttrace.c (inf_ttrace_xfer_partial):
12271 * linux-nat.c (linux_xfer_siginfo): Likewise.
12272 (linux_nat_xfer_partial): Likewise.
12273 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12274 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12275 * monitor.c (monitor_xfer_memory): Likewise.
12276 (monitor_xfer_partial): Likewise.
12277 * procfs.c (procfs_xfer_partial): Likewise.
12278 * record-full.c (record_full_xfer_partial): Likewise.
12279 (record_full_core_xfer_partial): Likewise.
12280 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12281 instead of plongest.
12282 (gdbsim_xfer_partial): Likewise.
12283 * remote.c (remote_xfer_partial): Likewise.
12284 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12285 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12286 declaration.
12287 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12288 (rs6000_xfer_shared_libraries): Likewise.
12289 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12290 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12291 (sparc_xfer_partial): Likewise.
12292 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12293 (spu_xfer_partial): Likewise.
12294 * spu-multiarch.c (spu_xfer_partial): Likewise.
12295 * target.c (target_read_live_memory): Likewise.
12296 (memory_xfer_live_readonly_partial): Likewise.
12297 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12298 (target_xfer_partial, default_xfer_partial): Likewise.
12299 (current_xfer_partial): Likewise.
12300 * tracepoint.c (tfile_xfer_partial): Likewise.
12301 * windows-nat.c (windows_xfer_memory): Likewise. Call
12302 pulongest instead of plongest.
12303 (windows_xfer_partial): Likewise.
12304 (windows_xfer_shared_libraries): Likewise.
12305
12306 2014-01-14 Yao Qi <yao@codesourcery.com>
12307
12308 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12309 target_xfer_partial_ftype.
12310
12311 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12312
12313 PR python/15464
12314 PR python/16113
12315 * valops.c (value_struct_elt_bitpos): New function
12316 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12317 object to 'None' if the field name is an empty string ("").
12318 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12319 attribute to look for a field when 'name' is 'None'.
12320 (get_field_type): New function
12321
12322 2014-01-13 Doug Evans <dje@google.com>
12323
12324 PR symtab/16426
12325 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12326 (try_open_dwop_file): Ditto.
12327 * gdb_bfd.c: #include "vec.h".
12328 (bfdp): New typedef.
12329 (struct gdb_bfd_data): New member included_bfds.
12330 (gdb_bfd_unref): Unref all included bfds.
12331 (gdb_bfd_record_inclusion): New function.
12332 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12333
12334 2014-01-13 Tom Tromey <tromey@redhat.com>
12335
12336 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12337
12338 2014-01-13 Tom Tromey <tromey@redhat.com>
12339
12340 * defs.h (use_windows): Remove.
12341 * gdb.c (main): Update.
12342 * main.c (captured_main, gdb_main): Update.
12343 * main.h (struct captured_main_args) <use_windows>: Remove.
12344 * top.c (use_windows): Remove.
12345
12346 2014-01-13 Tom Tromey <tromey@redhat.com>
12347
12348 * defs.h (deprecated_flush_hook): Remove.
12349
12350 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12351
12352 PR threads/16216
12353 * linux-thread-db.c (try_thread_db_load): Add parameter
12354 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12355 (try_thread_db_load_from_pdir_1): Move it there from here.
12356 (try_thread_db_load_from_sdir): Update caller.
12357 (try_thread_db_load_from_dir): Move it there from here.
12358
12359 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12360
12361 * regformats/regdat.sh: Always rewrite the register file.
12362
12363 2014-01-13 Pedro Alves <palves@redhat.com>
12364
12365 * Makefile.in (CHECK_HEADERS): New variable.
12366 (check-headers:): New rule.
12367
12368 2014-01-13 Tom Tromey <tromey@redhat.com>
12369
12370 * cli/cli-setshow.c (do_set_command): Update.
12371 * defs.h (deprecated_set_hook): Remove.
12372 * top.c (deprecated_set_hook): Remove.
12373
12374 2014-01-13 Pedro Alves <palves@redhat.com>
12375
12376 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12377 the tracepoint if the PC is a pseudo-register.
12378
12379 2014-01-13 Tom Tromey <tromey@redhat.com>
12380
12381 * defs.h (XCALLOC): Remove.
12382 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12383 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12384 * dwarf2loc.c (allocate_piece_closure): Likewise.
12385 * elfread.c (elf_symfile_segments): Likewise.
12386 (elf_symfile_segments): Likewise.
12387 * gdbtypes.c (copy_type_recursive): Likewise.
12388 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12389 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12390 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12391 XCALLOC.
12392 * mt-tdep.c (mt_gdbarch_init): Likewise.
12393 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12394 XCALLOC.
12395 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12396 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12397 * registry.c (registry_alloc_data): Likewise.
12398 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12399 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12400 * serial.c (serial_fdopen_ops): Likewise.
12401 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12402 XCALLOC.
12403 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12404 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12405 not XCALLOC.
12406
12407 2014-01-13 Tom Tromey <tromey@redhat.com>
12408
12409 * defs.h (XMALLOC): Remove.
12410 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12411 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12412 * cli-out.c (struct ui_out *): Likewise.
12413 * cli/cli-dump.c (add_dump_command): Likewise.
12414 (add_dump_command): Likewise.
12415 * complaints.c (get_complaints): Likewise.
12416 (find_complaint): Likewise.
12417 * dwarf2-frame.c (execute_cfa_program): Likewise.
12418 * dwarf2read.c (abbrev_table_read_table): Likewise.
12419 * gdbarch.sh: Likewise.
12420 * gdbarch.c: Rebuild.
12421 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12422 * interps.c (interp_new): Likewise.
12423 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12424 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12425 * mi/mi-console.c (mi_console_file_new): Likewise.
12426 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12427 * mi/mi-out.c (mi_out_new): Likewise.
12428 * mi/mi-parse.c (mi_parse): Likewise.
12429 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12430 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12431 * observer.c (xalloc_observer_list_node): Likewise.
12432 * regcache.c (regcache_xmalloc_1): Likewise.
12433 * reggroups.c (reggroup_new): Likewise.
12434 (_initialize_reggroup): Likewise.
12435 * registry.c (register_data_with_cleanup): Likewise.
12436 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12437 * ser-base.c (serial_ttystate): Likewise.
12438 * ser-mingw.c (make_pipe_state): Likewise.
12439 * ser-pipe.c (pipe_open): Likewise.
12440 * serial.c (serial_open): Likewise.
12441 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12442 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12443 (tui_alloc_win_info): Likewise.
12444 (tui_add_content_elements): Likewise.
12445 * tui/tui-file.c (tui_file_new): Likewise.
12446 * tui/tui-out.c (tui_out_new): Likewise.
12447 * ui-file.c (mem_file_new): Likewise.
12448 * ui-out.c (push_level): Likewise.
12449 (make_cleanup_ui_out_end): Likewise.
12450 (append_header_to_list): Likewise.
12451 (ui_out_new): Likewise.
12452 * user-regs.c (user_reg_add_builtin): Likewise.
12453
12454 2014-01-13 Tom Tromey <tromey@redhat.com>
12455
12456 * defs.h (XZALLOC): Remove.
12457 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12458 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12459 (get_ada_tasks_inferior_data): Likewise.
12460 * auto-load.c (get_auto_load_pspace_data): Likewise.
12461 * auxv.c (get_auxv_inferior_data): Likewise.
12462 * bfd-target.c (target_bfd_reopen): Likewise.
12463 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12464 (deprecated_insert_raw_breakpoint): Likewise.
12465 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12466 * corelow.c (core_open): Likewise.
12467 * darwin-nat.c (darwin_check_new_threads): Likewise.
12468 (darwin_attach_pid): Likewise.
12469 * dummy-frame.c (dummy_frame_push): Likewise.
12470 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12471 * dwarf2loc.c (allocate_piece_closure): Likewise.
12472 * elfread.c (elf_symfile_segments): Likewise.
12473 * eval.c (ptrmath_type_p): Likewise.
12474 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12475 * gdbtypes.c (alloc_type_arch): Likewise.
12476 (alloc_type_instance): Likewise.
12477 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12478 * inf-child.c (inf_child_can_use_agent): Likewise.
12479 * inflow.c (get_inflow_inferior_data): Likewise.
12480 * infrun.c (save_infcall_suspend_state): Likewise.
12481 * jit.c (jit_reader_load): Likewise.
12482 (get_jit_objfile_data): Likewise.
12483 (get_jit_program_space_data): Likewise.
12484 (jit_object_open_impl): Likewise.
12485 (jit_symtab_open_impl): Likewise.
12486 (jit_block_open_impl): Likewise.
12487 (jit_frame_sniffer): Likewise.
12488 * linux-fork.c (add_fork): Likewise.
12489 * maint.c (make_command_stats_cleanup): Likewise.
12490 * objfiles.c (get_objfile_pspace_data): Likewise.
12491 * opencl-lang.c (struct lval_closure): Likewise.
12492 * osdata.c (osdata_start_osdata): Likewise.
12493 * progspace.c (new_address_space): Likewise.
12494 (add_program_space): Likewise.
12495 * remote-sim.c (get_sim_inferior_data): Likewise.
12496 * sh-tdep.c (sh_gdbarch_init): Likewise.
12497 * skip.c (Ignore): Likewise.
12498 (skip_delete_command): Likewise.
12499 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12500 (library_list_start_library): Likewise.
12501 (solib_aix_current_sos): Likewise.
12502 * solib-darwin.c (get_darwin_info): Likewise.
12503 (darwin_current_sos): Likewise.
12504 * solib-dsbt.c (get_dsbt_info): Likewise.
12505 * solib-ia64-hpux.c (new_so_list): Likewise.
12506 (ia64_hpux_get_solib_linkage_addr): Likewise.
12507 * solib-spu.c (append_ocl_sos): Likewise.
12508 (spu_current_sos): Likewise.
12509 * solib-svr4.c (get_svr4_info): Likewise.
12510 (svr4_keep_data_in_core): Likewise.
12511 (library_list_start_library): Likewise.
12512 (svr4_default_sos): Likewise.
12513 (svr4_read_so_list): Likewise.
12514 * solib-target.c (library_list_start_library): Likewise.
12515 (solib_target_current_sos): Likewise.
12516 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12517 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12518 * symfile.c (default_symfile_segments): Likewise.
12519 * target-descriptions.c (tdesc_data_init): Likewise.
12520 (tdesc_create_reg): Likewise.
12521 (struct tdesc_type *): Likewise.
12522 (tdesc_create_vector): Likewise.
12523 (tdesc_set_struct_size): Likewise.
12524 (struct tdesc_type *): Likewise.
12525 (tdesc_free_feature): Likewise.
12526 (tdesc_create_feature): Likewise.
12527 * windows-nat.c (windows_add_thread): Likewise.
12528 (windows_make_so): Likewise.
12529 * xml-support.c (gdb_xml_body_text): Likewise.
12530 (gdb_xml_create_parser_and_cleanup): Likewise.
12531 (xml_process_xincludes): Likewise.
12532 * xml-syscall.c (allocate_syscalls_info): Likewise.
12533 (syscall_create_syscall_desc): Likewise.
12534
12535 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12536
12537 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12538 function, with code from i386_stap_parse_special_token.
12539 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12540 (i386_stap_parse_special_token): Move code to the two functions
12541 above; simplify it.
12542
12543 2014-01-09 Pedro Alves <palves@redhat.com>
12544 Hui Zhu <hui@codesourcery.com>
12545
12546 PR gdb/16101
12547 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12548 bp_err_string. Don't mark the location shlib_disabled if the
12549 error thrown wasn't a generic or memory error. Catch errors
12550 thrown while inserting breakpoints in overlayed code. Output
12551 error message of software breakpoints.
12552 * remote.c (remote_insert_breakpoint): If this breakpoint has
12553 target-side commands but this stub doesn't support Z0 packets,
12554 throw NOT_SUPPORTED_ERROR error.
12555 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12556 * target.h (target_insert_breakpoint): Extend comment.
12557 (target_insert_hw_breakpoint): Add comment.
12558
12559 2014-01-08 Pedro Alves <palves@redhat.com>
12560
12561 * remote.c (remote_add_thread): Add threads silently if starting
12562 up.
12563 (remote_notice_new_inferior): If in all-stop, and starting up,
12564 don't call notice_new_inferior.
12565 (get_current_thread): New function, factored out from ...
12566 (add_current_inferior_and_thread): ... this. Adjust.
12567 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12568 found any thread, then select the remote's current thread as GDB's
12569 current thread too.
12570
12571 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12572
12573 * NEWS: Create a new section for the next release branch.
12574 Rename the section of the current branch, now that it has
12575 been cut.
12576
12577 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12578
12579 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12580 * version.in: Bump version to 7.7.50.DATE-cvs.
12581
12582 2014-01-08 Yao Qi <yao@codesourcery.com>
12583
12584 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12585 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12586 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12587
12588 2014-01-08 Yao Qi <yao@codesourcery.com>
12589
12590 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12591 return value of bfd_get_filename to symbol_file_add_from_bfd.
12592
12593 2014-01-08 Pierre Muller <muller@sourceware.org>
12594
12595 Fix PR16201.
12596 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12597 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12598 to prim_record_mininal_symbol_and_info.
12599 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12600 in call to prim_record_minimal_symbol_and_info.
12601 (read_pe_exported_syms): Set index field of section_data.
12602
12603 2014-01-07 Andrew Pinski <apinski@cavium.com>
12604
12605 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12606 * features/aarch64.c: Regenerate.
12607
12608 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12609
12610 * target.c (return_null): Define.
12611 (update_current_target): Use it instead of return_zero for
12612 functions that return a pointer.
12613
12614 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12615
12616 * source.c (add_path): Fix check for duplicated paths in the previously
12617 included paths.
12618
12619 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12620
12621 * ada-lang.c: Remove duplicated include statements.
12622 * alphabsd-nat.c: Ditto.
12623 * amd64-darwin-tdep.c: Ditto.
12624 * amd64fbsd-nat.c: Ditto.
12625 * auto-load.c: Ditto.
12626 * ax-gdb.c: Ditto.
12627 * breakpoint.c: Ditto.
12628 * dbxread.c: Ditto.
12629 * fork-child.c: Ditto.
12630 * gdb_usleep.c: Ditto.
12631 * i386-darwin-tdep.c: Ditto.
12632 * i386fbsd-nat.c: Ditto.
12633 * infcmd.c: Ditto.
12634 * inferior.c: Ditto.
12635 * jv-lang.c: Ditto.
12636 * linux-nat.c: Ditto.
12637 * linux-tdep.c: Ditto.
12638 * m68kbsd-nat.c: Ditto.
12639 * m68klinux-nat.c: Ditto.
12640 * microblaze-tdep.c: Ditto.
12641 * mips-linux-tdep.c: Ditto.
12642 * mn10300-tdep.c: Ditto.
12643 * nto-tdep.c: Ditto.
12644 * opencl-lang.c: Ditto.
12645 * osdata.c: Ditto.
12646 * printcmd.c: Ditto.
12647 * regcache.c: Ditto.
12648 * remote-m32r-sdi.c: Ditto.
12649 * remote.c: Ditto.
12650 * symfile.c: Ditto.
12651 * symtab.c: Ditto.
12652 * tilegx-linux-nat.c: Ditto.
12653 * tilegx-tdep.c: Ditto.
12654 * tracepoint.c: Ditto.
12655 * valops.c: Ditto.
12656 * vaxbsd-nat.c: Ditto.
12657 * windows-nat.c: Ditto.
12658 * xtensa-tdep.c: Ditto.
12659
12660 2014-01-07 Yao Qi <yao@codesourcery.com>
12661
12662 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12663
12664 2014-01-07 Yao Qi <yao@codesourcery.com>
12665 Joel Brobecker <brobecker@adacore.com>
12666
12667 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12668 (pdc_write_regs): Likewise.
12669 (fetch_regs_kernel_thread): Likewise.
12670 (store_regs_kernel_thread): Likewise.
12671
12672 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12673
12674 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12675 tagged type objects to their actual type.
12676
12677 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12678
12679 * ada-valprint.c (print_field_values): Add "language" parameter.
12680 Update calls to print_field_values and print_variant_part.
12681 Pass new parameter "language" in call to val_print instead
12682 of "current_language". Replace call to ada_val_print by call
12683 to val_print.
12684 (print_variant_part): Add "language" parameter.
12685 (ada_val_print_struct_union): Update call to print_field_values.
12686
12687 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12688
12689 * ada-valprint.c (ui_memcpy): Delete.
12690 (ada_print_floating): Update documentation. Add empty line
12691 between between function documentation and implementation.
12692 Delete variable "buffer". Use ui_file_xstrdup in place of
12693 ui_file_put. Minor adjustments following this change.
12694
12695 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12696
12697 * ada-valprint.c (ada_val_print_string): New function,
12698 extracted from ada_val_print_array.
12699 (ada_val_print_array): Replace extracted code by call
12700 to ada_val_print_string followed by a return. Move
12701 "else" branch to the function's top block.
12702
12703 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12704
12705 * ada-valprint.c (ada_val_print_array): Move implementation
12706 down. Rename parameter "offset" and "val" into "offset_aligned"
12707 and "original_value" respectively. Add parameter "offset".
12708
12709 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12710
12711 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12712 re-organizing the code. Change the "???" message printed
12713 when target type is a TYPE_CODE_UNDEF into
12714 "<ref to undefined type>".
12715
12716 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12717
12718 * ada-valprint.c (print_record): Delete, implementation inlined...
12719 (ada_val_print_struct_union): ... here. Remove call to
12720 ada_check_typedef in inlined implementation.
12721
12722 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12723
12724 * ada-valprint.c (ada_val_print_gnat_array): New function,
12725 extracted from ada_val_print_1;
12726 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12727 (ada_val_print_flt, ada_val_print_struct_union)
12728 (ada_val_print_ref): Likewise.
12729 (ada_val_print_1): Delete variables i and elttype.
12730 Replace extracted-out code by call to corresponding
12731 new functions.
12732
12733 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12734
12735 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12736
12737 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12738
12739 * ada-valprint.c (ada_val_print_1): Replace calls to
12740 ada_val_print_1 by calls to val_print.
12741
12742 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12743
12744 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12745 Update calls to self accordingly. Replace calls to c_val_print
12746 by calls to val_print.
12747
12748 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12749
12750 * ada-valprint.c (print_record): Delete declaration.
12751 (adjust_type_signedness, ada_val_print_1): Likewise.
12752 (ada_val_print): Move function implementation down.
12753 (print_variant_part, print_field_values, print_record):
12754 Move function implementation up.
12755
12756 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12757
12758 * python/py-type.c (typy_get_name): New function.
12759 (type_object_getset): Add entry for attribute "name".
12760 * NEWS: Add entry mentioning this new attribute.
12761
12762 2014-01-07 Yao Qi <yao@codesourcery.com>
12763
12764 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12765 statement.
12766
12767 2014-01-07 Yao Qi <yao@codesourcery.com>
12768
12769 * gnu-nat.c (info_port_rights): Add qualifier const to
12770 argument args.
12771
12772 2014-01-07 Yao Qi <yao@codesourcery.com>
12773
12774 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12775
12776 2014-01-07 Yao Qi <yao@codesourcery.com>
12777
12778 * gnu-nat.c (make_inf) Update declaration.
12779 (make_inf): Make it static.
12780 (inf_set_traced): Likewise.
12781 (inf_port_to_thread, inf_task_died_status): Likewise.
12782
12783 2014-01-07 Yao Qi <yao@codesourcery.com>
12784
12785 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12786
12787 2014-01-07 Yao Qi <yao@codesourcery.com>
12788
12789 * gnu-nat.c (_initialize_gnu_nat): Declare.
12790
12791 2014-01-07 Yao Qi <yao@codesourcery.com>
12792
12793 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12794 'enum bfd_endian'.
12795 (struct gdbarch_info) <byte_order>: Change type to
12796 'enum bfd_endian'.
12797 <byte_order_for_code>: Likewise.
12798 * gdbarch.c, gdbarch.h: Regenerated.
12799
12800 2014-01-06 Sasha Smundak <asmundak@google.com>
12801
12802 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12803
12804 2014-01-06 Tom Tromey <tromey@redhat.com>
12805
12806 * doublest.c (convert_doublest_to_floatformat): Use const, not
12807 CONST.
12808 * somread.c (som_symtab_read): Likewise.
12809
12810 2014-01-07 Hui Zhu <hui@codesourcery.com>
12811
12812 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12813 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12814 (gdb_bfd_fopen): Ditto.
12815 (gdb_bfd_openr): Ditto.
12816 (gdb_bfd_openw): Ditto.
12817 (gdb_bfd_openr_iovec): Ditto.
12818 (gdb_bfd_fdopenr): Ditto.
12819 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12820 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12821 with xstrdup.
12822 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12823 with xstrdup.
12824 * symfile-mem.c (symbol_file_add_from_memory): Removed
12825 gdb_bfd_stash_filename.
12826
12827 2014-01-03 Doug Evans <dje@google.com>
12828
12829 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12830 output.
12831
12832 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12833
12834 Update year range in copyright notice of all files.
12835
12836 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12837
12838 * top.c (print_gdb_version): Set copyright year to 2014.
12839
12840 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12841
12842 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12843
12844 For older changes see ChangeLog-2013.
12845 \f
12846 Local Variables:
12847 mode: change-log
12848 left-margin: 8
12849 fill-column: 74
12850 version-control: never
12851 coding: utf-8
12852 End:
This page took 0.460287 seconds and 5 git commands to generate.