Update target_stop's documentation
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-22 Gary Benson <gbenson@redhat.com>
2
3 * target.c (target_stop): Updated comment.
4
5 2014-09-22 Gary Benson <gbenson@redhat.com>
6
7 * target/target.h (target_stop_ptid): Renamed as...
8 (target_stop_and_wait): New function. Updated comment.
9 All uses updated.
10 (target_continue_ptid): Renamed as...
11 (target_continue_no_signal): New function. Updated comment.
12 All uses updated.
13
14 2014-09-22 Pedro Alves <palves@redhat.com>
15
16 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
17 and "auto" merged.
18 * breakpoint.c (enum ugll_insert_mode): New enum.
19 (always_inserted_mode): Now a plain boolean.
20 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
21 (breakpoints_always_inserted_mode): Delete.
22 (breakpoints_should_be_inserted_now): New function.
23 (insert_breakpoints): Pass UGLL_INSERT to
24 update_global_location_list instead of calling
25 insert_breakpoint_locations manually.
26 (create_solib_event_breakpoint_1): New, factored out from ...
27 (create_solib_event_breakpoint): ... this.
28 (create_and_insert_solib_event_breakpoint): Use
29 create_solib_event_breakpoint_1 instead of calling
30 insert_breakpoint_locations manually.
31 (update_global_location_list): Change parameter type from boolean
32 to enum ugll_insert_mode. All callers adjusted. Adjust to use
33 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
34 (update_global_location_list_nothrow): Change parameter type from
35 boolean to enum ugll_insert_mode.
36 (_initialize_breakpoint): "breakpoint always-inserted" option is
37 now a boolean command. Update help text.
38 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
39 (breakpoints_should_be_inserted_now): New declaration.
40 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
41 Remove breakpoints_always_inserted_mode check.
42 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
43 * remote.c (remote_start_remote): Likewise.
44
45 2014-09-22 Pedro Alves <palves@redhat.com>
46
47 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
48 (insert_breakpoints): Don't call insert_breakpoint_locations here.
49 Instead, pass UGLL_INSERT to update_global_location_list.
50 (update_global_location_list): Change parameter type from boolean
51 to enum ugll_insert_mode. All callers adjusted. Adjust to use
52 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
53 (create_solib_event_breakpoint_1): New, factored out from ...
54 (create_solib_event_breakpoint): ... this.
55 (create_and_insert_solib_event_breakpoint): Use
56 create_solib_event_breakpoint_1 instead of calling
57 insert_breakpoint_locations manually.
58 (update_global_location_list): Handle UGLL_INSERT.
59
60 2014-09-22 Pedro Alves <palves@redhat.com>
61
62 * breakpoint.c (enum ugll_insert_mode): New enum.
63 (update_global_location_list)
64 (update_global_location_list_nothrow): Change parameter type from
65 boolean to enum ugll_insert_mode. All callers adjusted.
66
67 2014-09-19 Joel Brobecker <brobecker@adacore.com>
68
69 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
70 SystemTap support in GDB.
71
72 2014-09-19 Don Breazeal <donb@codesourcery.com>
73
74 * linux-nat.c (linux_handle_extended_wait): Call
75 linux_ptrace_get_extended_event.
76 (wait_lwp): Call linux_is_extended_waitstatus.
77 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
78 and linux_is_extended_waitstatus.
79 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
80 linux_ptrace_get_extended_event.
81 (linux_ptrace_get_extended_event): New function.
82 (linux_is_extended_waitstatus): New function.
83 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
84 (linux_is_extended_waitstatus): New declarations.
85
86 2014-09-19 Yao Qi <yao@codesourcery.com>
87
88 * dwarf2read.c (dwarf_decode_lines): Update declaration.
89 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
90 comments. Callers update.
91 (dwarf_decode_lines): Likewise.
92 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
93 comments. Skip the line table if 'lowpc' is greater than
94 'address'. Don't check
95 dwarf2_per_objfile->has_section_at_zero.
96
97 2014-09-18 Doug Evans <dje@google.com>
98
99 * NEWS: Mention new "producer" attribute of gdb.Symtab.
100 * python/py-symtab.c (stpy_get_producer): New function.
101 (symtab_object_getset): Add "producer" attribute.
102
103 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
104
105 PR gdb/17384
106 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
107 (do_captured_read_memory_integer): Remove.
108 (safe_read_memory_integer): Use target_read_memory directly instead
109 of catching errors in do_captured_read_memory_integer.
110
111 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
112
113 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
114 not gdb/doc.
115
116 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
117
118 * objc-lang.c (find_implementation_from_class): Remove dead code.
119
120 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
121
122 PR cli/7233
123 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
124 "fprintf_unfiltered (gdb_stdlog...)".
125
126 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
127
128 PR breakpoints/12526
129 * breakpoint.h (struct watchpoint): New fields val_bitpos and
130 val_bitsize.
131 * breakpoint.c (watch_command_1): Use these fields to retain
132 bitfield information.
133 (extract_bitfield_from_watchpoint_value): New function.
134 (watchpoint_check): Use it.
135 (update_watchpoint): Use it. Optimize the address and length of a
136 HW watchpoint pointing to a bitfield.
137 * value.h (unpack_value_bitfield): New prototype.
138 * value.c (unpack_value_bitfield): Make extern.
139
140 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
141
142 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
143 x86-dregs.o.
144 * gnu-nat.c (inf_threads): New function.
145 * gnu-nat.h (inf_threads_ftype): New typedef.
146 (inf_threads): New declaration.
147 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
148 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
149 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
150 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
151 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
152 (i386_gnu_dr_get_control): New functions.
153 (reg_addr): New structure.
154 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
155 i386 debugging register hooks.
156 * NEWS: Mention this.
157
158 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
159
160 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
161 vector data transfer instructions.
162 (arm_record_coproc_data_proc): Updated.
163
164 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
165
166 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
167 arm_record_exreg_ld_st_insn.
168 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
169 load/store insns.
170
171 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
172
173 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
174 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
175 processing instructions.
176
177 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
178
179 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
180 for advance SIMD struct ld/st insn.
181 (thumb2_record_decode_insn_handler): Replace stub handler with
182 thumb2_record_asimd_struct_ld_st.
183
184 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
185
186 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
187 for asimd, vfp and coprocessor insns.
188 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
189 and coprocessor insns.
190 (thumb2_record_coproc_insn): New function.
191 (thumb2_record_decode_insn_handler): Update coprocessor insns record
192 handlers.
193 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
194 opcode 110 insns.
195
196 2014-09-13 Doug Evans <xdje42@gmail.com>
197
198 * NEWS: Mention new "queue-signal" command.
199 * infcmd.c (queue_signal_command): New function.
200 (_initialize_infcmd): Add new queue-signal command.
201
202 2014-09-13 Doug Evans <xdje42@gmail.com>
203
204 * linux-nat.c (wait_lwp): Add debugging printf.
205 (linux_nat_wait_1): Ditto.
206
207 2014-09-12 Pedro Alves <palves@redhat.com>
208
209 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
210 (create_and_insert_solib_event_breakpoint): New functions.
211 * breakpoint.h (create_and_insert_solib_event_breakpoint)
212 (remove_solib_event_breakpoints_at_next_stop): New declarations.
213 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
214 (remove_dbx_link_breakpoint): Delete function.
215 (insert_dbx_link_bpt_in_file): Use
216 create_and_insert_solib_event_breakpoint instead of
217 deprecated_insert_raw_breakpoint.
218 (procfs_wait): Don't check whether we hit __dbx_link here.
219 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
220 here.
221 * solib-irix.c (base_breakpoint): Delete global.
222 (disable_break): Delete function.
223 (enable_break): Use create_solib_event_breakpoint
224 instead of deprecated_insert_raw_breakpoint.
225 (irix_solib_handle_event): New function.
226 (irix_solib_create_inferior_hook): Don't run the target or disable
227 the mapping-complete breakpoint here.
228 (_initialize_irix_solib): Install irix_solib_handle_event as
229 so_ops->handle_event hook.
230
231 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
232 Ulrich Weigand  <uweigand@de.ibm.com>
233
234 PR tdep/17379
235 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
236 instead of read_memory_unsigned_integer.
237
238 2014-09-12 Gary Benson <gbenson@redhat.com>
239
240 * nat/linux-waitpid.c: Include common-defs.h.
241 [GDBSERVER]: Add FIXME comment.
242 [!GDBSERVER]: Don't include defs.h or signal.h.
243 (linux_debug) [!GDBSERVER]: Remove empty block.
244
245 2014-09-12 Gary Benson <gbenson@redhat.com>
246
247 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
248 Don't include defs.h or server.h.
249
250 2014-09-12 Gary Benson <gbenson@redhat.com>
251
252 * nat/linux-btrace.c: Include common-defs.h.
253 Don't include defs.h, server.h or gdbthread.h.
254 * nat/linux-btrace.h (struct target_ops): New forward declaration.
255
256 2014-09-12 Gary Benson <gbenson@redhat.com>
257
258 * common/agent.c: Include common-defs.h.
259 Don't include defs.h or server.h.
260 * common/buffer.c: Likewise.
261 * common/common-debug.c: Likewise.
262 * common/common-utils.c: Likewise.
263 * common/errors.c: Likewise.
264 * common/filestuff.c: Likewise.
265 * common/format.c: Likewise.
266 * common/gdb_vecs.c: Likewise.
267 * common/print-utils.c: Likewise.
268 * common/ptid.c: Likewise.
269 * common/rsp-low.c: Likewise.
270 * common/signals.c: Likewise.
271 * common/vec.c: Likewise.
272 * common/xml-utils.c: Likewise.
273 * nat/linux-osdata.c: Likewise.
274 * nat/linux-procfs.c: Likewise.
275 * nat/linux-ptrace.c: Likewise.
276 * nat/mips-linux-watch.c: Likewise.
277 * target/waitstatus.c: Likewise.
278
279 2014-09-12 Tom Tromey <tromey@redhat.com>
280 Gary Benson <gbenson@redhat.com>
281
282 * common/common-regcache.h: New file.
283 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
284 * regcache.h: Include common-regcache.h.
285 (regcache_read_pc): Don't declare.
286 * regcache.c (get_thread_regcache_for_ptid): New function.
287 * nat/linux-btrace.c: Don't include regcache.h.
288 Include common-regcache.h.
289 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
290
291 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
292
293 * regcache.h (struct regset): Declare.
294
295 2014-09-11 Pedro Alves <palves@redhat.com>
296
297 PR gdb/17347
298 * main.c: Include "infrun.h".
299 (catch_command_errors, catch_command_errors_const): Wait for the
300 foreground command to complete.
301 * top.c (maybe_wait_sync_command_done): New function, factored out
302 from ...
303 (maybe_wait_sync_command_done): ... here.
304 * top.h (maybe_wait_sync_command_done): New declaration.
305
306 2014-09-11 Tom Tromey <tromey@redhat.com>
307 Gary Benson <gbenson@redhat.com>
308
309 * common/symbol.h: New file.
310 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
311 * minsyms.c (find_minimal_symbol_address): New function.
312 * common/agent.c: Include common/symbol.h.
313 [!GDBSERVER]: Don't include objfiles.h.
314 (agent_look_up_symbols): Use find_minimal_symbol_address.
315
316 2014-09-11 Gary Benson <gbenson@redhat.com>
317
318 * target/target.h (target_stop_ptid, target_continue_ptid):
319 Declare.
320 * target.c (target_stop_ptid, target_continue_ptid): New
321 functions.
322 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
323 (agent_run_command): Always use target_stop_ptid and
324 target_continue_ptid.
325
326 2014-09-11 Tom Tromey <tromey@redhat.com>
327 Gary Benson <gbenson@redhat.com>
328
329 * target/target.h: New file.
330 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
331 * target.h: Include target/target.h.
332 (target_read_memory, target_write_memory): Don't declare.
333 * target.c (target_read_uint32): New function.
334 * common/agent.c: Include target/target.h.
335 [!GDBSERVER]: Don't include target.h.
336 (helper_thread_id): Type changed to uint32_t.
337 (agent_get_helper_thread_id): Use target_read_uint32.
338 (agent_run_command): Always use target_read_memory and
339 target_write_memory.
340 (agent_capability): Type changed to uint32_t.
341 (agent_capability_check): Use target_read_uint32.
342
343 2014-09-11 Gary Benson <gbenson@redhat.com>
344
345 * common/common-debug.h (show_debug_regs): Declare.
346 * common/common-debug.c (show_debug_regs): Define.
347 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
348 all uses with show_debug_regs. Replace all uses that considered
349 debug_hw_points as a multi-value integer with straight boolean
350 uses.
351 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
352 with show_debug_regs.
353 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
354 all uses with show_debug_regs.
355 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
356 uses with show_debug_regs.
357
358 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
359
360 * findvar.c (address_from_register): Handle targets requiring
361 a special conversion routine even for plain pointer types.
362
363 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
364
365 * rs6000-nat.c (exec_one_dummy_insn): Remove.
366 (store_register): Do not call exec_one_dummy_insn.
367
368 2014-09-10 Joel Brobecker <brobecker@adacore.com>
369
370 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
371 dereference it first. Use value_enclosing_type instead of
372 value_type.
373 (ada_array_length): Likewise.
374
375 2014-09-10 Joel Brobecker <brobecker@adacore.com>
376
377 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
378 Adjust function implementation and documentation accordingly.
379 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
380 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
381 Update call to ada_value_ptr_subscript.
382
383 2014-09-10 Joel Brobecker <brobecker@adacore.com>
384
385 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
386 instead of VAL's type.
387
388 2014-09-10 Joel Brobecker <brobecker@adacore.com>
389
390 * amd64-linux-nat.c: Add <sys/uio.h> #include.
391
392 2014-09-09 Doug Evans <xdje42@gmail.com>
393
394 PR guile/17367
395 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
396 last parameter to pkg-config, not first.
397 * configure.ac: Pass --with-guile provided pkg-config path to
398 GDB_GUILE_PROGRAM_NAMES.
399 * configure: Regenerate.
400
401 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
402
403 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
404 Bertazi".
405
406 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
407
408 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
409 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
410 the list of sections determining GDB_OSABI_IRIX.
411
412 2014-09-09 James Hogan <james.hogan@imgtec.com>
413
414 * MAINTAINERS (Write After Approval): Add "James Hogan".
415
416 2014-09-09 James Hogan <james.hogan@imgtec.com>
417
418 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
419
420 2014-09-09 Joel Brobecker <brobecker@adacore.com>
421
422 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
423
424 2014-09-08 Doug Evans <xdje42@gmail.com>
425
426 PR 17247
427 * guile.c: #include <signal.h>.
428 (_initialize_guile): Block SIGCHLD while initializing Guile.
429
430 Replaces the following, which is reverted.
431
432 2014-07-26 Doug Evans <xdje42@gmail.com>
433
434 PR 17185
435 * configure.ac: Add check for header gc/gc.h.
436 Add check for function setenv.
437 * configure: Regenerate.
438 * config.in: Regenerate.
439 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
440
441 2014-09-08 Doug Evans <xdje42@gmail.com>
442
443 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
444 with named constant. Fix style of pointer comparison.
445 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
446
447 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
448
449 PR gdb/17035
450 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
451 decide whether we display the command on "show user".
452 * cli/cli-script.c (show_user_1): Only verify cmdlines after
453 printing command name.
454 * cli/cli-decode.h (cli_user_command_p): Declare new function.
455 * cli/cli-decode.c (cli_user_command_p): Create helper function
456 to verify whether cmd_list_element is a user-defined command.
457
458 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
459
460 PR python/17355
461 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
462 Fix goto out of TRY_CATCH.
463
464 2014-09-06 Doug Evans <xdje42@gmail.com>
465 Tom Tromey <tromey@redhat.com>
466
467 PR 15276
468 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
469 $_any_caller_matches.
470 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
471 * python/lib/gdb/function/caller_is.py: New file.
472
473 2014-09-06 Doug Evans <xdje42@gmail.com>
474
475 * infcmd.c (program_info): Fix typo.
476
477 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
478
479 PR gdb/17235
480 * stap-probe.c (stap_parse_single_operand): Delete unused variable
481 'number'. New variable 'has_digit'. Rewrite code to deal with
482 subexpressions on SDT probes.
483
484 2014-09-04 Pedro Alves <palves@redhat.com>
485
486 * c-exp.y (parse_number): Skip handling base-switching prefixes if
487 the input is only one character long.
488
489 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
490
491 PR fortran/17237
492 * f-valprint.c (f_val_print): Specify the correct print option to
493 use when printing integer values.
494
495 2014-09-04 Gary Benson <gbenson@redhat.com>
496
497 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
498 Remove code to cope with LWPs wrapped as PIDs.
499 Add assertions to ensure no wrapped LWPs are passed.
500
501 2014-09-04 Pedro Alves <palves@redhat.com>
502
503 * value.c (value_ranges_copy_adjusted): New function, factored out
504 from ...
505 (value_contents_copy_raw): ... here.
506 (unpack_value_bits_as_long_1): Rename back to ...
507 (unpack_bits_as_long): ... this. Remove 'original_value' and
508 'result' parameters. Change return type to LONGEST.
509 (unpack_value_bits_as_long): Delete.
510 (unpack_value_field_as_long_1): Delete.
511 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
512 (unpack_value_bitfield): New function.
513 (value_field_bitfield): Reimplement using unpack_value_bitfield.
514 (value_fetch_lazy): Use unpack_value_bitfield.
515 * value.h (unpack_value_bits_as_long): Delete declaration.
516
517 2014-09-03 Sasha Smundak <asmundak@google.com>
518
519 * python/py-frame.c (frapy_read_register): New function.
520
521 2014-09-03 James Hogan <james.hogan@imgtec.com>
522
523 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
524 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
525
526 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
527
528 PR python/16699
529 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
530 function.
531 (add_cmd): Set "completer_handle_brkchars" to NULL.
532 * cli/cli-decode.h (struct cmd_list_element)
533 <completer_handle_brkchars>: New field.
534 * command.h (completer_ftype_void): New typedef.
535 (set_cmd_completer_handle_brkchars): New prototype.
536 * completer.c (set_gdb_completion_word_break_characters): New
537 function.
538 (complete_line_internal): Call "completer_handle_brkchars"
539 callback from command.
540 * completer.h: Include "command.h".
541 (set_gdb_completion_word_break_characters): New prototype.
542 * python/py-cmd.c (cmdpy_completer_helper): New function.
543 (cmdpy_completer_handle_brkchars): New function.
544 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
545 (cmdpy_init): Set completer_handle_brkchars to
546 cmdpy_completer_handle_brkchars.
547
548 2014-09-03 Gary Benson <gbenson@redhat.com>
549
550 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
551 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
552 Loop conditions changed to equivalent form.
553 (struct x86_debug_reg_state): Updated dr_ref_count comment.
554 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
555 ALL_DEBUG_ADDRESS_REGISTERS.
556
557 2014-09-03 Joel Brobecker <brobecker@adacore.com>
558
559 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
560 description fix.
561
562 2014-09-02 Doug Evans <dje@google.com>
563
564 * typeprint.c (find_global_typedef): Fix comment.
565
566 2014-09-02 Gary Benson <gbenson@redhat.com>
567
568 * i386-nat.h: Renamed as...
569 * x86-nat.h: New file. All type, function and variable name
570 prefixes changed from "i386_" to "x86_". All references updated.
571 * i386-nat.c: Renamed as...
572 * x86-nat.c: New file. All type, function and variable name
573 prefixes changed from "i386_" to "x86_". All references updated.
574 * common/i386-xstate.h: Renamed as...
575 * common/x86-xstate.h: New file. All type, function and variable
576 name prefixes changed from "i386_" to "x86_". All references
577 updated.
578 * nat/i386-cpuid.h: Renamed as...
579 * nat/x86-cpuid.h: New file. All type, function and variable name
580 prefixes changed from "i386_" to "x86_". All references updated.
581 * nat/i386-gcc-cpuid.h: Renamed as...
582 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
583 name prefixes changed from "i386_" to "x86_". All references
584 updated.
585 * nat/i386-dregs.h: Renamed as...
586 * nat/x86-dregs.h: New file. All type, function and variable name
587 prefixes changed from "i386_" to "x86_". All references updated.
588 * nat/i386-dregs.c: Renamed as...
589 * nat/x86-dregs.c: New file. All type, function and variable name
590 prefixes changed from "i386_" to "x86_". All references updated.
591
592 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
593
594 * varobj.c (_initialize_varobj): Move to the end of file.
595
596 2014-08-29 Gary Benson <gbenson@redhat.com>
597
598 * common/common-exceptions.h: New file.
599 * common/common-exceptions.c: Likewise.
600 * Makefile.in (SFILES): Add common/common-exceptions.c.
601 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
602 (COMMON_OBS): Add common-exceptions.o.
603 (common-exceptions.o): New rule.
604 * exceptions.h (common-exceptions.h): Include.
605 (gdb_setjmp.h): Do not include.
606 (return_reason): Moved to common-exceptions.h.
607 (enum return_reason): Likewise.
608 (RETURN_MASK): Likewise.
609 (typedef return_mask): Likewise.
610 (enum errors): Likewise.
611 (struct gdb_exception): Likewise.
612 (exceptions_state_mc_init): Likewise.
613 (exceptions_state_mc_action_iter): Likewise.
614 (exceptions_state_mc_action_iter_1): Likewise.
615 (TRY_CATCH): Likewise.
616 (throw_exception): Likewise.
617 (throw_verror): Likewise.
618 (throw_vquit): Likewise.
619 (throw_error): Likewise.
620 (throw_quit): Likewise.
621 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
622 (enum catcher_action): Likewise.
623 (struct catcher): Likewise.
624 (current_catcher): Likewise.
625 (catcher_list_size): Likewise.
626 (exceptions_state_mc_init): Likewise.
627 (catcher_pop): Likewise.
628 (exceptions_state_mc): Likewise.
629 (exceptions_state_mc_action_iter): Likewise.
630 (exceptions_state_mc_action_iter_1): Likewise.
631 (throw_exception): Likewise.
632 (exception_messages): Likewise.
633 (exception_messages_size): Likewise.
634 (throw_it): Likewise.
635 (throw_verror): Likewise.
636 (throw_vquit): Likewise.
637 (throw_error): Likewise.
638 (throw_quit): Likewise.
639 (prepare_to_throw_exception): New function.
640
641 2014-08-29 Gary Benson <gbenson@redhat.com>
642
643 * common/gdb_setjmp.h: New file.
644 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
645 * configure.ac: Move sigsetjmp check...
646 * common/common.m4: ...here.
647 * configure: Regenerate.
648 * cp-support.c (SIGJMP_BUF): Delete.
649 (SIGSETJMP): Likewise.
650 (SIGLONGJMP): Likewise.
651 * exceptions.h (gdb_setjmp.h): Include.
652 (setjmp.h): Do not include.
653 (EXCEPTIONS_SIGJMP_BUF): Delete.
654 (EXCEPTIONS_SIGSETJMP): Likewise.
655 (EXCEPTIONS_SIGLONGJMP): Likewise.
656 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
657 from gdb_setjmp.h.
658 * exceptions.c: Likewise.
659
660 2014-08-29 Gary Benson <gbenson@redhat.com>
661
662 * cleanups.h: Moved to...
663 * common/cleanups.h: New file.
664 * cleanups.c: Moved to...
665 * common/cleanups.c: New file. Include common-defs.h and
666 cleanups.h. Do not include defs.h.
667 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
668 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
669 (cleanups.o): New rule.
670
671 2014-08-29 Gary Benson <gbenson@redhat.com>
672
673 * common/errors.h (internal_warning): New declaration.
674 (internal_vwarning): Likewise.
675 * common/errors.c (internal_warning): New function.
676 * utils.h (internal_warning): Don't declare.
677 (internal_vwarning): Likewise.
678 * utils.c (internal_warning): Removed.
679
680 2014-08-29 Gary Benson <gbenson@redhat.com>
681
682 * main.c (captured_main): Use warning during startup.
683 Prefix startup warning messages with command name.
684
685 2014-08-29 Gary Benson <gbenson@redhat.com>
686
687 * main.c (captured_main): Handle usage errors with error.
688
689 2014-08-29 Gary Benson <gbenson@redhat.com>
690
691 * go32-nat.c (go32_create_inferior): Replace a fprintf/
692 exit pair with a call to error. Wrap the message with _().
693
694 2014-08-29 Gary Benson <gbenson@redhat.com>
695
696 * main.c (captured_main): Replace a fprintf/exit
697 pair with a call to error. Wrap the message with _().
698
699 2014-08-29 Gary Benson <gbenson@redhat.com>
700
701 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
702 pairs with calls to error. Wrap the message with _().
703
704 2014-08-29 Gary Benson <gbenson@redhat.com>
705
706 * utils.c (vwarning): Protect calls to target_terminal_ours
707 and wrap_here.
708
709 2014-08-29 Gary Benson <gbenson@redhat.com>
710
711 * exceptions.c (print_flush): Protect calls to
712 target_terminal_ours and wrap_here.
713
714 2014-08-29 Gary Benson <gbenson@redhat.com>
715
716 * utils.h (filtered_printing_initialized): New declaration.
717 * utils.c (abort_with_message): New function.
718 (internal_vproblem): Use abort_with_message for first level
719 recursive internal problems, and if gdb_stderr is not set up.
720 Protect calls to target_terminal_ours, begin_line and query.
721
722 2014-08-28 Doug Evans <dje@google.com>
723
724 * symtab.c (in_prologue): Move definition to better spot.
725 (skip_prologue_using_sal): Ditto.
726
727 2014-08-28 Doug Evans <dje@google.com>
728
729 * symtab.c (find_function_start_sal): Move definition to better spot.
730
731 2014-08-28 Yao Qi <yao@codesourcery.com>
732
733 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
734 found_stack_adjust in forward scan. Remove condition check
735 on found_stack_adjust which is always true. Indent the code.
736
737 2014-08-28 Yao Qi <yao@codesourcery.com>
738
739 * dwarf2read.c (dwarf_decode_lines): Update declaration.
740 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
741 (dwarf_decode_lines): Remove argument
742 want_line_info. Remove condition check on want_line_info.
743 Callers update.
744
745 2014-08-27 Doug Evans <dje@google.com>
746
747 * dwarf2read.c (dwarf_record_line): Fix typo.
748
749 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
750
751 * target.h (struct target_ops::to_terminal_save_ours): Remove
752 declaration.
753 (target_terminal_save_ours): Remove macro.
754 * target-delegates.c: Regenerate.
755 * inf-child.c (inf_child_target): Don't set the nonexistent
756 field to_terminal_save_ours.
757 * inferior.h (child_terminal_save_ours): Remove declaration.
758 * terminal.h (gdb_save_tty_state): New declaration.
759 * inflow.c (child_terminal_save_ours): Rename to ...
760 (gdb_save_tty_state): ... this.
761 * tui/tui.c: Include terminal.h.
762 (tui_enable): Use gdb_save_tty_state instead of
763 target_terminal_save_ours.
764 (tui_disable): Likewise.
765
766 2014-08-25 Doug Evans <dje@google.com>
767
768 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
769 Pass NULL instead of 0 for context pointer.
770
771 2014-08-25 Yao Qi <yao@codesourcery.com>
772
773 * dwarf2read.c: Fix grammatical error.
774
775 2014-08-24 Yao Qi <yao@codesourcery.com>
776
777 * dwarf2read.c (scan_partial_symbols): Update comments.
778 Rename argument 'need_pc' with 'set_addrmap'.
779 (add_partial_namespace): Rename argument 'need_pc' with
780 'set_addrmap'.
781 (add_partial_module): Likewise.
782 (add_partial_subprogram): Likewise. Update comments.
783 (dwarf2_name): Fix typo.
784
785 2014-08-22 Doug Evans <dje@google.com>
786
787 PR 17276
788 * dwarf2read.c (dwarf_record_line_p): New function.
789 (dwarf_decode_lines_1): Ignore subsequent line number entries
790 for the same line if any entry had a non-zero discriminator.
791
792 2014-08-22 Doug Evans <dje@google.com>
793
794 * buildsym.h (record_line_ftype): New typedef.
795 (record_line): Use it.
796 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
797 (dwarf_decode_lines_1): Call them.
798
799 2014-08-22 Yao Qi <yao@codesourcery.com>
800
801 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
802 (ctf_end): Remove code.
803
804 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
805
806 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
807 (linux_make_corefile_notes): call update_thread_list, protected against
808 exceptions.
809
810 2014-08-21 Pedro Alves <palves@redhat.com>
811
812 * infcmd.c (attach_command): Remove comment.
813
814 2014-08-21 Bin Cheng <bin.cheng@arm.com>
815
816 * aarch64-linux-nat.c (dr_changed_t): Change the type from
817 unsigned LONGEST to ULONGEST.
818
819 2014-08-20 Pedro Alves <palves@redhat.com>
820
821 * Makefile.in (check-read1): New rule.
822
823 2014-08-20 Joel Brobecker <brobecker@adacore.com>
824
825 * value.c (value_from_contents_and_address): Strip resolved_type's
826 typedef layers before checking its TYPE_DATA_LOCATION.
827
828 2014-08-20 Pedro Alves <palves@redhat.com>
829
830 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
831
832 2014-08-20 Yao Qi <yao@codesourcery.com>
833
834 * amd64-tdep.c (amd64_classify): Add a blank line after the
835 example. Move "*/" to a new line.
836 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
837 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
838 * dwarf2read.c (psymtab_include_file_name): Likewise.
839
840 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
841 Pedro Alves <palves@redhat.com>
842
843 PR symtab/14604
844 PR symtab/14605
845 * ada-lang.c (coerce_unspec_val_to_type): Use
846 value_contents_copy_raw.
847 * ada-valprint.c (val_print_packed_array_elements): Adjust.
848 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
849 * cp-valprint.c (cp_print_value_fields): Let the common printing
850 code handle optimized out values.
851 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
852 * d-valprint.c (dynamic_array_type): Use
853 value_bits_any_optimized_out.
854 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
855 check_any_valid fields.
856 (check_pieced_value_bits): Delete and inline ...
857 (check_pieced_synthetic_pointer): ... here.
858 (check_pieced_value_validity): Delete.
859 (check_pieced_value_invalid): Delete.
860 (pieced_value_funcs): Remove check_validity and check_any_valid
861 fields.
862 (read_pieced_value): Use mark_value_bits_optimized_out.
863 (write_pieced_value): Switch to use
864 mark_value_bytes_optimized_out.
865 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
866 of assuming the whole value is optimized out.
867 * findvar.c (read_frame_register_value): Remove special handling
868 of optimized out registers.
869 (value_from_register): Use mark_value_bytes_optimized_out.
870 * frame-unwind.c (frame_unwind_got_optimized): Use
871 mark_value_bytes_optimized_out.
872 * jv-valprint.c (java_value_print): Adjust.
873 (java_print_value_fields): Let the common printing code handle
874 optimized out values.
875 * mips-tdep.c (mips_print_register): Remove special handling of
876 optimized out registers.
877 * opencl-lang.c (lval_func_check_validity): Delete.
878 (lval_func_check_any_valid): Delete.
879 (opencl_value_funcs): Remove check_validity and check_any_valid
880 fields.
881 * p-valprint.c (pascal_object_print_value_fields): Let the common
882 printing code handle optimized out values.
883 * stack.c (read_frame_arg): Remove special handling of optimized
884 out values. Fetch both VAL and ENTRYVAL before comparing
885 contents. Adjust to value_available_contents_eq rename.
886 * valprint.c (valprint_check_validity)
887 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
888 (val_print_array_elements): Adjust.
889 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
890 (value_bits_any_optimized_out): New function.
891 (value_entirely_covered_by_range_vector): New function, factored
892 out from value_entirely_unavailable.
893 (value_entirely_unavailable): Reimplement.
894 (value_entirely_optimized_out): New function.
895 (insert_into_bit_range_vector): New function, factored out from
896 mark_value_bits_unavailable.
897 (mark_value_bits_unavailable): Reimplement.
898 (struct ranges_and_idx): New struct.
899 (find_first_range_overlap_and_match): New function, factored out
900 from value_available_contents_bits_eq.
901 (value_available_contents_bits_eq): Rename to ...
902 (value_contents_bits_eq): ... this. Check both unavailable
903 contents and optimized out contents.
904 (value_available_contents_eq): Rename to ...
905 (value_contents_eq): ... this.
906 (allocate_value_lazy): Remove reference to the old optimized_out
907 boolean.
908 (allocate_optimized_out_value): Use
909 mark_value_bytes_optimized_out.
910 (require_not_optimized_out): Adjust to check whether the
911 optimized_out vec is empty.
912 (ranges_copy_adjusted): New function, factored out from
913 value_contents_copy_raw.
914 (value_contents_copy_raw): Also copy the optimized out ranges.
915 Assert the destination ranges aren't optimized out.
916 (value_contents_copy): Update comment, remove call to
917 require_not_optimized_out.
918 (value_contents_equal): Adjust to check whether the optimized_out
919 vec is empty.
920 (set_value_optimized_out, value_optimized_out_const): Delete.
921 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
922 New functions.
923 (value_entirely_optimized_out, value_bits_valid): Delete.
924 (value_copy): Take a VEC copy of the 'optimized_out' field.
925 (value_primitive_field): Remove special handling of optimized out.
926 (value_fetch_lazy): Assert that lazy values have no unavailable
927 regions. Use value_bits_any_optimized_out. Remove some special
928 handling for optimized out values.
929 * value.h: Add intro comment about <optimized out> and
930 <unavailable>.
931 (struct lval_funcs): Remove check_validity and check_any_valid
932 fields.
933 (set_value_optimized_out, value_optimized_out_const): Remove.
934 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
935 New declarations.
936 (value_bits_any_optimized_out): New declaration.
937 (value_bits_valid): Delete declaration.
938 (value_available_contents_eq): Rename to ...
939 (value_contents_eq): ... this, and extend comments.
940
941 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
942
943 Fix -fsanitize=address on unreadable inferior strings.
944 * valprint.c (val_print_string): Fix access before BUFFER.
945
946 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
947
948 * target.c (target_struct_size): Remove.
949 (target_struct_allocsize): Remove.
950 (DEFAULT_ALLOCSIZE): Remove.
951 (target_ops_p): New typedef.
952 (DEF_VEC_P (target_ops_p)): New vector type.
953 (target_structs): Change type to VEC (target_ops_p).
954 (add_target_with_completer): Replace "push" code by VEC_safe_push.
955 (find_default_run_target): Rewrite for loop following changes to
956 target_structs.
957
958 2014-08-19 Joel Brobecker <brobecker@adacore.com>
959
960 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
961 Adjust code accordingly. Adjust function description comment.
962
963 2014-08-19 Yao Qi <yao@codesourcery.com>
964
965 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
966 types.
967
968 2014-08-19 Alan Modra <amodra@gmail.com>
969
970 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
971 * config.in: Regenerate.
972 * configure: Regenerate.
973
974 2014-08-19 Tom Tromey <tromey@redhat.com>
975 Gary Benson <gbenson@redhat.com>
976
977 * common/common-debug.h: New file.
978 * common/common-debug.c: Likewise.
979 * debug.c: Likewise.
980 * Makefile.in (SFILES): Add common/common-debug.c.
981 (HFILES_NO_SRCDIR): Add common/common-debug.h.
982 (COMMON_OBS): Add common-debug.o and debug.o.
983 (common-debug.o): New rule.
984 * common/common-defs.h: Include common-debug.h.
985 * common/agent.c (debug_agent_printf): New function.
986 (DEBUG_AGENT): Redefine.
987 * nat/i386-dregs.c (debug_printf): Undefine.
988
989 2014-08-19 Gary Benson <gbenson@redhat.com>
990
991 * common/common-defs.h: Include print-utils.h.
992 * utils.h: Do not include print-utils.h.
993
994 2014-08-19 Tom Tromey <tromey@redhat.com>
995 Gary Benson <gbenson@redhat.com>
996
997 * common/common-types.h: New file.
998 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
999 * common/common-defs.h: Include common-types.h.
1000 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1001 (ULONGEST): Remove.
1002
1003 2014-08-19 Tom Tromey <tromey@redhat.com>
1004 Gary Benson <gbenson@redhat.com>
1005
1006 * common/errors.h: New file.
1007 * common/errors.c: Likewise.
1008 * Makefile.in (SFILES): Add common/errors.c.
1009 (HFILES_NO_SRCDIR): Add common/errors.h.
1010 (COMMON_OBS): Add errors.o.
1011 (errors.o): New rule.
1012 * common/common-defs.h: Include errors.h.
1013 * utils.h (perror_with_name, error, verror, warning, vwarning):
1014 Don't declare.
1015 * common/common-utils.h: (malloc_failure, internal_error):
1016 Likewise.
1017
1018 2014-08-19 Gary Benson <gbenson@redhat.com>
1019
1020 * utils.c (internal_vproblem): Always print the message.
1021
1022 2014-08-18 Doug Evans <dje@google.com>
1023
1024 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1025
1026 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1027
1028 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1029 Return 0 if TYPE is dynamic.
1030 (print_range): Add handling of dynamic ranges.
1031
1032 2014-08-18 Keven Boell <keven.boell@intel.com>
1033 Joel Brobecker <brobecker@adacore.com>
1034
1035 * gdbtypes.h (struct main_type): Add field "data_location".
1036 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1037 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1038 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1039 a dynamic data location.
1040 (resolve_dynamic_type): Add DW_AT_data_location handling.
1041 (copy_recursive, copy_type): Copy the data_location information
1042 when present.
1043 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1044 * value.c (value_from_contents_and_address): Add
1045 DW_AT_data_location handling.
1046
1047 2014-08-18 Keven Boell <keven.boell@intel.com>
1048 Joel Brobecker <brobecker@adacore.com>
1049
1050 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1051 field "get_object_address".
1052 * dwarf2expr.c (execute_stack_op): Add handling for
1053 DW_OP_push_object_address.
1054 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1055 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1056 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1057 (dwarf_expr_get_obj_addr): New function.
1058 (dwarf_expr_ctx_funcs): Add get_object_address field.
1059 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1060 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1061 (dwarf2_evaluate_property): Add parameter "address". Use it.
1062 (needs_get_obj_addr): New function.
1063 (needs_frame_ctx_funcs): Add get_object_address field.
1064 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1065 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1066 (resolve_dynamic_array): Likewise.
1067
1068 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1069
1070 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1071 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1072 fixed value for records and unions for which some GNAT encodings
1073 are present.
1074
1075 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1076
1077 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1078 rewrite to avoid "else if" and "else" constructs. Should be
1079 a no-op in practice.
1080
1081 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1082
1083 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1084 of lexical block.
1085
1086 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1087
1088 PR c++/17132
1089 * eval.c: Update all calls to find_overload_match.
1090 * valarith.c: Likewise.
1091 (value_user_defined_cpp_op, value_user_defined_op): New
1092 argument NOSIDE. Update all callers.
1093 * valops.c (find_overload_match): New argument NOSIDE.
1094 * value.h (find_overload_match): Update signature.
1095
1096 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1097
1098 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1099 'items' methods instead of 'iteritems' method on dictionaries.
1100
1101 2014-08-15 Doug Evans <dje@google.com>
1102
1103 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1104 closer to use.
1105
1106 2014-08-15 Doug Evans <dje@google.com>
1107
1108 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1109
1110 2014-08-15 Doug Evans <dje@google.com>
1111
1112 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1113
1114 2014-08-15 Doug Evans <dje@google.com>
1115
1116 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1117 unused.
1118
1119 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1120
1121 * dcache.h: Include target.h, to avoid compile time warnings.
1122
1123 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1124
1125 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1126 frame_info" partial declaration.
1127 * gdbarch.h: Regenerate.
1128
1129 2014-08-15 Yao Qi <yao@codesourcery.com>
1130
1131 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1132 Add parameter 'decode_for_pst_p'. Callers update.
1133
1134 2014-08-13 Yao Qi <yao@codesourcery.com>
1135
1136 PR build/17104
1137 * configure.ac: Use local variable 'pos'.
1138 * configure: Regenerated.
1139
1140 2014-08-11 Doug Evans <dje@google.com>
1141
1142 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1143 message, it is redundant with "Reading symbols from ..." message.
1144
1145 2014-08-10 Doug Evans <xdje42@gmail.com>
1146
1147 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1148
1149 2014-08-09 Yao Qi <yao@codesourcery.com>
1150
1151 PR remote/9053
1152 * remote.c (remote_xfer_partial): Remove dead code.
1153
1154 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1155
1156 * ia64-linux-tdep.c: Include "regset.h".
1157 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1158 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1159 (ia64_linux_supply_fpregset): New function.
1160 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1161 (ia64_linux_regset_from_core_section): New function.
1162 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1163 method.
1164
1165 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1166
1167 * m68klinux-tdep.c: Include "regset.h".
1168 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1169 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1170 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1171 (m68k_linux_regset_from_core_section): New function.
1172 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1173 method.
1174
1175 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1176
1177 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1178 function. Move logic to...
1179 (tilegx_linux_regmap): ... this new register map.
1180 (tilegx_linux_regset): Refer to register map, replace supply
1181 method by regcache_supply_regset, and add collect method.
1182 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1183 TILEGX_FIRST_EASY_REGNUM.
1184
1185 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1186
1187 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1188 that calls regcache_supply_regset and handles the EPC register
1189 separately. Move main logic to...
1190 (score7_linux_gregmap): ... this new register map.
1191 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1192 (score7_linux_gregset): Refer to register map. Add collect method.
1193 (score7_linux_regset_from_core_section): Replace
1194 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1195 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1196 (struct regset): Delete unused forward declaraction.
1197 (struct pt_regs): Delete structure definition.
1198 (elf_gregset_t): Delete typedef.
1199
1200 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1201
1202 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1203 (nios2_core_regset): Add collect method.
1204
1205 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1206
1207 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1208 platform-independent and don't write to read-only input buffer.
1209 (m32r_linux_collect_gregset): New function.
1210 (m32r_linux_gregset): Add collect method.
1211
1212 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1213
1214 * hppa-linux-tdep.c (greg_map): Rename to...
1215 (hppa_linux_gregmap): ... this. Also convert to
1216 regcache_map_entry format.
1217 (hppa_linux_supply_regset): Delete function.
1218 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1219 (hppa_linux_fpregmap): ... this new register map.
1220 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1221 register map, replace supply method by regcache_supply_regset, and
1222 add collect method regcache_collect_regset.
1223
1224 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1225
1226 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1227 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1228 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1229 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1230 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1231 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1232 (frv_linux_supply_gregset): Replace main logic by call to
1233 regcache_supply_regset, but keep clearing gr32-gr63.
1234 (frv_linux_supply_fpregset): Delete function.
1235 (frv_linux_gregset): Refer to appropriate register map and add
1236 regcache_collect_regset as the collect method.
1237 (frv_linux_fpregset): Likewise. Also exchange the supply method
1238 by regcache_supply_regset.
1239
1240 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1241
1242 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1243 by call to alpha_supply_int_regs.
1244 (alpha_linux_collect_gregset): New function.
1245 (alpha_linux_supply_fpregset): Replace logic by call to
1246 alpha_supply_fp_regs.
1247 (alpha_linux_collect_fpregset): New function.
1248 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1249
1250 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1251
1252 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1253 by call to regcache_collect_regset.
1254 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1255 instead of aarch64_linux_supply_gregset/_fpregset.
1256 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1257 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1258 header file instead.
1259 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1260 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1261 functions. Move logic to ...
1262 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1263 register maps.
1264 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1265 refer to new register maps, replace *_regset_from_core by
1266 regcache_supply_regset, and also use regcache_collect_regset.
1267 * aarch64-linux-tdep.h: Include "regset.h".
1268 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1269 Delete prototypes.
1270 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1271 macros, moved from C source file.
1272 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1273 variable declarations.
1274
1275 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1276
1277 * s390-linux-nat.c: Include "regset.h".
1278 (regmap_gregset): Delete macro.
1279 (s390_64_regmap_gregset): New register map for
1280 regcache_supply/_collect_regset.
1281 (s390_64_gregset): New regset.
1282 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1283 (regmap_fpregset): Delete macro.
1284 (s390_native_supply, s390_native_collect): Delete functions.
1285 (supply_gregset, fill_gregset): Replace s390-specific regmap
1286 handling by a call to regcache_supply/_collect_regset.
1287 (supply_fpregset, fill_fpregset): Call regcache_supply/
1288 _collect_regset instead of s390_native_supply/_collect.
1289 (fetch_regset, store_regset): Likewise. Also change the last
1290 parameter to a regset instead of a regmap.
1291 (s390_linux_fetch_inferior_registers)
1292 (390_linux_store_inferior_registers): Adjust last parameter in
1293 calls to fetch_regset and store_regset.
1294 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1295 (s390_gregmap): ... this. Also make static const and convert to
1296 regcache_map_entry format.
1297 (s390x_regmap_gregset): Delete.
1298 (s390_regmap_fpregset): Rename to...
1299 (s390_fpregmap): ... this. Make static const and convert to
1300 regcache_map_entry format.
1301 (s390_regmap_upper, s390_regmap_last_break)
1302 (s390x_regmap_last_break, s390_regmap_system_call)
1303 (s390_regmap_tdb): Likewise.
1304 (s390_supply_regset, s390_collect_regset): Remove functions.
1305 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1306 s390_supply_regset.
1307 (s390_gregset, s390_fpregset, s390_upper_regset)
1308 (s390_last_break_regset, s390x_last_break_regset)
1309 (s390_system_call_regset, s390_tdb_regset): Make global and
1310 replace s390_supply/_collect_regset by regcache_supply/
1311 _collect_regset.
1312 (s390x_gregset): Delete.
1313 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1314 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1315 (s390_regmap_fpregset, s390_regmap_last_break)
1316 (s390x_regmap_last_break, s390_regmap_system_call)
1317 (s390_regmap_tdb): Delete global variable declarations.
1318 (s390_gregset, s390_fpregset, s390_last_break_regset)
1319 (s390x_last_break_regset, s390_system_call_regset)
1320 (s390_tdb_regset): New global variable declarations.
1321
1322 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1323
1324 * regcache.c: Include "regset.h".
1325 (regcache_transfer_regset): New local function.
1326 (regcache_supply_regset, regcache_collect_regset): New functions.
1327 * regcache.h (struct regcache_map_entry): New structure.
1328 (REGCACHE_MAP_SKIP): New enum value.
1329 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1330
1331 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1332
1333 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1334 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1335 (ppc_linux_collect_gregset ): Likewise.
1336 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1337 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1338 (ppc_collect_vrregset): Likewise.
1339 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1340 Likewise.
1341
1342 2014-08-07 Yao Qi <yao@codesourcery.com>
1343
1344 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1345 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1346 * remote.c (remote_read_bytes): Likewise.
1347
1348 2014-08-07 Yao Qi <yao@codesourcery.com>
1349
1350 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1351
1352 2014-08-07 Yao Qi <yao@codesourcery.com>
1353
1354 PR remote/17230
1355 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1356 TARGET_XFER_OK instead of 0.
1357
1358 2014-08-07 Gary Benson <gbenson@redhat.com>
1359
1360 * common/common-defs.h: Include errno.h.
1361 * defs.h: Do not include errno.h.
1362 * ada-typeprint.c: Likewise.
1363 * c-typeprint.c: Likewise.
1364 * core-regset.c: Likewise.
1365 * corefile.c: Likewise.
1366 * corelow.c: Likewise.
1367 * event-loop.c: Likewise.
1368 * f-typeprint.c: Likewise.
1369 * gnu-nat.c: Likewise.
1370 * go32-nat.c: Likewise.
1371 * i386gnu-nat.c: Likewise.
1372 * m2-typeprint.c: Likewise.
1373 * nat/linux-btrace.c: Likewise.
1374 * p-typeprint.c: Likewise.
1375 * procfs.c: Likewise.
1376 * remote-sim.c: Likewise.
1377 * rs6000-nat.c: Likewise.
1378 * target.c: Likewise.
1379 * typeprint.c: Likewise.
1380 * ui-file.c: Likewise.
1381 * valops.c: Likewise.
1382 * valprint.c: Likewise.
1383
1384 2014-08-07 Gary Benson <gbenson@redhat.com>
1385
1386 * common/common-defs.h: Include string.h.
1387 * aarch64-tdep.c: Do not include string.h.
1388 * ada-exp.y: Likewise.
1389 * ada-lang.c: Likewise.
1390 * ada-lex.l: Likewise.
1391 * ada-typeprint.c: Likewise.
1392 * ada-valprint.c: Likewise.
1393 * aix-thread.c: Likewise.
1394 * alpha-linux-tdep.c: Likewise.
1395 * alpha-mdebug-tdep.c: Likewise.
1396 * alpha-nat.c: Likewise.
1397 * alpha-osf1-tdep.c: Likewise.
1398 * alpha-tdep.c: Likewise.
1399 * alphanbsd-tdep.c: Likewise.
1400 * amd64-dicos-tdep.c: Likewise.
1401 * amd64-linux-tdep.c: Likewise.
1402 * amd64-nat.c: Likewise.
1403 * amd64-sol2-tdep.c: Likewise.
1404 * amd64fbsd-tdep.c: Likewise.
1405 * amd64obsd-tdep.c: Likewise.
1406 * arch-utils.c: Likewise.
1407 * arm-linux-nat.c: Likewise.
1408 * arm-linux-tdep.c: Likewise.
1409 * arm-tdep.c: Likewise.
1410 * arm-wince-tdep.c: Likewise.
1411 * armbsd-tdep.c: Likewise.
1412 * armnbsd-nat.c: Likewise.
1413 * armnbsd-tdep.c: Likewise.
1414 * armobsd-tdep.c: Likewise.
1415 * avr-tdep.c: Likewise.
1416 * ax-gdb.c: Likewise.
1417 * ax-general.c: Likewise.
1418 * bcache.c: Likewise.
1419 * bfin-tdep.c: Likewise.
1420 * breakpoint.c: Likewise.
1421 * build-id.c: Likewise.
1422 * buildsym.c: Likewise.
1423 * c-exp.y: Likewise.
1424 * c-lang.c: Likewise.
1425 * c-typeprint.c: Likewise.
1426 * c-valprint.c: Likewise.
1427 * charset.c: Likewise.
1428 * cli-out.c: Likewise.
1429 * cli/cli-cmds.c: Likewise.
1430 * cli/cli-decode.c: Likewise.
1431 * cli/cli-dump.c: Likewise.
1432 * cli/cli-interp.c: Likewise.
1433 * cli/cli-logging.c: Likewise.
1434 * cli/cli-script.c: Likewise.
1435 * cli/cli-setshow.c: Likewise.
1436 * cli/cli-utils.c: Likewise.
1437 * coffread.c: Likewise.
1438 * common/agent.c: Likewise.
1439 * common/buffer.c: Likewise.
1440 * common/buffer.h: Likewise.
1441 * common/common-utils.c: Likewise.
1442 * common/filestuff.c: Likewise.
1443 * common/filestuff.c: Likewise.
1444 * common/format.c: Likewise.
1445 * common/print-utils.c: Likewise.
1446 * common/rsp-low.c: Likewise.
1447 * common/signals.c: Likewise.
1448 * common/vec.h: Likewise.
1449 * common/xml-utils.c: Likewise.
1450 * core-regset.c: Likewise.
1451 * corefile.c: Likewise.
1452 * corelow.c: Likewise.
1453 * cp-abi.c: Likewise.
1454 * cp-name-parser.y: Likewise.
1455 * cp-support.c: Likewise.
1456 * cp-valprint.c: Likewise.
1457 * cris-tdep.c: Likewise.
1458 * d-exp.y: Likewise.
1459 * darwin-nat.c: Likewise.
1460 * dbxread.c: Likewise.
1461 * dcache.c: Likewise.
1462 * demangle.c: Likewise.
1463 * dicos-tdep.c: Likewise.
1464 * disasm.c: Likewise.
1465 * doublest.c: Likewise.
1466 * dsrec.c: Likewise.
1467 * dummy-frame.c: Likewise.
1468 * dwarf2-frame.c: Likewise.
1469 * dwarf2loc.c: Likewise.
1470 * dwarf2read.c: Likewise.
1471 * elfread.c: Likewise.
1472 * environ.c: Likewise.
1473 * eval.c: Likewise.
1474 * event-loop.c: Likewise.
1475 * exceptions.c: Likewise.
1476 * exec.c: Likewise.
1477 * expprint.c: Likewise.
1478 * f-exp.y: Likewise.
1479 * f-lang.c: Likewise.
1480 * f-typeprint.c: Likewise.
1481 * f-valprint.c: Likewise.
1482 * fbsd-nat.c: Likewise.
1483 * findcmd.c: Likewise.
1484 * findvar.c: Likewise.
1485 * fork-child.c: Likewise.
1486 * frame.c: Likewise.
1487 * frv-linux-tdep.c: Likewise.
1488 * frv-tdep.c: Likewise.
1489 * gdb.c: Likewise.
1490 * gdb_bfd.c: Likewise.
1491 * gdbarch.c: Likewise.
1492 * gdbarch.sh: Likewise.
1493 * gdbtypes.c: Likewise.
1494 * gnu-nat.c: Likewise.
1495 * gnu-v2-abi.c: Likewise.
1496 * gnu-v3-abi.c: Likewise.
1497 * go-exp.y: Likewise.
1498 * go-lang.c: Likewise.
1499 * go32-nat.c: Likewise.
1500 * guile/guile.c: Likewise.
1501 * guile/scm-auto-load.c: Likewise.
1502 * hppa-hpux-tdep.c: Likewise.
1503 * hppa-linux-nat.c: Likewise.
1504 * hppanbsd-tdep.c: Likewise.
1505 * hppaobsd-tdep.c: Likewise.
1506 * i386-cygwin-tdep.c: Likewise.
1507 * i386-dicos-tdep.c: Likewise.
1508 * i386-linux-tdep.c: Likewise.
1509 * i386-nto-tdep.c: Likewise.
1510 * i386-sol2-tdep.c: Likewise.
1511 * i386-tdep.c: Likewise.
1512 * i386bsd-tdep.c: Likewise.
1513 * i386gnu-nat.c: Likewise.
1514 * i386nbsd-tdep.c: Likewise.
1515 * i386obsd-tdep.c: Likewise.
1516 * i387-tdep.c: Likewise.
1517 * ia64-libunwind-tdep.c: Likewise.
1518 * ia64-linux-nat.c: Likewise.
1519 * inf-child.c: Likewise.
1520 * inf-ptrace.c: Likewise.
1521 * inf-ttrace.c: Likewise.
1522 * infcall.c: Likewise.
1523 * infcmd.c: Likewise.
1524 * inflow.c: Likewise.
1525 * infrun.c: Likewise.
1526 * interps.c: Likewise.
1527 * iq2000-tdep.c: Likewise.
1528 * irix5-nat.c: Likewise.
1529 * jv-exp.y: Likewise.
1530 * jv-lang.c: Likewise.
1531 * jv-typeprint.c: Likewise.
1532 * jv-valprint.c: Likewise.
1533 * language.c: Likewise.
1534 * linux-fork.c: Likewise.
1535 * linux-nat.c: Likewise.
1536 * lm32-tdep.c: Likewise.
1537 * m2-exp.y: Likewise.
1538 * m2-typeprint.c: Likewise.
1539 * m32c-tdep.c: Likewise.
1540 * m32r-linux-nat.c: Likewise.
1541 * m32r-linux-tdep.c: Likewise.
1542 * m32r-rom.c: Likewise.
1543 * m32r-tdep.c: Likewise.
1544 * m68hc11-tdep.c: Likewise.
1545 * m68k-tdep.c: Likewise.
1546 * m68kbsd-tdep.c: Likewise.
1547 * m68klinux-nat.c: Likewise.
1548 * m68klinux-tdep.c: Likewise.
1549 * m88k-tdep.c: Likewise.
1550 * machoread.c: Likewise.
1551 * macrocmd.c: Likewise.
1552 * main.c: Likewise.
1553 * mdebugread.c: Likewise.
1554 * mem-break.c: Likewise.
1555 * memattr.c: Likewise.
1556 * memory-map.c: Likewise.
1557 * mep-tdep.c: Likewise.
1558 * mi/mi-cmd-break.c: Likewise.
1559 * mi/mi-cmd-disas.c: Likewise.
1560 * mi/mi-cmd-env.c: Likewise.
1561 * mi/mi-cmd-stack.c: Likewise.
1562 * mi/mi-cmd-var.c: Likewise.
1563 * mi/mi-cmds.c: Likewise.
1564 * mi/mi-console.c: Likewise.
1565 * mi/mi-getopt.c: Likewise.
1566 * mi/mi-interp.c: Likewise.
1567 * mi/mi-main.c: Likewise.
1568 * mi/mi-parse.c: Likewise.
1569 * microblaze-rom.c: Likewise.
1570 * microblaze-tdep.c: Likewise.
1571 * mingw-hdep.c: Likewise.
1572 * minidebug.c: Likewise.
1573 * minsyms.c: Likewise.
1574 * mips-irix-tdep.c: Likewise.
1575 * mips-linux-tdep.c: Likewise.
1576 * mips-tdep.c: Likewise.
1577 * mips64obsd-tdep.c: Likewise.
1578 * mipsnbsd-tdep.c: Likewise.
1579 * mipsread.c: Likewise.
1580 * mn10300-linux-tdep.c: Likewise.
1581 * mn10300-tdep.c: Likewise.
1582 * monitor.c: Likewise.
1583 * moxie-tdep.c: Likewise.
1584 * mt-tdep.c: Likewise.
1585 * nat/linux-btrace.c: Likewise.
1586 * nat/linux-osdata.c: Likewise.
1587 * nat/linux-procfs.c: Likewise.
1588 * nat/linux-ptrace.c: Likewise.
1589 * nat/linux-waitpid.c: Likewise.
1590 * nbsd-tdep.c: Likewise.
1591 * nios2-linux-tdep.c: Likewise.
1592 * nto-procfs.c: Likewise.
1593 * nto-tdep.c: Likewise.
1594 * objc-lang.c: Likewise.
1595 * objfiles.c: Likewise.
1596 * opencl-lang.c: Likewise.
1597 * osabi.c: Likewise.
1598 * osdata.c: Likewise.
1599 * p-exp.y: Likewise.
1600 * p-lang.c: Likewise.
1601 * p-typeprint.c: Likewise.
1602 * parse.c: Likewise.
1603 * posix-hdep.c: Likewise.
1604 * ppc-linux-nat.c: Likewise.
1605 * ppc-sysv-tdep.c: Likewise.
1606 * ppcfbsd-tdep.c: Likewise.
1607 * ppcnbsd-tdep.c: Likewise.
1608 * ppcobsd-tdep.c: Likewise.
1609 * printcmd.c: Likewise.
1610 * procfs.c: Likewise.
1611 * prologue-value.c: Likewise.
1612 * python/py-auto-load.c: Likewise.
1613 * python/py-gdb-readline.c: Likewise.
1614 * ravenscar-thread.c: Likewise.
1615 * regcache.c: Likewise.
1616 * registry.c: Likewise.
1617 * remote-fileio.c: Likewise.
1618 * remote-m32r-sdi.c: Likewise.
1619 * remote-mips.c: Likewise.
1620 * remote-notif.c: Likewise.
1621 * remote-sim.c: Likewise.
1622 * remote.c: Likewise.
1623 * reverse.c: Likewise.
1624 * rs6000-aix-tdep.c: Likewise.
1625 * ser-base.c: Likewise.
1626 * ser-go32.c: Likewise.
1627 * ser-mingw.c: Likewise.
1628 * ser-pipe.c: Likewise.
1629 * ser-tcp.c: Likewise.
1630 * ser-unix.c: Likewise.
1631 * serial.c: Likewise.
1632 * sh-tdep.c: Likewise.
1633 * sh64-tdep.c: Likewise.
1634 * shnbsd-tdep.c: Likewise.
1635 * skip.c: Likewise.
1636 * sol-thread.c: Likewise.
1637 * solib-dsbt.c: Likewise.
1638 * solib-frv.c: Likewise.
1639 * solib-osf.c: Likewise.
1640 * solib-som.c: Likewise.
1641 * solib-spu.c: Likewise.
1642 * solib-target.c: Likewise.
1643 * solib.c: Likewise.
1644 * somread.c: Likewise.
1645 * source.c: Likewise.
1646 * sparc-nat.c: Likewise.
1647 * sparc-sol2-tdep.c: Likewise.
1648 * sparc-tdep.c: Likewise.
1649 * sparc64-tdep.c: Likewise.
1650 * sparc64fbsd-tdep.c: Likewise.
1651 * sparc64nbsd-tdep.c: Likewise.
1652 * sparcnbsd-tdep.c: Likewise.
1653 * spu-linux-nat.c: Likewise.
1654 * spu-multiarch.c: Likewise.
1655 * spu-tdep.c: Likewise.
1656 * stabsread.c: Likewise.
1657 * stack.c: Likewise.
1658 * std-regs.c: Likewise.
1659 * symfile.c: Likewise.
1660 * symmisc.c: Likewise.
1661 * symtab.c: Likewise.
1662 * target.c: Likewise.
1663 * thread.c: Likewise.
1664 * tilegx-linux-nat.c: Likewise.
1665 * tilegx-tdep.c: Likewise.
1666 * top.c: Likewise.
1667 * tracepoint.c: Likewise.
1668 * tui/tui-command.c: Likewise.
1669 * tui/tui-data.c: Likewise.
1670 * tui/tui-disasm.c: Likewise.
1671 * tui/tui-file.c: Likewise.
1672 * tui/tui-layout.c: Likewise.
1673 * tui/tui-out.c: Likewise.
1674 * tui/tui-regs.c: Likewise.
1675 * tui/tui-source.c: Likewise.
1676 * tui/tui-stack.c: Likewise.
1677 * tui/tui-win.c: Likewise.
1678 * tui/tui-windata.c: Likewise.
1679 * tui/tui-winsource.c: Likewise.
1680 * typeprint.c: Likewise.
1681 * ui-file.c: Likewise.
1682 * ui-out.c: Likewise.
1683 * user-regs.c: Likewise.
1684 * utils.c: Likewise.
1685 * v850-tdep.c: Likewise.
1686 * valarith.c: Likewise.
1687 * valops.c: Likewise.
1688 * valprint.c: Likewise.
1689 * value.c: Likewise.
1690 * varobj.c: Likewise.
1691 * vax-tdep.c: Likewise.
1692 * vaxnbsd-tdep.c: Likewise.
1693 * vaxobsd-tdep.c: Likewise.
1694 * windows-nat.c: Likewise.
1695 * xcoffread.c: Likewise.
1696 * xml-support.c: Likewise.
1697 * xstormy16-tdep.c: Likewise.
1698 * xtensa-linux-nat.c: Likewise.
1699
1700 2014-08-07 Gary Benson <gbenson@redhat.com>
1701
1702 * common/common-defs.h: Include gdb_assert.h.
1703 * aarch64-tdep.c: Do not include gdb_assert.h.
1704 * addrmap.c: Likewise.
1705 * aix-thread.c: Likewise.
1706 * alpha-linux-tdep.c: Likewise.
1707 * alpha-mdebug-tdep.c: Likewise.
1708 * alphanbsd-tdep.c: Likewise.
1709 * amd64-nat.c: Likewise.
1710 * amd64-tdep.c: Likewise.
1711 * amd64bsd-nat.c: Likewise.
1712 * amd64fbsd-nat.c: Likewise.
1713 * amd64fbsd-tdep.c: Likewise.
1714 * amd64nbsd-nat.c: Likewise.
1715 * amd64nbsd-tdep.c: Likewise.
1716 * amd64obsd-nat.c: Likewise.
1717 * amd64obsd-tdep.c: Likewise.
1718 * arch-utils.c: Likewise.
1719 * arm-tdep.c: Likewise.
1720 * armbsd-tdep.c: Likewise.
1721 * auxv.c: Likewise.
1722 * bcache.c: Likewise.
1723 * bfin-tdep.c: Likewise.
1724 * blockframe.c: Likewise.
1725 * breakpoint.c: Likewise.
1726 * bsd-kvm.c: Likewise.
1727 * bsd-uthread.c: Likewise.
1728 * buildsym.c: Likewise.
1729 * c-exp.y: Likewise.
1730 * c-lang.c: Likewise.
1731 * charset.c: Likewise.
1732 * cleanups.c: Likewise.
1733 * cli-out.c: Likewise.
1734 * cli/cli-decode.c: Likewise.
1735 * cli/cli-dump.c: Likewise.
1736 * cli/cli-logging.c: Likewise.
1737 * cli/cli-script.c: Likewise.
1738 * cli/cli-utils.c: Likewise.
1739 * coffread.c: Likewise.
1740 * common/common-utils.c: Likewise.
1741 * common/queue.h: Likewise.
1742 * common/signals.c: Likewise.
1743 * common/vec.h: Likewise.
1744 * complaints.c: Likewise.
1745 * completer.c: Likewise.
1746 * corelow.c: Likewise.
1747 * cp-abi.c: Likewise.
1748 * cp-name-parser.y: Likewise.
1749 * cp-namespace.c: Likewise.
1750 * cp-support.c: Likewise.
1751 * cris-tdep.c: Likewise.
1752 * dbxread.c: Likewise.
1753 * dictionary.c: Likewise.
1754 * doublest.c: Likewise.
1755 * dsrec.c: Likewise.
1756 * dummy-frame.c: Likewise.
1757 * dwarf2-frame-tailcall.c: Likewise.
1758 * dwarf2-frame.c: Likewise.
1759 * dwarf2expr.c: Likewise.
1760 * dwarf2loc.c: Likewise.
1761 * dwarf2read.c: Likewise.
1762 * eval.c: Likewise.
1763 * event-loop.c: Likewise.
1764 * exceptions.c: Likewise.
1765 * expprint.c: Likewise.
1766 * f-valprint.c: Likewise.
1767 * fbsd-nat.c: Likewise.
1768 * findvar.c: Likewise.
1769 * frame-unwind.c: Likewise.
1770 * frame.c: Likewise.
1771 * frv-tdep.c: Likewise.
1772 * gcore.c: Likewise.
1773 * gdb-dlfcn.c: Likewise.
1774 * gdb_bfd.c: Likewise.
1775 * gdbarch.c: Likewise.
1776 * gdbarch.sh: Likewise.
1777 * gdbtypes.c: Likewise.
1778 * gnu-nat.c: Likewise.
1779 * gnu-v3-abi.c: Likewise.
1780 * go-lang.c: Likewise.
1781 * guile/scm-exception.c: Likewise.
1782 * guile/scm-gsmob.c: Likewise.
1783 * guile/scm-lazy-string.c: Likewise.
1784 * guile/scm-math.c: Likewise.
1785 * guile/scm-pretty-print.c: Likewise.
1786 * guile/scm-safe-call.c: Likewise.
1787 * guile/scm-utils.c: Likewise.
1788 * guile/scm-value.c: Likewise.
1789 * h8300-tdep.c: Likewise.
1790 * hppa-hpux-nat.c: Likewise.
1791 * hppa-tdep.c: Likewise.
1792 * hppanbsd-tdep.c: Likewise.
1793 * hppaobsd-tdep.c: Likewise.
1794 * i386-darwin-nat.c: Likewise.
1795 * i386-darwin-tdep.c: Likewise.
1796 * i386-nto-tdep.c: Likewise.
1797 * i386-tdep.c: Likewise.
1798 * i386bsd-nat.c: Likewise.
1799 * i386fbsd-tdep.c: Likewise.
1800 * i386gnu-nat.c: Likewise.
1801 * i386nbsd-tdep.c: Likewise.
1802 * i386obsd-tdep.c: Likewise.
1803 * i387-tdep.c: Likewise.
1804 * ia64-libunwind-tdep.c: Likewise.
1805 * ia64-tdep.c: Likewise.
1806 * inf-ptrace.c: Likewise.
1807 * inf-ttrace.c: Likewise.
1808 * infcall.c: Likewise.
1809 * infcmd.c: Likewise.
1810 * infrun.c: Likewise.
1811 * inline-frame.c: Likewise.
1812 * interps.c: Likewise.
1813 * jv-lang.c: Likewise.
1814 * jv-typeprint.c: Likewise.
1815 * linux-fork.c: Likewise.
1816 * linux-nat.c: Likewise.
1817 * linux-thread-db.c: Likewise.
1818 * m32c-tdep.c: Likewise.
1819 * m32r-linux-nat.c: Likewise.
1820 * m32r-tdep.c: Likewise.
1821 * m68k-tdep.c: Likewise.
1822 * m68kbsd-nat.c: Likewise.
1823 * m68kbsd-tdep.c: Likewise.
1824 * m88k-tdep.c: Likewise.
1825 * machoread.c: Likewise.
1826 * macroexp.c: Likewise.
1827 * macrotab.c: Likewise.
1828 * maint.c: Likewise.
1829 * mdebugread.c: Likewise.
1830 * memory-map.c: Likewise.
1831 * mep-tdep.c: Likewise.
1832 * mi/mi-common.c: Likewise.
1833 * microblaze-tdep.c: Likewise.
1834 * mingw-hdep.c: Likewise.
1835 * mips-linux-nat.c: Likewise.
1836 * mips-linux-tdep.c: Likewise.
1837 * mips-tdep.c: Likewise.
1838 * mips64obsd-tdep.c: Likewise.
1839 * mipsnbsd-tdep.c: Likewise.
1840 * mn10300-linux-tdep.c: Likewise.
1841 * mn10300-tdep.c: Likewise.
1842 * moxie-tdep.c: Likewise.
1843 * mt-tdep.c: Likewise.
1844 * nat/linux-btrace.c: Likewise.
1845 * nat/linux-osdata.c: Likewise.
1846 * nat/linux-ptrace.c: Likewise.
1847 * nat/mips-linux-watch.c: Likewise.
1848 * nios2-linux-tdep.c: Likewise.
1849 * nios2-tdep.c: Likewise.
1850 * objc-lang.c: Likewise.
1851 * objfiles.c: Likewise.
1852 * obsd-nat.c: Likewise.
1853 * opencl-lang.c: Likewise.
1854 * osabi.c: Likewise.
1855 * parse.c: Likewise.
1856 * ppc-linux-nat.c: Likewise.
1857 * ppc-sysv-tdep.c: Likewise.
1858 * ppcfbsd-nat.c: Likewise.
1859 * ppcfbsd-tdep.c: Likewise.
1860 * ppcnbsd-nat.c: Likewise.
1861 * ppcnbsd-tdep.c: Likewise.
1862 * ppcobsd-nat.c: Likewise.
1863 * ppcobsd-tdep.c: Likewise.
1864 * printcmd.c: Likewise.
1865 * procfs.c: Likewise.
1866 * prologue-value.c: Likewise.
1867 * psymtab.c: Likewise.
1868 * python/py-lazy-string.c: Likewise.
1869 * python/py-value.c: Likewise.
1870 * regcache.c: Likewise.
1871 * reggroups.c: Likewise.
1872 * registry.c: Likewise.
1873 * remote-sim.c: Likewise.
1874 * remote.c: Likewise.
1875 * rs6000-aix-tdep.c: Likewise.
1876 * rs6000-tdep.c: Likewise.
1877 * s390-linux-tdep.c: Likewise.
1878 * score-tdep.c: Likewise.
1879 * ser-base.c: Likewise.
1880 * ser-mingw.c: Likewise.
1881 * sh-tdep.c: Likewise.
1882 * sh64-tdep.c: Likewise.
1883 * solib-darwin.c: Likewise.
1884 * solib-spu.c: Likewise.
1885 * solib-svr4.c: Likewise.
1886 * source.c: Likewise.
1887 * sparc-nat.c: Likewise.
1888 * sparc-sol2-tdep.c: Likewise.
1889 * sparc-tdep.c: Likewise.
1890 * sparc64-sol2-tdep.c: Likewise.
1891 * sparc64-tdep.c: Likewise.
1892 * sparc64fbsd-tdep.c: Likewise.
1893 * sparc64nbsd-tdep.c: Likewise.
1894 * sparc64obsd-tdep.c: Likewise.
1895 * sparcnbsd-tdep.c: Likewise.
1896 * sparcobsd-tdep.c: Likewise.
1897 * spu-multiarch.c: Likewise.
1898 * spu-tdep.c: Likewise.
1899 * stabsread.c: Likewise.
1900 * stack.c: Likewise.
1901 * symfile.c: Likewise.
1902 * symtab.c: Likewise.
1903 * target-descriptions.c: Likewise.
1904 * target-memory.c: Likewise.
1905 * target.c: Likewise.
1906 * tic6x-linux-tdep.c: Likewise.
1907 * tic6x-tdep.c: Likewise.
1908 * tilegx-linux-nat.c: Likewise.
1909 * tilegx-tdep.c: Likewise.
1910 * top.c: Likewise.
1911 * tramp-frame.c: Likewise.
1912 * tui/tui-out.c: Likewise.
1913 * tui/tui-winsource.c: Likewise.
1914 * ui-out.c: Likewise.
1915 * user-regs.c: Likewise.
1916 * utils.c: Likewise.
1917 * v850-tdep.c: Likewise.
1918 * valops.c: Likewise.
1919 * value.c: Likewise.
1920 * varobj.c: Likewise.
1921 * vax-nat.c: Likewise.
1922 * xml-syscall.c: Likewise.
1923 * xml-tdesc.c: Likewise.
1924 * xstormy16-tdep.c: Likewise.
1925 * xtensa-linux-nat.c: Likewise.
1926 * xtensa-tdep.c: Likewise.
1927
1928 2014-08-07 Gary Benson <gbenson@redhat.com>
1929
1930 * common/common-defs.h: Include common-utils.h.
1931 * defs.h: Do not include common-utils.h.
1932 * common/gdb_assert.h: Likewise.
1933 * darwin-nat.h: Likewise.
1934 * nat/linux-btrace.c: Likewise.
1935 * target/waitstatus.h: Likewise.
1936
1937 2014-08-07 Gary Benson <gbenson@redhat.com>
1938
1939 * common/common-defs.h: Include ptid.h.
1940 * defs.h: Do not include ptid.h.
1941 * inferior.h: Likewise.
1942 * infrun.h: Likewise.
1943 * nat/linux-btrace.h: Likewise.
1944 * nat/linux-osdata.h: Likewise.
1945 * target/waitstatus.h: Likewise.
1946
1947 2014-08-07 Gary Benson <gbenson@redhat.com>
1948
1949 * common/common-defs.h: Include gdb_locale.h.
1950 * defs.h: Do not include gdb_locale.h.
1951
1952 2014-08-07 Gary Benson <gbenson@redhat.com>
1953
1954 * common/common-defs.h: Include gdb/signals.h.
1955 * defs.h: Do not include gdb/signals.h.
1956
1957 2014-08-07 Gary Benson <gbenson@redhat.com>
1958
1959 * common/common-defs.h: Include pathmax.h.
1960 * defs.h: Do not include pathmax.h.
1961
1962 2014-08-07 Gary Benson <gbenson@redhat.com>
1963
1964 * common/common-defs.h: Include libiberty.h.
1965 * defs.h: Do not include libiberty.h.
1966 * common/queue.h: Likewise.
1967 * cp-name-parser.y: Likewise.
1968 * mi/mi-cmd-catch.c: Likewise.
1969 * python/python.c: Likewise.
1970
1971 2014-08-07 Gary Benson <gbenson@redhat.com>
1972
1973 * common/common-defs.h: Include ansidecl.h.
1974 * defs.h: Do not include ansidecl.h.
1975 * common/buffer.h: Likewise.
1976 * common/common-utils.h: Likewise.
1977
1978 2014-08-07 Gary Benson <gbenson@redhat.com>
1979
1980 * common/common-defs.h: Include stddef.h.
1981 * defs.h: Do not include stddef.h.
1982 * common/common-utils.h: Likewise.
1983 * amd64fbsd-nat.c: Likewise.
1984 * bcache.c: Likewise.
1985 * charset.c: Likewise.
1986 * common/buffer.h: Likewise.
1987 * common/vec.h: Likewise.
1988 * i386bsd-nat.c: Likewise.
1989 * nat/linux-btrace.h: Likewise.
1990 * ppcfbsd-nat.c: Likewise.
1991 * ppcnbsd-tdep.h: Likewise.
1992 * ppcobsd-nat.c: Likewise.
1993 * ppcobsd-tdep.h: Likewise.
1994 * python/py-gdb-readline.c: Likewise.
1995
1996 2014-08-07 Gary Benson <gbenson@redhat.com>
1997
1998 * common/common-defs.h: Include stdarg.h.
1999 * defs.h: Do not include stdarg.h.
2000 * ada-lang.c: Likewise.
2001 * common/common-utils.h: Likewise.
2002 * guile/scm-string.c: Likewise.
2003 * guile/scm-utils.c: Likewise.
2004 * m32c-tdep.c: Likewise.
2005
2006 2014-08-07 Gary Benson <gbenson@redhat.com>
2007
2008 * common/common-defs.h: Include stdlib.h.
2009 * defs.h: Do not include stdlib.h.
2010 * addrmap.c: Likewise.
2011 * bcache.c: Likewise.
2012 * common/buffer.c: Likewise.
2013 * common/common-utils.c: Likewise.
2014 * cp-name-parser.y: Likewise.
2015 * go32-nat.c: Likewise.
2016 * mn10300-linux-tdep.c: Likewise.
2017 * nat/linux-osdata.c: Likewise.
2018 * tui/tui.c: Likewise.
2019 * windows-nat.c: Likewise.
2020
2021 2014-08-07 Gary Benson <gbenson@redhat.com>
2022
2023 * common/common-defs.h: Include stdio.h.
2024 * defs.h: Do not include stdio.h.
2025 * ada-lang.c: Likewise.
2026 * common/buffer.c: Likewise.
2027 * common/common-utils.c: Likewise.
2028 * cp-name-parser.y: Likewise.
2029 * gnu-nat.c: Likewise.
2030 * go32-nat.c: Likewise.
2031 * i386gnu-nat.c: Likewise.
2032 * proc-api.c: Likewise.
2033 * proc-events.c: Likewise.
2034 * proc-flags.c: Likewise.
2035 * proc-why.c: Likewise.
2036 * python/python-internal.h: Likewise.
2037 * target-memory.c: Likewise.
2038 * tui/tui-io.c: Likewise.
2039 * tui/tui.c: Likewise.
2040
2041 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2042
2043 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2044 (scan_dyntag_auxv): Same.
2045
2046 2014-08-06 Yao Qi <yao@codesourcery.com>
2047
2048 * amd64-linux-nat.c: Remove duplicated include
2049 "x86-linux-nat.h".
2050 * i386-linux-nat.c: Likewise.
2051
2052 2014-08-06 Yao Qi <yao@codesourcery.com>
2053
2054 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2055 operand" with "Special opcode" in comments.
2056
2057 2014-08-05 Gary Benson <gbenson@redhat.com>
2058
2059 * interps.c (initialize_interps): Remove prototype.
2060 (interpreter_initialized): Remove static global.
2061 (interp_add): Do not call initialize_interps.
2062 (initialize_interps): Remove function.
2063
2064 2014-08-05 Gary Benson <gbenson@redhat.com>
2065
2066 * utils.c (vwarning): Remove spurious va_end.
2067
2068 2014-08-05 Alan Modra <amodra@gmail.com>
2069
2070 * charset.c (convert_between_encodings): Cast result of obstack_base.
2071 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2072 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2073 (read_unwind_info): Use size_t for some locals.
2074 * jit.c (finalize_symtab): Likewise.
2075 * utils.c (hashtab_obstack_allocate): Likewise.
2076 * symmisc.c (print_objfile_statistics): Update format strings.
2077
2078 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2079
2080 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2081 (Changes in GDB 7.8): ... here.
2082
2083 2014-08-04 Tom Tromey <tromey@redhat.com>
2084
2085 * target.c (set_targetdebug): New function.
2086 (initialize_targets): Pass set_targetdebug when creating "set
2087 debug target".
2088
2089 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2090
2091 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2092 if detecting a variable-sized field that is not the last field.
2093 Fix struct type length computation.
2094
2095 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2096
2097 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2098 Add debug trace.
2099
2100 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2101
2102 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2103 Remove "+ 8" offset in computation of CHAIN_VMA.
2104
2105 2014-07-31 Doug Evans <dje@google.com>
2106
2107 * inflow.c (child_terminal_inferior): Add comment.
2108 (child_terminal_ours_for_output): Add comment.
2109 (child_terminal_ours): Add comment.
2110 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2111 (linux_nat_terminal_ours): Add comment.
2112
2113 2014-07-31 Gary Benson <gbenson@redhat.com>
2114
2115 * common/btrace-common.h: Do not include defs.h or server.h.
2116 * nat/mips-linux-watch.h: Likewise.
2117 * gdb-dlfcn.h: Do not include defs.h.
2118 * tracefile.h: Likewise.
2119
2120 2014-07-30 Roland McGrath <mcgrathr@google.com>
2121
2122 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2123
2124 2014-07-30 Tom Tromey <tromey@redhat.com>
2125
2126 * bsd-kvm.c (bsd_kvm_open): Constify.
2127 * corelow.c (core_open): Constify.
2128 * ctf.c (ctf_open): Constify.
2129 * dbug-rom.c (dbug_open): Constify.
2130 * exec.c (exec_open): Constify.
2131 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2132 * microblaze-rom.c (picobug_open): Constify.
2133 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2134 Constify.
2135 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2136 * record-btrace.c (record_btrace_open): Constify.
2137 * record-full.c (record_full_core_open_1, record_full_open_1)
2138 (record_full_open): Constify.
2139 * remote-m32r-sdi.c (m32r_open): Constify.
2140 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2141 (rockhopper_open, lsi_open): Constify.
2142 * remote-sim.c (gdbsim_open): Constify.
2143 * remote.c (remote_open, extended_remote_open, remote_open_1):
2144 Constify.
2145 * target.h (struct target_ops) <to_open>: Make "arg" const.
2146 * tracefile-tfile.c (tfile_open): Constify.
2147
2148 2014-07-30 Tom Tromey <tromey@redhat.com>
2149
2150 * breakpoint.c (map_breakpoint_numbers): Update.
2151 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2152 (get_number_const): New function.
2153 (get_number): Rewrite using get_number_const.
2154 (init_number_or_range): Make "string" const.
2155 (number_is_in_list): Make "list" const.
2156 * cli/cli-utils.h (get_number_const): Declare.
2157 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2158 (init_number_or_range, number_is_in_list): Update.
2159 * printcmd.c (map_display_numbers): Update.
2160 * value.c (value_from_history_ref): Constify.
2161 * value.h (value_from_history_ref): Update.
2162
2163 2014-07-30 Tom Tromey <tromey@redhat.com>
2164
2165 * corefile.c (hook_type, call_extra_exec_file_hooks)
2166 (specify_exec_file_hook): Constify.
2167 * exec.c (exec_file_attach): Make "filename" const.
2168 * gdbcore.h (deprecated_exec_file_display_hook)
2169 (specify_exec_file_hook, exec_file_attach): Constify.
2170 * main.c (captured_main): Use catch_command_errors_const.
2171
2172 2014-07-30 Tom Tromey <tromey@redhat.com>
2173
2174 * target.c (open_target): New function.
2175 (add_target_with_completer, add_deprecated_target_alias): Use
2176 set_cmd_sfunc, set_cmd_context.
2177 (debug_to_open): Remove.
2178 (setup_target_debug): Update.
2179
2180 2014-07-30 Yao Qi <yao@codesourcery.com>
2181
2182 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2183 comments.
2184 * parse.c (exp_iterate): Update comments.
2185
2186 2014-07-30 Gary Benson <gbenson@redhat.com>
2187
2188 * common/common-defs.h: New file.
2189 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2190 * defs.h: Include common-defs.h.
2191 Do not include config.h or build-gnulib/config.h.
2192
2193 2014-07-30 Gary Benson <gbenson@redhat.com>
2194
2195 * common/common-utils.h: Do not include config.h.
2196 * nat/linux-btrace.h: Likewise.
2197
2198 2014-07-30 Gary Benson <gbenson@redhat.com>
2199
2200 * btrace.c: Include defs.h.
2201 * common/ptid.c: Include defs.h or server.h as appropriate.
2202 * nat/mips-linux-watch.c: Likewise.
2203
2204 2014-07-29 Tom Tromey <tromey@redhat.com>
2205
2206 * target.c (target_is_pushed): Simplify.
2207
2208 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2209
2210 GDB 7.8 released.
2211
2212 2014-07-29 Yao Qi <yao@codesourcery.com>
2213
2214 PR gdb/17206
2215 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2216
2217 2014-07-28 Doug Evans <xdje42@gmail.com>
2218
2219 PR guile/17203
2220 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2221 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2222 parameters.
2223
2224 2014-07-28 Will Newton <will.newton@linaro.org>
2225
2226 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2227 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2228 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2229 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2230 (THUMB2_EABI_SYSCALL): Likewise.
2231 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2232 struct tramp_frame.
2233 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2234 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2235
2236 2014-07-27 Doug Evans <xdje42@gmail.com>
2237
2238 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2239
2240 2014-07-27 Doug Evans <xdje42@gmail.com>
2241
2242 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2243
2244 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2245 Doug Evans <xdje42@gmail.com>
2246
2247 PR guile/17146
2248 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2249 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2250 * configure.ac: Try to use guild to compile an scm file, if it fails
2251 then disable guile support.
2252 * configure: Regenerate.
2253 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2254 GUILE_FILE_LIST.
2255 (GUILE_COMPILED_FILES): New variable.
2256 (GUILE_FILES) Update.
2257 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2258 (stamp-guile): Compile scm files.
2259 * guile/guile.c (boot_guile_support): New function.
2260 (standard_throw_args_p): New function.
2261 (print_standard_throw_error, print_throw_error): New functions.
2262 (handle_boot_error): New function.
2263 (initialize_scheme_side): Rewrite to call boot_guile_support.
2264 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2265 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2266
2267 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2268 Doug Evans <xdje42@gmail.com>
2269
2270 PR guile/17146
2271 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2272 * guile/lib/gdb/support.scm: New file.
2273 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2274 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2275 All uses updated.
2276 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2277 All uses updated.
2278 (%assert-type): Ditto, and renamed to assert-type.
2279 (%exception-print-style): Delete.
2280
2281 2014-07-26 Doug Evans <xdje42@gmail.com>
2282
2283 PR build/17105
2284 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2285 * configure: Regenerate.
2286 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2287 PYTHON_FILES.
2288 (PYTHON_FILES): New variable.
2289 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2290 (GUILE_FILES): New variable.
2291 (stamp-python, install-python, uninstall-python): Handle empty
2292 file list.
2293 (stamp-guile, install-guile, uninstall-guile): Ditto.
2294
2295 2014-07-26 Doug Evans <xdje42@gmail.com>
2296
2297 PR guile/17177
2298 * guile/lib/gdb.scm (pretty-printers): Export.
2299 (set-pretty-printers!): Export.
2300 * guile/lib/gdb/printing.scm (gdb module): Update.
2301 (prepend-pretty-printer!, append-pretty-printer!): Update.
2302 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2303 (pretty_printer_list_var): Delete.
2304 (pretty_printer_list): New static global.
2305 (gdbscm_pretty_printers): New function.
2306 (gdbscm_set_pretty_printers_x): New function.
2307 (ppscm_find_pretty_printer_from_gdb): Update.
2308 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2309 (gdbscm_initialize_pretty_printers): Update.
2310
2311 2014-07-26 Doug Evans <xdje42@gmail.com>
2312
2313 PR 17185
2314 * configure.ac: Add check for header gc/gc.h.
2315 Add check for function setenv.
2316 * configure: Regenerate.
2317 * config.in: Regenerate.
2318 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2319
2320 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2321
2322 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2323 variation in gdbarch matching.
2324
2325 2014-07-25 Tom Tromey <tromey@redhat.com>
2326
2327 * exec.c (using_exec_ops): Remove.
2328 (exec_close_1): Update. Remove extraneous block, reindent.
2329 (add_target_sections): Use target_is_pushed.
2330
2331 2014-07-25 Pedro Alves <palves@redhat.com>
2332
2333 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2334 * monitor.c (monitor_create_inferior): Likewise.
2335 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2336 * remote-sim.c (gdbsim_create_inferior): Likewise.
2337 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2338 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2339 * windows-nat.c (do_initial_windows_stuff): Likewise.
2340
2341 2014-07-25 Pedro Alves <palves@redhat.com>
2342
2343 * NEWS: Mention signal passing and "signal" command changes.
2344 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2345 comment.
2346 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2347 call.
2348 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2349 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2350 (jump_command): Adjust clear_proceed_status call.
2351 (signal_command): Warn if other thread that are resumed have
2352 signals that will be delivered. Adjust clear_proceed_status call.
2353 (until_next_command, finish_command)
2354 (proceed_after_attach_callback, attach_command_post_wait)
2355 (attach_command): Adjust clear_proceed_status call.
2356 * infrun.c (proceed_after_vfork_done): Likewise.
2357 (proceed_after_attach_callback): Adjust comment.
2358 (clear_proceed_status_thread): Clear stop_signal if not in pass
2359 state.
2360 (clear_proceed_status_callback): Delete.
2361 (clear_proceed_status): New 'step' parameter. Only clear the
2362 proceed status of threads the command being prepared is about to
2363 resume.
2364 (proceed): If passed in an explicit signal, override stop_signal
2365 with it. Don't pass the last stop signal to the thread we're
2366 resuming.
2367 (init_wait_for_inferior): Adjust clear_proceed_status call.
2368 (switch_back_to_stepped_thread): Clear the signal if it should not
2369 be passed.
2370 * infrun.h (clear_proceed_status): New 'step' parameter.
2371 (user_visible_resume_ptid): Add comment.
2372 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2373 signal is in pass state.
2374 * remote.c (append_pending_thread_resumptions): Likewise.
2375 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2376
2377 2014-07-25 Tom Tromey <tromey@redhat.com>
2378
2379 * target.h (target_stopped_data_address)
2380 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2381 parentheses.
2382
2383 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2384
2385 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2386 comments.
2387 (avr_pointer_to_address): Likewise.
2388
2389 2014-07-24 Tom Tromey <tromey@redhat.com>
2390
2391 * monitor.c (compile_pattern): Update.
2392 * target.h (struct target_ops) <to_shortname, to_longname,
2393 to_doc>: Now const.
2394
2395 2014-07-24 Tom Tromey <tromey@redhat.com>
2396
2397 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2398 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2399 (add_info_alias, add_com): Make "doc" const.
2400 (print_doc_line): Make "str" const.
2401 (delete_cmd): Update.
2402 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2403 (print_doc_line): Update.
2404 * cli/cli-script.c (document_command): Update.
2405 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2406 (add_com, add_info, add_info_alias): Update.
2407 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2408 * python/py-cmd.c (cmdpy_destroyer): Update.
2409
2410 2014-07-24 Tom Tromey <tromey@redhat.com>
2411
2412 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2413 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2414 (help_cmd_list): Constify.
2415 (lookup_cmd): Update.
2416 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2417 const.
2418 (help_cmd_list, apropos_cmd): Update.
2419 * cli/cli-script.c (show_user): Update.
2420 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2421 * cli/cli-setshow.h (cmd_show_list): Update.
2422 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2423 (cmd_show_list): Update.
2424 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2425 * python/py-cmd.c (cmdpy_destroyer): Update.
2426
2427 2014-07-24 Tom Tromey <tromey@redhat.com>
2428
2429 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2430 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2431 const.
2432 * command.h (deprecate_cmd): Update.
2433 * maint.c (maintenance_do_deprecate): Add casts.
2434
2435 2014-07-24 Tom Tromey <tromey@redhat.com>
2436
2437 * cli/cli-decode.c (help_cmd): Make parameter "const".
2438 * cli/cli-decode.h (help_cmd): Update.
2439
2440 2014-07-24 Tom Tromey <tromey@redhat.com>
2441
2442 * stack.c (up_silently_base, down_silently_base): Make argument
2443 const.
2444
2445 2014-07-24 Tom Tromey <tromey@redhat.com>
2446
2447 * solib.c (solib_add): Make "pattern" const.
2448 * solib.h (solib_add): Update.
2449
2450 2014-07-24 Tom Tromey <tromey@redhat.com>
2451
2452 * remote.c (remote_serial_open, print_packet, putpkt)
2453 (putpkt_binary): Constify.
2454 * remote.h (putpkt): Update.
2455
2456 2014-07-24 Tom Tromey <tromey@redhat.com>
2457
2458 * monitor.c (monitor_open): Make "args" const.
2459 * monitor.h (monitor_open): Update.
2460
2461 2014-07-24 Tom Tromey <tromey@redhat.com>
2462
2463 * maint.c (match_bfd_flags): Make "string" const.
2464 (print_bfd_section_info): Remove casts.
2465 (print_objfile_section_info): Make "string" const.
2466
2467 2014-07-24 Tom Tromey <tromey@redhat.com>
2468
2469 * inf-child.c (inf_child_open_target): Make "arg" const.
2470 * inf-child.h (inf_child_open_target): Update.
2471
2472 2014-07-24 Tom Tromey <tromey@redhat.com>
2473
2474 * environ.c (unset_in_environ): Make "var" const.
2475 * environ.h (unset_in_environ): Update.
2476
2477 2014-07-24 Tom Tromey <tromey@redhat.com>
2478
2479 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2480 Make "cmd" const.
2481 (scan_filename_with_cleanup): Likewise.
2482 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2483 Make arguments const.
2484 (restore_command): Update.
2485
2486 2014-07-24 Pedro Alves <palves@redhat.com>
2487
2488 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2489
2490 2014-07-24 Tom Tromey <tromey@redhat.com>
2491 Gary Benson <gbenson@redhat.com>
2492
2493 * nat/linux-ptrace.c (additional_flags): New global.
2494 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2495 additional_flags; don't check GDBSERVER.
2496 (linux_ptrace_set_additional_flags): New function.
2497 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2498 Declare.
2499 * linux-nat.c (_initialize_linux_nat): Call
2500 linux_ptrace_set_additional_flags.
2501
2502 2014-07-24 Tom Tromey <tromey@redhat.com>
2503
2504 * make-target-delegates (munge_type, write_debugmethod): New
2505 functions.
2506 (debug_names): New global.
2507 ($TARGET_DEBUG_PRINTER): New global.
2508 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2509 name.
2510 Write debug methods. Generate init_debug_target.
2511 * target-debug.h: New file.
2512 * target-delegates.c: Rebuild.
2513 * target.c: Include target-debug.h.
2514 (debug_target): Hoist definition.
2515 (target_kill, target_get_section_table, target_memory_map)
2516 (target_flash_erase, target_flash_done, target_detach)
2517 (target_disconnect, target_wait, target_resume)
2518 (target_pass_signals, target_program_signals, target_follow_fork)
2519 (target_mourn_inferior, target_search_memory)
2520 (target_thread_address_space, target_close)
2521 (target_find_new_threads, target_core_of_thread)
2522 (target_verify_memory, target_insert_mask_watchpoint)
2523 (target_remove_mask_watchpoint): Remove targetdebug code.
2524 (debug_to_post_attach, debug_to_prepare_to_store)
2525 (debug_to_files_info, debug_to_insert_breakpoint)
2526 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2527 (debug_to_region_ok_for_hw_watchpoint)
2528 (debug_to_can_accel_watchpoint_condition)
2529 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2530 (debug_to_watchpoint_addr_within_range)
2531 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2532 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2533 (debug_to_terminal_init, debug_to_terminal_inferior)
2534 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2535 (debug_to_terminal_save_ours, debug_to_terminal_info)
2536 (debug_to_load, debug_to_post_startup_inferior)
2537 (debug_to_insert_fork_catchpoint)
2538 (debug_to_remove_fork_catchpoint)
2539 (debug_to_insert_vfork_catchpoint)
2540 (debug_to_remove_vfork_catchpoint)
2541 (debug_to_insert_exec_catchpoint)
2542 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2543 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2544 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2545 (setup_target_debug): Call init_debug_target.
2546 * target.h (TARGET_DEBUG_PRINTER): New macro.
2547 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2548 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2549
2550 2014-07-24 Gary Benson <gbenson@redhat.com>
2551
2552 * exceptions.h (throw_vfatal): Renamed to...
2553 (throw_vquit): New declaration.
2554 (throw_quit): Likewise.
2555 * exceptions.c (throw_vfatal): Renamed to...
2556 (throw_vquit): New function.
2557 (throw_quit): Likewise.
2558 (throw_error): Call throw_verror rather than throw_it.
2559 * utils.h (vfatal): Removed.
2560 (fatal): Likewise.
2561 * utils.c (vfatal): Removed.
2562 (fatal): Likewise.
2563 (internal_verror): Replaced call to fatal with call to throw_quit.
2564 (quit): Replaced calls to fatal with calls to throw_quit.
2565
2566 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2567
2568 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2569 target_read_code.
2570
2571 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2572
2573 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2574 less than zero in conditional expression.
2575
2576 2014-07-23 Tom Tromey <tromey@redhat.com>
2577
2578 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2579 ($INTRO_PART): Don't match whitespace.
2580 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2581 argument matching.
2582 ($METHOD): Add $METHOD_TRAILER.
2583 (trim): Rewrite.
2584 (scan_target_h): New sub.
2585 Change main loop not to collect state.
2586 * target-delegates.c: Rebuild.
2587
2588 2014-07-23 Gary Benson <gbenson@redhat.com>
2589
2590 * cp-support.c (gdb_demangle): Fix build on systems without
2591 sigaltstack.
2592
2593 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2594
2595 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2596 for reference entry value target data value.
2597
2598 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2599
2600 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2601 value_available_contents_eq.
2602
2603 2014-07-22 Pedro Alves <palves@redhat.com>
2604
2605 * value.c (allocate_optimized_out_value): Don't mark value as
2606 non-lazy.
2607
2608 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2609
2610 * MAINTAINERS (Write After Approval): Update my email address.
2611
2612 2014-07-20 Doug Evans <dje@google.com>
2613
2614 PR server/17147
2615 * remote.c (putpkt_binary): Add text to error message.
2616
2617 2014-07-20 Yao Qi <yao@codesourcery.com>
2618
2619 * eval.c: Remove "Chill" from comments.
2620 * gdbtypes.h: Likewise.
2621 * symtab.h: Likewise.
2622
2623 2014-07-20 Yao Qi <yao@codesourcery.com>
2624
2625 * std-operator.def: Update comments to TERNOP_SLICE.
2626
2627 2014-07-20 Yao Qi <yao@codesourcery.com>
2628
2629 * std-operator.def: Remove BINOP_RANGE.
2630 * breakpoint.c (watchpoint_exp_is_const): Update.
2631 * expprint.c (dump_subexp_body_standard): Likewise.
2632 * eval.c (init_array_element): Remove dead code.
2633 (evaluate_subexp_standard): Likewise.
2634
2635 2014-07-20 Yao Qi <yao@codesourcery.com>
2636
2637 * std-operator.def: Remove BINOP_IN.
2638 * breakpoint.c (watchpoint_exp_is_const): Update.
2639 * eval.c (evaluate_subexp_standard): Likewise.
2640 * expprint.c (dump_subexp_body_standard): Likewise.
2641
2642 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2643
2644 * microblaze-tdep.c (microblaze_register_names): Add
2645 the rshr and rslr register names.
2646 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2647 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2648 Use of tdesc_numbered_register. Use of
2649 microblaze_register_g_packet_guesses. Use of
2650 tdesc_use_registers. Use of set_gdbarch_register_type.
2651 (microblaze_register_g_packet_guesses): New.
2652 * microblaze-tdep.h (microblaze_reg_num): Add
2653 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2654 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2655 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2656 * features/microblaze-core.xml: New file.
2657 * features/microblaze-stack-protect.xml: New file.
2658 * features/microblaze-with-stack-protect.c: New file.
2659 * features/microblaze-with-stack-protect.xml: New file.
2660 * features/microblaze.xml: New file.
2661 * features/microblaze.c: New file.
2662 * features/Makefile (microblaze-with-stack-protect): Add
2663 microblaze-with-stack-protect microblaze and microblaze-expedite.
2664 * regformats/microblaze-with-stack-protect.dat: New file.
2665 * regformats/microblaze.dat: New file.
2666 * doc/gdb.texinfo (MicroBlaze Features): Added.
2667
2668 2014-07-18 Tom Tromey <tromey@redhat.com>
2669
2670 * exec.c (exec_ops): Now static.
2671 * exec.h (exec_ops): Don't declare.
2672
2673 2014-07-18 Tom Tromey <tromey@redhat.com>
2674
2675 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2676 to find_target_beneath.
2677 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2678 find_target_beneath.
2679 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2680
2681 2014-07-18 Tom Tromey <tromey@redhat.com>
2682
2683 PR gdb/17130:
2684 * utils.c (quit): Use target_supports_terminal_ours.
2685 * target.h (target_supports_terminal_ours): Declare.
2686 * target.c (target_supports_delete_record): Don't check
2687 to_delete_record against NULL.
2688 (target_supports_terminal_ours): New function.
2689
2690 2014-07-18 Tom Tromey <tromey@redhat.com>
2691
2692 PR gdb/17130:
2693 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2694 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2695 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2696 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2697 * windows-nat.c (windows_xfer_partial): Always delegate.
2698 * record-btrace.c (record_btrace_xfer_partial): Simplify
2699 delegation.
2700 (record_btrace_fetch_registers, record_btrace_store_registers)
2701 (record_btrace_prepare_to_store, record_btrace_resume)
2702 (record_btrace_wait, record_btrace_find_new_threads)
2703 (record_btrace_thread_alive): Likewise.
2704 * procfs.c (procfs_xfer_partial): Always delegate.
2705 * corelow.c (core_xfer_partial): Always delegate.
2706 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2707
2708 2014-07-18 Tom Tromey <tromey@redhat.com>
2709
2710 * exec.c (exec_make_note_section): Move earlier.
2711
2712 2014-07-17 Doug Evans <dje@google.com>
2713
2714 PR gdb/17170
2715 * maint.c (count_symtabs_and_blocks): Handle NULL
2716 current_program_space.
2717 (report_command_stats): Check global enabled flag in addition to
2718 recorded enabled flag.
2719 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2720
2721 2014-07-16 Pedro Alves <palves@redhat.com>
2722
2723 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2724
2725 2014-07-16 Tom Tromey <tromey@redhat.com>
2726
2727 * target.h (struct target_ops) <to_delete_record>: Reformat
2728 comment.
2729
2730 2014-07-16 Tom Tromey <tromey@redhat.com>
2731
2732 * target-delegates.c: Rebuild.
2733
2734 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2735
2736 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2737 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2738 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2739 (avr_pointer_to_address): Likewise.
2740 (avr_address_class_type_flags): New function.
2741 (avr_address_class_type_flags_to_name): Likewise.
2742 (avr_address_class_name_to_type_flags): Likewise.
2743 (avr_gdbarch_init): Set address_class_type_flags,
2744 address_class_type_flags_to_name and
2745 address_class_name_to_type_flags.
2746
2747 2014-07-15 Pedro Alves <palves@redhat.com>
2748
2749 * linux-nat.c (kill_callback): Save errno and work with saved
2750 copy.
2751
2752 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2753
2754 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2755
2756 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2757
2758 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2759 breakpoint support correctly.
2760
2761 2014-07-14 Pedro Alves <palves@redhat.com>
2762
2763 * utils.c (prompt_for_continue): Call target_terminal_ours.
2764
2765 2014-07-14 Pedro Alves <palves@redhat.com>
2766
2767 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2768 catch_errors. Don't re-enable stdin or notify observers where,
2769 and rethrow error.
2770 (fetch_inferior_event_wrapper): Delete.
2771
2772 2014-07-14 Pedro Alves <palves@redhat.com>
2773
2774 PR gdb/17072
2775 * top.c: Include "inf-loop.h".
2776 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2777 field.
2778 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2779 was async before.
2780 (gdb_readline_wrapper): Store whether the target is async, and
2781 make it sync.
2782
2783 2014-07-14 Pedro Alves <palves@redhat.com>
2784
2785 PR gdb/17072
2786 * top.c (gdb_readline_wrapper_line): Tweak comment.
2787 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2788 the input handler callback.
2789
2790 2014-07-14 Pedro Alves <palves@redhat.com>
2791
2792 PR gdb/17072
2793 * main.c: Include event-top.h.
2794 (handle_command_errors): New function.
2795 (catch_command_errors, catch_command_errors_const): Use it.
2796
2797 2014-07-14 Pedro Alves <palves@redhat.com>
2798
2799 * exceptions.c (catch_command_errors, catch_command_errors_const):
2800 Moved to main.c.
2801 * exceptions.h (catch_command_errors_ftype)
2802 (catch_command_errors_const_ftype): Moved to main.c.
2803 (catch_command_errors, catch_command_errors_const): Delete
2804 declarations.
2805 * main.c (catch_command_errors_ftype)
2806 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2807 (catch_command_errors, catch_command_errors_const)): Moved here
2808 from exceptions.c and make static.
2809
2810 2014-07-14 Pedro Alves <palves@redhat.com>
2811
2812 * exceptions.c (print_any_exception): Delete.
2813 (catch_exceptions_with_msg): Use exception_print instead of
2814 print_any_exception.
2815 (catch_errors): Use exception_fprintf instead of
2816 print_any_exception.
2817 (catch_command_errors, catch_command_errors_const): Use
2818 exception_print instead of print_any_exception.
2819
2820 2014-07-14 Pedro Alves <palves@redhat.com>
2821
2822 * infcall.c (run_inferior_call): Set 'sync_execution' while
2823 running the inferior call.
2824
2825 2014-07-14 Pedro Alves <palves@redhat.com>
2826
2827 * value.c (value_contents_equal): Delete function.
2828 * value.h (value_contents_equal): Delete declaration.
2829
2830 2014-07-14 Tom Tromey <tromey@redhat.com>
2831
2832 PR exp/17106:
2833 * gdbtypes.c (is_dynamic_type_internal): New function, from
2834 is_dynamic_type.
2835 (is_dynamic_type): Rewrite.
2836 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2837 (resolve_dynamic_struct): Likewise.
2838 (resolve_dynamic_type_internal): New function, from
2839 resolve_dynamic_type.
2840 (resolve_dynamic_type): Rewrite.
2841
2842 2014-07-14 Tom Tromey <tromey@redhat.com>
2843
2844 * target.c (target_require_runnable): Also check record_stratum.
2845 Update comment.
2846
2847 2014-07-11 Yao Qi <yao@codesourcery.com>
2848
2849 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2850 thumb_instruction_restores_sp return true.
2851
2852 2014-07-11 Yao Qi <yao@codesourcery.com>
2853
2854 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2855 (thumb_in_function_epilogue_p): Call
2856 thumb_instruction_restores_sp.
2857
2858 2014-07-11 Yao Qi <yao@codesourcery.com>
2859
2860 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2861 'add sp, #imm'.
2862 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2863
2864 2014-07-11 Gary Benson <gbenson@redhat.com>
2865
2866 * amd64-linux-nat.c (gdbcore.h): Remove include.
2867 (regset.h): Likewise.
2868 (nat/linux-btrace.h): Likewise.
2869 (btrace.h): Likewise.
2870 (gdb_assert.h): Likewise.
2871 (string.h): Likewise.
2872 (sys/uio.h): Likewise.
2873 (sys/debugreg.h): Likewise.
2874 (sys/syscall.h): Likewise.
2875 (sys/procfs.h): Likewise.
2876 (sys/user.h): Likewise.
2877 (asm/ptrace.h): Likewise.
2878 (i386-nat.h): Likewise.
2879 * i386-linux-nat.c (i386-nat.h): Likewise.
2880 (regset.h): Likewise.
2881 (target.h): Likewise.
2882 (linux-nat.h): Likewise.
2883 (nat/linux-btrace.h): Likewise.
2884 (btrace.h): Likewise.
2885 (gdb_assert.h): Likewise.
2886 (string.h): Likewise.
2887 (sys/uio.h): Likewise.
2888 (sys/user.h): Likewise.
2889 (sys/procfs.h): Likewise.
2890 (sys/reg.h): Likewise.
2891 (sys/debugreg.h): Likewise.
2892 (ORIG_EAX): Remove definition.
2893
2894 2014-07-11 Gary Benson <gbenson@redhat.com>
2895
2896 * i386-linux-nat.h: New file.
2897 * x86-linux-nat.h: Likewise.
2898 * x86-linux-nat.c: Likewise.
2899 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2900 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2901 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2902 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2903 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2904 (PTRACE_SETREGSET): Likewise.
2905 (arch_lwp_info): Now in x86-linux-nat.c.
2906 (have_ptrace_getregset): Now in x86-linux-nat.h.
2907 (x86_linux_dr_get): Now in x86-linux-nat.c.
2908 (x86_linux_dr_set): Likewise.
2909 (x86_linux_dr_get_addr): Likewise.
2910 (x86_linux_dr_get_control): Likewise.
2911 (x86_linux_dr_get_status): Likewise.
2912 (update_debug_registers_callback): Likewise.
2913 (x86_linux_dr_set_control): Likewise.
2914 (x86_linux_dr_set_addr): Likewise.
2915 (x86_linux_prepare_to_resume): Likewise.
2916 (x86_linux_new_thread): Likewise.
2917 (x86_linux_new_fork): Likewise.
2918 (x86_linux_get_thread_area): Likewise.
2919 (super_post_startup_inferior): Likewise.
2920 (x86_linux_child_post_startup_inferior): Likewise.
2921 (AMD64_LINUX_USER64_CS): Likewise.
2922 (AMD64_LINUX_X32_DS): Likewise.
2923 (x86_linux_read_description): Likewise.
2924 (x86_linux_enable_btrace): Likewise.
2925 (x86_linux_disable_btrace): Likewise.
2926 (x86_linux_teardown_btrace): Likewise.
2927 (x86_linux_read_btrace): Likewise.
2928 (x86_linux_create_target): Likewise.
2929 (x86_linux_add_target): Likewise.
2930 * i386-linux-nat.c (x86-linux-nat.h): New include.
2931 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2932 (PTRACE_SETREGSET): Likewise.
2933 (arch_lwp_info): Now in x86-linux-nat.c.
2934 (have_ptrace_getregset): Now in x86-linux-nat.h.
2935 (x86_linux_dr_get): Now in x86-linux-nat.c.
2936 (x86_linux_dr_set): Likewise.
2937 (x86_linux_dr_get_addr): Likewise.
2938 (x86_linux_dr_get_control): Likewise.
2939 (x86_linux_dr_get_status): Likewise.
2940 (update_debug_registers_callback): Likewise.
2941 (x86_linux_dr_set_control): Likewise.
2942 (x86_linux_dr_set_addr): Likewise.
2943 (x86_linux_prepare_to_resume): Likewise.
2944 (x86_linux_new_thread): Likewise.
2945 (x86_linux_new_fork): Likewise.
2946 (x86_linux_get_thread_area): Likewise.
2947 (super_post_startup_inferior): Likewise.
2948 (x86_linux_child_post_startup_inferior): Likewise.
2949 (AMD64_LINUX_USER64_CS): Likewise.
2950 (AMD64_LINUX_X32_DS): Likewise.
2951 (x86_linux_read_description): Likewise.
2952 (x86_linux_enable_btrace): Likewise.
2953 (x86_linux_disable_btrace): Likewise.
2954 (x86_linux_teardown_btrace): Likewise.
2955 (x86_linux_read_btrace): Likewise.
2956 (x86_linux_create_target): Likewise.
2957 (x86_linux_add_target): Likewise.
2958
2959 2014-07-11 Gary Benson <gbenson@redhat.com>
2960
2961 * amd64-linux-nat.c: Comment and whitespace changes.
2962 * i386-linux-nat.c: Comment and whitespace changes.
2963
2964 2014-07-11 Gary Benson <gbenson@redhat.com>
2965
2966 * amd64-linux-nat.c (x86_linux_create_target): New function.
2967 (x86_linux_add_target): Likewise.
2968 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2969 * i386-linux-nat.c (x86_linux_create_target): New function.
2970 (x86_linux_add_target): Likewise.
2971 (_initialize_i386_linux_nat): Delegate to the above new functions.
2972
2973 2014-07-11 Gary Benson <gbenson@redhat.com>
2974
2975 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2976 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2977 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2978 (ps_get_thread_area): Delegate to the above.
2979
2980 2014-07-11 Gary Benson <gbenson@redhat.com>
2981
2982 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2983 x86_linux_read_description. All uses updated. amd64-specific
2984 code conditionalized. Conditionalized i386-specific code added.
2985 Redundant cast removed.
2986 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2987 x86_linux_read_description. All uses updated. i386-specific
2988 code conditionalized. Conditionalized amd64-specific code added.
2989 One sizeof replaced with the actual type it is describing.
2990
2991 2014-07-11 Gary Benson <gbenson@redhat.com>
2992
2993 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2994 x86_linux_dr_get. All uses updated.
2995 (amd64_linux_dr_set): Renamed to
2996 x86_linux_dr_set. All uses updated.
2997 (amd64_linux_dr_get_addr): Renamed to
2998 x86_linux_dr_get_addr. All uses updated.
2999 (amd64_linux_dr_get_control): Renamed to
3000 x86_linux_dr_get_control. All uses updated.
3001 (amd64_linux_dr_get_status): Renamed to
3002 x86_linux_dr_get_status. All uses updated.
3003 (amd64_linux_dr_set_control): Renamed to
3004 x86_linux_dr_set_control. All uses updated.
3005 (amd64_linux_dr_set_addr): Renamed to
3006 x86_linux_dr_set_addr. All uses updated.
3007 (amd64_linux_prepare_to_resume): Renamed to
3008 x86_linux_prepare_to_resume. All uses updated.
3009 (amd64_linux_new_thread): Renamed to
3010 x86_linux_new_thread. All uses updated.
3011 (amd64_linux_new_fork): Renamed to
3012 x86_linux_new_fork. All uses updated.
3013 (amd64_linux_child_post_startup_inferior): Renamed to
3014 x86_linux_child_post_startup_inferior. All uses updated.
3015 (amd64_linux_enable_btrace): Renamed to
3016 x86_linux_enable_btrace. All uses updated.
3017 (amd64_linux_disable_btrace): Renamed to
3018 x86_linux_disable_btrace. All uses updated.
3019 (amd64_linux_teardown_btrace): Renamed to
3020 x86_linux_teardown_btrace. All uses updated.
3021 (amd64_linux_read_btrace): Renamed to
3022 x86_linux_read_btrace. All uses updated.
3023 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3024 x86_linux_dr_get. All uses updated.
3025 (i386_linux_dr_set): Renamed to
3026 x86_linux_dr_set. All uses updated.
3027 (i386_linux_dr_get_addr): Renamed to
3028 x86_linux_dr_get_addr. All uses updated.
3029 (i386_linux_dr_get_control): Renamed to
3030 x86_linux_dr_get_control. All uses updated.
3031 (i386_linux_dr_get_status): Renamed to
3032 x86_linux_dr_get_status. All uses updated.
3033 (i386_linux_dr_set_control): Renamed to
3034 x86_linux_dr_set_control. All uses updated.
3035 (i386_linux_dr_set_addr): Renamed to
3036 x86_linux_dr_set_addr. All uses updated.
3037 (i386_linux_prepare_to_resume): Renamed to
3038 x86_linux_prepare_to_resume. All uses updated.
3039 (i386_linux_new_thread): Renamed to
3040 x86_linux_new_thread. All uses updated.
3041 (i386_linux_new_fork): Renamed to
3042 x86_linux_new_fork. All uses updated.
3043 (i386_linux_child_post_startup_inferior): Renamed to
3044 x86_linux_child_post_startup_inferior. All uses updated.
3045 (i386_linux_enable_btrace): Renamed to
3046 x86_linux_enable_btrace. All uses updated.
3047 (i386_linux_disable_btrace): Renamed to
3048 x86_linux_disable_btrace. All uses updated.
3049 (i386_linux_teardown_btrace): Renamed to
3050 x86_linux_teardown_btrace. All uses updated.
3051 (i386_linux_read_btrace): Renamed to
3052 x86_linux_read_btrace. All uses updated.
3053
3054 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3055
3056 * remote.c (extended_remote_post_attach): New function.
3057 (init_extended_remote_ops): Install it as to_post_attach method.
3058
3059 2014-07-09 Pedro Alves <palves@redhat.com>
3060
3061 * infcmd.c (attach_command_post_wait): Don't call
3062 target_terminal_inferior here.
3063 (attach_command): Call it here instead.
3064
3065 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3066
3067 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3068 field.
3069 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3070 from varobj.c, with additional checks.
3071 (c_varobj_ops): Fill in is_path_expr_parent field.
3072 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3073 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3074 field.
3075 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3076 ops method.
3077 (varobj_default_is_path_expr_parent): New function.
3078 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3079 (varobj_default_is_path_expr_parent): Declare new function.
3080
3081 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3082
3083 * infcmd.c (finish_backward): Turn internal error into normal error.
3084
3085 2014-07-07 Pedro Alves <palves@redhat.com>
3086
3087 PR gdb/17096
3088 * remote.c (async_handle_remote_sigint)
3089 (async_handle_remote_sigint_twice): Call
3090 gdb_call_async_signal_handler instead of
3091 mark_async_signal_handler.
3092
3093 2014-07-07 Tom Tromey <tromey@redhat.com>
3094
3095 * target-delegates.c: Rebuild.
3096 * target.c (target_info_record): Remove.
3097 * record.c (info_record_command): Unconditionally call
3098 to_info_record.
3099 * target.h (struct target_ops) <to_info_record>: Use
3100 TARGET_DEFAULT_IGNORE.
3101 (target_info_record): Remove.
3102
3103 2014-07-07 Tom Tromey <tromey@redhat.com>
3104
3105 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3106 TARGET_DEFAULT_NORETURN.
3107 * target.c (generic_tls_error): New function.
3108 (target_translate_tls_address): Don't search target stack.
3109 * target-delegates.c: Rebuild.
3110 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3111 stack.
3112 * linux-thread-db.c (thread_db_get_thread_local_address):
3113 Unconditionally call beneath target.
3114
3115 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3116
3117 * cli/cli-logging.c (pop_output_files): Assign targerr to
3118 gdb_stdtargerr.
3119
3120 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3121
3122 * MAINTAINERS (Write After Approval): Update my email address.
3123
3124 2014-07-02 Gary Benson <gbenson@redhat.com>
3125
3126 * proc-service.c (ps_xfer_memory): Update comment.
3127 (ps_pstop): Remove unused function.
3128 (ps_pcontinue): Likewise.
3129 (ps_lstop): Likewise.
3130 (ps_lcontinue): Likewise.
3131 (ps_lgetxregsize): Likewise.
3132 (ps_lgetxregs): Likewise.
3133 (ps_lsetxregs): Likewise.
3134 (ps_plog): Likewise.
3135 (ps_ptread): Likewise.
3136 (ps_ptwrite): Likewise.
3137
3138 2014-07-01 Mark Wielaard <mjw@redhat.com>
3139
3140 * dwarf2read.c (add_array_cv_type): New function.
3141 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3142 (read_tag_volatile_type): Likewise.
3143
3144 2014-07-01 Tom Tromey <tromey@redhat.com>
3145
3146 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3147 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3148 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3149 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3150 * command.h (cmd_cfunc_ftype): Move earlier.
3151 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3152 (add_com, add_info): Use cmd_cfunc_ftype.
3153
3154 2014-06-30 Tom Tromey <tromey@redhat.com>
3155
3156 * symtab.c (operator_chars): Make parameters and return type
3157 const.
3158 (file_matches): Make "files" const.
3159 (struct search_symbols_data) <files>: Now const.
3160 (search_symbols): Make "regexp" and "files" parameters const.
3161 Update.
3162 (symtab_symbol_info): Remove cast.
3163 (rbreak_command): Update.
3164 * symtab.h (search_symbols): Update.
3165
3166 2014-06-27 Yao Qi <yao@codesourcery.com>
3167
3168 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3169 Change parameter type to 'struct thread_info *'. Caller
3170 updated.
3171 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3172 Update declaration.
3173 * dummy-frame.c (struct dummy_frame_id): New.
3174 (dummy_frame_id_eq): New function.
3175 (struct dummy_frame) <id>: Change its type to 'struct
3176 dummy_frame_id'.
3177 (dummy_frame_push): Add parameter ptid and save it in
3178 dummy_frame_id.
3179 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3180 inferior_ptid.
3181 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3182 to inferior_ptid.
3183 (lookup_dummy_frame): Change parameter type to 'struct
3184 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3185 instead of frame_id_eq.
3186 (dummy_frame_pop): Add parameter ptid. Callers updated.
3187 Update comments. Compose dummy_frame_id and pass it to
3188 lookup_dummy_frame.
3189 (dummy_frame_discard): Add parameter ptid.
3190 (dummy_frame_sniffer): Compose dummy_frame_id and call
3191 dummy_frame_id_eq instead of frame_id_eq.
3192 (fprint_dummy_frames): Print ptid.
3193 * dummy-frame.h: Remove comments.
3194 (dummy_frame_push): Add ptid in declaration.
3195 (dummy_frame_pop, dummy_frame_discard): Likewise.
3196
3197 2014-06-26 Tom Tromey <tromey@redhat.com>
3198
3199 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3200 * command.h (error_no_arg): Update.
3201
3202 2014-06-26 Tom Tromey <tromey@redhat.com>
3203
3204 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3205 (do_show_command): Make "arg" const.
3206 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3207
3208 2014-06-26 Tom Tromey <tromey@redhat.com>
3209
3210 * record-full.c (record_full_get_bookmark): Make "args" const.
3211 (record_full_goto_bookmark): Make "raw_bookmark" const.
3212 * record.c (record_goto): New function.
3213 (cmd_record_goto): Use it. Now static.
3214 * record.h (record_goto): Declare.
3215 (cmd_record_goto): Remove declaration.
3216 * target-delegates.c: Rebuild.
3217 * target.h (struct target_ops) <to_get_bookmark,
3218 to_goto_bookmark>: Make parameter const.
3219
3220 2014-06-26 Tom Tromey <tromey@redhat.com>
3221
3222 * defs.h (generic_load): Update.
3223 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3224 * monitor.c (monitor_load): Make "args" const.
3225 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3226 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3227 const.
3228 (mips_load): Make "file" const.
3229 * remote-sim.c (gdbsim_load): Make "args" const.
3230 * remote.c (remote_load): Make "name" const.
3231 * symfile.c (generic_load): Make "args" const.
3232 * target-delegates.c: Rebuild.
3233 * target.c (target_load): Make "arg" const.
3234 (debug_to_load): Make "args" const.
3235 * target.h (struct target_ops) <to_load>: Make parameter const.
3236 (target_load): Update.
3237
3238 2014-06-26 Tom Tromey <tromey@redhat.com>
3239
3240 PR symtab/16902:
3241 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3242 (dwarf2_physname, read_partial_die)
3243 (guess_partial_die_structure_name, fixup_partial_die)
3244 (guess_full_die_structure_name, anonymous_struct_prefix)
3245 (dwarf2_name): Use per-BFD obstack.
3246
3247 2014-06-26 Yao Qi <yao@codesourcery.com>
3248
3249 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3250 dummyframe and this_id into inner block below.
3251
3252 2014-06-26 Yao Qi <yao@codesourcery.com>
3253
3254 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3255 with "signal_pass[0]" in the initialization of signal_pass.
3256
3257 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3258
3259 * record-btrace.c (record_btrace_generating_corefile)
3260 (record_btrace_prepare_to_generate_core)
3261 (record_btrace_done_generating_core): New.
3262 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3263 (record_btrace_store_registers, record_btrace_prepare_to_store):
3264 Forward request when generating a core file.
3265 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3266 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3267 to_done_generating_core.
3268
3269 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3270
3271 * target.h (target_ops) <to_prepare_to_generate_core>
3272 <to_done_generating_core>: New.
3273 (target_prepare_to_generate_core, target_done_generating_core): New.
3274 * target.c (target_prepare_to_generate_core)
3275 (target_done_generating_core): New.
3276 * target-delegates.c: Regenerate.
3277 * gcore.c: (write_gcore_file): Rename to ...
3278 (write_gcore_file_1): ...this.
3279 (write_gcore_file): Call target_prepare_to_generate_core
3280 and target_done_generating_core.
3281
3282 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3283
3284 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3285 * gcore.c (write_gcore_file): Free memory returned from
3286 make_corefile_notes.
3287 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3288 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3289
3290 2014-06-24 Yao Qi <yao@codesourcery.com>
3291
3292 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3293 (arm_linux_init_abi): Set skip_trampoline_code with
3294 gdbarch_skip_trampoline_code instead of
3295 find_solib_trampoline_target.
3296
3297 2014-06-24 Yao Qi <yao@codesourcery.com>
3298
3299 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3300 arm_skip_bx_reg returns non-zero.
3301
3302 2014-06-24 Yao Qi <yao@codesourcery.com>
3303
3304 * arm-tdep.c (arm_skip_bx_reg): New function.
3305 (arm_skip_stub): Call arm_skip_bx_reg.
3306
3307 2014-06-23 Don Breazeal <donb@codesourcery.com>
3308
3309 * MAINTAINERS: Add myself as write-after-approval maintainer.
3310
3311 2014-06-23 Pedro Alves <palves@redhat.com>
3312
3313 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3314 DR_CONTROL before setting DR0..DR3.
3315 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3316 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3317 bits of DR_CONTROL related to the debug register slot being
3318 disabled. If all slots are vacant, clear local slowdown as well,
3319 and assert DR_CONTROL is 0.
3320
3321 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3322
3323 * python/lib/gdb/command/xmethods.py
3324 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3325 current progspace only if the string "progspace" matches LOCUS_RE.
3326
3327 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3328
3329 Fix --with-system-readline with readline-6.3 patch 5.
3330 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3331 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3332 types.
3333
3334 2014-06-20 Tom Tromey <tromey@redhat.com>
3335
3336 * dwarf2read.c (dw2_get_real_path): Use correct type in
3337 OBSTACK_CALLOC.
3338 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3339
3340 2014-06-20 Gary Benson <gbenson@redhat.com>
3341
3342 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3343 * common/glibc_thread_db.h: Likewise.
3344 * common/i386-cpuid.h: Likewise.
3345 * common/i386-gcc-cpuid.h: Likewise.
3346 * common/linux-btrace.h: Likewise.
3347 * common/linux-osdata.h: Likewise.
3348 * common/linux-procfs.h: Likewise.
3349 * common/linux-ptrace.h: Likewise.
3350 * common/mips-linux-watch.h: Likewise.
3351 * common/linux-btrace.c: Moved to nat.
3352 * common/linux-osdata.c: Likewise.
3353 * common/linux-procfs.c: Likewise.
3354 * common/linux-ptrace.c: Likewise.
3355 * common/mips-linux-watch.c: Likewise.
3356 * nat/gdb_thread_db.h: Moved from common.
3357 * nat/glibc_thread_db.h: Likewise.
3358 * nat/i386-cpuid.h: Likewise.
3359 * nat/i386-gcc-cpuid.h: Likewise.
3360 * nat/linux-btrace.c: Likewise.
3361 * nat/linux-btrace.h: Likewise.
3362 * nat/linux-osdata.c: Likewise.
3363 * nat/linux-osdata.h: Likewise.
3364 * nat/linux-procfs.c: Likewise.
3365 * nat/linux-procfs.h: Likewise.
3366 * nat/linux-ptrace.c: Likewise.
3367 * nat/linux-ptrace.h: Likewise.
3368 * nat/mips-linux-watch.c: Likewise.
3369 * nat/mips-linux-watch.h: Likewise.
3370 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3371 (object file files): Reordered.
3372 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3373 of glibc_thread_db.h.
3374
3375 2014-06-20 Gary Benson <gbenson@redhat.com>
3376
3377 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3378 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3379 (i386_dr_low): Likewise.
3380 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3381 (i386_dr_low_set_addr): Likewise.
3382 (i386_dr_low_get_addr): Likewise.
3383 (i386_dr_low_can_set_control): Likewise.
3384 (i386_dr_low_set_control): Likewise.
3385 (i386_dr_low_get_control): Likewise.
3386 (i386_dr_low_get_status): Likewise.
3387 (i386_get_debug_register_length): Likewise.
3388 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3389 (i386_dr_low): Likewise.
3390 * nat/i386-dregs.c (i386-low.h): Remove include.
3391 (i386-nat.h): Likewise.
3392 (nat/i386-dregs.h): New include.
3393 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3394 (i386_dr_low_set_addr): Likewise.
3395 (i386_dr_low_get_addr): Likewise.
3396 (i386_dr_low_can_set_control): Likewise.
3397 (i386_dr_low_set_control): Likewise.
3398 (i386_dr_low_get_control): Likewise.
3399 (i386_dr_low_get_status): Likewise.
3400 (i386_get_debug_register_length): Likewise.
3401 (debug_hw_points): Likewise.
3402
3403 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3404
3405 * Makefile.in (SFILES): Add d-exp.y.
3406 (YYFILES): Add d-exp.c.
3407 (YYOBJ): Add d-exp.o.
3408 (local-maintainer-clean): Delete d-exp.c.
3409 * d-exp.y: New file.
3410 * d-lang.h (d_parse): New declaration.
3411 (d_error): New declaration.
3412 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3413 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3414 PREC_ORDER operators.
3415 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3416
3417 2014-06-19 Yao Qi <yao@codesourcery.com>
3418
3419 * gdbthread.h (any_running): Remove the declaration.
3420 * thread.c (any_running): Remove.
3421
3422 2014-06-19 Yao Qi <yao@codesourcery.com>
3423
3424 * gdbthread.h (struct thread_info) <state>: Change its type to
3425 'enum thread_state'. Update comments.
3426
3427 2014-06-19 Pedro Alves <palves@redhat.com>
3428
3429 * gdbthread.h (ALL_THREADS): Delete.
3430 (ALL_NON_EXITED_THREADS): New macro.
3431 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3432 instead of ALL_THREADS.
3433 * infrun.c (find_thread_needs_step_over)
3434 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3435 instead of ALL_THREADS.
3436 * record-btrace.c (record_btrace_open)
3437 (record_btrace_stop_recording, record_btrace_close)
3438 (record_btrace_is_replaying, record_btrace_resume)
3439 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3440 * remote.c (append_pending_thread_resumptions): Likewise.
3441 * thread.c (thread_apply_all_command): Likewise.
3442
3443 2014-06-19 Gary Benson <gbenson@redhat.com>
3444
3445 * i386-nat.c (i386_stopped_by_watchpoint):
3446 Use i386_dr_stopped_by_watchpoint.
3447 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3448 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3449
3450 2014-06-19 Gary Benson <gbenson@redhat.com>
3451
3452 * nat/i386-dregs.c: New file.
3453 * Makefile.in (i386-dregs.o): New rule.
3454 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3455 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3456 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3457 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3458 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3459 * config/i386/go32.mh (NATDEPFILES): Likewise.
3460 * config/i386/linux.mh (NATDEPFILES): Likewise.
3461 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3462 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3463 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3464 * i386-nat.h (debug_hw_points): New declaration.
3465 * i386-nat.c (breakpoint.h): Remove include.
3466 (command.h): Likewise.
3467 (target.h): Likewise.
3468 (gdb_assert.h): Likewise.
3469 (debug_hw_points): Made nonstatic.
3470 (debug_printf): Now in i386-dregs.c.
3471 (TARGET_HAS_DR_LEN_8): Likewise.
3472 (DR_CONTROL_SHIFT): Likewise.
3473 (DR_CONTROL_SIZE): Likewise.
3474 (DR_RW_EXECUTE): Likewise.
3475 (DR_RW_WRITE): Likewise.
3476 (DR_RW_READ): Likewise.
3477 (DR_RW_IORW): Likewise.
3478 (DR_LEN_1): Likewise.
3479 (DR_LEN_2): Likewise.
3480 (DR_LEN_4): Likewise.
3481 (DR_LEN_8): Likewise.
3482 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3483 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3484 (DR_ENABLE_SIZE): Likewise.
3485 (DR_LOCAL_SLOWDOWN): Likewise.
3486 (DR_GLOBAL_SLOWDOWN): Likewise.
3487 (DR_CONTROL_RESERVED): Likewise.
3488 (I386_DR_CONTROL_MASK): Likewise.
3489 (I386_DR_VACANT): Likewise.
3490 (I386_DR_LOCAL_ENABLE): Likewise.
3491 (I386_DR_GLOBAL_ENABLE): Likewise.
3492 (I386_DR_DISABLE): Likewise.
3493 (I386_DR_SET_RW_LEN): Likewise.
3494 (I386_DR_GET_RW_LEN): Likewise.
3495 (I386_DR_WATCH_HIT): Likewise.
3496 (i386_wp_op_t): Likewise.
3497 (i386_show_dr): Likewise.
3498 (i386_length_and_rw_bits): Likewise.
3499 (i386_insert_aligned_watchpoint): Likewise.
3500 (i386_remove_aligned_watchpoint): Likewise.
3501 (i386_handle_nonaligned_watchpoint): Likewise.
3502 (i386_update_inferior_debug_regs): Likewise.
3503 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3504 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3505 (i386_region_ok_for_watchpoint):
3506 Use i386_dr_region_ok_for_watchpoint.
3507 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3508
3509 2014-06-19 Gary Benson <gbenson@redhat.com>
3510
3511 * i386-nat.c (i386_insert_hw_breakpoint): Use
3512 i386_insert_watchpoint.
3513 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3514
3515 2014-06-19 Gary Benson <gbenson@redhat.com>
3516
3517 * i386-nat.c (i386_dr_show): Renamed to
3518 i386_show_dr and made static. All uses updated.
3519 (i386_dr_length_and_rw_bits): Renamed to
3520 i386_length_and_rw_bits and made static.
3521 All uses updated.
3522 (i386_dr_insert_aligned_watchpoint): Renamed to
3523 i386_insert_aligned_watchpoint and made static.
3524 All uses updated.
3525 (i386_dr_remove_aligned_watchpoint): Renamed to
3526 i386_remove_aligned_watchpoint and made static.
3527 All uses updated.
3528 (i386_dr_update_inferior_debug_regs): Renamed to
3529 i386_update_inferior_debug_regs and made static.
3530 All uses updated.
3531 * nat/i386-dregs.h (i386_dr_show): Removed.
3532 (i386_dr_length_and_rw_bits): Likewise.
3533 (i386_dr_insert_aligned_watchpoint): Likewise.
3534 (i386_dr_remove_aligned_watchpoint): Likewise.
3535 (i386_dr_update_inferior_debug_regs): Likewise.
3536
3537 2014-06-19 Gary Benson <gbenson@redhat.com>
3538
3539 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3540 * configure: Regenerate.
3541 * config.in: Likewise.
3542 * main.c (signal.h): New include.
3543 (setup_alternate_signal_stack): New function.
3544 (captured_main): Call the above.
3545 * cp-support.c (signal.h): New include.
3546 (catch_demangler_crashes): New flag.
3547 (SIGJMP_BUF): New define.
3548 (SIGSETJMP): Likewise.
3549 (SIGLONGJMP): Likewise.
3550 (gdb_demangle_jmp_buf): New static global.
3551 (gdb_demangle_attempt_core_dump): Likewise.
3552 (gdb_demangle_signal_handler): New function.
3553 (gdb_demangle): If catch_demangler_crashes is set, install the
3554 above signal handler before calling bfd_demangle, and restore
3555 the original signal handler afterwards. Display the offending
3556 symbol and call demangler_warning the first time a segmentation
3557 fault is caught.
3558 (_initialize_cp_support): New maint set/show command.
3559
3560 2014-06-19 Gary Benson <gbenson@redhat.com>
3561
3562 * utils.h (resource_limit_kind): New enum.
3563 (can_dump_core): New declaration.
3564 (warn_cant_dump_core): Likewise.
3565 (dump_core): Likewise.
3566 * utils.c (dump_core): Made nonstatic. Added new
3567 parameter "limit_kind".
3568 (can_dump_core): Made nonstatic. Moved printing code to...
3569 (warn_cant_dump_core): New function.
3570 (can_dump_core_warn): Likewise.
3571 (internal_vproblem): Replace calls to can_dump_core with
3572 calls to can_dump_core_warn. Supply new argument to each.
3573
3574 2014-06-19 Gary Benson <gbenson@redhat.com>
3575
3576 * utils.h (demangler_vwarning): New declaration.
3577 (demangler_warning): Likewise.
3578 * utils.c (struct internal_problem)
3579 <user_settable_should_quit>: New field.
3580 <user_settable_should_dump_core>: Likewise
3581 (internal_error_problem): Add values for above new fields.
3582 (internal_warning_problem): Likewise.
3583 (demangler_warning_problem): New static global.
3584 (demangler_vwarning): New function.
3585 (demangler_warning): Likewise.
3586 (add_internal_problem_command): Selectively add commands.
3587 (_initialize_utils): New internal problem command.
3588 * maint.c (maintenance_demangler_warning): New function.
3589 (_initialize_maint_cmds): New command.
3590
3591 2014-06-18 Tom Tromey <tromey@redhat.com>
3592
3593 * f-valprint.c (info_common_command_for_block): Update.
3594 * symtab.h (struct general_symbol_info) <common_block>: Now
3595 const.
3596
3597 2014-06-18 Tom Tromey <tromey@redhat.com>
3598
3599 * symtab.h (struct symtab) <blockvector>: Now const.
3600 * ada-lang.c (ada_add_global_exceptions): Update.
3601 * buildsym.c (augment_type_symtab): Update.
3602 * dwarf2read.c (dw2_lookup_symbol): Update.
3603 * jit.c (finalize_symtab): Update.
3604 * jv-lang.c (add_class_symtab_symbol): Update.
3605 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3606 Update.
3607 * objfiles.c (objfile_relocate1): Update.
3608 * psymtab.c (lookup_symbol_aux_psymtabs)
3609 (maintenance_check_psymtabs): Update.
3610 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3611 Update.
3612 * spu-tdep.c (spu_catch_start): Update.
3613 * symmisc.c (dump_symtab_1): Update.
3614 * symtab.c (lookup_global_symbol_from_objfile)
3615 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3616 (basic_lookup_transparent_type_quick)
3617 (basic_lookup_transparent_type, find_pc_sect_symtab)
3618 (find_pc_sect_line, search_symbols): Update.
3619 * block.c (find_block_in_blockvector): Make "bl" const.
3620 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3621 const.
3622 (blockvector_contains_pc): Make "bv" const.
3623 (block_for_pc_sect): Update.
3624 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3625 (blockvector_contains_pc): Update.
3626 * breakpoint.c (resolve_sal_pc): Update.
3627 * inline-frame.c (block_starting_point_at): Update.
3628
3629 2014-06-18 Tom Tromey <tromey@redhat.com>
3630
3631 * completer.c (complete_line): Make "line_buffer" const.
3632 * completer.h (complete_line): Update.
3633
3634 2014-06-18 Tom Tromey <tromey@redhat.com>
3635
3636 * symtab.c (add_macro_name): Remove unneeded cast.
3637
3638 2014-06-18 Tom Tromey <tromey@redhat.com>
3639
3640 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3641 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3642
3643 2014-06-18 Tom Tromey <tromey@redhat.com>
3644
3645 * probe.c (info_probes_for_ops): Make "arg" const.
3646 * probe.h (info_probes_for_ops): Update.
3647
3648 2014-06-18 Tom Tromey <tromey@redhat.com>
3649
3650 * varobj.c (varobj_create): Update.
3651 * valops.c (value_of_this): Update.
3652 * tracepoint.c (add_local_symbols, scope_info): Update.
3653 * symtab.h (struct general_symbol_info) <block>: Now const.
3654 * symtab.c (skip_prologue_sal)
3655 (default_make_symbol_completion_list_break_on)
3656 (skip_prologue_using_sal): Update.
3657 * stack.h (iterate_over_block_locals)
3658 (iterate_over_block_local_vars): Update.
3659 * stack.c (print_frame_args): Update.
3660 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3661 parameter const.
3662 (get_selected_block): Make return type const.
3663 * python/py-frame.c (frapy_block): Update.
3664 * python/py-block.c (gdbpy_block_for_pc): Update.
3665 * p-exp.y (%union) <bval>: Now const.
3666 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3667 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3668 * m2-exp.y (%union) <bval>: Now const.
3669 * linespec.c (get_current_search_block): Make return type const.
3670 (create_sals_line_offset, find_label_symbols): Update.
3671 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3672 Update.
3673 (block_starting_point_at): Make "block" const.
3674 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3675 (check_exception_resume): Update.
3676 * guile/scm-frame.c (gdbscm_frame_block): Update.
3677 * guile/scm-block.c (gdbscm_lookup_block): Update.
3678 * frame.h (get_frame_block): Update.
3679 (get_selected_block): Make return type const.
3680 * frame.c (frame_id_inner): Update.
3681 * f-valprint.c (info_common_command_for_block)
3682 (info_common_command): Update.
3683 * dwarf2loc.c (dwarf2_find_location_expression)
3684 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3685 (locexpr_describe_location_piece): Update.
3686 * c-exp.y (%union) <bval>: Now const.
3687 * breakpoint.c (resolve_sal_pc): Update.
3688 * blockframe.c (get_frame_block):Make return type const.
3689 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3690 (block_innermost_frame): Update.
3691 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3692 (block_for_pc, block_for_pc_sect): Update.
3693 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3694 'pblock' const.
3695 (block_for_pc_sect, block_for_pc): Make return type const.
3696 * ax-gdb.c (gen_expr): Update.
3697 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3698 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3699 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3700 (ada_read_var_value): Update.
3701 * ada-exp.y (struct name_info) <block>: Now const.
3702 (%union): Likewise.
3703 (block_lookup): Constify.
3704
3705 2014-06-18 Gary Benson <gbenson@redhat.com>
3706
3707 * nat/i386-dregs.h: New file.
3708 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3709 * i386-nat.h (i386-dregs.h): New include.
3710 (DR_FIRSTADDR): Now in i386-dregs.h.
3711 (DR_LASTADDR): Likewise.
3712 (DR_NADDR): Likewise.
3713 (DR_STATUS): Likewise.
3714 (DR_CONTROL): Likewise.
3715 (i386_debug_reg_state): Likewise.
3716 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3717
3718 2014-06-18 Don Breazeal <donb@codesourcery.com>
3719
3720 * breakpoint.c (set_longjmp_breakpoint): Call
3721 momentary_breakpoint_from_master with additional argument.
3722 (set_longjmp_breakpoint_for_call_dummy): Call
3723 momentary_breakpoint_from_master with additional argument.
3724 (set_std_terminate_breakpoint): Call
3725 momentary_breakpoint_from_master with additional argument.
3726 (momentary_breakpoint_from_master): Add argument to function
3727 definition and use it to initialize structure member flag.
3728 (clone_momentary_breakpoint): Call
3729 momentary_breakpoint_from_master with additional argument.
3730 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3731 member flags set in momentary_breakpoint_from_master.
3732
3733 2014-06-18 Gary Benson <gbenson@redhat.com>
3734
3735 * i386-nat.c (i386_show_dr): Renamed to
3736 i386_dr_show and made nonstatic. All uses updated.
3737 (i386_length_and_rw_bits): Renamed to
3738 i386_dr_length_and_rw_bits and made nonstatic.
3739 All uses updated.
3740 (i386_insert_aligned_watchpoint): Renamed to
3741 i386_dr_insert_aligned_watchpoint and made nonstatic.
3742 All uses updated.
3743 (i386_remove_aligned_watchpoint): Renamed to
3744 i386_dr_remove_aligned_watchpoint and made nonstatic.
3745 All uses updated.
3746 (i386_update_inferior_debug_regs): Renamed to
3747 i386_dr_update_inferior_debug_regs and made nonstatic.
3748 All uses updated.
3749
3750 2014-06-18 Gary Benson <gbenson@redhat.com>
3751
3752 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3753 (i386_dr_low_can_set_control): Likewise.
3754 (i386_dr_low_set_addr): Likewise.
3755 (i386_dr_low_set_control): Likewise.
3756 (i386_dr_low_get_addr): Likewise.
3757 (i386_dr_low_get_status): Likewise.
3758 (i386_dr_low_get_control): Likewise.
3759 (i386_insert_aligned_watchpoint): Use new macros.
3760 (i386_update_inferior_debug_regs): Likewise.
3761 (i386_stopped_data_address): Likewise.
3762
3763 2014-06-18 Gary Benson <gbenson@redhat.com>
3764
3765 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3766 New parameter. All uses updated.
3767
3768 2014-06-18 Gary Benson <gbenson@redhat.com>
3769
3770 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3771 All uses updated.
3772
3773 2014-06-18 Gary Benson <gbenson@redhat.com>
3774
3775 * i386-nat.c (debug_printf): New macro.
3776 (i386_get_debug_register_length): Likewise.
3777 (TARGET_HAS_DR_LEN_8): Use above macro.
3778 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3779 and printf_unfiltered. Use phex to format values.
3780
3781 2014-06-18 Gary Benson <gbenson@redhat.com>
3782
3783 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3784 Make const.
3785
3786 2014-06-18 Gary Benson <gbenson@redhat.com>
3787
3788 * i386-nat.c: Comment changes.
3789
3790 2014-06-18 Gary Benson <gbenson@redhat.com>
3791
3792 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3793
3794 2014-06-18 Gary Benson <gbenson@redhat.com>
3795
3796 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3797 (i386_insert_aligned_watchpoint): Likewise.
3798 (i386_remove_aligned_watchpoint): Likewise.
3799 (i386_handle_nonaligned_watchpoint): Likewise.
3800
3801 2014-06-18 Gary Benson <gbenson@redhat.com>
3802
3803 * i386-nat.c: Whitespace changes.
3804
3805 2014-06-17 Samuel Bronson <naesten@gmail.com>
3806
3807 * MAINTAINERS: Update Roland McGrath's email address.
3808 Thanks to Sergio Durigan Junior for pointing out that he left
3809 Red Hat a while ago, and giving me a current address.
3810
3811 2014-06-17 Tom Tromey <tromey@redhat.com>
3812
3813 * utils.h (savestring): Remove declaration.
3814
3815 2014-06-17 Tom Tromey <tromey@redhat.com>
3816
3817 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3818
3819 2014-06-16 Keith Seitz <keiths@redhat.com>
3820
3821 PR mi/15863
3822 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3823 to update the varobj if inferior_ptid is null_ptid.
3824
3825 2014-06-16 Tom Tromey <tromey@redhat.com>
3826
3827 * target.h (struct target_ops) <to_info_proc>: Make parameter
3828 const.
3829 (target_info_proc): Update.
3830 * target.c (target_info_proc): Make "args" const.
3831 * procfs.c (procfs_info_proc): Update.
3832 * linux-tdep.c (linux_info_proc): Update.
3833 (linux_core_info_proc_mappings): Make "args" const.
3834 (linux_core_info_proc): Update.
3835 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3836 * gdbarch.c: Rebuild.
3837 * gdbarch.h: Rebuild.
3838 * corelow.c (core_info_proc): Update.
3839
3840 2014-06-16 Tom Tromey <tromey@redhat.com>
3841
3842 * target.h (struct target_ops) <to_disconnect>: Make parameter
3843 const.
3844 (target_disconnect): Update.
3845 * target.c (target_disconnect): Make "args" const.
3846 * target-delegates.c: Rebuild.
3847 * remote.c (remote_disconnect): Update.
3848 * record.h (record_disconnect): Update.
3849 * record.c (record_disconnect): Update.
3850 * inf-child.c (inf_child_disconnect): Update.
3851
3852 2014-06-16 Tom Tromey <tromey@redhat.com>
3853
3854 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3855 * target.c (debug_to_rcmd, default_rcmd): Update.
3856 * target-delegates.c: Rebuild.
3857 * remote.c (remote_rcmd): Update.
3858 * monitor.c (monitor_rcmd): Update.
3859
3860 2014-06-16 Pedro Alves <palves@redhat.com>
3861
3862 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3863 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3864 have OBJF_SHARED set.
3865 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3866 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3867 instead of OBJF_USERLOADED.
3868 * objfiles.h (OBJF_SHARED): Update comment.
3869 (userloaded_objfile_contains_address_p): Rename to ...
3870 (shared_objfile_contains_address_p): ... this, and update
3871 comments.
3872 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3873 new objfile.
3874 (remove_symbol_file_command): Skip objfiles that don't have
3875 OBJF_SHARED set.
3876
3877 2014-06-16 Tom Tromey <tromey@redhat.com>
3878
3879 * minsyms.h (prim_record_minimal_symbol)
3880 (prim_record_minimal_symbol_and_info): Update comments.
3881
3882 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3883
3884 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3885 or --without-guile, according to how GDB was built.
3886
3887 2014-06-13 Tom Tromey <tromey@redhat.com>
3888
3889 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3890 to help_list.
3891 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3892 to help_list.
3893 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3894 help_list.
3895 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3896 help_list.Pass all_commands, not -1, to help_list.
3897 * cli/cli-dump.c (dump_command, append_command)
3898 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3899 (binary_dump_command, binary_append_command): Pass all_commands,
3900 not -1, to help_list.
3901 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3902 -1, to help_list.
3903 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3904 -1, to help_list.
3905 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3906 help_list.
3907 * top.c (set_history): Pass all_commands, not -1, to help_list.
3908 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3909 all_commands, not -1, to help_list.
3910 * symfile.c (overlay_command): Pass all_commands, not -1, to
3911 help_list.
3912 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3913 help_list.
3914 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3915 help_list.
3916 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3917 -1, to help_list.
3918 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3919 not -1, to help_list.
3920 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3921 not -1, to help_list.
3922 * maint.c (maintenance_command, maintenance_info_command)
3923 (maintenance_print_command, maintenance_set_cmd): Pass
3924 all_commands, not -1, to help_list.
3925 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3926 help_list.
3927 * language.c (set_check): Pass all_commands, not -1, to help_list.
3928 * infcmd.c (unset_command): Pass all_commands, not -1, to
3929 help_list.
3930 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3931 help_list.
3932 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3933 help_list.
3934 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3935 help_list.
3936 * breakpoint.c (save_command): Pass all_commands, not -1, to
3937 help_list.
3938 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3939 all_commands, not -1, to help_list.
3940
3941 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3942
3943 * regcache.c (struct register_to_invalidate): New structure.
3944 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3945 functions.
3946 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3947
3948 2014-06-12 Yao Qi <yao@codesourcery.com>
3949
3950 * varobj.c (varobj_get_num_children): Call
3951 varobj_is_dynamic_p.
3952 (varobj_list_children): Likewise.
3953 (varobj_update): Likewise. Update comments.
3954
3955 2014-06-12 Yao Qi <yao@codesourcery.com>
3956
3957 * varobj.c (varobj_pretty_printed_p): Rename to ...
3958 (varobj_is_dynamic_p): ... this. New function.
3959 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3960 (varobj_is_dynamic_p): Declare.
3961 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3962 (mi_print_value_p, varobj_update_one): Likewise.
3963
3964 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3965 Yao Qi <yao@codesourcery.com>
3966
3967 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3968 (varobj_get_iterator): Wrap up code for pretty-printer by
3969 "#if HAVE_PYTHON" and "#endif".
3970 (update_dynamic_varobj_children): Likewise.
3971
3972 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3973 Yao Qi <yao@codesourcery.com>
3974
3975 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3976 gdb_python_initialized is false. Move some code from varobj.c.
3977 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3978 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3979 (struct varobj_item): Moved to varobj-iter.h".
3980 (varobj_clear_saved_item): New function.
3981 (update_dynamic_varobj_children): Move python-related code to
3982 py-varobj.c.
3983 (free_variable): Call varobj_clear_saved_item and
3984 varobj_iter_delete.
3985
3986 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3987 Yao Qi <yao@codesourcery.com>
3988
3989 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3990 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3991 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3992 (py-varobj.o): New rule.
3993 * python/py-varobj.c: New file.
3994 * python/python-internal.h (py_varobj_get_iterator): Declare.
3995 * varobj-iter.h: New file.
3996 * varobj.c: Include "varobj-iter.h"
3997 (struct varobj) <child_iter>: Change its type from "PyObject *"
3998 to "struct varobj_iter *".
3999 <saved_item>: Likewise.
4000 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4001 [HAVE_PYTHON] (varobj_get_iterator): New function.
4002 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4003 python-specific code to python/py-varobj.c.
4004 (install_visualizer): Call varobj_iter_delete instead of
4005 Py_XDECREF.
4006 * varobj.h (varobj_ensure_python_env): Declare.
4007
4008 2014-06-12 Yao Qi <yao@codesourcery.com>
4009
4010 * varobj.c (struct varobj_item): New structure.
4011 (create_child_with_value): Update declaration.
4012 (varobj_add_child): Replace arguments 'name' and 'value' with
4013 'item'. All callers updated.
4014 (install_dynamic_child): Likewise.
4015 (update_dynamic_varobj_children): Likewise.
4016 (varobj_add_child): Likewise.
4017 (create_child_with_value): Likewise.
4018
4019 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4020
4021 * NEWS: Create a new section for the next release branch.
4022 Rename the section of the current branch, now that it has
4023 been cut.
4024
4025 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4026
4027 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4028 * version.in: Bump version to 7.8.50.DATE-cvs.
4029
4030 2014-06-11 Pedro Alves <palves@redhat.com>
4031
4032 PR remote/17028
4033 * ser-mingw.c (net_windows_socket_check_pending): New function.
4034 (net_windows_select_thread): Ignore spurious wakeups. Use
4035 net_windows_socket_check_pending.
4036 (net_windows_wait_handle): Check for pending events with
4037 ioctlsocket, through net_windows_socket_check_pending, instead of
4038 checking the socket's event.
4039
4040 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4041
4042 * python/python-internal.h (gdb_PyObject_GetAttrString)
4043 (gdb_PyObject_HasAttrString): New inline function definitions.
4044 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4045 char * of the second argument to PyObject_GetAttrString.
4046
4047 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4048
4049 * serial.c (serial_write): Fix index of character to be printed
4050 in call to serial_logchar when serial debug traces are enabled.
4051
4052 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4053
4054 * gdbtypes (resolve_dynamic_range): Add function description.
4055
4056 2014-06-09 Pedro Alves <palves@redhat.com>
4057
4058 * linux-nat.c (linux_child_follow_fork): Initialize status with
4059 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4060 inner block. Only pass the signal to PTRACE_DETACH if in pass
4061 state.
4062
4063 2014-06-09 Gary Benson <gbenson@redhat.com>
4064
4065 * common/signals.c (gdb_signal_from_host): Reorder to separate
4066 the always-available ANSI-standard signals from the signals that
4067 require checking.
4068 (do_gdb_signal_to_host): Likewise.
4069 * proc-events.c (signal_table): Likewise.
4070
4071 2014-06-08 Hui Zhu <hui@codesourcery.com>
4072
4073 * common/linux-ptrace.c (linux_disable_event_reporting): New
4074 function.
4075 * common/linux-ptrace.h (linux_disable_event_reporting): New
4076 declaration.
4077 * linux-nat.c (linux_child_follow_fork): Do a single step before
4078 detach.
4079
4080 2014-06-07 Keith Seitz <keiths@redhat.com>
4081
4082 Revert:
4083 PR c++/16253
4084 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4085 from symbol_matches_domain in symtab.c. All local callers
4086 of symbol_matches_domain updated.
4087 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4088 search STRUCT_DOMAIN.
4089 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4090 independently. standard_lookup will do that automatically.
4091 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4092 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4093 (cp_lookup_symbol_in_namespace): Likewise.
4094 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4095 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4096 may return a STRUCT_DOMAIN match.
4097 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4098 * cp-support.c: Include language.h.
4099 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4100 VAR_DOMAIN.
4101 * psymtab.c (match_partial_symbol): Compare the requested
4102 domain with the symbol's domain directly.
4103 (lookup_partial_symbol): Likewise.
4104 * symtab.c (lookup_symbol_in_language): Explain when/why
4105 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4106 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4107 appropriate languages.
4108 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4109 and moved to ada-lang.c
4110 (lookup_block_symbol): Explain that this function only returns
4111 symbol matching the requested DOMAIN.
4112 Compare the requested domain with the symbol's domain directly.
4113 (iterate_over_symbols): Compare the requested domain with the
4114 symbol's domain directly.
4115 * symtab.h (symbol_matches_domain): Remove.
4116
4117 2014-06-06 Doug Evans <xdje42@gmail.com>
4118
4119 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4120 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4121 (gdbscm_guile_version_is_at_least): Declare.
4122 (gdbscm_scm_string_to_int): Declare.
4123 * guile/guile.c (gdbscm_guile_major_version): New global.
4124 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4125 (guile_datadir): New static global.
4126 (gdbscm_guile_data_directory): New function.
4127 (initialize_scheme_side): Update.
4128 (misc_guile_functions): Add guile-data-directory.
4129 (initialize_gdb_module): Fetch guile version number.
4130 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4131 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4132 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4133 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4134 comments.
4135 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4136 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4137 * guile/scm-value.c (gdbscm_value_to_string): Only call
4138 scm_port_conversion_strategy if Guile version >= 2.0.6.
4139
4140 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4141
4142 * main.c (print_gdb_help): Add -q and --silent.
4143
4144 2014-06-06 Gary Benson <gbenson@redhat.com>
4145
4146 * common/signals.c: Remove preprocessor conditionals for
4147 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4148 SIGSEGV and SIGTERM.
4149 * proc-events.c: Likewise.
4150
4151 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4152
4153 * symfile.c (symfile_free_objfile): Remove restriction to
4154 OBJF_USERLOADED.
4155 * symfile-mem.c (symbol_file_add_from_memory): Call
4156 add_target_sections_of_objfile.
4157
4158 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4159
4160 * guile/scm-value.c (gdbscm_history_append_x): Use
4161 'vlscm_get_value_smob_arg_unsafe' instead of
4162 'vlscm_scm_to_value'.
4163
4164 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4165
4166 PR mi/15806
4167 * utils.c (printchar): Don't escape at all if quoter is NUL.
4168 Update function documentation to clarify effect of parameter
4169 QUOTER.
4170 * remote.c (escape_buffer): Pass '\\' as the quoter to
4171 fputstrn_unfiltered.
4172 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4173 generate the output.
4174 (mi_solib_unloaded): Same.
4175
4176 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4177
4178 * development.sh: Delete.
4179 * Makefile.in (config.status): Adjust dependency on development.sh.
4180 * configure.ac: Adjust development.sh source call.
4181 * configure: Regenerate.
4182
4183 2014-06-04 Doug Evans <xdje42@gmail.com>
4184
4185 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4186 is_scheme_bkpt, spec.
4187 (bpscm_make_breakpoint_smob): Initialize new members.
4188 (gdbscm_create_breakpoint_x): Split into two ...
4189 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4190 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4191 (scheme_function breakpoint_functions): Update.
4192 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4193 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4194 register-breakpoint!.
4195
4196 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4197
4198 PR server/17023
4199 * mem-break.c (z_type_supported): Return zero if
4200 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4201
4202 2014-06-04 Tom Tromey <tromey@redhat.com>
4203
4204 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4205 value_from_contents_and_address_unresolved.
4206 (ada_template_to_fixed_record_type_1): Likewise.
4207 (ada_which_variant_applies): Likewise.
4208 * value.h (value_from_contents_and_address_unresolved): Declare.
4209 * value.c (value_from_contents_and_address_unresolved): New
4210 function.
4211 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4212 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4213 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4214
4215 2014-06-04 Tom Tromey <tromey@redhat.com>
4216
4217 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4218
4219 2014-06-04 Tom Tromey <tromey@redhat.com>
4220
4221 * procfs.c (procfs_attach): Make "args" const.
4222 * windows-nat.c (windows_attach): Make "args" const.
4223 * nto-procfs.c (procfs_attach): Make "args" const.
4224 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4225 * go32-nat.c (go32_attach): Make "args" const.
4226 * gnu-nat.c (gnu_attach): Make "args" const.
4227 * darwin-nat.c (darwin_attach): Make "args" const.
4228 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4229 * linux-nat.c (linux_nat_attach): Make "args" const.
4230 * remote.c (extended_remote_attach_1, extended_remote_attach):
4231 Make "args" const.
4232 * target.h (struct target_ops) <to_attach>: Make "args" const.
4233 (find_default_attach): Likewise.
4234 * utils.c (parse_pid_to_attach): Make "args" const.
4235 * utils.h (parse_pid_to_attach): Update.
4236
4237 2014-06-04 Tom Tromey <tromey@redhat.com>
4238
4239 * target-delegates.c: Rebuild.
4240 * target.c (default_thread_address_space): New function.
4241 (target_thread_address_space): Simplify.
4242 * target.h (struct target_ops) <to_thread_address_space>: Add
4243 TARGET_DEFAULT_FUNC.
4244
4245 2014-06-04 Doug Evans <xdje42@gmail.com>
4246
4247 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4248
4249 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4250
4251 * record-btrace.c: Include event-loop.h and inf-loop.h.
4252 (record_btrace_resume_exec_dir)
4253 (record_btrace_async_inferior_event_handler)
4254 (record_btrace_handle_async_inferior_event): New.
4255 (record_btrace_open): Create async event handler.
4256 (record_btrace_close): Delete async event handler.
4257 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4258 Mark async event handler.
4259 (record_btrace_execution_direction): New.
4260 (init_record_btrace_ops): Initialize to_execution_direction.
4261
4262 2014-06-03 Doug Evans <xdje42@gmail.com>
4263
4264 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4265 (gdbscm_make_parameter): Ditto.
4266
4267 2014-06-03 Doug Evans <dje@google.com>
4268
4269 * exec.c (exec_close_1): Call clear_section_table instead of
4270 resize_section_table.
4271 (clear_section_table): New function.
4272 (resize_section_table): Make static. Rename arg num_added to
4273 adjustment.
4274 * exec.h (clear_section_table): Declare.
4275 (resize_section_table): Delete.
4276 * progspace.c (release_program_space): Call clear_section_table
4277 instead of resize_section_table.
4278
4279 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4280
4281 * NEWS (Python Scripting): Add entry about the new xmethods
4282 feature.
4283
4284 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4285
4286 * python/py-xmethods.c: New file.
4287 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4288 (objfpy_dealloc): XDECREF on the new xmethods field.
4289 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4290 field.
4291 (objfpy_get_xmethods): New function.
4292 (objfile_getset): New entry 'xmethods'.
4293 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4294 (pspy_dealloc): XDECREF on the new xmethods field.
4295 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4296 field.
4297 (pspy_get_xmethods): New function.
4298 (pspace_getset): New entry 'xmethods'.
4299 * python/python-internal.h: Add declarations for new functions.
4300 * python/python.c (_initialize_python): Invoke
4301 gdbpy_initialize_xmethods.
4302 * python/lib/gdb/__init__.py (xmethods): New
4303 attribute.
4304 * python/lib/gdb/xmethod.py: New file.
4305 * python/lib/gdb/command/xmethods.py: New file.
4306
4307 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4308
4309 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4310 best match method returned by find_overload_match is an xmethod.
4311 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4312 the best matching operator returned by find_overload_match is an
4313 xmethod.
4314 * valops.c: #include "extension.h".
4315 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4316 Return void. The list of matching source methods is returned in
4317 "fn_list" and a vector of matching debug method workers is
4318 returned in "xm_worker_vec". Update all callers.
4319 (value_find_oload_method_list): Likewise.
4320 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4321 non-NULL, then the index of the best matching method in this
4322 vector is returned. Update all callers.
4323 (find_overload_match): Include xmethods while performing overload
4324 resolution.
4325
4326 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4327
4328 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4329 * extension-priv.h (struct extension_language_ops): Add the
4330 xmethod interface.
4331 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4332 get_matching_xmethod_workers, get_xmethod_argtypes,
4333 invoke_xmethod, free_xmethod_worker,
4334 free_xmethod_worker_vec): New functions.
4335 * extension.h: #include "common/vec.h".
4336 New function declarations.
4337 (struct xmethod_worker): New struct.
4338 (VEC (xmethod_worker_ptr)): New vector type.
4339 (xmethod_worker_ptr): New typedef.
4340 (xmethod_worker_vec): Likewise.
4341 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4342 builtin_type.
4343 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4344 (struct builtin_type): New field "xmethod".
4345 * valarith.c (value_ptradd): Assert that the value argument is not
4346 lval_xcallable.
4347 * valops.c (value_must_coerce_to_target): Return 0 for
4348 lval_xcallable values.
4349 * value.c (struct value): New field XM_WORKER in the field
4350 LOCATION.
4351 (value_address, value_raw_address): Return 0 for lval_xcallable
4352 values.
4353 (set_value_address): Assert that the value is not an
4354 lval_xcallable.
4355 (value_free): Free the associated xmethod worker when freeing
4356 lval_xcallable values.
4357 (set_value_component_location): Assert that the WHOLE value is not
4358 lval_xcallable.
4359 (value_of_xmethod, call_xmethod): New functions.
4360 * value.h: Declare "struct xmethod_worker".
4361 Declare new functions value_of_xmethod, call_xmethod.
4362
4363 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4364 Pedro Alves <palves@redhat.com>
4365
4366 PR breakpoints/17000
4367 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4368 New function, extracted from software_breakpoint_inserted_here_p.
4369 (software_breakpoint_inserted_here_p): Replace factored out code
4370 by call to find_non_raw_software_breakpoint_inserted_here.
4371 (bp_target_info_copy_insertion_state): New function.
4372 (bkpt_insert_location): Handle the case of a single-step
4373 breakpoint already inserted at the same address.
4374 (bkpt_remove_location): Handle the case of a single-step
4375 breakpoint still inserted at the same address.
4376 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4377 breakpoint already inserted at the same address.
4378 (deprecated_remove_raw_breakpoint): Handle the case of a
4379 non-raw breakpoint still inserted at the same address.
4380 (find_single_step_breakpoint): New function, extracted from
4381 single_step_breakpoint_inserted_here_p.
4382 (find_single_step_breakpoint): New function,
4383 factored out from single_step_breakpoint_inserted_here_p.
4384 (single_step_breakpoint_inserted_here_p): Reimplement.
4385
4386 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4387
4388 Pushed by Joel Brobecker <brobecker@adacore.com>
4389 * source.c (show_substitute_path_command): Fix display of matching
4390 substitution rules.
4391
4392 2014-06-03 Gary Benson <gbenson@redhat.com>
4393
4394 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4395
4396 2014-06-02 Doug Evans <xdje42@gmail.com>
4397
4398 Add parameter support for Guile.
4399 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4400 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4401 (scm-param.o): New rule.
4402 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4403 (gdbscm_misc_error): Declare.
4404 (gdbscm_canonicalize_command_name): Declare.
4405 (gdbscm_scm_to_host_string): Declare.
4406 (gdbscm_scm_from_host_string): Declare.
4407 (gdbscm_initialize_parameters): Declare.
4408 * guile/guile.c (initialize_gdb_module): Call
4409 gdbscm_initialize_parameters.
4410 * guile/lib/gdb.scm: Export parameter symbols.
4411 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4412 cmdscm_canonicalize_name and made public. All callers updated.
4413 * guile/scm-exception.c (gdbscm_misc_error): New function.
4414 * guile/scm-param.c: New file.
4415 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4416 (gdbscm_scm_to_host_string): New function.
4417 (gdbscm_scm_from_host_string): New function.
4418 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4419
4420 2014-06-02 Doug Evans <xdje42@gmail.com>
4421
4422 Add command support for Guile.
4423 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4424 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4425 (scm-cmd.o): New rule.
4426 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4427 (gdbscm_user_error_p): Declare.
4428 (gdbscm_parse_command_name): Declare.
4429 (gdbscm_valid_command_class_p): Declare.
4430 (gdbscm_initialize_commands): Declare.
4431 * guile/guile.c (initialize_gdb_module): Call
4432 gdbscm_initialize_commands.
4433 * guile/lib/gdb.scm: Export command symbols.
4434 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4435 (throw-user-error): New function.
4436 * guile/scm-cmd.c: New file.
4437 * guile/scm-exception.c (user_error_symbol): New static global.
4438 (gdbscm_user_error_p): New function.
4439 (gdbscm_initialize_exceptions): Set user_error_symbol.
4440 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4441
4442 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4443
4444 * top.c (command_loop): Handle comments here...
4445 (command_line_input): ... not here.
4446
4447 2014-06-02 Doug Evans <xdje42@gmail.com>
4448
4449 Add progspace support for Guile.
4450 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4451 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4452 (scm-progspace.o): New rule.
4453 * guile/guile-internal.h (pspace_smob): New typedef.
4454 (psscm_pspace_smob_pretty_printers): Declare.
4455 (psscm_pspace_smob_from_pspace): Declare.
4456 (psscm_scm_from_pspace): Declare.
4457 * guile/guile.c (initialize_gdb_module): Call
4458 gdbscm_initialize_pspaces.
4459 * guile/lib/gdb.scm: Export progspace symbols.
4460 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4461 support.
4462 (append-pretty-printer!): Ditto.
4463 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4464 Implement.
4465 * guile/scm-progspace.c: New file.
4466
4467 2014-06-03 Alan Modra <amodra@gmail.com>
4468
4469 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4470 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4471
4472 2014-06-02 Doug Evans <dje@google.com>
4473
4474 Add support for skeletonless type units.
4475 * dwarf2read.c (struct dwarf2_per_objfile): New member
4476 n_allocated_type_units.
4477 (struct dwarf2_per_objfile) <tu_stats>: New member
4478 nr_all_type_units_reallocs.
4479 (create_signatured_type_table_from_index): Initialize
4480 n_allocated_type_units
4481 (create_all_type_units): Ditto.
4482 (add_type_unit): Move up in file. New arg slot.
4483 All callers updated. Increase space for all_type_units more
4484 efficiently.
4485 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4486 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4487 (lookup_dwp_signatured_type): Ditto.
4488 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4489 All callers updated.
4490 (build_type_psymtabs_1): Leave type_unit_groups as
4491 NULL if no TUs present.
4492 (print_tu_stats): New function.
4493 (process_skeletonless_type_unit): New function.
4494 (process_dwo_file_for_skeletonless_type_units): New
4495 function.
4496 (process_skeletonless_type_units): New function.
4497 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4498 Call print tu_stats if debugging enabled.
4499
4500 2014-06-02 Pedro Alves <palves@redhat.com>
4501
4502 * breakpoint.c (build_target_command_list): Don't build a command
4503 list if we have any duplicate location that isn't a dprintf.
4504
4505 2014-06-02 Pedro Alves <palves@redhat.com>
4506
4507 * breakpoint.c (dprintf_breakpoint_hit): New function.
4508 (initialize_breakpoint_ops): Install it as dprintf's
4509 breakpoint_hit method.
4510
4511 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4512
4513 * source.c (substitute_path_rule_matches): Simplify using
4514 filename_ncmp instead of FILENAME_CMP.
4515
4516 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4517
4518 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4519
4520 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4521
4522 * configure.ac: When Guile is available, check for the
4523 availability of 'scm_new_smob'.
4524 * configure, config.h.in: Regenerate.
4525 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4526 function.
4527
4528 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4529
4530 * frame.c (struct frame_info): Add stop_string field.
4531 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4532 (get_prev_frame_always): Old content moved into
4533 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4534 TRY_CATCH, handle MEMORY_ERROR exceptions.
4535 (frame_stop_reason_string): New function definition.
4536 * frame.h (unwind_stop_reason_to_string): Extend comment to
4537 mention frame_stop_reason_string.
4538 (frame_stop_reason_string): New function declaration.
4539 * stack.c (frame_info): Switch to frame_stop_reason_string.
4540 (backtrace_command_1): Switch to frame_stop_reason_string.
4541 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4542 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4543 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4544
4545 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4546
4547 * frame.c (frame_stop_reason_string): Rename to ...
4548 (unwind_stop_reason_to_string): this.
4549 * frame.h (frame_stop_reason_string): Rename to ...
4550 (unwind_stop_reason_to_string): this.
4551 * stack.c (frame_info): Update call to frame_stop_reason_string.
4552 (backtrace_command_1): Likewise.
4553 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4554 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4555
4556 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4557
4558 * frame.c (remove_prev_frame): New function.
4559 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4560 remove_prev_frame.
4561
4562 2014-05-29 Pedro Alves <palves@redhat.com>
4563
4564 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4565 and make it const. When a single-step decays to a continue,
4566 clear 'step', not 'hw_step'. Pass whether the caller wanted
4567 to step to user_visible_resume_ptid, not what we ask the
4568 target to do.
4569
4570 2014-05-29 Pedro Alves <palves@redhat.com>
4571
4572 * infrun.c (process_event_stop_test, handle_step_into_function)
4573 (handle_step_into_function_backward): Adjust.
4574 Don't set the even thread's stop_step and call stop_waiting before
4575 calling end_stepping_range. Instead do that ...
4576 (end_stepping_range): ... here. Take an ecs pointer parameter.
4577
4578 2014-05-29 Pedro Alves <palves@redhat.com>
4579
4580 * infrun.c (stop_stepping): Rename to ...
4581 (stop_waiting): ... this.
4582 (proceed): Update comment.
4583 (process_event_stop_test, handle_inferior_event)
4584 (handle_signal_stop, handle_step_into_function)
4585 (handle_step_into_function_backward): Update.
4586
4587 2014-05-29 Pedro Alves <palves@redhat.com>
4588
4589 * infcall.c (run_inferior_call): Don't check whether the current
4590 thread is running after the proceed call.
4591
4592 2014-05-29 Pedro Alves <palves@redhat.com>
4593 Tom Tromey <tromey@redhat.com>
4594
4595 * NEWS: Mention "maint set target-async", "set mi-async", and that
4596 background execution commands are now always available.
4597 * target.h (target_async_permitted): Update comment.
4598 * target.c (target_async_permitted, target_async_permitted_1):
4599 Default to 1.
4600 (set_target_async_command): Rename to ...
4601 (maint_set_target_async_command): ... this.
4602 (show_target_async_command): Rename to ...
4603 (maint_show_target_async_command): ... this.
4604 (_initialize_target): Adjust.
4605 * infcmd.c (prepare_execution_command): Make extern.
4606 * inferior.h (prepare_execution_command): Declare.
4607 * infrun.c (set_observer_mode): Leave target async alone.
4608 * mi/mi-interp.c (mi_interpreter_init): Install
4609 mi_on_sync_execution_done as sync_execution_done observer.
4610 (mi_on_sync_execution_done): New function.
4611 (mi_execute_command_input_handler): Don't print the prompt if we
4612 just started a synchronous command with an async target.
4613 (mi_on_resume): Check sync_execution before printing prompt.
4614 * mi/mi-main.h (mi_async_p): Declare.
4615 * mi/mi-main.c: Include gdbcmd.h.
4616 (mi_async_p): New function.
4617 (mi_async, mi_async_1): New globals.
4618 (set_mi_async_command, show_mi_async_command, mi_async): New
4619 functions.
4620 (exec_continue): Call prepare_execution_command.
4621 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4622 (mi_execute_async_cli_command): Use mi_async_p.
4623 (_initialize_mi_main): Install "set mi-async". Make
4624 "target-async" a deprecated alias.
4625
4626 2014-05-29 Pedro Alves <palves@redhat.com>
4627
4628 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4629 (_initialize_cli_interp): Adjust.
4630 * event-loop.c: Include "observer.h".
4631 (start_event_loop): Notify 'command_error' observers instead of
4632 calling display_gdb_prompt. Remove FIXME comment.
4633 * event-top.c (display_gdb_prompt): Remove call into the
4634 interpreters.
4635 * inf-loop.c: Include "observer.h".
4636 (inferior_event_handler): Notify 'command_error' observers instead
4637 of calling display_gdb_prompt.
4638 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4639 observers instead of calling display_gdb_prompt.
4640 * interps.c (interp_set): Don't call display_gdb_prompt.
4641 (current_interp_display_prompt_p): Delete.
4642 * interps.h (interp_prompt_p): Delete declaration.
4643 (interp_prompt_p_ftype): Delete.
4644 (struct interp_procs) <prompt_proc_p>: Delete field.
4645 (current_interp_display_prompt_p): Delete declaration.
4646 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4647 (_initialize_mi_interp): Adjust.
4648 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4649 'command_error' observers.
4650 (tui_on_sync_execution_done, tui_on_command_error): New
4651 functions.
4652 (tui_display_prompt_p): Delete.
4653 (_initialize_tui_interp): Adjust.
4654
4655 2014-05-29 Pedro Alves <palves@redhat.com>
4656
4657 PR gdb/13860
4658 * cli/cli-interp.c: Include infrun.h and observer.h.
4659 (cli_uiout, cli_interp): New globals.
4660 (cli_on_signal_received, cli_on_end_stepping_range)
4661 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4662 functions.
4663 (cli_interpreter_init): Install them as 'end_stepping_range',
4664 'signal_received' 'signal_exited', 'exited' and 'no_history'
4665 observers.
4666 (_initialize_cli_interp): Remove cli_interp local.
4667 * infrun.c (handle_inferior_event): Call the several stop reason
4668 observers instead of printing the stop reason directly.
4669 (end_stepping_range): New function.
4670 (print_end_stepping_range_reason, print_signal_exited_reason)
4671 (print_exited_reason, print_signal_received_reason)
4672 (print_no_history_reason): Make static, and add an uiout
4673 parameter. Print to that instead of to CURRENT_UIOUT.
4674 * infrun.h (print_end_stepping_range_reason)
4675 (print_signal_exited_reason, print_exited_reason)
4676 (print_signal_received_reason print_no_history_reason): New
4677 declarations.
4678 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4679 'mi_uiout'.
4680 <cli_uiout>: New field.
4681 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4682 uiout for CLI output. Install 'signal_received',
4683 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4684 observers.
4685 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4686 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4687 (mi_on_no_history): New functions.
4688 (ui_out_free_cleanup): Delete function.
4689 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4690 instead use the one already stored in the MI interpreter data.
4691 (mi_ui_out): Adjust.
4692 * tui/tui-interp.c: Include infrun.h and observer.h.
4693 (tui_interp): New global.
4694 (tui_on_signal_received, tui_on_end_stepping_range)
4695 (tui_on_signal_exited, tui_on_exited)
4696 (tui_on_no_history): New functions.
4697 (tui_init): Install them as 'end_stepping_range',
4698 'signal_received' 'signal_exited', 'exited' and 'no_history'
4699 observers.
4700 (_initialize_tui_interp): Delete tui_interp local.
4701
4702 2014-05-29 Pedro Alves <palves@redhat.com>
4703
4704 PR gdb/15713
4705 * linux-nat.c (linux_nat_resume_callback): Rename the second
4706 parameter to 'except'. Skip LP if it points to EXCEPT.
4707 (linux_nat_resume): Don't mark the event lwp as not stopped
4708 before resuming sibling lwps. Instead ask
4709 linux_nat_resume_callback to skip the event lwp. Mark it as not
4710 stopped after actually resuming it.
4711 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4712 resuming it.
4713 (wait_lwp): Mark the lwp as stopped here.
4714 (stop_wait_callback): Mark the lwp as not stopped right after
4715 resuming it. Don't mark lwps as stopped here.
4716 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4717 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4718
4719 2014-05-29 Pedro Alves <palves@redhat.com>
4720
4721 PR PR15693
4722 * infrun.c (resume): Determine how much to resume depending on
4723 whether the caller wanted a step, not whether we can hardware step
4724 the target. Mark all threads that we intend to run as running,
4725 unless we're calling an inferior function.
4726 (normal_stop): If the thread is running an infcall, don't finish
4727 thread state.
4728 * target.c (target_resume): Don't mark threads as running here.
4729
4730 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4731
4732 * serial.c (_initialize_serial): Remove support for
4733 the "set remotebaud" and "show remotebaud" commands.
4734 * NEWS: Add entry documenting the removal of that command.
4735
4736 2014-05-28 Yao Qi <yao@codesourcery.com>
4737
4738 * charset.c: Fix typo in comments.
4739
4740 2014-05-27 Gary Benson <gbenson@redhat.com>
4741
4742 * utils.c (internal_vproblem): Prompt for a bug report.
4743
4744 2014-05-26 Andy Wingo <wingo@igalia.com>
4745
4746 * guile/scm-arch.c (arscm_mark_arch_smob):
4747 * guile/scm-block.c (bkscm_mark_block_smob)
4748 (bkscm_mark_block_syms_progress_smob):
4749 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4750 * guile/scm-exception.c (exscm_mark_exception_smob):
4751 * guile/scm-frame.c (frscm_mark_frame_smob):
4752 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4753 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4754 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4755 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4756 (ppscm_mark_pretty_printer_worker_smob):
4757 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4758 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4759 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4760 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4761 mark functions.
4762 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4763 function.
4764
4765 2014-05-26 Andy Wingo <wingo@igalia.com>
4766 Doug Evans <xdje42@gmail.com>
4767
4768 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4769 empty_base_class. All uses updated.
4770 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4771 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4772 Adapt all callers.
4773 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4774 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4775 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4776 (gdbscm_gsmob_has_property_p, add_property_name)
4777 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4778 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4779 (gdb-object-has-property?, gdb-object-properties): Remove.
4780 (gdb-object-kind): Renamed from gsmob-kind.
4781
4782 2014-05-26 Andy Wingo <wingo@igalia.com>
4783
4784 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4785 * configure: Regenerate.
4786
4787 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4788
4789 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4790
4791 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4792
4793 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4794 (replay_memory_access_read_only, replay_memory_access_read_write)
4795 (replay_memory_access_types, replay_memory_access)
4796 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4797 (cmd_set_record_btrace, cmd_show_record_btrace)
4798 (cmd_show_replay_memory_access): New.
4799 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4800 (record_btrace_remove_breakpoint): Replace
4801 record_btrace_allow_memory_access with replay_memory_access.
4802 (_initialize_record_btrace): Add commands.
4803 * NEWS: Announce it.
4804
4805 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4806
4807 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4808
4809 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4810
4811 * MAINTAINERS (Write After Approval): Move self back from
4812 paper trail.
4813
4814 2014-05-22 Pedro Alves <palves@redhat.com>
4815
4816 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4817 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4818 (disable_randomization, enum exec_direction_kind)
4819 (execution_direction, stop_registers, start_remote)
4820 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4821 (wait_for_inferior, normal_stop, get_last_target_status)
4822 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4823 (insert_step_resume_breakpoint_at_sal)
4824 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4825 (set_step_info, print_stop_event, signal_stop_state)
4826 (signal_print_state, signal_pass_state, signal_stop_update)
4827 (signal_print_update, signal_pass_update)
4828 (update_signals_program_target, clear_exit_convenience_vars)
4829 (displaced_step_dump_bytes, update_observer_mode)
4830 (signal_catch_update, gdb_signal_from_command): Move
4831 declarations ...
4832 * infrun.h: ... to this new file.
4833 * amd64-tdep.c: Include infrun.h.
4834 * annotate.c: Include infrun.h.
4835 * arch-utils.c: Include infrun.h.
4836 * arm-linux-tdep.c: Include infrun.h.
4837 * arm-tdep.c: Include infrun.h.
4838 * break-catch-sig.c: Include infrun.h.
4839 * breakpoint.c: Include infrun.h.
4840 * common/agent.c: Include infrun.h instead of inferior.h.
4841 * corelow.c: Include infrun.h.
4842 * event-top.c: Include infrun.h.
4843 * go32-nat.c: Include infrun.h.
4844 * i386-tdep.c: Include infrun.h.
4845 * inf-loop.c: Include infrun.h.
4846 * infcall.c: Include infrun.h.
4847 * infcmd.c: Include infrun.h.
4848 * infrun.c: Include infrun.h.
4849 * linux-fork.c: Include infrun.h.
4850 * linux-nat.c: Include infrun.h.
4851 * linux-thread-db.c: Include infrun.h.
4852 * monitor.c: Include infrun.h.
4853 * nto-tdep.c: Include infrun.h.
4854 * procfs.c: Include infrun.h.
4855 * record-btrace.c: Include infrun.h.
4856 * record-full.c: Include infrun.h.
4857 * remote-m32r-sdi.c: Include infrun.h.
4858 * remote-mips.c: Include infrun.h.
4859 * remote-notif.c: Include infrun.h.
4860 * remote-sim.c: Include infrun.h.
4861 * remote.c: Include infrun.h.
4862 * reverse.c: Include infrun.h.
4863 * rs6000-tdep.c: Include infrun.h.
4864 * s390-linux-tdep.c: Include infrun.h.
4865 * solib-irix.c: Include infrun.h.
4866 * solib-osf.c: Include infrun.h.
4867 * solib-svr4.c: Include infrun.h.
4868 * target.c: Include infrun.h.
4869 * top.c: Include infrun.h.
4870 * windows-nat.c: Include infrun.h.
4871 * mi/mi-interp.c: Include infrun.h.
4872 * mi/mi-main.c: Include infrun.h.
4873 * python/py-threadevent.c: Include infrun.h.
4874
4875 2014-05-22 Pedro Alves <palves@redhat.com>
4876
4877 * infrun.c (handle_inferior_event): Store the exit code for
4878 --return-child-result here, instead of ...
4879 (print_exited_reason): ... here.
4880
4881 2014-05-21 Pedro Alves <palves@redhat.com>
4882
4883 PR gdb/13860
4884 * gdbthread.h (struct thread_control_state): New field
4885 `command_interp'.
4886 * infrun.c (follow_fork): Copy the new thread control field to the
4887 child fork thread.
4888 (clear_proceed_status_thread): Clear the new thread control field.
4889 (proceed): Set the new thread control field.
4890 * interps.h (command_interp): Declare.
4891 * interps.c (command_interpreter): New global.
4892 (command_interp): New function.
4893 (interp_exec): Set `command_interpreter' while here.
4894 * cli-out.c (cli_uiout_dtor): New function.
4895 (cli_ui_out_impl): Install it.
4896 * mi/mi-interp.c: Include cli-out.h.
4897 (mi_cmd_interpreter_exec): Add comment.
4898 (restore_current_uiout_cleanup): New function.
4899 (ui_out_free_cleanup): New function.
4900 (mi_on_normal_stop): If finishing an execution command started by
4901 a CLI command, or any kind of breakpoint-like event triggered,
4902 print the stop event to the output (CLI) stream.
4903 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4904
4905 2014-05-21 Pedro Alves <palves@redhat.com>
4906
4907 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4908 current source line having changed.
4909 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4910 * infrun.c (normal_stop): Adjust call to
4911 set_current_sal_from_frame.
4912 * source.c (clear_lines_listed_range): New function.
4913 (set_current_source_symtab_and_line, identify_source_line): Clear
4914 the lines listed range.
4915 (line_info): Handle the first "info line" after the current source
4916 line having changed.
4917 * stack.c (print_stack_frame): Remove center handling.
4918 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4919 center sal.line.
4920
4921 2014-05-21 Pedro Alves <palves@redhat.com>
4922
4923 * inf-child.c (inf_child_mourn_inferior): New function.
4924 * inf-child.h (inf_child_mourn_inferior): New declaration.
4925 * darwin-nat.c (darwin_mourn_inferior): Use
4926 inf_child_mourn_inferior.
4927 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4928 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4929 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4930 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4931 * windows-nat.c (windows_mourn_inferior): Likewise.
4932
4933 2014-05-21 Doug Evans <xdje42@gmail.com>
4934
4935 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4936
4937 2014-05-21 Doug Evans <xdje42@gmail.com>
4938
4939 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4940 (gdbscm_out_of_range_error): Ditto.
4941 (gdbscm_memory_error): Ditto.
4942 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4943 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4944 (gdbscm_out_of_range_error): Update.
4945 (gdbscm_memory_error): Update.
4946 (gdbscm_scm_to_target_string_unsafe): Delete.
4947
4948 2014-05-21 Pedro Alves <palves@redhat.com>
4949
4950 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4951 globals.
4952 (inf_child_open_target): New function.
4953 (inf_child_open): Use inf_child_open_target to push the target
4954 instead of erroring out.
4955 (inf_child_disconnect, inf_child_close)
4956 (inf_child_maybe_unpush_target): New functions.
4957 (inf_child_target): Install inf_child_disconnect and
4958 inf_child_close. Store a pointer to the returned object.
4959 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4960 declarations.
4961 * target.c (auto_connect_native_target): New global.
4962 (show_default_run_target): New function.
4963 (find_default_run_target): Return NULL if automatically connecting
4964 to the native target is disabled.
4965 (_initialize_target): Install set/show auto-connect-native-target.
4966 * NEWS: Mention "set auto-connect-native-target", and "target
4967 native".
4968 * linux-nat.c (super_close): New global.
4969 (linux_nat_close): Call super_close.
4970 (linux_nat_add_target): Store a pointer to the base class's
4971 to_close method.
4972 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4973 inf_child_maybe_unpush.
4974 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4975 already pushed.
4976 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4977 the inferior. Use inf_child_maybe_unpush_target.
4978 (inf_ttrace_attach): Don't push the target if it is already
4979 pushed.
4980 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4981 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4982 after mourning the inferior. Use inf_child_maybe_unpush_target.
4983 (darwin_attach_pid): Don't push the target if it is already
4984 pushed.
4985 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4986 mourning the inferior. Use inf_child_maybe_unpush_target.
4987 (gnu_detach): Use inf_child_maybe_unpush_target.
4988 * go32-nat.c (go32_create_inferior): Don't push the target if it
4989 is already pushed.
4990 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4991 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4992 (procfs_open): Rename to ...
4993 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4994 comments. Can target_preopen before changing node. Call
4995 inf_child_open_target to push the target explicitly.
4996 (procfs_attach): Don't push the target if it is already pushed.
4997 (procfs_detach): Use inf_child_maybe_unpush_target.
4998 (procfs_create_inferior): Don't push the target if it is already
4999 pushed.
5000 (nto_native_ops): New global.
5001 (procfs_open): Reimplement.
5002 (procfs_native_open): New function.
5003 (init_procfs_targets): Install procfs_native_open as to_open of
5004 "target native". Store a pointer to the "native" target in
5005 nto_native_ops.
5006 * procfs.c (procfs_attach): Don't push the target if it is already
5007 pushed.
5008 (procfs_detach): Use inf_child_maybe_unpush_target.
5009 (procfs_mourn_inferior): Only unpush the target after mourning the
5010 inferior. Use inf_child_maybe_unpush_target.
5011 (procfs_init_inferior): Don't push the target if it is already
5012 pushed.
5013 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5014 if it is already pushed.
5015
5016 2014-05-21 Pedro Alves <palves@redhat.com>
5017
5018 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5019 and "procfs" targets are now called "native" instead.
5020
5021 2014-05-21 Pedro Alves <palves@redhat.com>
5022
5023 * go32-nat.c (go32_open): Delete.
5024 (go32_target): Don't override the to_open method.
5025
5026 2014-05-21 Pedro Alves <palves@redhat.com>
5027
5028 * nto-procfs.c (procfs_can_run): New function.
5029 (nto_procfs_ops): New global.
5030 (init_procfs_targets): New, based on procfs_target. Install
5031 "target native" in addition to "target procfs".
5032 (_initialize_procfs): Call init_procfs_targets instead of adding
5033 the target here.
5034
5035 2014-05-21 Pedro Alves <palves@redhat.com>
5036
5037 * windows-nat.c (windows_target): Don't override to_shortname,
5038 to_longname or to_doc.
5039
5040 2014-05-21 Pedro Alves <palves@redhat.com>
5041
5042 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5043 to_doc.
5044
5045 2014-05-21 Pedro Alves <palves@redhat.com>
5046
5047 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5048 to_shortname, to_longname or to_doc.
5049
5050 2014-05-21 Pedro Alves <palves@redhat.com>
5051
5052 * go32-nat.c (go32_target): Don't override to_shortname,
5053 to_longname or to_doc.
5054
5055 2014-05-21 Pedro Alves <palves@redhat.com>
5056
5057 * inf-child.c (inf_child_open): Remove mention of "child".
5058 (inf_child_target): Rename target to "native" instead of "child".
5059
5060 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5061
5062 * Makefile.in (SFILES): Delete "regset.c".
5063 (COMMON_OBS): Delete "regset.o".
5064 * regset.c: Remove.
5065 * regset.h (regset_alloc): Delete prototype.
5066
5067 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5068
5069 * sparc-linux-tdep.c (sparc32_linux_gregset)
5070 (sparc32_linux_fpregset): New static regset structures.
5071 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5072 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5073 'fpregset' fields.
5074 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5075 (sparc64_linux_fpregset): New static regset structures.
5076 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5077 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5078 New static regset structures.
5079 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5080 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5081 New static regset structures.
5082 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5083 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5084 New static regset structures.
5085 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5086 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5087 New static regset structures.
5088 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5089
5090 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5091
5092 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5093 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5094 register maps ("regmaps") from "*regset" to "*regmap". Do this
5095 for all regmap types and variables.
5096 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5097 (sparc32_linux_supply_core_gregset)
5098 (sparc32_linux_collect_core_gregset)
5099 (sparc32_linux_supply_core_fpregset)
5100 (sparc32_linux_collect_core_fpregset): Likewise.
5101 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5102 (sparc_gregmap, sparc_fpregmap): ... these.
5103 (sparc_supply_gregset, sparc_collect_gregset)
5104 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5105 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5106 (_initialize_sparc_nat): Rename regmaps.
5107 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5108 (sparc_gregmap, sparc_fpregmap): ... these.
5109 (sparc_supply_gregset, sparc_collect_gregset)
5110 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5111 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5112 Rename macros to...
5113 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5114 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5115 Likewise.
5116 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5117 Rename to...
5118 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5119 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5120 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5121 regmaps.
5122 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5123 (sparc32_bsd_fpregset): Rename to...
5124 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5125 (sparc32_bsd_fpregmap): ... these.
5126 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5127 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5128 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5129 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5130 (struct sparc_gregmap, struct sparc_fpregmap)
5131 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5132 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5133 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5134 (sparc32_supply_regset, sparc32_collect_gregset)
5135 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5136 prototypes.
5137 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5138 (sparc64_linux_ptrace_gregmap): ... this.
5139 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5140 (_initialize_sparc64_linux_nat): Rename regmaps.
5141 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5142 (sparc64_linux_core_gregmap): ... this.
5143 (sparc64_linux_supply_core_gregset)
5144 (sparc64_linux_collect_core_gregset)
5145 (sparc64_linux_supply_core_fpregset)
5146 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5147 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5148 (sparc64_sol2_fpregset): Rename to...
5149 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5150 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5151 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5152 regmaps.
5153 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5154 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5155 (sparc64_bsd_fpregset): Rename to...
5156 (struct sparc_gregmap, sparc64_sol2_gregmap)
5157 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5158 (sparc64_bsd_fpregmap): ... these.
5159 (sparc64_supply_gregset, sparc64_collect_gregset)
5160 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5161 prototypes.
5162 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5163 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5164 (sparc64fbsd_gregmap): ... this.
5165 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5166 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5167 Rename regmaps.
5168 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5169 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5170 (sparc64nbsd_collect_fpregset): Likewise.
5171 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5172 (sparc64nbsd_gregmap): ... this.
5173 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5174 regmaps.
5175 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5176 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5177 (sparc64obsd_gregmap): ... this.
5178 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5179 regmaps.
5180 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5181 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5182 (sparc32nbsd_gregmap): ... this.
5183 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5184 regmaps.
5185
5186 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5187
5188 * score-tdep.c (score7_linux_gregset): New static regset
5189 structure.
5190 (score7_linux_regset_from_core_section): Remove dynamic regset
5191 allocation.
5192 (score_gdbarch_init): Drop allocation of tdep structure.
5193 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5194
5195 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5196
5197 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5198 regset structures.
5199 (am33_regset_from_core_section): Remove dynamic regset
5200 allocations.
5201
5202 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5203
5204 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5205 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5206 structures.
5207 (mips_linux_regset_from_core_section): Remove dynamic regset
5208 allocations.
5209 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5210 'gregset64', 'fpregset', and 'fpregset64'.
5211 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5212 deleted tdep fields.
5213
5214 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5215
5216 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5217 regset structures.
5218 (amd64_regset_from_core_section): Remove dynamic regset
5219 allocations.
5220 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5221 structure.
5222 (amd64obsd_regset_from_core_section): Remove dynamic regset
5223 allocation.
5224 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5225 Likewise.
5226 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5227 x86-common regset supply function.
5228 * i386-tdep.c (i386_collect_gregset): Make static.
5229 (i386_gregset): New global regset structure.
5230 (i386_fpregset, i386_xstateregset): New static regset structures.
5231 (i386_regset_from_core_section): Remove dynamic regset
5232 allocations.
5233 (i386_gdbarch_init): Remove initialization of tdep fields
5234 'gregset', 'fpregset', and 'xstateregset'.
5235 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5236 'fpregset', and 'xstateregset'.
5237 (i386_collect_gregset): Remove prototype.
5238 (i386_gregset): New declaration.
5239 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5240 structure.
5241 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5242 allocation.
5243
5244 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5245
5246 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5247 (arm_linux_vfpregset): New static regset structures.
5248 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5249 regset structures.
5250 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5251 and 'vfpregset' fields.
5252
5253 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5254
5255 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5256 (aarch64_linux_fpregset): New static regset structures.
5257 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5258 of regset structures.
5259 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5260 'fpregset' fields.
5261
5262 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5263
5264 * regset.h (struct regset): Remove gdbarch field.
5265 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5266 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5267 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5268 Likewise.
5269 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5270 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5271 (ppc32_linux_vsxregset): Likewise.
5272 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5273 via the regcache instead of the regset.
5274 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5275 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5276 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5277 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5278 Likewise.
5279
5280 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5281
5282 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5283 Constify structures.
5284 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5285 (alphanbsd_aout_gregset): Likewise.
5286 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5287 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5288 Likewise.
5289 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5290 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5291 Likewise.
5292 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5293 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5294 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5295 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5296 * m88k-tdep.c (m88k_gregset): Likewise.
5297 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5298 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5299 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5300 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5301 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5302 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5303 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5304 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5305 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5306 Likewise.
5307 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5308 * sh-tdep.h (sh_corefile_gregset): Likewise.
5309 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5310 * vax-tdep.c (vax_gregset): Likewise.
5311
5312 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5313
5314 Fix TLS access for -static -pthread.
5315 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5316 (try_thread_db_load_1): Initialize it.
5317 (thread_db_get_thread_local_address): Call it if LM is zero.
5318 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5319 * target.h (struct target_ops) (to_get_thread_local_address): Add
5320 load_module_addr comment.
5321
5322 2014-05-21 Pedro Alves <palves@redhat.com>
5323
5324 * dcache.c (dcache_read_memory_partial): If reading the cache line
5325 fails, fallback to reading just the memory the caller wanted.
5326
5327 2014-05-20 Doug Evans <dje@google.com>
5328
5329 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5330 instead of get_current_arch.
5331
5332 2014-05-20 Pedro Alves <palves@redhat.com>
5333
5334 * NEWS: Mention that compare-sections now works with all targets.
5335
5336 * remote.c (PACKET_qCRC): New enum value.
5337 (remote_verify_memory): Don't send qCRC if the target has no
5338 execution. Use packet_support/packet_ok. If the target doesn't
5339 support the qCRC packet, fallback to a deep memory copy.
5340 (compare_sections_command): Say "target image" instead of "remote
5341 executable".
5342 (_initialize_remote): Add PACKET_qCRC to the list of config
5343 packets that have no associated command. Extend comment.
5344 * target.c (simple_verify_memory, default_verify_memory): New
5345 function.
5346 * target.h (struct target_ops) <to_verify_memory>: Default to
5347 default_verify_memory.
5348 (simple_verify_memory): New declaration.
5349 * target-delegates.c: Regenerate.
5350
5351 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5352
5353 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5354
5355 2014-05-20 Hui Zhu <hui@codesourcery.com>
5356 Yao Qi <yao@codesourcery.com>
5357
5358 PR backtrace/16558
5359 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5360 and change address of sp and pc.
5361
5362 2014-05-19 Tom Tromey <tromey@redhat.com>
5363
5364 * gdbtypes.c (rank_function): Use XNEWVEC.
5365 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5366
5367 2014-05-19 Doug Evans <dje@google.com>
5368
5369 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5370 build_type_unit_groups and moved closer to only caller. Remove
5371 arguments. All references updated. Remove outdated .gdb_index
5372 comment.
5373 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5374 build_type_psymtabs_1.
5375
5376 2014-05-19 Doug Evans <dje@google.com>
5377
5378 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5379 n_type_unit_groups, all_type_unit_groups. All uses removed.
5380 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5381 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5382 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5383 (add_type_unit_group_to_table): Delete.
5384
5385 2014-05-19 Doug Evans <dje@google.com>
5386
5387 * eval.c (evaluate_subexp_standard): Add some comments.
5388
5389 2014-05-17 Doug Evans <xdje42@gmail.com>
5390
5391 * progspace.c (remove_program_space): Delete, unused.
5392 * progspace.h (remove_program_space): Ditto.
5393
5394 2014-05-17 Doug Evans <xdje42@gmail.com>
5395
5396 * inferior.c (prune_inferiors): Fix comment.
5397 (remove_inferior_command): Call prune_program_spaces.
5398
5399 2014-05-16 Doug Evans <dje@google.com>
5400
5401 New command line option -D.
5402 * NEWS: Mention it.
5403 * main.c (set_gdb_data_directory): New function.
5404 (captured_main): Recognize -D. Flag error for --data-directory "".
5405 Call set_gdb_data_directory.
5406 (print_gdb_help): Print --data-directory, -D.
5407 * main.h (set_gdb_data_directory): Declare.
5408 * top.c (staged_gdb_datadir): New static global.
5409 (set_gdb_datadir): Call set_gdb_data_directory
5410 (show_gdb_datadir): New function.
5411 (init_main): Update init of data-directory parameter.
5412
5413 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5414
5415 Import the "dirfd" gnulib module.
5416 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5417 * gnulib/aclocal.m4: Update.
5418 * gnulib/config.in: Update.
5419 * gnulib/configure: Update.
5420 * gnulib/import/Makefile.am: Update.
5421 * gnulib/import/Makefile.in: Update.
5422 * gnulib/import/dirfd.c: New.
5423 * gnulib/import/m4/dirfd.m4: New.
5424 * gnulib/import/m4/gnulib-cache.m4: Update.
5425 * gnulib/import/m4/gnulib-comp.m4: Update.
5426
5427 2014-05-16 Pierre Muller <muller@sourceware.org>
5428 Yao Qi <yao@codesourcery.com>
5429
5430 * valprint.c (print_wchar): Move the code on checking whether
5431 W is a printable wide char to the default branch of switch
5432 statement below. Call wchar_printable instead of gdb_iswprint.
5433
5434 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5435
5436 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5437 ldr.w and ldrd instructions.
5438
5439 2014-05-15 Doug Evans <dje@google.com>
5440
5441 * dwarf2read.c (read_structure_type): Delete outdated comments.
5442
5443 2014-05-14 Tom Tromey <tromey@redhat.com>
5444
5445 * macrocmd.c (print_macro_definition): Reindent.
5446
5447 2014-05-13 Doug Evans <xdje42@gmail.com>
5448
5449 * python/py-cmd.c (cmdpy_completer): Add comment.
5450 (completers): Make const.
5451
5452 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5453
5454 * infrun.c (resume): Remove should_resume (unused). Move up
5455 declaration of resume_ptid.
5456
5457 2014-05-13 Tom Tromey <tromey@redhat.com>
5458
5459 * language.h (unop_type_check): Remove.
5460 (binop_type_check): Don't declare.
5461
5462 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5463
5464 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5465 call to regcache_raw_collect.
5466
5467 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5468
5469 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5470 mi_console->quote as the quoting character.
5471
5472 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5473
5474 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5475
5476 2014-04-29 Tom Tromey <tromey@redhat.com>
5477
5478 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5479 "show debug varobj".
5480
5481 2014-05-07 Kyle McMartin <kyle@redhat.com>
5482
5483 Pushed by Joel Brobecker <brobecker@adacore.com>.
5484 * aarch64-tdep.c (aarch64_software_single_step): New function.
5485 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5486 with aarch64_software_single_step.
5487
5488 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5489
5490 GDB 7.7.1 released.
5491
5492 2014-05-05 Keith Seitz <keiths@redhat.com>
5493
5494 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5495 variable or history value is successfully parsed.
5496
5497 2014-05-05 Yao Qi <yao@codesourcery.com>
5498 Pedro Alves <palves@redhat.com>
5499
5500 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5501 address of blocks that intersects the requested range. Trim
5502 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5503 sections.
5504 * ctf.c (ctf_xfer_partial): Likewise.
5505
5506 2014-05-05 Yao Qi <yao@codesourcery.com>
5507
5508 * printcmd.c (display_command): Remove the check to
5509 target_has_execution.
5510
5511 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5512
5513 * ppcobsd-nat.c: Include "obsd-nat.h".
5514 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5515 add_target.
5516 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5517
5518 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5519
5520 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5521 and 16-bit signed and unsigned arguments. Update comment.
5522 (stap_parse_probe_arguments): Extend code to handle such
5523 arguments. Use warning instead of complaint to notify about
5524 unrecognized bitness.
5525
5526 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5527
5528 PR breakpoints/16889
5529 * stap-probe.c (stap_parse_probe_arguments): Simplify
5530 check for non-prefixed probes (i.e., probes whose
5531 arguments do not start with "N@"). Always set the
5532 argument type to a sane value.
5533
5534 2014-05-01 David Taylor <dtaylor@emc.com>
5535
5536 * remote.c (compare_sections_command): Add -r option to compare
5537 all loadable read-only sections.
5538
5539 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5540
5541 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5542 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5543 Update all callers.
5544 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5545 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5546 Remove unused CORE_ADDR argument. Update all callers.
5547
5548 2014-04-29 Pedro Alves <palves@redhat.com>
5549
5550 * remote.c (struct packet_config) <detect>: Extend comment.
5551 (add_packet_config_cmd): Don't set the config's detect or support
5552 fields here.
5553 (init_all_packet_configs): Also initialize the config's 'detect'
5554 field.
5555 (reset_all_packet_configs_support): New function.
5556 (remote_open_1): Call reset_all_packet_configs_support instead of
5557 init_all_packet_configs.
5558 (_initialize_remote): Initialize all packet configs. Assert that
5559 all packets have an associated command, except a few known
5560 outliers.
5561
5562 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5563
5564 * dwarf2read.c (read_subrange_type): Handle dynamic
5565 DW_AT_lower_bound attributes.
5566
5567 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5568
5569 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5570 dynamic bounds before computing its upper bound.
5571 (ada_discrete_type_low_bound): Same as above with the lower bound.
5572
5573 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5574
5575 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5576 range types. Adjust the array handling implementation to
5577 take advantage of this change.
5578 (resolve_dynamic_range): New function, mostly extracted from
5579 resolve_dynamic_bounds.
5580 (resolve_dynamic_array): New function, mostly extracted from
5581 resolve_dynamic_bounds.
5582 (resolve_dynamic_bounds): Delete.
5583 (resolve_dynamic_type): Reimplement. Add handling of
5584 TYPE_CODE_RANGE types.
5585
5586 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5587
5588 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5589 handling of parallel ___XA types.
5590
5591 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5592
5593 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5594 unnecessary second call to static_unwrap_type.
5595
5596 2014-04-27 Hui Zhu <hui@codesourcery.com>
5597
5598 * stack.c (print_frame_info): Call do_gdb_disassembly with
5599 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5600
5601 2014-04-26 Doug Evans <xdje42@gmail.com>
5602
5603 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5604
5605 2014-04-25 Pedro Alves <palves@redhat.com>
5606
5607 PR server/16255
5608 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5609 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5610 and newline from built string.
5611 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5612 (linux_ptrace_attach_fail_reason): ... this.
5613 * linux-nat.c (linux_nat_attach): Adjust to use
5614 linux_ptrace_attach_fail_reason.
5615
5616 2014-04-25 Pedro Alves <palves@redhat.com>
5617
5618 * remote.c (struct remote_state): Remove multi_process_aware,
5619 non_stop_aware, cond_tracepoints, cond_breakpoints,
5620 breakpoint_commands, fast_tracepoints, static_tracepoints,
5621 install_in_trace, disconnected_tracing,
5622 enable_disable_tracepoints, string_tracing, and
5623 augmented_libraries_svr4_read fields.
5624 (remote_multi_process_p): Move further below in the file.
5625 (struct packet_config): Add comments.
5626 (update_packet_config): Delete function.
5627 (show_packet_config_cmd): Use packet_config_support.
5628 (add_packet_config_cmd): Use NULL as set callback.
5629 (packet_ok): "set remote foo-packet"-style commands no longer
5630 change config->supported -- adjust.
5631 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5632 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5633 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5634 (PACKET_QNonStop, PACKET_multiprocess_feature)
5635 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5636 (PACKET_DisconnectedTracing_feature)
5637 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5638 (set_remote_protocol_packet_cmd): Delete function.
5639 (packet_config_support, packet_support): New functions.
5640 (set_remote_protocol_Z_packet_cmd): Don't call
5641 update_packet_config.
5642 (remote_query_attached, remote_pass_signals)
5643 (remote_program_signals, remote_threads_info)
5644 (remote_threads_extra_info, remote_start_remote): Use
5645 packet_support.
5646 (remote_start_remote): Use packet_config_support and
5647 packet_support.
5648 (init_all_packet_configs): Set all packets to unknown support,
5649 instead of calling update_packet_config.
5650 (remote_check_symbols): Use packet_support.
5651 (remote_supported_packet): Unconditionally set the packet config's
5652 support status.
5653 (remote_multi_process_feature, remote_non_stop_feature)
5654 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5655 (remote_breakpoint_commands_feature)
5656 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5657 (remote_install_in_trace_feature)
5658 (remote_disconnected_tracing_feature)
5659 (remote_enable_disable_tracepoint_feature)
5660 (remote_string_tracing_feature)
5661 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5662 (remote_protocol_features): Adjust to use remote_supported_packet
5663 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5664 "ConditionalTracepoints", "ConditionalBreakpoints",
5665 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5666 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5667 "EnableDisableTracepoints", and "tracenz".
5668 (remote_query_supported): Use packet_support.
5669 (remote_open_1): Adjust.
5670 (extended_remote_attach_1): Use packet_support. Switch on the
5671 result of packet_ok instead of checking whether the packet ended
5672 up disabled.
5673 (remote_vcont_resume): Use packet_support.
5674 (remote_resume, remote_stop_ns, fetch_register_using_p)
5675 (remote_prepare_to_store, store_register_using_P)
5676 (check_binary_download, remote_write_bytes): Use packet_support.
5677 (remote_vkill): Use packet_support. Switch on the result of
5678 packet_ok instead of checking whether the packet ended up
5679 disabled.
5680 (extended_remote_supports_disable_randomization): Use
5681 packet_support.
5682 (extended_remote_run): Switch on the result of packet_ok instead
5683 of checking whether the packet ended up disabled.
5684 (remote_insert_breakpoint, remote_remove_breakpoint)
5685 (remote_insert_watchpoint, remote_remove_watchpoint)
5686 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5687 packet_support.
5688 (remote_search_memory): Use packet_config_support.
5689 (remote_get_thread_local_address, remote_get_tib_address)
5690 (remote_hostio_send_command, remote_can_execute_reverse): Use
5691 packet_support.
5692 (remote_supports_cond_tracepoints)
5693 (remote_supports_cond_breakpoints)
5694 (remote_supports_fast_tracepoints)
5695 (remote_supports_static_tracepoints)
5696 (remote_supports_install_in_trace)
5697 (remote_supports_enable_disable_tracepoint)
5698 (remote_supports_string_tracing)
5699 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5700 the packet config says the feature is enabled or disabled.
5701 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5702 (remote_get_trace_status): Use packet_support.
5703 (remote_set_disconnected_tracing): Adjust to check whether the
5704 feature is enabled with packet_support.
5705 (remote_set_trace_buffer_size, remote_use_agent)
5706 (remote_can_use_agent, remote_supports_btrace): Use
5707 packet_support.
5708 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5709 Use packet_config_support.
5710 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5711 the packet config says the feature is enabled or disabled.
5712 (set_range_stepping): Use packet_support.
5713
5714 2014-04-25 Tom Tromey <tromey@redhat.com>
5715
5716 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5717 argument.
5718
5719 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5720
5721 * NEWS: Mention support for C99 variable length arrays.
5722
5723 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5724
5725 * ada-lang.c (standard_exc): Expand introductory comment.
5726
5727 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5728 Walfred Tedeschi <walfred.tedeschi@intel.com>
5729
5730 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5731 AVX512 registers.
5732 (amd64_linux_read_description): Add code to handle AVX512 xstate
5733 mask and return respective tdesc.
5734 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5735 and features/i386/x32-avx512-linux.c.
5736 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5737 (amd64_linux_core_read_description): Add code to handle AVX512
5738 xstate mask and return respective tdesc.
5739 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5740 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5741 calculation.
5742 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5743 (tdesc_amd64_avx512_linux): New prototype.
5744 (tdesc_x32_avx512_linux): Likewise.
5745 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5746 features/i386/x32-avx512.c.
5747 (amd64_ymm_avx512_names): New register names for pseudo
5748 registers YMM16-31.
5749 (amd64_ymmh_avx512_names): New register names for raw registers
5750 YMMH16-31.
5751 (amd64_k_names): New register names for K registers.
5752 (amd64_zmmh_names): New register names for ZMM raw registers.
5753 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5754 (amd64_xmm_avx512_names): New register names for XMM16-31
5755 registers.
5756 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5757 registers.
5758 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5759 if feature is present.
5760 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5761 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5762 (AMD64_NUM_REGS): Adjust to new number of registers.
5763 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5764 registers supplied via XSTATE by AVX512 registers.
5765 (i386_linux_read_description): Add case for AVX512.
5766 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5767 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5768 (i386_linux_core_read_description): Add case for AVX512.
5769 (i386_linux_init_abi): Install supported register note section
5770 for AVX512.
5771 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5772 AVX512.
5773 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5774 registers to be number of zmm7h + 1.
5775 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5776 * i386-tdep.c: Include features/i386/i386-avx512.c.
5777 (i386_zmm_names): Add ZMM pseudo register names array.
5778 (i386_zmmh_names): Add ZMM raw register names array.
5779 (i386_k_names): Add K raw register names array.
5780 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5781 registers. AVX512 has 16 more ZMM registers than there are YMM
5782 registers.
5783 (i386_zmmh_regnum_p): Add function to look up register number of
5784 ZMM raw registers.
5785 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5786 (i386_k_regnum_p): Likewise for K raw registers.
5787 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5788 registers added by AVX512.
5789 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5790 registers added by AVX512.
5791 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5792 added by AVX512.
5793 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5794 (i386_pseudo_register_name): Add ZMM pseudo registers.
5795 (i386_zmm_type): Construct and return vector registers type for ZMM
5796 registers.
5797 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5798 ZMM0-31 pseudo registers and K registers.
5799 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5800 and YMM16-31 registers from register cache.
5801 (i386_pseudo_register_write): Add code to write K, ZMM and
5802 YMM16-31 registers.
5803 (i386_register_reggroup_p): Add code to include/exclude AVX512
5804 registers in/from respective register groups.
5805 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5806 registers if feature is present in xcr0.
5807 (i386_gdbarch_init): Add code to initialize AVX512 feature
5808 variables in tdep structure, wire in pseudo registers and call
5809 initialize_tdesc_i386_avx512.
5810 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5811 variables.
5812 (i386_regnum): Add AVX512 registers.
5813 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5814 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5815 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5816 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5817 512 bits wide.
5818 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5819 (i386_ymm_avx512_regnum_p): Likewise.
5820 (i386_k_regnum_p): Likewise.
5821 (i386_zmm_regnum_p): Likewise.
5822 (i386_zmmh_regnum_p): Likewise.
5823 * i387-tdep.c : Update year in copyright notice.
5824 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5825 XSAVE buffer.
5826 (XSAVE_YMM_AVX512_ADDR): New macro.
5827 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5828 XSAVE buffer.
5829 (XSAVE_XMM_AVX512_ADDR): New macro.
5830 (xsave_avx512_k_offset): New table for K register offsets in
5831 XSAVE buffer.
5832 (XSAVE_AVX512_K_ADDR): New macro.
5833 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5834 in XSAVE buffer.
5835 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5836 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5837 buffer.
5838 (i387_collect_xsave): Add code to collect AVX512 registers from
5839 XSAVE buffer.
5840 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5841 of XMM16-31 registers.
5842 (I387_NUM_K_REGS): New define for number of K registers.
5843 (I387_K0_REGNUM): New define for K0 register number.
5844 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5845 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5846 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5847 registers.
5848 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5849 (I387_XMM16_REGNUM): New define for XMM16 register number.
5850 (I387_YMM0_REGNUM): New define for YMM0 register number.
5851 (I387_KEND_REGNUM): New define for last K register number.
5852 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5853 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5854 number.
5855 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5856 number.
5857 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5858 size.
5859 * features/Makefile: Add AVX512 related files.
5860 * features/i386/32bit-avx512.xml: New file.
5861 * features/i386/64bit-avx512.xml: Likewise.
5862 * features/i386/amd64-avx512-linux.c: Likewise.
5863 * features/i386/amd64-avx512-linux.xml: Likewise.
5864 * features/i386/amd64-avx512.c: Likewise.
5865 * features/i386/amd64-avx512.xml: Likewise.
5866 * features/i386/i386-avx512-linux.c: Likewise.
5867 * features/i386/i386-avx512-linux.xml: Likewise.
5868 * features/i386/i386-avx512.c: Likewise.
5869 * features/i386/i386-avx512.xml: Likewise.
5870 * features/i386/x32-avx512-linux.c: Likewise.
5871 * features/i386/x32-avx512-linux.xml: Likewise.
5872 * features/i386/x32-avx512.c: Likewise.
5873 * features/i386/x32-avx512.xml: Likewise.
5874 * regformats/i386/amd64-avx512-linux.dat: New file.
5875 * regformats/i386/amd64-avx512.dat: Likewise.
5876 * regformats/i386/i386-avx512-linux.dat: Likewise.
5877 * regformats/i386/i386-avx512.dat: Likewise.
5878 * regformats/i386/x32-avx512-linux.dat: Likewise.
5879 * regformats/i386/x32-avx512.dat: Likewise.
5880 * NEWS: Add note about new support for AVX512.
5881
5882
5883 2014-04-23 Pedro Alves <palves@redhat.com>
5884
5885 * breakpoint.c (insert_bp_location): Tolerate errors if the
5886 breakpoint is set in a user-loaded objfile.
5887 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5888 location is marked shlib_disabled. If the breakpoint is set in a
5889 user-loaded objfile is a GDB-side memory breakpoint, validate it
5890 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5891 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5892 flag.
5893 * mem-break.c (memory_validate_breakpoint): New function.
5894 * objfiles.c (userloaded_objfile_contains_address_p): New
5895 function.
5896 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5897 * target.h (memory_validate_breakpoint): New declaration.
5898
5899 2014-04-23 Pedro Alves <palves@redhat.com>
5900
5901 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5902 the breakpoint is set in a shared library, only suppress
5903 errors for software breakpoints, not hardware breakpoints.
5904
5905 2014-04-22 Pedro Alves <palves@redhat.com>
5906
5907 * infrun.c (schedlock_applies): New function, factored out from
5908 find_thread_needs_step_over.
5909 (find_thread_needs_step_over): Use it.
5910 (switch_back_to_stepped_thread): Always clear trap_expected if the
5911 step over is finished. Return early if scheduler locking applies.
5912 Look for the stepping thread and a potential step-over thread with
5913 a single loop.
5914 (currently_stepping_or_nexting_callback): Delete.
5915
5916 2014-04-22 Nick Clifton <nickc@redhat.com>
5917
5918 * NEWS: Mention that ARM sim now supports tracing.
5919
5920 2014-04-22 Yao Qi <yao@codesourcery.com>
5921
5922 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5923 to ...
5924 * tracefile.c (tracefile_fetch_registers): ... it. New
5925 function.
5926 * tracefile.h (tracefile_fetch_registers): Declare.
5927 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5928 tracefile_fetch_registers.
5929
5930 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5931
5932 PR gdb/14018
5933 * windows-nat.c (thread_rec): Don't display a warning when
5934 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5935 fails for any reason, set th->suspended to -1, so that we don't
5936 try to resume such a thread. Also, don't return NULL in these
5937 cases, to avoid completely ruin the session due to "PC register is
5938 not available" error.
5939 (do_windows_fetch_inferior_registers): Check errors in
5940 GetThreadContext call.
5941 (windows_continue): Accept an additional argument KILLED; if not
5942 zero, ignore errors in the SetThreadContext call, since the
5943 inferior was killed and is shutting down.
5944 (windows_resume, get_windows_debug_event)
5945 (windows_create_inferior, windows_mourn_inferior)
5946 (windows_kill_inferior): All callers of windows_continue changed
5947 to adjust to its new calling sequence.
5948
5949 2014-04-19 Yao Qi <yao@codesourcery.com>
5950
5951 * ctf.c (ctf_open): Call post_create_inferior.
5952
5953 2014-04-19 Yao Qi <yao@codesourcery.com>
5954
5955 * ctf.c (handle_id): New static variable.
5956 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5957 value. Get the declaration of event "register" and get length
5958 of field "contents".
5959
5960 2014-04-19 Yao Qi <yao@codesourcery.com>
5961
5962 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5963
5964 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5965
5966 * valops.c (oload_method_static): Remove unnecessary argument
5967 METHOD. Update all callers.
5968
5969 2014-04-18 Pedro alves <palves@redhat.com>
5970 Tom Tromey <tromey@redhat.com>
5971
5972 PR backtrace/15558
5973 * frame.c (get_prev_frame_1): Rename to ...
5974 (get_prev_frame_always): ... this, and make extern. Adjust.
5975 (skip_artificial_frames): Use get_prev_frame_always.
5976 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5977 (get_frame_unwind_stop_reason): Adjust to rename.
5978 * frame.h (get_prev_frame_always): Declare.
5979 * inline-frame.c: Include frame.h.
5980 (inline_frame_this_id): Use get_prev_frame_always.
5981
5982 2014-04-18 Tristan Gingold <gingold@adacore.com>
5983
5984 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5985 code by using bfd_mach_o_get_base_address.
5986
5987 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5988
5989 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5990 (spu_ax_pseudo_register_collect): New function.
5991 (spu_ax_pseudo_register_push_stack): Likewise.
5992 (spu_dwarf_reg_to_regnum): Likewise.
5993 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5994
5995 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5996
5997 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5998 Replace FRAME argument with FRAME_ID.
5999 * gdbarch.c, gdbarch.h: Regenerate.
6000 * findvar.c (default_value_from_register): Add GDBARCH argument;
6001 replace FRAME by FRAME_ID. No longer call get_frame_id.
6002 (value_from_register): Update call to gdbarch_value_from_register.
6003 * value.h (default_value_from_register): Update prototype.
6004 * s390-linux-tdep.c (s390_value_from_register): Update interface
6005 and call to default_value_from_register.
6006 * spu-tdep.c (spu_value_from_register): Likewise.
6007
6008 * findvar.c (address_from_register): Remove TYPE argument.
6009 Do not call value_from_register; use gdbarch_value_from_register
6010 with null_frame_id instead.
6011 * value.h (address_from_register): Update prototype.
6012 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6013 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6014 address_from_register interface change.
6015
6016 2014-04-17 Yao Qi <yao@codesourcery.com>
6017
6018 * gdbtypes.h: Update comments to link to types and macros'
6019 definitions.
6020
6021 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6022
6023 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6024
6025 2014-04-16 Keith Seitz <keiths@redhat.com>
6026
6027 PR gdb/15827
6028 * dwarf2read.c (skip_one_die): Check that all relative-offset
6029 sibling DIEs fall within range of the current reader's buffer.
6030 (read_partial_die): Likewise.
6031
6032 2014-04-16 Keith Seitz <keiths@redhat.com>
6033
6034 PR c++/16597
6035 * cp-namespace.c (lookup_symbol_file): If the type name of
6036 `this' is NULL, return immediately.
6037
6038 2014-04-14 Keith Seitz <keiths@redhat.com>
6039
6040 PR c++/16253
6041 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6042 from symbol_matches_domain in symtab.c. All local callers
6043 of symbol_matches_domain updated.
6044 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6045 search STRUCT_DOMAIN.
6046 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6047 independently. standard_lookup will do that automatically.
6048 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6049 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6050 (cp_lookup_symbol_in_namespace): Likewise.
6051 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6052 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6053 may return a STRUCT_DOMAIN match.
6054 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6055 * cp-support.c: Include language.h.
6056 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6057 VAR_DOMAIN.
6058 * psymtab.c (match_partial_symbol): Compare the requested
6059 domain with the symbol's domain directly.
6060 (lookup_partial_symbol): Likewise.
6061 * symtab.c (lookup_symbol_in_language): Explain when/why
6062 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6063 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6064 appropriate languages.
6065 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6066 and moved to ada-lang.c
6067 (lookup_block_symbol): Explain that this function only returns
6068 symbol matching the requested DOMAIN.
6069 Compare the requested domain with the symbol's domain directly.
6070 (iterate_over_symbols): Compare the requested domain with the
6071 symbol's domain directly.
6072 * symtab.h (symbol_matches_domain): Remove.
6073
6074 2014-04-14 Tom Tromey <tromey@redhat.com>
6075
6076 PR c++/15246:
6077 * c-exp.y (type_aggregate_p): New function.
6078 (qualified_name, classify_inner_name): Use it.
6079 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6080 and TYPE_TARGET_TYPE of an enum type.
6081 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6082 an enum type.
6083 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6084 handle TYPE_DECLARED_CLASS.
6085 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6086 types.
6087 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6088 * valops.c (enum_constant_from_type): New function.
6089 (value_aggregate_elt): Use it.
6090 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6091 TYPE_CODE_ENUM.
6092
6093 2014-04-14 Tom Tromey <tromey@redhat.com>
6094
6095 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6096 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6097 const.
6098 * value.h (value_aggregate_elt): Update.
6099
6100 2014-04-14 Tom Tromey <tromey@redhat.com>
6101
6102 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6103
6104 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6105
6106 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6107 (evaluate_subexp_standard): Pass noside argument.
6108 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6109 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6110 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6111 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6112 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6113
6114 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6115
6116 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6117 points to a constant blob.
6118
6119 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6120
6121 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6122 property and store it as the high bound and flag the range accordingly.
6123 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6124 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6125 * gdbtypes.h (enum range_flags): New enum.
6126 (struct range_bounds): Add flags member.
6127
6128 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6129
6130 * c-typeprint.c (c_type_print_varspec_suffix): Added
6131 check for not yet resolved high bound. If unresolved, print
6132 "variable length" string to the console instead of random
6133 length.
6134
6135 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6136
6137 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6138 value.
6139 (ada_template_to_fixed_record_type_1): Likewise.
6140 (ada_to_fixed_type_1): Likewise.
6141 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6142 (cp_print_value): Likewise.
6143 * d-valprint.c (dynamic_array_type): Likewise.
6144 * findvar.c (address_of_variable): Likewise.
6145 * jv-valprint.c (java_value_print): Likewise.
6146 * valops.c (value_ind): Likewise.
6147 * value.c (coerce_ref): Likewise.
6148
6149 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6150
6151 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6152 value and retrieve the dynamic type size.
6153
6154 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6155
6156 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6157 passed to sizeof is dynamic evaluate the argument to compute the length.
6158
6159 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6160 Joel Brobecker <brobecker@adacore.com>
6161
6162 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6163 (dwarf2_evaluate_property): New function.
6164 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6165 * dwarf2read.c (attr_to_dynamic_prop): New function.
6166 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6167 attribute.
6168 * gdbtypes.c: Include dwarf2loc.h.
6169 (is_dynamic_type): New function.
6170 (resolve_dynamic_type): New function.
6171 (resolve_dynamic_bounds): New function.
6172 (get_type_length): New function.
6173 (check_typedef): Use get_type_length to compute type length.
6174 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6175 (TYPE_LOW_BOUND_KIND): New macro.
6176 (is_dynamic_type): New function prototype.
6177 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6178 to resolve dynamic properties of the type. Update comment.
6179 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6180
6181 2014-04-14 Richard Henderson <rth@redhat.com>
6182
6183 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6184
6185 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6186 Doug Evans <xdje42@gmail.com>
6187
6188 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6189 dereference TYPE_CODE_REF values.
6190
6191 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6192
6193 Revert the following changes due to regressions:
6194
6195 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6196 (dwarf2_evaluate_property): New function.
6197 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6198 * dwarf2read.c (attr_to_dynamic_prop): New function.
6199 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6200 attribute.
6201 * gdbtypes.c: Include dwarf2loc.h.
6202 (is_dynamic_type): New function.
6203 (resolve_dynamic_type): New function.
6204 (resolve_dynamic_bounds): New function.
6205 (get_type_length): New function.
6206 (check_typedef): Use get_type_length to compute type length.
6207 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6208 (TYPE_LOW_BOUND_KIND): New macro.
6209 (is_dynamic_type): New function prototype.
6210 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6211 to resolve dynamic properties of the type. Update comment.
6212 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6213
6214 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6215 passed to sizeof is dynamic evaluate the argument to compute the length.
6216
6217 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6218 value and retrieve the dynamic type size.
6219
6220 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6221 (ada_template_to_fixed_record_type_1): Likewise.
6222 (ada_to_fixed_type_1): Likewise.
6223 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6224 (cp_print_value): Likewise.
6225 * d-valprint.c (dynamic_array_type): Likewise.
6226 * eval.c (evaluate_subexp_with_coercion): Likewise.
6227 * findvar.c (address_of_variable): Likewise.
6228 * jv-valprint.c (java_value_print): Likewise.
6229 * valops.c (value_ind): Likewise.
6230 * value.c (coerce_ref): Likewise.
6231
6232 * c-typeprint.c (c_type_print_varspec_suffix): Added
6233 check for not yet resolved high bound. If unresolved, print
6234 "variable length" string to the console instead of random
6235 length.
6236
6237 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6238 property and store it as the high bound and flag the range accordingly.
6239 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6240 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6241 * gdbtypes.h (enum range_flags): New enum.
6242 (struct range_bounds): Add flags member.
6243
6244 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6245 points to a constant blob.
6246
6247 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6248 (evaluate_subexp_standard): Pass noside argument.
6249 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6250 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6251 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6252 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6253 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6254
6255 2014-04-11 Keith Seitz <keiths@redhat.com>
6256
6257 PR c++/16675
6258 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6259 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6260 reference types.
6261
6262 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6263
6264 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6265 (evaluate_subexp_standard): Pass noside argument.
6266 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6267 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6268 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6269 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6270 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6271
6272 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6273
6274 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6275 points to a constant blob.
6276
6277 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6278
6279 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6280 property and store it as the high bound and flag the range accordingly.
6281 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6282 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6283 * gdbtypes.h (enum range_flags): New enum.
6284 (struct range_bounds): Add flags member.
6285
6286 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6287
6288 * c-typeprint.c (c_type_print_varspec_suffix): Added
6289 check for not yet resolved high bound. If unresolved, print
6290 "variable length" string to the console instead of random
6291 length.
6292
6293 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6294
6295 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6296 (ada_template_to_fixed_record_type_1): Likewise.
6297 (ada_to_fixed_type_1): Likewise.
6298 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6299 (cp_print_value): Likewise.
6300 * d-valprint.c (dynamic_array_type): Likewise.
6301 * eval.c (evaluate_subexp_with_coercion): Likewise.
6302 * findvar.c (address_of_variable): Likewise.
6303 * jv-valprint.c (java_value_print): Likewise.
6304 * valops.c (value_ind): Likewise.
6305 * value.c (coerce_ref): Likewise.
6306
6307 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6308
6309 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6310 value and retrieve the dynamic type size.
6311
6312 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6313
6314 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6315 passed to sizeof is dynamic evaluate the argument to compute the length.
6316
6317 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6318
6319 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6320 (dwarf2_evaluate_property): New function.
6321 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6322 * dwarf2read.c (attr_to_dynamic_prop): New function.
6323 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6324 attribute.
6325 * gdbtypes.c: Include dwarf2loc.h.
6326 (is_dynamic_type): New function.
6327 (resolve_dynamic_type): New function.
6328 (resolve_dynamic_bounds): New function.
6329 (get_type_length): New function.
6330 (check_typedef): Use get_type_length to compute type length.
6331 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6332 (TYPE_LOW_BOUND_KIND): New macro.
6333 (is_dynamic_type): New function prototype.
6334 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6335 to resolve dynamic properties of the type. Update comment.
6336 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6337
6338 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6339
6340 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6341 declaring high/low bounds and change uses accordingly. Call
6342 create_range_type instead of create_static_range_type.
6343 * gdbtypes.c (create_range_type): New function.
6344 (create_range_type): Convert bounds into struct bound_prop and pass
6345 them to create_range_type.
6346 * gdbtypes.h (struct bound_prop): New struct.
6347 (create_range_type): New function prototype.
6348 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6349 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6350 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6351 part of the bound.
6352 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6353
6354 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6355
6356 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6357 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6358 * ada-lang.c: All uses of create_range_type updated.
6359 * coffread.c: All uses of create_range_type updated.
6360 * dwarf2read.c: All uses of create_range_type updated.
6361 * f-exp.y: All uses of create_range_type updated.
6362 * m2-valprint.c: All uses of create_range_type updated.
6363 * mdebugread.c: All uses of create_range_type updated.
6364 * stabsread.c: All uses of create_range_type updated.
6365 * valops.c: All uses of create_range_type updated.
6366 * valprint.c: All uses of create_range_type updated.
6367
6368 2014-04-10 Pedro Alves <palves@redhat.com>
6369
6370 * breakpoint.c (single_step_breakpoints)
6371 (single_step_gdbarch): Move up in the file.
6372 (one_breakpoint_xfer_memory): New function, factored out from ...
6373 (breakpoint_xfer_memory): ... here. Also process single-step
6374 breakpoints.
6375
6376 2014-04-09 Tristan Gingold <gingold@adacore.com>
6377
6378 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6379 comments.
6380 (darwin_decode_exception_message): Free port only after use.
6381
6382 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6383
6384 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6385 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6386 when setting the size of call_length.
6387
6388 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6389
6390 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6391 dereference TYPE_CODE_REF values.
6392
6393 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6394
6395 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6396 end of warning message.
6397
6398 2014-04-03 Doug Evans <dje@google.com>
6399
6400 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6401 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6402
6403 2014-04-02 Alan Modra <amodra@gmail.com>
6404
6405 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6406 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6407 (struct symbol_file_add_from_memory_args): Add size field.
6408 (find_vdso_size): New function.
6409 (add_vsyscall_page): Attempt to find vdso size.
6410
6411 2014-04-01 Doug Evans <dje@google.com>
6412
6413 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6414
6415 2014-04-01 Tristan Gingold <gingold@adacore.com>
6416
6417 * darwin-nat.c (darwin_encode_reply): Add prototype.
6418 (darwin_decode_exception_message): Reply to unknown inferiors.
6419 (darwin_decode_message): Handle message by id. Ignore message
6420 to unknown inferior.
6421 (darwin_wait): Discard unknown messages, add debug trace.
6422
6423 2014-03-31 Doug Evans <dje@google.com>
6424
6425 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6426 comp_dir_string.
6427
6428 2014-03-31 Doug Evans <dje@google.com>
6429
6430 New option "set print symbol-loading".
6431 * NEWS: Mention it.
6432 * solib.c (solib_read_symbols): Only print symbol loading messages
6433 if requested.
6434 (solib_add): If symbol loading is in "brief" mode, notify user
6435 symbols are being loaded.
6436 (reload_shared_libraries_1): Ditto.
6437 * symfile.c (print_symbol_loading_off): New static global.
6438 (print_symbol_loading_brief): New static global.
6439 (print_symbol_loading_full): New static global.
6440 (print_symbol_loading_enums): New static global.
6441 (print_symbol_loading): New static global.
6442 (print_symbol_loading_p): New function.
6443 (symbol_file_add_with_addrs): Only print symbol loading messages
6444 if requested.
6445 (_initialize_symfile): Register "print symbol-loading" set/show
6446 command.
6447 * symfile.h (print_symbol_loading_p): Declare.
6448
6449 2014-03-30 Doug Evans <xdje42@gmail.com>
6450
6451 * infrun.c (set_last_target_status): New function.
6452 (handle_inferior_event): Call it.
6453
6454 2014-03-30 Doug Evans <xdje42@gmail.com>
6455
6456 * inferior.h (enum stop_kind): Improve comment.
6457
6458 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6459
6460 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6461 a reference, strip the reference layer before calling
6462 the lang_ops value_has_mutated callback.
6463
6464 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6465
6466 Remove some globals from our parser.
6467 * language.c (unk_lang_parser): Add "struct parser_state"
6468 argument.
6469 * language.h (struct language_defn) <la_parser>: Likewise.
6470 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6471 (initialize_expout): Add "struct parser_state" argument.
6472 Rewrite function to use the parser state.
6473 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6474 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6475 write_exp_elt_longcst, write_exp_elt_dblcst,
6476 write_exp_elt_decfloatcst, write_exp_elt_type,
6477 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6478 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6479 write_dollar_variable): Likewise.
6480 (parse_exp_in_context_1): Use parser state.
6481 (insert_type_address_space): Add "struct parser_state" argument.
6482 Use parser state.
6483 (increase_expout_size): New function.
6484 * parser-defs.h: Forward declare "struct language_defn" and
6485 "struct parser_state".
6486 (expout, expout_size, expout_ptr): Remove extern declarations.
6487 (parse_gdbarch, parse_language): Rewrite macro declarations to
6488 accept the parser state.
6489 (struct parser_state): New struct.
6490 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6491 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6492 write_exp_elt_decfloatcst, write_exp_elt_type,
6493 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6494 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6495 write_exp_msymbol, write_dollar_variable,
6496 mark_struct_expression, insert_type_address_space): Add "struct
6497 parser_state" argument.
6498 (increase_expout_size): New function.
6499 * utils.c (do_clear_parser_state): New function.
6500 (make_cleanup_clear_parser_state): Likewise.
6501 * utils.h (make_cleanup_clear_parser_state): New function
6502 prototype.
6503 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6504 Update calls to write_exp* in order to pass the parser state.
6505 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6506 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6507 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6508 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6509 * stap-probe.c (stap_parse_register_operand): Likewise.
6510 (stap_parse_single_operand): Likewise.
6511 (stap_parse_argument_1): Likewise.
6512 (stap_parse_argument): Use parser state.
6513 * stap-probe.h: Include "parser-defs.h".
6514 (struct stap_parse_info) <pstate>: New field.
6515 * c-exp.y (parse_type): Rewrite to use parser state.
6516 (yyparse): Redefine to c_parse_internal.
6517 (pstate): New global variable.
6518 (parse_number): Add "struct parser_state" argument.
6519 (write_destructor_name): Likewise.
6520 (type_exp): Update calls to write_exp* and similars in order to
6521 use parser state.
6522 (exp1, exp, variable, qualified_name, space_identifier,
6523 typename, typebase): Likewise.
6524 (write_destructor_name, parse_number, lex_one_token,
6525 classify_name, classify_inner_name, c_parse): Add "struct
6526 parser_state" argument. Update function to use parser state.
6527 * c-lang.h: Forward declare "struct parser_state".
6528 (c_parse): Add "struct parser_state" argument.
6529 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6530 (yyparse): Redefine macro to ada_parse_internal.
6531 (pstate): New variable.
6532 (write_int, write_object_renaming, write_var_or_type,
6533 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6534 type_int, type_long, type_long_long, type_float, type_double,
6535 type_long_double, type_char, type_boolean, type_system_address):
6536 Add "struct parser_state" argument.
6537 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6538 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6539 var_or_type, aggregate, aggregate_component_list,
6540 positional_list, others, component_group,
6541 component_associations): Update calls to write_exp* and similar
6542 functions in order to use parser state.
6543 (ada_parse, write_var_from_sym, write_int,
6544 write_exp_op_with_string, write_object_renaming,
6545 find_primitive_type, write_selectors, write_ambiguous_var,
6546 write_var_or_type, write_name_assoc, type_int, type_long,
6547 type_long_long, type_float, type_double, type_long_double,
6548 type_char, type_boolean, type_system_address): Add "struct
6549 parser_state" argument. Adjust function to use parser state.
6550 * ada-lang.c (parse): Likewise.
6551 * ada-lang.h: Forward declare "struct parser_state".
6552 (ada_parse): Add "struct parser_state" argument.
6553 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6554 calls to both functions.
6555 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6556 parser state.
6557 (yyparse): Redefine macro to f_parse_internal.
6558 (pstate): New variable.
6559 (parse_number): Add "struct parser_state" argument.
6560 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6561 and similars in order to use parser state.
6562 (parse_number): Adjust code to use parser state.
6563 (yylex): Likewise.
6564 (f_parse): New function.
6565 * f-lang.h: Forward declare "struct parser_state".
6566 (f_parse): Add "struct parser_state" argument.
6567 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6568 parser state.
6569 (yyparse): Redefine macro for java_parse_internal.
6570 (pstate): New variable.
6571 (push_expression_name, push_expression_name, insert_exp): Add
6572 "struct parser_state" argument.
6573 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6574 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6575 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6576 PostIncrementExpression, PostDecrementExpression,
6577 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6578 UnaryExpressionNotPlusMinus, CastExpression,
6579 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6580 RelationalExpression, EqualityExpression, AndExpression,
6581 ExclusiveOrExpression, InclusiveOrExpression,
6582 ConditionalAndExpression, ConditionalOrExpression,
6583 ConditionalExpression, Assignment, LeftHandSide): Update
6584 calls to write_exp* and similars in order to use parser state.
6585 (parse_number): Ajust code to use parser state.
6586 (yylex): Likewise.
6587 (java_parse): New function.
6588 (push_variable): Add "struct parser_state" argument. Adjust
6589 code to user parser state.
6590 (push_fieldnames, push_qualified_expression_name,
6591 push_expression_name, insert_exp): Likewise.
6592 * jv-lang.h: Forward declare "struct parser_state".
6593 (java_parse): Add "struct parser_state" argument.
6594 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6595 parser state.
6596 (yyparse): Redefine macro to m2_parse_internal.
6597 (pstate): New variable.
6598 (type_exp, exp, fblock, variable, type): Update calls to
6599 write_exp* and similars to use parser state.
6600 (yylex): Likewise.
6601 (m2_parse): New function.
6602 * m2-lang.h: Forward declare "struct parser_state".
6603 (m2_parse): Add "struct parser_state" argument.
6604 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6605 * objc-lang.h: Forward declare "struct parser_state".
6606 (end_msglist): Add "struct parser_state" argument.
6607 * p-exp.y (parse_type): Rewrite macro to use parser state.
6608 (yyparse): Redefine macro to pascal_parse_internal.
6609 (pstate): New variable.
6610 (parse_number): Add "struct parser_state" argument.
6611 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6612 write_exp* and similars in order to use parser state.
6613 (parse_number, yylex): Adjust code to use parser state.
6614 (pascal_parse): New function.
6615 * p-lang.h: Forward declare "struct parser_state".
6616 (pascal_parse): Add "struct parser_state" argument.
6617 * go-exp.y (parse_type): Rewrite macro to use parser state.
6618 (yyparse): Redefine macro to go_parse_internal.
6619 (pstate): New variable.
6620 (parse_number): Add "struct parser_state" argument.
6621 (type_exp, exp1, exp, variable, type): Update calls to
6622 write_exp* and similars in order to use parser state.
6623 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6624 to use parser state.
6625 (go_parse): Likewise.
6626 * go-lang.h: Forward declare "struct parser_state".
6627 (go_parse): Add "struct parser_state" argument.
6628
6629 2014-03-27 Doug Evans <dje@google.com>
6630
6631 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6632
6633 2014-03-27 Doug Evans <dje@google.com>
6634
6635 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6636 Remove argument abbrev_section. All callers updated.
6637
6638 2014-03-27 Doug Evans <dje@google.com>
6639
6640 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6641 addr_base, ranges_base.
6642
6643 2014-03-26 Keith Seitz <keiths@redhat.com>
6644
6645 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6646 types, not VAR_DOMAIN.
6647
6648 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6649
6650 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6651 "ra" registers.
6652 * features/nios2-linux.c: Regenerated.
6653 * features/nios2.c: Regenerated.
6654
6655 2014-03-25 Pedro Alves <palves@redhat.com>
6656
6657 * cli/cli-script.c (script_from_file): Force the interpreter to
6658 sync mode.
6659
6660 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6661
6662 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6663 small stack allocation.
6664
6665 2014-03-24 Tristan Gingold <gingold@adacore.com>
6666
6667 * darwin-nat.c (exc_server): Remove unused prototype.
6668 (darwin_dump_message): Correctly display data on x86_64.
6669 (darwin_encode_reply): Fix style.
6670 Add comments and fix indentation.
6671
6672 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6673
6674 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6675
6676 2014-03-22 Doug Evans <xdje42@gmail.com>
6677
6678 * infcmd.c: Whitespace fixes.
6679 (interrupt_command): Merge two function comments into one.
6680
6681 2014-03-22 Doug Evans <xdje42@gmail.com>
6682
6683 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6684 All uses updated.
6685
6686 2014-03-22 Yao Qi <yao@codesourcery.com>
6687
6688 * remote.c (target_read_live_memory): Remove.
6689 (memory_xfer_live_readonly_partial): Rename it to
6690 remote_xfer_live_readonly_partial. Remove argument 'object'.
6691 All callers updated. Call remote_read_bytes_1
6692 instead of target_read_live_memory.
6693 * tracepoint.c (set_traceframe_number): Remove.
6694 (make_cleanup_restore_traceframe_number): Likewise .
6695 * tracepoint.h (set_traceframe_number): Remove declaration.
6696 (make_cleanup_restore_traceframe_number): Likewise.
6697
6698 2014-03-22 Yao Qi <yao@codesourcery.com>
6699
6700 * remote.c (remote_read_bytes): Move code on reading from the
6701 remote stub to ...
6702 (remote_read_bytes_1): ... here. New function.
6703
6704 2014-03-22 Yao Qi <yao@codesourcery.com>
6705
6706 * ctf.c (ctf_xfer_partial): Check the return value of
6707 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6708 return TARGET_XFER_UNAVAILABLE.
6709 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6710 * target.c (target_read_live_memory): Move it to remote.c.
6711 (memory_xfer_live_readonly_partial): Likewise.
6712 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6713 * remote.c (target_read_live_memory): Moved from target.c.
6714 (memory_xfer_live_readonly_partial): Likewise.
6715 (remote_read_bytes): Factored out from
6716 memory_xfer_partial_1.
6717
6718 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6719
6720 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6721 NULL pointer.
6722
6723 2014-03-21 Pedro Alves <palves@redhat.com>
6724
6725 * infrun.c (normal_stop): Extend comment.
6726
6727 2014-03-21 Hui Zhu <hui@codesourcery.com>
6728 Pedro Alves <palves@redhat.com>
6729
6730 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6731 static buffer.
6732 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6733 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6734 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6735
6736 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6737
6738 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6739 `z' formatted output modifier.
6740
6741 2014-03-20 Tom Tromey <tromey@redhat.com>
6742 Sergio Durigan Junior <sergiodj@redhat.com>
6743
6744 * probe.c (parse_probes): Turn assert into an ordinary error.
6745 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6746 exceptions when parsing probes. Rearrange the code for clarity.
6747
6748 2014-03-20 Tom Tromey <tromey@redhat.com>
6749
6750 PR gdb/14135
6751 * top.c (execute_command): Only dispatch events if the command
6752 started the target.
6753
6754 2014-03-20 Tom Tromey <tromey@redhat.com>
6755
6756 PR cli/15718
6757 * infcall.c: Include event-top.h.
6758 (run_inferior_call): Call async_disable_stdin if needed.
6759
6760 2014-03-20 Pedro Alves <palves@redhat.com>
6761
6762 * infrun.c (prepare_to_proceed): Delete.
6763 (thread_still_needs_step_over): New function.
6764 (find_thread_needs_step_over): New function.
6765 (proceed): If the current thread needs a step-over, set its
6766 steping_over_breakpoint flag. Adjust to use
6767 find_thread_needs_step_over instead of prepare_to_proceed.
6768 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6769 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6770 breakpoint.
6771 (switch_back_to_stepped_thread): Step over breakpoints of all
6772 threads not the stepping thread, before switching back to the
6773 stepping thread.
6774
6775 2014-03-20 Pedro Alves <palves@redhat.com>
6776
6777 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6778 extern.
6779 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6780 * infrun.c (saved_singlestep_ptid)
6781 (stepping_past_singlestep_breakpoint): Delete.
6782 (resume): Remove stepping_past_singlestep_breakpoint handling.
6783 (proceed): Store the prev_pc of the stepping thread too.
6784 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6785 singlestep_pc.
6786 (enum infwait_states): Delete infwait_thread_hop_state.
6787 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6788 field.
6789 (handle_inferior_event): Adjust.
6790 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6791 handling and the thread-hop code. Before removing single-step
6792 breakpoints, check whether the thread hit a single-step breakpoint
6793 of another thread. If it did, the trap is not a random signal.
6794 (switch_back_to_stepped_thread): If the event thread hit a
6795 single-step breakpoint, unblock it before switching to the
6796 stepping thread. Handle the case of the stepped thread having
6797 advanced already.
6798 (keep_going): Handle the case of the current thread moving past a
6799 single-step breakpoint.
6800
6801 2014-03-20 Pedro Alves <palves@redhat.com>
6802
6803 PR breakpoints/7143
6804 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6805 are being stepped over.
6806 (breakpoint_address_match): Make extern.
6807 * breakpoint.h (breakpoint_address_match): New declaration.
6808 * inferior.h (stepping_past_instruction_at): New declaration.
6809 * infrun.c (struct step_over_info): New type.
6810 (step_over_info): New global.
6811 (set_step_over_info, clear_step_over_info)
6812 (stepping_past_instruction_at): New functions.
6813 (handle_inferior_event): Clear the step-over info when
6814 trap_expected is cleared.
6815 (resume): Remove now stale comment.
6816 (clear_proceed_status): Clear step-over info.
6817 (proceed): Adjust step-over handling to set or clear the step-over
6818 info instead of removing all breakpoints.
6819 (handle_signal_stop): When setting up a thread-hop, don't remove
6820 breakpoints here.
6821 (stop_stepping): Clear step-over info.
6822 (keep_going): Adjust step-over handling to set or clear step-over
6823 info and then always inserting breakpoints, instead of removing
6824 all breakpoints when stepping over one.
6825
6826 2014-03-20 Pedro Alves <palves@redhat.com>
6827
6828 * infrun.c (previous_inferior_ptid): Adjust comment.
6829 (deferred_step_ptid): Delete.
6830 (infrun_thread_ptid_changed, prepare_to_proceed)
6831 (init_wait_for_inferior): Adjust.
6832 (handle_signal_stop): Delete deferred_step_ptid handling.
6833
6834 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6835
6836 PR gdb/15358
6837 * defs.h (sync_quit_force_run): New declaration.
6838 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6839 * event-top.c (async_sigterm_handler): New declaration.
6840 (async_sigterm_token): New variable.
6841 (async_init_signals): Create also async_sigterm_token.
6842 (async_sigterm_handler): New function.
6843 (sync_quit_force_run): New variable.
6844 (handle_sigterm): Replace quit_force call by other calls.
6845 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6846
6847 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6848
6849 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6850 offset into SPE pseudo registers.
6851
6852 2014-03-18 Pedro Alves <palves@redhat.com>
6853
6854 PR gdb/13860
6855 * inferior.h (print_stop_event): Declare.
6856 * infrun.c (print_stop_event): New, factored out from ...
6857 (normal_stop): ... this.
6858 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6859 of bpstat_print/print_stack_frame.
6860
6861 2014-03-17 Tom Tromey <tromey@redhat.com>
6862
6863 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6864
6865 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6866
6867 * ada-lang.c (decode_constrained_packed_array): Perform a
6868 minimal coercion for reference with coerce_ref instead of
6869 ada_coerce_ref.
6870
6871 2014-03-17 Tristan Gingold <gingold@adacore.com>
6872
6873 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6874 (darwin_solib_create_inferior_hook): Emit a warning if version
6875 is unhandled.
6876
6877 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6878
6879 * python/py-value.c (get_field_flag): Cast flag_name argument to
6880 PyObject_GetAttrString to support Python 2.4.
6881
6882 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6883
6884 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6885 (Global Maintainers): Remove Jan Kratochvil.
6886
6887 2014-03-14 Pedro Alves <palves@redhat.com>
6888
6889 * inferior.h (terminal_ours_for_output): Rename to ...
6890 (child_terminal_ours_for_output): ... this.
6891 (terminal_save_ours): Rename to ...
6892 (child_terminal_save_ours): ... this.
6893 (terminal_ours): Rename to ...
6894 (child_terminal_ours): ... this.
6895 (terminal_inferior): Rename to ...
6896 (child_terminal_inferior): ... this.
6897 (terminal_init_inferior): Rename to ...
6898 (child_terminal_init_inferior): ... this.
6899 (terminal_init_inferior_with_pgrp): Rename to ...
6900 (child_terminal_init_inferior_with_pgrp): ... this.
6901 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6902 (child_terminal_init_with_pgrp): ... this.
6903 (terminal_save_ours): Rename to ...
6904 (child_terminal_save_ours): ... this.
6905 (terminal_init_inferior): Rename to ...
6906 (child_terminal_init): ... this. Adjust.
6907 (terminal_inferior): Rename to ...
6908 (child_terminal_inferior): ... this.
6909 (terminal_ours_for_output): Rename to ...
6910 (child_terminal_ours_for_output): ... this. Adjust.
6911 (terminal_ours): Rename to ...
6912 (child_terminal_ours): ... this.
6913 (terminal_ours_1): Rename to ...
6914 (child_terminal_ours_1): ... this. Adjust.
6915 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6916 * windows-nat.c (do_initial_windows_stuff): Adjust.
6917 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6918 (gnu_terminal_init): ... this. Adjust.
6919 (gnu_target): Adjust.
6920 * inf-child.c (inf_child_target): Adjust.
6921
6922 2014-03-13 Doug Evans <xdje42@gmail.com>
6923
6924 PR guile/16612
6925 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6926 new eq?-hashtab.
6927
6928 2014-03-13 Doug Evans <xdje42@gmail.com>
6929
6930 * value.c (record_latest_value): Call release_value_or_incref
6931 instead of release_value.
6932
6933 2014-03-13 Pedro Alves <palves@redhat.com>
6934
6935 * procfs.c (procfs_target): Don't override to_shortname,
6936 to_longname or to_doc.
6937
6938 2014-03-13 Pedro Alves <palves@redhat.com>
6939
6940 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6941 Unix in user visible strings.
6942
6943 2014-03-12 Stan Shebs <stan@codesourcery.com>
6944
6945 * gdbtypes.h: Annotate comments for Doxygen, add a page
6946 block comment with some general info.
6947
6948 2014-03-12 Pedro Alves <palves@redhat.com>
6949
6950 * infcmd.c (prepare_execution_command): New function, factored out
6951 from several execution commands.
6952 (run_command_1, continue_command, step_1, jump_command)
6953 (signal_command, until_command, advance_command, finish_command)
6954 (attach_command): Use prepare_execution_command.
6955
6956 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6957
6958 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6959 (MAX_BPTS): Define.
6960 (MAX_WPTS): Define.
6961 (struct arm_linux_thread_points): Removed.
6962 (struct arm_linux_process_info): New.
6963 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6964 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6965 (arm_linux_find_breakpoints_by_tid): Removed.
6966 (struct arch_lwp_info): New.
6967 (arm_linux_find_process_pid): New functions.
6968 (arm_linux_add_process): New functions.
6969 (arm_linux_process_info_get): New functions.
6970 (arm_linux_forget_process): New function.
6971 (arm_linux_get_debug_reg_state): New function.
6972 (struct update_registers_data): New.
6973 (update_registers_callback): New function.
6974 (arm_linux_insert_hw_breakpoint1): Updated.
6975 (arm_linux_remove_hw_breakpoint1): Updated.
6976 (arm_linux_insert_hw_breakpoint): Updated.
6977 (arm_linux_remove_hw_breakpoint): Updated.
6978 (arm_linux_insert_watchpoint): Updated.
6979 (arm_linux_remove_watchpoint): Updated.
6980 (arm_linux_new_thread): Updated.
6981 (arm_linux_prepare_to_resume): New function.
6982 (arm_linux_new_fork): New function.
6983 (_initialize_arm_linux_nat): Updated.
6984
6985 2014-03-12 Pedro Alves <palves@redhat.com>
6986
6987 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6988
6989 2014-03-12 Tom Tromey <tromey@redhat.com>
6990
6991 * inf-child.c (return_zero): New function.
6992 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6993 * aix-thread.c (aix_thread_inferior_created): New function.
6994 (aix_thread_attach): Remove.
6995 (init_aix_thread_ops): Don't set to_attach.
6996 (_initialize_aix_thread): Register inferior_created observer.
6997 * corelow.c (init_core_ops): Don't set to_attach or
6998 to_create_inferior.
6999 * exec.c (init_exec_ops): Don't set to_attach or
7000 to_create_inferior.
7001 * infcmd.c (run_command_1): Use find_run_target. Make direct
7002 target calls.
7003 (attach_command): Use find_attach_target. Make direct target
7004 calls.
7005 * record-btrace.c (init_record_btrace_ops): Don't set
7006 to_create_inferior.
7007 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7008 Remove.
7009 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7010 set to_create_inferior.
7011 * target.c (complete_target_initialization): Add assertion.
7012 (target_create_inferior): Remove.
7013 (find_default_attach, find_default_create_inferior): Remove.
7014 (find_attach_target, find_run_target): New functions.
7015 (find_default_is_async_p, find_default_can_async_p)
7016 (target_supports_non_stop, target_attach): Remove.
7017 (init_dummy_target): Don't set to_create_inferior or
7018 to_supports_non_stop.
7019 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7020 TARGET_DEFAULT_FUNC.
7021 <to_create_inferior>: Add comment.
7022 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7023 TARGET_DEFAULT_RETURN.
7024 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7025 (find_attach_target, find_run_target): Declare.
7026 (target_create_inferior): Remove.
7027 (target_has_execution_1): Update comment.
7028 (target_supports_non_stop): Remove.
7029 * target-delegates.c: Rebuild.
7030
7031 2014-03-12 Pedro Alves <palves@redhat.com>
7032
7033 * inf-child.h: Update comment to not mention Unix.
7034
7035 2014-03-12 Pedro Alves <palves@redhat.com>
7036
7037 * inf-child.c: Update top comment to not mention Unix. Add
7038 generic comment describing how this target is meant to be used.
7039 (inf_child_post_attach, inf_child_post_startup_inferior)
7040 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7041 Unix in comment.
7042
7043 2014-03-12 Pedro Alves <palves@redhat.com>
7044
7045 * nto-procfs.c: Include inf-child.h.
7046 (procfs_ops): Delete global.
7047 (procfs_can_run): Delete method.
7048 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7049 target pointer instead of referencing procfs_ops.
7050 (procfs_prepare_to_store): Delete.
7051 (init_procfs_ops): Delete function.
7052 (procfs_target): New function, based on init_procfs_ops, but
7053 inherit inf_child_target.
7054 (_initialize_procfs): Use procfs_target.
7055
7056 2014-03-12 Pedro Alves <palves@redhat.com>
7057
7058 * windows-nat.c: Include inf-child.h.
7059 (windows_ops): Delete global.
7060 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7061 methods.
7062 (init_windows_ops): Delete function.
7063 (windows_target): New function, based on init_windows_ops, but
7064 inherit inf_child_target.
7065 (_initialize_windows_nat): Use windows_target. Install x86
7066 specific target methods here.
7067
7068 2014-03-10 Doug Evans <xdje42@gmail.com>
7069
7070 * guile/guile.c (call_initialize_gdb_module): New function.
7071 (initialize_guile): Replace call to scm_init_guile with call to
7072 scm_with_guile.
7073
7074 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7075
7076 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7077 in call to TYPE_CODE macro.
7078
7079 2014-03-10 Jerome Guitton <guitton@adacore.com>
7080
7081 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7082 Resolve tagged types to full view.
7083
7084 2014-03-10 Hui Zhu <hui@codesourcery.com>
7085
7086 * target.h (target_insert_breakpoint): Remove "hardware" from its
7087 comments.
7088
7089 2014-03-07 Doug Evans <dje@google.com>
7090
7091 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7092
7093 2014-03-07 Doug Evans <dje@google.com>
7094
7095 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7096 Remove unused local comp_dir_attr. Assert exactly one of
7097 stub_comp_unit_die, stub_comp_dir is non-NULL.
7098
7099 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7100
7101 * target.h (complete_target_initialization, add_target):
7102 Add comment.
7103
7104 2014-03-07 Pedro Alves <palves@redhat.com>
7105
7106 * go32-nat.c: Include inf-child.h.
7107 (go32_ops): Delete global.
7108 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7109 Delete methods.
7110 (go32_create_inferior): Push the passed in target pointer instead
7111 of referencing go32_ops.
7112 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7113 (go32_target): New function, based on init_go32_ops, but inherit
7114 inf_child_target.
7115 (_initialize_go32_nat): Use go32_target. Move parts of
7116 init_go32_ops here.
7117
7118 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7119
7120 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7121 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7122 SYMBOL_VALUE_ADDRESS.
7123 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7124
7125 2014-03-06 Yao Qi <yao@codesourcery.com>
7126
7127 * breakpoint.c (get_tracepoint_by_number): Remove argument
7128 optional_p. All callers updated. Adjust comments. Update
7129 output message.
7130 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7131
7132 2014-03-06 Yao Qi <yao@codesourcery.com>
7133
7134 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7135 early if get_number returns zero. Use 'p' instead of 'args'.
7136
7137 2014-03-06 Yao Qi <yao@codesourcery.com>
7138
7139 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7140 message.
7141
7142 2014-03-06 Yao Qi <yao@codesourcery.com>
7143
7144 PR breakpoints/16508
7145 * tracepoint.c (check_trace_running): New function.
7146 (trace_find_command): Move code to check_trace_running and
7147 call check_trace_running.
7148 (trace_find_pc_command): Likewise.
7149 (trace_find_tracepoint_command): Likewise.
7150 (trace_find_line_command): Likewise.
7151 (trace_find_range_command): Likewise.
7152 * tracepoint.h (check_trace_running): Likewise.
7153 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7154
7155 2014-03-06 Yao Qi <yao@codesourcery.com>
7156
7157 * target.h (struct target_ops) <to_traceframe_info>: Use
7158 TARGET_DEFAULT_NORETURN (tcomplain ()).
7159 * target-delegates.c: Regenerated.
7160
7161 2014-03-05 Pedro Alves <palves@redhat.com>
7162
7163 PR gdb/16575
7164 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7165 void. Update comment.
7166 (dcache_xfer_memory): Delete.
7167 (dcache_read_memory_partial): New, based on the read bits of
7168 dcache_xfer_memory.
7169 (dcache_update): Add status parameter. Use ULONGEST for len, and
7170 adjust. Discard cache lines if the reason for the update was
7171 error.
7172 * dcache.h (dcache_xfer_memory): Delete declaration.
7173 (dcache_read_memory_partial): New declaration.
7174 (dcache_update): Update prototype.
7175 * target.c (raw_memory_xfer_partial): Update the dcache here.
7176 (memory_xfer_partial_1): Don't handle dcache writes here.
7177
7178 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7179
7180 * remote-sim.c (gdbsim_load): Add const to prog.
7181
7182 2014-03-03 Tom Tromey <tromey@redhat.com>
7183
7184 * elfread.c (probe_key): Change to bfd_data.
7185 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7186 now per-BFD, not per-objfile.
7187 * stap-probe.c (stap_probe_destroy): Update comment.
7188 (handle_stap_probe): Allocate on the per-BFD obstack.
7189
7190 2014-03-03 Tom Tromey <tromey@redhat.com>
7191
7192 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7193 * breakpoint.c (create_longjmp_master_breakpoint): Use
7194 get_probe_address.
7195 (add_location_to_breakpoint, bkpt_probe_insert_location)
7196 (bkpt_probe_remove_location): Update.
7197 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7198 * elfread.c (elf_symfile_relocate_probe): Remove.
7199 (elf_probe_fns): Update.
7200 (insert_exception_resume_breakpoint): Change type of "probe"
7201 parameter to bound_probe.
7202 (check_exception_resume): Update.
7203 * objfiles.c (objfile_relocate1): Don't relocate probes.
7204 * probe.c (bound_probe_s): New typedef.
7205 (parse_probes): Use get_probe_address. Set sal's objfile.
7206 (find_probe_by_pc): Return a bound_probe.
7207 (collect_probes): Return a VEC(bound_probe_s).
7208 (compare_probes): Update.
7209 (gen_ui_out_table_header_info): Change type of "probes"
7210 parameter. Update.
7211 (info_probes_for_ops): Update.
7212 (get_probe_address): New function.
7213 (probe_safe_evaluate_at_pc): Update.
7214 * probe.h (struct probe_ops) <get_probe_address>: New field.
7215 <set_semaphore, clear_semaphore>: Add objfile parameter.
7216 (struct probe) <objfile>: Remove field.
7217 <arch>: New field.
7218 <address>: Update comment.
7219 (struct bound_probe): New.
7220 (find_probe_by_pc): Return a bound_probe.
7221 (get_probe_address): Declare.
7222 * solib-svr4.c (struct probe_and_action) <address>: New field.
7223 (hash_probe_and_action, equal_probe_and_action): Update.
7224 (register_solib_event_probe): Add address parameter.
7225 (solib_event_probe_at): Update.
7226 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7227 get_probe_address.
7228 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7229 (stap_get_probe_address): New function.
7230 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7231 (compile_probe_arg): Update.
7232 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7233 address.
7234 (handle_stap_probe): Don't relocate the probe.
7235 (stap_relocate): Remove.
7236 (stap_gen_info_probes_table_values): Update.
7237 (stap_probe_ops): Remove stap_relocate.
7238 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7239 (debug_sym_probe_fns): Update.
7240 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7241 * symtab.c (init_sal): Use memset.
7242 * symtab.h (struct symtab_and_line) <objfile>: New field.
7243 * tracepoint.c (start_tracing, stop_tracing): Update.
7244
7245 2014-03-03 Tom Tromey <tromey@redhat.com>
7246
7247 * probe.h (parse_probes, find_probe_by_pc)
7248 (find_probes_in_objfile): Fix comments.
7249
7250 2014-03-02 Doug Evans <xdje42@gmail.com>
7251
7252 * infrun.c (handle_signal_stop): Replace test for
7253 TARGET_WAITKIND_STOPPED with an assert.
7254
7255 2014-03-02 Doug Evans <xdje42@gmail.com>
7256
7257 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7258
7259 2014-03-02 Doug Evans <xdje42@gmail.com>
7260
7261 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7262
7263 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7264
7265 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7266
7267 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7268
7269 * i386obsd-nat.c: Include "obsd-nat.h".
7270 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7271 add_target.
7272 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7273
7274 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7275
7276 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7277
7278 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7279
7280 * mips64obsd-nat.c: Include "obsd-nath".
7281 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7282 add_target
7283 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7284
7285 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7286
7287 * amd64obsd-nat.c: Include "obsd-nat,h.
7288 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7289 add_target.
7290 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7291
7292 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7293
7294 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7295 (find_overload_match): Update call to find_oload_champ.
7296 (find_oload_champ_namespace_loop): Likewise
7297
7298 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7299
7300 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7301
7302 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7303 * config/sparc/obsd64.mh: New file.
7304 * sparc64obsd-nat.c: New file.
7305
7306 * obsd-nat.h: New file.
7307 * obsd-nat.c: New file.
7308 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7309 (ALLDEPFILES): Add obsd-nat.c.
7310
7311 2014-02-28 Tom Tromey <tromey@redhat.com>
7312
7313 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7314 * cli-out.h (cli_ui_out_impl): Now const.
7315 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7316 * ui-out.c (struct ui_out) <impl>: Now const.
7317 (default_ui_out_impl): Now const.
7318 (ui_out_new): Make 'impl' parameter const.
7319 * ui-out.h (ui_out_new): Update.
7320
7321 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7322
7323 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7324
7325 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7326
7327 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7328
7329 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7330
7331 Additional PR 8882 fix.
7332 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7333
7334 2014-02-27 Pedro Alves <palves@redhat.com>
7335
7336 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7337 isn't set.
7338
7339 2014-02-27 Pedro Alves <palves@redhat.com>
7340
7341 PR 12702
7342 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7343 * nat/linux-waitpid.c: Include string.h.
7344 (status_to_str): Moved here and made extern.
7345 * nat/linux-waitpid.h (status_to_str): New declaration.
7346
7347 2014-02-27 Hui Zhu <hui@codesourcery.com>
7348
7349 PR 12702
7350 * infrun.c (ptid_match): Move ...
7351 * common/ptid.c (ptid_match): ... here.
7352 * inferior.h (ptid_match): Move ...
7353 * common/ptid.h (ptid_match): ... here.
7354
7355 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7356
7357 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7358 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7359 gdb_target_obs.
7360
7361 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7362
7363 * obsd-tdep.c (obsd_auxv_parse): New function.
7364 (obsd_init_abi): Set auxv_parse.
7365
7366 * gdbarch.sh (auxv_parse): New.
7367 * gdbarch.h: Regenerated.
7368 * gdbarch.c: Regenerated.
7369 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7370
7371 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7372
7373 * guile/scm-value.c (gdbscm_history_append_x): New function.
7374 (value_functions): Add it.
7375
7376 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7377
7378 * dwarf2read.c (attr_value_as_address): New function.
7379 (dwarf2_find_base_address, read_call_site_scope): Use
7380 attr_value_as_address in place of DW_ADDR.
7381 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7382 the low and high addresses. Slight rework of the handling
7383 of the high pc being a constant form, and limit it to
7384 DWARF verson 4 or higher.
7385 (dwarf2_record_block_ranges): Likewise.
7386 (read_partial_die): Likewise.
7387 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7388
7389 2014-02-26 Tom Tromey <tromey@redhat.com>
7390
7391 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7392
7393 2014-02-26 Tom Tromey <tromey@redhat.com>
7394
7395 * elfread.c (elf_read_minimal_symbols): Return early if
7396 minimal symbols have already been read. Add "ei" parameter.
7397 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7398 * minsyms.c (prim_record_minimal_symbol_full): Update.
7399 * objfiles.h (struct objstats) <n_minsyms>: Move...
7400 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7401 * symmisc.c (print_objfile_statistics): Update.
7402
7403 2014-02-26 Tom Tromey <tromey@redhat.com>
7404
7405 * elfread.c (elf_read_minimal_symbols): New function, from
7406 elf_symfile_read.
7407 (elf_symfile_read): Call it.
7408
7409 2014-02-26 Tom Tromey <tromey@redhat.com>
7410
7411 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7412 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7413 (lookup_minimal_symbol_solib_trampoline)
7414 (lookup_minimal_symbol_by_pc_section_1)
7415 (lookup_minimal_symbol_and_objfile): Update.
7416 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7417 Don't allocate a minimal symbol if minsyms have already been read.
7418 (build_minimal_symbol_hash_tables): Update.
7419 (install_minimal_symbols): Do nothing if minsyms already read.
7420 Use the per-BFD obstack.
7421 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7422 * objfiles.c (allocate_objfile): Call
7423 terminate_minimal_symbol_table later.
7424 (have_minimal_symbols): Update.
7425 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7426 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7427 Move from struct objfile.
7428 <minsyms_read>: New field.
7429 (struct objfile) <msymbols, minimal_symbol_count,
7430 msymbol_hash, msymbol_demangled_hash>: Move.
7431 (ALL_OBJFILE_MSYMBOLS): Update.
7432 * symfile.c (read_symbols): Set minsyms_read.
7433 (reread_symbols): Update.
7434 * symmisc.c (dump_objfile, dump_msymbols): Update.
7435
7436 2014-02-26 Tom Tromey <tromey@redhat.com>
7437
7438 * minsyms.c (msymbols_sort): Remove.
7439 * minsyms.h (msymbols_sort): Remove.
7440 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7441 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7442 * elfread.c (elf_symtab_read): Don't add section offsets.
7443 * xcoffread.c (record_minimal_symbol): Don't add section offset
7444 to minimal symbol address.
7445 * somread.c (text_offset, data_offset): Remove.
7446 (som_symtab_read): Don't add section offsets to minimal symbol
7447 addresses.
7448 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7449 Don't add section offsets to minimal symbols.
7450 * coffread.c (coff_symtab_read): Don't add section offsets
7451 to minimal symbol addresses.
7452 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7453 to minimal symbol addresses.
7454 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7455 section offset to minimal symbol addresses.
7456 * mdebugread.c (parse_partial_symbols): Don't add section
7457 offset to minimal symbol addresses.
7458 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7459 offset to minimal symbol addresses.
7460
7461 2014-02-26 Tom Tromey <tromey@redhat.com>
7462
7463 * ada-lang.c (ada_main_name): Update.
7464 (ada_add_standard_exceptions): Update.
7465 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7466 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7467 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7468 * auxv.c (ld_so_xfer_auxv): Update.
7469 * avr-tdep.c (avr_scan_prologue): Update.
7470 * ax-gdb.c (gen_var_ref): Update.
7471 * blockframe.c (get_pc_function_start)
7472 (find_pc_partial_function_gnu_ifunc): Update.
7473 * breakpoint.c (create_overlay_event_breakpoint)
7474 (create_longjmp_master_breakpoint)
7475 (create_std_terminate_master_breakpoint)
7476 (create_exception_master_breakpoint): Update.
7477 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7478 * c-valprint.c (c_val_print): Update.
7479 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7480 * common/agent.c (agent_look_up_symbols): Update.
7481 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7482 * dwarf2loc.c (call_site_to_target_addr): Update.
7483 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7484 * elfread.c (elf_gnu_ifunc_record_cache)
7485 (elf_gnu_ifunc_resolve_by_got): Update.
7486 * findvar.c (default_read_var_value): Update.
7487 * frame.c (inside_main_func): Update.
7488 * frv-tdep.c (frv_frame_this_id): Update.
7489 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7490 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7491 Update.
7492 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7493 (hppa_hpux_find_dummy_bpaddr): Update.
7494 * hppa-tdep.c (hppa_symbol_address): Update.
7495 * infcmd.c (until_next_command): Update.
7496 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7497 Update.
7498 * linespec.c (minsym_found, add_minsym): Update.
7499 * linux-nat.c (get_signo): Update.
7500 * linux-thread-db.c (inferior_has_bug): Update.
7501 * m32c-tdep.c (m32c_return_value)
7502 (m32c_m16c_address_to_pointer): Update.
7503 * m32r-tdep.c (m32r_frame_this_id): Update.
7504 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7505 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7506 * maint.c (maintenance_translate_address): Update.
7507 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7508 (frob_address): New function.
7509 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7510 frob_address. Rename parameter to "pc_in".
7511 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7512 addresses.
7513 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7514 Update.
7515 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7516 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7517 * objc-lang.c (find_objc_msgsend): Update.
7518 * objfiles.c (objfile_relocate1): Update.
7519 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7520 * p-valprint.c (pascal_val_print): Update.
7521 * parse.c (write_exp_msymbol): Update.
7522 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7523 (ppc_elfv2_skip_entrypoint): Update.
7524 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7525 * printcmd.c (build_address_symbolic, msym_info)
7526 (address_info): Update.
7527 * proc-service.c (ps_pglobal_lookup): Update.
7528 * psymtab.c (find_pc_sect_psymtab_closer)
7529 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7530 Change msymbol parameter to bound_minimal_symbol.
7531 * ravenscar-thread.c (get_running_thread_id): Update.
7532 * remote.c (remote_check_symbols): Update.
7533 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7534 address.
7535 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7536 * solib-dsbt.c (lm_base): Update.
7537 * solib-frv.c (lm_base, main_got): Update.
7538 * solib-irix.c (locate_base): Update.
7539 * solib-som.c (som_solib_create_inferior_hook)
7540 (link_map_start): Update.
7541 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7542 * solib-svr4.c (elf_locate_base, enable_break): Update.
7543 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7544 (flush_ea_cache): Update.
7545 * stabsread.c (define_symbol, scan_file_globals): Update.
7546 * stack.c (find_frame_funname): Update.
7547 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7548 (debug_qf_find_pc_sect_symtab): Update.
7549 * symfile.c (simple_read_overlay_table)
7550 (simple_overlay_update): Update.
7551 * symfile.h (struct quick_symbol_functions)
7552 <find_pc_sect_symtab>: Change type of msymbol to
7553 bound_minimal_symbol.
7554 * symmisc.c (dump_msymbols): Update.
7555 * symtab.c (find_pc_sect_symtab_via_partial)
7556 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7557 (search_symbols, print_msymbol_info): Update.
7558 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7559 (MSYMBOL_VALUE_ADDRESS): Redefine.
7560 (BMSYMBOL_VALUE_ADDRESS): New macro.
7561 * tracepoint.c (scope_info): Update.
7562 * tui/tui-disasm.c (tui_find_disassembly_address)
7563 (tui_get_begin_asm_address): Update.
7564 * valops.c (find_function_in_inferior): Update.
7565 * value.c (value_static_field, value_fn_field): Update.
7566
7567 2014-02-26 Tom Tromey <tromey@redhat.com>
7568
7569 * ada-lang.c (ada_update_initial_language): Update.
7570 (ada_main_name, ada_has_this_exception_support): Update.
7571 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7572 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7573 * arm-tdep.c (arm_skip_stub): Update.
7574 * auxv.c (ld_so_xfer_auxv): Update.
7575 * avr-tdep.c (avr_scan_prologue): Update.
7576 * ax-gdb.c (gen_var_ref): Update.
7577 * breakpoint.c (struct breakpoint_objfile_data)
7578 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7579 type to bound_minimal_symbol.
7580 (create_overlay_event_breakpoint)
7581 (create_longjmp_master_breakpoint)
7582 (create_std_terminate_master_breakpoint)
7583 (create_exception_master_breakpoint): Update.
7584 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7585 * c-exp.y (classify_name): Update.
7586 * coffread.c (coff_symfile_read): Update.
7587 * common/agent.c (agent_look_up_symbols): Update.
7588 * d-lang.c (d_main_name): Update.
7589 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7590 * dec-thread.c (enable_dec_thread): Update.
7591 * dwarf2loc.c (call_site_to_target_addr): Update.
7592 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7593 * eval.c (evaluate_subexp_standard): Update.
7594 * findvar.c (struct minsym_lookup_data) <result>: Change type
7595 to bound_minimal_symbol.
7596 <objfile>: Remove.
7597 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7598 * frame.c (inside_main_func): Update.
7599 * frv-tdep.c (frv_frame_this_id): Update.
7600 * gcore.c (call_target_sbrk): Update.
7601 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7602 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7603 Update.
7604 * go-lang.c (go_main_name): Update.
7605 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7606 (hppa_hpux_find_import_stub_for_addr): Update.
7607 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7608 Update. Change return type.
7609 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7610 type.
7611 * jit.c (jit_breakpoint_re_set_internal): Update.
7612 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7613 Update.
7614 * linux-nat.c (get_signo): Update.
7615 * linux-thread-db.c (inferior_has_bug): Update
7616 * m32c-tdep.c (m32c_return_value)
7617 (m32c_m16c_address_to_pointer): Update.
7618 * m32r-tdep.c (m32r_frame_this_id): Update.
7619 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7620 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7621 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7622 lookup_minimal_symbol. Change return type.
7623 (lookup_minimal_symbol): Remove.
7624 (lookup_bound_minimal_symbol): Update.
7625 (lookup_minimal_symbol_text): Change return type.
7626 (lookup_minimal_symbol_solib_trampoline): Change return type.
7627 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7628 (lookup_minimal_symbol_solib_trampoline): Change return type.
7629 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7630 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7631 (value_nsstring, find_imps): Update.
7632 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7633 * p-lang.c (pascal_main_name): Update.
7634 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7635 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7636 * proc-service.c (ps_pglobal_lookup): Update.
7637 * ravenscar-thread.c (get_running_thread_msymbol): Change
7638 return type.
7639 (has_ravenscar_runtime, get_running_thread_id): Update.
7640 * remote.c (remote_check_symbols): Update.
7641 * sol-thread.c (ps_pglobal_lookup): Update.
7642 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7643 * solib-dsbt.c (lm_base): Update.
7644 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7645 Update.
7646 * solib-irix.c (locate_base): Update.
7647 * solib-som.c (som_solib_create_inferior_hook)
7648 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7649 Update.
7650 * solib-spu.c (spu_enable_break): Update.
7651 * solib-svr4.c (elf_locate_base, enable_break): Update.
7652 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7653 (flush_ea_cache): Update.
7654 * stabsread.c (define_symbol): Update.
7655 * symfile.c (simple_read_overlay_table): Update.
7656 * symtab.c (find_pc_sect_line): Update.
7657 * tracepoint.c (scope_info): Update.
7658 * tui-disasm.c (tui_get_begin_asm_address): Update.
7659 * value.c (value_static_field): Update.
7660
7661 2014-02-26 Tom Tromey <tromey@redhat.com>
7662
7663 * minsyms.c (prim_record_minimal_symbol_full): Use
7664 SET_MSYMBOL_VALUE_ADDRESS.
7665 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7666 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7667 SET_MSYMBOL_VALUE_ADDRESS.
7668 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7669 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7670
7671 2014-02-26 Tom Tromey <tromey@redhat.com>
7672
7673 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7674 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7675 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7676 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7677 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7678 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7679 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7680 * ada-lang.c (ada_main_name): Update.
7681 (ada_lookup_simple_minsym): Update.
7682 (ada_make_symbol_completion_list): Update.
7683 (ada_add_standard_exceptions): Update.
7684 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7685 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7686 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7687 * arm-tdep.c (skip_prologue_function): Update.
7688 (arm_skip_stack_protector, arm_skip_stub): Update.
7689 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7690 (arm_wince_skip_main_prologue): Update.
7691 * auxv.c (ld_so_xfer_auxv): Update.
7692 * avr-tdep.c (avr_scan_prologue): Update.
7693 * ax-gdb.c (gen_var_ref): Update.
7694 * block.c (call_site_for_pc): Update.
7695 * blockframe.c (get_pc_function_start): Update.
7696 (find_pc_partial_function_gnu_ifunc): Update.
7697 * breakpoint.c (create_overlay_event_breakpoint): Update.
7698 (create_longjmp_master_breakpoint): Update.
7699 (create_std_terminate_master_breakpoint): Update.
7700 (create_exception_master_breakpoint): Update.
7701 (resolve_sal_pc): Update.
7702 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7703 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7704 Update.
7705 * c-valprint.c (c_val_print): Update.
7706 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7707 * coffread.c (coff_symfile_read): Update.
7708 * common/agent.c (agent_look_up_symbols): Update.
7709 * dbxread.c (find_stab_function_addr): Update.
7710 (end_psymtab): Update.
7711 * dwarf2loc.c (call_site_to_target_addr): Update.
7712 (func_verify_no_selftailcall): Update.
7713 (tailcall_dump): Update.
7714 (call_site_find_chain_1): Update.
7715 (dwarf_expr_reg_to_entry_parameter): Update.
7716 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7717 (elf_gnu_ifunc_resolve_by_got): Update.
7718 * f-valprint.c (info_common_command): Update.
7719 * findvar.c (read_var_value): Update.
7720 * frame.c (get_prev_frame_1): Update.
7721 (inside_main_func): Update.
7722 * frv-tdep.c (frv_skip_main_prologue): Update.
7723 (frv_frame_this_id): Update.
7724 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7725 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7726 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7727 (gnuv3_skip_trampoline): Update.
7728 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7729 (hppa64_hpux_in_solib_call_trampoline): Update.
7730 (hppa_hpux_skip_trampoline_code): Update.
7731 (hppa64_hpux_search_dummy_call_sequence): Update.
7732 (hppa_hpux_find_import_stub_for_addr): Update.
7733 (hppa_hpux_find_dummy_bpaddr): Update.
7734 * hppa-tdep.c (hppa_symbol_address)
7735 (hppa_lookup_stub_minimal_symbol): Update.
7736 * i386-tdep.c (i386_skip_main_prologue): Update.
7737 (i386_pe_skip_trampoline_code): Update.
7738 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7739 * infcall.c (get_function_name): Update.
7740 * infcmd.c (until_next_command): Update.
7741 * jit.c (jit_breakpoint_re_set_internal): Update.
7742 (jit_inferior_init): Update.
7743 * linespec.c (minsym_found): Update.
7744 (add_minsym): Update.
7745 * linux-fork.c (info_checkpoints_command): Update.
7746 * linux-nat.c (get_signo): Update.
7747 * linux-thread-db.c (inferior_has_bug): Update.
7748 * m32c-tdep.c (m32c_return_value): Update.
7749 (m32c_m16c_address_to_pointer): Update.
7750 (m32c_m16c_pointer_to_address): Update.
7751 * m32r-tdep.c (m32r_frame_this_id): Update.
7752 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7753 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7754 * maint.c (maintenance_translate_address): Update.
7755 * minsyms.c (add_minsym_to_hash_table): Update.
7756 (add_minsym_to_demangled_hash_table): Update.
7757 (msymbol_objfile): Update.
7758 (lookup_minimal_symbol): Update.
7759 (iterate_over_minimal_symbols): Update.
7760 (lookup_minimal_symbol_text): Update.
7761 (lookup_minimal_symbol_by_pc_name): Update.
7762 (lookup_minimal_symbol_solib_trampoline): Update.
7763 (lookup_minimal_symbol_by_pc_section_1): Update.
7764 (lookup_minimal_symbol_and_objfile): Update.
7765 (prim_record_minimal_symbol_full): Update.
7766 (compare_minimal_symbols): Update.
7767 (compact_minimal_symbols): Update.
7768 (build_minimal_symbol_hash_tables): Update.
7769 (install_minimal_symbols): Update.
7770 (terminate_minimal_symbol_table): Update.
7771 (find_solib_trampoline_target): Update.
7772 (minimal_symbol_upper_bound): Update.
7773 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7774 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7775 (mips_skip_pic_trampoline_code): Update.
7776 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7777 * objc-lang.c (selectors_info): Update.
7778 (classes_info): Update.
7779 (find_methods): Update.
7780 (find_imps): Update.
7781 (find_objc_msgsend): Update.
7782 * objfiles.c (objfile_relocate1): Update.
7783 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7784 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7785 * p-valprint.c (pascal_val_print): Update.
7786 * parse.c (write_exp_msymbol): Update.
7787 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7788 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7789 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7790 * printcmd.c (build_address_symbolic): Update.
7791 (sym_info): Update.
7792 (address_info): Update.
7793 * proc-service.c (ps_pglobal_lookup): Update.
7794 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7795 (find_pc_sect_psymtab): Update.
7796 * python/py-framefilter.c (py_print_frame): Update.
7797 * ravenscar-thread.c (get_running_thread_id): Update.
7798 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7799 Update.
7800 * remote.c (remote_check_symbols): Update.
7801 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7802 (rs6000_skip_trampoline_code): Update.
7803 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7804 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7805 * solib-dsbt.c (lm_base): Update.
7806 * solib-frv.c (lm_base): Update.
7807 (main_got): Update.
7808 * solib-irix.c (locate_base): Update.
7809 * solib-som.c (som_solib_create_inferior_hook): Update.
7810 (som_solib_desire_dynamic_linker_symbols): Update.
7811 (link_map_start): Update.
7812 * solib-spu.c (spu_enable_break): Update.
7813 (ocl_enable_break): Update.
7814 * solib-svr4.c (elf_locate_base): Update.
7815 (enable_break): Update.
7816 * spu-tdep.c (spu_get_overlay_table): Update.
7817 (spu_catch_start): Update.
7818 (flush_ea_cache): Update.
7819 * stabsread.c (define_symbol): Update.
7820 (scan_file_globals): Update.
7821 * stack.c (find_frame_funname): Update.
7822 (frame_info): Update.
7823 * symfile.c (simple_read_overlay_table): Update.
7824 (simple_overlay_update): Update.
7825 * symmisc.c (dump_msymbols): Update.
7826 * symtab.c (fixup_section): Update.
7827 (find_pc_sect_line): Update.
7828 (skip_prologue_sal): Update.
7829 (search_symbols): Update.
7830 (print_msymbol_info): Update.
7831 (rbreak_command): Update.
7832 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7833 (completion_list_objc_symbol): Update.
7834 (default_make_symbol_completion_list_break_on): Update.
7835 * tracepoint.c (scope_info): Update.
7836 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7837 (tui_get_begin_asm_address): Update.
7838 * valops.c (find_function_in_inferior): Update.
7839 * value.c (value_static_field): Update.
7840 (value_fn_field): Update.
7841
7842 2014-02-26 Tom Tromey <tromey@redhat.com>
7843
7844 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7845 bound minimal symbols. Move code that knows about minsym
7846 table layout...
7847 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7848 function.
7849 * minsyms.h (minimal_symbol_upper_bound): Declare.
7850 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7851 minimal_symbol_upper_bound.
7852
7853 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7854
7855 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7856 Use the type's name if its basic type does not have a tag.
7857
7858 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7859
7860 * dwarf2read.c (read_subrange_type): Add comment.
7861
7862 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7863
7864 * dwarf2read.c (update_enumeration_type_from_children): New
7865 function, mostly extracted from process_structure_scope.
7866 (read_enumeration_type): Call update_enumeration_type_from_children.
7867 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7868 and flag_flag_enum fields.
7869
7870 2014-02-26 Pedro Alves <palves@redhat.com>
7871
7872 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7873 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7874 to_xfer_partial method.
7875
7876 2014-02-26 Pedro Alves <palves@redhat.com>
7877
7878 * target.c (complete_target_initialization): Don't install
7879 default_xfer_partial as to_xfer_partial hook.
7880 (nomemory): Delete.
7881 (update_current_target): Don't INHERIT nor de_fault
7882 deprecated_xfer_memory. Delete de_fault macro.
7883 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7884 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7885 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7886 field.
7887
7888 2014-02-26 Pedro Alves <palves@redhat.com>
7889
7890 * go32-nat.c (my_write_child): New function.
7891 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7892 (go32_xfer_partial): New function.
7893 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7894 Instead install a to_xfer_partial hook.
7895
7896 2014-02-26 Pedro Alves <palves@redhat.com>
7897
7898 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7899 to_xfer_partial helper. Rewrite.
7900 (procfs_xfer_partial): New function.
7901 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7902 Install a to_xfer_partial hook.
7903
7904 2014-02-26 Pedro Alves <palves@redhat.com>
7905
7906 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7907 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7908 (m32r_xfer_partial): New function.
7909 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7910 Install a to_xfer_partial hook.
7911
7912 2014-02-26 Pedro Alves <palves@redhat.com>
7913
7914 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7915 helper.
7916 (mips_xfer_partial): New function.
7917 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7918 hook. Install a to_xfer_partial hook.
7919
7920 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7921
7922 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7923 * gdbtypes.c (create_array_type_with_stride): New function,
7924 renaming create_array_type, but with an added parameter
7925 called "bit_stride".
7926 (create_array_type): Re-implement using
7927 create_array_type_with_stride.
7928 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7929 and DW_AT_bit_stride attributes.
7930
7931 2014-02-26 Pedro Alves <palves@redhat.com>
7932
7933 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7934 task-specific breakpoints.
7935
7936 2014-02-25 Pedro Alves <palves@redhat.com>
7937
7938 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7939 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7940
7941 2014-02-25 Stan Shebs <stan@codesourcery.com>
7942
7943 * defs.h: Annotate comments for Doxygen.
7944
7945 2014-02-25 Tom Tromey <tromey@redhat.com>
7946
7947 * target.h (target_ignore): Don't declare.
7948 * target.c (target_ignore): Remove.
7949
7950 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7951
7952 PR gdb/16626
7953 * auto-load.c (auto_load_objfile_script_1): Change filename to
7954 debugfile.
7955
7956 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7957
7958 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7959 documentation. Adjust prototype to match the target_ops
7960 to_xfer_partial method. Adjust implementation accordingly.
7961
7962 2014-02-25 Hui Zhu <hui@codesourcery.com>
7963
7964 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7965 to_traceframe_info.
7966
7967 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7968
7969 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7970 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7971 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7972 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7973 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7974 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7975 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7976 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7977 New constants.
7978 (rl78_register_type): Use a data pointer type for SP and
7979 new pseudo registers mentioned above. Use a 16 bit integer
7980 type for all other register pairs.
7981 (rl78_register_name, rl78_g10_register_name): Update for
7982 new pseudo registers.
7983 (rl78_pseudo_register_read): Likewise.
7984 (rl78_pseudo_register_write): Likewise.
7985 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7986 to the newly added pseudo registers.
7987
7988 2014-02-24 Doug Evans <dje@google.com>
7989
7990 * value.c (record_latest_value): Fix comment.
7991 * printcmd.c (print_command_1): Remove code to handle -1 return from
7992 record_latest_value.
7993
7994 2014-02-24 Pedro Alves <palves@redhat.com>
7995
7996 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7997 deprecated_xfer_memory hook.
7998 (procfs_xfer_partial): Call procfs_xfer_memory instead
7999 of the deprecated_xfer_memory target hook.
8000 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8001 helper.
8002
8003 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8004
8005 * windows-nat.c (windows_xfer_shared_libraries): Return
8006 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8007 requested object is TARGET_OBJECT_LIBRARIES.
8008
8009 2014-02-24 Yao Qi <yao@codesourcery.com>
8010
8011 * target.h (enum target_xfer_status)
8012 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8013 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8014 explicitly. New.
8015 * corefile.c (memory_error_message): User updated.
8016 * exec.c (section_table_read_available_memory): Likewise.
8017 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8018 * target.c (target_xfer_status_to_string): Likewise.
8019 (raw_memory_xfer_partial): Likewise.
8020 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8021 * valops.c (read_value_memory): Likewise.
8022 * exec.h: Update comments.
8023
8024 2014-02-24 Yao Qi <yao@codesourcery.com>
8025
8026 * target.c (target_xfer_status_to_string): Rename argument err
8027 to status.
8028 * target.h (target_xfer_status_to_string): Update declaration.
8029 Replace target_xfer_error_to_string with
8030 target_xfer_status_to_string in comment.
8031
8032 2014-02-24 Yao Qi <yao@codesourcery.com>
8033
8034 * mips-linux-nat.c (super_close): Update its type.
8035 (mips_linux_close): Pass 'self' to super_close.
8036
8037 2014-02-24 Yao Qi <yao@codesourcery.com>
8038
8039 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8040 * corefile.c (read_memory): Adjusted.
8041 * target.c (target_write_with_progress): Adjusted.
8042
8043 2014-02-23 Yao Qi <yao@codesourcery.com>
8044
8045 Revert two patches:
8046
8047 2013-10-25 Yao Qi <yao@codesourcery.com>
8048
8049 * remote.c (remote_traceframe_info): Return early if
8050 traceframe is not selected.
8051
8052 2013-07-19 Yao Qi <yao@codesourcery.com>
8053
8054 * target.c (update_current_target): Change the default action
8055 of 'to_traceframe_info' from tcomplain to return_zero.
8056 * target.h (struct target_ops) <to_traceframe_info>: Add more
8057 comments.
8058
8059 2014-02-23 Yao Qi <yao@codesourcery.com>
8060
8061 * valops.c (read_value_memory): Rewrite it. Call
8062 target_xfer_partial in a loop.
8063 * exec.h (section_table_available_memory): Remove declaration.
8064 Move comments to ...
8065 * exec.c (section_table_available_memory): ... here. Make it
8066 static.
8067
8068 2014-02-23 Yao Qi <yao@codesourcery.com>
8069
8070 * exec.c (section_table_read_available_memory): New function.
8071 * exec.h (section_table_read_available_memory): Declare.
8072 * ctf.c (ctf_xfer_partial): Call
8073 section_table_read_available_memory.
8074 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8075
8076 2014-02-23 Yao Qi <yao@codesourcery.com>
8077
8078 * ctf.c (ctf_xfer_partial): Move code to ...
8079 * exec.c (exec_read_partial_read_only): ... it. New function.
8080 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8081 * tracefile.c: Include "exec.h".
8082 * exec.h (exec_read_partial_read_only): Declare.
8083
8084 2014-02-23 Yao Qi <yao@codesourcery.com>
8085
8086 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8087 (tfile_has_memory): Remove.
8088 (init_tfile_ops): Don't set fields to_has_all_memory and
8089 to_has_memory of tfile_ops.
8090 * tracefile.c (tracefile_has_all_memory): New function.
8091 (tracefile_has_memory): New function.
8092 (init_tracefile_ops): Initialize fields to_has_all_memory and
8093 to_has_memory of 'ops'.
8094
8095 2014-02-23 Yao Qi <yao@codesourcery.com>
8096
8097 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8098 (ctf_thread_alive, ctf_get_trace_status): Remove.
8099 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8100 init_tracefile_ops.
8101 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8102 (tfile_has_stack, tfile_has_registers): Remove.
8103 (tfile_thread_alive): Remove.
8104 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8105 init_tracefile_ops.
8106 * tracefile.c (tracefile_has_stack): New function.
8107 (tracefile_has_registers): New function.
8108 (tracefile_thread_alive): New function.
8109 (tracefile_get_trace_status): New function.
8110 (init_tracefile_ops): New function.
8111 * tracefile.h (init_tracefile_ops): Declare.
8112
8113 2014-02-23 Yao Qi <yao@codesourcery.com>
8114
8115 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8116 (O_LARGEFILE): Likewise.
8117 (tfile_ops): Likewise.
8118 (TRACE_HEADER_SIZE): Likewise.
8119 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8120 (cur_data_size): Likewise.
8121 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8122 (tfile_close, tfile_files_info): Likewise.
8123 (tfile_get_trace_status): Likewise.
8124 (tfile_get_tracepoint_status): Likewise.
8125 (tfile_get_traceframe_address): Likewise.
8126 (tfile_trace_find, match_blocktype): Likewise.
8127 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8128 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8129 (tfile_get_trace_state_variable_value): Likewise.
8130 (tfile_has_all_memory, tfile_has_memory): Likewise.
8131 (tfile_has_stack, tfile_has_registers): Likewise.
8132 (tfile_thread_alive, build_traceframe_info): Likewise.
8133 (tfile_traceframe_info, init_tfile_ops): Likewise.
8134 (_initialize_tracepoint): Don't call init_tfile_ops
8135 and add_target_with_completer.
8136 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8137 exec.h, completer.h and filenames.h.
8138 (_initialize_tracefile_tfile): New function.
8139
8140 2014-02-23 Yao Qi <yao@codesourcery.com>
8141
8142 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8143 tracefile-tfile.o.
8144 (HFILES_NO_SRCDIR): Add tracefile.h.
8145 * ctf.c: Include "tracefile.h".
8146 * tracefile.h: New file.
8147 * tracefile.c: New file
8148 * tracefile-tfile.c: New file.
8149 * tracepoint.c: Include "tracefile.h".
8150 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8151 (stop_reason_names): Add const.
8152 (trace_file_writer_xfree): Move it to tracefile.c.
8153 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8154 (trace_save_ctf): Likewise.
8155 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8156 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8157 (tfile_write_header, tfile_write_regblock_type): Likewise.
8158 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8159 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8160 (tfile_write_raw_data, tfile_end): Likewise.
8161 (tfile_trace_file_writer_new): Likewise.
8162 (free_uploaded_tp): Make it extern.
8163 (free_uploaded_tsv): Make it extern.
8164 (_initialize_tracepoint): Move code to register command 'tsave'
8165 to tracefile.c.
8166 * tracepoint.h (stop_reason_names): Declare.
8167 (struct trace_frame_write_ops): Move it to tracefile.h.
8168 (struct trace_file_write_ops): Likewise.
8169 (struct trace_file_writer): Likewise.
8170 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8171
8172 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8173
8174 PR gdb/16594
8175 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8176 process name.
8177 (get_cores_used_by_process): New parameter num_cores, use it.
8178 (linux_xfer_osdata_processes): Pass num_cores to it.
8179 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8180 process name.
8181
8182 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8183
8184 * target.c (memory_xfer_partial): Fix length arg in call to
8185 breakpoint_xfer_memory.
8186
8187 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8188
8189 PR tdep/16397
8190 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8191 number comes after the + or - signs. Adjust length of register
8192 name to be extracted.
8193
8194 2014-02-20 Tom Tromey <tromey@redhat.com>
8195
8196 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8197 (ada_varobj_ops): Mark "extern".
8198
8199 2014-02-20 Tom Tromey <tromey@redhat.com>
8200
8201 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8202
8203 2014-02-20 Doug Evans <xdje42@gmail.com>
8204
8205 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8206 All callers updated.
8207 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8208 All callers updated.
8209 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8210 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8211
8212 2014-02-20 lin zuojian <manjian2006@gmail.com>
8213 Joel Brobecker <brobecker@adacore.com>
8214 Doug Evans <xdje42@gmail.com>
8215
8216 PR symtab/16581
8217 * dwarf2read.c (struct die_info): New member in_process.
8218 (reset_die_in_process): New function.
8219 (process_die): Set it at the start, reset when returning.
8220 (inherit_abstract_dies): Only call process_die if origin_child_die
8221 not already being processed.
8222
8223 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8224
8225 * windows-nat.c (handle_unload_dll): Add function documentation.
8226 (do_initial_windows_stuff): Add comment explaining why we wait
8227 until after inferior initialization has finished before
8228 processing all DLLs.
8229
8230 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8231
8232 * windows-nat.c (get_module_name): Delete.
8233 (windows_get_exec_module_filename): New function, mostly
8234 inspired from get_module_name.
8235 (windows_pid_to_exec_file): Replace call to get_module_name
8236 by call to windows_get_exec_module_filename.
8237
8238 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8239
8240 * windows-nat.c (handle_load_dll): Rewrite this function's
8241 introductory comment. Remove code using get_module_name
8242 to get the DLL's name.
8243
8244 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8245
8246 * windows-nat.c (get_windows_debug_event): Ignore
8247 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8248 if windows_initialization_done == 0.
8249 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8250 Adjust implementation to always load all DLLs.
8251 (do_initial_windows_stuff): Replace call to
8252 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8253
8254 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8255
8256 * windows-nat.c (_initialize_windows_nat): Deprecate the
8257 "dll-symbols" command. Turn the "add-shared-symbol-files"
8258 and "assf" aliases into commands, and deprecate them as well.
8259 * NEWS: Add entry explaining that "dll-symbols" and its two
8260 aliases are now deprecated.
8261
8262 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8263
8264 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8265 new-line in debug string. Remove trailing spaces.
8266
8267 2014-02-19 Stan Shebs <stan@codesourcery.com>
8268
8269 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8270
8271 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8272
8273 * NEWS: Add entry for the new feature
8274 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8275 and class values.
8276
8277 2014-02-19 Stan Shebs <stan@codesourcery.com>
8278
8279 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8280
8281 2014-02-19 Pedro Alves <palves@redhat.com>
8282
8283 * common/ptid.h (struct ptid): Mention that process_stratum
8284 targets should prefer ptid.lwp.
8285
8286 2014-02-19 Pedro Alves <palves@redhat.com>
8287
8288 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8289 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8290 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8291 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8292 store remote thread ids rather than ptid.tid.
8293 (_initialize_remote): Adjust.
8294
8295 2014-02-19 Tom Tromey <tromey@redhat.com>
8296
8297 * target.c (target_get_unwinder): Rewrite.
8298 (target_get_tailcall_unwinder): Rewrite.
8299 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8300 (record_btrace_to_get_tailcall_unwinder): New function.
8301 (init_record_btrace_ops): Update.
8302 * target.h (struct target_ops) <to_get_unwinder,
8303 to_get_tailcall_unwinder>: Now function pointers. Use
8304 TARGET_DEFAULT_RETURN.
8305
8306 2014-02-19 Tom Tromey <tromey@redhat.com>
8307
8308 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8309 argument.
8310 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8311
8312 2014-02-19 Tom Tromey <tromey@redhat.com>
8313
8314 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8315 directly.
8316 * target-delegates.c: Rebuild.
8317 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8318 TARGET_DEFAULT_FUNC.
8319 * target.c (default_target_decr_pc_after_break): Rename from
8320 forward_target_decr_pc_after_break. Simplify.
8321 (target_decr_pc_after_break): Rely on delegation.
8322
8323 2014-02-19 Tom Tromey <tromey@redhat.com>
8324
8325 * target.c (update_current_target): Do not INHERIT to_doc or
8326 to_magic. Do not de_fault to_open or to_close.
8327
8328 2014-02-19 Tom Tromey <tromey@redhat.com>
8329
8330 * gcore.h (objfile_find_memory_regions): Declare.
8331 * gcore.c (objfile_find_memory_regions): No longer static. Add
8332 "self" argument.
8333 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8334 * exec.c: Include gcore.h.
8335 (exec_set_find_memory_regions): Remove.
8336 (exec_find_memory_regions): Remove.
8337 (exec_do_find_memory_regions): Remove.
8338 (init_exec_ops): Update.
8339 * defs.h (exec_set_find_memory_regions): Remove.
8340
8341 2014-02-19 Tom Tromey <tromey@redhat.com>
8342
8343 * target-delegates.c: Rebuild.
8344 * target.h (struct target_ops) <to_extra_thread_info,
8345 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8346 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8347 not 0, in TARGET_DEFAULT_RETURN.
8348
8349 2014-02-19 Tom Tromey <tromey@redhat.com>
8350
8351 * target.c (complete_target_initialization): Remove casts. Use
8352 return_zero_has_execution.
8353 (return_zero): Add "ignore" argument.
8354 (return_zero_has_execution): New function.
8355 (init_dummy_target): Remove casts. Use
8356 return_zero_has_execution.
8357
8358 2014-02-19 Tom Tromey <tromey@redhat.com>
8359
8360 * target.c (update_current_target): Update comments. Do not
8361 INHERIT to_stratum.
8362
8363 2014-02-19 Tom Tromey <tromey@redhat.com>
8364
8365 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8366 needed.
8367 * corelow.c (core_read_description): Delegate when needed.
8368 * remote.c (remote_read_description): Delegate when needed.
8369 * target-delegates.c: Rebuild.
8370 * target.c (target_read_description): Rewrite.
8371 * target.h (struct target_ops) <to_read_description>: Update
8372 comment. Use TARGET_DEFAULT_RETURN.
8373
8374 2014-02-19 Tom Tromey <tromey@redhat.com>
8375
8376 * target-delegates.c: Rebuild.
8377 * target.c (update_current_target): Don't inherit or default
8378 to_can_run.
8379 (find_default_run_target): Check against delegate_can_run.
8380 * target.h (struct target_ops) <to_can_run>: Use
8381 TARGET_DEFAULT_RETURN.
8382
8383 2014-02-19 Tom Tromey <tromey@redhat.com>
8384
8385 * target-delegates.c: Rebuild.
8386 * target.c (target_disconnect): Unconditionally delegate.
8387 * target.h (struct target_ops) <to_disconnect>: Use
8388 TARGET_DEFAULT_NORETURN.
8389
8390 2014-02-19 Tom Tromey <tromey@redhat.com>
8391
8392 * record.c (record_stop): Unconditionally delegate.
8393 * target-delegates.c: Rebuild.
8394 * target.c (target_stop_recording): Unconditionally delegate.
8395 * target.h (struct target_ops) <to_stop_recording>: Use
8396 TARGET_DEFAULT_IGNORE.
8397
8398 2014-02-19 Tom Tromey <tromey@redhat.com>
8399
8400 * target-delegates.c: Rebuild.
8401 * target.c (target_enable_btrace): Unconditionally delegate.
8402 * target.h (struct target_ops) <to_enable_btrace>: Use
8403 TARGET_DEFAULT_NORETURN.
8404
8405 2014-02-19 Tom Tromey <tromey@redhat.com>
8406
8407 * target-delegates.c: Rebuild.
8408 * target.c (target_read_btrace): Unconditionally delegate.
8409 * target.h (struct target_ops) <to_read_btrace>: Use
8410 TARGET_DEFAULT_NORETURN.
8411
8412 2014-02-19 Tom Tromey <tromey@redhat.com>
8413
8414 * target-delegates.c: Rebuild.
8415 * target.c (target_teardown_btrace): Unconditionally delegate.
8416 * target.h (struct target_ops) <to_teardown_btrace>: Use
8417 TARGET_DEFAULT_NORETURN.
8418
8419 2014-02-19 Tom Tromey <tromey@redhat.com>
8420
8421 * target-delegates.c: Rebuild.
8422 * target.c (target_disable_btrace): Unconditionally delegate.
8423 * target.h (struct target_ops) <to_disable_btrace>: Use
8424 TARGET_DEFAULT_NORETURN.
8425
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8427
8428 * target-delegates.c: Rebuild.
8429 * target.c (default_search_memory): New function.
8430 (simple_search_memory): Update comment.
8431 (target_search_memory): Unconditionally delegate.
8432 * target.h (struct target_ops) <to_search_memory>: Use
8433 TARGET_DEFAULT_FUNC.
8434
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8436
8437 * auxv.c (default_auxv_parse): No longer static.
8438 (target_auxv_parse): Unconditionally delegate.
8439 * auxv.h (default_auxv_parse): Declare.
8440 * target-delegates.c: Rebuild.
8441 * target.c: Include auxv.h.
8442 * target.h (struct target_ops) <to_auxv_parse>: Use
8443 TARGET_DEFAULT_FUNC.
8444
8445 2014-02-19 Tom Tromey <tromey@redhat.com>
8446
8447 * target-delegates.c: Rebuild.
8448 * target.c (target_memory_map): Unconditionally delegate.
8449 * target.h (struct target_ops) <to_memory_map>: Use
8450 TARGET_DEFAULT_RETURN.
8451
8452 2014-02-19 Tom Tromey <tromey@redhat.com>
8453
8454 * target-delegates.c: Rebuild.
8455 * target.c (target_thread_alive): Unconditionally delegate.
8456 * target.h (struct target_ops) <to_thread_alive>: Use
8457 TARGET_DEFAULT_RETURN.
8458
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8460
8461 * target-delegates.c: Rebuild.
8462 * target.c (target_save_record): Unconditionally delegate.
8463 * target.h (struct target_ops) <to_save_record>: Use
8464 TARGET_DEFAULT_NORETURN.
8465
8466 2014-02-19 Tom Tromey <tromey@redhat.com>
8467
8468 * target-delegates.c: Rebuild.
8469 * target.c (target_delete_record): Unconditionally delegate.
8470 * target.h (struct target_ops) <to_delete_record>: Use
8471 TARGET_DEFAULT_NORETURN.
8472
8473 2014-02-19 Tom Tromey <tromey@redhat.com>
8474
8475 * target-delegates.c: Rebuild.
8476 * target.c (target_record_is_replaying): Unconditionally
8477 delegate.
8478 * target.h (struct target_ops) <to_record_is_replaying>: Use
8479 TARGET_DEFAULT_RETURN.
8480
8481 2014-02-19 Tom Tromey <tromey@redhat.com>
8482
8483 * target-delegates.c: Rebuild.
8484 * target.c (target_goto_record_begin): Unconditionally delegate.
8485 * target.h (struct target_ops) <to_goto_record_begin>: Use
8486 TARGET_DEFAULT_NORETURN.
8487
8488 2014-02-19 Tom Tromey <tromey@redhat.com>
8489
8490 * target-delegates.c: Rebuild.
8491 * target.c (target_goto_record_end): Unconditionally delegate.
8492 * target.h (struct target_ops) <to_goto_record_end>: Use
8493 TARGET_DEFAULT_NORETURN.
8494
8495 2014-02-19 Tom Tromey <tromey@redhat.com>
8496
8497 * target-delegates.c: Rebuild.
8498 * target.c (target_goto_record): Unconditionally delegate.
8499 * target.h (struct target_ops) <to_goto_record>: Use
8500 TARGET_DEFAULT_NORETURN.
8501
8502 2014-02-19 Tom Tromey <tromey@redhat.com>
8503
8504 * target-delegates.c: Rebuild.
8505 * target.c (target_insn_history): Unconditionally delegate.
8506 * target.h (struct target_ops) <to_insn_history>: Use
8507 TARGET_DEFAULT_NORETURN.
8508
8509 2014-02-19 Tom Tromey <tromey@redhat.com>
8510
8511 * target-delegates.c: Rebuild.
8512 * target.c (target_insn_history_from): Unconditionally delegate.
8513 * target.h (struct target_ops) <to_insn_history_from>: Use
8514 TARGET_DEFAULT_NORETURN.
8515
8516 2014-02-19 Tom Tromey <tromey@redhat.com>
8517
8518 * target-delegates.c: Rebuild.
8519 * target.c (target_insn_history_range): Unconditionally delegate.
8520 * target.h (struct target_ops) <to_insn_history_range>: Use
8521 TARGET_DEFAULT_NORETURN.
8522
8523 2014-02-19 Tom Tromey <tromey@redhat.com>
8524
8525 * target-delegates.c: Rebuild.
8526 * target.c (target_call_history): Unconditionally delegate.
8527 * target.h (struct target_ops) <to_call_history>: Use
8528 TARGET_DEFAULT_NORETURN.
8529
8530 2014-02-19 Tom Tromey <tromey@redhat.com>
8531
8532 * target-delegates.c: Rebuild.
8533 * target.c (target_call_history_from): Unconditionally delegate.
8534 * target.h (struct target_ops) <to_call_history_from>: Use
8535 TARGET_DEFAULT_NORETURN.
8536
8537 2014-02-19 Tom Tromey <tromey@redhat.com>
8538
8539 * target-delegates.c: Rebuild.
8540 * target.c (target_call_history_range): Unconditionally delegate.
8541 * target.h (struct target_ops) <to_call_history_range>: Use
8542 TARGET_DEFAULT_NORETURN.
8543
8544 2014-02-19 Tom Tromey <tromey@redhat.com>
8545
8546 * target-delegates.c: Rebuild.
8547 * target.c (target_verify_memory): Unconditionally delegate.
8548 * target.h (struct target_ops) <to_verify_memory>: Use
8549 TARGET_DEFAULT_NORETURN.
8550
8551 2014-02-19 Tom Tromey <tromey@redhat.com>
8552
8553 * target-delegates.c: Rebuild.
8554 * target.c (target_core_of_thread): Unconditionally delegate.
8555 * target.h (struct target_ops) <to_core_of_thread>: Use
8556 TARGET_DEFAULT_RETURN.
8557
8558 2014-02-19 Tom Tromey <tromey@redhat.com>
8559
8560 * target-delegates.c: Rebuild.
8561 * target.c (target_flash_done): Unconditionally delegate.
8562 * target.h (struct target_ops) <to_flash_done>: Use
8563 TARGET_DEFAULT_NORETURN.
8564
8565 2014-02-19 Tom Tromey <tromey@redhat.com>
8566
8567 * target-delegates.c: Rebuild.
8568 * target.c (target_flash_erase): Unconditionally delegate.
8569 * target.h (struct target_ops) <to_flash_erase>: Use
8570 TARGET_DEFAULT_NORETURN.
8571
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8573
8574 * target-delegates.c: Rebuild.
8575 * target.c (target_get_section_table): Unconditionally delegate.
8576 * target.h (struct target_ops) <to_get_section_table>: Use
8577 TARGET_DEFAULT_RETURN.
8578
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8580
8581 * target-delegates.c: Rebuild.
8582 * target.c (target_pid_to_str): Unconditionally delegate.
8583 (init_dummy_target): Don't initialize to_pid_to_str.
8584 (default_pid_to_str): Rename from dummy_pid_to_str.
8585 * target.h (struct target_ops) <to_pid_to_str>: Use
8586 TARGET_DEFAULT_FUNC.
8587
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * target-delegates.c: Rebuild.
8591 * target.c (target_find_new_threads): Unconditionally delegate.
8592 * target.h (struct target_ops) <to_find_new_threads>: Use
8593 TARGET_DEFAULT_RETURN.
8594
8595 2014-02-19 Tom Tromey <tromey@redhat.com>
8596
8597 * target-delegates.c: Rebuild.
8598 * target.c (target_program_signals): Unconditionally delegate.
8599 * target.h (struct target_ops) <to_program_signals>: Use
8600 TARGET_DEFAULT_IGNORE.
8601
8602 2014-02-19 Tom Tromey <tromey@redhat.com>
8603
8604 * target-delegates.c: Rebuild.
8605 * target.c (target_pass_signals): Unconditionally delegate.
8606 * target.h (struct target_ops) <to_pass_signals>: Use
8607 TARGET_DEFAULT_IGNORE.
8608
8609 2014-02-19 Tom Tromey <tromey@redhat.com>
8610
8611 * target-delegates.c: Rebuild.
8612 * target.c (default_mourn_inferior): New function.
8613 (target_mourn_inferior): Unconditionally delegate.
8614 * target.h (struct target_ops) <to_mourn_inferior>: Use
8615 TARGET_DEFAULT_FUNC.
8616
8617 2014-02-19 Tom Tromey <tromey@redhat.com>
8618
8619 * target-delegates.c: Rebuild.
8620 * target.c (default_follow_fork): New function.
8621 (target_follow_fork): Unconditionally delegate.
8622 * target.h (struct target_ops) <to_follow_fork>: Use
8623 TARGET_DEFAULT_FUNC.
8624
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8626
8627 * target-delegates.c: Rebuild.
8628 * target.c (target_kill): Unconditionally delegate.
8629 * target.h (struct target_ops) <to_kill>: Use
8630 TARGET_DEFAULT_NORETURN.
8631
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8633
8634 * target-delegates.c: Rebuild.
8635 * target.c (target_masked_watch_num_registers): Unconditionally
8636 delegate.
8637 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8638 Use TARGET_DEFAULT_RETURN.
8639
8640 2014-02-19 Tom Tromey <tromey@redhat.com>
8641
8642 * target-delegates.c: Rebuild.
8643 * target.c (target_remove_mask_watchpoint): Unconditionally
8644 delegate.
8645 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8646 TARGET_DEFAULT_RETURN.
8647
8648 2014-02-19 Tom Tromey <tromey@redhat.com>
8649
8650 * target-delegates.c: Rebuild.
8651 * target.c (target_insert_mask_watchpoint): Unconditionally
8652 delegate.
8653 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8654 TARGET_DEFAULT_RETURN.
8655
8656 2014-02-19 Tom Tromey <tromey@redhat.com>
8657
8658 * target-delegates.c: Rebuild.
8659 * target.c (target_ranged_break_num_registers): Unconditionally
8660 delegate.
8661 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8662 Use TARGET_DEFAULT_RETURN.
8663
8664 2014-02-19 Tom Tromey <tromey@redhat.com>
8665
8666 * target-delegates.c: Rebuild.
8667 * target.c (target_fetch_registers): Unconditionally delegate.
8668 * target.h (struct target_ops) <to_fetch_registers>: Use
8669 TARGET_DEFAULT_NORETURN.
8670
8671 2014-02-19 Tom Tromey <tromey@redhat.com>
8672
8673 * target-delegates.c: Rebuild.
8674 * target.c (update_current_target): Don't inherit or default
8675 to_stop.
8676 * target.h (struct target_ops) <to_stop>: Use
8677 TARGET_DEFAULT_IGNORE.
8678
8679 2014-02-19 Tom Tromey <tromey@redhat.com>
8680
8681 * target-delegates.c: Rebuild.
8682 * target.c (update_current_target): Don't inherit or default
8683 to_can_run_breakpoint_commands.
8684 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8685 Use TARGET_DEFAULT_RETURN.
8686
8687 2014-02-19 Tom Tromey <tromey@redhat.com>
8688
8689 * target-delegates.c: Rebuild.
8690 * target.c (update_current_target): Don't inherit or default
8691 to_supports_evaluation_of_breakpoint_conditions.
8692 * target.h (struct target_ops)
8693 <to_supports_evaluation_of_breakpoint_conditions>: Use
8694 TARGET_DEFAULT_RETURN.
8695
8696 2014-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_augmented_libraries_svr4_read.
8701 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8702 Use TARGET_DEFAULT_RETURN.
8703
8704 2014-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_can_use_agent.
8709 * target.h (struct target_ops) <to_can_use_agent>: Use
8710 TARGET_DEFAULT_RETURN.
8711
8712 2014-02-19 Tom Tromey <tromey@redhat.com>
8713
8714 * target-delegates.c: Rebuild.
8715 * target.c (update_current_target): Don't inherit or default
8716 to_use_agent.
8717 * target.h (struct target_ops) <to_use_agent>: Use
8718 TARGET_DEFAULT_NORETURN.
8719
8720 2014-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_traceframe_info.
8725 (return_null): Remove.
8726 * target.h (struct target_ops) <to_traceframe_info>: Use
8727 TARGET_DEFAULT_RETURN.
8728
8729 2014-02-19 Tom Tromey <tromey@redhat.com>
8730
8731 * target-delegates.c: Rebuild.
8732 * target.c (update_current_target): Don't inherit or default
8733 to_static_tracepoint_markers_by_strid.
8734 * target.h (struct target_ops)
8735 <to_static_tracepoint_markers_by_strid>: Use
8736 TARGET_DEFAULT_NORETURN.
8737
8738 2014-02-19 Tom Tromey <tromey@redhat.com>
8739
8740 * target-delegates.c: Rebuild.
8741 * target.c (update_current_target): Don't inherit or default
8742 to_static_tracepoint_marker_at.
8743 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8744 Use TARGET_DEFAULT_RETURN.
8745
8746 2014-02-19 Tom Tromey <tromey@redhat.com>
8747
8748 * target-delegates.c: Rebuild.
8749 * target.c (update_current_target): Don't inherit or default
8750 to_set_permissions.
8751 * target.h (struct target_ops) <to_set_permissions>: Use
8752 TARGET_DEFAULT_IGNORE.
8753
8754 2014-02-19 Tom Tromey <tromey@redhat.com>
8755
8756 * target-delegates.c: Rebuild.
8757 * target.c (update_current_target): Don't inherit or default
8758 to_get_tib_address.
8759 * target.h (struct target_ops) <to_get_tib_address>: Use
8760 TARGET_DEFAULT_NORETURN.
8761
8762 2014-02-19 Tom Tromey <tromey@redhat.com>
8763
8764 * target-delegates.c: Rebuild.
8765 * target.c (update_current_target): Don't inherit or default
8766 to_set_trace_notes.
8767 * target.h (struct target_ops) <to_set_trace_notes>: Use
8768 TARGET_DEFAULT_RETURN.
8769
8770 2014-02-19 Tom Tromey <tromey@redhat.com>
8771
8772 * target-delegates.c: Rebuild.
8773 * target.c (update_current_target): Don't initialize
8774 to_set_trace_buffer_size.
8775 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8776 TARGET_DEFAULT_IGNORE.
8777
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8779
8780 * target-delegates.c: Rebuild.
8781 * target.c (update_current_target): Don't inherit or default
8782 to_set_circular_trace_buffer.
8783 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8784 TARGET_DEFAULT_IGNORE.
8785
8786 2014-02-19 Tom Tromey <tromey@redhat.com>
8787
8788 * target-delegates.c: Rebuild.
8789 * target.c (update_current_target): Don't inherit or default
8790 to_set_disconnected_tracing.
8791 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8792 TARGET_DEFAULT_IGNORE.
8793
8794 2014-02-19 Tom Tromey <tromey@redhat.com>
8795
8796 * target-delegates.c: Rebuild.
8797 * target.c (update_current_target): Don't inherit or default
8798 to_get_min_fast_tracepoint_insn_len.
8799 (return_minus_one): Remove.
8800 * target.h (struct target_ops)
8801 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8802
8803 2014-02-19 Tom Tromey <tromey@redhat.com>
8804
8805 * target-delegates.c: Rebuild.
8806 * target.c (update_current_target): Don't inherit or default
8807 to_get_raw_trace_data.
8808 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8809 TARGET_DEFAULT_NORETURN.
8810
8811 2014-02-19 Tom Tromey <tromey@redhat.com>
8812
8813 * target-delegates.c: Rebuild.
8814 * target.c (update_current_target): Don't inherit or default
8815 to_upload_trace_state_variables.
8816 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8817 Use TARGET_DEFAULT_RETURN.
8818
8819 2014-02-19 Tom Tromey <tromey@redhat.com>
8820
8821 * target-delegates.c: Rebuild.
8822 * target.c (update_current_target): Don't inherit or default
8823 to_upload_tracepoints.
8824 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8825 TARGET_DEFAULT_RETURN.
8826
8827 2014-02-19 Tom Tromey <tromey@redhat.com>
8828
8829 * target-delegates.c: Rebuild.
8830 * target.c (update_current_target): Don't inherit or default
8831 to_save_trace_data.
8832 * target.h (struct target_ops) <to_save_trace_data>: Use
8833 TARGET_DEFAULT_NORETURN.
8834
8835 2014-02-19 Tom Tromey <tromey@redhat.com>
8836
8837 * target-delegates.c: Rebuild.
8838 * target.c (update_current_target): Don't inherit or default
8839 to_get_trace_state_variable_value.
8840 * target.h (struct target_ops)
8841 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8842
8843 2014-02-19 Tom Tromey <tromey@redhat.com>
8844
8845 * target-delegates.c: Rebuild.
8846 * target.c (update_current_target): Don't inherit or default
8847 to_trace_find.
8848 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8849
8850 2014-02-19 Tom Tromey <tromey@redhat.com>
8851
8852 * target-delegates.c: Rebuild.
8853 * target.c (update_current_target): Don't inherit or default
8854 to_trace_stop.
8855 * target.h (struct target_ops) <to_trace_stop>: Use
8856 TARGET_DEFAULT_NORETURN.
8857
8858 2014-02-19 Tom Tromey <tromey@redhat.com>
8859
8860 * target-delegates.c: Rebuild.
8861 * target.c (update_current_target): Don't inherit or default
8862 to_get_tracepoint_status.
8863 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8864 TARGET_DEFAULT_NORETURN.
8865
8866 2014-02-19 Tom Tromey <tromey@redhat.com>
8867
8868 * target-delegates.c: Rebuild.
8869 * target.c (update_current_target): Don't inherit or default
8870 to_get_trace_status.
8871 * target.h (struct target_ops) <to_get_trace_status>: Use
8872 TARGET_DEFAULT_RETURN.
8873
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8875
8876 * target-delegates.c: Rebuild.
8877 * target.c (update_current_target): Don't inherit or default
8878 to_trace_start.
8879 * target.h (struct target_ops) <to_trace_start>: Use
8880 TARGET_DEFAULT_NORETURN.
8881
8882 2014-02-19 Tom Tromey <tromey@redhat.com>
8883
8884 * target-delegates.c: Rebuild.
8885 * target.c (update_current_target): Don't inherit or default
8886 to_trace_set_readonly_regions.
8887 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8888 Use TARGET_DEFAULT_NORETURN.
8889
8890 2014-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_disable_tracepoint.
8895 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8896 TARGET_DEFAULT_NORETURN.
8897
8898 2014-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_enable_tracepoint.
8903 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8904 TARGET_DEFAULT_NORETURN.
8905
8906 2014-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_download_trace_state_variable.
8911 * target.h (struct target_ops) <to_download_trace_state_variable>:
8912 Use TARGET_DEFAULT_NORETURN.
8913
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8915
8916 * target-delegates.c: Rebuild.
8917 * target.c (update_current_target): Don't inherit or default
8918 to_can_download_tracepoint.
8919 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8920 TARGET_DEFAULT_RETURN.
8921
8922 2014-02-19 Tom Tromey <tromey@redhat.com>
8923
8924 * target-delegates.c: Rebuild.
8925 * target.c (update_current_target): Don't inherit or default
8926 to_download_tracepoint.
8927 * target.h (struct target_ops) <to_download_tracepoint>: Use
8928 TARGET_DEFAULT_NORETURN.
8929
8930 2014-02-19 Tom Tromey <tromey@redhat.com>
8931
8932 * target-delegates.c: Rebuild.
8933 * target.c (update_current_target): Don't inherit or default
8934 to_trace_init.
8935 * target.h (struct target_ops) <to_trace_init>: Use
8936 TARGET_DEFAULT_RETURN.
8937
8938 2014-02-19 Tom Tromey <tromey@redhat.com>
8939
8940 * target-delegates.c: Rebuild.
8941 * target.c (update_current_target): Don't inherit or default
8942 to_supports_string_tracing.
8943 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8944 TARGET_DEFAULT_RETURN.
8945
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8947
8948 * target-delegates.c: Rebuild.
8949 * target.c (update_current_target): Don't inherit or default
8950 to_supports_enable_disable_tracepoint.
8951 * target.h (struct target_ops)
8952 <to_supports_enable_disable_tracepoint>: Use
8953 TARGET_DEFAULT_RETURN.
8954
8955 2014-02-19 Tom Tromey <tromey@redhat.com>
8956
8957 * target-delegates.c: Rebuild.
8958 * target.c (update_current_target): Don't inherit or default
8959 to_supports_multi_process.
8960 * target.h (struct target_ops) <to_supports_multi_process>: Use
8961 TARGET_DEFAULT_RETURN.
8962
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8964
8965 * target-delegates.c: Rebuild.
8966 * target.c (update_current_target): Don't inherit or default
8967 to_get_ada_task_ptid.
8968 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8969 TARGET_DEFAULT_FUNC.
8970
8971 2014-02-19 Tom Tromey <tromey@redhat.com>
8972
8973 * target-delegates.c: Rebuild.
8974 * target.c (update_current_target): Don't inherit or default
8975 to_thread_architecture.
8976 * target.h (struct target_ops) <to_thread_architecture>: Use
8977 TARGET_DEFAULT_FUNC.
8978
8979 2014-02-19 Tom Tromey <tromey@redhat.com>
8980
8981 * target-delegates.c: Rebuild.
8982 * target.c (update_current_target): Don't inherit or default
8983 to_execution_direction.
8984 * target.h (struct target_ops) <to_execution_direction>: Use
8985 TARGET_DEFAULT_FUNC.
8986
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * target-delegates.c: Rebuild.
8990 * target.c (update_current_target): Don't inherit or default
8991 to_can_execute_reverse.
8992 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8993 TARGET_DEFAULT_RETURN.
8994 (target_can_execute_reverse): Unconditionally delegate.
8995
8996 2014-02-19 Tom Tromey <tromey@redhat.com>
8997
8998 * target-delegates.c: Rebuild.
8999 * target.c (update_current_target): Don't inherit or default
9000 to_goto_bookmark.
9001 (dummy_goto_bookmark): Remove.
9002 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9003 * target.h (struct target_ops) <to_goto_bookmark>: Use
9004 TARGET_DEFAULT_NORETURN.
9005
9006 2014-02-19 Tom Tromey <tromey@redhat.com>
9007
9008 * target-delegates.c: Rebuild.
9009 * target.c (update_current_target): Don't inherit or default
9010 to_get_bookmark.
9011 (dummy_get_bookmark): Remove.
9012 (init_dummy_target): Don't inherit or default to_get_bookmark.
9013 * target.h (struct target_ops) <to_get_bookmark>: Use
9014 TARGET_DEFAULT_NORETURN
9015
9016 2014-02-19 Tom Tromey <tromey@redhat.com>
9017
9018 * target-delegates.c: Rebuild.
9019 * target.c (update_current_target): Don't inherit or default
9020 to_make_corefile_notes.
9021 (init_dummy_target): Don't initialize to_make_corefile_notes.
9022 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9023 TARGET_DEFAULT_FUNC.
9024
9025 2014-02-19 Tom Tromey <tromey@redhat.com>
9026
9027 * target-delegates.c: Rebuild.
9028 * target.c (update_current_target): Don't inherit or default
9029 to_find_memory_regions.
9030 (init_dummy_target): Don't initialize to_find_memory_regions.
9031 * target.h (struct target_ops) <to_find_memory_regions>: Use
9032 TARGET_DEFAULT_FUNC.
9033
9034 2014-02-19 Tom Tromey <tromey@redhat.com>
9035
9036 * target-delegates.c: Rebuild.
9037 * target.c (update_current_target): Don't inherit or default
9038 to_log_command.
9039 * target.h (struct target_ops) <to_log_command>: Use
9040 TARGET_DEFAULT_IGNORE.
9041 (target_log_command): Unconditionally delegate.
9042
9043 2014-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_pid_to_exec_file.
9048 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9049 TARGET_DEFAULT_RETURN.
9050
9051 2014-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_thread_name.
9056 (target_thread_name): Unconditionally delegate.
9057 * target.h (struct target_ops) <to_thread_name>: Use
9058 TARGET_DEFAULT_RETURN.
9059
9060 2014-02-19 Tom Tromey <tromey@redhat.com>
9061
9062 * target-delegates.c: Rebuild.
9063 * target.c (update_current_target): Don't inherit or default
9064 to_extra_thread_info.
9065 * target.h (struct target_ops) <to_extra_thread_info>: Use
9066 TARGET_DEFAULT_RETURN.
9067
9068 2014-02-19 Tom Tromey <tromey@redhat.com>
9069
9070 * target-delegates.c: Rebuild.
9071 * target.c (update_current_target): Don't inherit or default
9072 to_has_exited.
9073 * target.h (struct target_ops) <to_has_exited>: Use
9074 TARGET_DEFAULT_RETURN..
9075
9076 2014-02-19 Tom Tromey <tromey@redhat.com>
9077
9078 * target-delegates.c: Rebuild.
9079 * target.c (update_current_target): Don't inherit or default
9080 to_set_syscall_catchpoint.
9081 (return_one): Remove.
9082 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9083 TARGET_DEFAULT_RETURN.
9084
9085 2014-02-19 Tom Tromey <tromey@redhat.com>
9086
9087 * target-delegates.c: Rebuild.
9088 * target.c (update_current_target): Don't inherit or default
9089 to_insert_exec_catchpoint.
9090 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9091 TARGET_DEFAULT_RETURN.
9092
9093 2014-01-08 Tom Tromey <tromey@redhat.com>
9094
9095 * target-delegates.c: Rebuild.
9096 * target.c (update_current_target): Don't inherit or default
9097 to_insert_exec_catchpoint.
9098 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9099 TARGET_DEFAULT_RETURN.
9100
9101 2014-02-19 Tom Tromey <tromey@redhat.com>
9102
9103 * target-delegates.c: Rebuild.
9104 * target.c (update_current_target): Don't inherit or default
9105 to_remove_vfork_catchpoint.
9106 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9107 TARGET_DEFAULT_RETURN.
9108
9109 2014-02-19 Tom Tromey <tromey@redhat.com>
9110
9111 * target-delegates.c: Rebuild.
9112 * target.c (update_current_target): Don't inherit or default
9113 to_insert_vfork_catchpoint.
9114 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9115 TARGET_DEFAULT_RETURN.
9116
9117 2014-02-19 Tom Tromey <tromey@redhat.com>
9118
9119 * target-delegates.c: Rebuild.
9120 * target.c (update_current_target): Don't inherit or default
9121 to_remove_fork_catchpoint.
9122 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9123 TARGET_DEFAULT_RETURN.
9124
9125 2014-02-19 Tom Tromey <tromey@redhat.com>
9126
9127 * target-delegates.c: Rebuild.
9128 * target.c (update_current_target): Don't inherit or default
9129 to_insert_fork_catchpoint.
9130 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9131 TARGET_DEFAULT_RETURN.
9132
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target-delegates.c: Rebuild.
9136 * target.c (update_current_target): Don't inherit or default
9137 to_post_startup_inferior.
9138 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9139 TARGET_DEFAULT_IGNORE.
9140
9141 2014-02-19 Tom Tromey <tromey@redhat.com>
9142
9143 * target-delegates.c: Rebuild.
9144 * target.c (update_current_target): Don't inherit or default
9145 to_load.
9146 * target.h (struct target_ops) <to_load>: Use
9147 TARGET_DEFAULT_NORETURN.
9148
9149 2014-02-19 Tom Tromey <tromey@redhat.com>
9150
9151 * target-delegates.c: Rebuild.
9152 * target.c (update_current_target): Don't inherit or default
9153 to_terminal_info.
9154 * target.h (struct target_ops) <to_terminal_info>: Use
9155 TARGET_DEFAULT_FUNC.
9156
9157 2014-02-19 Tom Tromey <tromey@redhat.com>
9158
9159 * target-delegates.c: Rebuild.
9160 * target.c (update_current_target): Don't inherit or default
9161 to_terminal_save_ours.
9162 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9163 TARGET_DEFAULT_IGNORE.
9164
9165 2014-02-19 Tom Tromey <tromey@redhat.com>
9166
9167 * target-delegates.c: Rebuild.
9168 * target.c (update_current_target): Don't inherit or default
9169 to_terminal_ours.
9170 * target.h (struct target_ops) <to_terminal_ours>: Use
9171 TARGET_DEFAULT_IGNORE.
9172
9173 2014-02-19 Tom Tromey <tromey@redhat.com>
9174
9175 * target-delegates.c: Rebuild.
9176 * target.c (update_current_target): Don't inherit or default
9177 to_terminal_ours_for_output.
9178 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9179 TARGET_DEFAULT_IGNORE.
9180
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9182
9183 * target-delegates.c: Rebuild.
9184 * target.c (update_current_target): Don't inherit or default
9185 to_terminal_inferior.
9186 * target.h (struct target_ops) <to_terminal_inferior>: Use
9187 TARGET_DEFAULT_IGNORE.
9188
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9190
9191 * target-delegates.c: Rebuild.
9192 * target.c (update_current_target): Don't inherit or default
9193 to_terminal_init.
9194 * target.h (struct target_ops) <to_terminal_init>: Use
9195 TARGET_DEFAULT_IGNORE.
9196
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9198
9199 * target-delegates.c: Rebuild.
9200 * target.c (update_current_target): Don't inherit or default
9201 to_can_accel_watchpoint_condition.
9202 * target.h (struct target_ops)
9203 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9204
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9206
9207 * target-delegates.c: Rebuild.
9208 * target.c (update_current_target): Don't inherit or default
9209 to_region_ok_for_hw_watchpoint.
9210 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9211 Use TARGET_DEFAULT_FUNC.
9212
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9214
9215 * target-delegates.c: Rebuild.
9216 * target.c (update_current_target): Don't inherit or default
9217 to_watchpoint_addr_within_range.
9218 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9219 Use TARGET_DEFAULT_FUNC.
9220
9221 2014-02-19 Tom Tromey <tromey@redhat.com>
9222
9223 * target-delegates.c: Rebuild.
9224 * target.c (update_current_target): Don't inherit or default
9225 to_remove_watchpoint.
9226 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9227 TARGET_DEFAULT_NORETURN.
9228
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * target-delegates.c: Rebuild.
9232 * target.c (update_current_target): Don't inherit or default
9233 to_insert_watchpoint.
9234 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9235 TARGET_DEFAULT_RETURN.
9236
9237 2014-02-19 Tom Tromey <tromey@redhat.com>
9238
9239 * target-delegates.c: Rebuild.
9240 * target.c (update_current_target): Don't inherit or default
9241 to_remove_hw_breakpoint.
9242 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9243 TARGET_DEFAULT_RETURN.
9244
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target-delegates.c: Rebuild.
9248 * target.c (update_current_target): Don't inherit or default
9249 to_insert_hw_breakpoint.
9250 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9251 TARGET_DEFAULT_RETURN.
9252
9253 2014-02-19 Tom Tromey <tromey@redhat.com>
9254
9255 * target-delegates.c: Rebuild.
9256 * target.c (update_current_target): Don't inherit or default
9257 to_can_use_hw_breakpoint.
9258 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9259 TARGET_DEFAULT_RETURN.
9260
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9262
9263 * target-delegates.c: Rebuild.
9264 * target.c (update_current_target): Don't inherit or default
9265 to_files_info.
9266 * target.h (struct target_ops) <to_files_info>: Use
9267 TARGET_DEFAULT_IGNORE.
9268
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9270
9271 * target-delegates.c: Rebuild.
9272 * target.c (update_current_target): Don't inherit or default
9273 to_store.
9274 * target.h (struct target_ops) <to_store>: Use
9275 TARGET_DEFAULT_NORETURN.
9276
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9278
9279 * target-delegates.c: Rebuild.
9280 * target.c (update_current_target): Don't inherit or default
9281 to_post_attach.
9282 * target.h (struct target_ops) <to_post_attach>: Use
9283 TARGET_DEFAULT_IGNORE.
9284
9285 2014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * target-delegates.c: Rebuild.
9288 * target.c (update_current_target): Don't inherit or default
9289 to_rcmd.
9290 (default_rcmd): New function.
9291 (do_monitor_command): Unconditionally delegate.
9292 * target.h (struct target_ops) <to_rmcd>: Use
9293 TARGET_DEFAULT_FUNC.
9294
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9296
9297 * target-delegates.c: Rebuild.
9298 * target.c (init_dummy_target): Don't initialize to_attach.
9299 (target_attach): Unconditionally delegate.
9300 * target.h (struct target_ops) <to_attach>: Use
9301 TARGET_DEFAULT_FUNC.
9302
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9304
9305 * target-delegates.c: Rebuild.
9306 * target.c (target_detach): Unconditionally delegate.
9307 (init_dummy_target): Don't initialize to_detach.
9308 * target.h (struct target_ops) <to_detach>: Use
9309 TARGET_DEFAULT_IGNORE.
9310
9311 2014-02-19 Tom Tromey <tromey@redhat.com>
9312
9313 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9314 Add argument.
9315 (target_augmented_libraries_svr4_read): Add argument.
9316 * target.c (update_current_target): Update.
9317 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9318 argument.
9319
9320 2014-02-19 Tom Tromey <tromey@redhat.com>
9321
9322 * target.h (struct target_ops) <to_call_history_range>: Add
9323 argument.
9324 * target.c (target_call_history_range): Add argument.
9325 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9326 argument.
9327 (record_btrace_call_history_from): Update.
9328
9329 2014-02-19 Tom Tromey <tromey@redhat.com>
9330
9331 * target.h (struct target_ops) <to_call_history_from>: Add
9332 argument.
9333 * target.c (target_call_history_from): Add argument.
9334 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9335 argument.
9336
9337 2014-02-19 Tom Tromey <tromey@redhat.com>
9338
9339 * target.h (struct target_ops) <to_call_history>: Add argument.
9340 * target.c (target_call_history): Add argument.
9341 * record-btrace.c (record_btrace_call_history): Add 'self'
9342 argument.
9343
9344 2014-02-19 Tom Tromey <tromey@redhat.com>
9345
9346 * target.h (struct target_ops) <to_insn_history_range>: Add
9347 argument.
9348 * target.c (target_insn_history_range): Add argument.
9349 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9350 argument.
9351 (record_btrace_insn_history_from): Update.
9352
9353 2014-02-19 Tom Tromey <tromey@redhat.com>
9354
9355 * target.h (struct target_ops) <to_insn_history_from>: Add
9356 argument.
9357 * target.c (target_insn_history_from): Add argument.
9358 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9359 argument.
9360
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9362
9363 * target.h (struct target_ops) <to_insn_history>: Add argument.
9364 * target.c (target_insn_history): Add argument.
9365 * record-btrace.c (record_btrace_insn_history): Add 'self'
9366 argument.
9367
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9369
9370 * target.h (struct target_ops) <to_goto_record>: Add argument.
9371 * target.c (target_goto_record): Add argument.
9372 * record-full.c (record_full_goto): Add 'self' argument.
9373 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9374
9375 2014-02-19 Tom Tromey <tromey@redhat.com>
9376
9377 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9378 * target.c (target_goto_record_end): Add argument.
9379 * record-full.c (record_full_goto_end): Add 'self' argument.
9380 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9381
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * target.h (struct target_ops) <to_goto_record_begin>: Add
9385 argument.
9386 * target.c (target_goto_record_begin): Add argument.
9387 * record-full.c (record_full_goto_begin): Add 'self' argument.
9388 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9389 argument.
9390
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9392
9393 * target.h (struct target_ops) <to_record_is_replaying>: Add
9394 argument.
9395 * target.c (target_record_is_replaying): Add argument.
9396 * record-full.c (record_full_is_replaying): Add 'self' argument.
9397 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9398 argument.
9399 (record_btrace_xfer_partial, record_btrace_store_registers)
9400 (record_btrace_prepare_to_store, record_btrace_resume)
9401 (record_btrace_wait, record_btrace_decr_pc_after_break)
9402 (record_btrace_find_new_threads, record_btrace_thread_alive):
9403 Update.
9404
9405 2014-02-19 Tom Tromey <tromey@redhat.com>
9406
9407 * target.h (struct target_ops) <to_delete_record>: Add argument.
9408 * target.c (target_delete_record): Add argument.
9409 * record-full.c (record_full_delete): Add 'self' argument.
9410
9411 2014-02-19 Tom Tromey <tromey@redhat.com>
9412
9413 * target.h (struct target_ops) <to_save_record>: Add argument.
9414 * target.c (target_save_record): Add argument.
9415 * record-full.c (record_full_save): Add 'self' argument.
9416 (record_full_save): Add 'self' argument.
9417
9418 2014-02-19 Tom Tromey <tromey@redhat.com>
9419
9420 * target.h (struct target_ops) <to_info_record>: Add argument.
9421 * target.c (target_info_record): Add argument.
9422 * record.c (info_record_command): Add argument.
9423 * record-full.c (record_full_info): Add 'self' argument.
9424 * record-btrace.c (record_btrace_info): Add 'self' argument.
9425
9426 2014-02-19 Tom Tromey <tromey@redhat.com>
9427
9428 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9429 * target.c (target_stop_recording): Add argument.
9430 * record.c (record_stop): Add argument.
9431 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9432 argument.
9433
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9435
9436 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9437 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9438 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9439 argument.
9440 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9441 (_initialize_amd64_linux_nat): Use it.
9442 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9443 (_initialize_i386_linux_nat): Use it.
9444
9445 2014-02-19 Tom Tromey <tromey@redhat.com>
9446
9447 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9448 * target.c (target_teardown_btrace): Add argument.
9449 * remote.c (remote_teardown_btrace): Add 'self' argument.
9450 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9451 argument.
9452 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9453 argument.
9454
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9456
9457 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9458 * target.c (target_disable_btrace): Add argument.
9459 * remote.c (remote_disable_btrace): Add 'self' argument.
9460 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9461 argument.
9462 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9463 argument.
9464
9465 2014-02-19 Tom Tromey <tromey@redhat.com>
9466
9467 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9468 * target.c (target_enable_btrace): Add argument.
9469 * remote.c (remote_enable_btrace): Add 'self' argument.
9470 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9471 argument.
9472 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9473 argument.
9474
9475 2014-02-19 Tom Tromey <tromey@redhat.com>
9476
9477 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9478 (target_can_use_agent): Add argument.
9479 * target.c (update_current_target): Update.
9480 * remote.c (remote_can_use_agent): Add 'self' argument.
9481 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9482
9483 2014-02-19 Tom Tromey <tromey@redhat.com>
9484
9485 * target.h (struct target_ops) <to_use_agent>: Add argument.
9486 (target_use_agent): Add argument.
9487 * target.c (update_current_target): Update.
9488 * remote.c (remote_use_agent): Add 'self' argument.
9489 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9490
9491 2014-02-19 Tom Tromey <tromey@redhat.com>
9492
9493 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9494 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9495 (target_traceframe_info): Add argument.
9496 * target.c (update_current_target): Update.
9497 * remote.c (remote_traceframe_info): Add 'self' argument.
9498 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9499
9500 2014-02-19 Tom Tromey <tromey@redhat.com>
9501
9502 * target.h (target_static_tracepoint_markers_by_strid): Add
9503 argument.
9504 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9505 'self' argument.
9506 * target.c (update_current_target): Update.
9507 * remote.c (struct target_ops)
9508 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9509 * linux-nat.c (struct target_ops)
9510 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9511
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9515 Add argument.
9516 (target_static_tracepoint_marker_at): Add argument.
9517 * target.c (update_current_target): Update.
9518 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9519 argument.
9520
9521 2014-02-19 Tom Tromey <tromey@redhat.com>
9522
9523 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9524 (target_set_permissions): Add argument.
9525 * target.c (update_current_target): Update.
9526 * remote.c (remote_set_permissions): Add 'self' argument.
9527 (remote_start_remote): Update.
9528
9529 2014-02-19 Tom Tromey <tromey@redhat.com>
9530
9531 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9532 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9533 (target_get_tib_address): Add argument.
9534 * target.c (update_current_target): Update.
9535 * remote.c (remote_get_tib_address): Add 'self' argument.
9536
9537 2014-02-19 Tom Tromey <tromey@redhat.com>
9538
9539 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9540 (target_set_trace_notes): Add argument.
9541 * target.c (update_current_target): Update.
9542 * remote.c (remote_set_trace_notes): Add 'self' argument.
9543
9544 2014-02-19 Tom Tromey <tromey@redhat.com>
9545
9546 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9547 argument.
9548 (target_set_trace_buffer_size): Add argument.
9549 * target.c (update_current_target): Update.
9550 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9551
9552 2014-02-19 Tom Tromey <tromey@redhat.com>
9553
9554 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9555 argument.
9556 (target_set_circular_trace_buffer): Add argument.
9557 * target.c (update_current_target): Update.
9558 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9559 argument.
9560
9561 2014-02-19 Tom Tromey <tromey@redhat.com>
9562
9563 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9564 argument.
9565 (target_set_disconnected_tracing): Add argument.
9566 * target.c (update_current_target): Update.
9567 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9568
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9570
9571 * target.h (struct target_ops)
9572 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9573 (target_get_min_fast_tracepoint_insn_len): Add argument.
9574 * target.c (update_current_target): Update.
9575 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9576 argument.
9577
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9579
9580 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9581 argument.
9582 (target_get_raw_trace_data): Add argument.
9583 * target.c (update_current_target): Update.
9584 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9585
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9587
9588 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9589 Add argument.
9590 (target_upload_trace_state_variables): Add argument.
9591 * target.c (update_current_target): Update.
9592 * remote.c (remote_upload_trace_state_variables): Add 'self'
9593 argument.
9594 (remote_start_remote): Update.
9595
9596 2014-02-19 Tom Tromey <tromey@redhat.com>
9597
9598 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9599 argument.
9600 (target_upload_tracepoints): Add argument.
9601 * target.c (update_current_target): Update.
9602 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9603 (remote_start_remote): Update.
9604
9605 2014-02-19 Tom Tromey <tromey@redhat.com>
9606
9607 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9608 (target_save_trace_data): Add argument.
9609 * target.c (update_current_target): Update.
9610 * remote.c (remote_save_trace_data): Add 'self' argument.
9611
9612 2014-02-19 Tom Tromey <tromey@redhat.com>
9613
9614 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9615 argument.
9616 * target.h (struct target_ops)
9617 <to_get_trace_state_variable_value>: Add argument.
9618 (target_get_trace_state_variable_value): Add argument.
9619 * target.c (update_current_target): Update.
9620 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9621 argument.
9622 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9623
9624 2014-02-19 Tom Tromey <tromey@redhat.com>
9625
9626 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9627 * target.h (struct target_ops) <to_trace_find>: Add argument.
9628 (target_trace_find): Add argument.
9629 * target.c (update_current_target): Update.
9630 * remote.c (remote_trace_find): Add 'self' argument.
9631 * ctf.c (ctf_trace_find): Add 'self' argument.
9632
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9634
9635 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9636 (target_trace_stop): Add argument.
9637 * target.c (update_current_target): Update.
9638 * remote.c (remote_trace_stop): Add 'self' argument.
9639
9640 2014-02-19 Tom Tromey <tromey@redhat.com>
9641
9642 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9643 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9644 argument.
9645 (target_get_tracepoint_status): Add argument.
9646 * target.c (update_current_target): Update.
9647 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9648
9649 2014-02-19 Tom Tromey <tromey@redhat.com>
9650
9651 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9652 * target.h (struct target_ops) <to_get_trace_status>: Add
9653 argument.
9654 (target_get_trace_status): Add argument.
9655 * target.c (update_current_target): Update.
9656 * remote.c (remote_get_trace_status): Add 'self' argument.
9657 (remote_start_remote, remote_can_download_tracepoint): Update.
9658 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9659
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9661
9662 * target.h (struct target_ops) <to_trace_start>: Add argument.
9663 (target_trace_start): Add argument.
9664 * target.c (update_current_target): Update.
9665 * remote.c (remote_trace_start): Add 'self' argument.
9666
9667 2014-02-19 Tom Tromey <tromey@redhat.com>
9668
9669 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9670 Add argument.
9671 (target_trace_set_readonly_regions): Add argument.
9672 * target.c (update_current_target): Update.
9673 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9674 argument.
9675
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9677
9678 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9679 argument.
9680 (target_disable_tracepoint): Add argument.
9681 * target.c (update_current_target): Update.
9682 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9683
9684 2014-02-19 Tom Tromey <tromey@redhat.com>
9685
9686 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9687 argument.
9688 (target_enable_tracepoint): Add argument.
9689 * target.c (update_current_target): Update.
9690 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9691
9692 2014-02-19 Tom Tromey <tromey@redhat.com>
9693
9694 * target.h (struct target_ops) <to_download_trace_state_variable>:
9695 Add argument.
9696 (target_download_trace_state_variable): Add argument.
9697 * target.c (update_current_target): Update.
9698 * remote.c (remote_download_trace_state_variable): Add 'self'
9699 argument.
9700
9701 2014-02-19 Tom Tromey <tromey@redhat.com>
9702
9703 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9704 argument.
9705 (target_can_download_tracepoint): Add argument.
9706 * target.c (update_current_target): Update.
9707 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9708
9709 2014-02-19 Tom Tromey <tromey@redhat.com>
9710
9711 * target.h (struct target_ops) <to_download_tracepoint>: Add
9712 argument.
9713 (target_download_tracepoint): Add argument.
9714 * target.c (update_current_target): Update.
9715 * remote.c (remote_download_tracepoint): Add 'self' argument.
9716
9717 2014-02-19 Tom Tromey <tromey@redhat.com>
9718
9719 * target.h (struct target_ops) <to_trace_init>: Add argument.
9720 (target_trace_init): Add argument.
9721 * target.c (update_current_target): Update.
9722 * remote.c (remote_trace_init): Add 'self' argument.
9723
9724 2014-02-19 Tom Tromey <tromey@redhat.com>
9725
9726 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9727 * target.c (target_fileio_readlink): Add argument.
9728 * remote.c (remote_hostio_readlink): Add 'self' argument.
9729 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9730
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9732
9733 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9734 * target.c (target_fileio_unlink): Add argument.
9735 * remote.c (remote_hostio_unlink): Add 'self' argument.
9736 (remote_file_delete): Update.
9737 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9738
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9740
9741 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9742 * target.c (target_fileio_close): Add argument.
9743 * remote.c (remote_hostio_close): Add 'self' argument.
9744 (remote_hostio_close_cleanup): Update.
9745 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9746 Update.
9747 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9748
9749 2014-02-19 Tom Tromey <tromey@redhat.com>
9750
9751 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9752 * target.c (target_fileio_pread): Add argument.
9753 * remote.c (remote_hostio_pread): Add 'self' argument.
9754 (remote_bfd_iovec_pread, remote_file_get): Update.
9755 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9756
9757 2014-02-19 Tom Tromey <tromey@redhat.com>
9758
9759 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9760 * target.c (target_fileio_pwrite): Add argument.
9761 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9762 (remote_file_put): Update.
9763 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9764
9765 2014-02-19 Tom Tromey <tromey@redhat.com>
9766
9767 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9768 * target.c (target_fileio_open): Add argument.
9769 * remote.c (remote_hostio_open): Add 'self' argument.
9770 (remote_bfd_iovec_open): Add 'self' argument.
9771 (remote_file_put): Add 'self' argument.
9772 (remote_file_get): Add 'self' argument.
9773 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9774
9775 2014-02-19 Tom Tromey <tromey@redhat.com>
9776
9777 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9778 Add argument.
9779 (target_can_run_breakpoint_commands): Add argument.
9780 * target.c (update_current_target): Update.
9781 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9782 argument.
9783 (remote_insert_breakpoint): Add 'self' argument.
9784 (remote_insert_hw_breakpoint): Add 'self' argument.
9785 (remote_can_run_breakpoint_commands): Add 'self' argument.
9786
9787 2014-02-19 Tom Tromey <tromey@redhat.com>
9788
9789 * target.h (struct target_ops)
9790 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9791 (target_supports_evaluation_of_breakpoint_conditions): Add
9792 argument.
9793 * target.c (update_current_target): Update.
9794 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9795 argument.
9796 (remote_insert_breakpoint): Add 'self' argument.
9797 (remote_insert_hw_breakpoint): Add 'self' argument.
9798 (remote_supports_cond_breakpoints): Add 'self' argument.
9799
9800 2014-02-19 Tom Tromey <tromey@redhat.com>
9801
9802 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9803 argument.
9804 (target_supports_string_tracing): Add argument.
9805 * target.c (update_current_target): Update.
9806 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9807
9808 2014-02-19 Tom Tromey <tromey@redhat.com>
9809
9810 * target.h (struct target_ops)
9811 <to_supports_disable_randomization>: Add argument.
9812 * target.c (find_default_supports_disable_randomization): Add
9813 argument.
9814 (target_supports_disable_randomization): Add argument.
9815 (find_default_supports_disable_randomization): Add 'self'
9816 argument.
9817 * remote.c (extended_remote_supports_disable_randomization): Add
9818 'self' argument.
9819 (remote_supports_disable_randomization): Add 'self' argument.
9820 (extended_remote_create_inferior): Update.
9821 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9822 'self' argument.
9823
9824 2014-02-19 Tom Tromey <tromey@redhat.com>
9825
9826 * target.h (struct target_ops)
9827 <to_supports_enable_disable_tracepoint>: Add argument.
9828 (target_supports_enable_disable_tracepoint): Add argument.
9829 * target.c (update_current_target): Update.
9830 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9831 argument.
9832
9833 2014-02-19 Tom Tromey <tromey@redhat.com>
9834
9835 * target.h (struct target_ops) <to_supports_multi_process>: Add
9836 argument.
9837 (target_supports_multi_process): Add argument.
9838 * target.c (update_current_target): Update.
9839 * remote.c (remote_supports_multi_process): Add 'self' argument.
9840 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9841 argument.
9842 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9843 argument.
9844
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9846
9847 * target.h (struct target_ops) <to_execution_direction>: Add
9848 argument.
9849 (target_execution_direction): Add argument.
9850 * target.c (default_execution_direction): Add 'self' argument.
9851 * record-full.c (record_full_execution_direction): Add 'self'
9852 argument.
9853
9854 2014-02-19 Tom Tromey <tromey@redhat.com>
9855
9856 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9857 argument.
9858 (target_can_execute_reverse): Add argument.
9859 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9860 * record-full.c (record_full_can_execute_reverse): Add 'self'
9861 argument.
9862 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9863 argument.
9864
9865 2014-02-19 Tom Tromey <tromey@redhat.com>
9866
9867 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9868 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9869 argument.
9870 (target_get_ada_task_ptid): Add argument.
9871 * target.c (update_current_target): Update.
9872 (default_get_ada_task_ptid): Add 'self' argument.
9873 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9874 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9875 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9876 argument.
9877 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9878 argument.
9879 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9880 argument.
9881 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9882 argument.
9883 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9884 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9885 argument.
9886
9887 2014-02-19 Tom Tromey <tromey@redhat.com>
9888
9889 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9890 (target_goto_bookmark): Add argument.
9891 * target.c (dummy_goto_bookmark): Add 'self' argument.
9892 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9893
9894 2014-02-19 Tom Tromey <tromey@redhat.com>
9895
9896 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9897 (target_get_bookmark): Add argument.
9898 * target.c (dummy_get_bookmark): Add 'self' argument.
9899 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9900
9901 2014-02-19 Tom Tromey <tromey@redhat.com>
9902
9903 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9904 argument.
9905 (target_make_corefile_notes): Add argument.
9906 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9907 * procfs.c (procfs_make_note_section): Add 'self' argument.
9908 (procfs_make_note_section): Add 'self' argument.
9909 (procfs_make_note_section): Add 'self' argument.
9910 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9911 argument.
9912 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9913 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9914 * exec.c (exec_make_note_section): Add 'self' argument.
9915 (exec_make_note_section): Add 'self' argument.
9916
9917 2014-02-19 Tom Tromey <tromey@redhat.com>
9918
9919 * target.h (struct target_ops) <to_find_memory_regions>: Add
9920 argument.
9921 (target_find_memory_regions): Add argument.
9922 * target.c (dummy_find_memory_regions): Add 'self' argument.
9923 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9924 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9925 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9926 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9927 * exec. (exec_do_find_memory_regions): New global.
9928 (exec_set_find_memory_regions): Rewrite.
9929 (exec_find_memory_regions): New function.
9930 (init_exec_ops): Use exec_find_memory_regions.
9931
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9933
9934 * target.h (struct target_ops) <to_supports_non_stop>: Add
9935 argument.
9936 * target.c (find_default_supports_non_stop): Add argument.
9937 (target_supports_non_stop): Add argument.
9938 (find_default_supports_non_stop): Add 'self' argument.
9939 * remote.c (remote_supports_non_stop): Add 'self' argument.
9940 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9941
9942 2014-02-19 Tom Tromey <tromey@redhat.com>
9943
9944 * target.h (struct target_ops) <to_log_command>: Add argument.
9945 (target_log_command): Add argument.
9946 * serial.h (serial_log_command): Add 'self' argument.
9947 * serial.c (serial_log_command): Add 'self' argument.
9948
9949 2014-02-19 Tom Tromey <tromey@redhat.com>
9950
9951 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9952 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9953 argument.
9954 (target_pid_to_exec_file): Add argument.
9955 * target.c (debug_to_pid_to_exec_file): Add argument.
9956 (update_current_target): Update.
9957 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9958 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9959 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9960 (linux_handle_extended_wait): Update.
9961 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9962 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9963 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9964 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9965
9966 2014-02-19 Tom Tromey <tromey@redhat.com>
9967
9968 * target.h (struct target_ops) <to_rcmd>: Add argument.
9969 (target_rcmd): Add argument.
9970 * target.c (debug_to_rcmd): Add argument.
9971 (update_current_target, do_monitor_command): Update.
9972 * remote.c (remote_rcmd): Add 'self' argument.
9973 * monitor.c (monitor_rcmd): Add 'self' argument.
9974
9975 2014-02-19 Tom Tromey <tromey@redhat.com>
9976
9977 * windows-nat.c (windows_stop): Add 'self' argument.
9978 * target.h (struct target_ops) <to_stop>: Add argument.
9979 * target.c (target_stop): Add argument.
9980 (debug_to_stop): Add argument.
9981 (update_current_target): Update.
9982 * remote.c (remote_stop): Add 'self' argument.
9983 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9984 (gdbsim_cntrl_c): Update.
9985 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9986 * procfs.c (procfs_stop): Add 'self' argument.
9987 * nto-procfs.c (procfs_stop): Add 'self' argument.
9988 * monitor.c (monitor_stop): Add 'self' argument.
9989 (monitor_open): Update.
9990 * linux-nat.c (linux_nat_stop): Add argument.
9991 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9992 * gnu-nat.c (gnu_stop): Add 'self' argument.
9993 * darwin-nat.c (darwin_stop): Add 'self' argument.
9994
9995 2014-02-19 Tom Tromey <tromey@redhat.com>
9996
9997 * target.h (struct target_ops) <to_thread_name>: Add argument.
9998 * target.c (target_thread_name): Add argument.
9999 (update_current_target): Update.
10000 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10001
10002 2014-02-19 Tom Tromey <tromey@redhat.com>
10003
10004 * target.h (struct target_ops) <to_extra_thread_info>: Add
10005 argument.
10006 (target_extra_thread_info): Add argument.
10007 * target.c (update_current_target): Update.
10008 * remote.c (remote_threads_extra_info): Add 'self' argument.
10009 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10010 argument.
10011 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10012 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10013 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10014 argument.
10015 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10016 argument.
10017 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10018 argument.
10019 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10020 argument.
10021
10022 2014-02-19 Tom Tromey <tromey@redhat.com>
10023
10024 * target.h (struct target_ops) <to_program_signals>: Add argument.
10025 * target.c (target_program_signals): Add argument.
10026 * remote.c (remote_program_signals): Add 'self' argument.
10027
10028 2014-02-19 Tom Tromey <tromey@redhat.com>
10029
10030 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10031 * target.c (target_pass_signals): Add argument.
10032 * remote.c (remote_pass_signals): Add 'self' argument.
10033 (remote_start_remote): Update.
10034 * procfs.c (procfs_pass_signals): Add 'self' argument.
10035 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10036 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10037 (linux_nat_create_inferior, linux_nat_attach): Update.
10038
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10040
10041 * windows-nat.c (windows_can_run): Add 'self' argument.
10042 * target.h (struct target_ops) <to_can_run>: Add argument.
10043 (target_can_run): Add argument.
10044 * target.c (debug_to_can_run): Add argument.
10045 (update_current_target): Update.
10046 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10047 * inf-child.c (inf_child_can_run): Add 'self' argument.
10048 * go32-nat.c (go32_can_run): Add 'self' argument.
10049
10050 2014-02-19 Tom Tromey <tromey@redhat.com>
10051
10052 * target.h (struct target_ops) <to_has_exited>: Add argument.
10053 (target_has_exited): Add argument.
10054 * target.c (debug_to_has_exited): Add argument.
10055 (update_current_target): Update.
10056
10057 2014-02-19 Tom Tromey <tromey@redhat.com>
10058
10059 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10060 argument.
10061 (target_set_syscall_catchpoint): Add argument.
10062 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10063 argument.
10064 * target.c (update_current_target): Update.
10065
10066 2014-02-19 Tom Tromey <tromey@redhat.com>
10067
10068 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10069 argument.
10070 (target_remove_exec_catchpoint): Add argument.
10071 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10072 (update_current_target): Update.
10073 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10074 argument.
10075
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10077
10078 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10079 argument.
10080 (target_insert_exec_catchpoint): Add argument.
10081 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10082 (update_current_target): Update.
10083 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10084 argument.
10085
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10087
10088 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10089 argument.
10090 (target_remove_vfork_catchpoint): Add argument.
10091 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10092 (update_current_target): Update.
10093 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10094 argument.
10095
10096 2014-02-19 Tom Tromey <tromey@redhat.com>
10097
10098 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10099 argument.
10100 (target_insert_vfork_catchpoint): Add argument.
10101 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10102 (update_current_target): Update.
10103 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10104 argument.
10105
10106 2014-02-19 Tom Tromey <tromey@redhat.com>
10107
10108 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10109 argument.
10110 (target_remove_fork_catchpoint): Add argument.
10111 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10112 (update_current_target): Update.
10113 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10114 argument.
10115
10116 2014-02-19 Tom Tromey <tromey@redhat.com>
10117
10118 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10119 argument.
10120 (target_insert_fork_catchpoint): Add argument.
10121 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10122 (update_current_target): Update.
10123 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10124 argument.
10125
10126 2014-02-19 Tom Tromey <tromey@redhat.com>
10127
10128 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10129 argument.
10130 (target_post_startup_inferior): Add argument.
10131 * target.c (debug_to_post_startup_inferior): Add argument.
10132 (update_current_target): Update.
10133 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10134 argument.
10135 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10136 argument.
10137 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10138 argument.
10139 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10140 argument.
10141 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10142 'self' argument.
10143 (super_post_startup_inferior): Likewise.
10144 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10145 'self' argument.
10146 (super_post_startup_inferior): Likewise.
10147 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10148 Add 'self' argument.
10149 (super_post_startup_inferior): Likewise.
10150
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10152
10153 * target.h (struct target_ops) <to_load>: Add argument.
10154 * target.c (target_load): Add argument.
10155 (debug_to_load): Add argument.
10156 (update_current_target): Update.
10157 * remote.c (remote_load): Add 'self' argument.
10158 * remote-sim.c (gdbsim_load): Add 'self' argument.
10159 * remote-mips.c (mips_load): Add 'self' argument.
10160 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10161 * monitor.c (monitor_load): Add 'self' argument.
10162 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10163
10164 2014-02-19 Tom Tromey <tromey@redhat.com>
10165
10166 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10167 (target_terminal_info): Add argument.
10168 * target.c (debug_to_terminal_info): Add argument.
10169 (default_terminal_info): Likewise.
10170 * inflow.c (child_terminal_info): Add 'self' argument.
10171 * inferior.h (child_terminal_info): Add 'self' argument.
10172 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10173
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10175
10176 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10177 argument.
10178 (target_terminal_save_ours): Add argument.
10179 * target.c (debug_to_terminal_save_ours): Add argument.
10180 (update_current_target): Update.
10181 * inflow.c (terminal_save_ours): Add 'self' argument.
10182 * inferior.h (terminal_save_ours): Add 'self' argument.
10183
10184 2014-02-19 Tom Tromey <tromey@redhat.com>
10185
10186 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10187 (target_terminal_ours): Add argument.
10188 * target.c (debug_to_terminal_ours): Add argument.
10189 (update_current_target): Update.
10190 * remote.c (remote_terminal_ours): Add 'self' argument.
10191 (remote_close): Update.
10192 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10193 * inflow.c (terminal_ours): Add 'self' argument.
10194 * inferior.h (terminal_ours): Add 'self' argument.
10195 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10196
10197 2014-02-19 Pedro Alves <palves@redhat.com>
10198 Tom Tromey <tromey@redhat.com>
10199
10200 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10201 argument.
10202 (target_terminal_ours_for_output): Add argument.
10203 * target.c (debug_to_terminal_ours_for_output): Add argument.
10204 (update_current_target): Update.
10205 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10206 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10207 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10208
10209 2014-02-19 Tom Tromey <tromey@redhat.com>
10210
10211 * target.h (struct target_ops) <to_terminal_inferior>: Add
10212 argument.
10213 * target.c (target_terminal_inferior): Add argument.
10214 (update_current_target): Update.
10215 * remote.c (remote_terminal_inferior): Add 'self' argument.
10216 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10217 * inflow.c (terminal_inferior): Add 'self' argument.
10218 * inferior.h (terminal_inferior): Add 'self' argument.
10219 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10220 (go32_terminal_inferior): Add 'self' argument.
10221
10222 2014-02-19 Tom Tromey <tromey@redhat.com>
10223
10224 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10225 (target_terminal_init): Add argument.
10226 * target.c (debug_to_terminal_init): Add argument.
10227 (update_current_target): Update.
10228 * inflow.c (terminal_init_inferior): Add 'self' argument.
10229 * inferior.h (terminal_init_inferior): Add 'self' argument.
10230 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10231 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10232
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10234
10235 * target.h (struct target_ops)
10236 <to_can_accel_watchpoint_condition>: Add argument.
10237 (target_can_accel_watchpoint_condition): Add argument.
10238 * target.c (debug_to_can_accel_watchpoint_condition): Add
10239 argument.
10240 (update_current_target): Update.
10241 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10242 'self' argument.
10243
10244 2014-02-19 Tom Tromey <tromey@redhat.com>
10245
10246 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10247 Add argument.
10248 (target_region_ok_for_hw_watchpoint): Add argument.
10249 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10250 (default_region_ok_for_hw_watchpoint): Add argument.
10251 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10252 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10253 argument.
10254 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10255 argument.
10256 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10257 argument.
10258 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10259 'self' argument.
10260 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10261 'self' argument.
10262 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10263 'self' argument.
10264 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10265 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10266 'self' argument.
10267 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10268 Add 'self' argument.
10269
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10271
10272 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10273 argument.
10274 (target_insert_watchpoint): Add argument.
10275 * target.c (debug_to_insert_watchpoint): Add argument.
10276 (update_current_target): Update.
10277 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10278 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10279 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10280 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10281 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10282 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10283 argument.
10284 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10285 (procfs_insert_hw_watchpoint): Add 'self' argument.
10286 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10287 argument.
10288 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10289 argument.
10290 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10291 argument.
10292 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10293 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10294 argument.
10295 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10296 'self' argument.
10297
10298 2014-02-19 Tom Tromey <tromey@redhat.com>
10299
10300 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10301 argument.
10302 (target_remove_watchpoint): Add argument.
10303 * target.c (debug_to_remove_watchpoint): Add argument.
10304 (update_current_target): Update.
10305 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10306 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10307 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10308 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10309 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10310 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10311 argument.
10312 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10313 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10314 argument.
10315 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10316 argument.
10317 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10318 argument.
10319 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10320 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10321 argument.
10322 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10323 'self' argument.
10324
10325 2014-02-19 Tom Tromey <tromey@redhat.com>
10326
10327 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10328 argument.
10329 (target_remove_hw_breakpoint): Add argument.
10330 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10331 (update_current_target): Update.
10332 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10333 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10334 argument.
10335 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10336 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10337 argument.
10338 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10339 'self' argument.
10340
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10342
10343 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10344 argument.
10345 (target_insert_hw_breakpoint): Add argument.
10346 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10347 (update_current_target): Update.
10348 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10349 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10350 argument.
10351 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10352 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10353 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10354 argument.
10355 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10356 'self' argument.
10357
10358 2014-02-19 Tom Tromey <tromey@redhat.com>
10359
10360 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10361 argument.
10362 (target_can_use_hardware_watchpoint): Add argument.
10363 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10364 (update_current_target): Update.
10365 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10366 argument.
10367 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10368 argument.
10369 * remote.c (remote_check_watch_resources): Add 'self' argument.
10370 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10371 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10372 argument.
10373 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10374 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10375 argument.
10376 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10377 argument.
10378 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10379 argument.
10380 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10381 argument.
10382 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10383 argument.
10384 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10385 argument.
10386 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10387 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10388 argument.
10389 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10390 'self' argument.
10391
10392 2014-02-19 Tom Tromey <tromey@redhat.com>
10393
10394 * target.h (struct target_ops) <to_post_attach>: Add argument.
10395 (target_post_attach): Add argument.
10396 * target.c (debug_to_post_attach): Add argument.
10397 (update_current_target): Update.
10398 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10399 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10400 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10401 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10402 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10403
10404 2014-02-19 Tom Tromey <tromey@redhat.com>
10405
10406 * windows-nat.c (windows_close): Add 'self' argument.
10407 * tracepoint.c (tfile_close): Add 'self' argument.
10408 * target.h (struct target_ops) <to_close>: Add argument.
10409 * target.c (target_close): Add argument.
10410 (update_current_target): Update.
10411 * remote.c (remote_close): Add 'self' argument.
10412 * remote-sim.c (gdbsim_close): Add 'self' argument.
10413 * remote-mips.c (mips_close): Add 'self' argument.
10414 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10415 * record-full.c (record_full_close): Add 'self' argument.
10416 * record-btrace.c (record_btrace_close): Add 'self' argument.
10417 * monitor.h (monitor_close): Add 'self' argument.
10418 * monitor.c (monitor_close): Add 'self' argument.
10419 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10420 * linux-nat.c (linux_nat_close): Add argument.
10421 * go32-nat.c (go32_close): Add 'self' argument.
10422 * exec.c (exec_close_1): Add 'self' argument.
10423 * ctf.c (ctf_close): Add 'self' argument.
10424 * corelow.c (core_close): Add 'self' argument.
10425 (core_close_cleanup): Update.
10426 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10427 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10428
10429 2014-02-19 Tom Tromey <tromey@redhat.com>
10430
10431 * remote.c (remote_load): New function.
10432 (init_remote_ops): Use it.
10433
10434 2014-02-19 Tom Tromey <tromey@redhat.com>
10435
10436 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10437 argument.
10438 * common/linux-btrace.h (linux_supports_btrace): Update.
10439 * remote.c (remote_supports_btrace): Add "self" argument.
10440 * target-delegates.c: Rebuild.
10441 * target.c (target_supports_btrace): Remove.
10442 * target.h (struct target_ops) <to_supports_btrace>: Add
10443 target_ops argument.
10444 (target_supports_btrace): New define.
10445
10446 2014-02-19 Tom Tromey <tromey@redhat.com>
10447
10448 * record-full.c (record_full_beneath_to_resume_ops)
10449 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10450 (record_full_beneath_to_wait)
10451 (record_full_beneath_to_store_registers_ops)
10452 (record_full_beneath_to_store_registers)
10453 (record_full_beneath_to_xfer_partial_ops)
10454 (record_full_beneath_to_xfer_partial)
10455 (record_full_beneath_to_insert_breakpoint_ops)
10456 (record_full_beneath_to_insert_breakpoint)
10457 (record_full_beneath_to_remove_breakpoint_ops)
10458 (record_full_beneath_to_remove_breakpoint)
10459 (record_full_beneath_to_stopped_by_watchpoint)
10460 (record_full_beneath_to_stopped_data_address)
10461 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10462 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10463 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10464 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10465 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10466 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10467 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10468 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10469 (record_full_resume, record_full_wait_1)
10470 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10471 (record_full_store_registers, record_full_xfer_partial)
10472 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10473 (record_full_async, record_full_core_xfer_partial): Use target
10474 delegation.
10475 * target-delegates.c: Rebuild.
10476 * target.c (current_xfer_partial): Remove.
10477 (update_current_target): Do not INHERIT or de_fault
10478 to_insert_breakpoint, to_remove_breakpoint,
10479 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10480 to_is_async_p, to_async. Do not set to_xfer_partial field.
10481 (default_xfer_partial): Simplify.
10482 (current_xfer_partial): Remove.
10483 (target_wait, target_resume): Simplify.
10484 (find_default_can_async_p, find_default_is_async_p): Update.
10485 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10486 to_xfer_partial, to_stopped_by_watchpoint,
10487 to_stopped_data_address.
10488 (target_store_registers): Simplify.
10489 (forward_target_remove_breakpoint)
10490 (forward_target_insert_breakpoint): Remove.
10491 (target_remove_breakpoint, target_insert_breakpoint)
10492 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10493 * target.h (struct target_ops) <to_resume, to_wait,
10494 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10495 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10496 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10497 markup.
10498 (forward_target_remove_breakpoint)
10499 (forward_target_insert_breakpoint): Remove.
10500 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10501 directly.
10502 (record_btrace_insert_breakpoint): Delegate directly.
10503
10504 2014-02-19 Tom Tromey <tromey@redhat.com>
10505
10506 PR build/7701:
10507 * target-delegates.c: New file.
10508 * target.c: Include target-delegates.c.
10509 (init_dummy_target): Call install_dummy_methods.
10510 (complete_target_initialization): Call install_delegators.
10511 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10512 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10513 * make-target-delegates: New file.
10514
10515 2014-02-19 Tom Tromey <tromey@redhat.com>
10516
10517 * record.c (find_record_target): Use find_target_at.
10518 * target.c (find_target_at): New function.
10519 * target.h (find_target_at): Declare.
10520
10521 2014-02-19 Tom Tromey <tromey@redhat.com>
10522
10523 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10524 Add 'ops' argument.
10525 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10526 'ops' argument.
10527 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10528 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10529 'ops' argument.
10530 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10531 argument.
10532 * linux-nat.c (save_sigtrap): Update.
10533 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10534 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10535 (linux_nat_close): Update.
10536 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10537 argument.
10538 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10539 argument.
10540 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10541 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10542 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10543 (tmp_to_async): Add 'ops' argument.
10544 (record_full_stopped_by_watchpoint, record_full_async)
10545 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10546 argument.
10547 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10548 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10549 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10550 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10551 (remote_is_async_p, remote_async): Add 'ops' argument.
10552 (remote_stopped_data_address): Update.
10553 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10554 * target.c (update_current_target)
10555 (find_default_can_async_p, find_default_is_async_p): Update.
10556 (init_dummy_target): Update.
10557 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10558 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10559 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10560 (target_can_async_p, target_is_async_p, target_async)
10561 (target_stopped_by_watchpoint): Update.
10562
10563 2014-02-19 Yao Qi <yao@codesourcery.com>
10564
10565 PR gdb/16220
10566 * gdbarch.sh: Remove startup_gdbarch.
10567 * gdbarch.c: Regenerated.
10568 * gdbarch.h: Likewise.
10569
10570 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10571
10572 * rl78-tdep.c (rl78_g10_register_name): New function.
10573 (rl78_return_value): Add g10 support.
10574 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10575 g10.
10576
10577 2014-02-17 Doug Evans <xdje42@gmail.com>
10578
10579 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10580 (SUBDIR_GUILE_SRCS): Ditto.
10581 (scm-gsmob.o): Ditto.
10582
10583 2014-02-17 Yao Qi <yao@codesourcery.com>
10584
10585 * gnu-nat.c (ILL_RPC): Declare defined function.
10586
10587 2014-02-17 Yao Qi <yao@codesourcery.com>
10588
10589 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10590 mach_msg_type_number_t.
10591 (gnu_write_inferior): Likewise.
10592
10593 2014-02-17 Yao Qi <yao@codesourcery.com>
10594
10595 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10596 in format string.
10597 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10598 (inf_validate_procs, inf_signal): Likewise.
10599 (S_exception_raise_request): Likewise.
10600 (do_mach_notify_dead_name): Likewise.
10601 (steal_exc_port): Likewise.
10602 (gnu_read_inferior): Change 'copy_count''s type to
10603 mach_msg_type_number_t.
10604 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10605 format string.
10606
10607 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10608
10609 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10610 flag. Adjust all users; in particular...
10611 (gnu_wait): ..., don't decrement its value in here...
10612 (gnu_create_inferior): ..., and instead set the flag in here,
10613 around the startup_inferior call, and call that one with
10614 START_INFERIOR_TRAPS_EXPECTED.
10615
10616 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10617 (ILL_RPC): ... new macro.
10618 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10619 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10620 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10621 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10622 functions with ILL_RPC macro.
10623 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10624 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10625 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10626 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10627 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10628 (S_proc_getlogin_reply, S_proc_getsid_reply)
10629 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10630 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10631 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10632 (S_proc_getnports_reply, S_proc_is_important_reply)
10633 (S_proc_get_code_reply): New stub functions, generated with
10634 ILL_RPC macro.
10635
10636 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10637 collected the type check structures.
10638
10639 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10640
10641 2014-02-14 Doug Evans <dje@google.com>
10642
10643 * target.c (target_write_partial): Fix result type.
10644
10645 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10646
10647 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10648 the proper offsets to access fpregset_t.
10649
10650 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10651
10652 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10653 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10654 * h8300-tdep.c (setmachinelist): Remove global.
10655 * hppa-tdep.c (hppa_sigtramp): Remove global.
10656 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10657 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10658 * ravenscar-thread.c (update_target_observer): Remove global.
10659 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10660
10661 2014-02-12 Tom Tromey <tromey@redhat.com>
10662
10663 * common/rsp-low.c: Update comments.
10664 * common/rsp-low.h: Update comments.
10665
10666 2014-02-12 Tom Tromey <tromey@redhat.com>
10667
10668 * common/rsp-low.c (convert_ascii_to_int): Remove.
10669 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10670
10671 2014-02-12 Tom Tromey <tromey@redhat.com>
10672
10673 * common/rsp-low.h (unhexify): Don't declare.
10674 * common/rsp-low.c (unhexify): Remove.
10675
10676 2014-02-12 Tom Tromey <tromey@redhat.com>
10677
10678 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10679 * common/rsp-low.c (convert_int_to_ascii): Remove.
10680
10681 2014-02-12 Tom Tromey <tromey@redhat.com>
10682
10683 * common/rsp-low.h (hexify): Don't declare.
10684 * common/rsp-low.c (hexify): Remove.
10685
10686 2014-02-12 Tom Tromey <tromey@redhat.com>
10687
10688 * common/rsp-low.c (hexify): Never take strlen of argument.
10689
10690 2014-02-12 Tom Tromey <tromey@redhat.com>
10691
10692 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10693 * remote.c (extended_remote_run, remote_rcmd)
10694 (remote_download_trace_state_variable, remote_save_trace_data)
10695 (remote_set_trace_notes): Update.
10696 * tracepoint.c (encode_source_string, tfile_write_status)
10697 (tfile_write_uploaded_tsv): Update.
10698
10699 2014-02-12 Tom Tromey <tromey@redhat.com>
10700
10701 * tracepoint.c: Include rsp-low.h.
10702 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10703 * remote.c: Include rsp-low.h.
10704 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10705 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10706 (remote_unescape_input): Move to common/rsp-low.c.
10707 * common/rsp-low.h: New file.
10708 * common/rsp-low.c: New file.
10709 * Makefile.in (SFILES): Add common/rsp-low.c.
10710 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10711 (COMMON_OBS): Add rsp-low.o.
10712 (rsp-low.o): New target.
10713
10714 2014-02-12 Tom Tromey <tromey@redhat.com>
10715
10716 * utils.h: Include print-utils.h.
10717 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10718 (int_string, core_addr_to_string, core_addr_to_string_nz)
10719 (hex_string, hex_string_custom): Don't declare.
10720 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10721 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10722 (hex_string_custom, int_string, core_addr_to_string)
10723 (core_addr_to_string_nz, host_address_to_string): Move to
10724 common/print-utils.c.
10725 * common/print-utils.h: New file.
10726 * common/print-utils.c: New file
10727 * Makefile.in (SFILES): Add common/print-utils.c.
10728 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10729 (COMMON_OBS): Add print-utils.o.
10730 (print-utils.o): New target.
10731
10732 2014-02-12 Tom Tromey <tromey@redhat.com>
10733
10734 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10735
10736 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10737
10738 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10739
10740 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10741
10742 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10743 if a PT_IO ptrace request returns sucessfully but indicates that 0
10744 bytes were transferred.
10745
10746 2014-02-12 Pedro Alves <palves@redhat.com>
10747 Kevin Buettner <kevinb@redhat.com>
10748
10749 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10750 TYPE_INSTANCE_FLAG_CODE_SPACE.
10751
10752 2014-02-12 Pedro Alves <palves@redhat.com>
10753
10754 * h8300-tdep.c (pseudo_from_raw_register)
10755 (raw_from_pseudo_register): New functions.
10756 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10757 them.
10758
10759 2014-02-12 Pedro Alves <palves@redhat.com>
10760
10761 * h8300-tdep.c (h8300_register_sim_regno): New function.
10762 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10763 gdbarch_register_sim_regno hook.
10764
10765 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10766
10767 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10768
10769 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10770
10771 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10772
10773 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10774
10775 * obsd-tdep.h (obsd_init_abi): New prototype.
10776 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10777 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10778 (obsd_init_abi): New functions.
10779 * i386obsd-tdep.c: Include "obsd-tdep.h".
10780 (i386obsd_init_abi): Call obsd_init_abi.
10781 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10782 (amd64obsd_init_abi): Call obsd_init_abi.
10783 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10784 obsd-tdep.c to gdb_target_obs.
10785
10786 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10787
10788 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10789 double float arguments to 16-byte in the argument slots.
10790
10791 2014-02-11 Doug Evans <xdje42@gmail.com>
10792
10793 * configure.ac: Don't crash if pkg-config is not found and guile
10794 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10795 in guile checks.
10796 * configure: Regenerate.
10797
10798 2014-02-11 Yao Qi <yao@codesourcery.com>
10799
10800 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10801 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10802 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10803 * gnu-nat.c (gnu_xfer_memory): Likewise.
10804 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10805 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10806 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10807 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10808
10809 2014-02-11 Yao Qi <yao@codesourcery.com>
10810
10811 * target.h (enum target_xfer_error): Rename to ...
10812 (enum target_xfer_status): ... it. New. All users updated.
10813 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10814 New.
10815 (TARGET_XFER_STATUS_ERROR_P): New macro.
10816 (target_xfer_error_to_string): Remove declaration.
10817 (target_xfer_status_to_string): Declare.
10818 (target_xfer_partial_ftype): Adjust it.
10819 (struct target_ops) <to_xfer_partial>: Return
10820 target_xfer_status. Add argument xfered_len. Update
10821 comments.
10822 * target.c (target_xfer_error_to_string): Rename to ...
10823 (target_xfer_status_to_string): ... it. New. All callers
10824 updated.
10825 (target_read_live_memory): Likewise. Call target_xfer_partial
10826 instead of target_read.
10827 (memory_xfer_live_readonly_partial): Return
10828 target_xfer_status. Add argument xfered_len.
10829 (raw_memory_xfer_partial): Likewise.
10830 (memory_xfer_partial_1): Likewise.
10831 (memory_xfer_partial): Likewise.
10832 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10833 properly. Update debug message.
10834 (default_xfer_partial, current_xfer_partial): Likewise.
10835 (target_write_partial): Likewise.
10836 (target_read_partial): Likewise. All callers updated.
10837 (read_whatever_is_readable): Likewise.
10838 (target_write_with_progress): Likewise.
10839 (target_read_alloc_1): Likewise.
10840
10841 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10842 * auxv.c (procfs_xfer_auxv): Likewise.
10843 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10844 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10845 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10846 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10847 * corefile.c (read_memory): Adjust.
10848 * corelow.c (core_xfer_partial): Likewise.
10849 * ctf.c (ctf_xfer_partial): Likewise.
10850 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10851 updated.
10852 (darwin_xfer_partial): Likewise.
10853 * exec.c (section_table_xfer_memory_partial): Likewise. All
10854 callers updated.
10855 (exec_xfer_partial): Likewise.
10856 * exec.h (section_table_xfer_memory_partial): Update
10857 declaration.
10858 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10859 negative.
10860 (gnu_xfer_partial): Likewise.
10861 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10862 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10863 (ia64_hpux_xfer_solib_got): Likewise.
10864 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10865 type of 'partial_len' to ULONGEST.
10866 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10867 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10868 (linux_nat_xfer_partial): Likewise.
10869 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10870 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10871 * monitor.c (monitor_xfer_memory): Likewise.
10872 (monitor_xfer_partial): Likewise.
10873 * procfs.c (procfs_xfer_partial): Likewise.
10874 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10875 * record-full.c (record_full_xfer_partial): Likewise.
10876 (record_full_core_xfer_partial): Likewise.
10877 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10878 (gdbsim_xfer_partial): Likewise.
10879 * remote.c (remote_write_bytes_aux): Likewise. All callers
10880 updated.
10881 (remote_write_bytes, remote_read_bytes): Likewise. All
10882 callers updated.
10883 (remote_flash_erase): Likewise. All callers updated.
10884 (remote_write_qxfer): Likewise. All callers updated.
10885 (remote_read_qxfer): Likewise. All callers updated.
10886 (remote_xfer_partial): Likewise.
10887 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10888 (rs6000_xfer_shared_libraries): Likewise.
10889 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10890 (sol_thread_xfer_partial): Likewise.
10891 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10892 (sparc_xfer_partial): Likewise.
10893 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10894 updated.
10895 (spu_xfer_partial): Likewise.
10896 * spu-multiarch.c (spu_xfer_partial): Likewise.
10897 * tracepoint.c (tfile_xfer_partial): Likewise.
10898 * windows-nat.c (windows_xfer_memory): Likewise.
10899 (windows_xfer_shared_libraries): Likewise.
10900 (windows_xfer_partial): Likewise.
10901 * valprint.c: Replace 'target_xfer_error' with
10902 'target_xfer_status' in comments.
10903
10904 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10905
10906 Checked in by Joel Brobecker <brobecker@adacore.com>.
10907 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10908
10909 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10910
10911 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10912 function parameters.
10913
10914 2014-02-10 Will Newton <will.newton@linaro.org>
10915
10916 * elfread.c (elf_rel_plt_read): Look for a .got section if
10917 looking up .got.plt fails.
10918 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10919 on address passed to elf_gnu_ifunc_record_cache.
10920 (elf_gnu_ifunc_resolve_addr): Likewise.
10921 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10922
10923 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10924
10925 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10926 (X_RETTURN): New macro.
10927 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10928
10929 * sparc64-tdep.c (sparc64_init_abi): Hook
10930 sparc_in_function_epilogue_p.
10931
10932 2014-02-10 Gary Benson <gbenson@redhat.com>
10933
10934 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10935 Rename name_matcher to symbol_matcher.
10936
10937 2014-02-10 Gary Benson <gbenson@redhat.com>
10938
10939 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10940 Use expand_symtabs_file_matcher_ftype and
10941 expand_symtabs_symbol_matcher_ftype.
10942
10943 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10944
10945 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10946 (struct ada_symbol_cache): New.
10947 (ada_free_symbol_cache): Forward declare.
10948 (struct ada_pspace_data): New.
10949 (ada_pspace_data_handle): New static global.
10950 (get_ada_pspace_data, ada_pspace_data_cleanup)
10951 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10952 (cache_space, cache): Delete, now folded inside struct
10953 ada_pspace_data.
10954 (ada_get_symbol_cache): New function.
10955 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10956 implementation.
10957 (_initialize_ada_language): Remove initialization of cache_space.
10958 Move call to observer_attach_inferior_exit up, grouping it
10959 with the other observer registrations inside this function.
10960 Rename command to be more general. Add call to
10961 register_program_space_data_with_cleanup.
10962
10963 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10964
10965 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10966 ada_new_objfile_observer.
10967 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10968 (_initialize_tasks): Update uses of ada_new_objfile_observer
10969 and ada_tasks_normal_stop_observer.
10970
10971 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10972
10973 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10974 returned by the 'Length attribute to integer.
10975
10976 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10977
10978 * ada-lang.c (_initialize_ada_language): Initialize
10979 cache_space obstack.
10980
10981 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10982
10983 * ada-lang.c (HASH_SIZE): New macro.
10984 (struct cache_entry): New type.
10985 (cache_space, cache): New static globals.
10986 (ada_clear_symbol_cache, find_entry): New functions.
10987 (lookup_cached_symbol, cache_symbol): Implement.
10988 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10989 (_initialize_ada_language): Attach ada_new_objfile_observer
10990 and ada_free_objfile_observer.
10991
10992 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10993
10994 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10995 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10996 struct block * parameter.
10997 (ada_lookup_symbol_list_worker): Constify local variable "block".
10998 Remove cast which is no longer necessary.
10999
11000 2014-02-10 Doug Evans <xdje42@gmail.com>
11001
11002 Add Guile as an extension language.
11003 * NEWS: Mention Guile scripting.
11004 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11005 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11006 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11007 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11008 (CLIBS): Add GUILE_LIBS.
11009 (install-guile): New rule.
11010 (guile.o): New rule.
11011 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11012 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11013 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11014 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11015 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11016 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11017 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11018 * configure.ac: New option --with-guile.
11019 * configure: Regenerate.
11020 * config.in: Regenerate.
11021 * auto-load.c: Remove #include "python/python.h". Add #include
11022 "gdb/section-scripts.h".
11023 (source_section_scripts): Handle Guile scripts.
11024 (_initialize_auto_load): Add name of Guile objfile script to
11025 scripts-directory help text.
11026 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11027 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11028 (struct breakpoint): New member scm_bp_object.
11029 * defs.h (enum command_control_type): New value guile_control.
11030 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11031 "extension.h".
11032 (show_user): Update comment.
11033 (_initialize_cli_cmds): Update help text for "show user". Update help
11034 text for max-user-call-depth.
11035 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11036 "extension.h".
11037 (multi_line_command_p): Add guile_control.
11038 (print_command_lines): Handle guile_control.
11039 (execute_control_command, recurse_read_control_structure): Ditto.
11040 (process_next_line): Recognize "guile" commands.
11041 * disasm.c (gdb_disassemble_info): Make non-static.
11042 * disasm.h: #include "dis-asm.h".
11043 (struct gdbarch): Add forward decl.
11044 (gdb_disassemble_info): Declare.
11045 * extension.c: #include "guile/guile.h".
11046 (extension_languages): Add guile.
11047 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11048 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11049 * gdbtypes.c (get_unsigned_type_max): New function.
11050 (get_signed_type_minmax): New function.
11051 * gdbtypes.h (get_unsigned_type_max): Declare.
11052 (get_signed_type_minmax): Declare.
11053 * guile/README: New file.
11054 * guile/guile-internal.h: New file.
11055 * guile/guile.c: New file.
11056 * guile/guile.h: New file.
11057 * guile/scm-arch.c: New file.
11058 * guile/scm-auto-load.c: New file.
11059 * guile/scm-block.c: New file.
11060 * guile/scm-breakpoint.c: New file.
11061 * guile/scm-disasm.c: New file.
11062 * guile/scm-exception.c: New file.
11063 * guile/scm-frame.c: New file.
11064 * guile/scm-gsmob.c: New file.
11065 * guile/scm-iterator.c: New file.
11066 * guile/scm-lazy-string.c: New file.
11067 * guile/scm-math.c: New file.
11068 * guile/scm-objfile.c: New file.
11069 * guile/scm-ports.c: New file.
11070 * guile/scm-pretty-print.c: New file.
11071 * guile/scm-safe-call.c: New file.
11072 * guile/scm-string.c: New file.
11073 * guile/scm-symbol.c: New file.
11074 * guile/scm-symtab.c: New file.
11075 * guile/scm-type.c: New file.
11076 * guile/scm-utils.c: New file.
11077 * guile/scm-value.c: New file.
11078 * guile/lib/gdb.scm: New file.
11079 * guile/lib/gdb/boot.scm: New file.
11080 * guile/lib/gdb/experimental.scm: New file.
11081 * guile/lib/gdb/init.scm: New file.
11082 * guile/lib/gdb/iterator.scm: New file.
11083 * guile/lib/gdb/printing.scm: New file.
11084 * guile/lib/gdb/types.scm: New file.
11085 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11086 (VPATH): Add $(GUILE_SRCDIR).
11087 (GUILE_DIR): New variable.
11088 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11089 (all): Add stamp-guile dependency.
11090 (stamp-guile): New rule.
11091 (clean-guile, install-guile, uninstall-guile): New rules.
11092 (install-only): Add install-guile dependency.
11093 (uninstall): Add uninstall-guile dependency.
11094 (clean): Add clean-guile dependency.
11095
11096 2014-02-09 Doug Evans <xdje42@gmail.com>
11097
11098 Revert this patch (which I approved, mea culpa).
11099
11100 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11101
11102 * Makefile.in (all-lib): Remove.
11103 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11104
11105 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11106
11107 Fix Python stack corruption.
11108 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11109 gdb_py_longest.
11110
11111 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11112
11113 * Makefile.in (all-lib): Remove.
11114 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11115
11116 2014-02-07 Doug Evans <dje@google.com>
11117
11118 * extension-priv.h (extension_language_script_ops): Add comment.
11119 (extension_language_ops): Add comment.
11120 (active_ext_lang_state): Fix typo in comment.
11121
11122 2014-02-07 Pedro Alves <palves@redhat.com>
11123
11124 PR breakpoints/16292
11125 * infrun.c (handle_signal_stop) <signal arrives while stepping
11126 over a breakpoint>: Switch back to the stepping thread.
11127
11128 2014-02-07 Yao Qi <yao@codesourcery.com>
11129
11130 * target.c (target_xfer_partial): Return zero if LEN is zero.
11131
11132 2014-02-07 Yao Qi <yao@codesourcery.com>
11133
11134 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11135 (ld_so_xfer_auxv): Likewise.
11136 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11137 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11138 * corelow.c (core_xfer_partial): Likewise.
11139 * ctf.c (ctf_xfer_partial): Likewise.
11140 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11141 (darwin_xfer_partial): Likewise.
11142 * exec.c (exec_xfer_partial): Likewise.
11143 * gnu-nat.c (gnu_xfer_partial): Likewise.
11144 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11145 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11146 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11147 * linux-nat.c (linux_xfer_siginfo): Likewise.
11148 (linux_proc_xfer_spu): Likewise.
11149 * procfs.c (procfs_xfer_partial): Likewise.
11150 * record-full.c (record_full_xfer_partial): Likewise.
11151 (record_full_core_xfer_partial): Likewise.
11152 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11153 * remote.c (remote_write_qxfer): Likewise.
11154 (remote_write_qxfer, remote_read_qxfer): Likewise.
11155 (remote_xfer_partial): Likewise.
11156 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11157 (rs6000_xfer_shared_libraries): Likewise.
11158 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11159 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11160 (spu_xfer_partial): Likewise.
11161 * target.c (memory_xfer_partial_1): Likewise.
11162 * tracepoint.c (tfile_xfer_partial): Likewise.
11163 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11164 (windows_xfer_partial): Likewise.
11165
11166 2014-02-07 Yao Qi <yao@codesourcery.com>
11167
11168 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11169 comments.
11170 (core_xfer_shared_libraries_aix): Likewise.
11171 * gdbarch.c, gdbarch.h: Regenerated.
11172 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11173 ULONGEST. Change 'len_avail' type to ULONGEST.
11174 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11175 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11176 declaration.
11177 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11178
11179 2014-02-07 Yao Qi <yao@codesourcery.com>
11180
11181 * corefile.c (memory_error): Get 'exception' from ERR and pass
11182 'exception' to throw_error.
11183
11184 2014-02-06 Doug Evans <xdje42@gmail.com>
11185
11186 * configure.ac (libpython checking): Remove all but python.o from
11187 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11188 * configure: Regenerate.
11189
11190 * Makefile.in (SFILES): Add extension.c.
11191 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11192 (COMMON_OBS): Add extension.o.
11193 * extension.h: New file.
11194 * extension-priv.h: New file.
11195 * extension.c: New file.
11196
11197 * python/python-internal.h: #include "extension.h".
11198 (gdbpy_auto_load_enabled): Declare.
11199 (gdbpy_apply_val_pretty_printer): Declare.
11200 (gdbpy_apply_frame_filter): Declare.
11201 (gdbpy_preserve_values): Declare.
11202 (gdbpy_breakpoint_cond_says_stop): Declare.
11203 (gdbpy_breakpoint_has_cond): Declare.
11204 (void source_python_script_for_objfile): Delete.
11205 * python/python.c: #include "extension-priv.h".
11206 Delete inclusion of "observer.h".
11207 (extension_language_python): Moved here and renamed from
11208 script_language_python in py-auto-load.c.
11209 Redefined to be of type extension_language_defn.
11210 (python_extension_script_ops): New global.
11211 (python_extension_ops): New global.
11212 (struct python_env): New member previous_active.
11213 (restore_python_env): Call restore_active_ext_lang.
11214 (ensure_python_env): Call set_active_ext_lang.
11215 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11216 New arg extlang.
11217 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11218 New arg extlang.
11219 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11220 New arg extlang.
11221 (gdbpy_eval_from_control_command): Renamed from
11222 eval_python_from_control_command, made static. New arg extlang.
11223 (gdbpy_source_script) Renamed from source_python_script, made static.
11224 New arg extlang.
11225 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11226 result to int. New arg extlang.
11227 (gdbpy_source_objfile_script): Renamed from
11228 source_python_script_for_objfile, made static. New arg extlang.
11229 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11230 static. New args extlang, extlang_printers. Change result type to
11231 "void".
11232 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11233 static. New arg extlang. Rename arg printers to extlang_printers
11234 and change type to ext_lang_type_printers *.
11235 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11236 static. Replace argument arg with extlang, extlang_printers.
11237 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11238 (!HAVE_PYTHON, source_python_script): Delete.
11239 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11240 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11241 (!HAVE_PYTHON, start_type_printers): Delete.
11242 (!HAVE_PYTHON, apply_type_printers): Delete.
11243 (!HAVE_PYTHON, free_type_printers): Delete.
11244 (_initialize_python): Delete call to observer_attach_before_prompt.
11245 (finalize_python): Set/restore active extension language.
11246 (gdbpy_finish_initialization) Renamed from
11247 finish_python_initialization, made static. New arg extlang.
11248 (gdbpy_initialized): New function.
11249 * python/python.h: #include "extension.h". Delete #include
11250 "value.h", "mi/mi-cmds.h".
11251 (extension_language_python): Declare.
11252 (GDBPY_AUTO_FILE_NAME): Delete.
11253 (enum py_bt_status): Moved to extension.h and renamed to
11254 ext_lang_bt_status.
11255 (enum frame_filter_flags): Moved to extension.h.
11256 (enum py_frame_args): Moved to extension.h and renamed to
11257 ext_lang_frame_args.
11258 (finish_python_initialization): Delete.
11259 (eval_python_from_control_command): Delete.
11260 (source_python_script): Delete.
11261 (apply_val_pretty_printer): Delete.
11262 (apply_frame_filter): Delete.
11263 (preserve_python_values): Delete.
11264 (gdbpy_script_language_defn): Delete.
11265 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11266 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11267
11268 * auto-load.c: #include "extension.h".
11269 (GDB_AUTO_FILE_NAME): Delete.
11270 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11271 (script_language_gdb): Delete, moved to extension.c and renamed to
11272 extension_language_gdb.
11273 (source_gdb_script_for_objfile): Delete.
11274 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11275 (loaded_script): Change type of language member to
11276 struct extension_language_defn *.
11277 (init_loaded_scripts_info): Initialize
11278 unsupported_script_warning_printed.
11279 (maybe_add_script): Make static. Change type of language arg to
11280 struct extension_language_defn *.
11281 (clear_section_scripts): Reset unsupported_script_warning_printed.
11282 (auto_load_objfile_script_1): Rewrite to use extension language API.
11283 (auto_load_objfile_script): Make public. Remove support-compiled-in
11284 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11285 (source_section_scripts): Rewrite to use extension language API.
11286 (load_auto_scripts_for_objfile): Rewrite to use
11287 auto_load_scripts_for_objfile.
11288 (collect_matching_scripts_data): Change type of language member to
11289 struct extension_language_defn *.
11290 (auto_load_info_scripts): Change type of language arg to
11291 struct extension_language_defn *.
11292 (unsupported_script_warning_print): New function.
11293 (script_not_found_warning_print): Make static.
11294 (_initialize_auto_load): Rewrite construction of scripts-directory
11295 help.
11296 * auto-load.h (struct objfile): Add forward decl.
11297 (struct script_language): Delete.
11298 (struct auto_load_pspace_info): Add forward decl.
11299 (struct extension_language_defn): Add forward decl.
11300 (maybe_add_script): Delete.
11301 (auto_load_objfile_script): Declare.
11302 (script_not_found_warning_print): Delete.
11303 (auto_load_info_scripts): Update prototype.
11304 (auto_load_gdb_scripts_enabled): Declare.
11305 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11306 auto_load_python_scripts_enabled and made public.
11307 (script_language_python): Delete, moved to python.c.
11308 (gdbpy_script_language_defn): Delete.
11309 (info_auto_load_python_scripts): Update to use
11310 extension_language_python.
11311
11312 * breakpoint.c (condition_command): Replace call to
11313 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11314 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11315 with call to breakpoint_ext_lang_cond_says_stop.
11316 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11317 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11318 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11319 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11320 New arg slang.
11321 (local_setattro): Print name of extension language with existing
11322 stop condition.
11323
11324 * valprint.c (val_print, value_print): Update to call
11325 apply_ext_lang_val_pretty_printer.
11326 * cp-valprint.c (cp_print_value): Update call to
11327 apply_ext_lang_val_pretty_printer.
11328 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11329 (gdbpy_apply_val_pretty_printer): Renamed from
11330 apply_val_pretty_printer. New arg extlang.
11331 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11332
11333 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11334 extension language API.
11335 * cli/cli-script.c (execute_control_command): Update to call
11336 eval_ext_lang_from_control_command.
11337
11338 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11339 enum ext_lang_bt_status values. Update call to
11340 apply_ext_lang_frame_filter.
11341 (mi_cmd_stack_list_locals): Ditto.
11342 (mi_cmd_stack_list_args): Ditto.
11343 (mi_cmd_stack_list_variables): Ditto.
11344 * mi/mi-main.c: Delete #include "python/python-internal.h".
11345 Add #include "extension.h".
11346 (mi_cmd_list_features): Replace reference to python internal variable
11347 gdb_python_initialized with call to ext_lang_initialized_p.
11348
11349 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11350 Update to use enum ext_lang_frame_args. Update to call
11351 apply_ext_lang_frame_filter.
11352 * python/py-framefilter.c (extract_sym): Update to use enum
11353 ext_lang_bt_status.
11354 (extract_value, py_print_type, py_print_value): Ditto.
11355 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11356 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11357 (py_print_frame): Ditto.
11358 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11359 New arg extlang. Update to use enum ext_lang_bt_status.
11360
11361 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11362 finish_python_initialization. Replace with call to
11363 finish_ext_lang_initialization.
11364
11365 * typeprint.c (do_free_global_table): Update to call
11366 free_ext_lang_type_printers.
11367 (create_global_typedef_table): Update to call
11368 start_ext_lang_type_printers.
11369 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11370 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11371 (type_print_options): Change type of global_printers from "void *"
11372 to "struct ext_lang_type_printers *".
11373
11374 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11375 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11376 (gdbpy_preserve_values): Renamed from preserve_python_values.
11377 New arg extlang.
11378 (!HAVE_PYTHON, preserve_python_values): Delete.
11379
11380 * utils.c (quit_flag): Delete, moved to extension.c.
11381 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11382 extension.c.
11383
11384 * eval.c: Delete #include "python/python.h".
11385 * main.c: Delete #include "python/python.h".
11386
11387 * defs.h: Update comment.
11388
11389 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11390
11391 GDB 7.7 released.
11392
11393 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11394
11395 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11396 defined.
11397
11398 2014-02-05 Yao Qi <yao@codesourcery.com>
11399
11400 * remote.c (remote_pass_signals): Remove local 'buf' and use
11401 rs->buf.
11402 (remote_program_signals): Likewise.
11403
11404 2014-02-05 Yao Qi <yao@codesourcery.com>
11405
11406 * ctf.c: Include "inferior.h" and "gdbthread.h".
11407 (CTF_PID): A new macro.
11408 (ctf_open): Call inferior_appeared and add_thread_silent.
11409 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11410 (ctf_thread_alive): New function.
11411 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11412
11413 2014-02-05 Yao Qi <yao@codesourcery.com>
11414
11415 Revert this patch:
11416
11417 2013-05-24 Yao Qi <yao@codesourcery.com>
11418
11419 * tracepoint.c (TFILE_PID): Remove.
11420 (tfile_open): Don't add thread and inferior.
11421 (tfile_close): Don't set 'inferior_ptid'. Don't call
11422 exit_inferior_silent.
11423 (tfile_thread_alive): Remove.
11424 (init_tfile_ops): Don't set field 'to_thread_alive' of
11425 tfile_ops.
11426
11427 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11428
11429 * remote.c (remote_start_remote): Call remote_check_symbols even
11430 if only symbol-file (not file) has been given.
11431
11432 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11433
11434 * gdbarch.sh (skip_entrypoint): New callback.
11435 * gdbarch.c, gdbarch.h: Regenerate.
11436 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11437 * infrun.c (fill_in_stop_func): Likewise.
11438 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11439 (ppc_elfv2_elf_make_msymbol_special): New function.
11440 (ppc_elfv2_skip_entrypoint): Likewise.
11441 (ppc_linux_init_abi): Install them for ELFv2.
11442
11443 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11444
11445 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11446 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11447 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11448 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11449 structures returned in GPRs.
11450
11451 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11452
11453 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11454 offset to the stack parameter list for the ELFv2 ABI.
11455
11456 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11457
11458 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11459 set_gdbarch_convert_from_func_ptr_addr and
11460 set_gdbarch_elf_make_msymbol_special for ELFv1.
11461 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11462 function descriptors on ELFv1.
11463 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11464 set up r12 at function entry.
11465
11466 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11467
11468 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11469 (struct gdbarch_tdep): New member elf_abi.
11470
11471 * rs6000-tdep.c: Include "elf/ppc64.h".
11472 (rs6000_gdbarch_init): Detect ELF ABI version.
11473
11474 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11475
11476 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11477 within a register pair holding a DFP 128-bit value on little-endian.
11478 (ppc64_sysv_abi_return_value_base): Likewise.
11479 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11480 (dfp_pseudo_register_write): Likewise.
11481
11482 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11483
11484 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11485 offset on little-endian when passing _Decimal32.
11486 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11487
11488 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11489
11490 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11491 of the overlapped FP register within the VSX register on little-
11492 endian platforms.
11493 (efpr_pseudo_register_write): Likewise.
11494
11495 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11496
11497 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11498 offset on little-endian when passing small structures.
11499
11500 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11501
11502 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11503 (struct ppc64_sysv_argpos): New data structure.
11504 (ppc64_sysv_abi_push_float): Remove.
11505 (ppc64_sysv_abi_push_val): New function.
11506 (ppc64_sysv_abi_push_integer): Likewise.
11507 (ppc64_sysv_abi_push_freg): Likewise.
11508 (ppc64_sysv_abi_push_vreg): Likewise.
11509 (ppc64_sysv_abi_push_param): Likewise.
11510 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11511 (ppc64_sysv_abi_return_value_base): New function.
11512 (ppc64_sysv_abi_return_value): Refactor to use it.
11513
11514 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11515
11516 * NEWS: Document new target powerpc64le-*-linux*.
11517
11518 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11519
11520 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11521 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11522 core dumps.
11523 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11524 register set used in ELF core dumps. Add floating-point register set.
11525
11526 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11527
11528 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11529 dwarf2_to_gdb[] table using symbolic constants. Adjust
11530 penultimate entry from number representing the PC register
11531 to symbolic constant representing the MDR register. Add
11532 constant for the PC register to the end of the table.
11533
11534 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11535
11536 * bsd-kvm.c: Include <sys/param.h>
11537
11538 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11539
11540 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11541
11542 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11543
11544 * ada-lang.h (clear_ada_sym_cache): Delete.
11545
11546 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11547
11548 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11549
11550 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11551
11552 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11553 the sigreturn register save area only if the syscall is
11554 sigreturn.
11555
11556 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11557
11558 * valops.c (value_slice): Minor reformatting.
11559
11560 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11561
11562 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11563
11564 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11565
11566 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11567 New static globals.
11568 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11569 (ada_ignore_descriptive_types_p): New static global.
11570 (find_parallel_type_by_descriptive_type): Return immediately
11571 if ada_ignore_descriptive_types_p is set.
11572 (_initialize_ada_language): Register new commands "maintenance
11573 set ada", "maintenance show ada", "maintenance set ada
11574 ignore-descriptive-types" and "maintenance show ada
11575 ignore-descriptive-types".
11576 * NEWS: Add entry for new "maint ada set/show
11577 ignore-descriptive-types" commands.
11578
11579 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11580
11581 * record-btrace.c (record_btrace_close): Call btrace_teardown
11582 for all threads.
11583
11584 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11585
11586 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11587 "ui-out.h".
11588
11589 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11590
11591 * ada-typeprint (type_is_full_subrange_of_target_type):
11592 New function.
11593 (print_range): Add parameter bounds_prefered_p. If not set,
11594 try printing range types using the name of their base type.
11595 (print_range_type): Add parameter bounds_prefered_p.
11596 Use it in call to print_range.
11597 (print_array_type, ada_print_type): Update calls to print_range
11598 and print_range_type.
11599
11600 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11601
11602 * ada-typeprint.c (print_array_type, print_choices, print_range)
11603 (print_range_bound, print_dynamic_range_bound, print_range_type):
11604 Remove declaration.
11605
11606 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11607
11608 * ada-typeprint.c (print_range): Add missing empty line
11609 after local declaration.
11610
11611 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11612
11613 * ada-valprint.c (print_optional_low_bound): Get index_type's
11614 target type for as long as it is a TYPE_CODE_RANGE.
11615
11616 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11617
11618 * procfs.c (procfs_make_note_section): Remove assertion and
11619 associated comment.
11620
11621 2014-01-24 Yao Qi <yao@codesourcery.com>
11622
11623 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11624 * corelow.c (get_core_siginfo): Likewise.
11625
11626 2014-01-24 Yao Qi <yao@codesourcery.com>
11627
11628 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11629 ULONGEST. Don't check 'len' is negative.
11630 (remote_write_bytes): Change type of 'len' to ULONGEST.
11631
11632 2014-01-23 Tom Tromey <tromey@redhat.com>
11633
11634 PR python/16485:
11635 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11636 Handle exception from frame.block.
11637 (FrameVars.fetch_frame_locals): Likewise.
11638
11639 2014-01-23 Tom Tromey <tromey@redhat.com>
11640
11641 PR python/16487:
11642 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11643 on a NULL pointer. Move "goto error" to correct place.
11644
11645 2014-01-23 Tom Tromey <tromey@redhat.com>
11646
11647 PR python/16491:
11648 * python/py-framefilter.c (apply_frame_filter): Call
11649 ensure_python_env after computing gdbarch.
11650
11651 2014-01-23 Yao Qi <yao@codesourcery.com>
11652
11653 * target.c (raw_memory_xfer_partial): Change argument type
11654 from void * to gdb_byte *.
11655 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11656
11657 2014-01-22 Doug Evans <dje@google.com>
11658
11659 New gdbserver option --debug-format=timestamp.
11660 * NEWS: Mention it.
11661
11662 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11663
11664 * syscalls/s390x-linux.xml: New file.
11665 * syscalls/s390-linux.xml: New file.
11666 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11667 (XML_SYSCALL_FILENAME_S390X): Likewise.
11668 (op_svc): New enum value for SVC opcode.
11669 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11670 (s390_linux_get_syscall_number): New function.
11671 (s390_gdbarch_init): Register '*get_syscall_number' and the
11672 syscall xml file name.
11673 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11674 "s390-linux.xml" and "s390x-linux.xml".
11675 * NEWS: Announce new feature.
11676
11677 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11678
11679 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11680
11681 2014-01-22 Pedro Alves <palves@redhat.com>
11682
11683 * xtensa-config.c: Include defs.h.
11684
11685 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11686
11687 * common/common-utils.h: Add "ARI:" comment beside __func__
11688 reference.
11689
11690 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11691
11692 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11693 documentation a bit.
11694
11695 2014-01-21 Roland McGrath <mcgrathr@google.com>
11696
11697 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11698 * configure: Regenerate.
11699 * aclocal.m4: Regenerate.
11700 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11701 New substituted variables.
11702 (install-strip): New target.
11703 (INSTALL_SCRIPT): New substituted variable.
11704 (FLAGS_TO_PASS): Add it.
11705 (install-only): Use $(INSTALL_SCRIPT) rather than
11706 $(INSTALL_PROGRAM) for gcore.
11707
11708 2014-01-20 Tom Tromey <tromey@redhat.com>
11709
11710 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11711 together.
11712
11713 2014-01-20 Tom Tromey <tromey@redhat.com>
11714
11715 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11716 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11717 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11718 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11719 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11720 (struct cmd_list_element) <flags>: Remove.
11721 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11722 doc_allocated>: New fields.
11723 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11724 bitfields.
11725 * maint.c (maintenance_do_deprecate): Update.
11726 * top.c (execute_command): Update.
11727
11728 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11729
11730 * xtensa-linux-nat.c: Include asm/ptrace.h.
11731
11732 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11733
11734 * Makefile.in (SFILES): Add d-support.c.
11735 (COMMON_OBS): Add d-support.o.
11736 * d-lang.h (d_parse_symbol): Add comment, now defined in
11737 d-support.c.
11738 * d-lang.c (parse_call_convention)
11739 (parse_attributes, parse_function_types)
11740 (parse_function_args, parse_type, parse_identifier)
11741 (call_convention_p, d_parse_symbol): Move functions to ...
11742 * d-support.c: ... New file.
11743
11744 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11745
11746 * d-lang.h (d_parse_symbol): Add declaration.
11747 * d-lang.c (extract_identifiers)
11748 (extract_type_info): Remove functions.
11749 (parse_call_convention, parse_attributes)
11750 (parse_function_types, parse_function_args)
11751 (parse_type, parse_identifier, call_convention_p)
11752 (d_parse_symbol): New functions.
11753 (d_demangle): Use d_parse_symbol to demangle D symbols.
11754
11755 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11756
11757 * d-lang.h (struct builtin_d_type): New data type.
11758 (builtin_d_type): Add declaration.
11759 * d-lang.c (d_language_arch_info, build_d_types)
11760 (builtin_d_type): New functions.
11761 (enum d_primitive_types): New data type.
11762 (d_language_defn): Change c_language_arch_info to
11763 d_language_arch_info.
11764 (d_type_data): New static variable.
11765 (_initialize_d_language): Initialize d_type_data.
11766
11767 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11768
11769 * d-lang.h (d_main_name): Add declaration.
11770 * d-lang.c (d_main_name): New function.
11771 * symtab.c (find_main_name): Add call to d_main_name.
11772
11773 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11774
11775 * d-lang.c (d_language_defn): Change macro_expansion_c to
11776 macro_expansion_no.
11777
11778 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11779
11780 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11781
11782 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11783
11784 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11785 gdb_exception" declaration.
11786 * remote.c (getpkt_or_notif_sane): Likewise.
11787
11788 2014-01-17 Doug Evans <dje@google.com>
11789
11790 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11791 function, contents of dirnames_to_char_ptr_vec_append moved here.
11792 (delim_string_to_char_ptr_vec): New function.
11793 (dirnames_to_char_ptr_vec_append): Rewrite.
11794 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11795
11796 2014-01-17 Doug Evans <dje@google.com>
11797
11798 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11799 and moved here ...
11800 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11801 #include "common-utils.h".
11802 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11803 * common/vec.h (VEC_ASSERT_PASS): Update.
11804 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11805 (MACH_CHECK_ERROR): Update.
11806
11807 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11808
11809 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11810 comments.
11811 * gdbarch.h: Regenerate.
11812
11813 2014-01-16 Tom Tromey <tromey@redhat.com>
11814
11815 * value.c (struct value) <regnum>: Move earlier.
11816
11817 2014-01-16 Tom Tromey <tromey@redhat.com>
11818
11819 * remote.c (extended_remote_create_inferior): Rename from
11820 extended_remote_create_inferior_1. Add "ops" argument. Remove
11821 old implementation.
11822
11823 2014-01-16 Pedro Alves <palves@redhat.com>
11824
11825 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11826 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11827 the backchain.
11828
11829 2014-01-16 Doug Evans <dje@google.com>
11830
11831 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11832
11833 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11834
11835 * btrace.h (btrace_thread_flag): New.
11836 (struct btrace_thread_info) <flags>: New.
11837 * record-btrace.c (record_btrace_resume_thread)
11838 (record_btrace_find_thread_to_move, btrace_step_no_history)
11839 (btrace_step_stopped, record_btrace_start_replaying)
11840 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11841 (record_btrace_find_resume_thread): New.
11842 (record_btrace_resume, record_btrace_wait): Extend.
11843 (record_btrace_can_execute_reverse): New.
11844 (record_btrace_open): Fail in non-stop mode.
11845 (record_btrace_set_replay): Split into this, ...
11846 (record_btrace_stop_replaying): ... this, ...
11847 (record_btrace_clear_histories): ... and this.
11848 (init_record_btrace_ops): Init to_can_execute_reverse.
11849 * NEWS: Announce it.
11850
11851 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11852
11853 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11854 (forward_target_decr_pc_after_break)
11855 (target_decr_pc_after_break): New.
11856 * target.c (forward_target_decr_pc_after_break)
11857 (target_decr_pc_after_break): New.
11858 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11859 instead of gdbarch_decr_pc_after_break.
11860 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11861 instead of gdbarch_decr_pc_after_break.
11862 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11863 instead of gdbarch_decr_pc_after_break.
11864 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11865 instead of gdbarch_decr_pc_after_break.
11866 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11867 instead of gdbarch_decr_pc_after_break.
11868 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11869 instead of gdbarch_decr_pc_after_break.
11870
11871 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11872
11873 * btrace.c: Include regcache.h.
11874 (btrace_add_pc): New.
11875 (btrace_enable): Call btrace_add_pc.
11876 (btrace_is_empty): New.
11877 * btrace.h (btrace_is_empty): New.
11878 * record-btrace.c (require_btrace, record_btrace_info): Call
11879 btrace_is_empty.
11880
11881 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11882
11883 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11884 Support delta reads.
11885 (linux_disable_btrace): Change return type.
11886 * common/linux-btrace.h (linux_read_btrace): Change parameters
11887 and return type to allow error reporting. Update users.
11888 (linux_disable_btrace): Change return type. Update users.
11889 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11890 New.
11891 (btrace_error): New.
11892 (btrace_block) <begin>: Comment on BEGIN == 0.
11893 * btrace.c (btrace_compute_ftrace): Start from the end of
11894 the current trace.
11895 (btrace_stitch_trace, btrace_clear_history): New.
11896 (btrace_fetch): Read delta trace, return if replaying.
11897 (btrace_clear): Move clear history code to btrace_clear_history.
11898 (parse_xml_btrace): Throw an error if parsing failed.
11899 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11900 and return type to allow error reporting.
11901 (target_read_btrace): Change parameters and return type to allow
11902 error reporting.
11903 * target.c (target_read_btrace): Update.
11904 * remote.c (remote_read_btrace): Support delta reads. Pass
11905 errors on.
11906 * NEWS: Announce it.
11907
11908 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11909
11910 * record.h (record_btrace_frame_unwind)
11911 (record_btrace_tailcall_frame_unwind): New declarations.
11912 * dwarf2-frame: Include record.h
11913 (dwarf2_frame_cfa): Throw an error for btrace frames.
11914 * record-btrace.c: Include hashtab.h.
11915 (btrace_get_bfun_name): New.
11916 (btrace_call_history): Call btrace_get_bfun_name.
11917 (struct btrace_frame_cache): New.
11918 (bfcache): New.
11919 (bfcache_hash, bfcache_eq, bfcache_new): New.
11920 (btrace_get_frame_function): New.
11921 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11922 (record_btrace_frame_this_id): Compute own id.
11923 (record_btrace_frame_prev_register): Provide PC, throw_error
11924 for all other registers.
11925 (record_btrace_frame_sniffer): Detect btrace frames.
11926 (record_btrace_tailcall_frame_sniffer): New.
11927 (record_btrace_frame_dealloc_cache): New.
11928 (record_btrace_frame_unwind): Add new functions.
11929 (record_btrace_tailcall_frame_unwind): New.
11930 (_initialize_record_btrace): Allocate cache.
11931 * btrace.c (btrace_clear): Call reinit_frame_cache.
11932 * NEWS: Announce it.
11933
11934 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11935
11936 * record-btrace.c (record_btrace_set_replay)
11937 (record_btrace_goto_begin, record_btrace_goto_end)
11938 (record_btrace_goto): New.
11939 (init_record_btrace_ops): Initialize them.
11940 * NEWS: Announce it.
11941
11942 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11943
11944 * record-btrace.c (record_btrace_find_new_threads)
11945 (record_btrace_thread_alive): New.
11946 (init_record_btrace_ops): Initialize to_find_new_threads and
11947 to_thread_alive.
11948
11949 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11950
11951 * record-btrace.c (record_btrace_resume): New.
11952 (record_btrace_wait): New.
11953 (init_record_btrace_ops): Initialize to_wait and to_resume.
11954
11955 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11956
11957 * record-btrace.c (record_btrace_xfer_partial)
11958 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11959 (record_btrace_allow_memory_access): New.
11960 (init_record_btrace_ops): Initialize new methods.
11961 * target.c (raw_memory_xfer_partial): Bail out if target reports
11962 that this memory is not available.
11963
11964 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11965
11966 * target.h (target_ops) <to_insert_breakpoint>
11967 <to_remove_breakpoint>: Add target_ops parameter.
11968 (forward_target_insert_breakpoint): New.
11969 (forward_target_remove_breakpoint): New.
11970 (memory_remove_breakpoint, memory_insert_breakpoint):
11971 Add target_ops parameter.
11972 * target.c (target_insert_breakpoint): Split into this and ...
11973 (forward_target_insert_breakpoint): ... this.
11974 (target_remove_breakpoint): Split into this and ...
11975 (forward_target_remove_breakpoint): ... this.
11976 (debug_to_insert_breakpoint): Add target_ops parameter.
11977 Call forward_target_insert_breakpoint.
11978 (debug_to_remove_breakpoint): Add target_ops parameter.
11979 Call forward_target_remove_breakpoint.
11980 (update_current_target): Do not inherit or default to_insert_breakpoint
11981 and to_remove_breakpoint.
11982 * corelow.c (ignore): Add target_ops parameter.
11983 * exec.c (ignore): Add target_ops parameter.
11984 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11985 Add target_ops parameter.
11986 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11987 Add target_ops parameter.
11988 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11989 Add target_ops parameter.
11990 * record-full.c (record_full_beneath_to_insert_breakpoint)
11991 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11992 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11993 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11994 (record_full_core_remove_breakpoint): Add target_ops parameter.
11995 Update users.
11996 (record_full_beneath_to_insert_breakpoint_ops)
11997 (record_full_beneath_to_remove_breakpoint_ops)
11998 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11999 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12000 tmp_to_remove_breakpoint_ops,
12001 record_full_beneath_to_insert_breakpoint_ops, and
12002 record_full_beneath_to_remove_breakpoint_ops.
12003 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12004 (m32r_remove_breakpoint): Add target_ops parameter.
12005 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12006 Add target_ops parameter.
12007 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12008 Add target_ops parameter.
12009
12010 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12011 Markus Metzger <markus.t.metzger@intel.com>
12012
12013 * record-btrace.c: Include frame-unwind.h.
12014 (record_btrace_frame_unwind_stop_reason)
12015 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12016 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12017 New.
12018 (init_record_btrace_ops): Install it.
12019
12020 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12021
12022 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12023 get_prev_frame_1.
12024
12025 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12026
12027 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12028 earlier.
12029
12030 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12031
12032 * frame-unwind.c: Include target.h.
12033 (frame_unwind_try_unwinder): New function with code from ...
12034 (frame_unwind_find_by_frame): ... here. New variable
12035 unwinder_from_target, call also target_get_unwinder)
12036 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12037 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12038 * target.h (struct target_ops): New fields to_get_unwinder and
12039 to_get_tailcall_unwinder.
12040 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12041
12042 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12043
12044 * record-btrace.c (record_btrace_fetch_registers)
12045 (record_btrace_store_registers)
12046 (record_btrace_to_prepare_to_store): New.
12047 (init_record_btrace_ops): Add the above.
12048
12049 2014-01-16 Tom Tromey <tromey@redhat.com>
12050
12051 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12052 * target.h (struct target_ops) <to_prepare_to_store>: Add
12053 argument.
12054 (target_prepare_to_store): Add argument.
12055 * target.c (debug_to_prepare_to_store): Add argument.
12056 (update_current_target): Update.
12057 * remote.c (remote_prepare_to_store): Add 'self' argument.
12058 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12059 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12060 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12061 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12062 argument.
12063 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12064 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12065 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12066 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12067 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12068
12069 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12070
12071 * btrace.h (replay) <replay>: New.
12072 (btrace_is_replaying): New.
12073 * btrace.c (btrace_clear): Free replay iterator.
12074 (btrace_is_replaying): New.
12075 * record-btrace.c (record_btrace_is_replaying): New.
12076 (record_btrace_info): Print insn number if replaying.
12077 (record_btrace_insn_history): Start at replay position.
12078 (record_btrace_call_history): Start at replay position.
12079 (init_record_btrace_ops): Init to_record_is_replaying.
12080
12081 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12082
12083 * record-btrace.c (record_btrace_insn_history_range): Include
12084 end.
12085 (record_btrace_insn_history_from): Adjust range.
12086 (record_btrace_call_history_range): Include
12087 end.
12088 (record_btrace_call_history_from): Adjust range.
12089 * NEWS: Announce changes.
12090
12091 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12092
12093 * record.h (enum record_print_flag)
12094 <record_print_indent_calls>: New.
12095 * record.c (get_call_history_modifiers): Recognize /c modifier.
12096 (_initialize_record): Document /c modifier.
12097 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12098 Reorder fields. Optionally indent the function name. Update
12099 all users.
12100 * NEWS: Announce changes.
12101
12102 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12103
12104 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12105
12106 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12107
12108 * btrace.c (ftrace_new_function): Start counting at one.
12109 * record-btrace.c (record_btrace_info): Adjust number of calls
12110 and insns.
12111 * NEWS: Announce it.
12112
12113 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12114
12115 * record-btrace.c (btrace_call_history_insn_range): Print
12116 insn range as [begin, end].
12117
12118 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12119
12120 * btrace.h (struct btrace_func_link): New.
12121 (enum btrace_function_flag): New.
12122 (struct btrace_inst): Rename to ...
12123 (struct btrace_insn): ...this. Update all users.
12124 (struct btrace_func) <ibegin, iend>: Remove.
12125 (struct btrace_func_link): New.
12126 (struct btrace_func): Rename to ...
12127 (struct btrace_function): ...this. Update all users.
12128 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12129 (number, level, flags>: New.
12130 (struct btrace_insn_iterator): Rename to ...
12131 (struct btrace_insn_history): ...this.
12132 Update all users.
12133 (struct btrace_insn_iterator, btrace_call_iterator): New.
12134 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12135 (struct btrace_target_info) <begin, end, level>
12136 <insn_history, call_history>: New.
12137 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12138 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12139 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12140 (btrace_call_number, btrace_call_begin, btrace_call_end)
12141 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12142 (btrace_find_function_by_number, btrace_set_insn_history)
12143 (btrace_set_call_history): New.
12144 * btrace.c (btrace_init_insn_iterator)
12145 (btrace_init_func_iterator, compute_itrace): Remove.
12146 (ftrace_print_function_name, ftrace_print_filename)
12147 (ftrace_skip_file): Change
12148 parameter to const.
12149 (ftrace_init_func): Remove.
12150 (ftrace_debug): Use new btrace_function fields.
12151 (ftrace_function_switched): Also consider gaining and
12152 losing symbol information).
12153 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12154 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12155 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12156 New.
12157 (ftrace_new_function): Move. Remove debug print.
12158 (ftrace_update_lines, ftrace_update_insns): New.
12159 (ftrace_update_function): Check for call, ret, and jump.
12160 (compute_ftrace): Renamed to ...
12161 (btrace_compute_ftrace): ...this. Rewritten to compute call
12162 stack.
12163 (btrace_fetch, btrace_clear): Updated.
12164 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12165 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12166 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12167 (btrace_call_number, btrace_call_begin, btrace_call_end)
12168 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12169 (btrace_find_function_by_number, btrace_set_insn_history)
12170 (btrace_set_call_history): New.
12171 * record-btrace.c (require_btrace): Use new btrace thread
12172 info fields.
12173 (record_btrace_info, btrace_insn_history)
12174 (record_btrace_insn_history, record_btrace_insn_history_range):
12175 Use new btrace thread info fields and new iterator.
12176 (btrace_func_history_src_line): Rename to ...
12177 (btrace_call_history_src_line): ...this. Use new btrace
12178 thread info fields.
12179 (btrace_func_history): Rename to ...
12180 (btrace_call_history): ...this. Use new btrace thread info
12181 fields and new iterator.
12182 (record_btrace_call_history, record_btrace_call_history_range):
12183 Use new btrace thread info fields and new iterator.
12184
12185 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12186
12187 * frame.h (frame_id_build_unavailable_stack_special): New.
12188 * frame.c (frame_id_build_unavailable_stack_special): New.
12189
12190 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12191
12192 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12193 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12194 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12195 to gdbarch.
12196 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12197 (i386_insn_is_jump, i386_jmp_p): New.
12198 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12199 insn_is_jump to gdbarch.
12200 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12201 * gdbarch.h: Regenerated.
12202 * gdbarch.c: Regenerated.
12203 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12204 (default_insn_is_jump): New.
12205 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12206 (default_insn_is_jump): New.
12207
12208 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12209
12210 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12211 Change to ...
12212 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12213 (btrace_read_type) <btrace_read_new>: Change to ...
12214 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12215
12216 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12217
12218 * common/linux-btrace.c (linux_read_btrace): Free trace from
12219 previous iteration.
12220
12221 2014-01-15 Doug Evans <dje@google.com>
12222
12223 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12224 uint32_t.
12225
12226 2014-01-15 Tom Tromey <tromey@redhat.com>
12227
12228 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12229 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12230 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12231 (set_objfile_main_name): New function.
12232 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12233 language_of_main>: New fields.
12234 (set_objfile_main_name): Declare.
12235 * symtab.c (find_main_name): Loop over objfiles to find the main
12236 name and language.
12237 (set_main_name): Now static.
12238 (get_main_info): Add comment.
12239 * symtab.h (set_main_name): Don't declare.
12240
12241 2014-01-15 Tom Tromey <tromey@redhat.com>
12242
12243 * symtab.c (main_progspace_key): New global.
12244 (struct main_info): New.
12245 (name_of_main, language_of_main): Remove.
12246 (get_main_info, main_info_cleanup): New function.
12247 (set_main_name, main_name, main_language): Use get_main_info.
12248 (_initialize_symtab): Initialize main_progspace_key.
12249
12250 2014-01-15 Tom Tromey <tromey@redhat.com>
12251
12252 * dbxread.c (process_one_symbol): Update.
12253 * dwarf2read.c (read_partial_die): Update.
12254 * symfile.c (set_initial_language): Call main_language.
12255 * symtab.c (language_of_main): Now static.
12256 (set_main_name): Add 'lang' parameter.
12257 (find_main_name): Update.
12258 (main_language): New function.
12259 (symtab_observer_executable_changed): Update.
12260 * symtab.h (set_main_name): Update.
12261 (language_of_main): Remove.
12262 (main_language): Declare.
12263
12264 2014-01-15 Tom Tromey <tromey@redhat.com>
12265
12266 * symfile.c (init_entry_point_info): Use new "initialized" field.
12267 Update.
12268 * objfiles.h (struct entry_point) <initialized>: New field.
12269 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12270 (struct objfile) <ei>: ...here. Remove.
12271 * objfiles.c (entry_point_address_query): Update.
12272
12273 2014-01-15 Tom Tromey <tromey@redhat.com>
12274
12275 * objfiles.c (entry_point_address_query): Relocate entry point
12276 address.
12277 (objfile_relocate1): Do not relocate entry point address.
12278 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12279 <the_bfd_section_index>: New field.
12280 * symfile.c (init_entry_point_info): Find the entry point's
12281 section.
12282
12283 2014-01-15 Tom Tromey <tromey@redhat.com>
12284
12285 * solib-frv.c (enable_break): Use entry_point_address_query.
12286
12287 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12288
12289 * NEWS: Add note on improved process record-replay on
12290 arm*-linux* targets.
12291
12292 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12293
12294 * arm-tdep.c (enum arm_record_result): New enum.
12295 (arm_record_unsupported_insn): New function.
12296 (arm_record_coproc_data_proc): Removed.
12297 (thumb2_record_ld_st_multiple): New function.
12298 (thumb2_record_ld_st_dual_ex_tbb): New function.
12299 (thumb2_record_data_proc_sreg_mimm): New function.
12300 (thumb2_record_ps_dest_generic): New function.
12301 (thumb2_record_branch_misc_cntrl): New function.
12302 (thumb2_record_str_single_data): New function.
12303 (thumb2_record_ld_mem_hints): New function.
12304 (thumb2_record_ld_word): New function.
12305 (thumb2_record_lmul_lmla_div): New function.
12306 (thumb2_record_decode_insn_handler): New function.
12307 (decode_insn): Add thumb32 instruction handlers.
12308
12309 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12310
12311 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12312 (struct arm_linux_record_tdep): Declare.
12313 (arm_canonicalize_syscall): New function.
12314 (arm_all_but_pc_registers_record): New function.
12315 (arm_linux_syscall_record): New function.
12316 (arm_linux_init_abi): Add syscall recording constructs.
12317 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12318 decoding. (arm_record_coproc_data_proc): Update arm syscall
12319 decoding.
12320 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12321 <arm_syscall_record>: New field.
12322 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12323 gdb_target_obs.
12324
12325 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12326
12327 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12328 register for push instruction recording.
12329
12330 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12331
12332 * arm-tdep.c (thumb_record_misc): Update to correct logical
12333 error while recording ldm, ldmia and pop instructions.
12334
12335 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12336
12337 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12338
12339 2014-01-15 Pedro Alves <palves@redhat.com>
12340
12341 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12342 (go32_resume, go32_fetch_registers, store_register)
12343 (go32_store_registers, go32_prepare_to_store)
12344 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12345 (go32_create_inferior, go32_can_run, go32_terminal_init)
12346 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12347 declarations.
12348
12349 2014-01-15 Tom Tromey <tromey@redhat.com>
12350
12351 * target.h (async_callback_ftype): New typedef.
12352 (struct target_ops) <to_async>: Use it.
12353
12354 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12355
12356 * python/py-value.c (get_field_type): Remove unnecessary curly
12357 braces for single-statement if block.
12358
12359 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12360
12361 * python/py-type.c (convert_field): Add missing empty line
12362 after declarations.
12363
12364 2014-01-14 Doug Evans <dje@google.com>
12365
12366 * symfile.h (expand_symtabs_matching): Renamed from
12367 expand_partial_symbol_names. Update prototype.
12368 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12369 * symfile.c (expand_symtabs_matching): Renamed from
12370 expand_partial_symbol_names. New args file_matcher, kind.
12371 Rename arg fun to symbol_matcher.
12372 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12373 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12374 ada_expand_partial_symbol_name.
12375 (ada_make_symbol_completion_list): Update to call
12376 expand_symtabs_matching.
12377 (ada_add_global_exceptions): Call expand_symtabs_matching.
12378 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12379 call map_symbol_filenames.
12380 * symtab.c (sources_info): Update to call map_symbol_filenames.
12381 (search_symbols): Call expand_symtabs_matching.
12382 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12383 (default_make_symbol_completion_list_break_on): Update to call
12384 expand_symtabs_matching.
12385 (make_source_files_completion_list): Update to call
12386 map_symbol_filenames.
12387
12388 2014-01-14 Doug Evans <dje@google.com>
12389
12390 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12391 (expand_symtabs_symbol_matcher_ftype): New typedef.
12392 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12393 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12394 * symfile.c (expand_partial_symbol_names): Update to use
12395 expand_symtabs_symbol_matcher_ftype.
12396 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12397 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12398 Arg name_matcher renamed to symbol_matcher.
12399 * psymtab.c (recursively_search_psymtabs): Update to use
12400 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12401 sym_matcher.
12402 (expand_symtabs_matching_via_partial): Update to use
12403 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12404 Arg name_matcher renamed to symbol_matcher.
12405
12406 2014-01-14 Doug Evans <dje@google.com>
12407
12408 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12409 (map_partial_symbol_filenames): Ditto.
12410 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12411 (map_partial_symbol_filenames): Ditto.
12412 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12413 (map_partial_symbol_filenames): Ditto.
12414 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12415 (map_partial_symbol_filenames): Ditto.
12416 * symtab.c: Delete #include "psymtab.h".
12417
12418 2014-01-14 Pedro Alves <palves@redhat.com>
12419 Tom Tromey <tromey@redhat.com>
12420
12421 * infrun.c (use_displaced_stepping): Use find_record_target
12422 instead of RECORD_IS_USED.
12423 (adjust_pc_after_break): Use record_full_is_used instead of
12424 RECORD_IS_USED.
12425 * record-btrace.c (record_btrace_open): Call record_preopen
12426 instead of checking RECORD_IS_USED.
12427 * record-full.c (record_full_shortname)
12428 (record_full_core_shortname): New globals.
12429 (record_full_is_used): New function.
12430 (find_full_open): Call record_preopen instead of checking
12431 RECORD_IS_USED.
12432 (init_record_full_ops): Set the target's shortname to
12433 record_full_shortname.
12434 (init_record_full_core_ops): Set the target's shortname to
12435 record_full_core_shortname.
12436 * record-full.h (record_full_is_used): Declare.
12437 * record.c (find_record_target): Make extern.
12438 (record_preopen): New function.
12439 * record.h (RECORD_IS_USED): Delete macro.
12440 (find_record_target, record_preopen): Declare functions.
12441
12442 2014-01-14 Yao Qi <yao@codesourcery.com>
12443
12444 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12445 'len''s type to ULONGEST.
12446 (core_xfer_shared_libraries_aix): Likewise.
12447 * gdbarch.c, gdbarch.h: Regenerated.
12448 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12449 Change type of 'len' to ULONGEST.
12450 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12451 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12452
12453 2014-01-14 Yao Qi <yao@codesourcery.com>
12454
12455 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12456 type of 'len' to ULONGEST.
12457 (linux_xfer_osdata_processgroups): Likewise.
12458 (linux_xfer_osdata_threads): Likewise.
12459 (linux_xfer_osdata_fds): Likewise.
12460 (linux_xfer_osdata_isockets): Likewise.
12461 (linux_xfer_osdata_shm): Likewise.
12462 (linux_xfer_osdata_sem): Likewise.
12463 (linux_xfer_osdata_msg): Likewise.
12464 (linux_common_xfer_osdata): Likewise.
12465 (struct osdata_type) <getter>: Likewise.
12466 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12467 the declaration.
12468
12469 2014-01-14 Yao Qi <yao@codesourcery.com>
12470
12471 * target.h (target_xfer_partial_ftype): Update.
12472 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12473 ULONGEST.
12474 * aix-thread.c (aix_thread_xfer_partial): Change type of
12475 argument 'len' to ULONGEST.
12476 * auxv.c (procfs_xfer_auxv): Likewise.
12477 (ld_so_xfer_auxv): Likewise.
12478 (memory_xfer_auxv): Likewise.
12479 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12480 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12481 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12482 * corelow.c (core_xfer_partial): Likewise.
12483 * ctf.c (ctf_xfer_partial): Likewise.
12484 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12485 '%u'.
12486 (darwin_read_dyld_info): Likewise.
12487 (darwin_xfer_partial): Likewise.
12488 * exec.c (section_table_xfer_memory_partial): Likewise.
12489 (exec_xfer_partial): Likewise.
12490 * exec.h (section_table_xfer_memory_partial): Update
12491 declaration.
12492 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12493 instead of plongest.
12494 (gnu_xfer_partial): Likewise.
12495 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12496 (ia64_hpux_xfer_solib_got): Likewise.
12497 (ia64_hpux_xfer_partial): Likewise.
12498 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12499 * inf-ptrace.c (inf_ptrace_xfer_partial):
12500 * inf-ttrace.c (inf_ttrace_xfer_partial):
12501 * linux-nat.c (linux_xfer_siginfo): Likewise.
12502 (linux_nat_xfer_partial): Likewise.
12503 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12504 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12505 * monitor.c (monitor_xfer_memory): Likewise.
12506 (monitor_xfer_partial): Likewise.
12507 * procfs.c (procfs_xfer_partial): Likewise.
12508 * record-full.c (record_full_xfer_partial): Likewise.
12509 (record_full_core_xfer_partial): Likewise.
12510 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12511 instead of plongest.
12512 (gdbsim_xfer_partial): Likewise.
12513 * remote.c (remote_xfer_partial): Likewise.
12514 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12515 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12516 declaration.
12517 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12518 (rs6000_xfer_shared_libraries): Likewise.
12519 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12520 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12521 (sparc_xfer_partial): Likewise.
12522 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12523 (spu_xfer_partial): Likewise.
12524 * spu-multiarch.c (spu_xfer_partial): Likewise.
12525 * target.c (target_read_live_memory): Likewise.
12526 (memory_xfer_live_readonly_partial): Likewise.
12527 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12528 (target_xfer_partial, default_xfer_partial): Likewise.
12529 (current_xfer_partial): Likewise.
12530 * tracepoint.c (tfile_xfer_partial): Likewise.
12531 * windows-nat.c (windows_xfer_memory): Likewise. Call
12532 pulongest instead of plongest.
12533 (windows_xfer_partial): Likewise.
12534 (windows_xfer_shared_libraries): Likewise.
12535
12536 2014-01-14 Yao Qi <yao@codesourcery.com>
12537
12538 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12539 target_xfer_partial_ftype.
12540
12541 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12542
12543 PR python/15464
12544 PR python/16113
12545 * valops.c (value_struct_elt_bitpos): New function
12546 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12547 object to 'None' if the field name is an empty string ("").
12548 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12549 attribute to look for a field when 'name' is 'None'.
12550 (get_field_type): New function
12551
12552 2014-01-13 Doug Evans <dje@google.com>
12553
12554 PR symtab/16426
12555 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12556 (try_open_dwop_file): Ditto.
12557 * gdb_bfd.c: #include "vec.h".
12558 (bfdp): New typedef.
12559 (struct gdb_bfd_data): New member included_bfds.
12560 (gdb_bfd_unref): Unref all included bfds.
12561 (gdb_bfd_record_inclusion): New function.
12562 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12563
12564 2014-01-13 Tom Tromey <tromey@redhat.com>
12565
12566 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12567
12568 2014-01-13 Tom Tromey <tromey@redhat.com>
12569
12570 * defs.h (use_windows): Remove.
12571 * gdb.c (main): Update.
12572 * main.c (captured_main, gdb_main): Update.
12573 * main.h (struct captured_main_args) <use_windows>: Remove.
12574 * top.c (use_windows): Remove.
12575
12576 2014-01-13 Tom Tromey <tromey@redhat.com>
12577
12578 * defs.h (deprecated_flush_hook): Remove.
12579
12580 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12581
12582 PR threads/16216
12583 * linux-thread-db.c (try_thread_db_load): Add parameter
12584 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12585 (try_thread_db_load_from_pdir_1): Move it there from here.
12586 (try_thread_db_load_from_sdir): Update caller.
12587 (try_thread_db_load_from_dir): Move it there from here.
12588
12589 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12590
12591 * regformats/regdat.sh: Always rewrite the register file.
12592
12593 2014-01-13 Pedro Alves <palves@redhat.com>
12594
12595 * Makefile.in (CHECK_HEADERS): New variable.
12596 (check-headers:): New rule.
12597
12598 2014-01-13 Tom Tromey <tromey@redhat.com>
12599
12600 * cli/cli-setshow.c (do_set_command): Update.
12601 * defs.h (deprecated_set_hook): Remove.
12602 * top.c (deprecated_set_hook): Remove.
12603
12604 2014-01-13 Pedro Alves <palves@redhat.com>
12605
12606 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12607 the tracepoint if the PC is a pseudo-register.
12608
12609 2014-01-13 Tom Tromey <tromey@redhat.com>
12610
12611 * defs.h (XCALLOC): Remove.
12612 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12613 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12614 * dwarf2loc.c (allocate_piece_closure): Likewise.
12615 * elfread.c (elf_symfile_segments): Likewise.
12616 (elf_symfile_segments): Likewise.
12617 * gdbtypes.c (copy_type_recursive): Likewise.
12618 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12619 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12620 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12621 XCALLOC.
12622 * mt-tdep.c (mt_gdbarch_init): Likewise.
12623 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12624 XCALLOC.
12625 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12626 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12627 * registry.c (registry_alloc_data): Likewise.
12628 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12629 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12630 * serial.c (serial_fdopen_ops): Likewise.
12631 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12632 XCALLOC.
12633 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12634 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12635 not XCALLOC.
12636
12637 2014-01-13 Tom Tromey <tromey@redhat.com>
12638
12639 * defs.h (XMALLOC): Remove.
12640 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12641 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12642 * cli-out.c (struct ui_out *): Likewise.
12643 * cli/cli-dump.c (add_dump_command): Likewise.
12644 (add_dump_command): Likewise.
12645 * complaints.c (get_complaints): Likewise.
12646 (find_complaint): Likewise.
12647 * dwarf2-frame.c (execute_cfa_program): Likewise.
12648 * dwarf2read.c (abbrev_table_read_table): Likewise.
12649 * gdbarch.sh: Likewise.
12650 * gdbarch.c: Rebuild.
12651 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12652 * interps.c (interp_new): Likewise.
12653 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12654 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12655 * mi/mi-console.c (mi_console_file_new): Likewise.
12656 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12657 * mi/mi-out.c (mi_out_new): Likewise.
12658 * mi/mi-parse.c (mi_parse): Likewise.
12659 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12660 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12661 * observer.c (xalloc_observer_list_node): Likewise.
12662 * regcache.c (regcache_xmalloc_1): Likewise.
12663 * reggroups.c (reggroup_new): Likewise.
12664 (_initialize_reggroup): Likewise.
12665 * registry.c (register_data_with_cleanup): Likewise.
12666 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12667 * ser-base.c (serial_ttystate): Likewise.
12668 * ser-mingw.c (make_pipe_state): Likewise.
12669 * ser-pipe.c (pipe_open): Likewise.
12670 * serial.c (serial_open): Likewise.
12671 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12672 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12673 (tui_alloc_win_info): Likewise.
12674 (tui_add_content_elements): Likewise.
12675 * tui/tui-file.c (tui_file_new): Likewise.
12676 * tui/tui-out.c (tui_out_new): Likewise.
12677 * ui-file.c (mem_file_new): Likewise.
12678 * ui-out.c (push_level): Likewise.
12679 (make_cleanup_ui_out_end): Likewise.
12680 (append_header_to_list): Likewise.
12681 (ui_out_new): Likewise.
12682 * user-regs.c (user_reg_add_builtin): Likewise.
12683
12684 2014-01-13 Tom Tromey <tromey@redhat.com>
12685
12686 * defs.h (XZALLOC): Remove.
12687 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12688 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12689 (get_ada_tasks_inferior_data): Likewise.
12690 * auto-load.c (get_auto_load_pspace_data): Likewise.
12691 * auxv.c (get_auxv_inferior_data): Likewise.
12692 * bfd-target.c (target_bfd_reopen): Likewise.
12693 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12694 (deprecated_insert_raw_breakpoint): Likewise.
12695 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12696 * corelow.c (core_open): Likewise.
12697 * darwin-nat.c (darwin_check_new_threads): Likewise.
12698 (darwin_attach_pid): Likewise.
12699 * dummy-frame.c (dummy_frame_push): Likewise.
12700 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12701 * dwarf2loc.c (allocate_piece_closure): Likewise.
12702 * elfread.c (elf_symfile_segments): Likewise.
12703 * eval.c (ptrmath_type_p): Likewise.
12704 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12705 * gdbtypes.c (alloc_type_arch): Likewise.
12706 (alloc_type_instance): Likewise.
12707 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12708 * inf-child.c (inf_child_can_use_agent): Likewise.
12709 * inflow.c (get_inflow_inferior_data): Likewise.
12710 * infrun.c (save_infcall_suspend_state): Likewise.
12711 * jit.c (jit_reader_load): Likewise.
12712 (get_jit_objfile_data): Likewise.
12713 (get_jit_program_space_data): Likewise.
12714 (jit_object_open_impl): Likewise.
12715 (jit_symtab_open_impl): Likewise.
12716 (jit_block_open_impl): Likewise.
12717 (jit_frame_sniffer): Likewise.
12718 * linux-fork.c (add_fork): Likewise.
12719 * maint.c (make_command_stats_cleanup): Likewise.
12720 * objfiles.c (get_objfile_pspace_data): Likewise.
12721 * opencl-lang.c (struct lval_closure): Likewise.
12722 * osdata.c (osdata_start_osdata): Likewise.
12723 * progspace.c (new_address_space): Likewise.
12724 (add_program_space): Likewise.
12725 * remote-sim.c (get_sim_inferior_data): Likewise.
12726 * sh-tdep.c (sh_gdbarch_init): Likewise.
12727 * skip.c (Ignore): Likewise.
12728 (skip_delete_command): Likewise.
12729 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12730 (library_list_start_library): Likewise.
12731 (solib_aix_current_sos): Likewise.
12732 * solib-darwin.c (get_darwin_info): Likewise.
12733 (darwin_current_sos): Likewise.
12734 * solib-dsbt.c (get_dsbt_info): Likewise.
12735 * solib-ia64-hpux.c (new_so_list): Likewise.
12736 (ia64_hpux_get_solib_linkage_addr): Likewise.
12737 * solib-spu.c (append_ocl_sos): Likewise.
12738 (spu_current_sos): Likewise.
12739 * solib-svr4.c (get_svr4_info): Likewise.
12740 (svr4_keep_data_in_core): Likewise.
12741 (library_list_start_library): Likewise.
12742 (svr4_default_sos): Likewise.
12743 (svr4_read_so_list): Likewise.
12744 * solib-target.c (library_list_start_library): Likewise.
12745 (solib_target_current_sos): Likewise.
12746 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12747 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12748 * symfile.c (default_symfile_segments): Likewise.
12749 * target-descriptions.c (tdesc_data_init): Likewise.
12750 (tdesc_create_reg): Likewise.
12751 (struct tdesc_type *): Likewise.
12752 (tdesc_create_vector): Likewise.
12753 (tdesc_set_struct_size): Likewise.
12754 (struct tdesc_type *): Likewise.
12755 (tdesc_free_feature): Likewise.
12756 (tdesc_create_feature): Likewise.
12757 * windows-nat.c (windows_add_thread): Likewise.
12758 (windows_make_so): Likewise.
12759 * xml-support.c (gdb_xml_body_text): Likewise.
12760 (gdb_xml_create_parser_and_cleanup): Likewise.
12761 (xml_process_xincludes): Likewise.
12762 * xml-syscall.c (allocate_syscalls_info): Likewise.
12763 (syscall_create_syscall_desc): Likewise.
12764
12765 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12766
12767 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12768 function, with code from i386_stap_parse_special_token.
12769 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12770 (i386_stap_parse_special_token): Move code to the two functions
12771 above; simplify it.
12772
12773 2014-01-09 Pedro Alves <palves@redhat.com>
12774 Hui Zhu <hui@codesourcery.com>
12775
12776 PR gdb/16101
12777 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12778 bp_err_string. Don't mark the location shlib_disabled if the
12779 error thrown wasn't a generic or memory error. Catch errors
12780 thrown while inserting breakpoints in overlayed code. Output
12781 error message of software breakpoints.
12782 * remote.c (remote_insert_breakpoint): If this breakpoint has
12783 target-side commands but this stub doesn't support Z0 packets,
12784 throw NOT_SUPPORTED_ERROR error.
12785 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12786 * target.h (target_insert_breakpoint): Extend comment.
12787 (target_insert_hw_breakpoint): Add comment.
12788
12789 2014-01-08 Pedro Alves <palves@redhat.com>
12790
12791 * remote.c (remote_add_thread): Add threads silently if starting
12792 up.
12793 (remote_notice_new_inferior): If in all-stop, and starting up,
12794 don't call notice_new_inferior.
12795 (get_current_thread): New function, factored out from ...
12796 (add_current_inferior_and_thread): ... this. Adjust.
12797 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12798 found any thread, then select the remote's current thread as GDB's
12799 current thread too.
12800
12801 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12802
12803 * NEWS: Create a new section for the next release branch.
12804 Rename the section of the current branch, now that it has
12805 been cut.
12806
12807 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12808
12809 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12810 * version.in: Bump version to 7.7.50.DATE-cvs.
12811
12812 2014-01-08 Yao Qi <yao@codesourcery.com>
12813
12814 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12815 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12816 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12817
12818 2014-01-08 Yao Qi <yao@codesourcery.com>
12819
12820 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12821 return value of bfd_get_filename to symbol_file_add_from_bfd.
12822
12823 2014-01-08 Pierre Muller <muller@sourceware.org>
12824
12825 Fix PR16201.
12826 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12827 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12828 to prim_record_mininal_symbol_and_info.
12829 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12830 in call to prim_record_minimal_symbol_and_info.
12831 (read_pe_exported_syms): Set index field of section_data.
12832
12833 2014-01-07 Andrew Pinski <apinski@cavium.com>
12834
12835 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12836 * features/aarch64.c: Regenerate.
12837
12838 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12839
12840 * target.c (return_null): Define.
12841 (update_current_target): Use it instead of return_zero for
12842 functions that return a pointer.
12843
12844 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12845
12846 * source.c (add_path): Fix check for duplicated paths in the previously
12847 included paths.
12848
12849 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12850
12851 * ada-lang.c: Remove duplicated include statements.
12852 * alphabsd-nat.c: Ditto.
12853 * amd64-darwin-tdep.c: Ditto.
12854 * amd64fbsd-nat.c: Ditto.
12855 * auto-load.c: Ditto.
12856 * ax-gdb.c: Ditto.
12857 * breakpoint.c: Ditto.
12858 * dbxread.c: Ditto.
12859 * fork-child.c: Ditto.
12860 * gdb_usleep.c: Ditto.
12861 * i386-darwin-tdep.c: Ditto.
12862 * i386fbsd-nat.c: Ditto.
12863 * infcmd.c: Ditto.
12864 * inferior.c: Ditto.
12865 * jv-lang.c: Ditto.
12866 * linux-nat.c: Ditto.
12867 * linux-tdep.c: Ditto.
12868 * m68kbsd-nat.c: Ditto.
12869 * m68klinux-nat.c: Ditto.
12870 * microblaze-tdep.c: Ditto.
12871 * mips-linux-tdep.c: Ditto.
12872 * mn10300-tdep.c: Ditto.
12873 * nto-tdep.c: Ditto.
12874 * opencl-lang.c: Ditto.
12875 * osdata.c: Ditto.
12876 * printcmd.c: Ditto.
12877 * regcache.c: Ditto.
12878 * remote-m32r-sdi.c: Ditto.
12879 * remote.c: Ditto.
12880 * symfile.c: Ditto.
12881 * symtab.c: Ditto.
12882 * tilegx-linux-nat.c: Ditto.
12883 * tilegx-tdep.c: Ditto.
12884 * tracepoint.c: Ditto.
12885 * valops.c: Ditto.
12886 * vaxbsd-nat.c: Ditto.
12887 * windows-nat.c: Ditto.
12888 * xtensa-tdep.c: Ditto.
12889
12890 2014-01-07 Yao Qi <yao@codesourcery.com>
12891
12892 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12893
12894 2014-01-07 Yao Qi <yao@codesourcery.com>
12895 Joel Brobecker <brobecker@adacore.com>
12896
12897 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12898 (pdc_write_regs): Likewise.
12899 (fetch_regs_kernel_thread): Likewise.
12900 (store_regs_kernel_thread): Likewise.
12901
12902 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12903
12904 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12905 tagged type objects to their actual type.
12906
12907 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12908
12909 * ada-valprint.c (print_field_values): Add "language" parameter.
12910 Update calls to print_field_values and print_variant_part.
12911 Pass new parameter "language" in call to val_print instead
12912 of "current_language". Replace call to ada_val_print by call
12913 to val_print.
12914 (print_variant_part): Add "language" parameter.
12915 (ada_val_print_struct_union): Update call to print_field_values.
12916
12917 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12918
12919 * ada-valprint.c (ui_memcpy): Delete.
12920 (ada_print_floating): Update documentation. Add empty line
12921 between between function documentation and implementation.
12922 Delete variable "buffer". Use ui_file_xstrdup in place of
12923 ui_file_put. Minor adjustments following this change.
12924
12925 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12926
12927 * ada-valprint.c (ada_val_print_string): New function,
12928 extracted from ada_val_print_array.
12929 (ada_val_print_array): Replace extracted code by call
12930 to ada_val_print_string followed by a return. Move
12931 "else" branch to the function's top block.
12932
12933 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12934
12935 * ada-valprint.c (ada_val_print_array): Move implementation
12936 down. Rename parameter "offset" and "val" into "offset_aligned"
12937 and "original_value" respectively. Add parameter "offset".
12938
12939 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12940
12941 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12942 re-organizing the code. Change the "???" message printed
12943 when target type is a TYPE_CODE_UNDEF into
12944 "<ref to undefined type>".
12945
12946 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12947
12948 * ada-valprint.c (print_record): Delete, implementation inlined...
12949 (ada_val_print_struct_union): ... here. Remove call to
12950 ada_check_typedef in inlined implementation.
12951
12952 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12953
12954 * ada-valprint.c (ada_val_print_gnat_array): New function,
12955 extracted from ada_val_print_1;
12956 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12957 (ada_val_print_flt, ada_val_print_struct_union)
12958 (ada_val_print_ref): Likewise.
12959 (ada_val_print_1): Delete variables i and elttype.
12960 Replace extracted-out code by call to corresponding
12961 new functions.
12962
12963 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12964
12965 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12966
12967 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12968
12969 * ada-valprint.c (ada_val_print_1): Replace calls to
12970 ada_val_print_1 by calls to val_print.
12971
12972 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12973
12974 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12975 Update calls to self accordingly. Replace calls to c_val_print
12976 by calls to val_print.
12977
12978 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12979
12980 * ada-valprint.c (print_record): Delete declaration.
12981 (adjust_type_signedness, ada_val_print_1): Likewise.
12982 (ada_val_print): Move function implementation down.
12983 (print_variant_part, print_field_values, print_record):
12984 Move function implementation up.
12985
12986 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12987
12988 * python/py-type.c (typy_get_name): New function.
12989 (type_object_getset): Add entry for attribute "name".
12990 * NEWS: Add entry mentioning this new attribute.
12991
12992 2014-01-07 Yao Qi <yao@codesourcery.com>
12993
12994 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12995 statement.
12996
12997 2014-01-07 Yao Qi <yao@codesourcery.com>
12998
12999 * gnu-nat.c (info_port_rights): Add qualifier const to
13000 argument args.
13001
13002 2014-01-07 Yao Qi <yao@codesourcery.com>
13003
13004 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13005
13006 2014-01-07 Yao Qi <yao@codesourcery.com>
13007
13008 * gnu-nat.c (make_inf) Update declaration.
13009 (make_inf): Make it static.
13010 (inf_set_traced): Likewise.
13011 (inf_port_to_thread, inf_task_died_status): Likewise.
13012
13013 2014-01-07 Yao Qi <yao@codesourcery.com>
13014
13015 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13016
13017 2014-01-07 Yao Qi <yao@codesourcery.com>
13018
13019 * gnu-nat.c (_initialize_gnu_nat): Declare.
13020
13021 2014-01-07 Yao Qi <yao@codesourcery.com>
13022
13023 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13024 'enum bfd_endian'.
13025 (struct gdbarch_info) <byte_order>: Change type to
13026 'enum bfd_endian'.
13027 <byte_order_for_code>: Likewise.
13028 * gdbarch.c, gdbarch.h: Regenerated.
13029
13030 2014-01-06 Sasha Smundak <asmundak@google.com>
13031
13032 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13033
13034 2014-01-06 Tom Tromey <tromey@redhat.com>
13035
13036 * doublest.c (convert_doublest_to_floatformat): Use const, not
13037 CONST.
13038 * somread.c (som_symtab_read): Likewise.
13039
13040 2014-01-07 Hui Zhu <hui@codesourcery.com>
13041
13042 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13043 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13044 (gdb_bfd_fopen): Ditto.
13045 (gdb_bfd_openr): Ditto.
13046 (gdb_bfd_openw): Ditto.
13047 (gdb_bfd_openr_iovec): Ditto.
13048 (gdb_bfd_fdopenr): Ditto.
13049 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13050 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13051 with xstrdup.
13052 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13053 with xstrdup.
13054 * symfile-mem.c (symbol_file_add_from_memory): Removed
13055 gdb_bfd_stash_filename.
13056
13057 2014-01-03 Doug Evans <dje@google.com>
13058
13059 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13060 output.
13061
13062 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13063
13064 Update year range in copyright notice of all files.
13065
13066 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13067
13068 * top.c (print_gdb_version): Set copyright year to 2014.
13069
13070 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13071
13072 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13073
13074 For older changes see ChangeLog-2013.
13075 \f
13076 Local Variables:
13077 mode: change-log
13078 left-margin: 8
13079 fill-column: 74
13080 version-control: never
13081 coding: utf-8
13082 End:
This page took 0.372881 seconds and 4 git commands to generate.