Implement support for recording VFP data processing instructions
[deliverable/binutils-gdb.git] / gdb / ChangeLog
... / ...
CommitLineData
12014-08-13 Omair Javaid <omair.javaid@linaro.org>
2
3 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
4 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
5 processing instructions.
6
72014-08-13 Omair Javaid <omair.javaid@linaro.org>
8
9 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
10 for advance SIMD struct ld/st insn.
11 (thumb2_record_decode_insn_handler): Replace stub handler with
12 thumb2_record_asimd_struct_ld_st.
13
142014-08-13 Omair Javaid <omair.javaid@linaro.org>
15
16 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
17 for asimd, vfp and coprocessor insns.
18 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
19 and coprocessor insns.
20 (thumb2_record_coproc_insn): New function.
21 (thumb2_record_decode_insn_handler): Update coprocessor insns record
22 handlers.
23 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
24 opcode 110 insns.
25
262014-09-13 Doug Evans <xdje42@gmail.com>
27
28 * NEWS: Mention new "queue-signal" command.
29 * infcmd.c (queue_signal_command): New function.
30 (_initialize_infcmd): Add new queue-signal command.
31
322014-09-13 Doug Evans <xdje42@gmail.com>
33
34 * linux-nat.c (wait_lwp): Add debugging printf.
35 (linux_nat_wait_1): Ditto.
36
372014-09-12 Pedro Alves <palves@redhat.com>
38
39 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
40 (create_and_insert_solib_event_breakpoint): New functions.
41 * breakpoint.h (create_and_insert_solib_event_breakpoint)
42 (remove_solib_event_breakpoints_at_next_stop): New declarations.
43 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
44 (remove_dbx_link_breakpoint): Delete function.
45 (insert_dbx_link_bpt_in_file): Use
46 create_and_insert_solib_event_breakpoint instead of
47 deprecated_insert_raw_breakpoint.
48 (procfs_wait): Don't check whether we hit __dbx_link here.
49 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
50 here.
51 * solib-irix.c (base_breakpoint): Delete global.
52 (disable_break): Delete function.
53 (enable_break): Use create_solib_event_breakpoint
54 instead of deprecated_insert_raw_breakpoint.
55 (irix_solib_handle_event): New function.
56 (irix_solib_create_inferior_hook): Don't run the target or disable
57 the mapping-complete breakpoint here.
58 (_initialize_irix_solib): Install irix_solib_handle_event as
59 so_ops->handle_event hook.
60
612014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
62 Ulrich Weigand  <uweigand@de.ibm.com>
63
64 PR tdep/17379
65 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
66 instead of read_memory_unsigned_integer.
67
682014-09-12 Gary Benson <gbenson@redhat.com>
69
70 * nat/linux-waitpid.c: Include common-defs.h.
71 [GDBSERVER]: Add FIXME comment.
72 [!GDBSERVER]: Don't include defs.h or signal.h.
73 (linux_debug) [!GDBSERVER]: Remove empty block.
74
752014-09-12 Gary Benson <gbenson@redhat.com>
76
77 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
78 Don't include defs.h or server.h.
79
802014-09-12 Gary Benson <gbenson@redhat.com>
81
82 * nat/linux-btrace.c: Include common-defs.h.
83 Don't include defs.h, server.h or gdbthread.h.
84 * nat/linux-btrace.h (struct target_ops): New forward declaration.
85
862014-09-12 Gary Benson <gbenson@redhat.com>
87
88 * common/agent.c: Include common-defs.h.
89 Don't include defs.h or server.h.
90 * common/buffer.c: Likewise.
91 * common/common-debug.c: Likewise.
92 * common/common-utils.c: Likewise.
93 * common/errors.c: Likewise.
94 * common/filestuff.c: Likewise.
95 * common/format.c: Likewise.
96 * common/gdb_vecs.c: Likewise.
97 * common/print-utils.c: Likewise.
98 * common/ptid.c: Likewise.
99 * common/rsp-low.c: Likewise.
100 * common/signals.c: Likewise.
101 * common/vec.c: Likewise.
102 * common/xml-utils.c: Likewise.
103 * nat/linux-osdata.c: Likewise.
104 * nat/linux-procfs.c: Likewise.
105 * nat/linux-ptrace.c: Likewise.
106 * nat/mips-linux-watch.c: Likewise.
107 * target/waitstatus.c: Likewise.
108
1092014-09-12 Tom Tromey <tromey@redhat.com>
110 Gary Benson <gbenson@redhat.com>
111
112 * common/common-regcache.h: New file.
113 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
114 * regcache.h: Include common-regcache.h.
115 (regcache_read_pc): Don't declare.
116 * regcache.c (get_thread_regcache_for_ptid): New function.
117 * nat/linux-btrace.c: Don't include regcache.h.
118 Include common-regcache.h.
119 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
120
1212014-09-11 Thomas Schwinge <thomas@codesourcery.com>
122
123 * regcache.h (struct regset): Declare.
124
1252014-09-11 Pedro Alves <palves@redhat.com>
126
127 PR gdb/17347
128 * main.c: Include "infrun.h".
129 (catch_command_errors, catch_command_errors_const): Wait for the
130 foreground command to complete.
131 * top.c (maybe_wait_sync_command_done): New function, factored out
132 from ...
133 (maybe_wait_sync_command_done): ... here.
134 * top.h (maybe_wait_sync_command_done): New declaration.
135
1362014-09-11 Tom Tromey <tromey@redhat.com>
137 Gary Benson <gbenson@redhat.com>
138
139 * common/symbol.h: New file.
140 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
141 * minsyms.c (find_minimal_symbol_address): New function.
142 * common/agent.c: Include common/symbol.h.
143 [!GDBSERVER]: Don't include objfiles.h.
144 (agent_look_up_symbols): Use find_minimal_symbol_address.
145
1462014-09-11 Gary Benson <gbenson@redhat.com>
147
148 * target/target.h (target_stop_ptid, target_continue_ptid):
149 Declare.
150 * target.c (target_stop_ptid, target_continue_ptid): New
151 functions.
152 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
153 (agent_run_command): Always use target_stop_ptid and
154 target_continue_ptid.
155
1562014-09-11 Tom Tromey <tromey@redhat.com>
157 Gary Benson <gbenson@redhat.com>
158
159 * target/target.h: New file.
160 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
161 * target.h: Include target/target.h.
162 (target_read_memory, target_write_memory): Don't declare.
163 * target.c (target_read_uint32): New function.
164 * common/agent.c: Include target/target.h.
165 [!GDBSERVER]: Don't include target.h.
166 (helper_thread_id): Type changed to uint32_t.
167 (agent_get_helper_thread_id): Use target_read_uint32.
168 (agent_run_command): Always use target_read_memory and
169 target_write_memory.
170 (agent_capability): Type changed to uint32_t.
171 (agent_capability_check): Use target_read_uint32.
172
1732014-09-11 Gary Benson <gbenson@redhat.com>
174
175 * common/common-debug.h (show_debug_regs): Declare.
176 * common/common-debug.c (show_debug_regs): Define.
177 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
178 all uses with show_debug_regs. Replace all uses that considered
179 debug_hw_points as a multi-value integer with straight boolean
180 uses.
181 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
182 with show_debug_regs.
183 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
184 all uses with show_debug_regs.
185 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
186 uses with show_debug_regs.
187
1882014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
189
190 * findvar.c (address_from_register): Handle targets requiring
191 a special conversion routine even for plain pointer types.
192
1932014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
194
195 * rs6000-nat.c (exec_one_dummy_insn): Remove.
196 (store_register): Do not call exec_one_dummy_insn.
197
1982014-09-10 Joel Brobecker <brobecker@adacore.com>
199
200 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
201 dereference it first. Use value_enclosing_type instead of
202 value_type.
203 (ada_array_length): Likewise.
204
2052014-09-10 Joel Brobecker <brobecker@adacore.com>
206
207 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
208 Adjust function implementation and documentation accordingly.
209 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
210 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
211 Update call to ada_value_ptr_subscript.
212
2132014-09-10 Joel Brobecker <brobecker@adacore.com>
214
215 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
216 instead of VAL's type.
217
2182014-09-10 Joel Brobecker <brobecker@adacore.com>
219
220 * amd64-linux-nat.c: Add <sys/uio.h> #include.
221
2222014-09-09 Doug Evans <xdje42@gmail.com>
223
224 PR guile/17367
225 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
226 last parameter to pkg-config, not first.
227 * configure.ac: Pass --with-guile provided pkg-config path to
228 GDB_GUILE_PROGRAM_NAMES.
229 * configure: Regenerate.
230
2312014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
232
233 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
234 Bertazi".
235
2362014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
237
238 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
239 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
240 the list of sections determining GDB_OSABI_IRIX.
241
2422014-09-09 James Hogan <james.hogan@imgtec.com>
243
244 * MAINTAINERS (Write After Approval): Add "James Hogan".
245
2462014-09-09 James Hogan <james.hogan@imgtec.com>
247
248 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
249
2502014-09-09 Joel Brobecker <brobecker@adacore.com>
251
252 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
253
2542014-09-08 Doug Evans <xdje42@gmail.com>
255
256 PR 17247
257 * guile.c: #include <signal.h>.
258 (_initialize_guile): Block SIGCHLD while initializing Guile.
259
260 Replaces the following, which is reverted.
261
262 2014-07-26 Doug Evans <xdje42@gmail.com>
263
264 PR 17185
265 * configure.ac: Add check for header gc/gc.h.
266 Add check for function setenv.
267 * configure: Regenerate.
268 * config.in: Regenerate.
269 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
270
2712014-09-08 Doug Evans <xdje42@gmail.com>
272
273 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
274 with named constant. Fix style of pointer comparison.
275 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
276
2772014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
278
279 PR gdb/17035
280 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
281 decide whether we display the command on "show user".
282 * cli/cli-script.c (show_user_1): Only verify cmdlines after
283 printing command name.
284 * cli/cli-decode.h (cli_user_command_p): Declare new function.
285 * cli/cli-decode.c (cli_user_command_p): Create helper function
286 to verify whether cmd_list_element is a user-defined command.
287
2882014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
289
290 PR python/17355
291 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
292 Fix goto out of TRY_CATCH.
293
2942014-09-06 Doug Evans <xdje42@gmail.com>
295 Tom Tromey <tromey@redhat.com>
296
297 PR 15276
298 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
299 $_any_caller_matches.
300 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
301 * python/lib/gdb/function/caller_is.py: New file.
302
3032014-09-06 Doug Evans <xdje42@gmail.com>
304
305 * infcmd.c (program_info): Fix typo.
306
3072014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
308
309 PR gdb/17235
310 * stap-probe.c (stap_parse_single_operand): Delete unused variable
311 'number'. New variable 'has_digit'. Rewrite code to deal with
312 subexpressions on SDT probes.
313
3142014-09-04 Pedro Alves <palves@redhat.com>
315
316 * c-exp.y (parse_number): Skip handling base-switching prefixes if
317 the input is only one character long.
318
3192014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
320
321 PR fortran/17237
322 * f-valprint.c (f_val_print): Specify the correct print option to
323 use when printing integer values.
324
3252014-09-04 Gary Benson <gbenson@redhat.com>
326
327 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
328 Remove code to cope with LWPs wrapped as PIDs.
329 Add assertions to ensure no wrapped LWPs are passed.
330
3312014-09-04 Pedro Alves <palves@redhat.com>
332
333 * value.c (value_ranges_copy_adjusted): New function, factored out
334 from ...
335 (value_contents_copy_raw): ... here.
336 (unpack_value_bits_as_long_1): Rename back to ...
337 (unpack_bits_as_long): ... this. Remove 'original_value' and
338 'result' parameters. Change return type to LONGEST.
339 (unpack_value_bits_as_long): Delete.
340 (unpack_value_field_as_long_1): Delete.
341 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
342 (unpack_value_bitfield): New function.
343 (value_field_bitfield): Reimplement using unpack_value_bitfield.
344 (value_fetch_lazy): Use unpack_value_bitfield.
345 * value.h (unpack_value_bits_as_long): Delete declaration.
346
3472014-09-03 Sasha Smundak <asmundak@google.com>
348
349 * python/py-frame.c (frapy_read_register): New function.
350
3512014-09-03 James Hogan <james.hogan@imgtec.com>
352
353 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
354 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
355
3562014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
357
358 PR python/16699
359 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
360 function.
361 (add_cmd): Set "completer_handle_brkchars" to NULL.
362 * cli/cli-decode.h (struct cmd_list_element)
363 <completer_handle_brkchars>: New field.
364 * command.h (completer_ftype_void): New typedef.
365 (set_cmd_completer_handle_brkchars): New prototype.
366 * completer.c (set_gdb_completion_word_break_characters): New
367 function.
368 (complete_line_internal): Call "completer_handle_brkchars"
369 callback from command.
370 * completer.h: Include "command.h".
371 (set_gdb_completion_word_break_characters): New prototype.
372 * python/py-cmd.c (cmdpy_completer_helper): New function.
373 (cmdpy_completer_handle_brkchars): New function.
374 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
375 (cmdpy_init): Set completer_handle_brkchars to
376 cmdpy_completer_handle_brkchars.
377
3782014-09-03 Gary Benson <gbenson@redhat.com>
379
380 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
381 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
382 Loop conditions changed to equivalent form.
383 (struct x86_debug_reg_state): Updated dr_ref_count comment.
384 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
385 ALL_DEBUG_ADDRESS_REGISTERS.
386
3872014-09-03 Joel Brobecker <brobecker@adacore.com>
388
389 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
390 description fix.
391
3922014-09-02 Doug Evans <dje@google.com>
393
394 * typeprint.c (find_global_typedef): Fix comment.
395
3962014-09-02 Gary Benson <gbenson@redhat.com>
397
398 * i386-nat.h: Renamed as...
399 * x86-nat.h: New file. All type, function and variable name
400 prefixes changed from "i386_" to "x86_". All references updated.
401 * i386-nat.c: Renamed as...
402 * x86-nat.c: New file. All type, function and variable name
403 prefixes changed from "i386_" to "x86_". All references updated.
404 * common/i386-xstate.h: Renamed as...
405 * common/x86-xstate.h: New file. All type, function and variable
406 name prefixes changed from "i386_" to "x86_". All references
407 updated.
408 * nat/i386-cpuid.h: Renamed as...
409 * nat/x86-cpuid.h: New file. All type, function and variable name
410 prefixes changed from "i386_" to "x86_". All references updated.
411 * nat/i386-gcc-cpuid.h: Renamed as...
412 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
413 name prefixes changed from "i386_" to "x86_". All references
414 updated.
415 * nat/i386-dregs.h: Renamed as...
416 * nat/x86-dregs.h: New file. All type, function and variable name
417 prefixes changed from "i386_" to "x86_". All references updated.
418 * nat/i386-dregs.c: Renamed as...
419 * nat/x86-dregs.c: New file. All type, function and variable name
420 prefixes changed from "i386_" to "x86_". All references updated.
421
4222014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
423
424 * varobj.c (_initialize_varobj): Move to the end of file.
425
4262014-08-29 Gary Benson <gbenson@redhat.com>
427
428 * common/common-exceptions.h: New file.
429 * common/common-exceptions.c: Likewise.
430 * Makefile.in (SFILES): Add common/common-exceptions.c.
431 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
432 (COMMON_OBS): Add common-exceptions.o.
433 (common-exceptions.o): New rule.
434 * exceptions.h (common-exceptions.h): Include.
435 (gdb_setjmp.h): Do not include.
436 (return_reason): Moved to common-exceptions.h.
437 (enum return_reason): Likewise.
438 (RETURN_MASK): Likewise.
439 (typedef return_mask): Likewise.
440 (enum errors): Likewise.
441 (struct gdb_exception): Likewise.
442 (exceptions_state_mc_init): Likewise.
443 (exceptions_state_mc_action_iter): Likewise.
444 (exceptions_state_mc_action_iter_1): Likewise.
445 (TRY_CATCH): Likewise.
446 (throw_exception): Likewise.
447 (throw_verror): Likewise.
448 (throw_vquit): Likewise.
449 (throw_error): Likewise.
450 (throw_quit): Likewise.
451 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
452 (enum catcher_action): Likewise.
453 (struct catcher): Likewise.
454 (current_catcher): Likewise.
455 (catcher_list_size): Likewise.
456 (exceptions_state_mc_init): Likewise.
457 (catcher_pop): Likewise.
458 (exceptions_state_mc): Likewise.
459 (exceptions_state_mc_action_iter): Likewise.
460 (exceptions_state_mc_action_iter_1): Likewise.
461 (throw_exception): Likewise.
462 (exception_messages): Likewise.
463 (exception_messages_size): Likewise.
464 (throw_it): Likewise.
465 (throw_verror): Likewise.
466 (throw_vquit): Likewise.
467 (throw_error): Likewise.
468 (throw_quit): Likewise.
469 (prepare_to_throw_exception): New function.
470
4712014-08-29 Gary Benson <gbenson@redhat.com>
472
473 * common/gdb_setjmp.h: New file.
474 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
475 * configure.ac: Move sigsetjmp check...
476 * common/common.m4: ...here.
477 * configure: Regenerate.
478 * cp-support.c (SIGJMP_BUF): Delete.
479 (SIGSETJMP): Likewise.
480 (SIGLONGJMP): Likewise.
481 * exceptions.h (gdb_setjmp.h): Include.
482 (setjmp.h): Do not include.
483 (EXCEPTIONS_SIGJMP_BUF): Delete.
484 (EXCEPTIONS_SIGSETJMP): Likewise.
485 (EXCEPTIONS_SIGLONGJMP): Likewise.
486 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
487 from gdb_setjmp.h.
488 * exceptions.c: Likewise.
489
4902014-08-29 Gary Benson <gbenson@redhat.com>
491
492 * cleanups.h: Moved to...
493 * common/cleanups.h: New file.
494 * cleanups.c: Moved to...
495 * common/cleanups.c: New file. Include common-defs.h and
496 cleanups.h. Do not include defs.h.
497 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
498 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
499 (cleanups.o): New rule.
500
5012014-08-29 Gary Benson <gbenson@redhat.com>
502
503 * common/errors.h (internal_warning): New declaration.
504 (internal_vwarning): Likewise.
505 * common/errors.c (internal_warning): New function.
506 * utils.h (internal_warning): Don't declare.
507 (internal_vwarning): Likewise.
508 * utils.c (internal_warning): Removed.
509
5102014-08-29 Gary Benson <gbenson@redhat.com>
511
512 * main.c (captured_main): Use warning during startup.
513 Prefix startup warning messages with command name.
514
5152014-08-29 Gary Benson <gbenson@redhat.com>
516
517 * main.c (captured_main): Handle usage errors with error.
518
5192014-08-29 Gary Benson <gbenson@redhat.com>
520
521 * go32-nat.c (go32_create_inferior): Replace a fprintf/
522 exit pair with a call to error. Wrap the message with _().
523
5242014-08-29 Gary Benson <gbenson@redhat.com>
525
526 * main.c (captured_main): Replace a fprintf/exit
527 pair with a call to error. Wrap the message with _().
528
5292014-08-29 Gary Benson <gbenson@redhat.com>
530
531 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
532 pairs with calls to error. Wrap the message with _().
533
5342014-08-29 Gary Benson <gbenson@redhat.com>
535
536 * utils.c (vwarning): Protect calls to target_terminal_ours
537 and wrap_here.
538
5392014-08-29 Gary Benson <gbenson@redhat.com>
540
541 * exceptions.c (print_flush): Protect calls to
542 target_terminal_ours and wrap_here.
543
5442014-08-29 Gary Benson <gbenson@redhat.com>
545
546 * utils.h (filtered_printing_initialized): New declaration.
547 * utils.c (abort_with_message): New function.
548 (internal_vproblem): Use abort_with_message for first level
549 recursive internal problems, and if gdb_stderr is not set up.
550 Protect calls to target_terminal_ours, begin_line and query.
551
5522014-08-28 Doug Evans <dje@google.com>
553
554 * symtab.c (in_prologue): Move definition to better spot.
555 (skip_prologue_using_sal): Ditto.
556
5572014-08-28 Doug Evans <dje@google.com>
558
559 * symtab.c (find_function_start_sal): Move definition to better spot.
560
5612014-08-28 Yao Qi <yao@codesourcery.com>
562
563 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
564 found_stack_adjust in forward scan. Remove condition check
565 on found_stack_adjust which is always true. Indent the code.
566
5672014-08-28 Yao Qi <yao@codesourcery.com>
568
569 * dwarf2read.c (dwarf_decode_lines): Update declaration.
570 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
571 (dwarf_decode_lines): Remove argument
572 want_line_info. Remove condition check on want_line_info.
573 Callers update.
574
5752014-08-27 Doug Evans <dje@google.com>
576
577 * dwarf2read.c (dwarf_record_line): Fix typo.
578
5792014-08-27 Patrick Palka <patrick@parcs.ath.cx>
580
581 * target.h (struct target_ops::to_terminal_save_ours): Remove
582 declaration.
583 (target_terminal_save_ours): Remove macro.
584 * target-delegates.c: Regenerate.
585 * inf-child.c (inf_child_target): Don't set the nonexistent
586 field to_terminal_save_ours.
587 * inferior.h (child_terminal_save_ours): Remove declaration.
588 * terminal.h (gdb_save_tty_state): New declaration.
589 * inflow.c (child_terminal_save_ours): Rename to ...
590 (gdb_save_tty_state): ... this.
591 * tui/tui.c: Include terminal.h.
592 (tui_enable): Use gdb_save_tty_state instead of
593 target_terminal_save_ours.
594 (tui_disable): Likewise.
595
5962014-08-25 Doug Evans <dje@google.com>
597
598 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
599 Pass NULL instead of 0 for context pointer.
600
6012014-08-25 Yao Qi <yao@codesourcery.com>
602
603 * dwarf2read.c: Fix grammatical error.
604
6052014-08-24 Yao Qi <yao@codesourcery.com>
606
607 * dwarf2read.c (scan_partial_symbols): Update comments.
608 Rename argument 'need_pc' with 'set_addrmap'.
609 (add_partial_namespace): Rename argument 'need_pc' with
610 'set_addrmap'.
611 (add_partial_module): Likewise.
612 (add_partial_subprogram): Likewise. Update comments.
613 (dwarf2_name): Fix typo.
614
6152014-08-22 Doug Evans <dje@google.com>
616
617 PR 17276
618 * dwarf2read.c (dwarf_record_line_p): New function.
619 (dwarf_decode_lines_1): Ignore subsequent line number entries
620 for the same line if any entry had a non-zero discriminator.
621
6222014-08-22 Doug Evans <dje@google.com>
623
624 * buildsym.h (record_line_ftype): New typedef.
625 (record_line): Use it.
626 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
627 (dwarf_decode_lines_1): Call them.
628
6292014-08-22 Yao Qi <yao@codesourcery.com>
630
631 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
632 (ctf_end): Remove code.
633
6342014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
635
636 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
637 (linux_make_corefile_notes): call update_thread_list, protected against
638 exceptions.
639
6402014-08-21 Pedro Alves <palves@redhat.com>
641
642 * infcmd.c (attach_command): Remove comment.
643
6442014-08-21 Bin Cheng <bin.cheng@arm.com>
645
646 * aarch64-linux-nat.c (dr_changed_t): Change the type from
647 unsigned LONGEST to ULONGEST.
648
6492014-08-20 Pedro Alves <palves@redhat.com>
650
651 * Makefile.in (check-read1): New rule.
652
6532014-08-20 Joel Brobecker <brobecker@adacore.com>
654
655 * value.c (value_from_contents_and_address): Strip resolved_type's
656 typedef layers before checking its TYPE_DATA_LOCATION.
657
6582014-08-20 Pedro Alves <palves@redhat.com>
659
660 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
661
6622014-08-20 Yao Qi <yao@codesourcery.com>
663
664 * amd64-tdep.c (amd64_classify): Add a blank line after the
665 example. Move "*/" to a new line.
666 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
667 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
668 * dwarf2read.c (psymtab_include_file_name): Likewise.
669
6702014-08-19 Andrew Burgess <aburgess@broadcom.com>
671 Pedro Alves <palves@redhat.com>
672
673 PR symtab/14604
674 PR symtab/14605
675 * ada-lang.c (coerce_unspec_val_to_type): Use
676 value_contents_copy_raw.
677 * ada-valprint.c (val_print_packed_array_elements): Adjust.
678 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
679 * cp-valprint.c (cp_print_value_fields): Let the common printing
680 code handle optimized out values.
681 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
682 * d-valprint.c (dynamic_array_type): Use
683 value_bits_any_optimized_out.
684 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
685 check_any_valid fields.
686 (check_pieced_value_bits): Delete and inline ...
687 (check_pieced_synthetic_pointer): ... here.
688 (check_pieced_value_validity): Delete.
689 (check_pieced_value_invalid): Delete.
690 (pieced_value_funcs): Remove check_validity and check_any_valid
691 fields.
692 (read_pieced_value): Use mark_value_bits_optimized_out.
693 (write_pieced_value): Switch to use
694 mark_value_bytes_optimized_out.
695 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
696 of assuming the whole value is optimized out.
697 * findvar.c (read_frame_register_value): Remove special handling
698 of optimized out registers.
699 (value_from_register): Use mark_value_bytes_optimized_out.
700 * frame-unwind.c (frame_unwind_got_optimized): Use
701 mark_value_bytes_optimized_out.
702 * jv-valprint.c (java_value_print): Adjust.
703 (java_print_value_fields): Let the common printing code handle
704 optimized out values.
705 * mips-tdep.c (mips_print_register): Remove special handling of
706 optimized out registers.
707 * opencl-lang.c (lval_func_check_validity): Delete.
708 (lval_func_check_any_valid): Delete.
709 (opencl_value_funcs): Remove check_validity and check_any_valid
710 fields.
711 * p-valprint.c (pascal_object_print_value_fields): Let the common
712 printing code handle optimized out values.
713 * stack.c (read_frame_arg): Remove special handling of optimized
714 out values. Fetch both VAL and ENTRYVAL before comparing
715 contents. Adjust to value_available_contents_eq rename.
716 * valprint.c (valprint_check_validity)
717 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
718 (val_print_array_elements): Adjust.
719 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
720 (value_bits_any_optimized_out): New function.
721 (value_entirely_covered_by_range_vector): New function, factored
722 out from value_entirely_unavailable.
723 (value_entirely_unavailable): Reimplement.
724 (value_entirely_optimized_out): New function.
725 (insert_into_bit_range_vector): New function, factored out from
726 mark_value_bits_unavailable.
727 (mark_value_bits_unavailable): Reimplement.
728 (struct ranges_and_idx): New struct.
729 (find_first_range_overlap_and_match): New function, factored out
730 from value_available_contents_bits_eq.
731 (value_available_contents_bits_eq): Rename to ...
732 (value_contents_bits_eq): ... this. Check both unavailable
733 contents and optimized out contents.
734 (value_available_contents_eq): Rename to ...
735 (value_contents_eq): ... this.
736 (allocate_value_lazy): Remove reference to the old optimized_out
737 boolean.
738 (allocate_optimized_out_value): Use
739 mark_value_bytes_optimized_out.
740 (require_not_optimized_out): Adjust to check whether the
741 optimized_out vec is empty.
742 (ranges_copy_adjusted): New function, factored out from
743 value_contents_copy_raw.
744 (value_contents_copy_raw): Also copy the optimized out ranges.
745 Assert the destination ranges aren't optimized out.
746 (value_contents_copy): Update comment, remove call to
747 require_not_optimized_out.
748 (value_contents_equal): Adjust to check whether the optimized_out
749 vec is empty.
750 (set_value_optimized_out, value_optimized_out_const): Delete.
751 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
752 New functions.
753 (value_entirely_optimized_out, value_bits_valid): Delete.
754 (value_copy): Take a VEC copy of the 'optimized_out' field.
755 (value_primitive_field): Remove special handling of optimized out.
756 (value_fetch_lazy): Assert that lazy values have no unavailable
757 regions. Use value_bits_any_optimized_out. Remove some special
758 handling for optimized out values.
759 * value.h: Add intro comment about <optimized out> and
760 <unavailable>.
761 (struct lval_funcs): Remove check_validity and check_any_valid
762 fields.
763 (set_value_optimized_out, value_optimized_out_const): Remove.
764 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
765 New declarations.
766 (value_bits_any_optimized_out): New declaration.
767 (value_bits_valid): Delete declaration.
768 (value_available_contents_eq): Rename to ...
769 (value_contents_eq): ... this, and extend comments.
770
7712014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
772
773 Fix -fsanitize=address on unreadable inferior strings.
774 * valprint.c (val_print_string): Fix access before BUFFER.
775
7762014-08-19 Simon Marchi <simon.marchi@ericsson.com>
777
778 * target.c (target_struct_size): Remove.
779 (target_struct_allocsize): Remove.
780 (DEFAULT_ALLOCSIZE): Remove.
781 (target_ops_p): New typedef.
782 (DEF_VEC_P (target_ops_p)): New vector type.
783 (target_structs): Change type to VEC (target_ops_p).
784 (add_target_with_completer): Replace "push" code by VEC_safe_push.
785 (find_default_run_target): Rewrite for loop following changes to
786 target_structs.
787
7882014-08-19 Joel Brobecker <brobecker@adacore.com>
789
790 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
791 Adjust code accordingly. Adjust function description comment.
792
7932014-08-19 Yao Qi <yao@codesourcery.com>
794
795 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
796 types.
797
7982014-08-19 Alan Modra <amodra@gmail.com>
799
800 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
801 * config.in: Regenerate.
802 * configure: Regenerate.
803
8042014-08-19 Tom Tromey <tromey@redhat.com>
805 Gary Benson <gbenson@redhat.com>
806
807 * common/common-debug.h: New file.
808 * common/common-debug.c: Likewise.
809 * debug.c: Likewise.
810 * Makefile.in (SFILES): Add common/common-debug.c.
811 (HFILES_NO_SRCDIR): Add common/common-debug.h.
812 (COMMON_OBS): Add common-debug.o and debug.o.
813 (common-debug.o): New rule.
814 * common/common-defs.h: Include common-debug.h.
815 * common/agent.c (debug_agent_printf): New function.
816 (DEBUG_AGENT): Redefine.
817 * nat/i386-dregs.c (debug_printf): Undefine.
818
8192014-08-19 Gary Benson <gbenson@redhat.com>
820
821 * common/common-defs.h: Include print-utils.h.
822 * utils.h: Do not include print-utils.h.
823
8242014-08-19 Tom Tromey <tromey@redhat.com>
825 Gary Benson <gbenson@redhat.com>
826
827 * common/common-types.h: New file.
828 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
829 * common/common-defs.h: Include common-types.h.
830 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
831 (ULONGEST): Remove.
832
8332014-08-19 Tom Tromey <tromey@redhat.com>
834 Gary Benson <gbenson@redhat.com>
835
836 * common/errors.h: New file.
837 * common/errors.c: Likewise.
838 * Makefile.in (SFILES): Add common/errors.c.
839 (HFILES_NO_SRCDIR): Add common/errors.h.
840 (COMMON_OBS): Add errors.o.
841 (errors.o): New rule.
842 * common/common-defs.h: Include errors.h.
843 * utils.h (perror_with_name, error, verror, warning, vwarning):
844 Don't declare.
845 * common/common-utils.h: (malloc_failure, internal_error):
846 Likewise.
847
8482014-08-19 Gary Benson <gbenson@redhat.com>
849
850 * utils.c (internal_vproblem): Always print the message.
851
8522014-08-18 Doug Evans <dje@google.com>
853
854 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
855
8562014-08-18 Joel Brobecker <brobecker@adacore.com>
857
858 * ada-typeprint.c (type_is_full_subrange_of_target_type):
859 Return 0 if TYPE is dynamic.
860 (print_range): Add handling of dynamic ranges.
861
8622014-08-18 Keven Boell <keven.boell@intel.com>
863 Joel Brobecker <brobecker@adacore.com>
864
865 * gdbtypes.h (struct main_type): Add field "data_location".
866 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
867 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
868 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
869 a dynamic data location.
870 (resolve_dynamic_type): Add DW_AT_data_location handling.
871 (copy_recursive, copy_type): Copy the data_location information
872 when present.
873 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
874 * value.c (value_from_contents_and_address): Add
875 DW_AT_data_location handling.
876
8772014-08-18 Keven Boell <keven.boell@intel.com>
878 Joel Brobecker <brobecker@adacore.com>
879
880 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
881 field "get_object_address".
882 * dwarf2expr.c (execute_stack_op): Add handling for
883 DW_OP_push_object_address.
884 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
885 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
886 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
887 (dwarf_expr_get_obj_addr): New function.
888 (dwarf_expr_ctx_funcs): Add get_object_address field.
889 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
890 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
891 (dwarf2_evaluate_property): Add parameter "address". Use it.
892 (needs_get_obj_addr): New function.
893 (needs_frame_ctx_funcs): Add get_object_address field.
894 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
895 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
896 (resolve_dynamic_array): Likewise.
897
8982014-08-18 Joel Brobecker <brobecker@adacore.com>
899
900 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
901 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
902 fixed value for records and unions for which some GNAT encodings
903 are present.
904
9052014-08-18 Joel Brobecker <brobecker@adacore.com>
906
907 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
908 rewrite to avoid "else if" and "else" constructs. Should be
909 a no-op in practice.
910
9112014-08-18 Joel Brobecker <brobecker@adacore.com>
912
913 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
914 of lexical block.
915
9162014-08-15 Siva Chandra Reddy <sivachandra@google.com>
917
918 PR c++/17132
919 * eval.c: Update all calls to find_overload_match.
920 * valarith.c: Likewise.
921 (value_user_defined_cpp_op, value_user_defined_op): New
922 argument NOSIDE. Update all callers.
923 * valops.c (find_overload_match): New argument NOSIDE.
924 * value.h (find_overload_match): Update signature.
925
9262014-08-15 Siva Chandra Reddy <sivachandra@google.com>
927
928 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
929 'items' methods instead of 'iteritems' method on dictionaries.
930
9312014-08-15 Doug Evans <dje@google.com>
932
933 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
934 closer to use.
935
9362014-08-15 Doug Evans <dje@google.com>
937
938 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
939
9402014-08-15 Doug Evans <dje@google.com>
941
942 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
943
9442014-08-15 Doug Evans <dje@google.com>
945
946 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
947 unused.
948
9492014-08-15 Eli Zaretskii <eliz@gnu.org>
950
951 * dcache.h: Include target.h, to avoid compile time warnings.
952
9532014-08-15 Joel Brobecker <brobecker@adacore.com>
954
955 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
956 frame_info" partial declaration.
957 * gdbarch.h: Regenerate.
958
9592014-08-15 Yao Qi <yao@codesourcery.com>
960
961 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
962 Add parameter 'decode_for_pst_p'. Callers update.
963
9642014-08-13 Yao Qi <yao@codesourcery.com>
965
966 PR build/17104
967 * configure.ac: Use local variable 'pos'.
968 * configure: Regenerated.
969
9702014-08-11 Doug Evans <dje@google.com>
971
972 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
973 message, it is redundant with "Reading symbols from ..." message.
974
9752014-08-10 Doug Evans <xdje42@gmail.com>
976
977 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
978
9792014-08-09 Yao Qi <yao@codesourcery.com>
980
981 PR remote/9053
982 * remote.c (remote_xfer_partial): Remove dead code.
983
9842014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
985
986 * ia64-linux-tdep.c: Include "regset.h".
987 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
988 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
989 (ia64_linux_supply_fpregset): New function.
990 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
991 (ia64_linux_regset_from_core_section): New function.
992 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
993 method.
994
9952014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
996
997 * m68klinux-tdep.c: Include "regset.h".
998 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
999 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1000 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1001 (m68k_linux_regset_from_core_section): New function.
1002 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1003 method.
1004
10052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1006
1007 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1008 function. Move logic to...
1009 (tilegx_linux_regmap): ... this new register map.
1010 (tilegx_linux_regset): Refer to register map, replace supply
1011 method by regcache_supply_regset, and add collect method.
1012 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1013 TILEGX_FIRST_EASY_REGNUM.
1014
10152014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1016
1017 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1018 that calls regcache_supply_regset and handles the EPC register
1019 separately. Move main logic to...
1020 (score7_linux_gregmap): ... this new register map.
1021 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1022 (score7_linux_gregset): Refer to register map. Add collect method.
1023 (score7_linux_regset_from_core_section): Replace
1024 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1025 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1026 (struct regset): Delete unused forward declaraction.
1027 (struct pt_regs): Delete structure definition.
1028 (elf_gregset_t): Delete typedef.
1029
10302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1031
1032 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1033 (nios2_core_regset): Add collect method.
1034
10352014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1036
1037 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1038 platform-independent and don't write to read-only input buffer.
1039 (m32r_linux_collect_gregset): New function.
1040 (m32r_linux_gregset): Add collect method.
1041
10422014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1043
1044 * hppa-linux-tdep.c (greg_map): Rename to...
1045 (hppa_linux_gregmap): ... this. Also convert to
1046 regcache_map_entry format.
1047 (hppa_linux_supply_regset): Delete function.
1048 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1049 (hppa_linux_fpregmap): ... this new register map.
1050 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1051 register map, replace supply method by regcache_supply_regset, and
1052 add collect method regcache_collect_regset.
1053
10542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1055
1056 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1057 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1058 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1059 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1060 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1061 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1062 (frv_linux_supply_gregset): Replace main logic by call to
1063 regcache_supply_regset, but keep clearing gr32-gr63.
1064 (frv_linux_supply_fpregset): Delete function.
1065 (frv_linux_gregset): Refer to appropriate register map and add
1066 regcache_collect_regset as the collect method.
1067 (frv_linux_fpregset): Likewise. Also exchange the supply method
1068 by regcache_supply_regset.
1069
10702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1071
1072 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1073 by call to alpha_supply_int_regs.
1074 (alpha_linux_collect_gregset): New function.
1075 (alpha_linux_supply_fpregset): Replace logic by call to
1076 alpha_supply_fp_regs.
1077 (alpha_linux_collect_fpregset): New function.
1078 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1079
10802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1081
1082 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1083 by call to regcache_collect_regset.
1084 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1085 instead of aarch64_linux_supply_gregset/_fpregset.
1086 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1087 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1088 header file instead.
1089 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1090 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1091 functions. Move logic to ...
1092 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1093 register maps.
1094 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1095 refer to new register maps, replace *_regset_from_core by
1096 regcache_supply_regset, and also use regcache_collect_regset.
1097 * aarch64-linux-tdep.h: Include "regset.h".
1098 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1099 Delete prototypes.
1100 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1101 macros, moved from C source file.
1102 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1103 variable declarations.
1104
11052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1106
1107 * s390-linux-nat.c: Include "regset.h".
1108 (regmap_gregset): Delete macro.
1109 (s390_64_regmap_gregset): New register map for
1110 regcache_supply/_collect_regset.
1111 (s390_64_gregset): New regset.
1112 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1113 (regmap_fpregset): Delete macro.
1114 (s390_native_supply, s390_native_collect): Delete functions.
1115 (supply_gregset, fill_gregset): Replace s390-specific regmap
1116 handling by a call to regcache_supply/_collect_regset.
1117 (supply_fpregset, fill_fpregset): Call regcache_supply/
1118 _collect_regset instead of s390_native_supply/_collect.
1119 (fetch_regset, store_regset): Likewise. Also change the last
1120 parameter to a regset instead of a regmap.
1121 (s390_linux_fetch_inferior_registers)
1122 (390_linux_store_inferior_registers): Adjust last parameter in
1123 calls to fetch_regset and store_regset.
1124 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1125 (s390_gregmap): ... this. Also make static const and convert to
1126 regcache_map_entry format.
1127 (s390x_regmap_gregset): Delete.
1128 (s390_regmap_fpregset): Rename to...
1129 (s390_fpregmap): ... this. Make static const and convert to
1130 regcache_map_entry format.
1131 (s390_regmap_upper, s390_regmap_last_break)
1132 (s390x_regmap_last_break, s390_regmap_system_call)
1133 (s390_regmap_tdb): Likewise.
1134 (s390_supply_regset, s390_collect_regset): Remove functions.
1135 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1136 s390_supply_regset.
1137 (s390_gregset, s390_fpregset, s390_upper_regset)
1138 (s390_last_break_regset, s390x_last_break_regset)
1139 (s390_system_call_regset, s390_tdb_regset): Make global and
1140 replace s390_supply/_collect_regset by regcache_supply/
1141 _collect_regset.
1142 (s390x_gregset): Delete.
1143 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1144 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1145 (s390_regmap_fpregset, s390_regmap_last_break)
1146 (s390x_regmap_last_break, s390_regmap_system_call)
1147 (s390_regmap_tdb): Delete global variable declarations.
1148 (s390_gregset, s390_fpregset, s390_last_break_regset)
1149 (s390x_last_break_regset, s390_system_call_regset)
1150 (s390_tdb_regset): New global variable declarations.
1151
11522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1153
1154 * regcache.c: Include "regset.h".
1155 (regcache_transfer_regset): New local function.
1156 (regcache_supply_regset, regcache_collect_regset): New functions.
1157 * regcache.h (struct regcache_map_entry): New structure.
1158 (REGCACHE_MAP_SKIP): New enum value.
1159 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1160
11612014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1162
1163 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1164 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1165 (ppc_linux_collect_gregset ): Likewise.
1166 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1167 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1168 (ppc_collect_vrregset): Likewise.
1169 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1170 Likewise.
1171
11722014-08-07 Yao Qi <yao@codesourcery.com>
1173
1174 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1175 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1176 * remote.c (remote_read_bytes): Likewise.
1177
11782014-08-07 Yao Qi <yao@codesourcery.com>
1179
1180 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1181
11822014-08-07 Yao Qi <yao@codesourcery.com>
1183
1184 PR remote/17230
1185 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1186 TARGET_XFER_OK instead of 0.
1187
11882014-08-07 Gary Benson <gbenson@redhat.com>
1189
1190 * common/common-defs.h: Include errno.h.
1191 * defs.h: Do not include errno.h.
1192 * ada-typeprint.c: Likewise.
1193 * c-typeprint.c: Likewise.
1194 * core-regset.c: Likewise.
1195 * corefile.c: Likewise.
1196 * corelow.c: Likewise.
1197 * event-loop.c: Likewise.
1198 * f-typeprint.c: Likewise.
1199 * gnu-nat.c: Likewise.
1200 * go32-nat.c: Likewise.
1201 * i386gnu-nat.c: Likewise.
1202 * m2-typeprint.c: Likewise.
1203 * nat/linux-btrace.c: Likewise.
1204 * p-typeprint.c: Likewise.
1205 * procfs.c: Likewise.
1206 * remote-sim.c: Likewise.
1207 * rs6000-nat.c: Likewise.
1208 * target.c: Likewise.
1209 * typeprint.c: Likewise.
1210 * ui-file.c: Likewise.
1211 * valops.c: Likewise.
1212 * valprint.c: Likewise.
1213
12142014-08-07 Gary Benson <gbenson@redhat.com>
1215
1216 * common/common-defs.h: Include string.h.
1217 * aarch64-tdep.c: Do not include string.h.
1218 * ada-exp.y: Likewise.
1219 * ada-lang.c: Likewise.
1220 * ada-lex.l: Likewise.
1221 * ada-typeprint.c: Likewise.
1222 * ada-valprint.c: Likewise.
1223 * aix-thread.c: Likewise.
1224 * alpha-linux-tdep.c: Likewise.
1225 * alpha-mdebug-tdep.c: Likewise.
1226 * alpha-nat.c: Likewise.
1227 * alpha-osf1-tdep.c: Likewise.
1228 * alpha-tdep.c: Likewise.
1229 * alphanbsd-tdep.c: Likewise.
1230 * amd64-dicos-tdep.c: Likewise.
1231 * amd64-linux-tdep.c: Likewise.
1232 * amd64-nat.c: Likewise.
1233 * amd64-sol2-tdep.c: Likewise.
1234 * amd64fbsd-tdep.c: Likewise.
1235 * amd64obsd-tdep.c: Likewise.
1236 * arch-utils.c: Likewise.
1237 * arm-linux-nat.c: Likewise.
1238 * arm-linux-tdep.c: Likewise.
1239 * arm-tdep.c: Likewise.
1240 * arm-wince-tdep.c: Likewise.
1241 * armbsd-tdep.c: Likewise.
1242 * armnbsd-nat.c: Likewise.
1243 * armnbsd-tdep.c: Likewise.
1244 * armobsd-tdep.c: Likewise.
1245 * avr-tdep.c: Likewise.
1246 * ax-gdb.c: Likewise.
1247 * ax-general.c: Likewise.
1248 * bcache.c: Likewise.
1249 * bfin-tdep.c: Likewise.
1250 * breakpoint.c: Likewise.
1251 * build-id.c: Likewise.
1252 * buildsym.c: Likewise.
1253 * c-exp.y: Likewise.
1254 * c-lang.c: Likewise.
1255 * c-typeprint.c: Likewise.
1256 * c-valprint.c: Likewise.
1257 * charset.c: Likewise.
1258 * cli-out.c: Likewise.
1259 * cli/cli-cmds.c: Likewise.
1260 * cli/cli-decode.c: Likewise.
1261 * cli/cli-dump.c: Likewise.
1262 * cli/cli-interp.c: Likewise.
1263 * cli/cli-logging.c: Likewise.
1264 * cli/cli-script.c: Likewise.
1265 * cli/cli-setshow.c: Likewise.
1266 * cli/cli-utils.c: Likewise.
1267 * coffread.c: Likewise.
1268 * common/agent.c: Likewise.
1269 * common/buffer.c: Likewise.
1270 * common/buffer.h: Likewise.
1271 * common/common-utils.c: Likewise.
1272 * common/filestuff.c: Likewise.
1273 * common/filestuff.c: Likewise.
1274 * common/format.c: Likewise.
1275 * common/print-utils.c: Likewise.
1276 * common/rsp-low.c: Likewise.
1277 * common/signals.c: Likewise.
1278 * common/vec.h: Likewise.
1279 * common/xml-utils.c: Likewise.
1280 * core-regset.c: Likewise.
1281 * corefile.c: Likewise.
1282 * corelow.c: Likewise.
1283 * cp-abi.c: Likewise.
1284 * cp-name-parser.y: Likewise.
1285 * cp-support.c: Likewise.
1286 * cp-valprint.c: Likewise.
1287 * cris-tdep.c: Likewise.
1288 * d-exp.y: Likewise.
1289 * darwin-nat.c: Likewise.
1290 * dbxread.c: Likewise.
1291 * dcache.c: Likewise.
1292 * demangle.c: Likewise.
1293 * dicos-tdep.c: Likewise.
1294 * disasm.c: Likewise.
1295 * doublest.c: Likewise.
1296 * dsrec.c: Likewise.
1297 * dummy-frame.c: Likewise.
1298 * dwarf2-frame.c: Likewise.
1299 * dwarf2loc.c: Likewise.
1300 * dwarf2read.c: Likewise.
1301 * elfread.c: Likewise.
1302 * environ.c: Likewise.
1303 * eval.c: Likewise.
1304 * event-loop.c: Likewise.
1305 * exceptions.c: Likewise.
1306 * exec.c: Likewise.
1307 * expprint.c: Likewise.
1308 * f-exp.y: Likewise.
1309 * f-lang.c: Likewise.
1310 * f-typeprint.c: Likewise.
1311 * f-valprint.c: Likewise.
1312 * fbsd-nat.c: Likewise.
1313 * findcmd.c: Likewise.
1314 * findvar.c: Likewise.
1315 * fork-child.c: Likewise.
1316 * frame.c: Likewise.
1317 * frv-linux-tdep.c: Likewise.
1318 * frv-tdep.c: Likewise.
1319 * gdb.c: Likewise.
1320 * gdb_bfd.c: Likewise.
1321 * gdbarch.c: Likewise.
1322 * gdbarch.sh: Likewise.
1323 * gdbtypes.c: Likewise.
1324 * gnu-nat.c: Likewise.
1325 * gnu-v2-abi.c: Likewise.
1326 * gnu-v3-abi.c: Likewise.
1327 * go-exp.y: Likewise.
1328 * go-lang.c: Likewise.
1329 * go32-nat.c: Likewise.
1330 * guile/guile.c: Likewise.
1331 * guile/scm-auto-load.c: Likewise.
1332 * hppa-hpux-tdep.c: Likewise.
1333 * hppa-linux-nat.c: Likewise.
1334 * hppanbsd-tdep.c: Likewise.
1335 * hppaobsd-tdep.c: Likewise.
1336 * i386-cygwin-tdep.c: Likewise.
1337 * i386-dicos-tdep.c: Likewise.
1338 * i386-linux-tdep.c: Likewise.
1339 * i386-nto-tdep.c: Likewise.
1340 * i386-sol2-tdep.c: Likewise.
1341 * i386-tdep.c: Likewise.
1342 * i386bsd-tdep.c: Likewise.
1343 * i386gnu-nat.c: Likewise.
1344 * i386nbsd-tdep.c: Likewise.
1345 * i386obsd-tdep.c: Likewise.
1346 * i387-tdep.c: Likewise.
1347 * ia64-libunwind-tdep.c: Likewise.
1348 * ia64-linux-nat.c: Likewise.
1349 * inf-child.c: Likewise.
1350 * inf-ptrace.c: Likewise.
1351 * inf-ttrace.c: Likewise.
1352 * infcall.c: Likewise.
1353 * infcmd.c: Likewise.
1354 * inflow.c: Likewise.
1355 * infrun.c: Likewise.
1356 * interps.c: Likewise.
1357 * iq2000-tdep.c: Likewise.
1358 * irix5-nat.c: Likewise.
1359 * jv-exp.y: Likewise.
1360 * jv-lang.c: Likewise.
1361 * jv-typeprint.c: Likewise.
1362 * jv-valprint.c: Likewise.
1363 * language.c: Likewise.
1364 * linux-fork.c: Likewise.
1365 * linux-nat.c: Likewise.
1366 * lm32-tdep.c: Likewise.
1367 * m2-exp.y: Likewise.
1368 * m2-typeprint.c: Likewise.
1369 * m32c-tdep.c: Likewise.
1370 * m32r-linux-nat.c: Likewise.
1371 * m32r-linux-tdep.c: Likewise.
1372 * m32r-rom.c: Likewise.
1373 * m32r-tdep.c: Likewise.
1374 * m68hc11-tdep.c: Likewise.
1375 * m68k-tdep.c: Likewise.
1376 * m68kbsd-tdep.c: Likewise.
1377 * m68klinux-nat.c: Likewise.
1378 * m68klinux-tdep.c: Likewise.
1379 * m88k-tdep.c: Likewise.
1380 * machoread.c: Likewise.
1381 * macrocmd.c: Likewise.
1382 * main.c: Likewise.
1383 * mdebugread.c: Likewise.
1384 * mem-break.c: Likewise.
1385 * memattr.c: Likewise.
1386 * memory-map.c: Likewise.
1387 * mep-tdep.c: Likewise.
1388 * mi/mi-cmd-break.c: Likewise.
1389 * mi/mi-cmd-disas.c: Likewise.
1390 * mi/mi-cmd-env.c: Likewise.
1391 * mi/mi-cmd-stack.c: Likewise.
1392 * mi/mi-cmd-var.c: Likewise.
1393 * mi/mi-cmds.c: Likewise.
1394 * mi/mi-console.c: Likewise.
1395 * mi/mi-getopt.c: Likewise.
1396 * mi/mi-interp.c: Likewise.
1397 * mi/mi-main.c: Likewise.
1398 * mi/mi-parse.c: Likewise.
1399 * microblaze-rom.c: Likewise.
1400 * microblaze-tdep.c: Likewise.
1401 * mingw-hdep.c: Likewise.
1402 * minidebug.c: Likewise.
1403 * minsyms.c: Likewise.
1404 * mips-irix-tdep.c: Likewise.
1405 * mips-linux-tdep.c: Likewise.
1406 * mips-tdep.c: Likewise.
1407 * mips64obsd-tdep.c: Likewise.
1408 * mipsnbsd-tdep.c: Likewise.
1409 * mipsread.c: Likewise.
1410 * mn10300-linux-tdep.c: Likewise.
1411 * mn10300-tdep.c: Likewise.
1412 * monitor.c: Likewise.
1413 * moxie-tdep.c: Likewise.
1414 * mt-tdep.c: Likewise.
1415 * nat/linux-btrace.c: Likewise.
1416 * nat/linux-osdata.c: Likewise.
1417 * nat/linux-procfs.c: Likewise.
1418 * nat/linux-ptrace.c: Likewise.
1419 * nat/linux-waitpid.c: Likewise.
1420 * nbsd-tdep.c: Likewise.
1421 * nios2-linux-tdep.c: Likewise.
1422 * nto-procfs.c: Likewise.
1423 * nto-tdep.c: Likewise.
1424 * objc-lang.c: Likewise.
1425 * objfiles.c: Likewise.
1426 * opencl-lang.c: Likewise.
1427 * osabi.c: Likewise.
1428 * osdata.c: Likewise.
1429 * p-exp.y: Likewise.
1430 * p-lang.c: Likewise.
1431 * p-typeprint.c: Likewise.
1432 * parse.c: Likewise.
1433 * posix-hdep.c: Likewise.
1434 * ppc-linux-nat.c: Likewise.
1435 * ppc-sysv-tdep.c: Likewise.
1436 * ppcfbsd-tdep.c: Likewise.
1437 * ppcnbsd-tdep.c: Likewise.
1438 * ppcobsd-tdep.c: Likewise.
1439 * printcmd.c: Likewise.
1440 * procfs.c: Likewise.
1441 * prologue-value.c: Likewise.
1442 * python/py-auto-load.c: Likewise.
1443 * python/py-gdb-readline.c: Likewise.
1444 * ravenscar-thread.c: Likewise.
1445 * regcache.c: Likewise.
1446 * registry.c: Likewise.
1447 * remote-fileio.c: Likewise.
1448 * remote-m32r-sdi.c: Likewise.
1449 * remote-mips.c: Likewise.
1450 * remote-notif.c: Likewise.
1451 * remote-sim.c: Likewise.
1452 * remote.c: Likewise.
1453 * reverse.c: Likewise.
1454 * rs6000-aix-tdep.c: Likewise.
1455 * ser-base.c: Likewise.
1456 * ser-go32.c: Likewise.
1457 * ser-mingw.c: Likewise.
1458 * ser-pipe.c: Likewise.
1459 * ser-tcp.c: Likewise.
1460 * ser-unix.c: Likewise.
1461 * serial.c: Likewise.
1462 * sh-tdep.c: Likewise.
1463 * sh64-tdep.c: Likewise.
1464 * shnbsd-tdep.c: Likewise.
1465 * skip.c: Likewise.
1466 * sol-thread.c: Likewise.
1467 * solib-dsbt.c: Likewise.
1468 * solib-frv.c: Likewise.
1469 * solib-osf.c: Likewise.
1470 * solib-som.c: Likewise.
1471 * solib-spu.c: Likewise.
1472 * solib-target.c: Likewise.
1473 * solib.c: Likewise.
1474 * somread.c: Likewise.
1475 * source.c: Likewise.
1476 * sparc-nat.c: Likewise.
1477 * sparc-sol2-tdep.c: Likewise.
1478 * sparc-tdep.c: Likewise.
1479 * sparc64-tdep.c: Likewise.
1480 * sparc64fbsd-tdep.c: Likewise.
1481 * sparc64nbsd-tdep.c: Likewise.
1482 * sparcnbsd-tdep.c: Likewise.
1483 * spu-linux-nat.c: Likewise.
1484 * spu-multiarch.c: Likewise.
1485 * spu-tdep.c: Likewise.
1486 * stabsread.c: Likewise.
1487 * stack.c: Likewise.
1488 * std-regs.c: Likewise.
1489 * symfile.c: Likewise.
1490 * symmisc.c: Likewise.
1491 * symtab.c: Likewise.
1492 * target.c: Likewise.
1493 * thread.c: Likewise.
1494 * tilegx-linux-nat.c: Likewise.
1495 * tilegx-tdep.c: Likewise.
1496 * top.c: Likewise.
1497 * tracepoint.c: Likewise.
1498 * tui/tui-command.c: Likewise.
1499 * tui/tui-data.c: Likewise.
1500 * tui/tui-disasm.c: Likewise.
1501 * tui/tui-file.c: Likewise.
1502 * tui/tui-layout.c: Likewise.
1503 * tui/tui-out.c: Likewise.
1504 * tui/tui-regs.c: Likewise.
1505 * tui/tui-source.c: Likewise.
1506 * tui/tui-stack.c: Likewise.
1507 * tui/tui-win.c: Likewise.
1508 * tui/tui-windata.c: Likewise.
1509 * tui/tui-winsource.c: Likewise.
1510 * typeprint.c: Likewise.
1511 * ui-file.c: Likewise.
1512 * ui-out.c: Likewise.
1513 * user-regs.c: Likewise.
1514 * utils.c: Likewise.
1515 * v850-tdep.c: Likewise.
1516 * valarith.c: Likewise.
1517 * valops.c: Likewise.
1518 * valprint.c: Likewise.
1519 * value.c: Likewise.
1520 * varobj.c: Likewise.
1521 * vax-tdep.c: Likewise.
1522 * vaxnbsd-tdep.c: Likewise.
1523 * vaxobsd-tdep.c: Likewise.
1524 * windows-nat.c: Likewise.
1525 * xcoffread.c: Likewise.
1526 * xml-support.c: Likewise.
1527 * xstormy16-tdep.c: Likewise.
1528 * xtensa-linux-nat.c: Likewise.
1529
15302014-08-07 Gary Benson <gbenson@redhat.com>
1531
1532 * common/common-defs.h: Include gdb_assert.h.
1533 * aarch64-tdep.c: Do not include gdb_assert.h.
1534 * addrmap.c: Likewise.
1535 * aix-thread.c: Likewise.
1536 * alpha-linux-tdep.c: Likewise.
1537 * alpha-mdebug-tdep.c: Likewise.
1538 * alphanbsd-tdep.c: Likewise.
1539 * amd64-nat.c: Likewise.
1540 * amd64-tdep.c: Likewise.
1541 * amd64bsd-nat.c: Likewise.
1542 * amd64fbsd-nat.c: Likewise.
1543 * amd64fbsd-tdep.c: Likewise.
1544 * amd64nbsd-nat.c: Likewise.
1545 * amd64nbsd-tdep.c: Likewise.
1546 * amd64obsd-nat.c: Likewise.
1547 * amd64obsd-tdep.c: Likewise.
1548 * arch-utils.c: Likewise.
1549 * arm-tdep.c: Likewise.
1550 * armbsd-tdep.c: Likewise.
1551 * auxv.c: Likewise.
1552 * bcache.c: Likewise.
1553 * bfin-tdep.c: Likewise.
1554 * blockframe.c: Likewise.
1555 * breakpoint.c: Likewise.
1556 * bsd-kvm.c: Likewise.
1557 * bsd-uthread.c: Likewise.
1558 * buildsym.c: Likewise.
1559 * c-exp.y: Likewise.
1560 * c-lang.c: Likewise.
1561 * charset.c: Likewise.
1562 * cleanups.c: Likewise.
1563 * cli-out.c: Likewise.
1564 * cli/cli-decode.c: Likewise.
1565 * cli/cli-dump.c: Likewise.
1566 * cli/cli-logging.c: Likewise.
1567 * cli/cli-script.c: Likewise.
1568 * cli/cli-utils.c: Likewise.
1569 * coffread.c: Likewise.
1570 * common/common-utils.c: Likewise.
1571 * common/queue.h: Likewise.
1572 * common/signals.c: Likewise.
1573 * common/vec.h: Likewise.
1574 * complaints.c: Likewise.
1575 * completer.c: Likewise.
1576 * corelow.c: Likewise.
1577 * cp-abi.c: Likewise.
1578 * cp-name-parser.y: Likewise.
1579 * cp-namespace.c: Likewise.
1580 * cp-support.c: Likewise.
1581 * cris-tdep.c: Likewise.
1582 * dbxread.c: Likewise.
1583 * dictionary.c: Likewise.
1584 * doublest.c: Likewise.
1585 * dsrec.c: Likewise.
1586 * dummy-frame.c: Likewise.
1587 * dwarf2-frame-tailcall.c: Likewise.
1588 * dwarf2-frame.c: Likewise.
1589 * dwarf2expr.c: Likewise.
1590 * dwarf2loc.c: Likewise.
1591 * dwarf2read.c: Likewise.
1592 * eval.c: Likewise.
1593 * event-loop.c: Likewise.
1594 * exceptions.c: Likewise.
1595 * expprint.c: Likewise.
1596 * f-valprint.c: Likewise.
1597 * fbsd-nat.c: Likewise.
1598 * findvar.c: Likewise.
1599 * frame-unwind.c: Likewise.
1600 * frame.c: Likewise.
1601 * frv-tdep.c: Likewise.
1602 * gcore.c: Likewise.
1603 * gdb-dlfcn.c: Likewise.
1604 * gdb_bfd.c: Likewise.
1605 * gdbarch.c: Likewise.
1606 * gdbarch.sh: Likewise.
1607 * gdbtypes.c: Likewise.
1608 * gnu-nat.c: Likewise.
1609 * gnu-v3-abi.c: Likewise.
1610 * go-lang.c: Likewise.
1611 * guile/scm-exception.c: Likewise.
1612 * guile/scm-gsmob.c: Likewise.
1613 * guile/scm-lazy-string.c: Likewise.
1614 * guile/scm-math.c: Likewise.
1615 * guile/scm-pretty-print.c: Likewise.
1616 * guile/scm-safe-call.c: Likewise.
1617 * guile/scm-utils.c: Likewise.
1618 * guile/scm-value.c: Likewise.
1619 * h8300-tdep.c: Likewise.
1620 * hppa-hpux-nat.c: Likewise.
1621 * hppa-tdep.c: Likewise.
1622 * hppanbsd-tdep.c: Likewise.
1623 * hppaobsd-tdep.c: Likewise.
1624 * i386-darwin-nat.c: Likewise.
1625 * i386-darwin-tdep.c: Likewise.
1626 * i386-nto-tdep.c: Likewise.
1627 * i386-tdep.c: Likewise.
1628 * i386bsd-nat.c: Likewise.
1629 * i386fbsd-tdep.c: Likewise.
1630 * i386gnu-nat.c: Likewise.
1631 * i386nbsd-tdep.c: Likewise.
1632 * i386obsd-tdep.c: Likewise.
1633 * i387-tdep.c: Likewise.
1634 * ia64-libunwind-tdep.c: Likewise.
1635 * ia64-tdep.c: Likewise.
1636 * inf-ptrace.c: Likewise.
1637 * inf-ttrace.c: Likewise.
1638 * infcall.c: Likewise.
1639 * infcmd.c: Likewise.
1640 * infrun.c: Likewise.
1641 * inline-frame.c: Likewise.
1642 * interps.c: Likewise.
1643 * jv-lang.c: Likewise.
1644 * jv-typeprint.c: Likewise.
1645 * linux-fork.c: Likewise.
1646 * linux-nat.c: Likewise.
1647 * linux-thread-db.c: Likewise.
1648 * m32c-tdep.c: Likewise.
1649 * m32r-linux-nat.c: Likewise.
1650 * m32r-tdep.c: Likewise.
1651 * m68k-tdep.c: Likewise.
1652 * m68kbsd-nat.c: Likewise.
1653 * m68kbsd-tdep.c: Likewise.
1654 * m88k-tdep.c: Likewise.
1655 * machoread.c: Likewise.
1656 * macroexp.c: Likewise.
1657 * macrotab.c: Likewise.
1658 * maint.c: Likewise.
1659 * mdebugread.c: Likewise.
1660 * memory-map.c: Likewise.
1661 * mep-tdep.c: Likewise.
1662 * mi/mi-common.c: Likewise.
1663 * microblaze-tdep.c: Likewise.
1664 * mingw-hdep.c: Likewise.
1665 * mips-linux-nat.c: Likewise.
1666 * mips-linux-tdep.c: Likewise.
1667 * mips-tdep.c: Likewise.
1668 * mips64obsd-tdep.c: Likewise.
1669 * mipsnbsd-tdep.c: Likewise.
1670 * mn10300-linux-tdep.c: Likewise.
1671 * mn10300-tdep.c: Likewise.
1672 * moxie-tdep.c: Likewise.
1673 * mt-tdep.c: Likewise.
1674 * nat/linux-btrace.c: Likewise.
1675 * nat/linux-osdata.c: Likewise.
1676 * nat/linux-ptrace.c: Likewise.
1677 * nat/mips-linux-watch.c: Likewise.
1678 * nios2-linux-tdep.c: Likewise.
1679 * nios2-tdep.c: Likewise.
1680 * objc-lang.c: Likewise.
1681 * objfiles.c: Likewise.
1682 * obsd-nat.c: Likewise.
1683 * opencl-lang.c: Likewise.
1684 * osabi.c: Likewise.
1685 * parse.c: Likewise.
1686 * ppc-linux-nat.c: Likewise.
1687 * ppc-sysv-tdep.c: Likewise.
1688 * ppcfbsd-nat.c: Likewise.
1689 * ppcfbsd-tdep.c: Likewise.
1690 * ppcnbsd-nat.c: Likewise.
1691 * ppcnbsd-tdep.c: Likewise.
1692 * ppcobsd-nat.c: Likewise.
1693 * ppcobsd-tdep.c: Likewise.
1694 * printcmd.c: Likewise.
1695 * procfs.c: Likewise.
1696 * prologue-value.c: Likewise.
1697 * psymtab.c: Likewise.
1698 * python/py-lazy-string.c: Likewise.
1699 * python/py-value.c: Likewise.
1700 * regcache.c: Likewise.
1701 * reggroups.c: Likewise.
1702 * registry.c: Likewise.
1703 * remote-sim.c: Likewise.
1704 * remote.c: Likewise.
1705 * rs6000-aix-tdep.c: Likewise.
1706 * rs6000-tdep.c: Likewise.
1707 * s390-linux-tdep.c: Likewise.
1708 * score-tdep.c: Likewise.
1709 * ser-base.c: Likewise.
1710 * ser-mingw.c: Likewise.
1711 * sh-tdep.c: Likewise.
1712 * sh64-tdep.c: Likewise.
1713 * solib-darwin.c: Likewise.
1714 * solib-spu.c: Likewise.
1715 * solib-svr4.c: Likewise.
1716 * source.c: Likewise.
1717 * sparc-nat.c: Likewise.
1718 * sparc-sol2-tdep.c: Likewise.
1719 * sparc-tdep.c: Likewise.
1720 * sparc64-sol2-tdep.c: Likewise.
1721 * sparc64-tdep.c: Likewise.
1722 * sparc64fbsd-tdep.c: Likewise.
1723 * sparc64nbsd-tdep.c: Likewise.
1724 * sparc64obsd-tdep.c: Likewise.
1725 * sparcnbsd-tdep.c: Likewise.
1726 * sparcobsd-tdep.c: Likewise.
1727 * spu-multiarch.c: Likewise.
1728 * spu-tdep.c: Likewise.
1729 * stabsread.c: Likewise.
1730 * stack.c: Likewise.
1731 * symfile.c: Likewise.
1732 * symtab.c: Likewise.
1733 * target-descriptions.c: Likewise.
1734 * target-memory.c: Likewise.
1735 * target.c: Likewise.
1736 * tic6x-linux-tdep.c: Likewise.
1737 * tic6x-tdep.c: Likewise.
1738 * tilegx-linux-nat.c: Likewise.
1739 * tilegx-tdep.c: Likewise.
1740 * top.c: Likewise.
1741 * tramp-frame.c: Likewise.
1742 * tui/tui-out.c: Likewise.
1743 * tui/tui-winsource.c: Likewise.
1744 * ui-out.c: Likewise.
1745 * user-regs.c: Likewise.
1746 * utils.c: Likewise.
1747 * v850-tdep.c: Likewise.
1748 * valops.c: Likewise.
1749 * value.c: Likewise.
1750 * varobj.c: Likewise.
1751 * vax-nat.c: Likewise.
1752 * xml-syscall.c: Likewise.
1753 * xml-tdesc.c: Likewise.
1754 * xstormy16-tdep.c: Likewise.
1755 * xtensa-linux-nat.c: Likewise.
1756 * xtensa-tdep.c: Likewise.
1757
17582014-08-07 Gary Benson <gbenson@redhat.com>
1759
1760 * common/common-defs.h: Include common-utils.h.
1761 * defs.h: Do not include common-utils.h.
1762 * common/gdb_assert.h: Likewise.
1763 * darwin-nat.h: Likewise.
1764 * nat/linux-btrace.c: Likewise.
1765 * target/waitstatus.h: Likewise.
1766
17672014-08-07 Gary Benson <gbenson@redhat.com>
1768
1769 * common/common-defs.h: Include ptid.h.
1770 * defs.h: Do not include ptid.h.
1771 * inferior.h: Likewise.
1772 * infrun.h: Likewise.
1773 * nat/linux-btrace.h: Likewise.
1774 * nat/linux-osdata.h: Likewise.
1775 * target/waitstatus.h: Likewise.
1776
17772014-08-07 Gary Benson <gbenson@redhat.com>
1778
1779 * common/common-defs.h: Include gdb_locale.h.
1780 * defs.h: Do not include gdb_locale.h.
1781
17822014-08-07 Gary Benson <gbenson@redhat.com>
1783
1784 * common/common-defs.h: Include gdb/signals.h.
1785 * defs.h: Do not include gdb/signals.h.
1786
17872014-08-07 Gary Benson <gbenson@redhat.com>
1788
1789 * common/common-defs.h: Include pathmax.h.
1790 * defs.h: Do not include pathmax.h.
1791
17922014-08-07 Gary Benson <gbenson@redhat.com>
1793
1794 * common/common-defs.h: Include libiberty.h.
1795 * defs.h: Do not include libiberty.h.
1796 * common/queue.h: Likewise.
1797 * cp-name-parser.y: Likewise.
1798 * mi/mi-cmd-catch.c: Likewise.
1799 * python/python.c: Likewise.
1800
18012014-08-07 Gary Benson <gbenson@redhat.com>
1802
1803 * common/common-defs.h: Include ansidecl.h.
1804 * defs.h: Do not include ansidecl.h.
1805 * common/buffer.h: Likewise.
1806 * common/common-utils.h: Likewise.
1807
18082014-08-07 Gary Benson <gbenson@redhat.com>
1809
1810 * common/common-defs.h: Include stddef.h.
1811 * defs.h: Do not include stddef.h.
1812 * common/common-utils.h: Likewise.
1813 * amd64fbsd-nat.c: Likewise.
1814 * bcache.c: Likewise.
1815 * charset.c: Likewise.
1816 * common/buffer.h: Likewise.
1817 * common/vec.h: Likewise.
1818 * i386bsd-nat.c: Likewise.
1819 * nat/linux-btrace.h: Likewise.
1820 * ppcfbsd-nat.c: Likewise.
1821 * ppcnbsd-tdep.h: Likewise.
1822 * ppcobsd-nat.c: Likewise.
1823 * ppcobsd-tdep.h: Likewise.
1824 * python/py-gdb-readline.c: Likewise.
1825
18262014-08-07 Gary Benson <gbenson@redhat.com>
1827
1828 * common/common-defs.h: Include stdarg.h.
1829 * defs.h: Do not include stdarg.h.
1830 * ada-lang.c: Likewise.
1831 * common/common-utils.h: Likewise.
1832 * guile/scm-string.c: Likewise.
1833 * guile/scm-utils.c: Likewise.
1834 * m32c-tdep.c: Likewise.
1835
18362014-08-07 Gary Benson <gbenson@redhat.com>
1837
1838 * common/common-defs.h: Include stdlib.h.
1839 * defs.h: Do not include stdlib.h.
1840 * addrmap.c: Likewise.
1841 * bcache.c: Likewise.
1842 * common/buffer.c: Likewise.
1843 * common/common-utils.c: Likewise.
1844 * cp-name-parser.y: Likewise.
1845 * go32-nat.c: Likewise.
1846 * mn10300-linux-tdep.c: Likewise.
1847 * nat/linux-osdata.c: Likewise.
1848 * tui/tui.c: Likewise.
1849 * windows-nat.c: Likewise.
1850
18512014-08-07 Gary Benson <gbenson@redhat.com>
1852
1853 * common/common-defs.h: Include stdio.h.
1854 * defs.h: Do not include stdio.h.
1855 * ada-lang.c: Likewise.
1856 * common/buffer.c: Likewise.
1857 * common/common-utils.c: Likewise.
1858 * cp-name-parser.y: Likewise.
1859 * gnu-nat.c: Likewise.
1860 * go32-nat.c: Likewise.
1861 * i386gnu-nat.c: Likewise.
1862 * proc-api.c: Likewise.
1863 * proc-events.c: Likewise.
1864 * proc-flags.c: Likewise.
1865 * proc-why.c: Likewise.
1866 * python/python-internal.h: Likewise.
1867 * target-memory.c: Likewise.
1868 * tui/tui-io.c: Likewise.
1869 * tui/tui.c: Likewise.
1870
18712014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1872
1873 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1874 (scan_dyntag_auxv): Same.
1875
18762014-08-06 Yao Qi <yao@codesourcery.com>
1877
1878 * amd64-linux-nat.c: Remove duplicated include
1879 "x86-linux-nat.h".
1880 * i386-linux-nat.c: Likewise.
1881
18822014-08-06 Yao Qi <yao@codesourcery.com>
1883
1884 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1885 operand" with "Special opcode" in comments.
1886
18872014-08-05 Gary Benson <gbenson@redhat.com>
1888
1889 * interps.c (initialize_interps): Remove prototype.
1890 (interpreter_initialized): Remove static global.
1891 (interp_add): Do not call initialize_interps.
1892 (initialize_interps): Remove function.
1893
18942014-08-05 Gary Benson <gbenson@redhat.com>
1895
1896 * utils.c (vwarning): Remove spurious va_end.
1897
18982014-08-05 Alan Modra <amodra@gmail.com>
1899
1900 * charset.c (convert_between_encodings): Cast result of obstack_base.
1901 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1902 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1903 (read_unwind_info): Use size_t for some locals.
1904 * jit.c (finalize_symtab): Likewise.
1905 * utils.c (hashtab_obstack_allocate): Likewise.
1906 * symmisc.c (print_objfile_statistics): Update format strings.
1907
19082014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1909
1910 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1911 (Changes in GDB 7.8): ... here.
1912
19132014-08-04 Tom Tromey <tromey@redhat.com>
1914
1915 * target.c (set_targetdebug): New function.
1916 (initialize_targets): Pass set_targetdebug when creating "set
1917 debug target".
1918
19192014-08-01 Joel Brobecker <brobecker@adacore.com>
1920
1921 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1922 if detecting a variable-sized field that is not the last field.
1923 Fix struct type length computation.
1924
19252014-08-01 Joel Brobecker <brobecker@adacore.com>
1926
1927 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1928 Add debug trace.
1929
19302014-08-01 Joel Brobecker <brobecker@adacore.com>
1931
1932 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1933 Remove "+ 8" offset in computation of CHAIN_VMA.
1934
19352014-07-31 Doug Evans <dje@google.com>
1936
1937 * inflow.c (child_terminal_inferior): Add comment.
1938 (child_terminal_ours_for_output): Add comment.
1939 (child_terminal_ours): Add comment.
1940 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1941 (linux_nat_terminal_ours): Add comment.
1942
19432014-07-31 Gary Benson <gbenson@redhat.com>
1944
1945 * common/btrace-common.h: Do not include defs.h or server.h.
1946 * nat/mips-linux-watch.h: Likewise.
1947 * gdb-dlfcn.h: Do not include defs.h.
1948 * tracefile.h: Likewise.
1949
19502014-07-30 Roland McGrath <mcgrathr@google.com>
1951
1952 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1953
19542014-07-30 Tom Tromey <tromey@redhat.com>
1955
1956 * bsd-kvm.c (bsd_kvm_open): Constify.
1957 * corelow.c (core_open): Constify.
1958 * ctf.c (ctf_open): Constify.
1959 * dbug-rom.c (dbug_open): Constify.
1960 * exec.c (exec_open): Constify.
1961 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1962 * microblaze-rom.c (picobug_open): Constify.
1963 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1964 Constify.
1965 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1966 * record-btrace.c (record_btrace_open): Constify.
1967 * record-full.c (record_full_core_open_1, record_full_open_1)
1968 (record_full_open): Constify.
1969 * remote-m32r-sdi.c (m32r_open): Constify.
1970 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1971 (rockhopper_open, lsi_open): Constify.
1972 * remote-sim.c (gdbsim_open): Constify.
1973 * remote.c (remote_open, extended_remote_open, remote_open_1):
1974 Constify.
1975 * target.h (struct target_ops) <to_open>: Make "arg" const.
1976 * tracefile-tfile.c (tfile_open): Constify.
1977
19782014-07-30 Tom Tromey <tromey@redhat.com>
1979
1980 * breakpoint.c (map_breakpoint_numbers): Update.
1981 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1982 (get_number_const): New function.
1983 (get_number): Rewrite using get_number_const.
1984 (init_number_or_range): Make "string" const.
1985 (number_is_in_list): Make "list" const.
1986 * cli/cli-utils.h (get_number_const): Declare.
1987 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1988 (init_number_or_range, number_is_in_list): Update.
1989 * printcmd.c (map_display_numbers): Update.
1990 * value.c (value_from_history_ref): Constify.
1991 * value.h (value_from_history_ref): Update.
1992
19932014-07-30 Tom Tromey <tromey@redhat.com>
1994
1995 * corefile.c (hook_type, call_extra_exec_file_hooks)
1996 (specify_exec_file_hook): Constify.
1997 * exec.c (exec_file_attach): Make "filename" const.
1998 * gdbcore.h (deprecated_exec_file_display_hook)
1999 (specify_exec_file_hook, exec_file_attach): Constify.
2000 * main.c (captured_main): Use catch_command_errors_const.
2001
20022014-07-30 Tom Tromey <tromey@redhat.com>
2003
2004 * target.c (open_target): New function.
2005 (add_target_with_completer, add_deprecated_target_alias): Use
2006 set_cmd_sfunc, set_cmd_context.
2007 (debug_to_open): Remove.
2008 (setup_target_debug): Update.
2009
20102014-07-30 Yao Qi <yao@codesourcery.com>
2011
2012 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2013 comments.
2014 * parse.c (exp_iterate): Update comments.
2015
20162014-07-30 Gary Benson <gbenson@redhat.com>
2017
2018 * common/common-defs.h: New file.
2019 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2020 * defs.h: Include common-defs.h.
2021 Do not include config.h or build-gnulib/config.h.
2022
20232014-07-30 Gary Benson <gbenson@redhat.com>
2024
2025 * common/common-utils.h: Do not include config.h.
2026 * nat/linux-btrace.h: Likewise.
2027
20282014-07-30 Gary Benson <gbenson@redhat.com>
2029
2030 * btrace.c: Include defs.h.
2031 * common/ptid.c: Include defs.h or server.h as appropriate.
2032 * nat/mips-linux-watch.c: Likewise.
2033
20342014-07-29 Tom Tromey <tromey@redhat.com>
2035
2036 * target.c (target_is_pushed): Simplify.
2037
20382014-07-29 Joel Brobecker <brobecker@adacore.com>
2039
2040 GDB 7.8 released.
2041
20422014-07-29 Yao Qi <yao@codesourcery.com>
2043
2044 PR gdb/17206
2045 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2046
20472014-07-28 Doug Evans <xdje42@gmail.com>
2048
2049 PR guile/17203
2050 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2051 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2052 parameters.
2053
20542014-07-28 Will Newton <will.newton@linaro.org>
2055
2056 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2057 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2058 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2059 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2060 (THUMB2_EABI_SYSCALL): Likewise.
2061 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2062 struct tramp_frame.
2063 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2064 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2065
20662014-07-27 Doug Evans <xdje42@gmail.com>
2067
2068 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2069
20702014-07-27 Doug Evans <xdje42@gmail.com>
2071
2072 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2073
20742014-07-26 Ludovic Courtès <ludo@gnu.org>
2075 Doug Evans <xdje42@gmail.com>
2076
2077 PR guile/17146
2078 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2079 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2080 * configure.ac: Try to use guild to compile an scm file, if it fails
2081 then disable guile support.
2082 * configure: Regenerate.
2083 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2084 GUILE_FILE_LIST.
2085 (GUILE_COMPILED_FILES): New variable.
2086 (GUILE_FILES) Update.
2087 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2088 (stamp-guile): Compile scm files.
2089 * guile/guile.c (boot_guile_support): New function.
2090 (standard_throw_args_p): New function.
2091 (print_standard_throw_error, print_throw_error): New functions.
2092 (handle_boot_error): New function.
2093 (initialize_scheme_side): Rewrite to call boot_guile_support.
2094 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2095 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2096
20972014-07-26 Ludovic Courtès <ludo@gnu.org>
2098 Doug Evans <xdje42@gmail.com>
2099
2100 PR guile/17146
2101 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2102 * guile/lib/gdb/support.scm: New file.
2103 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2104 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2105 All uses updated.
2106 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2107 All uses updated.
2108 (%assert-type): Ditto, and renamed to assert-type.
2109 (%exception-print-style): Delete.
2110
21112014-07-26 Doug Evans <xdje42@gmail.com>
2112
2113 PR build/17105
2114 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2115 * configure: Regenerate.
2116 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2117 PYTHON_FILES.
2118 (PYTHON_FILES): New variable.
2119 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2120 (GUILE_FILES): New variable.
2121 (stamp-python, install-python, uninstall-python): Handle empty
2122 file list.
2123 (stamp-guile, install-guile, uninstall-guile): Ditto.
2124
21252014-07-26 Doug Evans <xdje42@gmail.com>
2126
2127 PR guile/17177
2128 * guile/lib/gdb.scm (pretty-printers): Export.
2129 (set-pretty-printers!): Export.
2130 * guile/lib/gdb/printing.scm (gdb module): Update.
2131 (prepend-pretty-printer!, append-pretty-printer!): Update.
2132 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2133 (pretty_printer_list_var): Delete.
2134 (pretty_printer_list): New static global.
2135 (gdbscm_pretty_printers): New function.
2136 (gdbscm_set_pretty_printers_x): New function.
2137 (ppscm_find_pretty_printer_from_gdb): Update.
2138 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2139 (gdbscm_initialize_pretty_printers): Update.
2140
21412014-07-26 Doug Evans <xdje42@gmail.com>
2142
2143 PR 17185
2144 * configure.ac: Add check for header gc/gc.h.
2145 Add check for function setenv.
2146 * configure: Regenerate.
2147 * config.in: Regenerate.
2148 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2149
21502014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2151
2152 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2153 variation in gdbarch matching.
2154
21552014-07-25 Tom Tromey <tromey@redhat.com>
2156
2157 * exec.c (using_exec_ops): Remove.
2158 (exec_close_1): Update. Remove extraneous block, reindent.
2159 (add_target_sections): Use target_is_pushed.
2160
21612014-07-25 Pedro Alves <palves@redhat.com>
2162
2163 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2164 * monitor.c (monitor_create_inferior): Likewise.
2165 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2166 * remote-sim.c (gdbsim_create_inferior): Likewise.
2167 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2168 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2169 * windows-nat.c (do_initial_windows_stuff): Likewise.
2170
21712014-07-25 Pedro Alves <palves@redhat.com>
2172
2173 * NEWS: Mention signal passing and "signal" command changes.
2174 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2175 comment.
2176 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2177 call.
2178 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2179 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2180 (jump_command): Adjust clear_proceed_status call.
2181 (signal_command): Warn if other thread that are resumed have
2182 signals that will be delivered. Adjust clear_proceed_status call.
2183 (until_next_command, finish_command)
2184 (proceed_after_attach_callback, attach_command_post_wait)
2185 (attach_command): Adjust clear_proceed_status call.
2186 * infrun.c (proceed_after_vfork_done): Likewise.
2187 (proceed_after_attach_callback): Adjust comment.
2188 (clear_proceed_status_thread): Clear stop_signal if not in pass
2189 state.
2190 (clear_proceed_status_callback): Delete.
2191 (clear_proceed_status): New 'step' parameter. Only clear the
2192 proceed status of threads the command being prepared is about to
2193 resume.
2194 (proceed): If passed in an explicit signal, override stop_signal
2195 with it. Don't pass the last stop signal to the thread we're
2196 resuming.
2197 (init_wait_for_inferior): Adjust clear_proceed_status call.
2198 (switch_back_to_stepped_thread): Clear the signal if it should not
2199 be passed.
2200 * infrun.h (clear_proceed_status): New 'step' parameter.
2201 (user_visible_resume_ptid): Add comment.
2202 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2203 signal is in pass state.
2204 * remote.c (append_pending_thread_resumptions): Likewise.
2205 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2206
22072014-07-25 Tom Tromey <tromey@redhat.com>
2208
2209 * target.h (target_stopped_data_address)
2210 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2211 parentheses.
2212
22132014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2214
2215 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2216 comments.
2217 (avr_pointer_to_address): Likewise.
2218
22192014-07-24 Tom Tromey <tromey@redhat.com>
2220
2221 * monitor.c (compile_pattern): Update.
2222 * target.h (struct target_ops) <to_shortname, to_longname,
2223 to_doc>: Now const.
2224
22252014-07-24 Tom Tromey <tromey@redhat.com>
2226
2227 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2228 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2229 (add_info_alias, add_com): Make "doc" const.
2230 (print_doc_line): Make "str" const.
2231 (delete_cmd): Update.
2232 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2233 (print_doc_line): Update.
2234 * cli/cli-script.c (document_command): Update.
2235 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2236 (add_com, add_info, add_info_alias): Update.
2237 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2238 * python/py-cmd.c (cmdpy_destroyer): Update.
2239
22402014-07-24 Tom Tromey <tromey@redhat.com>
2241
2242 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2243 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2244 (help_cmd_list): Constify.
2245 (lookup_cmd): Update.
2246 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2247 const.
2248 (help_cmd_list, apropos_cmd): Update.
2249 * cli/cli-script.c (show_user): Update.
2250 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2251 * cli/cli-setshow.h (cmd_show_list): Update.
2252 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2253 (cmd_show_list): Update.
2254 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2255 * python/py-cmd.c (cmdpy_destroyer): Update.
2256
22572014-07-24 Tom Tromey <tromey@redhat.com>
2258
2259 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2260 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2261 const.
2262 * command.h (deprecate_cmd): Update.
2263 * maint.c (maintenance_do_deprecate): Add casts.
2264
22652014-07-24 Tom Tromey <tromey@redhat.com>
2266
2267 * cli/cli-decode.c (help_cmd): Make parameter "const".
2268 * cli/cli-decode.h (help_cmd): Update.
2269
22702014-07-24 Tom Tromey <tromey@redhat.com>
2271
2272 * stack.c (up_silently_base, down_silently_base): Make argument
2273 const.
2274
22752014-07-24 Tom Tromey <tromey@redhat.com>
2276
2277 * solib.c (solib_add): Make "pattern" const.
2278 * solib.h (solib_add): Update.
2279
22802014-07-24 Tom Tromey <tromey@redhat.com>
2281
2282 * remote.c (remote_serial_open, print_packet, putpkt)
2283 (putpkt_binary): Constify.
2284 * remote.h (putpkt): Update.
2285
22862014-07-24 Tom Tromey <tromey@redhat.com>
2287
2288 * monitor.c (monitor_open): Make "args" const.
2289 * monitor.h (monitor_open): Update.
2290
22912014-07-24 Tom Tromey <tromey@redhat.com>
2292
2293 * maint.c (match_bfd_flags): Make "string" const.
2294 (print_bfd_section_info): Remove casts.
2295 (print_objfile_section_info): Make "string" const.
2296
22972014-07-24 Tom Tromey <tromey@redhat.com>
2298
2299 * inf-child.c (inf_child_open_target): Make "arg" const.
2300 * inf-child.h (inf_child_open_target): Update.
2301
23022014-07-24 Tom Tromey <tromey@redhat.com>
2303
2304 * environ.c (unset_in_environ): Make "var" const.
2305 * environ.h (unset_in_environ): Update.
2306
23072014-07-24 Tom Tromey <tromey@redhat.com>
2308
2309 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2310 Make "cmd" const.
2311 (scan_filename_with_cleanup): Likewise.
2312 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2313 Make arguments const.
2314 (restore_command): Update.
2315
23162014-07-24 Pedro Alves <palves@redhat.com>
2317
2318 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2319
23202014-07-24 Tom Tromey <tromey@redhat.com>
2321 Gary Benson <gbenson@redhat.com>
2322
2323 * nat/linux-ptrace.c (additional_flags): New global.
2324 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2325 additional_flags; don't check GDBSERVER.
2326 (linux_ptrace_set_additional_flags): New function.
2327 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2328 Declare.
2329 * linux-nat.c (_initialize_linux_nat): Call
2330 linux_ptrace_set_additional_flags.
2331
23322014-07-24 Tom Tromey <tromey@redhat.com>
2333
2334 * make-target-delegates (munge_type, write_debugmethod): New
2335 functions.
2336 (debug_names): New global.
2337 ($TARGET_DEBUG_PRINTER): New global.
2338 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2339 name.
2340 Write debug methods. Generate init_debug_target.
2341 * target-debug.h: New file.
2342 * target-delegates.c: Rebuild.
2343 * target.c: Include target-debug.h.
2344 (debug_target): Hoist definition.
2345 (target_kill, target_get_section_table, target_memory_map)
2346 (target_flash_erase, target_flash_done, target_detach)
2347 (target_disconnect, target_wait, target_resume)
2348 (target_pass_signals, target_program_signals, target_follow_fork)
2349 (target_mourn_inferior, target_search_memory)
2350 (target_thread_address_space, target_close)
2351 (target_find_new_threads, target_core_of_thread)
2352 (target_verify_memory, target_insert_mask_watchpoint)
2353 (target_remove_mask_watchpoint): Remove targetdebug code.
2354 (debug_to_post_attach, debug_to_prepare_to_store)
2355 (debug_to_files_info, debug_to_insert_breakpoint)
2356 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2357 (debug_to_region_ok_for_hw_watchpoint)
2358 (debug_to_can_accel_watchpoint_condition)
2359 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2360 (debug_to_watchpoint_addr_within_range)
2361 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2362 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2363 (debug_to_terminal_init, debug_to_terminal_inferior)
2364 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2365 (debug_to_terminal_save_ours, debug_to_terminal_info)
2366 (debug_to_load, debug_to_post_startup_inferior)
2367 (debug_to_insert_fork_catchpoint)
2368 (debug_to_remove_fork_catchpoint)
2369 (debug_to_insert_vfork_catchpoint)
2370 (debug_to_remove_vfork_catchpoint)
2371 (debug_to_insert_exec_catchpoint)
2372 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2373 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2374 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2375 (setup_target_debug): Call init_debug_target.
2376 * target.h (TARGET_DEBUG_PRINTER): New macro.
2377 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2378 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2379
23802014-07-24 Gary Benson <gbenson@redhat.com>
2381
2382 * exceptions.h (throw_vfatal): Renamed to...
2383 (throw_vquit): New declaration.
2384 (throw_quit): Likewise.
2385 * exceptions.c (throw_vfatal): Renamed to...
2386 (throw_vquit): New function.
2387 (throw_quit): Likewise.
2388 (throw_error): Call throw_verror rather than throw_it.
2389 * utils.h (vfatal): Removed.
2390 (fatal): Likewise.
2391 * utils.c (vfatal): Removed.
2392 (fatal): Likewise.
2393 (internal_verror): Replaced call to fatal with call to throw_quit.
2394 (quit): Replaced calls to fatal with calls to throw_quit.
2395
23962014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2397
2398 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2399 target_read_code.
2400
24012014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2402
2403 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2404 less than zero in conditional expression.
2405
24062014-07-23 Tom Tromey <tromey@redhat.com>
2407
2408 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2409 ($INTRO_PART): Don't match whitespace.
2410 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2411 argument matching.
2412 ($METHOD): Add $METHOD_TRAILER.
2413 (trim): Rewrite.
2414 (scan_target_h): New sub.
2415 Change main loop not to collect state.
2416 * target-delegates.c: Rebuild.
2417
24182014-07-23 Gary Benson <gbenson@redhat.com>
2419
2420 * cp-support.c (gdb_demangle): Fix build on systems without
2421 sigaltstack.
2422
24232014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2424
2425 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2426 for reference entry value target data value.
2427
24282014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2429
2430 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2431 value_available_contents_eq.
2432
24332014-07-22 Pedro Alves <palves@redhat.com>
2434
2435 * value.c (allocate_optimized_out_value): Don't mark value as
2436 non-lazy.
2437
24382014-07-22 Jiong Wang <jiong.wang@arm.com>
2439
2440 * MAINTAINERS (Write After Approval): Update my email address.
2441
24422014-07-20 Doug Evans <dje@google.com>
2443
2444 PR server/17147
2445 * remote.c (putpkt_binary): Add text to error message.
2446
24472014-07-20 Yao Qi <yao@codesourcery.com>
2448
2449 * eval.c: Remove "Chill" from comments.
2450 * gdbtypes.h: Likewise.
2451 * symtab.h: Likewise.
2452
24532014-07-20 Yao Qi <yao@codesourcery.com>
2454
2455 * std-operator.def: Update comments to TERNOP_SLICE.
2456
24572014-07-20 Yao Qi <yao@codesourcery.com>
2458
2459 * std-operator.def: Remove BINOP_RANGE.
2460 * breakpoint.c (watchpoint_exp_is_const): Update.
2461 * expprint.c (dump_subexp_body_standard): Likewise.
2462 * eval.c (init_array_element): Remove dead code.
2463 (evaluate_subexp_standard): Likewise.
2464
24652014-07-20 Yao Qi <yao@codesourcery.com>
2466
2467 * std-operator.def: Remove BINOP_IN.
2468 * breakpoint.c (watchpoint_exp_is_const): Update.
2469 * eval.c (evaluate_subexp_standard): Likewise.
2470 * expprint.c (dump_subexp_body_standard): Likewise.
2471
24722014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2473
2474 * microblaze-tdep.c (microblaze_register_names): Add
2475 the rshr and rslr register names.
2476 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2477 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2478 Use of tdesc_numbered_register. Use of
2479 microblaze_register_g_packet_guesses. Use of
2480 tdesc_use_registers. Use of set_gdbarch_register_type.
2481 (microblaze_register_g_packet_guesses): New.
2482 * microblaze-tdep.h (microblaze_reg_num): Add
2483 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2484 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2485 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2486 * features/microblaze-core.xml: New file.
2487 * features/microblaze-stack-protect.xml: New file.
2488 * features/microblaze-with-stack-protect.c: New file.
2489 * features/microblaze-with-stack-protect.xml: New file.
2490 * features/microblaze.xml: New file.
2491 * features/microblaze.c: New file.
2492 * features/Makefile (microblaze-with-stack-protect): Add
2493 microblaze-with-stack-protect microblaze and microblaze-expedite.
2494 * regformats/microblaze-with-stack-protect.dat: New file.
2495 * regformats/microblaze.dat: New file.
2496 * doc/gdb.texinfo (MicroBlaze Features): Added.
2497
24982014-07-18 Tom Tromey <tromey@redhat.com>
2499
2500 * exec.c (exec_ops): Now static.
2501 * exec.h (exec_ops): Don't declare.
2502
25032014-07-18 Tom Tromey <tromey@redhat.com>
2504
2505 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2506 to find_target_beneath.
2507 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2508 find_target_beneath.
2509 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2510
25112014-07-18 Tom Tromey <tromey@redhat.com>
2512
2513 PR gdb/17130:
2514 * utils.c (quit): Use target_supports_terminal_ours.
2515 * target.h (target_supports_terminal_ours): Declare.
2516 * target.c (target_supports_delete_record): Don't check
2517 to_delete_record against NULL.
2518 (target_supports_terminal_ours): New function.
2519
25202014-07-18 Tom Tromey <tromey@redhat.com>
2521
2522 PR gdb/17130:
2523 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2524 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2525 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2526 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2527 * windows-nat.c (windows_xfer_partial): Always delegate.
2528 * record-btrace.c (record_btrace_xfer_partial): Simplify
2529 delegation.
2530 (record_btrace_fetch_registers, record_btrace_store_registers)
2531 (record_btrace_prepare_to_store, record_btrace_resume)
2532 (record_btrace_wait, record_btrace_find_new_threads)
2533 (record_btrace_thread_alive): Likewise.
2534 * procfs.c (procfs_xfer_partial): Always delegate.
2535 * corelow.c (core_xfer_partial): Always delegate.
2536 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2537
25382014-07-18 Tom Tromey <tromey@redhat.com>
2539
2540 * exec.c (exec_make_note_section): Move earlier.
2541
25422014-07-17 Doug Evans <dje@google.com>
2543
2544 PR gdb/17170
2545 * maint.c (count_symtabs_and_blocks): Handle NULL
2546 current_program_space.
2547 (report_command_stats): Check global enabled flag in addition to
2548 recorded enabled flag.
2549 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2550
25512014-07-16 Pedro Alves <palves@redhat.com>
2552
2553 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2554
25552014-07-16 Tom Tromey <tromey@redhat.com>
2556
2557 * target.h (struct target_ops) <to_delete_record>: Reformat
2558 comment.
2559
25602014-07-16 Tom Tromey <tromey@redhat.com>
2561
2562 * target-delegates.c: Rebuild.
2563
25642014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2565
2566 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2567 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2568 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2569 (avr_pointer_to_address): Likewise.
2570 (avr_address_class_type_flags): New function.
2571 (avr_address_class_type_flags_to_name): Likewise.
2572 (avr_address_class_name_to_type_flags): Likewise.
2573 (avr_gdbarch_init): Set address_class_type_flags,
2574 address_class_type_flags_to_name and
2575 address_class_name_to_type_flags.
2576
25772014-07-15 Pedro Alves <palves@redhat.com>
2578
2579 * linux-nat.c (kill_callback): Save errno and work with saved
2580 copy.
2581
25822014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2583
2584 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2585
25862014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2587
2588 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2589 breakpoint support correctly.
2590
25912014-07-14 Pedro Alves <palves@redhat.com>
2592
2593 * utils.c (prompt_for_continue): Call target_terminal_ours.
2594
25952014-07-14 Pedro Alves <palves@redhat.com>
2596
2597 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2598 catch_errors. Don't re-enable stdin or notify observers where,
2599 and rethrow error.
2600 (fetch_inferior_event_wrapper): Delete.
2601
26022014-07-14 Pedro Alves <palves@redhat.com>
2603
2604 PR gdb/17072
2605 * top.c: Include "inf-loop.h".
2606 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2607 field.
2608 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2609 was async before.
2610 (gdb_readline_wrapper): Store whether the target is async, and
2611 make it sync.
2612
26132014-07-14 Pedro Alves <palves@redhat.com>
2614
2615 PR gdb/17072
2616 * top.c (gdb_readline_wrapper_line): Tweak comment.
2617 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2618 the input handler callback.
2619
26202014-07-14 Pedro Alves <palves@redhat.com>
2621
2622 PR gdb/17072
2623 * main.c: Include event-top.h.
2624 (handle_command_errors): New function.
2625 (catch_command_errors, catch_command_errors_const): Use it.
2626
26272014-07-14 Pedro Alves <palves@redhat.com>
2628
2629 * exceptions.c (catch_command_errors, catch_command_errors_const):
2630 Moved to main.c.
2631 * exceptions.h (catch_command_errors_ftype)
2632 (catch_command_errors_const_ftype): Moved to main.c.
2633 (catch_command_errors, catch_command_errors_const): Delete
2634 declarations.
2635 * main.c (catch_command_errors_ftype)
2636 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2637 (catch_command_errors, catch_command_errors_const)): Moved here
2638 from exceptions.c and make static.
2639
26402014-07-14 Pedro Alves <palves@redhat.com>
2641
2642 * exceptions.c (print_any_exception): Delete.
2643 (catch_exceptions_with_msg): Use exception_print instead of
2644 print_any_exception.
2645 (catch_errors): Use exception_fprintf instead of
2646 print_any_exception.
2647 (catch_command_errors, catch_command_errors_const): Use
2648 exception_print instead of print_any_exception.
2649
26502014-07-14 Pedro Alves <palves@redhat.com>
2651
2652 * infcall.c (run_inferior_call): Set 'sync_execution' while
2653 running the inferior call.
2654
26552014-07-14 Pedro Alves <palves@redhat.com>
2656
2657 * value.c (value_contents_equal): Delete function.
2658 * value.h (value_contents_equal): Delete declaration.
2659
26602014-07-14 Tom Tromey <tromey@redhat.com>
2661
2662 PR exp/17106:
2663 * gdbtypes.c (is_dynamic_type_internal): New function, from
2664 is_dynamic_type.
2665 (is_dynamic_type): Rewrite.
2666 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2667 (resolve_dynamic_struct): Likewise.
2668 (resolve_dynamic_type_internal): New function, from
2669 resolve_dynamic_type.
2670 (resolve_dynamic_type): Rewrite.
2671
26722014-07-14 Tom Tromey <tromey@redhat.com>
2673
2674 * target.c (target_require_runnable): Also check record_stratum.
2675 Update comment.
2676
26772014-07-11 Yao Qi <yao@codesourcery.com>
2678
2679 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2680 thumb_instruction_restores_sp return true.
2681
26822014-07-11 Yao Qi <yao@codesourcery.com>
2683
2684 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2685 (thumb_in_function_epilogue_p): Call
2686 thumb_instruction_restores_sp.
2687
26882014-07-11 Yao Qi <yao@codesourcery.com>
2689
2690 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2691 'add sp, #imm'.
2692 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2693
26942014-07-11 Gary Benson <gbenson@redhat.com>
2695
2696 * amd64-linux-nat.c (gdbcore.h): Remove include.
2697 (regset.h): Likewise.
2698 (nat/linux-btrace.h): Likewise.
2699 (btrace.h): Likewise.
2700 (gdb_assert.h): Likewise.
2701 (string.h): Likewise.
2702 (sys/uio.h): Likewise.
2703 (sys/debugreg.h): Likewise.
2704 (sys/syscall.h): Likewise.
2705 (sys/procfs.h): Likewise.
2706 (sys/user.h): Likewise.
2707 (asm/ptrace.h): Likewise.
2708 (i386-nat.h): Likewise.
2709 * i386-linux-nat.c (i386-nat.h): Likewise.
2710 (regset.h): Likewise.
2711 (target.h): Likewise.
2712 (linux-nat.h): Likewise.
2713 (nat/linux-btrace.h): Likewise.
2714 (btrace.h): Likewise.
2715 (gdb_assert.h): Likewise.
2716 (string.h): Likewise.
2717 (sys/uio.h): Likewise.
2718 (sys/user.h): Likewise.
2719 (sys/procfs.h): Likewise.
2720 (sys/reg.h): Likewise.
2721 (sys/debugreg.h): Likewise.
2722 (ORIG_EAX): Remove definition.
2723
27242014-07-11 Gary Benson <gbenson@redhat.com>
2725
2726 * i386-linux-nat.h: New file.
2727 * x86-linux-nat.h: Likewise.
2728 * x86-linux-nat.c: Likewise.
2729 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2730 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2731 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2732 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2733 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2734 (PTRACE_SETREGSET): Likewise.
2735 (arch_lwp_info): Now in x86-linux-nat.c.
2736 (have_ptrace_getregset): Now in x86-linux-nat.h.
2737 (x86_linux_dr_get): Now in x86-linux-nat.c.
2738 (x86_linux_dr_set): Likewise.
2739 (x86_linux_dr_get_addr): Likewise.
2740 (x86_linux_dr_get_control): Likewise.
2741 (x86_linux_dr_get_status): Likewise.
2742 (update_debug_registers_callback): Likewise.
2743 (x86_linux_dr_set_control): Likewise.
2744 (x86_linux_dr_set_addr): Likewise.
2745 (x86_linux_prepare_to_resume): Likewise.
2746 (x86_linux_new_thread): Likewise.
2747 (x86_linux_new_fork): Likewise.
2748 (x86_linux_get_thread_area): Likewise.
2749 (super_post_startup_inferior): Likewise.
2750 (x86_linux_child_post_startup_inferior): Likewise.
2751 (AMD64_LINUX_USER64_CS): Likewise.
2752 (AMD64_LINUX_X32_DS): Likewise.
2753 (x86_linux_read_description): Likewise.
2754 (x86_linux_enable_btrace): Likewise.
2755 (x86_linux_disable_btrace): Likewise.
2756 (x86_linux_teardown_btrace): Likewise.
2757 (x86_linux_read_btrace): Likewise.
2758 (x86_linux_create_target): Likewise.
2759 (x86_linux_add_target): Likewise.
2760 * i386-linux-nat.c (x86-linux-nat.h): New include.
2761 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2762 (PTRACE_SETREGSET): Likewise.
2763 (arch_lwp_info): Now in x86-linux-nat.c.
2764 (have_ptrace_getregset): Now in x86-linux-nat.h.
2765 (x86_linux_dr_get): Now in x86-linux-nat.c.
2766 (x86_linux_dr_set): Likewise.
2767 (x86_linux_dr_get_addr): Likewise.
2768 (x86_linux_dr_get_control): Likewise.
2769 (x86_linux_dr_get_status): Likewise.
2770 (update_debug_registers_callback): Likewise.
2771 (x86_linux_dr_set_control): Likewise.
2772 (x86_linux_dr_set_addr): Likewise.
2773 (x86_linux_prepare_to_resume): Likewise.
2774 (x86_linux_new_thread): Likewise.
2775 (x86_linux_new_fork): Likewise.
2776 (x86_linux_get_thread_area): Likewise.
2777 (super_post_startup_inferior): Likewise.
2778 (x86_linux_child_post_startup_inferior): Likewise.
2779 (AMD64_LINUX_USER64_CS): Likewise.
2780 (AMD64_LINUX_X32_DS): Likewise.
2781 (x86_linux_read_description): Likewise.
2782 (x86_linux_enable_btrace): Likewise.
2783 (x86_linux_disable_btrace): Likewise.
2784 (x86_linux_teardown_btrace): Likewise.
2785 (x86_linux_read_btrace): Likewise.
2786 (x86_linux_create_target): Likewise.
2787 (x86_linux_add_target): Likewise.
2788
27892014-07-11 Gary Benson <gbenson@redhat.com>
2790
2791 * amd64-linux-nat.c: Comment and whitespace changes.
2792 * i386-linux-nat.c: Comment and whitespace changes.
2793
27942014-07-11 Gary Benson <gbenson@redhat.com>
2795
2796 * amd64-linux-nat.c (x86_linux_create_target): New function.
2797 (x86_linux_add_target): Likewise.
2798 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2799 * i386-linux-nat.c (x86_linux_create_target): New function.
2800 (x86_linux_add_target): Likewise.
2801 (_initialize_i386_linux_nat): Delegate to the above new functions.
2802
28032014-07-11 Gary Benson <gbenson@redhat.com>
2804
2805 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2806 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2807 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2808 (ps_get_thread_area): Delegate to the above.
2809
28102014-07-11 Gary Benson <gbenson@redhat.com>
2811
2812 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2813 x86_linux_read_description. All uses updated. amd64-specific
2814 code conditionalized. Conditionalized i386-specific code added.
2815 Redundant cast removed.
2816 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2817 x86_linux_read_description. All uses updated. i386-specific
2818 code conditionalized. Conditionalized amd64-specific code added.
2819 One sizeof replaced with the actual type it is describing.
2820
28212014-07-11 Gary Benson <gbenson@redhat.com>
2822
2823 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2824 x86_linux_dr_get. All uses updated.
2825 (amd64_linux_dr_set): Renamed to
2826 x86_linux_dr_set. All uses updated.
2827 (amd64_linux_dr_get_addr): Renamed to
2828 x86_linux_dr_get_addr. All uses updated.
2829 (amd64_linux_dr_get_control): Renamed to
2830 x86_linux_dr_get_control. All uses updated.
2831 (amd64_linux_dr_get_status): Renamed to
2832 x86_linux_dr_get_status. All uses updated.
2833 (amd64_linux_dr_set_control): Renamed to
2834 x86_linux_dr_set_control. All uses updated.
2835 (amd64_linux_dr_set_addr): Renamed to
2836 x86_linux_dr_set_addr. All uses updated.
2837 (amd64_linux_prepare_to_resume): Renamed to
2838 x86_linux_prepare_to_resume. All uses updated.
2839 (amd64_linux_new_thread): Renamed to
2840 x86_linux_new_thread. All uses updated.
2841 (amd64_linux_new_fork): Renamed to
2842 x86_linux_new_fork. All uses updated.
2843 (amd64_linux_child_post_startup_inferior): Renamed to
2844 x86_linux_child_post_startup_inferior. All uses updated.
2845 (amd64_linux_enable_btrace): Renamed to
2846 x86_linux_enable_btrace. All uses updated.
2847 (amd64_linux_disable_btrace): Renamed to
2848 x86_linux_disable_btrace. All uses updated.
2849 (amd64_linux_teardown_btrace): Renamed to
2850 x86_linux_teardown_btrace. All uses updated.
2851 (amd64_linux_read_btrace): Renamed to
2852 x86_linux_read_btrace. All uses updated.
2853 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2854 x86_linux_dr_get. All uses updated.
2855 (i386_linux_dr_set): Renamed to
2856 x86_linux_dr_set. All uses updated.
2857 (i386_linux_dr_get_addr): Renamed to
2858 x86_linux_dr_get_addr. All uses updated.
2859 (i386_linux_dr_get_control): Renamed to
2860 x86_linux_dr_get_control. All uses updated.
2861 (i386_linux_dr_get_status): Renamed to
2862 x86_linux_dr_get_status. All uses updated.
2863 (i386_linux_dr_set_control): Renamed to
2864 x86_linux_dr_set_control. All uses updated.
2865 (i386_linux_dr_set_addr): Renamed to
2866 x86_linux_dr_set_addr. All uses updated.
2867 (i386_linux_prepare_to_resume): Renamed to
2868 x86_linux_prepare_to_resume. All uses updated.
2869 (i386_linux_new_thread): Renamed to
2870 x86_linux_new_thread. All uses updated.
2871 (i386_linux_new_fork): Renamed to
2872 x86_linux_new_fork. All uses updated.
2873 (i386_linux_child_post_startup_inferior): Renamed to
2874 x86_linux_child_post_startup_inferior. All uses updated.
2875 (i386_linux_enable_btrace): Renamed to
2876 x86_linux_enable_btrace. All uses updated.
2877 (i386_linux_disable_btrace): Renamed to
2878 x86_linux_disable_btrace. All uses updated.
2879 (i386_linux_teardown_btrace): Renamed to
2880 x86_linux_teardown_btrace. All uses updated.
2881 (i386_linux_read_btrace): Renamed to
2882 x86_linux_read_btrace. All uses updated.
2883
28842014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2885
2886 * remote.c (extended_remote_post_attach): New function.
2887 (init_extended_remote_ops): Install it as to_post_attach method.
2888
28892014-07-09 Pedro Alves <palves@redhat.com>
2890
2891 * infcmd.c (attach_command_post_wait): Don't call
2892 target_terminal_inferior here.
2893 (attach_command): Call it here instead.
2894
28952014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2896
2897 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2898 field.
2899 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2900 from varobj.c, with additional checks.
2901 (c_varobj_ops): Fill in is_path_expr_parent field.
2902 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2903 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2904 field.
2905 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2906 ops method.
2907 (varobj_default_is_path_expr_parent): New function.
2908 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2909 (varobj_default_is_path_expr_parent): Declare new function.
2910
29112014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2912
2913 * infcmd.c (finish_backward): Turn internal error into normal error.
2914
29152014-07-07 Pedro Alves <palves@redhat.com>
2916
2917 PR gdb/17096
2918 * remote.c (async_handle_remote_sigint)
2919 (async_handle_remote_sigint_twice): Call
2920 gdb_call_async_signal_handler instead of
2921 mark_async_signal_handler.
2922
29232014-07-07 Tom Tromey <tromey@redhat.com>
2924
2925 * target-delegates.c: Rebuild.
2926 * target.c (target_info_record): Remove.
2927 * record.c (info_record_command): Unconditionally call
2928 to_info_record.
2929 * target.h (struct target_ops) <to_info_record>: Use
2930 TARGET_DEFAULT_IGNORE.
2931 (target_info_record): Remove.
2932
29332014-07-07 Tom Tromey <tromey@redhat.com>
2934
2935 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2936 TARGET_DEFAULT_NORETURN.
2937 * target.c (generic_tls_error): New function.
2938 (target_translate_tls_address): Don't search target stack.
2939 * target-delegates.c: Rebuild.
2940 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2941 stack.
2942 * linux-thread-db.c (thread_db_get_thread_local_address):
2943 Unconditionally call beneath target.
2944
29452014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2946
2947 * cli/cli-logging.c (pop_output_files): Assign targerr to
2948 gdb_stdtargerr.
2949
29502014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2951
2952 * MAINTAINERS (Write After Approval): Update my email address.
2953
29542014-07-02 Gary Benson <gbenson@redhat.com>
2955
2956 * proc-service.c (ps_xfer_memory): Update comment.
2957 (ps_pstop): Remove unused function.
2958 (ps_pcontinue): Likewise.
2959 (ps_lstop): Likewise.
2960 (ps_lcontinue): Likewise.
2961 (ps_lgetxregsize): Likewise.
2962 (ps_lgetxregs): Likewise.
2963 (ps_lsetxregs): Likewise.
2964 (ps_plog): Likewise.
2965 (ps_ptread): Likewise.
2966 (ps_ptwrite): Likewise.
2967
29682014-07-01 Mark Wielaard <mjw@redhat.com>
2969
2970 * dwarf2read.c (add_array_cv_type): New function.
2971 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2972 (read_tag_volatile_type): Likewise.
2973
29742014-07-01 Tom Tromey <tromey@redhat.com>
2975
2976 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2977 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2978 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2979 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2980 * command.h (cmd_cfunc_ftype): Move earlier.
2981 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2982 (add_com, add_info): Use cmd_cfunc_ftype.
2983
29842014-06-30 Tom Tromey <tromey@redhat.com>
2985
2986 * symtab.c (operator_chars): Make parameters and return type
2987 const.
2988 (file_matches): Make "files" const.
2989 (struct search_symbols_data) <files>: Now const.
2990 (search_symbols): Make "regexp" and "files" parameters const.
2991 Update.
2992 (symtab_symbol_info): Remove cast.
2993 (rbreak_command): Update.
2994 * symtab.h (search_symbols): Update.
2995
29962014-06-27 Yao Qi <yao@codesourcery.com>
2997
2998 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2999 Change parameter type to 'struct thread_info *'. Caller
3000 updated.
3001 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3002 Update declaration.
3003 * dummy-frame.c (struct dummy_frame_id): New.
3004 (dummy_frame_id_eq): New function.
3005 (struct dummy_frame) <id>: Change its type to 'struct
3006 dummy_frame_id'.
3007 (dummy_frame_push): Add parameter ptid and save it in
3008 dummy_frame_id.
3009 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3010 inferior_ptid.
3011 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3012 to inferior_ptid.
3013 (lookup_dummy_frame): Change parameter type to 'struct
3014 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3015 instead of frame_id_eq.
3016 (dummy_frame_pop): Add parameter ptid. Callers updated.
3017 Update comments. Compose dummy_frame_id and pass it to
3018 lookup_dummy_frame.
3019 (dummy_frame_discard): Add parameter ptid.
3020 (dummy_frame_sniffer): Compose dummy_frame_id and call
3021 dummy_frame_id_eq instead of frame_id_eq.
3022 (fprint_dummy_frames): Print ptid.
3023 * dummy-frame.h: Remove comments.
3024 (dummy_frame_push): Add ptid in declaration.
3025 (dummy_frame_pop, dummy_frame_discard): Likewise.
3026
30272014-06-26 Tom Tromey <tromey@redhat.com>
3028
3029 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3030 * command.h (error_no_arg): Update.
3031
30322014-06-26 Tom Tromey <tromey@redhat.com>
3033
3034 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3035 (do_show_command): Make "arg" const.
3036 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3037
30382014-06-26 Tom Tromey <tromey@redhat.com>
3039
3040 * record-full.c (record_full_get_bookmark): Make "args" const.
3041 (record_full_goto_bookmark): Make "raw_bookmark" const.
3042 * record.c (record_goto): New function.
3043 (cmd_record_goto): Use it. Now static.
3044 * record.h (record_goto): Declare.
3045 (cmd_record_goto): Remove declaration.
3046 * target-delegates.c: Rebuild.
3047 * target.h (struct target_ops) <to_get_bookmark,
3048 to_goto_bookmark>: Make parameter const.
3049
30502014-06-26 Tom Tromey <tromey@redhat.com>
3051
3052 * defs.h (generic_load): Update.
3053 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3054 * monitor.c (monitor_load): Make "args" const.
3055 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3056 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3057 const.
3058 (mips_load): Make "file" const.
3059 * remote-sim.c (gdbsim_load): Make "args" const.
3060 * remote.c (remote_load): Make "name" const.
3061 * symfile.c (generic_load): Make "args" const.
3062 * target-delegates.c: Rebuild.
3063 * target.c (target_load): Make "arg" const.
3064 (debug_to_load): Make "args" const.
3065 * target.h (struct target_ops) <to_load>: Make parameter const.
3066 (target_load): Update.
3067
30682014-06-26 Tom Tromey <tromey@redhat.com>
3069
3070 PR symtab/16902:
3071 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3072 (dwarf2_physname, read_partial_die)
3073 (guess_partial_die_structure_name, fixup_partial_die)
3074 (guess_full_die_structure_name, anonymous_struct_prefix)
3075 (dwarf2_name): Use per-BFD obstack.
3076
30772014-06-26 Yao Qi <yao@codesourcery.com>
3078
3079 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3080 dummyframe and this_id into inner block below.
3081
30822014-06-26 Yao Qi <yao@codesourcery.com>
3083
3084 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3085 with "signal_pass[0]" in the initialization of signal_pass.
3086
30872014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3088
3089 * record-btrace.c (record_btrace_generating_corefile)
3090 (record_btrace_prepare_to_generate_core)
3091 (record_btrace_done_generating_core): New.
3092 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3093 (record_btrace_store_registers, record_btrace_prepare_to_store):
3094 Forward request when generating a core file.
3095 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3096 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3097 to_done_generating_core.
3098
30992014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3100
3101 * target.h (target_ops) <to_prepare_to_generate_core>
3102 <to_done_generating_core>: New.
3103 (target_prepare_to_generate_core, target_done_generating_core): New.
3104 * target.c (target_prepare_to_generate_core)
3105 (target_done_generating_core): New.
3106 * target-delegates.c: Regenerate.
3107 * gcore.c: (write_gcore_file): Rename to ...
3108 (write_gcore_file_1): ...this.
3109 (write_gcore_file): Call target_prepare_to_generate_core
3110 and target_done_generating_core.
3111
31122014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3113
3114 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3115 * gcore.c (write_gcore_file): Free memory returned from
3116 make_corefile_notes.
3117 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3118 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3119
31202014-06-24 Yao Qi <yao@codesourcery.com>
3121
3122 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3123 (arm_linux_init_abi): Set skip_trampoline_code with
3124 gdbarch_skip_trampoline_code instead of
3125 find_solib_trampoline_target.
3126
31272014-06-24 Yao Qi <yao@codesourcery.com>
3128
3129 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3130 arm_skip_bx_reg returns non-zero.
3131
31322014-06-24 Yao Qi <yao@codesourcery.com>
3133
3134 * arm-tdep.c (arm_skip_bx_reg): New function.
3135 (arm_skip_stub): Call arm_skip_bx_reg.
3136
31372014-06-23 Don Breazeal <donb@codesourcery.com>
3138
3139 * MAINTAINERS: Add myself as write-after-approval maintainer.
3140
31412014-06-23 Pedro Alves <palves@redhat.com>
3142
3143 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3144 DR_CONTROL before setting DR0..DR3.
3145 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3146 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3147 bits of DR_CONTROL related to the debug register slot being
3148 disabled. If all slots are vacant, clear local slowdown as well,
3149 and assert DR_CONTROL is 0.
3150
31512014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3152
3153 * python/lib/gdb/command/xmethods.py
3154 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3155 current progspace only if the string "progspace" matches LOCUS_RE.
3156
31572014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3158
3159 Fix --with-system-readline with readline-6.3 patch 5.
3160 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3161 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3162 types.
3163
31642014-06-20 Tom Tromey <tromey@redhat.com>
3165
3166 * dwarf2read.c (dw2_get_real_path): Use correct type in
3167 OBSTACK_CALLOC.
3168 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3169
31702014-06-20 Gary Benson <gbenson@redhat.com>
3171
3172 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3173 * common/glibc_thread_db.h: Likewise.
3174 * common/i386-cpuid.h: Likewise.
3175 * common/i386-gcc-cpuid.h: Likewise.
3176 * common/linux-btrace.h: Likewise.
3177 * common/linux-osdata.h: Likewise.
3178 * common/linux-procfs.h: Likewise.
3179 * common/linux-ptrace.h: Likewise.
3180 * common/mips-linux-watch.h: Likewise.
3181 * common/linux-btrace.c: Moved to nat.
3182 * common/linux-osdata.c: Likewise.
3183 * common/linux-procfs.c: Likewise.
3184 * common/linux-ptrace.c: Likewise.
3185 * common/mips-linux-watch.c: Likewise.
3186 * nat/gdb_thread_db.h: Moved from common.
3187 * nat/glibc_thread_db.h: Likewise.
3188 * nat/i386-cpuid.h: Likewise.
3189 * nat/i386-gcc-cpuid.h: Likewise.
3190 * nat/linux-btrace.c: Likewise.
3191 * nat/linux-btrace.h: Likewise.
3192 * nat/linux-osdata.c: Likewise.
3193 * nat/linux-osdata.h: Likewise.
3194 * nat/linux-procfs.c: Likewise.
3195 * nat/linux-procfs.h: Likewise.
3196 * nat/linux-ptrace.c: Likewise.
3197 * nat/linux-ptrace.h: Likewise.
3198 * nat/mips-linux-watch.c: Likewise.
3199 * nat/mips-linux-watch.h: Likewise.
3200 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3201 (object file files): Reordered.
3202 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3203 of glibc_thread_db.h.
3204
32052014-06-20 Gary Benson <gbenson@redhat.com>
3206
3207 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3208 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3209 (i386_dr_low): Likewise.
3210 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3211 (i386_dr_low_set_addr): Likewise.
3212 (i386_dr_low_get_addr): Likewise.
3213 (i386_dr_low_can_set_control): Likewise.
3214 (i386_dr_low_set_control): Likewise.
3215 (i386_dr_low_get_control): Likewise.
3216 (i386_dr_low_get_status): Likewise.
3217 (i386_get_debug_register_length): Likewise.
3218 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3219 (i386_dr_low): Likewise.
3220 * nat/i386-dregs.c (i386-low.h): Remove include.
3221 (i386-nat.h): Likewise.
3222 (nat/i386-dregs.h): New include.
3223 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3224 (i386_dr_low_set_addr): Likewise.
3225 (i386_dr_low_get_addr): Likewise.
3226 (i386_dr_low_can_set_control): Likewise.
3227 (i386_dr_low_set_control): Likewise.
3228 (i386_dr_low_get_control): Likewise.
3229 (i386_dr_low_get_status): Likewise.
3230 (i386_get_debug_register_length): Likewise.
3231 (debug_hw_points): Likewise.
3232
32332014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3234
3235 * Makefile.in (SFILES): Add d-exp.y.
3236 (YYFILES): Add d-exp.c.
3237 (YYOBJ): Add d-exp.o.
3238 (local-maintainer-clean): Delete d-exp.c.
3239 * d-exp.y: New file.
3240 * d-lang.h (d_parse): New declaration.
3241 (d_error): New declaration.
3242 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3243 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3244 PREC_ORDER operators.
3245 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3246
32472014-06-19 Yao Qi <yao@codesourcery.com>
3248
3249 * gdbthread.h (any_running): Remove the declaration.
3250 * thread.c (any_running): Remove.
3251
32522014-06-19 Yao Qi <yao@codesourcery.com>
3253
3254 * gdbthread.h (struct thread_info) <state>: Change its type to
3255 'enum thread_state'. Update comments.
3256
32572014-06-19 Pedro Alves <palves@redhat.com>
3258
3259 * gdbthread.h (ALL_THREADS): Delete.
3260 (ALL_NON_EXITED_THREADS): New macro.
3261 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3262 instead of ALL_THREADS.
3263 * infrun.c (find_thread_needs_step_over)
3264 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3265 instead of ALL_THREADS.
3266 * record-btrace.c (record_btrace_open)
3267 (record_btrace_stop_recording, record_btrace_close)
3268 (record_btrace_is_replaying, record_btrace_resume)
3269 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3270 * remote.c (append_pending_thread_resumptions): Likewise.
3271 * thread.c (thread_apply_all_command): Likewise.
3272
32732014-06-19 Gary Benson <gbenson@redhat.com>
3274
3275 * i386-nat.c (i386_stopped_by_watchpoint):
3276 Use i386_dr_stopped_by_watchpoint.
3277 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3278 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3279
32802014-06-19 Gary Benson <gbenson@redhat.com>
3281
3282 * nat/i386-dregs.c: New file.
3283 * Makefile.in (i386-dregs.o): New rule.
3284 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3285 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3286 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3287 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3288 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3289 * config/i386/go32.mh (NATDEPFILES): Likewise.
3290 * config/i386/linux.mh (NATDEPFILES): Likewise.
3291 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3292 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3293 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3294 * i386-nat.h (debug_hw_points): New declaration.
3295 * i386-nat.c (breakpoint.h): Remove include.
3296 (command.h): Likewise.
3297 (target.h): Likewise.
3298 (gdb_assert.h): Likewise.
3299 (debug_hw_points): Made nonstatic.
3300 (debug_printf): Now in i386-dregs.c.
3301 (TARGET_HAS_DR_LEN_8): Likewise.
3302 (DR_CONTROL_SHIFT): Likewise.
3303 (DR_CONTROL_SIZE): Likewise.
3304 (DR_RW_EXECUTE): Likewise.
3305 (DR_RW_WRITE): Likewise.
3306 (DR_RW_READ): Likewise.
3307 (DR_RW_IORW): Likewise.
3308 (DR_LEN_1): Likewise.
3309 (DR_LEN_2): Likewise.
3310 (DR_LEN_4): Likewise.
3311 (DR_LEN_8): Likewise.
3312 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3313 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3314 (DR_ENABLE_SIZE): Likewise.
3315 (DR_LOCAL_SLOWDOWN): Likewise.
3316 (DR_GLOBAL_SLOWDOWN): Likewise.
3317 (DR_CONTROL_RESERVED): Likewise.
3318 (I386_DR_CONTROL_MASK): Likewise.
3319 (I386_DR_VACANT): Likewise.
3320 (I386_DR_LOCAL_ENABLE): Likewise.
3321 (I386_DR_GLOBAL_ENABLE): Likewise.
3322 (I386_DR_DISABLE): Likewise.
3323 (I386_DR_SET_RW_LEN): Likewise.
3324 (I386_DR_GET_RW_LEN): Likewise.
3325 (I386_DR_WATCH_HIT): Likewise.
3326 (i386_wp_op_t): Likewise.
3327 (i386_show_dr): Likewise.
3328 (i386_length_and_rw_bits): Likewise.
3329 (i386_insert_aligned_watchpoint): Likewise.
3330 (i386_remove_aligned_watchpoint): Likewise.
3331 (i386_handle_nonaligned_watchpoint): Likewise.
3332 (i386_update_inferior_debug_regs): Likewise.
3333 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3334 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3335 (i386_region_ok_for_watchpoint):
3336 Use i386_dr_region_ok_for_watchpoint.
3337 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3338
33392014-06-19 Gary Benson <gbenson@redhat.com>
3340
3341 * i386-nat.c (i386_insert_hw_breakpoint): Use
3342 i386_insert_watchpoint.
3343 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3344
33452014-06-19 Gary Benson <gbenson@redhat.com>
3346
3347 * i386-nat.c (i386_dr_show): Renamed to
3348 i386_show_dr and made static. All uses updated.
3349 (i386_dr_length_and_rw_bits): Renamed to
3350 i386_length_and_rw_bits and made static.
3351 All uses updated.
3352 (i386_dr_insert_aligned_watchpoint): Renamed to
3353 i386_insert_aligned_watchpoint and made static.
3354 All uses updated.
3355 (i386_dr_remove_aligned_watchpoint): Renamed to
3356 i386_remove_aligned_watchpoint and made static.
3357 All uses updated.
3358 (i386_dr_update_inferior_debug_regs): Renamed to
3359 i386_update_inferior_debug_regs and made static.
3360 All uses updated.
3361 * nat/i386-dregs.h (i386_dr_show): Removed.
3362 (i386_dr_length_and_rw_bits): Likewise.
3363 (i386_dr_insert_aligned_watchpoint): Likewise.
3364 (i386_dr_remove_aligned_watchpoint): Likewise.
3365 (i386_dr_update_inferior_debug_regs): Likewise.
3366
33672014-06-19 Gary Benson <gbenson@redhat.com>
3368
3369 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3370 * configure: Regenerate.
3371 * config.in: Likewise.
3372 * main.c (signal.h): New include.
3373 (setup_alternate_signal_stack): New function.
3374 (captured_main): Call the above.
3375 * cp-support.c (signal.h): New include.
3376 (catch_demangler_crashes): New flag.
3377 (SIGJMP_BUF): New define.
3378 (SIGSETJMP): Likewise.
3379 (SIGLONGJMP): Likewise.
3380 (gdb_demangle_jmp_buf): New static global.
3381 (gdb_demangle_attempt_core_dump): Likewise.
3382 (gdb_demangle_signal_handler): New function.
3383 (gdb_demangle): If catch_demangler_crashes is set, install the
3384 above signal handler before calling bfd_demangle, and restore
3385 the original signal handler afterwards. Display the offending
3386 symbol and call demangler_warning the first time a segmentation
3387 fault is caught.
3388 (_initialize_cp_support): New maint set/show command.
3389
33902014-06-19 Gary Benson <gbenson@redhat.com>
3391
3392 * utils.h (resource_limit_kind): New enum.
3393 (can_dump_core): New declaration.
3394 (warn_cant_dump_core): Likewise.
3395 (dump_core): Likewise.
3396 * utils.c (dump_core): Made nonstatic. Added new
3397 parameter "limit_kind".
3398 (can_dump_core): Made nonstatic. Moved printing code to...
3399 (warn_cant_dump_core): New function.
3400 (can_dump_core_warn): Likewise.
3401 (internal_vproblem): Replace calls to can_dump_core with
3402 calls to can_dump_core_warn. Supply new argument to each.
3403
34042014-06-19 Gary Benson <gbenson@redhat.com>
3405
3406 * utils.h (demangler_vwarning): New declaration.
3407 (demangler_warning): Likewise.
3408 * utils.c (struct internal_problem)
3409 <user_settable_should_quit>: New field.
3410 <user_settable_should_dump_core>: Likewise
3411 (internal_error_problem): Add values for above new fields.
3412 (internal_warning_problem): Likewise.
3413 (demangler_warning_problem): New static global.
3414 (demangler_vwarning): New function.
3415 (demangler_warning): Likewise.
3416 (add_internal_problem_command): Selectively add commands.
3417 (_initialize_utils): New internal problem command.
3418 * maint.c (maintenance_demangler_warning): New function.
3419 (_initialize_maint_cmds): New command.
3420
34212014-06-18 Tom Tromey <tromey@redhat.com>
3422
3423 * f-valprint.c (info_common_command_for_block): Update.
3424 * symtab.h (struct general_symbol_info) <common_block>: Now
3425 const.
3426
34272014-06-18 Tom Tromey <tromey@redhat.com>
3428
3429 * symtab.h (struct symtab) <blockvector>: Now const.
3430 * ada-lang.c (ada_add_global_exceptions): Update.
3431 * buildsym.c (augment_type_symtab): Update.
3432 * dwarf2read.c (dw2_lookup_symbol): Update.
3433 * jit.c (finalize_symtab): Update.
3434 * jv-lang.c (add_class_symtab_symbol): Update.
3435 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3436 Update.
3437 * objfiles.c (objfile_relocate1): Update.
3438 * psymtab.c (lookup_symbol_aux_psymtabs)
3439 (maintenance_check_psymtabs): Update.
3440 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3441 Update.
3442 * spu-tdep.c (spu_catch_start): Update.
3443 * symmisc.c (dump_symtab_1): Update.
3444 * symtab.c (lookup_global_symbol_from_objfile)
3445 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3446 (basic_lookup_transparent_type_quick)
3447 (basic_lookup_transparent_type, find_pc_sect_symtab)
3448 (find_pc_sect_line, search_symbols): Update.
3449 * block.c (find_block_in_blockvector): Make "bl" const.
3450 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3451 const.
3452 (blockvector_contains_pc): Make "bv" const.
3453 (block_for_pc_sect): Update.
3454 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3455 (blockvector_contains_pc): Update.
3456 * breakpoint.c (resolve_sal_pc): Update.
3457 * inline-frame.c (block_starting_point_at): Update.
3458
34592014-06-18 Tom Tromey <tromey@redhat.com>
3460
3461 * completer.c (complete_line): Make "line_buffer" const.
3462 * completer.h (complete_line): Update.
3463
34642014-06-18 Tom Tromey <tromey@redhat.com>
3465
3466 * symtab.c (add_macro_name): Remove unneeded cast.
3467
34682014-06-18 Tom Tromey <tromey@redhat.com>
3469
3470 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3471 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3472
34732014-06-18 Tom Tromey <tromey@redhat.com>
3474
3475 * probe.c (info_probes_for_ops): Make "arg" const.
3476 * probe.h (info_probes_for_ops): Update.
3477
34782014-06-18 Tom Tromey <tromey@redhat.com>
3479
3480 * varobj.c (varobj_create): Update.
3481 * valops.c (value_of_this): Update.
3482 * tracepoint.c (add_local_symbols, scope_info): Update.
3483 * symtab.h (struct general_symbol_info) <block>: Now const.
3484 * symtab.c (skip_prologue_sal)
3485 (default_make_symbol_completion_list_break_on)
3486 (skip_prologue_using_sal): Update.
3487 * stack.h (iterate_over_block_locals)
3488 (iterate_over_block_local_vars): Update.
3489 * stack.c (print_frame_args): Update.
3490 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3491 parameter const.
3492 (get_selected_block): Make return type const.
3493 * python/py-frame.c (frapy_block): Update.
3494 * python/py-block.c (gdbpy_block_for_pc): Update.
3495 * p-exp.y (%union) <bval>: Now const.
3496 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3497 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3498 * m2-exp.y (%union) <bval>: Now const.
3499 * linespec.c (get_current_search_block): Make return type const.
3500 (create_sals_line_offset, find_label_symbols): Update.
3501 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3502 Update.
3503 (block_starting_point_at): Make "block" const.
3504 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3505 (check_exception_resume): Update.
3506 * guile/scm-frame.c (gdbscm_frame_block): Update.
3507 * guile/scm-block.c (gdbscm_lookup_block): Update.
3508 * frame.h (get_frame_block): Update.
3509 (get_selected_block): Make return type const.
3510 * frame.c (frame_id_inner): Update.
3511 * f-valprint.c (info_common_command_for_block)
3512 (info_common_command): Update.
3513 * dwarf2loc.c (dwarf2_find_location_expression)
3514 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3515 (locexpr_describe_location_piece): Update.
3516 * c-exp.y (%union) <bval>: Now const.
3517 * breakpoint.c (resolve_sal_pc): Update.
3518 * blockframe.c (get_frame_block):Make return type const.
3519 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3520 (block_innermost_frame): Update.
3521 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3522 (block_for_pc, block_for_pc_sect): Update.
3523 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3524 'pblock' const.
3525 (block_for_pc_sect, block_for_pc): Make return type const.
3526 * ax-gdb.c (gen_expr): Update.
3527 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3528 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3529 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3530 (ada_read_var_value): Update.
3531 * ada-exp.y (struct name_info) <block>: Now const.
3532 (%union): Likewise.
3533 (block_lookup): Constify.
3534
35352014-06-18 Gary Benson <gbenson@redhat.com>
3536
3537 * nat/i386-dregs.h: New file.
3538 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3539 * i386-nat.h (i386-dregs.h): New include.
3540 (DR_FIRSTADDR): Now in i386-dregs.h.
3541 (DR_LASTADDR): Likewise.
3542 (DR_NADDR): Likewise.
3543 (DR_STATUS): Likewise.
3544 (DR_CONTROL): Likewise.
3545 (i386_debug_reg_state): Likewise.
3546 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3547
35482014-06-18 Don Breazeal <donb@codesourcery.com>
3549
3550 * breakpoint.c (set_longjmp_breakpoint): Call
3551 momentary_breakpoint_from_master with additional argument.
3552 (set_longjmp_breakpoint_for_call_dummy): Call
3553 momentary_breakpoint_from_master with additional argument.
3554 (set_std_terminate_breakpoint): Call
3555 momentary_breakpoint_from_master with additional argument.
3556 (momentary_breakpoint_from_master): Add argument to function
3557 definition and use it to initialize structure member flag.
3558 (clone_momentary_breakpoint): Call
3559 momentary_breakpoint_from_master with additional argument.
3560 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3561 member flags set in momentary_breakpoint_from_master.
3562
35632014-06-18 Gary Benson <gbenson@redhat.com>
3564
3565 * i386-nat.c (i386_show_dr): Renamed to
3566 i386_dr_show and made nonstatic. All uses updated.
3567 (i386_length_and_rw_bits): Renamed to
3568 i386_dr_length_and_rw_bits and made nonstatic.
3569 All uses updated.
3570 (i386_insert_aligned_watchpoint): Renamed to
3571 i386_dr_insert_aligned_watchpoint and made nonstatic.
3572 All uses updated.
3573 (i386_remove_aligned_watchpoint): Renamed to
3574 i386_dr_remove_aligned_watchpoint and made nonstatic.
3575 All uses updated.
3576 (i386_update_inferior_debug_regs): Renamed to
3577 i386_dr_update_inferior_debug_regs and made nonstatic.
3578 All uses updated.
3579
35802014-06-18 Gary Benson <gbenson@redhat.com>
3581
3582 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3583 (i386_dr_low_can_set_control): Likewise.
3584 (i386_dr_low_set_addr): Likewise.
3585 (i386_dr_low_set_control): Likewise.
3586 (i386_dr_low_get_addr): Likewise.
3587 (i386_dr_low_get_status): Likewise.
3588 (i386_dr_low_get_control): Likewise.
3589 (i386_insert_aligned_watchpoint): Use new macros.
3590 (i386_update_inferior_debug_regs): Likewise.
3591 (i386_stopped_data_address): Likewise.
3592
35932014-06-18 Gary Benson <gbenson@redhat.com>
3594
3595 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3596 New parameter. All uses updated.
3597
35982014-06-18 Gary Benson <gbenson@redhat.com>
3599
3600 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3601 All uses updated.
3602
36032014-06-18 Gary Benson <gbenson@redhat.com>
3604
3605 * i386-nat.c (debug_printf): New macro.
3606 (i386_get_debug_register_length): Likewise.
3607 (TARGET_HAS_DR_LEN_8): Use above macro.
3608 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3609 and printf_unfiltered. Use phex to format values.
3610
36112014-06-18 Gary Benson <gbenson@redhat.com>
3612
3613 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3614 Make const.
3615
36162014-06-18 Gary Benson <gbenson@redhat.com>
3617
3618 * i386-nat.c: Comment changes.
3619
36202014-06-18 Gary Benson <gbenson@redhat.com>
3621
3622 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3623
36242014-06-18 Gary Benson <gbenson@redhat.com>
3625
3626 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3627 (i386_insert_aligned_watchpoint): Likewise.
3628 (i386_remove_aligned_watchpoint): Likewise.
3629 (i386_handle_nonaligned_watchpoint): Likewise.
3630
36312014-06-18 Gary Benson <gbenson@redhat.com>
3632
3633 * i386-nat.c: Whitespace changes.
3634
36352014-06-17 Samuel Bronson <naesten@gmail.com>
3636
3637 * MAINTAINERS: Update Roland McGrath's email address.
3638 Thanks to Sergio Durigan Junior for pointing out that he left
3639 Red Hat a while ago, and giving me a current address.
3640
36412014-06-17 Tom Tromey <tromey@redhat.com>
3642
3643 * utils.h (savestring): Remove declaration.
3644
36452014-06-17 Tom Tromey <tromey@redhat.com>
3646
3647 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3648
36492014-06-16 Keith Seitz <keiths@redhat.com>
3650
3651 PR mi/15863
3652 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3653 to update the varobj if inferior_ptid is null_ptid.
3654
36552014-06-16 Tom Tromey <tromey@redhat.com>
3656
3657 * target.h (struct target_ops) <to_info_proc>: Make parameter
3658 const.
3659 (target_info_proc): Update.
3660 * target.c (target_info_proc): Make "args" const.
3661 * procfs.c (procfs_info_proc): Update.
3662 * linux-tdep.c (linux_info_proc): Update.
3663 (linux_core_info_proc_mappings): Make "args" const.
3664 (linux_core_info_proc): Update.
3665 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3666 * gdbarch.c: Rebuild.
3667 * gdbarch.h: Rebuild.
3668 * corelow.c (core_info_proc): Update.
3669
36702014-06-16 Tom Tromey <tromey@redhat.com>
3671
3672 * target.h (struct target_ops) <to_disconnect>: Make parameter
3673 const.
3674 (target_disconnect): Update.
3675 * target.c (target_disconnect): Make "args" const.
3676 * target-delegates.c: Rebuild.
3677 * remote.c (remote_disconnect): Update.
3678 * record.h (record_disconnect): Update.
3679 * record.c (record_disconnect): Update.
3680 * inf-child.c (inf_child_disconnect): Update.
3681
36822014-06-16 Tom Tromey <tromey@redhat.com>
3683
3684 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3685 * target.c (debug_to_rcmd, default_rcmd): Update.
3686 * target-delegates.c: Rebuild.
3687 * remote.c (remote_rcmd): Update.
3688 * monitor.c (monitor_rcmd): Update.
3689
36902014-06-16 Pedro Alves <palves@redhat.com>
3691
3692 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3693 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3694 have OBJF_SHARED set.
3695 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3696 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3697 instead of OBJF_USERLOADED.
3698 * objfiles.h (OBJF_SHARED): Update comment.
3699 (userloaded_objfile_contains_address_p): Rename to ...
3700 (shared_objfile_contains_address_p): ... this, and update
3701 comments.
3702 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3703 new objfile.
3704 (remove_symbol_file_command): Skip objfiles that don't have
3705 OBJF_SHARED set.
3706
37072014-06-16 Tom Tromey <tromey@redhat.com>
3708
3709 * minsyms.h (prim_record_minimal_symbol)
3710 (prim_record_minimal_symbol_and_info): Update comments.
3711
37122014-06-14 Eli Zaretskii <eliz@gnu.org>
3713
3714 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3715 or --without-guile, according to how GDB was built.
3716
37172014-06-13 Tom Tromey <tromey@redhat.com>
3718
3719 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3720 to help_list.
3721 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3722 to help_list.
3723 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3724 help_list.
3725 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3726 help_list.Pass all_commands, not -1, to help_list.
3727 * cli/cli-dump.c (dump_command, append_command)
3728 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3729 (binary_dump_command, binary_append_command): Pass all_commands,
3730 not -1, to help_list.
3731 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3732 -1, to help_list.
3733 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3734 -1, to help_list.
3735 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3736 help_list.
3737 * top.c (set_history): Pass all_commands, not -1, to help_list.
3738 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3739 all_commands, not -1, to help_list.
3740 * symfile.c (overlay_command): Pass all_commands, not -1, to
3741 help_list.
3742 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3743 help_list.
3744 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3745 help_list.
3746 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3747 -1, to help_list.
3748 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3749 not -1, to help_list.
3750 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3751 not -1, to help_list.
3752 * maint.c (maintenance_command, maintenance_info_command)
3753 (maintenance_print_command, maintenance_set_cmd): Pass
3754 all_commands, not -1, to help_list.
3755 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3756 help_list.
3757 * language.c (set_check): Pass all_commands, not -1, to help_list.
3758 * infcmd.c (unset_command): Pass all_commands, not -1, to
3759 help_list.
3760 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3761 help_list.
3762 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3763 help_list.
3764 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3765 help_list.
3766 * breakpoint.c (save_command): Pass all_commands, not -1, to
3767 help_list.
3768 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3769 all_commands, not -1, to help_list.
3770
37712014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3772
3773 * regcache.c (struct register_to_invalidate): New structure.
3774 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3775 functions.
3776 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3777
37782014-06-12 Yao Qi <yao@codesourcery.com>
3779
3780 * varobj.c (varobj_get_num_children): Call
3781 varobj_is_dynamic_p.
3782 (varobj_list_children): Likewise.
3783 (varobj_update): Likewise. Update comments.
3784
37852014-06-12 Yao Qi <yao@codesourcery.com>
3786
3787 * varobj.c (varobj_pretty_printed_p): Rename to ...
3788 (varobj_is_dynamic_p): ... this. New function.
3789 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3790 (varobj_is_dynamic_p): Declare.
3791 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3792 (mi_print_value_p, varobj_update_one): Likewise.
3793
37942014-06-12 Pedro Alves <pedro@codesourcery.com>
3795 Yao Qi <yao@codesourcery.com>
3796
3797 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3798 (varobj_get_iterator): Wrap up code for pretty-printer by
3799 "#if HAVE_PYTHON" and "#endif".
3800 (update_dynamic_varobj_children): Likewise.
3801
38022014-06-12 Pedro Alves <pedro@codesourcery.com>
3803 Yao Qi <yao@codesourcery.com>
3804
3805 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3806 gdb_python_initialized is false. Move some code from varobj.c.
3807 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3808 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3809 (struct varobj_item): Moved to varobj-iter.h".
3810 (varobj_clear_saved_item): New function.
3811 (update_dynamic_varobj_children): Move python-related code to
3812 py-varobj.c.
3813 (free_variable): Call varobj_clear_saved_item and
3814 varobj_iter_delete.
3815
38162014-06-12 Pedro Alves <pedro@codesourcery.com>
3817 Yao Qi <yao@codesourcery.com>
3818
3819 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3820 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3821 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3822 (py-varobj.o): New rule.
3823 * python/py-varobj.c: New file.
3824 * python/python-internal.h (py_varobj_get_iterator): Declare.
3825 * varobj-iter.h: New file.
3826 * varobj.c: Include "varobj-iter.h"
3827 (struct varobj) <child_iter>: Change its type from "PyObject *"
3828 to "struct varobj_iter *".
3829 <saved_item>: Likewise.
3830 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3831 [HAVE_PYTHON] (varobj_get_iterator): New function.
3832 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3833 python-specific code to python/py-varobj.c.
3834 (install_visualizer): Call varobj_iter_delete instead of
3835 Py_XDECREF.
3836 * varobj.h (varobj_ensure_python_env): Declare.
3837
38382014-06-12 Yao Qi <yao@codesourcery.com>
3839
3840 * varobj.c (struct varobj_item): New structure.
3841 (create_child_with_value): Update declaration.
3842 (varobj_add_child): Replace arguments 'name' and 'value' with
3843 'item'. All callers updated.
3844 (install_dynamic_child): Likewise.
3845 (update_dynamic_varobj_children): Likewise.
3846 (varobj_add_child): Likewise.
3847 (create_child_with_value): Likewise.
3848
38492014-06-11 Joel Brobecker <brobecker@adacore.com>
3850
3851 * NEWS: Create a new section for the next release branch.
3852 Rename the section of the current branch, now that it has
3853 been cut.
3854
38552014-06-11 Joel Brobecker <brobecker@adacore.com>
3856
3857 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3858 * version.in: Bump version to 7.8.50.DATE-cvs.
3859
38602014-06-11 Pedro Alves <palves@redhat.com>
3861
3862 PR remote/17028
3863 * ser-mingw.c (net_windows_socket_check_pending): New function.
3864 (net_windows_select_thread): Ignore spurious wakeups. Use
3865 net_windows_socket_check_pending.
3866 (net_windows_wait_handle): Check for pending events with
3867 ioctlsocket, through net_windows_socket_check_pending, instead of
3868 checking the socket's event.
3869
38702014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3871
3872 * python/python-internal.h (gdb_PyObject_GetAttrString)
3873 (gdb_PyObject_HasAttrString): New inline function definitions.
3874 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3875 char * of the second argument to PyObject_GetAttrString.
3876
38772014-06-10 Joel Brobecker <brobecker@adacore.com>
3878
3879 * serial.c (serial_write): Fix index of character to be printed
3880 in call to serial_logchar when serial debug traces are enabled.
3881
38822014-06-10 Joel Brobecker <brobecker@adacore.com>
3883
3884 * gdbtypes (resolve_dynamic_range): Add function description.
3885
38862014-06-09 Pedro Alves <palves@redhat.com>
3887
3888 * linux-nat.c (linux_child_follow_fork): Initialize status with
3889 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3890 inner block. Only pass the signal to PTRACE_DETACH if in pass
3891 state.
3892
38932014-06-09 Gary Benson <gbenson@redhat.com>
3894
3895 * common/signals.c (gdb_signal_from_host): Reorder to separate
3896 the always-available ANSI-standard signals from the signals that
3897 require checking.
3898 (do_gdb_signal_to_host): Likewise.
3899 * proc-events.c (signal_table): Likewise.
3900
39012014-06-08 Hui Zhu <hui@codesourcery.com>
3902
3903 * common/linux-ptrace.c (linux_disable_event_reporting): New
3904 function.
3905 * common/linux-ptrace.h (linux_disable_event_reporting): New
3906 declaration.
3907 * linux-nat.c (linux_child_follow_fork): Do a single step before
3908 detach.
3909
39102014-06-07 Keith Seitz <keiths@redhat.com>
3911
3912 Revert:
3913 PR c++/16253
3914 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3915 from symbol_matches_domain in symtab.c. All local callers
3916 of symbol_matches_domain updated.
3917 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3918 search STRUCT_DOMAIN.
3919 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3920 independently. standard_lookup will do that automatically.
3921 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3922 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3923 (cp_lookup_symbol_in_namespace): Likewise.
3924 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3925 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3926 may return a STRUCT_DOMAIN match.
3927 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3928 * cp-support.c: Include language.h.
3929 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3930 VAR_DOMAIN.
3931 * psymtab.c (match_partial_symbol): Compare the requested
3932 domain with the symbol's domain directly.
3933 (lookup_partial_symbol): Likewise.
3934 * symtab.c (lookup_symbol_in_language): Explain when/why
3935 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3936 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3937 appropriate languages.
3938 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3939 and moved to ada-lang.c
3940 (lookup_block_symbol): Explain that this function only returns
3941 symbol matching the requested DOMAIN.
3942 Compare the requested domain with the symbol's domain directly.
3943 (iterate_over_symbols): Compare the requested domain with the
3944 symbol's domain directly.
3945 * symtab.h (symbol_matches_domain): Remove.
3946
39472014-06-06 Doug Evans <xdje42@gmail.com>
3948
3949 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3950 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3951 (gdbscm_guile_version_is_at_least): Declare.
3952 (gdbscm_scm_string_to_int): Declare.
3953 * guile/guile.c (gdbscm_guile_major_version): New global.
3954 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3955 (guile_datadir): New static global.
3956 (gdbscm_guile_data_directory): New function.
3957 (initialize_scheme_side): Update.
3958 (misc_guile_functions): Add guile-data-directory.
3959 (initialize_gdb_module): Fetch guile version number.
3960 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3961 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3962 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3963 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3964 comments.
3965 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3966 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3967 * guile/scm-value.c (gdbscm_value_to_string): Only call
3968 scm_port_conversion_strategy if Guile version >= 2.0.6.
3969
39702014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3971
3972 * main.c (print_gdb_help): Add -q and --silent.
3973
39742014-06-06 Gary Benson <gbenson@redhat.com>
3975
3976 * common/signals.c: Remove preprocessor conditionals for
3977 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3978 SIGSEGV and SIGTERM.
3979 * proc-events.c: Likewise.
3980
39812014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3982
3983 * symfile.c (symfile_free_objfile): Remove restriction to
3984 OBJF_USERLOADED.
3985 * symfile-mem.c (symbol_file_add_from_memory): Call
3986 add_target_sections_of_objfile.
3987
39882014-06-05 Ludovic Courtès <ludo@gnu.org>
3989
3990 * guile/scm-value.c (gdbscm_history_append_x): Use
3991 'vlscm_get_value_smob_arg_unsafe' instead of
3992 'vlscm_scm_to_value'.
3993
39942014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3995
3996 PR mi/15806
3997 * utils.c (printchar): Don't escape at all if quoter is NUL.
3998 Update function documentation to clarify effect of parameter
3999 QUOTER.
4000 * remote.c (escape_buffer): Pass '\\' as the quoter to
4001 fputstrn_unfiltered.
4002 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4003 generate the output.
4004 (mi_solib_unloaded): Same.
4005
40062014-06-05 Joel Brobecker <brobecker@adacore.com>
4007
4008 * development.sh: Delete.
4009 * Makefile.in (config.status): Adjust dependency on development.sh.
4010 * configure.ac: Adjust development.sh source call.
4011 * configure: Regenerate.
4012
40132014-06-04 Doug Evans <xdje42@gmail.com>
4014
4015 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4016 is_scheme_bkpt, spec.
4017 (bpscm_make_breakpoint_smob): Initialize new members.
4018 (gdbscm_create_breakpoint_x): Split into two ...
4019 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4020 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4021 (scheme_function breakpoint_functions): Update.
4022 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4023 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4024 register-breakpoint!.
4025
40262014-06-04 Joel Brobecker <brobecker@adacorer.com>
4027
4028 PR server/17023
4029 * mem-break.c (z_type_supported): Return zero if
4030 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4031
40322014-06-04 Tom Tromey <tromey@redhat.com>
4033
4034 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4035 value_from_contents_and_address_unresolved.
4036 (ada_template_to_fixed_record_type_1): Likewise.
4037 (ada_which_variant_applies): Likewise.
4038 * value.h (value_from_contents_and_address_unresolved): Declare.
4039 * value.c (value_from_contents_and_address_unresolved): New
4040 function.
4041 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4042 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4043 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4044
40452014-06-04 Tom Tromey <tromey@redhat.com>
4046
4047 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4048
40492014-06-04 Tom Tromey <tromey@redhat.com>
4050
4051 * procfs.c (procfs_attach): Make "args" const.
4052 * windows-nat.c (windows_attach): Make "args" const.
4053 * nto-procfs.c (procfs_attach): Make "args" const.
4054 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4055 * go32-nat.c (go32_attach): Make "args" const.
4056 * gnu-nat.c (gnu_attach): Make "args" const.
4057 * darwin-nat.c (darwin_attach): Make "args" const.
4058 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4059 * linux-nat.c (linux_nat_attach): Make "args" const.
4060 * remote.c (extended_remote_attach_1, extended_remote_attach):
4061 Make "args" const.
4062 * target.h (struct target_ops) <to_attach>: Make "args" const.
4063 (find_default_attach): Likewise.
4064 * utils.c (parse_pid_to_attach): Make "args" const.
4065 * utils.h (parse_pid_to_attach): Update.
4066
40672014-06-04 Tom Tromey <tromey@redhat.com>
4068
4069 * target-delegates.c: Rebuild.
4070 * target.c (default_thread_address_space): New function.
4071 (target_thread_address_space): Simplify.
4072 * target.h (struct target_ops) <to_thread_address_space>: Add
4073 TARGET_DEFAULT_FUNC.
4074
40752014-06-04 Doug Evans <xdje42@gmail.com>
4076
4077 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4078
40792014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4080
4081 * record-btrace.c: Include event-loop.h and inf-loop.h.
4082 (record_btrace_resume_exec_dir)
4083 (record_btrace_async_inferior_event_handler)
4084 (record_btrace_handle_async_inferior_event): New.
4085 (record_btrace_open): Create async event handler.
4086 (record_btrace_close): Delete async event handler.
4087 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4088 Mark async event handler.
4089 (record_btrace_execution_direction): New.
4090 (init_record_btrace_ops): Initialize to_execution_direction.
4091
40922014-06-03 Doug Evans <xdje42@gmail.com>
4093
4094 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4095 (gdbscm_make_parameter): Ditto.
4096
40972014-06-03 Doug Evans <dje@google.com>
4098
4099 * exec.c (exec_close_1): Call clear_section_table instead of
4100 resize_section_table.
4101 (clear_section_table): New function.
4102 (resize_section_table): Make static. Rename arg num_added to
4103 adjustment.
4104 * exec.h (clear_section_table): Declare.
4105 (resize_section_table): Delete.
4106 * progspace.c (release_program_space): Call clear_section_table
4107 instead of resize_section_table.
4108
41092014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4110
4111 * NEWS (Python Scripting): Add entry about the new xmethods
4112 feature.
4113
41142014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4115
4116 * python/py-xmethods.c: New file.
4117 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4118 (objfpy_dealloc): XDECREF on the new xmethods field.
4119 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4120 field.
4121 (objfpy_get_xmethods): New function.
4122 (objfile_getset): New entry 'xmethods'.
4123 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4124 (pspy_dealloc): XDECREF on the new xmethods field.
4125 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4126 field.
4127 (pspy_get_xmethods): New function.
4128 (pspace_getset): New entry 'xmethods'.
4129 * python/python-internal.h: Add declarations for new functions.
4130 * python/python.c (_initialize_python): Invoke
4131 gdbpy_initialize_xmethods.
4132 * python/lib/gdb/__init__.py (xmethods): New
4133 attribute.
4134 * python/lib/gdb/xmethod.py: New file.
4135 * python/lib/gdb/command/xmethods.py: New file.
4136
41372014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4138
4139 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4140 best match method returned by find_overload_match is an xmethod.
4141 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4142 the best matching operator returned by find_overload_match is an
4143 xmethod.
4144 * valops.c: #include "extension.h".
4145 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4146 Return void. The list of matching source methods is returned in
4147 "fn_list" and a vector of matching debug method workers is
4148 returned in "xm_worker_vec". Update all callers.
4149 (value_find_oload_method_list): Likewise.
4150 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4151 non-NULL, then the index of the best matching method in this
4152 vector is returned. Update all callers.
4153 (find_overload_match): Include xmethods while performing overload
4154 resolution.
4155
41562014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4157
4158 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4159 * extension-priv.h (struct extension_language_ops): Add the
4160 xmethod interface.
4161 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4162 get_matching_xmethod_workers, get_xmethod_argtypes,
4163 invoke_xmethod, free_xmethod_worker,
4164 free_xmethod_worker_vec): New functions.
4165 * extension.h: #include "common/vec.h".
4166 New function declarations.
4167 (struct xmethod_worker): New struct.
4168 (VEC (xmethod_worker_ptr)): New vector type.
4169 (xmethod_worker_ptr): New typedef.
4170 (xmethod_worker_vec): Likewise.
4171 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4172 builtin_type.
4173 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4174 (struct builtin_type): New field "xmethod".
4175 * valarith.c (value_ptradd): Assert that the value argument is not
4176 lval_xcallable.
4177 * valops.c (value_must_coerce_to_target): Return 0 for
4178 lval_xcallable values.
4179 * value.c (struct value): New field XM_WORKER in the field
4180 LOCATION.
4181 (value_address, value_raw_address): Return 0 for lval_xcallable
4182 values.
4183 (set_value_address): Assert that the value is not an
4184 lval_xcallable.
4185 (value_free): Free the associated xmethod worker when freeing
4186 lval_xcallable values.
4187 (set_value_component_location): Assert that the WHOLE value is not
4188 lval_xcallable.
4189 (value_of_xmethod, call_xmethod): New functions.
4190 * value.h: Declare "struct xmethod_worker".
4191 Declare new functions value_of_xmethod, call_xmethod.
4192
41932014-06-03 Joel Brobecker <brobecker@adacore.com>
4194 Pedro Alves <palves@redhat.com>
4195
4196 PR breakpoints/17000
4197 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4198 New function, extracted from software_breakpoint_inserted_here_p.
4199 (software_breakpoint_inserted_here_p): Replace factored out code
4200 by call to find_non_raw_software_breakpoint_inserted_here.
4201 (bp_target_info_copy_insertion_state): New function.
4202 (bkpt_insert_location): Handle the case of a single-step
4203 breakpoint already inserted at the same address.
4204 (bkpt_remove_location): Handle the case of a single-step
4205 breakpoint still inserted at the same address.
4206 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4207 breakpoint already inserted at the same address.
4208 (deprecated_remove_raw_breakpoint): Handle the case of a
4209 non-raw breakpoint still inserted at the same address.
4210 (find_single_step_breakpoint): New function, extracted from
4211 single_step_breakpoint_inserted_here_p.
4212 (find_single_step_breakpoint): New function,
4213 factored out from single_step_breakpoint_inserted_here_p.
4214 (single_step_breakpoint_inserted_here_p): Reimplement.
4215
42162014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4217
4218 Pushed by Joel Brobecker <brobecker@adacore.com>
4219 * source.c (show_substitute_path_command): Fix display of matching
4220 substitution rules.
4221
42222014-06-03 Gary Benson <gbenson@redhat.com>
4223
4224 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4225
42262014-06-02 Doug Evans <xdje42@gmail.com>
4227
4228 Add parameter support for Guile.
4229 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4230 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4231 (scm-param.o): New rule.
4232 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4233 (gdbscm_misc_error): Declare.
4234 (gdbscm_canonicalize_command_name): Declare.
4235 (gdbscm_scm_to_host_string): Declare.
4236 (gdbscm_scm_from_host_string): Declare.
4237 (gdbscm_initialize_parameters): Declare.
4238 * guile/guile.c (initialize_gdb_module): Call
4239 gdbscm_initialize_parameters.
4240 * guile/lib/gdb.scm: Export parameter symbols.
4241 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4242 cmdscm_canonicalize_name and made public. All callers updated.
4243 * guile/scm-exception.c (gdbscm_misc_error): New function.
4244 * guile/scm-param.c: New file.
4245 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4246 (gdbscm_scm_to_host_string): New function.
4247 (gdbscm_scm_from_host_string): New function.
4248 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4249
42502014-06-02 Doug Evans <xdje42@gmail.com>
4251
4252 Add command support for Guile.
4253 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4254 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4255 (scm-cmd.o): New rule.
4256 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4257 (gdbscm_user_error_p): Declare.
4258 (gdbscm_parse_command_name): Declare.
4259 (gdbscm_valid_command_class_p): Declare.
4260 (gdbscm_initialize_commands): Declare.
4261 * guile/guile.c (initialize_gdb_module): Call
4262 gdbscm_initialize_commands.
4263 * guile/lib/gdb.scm: Export command symbols.
4264 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4265 (throw-user-error): New function.
4266 * guile/scm-cmd.c: New file.
4267 * guile/scm-exception.c (user_error_symbol): New static global.
4268 (gdbscm_user_error_p): New function.
4269 (gdbscm_initialize_exceptions): Set user_error_symbol.
4270 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4271
42722014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4273
4274 * top.c (command_loop): Handle comments here...
4275 (command_line_input): ... not here.
4276
42772014-06-02 Doug Evans <xdje42@gmail.com>
4278
4279 Add progspace support for Guile.
4280 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4281 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4282 (scm-progspace.o): New rule.
4283 * guile/guile-internal.h (pspace_smob): New typedef.
4284 (psscm_pspace_smob_pretty_printers): Declare.
4285 (psscm_pspace_smob_from_pspace): Declare.
4286 (psscm_scm_from_pspace): Declare.
4287 * guile/guile.c (initialize_gdb_module): Call
4288 gdbscm_initialize_pspaces.
4289 * guile/lib/gdb.scm: Export progspace symbols.
4290 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4291 support.
4292 (append-pretty-printer!): Ditto.
4293 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4294 Implement.
4295 * guile/scm-progspace.c: New file.
4296
42972014-06-03 Alan Modra <amodra@gmail.com>
4298
4299 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4300 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4301
43022014-06-02 Doug Evans <dje@google.com>
4303
4304 Add support for skeletonless type units.
4305 * dwarf2read.c (struct dwarf2_per_objfile): New member
4306 n_allocated_type_units.
4307 (struct dwarf2_per_objfile) <tu_stats>: New member
4308 nr_all_type_units_reallocs.
4309 (create_signatured_type_table_from_index): Initialize
4310 n_allocated_type_units
4311 (create_all_type_units): Ditto.
4312 (add_type_unit): Move up in file. New arg slot.
4313 All callers updated. Increase space for all_type_units more
4314 efficiently.
4315 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4316 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4317 (lookup_dwp_signatured_type): Ditto.
4318 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4319 All callers updated.
4320 (build_type_psymtabs_1): Leave type_unit_groups as
4321 NULL if no TUs present.
4322 (print_tu_stats): New function.
4323 (process_skeletonless_type_unit): New function.
4324 (process_dwo_file_for_skeletonless_type_units): New
4325 function.
4326 (process_skeletonless_type_units): New function.
4327 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4328 Call print tu_stats if debugging enabled.
4329
43302014-06-02 Pedro Alves <palves@redhat.com>
4331
4332 * breakpoint.c (build_target_command_list): Don't build a command
4333 list if we have any duplicate location that isn't a dprintf.
4334
43352014-06-02 Pedro Alves <palves@redhat.com>
4336
4337 * breakpoint.c (dprintf_breakpoint_hit): New function.
4338 (initialize_breakpoint_ops): Install it as dprintf's
4339 breakpoint_hit method.
4340
43412014-06-02 Joel Brobecker <brobecker@adacore.com>
4342
4343 * source.c (substitute_path_rule_matches): Simplify using
4344 filename_ncmp instead of FILENAME_CMP.
4345
43462014-06-02 Joel Brobecker <brobecker@adacore.com>
4347
4348 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4349
43502014-06-01 Ludovic Courtès <ludo@gnu.org>
4351
4352 * configure.ac: When Guile is available, check for the
4353 availability of 'scm_new_smob'.
4354 * configure, config.h.in: Regenerate.
4355 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4356 function.
4357
43582014-05-30 Andrew Burgess <aburgess@broadcom.com>
4359
4360 * frame.c (struct frame_info): Add stop_string field.
4361 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4362 (get_prev_frame_always): Old content moved into
4363 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4364 TRY_CATCH, handle MEMORY_ERROR exceptions.
4365 (frame_stop_reason_string): New function definition.
4366 * frame.h (unwind_stop_reason_to_string): Extend comment to
4367 mention frame_stop_reason_string.
4368 (frame_stop_reason_string): New function declaration.
4369 * stack.c (frame_info): Switch to frame_stop_reason_string.
4370 (backtrace_command_1): Switch to frame_stop_reason_string.
4371 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4372 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4373 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4374
43752014-05-30 Andrew Burgess <aburgess@broadcom.com>
4376
4377 * frame.c (frame_stop_reason_string): Rename to ...
4378 (unwind_stop_reason_to_string): this.
4379 * frame.h (frame_stop_reason_string): Rename to ...
4380 (unwind_stop_reason_to_string): this.
4381 * stack.c (frame_info): Update call to frame_stop_reason_string.
4382 (backtrace_command_1): Likewise.
4383 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4384 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4385
43862014-05-30 Andrew Burgess <aburgess@broadcom.com>
4387
4388 * frame.c (remove_prev_frame): New function.
4389 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4390 remove_prev_frame.
4391
43922014-05-29 Pedro Alves <palves@redhat.com>
4393
4394 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4395 and make it const. When a single-step decays to a continue,
4396 clear 'step', not 'hw_step'. Pass whether the caller wanted
4397 to step to user_visible_resume_ptid, not what we ask the
4398 target to do.
4399
44002014-05-29 Pedro Alves <palves@redhat.com>
4401
4402 * infrun.c (process_event_stop_test, handle_step_into_function)
4403 (handle_step_into_function_backward): Adjust.
4404 Don't set the even thread's stop_step and call stop_waiting before
4405 calling end_stepping_range. Instead do that ...
4406 (end_stepping_range): ... here. Take an ecs pointer parameter.
4407
44082014-05-29 Pedro Alves <palves@redhat.com>
4409
4410 * infrun.c (stop_stepping): Rename to ...
4411 (stop_waiting): ... this.
4412 (proceed): Update comment.
4413 (process_event_stop_test, handle_inferior_event)
4414 (handle_signal_stop, handle_step_into_function)
4415 (handle_step_into_function_backward): Update.
4416
44172014-05-29 Pedro Alves <palves@redhat.com>
4418
4419 * infcall.c (run_inferior_call): Don't check whether the current
4420 thread is running after the proceed call.
4421
44222014-05-29 Pedro Alves <palves@redhat.com>
4423 Tom Tromey <tromey@redhat.com>
4424
4425 * NEWS: Mention "maint set target-async", "set mi-async", and that
4426 background execution commands are now always available.
4427 * target.h (target_async_permitted): Update comment.
4428 * target.c (target_async_permitted, target_async_permitted_1):
4429 Default to 1.
4430 (set_target_async_command): Rename to ...
4431 (maint_set_target_async_command): ... this.
4432 (show_target_async_command): Rename to ...
4433 (maint_show_target_async_command): ... this.
4434 (_initialize_target): Adjust.
4435 * infcmd.c (prepare_execution_command): Make extern.
4436 * inferior.h (prepare_execution_command): Declare.
4437 * infrun.c (set_observer_mode): Leave target async alone.
4438 * mi/mi-interp.c (mi_interpreter_init): Install
4439 mi_on_sync_execution_done as sync_execution_done observer.
4440 (mi_on_sync_execution_done): New function.
4441 (mi_execute_command_input_handler): Don't print the prompt if we
4442 just started a synchronous command with an async target.
4443 (mi_on_resume): Check sync_execution before printing prompt.
4444 * mi/mi-main.h (mi_async_p): Declare.
4445 * mi/mi-main.c: Include gdbcmd.h.
4446 (mi_async_p): New function.
4447 (mi_async, mi_async_1): New globals.
4448 (set_mi_async_command, show_mi_async_command, mi_async): New
4449 functions.
4450 (exec_continue): Call prepare_execution_command.
4451 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4452 (mi_execute_async_cli_command): Use mi_async_p.
4453 (_initialize_mi_main): Install "set mi-async". Make
4454 "target-async" a deprecated alias.
4455
44562014-05-29 Pedro Alves <palves@redhat.com>
4457
4458 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4459 (_initialize_cli_interp): Adjust.
4460 * event-loop.c: Include "observer.h".
4461 (start_event_loop): Notify 'command_error' observers instead of
4462 calling display_gdb_prompt. Remove FIXME comment.
4463 * event-top.c (display_gdb_prompt): Remove call into the
4464 interpreters.
4465 * inf-loop.c: Include "observer.h".
4466 (inferior_event_handler): Notify 'command_error' observers instead
4467 of calling display_gdb_prompt.
4468 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4469 observers instead of calling display_gdb_prompt.
4470 * interps.c (interp_set): Don't call display_gdb_prompt.
4471 (current_interp_display_prompt_p): Delete.
4472 * interps.h (interp_prompt_p): Delete declaration.
4473 (interp_prompt_p_ftype): Delete.
4474 (struct interp_procs) <prompt_proc_p>: Delete field.
4475 (current_interp_display_prompt_p): Delete declaration.
4476 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4477 (_initialize_mi_interp): Adjust.
4478 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4479 'command_error' observers.
4480 (tui_on_sync_execution_done, tui_on_command_error): New
4481 functions.
4482 (tui_display_prompt_p): Delete.
4483 (_initialize_tui_interp): Adjust.
4484
44852014-05-29 Pedro Alves <palves@redhat.com>
4486
4487 PR gdb/13860
4488 * cli/cli-interp.c: Include infrun.h and observer.h.
4489 (cli_uiout, cli_interp): New globals.
4490 (cli_on_signal_received, cli_on_end_stepping_range)
4491 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4492 functions.
4493 (cli_interpreter_init): Install them as 'end_stepping_range',
4494 'signal_received' 'signal_exited', 'exited' and 'no_history'
4495 observers.
4496 (_initialize_cli_interp): Remove cli_interp local.
4497 * infrun.c (handle_inferior_event): Call the several stop reason
4498 observers instead of printing the stop reason directly.
4499 (end_stepping_range): New function.
4500 (print_end_stepping_range_reason, print_signal_exited_reason)
4501 (print_exited_reason, print_signal_received_reason)
4502 (print_no_history_reason): Make static, and add an uiout
4503 parameter. Print to that instead of to CURRENT_UIOUT.
4504 * infrun.h (print_end_stepping_range_reason)
4505 (print_signal_exited_reason, print_exited_reason)
4506 (print_signal_received_reason print_no_history_reason): New
4507 declarations.
4508 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4509 'mi_uiout'.
4510 <cli_uiout>: New field.
4511 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4512 uiout for CLI output. Install 'signal_received',
4513 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4514 observers.
4515 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4516 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4517 (mi_on_no_history): New functions.
4518 (ui_out_free_cleanup): Delete function.
4519 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4520 instead use the one already stored in the MI interpreter data.
4521 (mi_ui_out): Adjust.
4522 * tui/tui-interp.c: Include infrun.h and observer.h.
4523 (tui_interp): New global.
4524 (tui_on_signal_received, tui_on_end_stepping_range)
4525 (tui_on_signal_exited, tui_on_exited)
4526 (tui_on_no_history): New functions.
4527 (tui_init): Install them as 'end_stepping_range',
4528 'signal_received' 'signal_exited', 'exited' and 'no_history'
4529 observers.
4530 (_initialize_tui_interp): Delete tui_interp local.
4531
45322014-05-29 Pedro Alves <palves@redhat.com>
4533
4534 PR gdb/15713
4535 * linux-nat.c (linux_nat_resume_callback): Rename the second
4536 parameter to 'except'. Skip LP if it points to EXCEPT.
4537 (linux_nat_resume): Don't mark the event lwp as not stopped
4538 before resuming sibling lwps. Instead ask
4539 linux_nat_resume_callback to skip the event lwp. Mark it as not
4540 stopped after actually resuming it.
4541 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4542 resuming it.
4543 (wait_lwp): Mark the lwp as stopped here.
4544 (stop_wait_callback): Mark the lwp as not stopped right after
4545 resuming it. Don't mark lwps as stopped here.
4546 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4547 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4548
45492014-05-29 Pedro Alves <palves@redhat.com>
4550
4551 PR PR15693
4552 * infrun.c (resume): Determine how much to resume depending on
4553 whether the caller wanted a step, not whether we can hardware step
4554 the target. Mark all threads that we intend to run as running,
4555 unless we're calling an inferior function.
4556 (normal_stop): If the thread is running an infcall, don't finish
4557 thread state.
4558 * target.c (target_resume): Don't mark threads as running here.
4559
45602014-05-28 Joel Brobecker <brobecker@adacore.com>
4561
4562 * serial.c (_initialize_serial): Remove support for
4563 the "set remotebaud" and "show remotebaud" commands.
4564 * NEWS: Add entry documenting the removal of that command.
4565
45662014-05-28 Yao Qi <yao@codesourcery.com>
4567
4568 * charset.c: Fix typo in comments.
4569
45702014-05-27 Gary Benson <gbenson@redhat.com>
4571
4572 * utils.c (internal_vproblem): Prompt for a bug report.
4573
45742014-05-26 Andy Wingo <wingo@igalia.com>
4575
4576 * guile/scm-arch.c (arscm_mark_arch_smob):
4577 * guile/scm-block.c (bkscm_mark_block_smob)
4578 (bkscm_mark_block_syms_progress_smob):
4579 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4580 * guile/scm-exception.c (exscm_mark_exception_smob):
4581 * guile/scm-frame.c (frscm_mark_frame_smob):
4582 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4583 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4584 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4585 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4586 (ppscm_mark_pretty_printer_worker_smob):
4587 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4588 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4589 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4590 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4591 mark functions.
4592 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4593 function.
4594
45952014-05-26 Andy Wingo <wingo@igalia.com>
4596 Doug Evans <xdje42@gmail.com>
4597
4598 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4599 empty_base_class. All uses updated.
4600 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4601 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4602 Adapt all callers.
4603 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4604 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4605 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4606 (gdbscm_gsmob_has_property_p, add_property_name)
4607 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4608 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4609 (gdb-object-has-property?, gdb-object-properties): Remove.
4610 (gdb-object-kind): Renamed from gsmob-kind.
4611
46122014-05-26 Andy Wingo <wingo@igalia.com>
4613
4614 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4615 * configure: Regenerate.
4616
46172014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4618
4619 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4620
46212014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4622
4623 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4624 (replay_memory_access_read_only, replay_memory_access_read_write)
4625 (replay_memory_access_types, replay_memory_access)
4626 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4627 (cmd_set_record_btrace, cmd_show_record_btrace)
4628 (cmd_show_replay_memory_access): New.
4629 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4630 (record_btrace_remove_breakpoint): Replace
4631 record_btrace_allow_memory_access with replay_memory_access.
4632 (_initialize_record_btrace): Add commands.
4633 * NEWS: Announce it.
4634
46352014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4636
4637 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4638
46392014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4640
4641 * MAINTAINERS (Write After Approval): Move self back from
4642 paper trail.
4643
46442014-05-22 Pedro Alves <palves@redhat.com>
4645
4646 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4647 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4648 (disable_randomization, enum exec_direction_kind)
4649 (execution_direction, stop_registers, start_remote)
4650 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4651 (wait_for_inferior, normal_stop, get_last_target_status)
4652 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4653 (insert_step_resume_breakpoint_at_sal)
4654 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4655 (set_step_info, print_stop_event, signal_stop_state)
4656 (signal_print_state, signal_pass_state, signal_stop_update)
4657 (signal_print_update, signal_pass_update)
4658 (update_signals_program_target, clear_exit_convenience_vars)
4659 (displaced_step_dump_bytes, update_observer_mode)
4660 (signal_catch_update, gdb_signal_from_command): Move
4661 declarations ...
4662 * infrun.h: ... to this new file.
4663 * amd64-tdep.c: Include infrun.h.
4664 * annotate.c: Include infrun.h.
4665 * arch-utils.c: Include infrun.h.
4666 * arm-linux-tdep.c: Include infrun.h.
4667 * arm-tdep.c: Include infrun.h.
4668 * break-catch-sig.c: Include infrun.h.
4669 * breakpoint.c: Include infrun.h.
4670 * common/agent.c: Include infrun.h instead of inferior.h.
4671 * corelow.c: Include infrun.h.
4672 * event-top.c: Include infrun.h.
4673 * go32-nat.c: Include infrun.h.
4674 * i386-tdep.c: Include infrun.h.
4675 * inf-loop.c: Include infrun.h.
4676 * infcall.c: Include infrun.h.
4677 * infcmd.c: Include infrun.h.
4678 * infrun.c: Include infrun.h.
4679 * linux-fork.c: Include infrun.h.
4680 * linux-nat.c: Include infrun.h.
4681 * linux-thread-db.c: Include infrun.h.
4682 * monitor.c: Include infrun.h.
4683 * nto-tdep.c: Include infrun.h.
4684 * procfs.c: Include infrun.h.
4685 * record-btrace.c: Include infrun.h.
4686 * record-full.c: Include infrun.h.
4687 * remote-m32r-sdi.c: Include infrun.h.
4688 * remote-mips.c: Include infrun.h.
4689 * remote-notif.c: Include infrun.h.
4690 * remote-sim.c: Include infrun.h.
4691 * remote.c: Include infrun.h.
4692 * reverse.c: Include infrun.h.
4693 * rs6000-tdep.c: Include infrun.h.
4694 * s390-linux-tdep.c: Include infrun.h.
4695 * solib-irix.c: Include infrun.h.
4696 * solib-osf.c: Include infrun.h.
4697 * solib-svr4.c: Include infrun.h.
4698 * target.c: Include infrun.h.
4699 * top.c: Include infrun.h.
4700 * windows-nat.c: Include infrun.h.
4701 * mi/mi-interp.c: Include infrun.h.
4702 * mi/mi-main.c: Include infrun.h.
4703 * python/py-threadevent.c: Include infrun.h.
4704
47052014-05-22 Pedro Alves <palves@redhat.com>
4706
4707 * infrun.c (handle_inferior_event): Store the exit code for
4708 --return-child-result here, instead of ...
4709 (print_exited_reason): ... here.
4710
47112014-05-21 Pedro Alves <palves@redhat.com>
4712
4713 PR gdb/13860
4714 * gdbthread.h (struct thread_control_state): New field
4715 `command_interp'.
4716 * infrun.c (follow_fork): Copy the new thread control field to the
4717 child fork thread.
4718 (clear_proceed_status_thread): Clear the new thread control field.
4719 (proceed): Set the new thread control field.
4720 * interps.h (command_interp): Declare.
4721 * interps.c (command_interpreter): New global.
4722 (command_interp): New function.
4723 (interp_exec): Set `command_interpreter' while here.
4724 * cli-out.c (cli_uiout_dtor): New function.
4725 (cli_ui_out_impl): Install it.
4726 * mi/mi-interp.c: Include cli-out.h.
4727 (mi_cmd_interpreter_exec): Add comment.
4728 (restore_current_uiout_cleanup): New function.
4729 (ui_out_free_cleanup): New function.
4730 (mi_on_normal_stop): If finishing an execution command started by
4731 a CLI command, or any kind of breakpoint-like event triggered,
4732 print the stop event to the output (CLI) stream.
4733 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4734
47352014-05-21 Pedro Alves <palves@redhat.com>
4736
4737 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4738 current source line having changed.
4739 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4740 * infrun.c (normal_stop): Adjust call to
4741 set_current_sal_from_frame.
4742 * source.c (clear_lines_listed_range): New function.
4743 (set_current_source_symtab_and_line, identify_source_line): Clear
4744 the lines listed range.
4745 (line_info): Handle the first "info line" after the current source
4746 line having changed.
4747 * stack.c (print_stack_frame): Remove center handling.
4748 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4749 center sal.line.
4750
47512014-05-21 Pedro Alves <palves@redhat.com>
4752
4753 * inf-child.c (inf_child_mourn_inferior): New function.
4754 * inf-child.h (inf_child_mourn_inferior): New declaration.
4755 * darwin-nat.c (darwin_mourn_inferior): Use
4756 inf_child_mourn_inferior.
4757 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4758 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4759 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4760 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4761 * windows-nat.c (windows_mourn_inferior): Likewise.
4762
47632014-05-21 Doug Evans <xdje42@gmail.com>
4764
4765 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4766
47672014-05-21 Doug Evans <xdje42@gmail.com>
4768
4769 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4770 (gdbscm_out_of_range_error): Ditto.
4771 (gdbscm_memory_error): Ditto.
4772 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4773 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4774 (gdbscm_out_of_range_error): Update.
4775 (gdbscm_memory_error): Update.
4776 (gdbscm_scm_to_target_string_unsafe): Delete.
4777
47782014-05-21 Pedro Alves <palves@redhat.com>
4779
4780 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4781 globals.
4782 (inf_child_open_target): New function.
4783 (inf_child_open): Use inf_child_open_target to push the target
4784 instead of erroring out.
4785 (inf_child_disconnect, inf_child_close)
4786 (inf_child_maybe_unpush_target): New functions.
4787 (inf_child_target): Install inf_child_disconnect and
4788 inf_child_close. Store a pointer to the returned object.
4789 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4790 declarations.
4791 * target.c (auto_connect_native_target): New global.
4792 (show_default_run_target): New function.
4793 (find_default_run_target): Return NULL if automatically connecting
4794 to the native target is disabled.
4795 (_initialize_target): Install set/show auto-connect-native-target.
4796 * NEWS: Mention "set auto-connect-native-target", and "target
4797 native".
4798 * linux-nat.c (super_close): New global.
4799 (linux_nat_close): Call super_close.
4800 (linux_nat_add_target): Store a pointer to the base class's
4801 to_close method.
4802 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4803 inf_child_maybe_unpush.
4804 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4805 already pushed.
4806 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4807 the inferior. Use inf_child_maybe_unpush_target.
4808 (inf_ttrace_attach): Don't push the target if it is already
4809 pushed.
4810 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4811 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4812 after mourning the inferior. Use inf_child_maybe_unpush_target.
4813 (darwin_attach_pid): Don't push the target if it is already
4814 pushed.
4815 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4816 mourning the inferior. Use inf_child_maybe_unpush_target.
4817 (gnu_detach): Use inf_child_maybe_unpush_target.
4818 * go32-nat.c (go32_create_inferior): Don't push the target if it
4819 is already pushed.
4820 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4821 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4822 (procfs_open): Rename to ...
4823 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4824 comments. Can target_preopen before changing node. Call
4825 inf_child_open_target to push the target explicitly.
4826 (procfs_attach): Don't push the target if it is already pushed.
4827 (procfs_detach): Use inf_child_maybe_unpush_target.
4828 (procfs_create_inferior): Don't push the target if it is already
4829 pushed.
4830 (nto_native_ops): New global.
4831 (procfs_open): Reimplement.
4832 (procfs_native_open): New function.
4833 (init_procfs_targets): Install procfs_native_open as to_open of
4834 "target native". Store a pointer to the "native" target in
4835 nto_native_ops.
4836 * procfs.c (procfs_attach): Don't push the target if it is already
4837 pushed.
4838 (procfs_detach): Use inf_child_maybe_unpush_target.
4839 (procfs_mourn_inferior): Only unpush the target after mourning the
4840 inferior. Use inf_child_maybe_unpush_target.
4841 (procfs_init_inferior): Don't push the target if it is already
4842 pushed.
4843 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4844 if it is already pushed.
4845
48462014-05-21 Pedro Alves <palves@redhat.com>
4847
4848 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4849 and "procfs" targets are now called "native" instead.
4850
48512014-05-21 Pedro Alves <palves@redhat.com>
4852
4853 * go32-nat.c (go32_open): Delete.
4854 (go32_target): Don't override the to_open method.
4855
48562014-05-21 Pedro Alves <palves@redhat.com>
4857
4858 * nto-procfs.c (procfs_can_run): New function.
4859 (nto_procfs_ops): New global.
4860 (init_procfs_targets): New, based on procfs_target. Install
4861 "target native" in addition to "target procfs".
4862 (_initialize_procfs): Call init_procfs_targets instead of adding
4863 the target here.
4864
48652014-05-21 Pedro Alves <palves@redhat.com>
4866
4867 * windows-nat.c (windows_target): Don't override to_shortname,
4868 to_longname or to_doc.
4869
48702014-05-21 Pedro Alves <palves@redhat.com>
4871
4872 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4873 to_doc.
4874
48752014-05-21 Pedro Alves <palves@redhat.com>
4876
4877 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4878 to_shortname, to_longname or to_doc.
4879
48802014-05-21 Pedro Alves <palves@redhat.com>
4881
4882 * go32-nat.c (go32_target): Don't override to_shortname,
4883 to_longname or to_doc.
4884
48852014-05-21 Pedro Alves <palves@redhat.com>
4886
4887 * inf-child.c (inf_child_open): Remove mention of "child".
4888 (inf_child_target): Rename target to "native" instead of "child".
4889
48902014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4891
4892 * Makefile.in (SFILES): Delete "regset.c".
4893 (COMMON_OBS): Delete "regset.o".
4894 * regset.c: Remove.
4895 * regset.h (regset_alloc): Delete prototype.
4896
48972014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4898
4899 * sparc-linux-tdep.c (sparc32_linux_gregset)
4900 (sparc32_linux_fpregset): New static regset structures.
4901 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4902 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4903 'fpregset' fields.
4904 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4905 (sparc64_linux_fpregset): New static regset structures.
4906 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4907 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4908 New static regset structures.
4909 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4910 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4911 New static regset structures.
4912 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4913 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4914 New static regset structures.
4915 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4916 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4917 New static regset structures.
4918 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4919
49202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4921
4922 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4923 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4924 register maps ("regmaps") from "*regset" to "*regmap". Do this
4925 for all regmap types and variables.
4926 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4927 (sparc32_linux_supply_core_gregset)
4928 (sparc32_linux_collect_core_gregset)
4929 (sparc32_linux_supply_core_fpregset)
4930 (sparc32_linux_collect_core_fpregset): Likewise.
4931 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4932 (sparc_gregmap, sparc_fpregmap): ... these.
4933 (sparc_supply_gregset, sparc_collect_gregset)
4934 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4935 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4936 (_initialize_sparc_nat): Rename regmaps.
4937 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4938 (sparc_gregmap, sparc_fpregmap): ... these.
4939 (sparc_supply_gregset, sparc_collect_gregset)
4940 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4941 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4942 Rename macros to...
4943 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4944 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4945 Likewise.
4946 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4947 Rename to...
4948 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4949 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4950 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4951 regmaps.
4952 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4953 (sparc32_bsd_fpregset): Rename to...
4954 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4955 (sparc32_bsd_fpregmap): ... these.
4956 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4957 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4958 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4959 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4960 (struct sparc_gregmap, struct sparc_fpregmap)
4961 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4962 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4963 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4964 (sparc32_supply_regset, sparc32_collect_gregset)
4965 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4966 prototypes.
4967 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4968 (sparc64_linux_ptrace_gregmap): ... this.
4969 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4970 (_initialize_sparc64_linux_nat): Rename regmaps.
4971 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4972 (sparc64_linux_core_gregmap): ... this.
4973 (sparc64_linux_supply_core_gregset)
4974 (sparc64_linux_collect_core_gregset)
4975 (sparc64_linux_supply_core_fpregset)
4976 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4977 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4978 (sparc64_sol2_fpregset): Rename to...
4979 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4980 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4981 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4982 regmaps.
4983 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4984 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4985 (sparc64_bsd_fpregset): Rename to...
4986 (struct sparc_gregmap, sparc64_sol2_gregmap)
4987 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4988 (sparc64_bsd_fpregmap): ... these.
4989 (sparc64_supply_gregset, sparc64_collect_gregset)
4990 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4991 prototypes.
4992 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4993 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4994 (sparc64fbsd_gregmap): ... this.
4995 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4996 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4997 Rename regmaps.
4998 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4999 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5000 (sparc64nbsd_collect_fpregset): Likewise.
5001 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5002 (sparc64nbsd_gregmap): ... this.
5003 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5004 regmaps.
5005 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5006 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5007 (sparc64obsd_gregmap): ... this.
5008 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5009 regmaps.
5010 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5011 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5012 (sparc32nbsd_gregmap): ... this.
5013 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5014 regmaps.
5015
50162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5017
5018 * score-tdep.c (score7_linux_gregset): New static regset
5019 structure.
5020 (score7_linux_regset_from_core_section): Remove dynamic regset
5021 allocation.
5022 (score_gdbarch_init): Drop allocation of tdep structure.
5023 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5024
50252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5026
5027 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5028 regset structures.
5029 (am33_regset_from_core_section): Remove dynamic regset
5030 allocations.
5031
50322014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5033
5034 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5035 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5036 structures.
5037 (mips_linux_regset_from_core_section): Remove dynamic regset
5038 allocations.
5039 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5040 'gregset64', 'fpregset', and 'fpregset64'.
5041 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5042 deleted tdep fields.
5043
50442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5045
5046 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5047 regset structures.
5048 (amd64_regset_from_core_section): Remove dynamic regset
5049 allocations.
5050 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5051 structure.
5052 (amd64obsd_regset_from_core_section): Remove dynamic regset
5053 allocation.
5054 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5055 Likewise.
5056 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5057 x86-common regset supply function.
5058 * i386-tdep.c (i386_collect_gregset): Make static.
5059 (i386_gregset): New global regset structure.
5060 (i386_fpregset, i386_xstateregset): New static regset structures.
5061 (i386_regset_from_core_section): Remove dynamic regset
5062 allocations.
5063 (i386_gdbarch_init): Remove initialization of tdep fields
5064 'gregset', 'fpregset', and 'xstateregset'.
5065 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5066 'fpregset', and 'xstateregset'.
5067 (i386_collect_gregset): Remove prototype.
5068 (i386_gregset): New declaration.
5069 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5070 structure.
5071 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5072 allocation.
5073
50742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5075
5076 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5077 (arm_linux_vfpregset): New static regset structures.
5078 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5079 regset structures.
5080 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5081 and 'vfpregset' fields.
5082
50832014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5084
5085 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5086 (aarch64_linux_fpregset): New static regset structures.
5087 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5088 of regset structures.
5089 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5090 'fpregset' fields.
5091
50922014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5093
5094 * regset.h (struct regset): Remove gdbarch field.
5095 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5096 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5097 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5098 Likewise.
5099 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5100 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5101 (ppc32_linux_vsxregset): Likewise.
5102 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5103 via the regcache instead of the regset.
5104 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5105 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5106 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5107 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5108 Likewise.
5109
51102014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5111
5112 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5113 Constify structures.
5114 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5115 (alphanbsd_aout_gregset): Likewise.
5116 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5117 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5118 Likewise.
5119 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5120 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5121 Likewise.
5122 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5123 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5124 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5125 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5126 * m88k-tdep.c (m88k_gregset): Likewise.
5127 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5128 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5129 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5130 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5131 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5132 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5133 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5134 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5135 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5136 Likewise.
5137 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5138 * sh-tdep.h (sh_corefile_gregset): Likewise.
5139 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5140 * vax-tdep.c (vax_gregset): Likewise.
5141
51422014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5143
5144 Fix TLS access for -static -pthread.
5145 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5146 (try_thread_db_load_1): Initialize it.
5147 (thread_db_get_thread_local_address): Call it if LM is zero.
5148 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5149 * target.h (struct target_ops) (to_get_thread_local_address): Add
5150 load_module_addr comment.
5151
51522014-05-21 Pedro Alves <palves@redhat.com>
5153
5154 * dcache.c (dcache_read_memory_partial): If reading the cache line
5155 fails, fallback to reading just the memory the caller wanted.
5156
51572014-05-20 Doug Evans <dje@google.com>
5158
5159 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5160 instead of get_current_arch.
5161
51622014-05-20 Pedro Alves <palves@redhat.com>
5163
5164 * NEWS: Mention that compare-sections now works with all targets.
5165
5166 * remote.c (PACKET_qCRC): New enum value.
5167 (remote_verify_memory): Don't send qCRC if the target has no
5168 execution. Use packet_support/packet_ok. If the target doesn't
5169 support the qCRC packet, fallback to a deep memory copy.
5170 (compare_sections_command): Say "target image" instead of "remote
5171 executable".
5172 (_initialize_remote): Add PACKET_qCRC to the list of config
5173 packets that have no associated command. Extend comment.
5174 * target.c (simple_verify_memory, default_verify_memory): New
5175 function.
5176 * target.h (struct target_ops) <to_verify_memory>: Default to
5177 default_verify_memory.
5178 (simple_verify_memory): New declaration.
5179 * target-delegates.c: Regenerate.
5180
51812014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5182
5183 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5184
51852014-05-20 Hui Zhu <hui@codesourcery.com>
5186 Yao Qi <yao@codesourcery.com>
5187
5188 PR backtrace/16558
5189 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5190 and change address of sp and pc.
5191
51922014-05-19 Tom Tromey <tromey@redhat.com>
5193
5194 * gdbtypes.c (rank_function): Use XNEWVEC.
5195 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5196
51972014-05-19 Doug Evans <dje@google.com>
5198
5199 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5200 build_type_unit_groups and moved closer to only caller. Remove
5201 arguments. All references updated. Remove outdated .gdb_index
5202 comment.
5203 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5204 build_type_psymtabs_1.
5205
52062014-05-19 Doug Evans <dje@google.com>
5207
5208 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5209 n_type_unit_groups, all_type_unit_groups. All uses removed.
5210 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5211 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5212 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5213 (add_type_unit_group_to_table): Delete.
5214
52152014-05-19 Doug Evans <dje@google.com>
5216
5217 * eval.c (evaluate_subexp_standard): Add some comments.
5218
52192014-05-17 Doug Evans <xdje42@gmail.com>
5220
5221 * progspace.c (remove_program_space): Delete, unused.
5222 * progspace.h (remove_program_space): Ditto.
5223
52242014-05-17 Doug Evans <xdje42@gmail.com>
5225
5226 * inferior.c (prune_inferiors): Fix comment.
5227 (remove_inferior_command): Call prune_program_spaces.
5228
52292014-05-16 Doug Evans <dje@google.com>
5230
5231 New command line option -D.
5232 * NEWS: Mention it.
5233 * main.c (set_gdb_data_directory): New function.
5234 (captured_main): Recognize -D. Flag error for --data-directory "".
5235 Call set_gdb_data_directory.
5236 (print_gdb_help): Print --data-directory, -D.
5237 * main.h (set_gdb_data_directory): Declare.
5238 * top.c (staged_gdb_datadir): New static global.
5239 (set_gdb_datadir): Call set_gdb_data_directory
5240 (show_gdb_datadir): New function.
5241 (init_main): Update init of data-directory parameter.
5242
52432014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5244
5245 Import the "dirfd" gnulib module.
5246 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5247 * gnulib/aclocal.m4: Update.
5248 * gnulib/config.in: Update.
5249 * gnulib/configure: Update.
5250 * gnulib/import/Makefile.am: Update.
5251 * gnulib/import/Makefile.in: Update.
5252 * gnulib/import/dirfd.c: New.
5253 * gnulib/import/m4/dirfd.m4: New.
5254 * gnulib/import/m4/gnulib-cache.m4: Update.
5255 * gnulib/import/m4/gnulib-comp.m4: Update.
5256
52572014-05-16 Pierre Muller <muller@sourceware.org>
5258 Yao Qi <yao@codesourcery.com>
5259
5260 * valprint.c (print_wchar): Move the code on checking whether
5261 W is a printable wide char to the default branch of switch
5262 statement below. Call wchar_printable instead of gdb_iswprint.
5263
52642014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5265
5266 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5267 ldr.w and ldrd instructions.
5268
52692014-05-15 Doug Evans <dje@google.com>
5270
5271 * dwarf2read.c (read_structure_type): Delete outdated comments.
5272
52732014-05-14 Tom Tromey <tromey@redhat.com>
5274
5275 * macrocmd.c (print_macro_definition): Reindent.
5276
52772014-05-13 Doug Evans <xdje42@gmail.com>
5278
5279 * python/py-cmd.c (cmdpy_completer): Add comment.
5280 (completers): Make const.
5281
52822014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5283
5284 * infrun.c (resume): Remove should_resume (unused). Move up
5285 declaration of resume_ptid.
5286
52872014-05-13 Tom Tromey <tromey@redhat.com>
5288
5289 * language.h (unop_type_check): Remove.
5290 (binop_type_check): Don't declare.
5291
52922014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5293
5294 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5295 call to regcache_raw_collect.
5296
52972014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5298
5299 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5300 mi_console->quote as the quoting character.
5301
53022014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5303
5304 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5305
53062014-04-29 Tom Tromey <tromey@redhat.com>
5307
5308 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5309 "show debug varobj".
5310
53112014-05-07 Kyle McMartin <kyle@redhat.com>
5312
5313 Pushed by Joel Brobecker <brobecker@adacore.com>.
5314 * aarch64-tdep.c (aarch64_software_single_step): New function.
5315 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5316 with aarch64_software_single_step.
5317
53182014-05-05 Joel Brobecker <brobecker@adacore.com>
5319
5320 GDB 7.7.1 released.
5321
53222014-05-05 Keith Seitz <keiths@redhat.com>
5323
5324 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5325 variable or history value is successfully parsed.
5326
53272014-05-05 Yao Qi <yao@codesourcery.com>
5328 Pedro Alves <palves@redhat.com>
5329
5330 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5331 address of blocks that intersects the requested range. Trim
5332 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5333 sections.
5334 * ctf.c (ctf_xfer_partial): Likewise.
5335
53362014-05-05 Yao Qi <yao@codesourcery.com>
5337
5338 * printcmd.c (display_command): Remove the check to
5339 target_has_execution.
5340
53412014-05-03 Mark Kettenis <kettenis@gnu.org>
5342
5343 * ppcobsd-nat.c: Include "obsd-nat.h".
5344 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5345 add_target.
5346 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5347
53482014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5349
5350 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5351 and 16-bit signed and unsigned arguments. Update comment.
5352 (stap_parse_probe_arguments): Extend code to handle such
5353 arguments. Use warning instead of complaint to notify about
5354 unrecognized bitness.
5355
53562014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5357
5358 PR breakpoints/16889
5359 * stap-probe.c (stap_parse_probe_arguments): Simplify
5360 check for non-prefixed probes (i.e., probes whose
5361 arguments do not start with "N@"). Always set the
5362 argument type to a sane value.
5363
53642014-05-01 David Taylor <dtaylor@emc.com>
5365
5366 * remote.c (compare_sections_command): Add -r option to compare
5367 all loadable read-only sections.
5368
53692014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5370
5371 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5372 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5373 Update all callers.
5374 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5375 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5376 Remove unused CORE_ADDR argument. Update all callers.
5377
53782014-04-29 Pedro Alves <palves@redhat.com>
5379
5380 * remote.c (struct packet_config) <detect>: Extend comment.
5381 (add_packet_config_cmd): Don't set the config's detect or support
5382 fields here.
5383 (init_all_packet_configs): Also initialize the config's 'detect'
5384 field.
5385 (reset_all_packet_configs_support): New function.
5386 (remote_open_1): Call reset_all_packet_configs_support instead of
5387 init_all_packet_configs.
5388 (_initialize_remote): Initialize all packet configs. Assert that
5389 all packets have an associated command, except a few known
5390 outliers.
5391
53922014-04-28 Joel Brobecker <brobecker@adacore.com>
5393
5394 * dwarf2read.c (read_subrange_type): Handle dynamic
5395 DW_AT_lower_bound attributes.
5396
53972014-04-28 Joel Brobecker <brobecker@adacore.com>
5398
5399 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5400 dynamic bounds before computing its upper bound.
5401 (ada_discrete_type_low_bound): Same as above with the lower bound.
5402
54032014-04-28 Joel Brobecker <brobecker@adacore.com>
5404
5405 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5406 range types. Adjust the array handling implementation to
5407 take advantage of this change.
5408 (resolve_dynamic_range): New function, mostly extracted from
5409 resolve_dynamic_bounds.
5410 (resolve_dynamic_array): New function, mostly extracted from
5411 resolve_dynamic_bounds.
5412 (resolve_dynamic_bounds): Delete.
5413 (resolve_dynamic_type): Reimplement. Add handling of
5414 TYPE_CODE_RANGE types.
5415
54162014-04-28 Joel Brobecker <brobecker@adacore.com>
5417
5418 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5419 handling of parallel ___XA types.
5420
54212014-04-28 Joel Brobecker <brobecker@adacore.com>
5422
5423 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5424 unnecessary second call to static_unwrap_type.
5425
54262014-04-27 Hui Zhu <hui@codesourcery.com>
5427
5428 * stack.c (print_frame_info): Call do_gdb_disassembly with
5429 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5430
54312014-04-26 Doug Evans <xdje42@gmail.com>
5432
5433 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5434
54352014-04-25 Pedro Alves <palves@redhat.com>
5436
5437 PR server/16255
5438 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5439 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5440 and newline from built string.
5441 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5442 (linux_ptrace_attach_fail_reason): ... this.
5443 * linux-nat.c (linux_nat_attach): Adjust to use
5444 linux_ptrace_attach_fail_reason.
5445
54462014-04-25 Pedro Alves <palves@redhat.com>
5447
5448 * remote.c (struct remote_state): Remove multi_process_aware,
5449 non_stop_aware, cond_tracepoints, cond_breakpoints,
5450 breakpoint_commands, fast_tracepoints, static_tracepoints,
5451 install_in_trace, disconnected_tracing,
5452 enable_disable_tracepoints, string_tracing, and
5453 augmented_libraries_svr4_read fields.
5454 (remote_multi_process_p): Move further below in the file.
5455 (struct packet_config): Add comments.
5456 (update_packet_config): Delete function.
5457 (show_packet_config_cmd): Use packet_config_support.
5458 (add_packet_config_cmd): Use NULL as set callback.
5459 (packet_ok): "set remote foo-packet"-style commands no longer
5460 change config->supported -- adjust.
5461 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5462 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5463 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5464 (PACKET_QNonStop, PACKET_multiprocess_feature)
5465 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5466 (PACKET_DisconnectedTracing_feature)
5467 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5468 (set_remote_protocol_packet_cmd): Delete function.
5469 (packet_config_support, packet_support): New functions.
5470 (set_remote_protocol_Z_packet_cmd): Don't call
5471 update_packet_config.
5472 (remote_query_attached, remote_pass_signals)
5473 (remote_program_signals, remote_threads_info)
5474 (remote_threads_extra_info, remote_start_remote): Use
5475 packet_support.
5476 (remote_start_remote): Use packet_config_support and
5477 packet_support.
5478 (init_all_packet_configs): Set all packets to unknown support,
5479 instead of calling update_packet_config.
5480 (remote_check_symbols): Use packet_support.
5481 (remote_supported_packet): Unconditionally set the packet config's
5482 support status.
5483 (remote_multi_process_feature, remote_non_stop_feature)
5484 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5485 (remote_breakpoint_commands_feature)
5486 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5487 (remote_install_in_trace_feature)
5488 (remote_disconnected_tracing_feature)
5489 (remote_enable_disable_tracepoint_feature)
5490 (remote_string_tracing_feature)
5491 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5492 (remote_protocol_features): Adjust to use remote_supported_packet
5493 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5494 "ConditionalTracepoints", "ConditionalBreakpoints",
5495 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5496 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5497 "EnableDisableTracepoints", and "tracenz".
5498 (remote_query_supported): Use packet_support.
5499 (remote_open_1): Adjust.
5500 (extended_remote_attach_1): Use packet_support. Switch on the
5501 result of packet_ok instead of checking whether the packet ended
5502 up disabled.
5503 (remote_vcont_resume): Use packet_support.
5504 (remote_resume, remote_stop_ns, fetch_register_using_p)
5505 (remote_prepare_to_store, store_register_using_P)
5506 (check_binary_download, remote_write_bytes): Use packet_support.
5507 (remote_vkill): Use packet_support. Switch on the result of
5508 packet_ok instead of checking whether the packet ended up
5509 disabled.
5510 (extended_remote_supports_disable_randomization): Use
5511 packet_support.
5512 (extended_remote_run): Switch on the result of packet_ok instead
5513 of checking whether the packet ended up disabled.
5514 (remote_insert_breakpoint, remote_remove_breakpoint)
5515 (remote_insert_watchpoint, remote_remove_watchpoint)
5516 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5517 packet_support.
5518 (remote_search_memory): Use packet_config_support.
5519 (remote_get_thread_local_address, remote_get_tib_address)
5520 (remote_hostio_send_command, remote_can_execute_reverse): Use
5521 packet_support.
5522 (remote_supports_cond_tracepoints)
5523 (remote_supports_cond_breakpoints)
5524 (remote_supports_fast_tracepoints)
5525 (remote_supports_static_tracepoints)
5526 (remote_supports_install_in_trace)
5527 (remote_supports_enable_disable_tracepoint)
5528 (remote_supports_string_tracing)
5529 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5530 the packet config says the feature is enabled or disabled.
5531 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5532 (remote_get_trace_status): Use packet_support.
5533 (remote_set_disconnected_tracing): Adjust to check whether the
5534 feature is enabled with packet_support.
5535 (remote_set_trace_buffer_size, remote_use_agent)
5536 (remote_can_use_agent, remote_supports_btrace): Use
5537 packet_support.
5538 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5539 Use packet_config_support.
5540 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5541 the packet config says the feature is enabled or disabled.
5542 (set_range_stepping): Use packet_support.
5543
55442014-04-25 Tom Tromey <tromey@redhat.com>
5545
5546 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5547 argument.
5548
55492014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5550
5551 * NEWS: Mention support for C99 variable length arrays.
5552
55532014-04-24 Joel Brobecker <brobecker@adacore.com>
5554
5555 * ada-lang.c (standard_exc): Expand introductory comment.
5556
55572014-04-24 Michael Sturm <michael.sturm@mintel.com>
5558 Walfred Tedeschi <walfred.tedeschi@intel.com>
5559
5560 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5561 AVX512 registers.
5562 (amd64_linux_read_description): Add code to handle AVX512 xstate
5563 mask and return respective tdesc.
5564 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5565 and features/i386/x32-avx512-linux.c.
5566 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5567 (amd64_linux_core_read_description): Add code to handle AVX512
5568 xstate mask and return respective tdesc.
5569 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5570 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5571 calculation.
5572 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5573 (tdesc_amd64_avx512_linux): New prototype.
5574 (tdesc_x32_avx512_linux): Likewise.
5575 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5576 features/i386/x32-avx512.c.
5577 (amd64_ymm_avx512_names): New register names for pseudo
5578 registers YMM16-31.
5579 (amd64_ymmh_avx512_names): New register names for raw registers
5580 YMMH16-31.
5581 (amd64_k_names): New register names for K registers.
5582 (amd64_zmmh_names): New register names for ZMM raw registers.
5583 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5584 (amd64_xmm_avx512_names): New register names for XMM16-31
5585 registers.
5586 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5587 registers.
5588 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5589 if feature is present.
5590 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5591 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5592 (AMD64_NUM_REGS): Adjust to new number of registers.
5593 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5594 registers supplied via XSTATE by AVX512 registers.
5595 (i386_linux_read_description): Add case for AVX512.
5596 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5597 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5598 (i386_linux_core_read_description): Add case for AVX512.
5599 (i386_linux_init_abi): Install supported register note section
5600 for AVX512.
5601 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5602 AVX512.
5603 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5604 registers to be number of zmm7h + 1.
5605 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5606 * i386-tdep.c: Include features/i386/i386-avx512.c.
5607 (i386_zmm_names): Add ZMM pseudo register names array.
5608 (i386_zmmh_names): Add ZMM raw register names array.
5609 (i386_k_names): Add K raw register names array.
5610 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5611 registers. AVX512 has 16 more ZMM registers than there are YMM
5612 registers.
5613 (i386_zmmh_regnum_p): Add function to look up register number of
5614 ZMM raw registers.
5615 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5616 (i386_k_regnum_p): Likewise for K raw registers.
5617 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5618 registers added by AVX512.
5619 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5620 registers added by AVX512.
5621 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5622 added by AVX512.
5623 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5624 (i386_pseudo_register_name): Add ZMM pseudo registers.
5625 (i386_zmm_type): Construct and return vector registers type for ZMM
5626 registers.
5627 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5628 ZMM0-31 pseudo registers and K registers.
5629 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5630 and YMM16-31 registers from register cache.
5631 (i386_pseudo_register_write): Add code to write K, ZMM and
5632 YMM16-31 registers.
5633 (i386_register_reggroup_p): Add code to include/exclude AVX512
5634 registers in/from respective register groups.
5635 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5636 registers if feature is present in xcr0.
5637 (i386_gdbarch_init): Add code to initialize AVX512 feature
5638 variables in tdep structure, wire in pseudo registers and call
5639 initialize_tdesc_i386_avx512.
5640 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5641 variables.
5642 (i386_regnum): Add AVX512 registers.
5643 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5644 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5645 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5646 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5647 512 bits wide.
5648 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5649 (i386_ymm_avx512_regnum_p): Likewise.
5650 (i386_k_regnum_p): Likewise.
5651 (i386_zmm_regnum_p): Likewise.
5652 (i386_zmmh_regnum_p): Likewise.
5653 * i387-tdep.c : Update year in copyright notice.
5654 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5655 XSAVE buffer.
5656 (XSAVE_YMM_AVX512_ADDR): New macro.
5657 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5658 XSAVE buffer.
5659 (XSAVE_XMM_AVX512_ADDR): New macro.
5660 (xsave_avx512_k_offset): New table for K register offsets in
5661 XSAVE buffer.
5662 (XSAVE_AVX512_K_ADDR): New macro.
5663 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5664 in XSAVE buffer.
5665 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5666 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5667 buffer.
5668 (i387_collect_xsave): Add code to collect AVX512 registers from
5669 XSAVE buffer.
5670 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5671 of XMM16-31 registers.
5672 (I387_NUM_K_REGS): New define for number of K registers.
5673 (I387_K0_REGNUM): New define for K0 register number.
5674 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5675 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5676 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5677 registers.
5678 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5679 (I387_XMM16_REGNUM): New define for XMM16 register number.
5680 (I387_YMM0_REGNUM): New define for YMM0 register number.
5681 (I387_KEND_REGNUM): New define for last K register number.
5682 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5683 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5684 number.
5685 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5686 number.
5687 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5688 size.
5689 * features/Makefile: Add AVX512 related files.
5690 * features/i386/32bit-avx512.xml: New file.
5691 * features/i386/64bit-avx512.xml: Likewise.
5692 * features/i386/amd64-avx512-linux.c: Likewise.
5693 * features/i386/amd64-avx512-linux.xml: Likewise.
5694 * features/i386/amd64-avx512.c: Likewise.
5695 * features/i386/amd64-avx512.xml: Likewise.
5696 * features/i386/i386-avx512-linux.c: Likewise.
5697 * features/i386/i386-avx512-linux.xml: Likewise.
5698 * features/i386/i386-avx512.c: Likewise.
5699 * features/i386/i386-avx512.xml: Likewise.
5700 * features/i386/x32-avx512-linux.c: Likewise.
5701 * features/i386/x32-avx512-linux.xml: Likewise.
5702 * features/i386/x32-avx512.c: Likewise.
5703 * features/i386/x32-avx512.xml: Likewise.
5704 * regformats/i386/amd64-avx512-linux.dat: New file.
5705 * regformats/i386/amd64-avx512.dat: Likewise.
5706 * regformats/i386/i386-avx512-linux.dat: Likewise.
5707 * regformats/i386/i386-avx512.dat: Likewise.
5708 * regformats/i386/x32-avx512-linux.dat: Likewise.
5709 * regformats/i386/x32-avx512.dat: Likewise.
5710 * NEWS: Add note about new support for AVX512.
5711
5712
57132014-04-23 Pedro Alves <palves@redhat.com>
5714
5715 * breakpoint.c (insert_bp_location): Tolerate errors if the
5716 breakpoint is set in a user-loaded objfile.
5717 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5718 location is marked shlib_disabled. If the breakpoint is set in a
5719 user-loaded objfile is a GDB-side memory breakpoint, validate it
5720 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5721 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5722 flag.
5723 * mem-break.c (memory_validate_breakpoint): New function.
5724 * objfiles.c (userloaded_objfile_contains_address_p): New
5725 function.
5726 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5727 * target.h (memory_validate_breakpoint): New declaration.
5728
57292014-04-23 Pedro Alves <palves@redhat.com>
5730
5731 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5732 the breakpoint is set in a shared library, only suppress
5733 errors for software breakpoints, not hardware breakpoints.
5734
57352014-04-22 Pedro Alves <palves@redhat.com>
5736
5737 * infrun.c (schedlock_applies): New function, factored out from
5738 find_thread_needs_step_over.
5739 (find_thread_needs_step_over): Use it.
5740 (switch_back_to_stepped_thread): Always clear trap_expected if the
5741 step over is finished. Return early if scheduler locking applies.
5742 Look for the stepping thread and a potential step-over thread with
5743 a single loop.
5744 (currently_stepping_or_nexting_callback): Delete.
5745
57462014-04-22 Nick Clifton <nickc@redhat.com>
5747
5748 * NEWS: Mention that ARM sim now supports tracing.
5749
57502014-04-22 Yao Qi <yao@codesourcery.com>
5751
5752 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5753 to ...
5754 * tracefile.c (tracefile_fetch_registers): ... it. New
5755 function.
5756 * tracefile.h (tracefile_fetch_registers): Declare.
5757 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5758 tracefile_fetch_registers.
5759
57602014-04-19 Eli Zaretskii <eliz@gnu.org>
5761
5762 PR gdb/14018
5763 * windows-nat.c (thread_rec): Don't display a warning when
5764 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5765 fails for any reason, set th->suspended to -1, so that we don't
5766 try to resume such a thread. Also, don't return NULL in these
5767 cases, to avoid completely ruin the session due to "PC register is
5768 not available" error.
5769 (do_windows_fetch_inferior_registers): Check errors in
5770 GetThreadContext call.
5771 (windows_continue): Accept an additional argument KILLED; if not
5772 zero, ignore errors in the SetThreadContext call, since the
5773 inferior was killed and is shutting down.
5774 (windows_resume, get_windows_debug_event)
5775 (windows_create_inferior, windows_mourn_inferior)
5776 (windows_kill_inferior): All callers of windows_continue changed
5777 to adjust to its new calling sequence.
5778
57792014-04-19 Yao Qi <yao@codesourcery.com>
5780
5781 * ctf.c (ctf_open): Call post_create_inferior.
5782
57832014-04-19 Yao Qi <yao@codesourcery.com>
5784
5785 * ctf.c (handle_id): New static variable.
5786 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5787 value. Get the declaration of event "register" and get length
5788 of field "contents".
5789
57902014-04-19 Yao Qi <yao@codesourcery.com>
5791
5792 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5793
57942014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5795
5796 * valops.c (oload_method_static): Remove unnecessary argument
5797 METHOD. Update all callers.
5798
57992014-04-18 Pedro alves <palves@redhat.com>
5800 Tom Tromey <tromey@redhat.com>
5801
5802 PR backtrace/15558
5803 * frame.c (get_prev_frame_1): Rename to ...
5804 (get_prev_frame_always): ... this, and make extern. Adjust.
5805 (skip_artificial_frames): Use get_prev_frame_always.
5806 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5807 (get_frame_unwind_stop_reason): Adjust to rename.
5808 * frame.h (get_prev_frame_always): Declare.
5809 * inline-frame.c: Include frame.h.
5810 (inline_frame_this_id): Use get_prev_frame_always.
5811
58122014-04-18 Tristan Gingold <gingold@adacore.com>
5813
5814 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5815 code by using bfd_mach_o_get_base_address.
5816
58172014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5818
5819 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5820 (spu_ax_pseudo_register_collect): New function.
5821 (spu_ax_pseudo_register_push_stack): Likewise.
5822 (spu_dwarf_reg_to_regnum): Likewise.
5823 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5824
58252014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5826
5827 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5828 Replace FRAME argument with FRAME_ID.
5829 * gdbarch.c, gdbarch.h: Regenerate.
5830 * findvar.c (default_value_from_register): Add GDBARCH argument;
5831 replace FRAME by FRAME_ID. No longer call get_frame_id.
5832 (value_from_register): Update call to gdbarch_value_from_register.
5833 * value.h (default_value_from_register): Update prototype.
5834 * s390-linux-tdep.c (s390_value_from_register): Update interface
5835 and call to default_value_from_register.
5836 * spu-tdep.c (spu_value_from_register): Likewise.
5837
5838 * findvar.c (address_from_register): Remove TYPE argument.
5839 Do not call value_from_register; use gdbarch_value_from_register
5840 with null_frame_id instead.
5841 * value.h (address_from_register): Update prototype.
5842 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5843 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5844 address_from_register interface change.
5845
58462014-04-17 Yao Qi <yao@codesourcery.com>
5847
5848 * gdbtypes.h: Update comments to link to types and macros'
5849 definitions.
5850
58512014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5852
5853 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5854
58552014-04-16 Keith Seitz <keiths@redhat.com>
5856
5857 PR gdb/15827
5858 * dwarf2read.c (skip_one_die): Check that all relative-offset
5859 sibling DIEs fall within range of the current reader's buffer.
5860 (read_partial_die): Likewise.
5861
58622014-04-16 Keith Seitz <keiths@redhat.com>
5863
5864 PR c++/16597
5865 * cp-namespace.c (lookup_symbol_file): If the type name of
5866 `this' is NULL, return immediately.
5867
58682014-04-14 Keith Seitz <keiths@redhat.com>
5869
5870 PR c++/16253
5871 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5872 from symbol_matches_domain in symtab.c. All local callers
5873 of symbol_matches_domain updated.
5874 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5875 search STRUCT_DOMAIN.
5876 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5877 independently. standard_lookup will do that automatically.
5878 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5879 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5880 (cp_lookup_symbol_in_namespace): Likewise.
5881 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5882 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5883 may return a STRUCT_DOMAIN match.
5884 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5885 * cp-support.c: Include language.h.
5886 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5887 VAR_DOMAIN.
5888 * psymtab.c (match_partial_symbol): Compare the requested
5889 domain with the symbol's domain directly.
5890 (lookup_partial_symbol): Likewise.
5891 * symtab.c (lookup_symbol_in_language): Explain when/why
5892 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5893 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5894 appropriate languages.
5895 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5896 and moved to ada-lang.c
5897 (lookup_block_symbol): Explain that this function only returns
5898 symbol matching the requested DOMAIN.
5899 Compare the requested domain with the symbol's domain directly.
5900 (iterate_over_symbols): Compare the requested domain with the
5901 symbol's domain directly.
5902 * symtab.h (symbol_matches_domain): Remove.
5903
59042014-04-14 Tom Tromey <tromey@redhat.com>
5905
5906 PR c++/15246:
5907 * c-exp.y (type_aggregate_p): New function.
5908 (qualified_name, classify_inner_name): Use it.
5909 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5910 and TYPE_TARGET_TYPE of an enum type.
5911 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5912 an enum type.
5913 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5914 handle TYPE_DECLARED_CLASS.
5915 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5916 types.
5917 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5918 * valops.c (enum_constant_from_type): New function.
5919 (value_aggregate_elt): Use it.
5920 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5921 TYPE_CODE_ENUM.
5922
59232014-04-14 Tom Tromey <tromey@redhat.com>
5924
5925 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5926 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5927 const.
5928 * value.h (value_aggregate_elt): Update.
5929
59302014-04-14 Tom Tromey <tromey@redhat.com>
5931
5932 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5933
59342014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5935
5936 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5937 (evaluate_subexp_standard): Pass noside argument.
5938 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5939 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5940 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5941 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5942 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5943
59442014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5945
5946 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5947 points to a constant blob.
5948
59492014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5950
5951 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5952 property and store it as the high bound and flag the range accordingly.
5953 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5954 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5955 * gdbtypes.h (enum range_flags): New enum.
5956 (struct range_bounds): Add flags member.
5957
59582014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5959
5960 * c-typeprint.c (c_type_print_varspec_suffix): Added
5961 check for not yet resolved high bound. If unresolved, print
5962 "variable length" string to the console instead of random
5963 length.
5964
59652014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5966
5967 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5968 value.
5969 (ada_template_to_fixed_record_type_1): Likewise.
5970 (ada_to_fixed_type_1): Likewise.
5971 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5972 (cp_print_value): Likewise.
5973 * d-valprint.c (dynamic_array_type): Likewise.
5974 * findvar.c (address_of_variable): Likewise.
5975 * jv-valprint.c (java_value_print): Likewise.
5976 * valops.c (value_ind): Likewise.
5977 * value.c (coerce_ref): Likewise.
5978
59792014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5980
5981 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5982 value and retrieve the dynamic type size.
5983
59842014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5985
5986 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5987 passed to sizeof is dynamic evaluate the argument to compute the length.
5988
59892014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5990 Joel Brobecker <brobecker@adacore.com>
5991
5992 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5993 (dwarf2_evaluate_property): New function.
5994 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5995 * dwarf2read.c (attr_to_dynamic_prop): New function.
5996 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5997 attribute.
5998 * gdbtypes.c: Include dwarf2loc.h.
5999 (is_dynamic_type): New function.
6000 (resolve_dynamic_type): New function.
6001 (resolve_dynamic_bounds): New function.
6002 (get_type_length): New function.
6003 (check_typedef): Use get_type_length to compute type length.
6004 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6005 (TYPE_LOW_BOUND_KIND): New macro.
6006 (is_dynamic_type): New function prototype.
6007 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6008 to resolve dynamic properties of the type. Update comment.
6009 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6010
60112014-04-14 Richard Henderson <rth@redhat.com>
6012
6013 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6014
60152014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6016 Doug Evans <xdje42@gmail.com>
6017
6018 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6019 dereference TYPE_CODE_REF values.
6020
60212014-04-11 Joel Brobecker <brobecker@adacore.com>
6022
6023 Revert the following changes due to regressions:
6024
6025 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6026 (dwarf2_evaluate_property): New function.
6027 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6028 * dwarf2read.c (attr_to_dynamic_prop): New function.
6029 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6030 attribute.
6031 * gdbtypes.c: Include dwarf2loc.h.
6032 (is_dynamic_type): New function.
6033 (resolve_dynamic_type): New function.
6034 (resolve_dynamic_bounds): New function.
6035 (get_type_length): New function.
6036 (check_typedef): Use get_type_length to compute type length.
6037 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6038 (TYPE_LOW_BOUND_KIND): New macro.
6039 (is_dynamic_type): New function prototype.
6040 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6041 to resolve dynamic properties of the type. Update comment.
6042 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6043
6044 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6045 passed to sizeof is dynamic evaluate the argument to compute the length.
6046
6047 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6048 value and retrieve the dynamic type size.
6049
6050 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6051 (ada_template_to_fixed_record_type_1): Likewise.
6052 (ada_to_fixed_type_1): Likewise.
6053 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6054 (cp_print_value): Likewise.
6055 * d-valprint.c (dynamic_array_type): Likewise.
6056 * eval.c (evaluate_subexp_with_coercion): Likewise.
6057 * findvar.c (address_of_variable): Likewise.
6058 * jv-valprint.c (java_value_print): Likewise.
6059 * valops.c (value_ind): Likewise.
6060 * value.c (coerce_ref): Likewise.
6061
6062 * c-typeprint.c (c_type_print_varspec_suffix): Added
6063 check for not yet resolved high bound. If unresolved, print
6064 "variable length" string to the console instead of random
6065 length.
6066
6067 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6068 property and store it as the high bound and flag the range accordingly.
6069 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6070 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6071 * gdbtypes.h (enum range_flags): New enum.
6072 (struct range_bounds): Add flags member.
6073
6074 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6075 points to a constant blob.
6076
6077 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6078 (evaluate_subexp_standard): Pass noside argument.
6079 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6080 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6081 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6082 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6083 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6084
60852014-04-11 Keith Seitz <keiths@redhat.com>
6086
6087 PR c++/16675
6088 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6089 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6090 reference types.
6091
60922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6093
6094 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6095 (evaluate_subexp_standard): Pass noside argument.
6096 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6097 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6098 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6099 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6100 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6101
61022014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6103
6104 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6105 points to a constant blob.
6106
61072014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6108
6109 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6110 property and store it as the high bound and flag the range accordingly.
6111 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6112 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6113 * gdbtypes.h (enum range_flags): New enum.
6114 (struct range_bounds): Add flags member.
6115
61162014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6117
6118 * c-typeprint.c (c_type_print_varspec_suffix): Added
6119 check for not yet resolved high bound. If unresolved, print
6120 "variable length" string to the console instead of random
6121 length.
6122
61232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6124
6125 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6126 (ada_template_to_fixed_record_type_1): Likewise.
6127 (ada_to_fixed_type_1): Likewise.
6128 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6129 (cp_print_value): Likewise.
6130 * d-valprint.c (dynamic_array_type): Likewise.
6131 * eval.c (evaluate_subexp_with_coercion): Likewise.
6132 * findvar.c (address_of_variable): Likewise.
6133 * jv-valprint.c (java_value_print): Likewise.
6134 * valops.c (value_ind): Likewise.
6135 * value.c (coerce_ref): Likewise.
6136
61372014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6138
6139 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6140 value and retrieve the dynamic type size.
6141
61422014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6143
6144 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6145 passed to sizeof is dynamic evaluate the argument to compute the length.
6146
61472014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6148
6149 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6150 (dwarf2_evaluate_property): New function.
6151 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6152 * dwarf2read.c (attr_to_dynamic_prop): New function.
6153 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6154 attribute.
6155 * gdbtypes.c: Include dwarf2loc.h.
6156 (is_dynamic_type): New function.
6157 (resolve_dynamic_type): New function.
6158 (resolve_dynamic_bounds): New function.
6159 (get_type_length): New function.
6160 (check_typedef): Use get_type_length to compute type length.
6161 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6162 (TYPE_LOW_BOUND_KIND): New macro.
6163 (is_dynamic_type): New function prototype.
6164 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6165 to resolve dynamic properties of the type. Update comment.
6166 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6167
61682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6169
6170 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6171 declaring high/low bounds and change uses accordingly. Call
6172 create_range_type instead of create_static_range_type.
6173 * gdbtypes.c (create_range_type): New function.
6174 (create_range_type): Convert bounds into struct bound_prop and pass
6175 them to create_range_type.
6176 * gdbtypes.h (struct bound_prop): New struct.
6177 (create_range_type): New function prototype.
6178 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6179 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6180 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6181 part of the bound.
6182 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6183
61842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6185
6186 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6187 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6188 * ada-lang.c: All uses of create_range_type updated.
6189 * coffread.c: All uses of create_range_type updated.
6190 * dwarf2read.c: All uses of create_range_type updated.
6191 * f-exp.y: All uses of create_range_type updated.
6192 * m2-valprint.c: All uses of create_range_type updated.
6193 * mdebugread.c: All uses of create_range_type updated.
6194 * stabsread.c: All uses of create_range_type updated.
6195 * valops.c: All uses of create_range_type updated.
6196 * valprint.c: All uses of create_range_type updated.
6197
61982014-04-10 Pedro Alves <palves@redhat.com>
6199
6200 * breakpoint.c (single_step_breakpoints)
6201 (single_step_gdbarch): Move up in the file.
6202 (one_breakpoint_xfer_memory): New function, factored out from ...
6203 (breakpoint_xfer_memory): ... here. Also process single-step
6204 breakpoints.
6205
62062014-04-09 Tristan Gingold <gingold@adacore.com>
6207
6208 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6209 comments.
6210 (darwin_decode_exception_message): Free port only after use.
6211
62122014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6213
6214 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6215 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6216 when setting the size of call_length.
6217
62182014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6219
6220 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6221 dereference TYPE_CODE_REF values.
6222
62232014-04-07 Joel Brobecker <brobecker@adacore.com>
6224
6225 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6226 end of warning message.
6227
62282014-04-03 Doug Evans <dje@google.com>
6229
6230 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6231 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6232
62332014-04-02 Alan Modra <amodra@gmail.com>
6234
6235 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6236 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6237 (struct symbol_file_add_from_memory_args): Add size field.
6238 (find_vdso_size): New function.
6239 (add_vsyscall_page): Attempt to find vdso size.
6240
62412014-04-01 Doug Evans <dje@google.com>
6242
6243 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6244
62452014-04-01 Tristan Gingold <gingold@adacore.com>
6246
6247 * darwin-nat.c (darwin_encode_reply): Add prototype.
6248 (darwin_decode_exception_message): Reply to unknown inferiors.
6249 (darwin_decode_message): Handle message by id. Ignore message
6250 to unknown inferior.
6251 (darwin_wait): Discard unknown messages, add debug trace.
6252
62532014-03-31 Doug Evans <dje@google.com>
6254
6255 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6256 comp_dir_string.
6257
62582014-03-31 Doug Evans <dje@google.com>
6259
6260 New option "set print symbol-loading".
6261 * NEWS: Mention it.
6262 * solib.c (solib_read_symbols): Only print symbol loading messages
6263 if requested.
6264 (solib_add): If symbol loading is in "brief" mode, notify user
6265 symbols are being loaded.
6266 (reload_shared_libraries_1): Ditto.
6267 * symfile.c (print_symbol_loading_off): New static global.
6268 (print_symbol_loading_brief): New static global.
6269 (print_symbol_loading_full): New static global.
6270 (print_symbol_loading_enums): New static global.
6271 (print_symbol_loading): New static global.
6272 (print_symbol_loading_p): New function.
6273 (symbol_file_add_with_addrs): Only print symbol loading messages
6274 if requested.
6275 (_initialize_symfile): Register "print symbol-loading" set/show
6276 command.
6277 * symfile.h (print_symbol_loading_p): Declare.
6278
62792014-03-30 Doug Evans <xdje42@gmail.com>
6280
6281 * infrun.c (set_last_target_status): New function.
6282 (handle_inferior_event): Call it.
6283
62842014-03-30 Doug Evans <xdje42@gmail.com>
6285
6286 * inferior.h (enum stop_kind): Improve comment.
6287
62882014-03-28 Joel Brobecker <brobecker@adacore.com>
6289
6290 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6291 a reference, strip the reference layer before calling
6292 the lang_ops value_has_mutated callback.
6293
62942014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6295
6296 Remove some globals from our parser.
6297 * language.c (unk_lang_parser): Add "struct parser_state"
6298 argument.
6299 * language.h (struct language_defn) <la_parser>: Likewise.
6300 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6301 (initialize_expout): Add "struct parser_state" argument.
6302 Rewrite function to use the parser state.
6303 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6304 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6305 write_exp_elt_longcst, write_exp_elt_dblcst,
6306 write_exp_elt_decfloatcst, write_exp_elt_type,
6307 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6308 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6309 write_dollar_variable): Likewise.
6310 (parse_exp_in_context_1): Use parser state.
6311 (insert_type_address_space): Add "struct parser_state" argument.
6312 Use parser state.
6313 (increase_expout_size): New function.
6314 * parser-defs.h: Forward declare "struct language_defn" and
6315 "struct parser_state".
6316 (expout, expout_size, expout_ptr): Remove extern declarations.
6317 (parse_gdbarch, parse_language): Rewrite macro declarations to
6318 accept the parser state.
6319 (struct parser_state): New struct.
6320 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6321 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6322 write_exp_elt_decfloatcst, write_exp_elt_type,
6323 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6324 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6325 write_exp_msymbol, write_dollar_variable,
6326 mark_struct_expression, insert_type_address_space): Add "struct
6327 parser_state" argument.
6328 (increase_expout_size): New function.
6329 * utils.c (do_clear_parser_state): New function.
6330 (make_cleanup_clear_parser_state): Likewise.
6331 * utils.h (make_cleanup_clear_parser_state): New function
6332 prototype.
6333 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6334 Update calls to write_exp* in order to pass the parser state.
6335 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6336 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6337 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6338 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6339 * stap-probe.c (stap_parse_register_operand): Likewise.
6340 (stap_parse_single_operand): Likewise.
6341 (stap_parse_argument_1): Likewise.
6342 (stap_parse_argument): Use parser state.
6343 * stap-probe.h: Include "parser-defs.h".
6344 (struct stap_parse_info) <pstate>: New field.
6345 * c-exp.y (parse_type): Rewrite to use parser state.
6346 (yyparse): Redefine to c_parse_internal.
6347 (pstate): New global variable.
6348 (parse_number): Add "struct parser_state" argument.
6349 (write_destructor_name): Likewise.
6350 (type_exp): Update calls to write_exp* and similars in order to
6351 use parser state.
6352 (exp1, exp, variable, qualified_name, space_identifier,
6353 typename, typebase): Likewise.
6354 (write_destructor_name, parse_number, lex_one_token,
6355 classify_name, classify_inner_name, c_parse): Add "struct
6356 parser_state" argument. Update function to use parser state.
6357 * c-lang.h: Forward declare "struct parser_state".
6358 (c_parse): Add "struct parser_state" argument.
6359 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6360 (yyparse): Redefine macro to ada_parse_internal.
6361 (pstate): New variable.
6362 (write_int, write_object_renaming, write_var_or_type,
6363 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6364 type_int, type_long, type_long_long, type_float, type_double,
6365 type_long_double, type_char, type_boolean, type_system_address):
6366 Add "struct parser_state" argument.
6367 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6368 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6369 var_or_type, aggregate, aggregate_component_list,
6370 positional_list, others, component_group,
6371 component_associations): Update calls to write_exp* and similar
6372 functions in order to use parser state.
6373 (ada_parse, write_var_from_sym, write_int,
6374 write_exp_op_with_string, write_object_renaming,
6375 find_primitive_type, write_selectors, write_ambiguous_var,
6376 write_var_or_type, write_name_assoc, type_int, type_long,
6377 type_long_long, type_float, type_double, type_long_double,
6378 type_char, type_boolean, type_system_address): Add "struct
6379 parser_state" argument. Adjust function to use parser state.
6380 * ada-lang.c (parse): Likewise.
6381 * ada-lang.h: Forward declare "struct parser_state".
6382 (ada_parse): Add "struct parser_state" argument.
6383 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6384 calls to both functions.
6385 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6386 parser state.
6387 (yyparse): Redefine macro to f_parse_internal.
6388 (pstate): New variable.
6389 (parse_number): Add "struct parser_state" argument.
6390 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6391 and similars in order to use parser state.
6392 (parse_number): Adjust code to use parser state.
6393 (yylex): Likewise.
6394 (f_parse): New function.
6395 * f-lang.h: Forward declare "struct parser_state".
6396 (f_parse): Add "struct parser_state" argument.
6397 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6398 parser state.
6399 (yyparse): Redefine macro for java_parse_internal.
6400 (pstate): New variable.
6401 (push_expression_name, push_expression_name, insert_exp): Add
6402 "struct parser_state" argument.
6403 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6404 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6405 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6406 PostIncrementExpression, PostDecrementExpression,
6407 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6408 UnaryExpressionNotPlusMinus, CastExpression,
6409 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6410 RelationalExpression, EqualityExpression, AndExpression,
6411 ExclusiveOrExpression, InclusiveOrExpression,
6412 ConditionalAndExpression, ConditionalOrExpression,
6413 ConditionalExpression, Assignment, LeftHandSide): Update
6414 calls to write_exp* and similars in order to use parser state.
6415 (parse_number): Ajust code to use parser state.
6416 (yylex): Likewise.
6417 (java_parse): New function.
6418 (push_variable): Add "struct parser_state" argument. Adjust
6419 code to user parser state.
6420 (push_fieldnames, push_qualified_expression_name,
6421 push_expression_name, insert_exp): Likewise.
6422 * jv-lang.h: Forward declare "struct parser_state".
6423 (java_parse): Add "struct parser_state" argument.
6424 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6425 parser state.
6426 (yyparse): Redefine macro to m2_parse_internal.
6427 (pstate): New variable.
6428 (type_exp, exp, fblock, variable, type): Update calls to
6429 write_exp* and similars to use parser state.
6430 (yylex): Likewise.
6431 (m2_parse): New function.
6432 * m2-lang.h: Forward declare "struct parser_state".
6433 (m2_parse): Add "struct parser_state" argument.
6434 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6435 * objc-lang.h: Forward declare "struct parser_state".
6436 (end_msglist): Add "struct parser_state" argument.
6437 * p-exp.y (parse_type): Rewrite macro to use parser state.
6438 (yyparse): Redefine macro to pascal_parse_internal.
6439 (pstate): New variable.
6440 (parse_number): Add "struct parser_state" argument.
6441 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6442 write_exp* and similars in order to use parser state.
6443 (parse_number, yylex): Adjust code to use parser state.
6444 (pascal_parse): New function.
6445 * p-lang.h: Forward declare "struct parser_state".
6446 (pascal_parse): Add "struct parser_state" argument.
6447 * go-exp.y (parse_type): Rewrite macro to use parser state.
6448 (yyparse): Redefine macro to go_parse_internal.
6449 (pstate): New variable.
6450 (parse_number): Add "struct parser_state" argument.
6451 (type_exp, exp1, exp, variable, type): Update calls to
6452 write_exp* and similars in order to use parser state.
6453 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6454 to use parser state.
6455 (go_parse): Likewise.
6456 * go-lang.h: Forward declare "struct parser_state".
6457 (go_parse): Add "struct parser_state" argument.
6458
64592014-03-27 Doug Evans <dje@google.com>
6460
6461 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6462
64632014-03-27 Doug Evans <dje@google.com>
6464
6465 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6466 Remove argument abbrev_section. All callers updated.
6467
64682014-03-27 Doug Evans <dje@google.com>
6469
6470 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6471 addr_base, ranges_base.
6472
64732014-03-26 Keith Seitz <keiths@redhat.com>
6474
6475 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6476 types, not VAR_DOMAIN.
6477
64782014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6479
6480 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6481 "ra" registers.
6482 * features/nios2-linux.c: Regenerated.
6483 * features/nios2.c: Regenerated.
6484
64852014-03-25 Pedro Alves <palves@redhat.com>
6486
6487 * cli/cli-script.c (script_from_file): Force the interpreter to
6488 sync mode.
6489
64902014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6491
6492 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6493 small stack allocation.
6494
64952014-03-24 Tristan Gingold <gingold@adacore.com>
6496
6497 * darwin-nat.c (exc_server): Remove unused prototype.
6498 (darwin_dump_message): Correctly display data on x86_64.
6499 (darwin_encode_reply): Fix style.
6500 Add comments and fix indentation.
6501
65022014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6503
6504 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6505
65062014-03-22 Doug Evans <xdje42@gmail.com>
6507
6508 * infcmd.c: Whitespace fixes.
6509 (interrupt_command): Merge two function comments into one.
6510
65112014-03-22 Doug Evans <xdje42@gmail.com>
6512
6513 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6514 All uses updated.
6515
65162014-03-22 Yao Qi <yao@codesourcery.com>
6517
6518 * remote.c (target_read_live_memory): Remove.
6519 (memory_xfer_live_readonly_partial): Rename it to
6520 remote_xfer_live_readonly_partial. Remove argument 'object'.
6521 All callers updated. Call remote_read_bytes_1
6522 instead of target_read_live_memory.
6523 * tracepoint.c (set_traceframe_number): Remove.
6524 (make_cleanup_restore_traceframe_number): Likewise .
6525 * tracepoint.h (set_traceframe_number): Remove declaration.
6526 (make_cleanup_restore_traceframe_number): Likewise.
6527
65282014-03-22 Yao Qi <yao@codesourcery.com>
6529
6530 * remote.c (remote_read_bytes): Move code on reading from the
6531 remote stub to ...
6532 (remote_read_bytes_1): ... here. New function.
6533
65342014-03-22 Yao Qi <yao@codesourcery.com>
6535
6536 * ctf.c (ctf_xfer_partial): Check the return value of
6537 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6538 return TARGET_XFER_UNAVAILABLE.
6539 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6540 * target.c (target_read_live_memory): Move it to remote.c.
6541 (memory_xfer_live_readonly_partial): Likewise.
6542 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6543 * remote.c (target_read_live_memory): Moved from target.c.
6544 (memory_xfer_live_readonly_partial): Likewise.
6545 (remote_read_bytes): Factored out from
6546 memory_xfer_partial_1.
6547
65482014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6549
6550 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6551 NULL pointer.
6552
65532014-03-21 Pedro Alves <palves@redhat.com>
6554
6555 * infrun.c (normal_stop): Extend comment.
6556
65572014-03-21 Hui Zhu <hui@codesourcery.com>
6558 Pedro Alves <palves@redhat.com>
6559
6560 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6561 static buffer.
6562 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6563 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6564 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6565
65662014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6567
6568 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6569 `z' formatted output modifier.
6570
65712014-03-20 Tom Tromey <tromey@redhat.com>
6572 Sergio Durigan Junior <sergiodj@redhat.com>
6573
6574 * probe.c (parse_probes): Turn assert into an ordinary error.
6575 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6576 exceptions when parsing probes. Rearrange the code for clarity.
6577
65782014-03-20 Tom Tromey <tromey@redhat.com>
6579
6580 PR gdb/14135
6581 * top.c (execute_command): Only dispatch events if the command
6582 started the target.
6583
65842014-03-20 Tom Tromey <tromey@redhat.com>
6585
6586 PR cli/15718
6587 * infcall.c: Include event-top.h.
6588 (run_inferior_call): Call async_disable_stdin if needed.
6589
65902014-03-20 Pedro Alves <palves@redhat.com>
6591
6592 * infrun.c (prepare_to_proceed): Delete.
6593 (thread_still_needs_step_over): New function.
6594 (find_thread_needs_step_over): New function.
6595 (proceed): If the current thread needs a step-over, set its
6596 steping_over_breakpoint flag. Adjust to use
6597 find_thread_needs_step_over instead of prepare_to_proceed.
6598 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6599 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6600 breakpoint.
6601 (switch_back_to_stepped_thread): Step over breakpoints of all
6602 threads not the stepping thread, before switching back to the
6603 stepping thread.
6604
66052014-03-20 Pedro Alves <palves@redhat.com>
6606
6607 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6608 extern.
6609 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6610 * infrun.c (saved_singlestep_ptid)
6611 (stepping_past_singlestep_breakpoint): Delete.
6612 (resume): Remove stepping_past_singlestep_breakpoint handling.
6613 (proceed): Store the prev_pc of the stepping thread too.
6614 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6615 singlestep_pc.
6616 (enum infwait_states): Delete infwait_thread_hop_state.
6617 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6618 field.
6619 (handle_inferior_event): Adjust.
6620 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6621 handling and the thread-hop code. Before removing single-step
6622 breakpoints, check whether the thread hit a single-step breakpoint
6623 of another thread. If it did, the trap is not a random signal.
6624 (switch_back_to_stepped_thread): If the event thread hit a
6625 single-step breakpoint, unblock it before switching to the
6626 stepping thread. Handle the case of the stepped thread having
6627 advanced already.
6628 (keep_going): Handle the case of the current thread moving past a
6629 single-step breakpoint.
6630
66312014-03-20 Pedro Alves <palves@redhat.com>
6632
6633 PR breakpoints/7143
6634 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6635 are being stepped over.
6636 (breakpoint_address_match): Make extern.
6637 * breakpoint.h (breakpoint_address_match): New declaration.
6638 * inferior.h (stepping_past_instruction_at): New declaration.
6639 * infrun.c (struct step_over_info): New type.
6640 (step_over_info): New global.
6641 (set_step_over_info, clear_step_over_info)
6642 (stepping_past_instruction_at): New functions.
6643 (handle_inferior_event): Clear the step-over info when
6644 trap_expected is cleared.
6645 (resume): Remove now stale comment.
6646 (clear_proceed_status): Clear step-over info.
6647 (proceed): Adjust step-over handling to set or clear the step-over
6648 info instead of removing all breakpoints.
6649 (handle_signal_stop): When setting up a thread-hop, don't remove
6650 breakpoints here.
6651 (stop_stepping): Clear step-over info.
6652 (keep_going): Adjust step-over handling to set or clear step-over
6653 info and then always inserting breakpoints, instead of removing
6654 all breakpoints when stepping over one.
6655
66562014-03-20 Pedro Alves <palves@redhat.com>
6657
6658 * infrun.c (previous_inferior_ptid): Adjust comment.
6659 (deferred_step_ptid): Delete.
6660 (infrun_thread_ptid_changed, prepare_to_proceed)
6661 (init_wait_for_inferior): Adjust.
6662 (handle_signal_stop): Delete deferred_step_ptid handling.
6663
66642014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6665
6666 PR gdb/15358
6667 * defs.h (sync_quit_force_run): New declaration.
6668 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6669 * event-top.c (async_sigterm_handler): New declaration.
6670 (async_sigterm_token): New variable.
6671 (async_init_signals): Create also async_sigterm_token.
6672 (async_sigterm_handler): New function.
6673 (sync_quit_force_run): New variable.
6674 (handle_sigterm): Replace quit_force call by other calls.
6675 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6676
66772014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6678
6679 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6680 offset into SPE pseudo registers.
6681
66822014-03-18 Pedro Alves <palves@redhat.com>
6683
6684 PR gdb/13860
6685 * inferior.h (print_stop_event): Declare.
6686 * infrun.c (print_stop_event): New, factored out from ...
6687 (normal_stop): ... this.
6688 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6689 of bpstat_print/print_stack_frame.
6690
66912014-03-17 Tom Tromey <tromey@redhat.com>
6692
6693 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6694
66952014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6696
6697 * ada-lang.c (decode_constrained_packed_array): Perform a
6698 minimal coercion for reference with coerce_ref instead of
6699 ada_coerce_ref.
6700
67012014-03-17 Tristan Gingold <gingold@adacore.com>
6702
6703 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6704 (darwin_solib_create_inferior_hook): Emit a warning if version
6705 is unhandled.
6706
67072014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6708
6709 * python/py-value.c (get_field_flag): Cast flag_name argument to
6710 PyObject_GetAttrString to support Python 2.4.
6711
67122014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6713
6714 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6715 (Global Maintainers): Remove Jan Kratochvil.
6716
67172014-03-14 Pedro Alves <palves@redhat.com>
6718
6719 * inferior.h (terminal_ours_for_output): Rename to ...
6720 (child_terminal_ours_for_output): ... this.
6721 (terminal_save_ours): Rename to ...
6722 (child_terminal_save_ours): ... this.
6723 (terminal_ours): Rename to ...
6724 (child_terminal_ours): ... this.
6725 (terminal_inferior): Rename to ...
6726 (child_terminal_inferior): ... this.
6727 (terminal_init_inferior): Rename to ...
6728 (child_terminal_init_inferior): ... this.
6729 (terminal_init_inferior_with_pgrp): Rename to ...
6730 (child_terminal_init_inferior_with_pgrp): ... this.
6731 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6732 (child_terminal_init_with_pgrp): ... this.
6733 (terminal_save_ours): Rename to ...
6734 (child_terminal_save_ours): ... this.
6735 (terminal_init_inferior): Rename to ...
6736 (child_terminal_init): ... this. Adjust.
6737 (terminal_inferior): Rename to ...
6738 (child_terminal_inferior): ... this.
6739 (terminal_ours_for_output): Rename to ...
6740 (child_terminal_ours_for_output): ... this. Adjust.
6741 (terminal_ours): Rename to ...
6742 (child_terminal_ours): ... this.
6743 (terminal_ours_1): Rename to ...
6744 (child_terminal_ours_1): ... this. Adjust.
6745 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6746 * windows-nat.c (do_initial_windows_stuff): Adjust.
6747 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6748 (gnu_terminal_init): ... this. Adjust.
6749 (gnu_target): Adjust.
6750 * inf-child.c (inf_child_target): Adjust.
6751
67522014-03-13 Doug Evans <xdje42@gmail.com>
6753
6754 PR guile/16612
6755 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6756 new eq?-hashtab.
6757
67582014-03-13 Doug Evans <xdje42@gmail.com>
6759
6760 * value.c (record_latest_value): Call release_value_or_incref
6761 instead of release_value.
6762
67632014-03-13 Pedro Alves <palves@redhat.com>
6764
6765 * procfs.c (procfs_target): Don't override to_shortname,
6766 to_longname or to_doc.
6767
67682014-03-13 Pedro Alves <palves@redhat.com>
6769
6770 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6771 Unix in user visible strings.
6772
67732014-03-12 Stan Shebs <stan@codesourcery.com>
6774
6775 * gdbtypes.h: Annotate comments for Doxygen, add a page
6776 block comment with some general info.
6777
67782014-03-12 Pedro Alves <palves@redhat.com>
6779
6780 * infcmd.c (prepare_execution_command): New function, factored out
6781 from several execution commands.
6782 (run_command_1, continue_command, step_1, jump_command)
6783 (signal_command, until_command, advance_command, finish_command)
6784 (attach_command): Use prepare_execution_command.
6785
67862014-03-12 Omair Javaid <omair.javaid@linaro.org>
6787
6788 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6789 (MAX_BPTS): Define.
6790 (MAX_WPTS): Define.
6791 (struct arm_linux_thread_points): Removed.
6792 (struct arm_linux_process_info): New.
6793 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6794 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6795 (arm_linux_find_breakpoints_by_tid): Removed.
6796 (struct arch_lwp_info): New.
6797 (arm_linux_find_process_pid): New functions.
6798 (arm_linux_add_process): New functions.
6799 (arm_linux_process_info_get): New functions.
6800 (arm_linux_forget_process): New function.
6801 (arm_linux_get_debug_reg_state): New function.
6802 (struct update_registers_data): New.
6803 (update_registers_callback): New function.
6804 (arm_linux_insert_hw_breakpoint1): Updated.
6805 (arm_linux_remove_hw_breakpoint1): Updated.
6806 (arm_linux_insert_hw_breakpoint): Updated.
6807 (arm_linux_remove_hw_breakpoint): Updated.
6808 (arm_linux_insert_watchpoint): Updated.
6809 (arm_linux_remove_watchpoint): Updated.
6810 (arm_linux_new_thread): Updated.
6811 (arm_linux_prepare_to_resume): New function.
6812 (arm_linux_new_fork): New function.
6813 (_initialize_arm_linux_nat): Updated.
6814
68152014-03-12 Pedro Alves <palves@redhat.com>
6816
6817 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6818
68192014-03-12 Tom Tromey <tromey@redhat.com>
6820
6821 * inf-child.c (return_zero): New function.
6822 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6823 * aix-thread.c (aix_thread_inferior_created): New function.
6824 (aix_thread_attach): Remove.
6825 (init_aix_thread_ops): Don't set to_attach.
6826 (_initialize_aix_thread): Register inferior_created observer.
6827 * corelow.c (init_core_ops): Don't set to_attach or
6828 to_create_inferior.
6829 * exec.c (init_exec_ops): Don't set to_attach or
6830 to_create_inferior.
6831 * infcmd.c (run_command_1): Use find_run_target. Make direct
6832 target calls.
6833 (attach_command): Use find_attach_target. Make direct target
6834 calls.
6835 * record-btrace.c (init_record_btrace_ops): Don't set
6836 to_create_inferior.
6837 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6838 Remove.
6839 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6840 set to_create_inferior.
6841 * target.c (complete_target_initialization): Add assertion.
6842 (target_create_inferior): Remove.
6843 (find_default_attach, find_default_create_inferior): Remove.
6844 (find_attach_target, find_run_target): New functions.
6845 (find_default_is_async_p, find_default_can_async_p)
6846 (target_supports_non_stop, target_attach): Remove.
6847 (init_dummy_target): Don't set to_create_inferior or
6848 to_supports_non_stop.
6849 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6850 TARGET_DEFAULT_FUNC.
6851 <to_create_inferior>: Add comment.
6852 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6853 TARGET_DEFAULT_RETURN.
6854 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6855 (find_attach_target, find_run_target): Declare.
6856 (target_create_inferior): Remove.
6857 (target_has_execution_1): Update comment.
6858 (target_supports_non_stop): Remove.
6859 * target-delegates.c: Rebuild.
6860
68612014-03-12 Pedro Alves <palves@redhat.com>
6862
6863 * inf-child.h: Update comment to not mention Unix.
6864
68652014-03-12 Pedro Alves <palves@redhat.com>
6866
6867 * inf-child.c: Update top comment to not mention Unix. Add
6868 generic comment describing how this target is meant to be used.
6869 (inf_child_post_attach, inf_child_post_startup_inferior)
6870 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6871 Unix in comment.
6872
68732014-03-12 Pedro Alves <palves@redhat.com>
6874
6875 * nto-procfs.c: Include inf-child.h.
6876 (procfs_ops): Delete global.
6877 (procfs_can_run): Delete method.
6878 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6879 target pointer instead of referencing procfs_ops.
6880 (procfs_prepare_to_store): Delete.
6881 (init_procfs_ops): Delete function.
6882 (procfs_target): New function, based on init_procfs_ops, but
6883 inherit inf_child_target.
6884 (_initialize_procfs): Use procfs_target.
6885
68862014-03-12 Pedro Alves <palves@redhat.com>
6887
6888 * windows-nat.c: Include inf-child.h.
6889 (windows_ops): Delete global.
6890 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6891 methods.
6892 (init_windows_ops): Delete function.
6893 (windows_target): New function, based on init_windows_ops, but
6894 inherit inf_child_target.
6895 (_initialize_windows_nat): Use windows_target. Install x86
6896 specific target methods here.
6897
68982014-03-10 Doug Evans <xdje42@gmail.com>
6899
6900 * guile/guile.c (call_initialize_gdb_module): New function.
6901 (initialize_guile): Replace call to scm_init_guile with call to
6902 scm_with_guile.
6903
69042014-03-10 Joel Brobecker <brobecker@adacore.com>
6905
6906 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6907 in call to TYPE_CODE macro.
6908
69092014-03-10 Jerome Guitton <guitton@adacore.com>
6910
6911 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6912 Resolve tagged types to full view.
6913
69142014-03-10 Hui Zhu <hui@codesourcery.com>
6915
6916 * target.h (target_insert_breakpoint): Remove "hardware" from its
6917 comments.
6918
69192014-03-07 Doug Evans <dje@google.com>
6920
6921 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6922
69232014-03-07 Doug Evans <dje@google.com>
6924
6925 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6926 Remove unused local comp_dir_attr. Assert exactly one of
6927 stub_comp_unit_die, stub_comp_dir is non-NULL.
6928
69292014-03-07 Joel Brobecker <brobecker@adacore.com>
6930
6931 * target.h (complete_target_initialization, add_target):
6932 Add comment.
6933
69342014-03-07 Pedro Alves <palves@redhat.com>
6935
6936 * go32-nat.c: Include inf-child.h.
6937 (go32_ops): Delete global.
6938 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6939 Delete methods.
6940 (go32_create_inferior): Push the passed in target pointer instead
6941 of referencing go32_ops.
6942 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6943 (go32_target): New function, based on init_go32_ops, but inherit
6944 inf_child_target.
6945 (_initialize_go32_nat): Use go32_target. Move parts of
6946 init_go32_ops here.
6947
69482014-03-06 Joel Brobecker <brobecker@adacore.com>
6949
6950 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6951 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6952 SYMBOL_VALUE_ADDRESS.
6953 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6954
69552014-03-06 Yao Qi <yao@codesourcery.com>
6956
6957 * breakpoint.c (get_tracepoint_by_number): Remove argument
6958 optional_p. All callers updated. Adjust comments. Update
6959 output message.
6960 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6961
69622014-03-06 Yao Qi <yao@codesourcery.com>
6963
6964 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6965 early if get_number returns zero. Use 'p' instead of 'args'.
6966
69672014-03-06 Yao Qi <yao@codesourcery.com>
6968
6969 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6970 message.
6971
69722014-03-06 Yao Qi <yao@codesourcery.com>
6973
6974 PR breakpoints/16508
6975 * tracepoint.c (check_trace_running): New function.
6976 (trace_find_command): Move code to check_trace_running and
6977 call check_trace_running.
6978 (trace_find_pc_command): Likewise.
6979 (trace_find_tracepoint_command): Likewise.
6980 (trace_find_line_command): Likewise.
6981 (trace_find_range_command): Likewise.
6982 * tracepoint.h (check_trace_running): Likewise.
6983 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6984
69852014-03-06 Yao Qi <yao@codesourcery.com>
6986
6987 * target.h (struct target_ops) <to_traceframe_info>: Use
6988 TARGET_DEFAULT_NORETURN (tcomplain ()).
6989 * target-delegates.c: Regenerated.
6990
69912014-03-05 Pedro Alves <palves@redhat.com>
6992
6993 PR gdb/16575
6994 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6995 void. Update comment.
6996 (dcache_xfer_memory): Delete.
6997 (dcache_read_memory_partial): New, based on the read bits of
6998 dcache_xfer_memory.
6999 (dcache_update): Add status parameter. Use ULONGEST for len, and
7000 adjust. Discard cache lines if the reason for the update was
7001 error.
7002 * dcache.h (dcache_xfer_memory): Delete declaration.
7003 (dcache_read_memory_partial): New declaration.
7004 (dcache_update): Update prototype.
7005 * target.c (raw_memory_xfer_partial): Update the dcache here.
7006 (memory_xfer_partial_1): Don't handle dcache writes here.
7007
70082014-03-05 Mike Frysinger <vapier@gentoo.org>
7009
7010 * remote-sim.c (gdbsim_load): Add const to prog.
7011
70122014-03-03 Tom Tromey <tromey@redhat.com>
7013
7014 * elfread.c (probe_key): Change to bfd_data.
7015 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7016 now per-BFD, not per-objfile.
7017 * stap-probe.c (stap_probe_destroy): Update comment.
7018 (handle_stap_probe): Allocate on the per-BFD obstack.
7019
70202014-03-03 Tom Tromey <tromey@redhat.com>
7021
7022 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7023 * breakpoint.c (create_longjmp_master_breakpoint): Use
7024 get_probe_address.
7025 (add_location_to_breakpoint, bkpt_probe_insert_location)
7026 (bkpt_probe_remove_location): Update.
7027 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7028 * elfread.c (elf_symfile_relocate_probe): Remove.
7029 (elf_probe_fns): Update.
7030 (insert_exception_resume_breakpoint): Change type of "probe"
7031 parameter to bound_probe.
7032 (check_exception_resume): Update.
7033 * objfiles.c (objfile_relocate1): Don't relocate probes.
7034 * probe.c (bound_probe_s): New typedef.
7035 (parse_probes): Use get_probe_address. Set sal's objfile.
7036 (find_probe_by_pc): Return a bound_probe.
7037 (collect_probes): Return a VEC(bound_probe_s).
7038 (compare_probes): Update.
7039 (gen_ui_out_table_header_info): Change type of "probes"
7040 parameter. Update.
7041 (info_probes_for_ops): Update.
7042 (get_probe_address): New function.
7043 (probe_safe_evaluate_at_pc): Update.
7044 * probe.h (struct probe_ops) <get_probe_address>: New field.
7045 <set_semaphore, clear_semaphore>: Add objfile parameter.
7046 (struct probe) <objfile>: Remove field.
7047 <arch>: New field.
7048 <address>: Update comment.
7049 (struct bound_probe): New.
7050 (find_probe_by_pc): Return a bound_probe.
7051 (get_probe_address): Declare.
7052 * solib-svr4.c (struct probe_and_action) <address>: New field.
7053 (hash_probe_and_action, equal_probe_and_action): Update.
7054 (register_solib_event_probe): Add address parameter.
7055 (solib_event_probe_at): Update.
7056 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7057 get_probe_address.
7058 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7059 (stap_get_probe_address): New function.
7060 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7061 (compile_probe_arg): Update.
7062 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7063 address.
7064 (handle_stap_probe): Don't relocate the probe.
7065 (stap_relocate): Remove.
7066 (stap_gen_info_probes_table_values): Update.
7067 (stap_probe_ops): Remove stap_relocate.
7068 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7069 (debug_sym_probe_fns): Update.
7070 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7071 * symtab.c (init_sal): Use memset.
7072 * symtab.h (struct symtab_and_line) <objfile>: New field.
7073 * tracepoint.c (start_tracing, stop_tracing): Update.
7074
70752014-03-03 Tom Tromey <tromey@redhat.com>
7076
7077 * probe.h (parse_probes, find_probe_by_pc)
7078 (find_probes_in_objfile): Fix comments.
7079
70802014-03-02 Doug Evans <xdje42@gmail.com>
7081
7082 * infrun.c (handle_signal_stop): Replace test for
7083 TARGET_WAITKIND_STOPPED with an assert.
7084
70852014-03-02 Doug Evans <xdje42@gmail.com>
7086
7087 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7088
70892014-03-02 Doug Evans <xdje42@gmail.com>
7090
7091 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7092
70932014-03-01 Mark Kettenis <kettenis@gnu.org>
7094
7095 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7096
70972014-03-01 Mark Kettenis <kettenis@gnu.org>
7098
7099 * i386obsd-nat.c: Include "obsd-nat.h".
7100 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7101 add_target.
7102 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7103
71042014-03-01 Mark Kettenis <kettenis@gnu.org>
7105
7106 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7107
71082014-03-01 Mark Kettenis <kettenis@gnu.org>
7109
7110 * mips64obsd-nat.c: Include "obsd-nath".
7111 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7112 add_target
7113 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7114
71152014-03-01 Mark Kettenis <kettenis@gnu.org>
7116
7117 * amd64obsd-nat.c: Include "obsd-nat,h.
7118 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7119 add_target.
7120 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7121
71222014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7123
7124 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7125 (find_overload_match): Update call to find_oload_champ.
7126 (find_oload_champ_namespace_loop): Likewise
7127
71282014-02-28 Mark Kettenis <kettenis@gnu.org>
7129
7130 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7131
7132 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7133 * config/sparc/obsd64.mh: New file.
7134 * sparc64obsd-nat.c: New file.
7135
7136 * obsd-nat.h: New file.
7137 * obsd-nat.c: New file.
7138 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7139 (ALLDEPFILES): Add obsd-nat.c.
7140
71412014-02-28 Tom Tromey <tromey@redhat.com>
7142
7143 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7144 * cli-out.h (cli_ui_out_impl): Now const.
7145 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7146 * ui-out.c (struct ui_out) <impl>: Now const.
7147 (default_ui_out_impl): Now const.
7148 (ui_out_new): Make 'impl' parameter const.
7149 * ui-out.h (ui_out_new): Update.
7150
71512014-02-27 Mark Kettenis <kettenis@gnu.org>
7152
7153 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7154
71552014-02-27 Mark Kettenis <kettenis@gnu.org>
7156
7157 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7158
71592014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7160
7161 Additional PR 8882 fix.
7162 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7163
71642014-02-27 Pedro Alves <palves@redhat.com>
7165
7166 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7167 isn't set.
7168
71692014-02-27 Pedro Alves <palves@redhat.com>
7170
7171 PR 12702
7172 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7173 * nat/linux-waitpid.c: Include string.h.
7174 (status_to_str): Moved here and made extern.
7175 * nat/linux-waitpid.h (status_to_str): New declaration.
7176
71772014-02-27 Hui Zhu <hui@codesourcery.com>
7178
7179 PR 12702
7180 * infrun.c (ptid_match): Move ...
7181 * common/ptid.c (ptid_match): ... here.
7182 * inferior.h (ptid_match): Move ...
7183 * common/ptid.h (ptid_match): ... here.
7184
71852014-02-27 Mark Kettenis <kettenis@gnu.org>
7186
7187 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7188 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7189 gdb_target_obs.
7190
71912014-02-27 Mark Kettenis <kettenis@gnu.org>
7192
7193 * obsd-tdep.c (obsd_auxv_parse): New function.
7194 (obsd_init_abi): Set auxv_parse.
7195
7196 * gdbarch.sh (auxv_parse): New.
7197 * gdbarch.h: Regenerated.
7198 * gdbarch.c: Regenerated.
7199 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7200
72012014-02-26 Ludovic Courtès <ludo@gnu.org>
7202
7203 * guile/scm-value.c (gdbscm_history_append_x): New function.
7204 (value_functions): Add it.
7205
72062014-02-27 Joel Brobecker <brobecker@adacore.com>
7207
7208 * dwarf2read.c (attr_value_as_address): New function.
7209 (dwarf2_find_base_address, read_call_site_scope): Use
7210 attr_value_as_address in place of DW_ADDR.
7211 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7212 the low and high addresses. Slight rework of the handling
7213 of the high pc being a constant form, and limit it to
7214 DWARF verson 4 or higher.
7215 (dwarf2_record_block_ranges): Likewise.
7216 (read_partial_die): Likewise.
7217 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7218
72192014-02-26 Tom Tromey <tromey@redhat.com>
7220
7221 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7222
72232014-02-26 Tom Tromey <tromey@redhat.com>
7224
7225 * elfread.c (elf_read_minimal_symbols): Return early if
7226 minimal symbols have already been read. Add "ei" parameter.
7227 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7228 * minsyms.c (prim_record_minimal_symbol_full): Update.
7229 * objfiles.h (struct objstats) <n_minsyms>: Move...
7230 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7231 * symmisc.c (print_objfile_statistics): Update.
7232
72332014-02-26 Tom Tromey <tromey@redhat.com>
7234
7235 * elfread.c (elf_read_minimal_symbols): New function, from
7236 elf_symfile_read.
7237 (elf_symfile_read): Call it.
7238
72392014-02-26 Tom Tromey <tromey@redhat.com>
7240
7241 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7242 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7243 (lookup_minimal_symbol_solib_trampoline)
7244 (lookup_minimal_symbol_by_pc_section_1)
7245 (lookup_minimal_symbol_and_objfile): Update.
7246 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7247 Don't allocate a minimal symbol if minsyms have already been read.
7248 (build_minimal_symbol_hash_tables): Update.
7249 (install_minimal_symbols): Do nothing if minsyms already read.
7250 Use the per-BFD obstack.
7251 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7252 * objfiles.c (allocate_objfile): Call
7253 terminate_minimal_symbol_table later.
7254 (have_minimal_symbols): Update.
7255 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7256 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7257 Move from struct objfile.
7258 <minsyms_read>: New field.
7259 (struct objfile) <msymbols, minimal_symbol_count,
7260 msymbol_hash, msymbol_demangled_hash>: Move.
7261 (ALL_OBJFILE_MSYMBOLS): Update.
7262 * symfile.c (read_symbols): Set minsyms_read.
7263 (reread_symbols): Update.
7264 * symmisc.c (dump_objfile, dump_msymbols): Update.
7265
72662014-02-26 Tom Tromey <tromey@redhat.com>
7267
7268 * minsyms.c (msymbols_sort): Remove.
7269 * minsyms.h (msymbols_sort): Remove.
7270 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7271 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7272 * elfread.c (elf_symtab_read): Don't add section offsets.
7273 * xcoffread.c (record_minimal_symbol): Don't add section offset
7274 to minimal symbol address.
7275 * somread.c (text_offset, data_offset): Remove.
7276 (som_symtab_read): Don't add section offsets to minimal symbol
7277 addresses.
7278 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7279 Don't add section offsets to minimal symbols.
7280 * coffread.c (coff_symtab_read): Don't add section offsets
7281 to minimal symbol addresses.
7282 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7283 to minimal symbol addresses.
7284 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7285 section offset to minimal symbol addresses.
7286 * mdebugread.c (parse_partial_symbols): Don't add section
7287 offset to minimal symbol addresses.
7288 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7289 offset to minimal symbol addresses.
7290
72912014-02-26 Tom Tromey <tromey@redhat.com>
7292
7293 * ada-lang.c (ada_main_name): Update.
7294 (ada_add_standard_exceptions): Update.
7295 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7296 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7297 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7298 * auxv.c (ld_so_xfer_auxv): Update.
7299 * avr-tdep.c (avr_scan_prologue): Update.
7300 * ax-gdb.c (gen_var_ref): Update.
7301 * blockframe.c (get_pc_function_start)
7302 (find_pc_partial_function_gnu_ifunc): Update.
7303 * breakpoint.c (create_overlay_event_breakpoint)
7304 (create_longjmp_master_breakpoint)
7305 (create_std_terminate_master_breakpoint)
7306 (create_exception_master_breakpoint): Update.
7307 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7308 * c-valprint.c (c_val_print): Update.
7309 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7310 * common/agent.c (agent_look_up_symbols): Update.
7311 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7312 * dwarf2loc.c (call_site_to_target_addr): Update.
7313 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7314 * elfread.c (elf_gnu_ifunc_record_cache)
7315 (elf_gnu_ifunc_resolve_by_got): Update.
7316 * findvar.c (default_read_var_value): Update.
7317 * frame.c (inside_main_func): Update.
7318 * frv-tdep.c (frv_frame_this_id): Update.
7319 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7320 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7321 Update.
7322 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7323 (hppa_hpux_find_dummy_bpaddr): Update.
7324 * hppa-tdep.c (hppa_symbol_address): Update.
7325 * infcmd.c (until_next_command): Update.
7326 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7327 Update.
7328 * linespec.c (minsym_found, add_minsym): Update.
7329 * linux-nat.c (get_signo): Update.
7330 * linux-thread-db.c (inferior_has_bug): Update.
7331 * m32c-tdep.c (m32c_return_value)
7332 (m32c_m16c_address_to_pointer): Update.
7333 * m32r-tdep.c (m32r_frame_this_id): Update.
7334 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7335 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7336 * maint.c (maintenance_translate_address): Update.
7337 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7338 (frob_address): New function.
7339 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7340 frob_address. Rename parameter to "pc_in".
7341 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7342 addresses.
7343 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7344 Update.
7345 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7346 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7347 * objc-lang.c (find_objc_msgsend): Update.
7348 * objfiles.c (objfile_relocate1): Update.
7349 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7350 * p-valprint.c (pascal_val_print): Update.
7351 * parse.c (write_exp_msymbol): Update.
7352 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7353 (ppc_elfv2_skip_entrypoint): Update.
7354 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7355 * printcmd.c (build_address_symbolic, msym_info)
7356 (address_info): Update.
7357 * proc-service.c (ps_pglobal_lookup): Update.
7358 * psymtab.c (find_pc_sect_psymtab_closer)
7359 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7360 Change msymbol parameter to bound_minimal_symbol.
7361 * ravenscar-thread.c (get_running_thread_id): Update.
7362 * remote.c (remote_check_symbols): Update.
7363 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7364 address.
7365 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7366 * solib-dsbt.c (lm_base): Update.
7367 * solib-frv.c (lm_base, main_got): Update.
7368 * solib-irix.c (locate_base): Update.
7369 * solib-som.c (som_solib_create_inferior_hook)
7370 (link_map_start): Update.
7371 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7372 * solib-svr4.c (elf_locate_base, enable_break): Update.
7373 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7374 (flush_ea_cache): Update.
7375 * stabsread.c (define_symbol, scan_file_globals): Update.
7376 * stack.c (find_frame_funname): Update.
7377 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7378 (debug_qf_find_pc_sect_symtab): Update.
7379 * symfile.c (simple_read_overlay_table)
7380 (simple_overlay_update): Update.
7381 * symfile.h (struct quick_symbol_functions)
7382 <find_pc_sect_symtab>: Change type of msymbol to
7383 bound_minimal_symbol.
7384 * symmisc.c (dump_msymbols): Update.
7385 * symtab.c (find_pc_sect_symtab_via_partial)
7386 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7387 (search_symbols, print_msymbol_info): Update.
7388 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7389 (MSYMBOL_VALUE_ADDRESS): Redefine.
7390 (BMSYMBOL_VALUE_ADDRESS): New macro.
7391 * tracepoint.c (scope_info): Update.
7392 * tui/tui-disasm.c (tui_find_disassembly_address)
7393 (tui_get_begin_asm_address): Update.
7394 * valops.c (find_function_in_inferior): Update.
7395 * value.c (value_static_field, value_fn_field): Update.
7396
73972014-02-26 Tom Tromey <tromey@redhat.com>
7398
7399 * ada-lang.c (ada_update_initial_language): Update.
7400 (ada_main_name, ada_has_this_exception_support): Update.
7401 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7402 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7403 * arm-tdep.c (arm_skip_stub): Update.
7404 * auxv.c (ld_so_xfer_auxv): Update.
7405 * avr-tdep.c (avr_scan_prologue): Update.
7406 * ax-gdb.c (gen_var_ref): Update.
7407 * breakpoint.c (struct breakpoint_objfile_data)
7408 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7409 type to bound_minimal_symbol.
7410 (create_overlay_event_breakpoint)
7411 (create_longjmp_master_breakpoint)
7412 (create_std_terminate_master_breakpoint)
7413 (create_exception_master_breakpoint): Update.
7414 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7415 * c-exp.y (classify_name): Update.
7416 * coffread.c (coff_symfile_read): Update.
7417 * common/agent.c (agent_look_up_symbols): Update.
7418 * d-lang.c (d_main_name): Update.
7419 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7420 * dec-thread.c (enable_dec_thread): Update.
7421 * dwarf2loc.c (call_site_to_target_addr): Update.
7422 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7423 * eval.c (evaluate_subexp_standard): Update.
7424 * findvar.c (struct minsym_lookup_data) <result>: Change type
7425 to bound_minimal_symbol.
7426 <objfile>: Remove.
7427 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7428 * frame.c (inside_main_func): Update.
7429 * frv-tdep.c (frv_frame_this_id): Update.
7430 * gcore.c (call_target_sbrk): Update.
7431 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7432 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7433 Update.
7434 * go-lang.c (go_main_name): Update.
7435 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7436 (hppa_hpux_find_import_stub_for_addr): Update.
7437 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7438 Update. Change return type.
7439 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7440 type.
7441 * jit.c (jit_breakpoint_re_set_internal): Update.
7442 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7443 Update.
7444 * linux-nat.c (get_signo): Update.
7445 * linux-thread-db.c (inferior_has_bug): Update
7446 * m32c-tdep.c (m32c_return_value)
7447 (m32c_m16c_address_to_pointer): Update.
7448 * m32r-tdep.c (m32r_frame_this_id): Update.
7449 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7450 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7451 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7452 lookup_minimal_symbol. Change return type.
7453 (lookup_minimal_symbol): Remove.
7454 (lookup_bound_minimal_symbol): Update.
7455 (lookup_minimal_symbol_text): Change return type.
7456 (lookup_minimal_symbol_solib_trampoline): Change return type.
7457 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7458 (lookup_minimal_symbol_solib_trampoline): Change return type.
7459 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7460 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7461 (value_nsstring, find_imps): Update.
7462 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7463 * p-lang.c (pascal_main_name): Update.
7464 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7465 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7466 * proc-service.c (ps_pglobal_lookup): Update.
7467 * ravenscar-thread.c (get_running_thread_msymbol): Change
7468 return type.
7469 (has_ravenscar_runtime, get_running_thread_id): Update.
7470 * remote.c (remote_check_symbols): Update.
7471 * sol-thread.c (ps_pglobal_lookup): Update.
7472 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7473 * solib-dsbt.c (lm_base): Update.
7474 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7475 Update.
7476 * solib-irix.c (locate_base): Update.
7477 * solib-som.c (som_solib_create_inferior_hook)
7478 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7479 Update.
7480 * solib-spu.c (spu_enable_break): Update.
7481 * solib-svr4.c (elf_locate_base, enable_break): Update.
7482 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7483 (flush_ea_cache): Update.
7484 * stabsread.c (define_symbol): Update.
7485 * symfile.c (simple_read_overlay_table): Update.
7486 * symtab.c (find_pc_sect_line): Update.
7487 * tracepoint.c (scope_info): Update.
7488 * tui-disasm.c (tui_get_begin_asm_address): Update.
7489 * value.c (value_static_field): Update.
7490
74912014-02-26 Tom Tromey <tromey@redhat.com>
7492
7493 * minsyms.c (prim_record_minimal_symbol_full): Use
7494 SET_MSYMBOL_VALUE_ADDRESS.
7495 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7496 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7497 SET_MSYMBOL_VALUE_ADDRESS.
7498 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7499 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7500
75012014-02-26 Tom Tromey <tromey@redhat.com>
7502
7503 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7504 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7505 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7506 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7507 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7508 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7509 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7510 * ada-lang.c (ada_main_name): Update.
7511 (ada_lookup_simple_minsym): Update.
7512 (ada_make_symbol_completion_list): Update.
7513 (ada_add_standard_exceptions): Update.
7514 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7515 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7516 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7517 * arm-tdep.c (skip_prologue_function): Update.
7518 (arm_skip_stack_protector, arm_skip_stub): Update.
7519 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7520 (arm_wince_skip_main_prologue): Update.
7521 * auxv.c (ld_so_xfer_auxv): Update.
7522 * avr-tdep.c (avr_scan_prologue): Update.
7523 * ax-gdb.c (gen_var_ref): Update.
7524 * block.c (call_site_for_pc): Update.
7525 * blockframe.c (get_pc_function_start): Update.
7526 (find_pc_partial_function_gnu_ifunc): Update.
7527 * breakpoint.c (create_overlay_event_breakpoint): Update.
7528 (create_longjmp_master_breakpoint): Update.
7529 (create_std_terminate_master_breakpoint): Update.
7530 (create_exception_master_breakpoint): Update.
7531 (resolve_sal_pc): Update.
7532 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7533 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7534 Update.
7535 * c-valprint.c (c_val_print): Update.
7536 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7537 * coffread.c (coff_symfile_read): Update.
7538 * common/agent.c (agent_look_up_symbols): Update.
7539 * dbxread.c (find_stab_function_addr): Update.
7540 (end_psymtab): Update.
7541 * dwarf2loc.c (call_site_to_target_addr): Update.
7542 (func_verify_no_selftailcall): Update.
7543 (tailcall_dump): Update.
7544 (call_site_find_chain_1): Update.
7545 (dwarf_expr_reg_to_entry_parameter): Update.
7546 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7547 (elf_gnu_ifunc_resolve_by_got): Update.
7548 * f-valprint.c (info_common_command): Update.
7549 * findvar.c (read_var_value): Update.
7550 * frame.c (get_prev_frame_1): Update.
7551 (inside_main_func): Update.
7552 * frv-tdep.c (frv_skip_main_prologue): Update.
7553 (frv_frame_this_id): Update.
7554 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7555 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7556 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7557 (gnuv3_skip_trampoline): Update.
7558 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7559 (hppa64_hpux_in_solib_call_trampoline): Update.
7560 (hppa_hpux_skip_trampoline_code): Update.
7561 (hppa64_hpux_search_dummy_call_sequence): Update.
7562 (hppa_hpux_find_import_stub_for_addr): Update.
7563 (hppa_hpux_find_dummy_bpaddr): Update.
7564 * hppa-tdep.c (hppa_symbol_address)
7565 (hppa_lookup_stub_minimal_symbol): Update.
7566 * i386-tdep.c (i386_skip_main_prologue): Update.
7567 (i386_pe_skip_trampoline_code): Update.
7568 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7569 * infcall.c (get_function_name): Update.
7570 * infcmd.c (until_next_command): Update.
7571 * jit.c (jit_breakpoint_re_set_internal): Update.
7572 (jit_inferior_init): Update.
7573 * linespec.c (minsym_found): Update.
7574 (add_minsym): Update.
7575 * linux-fork.c (info_checkpoints_command): Update.
7576 * linux-nat.c (get_signo): Update.
7577 * linux-thread-db.c (inferior_has_bug): Update.
7578 * m32c-tdep.c (m32c_return_value): Update.
7579 (m32c_m16c_address_to_pointer): Update.
7580 (m32c_m16c_pointer_to_address): Update.
7581 * m32r-tdep.c (m32r_frame_this_id): Update.
7582 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7583 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7584 * maint.c (maintenance_translate_address): Update.
7585 * minsyms.c (add_minsym_to_hash_table): Update.
7586 (add_minsym_to_demangled_hash_table): Update.
7587 (msymbol_objfile): Update.
7588 (lookup_minimal_symbol): Update.
7589 (iterate_over_minimal_symbols): Update.
7590 (lookup_minimal_symbol_text): Update.
7591 (lookup_minimal_symbol_by_pc_name): Update.
7592 (lookup_minimal_symbol_solib_trampoline): Update.
7593 (lookup_minimal_symbol_by_pc_section_1): Update.
7594 (lookup_minimal_symbol_and_objfile): Update.
7595 (prim_record_minimal_symbol_full): Update.
7596 (compare_minimal_symbols): Update.
7597 (compact_minimal_symbols): Update.
7598 (build_minimal_symbol_hash_tables): Update.
7599 (install_minimal_symbols): Update.
7600 (terminate_minimal_symbol_table): Update.
7601 (find_solib_trampoline_target): Update.
7602 (minimal_symbol_upper_bound): Update.
7603 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7604 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7605 (mips_skip_pic_trampoline_code): Update.
7606 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7607 * objc-lang.c (selectors_info): Update.
7608 (classes_info): Update.
7609 (find_methods): Update.
7610 (find_imps): Update.
7611 (find_objc_msgsend): Update.
7612 * objfiles.c (objfile_relocate1): Update.
7613 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7614 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7615 * p-valprint.c (pascal_val_print): Update.
7616 * parse.c (write_exp_msymbol): Update.
7617 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7618 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7619 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7620 * printcmd.c (build_address_symbolic): Update.
7621 (sym_info): Update.
7622 (address_info): Update.
7623 * proc-service.c (ps_pglobal_lookup): Update.
7624 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7625 (find_pc_sect_psymtab): Update.
7626 * python/py-framefilter.c (py_print_frame): Update.
7627 * ravenscar-thread.c (get_running_thread_id): Update.
7628 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7629 Update.
7630 * remote.c (remote_check_symbols): Update.
7631 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7632 (rs6000_skip_trampoline_code): Update.
7633 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7634 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7635 * solib-dsbt.c (lm_base): Update.
7636 * solib-frv.c (lm_base): Update.
7637 (main_got): Update.
7638 * solib-irix.c (locate_base): Update.
7639 * solib-som.c (som_solib_create_inferior_hook): Update.
7640 (som_solib_desire_dynamic_linker_symbols): Update.
7641 (link_map_start): Update.
7642 * solib-spu.c (spu_enable_break): Update.
7643 (ocl_enable_break): Update.
7644 * solib-svr4.c (elf_locate_base): Update.
7645 (enable_break): Update.
7646 * spu-tdep.c (spu_get_overlay_table): Update.
7647 (spu_catch_start): Update.
7648 (flush_ea_cache): Update.
7649 * stabsread.c (define_symbol): Update.
7650 (scan_file_globals): Update.
7651 * stack.c (find_frame_funname): Update.
7652 (frame_info): Update.
7653 * symfile.c (simple_read_overlay_table): Update.
7654 (simple_overlay_update): Update.
7655 * symmisc.c (dump_msymbols): Update.
7656 * symtab.c (fixup_section): Update.
7657 (find_pc_sect_line): Update.
7658 (skip_prologue_sal): Update.
7659 (search_symbols): Update.
7660 (print_msymbol_info): Update.
7661 (rbreak_command): Update.
7662 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7663 (completion_list_objc_symbol): Update.
7664 (default_make_symbol_completion_list_break_on): Update.
7665 * tracepoint.c (scope_info): Update.
7666 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7667 (tui_get_begin_asm_address): Update.
7668 * valops.c (find_function_in_inferior): Update.
7669 * value.c (value_static_field): Update.
7670 (value_fn_field): Update.
7671
76722014-02-26 Tom Tromey <tromey@redhat.com>
7673
7674 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7675 bound minimal symbols. Move code that knows about minsym
7676 table layout...
7677 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7678 function.
7679 * minsyms.h (minimal_symbol_upper_bound): Declare.
7680 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7681 minimal_symbol_upper_bound.
7682
76832014-02-27 Joel Brobecker <brobecker@adacore.com>
7684
7685 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7686 Use the type's name if its basic type does not have a tag.
7687
76882014-02-27 Joel Brobecker <brobecker@adacore.com>
7689
7690 * dwarf2read.c (read_subrange_type): Add comment.
7691
76922014-02-27 Joel Brobecker <brobecker@adacore.com>
7693
7694 * dwarf2read.c (update_enumeration_type_from_children): New
7695 function, mostly extracted from process_structure_scope.
7696 (read_enumeration_type): Call update_enumeration_type_from_children.
7697 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7698 and flag_flag_enum fields.
7699
77002014-02-26 Pedro Alves <palves@redhat.com>
7701
7702 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7703 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7704 to_xfer_partial method.
7705
77062014-02-26 Pedro Alves <palves@redhat.com>
7707
7708 * target.c (complete_target_initialization): Don't install
7709 default_xfer_partial as to_xfer_partial hook.
7710 (nomemory): Delete.
7711 (update_current_target): Don't INHERIT nor de_fault
7712 deprecated_xfer_memory. Delete de_fault macro.
7713 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7714 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7715 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7716 field.
7717
77182014-02-26 Pedro Alves <palves@redhat.com>
7719
7720 * go32-nat.c (my_write_child): New function.
7721 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7722 (go32_xfer_partial): New function.
7723 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7724 Instead install a to_xfer_partial hook.
7725
77262014-02-26 Pedro Alves <palves@redhat.com>
7727
7728 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7729 to_xfer_partial helper. Rewrite.
7730 (procfs_xfer_partial): New function.
7731 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7732 Install a to_xfer_partial hook.
7733
77342014-02-26 Pedro Alves <palves@redhat.com>
7735
7736 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7737 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7738 (m32r_xfer_partial): New function.
7739 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7740 Install a to_xfer_partial hook.
7741
77422014-02-26 Pedro Alves <palves@redhat.com>
7743
7744 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7745 helper.
7746 (mips_xfer_partial): New function.
7747 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7748 hook. Install a to_xfer_partial hook.
7749
77502014-02-26 Joel Brobecker <brobecker@adacore.com>
7751
7752 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7753 * gdbtypes.c (create_array_type_with_stride): New function,
7754 renaming create_array_type, but with an added parameter
7755 called "bit_stride".
7756 (create_array_type): Re-implement using
7757 create_array_type_with_stride.
7758 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7759 and DW_AT_bit_stride attributes.
7760
77612014-02-26 Pedro Alves <palves@redhat.com>
7762
7763 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7764 task-specific breakpoints.
7765
77662014-02-25 Pedro Alves <palves@redhat.com>
7767
7768 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7769 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7770
77712014-02-25 Stan Shebs <stan@codesourcery.com>
7772
7773 * defs.h: Annotate comments for Doxygen.
7774
77752014-02-25 Tom Tromey <tromey@redhat.com>
7776
7777 * target.h (target_ignore): Don't declare.
7778 * target.c (target_ignore): Remove.
7779
77802014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7781
7782 PR gdb/16626
7783 * auto-load.c (auto_load_objfile_script_1): Change filename to
7784 debugfile.
7785
77862014-02-25 Joel Brobecker <brobecker@adacore.com>
7787
7788 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7789 documentation. Adjust prototype to match the target_ops
7790 to_xfer_partial method. Adjust implementation accordingly.
7791
77922014-02-25 Hui Zhu <hui@codesourcery.com>
7793
7794 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7795 to_traceframe_info.
7796
77972014-02-25 Kevin Buettner <kevinb@redhat.com>
7798
7799 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7800 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7801 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7802 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7803 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7804 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7805 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7806 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7807 New constants.
7808 (rl78_register_type): Use a data pointer type for SP and
7809 new pseudo registers mentioned above. Use a 16 bit integer
7810 type for all other register pairs.
7811 (rl78_register_name, rl78_g10_register_name): Update for
7812 new pseudo registers.
7813 (rl78_pseudo_register_read): Likewise.
7814 (rl78_pseudo_register_write): Likewise.
7815 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7816 to the newly added pseudo registers.
7817
78182014-02-24 Doug Evans <dje@google.com>
7819
7820 * value.c (record_latest_value): Fix comment.
7821 * printcmd.c (print_command_1): Remove code to handle -1 return from
7822 record_latest_value.
7823
78242014-02-24 Pedro Alves <palves@redhat.com>
7825
7826 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7827 deprecated_xfer_memory hook.
7828 (procfs_xfer_partial): Call procfs_xfer_memory instead
7829 of the deprecated_xfer_memory target hook.
7830 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7831 helper.
7832
78332014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7834
7835 * windows-nat.c (windows_xfer_shared_libraries): Return
7836 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7837 requested object is TARGET_OBJECT_LIBRARIES.
7838
78392014-02-24 Yao Qi <yao@codesourcery.com>
7840
7841 * target.h (enum target_xfer_status)
7842 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7843 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7844 explicitly. New.
7845 * corefile.c (memory_error_message): User updated.
7846 * exec.c (section_table_read_available_memory): Likewise.
7847 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7848 * target.c (target_xfer_status_to_string): Likewise.
7849 (raw_memory_xfer_partial): Likewise.
7850 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7851 * valops.c (read_value_memory): Likewise.
7852 * exec.h: Update comments.
7853
78542014-02-24 Yao Qi <yao@codesourcery.com>
7855
7856 * target.c (target_xfer_status_to_string): Rename argument err
7857 to status.
7858 * target.h (target_xfer_status_to_string): Update declaration.
7859 Replace target_xfer_error_to_string with
7860 target_xfer_status_to_string in comment.
7861
78622014-02-24 Yao Qi <yao@codesourcery.com>
7863
7864 * mips-linux-nat.c (super_close): Update its type.
7865 (mips_linux_close): Pass 'self' to super_close.
7866
78672014-02-24 Yao Qi <yao@codesourcery.com>
7868
7869 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7870 * corefile.c (read_memory): Adjusted.
7871 * target.c (target_write_with_progress): Adjusted.
7872
78732014-02-23 Yao Qi <yao@codesourcery.com>
7874
7875 Revert two patches:
7876
7877 2013-10-25 Yao Qi <yao@codesourcery.com>
7878
7879 * remote.c (remote_traceframe_info): Return early if
7880 traceframe is not selected.
7881
7882 2013-07-19 Yao Qi <yao@codesourcery.com>
7883
7884 * target.c (update_current_target): Change the default action
7885 of 'to_traceframe_info' from tcomplain to return_zero.
7886 * target.h (struct target_ops) <to_traceframe_info>: Add more
7887 comments.
7888
78892014-02-23 Yao Qi <yao@codesourcery.com>
7890
7891 * valops.c (read_value_memory): Rewrite it. Call
7892 target_xfer_partial in a loop.
7893 * exec.h (section_table_available_memory): Remove declaration.
7894 Move comments to ...
7895 * exec.c (section_table_available_memory): ... here. Make it
7896 static.
7897
78982014-02-23 Yao Qi <yao@codesourcery.com>
7899
7900 * exec.c (section_table_read_available_memory): New function.
7901 * exec.h (section_table_read_available_memory): Declare.
7902 * ctf.c (ctf_xfer_partial): Call
7903 section_table_read_available_memory.
7904 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7905
79062014-02-23 Yao Qi <yao@codesourcery.com>
7907
7908 * ctf.c (ctf_xfer_partial): Move code to ...
7909 * exec.c (exec_read_partial_read_only): ... it. New function.
7910 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7911 * tracefile.c: Include "exec.h".
7912 * exec.h (exec_read_partial_read_only): Declare.
7913
79142014-02-23 Yao Qi <yao@codesourcery.com>
7915
7916 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7917 (tfile_has_memory): Remove.
7918 (init_tfile_ops): Don't set fields to_has_all_memory and
7919 to_has_memory of tfile_ops.
7920 * tracefile.c (tracefile_has_all_memory): New function.
7921 (tracefile_has_memory): New function.
7922 (init_tracefile_ops): Initialize fields to_has_all_memory and
7923 to_has_memory of 'ops'.
7924
79252014-02-23 Yao Qi <yao@codesourcery.com>
7926
7927 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7928 (ctf_thread_alive, ctf_get_trace_status): Remove.
7929 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7930 init_tracefile_ops.
7931 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7932 (tfile_has_stack, tfile_has_registers): Remove.
7933 (tfile_thread_alive): Remove.
7934 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7935 init_tracefile_ops.
7936 * tracefile.c (tracefile_has_stack): New function.
7937 (tracefile_has_registers): New function.
7938 (tracefile_thread_alive): New function.
7939 (tracefile_get_trace_status): New function.
7940 (init_tracefile_ops): New function.
7941 * tracefile.h (init_tracefile_ops): Declare.
7942
79432014-02-23 Yao Qi <yao@codesourcery.com>
7944
7945 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7946 (O_LARGEFILE): Likewise.
7947 (tfile_ops): Likewise.
7948 (TRACE_HEADER_SIZE): Likewise.
7949 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7950 (cur_data_size): Likewise.
7951 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7952 (tfile_close, tfile_files_info): Likewise.
7953 (tfile_get_trace_status): Likewise.
7954 (tfile_get_tracepoint_status): Likewise.
7955 (tfile_get_traceframe_address): Likewise.
7956 (tfile_trace_find, match_blocktype): Likewise.
7957 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7958 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7959 (tfile_get_trace_state_variable_value): Likewise.
7960 (tfile_has_all_memory, tfile_has_memory): Likewise.
7961 (tfile_has_stack, tfile_has_registers): Likewise.
7962 (tfile_thread_alive, build_traceframe_info): Likewise.
7963 (tfile_traceframe_info, init_tfile_ops): Likewise.
7964 (_initialize_tracepoint): Don't call init_tfile_ops
7965 and add_target_with_completer.
7966 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7967 exec.h, completer.h and filenames.h.
7968 (_initialize_tracefile_tfile): New function.
7969
79702014-02-23 Yao Qi <yao@codesourcery.com>
7971
7972 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7973 tracefile-tfile.o.
7974 (HFILES_NO_SRCDIR): Add tracefile.h.
7975 * ctf.c: Include "tracefile.h".
7976 * tracefile.h: New file.
7977 * tracefile.c: New file
7978 * tracefile-tfile.c: New file.
7979 * tracepoint.c: Include "tracefile.h".
7980 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7981 (stop_reason_names): Add const.
7982 (trace_file_writer_xfree): Move it to tracefile.c.
7983 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7984 (trace_save_ctf): Likewise.
7985 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7986 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7987 (tfile_write_header, tfile_write_regblock_type): Likewise.
7988 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7989 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7990 (tfile_write_raw_data, tfile_end): Likewise.
7991 (tfile_trace_file_writer_new): Likewise.
7992 (free_uploaded_tp): Make it extern.
7993 (free_uploaded_tsv): Make it extern.
7994 (_initialize_tracepoint): Move code to register command 'tsave'
7995 to tracefile.c.
7996 * tracepoint.h (stop_reason_names): Declare.
7997 (struct trace_frame_write_ops): Move it to tracefile.h.
7998 (struct trace_file_write_ops): Likewise.
7999 (struct trace_file_writer): Likewise.
8000 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8001
80022014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8003
8004 PR gdb/16594
8005 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8006 process name.
8007 (get_cores_used_by_process): New parameter num_cores, use it.
8008 (linux_xfer_osdata_processes): Pass num_cores to it.
8009 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8010 process name.
8011
80122014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8013
8014 * target.c (memory_xfer_partial): Fix length arg in call to
8015 breakpoint_xfer_memory.
8016
80172014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8018
8019 PR tdep/16397
8020 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8021 number comes after the + or - signs. Adjust length of register
8022 name to be extracted.
8023
80242014-02-20 Tom Tromey <tromey@redhat.com>
8025
8026 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8027 (ada_varobj_ops): Mark "extern".
8028
80292014-02-20 Tom Tromey <tromey@redhat.com>
8030
8031 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8032
80332014-02-20 Doug Evans <xdje42@gmail.com>
8034
8035 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8036 All callers updated.
8037 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8038 All callers updated.
8039 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8040 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8041
80422014-02-20 lin zuojian <manjian2006@gmail.com>
8043 Joel Brobecker <brobecker@adacore.com>
8044 Doug Evans <xdje42@gmail.com>
8045
8046 PR symtab/16581
8047 * dwarf2read.c (struct die_info): New member in_process.
8048 (reset_die_in_process): New function.
8049 (process_die): Set it at the start, reset when returning.
8050 (inherit_abstract_dies): Only call process_die if origin_child_die
8051 not already being processed.
8052
80532014-02-20 Joel Brobecker <brobecker@adacore.com>
8054
8055 * windows-nat.c (handle_unload_dll): Add function documentation.
8056 (do_initial_windows_stuff): Add comment explaining why we wait
8057 until after inferior initialization has finished before
8058 processing all DLLs.
8059
80602014-02-20 Joel Brobecker <brobecker@adacore.com>
8061
8062 * windows-nat.c (get_module_name): Delete.
8063 (windows_get_exec_module_filename): New function, mostly
8064 inspired from get_module_name.
8065 (windows_pid_to_exec_file): Replace call to get_module_name
8066 by call to windows_get_exec_module_filename.
8067
80682014-02-20 Joel Brobecker <brobecker@adacore.com>
8069
8070 * windows-nat.c (handle_load_dll): Rewrite this function's
8071 introductory comment. Remove code using get_module_name
8072 to get the DLL's name.
8073
80742014-02-20 Joel Brobecker <brobecker@adacore.com>
8075
8076 * windows-nat.c (get_windows_debug_event): Ignore
8077 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8078 if windows_initialization_done == 0.
8079 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8080 Adjust implementation to always load all DLLs.
8081 (do_initial_windows_stuff): Replace call to
8082 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8083
80842014-02-20 Joel Brobecker <brobecker@adacore.com>
8085
8086 * windows-nat.c (_initialize_windows_nat): Deprecate the
8087 "dll-symbols" command. Turn the "add-shared-symbol-files"
8088 and "assf" aliases into commands, and deprecate them as well.
8089 * NEWS: Add entry explaining that "dll-symbols" and its two
8090 aliases are now deprecated.
8091
80922014-02-20 Joel Brobecker <brobecker@adacore.com>
8093
8094 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8095 new-line in debug string. Remove trailing spaces.
8096
80972014-02-19 Stan Shebs <stan@codesourcery.com>
8098
8099 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8100
81012014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8102
8103 * NEWS: Add entry for the new feature
8104 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8105 and class values.
8106
81072014-02-19 Stan Shebs <stan@codesourcery.com>
8108
8109 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8110
81112014-02-19 Pedro Alves <palves@redhat.com>
8112
8113 * common/ptid.h (struct ptid): Mention that process_stratum
8114 targets should prefer ptid.lwp.
8115
81162014-02-19 Pedro Alves <palves@redhat.com>
8117
8118 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8119 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8120 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8121 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8122 store remote thread ids rather than ptid.tid.
8123 (_initialize_remote): Adjust.
8124
81252014-02-19 Tom Tromey <tromey@redhat.com>
8126
8127 * target.c (target_get_unwinder): Rewrite.
8128 (target_get_tailcall_unwinder): Rewrite.
8129 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8130 (record_btrace_to_get_tailcall_unwinder): New function.
8131 (init_record_btrace_ops): Update.
8132 * target.h (struct target_ops) <to_get_unwinder,
8133 to_get_tailcall_unwinder>: Now function pointers. Use
8134 TARGET_DEFAULT_RETURN.
8135
81362014-02-19 Tom Tromey <tromey@redhat.com>
8137
8138 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8139 argument.
8140 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8141
81422014-02-19 Tom Tromey <tromey@redhat.com>
8143
8144 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8145 directly.
8146 * target-delegates.c: Rebuild.
8147 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8148 TARGET_DEFAULT_FUNC.
8149 * target.c (default_target_decr_pc_after_break): Rename from
8150 forward_target_decr_pc_after_break. Simplify.
8151 (target_decr_pc_after_break): Rely on delegation.
8152
81532014-02-19 Tom Tromey <tromey@redhat.com>
8154
8155 * target.c (update_current_target): Do not INHERIT to_doc or
8156 to_magic. Do not de_fault to_open or to_close.
8157
81582014-02-19 Tom Tromey <tromey@redhat.com>
8159
8160 * gcore.h (objfile_find_memory_regions): Declare.
8161 * gcore.c (objfile_find_memory_regions): No longer static. Add
8162 "self" argument.
8163 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8164 * exec.c: Include gcore.h.
8165 (exec_set_find_memory_regions): Remove.
8166 (exec_find_memory_regions): Remove.
8167 (exec_do_find_memory_regions): Remove.
8168 (init_exec_ops): Update.
8169 * defs.h (exec_set_find_memory_regions): Remove.
8170
81712014-02-19 Tom Tromey <tromey@redhat.com>
8172
8173 * target-delegates.c: Rebuild.
8174 * target.h (struct target_ops) <to_extra_thread_info,
8175 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8176 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8177 not 0, in TARGET_DEFAULT_RETURN.
8178
81792014-02-19 Tom Tromey <tromey@redhat.com>
8180
8181 * target.c (complete_target_initialization): Remove casts. Use
8182 return_zero_has_execution.
8183 (return_zero): Add "ignore" argument.
8184 (return_zero_has_execution): New function.
8185 (init_dummy_target): Remove casts. Use
8186 return_zero_has_execution.
8187
81882014-02-19 Tom Tromey <tromey@redhat.com>
8189
8190 * target.c (update_current_target): Update comments. Do not
8191 INHERIT to_stratum.
8192
81932014-02-19 Tom Tromey <tromey@redhat.com>
8194
8195 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8196 needed.
8197 * corelow.c (core_read_description): Delegate when needed.
8198 * remote.c (remote_read_description): Delegate when needed.
8199 * target-delegates.c: Rebuild.
8200 * target.c (target_read_description): Rewrite.
8201 * target.h (struct target_ops) <to_read_description>: Update
8202 comment. Use TARGET_DEFAULT_RETURN.
8203
82042014-02-19 Tom Tromey <tromey@redhat.com>
8205
8206 * target-delegates.c: Rebuild.
8207 * target.c (update_current_target): Don't inherit or default
8208 to_can_run.
8209 (find_default_run_target): Check against delegate_can_run.
8210 * target.h (struct target_ops) <to_can_run>: Use
8211 TARGET_DEFAULT_RETURN.
8212
82132014-02-19 Tom Tromey <tromey@redhat.com>
8214
8215 * target-delegates.c: Rebuild.
8216 * target.c (target_disconnect): Unconditionally delegate.
8217 * target.h (struct target_ops) <to_disconnect>: Use
8218 TARGET_DEFAULT_NORETURN.
8219
82202014-02-19 Tom Tromey <tromey@redhat.com>
8221
8222 * record.c (record_stop): Unconditionally delegate.
8223 * target-delegates.c: Rebuild.
8224 * target.c (target_stop_recording): Unconditionally delegate.
8225 * target.h (struct target_ops) <to_stop_recording>: Use
8226 TARGET_DEFAULT_IGNORE.
8227
82282014-02-19 Tom Tromey <tromey@redhat.com>
8229
8230 * target-delegates.c: Rebuild.
8231 * target.c (target_enable_btrace): Unconditionally delegate.
8232 * target.h (struct target_ops) <to_enable_btrace>: Use
8233 TARGET_DEFAULT_NORETURN.
8234
82352014-02-19 Tom Tromey <tromey@redhat.com>
8236
8237 * target-delegates.c: Rebuild.
8238 * target.c (target_read_btrace): Unconditionally delegate.
8239 * target.h (struct target_ops) <to_read_btrace>: Use
8240 TARGET_DEFAULT_NORETURN.
8241
82422014-02-19 Tom Tromey <tromey@redhat.com>
8243
8244 * target-delegates.c: Rebuild.
8245 * target.c (target_teardown_btrace): Unconditionally delegate.
8246 * target.h (struct target_ops) <to_teardown_btrace>: Use
8247 TARGET_DEFAULT_NORETURN.
8248
82492014-02-19 Tom Tromey <tromey@redhat.com>
8250
8251 * target-delegates.c: Rebuild.
8252 * target.c (target_disable_btrace): Unconditionally delegate.
8253 * target.h (struct target_ops) <to_disable_btrace>: Use
8254 TARGET_DEFAULT_NORETURN.
8255
82562014-02-19 Tom Tromey <tromey@redhat.com>
8257
8258 * target-delegates.c: Rebuild.
8259 * target.c (default_search_memory): New function.
8260 (simple_search_memory): Update comment.
8261 (target_search_memory): Unconditionally delegate.
8262 * target.h (struct target_ops) <to_search_memory>: Use
8263 TARGET_DEFAULT_FUNC.
8264
82652014-02-19 Tom Tromey <tromey@redhat.com>
8266
8267 * auxv.c (default_auxv_parse): No longer static.
8268 (target_auxv_parse): Unconditionally delegate.
8269 * auxv.h (default_auxv_parse): Declare.
8270 * target-delegates.c: Rebuild.
8271 * target.c: Include auxv.h.
8272 * target.h (struct target_ops) <to_auxv_parse>: Use
8273 TARGET_DEFAULT_FUNC.
8274
82752014-02-19 Tom Tromey <tromey@redhat.com>
8276
8277 * target-delegates.c: Rebuild.
8278 * target.c (target_memory_map): Unconditionally delegate.
8279 * target.h (struct target_ops) <to_memory_map>: Use
8280 TARGET_DEFAULT_RETURN.
8281
82822014-02-19 Tom Tromey <tromey@redhat.com>
8283
8284 * target-delegates.c: Rebuild.
8285 * target.c (target_thread_alive): Unconditionally delegate.
8286 * target.h (struct target_ops) <to_thread_alive>: Use
8287 TARGET_DEFAULT_RETURN.
8288
82892014-02-19 Tom Tromey <tromey@redhat.com>
8290
8291 * target-delegates.c: Rebuild.
8292 * target.c (target_save_record): Unconditionally delegate.
8293 * target.h (struct target_ops) <to_save_record>: Use
8294 TARGET_DEFAULT_NORETURN.
8295
82962014-02-19 Tom Tromey <tromey@redhat.com>
8297
8298 * target-delegates.c: Rebuild.
8299 * target.c (target_delete_record): Unconditionally delegate.
8300 * target.h (struct target_ops) <to_delete_record>: Use
8301 TARGET_DEFAULT_NORETURN.
8302
83032014-02-19 Tom Tromey <tromey@redhat.com>
8304
8305 * target-delegates.c: Rebuild.
8306 * target.c (target_record_is_replaying): Unconditionally
8307 delegate.
8308 * target.h (struct target_ops) <to_record_is_replaying>: Use
8309 TARGET_DEFAULT_RETURN.
8310
83112014-02-19 Tom Tromey <tromey@redhat.com>
8312
8313 * target-delegates.c: Rebuild.
8314 * target.c (target_goto_record_begin): Unconditionally delegate.
8315 * target.h (struct target_ops) <to_goto_record_begin>: Use
8316 TARGET_DEFAULT_NORETURN.
8317
83182014-02-19 Tom Tromey <tromey@redhat.com>
8319
8320 * target-delegates.c: Rebuild.
8321 * target.c (target_goto_record_end): Unconditionally delegate.
8322 * target.h (struct target_ops) <to_goto_record_end>: Use
8323 TARGET_DEFAULT_NORETURN.
8324
83252014-02-19 Tom Tromey <tromey@redhat.com>
8326
8327 * target-delegates.c: Rebuild.
8328 * target.c (target_goto_record): Unconditionally delegate.
8329 * target.h (struct target_ops) <to_goto_record>: Use
8330 TARGET_DEFAULT_NORETURN.
8331
83322014-02-19 Tom Tromey <tromey@redhat.com>
8333
8334 * target-delegates.c: Rebuild.
8335 * target.c (target_insn_history): Unconditionally delegate.
8336 * target.h (struct target_ops) <to_insn_history>: Use
8337 TARGET_DEFAULT_NORETURN.
8338
83392014-02-19 Tom Tromey <tromey@redhat.com>
8340
8341 * target-delegates.c: Rebuild.
8342 * target.c (target_insn_history_from): Unconditionally delegate.
8343 * target.h (struct target_ops) <to_insn_history_from>: Use
8344 TARGET_DEFAULT_NORETURN.
8345
83462014-02-19 Tom Tromey <tromey@redhat.com>
8347
8348 * target-delegates.c: Rebuild.
8349 * target.c (target_insn_history_range): Unconditionally delegate.
8350 * target.h (struct target_ops) <to_insn_history_range>: Use
8351 TARGET_DEFAULT_NORETURN.
8352
83532014-02-19 Tom Tromey <tromey@redhat.com>
8354
8355 * target-delegates.c: Rebuild.
8356 * target.c (target_call_history): Unconditionally delegate.
8357 * target.h (struct target_ops) <to_call_history>: Use
8358 TARGET_DEFAULT_NORETURN.
8359
83602014-02-19 Tom Tromey <tromey@redhat.com>
8361
8362 * target-delegates.c: Rebuild.
8363 * target.c (target_call_history_from): Unconditionally delegate.
8364 * target.h (struct target_ops) <to_call_history_from>: Use
8365 TARGET_DEFAULT_NORETURN.
8366
83672014-02-19 Tom Tromey <tromey@redhat.com>
8368
8369 * target-delegates.c: Rebuild.
8370 * target.c (target_call_history_range): Unconditionally delegate.
8371 * target.h (struct target_ops) <to_call_history_range>: Use
8372 TARGET_DEFAULT_NORETURN.
8373
83742014-02-19 Tom Tromey <tromey@redhat.com>
8375
8376 * target-delegates.c: Rebuild.
8377 * target.c (target_verify_memory): Unconditionally delegate.
8378 * target.h (struct target_ops) <to_verify_memory>: Use
8379 TARGET_DEFAULT_NORETURN.
8380
83812014-02-19 Tom Tromey <tromey@redhat.com>
8382
8383 * target-delegates.c: Rebuild.
8384 * target.c (target_core_of_thread): Unconditionally delegate.
8385 * target.h (struct target_ops) <to_core_of_thread>: Use
8386 TARGET_DEFAULT_RETURN.
8387
83882014-02-19 Tom Tromey <tromey@redhat.com>
8389
8390 * target-delegates.c: Rebuild.
8391 * target.c (target_flash_done): Unconditionally delegate.
8392 * target.h (struct target_ops) <to_flash_done>: Use
8393 TARGET_DEFAULT_NORETURN.
8394
83952014-02-19 Tom Tromey <tromey@redhat.com>
8396
8397 * target-delegates.c: Rebuild.
8398 * target.c (target_flash_erase): Unconditionally delegate.
8399 * target.h (struct target_ops) <to_flash_erase>: Use
8400 TARGET_DEFAULT_NORETURN.
8401
84022014-02-19 Tom Tromey <tromey@redhat.com>
8403
8404 * target-delegates.c: Rebuild.
8405 * target.c (target_get_section_table): Unconditionally delegate.
8406 * target.h (struct target_ops) <to_get_section_table>: Use
8407 TARGET_DEFAULT_RETURN.
8408
84092014-02-19 Tom Tromey <tromey@redhat.com>
8410
8411 * target-delegates.c: Rebuild.
8412 * target.c (target_pid_to_str): Unconditionally delegate.
8413 (init_dummy_target): Don't initialize to_pid_to_str.
8414 (default_pid_to_str): Rename from dummy_pid_to_str.
8415 * target.h (struct target_ops) <to_pid_to_str>: Use
8416 TARGET_DEFAULT_FUNC.
8417
84182014-02-19 Tom Tromey <tromey@redhat.com>
8419
8420 * target-delegates.c: Rebuild.
8421 * target.c (target_find_new_threads): Unconditionally delegate.
8422 * target.h (struct target_ops) <to_find_new_threads>: Use
8423 TARGET_DEFAULT_RETURN.
8424
84252014-02-19 Tom Tromey <tromey@redhat.com>
8426
8427 * target-delegates.c: Rebuild.
8428 * target.c (target_program_signals): Unconditionally delegate.
8429 * target.h (struct target_ops) <to_program_signals>: Use
8430 TARGET_DEFAULT_IGNORE.
8431
84322014-02-19 Tom Tromey <tromey@redhat.com>
8433
8434 * target-delegates.c: Rebuild.
8435 * target.c (target_pass_signals): Unconditionally delegate.
8436 * target.h (struct target_ops) <to_pass_signals>: Use
8437 TARGET_DEFAULT_IGNORE.
8438
84392014-02-19 Tom Tromey <tromey@redhat.com>
8440
8441 * target-delegates.c: Rebuild.
8442 * target.c (default_mourn_inferior): New function.
8443 (target_mourn_inferior): Unconditionally delegate.
8444 * target.h (struct target_ops) <to_mourn_inferior>: Use
8445 TARGET_DEFAULT_FUNC.
8446
84472014-02-19 Tom Tromey <tromey@redhat.com>
8448
8449 * target-delegates.c: Rebuild.
8450 * target.c (default_follow_fork): New function.
8451 (target_follow_fork): Unconditionally delegate.
8452 * target.h (struct target_ops) <to_follow_fork>: Use
8453 TARGET_DEFAULT_FUNC.
8454
84552014-02-19 Tom Tromey <tromey@redhat.com>
8456
8457 * target-delegates.c: Rebuild.
8458 * target.c (target_kill): Unconditionally delegate.
8459 * target.h (struct target_ops) <to_kill>: Use
8460 TARGET_DEFAULT_NORETURN.
8461
84622014-02-19 Tom Tromey <tromey@redhat.com>
8463
8464 * target-delegates.c: Rebuild.
8465 * target.c (target_masked_watch_num_registers): Unconditionally
8466 delegate.
8467 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8468 Use TARGET_DEFAULT_RETURN.
8469
84702014-02-19 Tom Tromey <tromey@redhat.com>
8471
8472 * target-delegates.c: Rebuild.
8473 * target.c (target_remove_mask_watchpoint): Unconditionally
8474 delegate.
8475 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8476 TARGET_DEFAULT_RETURN.
8477
84782014-02-19 Tom Tromey <tromey@redhat.com>
8479
8480 * target-delegates.c: Rebuild.
8481 * target.c (target_insert_mask_watchpoint): Unconditionally
8482 delegate.
8483 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8484 TARGET_DEFAULT_RETURN.
8485
84862014-02-19 Tom Tromey <tromey@redhat.com>
8487
8488 * target-delegates.c: Rebuild.
8489 * target.c (target_ranged_break_num_registers): Unconditionally
8490 delegate.
8491 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8492 Use TARGET_DEFAULT_RETURN.
8493
84942014-02-19 Tom Tromey <tromey@redhat.com>
8495
8496 * target-delegates.c: Rebuild.
8497 * target.c (target_fetch_registers): Unconditionally delegate.
8498 * target.h (struct target_ops) <to_fetch_registers>: Use
8499 TARGET_DEFAULT_NORETURN.
8500
85012014-02-19 Tom Tromey <tromey@redhat.com>
8502
8503 * target-delegates.c: Rebuild.
8504 * target.c (update_current_target): Don't inherit or default
8505 to_stop.
8506 * target.h (struct target_ops) <to_stop>: Use
8507 TARGET_DEFAULT_IGNORE.
8508
85092014-02-19 Tom Tromey <tromey@redhat.com>
8510
8511 * target-delegates.c: Rebuild.
8512 * target.c (update_current_target): Don't inherit or default
8513 to_can_run_breakpoint_commands.
8514 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8515 Use TARGET_DEFAULT_RETURN.
8516
85172014-02-19 Tom Tromey <tromey@redhat.com>
8518
8519 * target-delegates.c: Rebuild.
8520 * target.c (update_current_target): Don't inherit or default
8521 to_supports_evaluation_of_breakpoint_conditions.
8522 * target.h (struct target_ops)
8523 <to_supports_evaluation_of_breakpoint_conditions>: Use
8524 TARGET_DEFAULT_RETURN.
8525
85262014-02-19 Tom Tromey <tromey@redhat.com>
8527
8528 * target-delegates.c: Rebuild.
8529 * target.c (update_current_target): Don't inherit or default
8530 to_augmented_libraries_svr4_read.
8531 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8532 Use TARGET_DEFAULT_RETURN.
8533
85342014-02-19 Tom Tromey <tromey@redhat.com>
8535
8536 * target-delegates.c: Rebuild.
8537 * target.c (update_current_target): Don't inherit or default
8538 to_can_use_agent.
8539 * target.h (struct target_ops) <to_can_use_agent>: Use
8540 TARGET_DEFAULT_RETURN.
8541
85422014-02-19 Tom Tromey <tromey@redhat.com>
8543
8544 * target-delegates.c: Rebuild.
8545 * target.c (update_current_target): Don't inherit or default
8546 to_use_agent.
8547 * target.h (struct target_ops) <to_use_agent>: Use
8548 TARGET_DEFAULT_NORETURN.
8549
85502014-02-19 Tom Tromey <tromey@redhat.com>
8551
8552 * target-delegates.c: Rebuild.
8553 * target.c (update_current_target): Don't inherit or default
8554 to_traceframe_info.
8555 (return_null): Remove.
8556 * target.h (struct target_ops) <to_traceframe_info>: Use
8557 TARGET_DEFAULT_RETURN.
8558
85592014-02-19 Tom Tromey <tromey@redhat.com>
8560
8561 * target-delegates.c: Rebuild.
8562 * target.c (update_current_target): Don't inherit or default
8563 to_static_tracepoint_markers_by_strid.
8564 * target.h (struct target_ops)
8565 <to_static_tracepoint_markers_by_strid>: Use
8566 TARGET_DEFAULT_NORETURN.
8567
85682014-02-19 Tom Tromey <tromey@redhat.com>
8569
8570 * target-delegates.c: Rebuild.
8571 * target.c (update_current_target): Don't inherit or default
8572 to_static_tracepoint_marker_at.
8573 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8574 Use TARGET_DEFAULT_RETURN.
8575
85762014-02-19 Tom Tromey <tromey@redhat.com>
8577
8578 * target-delegates.c: Rebuild.
8579 * target.c (update_current_target): Don't inherit or default
8580 to_set_permissions.
8581 * target.h (struct target_ops) <to_set_permissions>: Use
8582 TARGET_DEFAULT_IGNORE.
8583
85842014-02-19 Tom Tromey <tromey@redhat.com>
8585
8586 * target-delegates.c: Rebuild.
8587 * target.c (update_current_target): Don't inherit or default
8588 to_get_tib_address.
8589 * target.h (struct target_ops) <to_get_tib_address>: Use
8590 TARGET_DEFAULT_NORETURN.
8591
85922014-02-19 Tom Tromey <tromey@redhat.com>
8593
8594 * target-delegates.c: Rebuild.
8595 * target.c (update_current_target): Don't inherit or default
8596 to_set_trace_notes.
8597 * target.h (struct target_ops) <to_set_trace_notes>: Use
8598 TARGET_DEFAULT_RETURN.
8599
86002014-02-19 Tom Tromey <tromey@redhat.com>
8601
8602 * target-delegates.c: Rebuild.
8603 * target.c (update_current_target): Don't initialize
8604 to_set_trace_buffer_size.
8605 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8606 TARGET_DEFAULT_IGNORE.
8607
86082014-02-19 Tom Tromey <tromey@redhat.com>
8609
8610 * target-delegates.c: Rebuild.
8611 * target.c (update_current_target): Don't inherit or default
8612 to_set_circular_trace_buffer.
8613 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8614 TARGET_DEFAULT_IGNORE.
8615
86162014-02-19 Tom Tromey <tromey@redhat.com>
8617
8618 * target-delegates.c: Rebuild.
8619 * target.c (update_current_target): Don't inherit or default
8620 to_set_disconnected_tracing.
8621 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8622 TARGET_DEFAULT_IGNORE.
8623
86242014-02-19 Tom Tromey <tromey@redhat.com>
8625
8626 * target-delegates.c: Rebuild.
8627 * target.c (update_current_target): Don't inherit or default
8628 to_get_min_fast_tracepoint_insn_len.
8629 (return_minus_one): Remove.
8630 * target.h (struct target_ops)
8631 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8632
86332014-02-19 Tom Tromey <tromey@redhat.com>
8634
8635 * target-delegates.c: Rebuild.
8636 * target.c (update_current_target): Don't inherit or default
8637 to_get_raw_trace_data.
8638 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8639 TARGET_DEFAULT_NORETURN.
8640
86412014-02-19 Tom Tromey <tromey@redhat.com>
8642
8643 * target-delegates.c: Rebuild.
8644 * target.c (update_current_target): Don't inherit or default
8645 to_upload_trace_state_variables.
8646 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8647 Use TARGET_DEFAULT_RETURN.
8648
86492014-02-19 Tom Tromey <tromey@redhat.com>
8650
8651 * target-delegates.c: Rebuild.
8652 * target.c (update_current_target): Don't inherit or default
8653 to_upload_tracepoints.
8654 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8655 TARGET_DEFAULT_RETURN.
8656
86572014-02-19 Tom Tromey <tromey@redhat.com>
8658
8659 * target-delegates.c: Rebuild.
8660 * target.c (update_current_target): Don't inherit or default
8661 to_save_trace_data.
8662 * target.h (struct target_ops) <to_save_trace_data>: Use
8663 TARGET_DEFAULT_NORETURN.
8664
86652014-02-19 Tom Tromey <tromey@redhat.com>
8666
8667 * target-delegates.c: Rebuild.
8668 * target.c (update_current_target): Don't inherit or default
8669 to_get_trace_state_variable_value.
8670 * target.h (struct target_ops)
8671 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8672
86732014-02-19 Tom Tromey <tromey@redhat.com>
8674
8675 * target-delegates.c: Rebuild.
8676 * target.c (update_current_target): Don't inherit or default
8677 to_trace_find.
8678 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8679
86802014-02-19 Tom Tromey <tromey@redhat.com>
8681
8682 * target-delegates.c: Rebuild.
8683 * target.c (update_current_target): Don't inherit or default
8684 to_trace_stop.
8685 * target.h (struct target_ops) <to_trace_stop>: Use
8686 TARGET_DEFAULT_NORETURN.
8687
86882014-02-19 Tom Tromey <tromey@redhat.com>
8689
8690 * target-delegates.c: Rebuild.
8691 * target.c (update_current_target): Don't inherit or default
8692 to_get_tracepoint_status.
8693 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8694 TARGET_DEFAULT_NORETURN.
8695
86962014-02-19 Tom Tromey <tromey@redhat.com>
8697
8698 * target-delegates.c: Rebuild.
8699 * target.c (update_current_target): Don't inherit or default
8700 to_get_trace_status.
8701 * target.h (struct target_ops) <to_get_trace_status>: Use
8702 TARGET_DEFAULT_RETURN.
8703
87042014-02-19 Tom Tromey <tromey@redhat.com>
8705
8706 * target-delegates.c: Rebuild.
8707 * target.c (update_current_target): Don't inherit or default
8708 to_trace_start.
8709 * target.h (struct target_ops) <to_trace_start>: Use
8710 TARGET_DEFAULT_NORETURN.
8711
87122014-02-19 Tom Tromey <tromey@redhat.com>
8713
8714 * target-delegates.c: Rebuild.
8715 * target.c (update_current_target): Don't inherit or default
8716 to_trace_set_readonly_regions.
8717 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8718 Use TARGET_DEFAULT_NORETURN.
8719
87202014-02-19 Tom Tromey <tromey@redhat.com>
8721
8722 * target-delegates.c: Rebuild.
8723 * target.c (update_current_target): Don't inherit or default
8724 to_disable_tracepoint.
8725 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8726 TARGET_DEFAULT_NORETURN.
8727
87282014-02-19 Tom Tromey <tromey@redhat.com>
8729
8730 * target-delegates.c: Rebuild.
8731 * target.c (update_current_target): Don't inherit or default
8732 to_enable_tracepoint.
8733 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8734 TARGET_DEFAULT_NORETURN.
8735
87362014-02-19 Tom Tromey <tromey@redhat.com>
8737
8738 * target-delegates.c: Rebuild.
8739 * target.c (update_current_target): Don't inherit or default
8740 to_download_trace_state_variable.
8741 * target.h (struct target_ops) <to_download_trace_state_variable>:
8742 Use TARGET_DEFAULT_NORETURN.
8743
87442014-02-19 Tom Tromey <tromey@redhat.com>
8745
8746 * target-delegates.c: Rebuild.
8747 * target.c (update_current_target): Don't inherit or default
8748 to_can_download_tracepoint.
8749 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8750 TARGET_DEFAULT_RETURN.
8751
87522014-02-19 Tom Tromey <tromey@redhat.com>
8753
8754 * target-delegates.c: Rebuild.
8755 * target.c (update_current_target): Don't inherit or default
8756 to_download_tracepoint.
8757 * target.h (struct target_ops) <to_download_tracepoint>: Use
8758 TARGET_DEFAULT_NORETURN.
8759
87602014-02-19 Tom Tromey <tromey@redhat.com>
8761
8762 * target-delegates.c: Rebuild.
8763 * target.c (update_current_target): Don't inherit or default
8764 to_trace_init.
8765 * target.h (struct target_ops) <to_trace_init>: Use
8766 TARGET_DEFAULT_RETURN.
8767
87682014-02-19 Tom Tromey <tromey@redhat.com>
8769
8770 * target-delegates.c: Rebuild.
8771 * target.c (update_current_target): Don't inherit or default
8772 to_supports_string_tracing.
8773 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8774 TARGET_DEFAULT_RETURN.
8775
87762014-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_supports_enable_disable_tracepoint.
8781 * target.h (struct target_ops)
8782 <to_supports_enable_disable_tracepoint>: Use
8783 TARGET_DEFAULT_RETURN.
8784
87852014-02-19 Tom Tromey <tromey@redhat.com>
8786
8787 * target-delegates.c: Rebuild.
8788 * target.c (update_current_target): Don't inherit or default
8789 to_supports_multi_process.
8790 * target.h (struct target_ops) <to_supports_multi_process>: Use
8791 TARGET_DEFAULT_RETURN.
8792
87932014-02-19 Tom Tromey <tromey@redhat.com>
8794
8795 * target-delegates.c: Rebuild.
8796 * target.c (update_current_target): Don't inherit or default
8797 to_get_ada_task_ptid.
8798 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8799 TARGET_DEFAULT_FUNC.
8800
88012014-02-19 Tom Tromey <tromey@redhat.com>
8802
8803 * target-delegates.c: Rebuild.
8804 * target.c (update_current_target): Don't inherit or default
8805 to_thread_architecture.
8806 * target.h (struct target_ops) <to_thread_architecture>: Use
8807 TARGET_DEFAULT_FUNC.
8808
88092014-02-19 Tom Tromey <tromey@redhat.com>
8810
8811 * target-delegates.c: Rebuild.
8812 * target.c (update_current_target): Don't inherit or default
8813 to_execution_direction.
8814 * target.h (struct target_ops) <to_execution_direction>: Use
8815 TARGET_DEFAULT_FUNC.
8816
88172014-02-19 Tom Tromey <tromey@redhat.com>
8818
8819 * target-delegates.c: Rebuild.
8820 * target.c (update_current_target): Don't inherit or default
8821 to_can_execute_reverse.
8822 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8823 TARGET_DEFAULT_RETURN.
8824 (target_can_execute_reverse): Unconditionally delegate.
8825
88262014-02-19 Tom Tromey <tromey@redhat.com>
8827
8828 * target-delegates.c: Rebuild.
8829 * target.c (update_current_target): Don't inherit or default
8830 to_goto_bookmark.
8831 (dummy_goto_bookmark): Remove.
8832 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8833 * target.h (struct target_ops) <to_goto_bookmark>: Use
8834 TARGET_DEFAULT_NORETURN.
8835
88362014-02-19 Tom Tromey <tromey@redhat.com>
8837
8838 * target-delegates.c: Rebuild.
8839 * target.c (update_current_target): Don't inherit or default
8840 to_get_bookmark.
8841 (dummy_get_bookmark): Remove.
8842 (init_dummy_target): Don't inherit or default to_get_bookmark.
8843 * target.h (struct target_ops) <to_get_bookmark>: Use
8844 TARGET_DEFAULT_NORETURN
8845
88462014-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_make_corefile_notes.
8851 (init_dummy_target): Don't initialize to_make_corefile_notes.
8852 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8853 TARGET_DEFAULT_FUNC.
8854
88552014-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_find_memory_regions.
8860 (init_dummy_target): Don't initialize to_find_memory_regions.
8861 * target.h (struct target_ops) <to_find_memory_regions>: Use
8862 TARGET_DEFAULT_FUNC.
8863
88642014-02-19 Tom Tromey <tromey@redhat.com>
8865
8866 * target-delegates.c: Rebuild.
8867 * target.c (update_current_target): Don't inherit or default
8868 to_log_command.
8869 * target.h (struct target_ops) <to_log_command>: Use
8870 TARGET_DEFAULT_IGNORE.
8871 (target_log_command): Unconditionally delegate.
8872
88732014-02-19 Tom Tromey <tromey@redhat.com>
8874
8875 * target-delegates.c: Rebuild.
8876 * target.c (update_current_target): Don't inherit or default
8877 to_pid_to_exec_file.
8878 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8879 TARGET_DEFAULT_RETURN.
8880
88812014-02-19 Tom Tromey <tromey@redhat.com>
8882
8883 * target-delegates.c: Rebuild.
8884 * target.c (update_current_target): Don't inherit or default
8885 to_thread_name.
8886 (target_thread_name): Unconditionally delegate.
8887 * target.h (struct target_ops) <to_thread_name>: Use
8888 TARGET_DEFAULT_RETURN.
8889
88902014-02-19 Tom Tromey <tromey@redhat.com>
8891
8892 * target-delegates.c: Rebuild.
8893 * target.c (update_current_target): Don't inherit or default
8894 to_extra_thread_info.
8895 * target.h (struct target_ops) <to_extra_thread_info>: Use
8896 TARGET_DEFAULT_RETURN.
8897
88982014-02-19 Tom Tromey <tromey@redhat.com>
8899
8900 * target-delegates.c: Rebuild.
8901 * target.c (update_current_target): Don't inherit or default
8902 to_has_exited.
8903 * target.h (struct target_ops) <to_has_exited>: Use
8904 TARGET_DEFAULT_RETURN..
8905
89062014-02-19 Tom Tromey <tromey@redhat.com>
8907
8908 * target-delegates.c: Rebuild.
8909 * target.c (update_current_target): Don't inherit or default
8910 to_set_syscall_catchpoint.
8911 (return_one): Remove.
8912 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8913 TARGET_DEFAULT_RETURN.
8914
89152014-02-19 Tom Tromey <tromey@redhat.com>
8916
8917 * target-delegates.c: Rebuild.
8918 * target.c (update_current_target): Don't inherit or default
8919 to_insert_exec_catchpoint.
8920 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8921 TARGET_DEFAULT_RETURN.
8922
89232014-01-08 Tom Tromey <tromey@redhat.com>
8924
8925 * target-delegates.c: Rebuild.
8926 * target.c (update_current_target): Don't inherit or default
8927 to_insert_exec_catchpoint.
8928 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8929 TARGET_DEFAULT_RETURN.
8930
89312014-02-19 Tom Tromey <tromey@redhat.com>
8932
8933 * target-delegates.c: Rebuild.
8934 * target.c (update_current_target): Don't inherit or default
8935 to_remove_vfork_catchpoint.
8936 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8937 TARGET_DEFAULT_RETURN.
8938
89392014-02-19 Tom Tromey <tromey@redhat.com>
8940
8941 * target-delegates.c: Rebuild.
8942 * target.c (update_current_target): Don't inherit or default
8943 to_insert_vfork_catchpoint.
8944 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8945 TARGET_DEFAULT_RETURN.
8946
89472014-02-19 Tom Tromey <tromey@redhat.com>
8948
8949 * target-delegates.c: Rebuild.
8950 * target.c (update_current_target): Don't inherit or default
8951 to_remove_fork_catchpoint.
8952 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8953 TARGET_DEFAULT_RETURN.
8954
89552014-02-19 Tom Tromey <tromey@redhat.com>
8956
8957 * target-delegates.c: Rebuild.
8958 * target.c (update_current_target): Don't inherit or default
8959 to_insert_fork_catchpoint.
8960 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8961 TARGET_DEFAULT_RETURN.
8962
89632014-02-19 Tom Tromey <tromey@redhat.com>
8964
8965 * target-delegates.c: Rebuild.
8966 * target.c (update_current_target): Don't inherit or default
8967 to_post_startup_inferior.
8968 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8969 TARGET_DEFAULT_IGNORE.
8970
89712014-02-19 Tom Tromey <tromey@redhat.com>
8972
8973 * target-delegates.c: Rebuild.
8974 * target.c (update_current_target): Don't inherit or default
8975 to_load.
8976 * target.h (struct target_ops) <to_load>: Use
8977 TARGET_DEFAULT_NORETURN.
8978
89792014-02-19 Tom Tromey <tromey@redhat.com>
8980
8981 * target-delegates.c: Rebuild.
8982 * target.c (update_current_target): Don't inherit or default
8983 to_terminal_info.
8984 * target.h (struct target_ops) <to_terminal_info>: Use
8985 TARGET_DEFAULT_FUNC.
8986
89872014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * target-delegates.c: Rebuild.
8990 * target.c (update_current_target): Don't inherit or default
8991 to_terminal_save_ours.
8992 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8993 TARGET_DEFAULT_IGNORE.
8994
89952014-02-19 Tom Tromey <tromey@redhat.com>
8996
8997 * target-delegates.c: Rebuild.
8998 * target.c (update_current_target): Don't inherit or default
8999 to_terminal_ours.
9000 * target.h (struct target_ops) <to_terminal_ours>: Use
9001 TARGET_DEFAULT_IGNORE.
9002
90032014-02-19 Tom Tromey <tromey@redhat.com>
9004
9005 * target-delegates.c: Rebuild.
9006 * target.c (update_current_target): Don't inherit or default
9007 to_terminal_ours_for_output.
9008 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9009 TARGET_DEFAULT_IGNORE.
9010
90112014-02-19 Tom Tromey <tromey@redhat.com>
9012
9013 * target-delegates.c: Rebuild.
9014 * target.c (update_current_target): Don't inherit or default
9015 to_terminal_inferior.
9016 * target.h (struct target_ops) <to_terminal_inferior>: Use
9017 TARGET_DEFAULT_IGNORE.
9018
90192014-02-19 Tom Tromey <tromey@redhat.com>
9020
9021 * target-delegates.c: Rebuild.
9022 * target.c (update_current_target): Don't inherit or default
9023 to_terminal_init.
9024 * target.h (struct target_ops) <to_terminal_init>: Use
9025 TARGET_DEFAULT_IGNORE.
9026
90272014-02-19 Tom Tromey <tromey@redhat.com>
9028
9029 * target-delegates.c: Rebuild.
9030 * target.c (update_current_target): Don't inherit or default
9031 to_can_accel_watchpoint_condition.
9032 * target.h (struct target_ops)
9033 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9034
90352014-02-19 Tom Tromey <tromey@redhat.com>
9036
9037 * target-delegates.c: Rebuild.
9038 * target.c (update_current_target): Don't inherit or default
9039 to_region_ok_for_hw_watchpoint.
9040 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9041 Use TARGET_DEFAULT_FUNC.
9042
90432014-02-19 Tom Tromey <tromey@redhat.com>
9044
9045 * target-delegates.c: Rebuild.
9046 * target.c (update_current_target): Don't inherit or default
9047 to_watchpoint_addr_within_range.
9048 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9049 Use TARGET_DEFAULT_FUNC.
9050
90512014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * target-delegates.c: Rebuild.
9054 * target.c (update_current_target): Don't inherit or default
9055 to_remove_watchpoint.
9056 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9057 TARGET_DEFAULT_NORETURN.
9058
90592014-02-19 Tom Tromey <tromey@redhat.com>
9060
9061 * target-delegates.c: Rebuild.
9062 * target.c (update_current_target): Don't inherit or default
9063 to_insert_watchpoint.
9064 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9065 TARGET_DEFAULT_RETURN.
9066
90672014-02-19 Tom Tromey <tromey@redhat.com>
9068
9069 * target-delegates.c: Rebuild.
9070 * target.c (update_current_target): Don't inherit or default
9071 to_remove_hw_breakpoint.
9072 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9073 TARGET_DEFAULT_RETURN.
9074
90752014-02-19 Tom Tromey <tromey@redhat.com>
9076
9077 * target-delegates.c: Rebuild.
9078 * target.c (update_current_target): Don't inherit or default
9079 to_insert_hw_breakpoint.
9080 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9081 TARGET_DEFAULT_RETURN.
9082
90832014-02-19 Tom Tromey <tromey@redhat.com>
9084
9085 * target-delegates.c: Rebuild.
9086 * target.c (update_current_target): Don't inherit or default
9087 to_can_use_hw_breakpoint.
9088 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9089 TARGET_DEFAULT_RETURN.
9090
90912014-02-19 Tom Tromey <tromey@redhat.com>
9092
9093 * target-delegates.c: Rebuild.
9094 * target.c (update_current_target): Don't inherit or default
9095 to_files_info.
9096 * target.h (struct target_ops) <to_files_info>: Use
9097 TARGET_DEFAULT_IGNORE.
9098
90992014-02-19 Tom Tromey <tromey@redhat.com>
9100
9101 * target-delegates.c: Rebuild.
9102 * target.c (update_current_target): Don't inherit or default
9103 to_store.
9104 * target.h (struct target_ops) <to_store>: Use
9105 TARGET_DEFAULT_NORETURN.
9106
91072014-02-19 Tom Tromey <tromey@redhat.com>
9108
9109 * target-delegates.c: Rebuild.
9110 * target.c (update_current_target): Don't inherit or default
9111 to_post_attach.
9112 * target.h (struct target_ops) <to_post_attach>: Use
9113 TARGET_DEFAULT_IGNORE.
9114
91152014-02-19 Tom Tromey <tromey@redhat.com>
9116
9117 * target-delegates.c: Rebuild.
9118 * target.c (update_current_target): Don't inherit or default
9119 to_rcmd.
9120 (default_rcmd): New function.
9121 (do_monitor_command): Unconditionally delegate.
9122 * target.h (struct target_ops) <to_rmcd>: Use
9123 TARGET_DEFAULT_FUNC.
9124
91252014-02-19 Tom Tromey <tromey@redhat.com>
9126
9127 * target-delegates.c: Rebuild.
9128 * target.c (init_dummy_target): Don't initialize to_attach.
9129 (target_attach): Unconditionally delegate.
9130 * target.h (struct target_ops) <to_attach>: Use
9131 TARGET_DEFAULT_FUNC.
9132
91332014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target-delegates.c: Rebuild.
9136 * target.c (target_detach): Unconditionally delegate.
9137 (init_dummy_target): Don't initialize to_detach.
9138 * target.h (struct target_ops) <to_detach>: Use
9139 TARGET_DEFAULT_IGNORE.
9140
91412014-02-19 Tom Tromey <tromey@redhat.com>
9142
9143 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9144 Add argument.
9145 (target_augmented_libraries_svr4_read): Add argument.
9146 * target.c (update_current_target): Update.
9147 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9148 argument.
9149
91502014-02-19 Tom Tromey <tromey@redhat.com>
9151
9152 * target.h (struct target_ops) <to_call_history_range>: Add
9153 argument.
9154 * target.c (target_call_history_range): Add argument.
9155 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9156 argument.
9157 (record_btrace_call_history_from): Update.
9158
91592014-02-19 Tom Tromey <tromey@redhat.com>
9160
9161 * target.h (struct target_ops) <to_call_history_from>: Add
9162 argument.
9163 * target.c (target_call_history_from): Add argument.
9164 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9165 argument.
9166
91672014-02-19 Tom Tromey <tromey@redhat.com>
9168
9169 * target.h (struct target_ops) <to_call_history>: Add argument.
9170 * target.c (target_call_history): Add argument.
9171 * record-btrace.c (record_btrace_call_history): Add 'self'
9172 argument.
9173
91742014-02-19 Tom Tromey <tromey@redhat.com>
9175
9176 * target.h (struct target_ops) <to_insn_history_range>: Add
9177 argument.
9178 * target.c (target_insn_history_range): Add argument.
9179 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9180 argument.
9181 (record_btrace_insn_history_from): Update.
9182
91832014-02-19 Tom Tromey <tromey@redhat.com>
9184
9185 * target.h (struct target_ops) <to_insn_history_from>: Add
9186 argument.
9187 * target.c (target_insn_history_from): Add argument.
9188 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9189 argument.
9190
91912014-02-19 Tom Tromey <tromey@redhat.com>
9192
9193 * target.h (struct target_ops) <to_insn_history>: Add argument.
9194 * target.c (target_insn_history): Add argument.
9195 * record-btrace.c (record_btrace_insn_history): Add 'self'
9196 argument.
9197
91982014-02-19 Tom Tromey <tromey@redhat.com>
9199
9200 * target.h (struct target_ops) <to_goto_record>: Add argument.
9201 * target.c (target_goto_record): Add argument.
9202 * record-full.c (record_full_goto): Add 'self' argument.
9203 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9204
92052014-02-19 Tom Tromey <tromey@redhat.com>
9206
9207 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9208 * target.c (target_goto_record_end): Add argument.
9209 * record-full.c (record_full_goto_end): Add 'self' argument.
9210 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9211
92122014-02-19 Tom Tromey <tromey@redhat.com>
9213
9214 * target.h (struct target_ops) <to_goto_record_begin>: Add
9215 argument.
9216 * target.c (target_goto_record_begin): Add argument.
9217 * record-full.c (record_full_goto_begin): Add 'self' argument.
9218 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9219 argument.
9220
92212014-02-19 Tom Tromey <tromey@redhat.com>
9222
9223 * target.h (struct target_ops) <to_record_is_replaying>: Add
9224 argument.
9225 * target.c (target_record_is_replaying): Add argument.
9226 * record-full.c (record_full_is_replaying): Add 'self' argument.
9227 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9228 argument.
9229 (record_btrace_xfer_partial, record_btrace_store_registers)
9230 (record_btrace_prepare_to_store, record_btrace_resume)
9231 (record_btrace_wait, record_btrace_decr_pc_after_break)
9232 (record_btrace_find_new_threads, record_btrace_thread_alive):
9233 Update.
9234
92352014-02-19 Tom Tromey <tromey@redhat.com>
9236
9237 * target.h (struct target_ops) <to_delete_record>: Add argument.
9238 * target.c (target_delete_record): Add argument.
9239 * record-full.c (record_full_delete): Add 'self' argument.
9240
92412014-02-19 Tom Tromey <tromey@redhat.com>
9242
9243 * target.h (struct target_ops) <to_save_record>: Add argument.
9244 * target.c (target_save_record): Add argument.
9245 * record-full.c (record_full_save): Add 'self' argument.
9246 (record_full_save): Add 'self' argument.
9247
92482014-02-19 Tom Tromey <tromey@redhat.com>
9249
9250 * target.h (struct target_ops) <to_info_record>: Add argument.
9251 * target.c (target_info_record): Add argument.
9252 * record.c (info_record_command): Add argument.
9253 * record-full.c (record_full_info): Add 'self' argument.
9254 * record-btrace.c (record_btrace_info): Add 'self' argument.
9255
92562014-02-19 Tom Tromey <tromey@redhat.com>
9257
9258 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9259 * target.c (target_stop_recording): Add argument.
9260 * record.c (record_stop): Add argument.
9261 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9262 argument.
9263
92642014-02-19 Tom Tromey <tromey@redhat.com>
9265
9266 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9267 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9268 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9269 argument.
9270 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9271 (_initialize_amd64_linux_nat): Use it.
9272 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9273 (_initialize_i386_linux_nat): Use it.
9274
92752014-02-19 Tom Tromey <tromey@redhat.com>
9276
9277 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9278 * target.c (target_teardown_btrace): Add argument.
9279 * remote.c (remote_teardown_btrace): Add 'self' argument.
9280 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9281 argument.
9282 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9283 argument.
9284
92852014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9288 * target.c (target_disable_btrace): Add argument.
9289 * remote.c (remote_disable_btrace): Add 'self' argument.
9290 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9291 argument.
9292 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9293 argument.
9294
92952014-02-19 Tom Tromey <tromey@redhat.com>
9296
9297 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9298 * target.c (target_enable_btrace): Add argument.
9299 * remote.c (remote_enable_btrace): Add 'self' argument.
9300 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9301 argument.
9302 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9303 argument.
9304
93052014-02-19 Tom Tromey <tromey@redhat.com>
9306
9307 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9308 (target_can_use_agent): Add argument.
9309 * target.c (update_current_target): Update.
9310 * remote.c (remote_can_use_agent): Add 'self' argument.
9311 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9312
93132014-02-19 Tom Tromey <tromey@redhat.com>
9314
9315 * target.h (struct target_ops) <to_use_agent>: Add argument.
9316 (target_use_agent): Add argument.
9317 * target.c (update_current_target): Update.
9318 * remote.c (remote_use_agent): Add 'self' argument.
9319 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9320
93212014-02-19 Tom Tromey <tromey@redhat.com>
9322
9323 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9324 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9325 (target_traceframe_info): Add argument.
9326 * target.c (update_current_target): Update.
9327 * remote.c (remote_traceframe_info): Add 'self' argument.
9328 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9329
93302014-02-19 Tom Tromey <tromey@redhat.com>
9331
9332 * target.h (target_static_tracepoint_markers_by_strid): Add
9333 argument.
9334 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9335 'self' argument.
9336 * target.c (update_current_target): Update.
9337 * remote.c (struct target_ops)
9338 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9339 * linux-nat.c (struct target_ops)
9340 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9341
93422014-02-19 Tom Tromey <tromey@redhat.com>
9343
9344 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9345 Add argument.
9346 (target_static_tracepoint_marker_at): Add argument.
9347 * target.c (update_current_target): Update.
9348 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9349 argument.
9350
93512014-02-19 Tom Tromey <tromey@redhat.com>
9352
9353 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9354 (target_set_permissions): Add argument.
9355 * target.c (update_current_target): Update.
9356 * remote.c (remote_set_permissions): Add 'self' argument.
9357 (remote_start_remote): Update.
9358
93592014-02-19 Tom Tromey <tromey@redhat.com>
9360
9361 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9362 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9363 (target_get_tib_address): Add argument.
9364 * target.c (update_current_target): Update.
9365 * remote.c (remote_get_tib_address): Add 'self' argument.
9366
93672014-02-19 Tom Tromey <tromey@redhat.com>
9368
9369 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9370 (target_set_trace_notes): Add argument.
9371 * target.c (update_current_target): Update.
9372 * remote.c (remote_set_trace_notes): Add 'self' argument.
9373
93742014-02-19 Tom Tromey <tromey@redhat.com>
9375
9376 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9377 argument.
9378 (target_set_trace_buffer_size): Add argument.
9379 * target.c (update_current_target): Update.
9380 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9381
93822014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9385 argument.
9386 (target_set_circular_trace_buffer): Add argument.
9387 * target.c (update_current_target): Update.
9388 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9389 argument.
9390
93912014-02-19 Tom Tromey <tromey@redhat.com>
9392
9393 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9394 argument.
9395 (target_set_disconnected_tracing): Add argument.
9396 * target.c (update_current_target): Update.
9397 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9398
93992014-02-19 Tom Tromey <tromey@redhat.com>
9400
9401 * target.h (struct target_ops)
9402 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9403 (target_get_min_fast_tracepoint_insn_len): Add argument.
9404 * target.c (update_current_target): Update.
9405 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9406 argument.
9407
94082014-02-19 Tom Tromey <tromey@redhat.com>
9409
9410 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9411 argument.
9412 (target_get_raw_trace_data): Add argument.
9413 * target.c (update_current_target): Update.
9414 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9415
94162014-02-19 Tom Tromey <tromey@redhat.com>
9417
9418 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9419 Add argument.
9420 (target_upload_trace_state_variables): Add argument.
9421 * target.c (update_current_target): Update.
9422 * remote.c (remote_upload_trace_state_variables): Add 'self'
9423 argument.
9424 (remote_start_remote): Update.
9425
94262014-02-19 Tom Tromey <tromey@redhat.com>
9427
9428 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9429 argument.
9430 (target_upload_tracepoints): Add argument.
9431 * target.c (update_current_target): Update.
9432 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9433 (remote_start_remote): Update.
9434
94352014-02-19 Tom Tromey <tromey@redhat.com>
9436
9437 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9438 (target_save_trace_data): Add argument.
9439 * target.c (update_current_target): Update.
9440 * remote.c (remote_save_trace_data): Add 'self' argument.
9441
94422014-02-19 Tom Tromey <tromey@redhat.com>
9443
9444 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9445 argument.
9446 * target.h (struct target_ops)
9447 <to_get_trace_state_variable_value>: Add argument.
9448 (target_get_trace_state_variable_value): Add argument.
9449 * target.c (update_current_target): Update.
9450 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9451 argument.
9452 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9453
94542014-02-19 Tom Tromey <tromey@redhat.com>
9455
9456 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9457 * target.h (struct target_ops) <to_trace_find>: Add argument.
9458 (target_trace_find): Add argument.
9459 * target.c (update_current_target): Update.
9460 * remote.c (remote_trace_find): Add 'self' argument.
9461 * ctf.c (ctf_trace_find): Add 'self' argument.
9462
94632014-02-19 Tom Tromey <tromey@redhat.com>
9464
9465 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9466 (target_trace_stop): Add argument.
9467 * target.c (update_current_target): Update.
9468 * remote.c (remote_trace_stop): Add 'self' argument.
9469
94702014-02-19 Tom Tromey <tromey@redhat.com>
9471
9472 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9473 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9474 argument.
9475 (target_get_tracepoint_status): Add argument.
9476 * target.c (update_current_target): Update.
9477 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9478
94792014-02-19 Tom Tromey <tromey@redhat.com>
9480
9481 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9482 * target.h (struct target_ops) <to_get_trace_status>: Add
9483 argument.
9484 (target_get_trace_status): Add argument.
9485 * target.c (update_current_target): Update.
9486 * remote.c (remote_get_trace_status): Add 'self' argument.
9487 (remote_start_remote, remote_can_download_tracepoint): Update.
9488 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9489
94902014-02-19 Tom Tromey <tromey@redhat.com>
9491
9492 * target.h (struct target_ops) <to_trace_start>: Add argument.
9493 (target_trace_start): Add argument.
9494 * target.c (update_current_target): Update.
9495 * remote.c (remote_trace_start): Add 'self' argument.
9496
94972014-02-19 Tom Tromey <tromey@redhat.com>
9498
9499 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9500 Add argument.
9501 (target_trace_set_readonly_regions): Add argument.
9502 * target.c (update_current_target): Update.
9503 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9504 argument.
9505
95062014-02-19 Tom Tromey <tromey@redhat.com>
9507
9508 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9509 argument.
9510 (target_disable_tracepoint): Add argument.
9511 * target.c (update_current_target): Update.
9512 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9513
95142014-02-19 Tom Tromey <tromey@redhat.com>
9515
9516 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9517 argument.
9518 (target_enable_tracepoint): Add argument.
9519 * target.c (update_current_target): Update.
9520 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9521
95222014-02-19 Tom Tromey <tromey@redhat.com>
9523
9524 * target.h (struct target_ops) <to_download_trace_state_variable>:
9525 Add argument.
9526 (target_download_trace_state_variable): Add argument.
9527 * target.c (update_current_target): Update.
9528 * remote.c (remote_download_trace_state_variable): Add 'self'
9529 argument.
9530
95312014-02-19 Tom Tromey <tromey@redhat.com>
9532
9533 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9534 argument.
9535 (target_can_download_tracepoint): Add argument.
9536 * target.c (update_current_target): Update.
9537 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9538
95392014-02-19 Tom Tromey <tromey@redhat.com>
9540
9541 * target.h (struct target_ops) <to_download_tracepoint>: Add
9542 argument.
9543 (target_download_tracepoint): Add argument.
9544 * target.c (update_current_target): Update.
9545 * remote.c (remote_download_tracepoint): Add 'self' argument.
9546
95472014-02-19 Tom Tromey <tromey@redhat.com>
9548
9549 * target.h (struct target_ops) <to_trace_init>: Add argument.
9550 (target_trace_init): Add argument.
9551 * target.c (update_current_target): Update.
9552 * remote.c (remote_trace_init): Add 'self' argument.
9553
95542014-02-19 Tom Tromey <tromey@redhat.com>
9555
9556 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9557 * target.c (target_fileio_readlink): Add argument.
9558 * remote.c (remote_hostio_readlink): Add 'self' argument.
9559 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9560
95612014-02-19 Tom Tromey <tromey@redhat.com>
9562
9563 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9564 * target.c (target_fileio_unlink): Add argument.
9565 * remote.c (remote_hostio_unlink): Add 'self' argument.
9566 (remote_file_delete): Update.
9567 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9568
95692014-02-19 Tom Tromey <tromey@redhat.com>
9570
9571 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9572 * target.c (target_fileio_close): Add argument.
9573 * remote.c (remote_hostio_close): Add 'self' argument.
9574 (remote_hostio_close_cleanup): Update.
9575 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9576 Update.
9577 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9578
95792014-02-19 Tom Tromey <tromey@redhat.com>
9580
9581 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9582 * target.c (target_fileio_pread): Add argument.
9583 * remote.c (remote_hostio_pread): Add 'self' argument.
9584 (remote_bfd_iovec_pread, remote_file_get): Update.
9585 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9586
95872014-02-19 Tom Tromey <tromey@redhat.com>
9588
9589 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9590 * target.c (target_fileio_pwrite): Add argument.
9591 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9592 (remote_file_put): Update.
9593 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9594
95952014-02-19 Tom Tromey <tromey@redhat.com>
9596
9597 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9598 * target.c (target_fileio_open): Add argument.
9599 * remote.c (remote_hostio_open): Add 'self' argument.
9600 (remote_bfd_iovec_open): Add 'self' argument.
9601 (remote_file_put): Add 'self' argument.
9602 (remote_file_get): Add 'self' argument.
9603 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9604
96052014-02-19 Tom Tromey <tromey@redhat.com>
9606
9607 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9608 Add argument.
9609 (target_can_run_breakpoint_commands): Add argument.
9610 * target.c (update_current_target): Update.
9611 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9612 argument.
9613 (remote_insert_breakpoint): Add 'self' argument.
9614 (remote_insert_hw_breakpoint): Add 'self' argument.
9615 (remote_can_run_breakpoint_commands): Add 'self' argument.
9616
96172014-02-19 Tom Tromey <tromey@redhat.com>
9618
9619 * target.h (struct target_ops)
9620 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9621 (target_supports_evaluation_of_breakpoint_conditions): Add
9622 argument.
9623 * target.c (update_current_target): Update.
9624 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9625 argument.
9626 (remote_insert_breakpoint): Add 'self' argument.
9627 (remote_insert_hw_breakpoint): Add 'self' argument.
9628 (remote_supports_cond_breakpoints): Add 'self' argument.
9629
96302014-02-19 Tom Tromey <tromey@redhat.com>
9631
9632 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9633 argument.
9634 (target_supports_string_tracing): Add argument.
9635 * target.c (update_current_target): Update.
9636 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9637
96382014-02-19 Tom Tromey <tromey@redhat.com>
9639
9640 * target.h (struct target_ops)
9641 <to_supports_disable_randomization>: Add argument.
9642 * target.c (find_default_supports_disable_randomization): Add
9643 argument.
9644 (target_supports_disable_randomization): Add argument.
9645 (find_default_supports_disable_randomization): Add 'self'
9646 argument.
9647 * remote.c (extended_remote_supports_disable_randomization): Add
9648 'self' argument.
9649 (remote_supports_disable_randomization): Add 'self' argument.
9650 (extended_remote_create_inferior): Update.
9651 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9652 'self' argument.
9653
96542014-02-19 Tom Tromey <tromey@redhat.com>
9655
9656 * target.h (struct target_ops)
9657 <to_supports_enable_disable_tracepoint>: Add argument.
9658 (target_supports_enable_disable_tracepoint): Add argument.
9659 * target.c (update_current_target): Update.
9660 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9661 argument.
9662
96632014-02-19 Tom Tromey <tromey@redhat.com>
9664
9665 * target.h (struct target_ops) <to_supports_multi_process>: Add
9666 argument.
9667 (target_supports_multi_process): Add argument.
9668 * target.c (update_current_target): Update.
9669 * remote.c (remote_supports_multi_process): Add 'self' argument.
9670 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9671 argument.
9672 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9673 argument.
9674
96752014-02-19 Tom Tromey <tromey@redhat.com>
9676
9677 * target.h (struct target_ops) <to_execution_direction>: Add
9678 argument.
9679 (target_execution_direction): Add argument.
9680 * target.c (default_execution_direction): Add 'self' argument.
9681 * record-full.c (record_full_execution_direction): Add 'self'
9682 argument.
9683
96842014-02-19 Tom Tromey <tromey@redhat.com>
9685
9686 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9687 argument.
9688 (target_can_execute_reverse): Add argument.
9689 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9690 * record-full.c (record_full_can_execute_reverse): Add 'self'
9691 argument.
9692 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9693 argument.
9694
96952014-02-19 Tom Tromey <tromey@redhat.com>
9696
9697 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9698 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9699 argument.
9700 (target_get_ada_task_ptid): Add argument.
9701 * target.c (update_current_target): Update.
9702 (default_get_ada_task_ptid): Add 'self' argument.
9703 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9704 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9705 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9706 argument.
9707 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9708 argument.
9709 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9710 argument.
9711 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9712 argument.
9713 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9714 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9715 argument.
9716
97172014-02-19 Tom Tromey <tromey@redhat.com>
9718
9719 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9720 (target_goto_bookmark): Add argument.
9721 * target.c (dummy_goto_bookmark): Add 'self' argument.
9722 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9723
97242014-02-19 Tom Tromey <tromey@redhat.com>
9725
9726 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9727 (target_get_bookmark): Add argument.
9728 * target.c (dummy_get_bookmark): Add 'self' argument.
9729 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9730
97312014-02-19 Tom Tromey <tromey@redhat.com>
9732
9733 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9734 argument.
9735 (target_make_corefile_notes): Add argument.
9736 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9737 * procfs.c (procfs_make_note_section): Add 'self' argument.
9738 (procfs_make_note_section): Add 'self' argument.
9739 (procfs_make_note_section): Add 'self' argument.
9740 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9741 argument.
9742 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9743 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9744 * exec.c (exec_make_note_section): Add 'self' argument.
9745 (exec_make_note_section): Add 'self' argument.
9746
97472014-02-19 Tom Tromey <tromey@redhat.com>
9748
9749 * target.h (struct target_ops) <to_find_memory_regions>: Add
9750 argument.
9751 (target_find_memory_regions): Add argument.
9752 * target.c (dummy_find_memory_regions): Add 'self' argument.
9753 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9754 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9755 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9756 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9757 * exec. (exec_do_find_memory_regions): New global.
9758 (exec_set_find_memory_regions): Rewrite.
9759 (exec_find_memory_regions): New function.
9760 (init_exec_ops): Use exec_find_memory_regions.
9761
97622014-02-19 Tom Tromey <tromey@redhat.com>
9763
9764 * target.h (struct target_ops) <to_supports_non_stop>: Add
9765 argument.
9766 * target.c (find_default_supports_non_stop): Add argument.
9767 (target_supports_non_stop): Add argument.
9768 (find_default_supports_non_stop): Add 'self' argument.
9769 * remote.c (remote_supports_non_stop): Add 'self' argument.
9770 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9771
97722014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target.h (struct target_ops) <to_log_command>: Add argument.
9775 (target_log_command): Add argument.
9776 * serial.h (serial_log_command): Add 'self' argument.
9777 * serial.c (serial_log_command): Add 'self' argument.
9778
97792014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9782 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9783 argument.
9784 (target_pid_to_exec_file): Add argument.
9785 * target.c (debug_to_pid_to_exec_file): Add argument.
9786 (update_current_target): Update.
9787 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9788 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9789 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9790 (linux_handle_extended_wait): Update.
9791 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9792 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9793 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9794 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9795
97962014-02-19 Tom Tromey <tromey@redhat.com>
9797
9798 * target.h (struct target_ops) <to_rcmd>: Add argument.
9799 (target_rcmd): Add argument.
9800 * target.c (debug_to_rcmd): Add argument.
9801 (update_current_target, do_monitor_command): Update.
9802 * remote.c (remote_rcmd): Add 'self' argument.
9803 * monitor.c (monitor_rcmd): Add 'self' argument.
9804
98052014-02-19 Tom Tromey <tromey@redhat.com>
9806
9807 * windows-nat.c (windows_stop): Add 'self' argument.
9808 * target.h (struct target_ops) <to_stop>: Add argument.
9809 * target.c (target_stop): Add argument.
9810 (debug_to_stop): Add argument.
9811 (update_current_target): Update.
9812 * remote.c (remote_stop): Add 'self' argument.
9813 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9814 (gdbsim_cntrl_c): Update.
9815 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9816 * procfs.c (procfs_stop): Add 'self' argument.
9817 * nto-procfs.c (procfs_stop): Add 'self' argument.
9818 * monitor.c (monitor_stop): Add 'self' argument.
9819 (monitor_open): Update.
9820 * linux-nat.c (linux_nat_stop): Add argument.
9821 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9822 * gnu-nat.c (gnu_stop): Add 'self' argument.
9823 * darwin-nat.c (darwin_stop): Add 'self' argument.
9824
98252014-02-19 Tom Tromey <tromey@redhat.com>
9826
9827 * target.h (struct target_ops) <to_thread_name>: Add argument.
9828 * target.c (target_thread_name): Add argument.
9829 (update_current_target): Update.
9830 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9831
98322014-02-19 Tom Tromey <tromey@redhat.com>
9833
9834 * target.h (struct target_ops) <to_extra_thread_info>: Add
9835 argument.
9836 (target_extra_thread_info): Add argument.
9837 * target.c (update_current_target): Update.
9838 * remote.c (remote_threads_extra_info): Add 'self' argument.
9839 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9840 argument.
9841 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9842 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9843 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9844 argument.
9845 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9846 argument.
9847 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9848 argument.
9849 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9850 argument.
9851
98522014-02-19 Tom Tromey <tromey@redhat.com>
9853
9854 * target.h (struct target_ops) <to_program_signals>: Add argument.
9855 * target.c (target_program_signals): Add argument.
9856 * remote.c (remote_program_signals): Add 'self' argument.
9857
98582014-02-19 Tom Tromey <tromey@redhat.com>
9859
9860 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9861 * target.c (target_pass_signals): Add argument.
9862 * remote.c (remote_pass_signals): Add 'self' argument.
9863 (remote_start_remote): Update.
9864 * procfs.c (procfs_pass_signals): Add 'self' argument.
9865 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9866 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9867 (linux_nat_create_inferior, linux_nat_attach): Update.
9868
98692014-02-19 Tom Tromey <tromey@redhat.com>
9870
9871 * windows-nat.c (windows_can_run): Add 'self' argument.
9872 * target.h (struct target_ops) <to_can_run>: Add argument.
9873 (target_can_run): Add argument.
9874 * target.c (debug_to_can_run): Add argument.
9875 (update_current_target): Update.
9876 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9877 * inf-child.c (inf_child_can_run): Add 'self' argument.
9878 * go32-nat.c (go32_can_run): Add 'self' argument.
9879
98802014-02-19 Tom Tromey <tromey@redhat.com>
9881
9882 * target.h (struct target_ops) <to_has_exited>: Add argument.
9883 (target_has_exited): Add argument.
9884 * target.c (debug_to_has_exited): Add argument.
9885 (update_current_target): Update.
9886
98872014-02-19 Tom Tromey <tromey@redhat.com>
9888
9889 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9890 argument.
9891 (target_set_syscall_catchpoint): Add argument.
9892 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9893 argument.
9894 * target.c (update_current_target): Update.
9895
98962014-02-19 Tom Tromey <tromey@redhat.com>
9897
9898 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9899 argument.
9900 (target_remove_exec_catchpoint): Add argument.
9901 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9902 (update_current_target): Update.
9903 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9904 argument.
9905
99062014-02-19 Tom Tromey <tromey@redhat.com>
9907
9908 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9909 argument.
9910 (target_insert_exec_catchpoint): Add argument.
9911 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9912 (update_current_target): Update.
9913 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9914 argument.
9915
99162014-02-19 Tom Tromey <tromey@redhat.com>
9917
9918 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9919 argument.
9920 (target_remove_vfork_catchpoint): Add argument.
9921 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9922 (update_current_target): Update.
9923 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9924 argument.
9925
99262014-02-19 Tom Tromey <tromey@redhat.com>
9927
9928 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9929 argument.
9930 (target_insert_vfork_catchpoint): Add argument.
9931 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9932 (update_current_target): Update.
9933 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9934 argument.
9935
99362014-02-19 Tom Tromey <tromey@redhat.com>
9937
9938 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9939 argument.
9940 (target_remove_fork_catchpoint): Add argument.
9941 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9942 (update_current_target): Update.
9943 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9944 argument.
9945
99462014-02-19 Tom Tromey <tromey@redhat.com>
9947
9948 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9949 argument.
9950 (target_insert_fork_catchpoint): Add argument.
9951 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9952 (update_current_target): Update.
9953 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9954 argument.
9955
99562014-02-19 Tom Tromey <tromey@redhat.com>
9957
9958 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9959 argument.
9960 (target_post_startup_inferior): Add argument.
9961 * target.c (debug_to_post_startup_inferior): Add argument.
9962 (update_current_target): Update.
9963 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9964 argument.
9965 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9966 argument.
9967 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9968 argument.
9969 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9970 argument.
9971 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9972 'self' argument.
9973 (super_post_startup_inferior): Likewise.
9974 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9975 'self' argument.
9976 (super_post_startup_inferior): Likewise.
9977 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9978 Add 'self' argument.
9979 (super_post_startup_inferior): Likewise.
9980
99812014-02-19 Tom Tromey <tromey@redhat.com>
9982
9983 * target.h (struct target_ops) <to_load>: Add argument.
9984 * target.c (target_load): Add argument.
9985 (debug_to_load): Add argument.
9986 (update_current_target): Update.
9987 * remote.c (remote_load): Add 'self' argument.
9988 * remote-sim.c (gdbsim_load): Add 'self' argument.
9989 * remote-mips.c (mips_load): Add 'self' argument.
9990 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9991 * monitor.c (monitor_load): Add 'self' argument.
9992 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9993
99942014-02-19 Tom Tromey <tromey@redhat.com>
9995
9996 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9997 (target_terminal_info): Add argument.
9998 * target.c (debug_to_terminal_info): Add argument.
9999 (default_terminal_info): Likewise.
10000 * inflow.c (child_terminal_info): Add 'self' argument.
10001 * inferior.h (child_terminal_info): Add 'self' argument.
10002 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10003
100042014-02-19 Tom Tromey <tromey@redhat.com>
10005
10006 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10007 argument.
10008 (target_terminal_save_ours): Add argument.
10009 * target.c (debug_to_terminal_save_ours): Add argument.
10010 (update_current_target): Update.
10011 * inflow.c (terminal_save_ours): Add 'self' argument.
10012 * inferior.h (terminal_save_ours): Add 'self' argument.
10013
100142014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10017 (target_terminal_ours): Add argument.
10018 * target.c (debug_to_terminal_ours): Add argument.
10019 (update_current_target): Update.
10020 * remote.c (remote_terminal_ours): Add 'self' argument.
10021 (remote_close): Update.
10022 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10023 * inflow.c (terminal_ours): Add 'self' argument.
10024 * inferior.h (terminal_ours): Add 'self' argument.
10025 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10026
100272014-02-19 Pedro Alves <palves@redhat.com>
10028 Tom Tromey <tromey@redhat.com>
10029
10030 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10031 argument.
10032 (target_terminal_ours_for_output): Add argument.
10033 * target.c (debug_to_terminal_ours_for_output): Add argument.
10034 (update_current_target): Update.
10035 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10036 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10037 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10038
100392014-02-19 Tom Tromey <tromey@redhat.com>
10040
10041 * target.h (struct target_ops) <to_terminal_inferior>: Add
10042 argument.
10043 * target.c (target_terminal_inferior): Add argument.
10044 (update_current_target): Update.
10045 * remote.c (remote_terminal_inferior): Add 'self' argument.
10046 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10047 * inflow.c (terminal_inferior): Add 'self' argument.
10048 * inferior.h (terminal_inferior): Add 'self' argument.
10049 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10050 (go32_terminal_inferior): Add 'self' argument.
10051
100522014-02-19 Tom Tromey <tromey@redhat.com>
10053
10054 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10055 (target_terminal_init): Add argument.
10056 * target.c (debug_to_terminal_init): Add argument.
10057 (update_current_target): Update.
10058 * inflow.c (terminal_init_inferior): Add 'self' argument.
10059 * inferior.h (terminal_init_inferior): Add 'self' argument.
10060 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10061 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10062
100632014-02-19 Tom Tromey <tromey@redhat.com>
10064
10065 * target.h (struct target_ops)
10066 <to_can_accel_watchpoint_condition>: Add argument.
10067 (target_can_accel_watchpoint_condition): Add argument.
10068 * target.c (debug_to_can_accel_watchpoint_condition): Add
10069 argument.
10070 (update_current_target): Update.
10071 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10072 'self' argument.
10073
100742014-02-19 Tom Tromey <tromey@redhat.com>
10075
10076 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10077 Add argument.
10078 (target_region_ok_for_hw_watchpoint): Add argument.
10079 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10080 (default_region_ok_for_hw_watchpoint): Add argument.
10081 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10082 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10083 argument.
10084 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10085 argument.
10086 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10087 argument.
10088 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10089 'self' argument.
10090 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10091 'self' argument.
10092 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10093 'self' argument.
10094 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10095 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10096 'self' argument.
10097 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10098 Add 'self' argument.
10099
101002014-02-19 Tom Tromey <tromey@redhat.com>
10101
10102 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10103 argument.
10104 (target_insert_watchpoint): Add argument.
10105 * target.c (debug_to_insert_watchpoint): Add argument.
10106 (update_current_target): Update.
10107 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10108 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10109 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10110 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10111 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10112 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10113 argument.
10114 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10115 (procfs_insert_hw_watchpoint): Add 'self' argument.
10116 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10117 argument.
10118 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10119 argument.
10120 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10121 argument.
10122 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10123 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10124 argument.
10125 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10126 'self' argument.
10127
101282014-02-19 Tom Tromey <tromey@redhat.com>
10129
10130 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10131 argument.
10132 (target_remove_watchpoint): Add argument.
10133 * target.c (debug_to_remove_watchpoint): Add argument.
10134 (update_current_target): Update.
10135 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10136 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10137 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10138 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10139 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10140 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10141 argument.
10142 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10143 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10144 argument.
10145 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10146 argument.
10147 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10148 argument.
10149 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10150 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10151 argument.
10152 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10153 'self' argument.
10154
101552014-02-19 Tom Tromey <tromey@redhat.com>
10156
10157 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10158 argument.
10159 (target_remove_hw_breakpoint): Add argument.
10160 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10161 (update_current_target): Update.
10162 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10163 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10164 argument.
10165 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10166 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10167 argument.
10168 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10169 'self' argument.
10170
101712014-02-19 Tom Tromey <tromey@redhat.com>
10172
10173 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10174 argument.
10175 (target_insert_hw_breakpoint): Add argument.
10176 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10177 (update_current_target): Update.
10178 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10179 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10180 argument.
10181 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10182 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10183 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10184 argument.
10185 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10186 'self' argument.
10187
101882014-02-19 Tom Tromey <tromey@redhat.com>
10189
10190 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10191 argument.
10192 (target_can_use_hardware_watchpoint): Add argument.
10193 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10194 (update_current_target): Update.
10195 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10196 argument.
10197 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10198 argument.
10199 * remote.c (remote_check_watch_resources): Add 'self' argument.
10200 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10201 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10202 argument.
10203 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10204 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10205 argument.
10206 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10207 argument.
10208 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10209 argument.
10210 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10211 argument.
10212 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10213 argument.
10214 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10215 argument.
10216 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10217 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10218 argument.
10219 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10220 'self' argument.
10221
102222014-02-19 Tom Tromey <tromey@redhat.com>
10223
10224 * target.h (struct target_ops) <to_post_attach>: Add argument.
10225 (target_post_attach): Add argument.
10226 * target.c (debug_to_post_attach): Add argument.
10227 (update_current_target): Update.
10228 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10229 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10230 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10231 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10232 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10233
102342014-02-19 Tom Tromey <tromey@redhat.com>
10235
10236 * windows-nat.c (windows_close): Add 'self' argument.
10237 * tracepoint.c (tfile_close): Add 'self' argument.
10238 * target.h (struct target_ops) <to_close>: Add argument.
10239 * target.c (target_close): Add argument.
10240 (update_current_target): Update.
10241 * remote.c (remote_close): Add 'self' argument.
10242 * remote-sim.c (gdbsim_close): Add 'self' argument.
10243 * remote-mips.c (mips_close): Add 'self' argument.
10244 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10245 * record-full.c (record_full_close): Add 'self' argument.
10246 * record-btrace.c (record_btrace_close): Add 'self' argument.
10247 * monitor.h (monitor_close): Add 'self' argument.
10248 * monitor.c (monitor_close): Add 'self' argument.
10249 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10250 * linux-nat.c (linux_nat_close): Add argument.
10251 * go32-nat.c (go32_close): Add 'self' argument.
10252 * exec.c (exec_close_1): Add 'self' argument.
10253 * ctf.c (ctf_close): Add 'self' argument.
10254 * corelow.c (core_close): Add 'self' argument.
10255 (core_close_cleanup): Update.
10256 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10257 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10258
102592014-02-19 Tom Tromey <tromey@redhat.com>
10260
10261 * remote.c (remote_load): New function.
10262 (init_remote_ops): Use it.
10263
102642014-02-19 Tom Tromey <tromey@redhat.com>
10265
10266 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10267 argument.
10268 * common/linux-btrace.h (linux_supports_btrace): Update.
10269 * remote.c (remote_supports_btrace): Add "self" argument.
10270 * target-delegates.c: Rebuild.
10271 * target.c (target_supports_btrace): Remove.
10272 * target.h (struct target_ops) <to_supports_btrace>: Add
10273 target_ops argument.
10274 (target_supports_btrace): New define.
10275
102762014-02-19 Tom Tromey <tromey@redhat.com>
10277
10278 * record-full.c (record_full_beneath_to_resume_ops)
10279 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10280 (record_full_beneath_to_wait)
10281 (record_full_beneath_to_store_registers_ops)
10282 (record_full_beneath_to_store_registers)
10283 (record_full_beneath_to_xfer_partial_ops)
10284 (record_full_beneath_to_xfer_partial)
10285 (record_full_beneath_to_insert_breakpoint_ops)
10286 (record_full_beneath_to_insert_breakpoint)
10287 (record_full_beneath_to_remove_breakpoint_ops)
10288 (record_full_beneath_to_remove_breakpoint)
10289 (record_full_beneath_to_stopped_by_watchpoint)
10290 (record_full_beneath_to_stopped_data_address)
10291 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10292 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10293 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10294 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10295 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10296 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10297 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10298 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10299 (record_full_resume, record_full_wait_1)
10300 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10301 (record_full_store_registers, record_full_xfer_partial)
10302 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10303 (record_full_async, record_full_core_xfer_partial): Use target
10304 delegation.
10305 * target-delegates.c: Rebuild.
10306 * target.c (current_xfer_partial): Remove.
10307 (update_current_target): Do not INHERIT or de_fault
10308 to_insert_breakpoint, to_remove_breakpoint,
10309 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10310 to_is_async_p, to_async. Do not set to_xfer_partial field.
10311 (default_xfer_partial): Simplify.
10312 (current_xfer_partial): Remove.
10313 (target_wait, target_resume): Simplify.
10314 (find_default_can_async_p, find_default_is_async_p): Update.
10315 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10316 to_xfer_partial, to_stopped_by_watchpoint,
10317 to_stopped_data_address.
10318 (target_store_registers): Simplify.
10319 (forward_target_remove_breakpoint)
10320 (forward_target_insert_breakpoint): Remove.
10321 (target_remove_breakpoint, target_insert_breakpoint)
10322 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10323 * target.h (struct target_ops) <to_resume, to_wait,
10324 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10325 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10326 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10327 markup.
10328 (forward_target_remove_breakpoint)
10329 (forward_target_insert_breakpoint): Remove.
10330 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10331 directly.
10332 (record_btrace_insert_breakpoint): Delegate directly.
10333
103342014-02-19 Tom Tromey <tromey@redhat.com>
10335
10336 PR build/7701:
10337 * target-delegates.c: New file.
10338 * target.c: Include target-delegates.c.
10339 (init_dummy_target): Call install_dummy_methods.
10340 (complete_target_initialization): Call install_delegators.
10341 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10342 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10343 * make-target-delegates: New file.
10344
103452014-02-19 Tom Tromey <tromey@redhat.com>
10346
10347 * record.c (find_record_target): Use find_target_at.
10348 * target.c (find_target_at): New function.
10349 * target.h (find_target_at): Declare.
10350
103512014-02-19 Tom Tromey <tromey@redhat.com>
10352
10353 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10354 Add 'ops' argument.
10355 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10356 'ops' argument.
10357 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10358 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10359 'ops' argument.
10360 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10361 argument.
10362 * linux-nat.c (save_sigtrap): Update.
10363 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10364 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10365 (linux_nat_close): Update.
10366 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10367 argument.
10368 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10369 argument.
10370 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10371 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10372 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10373 (tmp_to_async): Add 'ops' argument.
10374 (record_full_stopped_by_watchpoint, record_full_async)
10375 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10376 argument.
10377 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10378 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10379 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10380 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10381 (remote_is_async_p, remote_async): Add 'ops' argument.
10382 (remote_stopped_data_address): Update.
10383 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10384 * target.c (update_current_target)
10385 (find_default_can_async_p, find_default_is_async_p): Update.
10386 (init_dummy_target): Update.
10387 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10388 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10389 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10390 (target_can_async_p, target_is_async_p, target_async)
10391 (target_stopped_by_watchpoint): Update.
10392
103932014-02-19 Yao Qi <yao@codesourcery.com>
10394
10395 PR gdb/16220
10396 * gdbarch.sh: Remove startup_gdbarch.
10397 * gdbarch.c: Regenerated.
10398 * gdbarch.h: Likewise.
10399
104002014-02-17 Kevin Buettner <kevinb@redhat.com>
10401
10402 * rl78-tdep.c (rl78_g10_register_name): New function.
10403 (rl78_return_value): Add g10 support.
10404 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10405 g10.
10406
104072014-02-17 Doug Evans <xdje42@gmail.com>
10408
10409 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10410 (SUBDIR_GUILE_SRCS): Ditto.
10411 (scm-gsmob.o): Ditto.
10412
104132014-02-17 Yao Qi <yao@codesourcery.com>
10414
10415 * gnu-nat.c (ILL_RPC): Declare defined function.
10416
104172014-02-17 Yao Qi <yao@codesourcery.com>
10418
10419 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10420 mach_msg_type_number_t.
10421 (gnu_write_inferior): Likewise.
10422
104232014-02-17 Yao Qi <yao@codesourcery.com>
10424
10425 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10426 in format string.
10427 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10428 (inf_validate_procs, inf_signal): Likewise.
10429 (S_exception_raise_request): Likewise.
10430 (do_mach_notify_dead_name): Likewise.
10431 (steal_exc_port): Likewise.
10432 (gnu_read_inferior): Change 'copy_count''s type to
10433 mach_msg_type_number_t.
10434 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10435 format string.
10436
104372014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10438
10439 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10440 flag. Adjust all users; in particular...
10441 (gnu_wait): ..., don't decrement its value in here...
10442 (gnu_create_inferior): ..., and instead set the flag in here,
10443 around the startup_inferior call, and call that one with
10444 START_INFERIOR_TRAPS_EXPECTED.
10445
10446 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10447 (ILL_RPC): ... new macro.
10448 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10449 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10450 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10451 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10452 functions with ILL_RPC macro.
10453 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10454 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10455 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10456 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10457 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10458 (S_proc_getlogin_reply, S_proc_getsid_reply)
10459 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10460 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10461 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10462 (S_proc_getnports_reply, S_proc_is_important_reply)
10463 (S_proc_get_code_reply): New stub functions, generated with
10464 ILL_RPC macro.
10465
10466 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10467 collected the type check structures.
10468
10469 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10470
104712014-02-14 Doug Evans <dje@google.com>
10472
10473 * target.c (target_write_partial): Fix result type.
10474
104752014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10476
10477 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10478 the proper offsets to access fpregset_t.
10479
104802014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10481
10482 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10483 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10484 * h8300-tdep.c (setmachinelist): Remove global.
10485 * hppa-tdep.c (hppa_sigtramp): Remove global.
10486 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10487 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10488 * ravenscar-thread.c (update_target_observer): Remove global.
10489 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10490
104912014-02-12 Tom Tromey <tromey@redhat.com>
10492
10493 * common/rsp-low.c: Update comments.
10494 * common/rsp-low.h: Update comments.
10495
104962014-02-12 Tom Tromey <tromey@redhat.com>
10497
10498 * common/rsp-low.c (convert_ascii_to_int): Remove.
10499 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10500
105012014-02-12 Tom Tromey <tromey@redhat.com>
10502
10503 * common/rsp-low.h (unhexify): Don't declare.
10504 * common/rsp-low.c (unhexify): Remove.
10505
105062014-02-12 Tom Tromey <tromey@redhat.com>
10507
10508 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10509 * common/rsp-low.c (convert_int_to_ascii): Remove.
10510
105112014-02-12 Tom Tromey <tromey@redhat.com>
10512
10513 * common/rsp-low.h (hexify): Don't declare.
10514 * common/rsp-low.c (hexify): Remove.
10515
105162014-02-12 Tom Tromey <tromey@redhat.com>
10517
10518 * common/rsp-low.c (hexify): Never take strlen of argument.
10519
105202014-02-12 Tom Tromey <tromey@redhat.com>
10521
10522 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10523 * remote.c (extended_remote_run, remote_rcmd)
10524 (remote_download_trace_state_variable, remote_save_trace_data)
10525 (remote_set_trace_notes): Update.
10526 * tracepoint.c (encode_source_string, tfile_write_status)
10527 (tfile_write_uploaded_tsv): Update.
10528
105292014-02-12 Tom Tromey <tromey@redhat.com>
10530
10531 * tracepoint.c: Include rsp-low.h.
10532 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10533 * remote.c: Include rsp-low.h.
10534 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10535 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10536 (remote_unescape_input): Move to common/rsp-low.c.
10537 * common/rsp-low.h: New file.
10538 * common/rsp-low.c: New file.
10539 * Makefile.in (SFILES): Add common/rsp-low.c.
10540 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10541 (COMMON_OBS): Add rsp-low.o.
10542 (rsp-low.o): New target.
10543
105442014-02-12 Tom Tromey <tromey@redhat.com>
10545
10546 * utils.h: Include print-utils.h.
10547 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10548 (int_string, core_addr_to_string, core_addr_to_string_nz)
10549 (hex_string, hex_string_custom): Don't declare.
10550 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10551 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10552 (hex_string_custom, int_string, core_addr_to_string)
10553 (core_addr_to_string_nz, host_address_to_string): Move to
10554 common/print-utils.c.
10555 * common/print-utils.h: New file.
10556 * common/print-utils.c: New file
10557 * Makefile.in (SFILES): Add common/print-utils.c.
10558 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10559 (COMMON_OBS): Add print-utils.o.
10560 (print-utils.o): New target.
10561
105622014-02-12 Tom Tromey <tromey@redhat.com>
10563
10564 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10565
105662014-02-12 Mark Kettenis <kettenis@gnu.org>
10567
10568 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10569
105702014-02-12 Mark Kettenis <kettenis@gnu.org>
10571
10572 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10573 if a PT_IO ptrace request returns sucessfully but indicates that 0
10574 bytes were transferred.
10575
105762014-02-12 Pedro Alves <palves@redhat.com>
10577 Kevin Buettner <kevinb@redhat.com>
10578
10579 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10580 TYPE_INSTANCE_FLAG_CODE_SPACE.
10581
105822014-02-12 Pedro Alves <palves@redhat.com>
10583
10584 * h8300-tdep.c (pseudo_from_raw_register)
10585 (raw_from_pseudo_register): New functions.
10586 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10587 them.
10588
105892014-02-12 Pedro Alves <palves@redhat.com>
10590
10591 * h8300-tdep.c (h8300_register_sim_regno): New function.
10592 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10593 gdbarch_register_sim_regno hook.
10594
105952014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10596
10597 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10598
105992014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10600
10601 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10602
106032014-02-12 Mark Kettenis <kettenis@gnu.org>
10604
10605 * obsd-tdep.h (obsd_init_abi): New prototype.
10606 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10607 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10608 (obsd_init_abi): New functions.
10609 * i386obsd-tdep.c: Include "obsd-tdep.h".
10610 (i386obsd_init_abi): Call obsd_init_abi.
10611 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10612 (amd64obsd_init_abi): Call obsd_init_abi.
10613 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10614 obsd-tdep.c to gdb_target_obs.
10615
106162014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10617
10618 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10619 double float arguments to 16-byte in the argument slots.
10620
106212014-02-11 Doug Evans <xdje42@gmail.com>
10622
10623 * configure.ac: Don't crash if pkg-config is not found and guile
10624 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10625 in guile checks.
10626 * configure: Regenerate.
10627
106282014-02-11 Yao Qi <yao@codesourcery.com>
10629
10630 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10631 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10632 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10633 * gnu-nat.c (gnu_xfer_memory): Likewise.
10634 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10635 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10636 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10637 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10638
106392014-02-11 Yao Qi <yao@codesourcery.com>
10640
10641 * target.h (enum target_xfer_error): Rename to ...
10642 (enum target_xfer_status): ... it. New. All users updated.
10643 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10644 New.
10645 (TARGET_XFER_STATUS_ERROR_P): New macro.
10646 (target_xfer_error_to_string): Remove declaration.
10647 (target_xfer_status_to_string): Declare.
10648 (target_xfer_partial_ftype): Adjust it.
10649 (struct target_ops) <to_xfer_partial>: Return
10650 target_xfer_status. Add argument xfered_len. Update
10651 comments.
10652 * target.c (target_xfer_error_to_string): Rename to ...
10653 (target_xfer_status_to_string): ... it. New. All callers
10654 updated.
10655 (target_read_live_memory): Likewise. Call target_xfer_partial
10656 instead of target_read.
10657 (memory_xfer_live_readonly_partial): Return
10658 target_xfer_status. Add argument xfered_len.
10659 (raw_memory_xfer_partial): Likewise.
10660 (memory_xfer_partial_1): Likewise.
10661 (memory_xfer_partial): Likewise.
10662 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10663 properly. Update debug message.
10664 (default_xfer_partial, current_xfer_partial): Likewise.
10665 (target_write_partial): Likewise.
10666 (target_read_partial): Likewise. All callers updated.
10667 (read_whatever_is_readable): Likewise.
10668 (target_write_with_progress): Likewise.
10669 (target_read_alloc_1): Likewise.
10670
10671 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10672 * auxv.c (procfs_xfer_auxv): Likewise.
10673 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10674 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10675 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10676 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10677 * corefile.c (read_memory): Adjust.
10678 * corelow.c (core_xfer_partial): Likewise.
10679 * ctf.c (ctf_xfer_partial): Likewise.
10680 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10681 updated.
10682 (darwin_xfer_partial): Likewise.
10683 * exec.c (section_table_xfer_memory_partial): Likewise. All
10684 callers updated.
10685 (exec_xfer_partial): Likewise.
10686 * exec.h (section_table_xfer_memory_partial): Update
10687 declaration.
10688 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10689 negative.
10690 (gnu_xfer_partial): Likewise.
10691 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10692 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10693 (ia64_hpux_xfer_solib_got): Likewise.
10694 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10695 type of 'partial_len' to ULONGEST.
10696 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10697 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10698 (linux_nat_xfer_partial): Likewise.
10699 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10700 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10701 * monitor.c (monitor_xfer_memory): Likewise.
10702 (monitor_xfer_partial): Likewise.
10703 * procfs.c (procfs_xfer_partial): Likewise.
10704 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10705 * record-full.c (record_full_xfer_partial): Likewise.
10706 (record_full_core_xfer_partial): Likewise.
10707 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10708 (gdbsim_xfer_partial): Likewise.
10709 * remote.c (remote_write_bytes_aux): Likewise. All callers
10710 updated.
10711 (remote_write_bytes, remote_read_bytes): Likewise. All
10712 callers updated.
10713 (remote_flash_erase): Likewise. All callers updated.
10714 (remote_write_qxfer): Likewise. All callers updated.
10715 (remote_read_qxfer): Likewise. All callers updated.
10716 (remote_xfer_partial): Likewise.
10717 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10718 (rs6000_xfer_shared_libraries): Likewise.
10719 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10720 (sol_thread_xfer_partial): Likewise.
10721 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10722 (sparc_xfer_partial): Likewise.
10723 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10724 updated.
10725 (spu_xfer_partial): Likewise.
10726 * spu-multiarch.c (spu_xfer_partial): Likewise.
10727 * tracepoint.c (tfile_xfer_partial): Likewise.
10728 * windows-nat.c (windows_xfer_memory): Likewise.
10729 (windows_xfer_shared_libraries): Likewise.
10730 (windows_xfer_partial): Likewise.
10731 * valprint.c: Replace 'target_xfer_error' with
10732 'target_xfer_status' in comments.
10733
107342014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10735
10736 Checked in by Joel Brobecker <brobecker@adacore.com>.
10737 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10738
107392014-02-11 Joel Brobecker <brobecker@adacore.com>
10740
10741 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10742 function parameters.
10743
107442014-02-10 Will Newton <will.newton@linaro.org>
10745
10746 * elfread.c (elf_rel_plt_read): Look for a .got section if
10747 looking up .got.plt fails.
10748 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10749 on address passed to elf_gnu_ifunc_record_cache.
10750 (elf_gnu_ifunc_resolve_addr): Likewise.
10751 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10752
107532014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10754
10755 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10756 (X_RETTURN): New macro.
10757 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10758
10759 * sparc64-tdep.c (sparc64_init_abi): Hook
10760 sparc_in_function_epilogue_p.
10761
107622014-02-10 Gary Benson <gbenson@redhat.com>
10763
10764 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10765 Rename name_matcher to symbol_matcher.
10766
107672014-02-10 Gary Benson <gbenson@redhat.com>
10768
10769 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10770 Use expand_symtabs_file_matcher_ftype and
10771 expand_symtabs_symbol_matcher_ftype.
10772
107732014-02-10 Joel Brobecker <brobecker@adacore.com>
10774
10775 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10776 (struct ada_symbol_cache): New.
10777 (ada_free_symbol_cache): Forward declare.
10778 (struct ada_pspace_data): New.
10779 (ada_pspace_data_handle): New static global.
10780 (get_ada_pspace_data, ada_pspace_data_cleanup)
10781 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10782 (cache_space, cache): Delete, now folded inside struct
10783 ada_pspace_data.
10784 (ada_get_symbol_cache): New function.
10785 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10786 implementation.
10787 (_initialize_ada_language): Remove initialization of cache_space.
10788 Move call to observer_attach_inferior_exit up, grouping it
10789 with the other observer registrations inside this function.
10790 Rename command to be more general. Add call to
10791 register_program_space_data_with_cleanup.
10792
107932014-02-10 Joel Brobecker <brobecker@adacore.com>
10794
10795 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10796 ada_new_objfile_observer.
10797 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10798 (_initialize_tasks): Update uses of ada_new_objfile_observer
10799 and ada_tasks_normal_stop_observer.
10800
108012014-02-10 Joel Brobecker <brobecker@adacore.com>
10802
10803 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10804 returned by the 'Length attribute to integer.
10805
108062014-02-10 Joel Brobecker <brobecker@adacore.com>
10807
10808 * ada-lang.c (_initialize_ada_language): Initialize
10809 cache_space obstack.
10810
108112014-02-10 Joel Brobecker <brobecker@adacore.com>
10812
10813 * ada-lang.c (HASH_SIZE): New macro.
10814 (struct cache_entry): New type.
10815 (cache_space, cache): New static globals.
10816 (ada_clear_symbol_cache, find_entry): New functions.
10817 (lookup_cached_symbol, cache_symbol): Implement.
10818 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10819 (_initialize_ada_language): Attach ada_new_objfile_observer
10820 and ada_free_objfile_observer.
10821
108222014-02-10 Joel Brobecker <brobecker@adacore.com>
10823
10824 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10825 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10826 struct block * parameter.
10827 (ada_lookup_symbol_list_worker): Constify local variable "block".
10828 Remove cast which is no longer necessary.
10829
108302014-02-10 Doug Evans <xdje42@gmail.com>
10831
10832 Add Guile as an extension language.
10833 * NEWS: Mention Guile scripting.
10834 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10835 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10836 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10837 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10838 (CLIBS): Add GUILE_LIBS.
10839 (install-guile): New rule.
10840 (guile.o): New rule.
10841 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10842 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10843 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10844 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10845 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10846 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10847 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10848 * configure.ac: New option --with-guile.
10849 * configure: Regenerate.
10850 * config.in: Regenerate.
10851 * auto-load.c: Remove #include "python/python.h". Add #include
10852 "gdb/section-scripts.h".
10853 (source_section_scripts): Handle Guile scripts.
10854 (_initialize_auto_load): Add name of Guile objfile script to
10855 scripts-directory help text.
10856 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10857 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10858 (struct breakpoint): New member scm_bp_object.
10859 * defs.h (enum command_control_type): New value guile_control.
10860 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10861 "extension.h".
10862 (show_user): Update comment.
10863 (_initialize_cli_cmds): Update help text for "show user". Update help
10864 text for max-user-call-depth.
10865 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10866 "extension.h".
10867 (multi_line_command_p): Add guile_control.
10868 (print_command_lines): Handle guile_control.
10869 (execute_control_command, recurse_read_control_structure): Ditto.
10870 (process_next_line): Recognize "guile" commands.
10871 * disasm.c (gdb_disassemble_info): Make non-static.
10872 * disasm.h: #include "dis-asm.h".
10873 (struct gdbarch): Add forward decl.
10874 (gdb_disassemble_info): Declare.
10875 * extension.c: #include "guile/guile.h".
10876 (extension_languages): Add guile.
10877 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10878 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10879 * gdbtypes.c (get_unsigned_type_max): New function.
10880 (get_signed_type_minmax): New function.
10881 * gdbtypes.h (get_unsigned_type_max): Declare.
10882 (get_signed_type_minmax): Declare.
10883 * guile/README: New file.
10884 * guile/guile-internal.h: New file.
10885 * guile/guile.c: New file.
10886 * guile/guile.h: New file.
10887 * guile/scm-arch.c: New file.
10888 * guile/scm-auto-load.c: New file.
10889 * guile/scm-block.c: New file.
10890 * guile/scm-breakpoint.c: New file.
10891 * guile/scm-disasm.c: New file.
10892 * guile/scm-exception.c: New file.
10893 * guile/scm-frame.c: New file.
10894 * guile/scm-gsmob.c: New file.
10895 * guile/scm-iterator.c: New file.
10896 * guile/scm-lazy-string.c: New file.
10897 * guile/scm-math.c: New file.
10898 * guile/scm-objfile.c: New file.
10899 * guile/scm-ports.c: New file.
10900 * guile/scm-pretty-print.c: New file.
10901 * guile/scm-safe-call.c: New file.
10902 * guile/scm-string.c: New file.
10903 * guile/scm-symbol.c: New file.
10904 * guile/scm-symtab.c: New file.
10905 * guile/scm-type.c: New file.
10906 * guile/scm-utils.c: New file.
10907 * guile/scm-value.c: New file.
10908 * guile/lib/gdb.scm: New file.
10909 * guile/lib/gdb/boot.scm: New file.
10910 * guile/lib/gdb/experimental.scm: New file.
10911 * guile/lib/gdb/init.scm: New file.
10912 * guile/lib/gdb/iterator.scm: New file.
10913 * guile/lib/gdb/printing.scm: New file.
10914 * guile/lib/gdb/types.scm: New file.
10915 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10916 (VPATH): Add $(GUILE_SRCDIR).
10917 (GUILE_DIR): New variable.
10918 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10919 (all): Add stamp-guile dependency.
10920 (stamp-guile): New rule.
10921 (clean-guile, install-guile, uninstall-guile): New rules.
10922 (install-only): Add install-guile dependency.
10923 (uninstall): Add uninstall-guile dependency.
10924 (clean): Add clean-guile dependency.
10925
109262014-02-09 Doug Evans <xdje42@gmail.com>
10927
10928 Revert this patch (which I approved, mea culpa).
10929
10930 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10931
10932 * Makefile.in (all-lib): Remove.
10933 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10934
109352014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10936
10937 Fix Python stack corruption.
10938 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10939 gdb_py_longest.
10940
109412014-02-08 Mark Kettenis <kettenis@gnu.org>
10942
10943 * Makefile.in (all-lib): Remove.
10944 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10945
109462014-02-07 Doug Evans <dje@google.com>
10947
10948 * extension-priv.h (extension_language_script_ops): Add comment.
10949 (extension_language_ops): Add comment.
10950 (active_ext_lang_state): Fix typo in comment.
10951
109522014-02-07 Pedro Alves <palves@redhat.com>
10953
10954 PR breakpoints/16292
10955 * infrun.c (handle_signal_stop) <signal arrives while stepping
10956 over a breakpoint>: Switch back to the stepping thread.
10957
109582014-02-07 Yao Qi <yao@codesourcery.com>
10959
10960 * target.c (target_xfer_partial): Return zero if LEN is zero.
10961
109622014-02-07 Yao Qi <yao@codesourcery.com>
10963
10964 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10965 (ld_so_xfer_auxv): Likewise.
10966 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10967 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10968 * corelow.c (core_xfer_partial): Likewise.
10969 * ctf.c (ctf_xfer_partial): Likewise.
10970 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10971 (darwin_xfer_partial): Likewise.
10972 * exec.c (exec_xfer_partial): Likewise.
10973 * gnu-nat.c (gnu_xfer_partial): Likewise.
10974 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10975 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10976 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10977 * linux-nat.c (linux_xfer_siginfo): Likewise.
10978 (linux_proc_xfer_spu): Likewise.
10979 * procfs.c (procfs_xfer_partial): Likewise.
10980 * record-full.c (record_full_xfer_partial): Likewise.
10981 (record_full_core_xfer_partial): Likewise.
10982 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10983 * remote.c (remote_write_qxfer): Likewise.
10984 (remote_write_qxfer, remote_read_qxfer): Likewise.
10985 (remote_xfer_partial): Likewise.
10986 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10987 (rs6000_xfer_shared_libraries): Likewise.
10988 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10989 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10990 (spu_xfer_partial): Likewise.
10991 * target.c (memory_xfer_partial_1): Likewise.
10992 * tracepoint.c (tfile_xfer_partial): Likewise.
10993 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10994 (windows_xfer_partial): Likewise.
10995
109962014-02-07 Yao Qi <yao@codesourcery.com>
10997
10998 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10999 comments.
11000 (core_xfer_shared_libraries_aix): Likewise.
11001 * gdbarch.c, gdbarch.h: Regenerated.
11002 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11003 ULONGEST. Change 'len_avail' type to ULONGEST.
11004 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11005 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11006 declaration.
11007 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11008
110092014-02-07 Yao Qi <yao@codesourcery.com>
11010
11011 * corefile.c (memory_error): Get 'exception' from ERR and pass
11012 'exception' to throw_error.
11013
110142014-02-06 Doug Evans <xdje42@gmail.com>
11015
11016 * configure.ac (libpython checking): Remove all but python.o from
11017 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11018 * configure: Regenerate.
11019
11020 * Makefile.in (SFILES): Add extension.c.
11021 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11022 (COMMON_OBS): Add extension.o.
11023 * extension.h: New file.
11024 * extension-priv.h: New file.
11025 * extension.c: New file.
11026
11027 * python/python-internal.h: #include "extension.h".
11028 (gdbpy_auto_load_enabled): Declare.
11029 (gdbpy_apply_val_pretty_printer): Declare.
11030 (gdbpy_apply_frame_filter): Declare.
11031 (gdbpy_preserve_values): Declare.
11032 (gdbpy_breakpoint_cond_says_stop): Declare.
11033 (gdbpy_breakpoint_has_cond): Declare.
11034 (void source_python_script_for_objfile): Delete.
11035 * python/python.c: #include "extension-priv.h".
11036 Delete inclusion of "observer.h".
11037 (extension_language_python): Moved here and renamed from
11038 script_language_python in py-auto-load.c.
11039 Redefined to be of type extension_language_defn.
11040 (python_extension_script_ops): New global.
11041 (python_extension_ops): New global.
11042 (struct python_env): New member previous_active.
11043 (restore_python_env): Call restore_active_ext_lang.
11044 (ensure_python_env): Call set_active_ext_lang.
11045 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11046 New arg extlang.
11047 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11048 New arg extlang.
11049 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11050 New arg extlang.
11051 (gdbpy_eval_from_control_command): Renamed from
11052 eval_python_from_control_command, made static. New arg extlang.
11053 (gdbpy_source_script) Renamed from source_python_script, made static.
11054 New arg extlang.
11055 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11056 result to int. New arg extlang.
11057 (gdbpy_source_objfile_script): Renamed from
11058 source_python_script_for_objfile, made static. New arg extlang.
11059 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11060 static. New args extlang, extlang_printers. Change result type to
11061 "void".
11062 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11063 static. New arg extlang. Rename arg printers to extlang_printers
11064 and change type to ext_lang_type_printers *.
11065 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11066 static. Replace argument arg with extlang, extlang_printers.
11067 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11068 (!HAVE_PYTHON, source_python_script): Delete.
11069 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11070 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11071 (!HAVE_PYTHON, start_type_printers): Delete.
11072 (!HAVE_PYTHON, apply_type_printers): Delete.
11073 (!HAVE_PYTHON, free_type_printers): Delete.
11074 (_initialize_python): Delete call to observer_attach_before_prompt.
11075 (finalize_python): Set/restore active extension language.
11076 (gdbpy_finish_initialization) Renamed from
11077 finish_python_initialization, made static. New arg extlang.
11078 (gdbpy_initialized): New function.
11079 * python/python.h: #include "extension.h". Delete #include
11080 "value.h", "mi/mi-cmds.h".
11081 (extension_language_python): Declare.
11082 (GDBPY_AUTO_FILE_NAME): Delete.
11083 (enum py_bt_status): Moved to extension.h and renamed to
11084 ext_lang_bt_status.
11085 (enum frame_filter_flags): Moved to extension.h.
11086 (enum py_frame_args): Moved to extension.h and renamed to
11087 ext_lang_frame_args.
11088 (finish_python_initialization): Delete.
11089 (eval_python_from_control_command): Delete.
11090 (source_python_script): Delete.
11091 (apply_val_pretty_printer): Delete.
11092 (apply_frame_filter): Delete.
11093 (preserve_python_values): Delete.
11094 (gdbpy_script_language_defn): Delete.
11095 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11096 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11097
11098 * auto-load.c: #include "extension.h".
11099 (GDB_AUTO_FILE_NAME): Delete.
11100 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11101 (script_language_gdb): Delete, moved to extension.c and renamed to
11102 extension_language_gdb.
11103 (source_gdb_script_for_objfile): Delete.
11104 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11105 (loaded_script): Change type of language member to
11106 struct extension_language_defn *.
11107 (init_loaded_scripts_info): Initialize
11108 unsupported_script_warning_printed.
11109 (maybe_add_script): Make static. Change type of language arg to
11110 struct extension_language_defn *.
11111 (clear_section_scripts): Reset unsupported_script_warning_printed.
11112 (auto_load_objfile_script_1): Rewrite to use extension language API.
11113 (auto_load_objfile_script): Make public. Remove support-compiled-in
11114 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11115 (source_section_scripts): Rewrite to use extension language API.
11116 (load_auto_scripts_for_objfile): Rewrite to use
11117 auto_load_scripts_for_objfile.
11118 (collect_matching_scripts_data): Change type of language member to
11119 struct extension_language_defn *.
11120 (auto_load_info_scripts): Change type of language arg to
11121 struct extension_language_defn *.
11122 (unsupported_script_warning_print): New function.
11123 (script_not_found_warning_print): Make static.
11124 (_initialize_auto_load): Rewrite construction of scripts-directory
11125 help.
11126 * auto-load.h (struct objfile): Add forward decl.
11127 (struct script_language): Delete.
11128 (struct auto_load_pspace_info): Add forward decl.
11129 (struct extension_language_defn): Add forward decl.
11130 (maybe_add_script): Delete.
11131 (auto_load_objfile_script): Declare.
11132 (script_not_found_warning_print): Delete.
11133 (auto_load_info_scripts): Update prototype.
11134 (auto_load_gdb_scripts_enabled): Declare.
11135 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11136 auto_load_python_scripts_enabled and made public.
11137 (script_language_python): Delete, moved to python.c.
11138 (gdbpy_script_language_defn): Delete.
11139 (info_auto_load_python_scripts): Update to use
11140 extension_language_python.
11141
11142 * breakpoint.c (condition_command): Replace call to
11143 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11144 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11145 with call to breakpoint_ext_lang_cond_says_stop.
11146 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11147 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11148 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11149 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11150 New arg slang.
11151 (local_setattro): Print name of extension language with existing
11152 stop condition.
11153
11154 * valprint.c (val_print, value_print): Update to call
11155 apply_ext_lang_val_pretty_printer.
11156 * cp-valprint.c (cp_print_value): Update call to
11157 apply_ext_lang_val_pretty_printer.
11158 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11159 (gdbpy_apply_val_pretty_printer): Renamed from
11160 apply_val_pretty_printer. New arg extlang.
11161 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11162
11163 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11164 extension language API.
11165 * cli/cli-script.c (execute_control_command): Update to call
11166 eval_ext_lang_from_control_command.
11167
11168 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11169 enum ext_lang_bt_status values. Update call to
11170 apply_ext_lang_frame_filter.
11171 (mi_cmd_stack_list_locals): Ditto.
11172 (mi_cmd_stack_list_args): Ditto.
11173 (mi_cmd_stack_list_variables): Ditto.
11174 * mi/mi-main.c: Delete #include "python/python-internal.h".
11175 Add #include "extension.h".
11176 (mi_cmd_list_features): Replace reference to python internal variable
11177 gdb_python_initialized with call to ext_lang_initialized_p.
11178
11179 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11180 Update to use enum ext_lang_frame_args. Update to call
11181 apply_ext_lang_frame_filter.
11182 * python/py-framefilter.c (extract_sym): Update to use enum
11183 ext_lang_bt_status.
11184 (extract_value, py_print_type, py_print_value): Ditto.
11185 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11186 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11187 (py_print_frame): Ditto.
11188 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11189 New arg extlang. Update to use enum ext_lang_bt_status.
11190
11191 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11192 finish_python_initialization. Replace with call to
11193 finish_ext_lang_initialization.
11194
11195 * typeprint.c (do_free_global_table): Update to call
11196 free_ext_lang_type_printers.
11197 (create_global_typedef_table): Update to call
11198 start_ext_lang_type_printers.
11199 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11200 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11201 (type_print_options): Change type of global_printers from "void *"
11202 to "struct ext_lang_type_printers *".
11203
11204 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11205 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11206 (gdbpy_preserve_values): Renamed from preserve_python_values.
11207 New arg extlang.
11208 (!HAVE_PYTHON, preserve_python_values): Delete.
11209
11210 * utils.c (quit_flag): Delete, moved to extension.c.
11211 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11212 extension.c.
11213
11214 * eval.c: Delete #include "python/python.h".
11215 * main.c: Delete #include "python/python.h".
11216
11217 * defs.h: Update comment.
11218
112192014-02-06 Joel Brobecker <brobecker@adacore.com>
11220
11221 GDB 7.7 released.
11222
112232014-02-05 Mark Kettenis <kettenis@gnu.org>
11224
11225 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11226 defined.
11227
112282014-02-05 Yao Qi <yao@codesourcery.com>
11229
11230 * remote.c (remote_pass_signals): Remove local 'buf' and use
11231 rs->buf.
11232 (remote_program_signals): Likewise.
11233
112342014-02-05 Yao Qi <yao@codesourcery.com>
11235
11236 * ctf.c: Include "inferior.h" and "gdbthread.h".
11237 (CTF_PID): A new macro.
11238 (ctf_open): Call inferior_appeared and add_thread_silent.
11239 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11240 (ctf_thread_alive): New function.
11241 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11242
112432014-02-05 Yao Qi <yao@codesourcery.com>
11244
11245 Revert this patch:
11246
11247 2013-05-24 Yao Qi <yao@codesourcery.com>
11248
11249 * tracepoint.c (TFILE_PID): Remove.
11250 (tfile_open): Don't add thread and inferior.
11251 (tfile_close): Don't set 'inferior_ptid'. Don't call
11252 exit_inferior_silent.
11253 (tfile_thread_alive): Remove.
11254 (init_tfile_ops): Don't set field 'to_thread_alive' of
11255 tfile_ops.
11256
112572014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11258
11259 * remote.c (remote_start_remote): Call remote_check_symbols even
11260 if only symbol-file (not file) has been given.
11261
112622014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11263
11264 * gdbarch.sh (skip_entrypoint): New callback.
11265 * gdbarch.c, gdbarch.h: Regenerate.
11266 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11267 * infrun.c (fill_in_stop_func): Likewise.
11268 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11269 (ppc_elfv2_elf_make_msymbol_special): New function.
11270 (ppc_elfv2_skip_entrypoint): Likewise.
11271 (ppc_linux_init_abi): Install them for ELFv2.
11272
112732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11274
11275 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11276 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11277 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11278 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11279 structures returned in GPRs.
11280
112812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11282
11283 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11284 offset to the stack parameter list for the ELFv2 ABI.
11285
112862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11287
11288 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11289 set_gdbarch_convert_from_func_ptr_addr and
11290 set_gdbarch_elf_make_msymbol_special for ELFv1.
11291 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11292 function descriptors on ELFv1.
11293 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11294 set up r12 at function entry.
11295
112962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11297
11298 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11299 (struct gdbarch_tdep): New member elf_abi.
11300
11301 * rs6000-tdep.c: Include "elf/ppc64.h".
11302 (rs6000_gdbarch_init): Detect ELF ABI version.
11303
113042014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11305
11306 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11307 within a register pair holding a DFP 128-bit value on little-endian.
11308 (ppc64_sysv_abi_return_value_base): Likewise.
11309 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11310 (dfp_pseudo_register_write): Likewise.
11311
113122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11313
11314 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11315 offset on little-endian when passing _Decimal32.
11316 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11317
113182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11319
11320 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11321 of the overlapped FP register within the VSX register on little-
11322 endian platforms.
11323 (efpr_pseudo_register_write): Likewise.
11324
113252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11326
11327 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11328 offset on little-endian when passing small structures.
11329
113302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11331
11332 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11333 (struct ppc64_sysv_argpos): New data structure.
11334 (ppc64_sysv_abi_push_float): Remove.
11335 (ppc64_sysv_abi_push_val): New function.
11336 (ppc64_sysv_abi_push_integer): Likewise.
11337 (ppc64_sysv_abi_push_freg): Likewise.
11338 (ppc64_sysv_abi_push_vreg): Likewise.
11339 (ppc64_sysv_abi_push_param): Likewise.
11340 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11341 (ppc64_sysv_abi_return_value_base): New function.
11342 (ppc64_sysv_abi_return_value): Refactor to use it.
11343
113442014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11345
11346 * NEWS: Document new target powerpc64le-*-linux*.
11347
113482014-02-04 Mark Kettenis <kettenis@gnu.org>
11349
11350 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11351 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11352 core dumps.
11353 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11354 register set used in ELF core dumps. Add floating-point register set.
11355
113562014-02-03 Kevin Buettner <kevinb@redhat.com>
11357
11358 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11359 dwarf2_to_gdb[] table using symbolic constants. Adjust
11360 penultimate entry from number representing the PC register
11361 to symbolic constant representing the MDR register. Add
11362 constant for the PC register to the end of the table.
11363
113642014-02-03 Mark Kettenis <kettenis@gnu.org>
11365
11366 * bsd-kvm.c: Include <sys/param.h>
11367
113682014-02-03 Mark Kettenis <kettenis@gnu.org>
11369
11370 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11371
113722014-01-31 Joel Brobecker <brobecker@adacore.com>
11373
11374 * ada-lang.h (clear_ada_sym_cache): Delete.
11375
113762014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11377
11378 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11379
113802014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11381
11382 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11383 the sigreturn register save area only if the syscall is
11384 sigreturn.
11385
113862014-01-29 Joel Brobecker <brobecker@adacore.com>
11387
11388 * valops.c (value_slice): Minor reformatting.
11389
113902014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11391
11392 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11393
113942014-01-28 Joel Brobecker <brobecker@adacore.com>
11395
11396 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11397 New static globals.
11398 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11399 (ada_ignore_descriptive_types_p): New static global.
11400 (find_parallel_type_by_descriptive_type): Return immediately
11401 if ada_ignore_descriptive_types_p is set.
11402 (_initialize_ada_language): Register new commands "maintenance
11403 set ada", "maintenance show ada", "maintenance set ada
11404 ignore-descriptive-types" and "maintenance show ada
11405 ignore-descriptive-types".
11406 * NEWS: Add entry for new "maint ada set/show
11407 ignore-descriptive-types" commands.
11408
114092014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11410
11411 * record-btrace.c (record_btrace_close): Call btrace_teardown
11412 for all threads.
11413
114142014-01-27 Joel Brobecker <brobecker@adacore.com>
11415
11416 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11417 "ui-out.h".
11418
114192014-01-27 Joel Brobecker <brobecker@adacore.com>
11420
11421 * ada-typeprint (type_is_full_subrange_of_target_type):
11422 New function.
11423 (print_range): Add parameter bounds_prefered_p. If not set,
11424 try printing range types using the name of their base type.
11425 (print_range_type): Add parameter bounds_prefered_p.
11426 Use it in call to print_range.
11427 (print_array_type, ada_print_type): Update calls to print_range
11428 and print_range_type.
11429
114302014-01-27 Joel Brobecker <brobecker@adacore.com>
11431
11432 * ada-typeprint.c (print_array_type, print_choices, print_range)
11433 (print_range_bound, print_dynamic_range_bound, print_range_type):
11434 Remove declaration.
11435
114362014-01-27 Joel Brobecker <brobecker@adacore.com>
11437
11438 * ada-typeprint.c (print_range): Add missing empty line
11439 after local declaration.
11440
114412014-01-27 Joel Brobecker <brobecker@adacore.com>
11442
11443 * ada-valprint.c (print_optional_low_bound): Get index_type's
11444 target type for as long as it is a TYPE_CODE_RANGE.
11445
114462014-01-27 Joel Brobecker <brobecker@adacore.com>
11447
11448 * procfs.c (procfs_make_note_section): Remove assertion and
11449 associated comment.
11450
114512014-01-24 Yao Qi <yao@codesourcery.com>
11452
11453 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11454 * corelow.c (get_core_siginfo): Likewise.
11455
114562014-01-24 Yao Qi <yao@codesourcery.com>
11457
11458 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11459 ULONGEST. Don't check 'len' is negative.
11460 (remote_write_bytes): Change type of 'len' to ULONGEST.
11461
114622014-01-23 Tom Tromey <tromey@redhat.com>
11463
11464 PR python/16485:
11465 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11466 Handle exception from frame.block.
11467 (FrameVars.fetch_frame_locals): Likewise.
11468
114692014-01-23 Tom Tromey <tromey@redhat.com>
11470
11471 PR python/16487:
11472 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11473 on a NULL pointer. Move "goto error" to correct place.
11474
114752014-01-23 Tom Tromey <tromey@redhat.com>
11476
11477 PR python/16491:
11478 * python/py-framefilter.c (apply_frame_filter): Call
11479 ensure_python_env after computing gdbarch.
11480
114812014-01-23 Yao Qi <yao@codesourcery.com>
11482
11483 * target.c (raw_memory_xfer_partial): Change argument type
11484 from void * to gdb_byte *.
11485 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11486
114872014-01-22 Doug Evans <dje@google.com>
11488
11489 New gdbserver option --debug-format=timestamp.
11490 * NEWS: Mention it.
11491
114922014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11493
11494 * syscalls/s390x-linux.xml: New file.
11495 * syscalls/s390-linux.xml: New file.
11496 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11497 (XML_SYSCALL_FILENAME_S390X): Likewise.
11498 (op_svc): New enum value for SVC opcode.
11499 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11500 (s390_linux_get_syscall_number): New function.
11501 (s390_gdbarch_init): Register '*get_syscall_number' and the
11502 syscall xml file name.
11503 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11504 "s390-linux.xml" and "s390x-linux.xml".
11505 * NEWS: Announce new feature.
11506
115072014-01-22 Baruch Siach <baruch@tkos.co.il>
11508
11509 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11510
115112014-01-22 Pedro Alves <palves@redhat.com>
11512
11513 * xtensa-config.c: Include defs.h.
11514
115152014-01-22 Joel Brobecker <brobecker@adacore.com>
11516
11517 * common/common-utils.h: Add "ARI:" comment beside __func__
11518 reference.
11519
115202014-01-22 Joel Brobecker <brobecker@adacore.com>
11521
11522 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11523 documentation a bit.
11524
115252014-01-21 Roland McGrath <mcgrathr@google.com>
11526
11527 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11528 * configure: Regenerate.
11529 * aclocal.m4: Regenerate.
11530 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11531 New substituted variables.
11532 (install-strip): New target.
11533 (INSTALL_SCRIPT): New substituted variable.
11534 (FLAGS_TO_PASS): Add it.
11535 (install-only): Use $(INSTALL_SCRIPT) rather than
11536 $(INSTALL_PROGRAM) for gcore.
11537
115382014-01-20 Tom Tromey <tromey@redhat.com>
11539
11540 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11541 together.
11542
115432014-01-20 Tom Tromey <tromey@redhat.com>
11544
11545 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11546 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11547 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11548 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11549 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11550 (struct cmd_list_element) <flags>: Remove.
11551 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11552 doc_allocated>: New fields.
11553 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11554 bitfields.
11555 * maint.c (maintenance_do_deprecate): Update.
11556 * top.c (execute_command): Update.
11557
115582014-01-20 Baruch Siach <baruch@tkos.co.il>
11559
11560 * xtensa-linux-nat.c: Include asm/ptrace.h.
11561
115622014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11563
11564 * Makefile.in (SFILES): Add d-support.c.
11565 (COMMON_OBS): Add d-support.o.
11566 * d-lang.h (d_parse_symbol): Add comment, now defined in
11567 d-support.c.
11568 * d-lang.c (parse_call_convention)
11569 (parse_attributes, parse_function_types)
11570 (parse_function_args, parse_type, parse_identifier)
11571 (call_convention_p, d_parse_symbol): Move functions to ...
11572 * d-support.c: ... New file.
11573
115742014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11575
11576 * d-lang.h (d_parse_symbol): Add declaration.
11577 * d-lang.c (extract_identifiers)
11578 (extract_type_info): Remove functions.
11579 (parse_call_convention, parse_attributes)
11580 (parse_function_types, parse_function_args)
11581 (parse_type, parse_identifier, call_convention_p)
11582 (d_parse_symbol): New functions.
11583 (d_demangle): Use d_parse_symbol to demangle D symbols.
11584
115852014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11586
11587 * d-lang.h (struct builtin_d_type): New data type.
11588 (builtin_d_type): Add declaration.
11589 * d-lang.c (d_language_arch_info, build_d_types)
11590 (builtin_d_type): New functions.
11591 (enum d_primitive_types): New data type.
11592 (d_language_defn): Change c_language_arch_info to
11593 d_language_arch_info.
11594 (d_type_data): New static variable.
11595 (_initialize_d_language): Initialize d_type_data.
11596
115972014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11598
11599 * d-lang.h (d_main_name): Add declaration.
11600 * d-lang.c (d_main_name): New function.
11601 * symtab.c (find_main_name): Add call to d_main_name.
11602
116032014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11604
11605 * d-lang.c (d_language_defn): Change macro_expansion_c to
11606 macro_expansion_no.
11607
116082014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11609
11610 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11611
116122014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11613
11614 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11615 gdb_exception" declaration.
11616 * remote.c (getpkt_or_notif_sane): Likewise.
11617
116182014-01-17 Doug Evans <dje@google.com>
11619
11620 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11621 function, contents of dirnames_to_char_ptr_vec_append moved here.
11622 (delim_string_to_char_ptr_vec): New function.
11623 (dirnames_to_char_ptr_vec_append): Rewrite.
11624 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11625
116262014-01-17 Doug Evans <dje@google.com>
11627
11628 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11629 and moved here ...
11630 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11631 #include "common-utils.h".
11632 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11633 * common/vec.h (VEC_ASSERT_PASS): Update.
11634 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11635 (MACH_CHECK_ERROR): Update.
11636
116372014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11638
11639 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11640 comments.
11641 * gdbarch.h: Regenerate.
11642
116432014-01-16 Tom Tromey <tromey@redhat.com>
11644
11645 * value.c (struct value) <regnum>: Move earlier.
11646
116472014-01-16 Tom Tromey <tromey@redhat.com>
11648
11649 * remote.c (extended_remote_create_inferior): Rename from
11650 extended_remote_create_inferior_1. Add "ops" argument. Remove
11651 old implementation.
11652
116532014-01-16 Pedro Alves <palves@redhat.com>
11654
11655 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11656 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11657 the backchain.
11658
116592014-01-16 Doug Evans <dje@google.com>
11660
11661 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11662
116632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11664
11665 * btrace.h (btrace_thread_flag): New.
11666 (struct btrace_thread_info) <flags>: New.
11667 * record-btrace.c (record_btrace_resume_thread)
11668 (record_btrace_find_thread_to_move, btrace_step_no_history)
11669 (btrace_step_stopped, record_btrace_start_replaying)
11670 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11671 (record_btrace_find_resume_thread): New.
11672 (record_btrace_resume, record_btrace_wait): Extend.
11673 (record_btrace_can_execute_reverse): New.
11674 (record_btrace_open): Fail in non-stop mode.
11675 (record_btrace_set_replay): Split into this, ...
11676 (record_btrace_stop_replaying): ... this, ...
11677 (record_btrace_clear_histories): ... and this.
11678 (init_record_btrace_ops): Init to_can_execute_reverse.
11679 * NEWS: Announce it.
11680
116812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11682
11683 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11684 (forward_target_decr_pc_after_break)
11685 (target_decr_pc_after_break): New.
11686 * target.c (forward_target_decr_pc_after_break)
11687 (target_decr_pc_after_break): New.
11688 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11689 instead of gdbarch_decr_pc_after_break.
11690 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11691 instead of gdbarch_decr_pc_after_break.
11692 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11693 instead of gdbarch_decr_pc_after_break.
11694 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11695 instead of gdbarch_decr_pc_after_break.
11696 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11697 instead of gdbarch_decr_pc_after_break.
11698 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11699 instead of gdbarch_decr_pc_after_break.
11700
117012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11702
11703 * btrace.c: Include regcache.h.
11704 (btrace_add_pc): New.
11705 (btrace_enable): Call btrace_add_pc.
11706 (btrace_is_empty): New.
11707 * btrace.h (btrace_is_empty): New.
11708 * record-btrace.c (require_btrace, record_btrace_info): Call
11709 btrace_is_empty.
11710
117112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11712
11713 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11714 Support delta reads.
11715 (linux_disable_btrace): Change return type.
11716 * common/linux-btrace.h (linux_read_btrace): Change parameters
11717 and return type to allow error reporting. Update users.
11718 (linux_disable_btrace): Change return type. Update users.
11719 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11720 New.
11721 (btrace_error): New.
11722 (btrace_block) <begin>: Comment on BEGIN == 0.
11723 * btrace.c (btrace_compute_ftrace): Start from the end of
11724 the current trace.
11725 (btrace_stitch_trace, btrace_clear_history): New.
11726 (btrace_fetch): Read delta trace, return if replaying.
11727 (btrace_clear): Move clear history code to btrace_clear_history.
11728 (parse_xml_btrace): Throw an error if parsing failed.
11729 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11730 and return type to allow error reporting.
11731 (target_read_btrace): Change parameters and return type to allow
11732 error reporting.
11733 * target.c (target_read_btrace): Update.
11734 * remote.c (remote_read_btrace): Support delta reads. Pass
11735 errors on.
11736 * NEWS: Announce it.
11737
117382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11739
11740 * record.h (record_btrace_frame_unwind)
11741 (record_btrace_tailcall_frame_unwind): New declarations.
11742 * dwarf2-frame: Include record.h
11743 (dwarf2_frame_cfa): Throw an error for btrace frames.
11744 * record-btrace.c: Include hashtab.h.
11745 (btrace_get_bfun_name): New.
11746 (btrace_call_history): Call btrace_get_bfun_name.
11747 (struct btrace_frame_cache): New.
11748 (bfcache): New.
11749 (bfcache_hash, bfcache_eq, bfcache_new): New.
11750 (btrace_get_frame_function): New.
11751 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11752 (record_btrace_frame_this_id): Compute own id.
11753 (record_btrace_frame_prev_register): Provide PC, throw_error
11754 for all other registers.
11755 (record_btrace_frame_sniffer): Detect btrace frames.
11756 (record_btrace_tailcall_frame_sniffer): New.
11757 (record_btrace_frame_dealloc_cache): New.
11758 (record_btrace_frame_unwind): Add new functions.
11759 (record_btrace_tailcall_frame_unwind): New.
11760 (_initialize_record_btrace): Allocate cache.
11761 * btrace.c (btrace_clear): Call reinit_frame_cache.
11762 * NEWS: Announce it.
11763
117642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11765
11766 * record-btrace.c (record_btrace_set_replay)
11767 (record_btrace_goto_begin, record_btrace_goto_end)
11768 (record_btrace_goto): New.
11769 (init_record_btrace_ops): Initialize them.
11770 * NEWS: Announce it.
11771
117722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11773
11774 * record-btrace.c (record_btrace_find_new_threads)
11775 (record_btrace_thread_alive): New.
11776 (init_record_btrace_ops): Initialize to_find_new_threads and
11777 to_thread_alive.
11778
117792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11780
11781 * record-btrace.c (record_btrace_resume): New.
11782 (record_btrace_wait): New.
11783 (init_record_btrace_ops): Initialize to_wait and to_resume.
11784
117852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11786
11787 * record-btrace.c (record_btrace_xfer_partial)
11788 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11789 (record_btrace_allow_memory_access): New.
11790 (init_record_btrace_ops): Initialize new methods.
11791 * target.c (raw_memory_xfer_partial): Bail out if target reports
11792 that this memory is not available.
11793
117942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11795
11796 * target.h (target_ops) <to_insert_breakpoint>
11797 <to_remove_breakpoint>: Add target_ops parameter.
11798 (forward_target_insert_breakpoint): New.
11799 (forward_target_remove_breakpoint): New.
11800 (memory_remove_breakpoint, memory_insert_breakpoint):
11801 Add target_ops parameter.
11802 * target.c (target_insert_breakpoint): Split into this and ...
11803 (forward_target_insert_breakpoint): ... this.
11804 (target_remove_breakpoint): Split into this and ...
11805 (forward_target_remove_breakpoint): ... this.
11806 (debug_to_insert_breakpoint): Add target_ops parameter.
11807 Call forward_target_insert_breakpoint.
11808 (debug_to_remove_breakpoint): Add target_ops parameter.
11809 Call forward_target_remove_breakpoint.
11810 (update_current_target): Do not inherit or default to_insert_breakpoint
11811 and to_remove_breakpoint.
11812 * corelow.c (ignore): Add target_ops parameter.
11813 * exec.c (ignore): Add target_ops parameter.
11814 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11815 Add target_ops parameter.
11816 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11817 Add target_ops parameter.
11818 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11819 Add target_ops parameter.
11820 * record-full.c (record_full_beneath_to_insert_breakpoint)
11821 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11822 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11823 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11824 (record_full_core_remove_breakpoint): Add target_ops parameter.
11825 Update users.
11826 (record_full_beneath_to_insert_breakpoint_ops)
11827 (record_full_beneath_to_remove_breakpoint_ops)
11828 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11829 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11830 tmp_to_remove_breakpoint_ops,
11831 record_full_beneath_to_insert_breakpoint_ops, and
11832 record_full_beneath_to_remove_breakpoint_ops.
11833 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11834 (m32r_remove_breakpoint): Add target_ops parameter.
11835 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11836 Add target_ops parameter.
11837 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11838 Add target_ops parameter.
11839
118402014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11841 Markus Metzger <markus.t.metzger@intel.com>
11842
11843 * record-btrace.c: Include frame-unwind.h.
11844 (record_btrace_frame_unwind_stop_reason)
11845 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11846 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11847 New.
11848 (init_record_btrace_ops): Install it.
11849
118502014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11851
11852 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11853 get_prev_frame_1.
11854
118552014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11856
11857 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11858 earlier.
11859
118602014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11861
11862 * frame-unwind.c: Include target.h.
11863 (frame_unwind_try_unwinder): New function with code from ...
11864 (frame_unwind_find_by_frame): ... here. New variable
11865 unwinder_from_target, call also target_get_unwinder)
11866 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11867 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11868 * target.h (struct target_ops): New fields to_get_unwinder and
11869 to_get_tailcall_unwinder.
11870 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11871
118722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11873
11874 * record-btrace.c (record_btrace_fetch_registers)
11875 (record_btrace_store_registers)
11876 (record_btrace_to_prepare_to_store): New.
11877 (init_record_btrace_ops): Add the above.
11878
118792014-01-16 Tom Tromey <tromey@redhat.com>
11880
11881 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11882 * target.h (struct target_ops) <to_prepare_to_store>: Add
11883 argument.
11884 (target_prepare_to_store): Add argument.
11885 * target.c (debug_to_prepare_to_store): Add argument.
11886 (update_current_target): Update.
11887 * remote.c (remote_prepare_to_store): Add 'self' argument.
11888 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11889 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11890 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11891 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11892 argument.
11893 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11894 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11895 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11896 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11897 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11898
118992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11900
11901 * btrace.h (replay) <replay>: New.
11902 (btrace_is_replaying): New.
11903 * btrace.c (btrace_clear): Free replay iterator.
11904 (btrace_is_replaying): New.
11905 * record-btrace.c (record_btrace_is_replaying): New.
11906 (record_btrace_info): Print insn number if replaying.
11907 (record_btrace_insn_history): Start at replay position.
11908 (record_btrace_call_history): Start at replay position.
11909 (init_record_btrace_ops): Init to_record_is_replaying.
11910
119112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11912
11913 * record-btrace.c (record_btrace_insn_history_range): Include
11914 end.
11915 (record_btrace_insn_history_from): Adjust range.
11916 (record_btrace_call_history_range): Include
11917 end.
11918 (record_btrace_call_history_from): Adjust range.
11919 * NEWS: Announce changes.
11920
119212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11922
11923 * record.h (enum record_print_flag)
11924 <record_print_indent_calls>: New.
11925 * record.c (get_call_history_modifiers): Recognize /c modifier.
11926 (_initialize_record): Document /c modifier.
11927 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11928 Reorder fields. Optionally indent the function name. Update
11929 all users.
11930 * NEWS: Announce changes.
11931
119322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11933
11934 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11935
119362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11937
11938 * btrace.c (ftrace_new_function): Start counting at one.
11939 * record-btrace.c (record_btrace_info): Adjust number of calls
11940 and insns.
11941 * NEWS: Announce it.
11942
119432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11944
11945 * record-btrace.c (btrace_call_history_insn_range): Print
11946 insn range as [begin, end].
11947
119482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11949
11950 * btrace.h (struct btrace_func_link): New.
11951 (enum btrace_function_flag): New.
11952 (struct btrace_inst): Rename to ...
11953 (struct btrace_insn): ...this. Update all users.
11954 (struct btrace_func) <ibegin, iend>: Remove.
11955 (struct btrace_func_link): New.
11956 (struct btrace_func): Rename to ...
11957 (struct btrace_function): ...this. Update all users.
11958 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11959 (number, level, flags>: New.
11960 (struct btrace_insn_iterator): Rename to ...
11961 (struct btrace_insn_history): ...this.
11962 Update all users.
11963 (struct btrace_insn_iterator, btrace_call_iterator): New.
11964 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11965 (struct btrace_target_info) <begin, end, level>
11966 <insn_history, call_history>: New.
11967 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11968 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11969 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11970 (btrace_call_number, btrace_call_begin, btrace_call_end)
11971 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11972 (btrace_find_function_by_number, btrace_set_insn_history)
11973 (btrace_set_call_history): New.
11974 * btrace.c (btrace_init_insn_iterator)
11975 (btrace_init_func_iterator, compute_itrace): Remove.
11976 (ftrace_print_function_name, ftrace_print_filename)
11977 (ftrace_skip_file): Change
11978 parameter to const.
11979 (ftrace_init_func): Remove.
11980 (ftrace_debug): Use new btrace_function fields.
11981 (ftrace_function_switched): Also consider gaining and
11982 losing symbol information).
11983 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11984 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11985 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11986 New.
11987 (ftrace_new_function): Move. Remove debug print.
11988 (ftrace_update_lines, ftrace_update_insns): New.
11989 (ftrace_update_function): Check for call, ret, and jump.
11990 (compute_ftrace): Renamed to ...
11991 (btrace_compute_ftrace): ...this. Rewritten to compute call
11992 stack.
11993 (btrace_fetch, btrace_clear): Updated.
11994 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11995 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11996 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11997 (btrace_call_number, btrace_call_begin, btrace_call_end)
11998 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11999 (btrace_find_function_by_number, btrace_set_insn_history)
12000 (btrace_set_call_history): New.
12001 * record-btrace.c (require_btrace): Use new btrace thread
12002 info fields.
12003 (record_btrace_info, btrace_insn_history)
12004 (record_btrace_insn_history, record_btrace_insn_history_range):
12005 Use new btrace thread info fields and new iterator.
12006 (btrace_func_history_src_line): Rename to ...
12007 (btrace_call_history_src_line): ...this. Use new btrace
12008 thread info fields.
12009 (btrace_func_history): Rename to ...
12010 (btrace_call_history): ...this. Use new btrace thread info
12011 fields and new iterator.
12012 (record_btrace_call_history, record_btrace_call_history_range):
12013 Use new btrace thread info fields and new iterator.
12014
120152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12016
12017 * frame.h (frame_id_build_unavailable_stack_special): New.
12018 * frame.c (frame_id_build_unavailable_stack_special): New.
12019
120202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12021
12022 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12023 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12024 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12025 to gdbarch.
12026 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12027 (i386_insn_is_jump, i386_jmp_p): New.
12028 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12029 insn_is_jump to gdbarch.
12030 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12031 * gdbarch.h: Regenerated.
12032 * gdbarch.c: Regenerated.
12033 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12034 (default_insn_is_jump): New.
12035 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12036 (default_insn_is_jump): New.
12037
120382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12039
12040 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12041 Change to ...
12042 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12043 (btrace_read_type) <btrace_read_new>: Change to ...
12044 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12045
120462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12047
12048 * common/linux-btrace.c (linux_read_btrace): Free trace from
12049 previous iteration.
12050
120512014-01-15 Doug Evans <dje@google.com>
12052
12053 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12054 uint32_t.
12055
120562014-01-15 Tom Tromey <tromey@redhat.com>
12057
12058 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12059 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12060 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12061 (set_objfile_main_name): New function.
12062 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12063 language_of_main>: New fields.
12064 (set_objfile_main_name): Declare.
12065 * symtab.c (find_main_name): Loop over objfiles to find the main
12066 name and language.
12067 (set_main_name): Now static.
12068 (get_main_info): Add comment.
12069 * symtab.h (set_main_name): Don't declare.
12070
120712014-01-15 Tom Tromey <tromey@redhat.com>
12072
12073 * symtab.c (main_progspace_key): New global.
12074 (struct main_info): New.
12075 (name_of_main, language_of_main): Remove.
12076 (get_main_info, main_info_cleanup): New function.
12077 (set_main_name, main_name, main_language): Use get_main_info.
12078 (_initialize_symtab): Initialize main_progspace_key.
12079
120802014-01-15 Tom Tromey <tromey@redhat.com>
12081
12082 * dbxread.c (process_one_symbol): Update.
12083 * dwarf2read.c (read_partial_die): Update.
12084 * symfile.c (set_initial_language): Call main_language.
12085 * symtab.c (language_of_main): Now static.
12086 (set_main_name): Add 'lang' parameter.
12087 (find_main_name): Update.
12088 (main_language): New function.
12089 (symtab_observer_executable_changed): Update.
12090 * symtab.h (set_main_name): Update.
12091 (language_of_main): Remove.
12092 (main_language): Declare.
12093
120942014-01-15 Tom Tromey <tromey@redhat.com>
12095
12096 * symfile.c (init_entry_point_info): Use new "initialized" field.
12097 Update.
12098 * objfiles.h (struct entry_point) <initialized>: New field.
12099 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12100 (struct objfile) <ei>: ...here. Remove.
12101 * objfiles.c (entry_point_address_query): Update.
12102
121032014-01-15 Tom Tromey <tromey@redhat.com>
12104
12105 * objfiles.c (entry_point_address_query): Relocate entry point
12106 address.
12107 (objfile_relocate1): Do not relocate entry point address.
12108 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12109 <the_bfd_section_index>: New field.
12110 * symfile.c (init_entry_point_info): Find the entry point's
12111 section.
12112
121132014-01-15 Tom Tromey <tromey@redhat.com>
12114
12115 * solib-frv.c (enable_break): Use entry_point_address_query.
12116
121172014-01-15 Omair Javaid <omair.javaid@linaro.org>
12118
12119 * NEWS: Add note on improved process record-replay on
12120 arm*-linux* targets.
12121
121222014-01-15 Omair Javaid <omair.javaid@linaro.org>
12123
12124 * arm-tdep.c (enum arm_record_result): New enum.
12125 (arm_record_unsupported_insn): New function.
12126 (arm_record_coproc_data_proc): Removed.
12127 (thumb2_record_ld_st_multiple): New function.
12128 (thumb2_record_ld_st_dual_ex_tbb): New function.
12129 (thumb2_record_data_proc_sreg_mimm): New function.
12130 (thumb2_record_ps_dest_generic): New function.
12131 (thumb2_record_branch_misc_cntrl): New function.
12132 (thumb2_record_str_single_data): New function.
12133 (thumb2_record_ld_mem_hints): New function.
12134 (thumb2_record_ld_word): New function.
12135 (thumb2_record_lmul_lmla_div): New function.
12136 (thumb2_record_decode_insn_handler): New function.
12137 (decode_insn): Add thumb32 instruction handlers.
12138
121392014-01-15 Omair Javaid <omair.javaid@linaro.org>
12140
12141 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12142 (struct arm_linux_record_tdep): Declare.
12143 (arm_canonicalize_syscall): New function.
12144 (arm_all_but_pc_registers_record): New function.
12145 (arm_linux_syscall_record): New function.
12146 (arm_linux_init_abi): Add syscall recording constructs.
12147 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12148 decoding. (arm_record_coproc_data_proc): Update arm syscall
12149 decoding.
12150 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12151 <arm_syscall_record>: New field.
12152 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12153 gdb_target_obs.
12154
121552014-01-15 Omair Javaid <omair.javaid@linaro.org>
12156
12157 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12158 register for push instruction recording.
12159
121602014-01-15 Omair Javaid <omair.javaid@linaro.org>
12161
12162 * arm-tdep.c (thumb_record_misc): Update to correct logical
12163 error while recording ldm, ldmia and pop instructions.
12164
121652014-01-15 Omair Javaid <omair.javaid@linaro.org>
12166
12167 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12168
121692014-01-15 Pedro Alves <palves@redhat.com>
12170
12171 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12172 (go32_resume, go32_fetch_registers, store_register)
12173 (go32_store_registers, go32_prepare_to_store)
12174 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12175 (go32_create_inferior, go32_can_run, go32_terminal_init)
12176 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12177 declarations.
12178
121792014-01-15 Tom Tromey <tromey@redhat.com>
12180
12181 * target.h (async_callback_ftype): New typedef.
12182 (struct target_ops) <to_async>: Use it.
12183
121842014-01-15 Joel Brobecker <brobecker@adacore.com>
12185
12186 * python/py-value.c (get_field_type): Remove unnecessary curly
12187 braces for single-statement if block.
12188
121892014-01-15 Joel Brobecker <brobecker@adacore.com>
12190
12191 * python/py-type.c (convert_field): Add missing empty line
12192 after declarations.
12193
121942014-01-14 Doug Evans <dje@google.com>
12195
12196 * symfile.h (expand_symtabs_matching): Renamed from
12197 expand_partial_symbol_names. Update prototype.
12198 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12199 * symfile.c (expand_symtabs_matching): Renamed from
12200 expand_partial_symbol_names. New args file_matcher, kind.
12201 Rename arg fun to symbol_matcher.
12202 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12203 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12204 ada_expand_partial_symbol_name.
12205 (ada_make_symbol_completion_list): Update to call
12206 expand_symtabs_matching.
12207 (ada_add_global_exceptions): Call expand_symtabs_matching.
12208 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12209 call map_symbol_filenames.
12210 * symtab.c (sources_info): Update to call map_symbol_filenames.
12211 (search_symbols): Call expand_symtabs_matching.
12212 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12213 (default_make_symbol_completion_list_break_on): Update to call
12214 expand_symtabs_matching.
12215 (make_source_files_completion_list): Update to call
12216 map_symbol_filenames.
12217
122182014-01-14 Doug Evans <dje@google.com>
12219
12220 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12221 (expand_symtabs_symbol_matcher_ftype): New typedef.
12222 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12223 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12224 * symfile.c (expand_partial_symbol_names): Update to use
12225 expand_symtabs_symbol_matcher_ftype.
12226 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12227 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12228 Arg name_matcher renamed to symbol_matcher.
12229 * psymtab.c (recursively_search_psymtabs): Update to use
12230 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12231 sym_matcher.
12232 (expand_symtabs_matching_via_partial): Update to use
12233 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12234 Arg name_matcher renamed to symbol_matcher.
12235
122362014-01-14 Doug Evans <dje@google.com>
12237
12238 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12239 (map_partial_symbol_filenames): Ditto.
12240 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12241 (map_partial_symbol_filenames): Ditto.
12242 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12243 (map_partial_symbol_filenames): Ditto.
12244 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12245 (map_partial_symbol_filenames): Ditto.
12246 * symtab.c: Delete #include "psymtab.h".
12247
122482014-01-14 Pedro Alves <palves@redhat.com>
12249 Tom Tromey <tromey@redhat.com>
12250
12251 * infrun.c (use_displaced_stepping): Use find_record_target
12252 instead of RECORD_IS_USED.
12253 (adjust_pc_after_break): Use record_full_is_used instead of
12254 RECORD_IS_USED.
12255 * record-btrace.c (record_btrace_open): Call record_preopen
12256 instead of checking RECORD_IS_USED.
12257 * record-full.c (record_full_shortname)
12258 (record_full_core_shortname): New globals.
12259 (record_full_is_used): New function.
12260 (find_full_open): Call record_preopen instead of checking
12261 RECORD_IS_USED.
12262 (init_record_full_ops): Set the target's shortname to
12263 record_full_shortname.
12264 (init_record_full_core_ops): Set the target's shortname to
12265 record_full_core_shortname.
12266 * record-full.h (record_full_is_used): Declare.
12267 * record.c (find_record_target): Make extern.
12268 (record_preopen): New function.
12269 * record.h (RECORD_IS_USED): Delete macro.
12270 (find_record_target, record_preopen): Declare functions.
12271
122722014-01-14 Yao Qi <yao@codesourcery.com>
12273
12274 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12275 'len''s type to ULONGEST.
12276 (core_xfer_shared_libraries_aix): Likewise.
12277 * gdbarch.c, gdbarch.h: Regenerated.
12278 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12279 Change type of 'len' to ULONGEST.
12280 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12281 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12282
122832014-01-14 Yao Qi <yao@codesourcery.com>
12284
12285 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12286 type of 'len' to ULONGEST.
12287 (linux_xfer_osdata_processgroups): Likewise.
12288 (linux_xfer_osdata_threads): Likewise.
12289 (linux_xfer_osdata_fds): Likewise.
12290 (linux_xfer_osdata_isockets): Likewise.
12291 (linux_xfer_osdata_shm): Likewise.
12292 (linux_xfer_osdata_sem): Likewise.
12293 (linux_xfer_osdata_msg): Likewise.
12294 (linux_common_xfer_osdata): Likewise.
12295 (struct osdata_type) <getter>: Likewise.
12296 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12297 the declaration.
12298
122992014-01-14 Yao Qi <yao@codesourcery.com>
12300
12301 * target.h (target_xfer_partial_ftype): Update.
12302 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12303 ULONGEST.
12304 * aix-thread.c (aix_thread_xfer_partial): Change type of
12305 argument 'len' to ULONGEST.
12306 * auxv.c (procfs_xfer_auxv): Likewise.
12307 (ld_so_xfer_auxv): Likewise.
12308 (memory_xfer_auxv): Likewise.
12309 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12310 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12311 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12312 * corelow.c (core_xfer_partial): Likewise.
12313 * ctf.c (ctf_xfer_partial): Likewise.
12314 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12315 '%u'.
12316 (darwin_read_dyld_info): Likewise.
12317 (darwin_xfer_partial): Likewise.
12318 * exec.c (section_table_xfer_memory_partial): Likewise.
12319 (exec_xfer_partial): Likewise.
12320 * exec.h (section_table_xfer_memory_partial): Update
12321 declaration.
12322 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12323 instead of plongest.
12324 (gnu_xfer_partial): Likewise.
12325 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12326 (ia64_hpux_xfer_solib_got): Likewise.
12327 (ia64_hpux_xfer_partial): Likewise.
12328 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12329 * inf-ptrace.c (inf_ptrace_xfer_partial):
12330 * inf-ttrace.c (inf_ttrace_xfer_partial):
12331 * linux-nat.c (linux_xfer_siginfo): Likewise.
12332 (linux_nat_xfer_partial): Likewise.
12333 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12334 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12335 * monitor.c (monitor_xfer_memory): Likewise.
12336 (monitor_xfer_partial): Likewise.
12337 * procfs.c (procfs_xfer_partial): Likewise.
12338 * record-full.c (record_full_xfer_partial): Likewise.
12339 (record_full_core_xfer_partial): Likewise.
12340 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12341 instead of plongest.
12342 (gdbsim_xfer_partial): Likewise.
12343 * remote.c (remote_xfer_partial): Likewise.
12344 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12345 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12346 declaration.
12347 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12348 (rs6000_xfer_shared_libraries): Likewise.
12349 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12350 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12351 (sparc_xfer_partial): Likewise.
12352 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12353 (spu_xfer_partial): Likewise.
12354 * spu-multiarch.c (spu_xfer_partial): Likewise.
12355 * target.c (target_read_live_memory): Likewise.
12356 (memory_xfer_live_readonly_partial): Likewise.
12357 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12358 (target_xfer_partial, default_xfer_partial): Likewise.
12359 (current_xfer_partial): Likewise.
12360 * tracepoint.c (tfile_xfer_partial): Likewise.
12361 * windows-nat.c (windows_xfer_memory): Likewise. Call
12362 pulongest instead of plongest.
12363 (windows_xfer_partial): Likewise.
12364 (windows_xfer_shared_libraries): Likewise.
12365
123662014-01-14 Yao Qi <yao@codesourcery.com>
12367
12368 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12369 target_xfer_partial_ftype.
12370
123712014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12372
12373 PR python/15464
12374 PR python/16113
12375 * valops.c (value_struct_elt_bitpos): New function
12376 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12377 object to 'None' if the field name is an empty string ("").
12378 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12379 attribute to look for a field when 'name' is 'None'.
12380 (get_field_type): New function
12381
123822014-01-13 Doug Evans <dje@google.com>
12383
12384 PR symtab/16426
12385 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12386 (try_open_dwop_file): Ditto.
12387 * gdb_bfd.c: #include "vec.h".
12388 (bfdp): New typedef.
12389 (struct gdb_bfd_data): New member included_bfds.
12390 (gdb_bfd_unref): Unref all included bfds.
12391 (gdb_bfd_record_inclusion): New function.
12392 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12393
123942014-01-13 Tom Tromey <tromey@redhat.com>
12395
12396 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12397
123982014-01-13 Tom Tromey <tromey@redhat.com>
12399
12400 * defs.h (use_windows): Remove.
12401 * gdb.c (main): Update.
12402 * main.c (captured_main, gdb_main): Update.
12403 * main.h (struct captured_main_args) <use_windows>: Remove.
12404 * top.c (use_windows): Remove.
12405
124062014-01-13 Tom Tromey <tromey@redhat.com>
12407
12408 * defs.h (deprecated_flush_hook): Remove.
12409
124102014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12411
12412 PR threads/16216
12413 * linux-thread-db.c (try_thread_db_load): Add parameter
12414 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12415 (try_thread_db_load_from_pdir_1): Move it there from here.
12416 (try_thread_db_load_from_sdir): Update caller.
12417 (try_thread_db_load_from_dir): Move it there from here.
12418
124192014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12420
12421 * regformats/regdat.sh: Always rewrite the register file.
12422
124232014-01-13 Pedro Alves <palves@redhat.com>
12424
12425 * Makefile.in (CHECK_HEADERS): New variable.
12426 (check-headers:): New rule.
12427
124282014-01-13 Tom Tromey <tromey@redhat.com>
12429
12430 * cli/cli-setshow.c (do_set_command): Update.
12431 * defs.h (deprecated_set_hook): Remove.
12432 * top.c (deprecated_set_hook): Remove.
12433
124342014-01-13 Pedro Alves <palves@redhat.com>
12435
12436 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12437 the tracepoint if the PC is a pseudo-register.
12438
124392014-01-13 Tom Tromey <tromey@redhat.com>
12440
12441 * defs.h (XCALLOC): Remove.
12442 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12443 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12444 * dwarf2loc.c (allocate_piece_closure): Likewise.
12445 * elfread.c (elf_symfile_segments): Likewise.
12446 (elf_symfile_segments): Likewise.
12447 * gdbtypes.c (copy_type_recursive): Likewise.
12448 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12449 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12450 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12451 XCALLOC.
12452 * mt-tdep.c (mt_gdbarch_init): Likewise.
12453 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12454 XCALLOC.
12455 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12456 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12457 * registry.c (registry_alloc_data): Likewise.
12458 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12459 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12460 * serial.c (serial_fdopen_ops): Likewise.
12461 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12462 XCALLOC.
12463 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12464 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12465 not XCALLOC.
12466
124672014-01-13 Tom Tromey <tromey@redhat.com>
12468
12469 * defs.h (XMALLOC): Remove.
12470 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12471 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12472 * cli-out.c (struct ui_out *): Likewise.
12473 * cli/cli-dump.c (add_dump_command): Likewise.
12474 (add_dump_command): Likewise.
12475 * complaints.c (get_complaints): Likewise.
12476 (find_complaint): Likewise.
12477 * dwarf2-frame.c (execute_cfa_program): Likewise.
12478 * dwarf2read.c (abbrev_table_read_table): Likewise.
12479 * gdbarch.sh: Likewise.
12480 * gdbarch.c: Rebuild.
12481 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12482 * interps.c (interp_new): Likewise.
12483 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12484 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12485 * mi/mi-console.c (mi_console_file_new): Likewise.
12486 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12487 * mi/mi-out.c (mi_out_new): Likewise.
12488 * mi/mi-parse.c (mi_parse): Likewise.
12489 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12490 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12491 * observer.c (xalloc_observer_list_node): Likewise.
12492 * regcache.c (regcache_xmalloc_1): Likewise.
12493 * reggroups.c (reggroup_new): Likewise.
12494 (_initialize_reggroup): Likewise.
12495 * registry.c (register_data_with_cleanup): Likewise.
12496 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12497 * ser-base.c (serial_ttystate): Likewise.
12498 * ser-mingw.c (make_pipe_state): Likewise.
12499 * ser-pipe.c (pipe_open): Likewise.
12500 * serial.c (serial_open): Likewise.
12501 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12502 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12503 (tui_alloc_win_info): Likewise.
12504 (tui_add_content_elements): Likewise.
12505 * tui/tui-file.c (tui_file_new): Likewise.
12506 * tui/tui-out.c (tui_out_new): Likewise.
12507 * ui-file.c (mem_file_new): Likewise.
12508 * ui-out.c (push_level): Likewise.
12509 (make_cleanup_ui_out_end): Likewise.
12510 (append_header_to_list): Likewise.
12511 (ui_out_new): Likewise.
12512 * user-regs.c (user_reg_add_builtin): Likewise.
12513
125142014-01-13 Tom Tromey <tromey@redhat.com>
12515
12516 * defs.h (XZALLOC): Remove.
12517 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12518 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12519 (get_ada_tasks_inferior_data): Likewise.
12520 * auto-load.c (get_auto_load_pspace_data): Likewise.
12521 * auxv.c (get_auxv_inferior_data): Likewise.
12522 * bfd-target.c (target_bfd_reopen): Likewise.
12523 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12524 (deprecated_insert_raw_breakpoint): Likewise.
12525 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12526 * corelow.c (core_open): Likewise.
12527 * darwin-nat.c (darwin_check_new_threads): Likewise.
12528 (darwin_attach_pid): Likewise.
12529 * dummy-frame.c (dummy_frame_push): Likewise.
12530 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12531 * dwarf2loc.c (allocate_piece_closure): Likewise.
12532 * elfread.c (elf_symfile_segments): Likewise.
12533 * eval.c (ptrmath_type_p): Likewise.
12534 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12535 * gdbtypes.c (alloc_type_arch): Likewise.
12536 (alloc_type_instance): Likewise.
12537 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12538 * inf-child.c (inf_child_can_use_agent): Likewise.
12539 * inflow.c (get_inflow_inferior_data): Likewise.
12540 * infrun.c (save_infcall_suspend_state): Likewise.
12541 * jit.c (jit_reader_load): Likewise.
12542 (get_jit_objfile_data): Likewise.
12543 (get_jit_program_space_data): Likewise.
12544 (jit_object_open_impl): Likewise.
12545 (jit_symtab_open_impl): Likewise.
12546 (jit_block_open_impl): Likewise.
12547 (jit_frame_sniffer): Likewise.
12548 * linux-fork.c (add_fork): Likewise.
12549 * maint.c (make_command_stats_cleanup): Likewise.
12550 * objfiles.c (get_objfile_pspace_data): Likewise.
12551 * opencl-lang.c (struct lval_closure): Likewise.
12552 * osdata.c (osdata_start_osdata): Likewise.
12553 * progspace.c (new_address_space): Likewise.
12554 (add_program_space): Likewise.
12555 * remote-sim.c (get_sim_inferior_data): Likewise.
12556 * sh-tdep.c (sh_gdbarch_init): Likewise.
12557 * skip.c (Ignore): Likewise.
12558 (skip_delete_command): Likewise.
12559 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12560 (library_list_start_library): Likewise.
12561 (solib_aix_current_sos): Likewise.
12562 * solib-darwin.c (get_darwin_info): Likewise.
12563 (darwin_current_sos): Likewise.
12564 * solib-dsbt.c (get_dsbt_info): Likewise.
12565 * solib-ia64-hpux.c (new_so_list): Likewise.
12566 (ia64_hpux_get_solib_linkage_addr): Likewise.
12567 * solib-spu.c (append_ocl_sos): Likewise.
12568 (spu_current_sos): Likewise.
12569 * solib-svr4.c (get_svr4_info): Likewise.
12570 (svr4_keep_data_in_core): Likewise.
12571 (library_list_start_library): Likewise.
12572 (svr4_default_sos): Likewise.
12573 (svr4_read_so_list): Likewise.
12574 * solib-target.c (library_list_start_library): Likewise.
12575 (solib_target_current_sos): Likewise.
12576 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12577 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12578 * symfile.c (default_symfile_segments): Likewise.
12579 * target-descriptions.c (tdesc_data_init): Likewise.
12580 (tdesc_create_reg): Likewise.
12581 (struct tdesc_type *): Likewise.
12582 (tdesc_create_vector): Likewise.
12583 (tdesc_set_struct_size): Likewise.
12584 (struct tdesc_type *): Likewise.
12585 (tdesc_free_feature): Likewise.
12586 (tdesc_create_feature): Likewise.
12587 * windows-nat.c (windows_add_thread): Likewise.
12588 (windows_make_so): Likewise.
12589 * xml-support.c (gdb_xml_body_text): Likewise.
12590 (gdb_xml_create_parser_and_cleanup): Likewise.
12591 (xml_process_xincludes): Likewise.
12592 * xml-syscall.c (allocate_syscalls_info): Likewise.
12593 (syscall_create_syscall_desc): Likewise.
12594
125952014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12596
12597 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12598 function, with code from i386_stap_parse_special_token.
12599 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12600 (i386_stap_parse_special_token): Move code to the two functions
12601 above; simplify it.
12602
126032014-01-09 Pedro Alves <palves@redhat.com>
12604 Hui Zhu <hui@codesourcery.com>
12605
12606 PR gdb/16101
12607 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12608 bp_err_string. Don't mark the location shlib_disabled if the
12609 error thrown wasn't a generic or memory error. Catch errors
12610 thrown while inserting breakpoints in overlayed code. Output
12611 error message of software breakpoints.
12612 * remote.c (remote_insert_breakpoint): If this breakpoint has
12613 target-side commands but this stub doesn't support Z0 packets,
12614 throw NOT_SUPPORTED_ERROR error.
12615 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12616 * target.h (target_insert_breakpoint): Extend comment.
12617 (target_insert_hw_breakpoint): Add comment.
12618
126192014-01-08 Pedro Alves <palves@redhat.com>
12620
12621 * remote.c (remote_add_thread): Add threads silently if starting
12622 up.
12623 (remote_notice_new_inferior): If in all-stop, and starting up,
12624 don't call notice_new_inferior.
12625 (get_current_thread): New function, factored out from ...
12626 (add_current_inferior_and_thread): ... this. Adjust.
12627 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12628 found any thread, then select the remote's current thread as GDB's
12629 current thread too.
12630
126312014-01-08 Joel Brobecker <brobecker@adacore.com>
12632
12633 * NEWS: Create a new section for the next release branch.
12634 Rename the section of the current branch, now that it has
12635 been cut.
12636
126372014-01-08 Joel Brobecker <brobecker@adacore.com>
12638
12639 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12640 * version.in: Bump version to 7.7.50.DATE-cvs.
12641
126422014-01-08 Yao Qi <yao@codesourcery.com>
12643
12644 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12645 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12646 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12647
126482014-01-08 Yao Qi <yao@codesourcery.com>
12649
12650 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12651 return value of bfd_get_filename to symbol_file_add_from_bfd.
12652
126532014-01-08 Pierre Muller <muller@sourceware.org>
12654
12655 Fix PR16201.
12656 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12657 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12658 to prim_record_mininal_symbol_and_info.
12659 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12660 in call to prim_record_minimal_symbol_and_info.
12661 (read_pe_exported_syms): Set index field of section_data.
12662
126632014-01-07 Andrew Pinski <apinski@cavium.com>
12664
12665 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12666 * features/aarch64.c: Regenerate.
12667
126682014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12669
12670 * target.c (return_null): Define.
12671 (update_current_target): Use it instead of return_zero for
12672 functions that return a pointer.
12673
126742014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12675
12676 * source.c (add_path): Fix check for duplicated paths in the previously
12677 included paths.
12678
126792014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12680
12681 * ada-lang.c: Remove duplicated include statements.
12682 * alphabsd-nat.c: Ditto.
12683 * amd64-darwin-tdep.c: Ditto.
12684 * amd64fbsd-nat.c: Ditto.
12685 * auto-load.c: Ditto.
12686 * ax-gdb.c: Ditto.
12687 * breakpoint.c: Ditto.
12688 * dbxread.c: Ditto.
12689 * fork-child.c: Ditto.
12690 * gdb_usleep.c: Ditto.
12691 * i386-darwin-tdep.c: Ditto.
12692 * i386fbsd-nat.c: Ditto.
12693 * infcmd.c: Ditto.
12694 * inferior.c: Ditto.
12695 * jv-lang.c: Ditto.
12696 * linux-nat.c: Ditto.
12697 * linux-tdep.c: Ditto.
12698 * m68kbsd-nat.c: Ditto.
12699 * m68klinux-nat.c: Ditto.
12700 * microblaze-tdep.c: Ditto.
12701 * mips-linux-tdep.c: Ditto.
12702 * mn10300-tdep.c: Ditto.
12703 * nto-tdep.c: Ditto.
12704 * opencl-lang.c: Ditto.
12705 * osdata.c: Ditto.
12706 * printcmd.c: Ditto.
12707 * regcache.c: Ditto.
12708 * remote-m32r-sdi.c: Ditto.
12709 * remote.c: Ditto.
12710 * symfile.c: Ditto.
12711 * symtab.c: Ditto.
12712 * tilegx-linux-nat.c: Ditto.
12713 * tilegx-tdep.c: Ditto.
12714 * tracepoint.c: Ditto.
12715 * valops.c: Ditto.
12716 * vaxbsd-nat.c: Ditto.
12717 * windows-nat.c: Ditto.
12718 * xtensa-tdep.c: Ditto.
12719
127202014-01-07 Yao Qi <yao@codesourcery.com>
12721
12722 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12723
127242014-01-07 Yao Qi <yao@codesourcery.com>
12725 Joel Brobecker <brobecker@adacore.com>
12726
12727 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12728 (pdc_write_regs): Likewise.
12729 (fetch_regs_kernel_thread): Likewise.
12730 (store_regs_kernel_thread): Likewise.
12731
127322014-01-07 Joel Brobecker <brobecker@adacore.com>
12733
12734 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12735 tagged type objects to their actual type.
12736
127372014-01-07 Joel Brobecker <brobecker@adacore.com>
12738
12739 * ada-valprint.c (print_field_values): Add "language" parameter.
12740 Update calls to print_field_values and print_variant_part.
12741 Pass new parameter "language" in call to val_print instead
12742 of "current_language". Replace call to ada_val_print by call
12743 to val_print.
12744 (print_variant_part): Add "language" parameter.
12745 (ada_val_print_struct_union): Update call to print_field_values.
12746
127472014-01-07 Joel Brobecker <brobecker@adacore.com>
12748
12749 * ada-valprint.c (ui_memcpy): Delete.
12750 (ada_print_floating): Update documentation. Add empty line
12751 between between function documentation and implementation.
12752 Delete variable "buffer". Use ui_file_xstrdup in place of
12753 ui_file_put. Minor adjustments following this change.
12754
127552014-01-07 Joel Brobecker <brobecker@adacore.com>
12756
12757 * ada-valprint.c (ada_val_print_string): New function,
12758 extracted from ada_val_print_array.
12759 (ada_val_print_array): Replace extracted code by call
12760 to ada_val_print_string followed by a return. Move
12761 "else" branch to the function's top block.
12762
127632014-01-07 Joel Brobecker <brobecker@adacore.com>
12764
12765 * ada-valprint.c (ada_val_print_array): Move implementation
12766 down. Rename parameter "offset" and "val" into "offset_aligned"
12767 and "original_value" respectively. Add parameter "offset".
12768
127692014-01-07 Joel Brobecker <brobecker@adacore.com>
12770
12771 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12772 re-organizing the code. Change the "???" message printed
12773 when target type is a TYPE_CODE_UNDEF into
12774 "<ref to undefined type>".
12775
127762014-01-07 Joel Brobecker <brobecker@adacore.com>
12777
12778 * ada-valprint.c (print_record): Delete, implementation inlined...
12779 (ada_val_print_struct_union): ... here. Remove call to
12780 ada_check_typedef in inlined implementation.
12781
127822014-01-07 Joel Brobecker <brobecker@adacore.com>
12783
12784 * ada-valprint.c (ada_val_print_gnat_array): New function,
12785 extracted from ada_val_print_1;
12786 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12787 (ada_val_print_flt, ada_val_print_struct_union)
12788 (ada_val_print_ref): Likewise.
12789 (ada_val_print_1): Delete variables i and elttype.
12790 Replace extracted-out code by call to corresponding
12791 new functions.
12792
127932014-01-07 Joel Brobecker <brobecker@adacore.com>
12794
12795 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12796
127972014-01-07 Joel Brobecker <brobecker@adacore.com>
12798
12799 * ada-valprint.c (ada_val_print_1): Replace calls to
12800 ada_val_print_1 by calls to val_print.
12801
128022014-01-07 Joel Brobecker <brobecker@adacore.com>
12803
12804 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12805 Update calls to self accordingly. Replace calls to c_val_print
12806 by calls to val_print.
12807
128082014-01-07 Joel Brobecker <brobecker@adacore.com>
12809
12810 * ada-valprint.c (print_record): Delete declaration.
12811 (adjust_type_signedness, ada_val_print_1): Likewise.
12812 (ada_val_print): Move function implementation down.
12813 (print_variant_part, print_field_values, print_record):
12814 Move function implementation up.
12815
128162014-01-07 Joel Brobecker <brobecker@adacore.com>
12817
12818 * python/py-type.c (typy_get_name): New function.
12819 (type_object_getset): Add entry for attribute "name".
12820 * NEWS: Add entry mentioning this new attribute.
12821
128222014-01-07 Yao Qi <yao@codesourcery.com>
12823
12824 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12825 statement.
12826
128272014-01-07 Yao Qi <yao@codesourcery.com>
12828
12829 * gnu-nat.c (info_port_rights): Add qualifier const to
12830 argument args.
12831
128322014-01-07 Yao Qi <yao@codesourcery.com>
12833
12834 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12835
128362014-01-07 Yao Qi <yao@codesourcery.com>
12837
12838 * gnu-nat.c (make_inf) Update declaration.
12839 (make_inf): Make it static.
12840 (inf_set_traced): Likewise.
12841 (inf_port_to_thread, inf_task_died_status): Likewise.
12842
128432014-01-07 Yao Qi <yao@codesourcery.com>
12844
12845 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12846
128472014-01-07 Yao Qi <yao@codesourcery.com>
12848
12849 * gnu-nat.c (_initialize_gnu_nat): Declare.
12850
128512014-01-07 Yao Qi <yao@codesourcery.com>
12852
12853 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12854 'enum bfd_endian'.
12855 (struct gdbarch_info) <byte_order>: Change type to
12856 'enum bfd_endian'.
12857 <byte_order_for_code>: Likewise.
12858 * gdbarch.c, gdbarch.h: Regenerated.
12859
128602014-01-06 Sasha Smundak <asmundak@google.com>
12861
12862 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12863
128642014-01-06 Tom Tromey <tromey@redhat.com>
12865
12866 * doublest.c (convert_doublest_to_floatformat): Use const, not
12867 CONST.
12868 * somread.c (som_symtab_read): Likewise.
12869
128702014-01-07 Hui Zhu <hui@codesourcery.com>
12871
12872 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12873 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12874 (gdb_bfd_fopen): Ditto.
12875 (gdb_bfd_openr): Ditto.
12876 (gdb_bfd_openw): Ditto.
12877 (gdb_bfd_openr_iovec): Ditto.
12878 (gdb_bfd_fdopenr): Ditto.
12879 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12880 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12881 with xstrdup.
12882 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12883 with xstrdup.
12884 * symfile-mem.c (symbol_file_add_from_memory): Removed
12885 gdb_bfd_stash_filename.
12886
128872014-01-03 Doug Evans <dje@google.com>
12888
12889 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12890 output.
12891
128922014-01-01 Joel Brobecker <brobecker@adacore.com>
12893
12894 Update year range in copyright notice of all files.
12895
128962014-01-01 Joel Brobecker <brobecker@adacore.com>
12897
12898 * top.c (print_gdb_version): Set copyright year to 2014.
12899
129002014-01-01 Joel Brobecker <brobecker@adacore.com>
12901
12902 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12903
12904For older changes see ChangeLog-2013.
12905\f
12906Local Variables:
12907mode: change-log
12908left-margin: 8
12909fill-column: 74
12910version-control: never
12911coding: utf-8
12912End:
This page took 0.068978 seconds and 4 git commands to generate.