Remove GDBSERVER uses from linux-btrace.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
53f81362
GB
12014-09-12 Gary Benson <gbenson@redhat.com>
2
3 * nat/linux-btrace.c: Include common-defs.h.
4 Don't include defs.h, server.h or gdbthread.h.
5 * nat/linux-btrace.h (struct target_ops): New forward declaration.
6
727605ca
GB
72014-09-12 Gary Benson <gbenson@redhat.com>
8
9 * common/agent.c: Include common-defs.h.
10 Don't include defs.h or server.h.
11 * common/buffer.c: Likewise.
12 * common/common-debug.c: Likewise.
13 * common/common-utils.c: Likewise.
14 * common/errors.c: Likewise.
15 * common/filestuff.c: Likewise.
16 * common/format.c: Likewise.
17 * common/gdb_vecs.c: Likewise.
18 * common/print-utils.c: Likewise.
19 * common/ptid.c: Likewise.
20 * common/rsp-low.c: Likewise.
21 * common/signals.c: Likewise.
22 * common/vec.c: Likewise.
23 * common/xml-utils.c: Likewise.
24 * nat/linux-osdata.c: Likewise.
25 * nat/linux-procfs.c: Likewise.
26 * nat/linux-ptrace.c: Likewise.
27 * nat/mips-linux-watch.c: Likewise.
28 * target/waitstatus.c: Likewise.
29
361c8ade
GB
302014-09-12 Tom Tromey <tromey@redhat.com>
31 Gary Benson <gbenson@redhat.com>
32
33 * common/common-regcache.h: New file.
34 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
35 * regcache.h: Include common-regcache.h.
36 (regcache_read_pc): Don't declare.
37 * regcache.c (get_thread_regcache_for_ptid): New function.
38 * nat/linux-btrace.c: Don't include regcache.h.
39 Include common-regcache.h.
40 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
41
a01cbb49
TS
422014-09-11 Thomas Schwinge <thomas@codesourcery.com>
43
44 * regcache.h (struct regset): Declare.
45
98880d46
PA
462014-09-11 Pedro Alves <palves@redhat.com>
47
48 PR gdb/17347
49 * main.c: Include "infrun.h".
50 (catch_command_errors, catch_command_errors_const): Wait for the
51 foreground command to complete.
52 * top.c (maybe_wait_sync_command_done): New function, factored out
53 from ...
54 (maybe_wait_sync_command_done): ... here.
55 * top.h (maybe_wait_sync_command_done): New declaration.
56
bd9269f7
GB
572014-09-11 Tom Tromey <tromey@redhat.com>
58 Gary Benson <gbenson@redhat.com>
59
60 * common/symbol.h: New file.
61 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
62 * minsyms.c (find_minimal_symbol_address): New function.
63 * common/agent.c: Include common/symbol.h.
64 [!GDBSERVER]: Don't include objfiles.h.
65 (agent_look_up_symbols): Use find_minimal_symbol_address.
66
f8c1d06b
GB
672014-09-11 Gary Benson <gbenson@redhat.com>
68
69 * target/target.h (target_stop_ptid, target_continue_ptid):
70 Declare.
71 * target.c (target_stop_ptid, target_continue_ptid): New
72 functions.
73 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
74 (agent_run_command): Always use target_stop_ptid and
75 target_continue_ptid.
76
721ec300
GB
772014-09-11 Tom Tromey <tromey@redhat.com>
78 Gary Benson <gbenson@redhat.com>
79
80 * target/target.h: New file.
81 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
82 * target.h: Include target/target.h.
83 (target_read_memory, target_write_memory): Don't declare.
84 * target.c (target_read_uint32): New function.
85 * common/agent.c: Include target/target.h.
86 [!GDBSERVER]: Don't include target.h.
87 (helper_thread_id): Type changed to uint32_t.
88 (agent_get_helper_thread_id): Use target_read_uint32.
89 (agent_run_command): Always use target_read_memory and
90 target_write_memory.
91 (agent_capability): Type changed to uint32_t.
92 (agent_capability_check): Use target_read_uint32.
93
c5e92cca
GB
942014-09-11 Gary Benson <gbenson@redhat.com>
95
96 * common/common-debug.h (show_debug_regs): Declare.
97 * common/common-debug.c (show_debug_regs): Define.
98 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
99 all uses with show_debug_regs. Replace all uses that considered
100 debug_hw_points as a multi-value integer with straight boolean
101 uses.
102 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
103 with show_debug_regs.
104 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
105 all uses with show_debug_regs.
106 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
107 uses with show_debug_regs.
108
eeef931a
UW
1092014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
110
111 * findvar.c (address_from_register): Handle targets requiring
112 a special conversion routine even for plain pointer types.
113
8efa9855
UW
1142014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
115
116 * rs6000-nat.c (exec_one_dummy_insn): Remove.
117 (store_register): Do not call exec_one_dummy_insn.
118
eb479039
JB
1192014-09-10 Joel Brobecker <brobecker@adacore.com>
120
121 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
122 dereference it first. Use value_enclosing_type instead of
123 value_type.
124 (ada_array_length): Likewise.
125
deede10c
JB
1262014-09-10 Joel Brobecker <brobecker@adacore.com>
127
128 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
129 Adjust function implementation and documentation accordingly.
130 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
131 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
132 Update call to ada_value_ptr_subscript.
133
7828a5f5
JB
1342014-09-10 Joel Brobecker <brobecker@adacore.com>
135
136 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
137 instead of VAL's type.
138
35782f14
JB
1392014-09-10 Joel Brobecker <brobecker@adacore.com>
140
141 * amd64-linux-nat.c: Add <sys/uio.h> #include.
142
d342a0da
DE
1432014-09-09 Doug Evans <xdje42@gmail.com>
144
145 PR guile/17367
146 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
147 last parameter to pkg-config, not first.
148 * configure.ac: Pass --with-guile provided pkg-config path to
149 GDB_GUILE_PROGRAM_NAMES.
150 * configure: Regenerate.
151
b4a3d263
GKB
1522014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
153
154 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
155 Bertazi".
156
6e466374
MR
1572014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
158
159 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
160 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
161 the list of sections determining GDB_OSABI_IRIX.
162
a1ada89a
JH
1632014-09-09 James Hogan <james.hogan@imgtec.com>
164
165 * MAINTAINERS (Write After Approval): Add "James Hogan".
166
86db008d
JH
1672014-09-09 James Hogan <james.hogan@imgtec.com>
168
169 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
170
72fde3df
JB
1712014-09-09 Joel Brobecker <brobecker@adacore.com>
172
173 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
174
92d8d229
DE
1752014-09-08 Doug Evans <xdje42@gmail.com>
176
177 PR 17247
178 * guile.c: #include <signal.h>.
179 (_initialize_guile): Block SIGCHLD while initializing Guile.
180
181 Replaces the following, which is reverted.
182
183 2014-07-26 Doug Evans <xdje42@gmail.com>
184
185 PR 17185
186 * configure.ac: Add check for header gc/gc.h.
187 Add check for function setenv.
188 * configure: Regenerate.
189 * config.in: Regenerate.
190 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
191
d81412aa
DE
1922014-09-08 Doug Evans <xdje42@gmail.com>
193
194 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
195 with named constant. Fix style of pointer comparison.
196 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
197
a9f116cb
GKB
1982014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
199
200 PR gdb/17035
201 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
202 decide whether we display the command on "show user".
203 * cli/cli-script.c (show_user_1): Only verify cmdlines after
204 printing command name.
205 * cli/cli-decode.h (cli_user_command_p): Declare new function.
206 * cli/cli-decode.c (cli_user_command_p): Create helper function
207 to verify whether cmd_list_element is a user-defined command.
208
c75bd3a2
JK
2092014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
210
211 PR python/17355
212 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
213 Fix goto out of TRY_CATCH.
214
faa42425 2152014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 216 Tom Tromey <tromey@redhat.com>
faa42425
DE
217
218 PR 15276
219 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
220 $_any_caller_matches.
221 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
222 * python/lib/gdb/function/caller_is.py: New file.
223
0d41ba00
DE
2242014-09-06 Doug Evans <xdje42@gmail.com>
225
226 * infcmd.c (program_info): Fix typo.
227
474ca4f6
SDJ
2282014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
229
230 PR gdb/17235
231 * stap-probe.c (stap_parse_single_operand): Delete unused variable
232 'number'. New variable 'has_digit'. Rewrite code to deal with
233 subexpressions on SDT probes.
234
ebf13736
PA
2352014-09-04 Pedro Alves <palves@redhat.com>
236
237 * c-exp.y (parse_number): Skip handling base-switching prefixes if
238 the input is only one character long.
239
eb0b0463
SDJ
2402014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
241
242 PR fortran/17237
243 * f-valprint.c (f_val_print): Specify the correct print option to
244 use when printing integer values.
245
5ee44bfa
GB
2462014-09-04 Gary Benson <gbenson@redhat.com>
247
248 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
249 Remove code to cope with LWPs wrapped as PIDs.
250 Add assertions to ensure no wrapped LWPs are passed.
251
4875ffdb
PA
2522014-09-04 Pedro Alves <palves@redhat.com>
253
254 * value.c (value_ranges_copy_adjusted): New function, factored out
255 from ...
256 (value_contents_copy_raw): ... here.
257 (unpack_value_bits_as_long_1): Rename back to ...
258 (unpack_bits_as_long): ... this. Remove 'original_value' and
259 'result' parameters. Change return type to LONGEST.
260 (unpack_value_bits_as_long): Delete.
261 (unpack_value_field_as_long_1): Delete.
262 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
263 (unpack_value_bitfield): New function.
264 (value_field_bitfield): Reimplement using unpack_value_bitfield.
265 (value_fetch_lazy): Use unpack_value_bitfield.
266 * value.h (unpack_value_bits_as_long): Delete declaration.
267
5f3b99cf
SS
2682014-09-03 Sasha Smundak <asmundak@google.com>
269
270 * python/py-frame.c (frapy_read_register): New function.
271
ac740bc7
JH
2722014-09-03 James Hogan <james.hogan@imgtec.com>
273
274 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
275 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
276
7d793aa9
SDJ
2772014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
278
279 PR python/16699
280 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
281 function.
282 (add_cmd): Set "completer_handle_brkchars" to NULL.
283 * cli/cli-decode.h (struct cmd_list_element)
284 <completer_handle_brkchars>: New field.
285 * command.h (completer_ftype_void): New typedef.
286 (set_cmd_completer_handle_brkchars): New prototype.
287 * completer.c (set_gdb_completion_word_break_characters): New
288 function.
289 (complete_line_internal): Call "completer_handle_brkchars"
290 callback from command.
291 * completer.h: Include "command.h".
292 (set_gdb_completion_word_break_characters): New prototype.
293 * python/py-cmd.c (cmdpy_completer_helper): New function.
294 (cmdpy_completer_handle_brkchars): New function.
295 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
296 (cmdpy_init): Set completer_handle_brkchars to
297 cmdpy_completer_handle_brkchars.
298
97ea6506
GB
2992014-09-03 Gary Benson <gbenson@redhat.com>
300
301 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
302 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
303 Loop conditions changed to equivalent form.
304 (struct x86_debug_reg_state): Updated dr_ref_count comment.
305 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
306 ALL_DEBUG_ADDRESS_REGISTERS.
307
d1437815
JB
3082014-09-03 Joel Brobecker <brobecker@adacore.com>
309
310 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
311 description fix.
312
9b94fcf1
DE
3132014-09-02 Doug Evans <dje@google.com>
314
315 * typeprint.c (find_global_typedef): Fix comment.
316
df7e5265
GB
3172014-09-02 Gary Benson <gbenson@redhat.com>
318
319 * i386-nat.h: Renamed as...
320 * x86-nat.h: New file. All type, function and variable name
321 prefixes changed from "i386_" to "x86_". All references updated.
322 * i386-nat.c: Renamed as...
323 * x86-nat.c: New file. All type, function and variable name
324 prefixes changed from "i386_" to "x86_". All references updated.
325 * common/i386-xstate.h: Renamed as...
326 * common/x86-xstate.h: New file. All type, function and variable
327 name prefixes changed from "i386_" to "x86_". All references
328 updated.
329 * nat/i386-cpuid.h: Renamed as...
330 * nat/x86-cpuid.h: New file. All type, function and variable name
331 prefixes changed from "i386_" to "x86_". All references updated.
332 * nat/i386-gcc-cpuid.h: Renamed as...
333 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
334 name prefixes changed from "i386_" to "x86_". All references
335 updated.
336 * nat/i386-dregs.h: Renamed as...
337 * nat/x86-dregs.h: New file. All type, function and variable name
338 prefixes changed from "i386_" to "x86_". All references updated.
339 * nat/i386-dregs.c: Renamed as...
340 * nat/x86-dregs.c: New file. All type, function and variable name
341 prefixes changed from "i386_" to "x86_". All references updated.
342
1c3569d4
MR
3432014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
344
345 * varobj.c (_initialize_varobj): Move to the end of file.
346
ff55e1b5
GB
3472014-08-29 Gary Benson <gbenson@redhat.com>
348
349 * common/common-exceptions.h: New file.
350 * common/common-exceptions.c: Likewise.
351 * Makefile.in (SFILES): Add common/common-exceptions.c.
352 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
353 (COMMON_OBS): Add common-exceptions.o.
354 (common-exceptions.o): New rule.
355 * exceptions.h (common-exceptions.h): Include.
356 (gdb_setjmp.h): Do not include.
357 (return_reason): Moved to common-exceptions.h.
358 (enum return_reason): Likewise.
359 (RETURN_MASK): Likewise.
360 (typedef return_mask): Likewise.
361 (enum errors): Likewise.
362 (struct gdb_exception): Likewise.
363 (exceptions_state_mc_init): Likewise.
364 (exceptions_state_mc_action_iter): Likewise.
365 (exceptions_state_mc_action_iter_1): Likewise.
366 (TRY_CATCH): Likewise.
367 (throw_exception): Likewise.
368 (throw_verror): Likewise.
369 (throw_vquit): Likewise.
370 (throw_error): Likewise.
371 (throw_quit): Likewise.
372 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
373 (enum catcher_action): Likewise.
374 (struct catcher): Likewise.
375 (current_catcher): Likewise.
376 (catcher_list_size): Likewise.
377 (exceptions_state_mc_init): Likewise.
378 (catcher_pop): Likewise.
379 (exceptions_state_mc): Likewise.
380 (exceptions_state_mc_action_iter): Likewise.
381 (exceptions_state_mc_action_iter_1): Likewise.
382 (throw_exception): Likewise.
383 (exception_messages): Likewise.
384 (exception_messages_size): Likewise.
385 (throw_it): Likewise.
386 (throw_verror): Likewise.
387 (throw_vquit): Likewise.
388 (throw_error): Likewise.
389 (throw_quit): Likewise.
390 (prepare_to_throw_exception): New function.
391
e9bcb658
GB
3922014-08-29 Gary Benson <gbenson@redhat.com>
393
394 * common/gdb_setjmp.h: New file.
395 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
396 * configure.ac: Move sigsetjmp check...
397 * common/common.m4: ...here.
398 * configure: Regenerate.
399 * cp-support.c (SIGJMP_BUF): Delete.
400 (SIGSETJMP): Likewise.
401 (SIGLONGJMP): Likewise.
402 * exceptions.h (gdb_setjmp.h): Include.
403 (setjmp.h): Do not include.
404 (EXCEPTIONS_SIGJMP_BUF): Delete.
405 (EXCEPTIONS_SIGSETJMP): Likewise.
406 (EXCEPTIONS_SIGLONGJMP): Likewise.
407 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
408 from gdb_setjmp.h.
409 * exceptions.c: Likewise.
410
e3180625
GB
4112014-08-29 Gary Benson <gbenson@redhat.com>
412
413 * cleanups.h: Moved to...
414 * common/cleanups.h: New file.
415 * cleanups.c: Moved to...
416 * common/cleanups.c: New file. Include common-defs.h and
417 cleanups.h. Do not include defs.h.
418 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
419 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
420 (cleanups.o): New rule.
421
e3d6ba5d
GB
4222014-08-29 Gary Benson <gbenson@redhat.com>
423
424 * common/errors.h (internal_warning): New declaration.
425 (internal_vwarning): Likewise.
426 * common/errors.c (internal_warning): New function.
427 * utils.h (internal_warning): Don't declare.
428 (internal_vwarning): Likewise.
429 * utils.c (internal_warning): Removed.
430
075c7033
GB
4312014-08-29 Gary Benson <gbenson@redhat.com>
432
433 * main.c (captured_main): Use warning during startup.
434 Prefix startup warning messages with command name.
435
91b35fd0
GB
4362014-08-29 Gary Benson <gbenson@redhat.com>
437
438 * main.c (captured_main): Handle usage errors with error.
439
b1ec390e
GB
4402014-08-29 Gary Benson <gbenson@redhat.com>
441
442 * go32-nat.c (go32_create_inferior): Replace a fprintf/
443 exit pair with a call to error. Wrap the message with _().
444
fd0ef3dd
GB
4452014-08-29 Gary Benson <gbenson@redhat.com>
446
447 * main.c (captured_main): Replace a fprintf/exit
448 pair with a call to error. Wrap the message with _().
449
e0e6bcab
GB
4502014-08-29 Gary Benson <gbenson@redhat.com>
451
452 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
453 pairs with calls to error. Wrap the message with _().
454
0d2f5c07
GB
4552014-08-29 Gary Benson <gbenson@redhat.com>
456
457 * utils.c (vwarning): Protect calls to target_terminal_ours
458 and wrap_here.
459
5df43998
GB
4602014-08-29 Gary Benson <gbenson@redhat.com>
461
462 * exceptions.c (print_flush): Protect calls to
463 target_terminal_ours and wrap_here.
464
2437fd32
GB
4652014-08-29 Gary Benson <gbenson@redhat.com>
466
467 * utils.h (filtered_printing_initialized): New declaration.
468 * utils.c (abort_with_message): New function.
469 (internal_vproblem): Use abort_with_message for first level
470 recursive internal problems, and if gdb_stderr is not set up.
471 Protect calls to target_terminal_ours, begin_line and query.
472
f1f58506
DE
4732014-08-28 Doug Evans <dje@google.com>
474
475 * symtab.c (in_prologue): Move definition to better spot.
476 (skip_prologue_using_sal): Ditto.
477
aab2f208
DE
4782014-08-28 Doug Evans <dje@google.com>
479
480 * symtab.c (find_function_start_sal): Move definition to better spot.
481
6b65d1b6
YQ
4822014-08-28 Yao Qi <yao@codesourcery.com>
483
484 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
485 found_stack_adjust in forward scan. Remove condition check
486 on found_stack_adjust which is always true. Indent the code.
487
a1b34d15
YQ
4882014-08-28 Yao Qi <yao@codesourcery.com>
489
490 * dwarf2read.c (dwarf_decode_lines): Update declaration.
491 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
492 (dwarf_decode_lines): Remove argument
493 want_line_info. Remove condition check on want_line_info.
494 Callers update.
495
d5962de5
DE
4962014-08-27 Doug Evans <dje@google.com>
497
498 * dwarf2read.c (dwarf_record_line): Fix typo.
499
9b139002
SDJ
5002014-08-27 Patrick Palka <patrick@parcs.ath.cx>
501
502 * target.h (struct target_ops::to_terminal_save_ours): Remove
503 declaration.
504 (target_terminal_save_ours): Remove macro.
505 * target-delegates.c: Regenerate.
506 * inf-child.c (inf_child_target): Don't set the nonexistent
507 field to_terminal_save_ours.
508 * inferior.h (child_terminal_save_ours): Remove declaration.
509 * terminal.h (gdb_save_tty_state): New declaration.
510 * inflow.c (child_terminal_save_ours): Rename to ...
511 (gdb_save_tty_state): ... this.
512 * tui/tui.c: Include terminal.h.
513 (tui_enable): Use gdb_save_tty_state instead of
514 target_terminal_save_ours.
515 (tui_disable): Likewise.
516
9debeba0
DE
5172014-08-25 Doug Evans <dje@google.com>
518
519 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
520 Pass NULL instead of 0 for context pointer.
521
428fc5fc
YQ
5222014-08-25 Yao Qi <yao@codesourcery.com>
523
524 * dwarf2read.c: Fix grammatical error.
525
cdc07690
YQ
5262014-08-24 Yao Qi <yao@codesourcery.com>
527
528 * dwarf2read.c (scan_partial_symbols): Update comments.
529 Rename argument 'need_pc' with 'set_addrmap'.
530 (add_partial_namespace): Rename argument 'need_pc' with
531 'set_addrmap'.
532 (add_partial_module): Likewise.
533 (add_partial_subprogram): Likewise. Update comments.
534 (dwarf2_name): Fix typo.
535
a05a36a5
DE
5362014-08-22 Doug Evans <dje@google.com>
537
538 PR 17276
539 * dwarf2read.c (dwarf_record_line_p): New function.
540 (dwarf_decode_lines_1): Ignore subsequent line number entries
541 for the same line if any entry had a non-zero discriminator.
542
252a6764
DE
5432014-08-22 Doug Evans <dje@google.com>
544
545 * buildsym.h (record_line_ftype): New typedef.
546 (record_line): Use it.
547 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
548 (dwarf_decode_lines_1): Call them.
549
510db052
YQ
5502014-08-22 Yao Qi <yao@codesourcery.com>
551
552 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
553 (ctf_end): Remove code.
554
22fd09ae
JK
5552014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
556
557 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
558 (linux_make_corefile_notes): call update_thread_list, protected against
559 exceptions.
560
656e8868
PA
5612014-08-21 Pedro Alves <palves@redhat.com>
562
563 * infcmd.c (attach_command): Remove comment.
564
de589d04
WN
5652014-08-21 Bin Cheng <bin.cheng@arm.com>
566
567 * aarch64-linux-nat.c (dr_changed_t): Change the type from
568 unsigned LONGEST to ULONGEST.
569
2a31c623
PA
5702014-08-20 Pedro Alves <palves@redhat.com>
571
572 * Makefile.in (check-read1): New rule.
573
d36430db
JB
5742014-08-20 Joel Brobecker <brobecker@adacore.com>
575
576 * value.c (value_from_contents_and_address): Strip resolved_type's
577 typedef layers before checking its TYPE_DATA_LOCATION.
578
000339af
PA
5792014-08-20 Pedro Alves <palves@redhat.com>
580
581 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
582
5f52445b
YQ
5832014-08-20 Yao Qi <yao@codesourcery.com>
584
585 * amd64-tdep.c (amd64_classify): Add a blank line after the
586 example. Move "*/" to a new line.
587 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
588 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
589 * dwarf2read.c (psymtab_include_file_name): Likewise.
590
9a0dc9e3
PA
5912014-08-19 Andrew Burgess <aburgess@broadcom.com>
592 Pedro Alves <palves@redhat.com>
593
594 PR symtab/14604
595 PR symtab/14605
596 * ada-lang.c (coerce_unspec_val_to_type): Use
597 value_contents_copy_raw.
598 * ada-valprint.c (val_print_packed_array_elements): Adjust.
599 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
600 * cp-valprint.c (cp_print_value_fields): Let the common printing
601 code handle optimized out values.
602 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
603 * d-valprint.c (dynamic_array_type): Use
604 value_bits_any_optimized_out.
605 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
606 check_any_valid fields.
607 (check_pieced_value_bits): Delete and inline ...
608 (check_pieced_synthetic_pointer): ... here.
609 (check_pieced_value_validity): Delete.
610 (check_pieced_value_invalid): Delete.
611 (pieced_value_funcs): Remove check_validity and check_any_valid
612 fields.
613 (read_pieced_value): Use mark_value_bits_optimized_out.
614 (write_pieced_value): Switch to use
615 mark_value_bytes_optimized_out.
616 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
617 of assuming the whole value is optimized out.
618 * findvar.c (read_frame_register_value): Remove special handling
619 of optimized out registers.
620 (value_from_register): Use mark_value_bytes_optimized_out.
621 * frame-unwind.c (frame_unwind_got_optimized): Use
622 mark_value_bytes_optimized_out.
623 * jv-valprint.c (java_value_print): Adjust.
624 (java_print_value_fields): Let the common printing code handle
625 optimized out values.
626 * mips-tdep.c (mips_print_register): Remove special handling of
627 optimized out registers.
628 * opencl-lang.c (lval_func_check_validity): Delete.
629 (lval_func_check_any_valid): Delete.
630 (opencl_value_funcs): Remove check_validity and check_any_valid
631 fields.
632 * p-valprint.c (pascal_object_print_value_fields): Let the common
633 printing code handle optimized out values.
634 * stack.c (read_frame_arg): Remove special handling of optimized
635 out values. Fetch both VAL and ENTRYVAL before comparing
636 contents. Adjust to value_available_contents_eq rename.
637 * valprint.c (valprint_check_validity)
638 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
639 (val_print_array_elements): Adjust.
640 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
641 (value_bits_any_optimized_out): New function.
642 (value_entirely_covered_by_range_vector): New function, factored
643 out from value_entirely_unavailable.
644 (value_entirely_unavailable): Reimplement.
645 (value_entirely_optimized_out): New function.
646 (insert_into_bit_range_vector): New function, factored out from
647 mark_value_bits_unavailable.
648 (mark_value_bits_unavailable): Reimplement.
649 (struct ranges_and_idx): New struct.
650 (find_first_range_overlap_and_match): New function, factored out
651 from value_available_contents_bits_eq.
652 (value_available_contents_bits_eq): Rename to ...
653 (value_contents_bits_eq): ... this. Check both unavailable
654 contents and optimized out contents.
655 (value_available_contents_eq): Rename to ...
656 (value_contents_eq): ... this.
657 (allocate_value_lazy): Remove reference to the old optimized_out
658 boolean.
659 (allocate_optimized_out_value): Use
660 mark_value_bytes_optimized_out.
661 (require_not_optimized_out): Adjust to check whether the
662 optimized_out vec is empty.
663 (ranges_copy_adjusted): New function, factored out from
664 value_contents_copy_raw.
665 (value_contents_copy_raw): Also copy the optimized out ranges.
666 Assert the destination ranges aren't optimized out.
667 (value_contents_copy): Update comment, remove call to
668 require_not_optimized_out.
669 (value_contents_equal): Adjust to check whether the optimized_out
670 vec is empty.
671 (set_value_optimized_out, value_optimized_out_const): Delete.
672 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
673 New functions.
674 (value_entirely_optimized_out, value_bits_valid): Delete.
675 (value_copy): Take a VEC copy of the 'optimized_out' field.
676 (value_primitive_field): Remove special handling of optimized out.
677 (value_fetch_lazy): Assert that lazy values have no unavailable
678 regions. Use value_bits_any_optimized_out. Remove some special
679 handling for optimized out values.
680 * value.h: Add intro comment about <optimized out> and
681 <unavailable>.
682 (struct lval_funcs): Remove check_validity and check_any_valid
683 fields.
684 (set_value_optimized_out, value_optimized_out_const): Remove.
685 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
686 New declarations.
687 (value_bits_any_optimized_out): New declaration.
688 (value_bits_valid): Delete declaration.
689 (value_available_contents_eq): Rename to ...
690 (value_contents_eq): ... this, and extend comments.
691
6694c411
JK
6922014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
693
694 Fix -fsanitize=address on unreadable inferior strings.
695 * valprint.c (val_print_string): Fix access before BUFFER.
696
89a1c21a
SM
6972014-08-19 Simon Marchi <simon.marchi@ericsson.com>
698
699 * target.c (target_struct_size): Remove.
700 (target_struct_allocsize): Remove.
701 (DEFAULT_ALLOCSIZE): Remove.
702 (target_ops_p): New typedef.
703 (DEF_VEC_P (target_ops_p)): New vector type.
704 (target_structs): Change type to VEC (target_ops_p).
705 (add_target_with_completer): Replace "push" code by VEC_safe_push.
706 (find_default_run_target): Rewrite for loop following changes to
707 target_structs.
708
cb417230
JB
7092014-08-19 Joel Brobecker <brobecker@adacore.com>
710
711 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
712 Adjust code accordingly. Adjust function description comment.
713
817e0957
YQ
7142014-08-19 Yao Qi <yao@codesourcery.com>
715
716 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
717 types.
718
2974be62
AM
7192014-08-19 Alan Modra <amodra@gmail.com>
720
721 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
722 * config.in: Regenerate.
723 * configure: Regenerate.
724
34abf635
GB
7252014-08-19 Tom Tromey <tromey@redhat.com>
726 Gary Benson <gbenson@redhat.com>
727
728 * common/common-debug.h: New file.
729 * common/common-debug.c: Likewise.
730 * debug.c: Likewise.
731 * Makefile.in (SFILES): Add common/common-debug.c.
732 (HFILES_NO_SRCDIR): Add common/common-debug.h.
733 (COMMON_OBS): Add common-debug.o and debug.o.
734 (common-debug.o): New rule.
735 * common/common-defs.h: Include common-debug.h.
736 * common/agent.c (debug_agent_printf): New function.
737 (DEBUG_AGENT): Redefine.
738 * nat/i386-dregs.c (debug_printf): Undefine.
739
f6e94d78
GB
7402014-08-19 Gary Benson <gbenson@redhat.com>
741
742 * common/common-defs.h: Include print-utils.h.
743 * utils.h: Do not include print-utils.h.
744
9239eeab
GB
7452014-08-19 Tom Tromey <tromey@redhat.com>
746 Gary Benson <gbenson@redhat.com>
747
748 * common/common-types.h: New file.
749 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
750 * common/common-defs.h: Include common-types.h.
751 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
752 (ULONGEST): Remove.
753
ef87c8bb
GB
7542014-08-19 Tom Tromey <tromey@redhat.com>
755 Gary Benson <gbenson@redhat.com>
756
757 * common/errors.h: New file.
758 * common/errors.c: Likewise.
759 * Makefile.in (SFILES): Add common/errors.c.
760 (HFILES_NO_SRCDIR): Add common/errors.h.
761 (COMMON_OBS): Add errors.o.
762 (errors.o): New rule.
763 * common/common-defs.h: Include errors.h.
764 * utils.h (perror_with_name, error, verror, warning, vwarning):
765 Don't declare.
766 * common/common-utils.h: (malloc_failure, internal_error):
767 Likewise.
768
196a707b
GB
7692014-08-19 Gary Benson <gbenson@redhat.com>
770
771 * utils.c (internal_vproblem): Always print the message.
772
ded4fc8f
DE
7732014-08-18 Doug Evans <dje@google.com>
774
775 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
776
950c97d8
JB
7772014-08-18 Joel Brobecker <brobecker@adacore.com>
778
779 * ada-typeprint.c (type_is_full_subrange_of_target_type):
780 Return 0 if TYPE is dynamic.
781 (print_range): Add handling of dynamic ranges.
782
3cdcd0ce
JB
7832014-08-18 Keven Boell <keven.boell@intel.com>
784 Joel Brobecker <brobecker@adacore.com>
785
786 * gdbtypes.h (struct main_type): Add field "data_location".
787 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
788 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
789 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
790 a dynamic data location.
791 (resolve_dynamic_type): Add DW_AT_data_location handling.
792 (copy_recursive, copy_type): Copy the data_location information
793 when present.
794 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
795 * value.c (value_from_contents_and_address): Add
796 DW_AT_data_location handling.
797
08412b07
JB
7982014-08-18 Keven Boell <keven.boell@intel.com>
799 Joel Brobecker <brobecker@adacore.com>
800
801 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
802 field "get_object_address".
803 * dwarf2expr.c (execute_stack_op): Add handling for
804 DW_OP_push_object_address.
805 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
806 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
807 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
808 (dwarf_expr_get_obj_addr): New function.
809 (dwarf_expr_ctx_funcs): Add get_object_address field.
810 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
811 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
812 (dwarf2_evaluate_property): Add parameter "address". Use it.
813 (needs_get_obj_addr): New function.
814 (needs_frame_ctx_funcs): Add get_object_address field.
815 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
816 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
817 (resolve_dynamic_array): Likewise.
818
84754697
JB
8192014-08-18 Joel Brobecker <brobecker@adacore.com>
820
821 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
822 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
823 fixed value for records and unions for which some GNAT encodings
824 are present.
825
da5c522f
JB
8262014-08-18 Joel Brobecker <brobecker@adacore.com>
827
828 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
829 rewrite to avoid "else if" and "else" constructs. Should be
830 a no-op in practice.
831
0d72a7c3
JB
8322014-08-18 Joel Brobecker <brobecker@adacore.com>
833
834 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
835 of lexical block.
836
e66d4446
SC
8372014-08-15 Siva Chandra Reddy <sivachandra@google.com>
838
839 PR c++/17132
840 * eval.c: Update all calls to find_overload_match.
841 * valarith.c: Likewise.
842 (value_user_defined_cpp_op, value_user_defined_op): New
843 argument NOSIDE. Update all callers.
844 * valops.c (find_overload_match): New argument NOSIDE.
845 * value.h (find_overload_match): Update signature.
846
940df408
SC
8472014-08-15 Siva Chandra Reddy <sivachandra@google.com>
848
849 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
850 'items' methods instead of 'iteritems' method on dictionaries.
851
699ca60a
DE
8522014-08-15 Doug Evans <dje@google.com>
853
854 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
855 closer to use.
856
37780ee5
DE
8572014-08-15 Doug Evans <dje@google.com>
858
859 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
860
0ad93d4f
DE
8612014-08-15 Doug Evans <dje@google.com>
862
863 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
864
20d8c372
DE
8652014-08-15 Doug Evans <dje@google.com>
866
867 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
868 unused.
869
cb039ba4
EZ
8702014-08-15 Eli Zaretskii <eliz@gnu.org>
871
872 * dcache.h: Include target.h, to avoid compile time warnings.
873
eb7a547a
JB
8742014-08-15 Joel Brobecker <brobecker@adacore.com>
875
876 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
877 frame_info" partial declaration.
878 * gdbarch.h: Regenerate.
879
783cecc8
YQ
8802014-08-15 Yao Qi <yao@codesourcery.com>
881
882 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
883 Add parameter 'decode_for_pst_p'. Callers update.
884
65c749e7
YQ
8852014-08-13 Yao Qi <yao@codesourcery.com>
886
887 PR build/17104
888 * configure.ac: Use local variable 'pos'.
889 * configure: Regenerated.
890
d769e349
DE
8912014-08-11 Doug Evans <dje@google.com>
892
893 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
894 message, it is redundant with "Reading symbols from ..." message.
895
24f1235e
DE
8962014-08-10 Doug Evans <xdje42@gmail.com>
897
898 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
899
dcd2e6ef
YQ
9002014-08-09 Yao Qi <yao@codesourcery.com>
901
902 PR remote/9053
903 * remote.c (remote_xfer_partial): Remove dead code.
904
070bdf0b
AA
9052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
906
907 * ia64-linux-tdep.c: Include "regset.h".
908 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
909 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
910 (ia64_linux_supply_fpregset): New function.
911 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
912 (ia64_linux_regset_from_core_section): New function.
913 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
914 method.
915
08f9f542
AA
9162014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
917
918 * m68klinux-tdep.c: Include "regset.h".
919 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
920 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
921 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
922 (m68k_linux_regset_from_core_section): New function.
923 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
924 method.
925
8f1cee41
AA
9262014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
927
928 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
929 function. Move logic to...
930 (tilegx_linux_regmap): ... this new register map.
931 (tilegx_linux_regset): Refer to register map, replace supply
932 method by regcache_supply_regset, and add collect method.
933 * tilegx-tdep.h (enum tilegx_regnum): New enum value
934 TILEGX_FIRST_EASY_REGNUM.
935
c5741217
AA
9362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
937
938 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
939 that calls regcache_supply_regset and handles the EPC register
940 separately. Move main logic to...
941 (score7_linux_gregmap): ... this new register map.
942 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
943 (score7_linux_gregset): Refer to register map. Add collect method.
944 (score7_linux_regset_from_core_section): Replace
945 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
946 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
947 (struct regset): Delete unused forward declaraction.
948 (struct pt_regs): Delete structure definition.
949 (elf_gregset_t): Delete typedef.
950
81580573
AA
9512014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
952
953 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
954 (nios2_core_regset): Add collect method.
955
ba199d7d
AA
9562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
957
958 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
959 platform-independent and don't write to read-only input buffer.
960 (m32r_linux_collect_gregset): New function.
961 (m32r_linux_gregset): Add collect method.
962
0006a9da
AA
9632014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
964
965 * hppa-linux-tdep.c (greg_map): Rename to...
966 (hppa_linux_gregmap): ... this. Also convert to
967 regcache_map_entry format.
968 (hppa_linux_supply_regset): Delete function.
969 (hppa_linux_supply_fpregset): Delete function. Move logic to...
970 (hppa_linux_fpregmap): ... this new register map.
971 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
972 register map, replace supply method by regcache_supply_regset, and
973 add collect method regcache_collect_regset.
974
901e1b23
AA
9752014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
976
977 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
978 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
979 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
980 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
981 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
982 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
983 (frv_linux_supply_gregset): Replace main logic by call to
984 regcache_supply_regset, but keep clearing gr32-gr63.
985 (frv_linux_supply_fpregset): Delete function.
986 (frv_linux_gregset): Refer to appropriate register map and add
987 regcache_collect_regset as the collect method.
988 (frv_linux_fpregset): Likewise. Also exchange the supply method
989 by regcache_supply_regset.
990
1d6e7555
AA
9912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
992
993 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
994 by call to alpha_supply_int_regs.
995 (alpha_linux_collect_gregset): New function.
996 (alpha_linux_supply_fpregset): Replace logic by call to
997 alpha_supply_fp_regs.
998 (alpha_linux_collect_fpregset): New function.
999 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1000
d4d793bf
AA
10012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1002
1003 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1004 by call to regcache_collect_regset.
1005 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1006 instead of aarch64_linux_supply_gregset/_fpregset.
1007 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1008 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1009 header file instead.
1010 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1011 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1012 functions. Move logic to ...
1013 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1014 register maps.
1015 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1016 refer to new register maps, replace *_regset_from_core by
1017 regcache_supply_regset, and also use regcache_collect_regset.
1018 * aarch64-linux-tdep.h: Include "regset.h".
1019 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1020 Delete prototypes.
1021 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1022 macros, moved from C source file.
1023 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1024 variable declarations.
1025
99b7da5d
AA
10262014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1027
1028 * s390-linux-nat.c: Include "regset.h".
1029 (regmap_gregset): Delete macro.
1030 (s390_64_regmap_gregset): New register map for
1031 regcache_supply/_collect_regset.
1032 (s390_64_gregset): New regset.
1033 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1034 (regmap_fpregset): Delete macro.
1035 (s390_native_supply, s390_native_collect): Delete functions.
1036 (supply_gregset, fill_gregset): Replace s390-specific regmap
1037 handling by a call to regcache_supply/_collect_regset.
1038 (supply_fpregset, fill_fpregset): Call regcache_supply/
1039 _collect_regset instead of s390_native_supply/_collect.
1040 (fetch_regset, store_regset): Likewise. Also change the last
1041 parameter to a regset instead of a regmap.
1042 (s390_linux_fetch_inferior_registers)
1043 (390_linux_store_inferior_registers): Adjust last parameter in
1044 calls to fetch_regset and store_regset.
1045 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1046 (s390_gregmap): ... this. Also make static const and convert to
1047 regcache_map_entry format.
1048 (s390x_regmap_gregset): Delete.
1049 (s390_regmap_fpregset): Rename to...
1050 (s390_fpregmap): ... this. Make static const and convert to
1051 regcache_map_entry format.
1052 (s390_regmap_upper, s390_regmap_last_break)
1053 (s390x_regmap_last_break, s390_regmap_system_call)
1054 (s390_regmap_tdb): Likewise.
1055 (s390_supply_regset, s390_collect_regset): Remove functions.
1056 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1057 s390_supply_regset.
1058 (s390_gregset, s390_fpregset, s390_upper_regset)
1059 (s390_last_break_regset, s390x_last_break_regset)
1060 (s390_system_call_regset, s390_tdb_regset): Make global and
1061 replace s390_supply/_collect_regset by regcache_supply/
1062 _collect_regset.
1063 (s390x_gregset): Delete.
1064 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1065 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1066 (s390_regmap_fpregset, s390_regmap_last_break)
1067 (s390x_regmap_last_break, s390_regmap_system_call)
1068 (s390_regmap_tdb): Delete global variable declarations.
1069 (s390_gregset, s390_fpregset, s390_last_break_regset)
1070 (s390x_last_break_regset, s390_system_call_regset)
1071 (s390_tdb_regset): New global variable declarations.
1072
0b309272
AA
10732014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1074
1075 * regcache.c: Include "regset.h".
1076 (regcache_transfer_regset): New local function.
1077 (regcache_supply_regset, regcache_collect_regset): New functions.
1078 * regcache.h (struct regcache_map_entry): New structure.
1079 (REGCACHE_MAP_SKIP): New enum value.
1080 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1081
7fefa8d7
AA
10822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1083
1084 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1085 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1086 (ppc_linux_collect_gregset ): Likewise.
1087 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1088 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1089 (ppc_collect_vrregset): Likewise.
1090 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1091 Likewise.
1092
96c4f946
YQ
10932014-08-07 Yao Qi <yao@codesourcery.com>
1094
1095 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1096 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1097 * remote.c (remote_read_bytes): Likewise.
1098
fffbe6a8
YQ
10992014-08-07 Yao Qi <yao@codesourcery.com>
1100
1101 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1102
5ee8a82c
YQ
11032014-08-07 Yao Qi <yao@codesourcery.com>
1104
1105 PR remote/17230
1106 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1107 TARGET_XFER_OK instead of 0.
1108
bb974a24
GB
11092014-08-07 Gary Benson <gbenson@redhat.com>
1110
1111 * common/common-defs.h: Include errno.h.
1112 * defs.h: Do not include errno.h.
1113 * ada-typeprint.c: Likewise.
1114 * c-typeprint.c: Likewise.
1115 * core-regset.c: Likewise.
1116 * corefile.c: Likewise.
1117 * corelow.c: Likewise.
1118 * event-loop.c: Likewise.
1119 * f-typeprint.c: Likewise.
1120 * gnu-nat.c: Likewise.
1121 * go32-nat.c: Likewise.
1122 * i386gnu-nat.c: Likewise.
1123 * m2-typeprint.c: Likewise.
1124 * nat/linux-btrace.c: Likewise.
1125 * p-typeprint.c: Likewise.
1126 * procfs.c: Likewise.
1127 * remote-sim.c: Likewise.
1128 * rs6000-nat.c: Likewise.
1129 * target.c: Likewise.
1130 * typeprint.c: Likewise.
1131 * ui-file.c: Likewise.
1132 * valops.c: Likewise.
1133 * valprint.c: Likewise.
1134
6d3d12eb
GB
11352014-08-07 Gary Benson <gbenson@redhat.com>
1136
1137 * common/common-defs.h: Include string.h.
1138 * aarch64-tdep.c: Do not include string.h.
1139 * ada-exp.y: Likewise.
1140 * ada-lang.c: Likewise.
1141 * ada-lex.l: Likewise.
1142 * ada-typeprint.c: Likewise.
1143 * ada-valprint.c: Likewise.
1144 * aix-thread.c: Likewise.
1145 * alpha-linux-tdep.c: Likewise.
1146 * alpha-mdebug-tdep.c: Likewise.
1147 * alpha-nat.c: Likewise.
1148 * alpha-osf1-tdep.c: Likewise.
1149 * alpha-tdep.c: Likewise.
1150 * alphanbsd-tdep.c: Likewise.
1151 * amd64-dicos-tdep.c: Likewise.
1152 * amd64-linux-tdep.c: Likewise.
1153 * amd64-nat.c: Likewise.
1154 * amd64-sol2-tdep.c: Likewise.
1155 * amd64fbsd-tdep.c: Likewise.
1156 * amd64obsd-tdep.c: Likewise.
1157 * arch-utils.c: Likewise.
1158 * arm-linux-nat.c: Likewise.
1159 * arm-linux-tdep.c: Likewise.
1160 * arm-tdep.c: Likewise.
1161 * arm-wince-tdep.c: Likewise.
1162 * armbsd-tdep.c: Likewise.
1163 * armnbsd-nat.c: Likewise.
1164 * armnbsd-tdep.c: Likewise.
1165 * armobsd-tdep.c: Likewise.
1166 * avr-tdep.c: Likewise.
1167 * ax-gdb.c: Likewise.
1168 * ax-general.c: Likewise.
1169 * bcache.c: Likewise.
1170 * bfin-tdep.c: Likewise.
1171 * breakpoint.c: Likewise.
1172 * build-id.c: Likewise.
1173 * buildsym.c: Likewise.
1174 * c-exp.y: Likewise.
1175 * c-lang.c: Likewise.
1176 * c-typeprint.c: Likewise.
1177 * c-valprint.c: Likewise.
1178 * charset.c: Likewise.
1179 * cli-out.c: Likewise.
1180 * cli/cli-cmds.c: Likewise.
1181 * cli/cli-decode.c: Likewise.
1182 * cli/cli-dump.c: Likewise.
1183 * cli/cli-interp.c: Likewise.
1184 * cli/cli-logging.c: Likewise.
1185 * cli/cli-script.c: Likewise.
1186 * cli/cli-setshow.c: Likewise.
1187 * cli/cli-utils.c: Likewise.
1188 * coffread.c: Likewise.
1189 * common/agent.c: Likewise.
1190 * common/buffer.c: Likewise.
1191 * common/buffer.h: Likewise.
1192 * common/common-utils.c: Likewise.
1193 * common/filestuff.c: Likewise.
1194 * common/filestuff.c: Likewise.
1195 * common/format.c: Likewise.
1196 * common/print-utils.c: Likewise.
1197 * common/rsp-low.c: Likewise.
1198 * common/signals.c: Likewise.
1199 * common/vec.h: Likewise.
1200 * common/xml-utils.c: Likewise.
1201 * core-regset.c: Likewise.
1202 * corefile.c: Likewise.
1203 * corelow.c: Likewise.
1204 * cp-abi.c: Likewise.
1205 * cp-name-parser.y: Likewise.
1206 * cp-support.c: Likewise.
1207 * cp-valprint.c: Likewise.
1208 * cris-tdep.c: Likewise.
1209 * d-exp.y: Likewise.
1210 * darwin-nat.c: Likewise.
1211 * dbxread.c: Likewise.
1212 * dcache.c: Likewise.
1213 * demangle.c: Likewise.
1214 * dicos-tdep.c: Likewise.
1215 * disasm.c: Likewise.
1216 * doublest.c: Likewise.
1217 * dsrec.c: Likewise.
1218 * dummy-frame.c: Likewise.
1219 * dwarf2-frame.c: Likewise.
1220 * dwarf2loc.c: Likewise.
1221 * dwarf2read.c: Likewise.
1222 * elfread.c: Likewise.
1223 * environ.c: Likewise.
1224 * eval.c: Likewise.
1225 * event-loop.c: Likewise.
1226 * exceptions.c: Likewise.
1227 * exec.c: Likewise.
1228 * expprint.c: Likewise.
1229 * f-exp.y: Likewise.
1230 * f-lang.c: Likewise.
1231 * f-typeprint.c: Likewise.
1232 * f-valprint.c: Likewise.
1233 * fbsd-nat.c: Likewise.
1234 * findcmd.c: Likewise.
1235 * findvar.c: Likewise.
1236 * fork-child.c: Likewise.
1237 * frame.c: Likewise.
1238 * frv-linux-tdep.c: Likewise.
1239 * frv-tdep.c: Likewise.
1240 * gdb.c: Likewise.
1241 * gdb_bfd.c: Likewise.
1242 * gdbarch.c: Likewise.
1243 * gdbarch.sh: Likewise.
1244 * gdbtypes.c: Likewise.
1245 * gnu-nat.c: Likewise.
1246 * gnu-v2-abi.c: Likewise.
1247 * gnu-v3-abi.c: Likewise.
1248 * go-exp.y: Likewise.
1249 * go-lang.c: Likewise.
1250 * go32-nat.c: Likewise.
1251 * guile/guile.c: Likewise.
1252 * guile/scm-auto-load.c: Likewise.
1253 * hppa-hpux-tdep.c: Likewise.
1254 * hppa-linux-nat.c: Likewise.
1255 * hppanbsd-tdep.c: Likewise.
1256 * hppaobsd-tdep.c: Likewise.
1257 * i386-cygwin-tdep.c: Likewise.
1258 * i386-dicos-tdep.c: Likewise.
1259 * i386-linux-tdep.c: Likewise.
1260 * i386-nto-tdep.c: Likewise.
1261 * i386-sol2-tdep.c: Likewise.
1262 * i386-tdep.c: Likewise.
1263 * i386bsd-tdep.c: Likewise.
1264 * i386gnu-nat.c: Likewise.
1265 * i386nbsd-tdep.c: Likewise.
1266 * i386obsd-tdep.c: Likewise.
1267 * i387-tdep.c: Likewise.
1268 * ia64-libunwind-tdep.c: Likewise.
1269 * ia64-linux-nat.c: Likewise.
1270 * inf-child.c: Likewise.
1271 * inf-ptrace.c: Likewise.
1272 * inf-ttrace.c: Likewise.
1273 * infcall.c: Likewise.
1274 * infcmd.c: Likewise.
1275 * inflow.c: Likewise.
1276 * infrun.c: Likewise.
1277 * interps.c: Likewise.
1278 * iq2000-tdep.c: Likewise.
1279 * irix5-nat.c: Likewise.
1280 * jv-exp.y: Likewise.
1281 * jv-lang.c: Likewise.
1282 * jv-typeprint.c: Likewise.
1283 * jv-valprint.c: Likewise.
1284 * language.c: Likewise.
1285 * linux-fork.c: Likewise.
1286 * linux-nat.c: Likewise.
1287 * lm32-tdep.c: Likewise.
1288 * m2-exp.y: Likewise.
1289 * m2-typeprint.c: Likewise.
1290 * m32c-tdep.c: Likewise.
1291 * m32r-linux-nat.c: Likewise.
1292 * m32r-linux-tdep.c: Likewise.
1293 * m32r-rom.c: Likewise.
1294 * m32r-tdep.c: Likewise.
1295 * m68hc11-tdep.c: Likewise.
1296 * m68k-tdep.c: Likewise.
1297 * m68kbsd-tdep.c: Likewise.
1298 * m68klinux-nat.c: Likewise.
1299 * m68klinux-tdep.c: Likewise.
1300 * m88k-tdep.c: Likewise.
1301 * machoread.c: Likewise.
1302 * macrocmd.c: Likewise.
1303 * main.c: Likewise.
1304 * mdebugread.c: Likewise.
1305 * mem-break.c: Likewise.
1306 * memattr.c: Likewise.
1307 * memory-map.c: Likewise.
1308 * mep-tdep.c: Likewise.
1309 * mi/mi-cmd-break.c: Likewise.
1310 * mi/mi-cmd-disas.c: Likewise.
1311 * mi/mi-cmd-env.c: Likewise.
1312 * mi/mi-cmd-stack.c: Likewise.
1313 * mi/mi-cmd-var.c: Likewise.
1314 * mi/mi-cmds.c: Likewise.
1315 * mi/mi-console.c: Likewise.
1316 * mi/mi-getopt.c: Likewise.
1317 * mi/mi-interp.c: Likewise.
1318 * mi/mi-main.c: Likewise.
1319 * mi/mi-parse.c: Likewise.
1320 * microblaze-rom.c: Likewise.
1321 * microblaze-tdep.c: Likewise.
1322 * mingw-hdep.c: Likewise.
1323 * minidebug.c: Likewise.
1324 * minsyms.c: Likewise.
1325 * mips-irix-tdep.c: Likewise.
1326 * mips-linux-tdep.c: Likewise.
1327 * mips-tdep.c: Likewise.
1328 * mips64obsd-tdep.c: Likewise.
1329 * mipsnbsd-tdep.c: Likewise.
1330 * mipsread.c: Likewise.
1331 * mn10300-linux-tdep.c: Likewise.
1332 * mn10300-tdep.c: Likewise.
1333 * monitor.c: Likewise.
1334 * moxie-tdep.c: Likewise.
1335 * mt-tdep.c: Likewise.
1336 * nat/linux-btrace.c: Likewise.
1337 * nat/linux-osdata.c: Likewise.
1338 * nat/linux-procfs.c: Likewise.
1339 * nat/linux-ptrace.c: Likewise.
1340 * nat/linux-waitpid.c: Likewise.
1341 * nbsd-tdep.c: Likewise.
1342 * nios2-linux-tdep.c: Likewise.
1343 * nto-procfs.c: Likewise.
1344 * nto-tdep.c: Likewise.
1345 * objc-lang.c: Likewise.
1346 * objfiles.c: Likewise.
1347 * opencl-lang.c: Likewise.
1348 * osabi.c: Likewise.
1349 * osdata.c: Likewise.
1350 * p-exp.y: Likewise.
1351 * p-lang.c: Likewise.
1352 * p-typeprint.c: Likewise.
1353 * parse.c: Likewise.
1354 * posix-hdep.c: Likewise.
1355 * ppc-linux-nat.c: Likewise.
1356 * ppc-sysv-tdep.c: Likewise.
1357 * ppcfbsd-tdep.c: Likewise.
1358 * ppcnbsd-tdep.c: Likewise.
1359 * ppcobsd-tdep.c: Likewise.
1360 * printcmd.c: Likewise.
1361 * procfs.c: Likewise.
1362 * prologue-value.c: Likewise.
1363 * python/py-auto-load.c: Likewise.
1364 * python/py-gdb-readline.c: Likewise.
1365 * ravenscar-thread.c: Likewise.
1366 * regcache.c: Likewise.
1367 * registry.c: Likewise.
1368 * remote-fileio.c: Likewise.
1369 * remote-m32r-sdi.c: Likewise.
1370 * remote-mips.c: Likewise.
1371 * remote-notif.c: Likewise.
1372 * remote-sim.c: Likewise.
1373 * remote.c: Likewise.
1374 * reverse.c: Likewise.
1375 * rs6000-aix-tdep.c: Likewise.
1376 * ser-base.c: Likewise.
1377 * ser-go32.c: Likewise.
1378 * ser-mingw.c: Likewise.
1379 * ser-pipe.c: Likewise.
1380 * ser-tcp.c: Likewise.
1381 * ser-unix.c: Likewise.
1382 * serial.c: Likewise.
1383 * sh-tdep.c: Likewise.
1384 * sh64-tdep.c: Likewise.
1385 * shnbsd-tdep.c: Likewise.
1386 * skip.c: Likewise.
1387 * sol-thread.c: Likewise.
1388 * solib-dsbt.c: Likewise.
1389 * solib-frv.c: Likewise.
1390 * solib-osf.c: Likewise.
1391 * solib-som.c: Likewise.
1392 * solib-spu.c: Likewise.
1393 * solib-target.c: Likewise.
1394 * solib.c: Likewise.
1395 * somread.c: Likewise.
1396 * source.c: Likewise.
1397 * sparc-nat.c: Likewise.
1398 * sparc-sol2-tdep.c: Likewise.
1399 * sparc-tdep.c: Likewise.
1400 * sparc64-tdep.c: Likewise.
1401 * sparc64fbsd-tdep.c: Likewise.
1402 * sparc64nbsd-tdep.c: Likewise.
1403 * sparcnbsd-tdep.c: Likewise.
1404 * spu-linux-nat.c: Likewise.
1405 * spu-multiarch.c: Likewise.
1406 * spu-tdep.c: Likewise.
1407 * stabsread.c: Likewise.
1408 * stack.c: Likewise.
1409 * std-regs.c: Likewise.
1410 * symfile.c: Likewise.
1411 * symmisc.c: Likewise.
1412 * symtab.c: Likewise.
1413 * target.c: Likewise.
1414 * thread.c: Likewise.
1415 * tilegx-linux-nat.c: Likewise.
1416 * tilegx-tdep.c: Likewise.
1417 * top.c: Likewise.
1418 * tracepoint.c: Likewise.
1419 * tui/tui-command.c: Likewise.
1420 * tui/tui-data.c: Likewise.
1421 * tui/tui-disasm.c: Likewise.
1422 * tui/tui-file.c: Likewise.
1423 * tui/tui-layout.c: Likewise.
1424 * tui/tui-out.c: Likewise.
1425 * tui/tui-regs.c: Likewise.
1426 * tui/tui-source.c: Likewise.
1427 * tui/tui-stack.c: Likewise.
1428 * tui/tui-win.c: Likewise.
1429 * tui/tui-windata.c: Likewise.
1430 * tui/tui-winsource.c: Likewise.
1431 * typeprint.c: Likewise.
1432 * ui-file.c: Likewise.
1433 * ui-out.c: Likewise.
1434 * user-regs.c: Likewise.
1435 * utils.c: Likewise.
1436 * v850-tdep.c: Likewise.
1437 * valarith.c: Likewise.
1438 * valops.c: Likewise.
1439 * valprint.c: Likewise.
1440 * value.c: Likewise.
1441 * varobj.c: Likewise.
1442 * vax-tdep.c: Likewise.
1443 * vaxnbsd-tdep.c: Likewise.
1444 * vaxobsd-tdep.c: Likewise.
1445 * windows-nat.c: Likewise.
1446 * xcoffread.c: Likewise.
1447 * xml-support.c: Likewise.
1448 * xstormy16-tdep.c: Likewise.
1449 * xtensa-linux-nat.c: Likewise.
1450
dccbb609
GB
14512014-08-07 Gary Benson <gbenson@redhat.com>
1452
1453 * common/common-defs.h: Include gdb_assert.h.
1454 * aarch64-tdep.c: Do not include gdb_assert.h.
1455 * addrmap.c: Likewise.
1456 * aix-thread.c: Likewise.
1457 * alpha-linux-tdep.c: Likewise.
1458 * alpha-mdebug-tdep.c: Likewise.
1459 * alphanbsd-tdep.c: Likewise.
1460 * amd64-nat.c: Likewise.
1461 * amd64-tdep.c: Likewise.
1462 * amd64bsd-nat.c: Likewise.
1463 * amd64fbsd-nat.c: Likewise.
1464 * amd64fbsd-tdep.c: Likewise.
1465 * amd64nbsd-nat.c: Likewise.
1466 * amd64nbsd-tdep.c: Likewise.
1467 * amd64obsd-nat.c: Likewise.
1468 * amd64obsd-tdep.c: Likewise.
1469 * arch-utils.c: Likewise.
1470 * arm-tdep.c: Likewise.
1471 * armbsd-tdep.c: Likewise.
1472 * auxv.c: Likewise.
1473 * bcache.c: Likewise.
1474 * bfin-tdep.c: Likewise.
1475 * blockframe.c: Likewise.
1476 * breakpoint.c: Likewise.
1477 * bsd-kvm.c: Likewise.
1478 * bsd-uthread.c: Likewise.
1479 * buildsym.c: Likewise.
1480 * c-exp.y: Likewise.
1481 * c-lang.c: Likewise.
1482 * charset.c: Likewise.
1483 * cleanups.c: Likewise.
1484 * cli-out.c: Likewise.
1485 * cli/cli-decode.c: Likewise.
1486 * cli/cli-dump.c: Likewise.
1487 * cli/cli-logging.c: Likewise.
1488 * cli/cli-script.c: Likewise.
1489 * cli/cli-utils.c: Likewise.
1490 * coffread.c: Likewise.
1491 * common/common-utils.c: Likewise.
1492 * common/queue.h: Likewise.
1493 * common/signals.c: Likewise.
1494 * common/vec.h: Likewise.
1495 * complaints.c: Likewise.
1496 * completer.c: Likewise.
1497 * corelow.c: Likewise.
1498 * cp-abi.c: Likewise.
1499 * cp-name-parser.y: Likewise.
1500 * cp-namespace.c: Likewise.
1501 * cp-support.c: Likewise.
1502 * cris-tdep.c: Likewise.
1503 * dbxread.c: Likewise.
1504 * dictionary.c: Likewise.
1505 * doublest.c: Likewise.
1506 * dsrec.c: Likewise.
1507 * dummy-frame.c: Likewise.
1508 * dwarf2-frame-tailcall.c: Likewise.
1509 * dwarf2-frame.c: Likewise.
1510 * dwarf2expr.c: Likewise.
1511 * dwarf2loc.c: Likewise.
1512 * dwarf2read.c: Likewise.
1513 * eval.c: Likewise.
1514 * event-loop.c: Likewise.
1515 * exceptions.c: Likewise.
1516 * expprint.c: Likewise.
1517 * f-valprint.c: Likewise.
1518 * fbsd-nat.c: Likewise.
1519 * findvar.c: Likewise.
1520 * frame-unwind.c: Likewise.
1521 * frame.c: Likewise.
1522 * frv-tdep.c: Likewise.
1523 * gcore.c: Likewise.
1524 * gdb-dlfcn.c: Likewise.
1525 * gdb_bfd.c: Likewise.
1526 * gdbarch.c: Likewise.
1527 * gdbarch.sh: Likewise.
1528 * gdbtypes.c: Likewise.
1529 * gnu-nat.c: Likewise.
1530 * gnu-v3-abi.c: Likewise.
1531 * go-lang.c: Likewise.
1532 * guile/scm-exception.c: Likewise.
1533 * guile/scm-gsmob.c: Likewise.
1534 * guile/scm-lazy-string.c: Likewise.
1535 * guile/scm-math.c: Likewise.
1536 * guile/scm-pretty-print.c: Likewise.
1537 * guile/scm-safe-call.c: Likewise.
1538 * guile/scm-utils.c: Likewise.
1539 * guile/scm-value.c: Likewise.
1540 * h8300-tdep.c: Likewise.
1541 * hppa-hpux-nat.c: Likewise.
1542 * hppa-tdep.c: Likewise.
1543 * hppanbsd-tdep.c: Likewise.
1544 * hppaobsd-tdep.c: Likewise.
1545 * i386-darwin-nat.c: Likewise.
1546 * i386-darwin-tdep.c: Likewise.
1547 * i386-nto-tdep.c: Likewise.
1548 * i386-tdep.c: Likewise.
1549 * i386bsd-nat.c: Likewise.
1550 * i386fbsd-tdep.c: Likewise.
1551 * i386gnu-nat.c: Likewise.
1552 * i386nbsd-tdep.c: Likewise.
1553 * i386obsd-tdep.c: Likewise.
1554 * i387-tdep.c: Likewise.
1555 * ia64-libunwind-tdep.c: Likewise.
1556 * ia64-tdep.c: Likewise.
1557 * inf-ptrace.c: Likewise.
1558 * inf-ttrace.c: Likewise.
1559 * infcall.c: Likewise.
1560 * infcmd.c: Likewise.
1561 * infrun.c: Likewise.
1562 * inline-frame.c: Likewise.
1563 * interps.c: Likewise.
1564 * jv-lang.c: Likewise.
1565 * jv-typeprint.c: Likewise.
1566 * linux-fork.c: Likewise.
1567 * linux-nat.c: Likewise.
1568 * linux-thread-db.c: Likewise.
1569 * m32c-tdep.c: Likewise.
1570 * m32r-linux-nat.c: Likewise.
1571 * m32r-tdep.c: Likewise.
1572 * m68k-tdep.c: Likewise.
1573 * m68kbsd-nat.c: Likewise.
1574 * m68kbsd-tdep.c: Likewise.
1575 * m88k-tdep.c: Likewise.
1576 * machoread.c: Likewise.
1577 * macroexp.c: Likewise.
1578 * macrotab.c: Likewise.
1579 * maint.c: Likewise.
1580 * mdebugread.c: Likewise.
1581 * memory-map.c: Likewise.
1582 * mep-tdep.c: Likewise.
1583 * mi/mi-common.c: Likewise.
1584 * microblaze-tdep.c: Likewise.
1585 * mingw-hdep.c: Likewise.
1586 * mips-linux-nat.c: Likewise.
1587 * mips-linux-tdep.c: Likewise.
1588 * mips-tdep.c: Likewise.
1589 * mips64obsd-tdep.c: Likewise.
1590 * mipsnbsd-tdep.c: Likewise.
1591 * mn10300-linux-tdep.c: Likewise.
1592 * mn10300-tdep.c: Likewise.
1593 * moxie-tdep.c: Likewise.
1594 * mt-tdep.c: Likewise.
1595 * nat/linux-btrace.c: Likewise.
1596 * nat/linux-osdata.c: Likewise.
1597 * nat/linux-ptrace.c: Likewise.
1598 * nat/mips-linux-watch.c: Likewise.
1599 * nios2-linux-tdep.c: Likewise.
1600 * nios2-tdep.c: Likewise.
1601 * objc-lang.c: Likewise.
1602 * objfiles.c: Likewise.
1603 * obsd-nat.c: Likewise.
1604 * opencl-lang.c: Likewise.
1605 * osabi.c: Likewise.
1606 * parse.c: Likewise.
1607 * ppc-linux-nat.c: Likewise.
1608 * ppc-sysv-tdep.c: Likewise.
1609 * ppcfbsd-nat.c: Likewise.
1610 * ppcfbsd-tdep.c: Likewise.
1611 * ppcnbsd-nat.c: Likewise.
1612 * ppcnbsd-tdep.c: Likewise.
1613 * ppcobsd-nat.c: Likewise.
1614 * ppcobsd-tdep.c: Likewise.
1615 * printcmd.c: Likewise.
1616 * procfs.c: Likewise.
1617 * prologue-value.c: Likewise.
1618 * psymtab.c: Likewise.
1619 * python/py-lazy-string.c: Likewise.
1620 * python/py-value.c: Likewise.
1621 * regcache.c: Likewise.
1622 * reggroups.c: Likewise.
1623 * registry.c: Likewise.
1624 * remote-sim.c: Likewise.
1625 * remote.c: Likewise.
1626 * rs6000-aix-tdep.c: Likewise.
1627 * rs6000-tdep.c: Likewise.
1628 * s390-linux-tdep.c: Likewise.
1629 * score-tdep.c: Likewise.
1630 * ser-base.c: Likewise.
1631 * ser-mingw.c: Likewise.
1632 * sh-tdep.c: Likewise.
1633 * sh64-tdep.c: Likewise.
1634 * solib-darwin.c: Likewise.
1635 * solib-spu.c: Likewise.
1636 * solib-svr4.c: Likewise.
1637 * source.c: Likewise.
1638 * sparc-nat.c: Likewise.
1639 * sparc-sol2-tdep.c: Likewise.
1640 * sparc-tdep.c: Likewise.
1641 * sparc64-sol2-tdep.c: Likewise.
1642 * sparc64-tdep.c: Likewise.
1643 * sparc64fbsd-tdep.c: Likewise.
1644 * sparc64nbsd-tdep.c: Likewise.
1645 * sparc64obsd-tdep.c: Likewise.
1646 * sparcnbsd-tdep.c: Likewise.
1647 * sparcobsd-tdep.c: Likewise.
1648 * spu-multiarch.c: Likewise.
1649 * spu-tdep.c: Likewise.
1650 * stabsread.c: Likewise.
1651 * stack.c: Likewise.
1652 * symfile.c: Likewise.
1653 * symtab.c: Likewise.
1654 * target-descriptions.c: Likewise.
1655 * target-memory.c: Likewise.
1656 * target.c: Likewise.
1657 * tic6x-linux-tdep.c: Likewise.
1658 * tic6x-tdep.c: Likewise.
1659 * tilegx-linux-nat.c: Likewise.
1660 * tilegx-tdep.c: Likewise.
1661 * top.c: Likewise.
1662 * tramp-frame.c: Likewise.
1663 * tui/tui-out.c: Likewise.
1664 * tui/tui-winsource.c: Likewise.
1665 * ui-out.c: Likewise.
1666 * user-regs.c: Likewise.
1667 * utils.c: Likewise.
1668 * v850-tdep.c: Likewise.
1669 * valops.c: Likewise.
1670 * value.c: Likewise.
1671 * varobj.c: Likewise.
1672 * vax-nat.c: Likewise.
1673 * xml-syscall.c: Likewise.
1674 * xml-tdesc.c: Likewise.
1675 * xstormy16-tdep.c: Likewise.
1676 * xtensa-linux-nat.c: Likewise.
1677 * xtensa-tdep.c: Likewise.
1678
e76df0d0
GB
16792014-08-07 Gary Benson <gbenson@redhat.com>
1680
1681 * common/common-defs.h: Include common-utils.h.
1682 * defs.h: Do not include common-utils.h.
1683 * common/gdb_assert.h: Likewise.
1684 * darwin-nat.h: Likewise.
1685 * nat/linux-btrace.c: Likewise.
1686 * target/waitstatus.h: Likewise.
1687
4cb9c816
GB
16882014-08-07 Gary Benson <gbenson@redhat.com>
1689
1690 * common/common-defs.h: Include ptid.h.
1691 * defs.h: Do not include ptid.h.
1692 * inferior.h: Likewise.
1693 * infrun.h: Likewise.
1694 * nat/linux-btrace.h: Likewise.
1695 * nat/linux-osdata.h: Likewise.
1696 * target/waitstatus.h: Likewise.
1697
3995eeee
GB
16982014-08-07 Gary Benson <gbenson@redhat.com>
1699
1700 * common/common-defs.h: Include gdb_locale.h.
1701 * defs.h: Do not include gdb_locale.h.
1702
cb9f1a9b
GB
17032014-08-07 Gary Benson <gbenson@redhat.com>
1704
1705 * common/common-defs.h: Include gdb/signals.h.
1706 * defs.h: Do not include gdb/signals.h.
1707
a5fceff8
GB
17082014-08-07 Gary Benson <gbenson@redhat.com>
1709
1710 * common/common-defs.h: Include pathmax.h.
1711 * defs.h: Do not include pathmax.h.
1712
b9391142
GB
17132014-08-07 Gary Benson <gbenson@redhat.com>
1714
1715 * common/common-defs.h: Include libiberty.h.
1716 * defs.h: Do not include libiberty.h.
1717 * common/queue.h: Likewise.
1718 * cp-name-parser.y: Likewise.
1719 * mi/mi-cmd-catch.c: Likewise.
1720 * python/python.c: Likewise.
1721
0e443c87
GB
17222014-08-07 Gary Benson <gbenson@redhat.com>
1723
1724 * common/common-defs.h: Include ansidecl.h.
1725 * defs.h: Do not include ansidecl.h.
1726 * common/buffer.h: Likewise.
1727 * common/common-utils.h: Likewise.
1728
8ebb3f56
GB
17292014-08-07 Gary Benson <gbenson@redhat.com>
1730
1731 * common/common-defs.h: Include stddef.h.
1732 * defs.h: Do not include stddef.h.
1733 * common/common-utils.h: Likewise.
1734 * amd64fbsd-nat.c: Likewise.
1735 * bcache.c: Likewise.
1736 * charset.c: Likewise.
1737 * common/buffer.h: Likewise.
1738 * common/vec.h: Likewise.
1739 * i386bsd-nat.c: Likewise.
1740 * nat/linux-btrace.h: Likewise.
1741 * ppcfbsd-nat.c: Likewise.
1742 * ppcnbsd-tdep.h: Likewise.
1743 * ppcobsd-nat.c: Likewise.
1744 * ppcobsd-tdep.h: Likewise.
1745 * python/py-gdb-readline.c: Likewise.
1746
8980bdf6
GB
17472014-08-07 Gary Benson <gbenson@redhat.com>
1748
1749 * common/common-defs.h: Include stdarg.h.
1750 * defs.h: Do not include stdarg.h.
1751 * ada-lang.c: Likewise.
1752 * common/common-utils.h: Likewise.
1753 * guile/scm-string.c: Likewise.
1754 * guile/scm-utils.c: Likewise.
1755 * m32c-tdep.c: Likewise.
1756
d7096f71
GB
17572014-08-07 Gary Benson <gbenson@redhat.com>
1758
1759 * common/common-defs.h: Include stdlib.h.
1760 * defs.h: Do not include stdlib.h.
1761 * addrmap.c: Likewise.
1762 * bcache.c: Likewise.
1763 * common/buffer.c: Likewise.
1764 * common/common-utils.c: Likewise.
1765 * cp-name-parser.y: Likewise.
1766 * go32-nat.c: Likewise.
1767 * mn10300-linux-tdep.c: Likewise.
1768 * nat/linux-osdata.c: Likewise.
1769 * tui/tui.c: Likewise.
1770 * windows-nat.c: Likewise.
1771
d02f550d
GB
17722014-08-07 Gary Benson <gbenson@redhat.com>
1773
1774 * common/common-defs.h: Include stdio.h.
1775 * defs.h: Do not include stdio.h.
1776 * ada-lang.c: Likewise.
1777 * common/buffer.c: Likewise.
1778 * common/common-utils.c: Likewise.
1779 * cp-name-parser.y: Likewise.
1780 * gnu-nat.c: Likewise.
1781 * go32-nat.c: Likewise.
1782 * i386gnu-nat.c: Likewise.
1783 * proc-api.c: Likewise.
1784 * proc-events.c: Likewise.
1785 * proc-flags.c: Likewise.
1786 * proc-why.c: Likewise.
1787 * python/python-internal.h: Likewise.
1788 * target-memory.c: Likewise.
1789 * tui/tui-io.c: Likewise.
1790 * tui/tui.c: Likewise.
1791
b6d7a4bf
SM
17922014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1793
1794 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1795 (scan_dyntag_auxv): Same.
1796
af19829b
YQ
17972014-08-06 Yao Qi <yao@codesourcery.com>
1798
1799 * amd64-linux-nat.c: Remove duplicated include
1800 "x86-linux-nat.h".
1801 * i386-linux-nat.c: Likewise.
1802
8e07a239
YQ
18032014-08-06 Yao Qi <yao@codesourcery.com>
1804
1805 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1806 operand" with "Special opcode" in comments.
1807
7bfe8241
GB
18082014-08-05 Gary Benson <gbenson@redhat.com>
1809
1810 * interps.c (initialize_interps): Remove prototype.
1811 (interpreter_initialized): Remove static global.
1812 (interp_add): Do not call initialize_interps.
1813 (initialize_interps): Remove function.
1814
d6c95504
GB
18152014-08-05 Gary Benson <gbenson@redhat.com>
1816
1817 * utils.c (vwarning): Remove spurious va_end.
1818
241fd515
AM
18192014-08-05 Alan Modra <amodra@gmail.com>
1820
1821 * charset.c (convert_between_encodings): Cast result of obstack_base.
1822 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1823 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1824 (read_unwind_info): Use size_t for some locals.
1825 * jit.c (finalize_symtab): Likewise.
1826 * utils.c (hashtab_obstack_allocate): Likewise.
1827 * symmisc.c (print_objfile_statistics): Update format strings.
1828
dc304a94
JK
18292014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1830
1831 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1832 (Changes in GDB 7.8): ... here.
1833
3cecbbbe
TT
18342014-08-04 Tom Tromey <tromey@redhat.com>
1835
1836 * target.c (set_targetdebug): New function.
1837 (initialize_targets): Pass set_targetdebug when creating "set
1838 debug target".
1839
6908c509
JB
18402014-08-01 Joel Brobecker <brobecker@adacore.com>
1841
1842 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1843 if detecting a variable-sized field that is not the last field.
1844 Fix struct type length computation.
1845
53e8f97d
JB
18462014-08-01 Joel Brobecker <brobecker@adacore.com>
1847
1848 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1849 Add debug trace.
1850
e068c55d
JB
18512014-08-01 Joel Brobecker <brobecker@adacore.com>
1852
1853 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1854 Remove "+ 8" offset in computation of CHAIN_VMA.
1855
4d4ca2a1
DE
18562014-07-31 Doug Evans <dje@google.com>
1857
1858 * inflow.c (child_terminal_inferior): Add comment.
1859 (child_terminal_ours_for_output): Add comment.
1860 (child_terminal_ours): Add comment.
1861 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1862 (linux_nat_terminal_ours): Add comment.
1863
462f517e
GB
18642014-07-31 Gary Benson <gbenson@redhat.com>
1865
1866 * common/btrace-common.h: Do not include defs.h or server.h.
1867 * nat/mips-linux-watch.h: Likewise.
1868 * gdb-dlfcn.h: Do not include defs.h.
1869 * tracefile.h: Likewise.
1870
74228e77
RM
18712014-07-30 Roland McGrath <mcgrathr@google.com>
1872
1873 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1874
014f9477
TT
18752014-07-30 Tom Tromey <tromey@redhat.com>
1876
1877 * bsd-kvm.c (bsd_kvm_open): Constify.
1878 * corelow.c (core_open): Constify.
1879 * ctf.c (ctf_open): Constify.
1880 * dbug-rom.c (dbug_open): Constify.
1881 * exec.c (exec_open): Constify.
1882 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1883 * microblaze-rom.c (picobug_open): Constify.
1884 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1885 Constify.
1886 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1887 * record-btrace.c (record_btrace_open): Constify.
1888 * record-full.c (record_full_core_open_1, record_full_open_1)
1889 (record_full_open): Constify.
1890 * remote-m32r-sdi.c (m32r_open): Constify.
1891 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1892 (rockhopper_open, lsi_open): Constify.
1893 * remote-sim.c (gdbsim_open): Constify.
1894 * remote.c (remote_open, extended_remote_open, remote_open_1):
1895 Constify.
1896 * target.h (struct target_ops) <to_open>: Make "arg" const.
1897 * tracefile-tfile.c (tfile_open): Constify.
1898
e799154c
TT
18992014-07-30 Tom Tromey <tromey@redhat.com>
1900
1901 * breakpoint.c (map_breakpoint_numbers): Update.
1902 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1903 (get_number_const): New function.
1904 (get_number): Rewrite using get_number_const.
1905 (init_number_or_range): Make "string" const.
1906 (number_is_in_list): Make "list" const.
1907 * cli/cli-utils.h (get_number_const): Declare.
1908 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1909 (init_number_or_range, number_is_in_list): Update.
1910 * printcmd.c (map_display_numbers): Update.
1911 * value.c (value_from_history_ref): Constify.
1912 * value.h (value_from_history_ref): Update.
1913
5f08566b
TT
19142014-07-30 Tom Tromey <tromey@redhat.com>
1915
1916 * corefile.c (hook_type, call_extra_exec_file_hooks)
1917 (specify_exec_file_hook): Constify.
1918 * exec.c (exec_file_attach): Make "filename" const.
1919 * gdbcore.h (deprecated_exec_file_display_hook)
1920 (specify_exec_file_hook, exec_file_attach): Constify.
1921 * main.c (captured_main): Use catch_command_errors_const.
1922
8981c758
TT
19232014-07-30 Tom Tromey <tromey@redhat.com>
1924
1925 * target.c (open_target): New function.
1926 (add_target_with_completer, add_deprecated_target_alias): Use
1927 set_cmd_sfunc, set_cmd_context.
1928 (debug_to_open): Remove.
1929 (setup_target_debug): Update.
1930
a1c7835a
YQ
19312014-07-30 Yao Qi <yao@codesourcery.com>
1932
1933 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1934 comments.
1935 * parse.c (exp_iterate): Update comments.
1936
976411d6
GB
19372014-07-30 Gary Benson <gbenson@redhat.com>
1938
1939 * common/common-defs.h: New file.
1940 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1941 * defs.h: Include common-defs.h.
1942 Do not include config.h or build-gnulib/config.h.
1943
5d4848a4
GB
19442014-07-30 Gary Benson <gbenson@redhat.com>
1945
1946 * common/common-utils.h: Do not include config.h.
1947 * nat/linux-btrace.h: Likewise.
1948
d41f6d8e
GB
19492014-07-30 Gary Benson <gbenson@redhat.com>
1950
1951 * btrace.c: Include defs.h.
1952 * common/ptid.c: Include defs.h or server.h as appropriate.
1953 * nat/mips-linux-watch.c: Likewise.
1954
84202f9c
TT
19552014-07-29 Tom Tromey <tromey@redhat.com>
1956
1957 * target.c (target_is_pushed): Simplify.
1958
2530441c
JB
19592014-07-29 Joel Brobecker <brobecker@adacore.com>
1960
1961 GDB 7.8 released.
1962
7e09a223
YQ
19632014-07-29 Yao Qi <yao@codesourcery.com>
1964
1965 PR gdb/17206
1966 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1967
7ebdbe92
DE
19682014-07-28 Doug Evans <xdje42@gmail.com>
1969
1970 PR guile/17203
1971 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1972 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1973 parameters.
1974
f347ffc9
WN
19752014-07-28 Will Newton <will.newton@linaro.org>
1976
1977 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1978 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1979 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1980 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1981 (THUMB2_EABI_SYSCALL): Likewise.
1982 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1983 struct tramp_frame.
1984 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1985 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1986
37c5f1f7
DE
19872014-07-27 Doug Evans <xdje42@gmail.com>
1988
1989 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1990
0c3abbc7
DE
19912014-07-27 Doug Evans <xdje42@gmail.com>
1992
1993 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1994
e76c5d17
DE
19952014-07-26 Ludovic Courtès <ludo@gnu.org>
1996 Doug Evans <xdje42@gmail.com>
1997
1998 PR guile/17146
1999 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2000 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2001 * configure.ac: Try to use guild to compile an scm file, if it fails
2002 then disable guile support.
2003 * configure: Regenerate.
2004 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2005 GUILE_FILE_LIST.
2006 (GUILE_COMPILED_FILES): New variable.
2007 (GUILE_FILES) Update.
2008 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2009 (stamp-guile): Compile scm files.
2010 * guile/guile.c (boot_guile_support): New function.
2011 (standard_throw_args_p): New function.
2012 (print_standard_throw_error, print_throw_error): New functions.
2013 (handle_boot_error): New function.
2014 (initialize_scheme_side): Rewrite to call boot_guile_support.
2015 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2016 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2017
186fcde0
DE
20182014-07-26 Ludovic Courtès <ludo@gnu.org>
2019 Doug Evans <xdje42@gmail.com>
2020
2021 PR guile/17146
2022 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2023 * guile/lib/gdb/support.scm: New file.
2024 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2025 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2026 All uses updated.
2027 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2028 All uses updated.
2029 (%assert-type): Ditto, and renamed to assert-type.
2030 (%exception-print-style): Delete.
2031
4df42755
DE
20322014-07-26 Doug Evans <xdje42@gmail.com>
2033
2034 PR build/17105
2035 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2036 * configure: Regenerate.
2037 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2038 PYTHON_FILES.
2039 (PYTHON_FILES): New variable.
2040 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2041 (GUILE_FILES): New variable.
2042 (stamp-python, install-python, uninstall-python): Handle empty
2043 file list.
2044 (stamp-guile, install-guile, uninstall-guile): Ditto.
2045
ee7333ae
DE
20462014-07-26 Doug Evans <xdje42@gmail.com>
2047
2048 PR guile/17177
2049 * guile/lib/gdb.scm (pretty-printers): Export.
2050 (set-pretty-printers!): Export.
2051 * guile/lib/gdb/printing.scm (gdb module): Update.
2052 (prepend-pretty-printer!, append-pretty-printer!): Update.
2053 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2054 (pretty_printer_list_var): Delete.
2055 (pretty_printer_list): New static global.
2056 (gdbscm_pretty_printers): New function.
2057 (gdbscm_set_pretty_printers_x): New function.
2058 (ppscm_find_pretty_printer_from_gdb): Update.
2059 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2060 (gdbscm_initialize_pretty_printers): Update.
2061
74edf516
DE
20622014-07-26 Doug Evans <xdje42@gmail.com>
2063
2064 PR 17185
2065 * configure.ac: Add check for header gc/gc.h.
2066 Add check for function setenv.
2067 * configure: Regenerate.
2068 * config.in: Regenerate.
2069 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2070
d54398a7
MR
20712014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2072
2073 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2074 variation in gdbarch matching.
2075
ab16fce8
TT
20762014-07-25 Tom Tromey <tromey@redhat.com>
2077
2078 * exec.c (using_exec_ops): Remove.
2079 (exec_close_1): Update. Remove extraneous block, reindent.
2080 (add_target_sections): Use target_is_pushed.
2081
88056fbb
PA
20822014-07-25 Pedro Alves <palves@redhat.com>
2083
2084 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2085 * monitor.c (monitor_create_inferior): Likewise.
2086 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2087 * remote-sim.c (gdbsim_create_inferior): Likewise.
2088 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2089 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2090 * windows-nat.c (do_initial_windows_stuff): Likewise.
2091
70509625
PA
20922014-07-25 Pedro Alves <palves@redhat.com>
2093
2094 * NEWS: Mention signal passing and "signal" command changes.
2095 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2096 comment.
2097 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2098 call.
2099 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2100 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2101 (jump_command): Adjust clear_proceed_status call.
2102 (signal_command): Warn if other thread that are resumed have
2103 signals that will be delivered. Adjust clear_proceed_status call.
2104 (until_next_command, finish_command)
2105 (proceed_after_attach_callback, attach_command_post_wait)
2106 (attach_command): Adjust clear_proceed_status call.
2107 * infrun.c (proceed_after_vfork_done): Likewise.
2108 (proceed_after_attach_callback): Adjust comment.
2109 (clear_proceed_status_thread): Clear stop_signal if not in pass
2110 state.
2111 (clear_proceed_status_callback): Delete.
2112 (clear_proceed_status): New 'step' parameter. Only clear the
2113 proceed status of threads the command being prepared is about to
2114 resume.
2115 (proceed): If passed in an explicit signal, override stop_signal
2116 with it. Don't pass the last stop signal to the thread we're
2117 resuming.
2118 (init_wait_for_inferior): Adjust clear_proceed_status call.
2119 (switch_back_to_stepped_thread): Clear the signal if it should not
2120 be passed.
2121 * infrun.h (clear_proceed_status): New 'step' parameter.
2122 (user_visible_resume_ptid): Add comment.
2123 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2124 signal is in pass state.
2125 * remote.c (append_pending_thread_resumptions): Likewise.
2126 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2127
d8be2939
TT
21282014-07-25 Tom Tromey <tromey@redhat.com>
2129
2130 * target.h (target_stopped_data_address)
2131 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2132 parentheses.
2133
7d0d9d2b
PL
21342014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2135
2136 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2137 comments.
2138 (avr_pointer_to_address): Likewise.
2139
e9e7f724
TT
21402014-07-24 Tom Tromey <tromey@redhat.com>
2141
2142 * monitor.c (compile_pattern): Update.
2143 * target.h (struct target_ops) <to_shortname, to_longname,
2144 to_doc>: Now const.
2145
1947513d
TT
21462014-07-24 Tom Tromey <tromey@redhat.com>
2147
2148 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2149 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2150 (add_info_alias, add_com): Make "doc" const.
2151 (print_doc_line): Make "str" const.
2152 (delete_cmd): Update.
2153 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2154 (print_doc_line): Update.
2155 * cli/cli-script.c (document_command): Update.
2156 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2157 (add_com, add_info, add_info_alias): Update.
2158 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2159 * python/py-cmd.c (cmdpy_destroyer): Update.
2160
64e61d29
TT
21612014-07-24 Tom Tromey <tromey@redhat.com>
2162
2163 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2164 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2165 (help_cmd_list): Constify.
2166 (lookup_cmd): Update.
2167 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2168 const.
2169 (help_cmd_list, apropos_cmd): Update.
2170 * cli/cli-script.c (show_user): Update.
2171 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2172 * cli/cli-setshow.h (cmd_show_list): Update.
2173 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2174 (cmd_show_list): Update.
2175 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2176 * python/py-cmd.c (cmdpy_destroyer): Update.
2177
429e55ea
TT
21782014-07-24 Tom Tromey <tromey@redhat.com>
2179
2180 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2181 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2182 const.
2183 * command.h (deprecate_cmd): Update.
2184 * maint.c (maintenance_do_deprecate): Add casts.
2185
64669f3b
TT
21862014-07-24 Tom Tromey <tromey@redhat.com>
2187
2188 * cli/cli-decode.c (help_cmd): Make parameter "const".
2189 * cli/cli-decode.h (help_cmd): Update.
2190
d3d3328b
TT
21912014-07-24 Tom Tromey <tromey@redhat.com>
2192
2193 * stack.c (up_silently_base, down_silently_base): Make argument
2194 const.
2195
414842dc
TT
21962014-07-24 Tom Tromey <tromey@redhat.com>
2197
2198 * solib.c (solib_add): Make "pattern" const.
2199 * solib.h (solib_add): Update.
2200
baa336ce
TT
22012014-07-24 Tom Tromey <tromey@redhat.com>
2202
2203 * remote.c (remote_serial_open, print_packet, putpkt)
2204 (putpkt_binary): Constify.
2205 * remote.h (putpkt): Update.
2206
5a19e2d0
TT
22072014-07-24 Tom Tromey <tromey@redhat.com>
2208
2209 * monitor.c (monitor_open): Make "args" const.
2210 * monitor.h (monitor_open): Update.
2211
fc4baa5e
TT
22122014-07-24 Tom Tromey <tromey@redhat.com>
2213
2214 * maint.c (match_bfd_flags): Make "string" const.
2215 (print_bfd_section_info): Remove casts.
2216 (print_objfile_section_info): Make "string" const.
2217
0d5f0dbe
TT
22182014-07-24 Tom Tromey <tromey@redhat.com>
2219
2220 * inf-child.c (inf_child_open_target): Make "arg" const.
2221 * inf-child.h (inf_child_open_target): Update.
2222
41c77899
TT
22232014-07-24 Tom Tromey <tromey@redhat.com>
2224
2225 * environ.c (unset_in_environ): Make "var" const.
2226 * environ.h (unset_in_environ): Update.
2227
93db0d79
TT
22282014-07-24 Tom Tromey <tromey@redhat.com>
2229
2230 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2231 Make "cmd" const.
2232 (scan_filename_with_cleanup): Likewise.
2233 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2234 Make arguments const.
2235 (restore_command): Update.
2236
36d6eb95
PA
22372014-07-24 Pedro Alves <palves@redhat.com>
2238
2239 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2240
8009206a
TT
22412014-07-24 Tom Tromey <tromey@redhat.com>
2242 Gary Benson <gbenson@redhat.com>
2243
2244 * nat/linux-ptrace.c (additional_flags): New global.
2245 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2246 additional_flags; don't check GDBSERVER.
2247 (linux_ptrace_set_additional_flags): New function.
2248 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2249 Declare.
2250 * linux-nat.c (_initialize_linux_nat): Call
2251 linux_ptrace_set_additional_flags.
2252
a7068b60
TT
22532014-07-24 Tom Tromey <tromey@redhat.com>
2254
2255 * make-target-delegates (munge_type, write_debugmethod): New
2256 functions.
2257 (debug_names): New global.
2258 ($TARGET_DEBUG_PRINTER): New global.
2259 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2260 name.
2261 Write debug methods. Generate init_debug_target.
2262 * target-debug.h: New file.
2263 * target-delegates.c: Rebuild.
2264 * target.c: Include target-debug.h.
2265 (debug_target): Hoist definition.
2266 (target_kill, target_get_section_table, target_memory_map)
2267 (target_flash_erase, target_flash_done, target_detach)
2268 (target_disconnect, target_wait, target_resume)
2269 (target_pass_signals, target_program_signals, target_follow_fork)
2270 (target_mourn_inferior, target_search_memory)
2271 (target_thread_address_space, target_close)
2272 (target_find_new_threads, target_core_of_thread)
2273 (target_verify_memory, target_insert_mask_watchpoint)
2274 (target_remove_mask_watchpoint): Remove targetdebug code.
2275 (debug_to_post_attach, debug_to_prepare_to_store)
2276 (debug_to_files_info, debug_to_insert_breakpoint)
2277 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2278 (debug_to_region_ok_for_hw_watchpoint)
2279 (debug_to_can_accel_watchpoint_condition)
2280 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2281 (debug_to_watchpoint_addr_within_range)
2282 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2283 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2284 (debug_to_terminal_init, debug_to_terminal_inferior)
2285 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2286 (debug_to_terminal_save_ours, debug_to_terminal_info)
2287 (debug_to_load, debug_to_post_startup_inferior)
2288 (debug_to_insert_fork_catchpoint)
2289 (debug_to_remove_fork_catchpoint)
2290 (debug_to_insert_vfork_catchpoint)
2291 (debug_to_remove_vfork_catchpoint)
2292 (debug_to_insert_exec_catchpoint)
2293 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2294 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2295 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2296 (setup_target_debug): Call init_debug_target.
2297 * target.h (TARGET_DEBUG_PRINTER): New macro.
2298 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2299 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2300
2c51604d
GB
23012014-07-24 Gary Benson <gbenson@redhat.com>
2302
2303 * exceptions.h (throw_vfatal): Renamed to...
2304 (throw_vquit): New declaration.
2305 (throw_quit): Likewise.
2306 * exceptions.c (throw_vfatal): Renamed to...
2307 (throw_vquit): New function.
2308 (throw_quit): Likewise.
2309 (throw_error): Call throw_verror rather than throw_it.
2310 * utils.h (vfatal): Removed.
2311 (fatal): Likewise.
2312 * utils.c (vfatal): Removed.
2313 (fatal): Likewise.
2314 (internal_verror): Replaced call to fatal with call to throw_quit.
2315 (quit): Replaced calls to fatal with calls to throw_quit.
2316
34211963
ME
23172014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2318
2319 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2320 target_read_code.
2321
a52b4d3e
ME
23222014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2323
2324 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2325 less than zero in conditional expression.
2326
a8bdc56b
TT
23272014-07-23 Tom Tromey <tromey@redhat.com>
2328
2329 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2330 ($INTRO_PART): Don't match whitespace.
2331 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2332 argument matching.
2333 ($METHOD): Add $METHOD_TRAILER.
2334 (trim): Rewrite.
2335 (scan_target_h): New sub.
2336 Change main loop not to collect state.
2337 * target-delegates.c: Rebuild.
2338
91b52240
GB
23392014-07-23 Gary Benson <gbenson@redhat.com>
2340
2341 * cp-support.c (gdb_demangle): Fix build on systems without
2342 sigaltstack.
2343
45326f6f
JK
23442014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2345
2346 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2347 for reference entry value target data value.
2348
e214cf6c
JK
23492014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2350
2351 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2352 value_available_contents_eq.
2353
bddbbedd
PA
23542014-07-22 Pedro Alves <palves@redhat.com>
2355
2356 * value.c (allocate_optimized_out_value): Don't mark value as
2357 non-lazy.
2358
45c71484
JW
23592014-07-22 Jiong Wang <jiong.wang@arm.com>
2360
2361 * MAINTAINERS (Write After Approval): Update my email address.
2362
9597b22a
DE
23632014-07-20 Doug Evans <dje@google.com>
2364
2365 PR server/17147
2366 * remote.c (putpkt_binary): Add text to error message.
2367
91101fe5
YQ
23682014-07-20 Yao Qi <yao@codesourcery.com>
2369
2370 * eval.c: Remove "Chill" from comments.
2371 * gdbtypes.h: Likewise.
2372 * symtab.h: Likewise.
2373
c9402c95
YQ
23742014-07-20 Yao Qi <yao@codesourcery.com>
2375
2376 * std-operator.def: Update comments to TERNOP_SLICE.
2377
ae8fddda
YQ
23782014-07-20 Yao Qi <yao@codesourcery.com>
2379
2380 * std-operator.def: Remove BINOP_RANGE.
2381 * breakpoint.c (watchpoint_exp_is_const): Update.
2382 * expprint.c (dump_subexp_body_standard): Likewise.
2383 * eval.c (init_array_element): Remove dead code.
2384 (evaluate_subexp_standard): Likewise.
2385
9c816640
YQ
23862014-07-20 Yao Qi <yao@codesourcery.com>
2387
2388 * std-operator.def: Remove BINOP_IN.
2389 * breakpoint.c (watchpoint_exp_is_const): Update.
2390 * eval.c (evaluate_subexp_standard): Likewise.
2391 * expprint.c (dump_subexp_body_standard): Likewise.
2392
164224e9
ME
23932014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2394
2395 * microblaze-tdep.c (microblaze_register_names): Add
2396 the rshr and rslr register names.
2397 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2398 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2399 Use of tdesc_numbered_register. Use of
2400 microblaze_register_g_packet_guesses. Use of
2401 tdesc_use_registers. Use of set_gdbarch_register_type.
2402 (microblaze_register_g_packet_guesses): New.
2403 * microblaze-tdep.h (microblaze_reg_num): Add
2404 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2405 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2406 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2407 * features/microblaze-core.xml: New file.
2408 * features/microblaze-stack-protect.xml: New file.
2409 * features/microblaze-with-stack-protect.c: New file.
2410 * features/microblaze-with-stack-protect.xml: New file.
2411 * features/microblaze.xml: New file.
2412 * features/microblaze.c: New file.
2413 * features/Makefile (microblaze-with-stack-protect): Add
2414 microblaze-with-stack-protect microblaze and microblaze-expedite.
2415 * regformats/microblaze-with-stack-protect.dat: New file.
2416 * regformats/microblaze.dat: New file.
2417 * doc/gdb.texinfo (MicroBlaze Features): Added.
2418
e8b2341c
TT
24192014-07-18 Tom Tromey <tromey@redhat.com>
2420
2421 * exec.c (exec_ops): Now static.
2422 * exec.h (exec_ops): Don't declare.
2423
44e89118
TT
24242014-07-18 Tom Tromey <tromey@redhat.com>
2425
2426 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2427 to find_target_beneath.
2428 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2429 find_target_beneath.
2430 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2431
b0ed115f
TT
24322014-07-18 Tom Tromey <tromey@redhat.com>
2433
2434 PR gdb/17130:
2435 * utils.c (quit): Use target_supports_terminal_ours.
2436 * target.h (target_supports_terminal_ours): Declare.
2437 * target.c (target_supports_delete_record): Don't check
2438 to_delete_record against NULL.
2439 (target_supports_terminal_ours): New function.
2440
e75fdfca
TT
24412014-07-18 Tom Tromey <tromey@redhat.com>
2442
2443 PR gdb/17130:
2444 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2445 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2446 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2447 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2448 * windows-nat.c (windows_xfer_partial): Always delegate.
2449 * record-btrace.c (record_btrace_xfer_partial): Simplify
2450 delegation.
2451 (record_btrace_fetch_registers, record_btrace_store_registers)
2452 (record_btrace_prepare_to_store, record_btrace_resume)
2453 (record_btrace_wait, record_btrace_find_new_threads)
2454 (record_btrace_thread_alive): Likewise.
2455 * procfs.c (procfs_xfer_partial): Always delegate.
2456 * corelow.c (core_xfer_partial): Always delegate.
2457 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2458
83814951
TT
24592014-07-18 Tom Tromey <tromey@redhat.com>
2460
2461 * exec.c (exec_make_note_section): Move earlier.
2462
b8b8facf
DE
24632014-07-17 Doug Evans <dje@google.com>
2464
74b49205 2465 PR gdb/17170
b8b8facf
DE
2466 * maint.c (count_symtabs_and_blocks): Handle NULL
2467 current_program_space.
2468 (report_command_stats): Check global enabled flag in addition to
2469 recorded enabled flag.
2470 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2471
69ff6be5
PA
24722014-07-16 Pedro Alves <palves@redhat.com>
2473
2474 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2475
252db1b5
TT
24762014-07-16 Tom Tromey <tromey@redhat.com>
2477
2478 * target.h (struct target_ops) <to_delete_record>: Reformat
2479 comment.
2480
a432721e
TT
24812014-07-16 Tom Tromey <tromey@redhat.com>
2482
2483 * target-delegates.c: Rebuild.
2484
487d9753
PL
24852014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2486
2487 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2488 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2489 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2490 (avr_pointer_to_address): Likewise.
2491 (avr_address_class_type_flags): New function.
2492 (avr_address_class_type_flags_to_name): Likewise.
2493 (avr_address_class_name_to_type_flags): Likewise.
2494 (avr_gdbarch_init): Set address_class_type_flags,
2495 address_class_type_flags_to_name and
2496 address_class_name_to_type_flags.
2497
57745c90
PA
24982014-07-15 Pedro Alves <palves@redhat.com>
2499
2500 * linux-nat.c (kill_callback): Save errno and work with saved
2501 copy.
2502
2d40be18
SM
25032014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2504
2505 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2506
572f6555
EBM
25072014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2508
2509 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2510 breakpoint support correctly.
2511
cc1c52ad
PA
25122014-07-14 Pedro Alves <palves@redhat.com>
2513
2514 * utils.c (prompt_for_continue): Call target_terminal_ours.
2515
1e973570
PA
25162014-07-14 Pedro Alves <palves@redhat.com>
2517
2518 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2519 catch_errors. Don't re-enable stdin or notify observers where,
2520 and rethrow error.
2521 (fetch_inferior_event_wrapper): Delete.
2522
93d6eb10
PA
25232014-07-14 Pedro Alves <palves@redhat.com>
2524
2525 PR gdb/17072
2526 * top.c: Include "inf-loop.h".
2527 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2528 field.
2529 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2530 was async before.
2531 (gdb_readline_wrapper): Store whether the target is async, and
2532 make it sync.
2533
0017922d
PA
25342014-07-14 Pedro Alves <palves@redhat.com>
2535
2536 PR gdb/17072
2537 * top.c (gdb_readline_wrapper_line): Tweak comment.
2538 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2539 the input handler callback.
2540
94696ad3
PA
25412014-07-14 Pedro Alves <palves@redhat.com>
2542
2543 PR gdb/17072
2544 * main.c: Include event-top.h.
2545 (handle_command_errors): New function.
2546 (catch_command_errors, catch_command_errors_const): Use it.
2547
9d1e69a2
PA
25482014-07-14 Pedro Alves <palves@redhat.com>
2549
2550 * exceptions.c (catch_command_errors, catch_command_errors_const):
2551 Moved to main.c.
2552 * exceptions.h (catch_command_errors_ftype)
2553 (catch_command_errors_const_ftype): Moved to main.c.
2554 (catch_command_errors, catch_command_errors_const): Delete
2555 declarations.
2556 * main.c (catch_command_errors_ftype)
2557 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2558 (catch_command_errors, catch_command_errors_const)): Moved here
2559 from exceptions.c and make static.
2560
feefc97b
PA
25612014-07-14 Pedro Alves <palves@redhat.com>
2562
2563 * exceptions.c (print_any_exception): Delete.
2564 (catch_exceptions_with_msg): Use exception_print instead of
2565 print_any_exception.
2566 (catch_errors): Use exception_fprintf instead of
2567 print_any_exception.
2568 (catch_command_errors, catch_command_errors_const): Use
2569 exception_print instead of print_any_exception.
2570
c933f875
PA
25712014-07-14 Pedro Alves <palves@redhat.com>
2572
2573 * infcall.c (run_inferior_call): Set 'sync_execution' while
2574 running the inferior call.
2575
feb6f816
PA
25762014-07-14 Pedro Alves <palves@redhat.com>
2577
2578 * value.c (value_contents_equal): Delete function.
2579 * value.h (value_contents_equal): Delete declaration.
2580
d98b7a16
TT
25812014-07-14 Tom Tromey <tromey@redhat.com>
2582
2583 PR exp/17106:
2584 * gdbtypes.c (is_dynamic_type_internal): New function, from
2585 is_dynamic_type.
2586 (is_dynamic_type): Rewrite.
2587 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2588 (resolve_dynamic_struct): Likewise.
2589 (resolve_dynamic_type_internal): New function, from
2590 resolve_dynamic_type.
2591 (resolve_dynamic_type): Rewrite.
2592
548740d6
TT
25932014-07-14 Tom Tromey <tromey@redhat.com>
2594
2595 * target.c (target_require_runnable): Also check record_stratum.
2596 Update comment.
2597
808f7ab1
YQ
25982014-07-11 Yao Qi <yao@codesourcery.com>
2599
2600 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2601 thumb_instruction_restores_sp return true.
2602
540314bd
YQ
26032014-07-11 Yao Qi <yao@codesourcery.com>
2604
2605 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2606 (thumb_in_function_epilogue_p): Call
2607 thumb_instruction_restores_sp.
2608
1db01f22
YQ
26092014-07-11 Yao Qi <yao@codesourcery.com>
2610
2611 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2612 'add sp, #imm'.
2613 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2614
3116063b
GB
26152014-07-11 Gary Benson <gbenson@redhat.com>
2616
2617 * amd64-linux-nat.c (gdbcore.h): Remove include.
2618 (regset.h): Likewise.
2619 (nat/linux-btrace.h): Likewise.
2620 (btrace.h): Likewise.
2621 (gdb_assert.h): Likewise.
2622 (string.h): Likewise.
2623 (sys/uio.h): Likewise.
2624 (sys/debugreg.h): Likewise.
2625 (sys/syscall.h): Likewise.
2626 (sys/procfs.h): Likewise.
2627 (sys/user.h): Likewise.
2628 (asm/ptrace.h): Likewise.
2629 (i386-nat.h): Likewise.
2630 * i386-linux-nat.c (i386-nat.h): Likewise.
2631 (regset.h): Likewise.
2632 (target.h): Likewise.
2633 (linux-nat.h): Likewise.
2634 (nat/linux-btrace.h): Likewise.
2635 (btrace.h): Likewise.
2636 (gdb_assert.h): Likewise.
2637 (string.h): Likewise.
2638 (sys/uio.h): Likewise.
2639 (sys/user.h): Likewise.
2640 (sys/procfs.h): Likewise.
2641 (sys/reg.h): Likewise.
2642 (sys/debugreg.h): Likewise.
2643 (ORIG_EAX): Remove definition.
2644
040baaf6
GB
26452014-07-11 Gary Benson <gbenson@redhat.com>
2646
2647 * i386-linux-nat.h: New file.
2648 * x86-linux-nat.h: Likewise.
2649 * x86-linux-nat.c: Likewise.
2650 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2651 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2652 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2653 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2654 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2655 (PTRACE_SETREGSET): Likewise.
2656 (arch_lwp_info): Now in x86-linux-nat.c.
2657 (have_ptrace_getregset): Now in x86-linux-nat.h.
2658 (x86_linux_dr_get): Now in x86-linux-nat.c.
2659 (x86_linux_dr_set): Likewise.
2660 (x86_linux_dr_get_addr): Likewise.
2661 (x86_linux_dr_get_control): Likewise.
2662 (x86_linux_dr_get_status): Likewise.
2663 (update_debug_registers_callback): Likewise.
2664 (x86_linux_dr_set_control): Likewise.
2665 (x86_linux_dr_set_addr): Likewise.
2666 (x86_linux_prepare_to_resume): Likewise.
2667 (x86_linux_new_thread): Likewise.
2668 (x86_linux_new_fork): Likewise.
2669 (x86_linux_get_thread_area): Likewise.
2670 (super_post_startup_inferior): Likewise.
2671 (x86_linux_child_post_startup_inferior): Likewise.
2672 (AMD64_LINUX_USER64_CS): Likewise.
2673 (AMD64_LINUX_X32_DS): Likewise.
2674 (x86_linux_read_description): Likewise.
2675 (x86_linux_enable_btrace): Likewise.
2676 (x86_linux_disable_btrace): Likewise.
2677 (x86_linux_teardown_btrace): Likewise.
2678 (x86_linux_read_btrace): Likewise.
2679 (x86_linux_create_target): Likewise.
2680 (x86_linux_add_target): Likewise.
2681 * i386-linux-nat.c (x86-linux-nat.h): New include.
2682 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2683 (PTRACE_SETREGSET): Likewise.
2684 (arch_lwp_info): Now in x86-linux-nat.c.
2685 (have_ptrace_getregset): Now in x86-linux-nat.h.
2686 (x86_linux_dr_get): Now in x86-linux-nat.c.
2687 (x86_linux_dr_set): Likewise.
2688 (x86_linux_dr_get_addr): Likewise.
2689 (x86_linux_dr_get_control): Likewise.
2690 (x86_linux_dr_get_status): Likewise.
2691 (update_debug_registers_callback): Likewise.
2692 (x86_linux_dr_set_control): Likewise.
2693 (x86_linux_dr_set_addr): Likewise.
2694 (x86_linux_prepare_to_resume): Likewise.
2695 (x86_linux_new_thread): Likewise.
2696 (x86_linux_new_fork): Likewise.
2697 (x86_linux_get_thread_area): Likewise.
2698 (super_post_startup_inferior): Likewise.
2699 (x86_linux_child_post_startup_inferior): Likewise.
2700 (AMD64_LINUX_USER64_CS): Likewise.
2701 (AMD64_LINUX_X32_DS): Likewise.
2702 (x86_linux_read_description): Likewise.
2703 (x86_linux_enable_btrace): Likewise.
2704 (x86_linux_disable_btrace): Likewise.
2705 (x86_linux_teardown_btrace): Likewise.
2706 (x86_linux_read_btrace): Likewise.
2707 (x86_linux_create_target): Likewise.
2708 (x86_linux_add_target): Likewise.
2709
1aa7e42c
GB
27102014-07-11 Gary Benson <gbenson@redhat.com>
2711
2712 * amd64-linux-nat.c: Comment and whitespace changes.
2713 * i386-linux-nat.c: Comment and whitespace changes.
2714
c1e246a0
GB
27152014-07-11 Gary Benson <gbenson@redhat.com>
2716
2717 * amd64-linux-nat.c (x86_linux_create_target): New function.
2718 (x86_linux_add_target): Likewise.
2719 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2720 * i386-linux-nat.c (x86_linux_create_target): New function.
2721 (x86_linux_add_target): Likewise.
2722 (_initialize_i386_linux_nat): Delegate to the above new functions.
2723
8c420b8d
GB
27242014-07-11 Gary Benson <gbenson@redhat.com>
2725
2726 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2727 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2728 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2729 (ps_get_thread_area): Delegate to the above.
2730
cb1da100
GB
27312014-07-11 Gary Benson <gbenson@redhat.com>
2732
2733 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2734 x86_linux_read_description. All uses updated. amd64-specific
2735 code conditionalized. Conditionalized i386-specific code added.
2736 Redundant cast removed.
2737 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2738 x86_linux_read_description. All uses updated. i386-specific
2739 code conditionalized. Conditionalized amd64-specific code added.
2740 One sizeof replaced with the actual type it is describing.
2741
2acf3cd0
GB
27422014-07-11 Gary Benson <gbenson@redhat.com>
2743
2744 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2745 x86_linux_dr_get. All uses updated.
2746 (amd64_linux_dr_set): Renamed to
2747 x86_linux_dr_set. All uses updated.
2748 (amd64_linux_dr_get_addr): Renamed to
2749 x86_linux_dr_get_addr. All uses updated.
2750 (amd64_linux_dr_get_control): Renamed to
2751 x86_linux_dr_get_control. All uses updated.
2752 (amd64_linux_dr_get_status): Renamed to
2753 x86_linux_dr_get_status. All uses updated.
2754 (amd64_linux_dr_set_control): Renamed to
2755 x86_linux_dr_set_control. All uses updated.
2756 (amd64_linux_dr_set_addr): Renamed to
2757 x86_linux_dr_set_addr. All uses updated.
2758 (amd64_linux_prepare_to_resume): Renamed to
2759 x86_linux_prepare_to_resume. All uses updated.
2760 (amd64_linux_new_thread): Renamed to
2761 x86_linux_new_thread. All uses updated.
2762 (amd64_linux_new_fork): Renamed to
2763 x86_linux_new_fork. All uses updated.
2764 (amd64_linux_child_post_startup_inferior): Renamed to
2765 x86_linux_child_post_startup_inferior. All uses updated.
2766 (amd64_linux_enable_btrace): Renamed to
2767 x86_linux_enable_btrace. All uses updated.
2768 (amd64_linux_disable_btrace): Renamed to
2769 x86_linux_disable_btrace. All uses updated.
2770 (amd64_linux_teardown_btrace): Renamed to
2771 x86_linux_teardown_btrace. All uses updated.
2772 (amd64_linux_read_btrace): Renamed to
2773 x86_linux_read_btrace. All uses updated.
2774 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2775 x86_linux_dr_get. All uses updated.
2776 (i386_linux_dr_set): Renamed to
2777 x86_linux_dr_set. All uses updated.
2778 (i386_linux_dr_get_addr): Renamed to
2779 x86_linux_dr_get_addr. All uses updated.
2780 (i386_linux_dr_get_control): Renamed to
2781 x86_linux_dr_get_control. All uses updated.
2782 (i386_linux_dr_get_status): Renamed to
2783 x86_linux_dr_get_status. All uses updated.
2784 (i386_linux_dr_set_control): Renamed to
2785 x86_linux_dr_set_control. All uses updated.
2786 (i386_linux_dr_set_addr): Renamed to
2787 x86_linux_dr_set_addr. All uses updated.
2788 (i386_linux_prepare_to_resume): Renamed to
2789 x86_linux_prepare_to_resume. All uses updated.
2790 (i386_linux_new_thread): Renamed to
2791 x86_linux_new_thread. All uses updated.
2792 (i386_linux_new_fork): Renamed to
2793 x86_linux_new_fork. All uses updated.
2794 (i386_linux_child_post_startup_inferior): Renamed to
2795 x86_linux_child_post_startup_inferior. All uses updated.
2796 (i386_linux_enable_btrace): Renamed to
2797 x86_linux_enable_btrace. All uses updated.
2798 (i386_linux_disable_btrace): Renamed to
2799 x86_linux_disable_btrace. All uses updated.
2800 (i386_linux_teardown_btrace): Renamed to
2801 x86_linux_teardown_btrace. All uses updated.
2802 (i386_linux_read_btrace): Renamed to
2803 x86_linux_read_btrace. All uses updated.
2804
b9c1d481
AS
28052014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2806
2807 * remote.c (extended_remote_post_attach): New function.
2808 (init_extended_remote_ops): Install it as to_post_attach method.
2809
7180e04a
PA
28102014-07-09 Pedro Alves <palves@redhat.com>
2811
2812 * infcmd.c (attach_command_post_wait): Don't call
2813 target_terminal_inferior here.
2814 (attach_command): Call it here instead.
2815
9a9a7608
AB
28162014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2817
2818 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2819 field.
2820 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2821 from varobj.c, with additional checks.
2822 (c_varobj_ops): Fill in is_path_expr_parent field.
2823 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2824 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2825 field.
2826 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2827 ops method.
2828 (varobj_default_is_path_expr_parent): New function.
2829 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2830 (varobj_default_is_path_expr_parent): Declare new function.
2831
1f267ae3
MM
28322014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2833
2834 * infcmd.c (finish_backward): Turn internal error into normal error.
2835
b2ee242b
PA
28362014-07-07 Pedro Alves <palves@redhat.com>
2837
8a869bca 2838 PR gdb/17096
b2ee242b
PA
2839 * remote.c (async_handle_remote_sigint)
2840 (async_handle_remote_sigint_twice): Call
2841 gdb_call_async_signal_handler instead of
2842 mark_async_signal_handler.
2843
38e229b2
TT
28442014-07-07 Tom Tromey <tromey@redhat.com>
2845
2846 * target-delegates.c: Rebuild.
2847 * target.c (target_info_record): Remove.
2848 * record.c (info_record_command): Unconditionally call
2849 to_info_record.
2850 * target.h (struct target_ops) <to_info_record>: Use
2851 TARGET_DEFAULT_IGNORE.
2852 (target_info_record): Remove.
2853
f0f9ff95
TT
28542014-07-07 Tom Tromey <tromey@redhat.com>
2855
2856 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2857 TARGET_DEFAULT_NORETURN.
2858 * target.c (generic_tls_error): New function.
2859 (target_translate_tls_address): Don't search target stack.
2860 * target-delegates.c: Rebuild.
2861 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2862 stack.
2863 * linux-thread-db.c (thread_db_get_thread_local_address):
2864 Unconditionally call beneath target.
2865
4a5be5ee
MK
28662014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2867
2868 * cli/cli-logging.c (pop_output_files): Assign targerr to
2869 gdb_stdtargerr.
2870
92c3b204
AB
28712014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2872
2873 * MAINTAINERS (Write After Approval): Update my email address.
2874
9b11e3a7
GB
28752014-07-02 Gary Benson <gbenson@redhat.com>
2876
2877 * proc-service.c (ps_xfer_memory): Update comment.
2878 (ps_pstop): Remove unused function.
2879 (ps_pcontinue): Likewise.
2880 (ps_lstop): Likewise.
2881 (ps_lcontinue): Likewise.
2882 (ps_lgetxregsize): Likewise.
2883 (ps_lgetxregs): Likewise.
2884 (ps_lsetxregs): Likewise.
2885 (ps_plog): Likewise.
2886 (ps_ptread): Likewise.
2887 (ps_ptwrite): Likewise.
2888
cf363f18
MW
28892014-07-01 Mark Wielaard <mjw@redhat.com>
2890
2891 * dwarf2read.c (add_array_cv_type): New function.
2892 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2893 (read_tag_volatile_type): Likewise.
2894
82ae6c8d
TT
28952014-07-01 Tom Tromey <tromey@redhat.com>
2896
2897 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2898 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2899 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2900 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2901 * command.h (cmd_cfunc_ftype): Move earlier.
2902 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2903 (add_com, add_info): Use cmd_cfunc_ftype.
2904
96142726
TT
29052014-06-30 Tom Tromey <tromey@redhat.com>
2906
2907 * symtab.c (operator_chars): Make parameters and return type
2908 const.
2909 (file_matches): Make "files" const.
2910 (struct search_symbols_data) <files>: Now const.
2911 (search_symbols): Make "regexp" and "files" parameters const.
2912 Update.
2913 (symtab_symbol_info): Remove cast.
2914 (rbreak_command): Update.
2915 * symtab.h (search_symbols): Update.
2916
b67a2c6f
YQ
29172014-06-27 Yao Qi <yao@codesourcery.com>
2918
2919 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2920 Change parameter type to 'struct thread_info *'. Caller
2921 updated.
2922 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2923 Update declaration.
2924 * dummy-frame.c (struct dummy_frame_id): New.
2925 (dummy_frame_id_eq): New function.
2926 (struct dummy_frame) <id>: Change its type to 'struct
2927 dummy_frame_id'.
2928 (dummy_frame_push): Add parameter ptid and save it in
2929 dummy_frame_id.
2930 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2931 inferior_ptid.
2932 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2933 to inferior_ptid.
2934 (lookup_dummy_frame): Change parameter type to 'struct
2935 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2936 instead of frame_id_eq.
2937 (dummy_frame_pop): Add parameter ptid. Callers updated.
2938 Update comments. Compose dummy_frame_id and pass it to
2939 lookup_dummy_frame.
2940 (dummy_frame_discard): Add parameter ptid.
2941 (dummy_frame_sniffer): Compose dummy_frame_id and call
2942 dummy_frame_id_eq instead of frame_id_eq.
2943 (fprint_dummy_frames): Print ptid.
2944 * dummy-frame.h: Remove comments.
2945 (dummy_frame_push): Add ptid in declaration.
2946 (dummy_frame_pop, dummy_frame_discard): Likewise.
2947
5b10184c
TT
29482014-06-26 Tom Tromey <tromey@redhat.com>
2949
2950 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2951 * command.h (error_no_arg): Update.
2952
06900326
TT
29532014-06-26 Tom Tromey <tromey@redhat.com>
2954
2955 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2956 (do_show_command): Make "arg" const.
2957 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2958
c2bcbb1d
TT
29592014-06-26 Tom Tromey <tromey@redhat.com>
2960
2961 * record-full.c (record_full_get_bookmark): Make "args" const.
2962 (record_full_goto_bookmark): Make "raw_bookmark" const.
2963 * record.c (record_goto): New function.
2964 (cmd_record_goto): Use it. Now static.
2965 * record.h (record_goto): Declare.
2966 (cmd_record_goto): Remove declaration.
2967 * target-delegates.c: Rebuild.
2968 * target.h (struct target_ops) <to_get_bookmark,
2969 to_goto_bookmark>: Make parameter const.
2970
9cbe5fff
TT
29712014-06-26 Tom Tromey <tromey@redhat.com>
2972
2973 * defs.h (generic_load): Update.
2974 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2975 * monitor.c (monitor_load): Make "args" const.
2976 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2977 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2978 const.
2979 (mips_load): Make "file" const.
2980 * remote-sim.c (gdbsim_load): Make "args" const.
2981 * remote.c (remote_load): Make "name" const.
2982 * symfile.c (generic_load): Make "args" const.
2983 * target-delegates.c: Rebuild.
2984 * target.c (target_load): Make "arg" const.
2985 (debug_to_load): Make "args" const.
2986 * target.h (struct target_ops) <to_load>: Make parameter const.
2987 (target_load): Update.
2988
34a68019
TT
29892014-06-26 Tom Tromey <tromey@redhat.com>
2990
2991 PR symtab/16902:
2992 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2993 (dwarf2_physname, read_partial_die)
2994 (guess_partial_die_structure_name, fixup_partial_die)
2995 (guess_full_die_structure_name, anonymous_struct_prefix)
2996 (dwarf2_name): Use per-BFD obstack.
2997
efc889c1
YQ
29982014-06-26 Yao Qi <yao@codesourcery.com>
2999
3000 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3001 dummyframe and this_id into inner block below.
3002
4395285e
YQ
30032014-06-26 Yao Qi <yao@codesourcery.com>
3004
3005 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3006 with "signal_pass[0]" in the initialization of signal_pass.
3007
aef92902
MM
30082014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3009
3010 * record-btrace.c (record_btrace_generating_corefile)
3011 (record_btrace_prepare_to_generate_core)
3012 (record_btrace_done_generating_core): New.
3013 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3014 (record_btrace_store_registers, record_btrace_prepare_to_store):
3015 Forward request when generating a core file.
3016 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3017 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3018 to_done_generating_core.
3019
5fff78c4
MM
30202014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3021
3022 * target.h (target_ops) <to_prepare_to_generate_core>
3023 <to_done_generating_core>: New.
3024 (target_prepare_to_generate_core, target_done_generating_core): New.
3025 * target.c (target_prepare_to_generate_core)
3026 (target_done_generating_core): New.
3027 * target-delegates.c: Regenerate.
3028 * gcore.c: (write_gcore_file): Rename to ...
3029 (write_gcore_file_1): ...this.
3030 (write_gcore_file): Call target_prepare_to_generate_core
3031 and target_done_generating_core.
3032
1d1f1ccb
MM
30332014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3034
3035 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3036 * gcore.c (write_gcore_file): Free memory returned from
3037 make_corefile_notes.
3038 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3039 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3040
3343ef86
YQ
30412014-06-24 Yao Qi <yao@codesourcery.com>
3042
3043 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3044 (arm_linux_init_abi): Set skip_trampoline_code with
3045 gdbarch_skip_trampoline_code instead of
3046 find_solib_trampoline_target.
3047
18d18ac8
YQ
30482014-06-24 Yao Qi <yao@codesourcery.com>
3049
3050 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3051 arm_skip_bx_reg returns non-zero.
3052
80d8d390
YQ
30532014-06-24 Yao Qi <yao@codesourcery.com>
3054
3055 * arm-tdep.c (arm_skip_bx_reg): New function.
3056 (arm_skip_stub): Call arm_skip_bx_reg.
3057
6a18a01c
DB
30582014-06-23 Don Breazeal <donb@codesourcery.com>
3059
3060 * MAINTAINERS: Add myself as write-after-approval maintainer.
3061
8e9db26e
PA
30622014-06-23 Pedro Alves <palves@redhat.com>
3063
3064 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3065 DR_CONTROL before setting DR0..DR3.
3066 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3067 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3068 bits of DR_CONTROL related to the debug register slot being
3069 disabled. If all slots are vacant, clear local slowdown as well,
3070 and assert DR_CONTROL is 0.
3071
70afc5b7
SC
30722014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3073
3074 * python/lib/gdb/command/xmethods.py
3075 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3076 current progspace only if the string "progspace" matches LOCUS_RE.
3077
840ed64d
JK
30782014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3079
3080 Fix --with-system-readline with readline-6.3 patch 5.
3081 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3082 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3083 types.
3084
26f2dc30
TT
30852014-06-20 Tom Tromey <tromey@redhat.com>
3086
3087 * dwarf2read.c (dw2_get_real_path): Use correct type in
3088 OBSTACK_CALLOC.
3089 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3090
125f8a3d
GB
30912014-06-20 Gary Benson <gbenson@redhat.com>
3092
3093 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3094 * common/glibc_thread_db.h: Likewise.
3095 * common/i386-cpuid.h: Likewise.
3096 * common/i386-gcc-cpuid.h: Likewise.
3097 * common/linux-btrace.h: Likewise.
3098 * common/linux-osdata.h: Likewise.
3099 * common/linux-procfs.h: Likewise.
3100 * common/linux-ptrace.h: Likewise.
3101 * common/mips-linux-watch.h: Likewise.
3102 * common/linux-btrace.c: Moved to nat.
3103 * common/linux-osdata.c: Likewise.
3104 * common/linux-procfs.c: Likewise.
3105 * common/linux-ptrace.c: Likewise.
3106 * common/mips-linux-watch.c: Likewise.
3107 * nat/gdb_thread_db.h: Moved from common.
3108 * nat/glibc_thread_db.h: Likewise.
3109 * nat/i386-cpuid.h: Likewise.
3110 * nat/i386-gcc-cpuid.h: Likewise.
3111 * nat/linux-btrace.c: Likewise.
3112 * nat/linux-btrace.h: Likewise.
3113 * nat/linux-osdata.c: Likewise.
3114 * nat/linux-osdata.h: Likewise.
3115 * nat/linux-procfs.c: Likewise.
3116 * nat/linux-procfs.h: Likewise.
3117 * nat/linux-ptrace.c: Likewise.
3118 * nat/linux-ptrace.h: Likewise.
3119 * nat/mips-linux-watch.c: Likewise.
3120 * nat/mips-linux-watch.h: Likewise.
3121 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3122 (object file files): Reordered.
3123 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3124 of glibc_thread_db.h.
3125
42995dbd
GB
31262014-06-20 Gary Benson <gbenson@redhat.com>
3127
3128 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3129 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3130 (i386_dr_low): Likewise.
3131 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3132 (i386_dr_low_set_addr): Likewise.
3133 (i386_dr_low_get_addr): Likewise.
3134 (i386_dr_low_can_set_control): Likewise.
3135 (i386_dr_low_set_control): Likewise.
3136 (i386_dr_low_get_control): Likewise.
3137 (i386_dr_low_get_status): Likewise.
3138 (i386_get_debug_register_length): Likewise.
3139 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3140 (i386_dr_low): Likewise.
3141 * nat/i386-dregs.c (i386-low.h): Remove include.
3142 (i386-nat.h): Likewise.
3143 (nat/i386-dregs.h): New include.
3144 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3145 (i386_dr_low_set_addr): Likewise.
3146 (i386_dr_low_get_addr): Likewise.
3147 (i386_dr_low_can_set_control): Likewise.
3148 (i386_dr_low_set_control): Likewise.
3149 (i386_dr_low_get_control): Likewise.
3150 (i386_dr_low_get_status): Likewise.
3151 (i386_get_debug_register_length): Likewise.
3152 (debug_hw_points): Likewise.
3153
3ed9baed
IB
31542014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3155
3156 * Makefile.in (SFILES): Add d-exp.y.
3157 (YYFILES): Add d-exp.c.
3158 (YYOBJ): Add d-exp.o.
3159 (local-maintainer-clean): Delete d-exp.c.
3160 * d-exp.y: New file.
3161 * d-lang.h (d_parse): New declaration.
3162 (d_error): New declaration.
3163 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3164 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3165 PREC_ORDER operators.
3166 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3167
78c164b0
YQ
31682014-06-19 Yao Qi <yao@codesourcery.com>
3169
3170 * gdbthread.h (any_running): Remove the declaration.
3171 * thread.c (any_running): Remove.
3172
f6e29b6e
YQ
31732014-06-19 Yao Qi <yao@codesourcery.com>
3174
3175 * gdbthread.h (struct thread_info) <state>: Change its type to
3176 'enum thread_state'. Update comments.
3177
034f788c
PA
31782014-06-19 Pedro Alves <palves@redhat.com>
3179
3180 * gdbthread.h (ALL_THREADS): Delete.
3181 (ALL_NON_EXITED_THREADS): New macro.
3182 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3183 instead of ALL_THREADS.
3184 * infrun.c (find_thread_needs_step_over)
3185 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3186 instead of ALL_THREADS.
3187 * record-btrace.c (record_btrace_open)
3188 (record_btrace_stop_recording, record_btrace_close)
3189 (record_btrace_is_replaying, record_btrace_resume)
3190 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3191 * remote.c (append_pending_thread_resumptions): Likewise.
3192 * thread.c (thread_apply_all_command): Likewise.
3193
46e33252
GB
31942014-06-19 Gary Benson <gbenson@redhat.com>
3195
3196 * i386-nat.c (i386_stopped_by_watchpoint):
3197 Use i386_dr_stopped_by_watchpoint.
3198 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3199 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3200
3a8ee006
GB
32012014-06-19 Gary Benson <gbenson@redhat.com>
3202
3203 * nat/i386-dregs.c: New file.
3204 * Makefile.in (i386-dregs.o): New rule.
3205 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3206 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3207 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3208 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3209 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3210 * config/i386/go32.mh (NATDEPFILES): Likewise.
3211 * config/i386/linux.mh (NATDEPFILES): Likewise.
3212 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3213 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3214 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3215 * i386-nat.h (debug_hw_points): New declaration.
3216 * i386-nat.c (breakpoint.h): Remove include.
3217 (command.h): Likewise.
3218 (target.h): Likewise.
3219 (gdb_assert.h): Likewise.
3220 (debug_hw_points): Made nonstatic.
3221 (debug_printf): Now in i386-dregs.c.
3222 (TARGET_HAS_DR_LEN_8): Likewise.
3223 (DR_CONTROL_SHIFT): Likewise.
3224 (DR_CONTROL_SIZE): Likewise.
3225 (DR_RW_EXECUTE): Likewise.
3226 (DR_RW_WRITE): Likewise.
3227 (DR_RW_READ): Likewise.
3228 (DR_RW_IORW): Likewise.
3229 (DR_LEN_1): Likewise.
3230 (DR_LEN_2): Likewise.
3231 (DR_LEN_4): Likewise.
3232 (DR_LEN_8): Likewise.
3233 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3234 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3235 (DR_ENABLE_SIZE): Likewise.
3236 (DR_LOCAL_SLOWDOWN): Likewise.
3237 (DR_GLOBAL_SLOWDOWN): Likewise.
3238 (DR_CONTROL_RESERVED): Likewise.
3239 (I386_DR_CONTROL_MASK): Likewise.
3240 (I386_DR_VACANT): Likewise.
3241 (I386_DR_LOCAL_ENABLE): Likewise.
3242 (I386_DR_GLOBAL_ENABLE): Likewise.
3243 (I386_DR_DISABLE): Likewise.
3244 (I386_DR_SET_RW_LEN): Likewise.
3245 (I386_DR_GET_RW_LEN): Likewise.
3246 (I386_DR_WATCH_HIT): Likewise.
3247 (i386_wp_op_t): Likewise.
3248 (i386_show_dr): Likewise.
3249 (i386_length_and_rw_bits): Likewise.
3250 (i386_insert_aligned_watchpoint): Likewise.
3251 (i386_remove_aligned_watchpoint): Likewise.
3252 (i386_handle_nonaligned_watchpoint): Likewise.
3253 (i386_update_inferior_debug_regs): Likewise.
3254 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3255 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3256 (i386_region_ok_for_watchpoint):
3257 Use i386_dr_region_ok_for_watchpoint.
3258 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3259
322a8e06
GB
32602014-06-19 Gary Benson <gbenson@redhat.com>
3261
3262 * i386-nat.c (i386_insert_hw_breakpoint): Use
3263 i386_insert_watchpoint.
3264 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3265
8f26655c
GB
32662014-06-19 Gary Benson <gbenson@redhat.com>
3267
3268 * i386-nat.c (i386_dr_show): Renamed to
3269 i386_show_dr and made static. All uses updated.
3270 (i386_dr_length_and_rw_bits): Renamed to
3271 i386_length_and_rw_bits and made static.
3272 All uses updated.
3273 (i386_dr_insert_aligned_watchpoint): Renamed to
3274 i386_insert_aligned_watchpoint and made static.
3275 All uses updated.
3276 (i386_dr_remove_aligned_watchpoint): Renamed to
3277 i386_remove_aligned_watchpoint and made static.
3278 All uses updated.
3279 (i386_dr_update_inferior_debug_regs): Renamed to
3280 i386_update_inferior_debug_regs and made static.
3281 All uses updated.
3282 * nat/i386-dregs.h (i386_dr_show): Removed.
3283 (i386_dr_length_and_rw_bits): Likewise.
3284 (i386_dr_insert_aligned_watchpoint): Likewise.
3285 (i386_dr_remove_aligned_watchpoint): Likewise.
3286 (i386_dr_update_inferior_debug_regs): Likewise.
3287
992c7d70
GB
32882014-06-19 Gary Benson <gbenson@redhat.com>
3289
3290 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3291 * configure: Regenerate.
3292 * config.in: Likewise.
3293 * main.c (signal.h): New include.
3294 (setup_alternate_signal_stack): New function.
3295 (captured_main): Call the above.
3296 * cp-support.c (signal.h): New include.
3297 (catch_demangler_crashes): New flag.
3298 (SIGJMP_BUF): New define.
3299 (SIGSETJMP): Likewise.
3300 (SIGLONGJMP): Likewise.
3301 (gdb_demangle_jmp_buf): New static global.
3302 (gdb_demangle_attempt_core_dump): Likewise.
3303 (gdb_demangle_signal_handler): New function.
3304 (gdb_demangle): If catch_demangler_crashes is set, install the
3305 above signal handler before calling bfd_demangle, and restore
3306 the original signal handler afterwards. Display the offending
3307 symbol and call demangler_warning the first time a segmentation
3308 fault is caught.
3309 (_initialize_cp_support): New maint set/show command.
3310
eae7090b
GB
33112014-06-19 Gary Benson <gbenson@redhat.com>
3312
3313 * utils.h (resource_limit_kind): New enum.
3314 (can_dump_core): New declaration.
3315 (warn_cant_dump_core): Likewise.
3316 (dump_core): Likewise.
3317 * utils.c (dump_core): Made nonstatic. Added new
3318 parameter "limit_kind".
3319 (can_dump_core): Made nonstatic. Moved printing code to...
3320 (warn_cant_dump_core): New function.
3321 (can_dump_core_warn): Likewise.
3322 (internal_vproblem): Replace calls to can_dump_core with
3323 calls to can_dump_core_warn. Supply new argument to each.
3324
57fcfb1b
GB
33252014-06-19 Gary Benson <gbenson@redhat.com>
3326
3327 * utils.h (demangler_vwarning): New declaration.
3328 (demangler_warning): Likewise.
3329 * utils.c (struct internal_problem)
3330 <user_settable_should_quit>: New field.
3331 <user_settable_should_dump_core>: Likewise
3332 (internal_error_problem): Add values for above new fields.
3333 (internal_warning_problem): Likewise.
3334 (demangler_warning_problem): New static global.
3335 (demangler_vwarning): New function.
3336 (demangler_warning): Likewise.
3337 (add_internal_problem_command): Selectively add commands.
3338 (_initialize_utils): New internal problem command.
3339 * maint.c (maintenance_demangler_warning): New function.
3340 (_initialize_maint_cmds): New command.
3341
17a40b44
TT
33422014-06-18 Tom Tromey <tromey@redhat.com>
3343
3344 * f-valprint.c (info_common_command_for_block): Update.
3345 * symtab.h (struct general_symbol_info) <common_block>: Now
3346 const.
3347
346d1dfe
TT
33482014-06-18 Tom Tromey <tromey@redhat.com>
3349
3350 * symtab.h (struct symtab) <blockvector>: Now const.
3351 * ada-lang.c (ada_add_global_exceptions): Update.
3352 * buildsym.c (augment_type_symtab): Update.
3353 * dwarf2read.c (dw2_lookup_symbol): Update.
3354 * jit.c (finalize_symtab): Update.
3355 * jv-lang.c (add_class_symtab_symbol): Update.
3356 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3357 Update.
3358 * objfiles.c (objfile_relocate1): Update.
3359 * psymtab.c (lookup_symbol_aux_psymtabs)
3360 (maintenance_check_psymtabs): Update.
3361 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3362 Update.
3363 * spu-tdep.c (spu_catch_start): Update.
3364 * symmisc.c (dump_symtab_1): Update.
3365 * symtab.c (lookup_global_symbol_from_objfile)
3366 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3367 (basic_lookup_transparent_type_quick)
3368 (basic_lookup_transparent_type, find_pc_sect_symtab)
3369 (find_pc_sect_line, search_symbols): Update.
3370 * block.c (find_block_in_blockvector): Make "bl" const.
3371 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3372 const.
3373 (blockvector_contains_pc): Make "bv" const.
3374 (block_for_pc_sect): Update.
3375 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3376 (blockvector_contains_pc): Update.
3377 * breakpoint.c (resolve_sal_pc): Update.
3378 * inline-frame.c (block_starting_point_at): Update.
3379
1834676b
TT
33802014-06-18 Tom Tromey <tromey@redhat.com>
3381
3382 * completer.c (complete_line): Make "line_buffer" const.
3383 * completer.h (complete_line): Update.
3384
ac1a991b
TT
33852014-06-18 Tom Tromey <tromey@redhat.com>
3386
3387 * symtab.c (add_macro_name): Remove unneeded cast.
3388
5bc98e52
TT
33892014-06-18 Tom Tromey <tromey@redhat.com>
3390
3391 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3392 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3393
8236def8
TT
33942014-06-18 Tom Tromey <tromey@redhat.com>
3395
3396 * probe.c (info_probes_for_ops): Make "arg" const.
3397 * probe.h (info_probes_for_ops): Update.
3398
3977b71f
TT
33992014-06-18 Tom Tromey <tromey@redhat.com>
3400
3401 * varobj.c (varobj_create): Update.
3402 * valops.c (value_of_this): Update.
3403 * tracepoint.c (add_local_symbols, scope_info): Update.
3404 * symtab.h (struct general_symbol_info) <block>: Now const.
3405 * symtab.c (skip_prologue_sal)
3406 (default_make_symbol_completion_list_break_on)
3407 (skip_prologue_using_sal): Update.
3408 * stack.h (iterate_over_block_locals)
3409 (iterate_over_block_local_vars): Update.
3410 * stack.c (print_frame_args): Update.
3411 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3412 parameter const.
3413 (get_selected_block): Make return type const.
3414 * python/py-frame.c (frapy_block): Update.
3415 * python/py-block.c (gdbpy_block_for_pc): Update.
3416 * p-exp.y (%union) <bval>: Now const.
3417 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3418 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3419 * m2-exp.y (%union) <bval>: Now const.
3420 * linespec.c (get_current_search_block): Make return type const.
3421 (create_sals_line_offset, find_label_symbols): Update.
3422 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3423 Update.
3424 (block_starting_point_at): Make "block" const.
3425 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3426 (check_exception_resume): Update.
3427 * guile/scm-frame.c (gdbscm_frame_block): Update.
3428 * guile/scm-block.c (gdbscm_lookup_block): Update.
3429 * frame.h (get_frame_block): Update.
3430 (get_selected_block): Make return type const.
3431 * frame.c (frame_id_inner): Update.
3432 * f-valprint.c (info_common_command_for_block)
3433 (info_common_command): Update.
3434 * dwarf2loc.c (dwarf2_find_location_expression)
3435 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3436 (locexpr_describe_location_piece): Update.
3437 * c-exp.y (%union) <bval>: Now const.
3438 * breakpoint.c (resolve_sal_pc): Update.
3439 * blockframe.c (get_frame_block):Make return type const.
3440 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3441 (block_innermost_frame): Update.
3442 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3443 (block_for_pc, block_for_pc_sect): Update.
3444 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3445 'pblock' const.
3446 (block_for_pc_sect, block_for_pc): Make return type const.
3447 * ax-gdb.c (gen_expr): Update.
3448 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3449 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3450 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3451 (ada_read_var_value): Update.
3452 * ada-exp.y (struct name_info) <block>: Now const.
3453 (%union): Likewise.
3454 (block_lookup): Constify.
3455
b9228891
GB
34562014-06-18 Gary Benson <gbenson@redhat.com>
3457
3458 * nat/i386-dregs.h: New file.
3459 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3460 * i386-nat.h (i386-dregs.h): New include.
3461 (DR_FIRSTADDR): Now in i386-dregs.h.
3462 (DR_LASTADDR): Likewise.
3463 (DR_NADDR): Likewise.
3464 (DR_STATUS): Likewise.
3465 (DR_CONTROL): Likewise.
3466 (i386_debug_reg_state): Likewise.
3467 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3468
a1aa2221
LM
34692014-06-18 Don Breazeal <donb@codesourcery.com>
3470
3471 * breakpoint.c (set_longjmp_breakpoint): Call
3472 momentary_breakpoint_from_master with additional argument.
3473 (set_longjmp_breakpoint_for_call_dummy): Call
3474 momentary_breakpoint_from_master with additional argument.
3475 (set_std_terminate_breakpoint): Call
3476 momentary_breakpoint_from_master with additional argument.
3477 (momentary_breakpoint_from_master): Add argument to function
3478 definition and use it to initialize structure member flag.
74228e77 3479 (clone_momentary_breakpoint): Call
a1aa2221
LM
3480 momentary_breakpoint_from_master with additional argument.
3481 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3482 member flags set in momentary_breakpoint_from_master.
3483
4be83cc2
GB
34842014-06-18 Gary Benson <gbenson@redhat.com>
3485
3486 * i386-nat.c (i386_show_dr): Renamed to
3487 i386_dr_show and made nonstatic. All uses updated.
3488 (i386_length_and_rw_bits): Renamed to
3489 i386_dr_length_and_rw_bits and made nonstatic.
3490 All uses updated.
3491 (i386_insert_aligned_watchpoint): Renamed to
3492 i386_dr_insert_aligned_watchpoint and made nonstatic.
3493 All uses updated.
3494 (i386_remove_aligned_watchpoint): Renamed to
3495 i386_dr_remove_aligned_watchpoint and made nonstatic.
3496 All uses updated.
3497 (i386_update_inferior_debug_regs): Renamed to
3498 i386_dr_update_inferior_debug_regs and made nonstatic.
3499 All uses updated.
3500
131aa0d4
GB
35012014-06-18 Gary Benson <gbenson@redhat.com>
3502
3503 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3504 (i386_dr_low_can_set_control): Likewise.
3505 (i386_dr_low_set_addr): Likewise.
3506 (i386_dr_low_set_control): Likewise.
3507 (i386_dr_low_get_addr): Likewise.
3508 (i386_dr_low_get_status): Likewise.
3509 (i386_dr_low_get_control): Likewise.
3510 (i386_insert_aligned_watchpoint): Use new macros.
3511 (i386_update_inferior_debug_regs): Likewise.
3512 (i386_stopped_data_address): Likewise.
3513
d9305f7f
GB
35142014-06-18 Gary Benson <gbenson@redhat.com>
3515
3516 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3517 New parameter. All uses updated.
3518
ea008da4
GB
35192014-06-18 Gary Benson <gbenson@redhat.com>
3520
3521 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3522 All uses updated.
3523
1b6d4134
GB
35242014-06-18 Gary Benson <gbenson@redhat.com>
3525
3526 * i386-nat.c (debug_printf): New macro.
3527 (i386_get_debug_register_length): Likewise.
3528 (TARGET_HAS_DR_LEN_8): Use above macro.
3529 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3530 and printf_unfiltered. Use phex to format values.
3531
9b4550ef
GB
35322014-06-18 Gary Benson <gbenson@redhat.com>
3533
3534 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3535 Make const.
3536
6e62758f
GB
35372014-06-18 Gary Benson <gbenson@redhat.com>
3538
3539 * i386-nat.c: Comment changes.
3540
51c79e94
GB
35412014-06-18 Gary Benson <gbenson@redhat.com>
3542
3543 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3544
3e11889a
GB
35452014-06-18 Gary Benson <gbenson@redhat.com>
3546
3547 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3548 (i386_insert_aligned_watchpoint): Likewise.
3549 (i386_remove_aligned_watchpoint): Likewise.
3550 (i386_handle_nonaligned_watchpoint): Likewise.
3551
fc6e2f03
GB
35522014-06-18 Gary Benson <gbenson@redhat.com>
3553
3554 * i386-nat.c: Whitespace changes.
3555
2afe7d50
SB
35562014-06-17 Samuel Bronson <naesten@gmail.com>
3557
3558 * MAINTAINERS: Update Roland McGrath's email address.
3559 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3560 Red Hat a while ago, and giving me a current address.
2afe7d50 3561
3bca49ee
TT
35622014-06-17 Tom Tromey <tromey@redhat.com>
3563
3564 * utils.h (savestring): Remove declaration.
3565
6e366df1
TT
35662014-06-17 Tom Tromey <tromey@redhat.com>
3567
3568 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3569
6be47f0c
KS
35702014-06-16 Keith Seitz <keiths@redhat.com>
3571
3572 PR mi/15863
3573 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3574 to update the varobj if inferior_ptid is null_ptid.
3575
7bc112c1
TT
35762014-06-16 Tom Tromey <tromey@redhat.com>
3577
3578 * target.h (struct target_ops) <to_info_proc>: Make parameter
3579 const.
3580 (target_info_proc): Update.
3581 * target.c (target_info_proc): Make "args" const.
3582 * procfs.c (procfs_info_proc): Update.
3583 * linux-tdep.c (linux_info_proc): Update.
3584 (linux_core_info_proc_mappings): Make "args" const.
3585 (linux_core_info_proc): Update.
3586 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3587 * gdbarch.c: Rebuild.
3588 * gdbarch.h: Rebuild.
3589 * corelow.c (core_info_proc): Update.
3590
fee354ee
TT
35912014-06-16 Tom Tromey <tromey@redhat.com>
3592
3593 * target.h (struct target_ops) <to_disconnect>: Make parameter
3594 const.
3595 (target_disconnect): Update.
3596 * target.c (target_disconnect): Make "args" const.
3597 * target-delegates.c: Rebuild.
3598 * remote.c (remote_disconnect): Update.
3599 * record.h (record_disconnect): Update.
3600 * record.c (record_disconnect): Update.
3601 * inf-child.c (inf_child_disconnect): Update.
3602
a30bf1f1
TT
36032014-06-16 Tom Tromey <tromey@redhat.com>
3604
3605 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3606 * target.c (debug_to_rcmd, default_rcmd): Update.
3607 * target-delegates.c: Rebuild.
3608 * remote.c (remote_rcmd): Update.
3609 * monitor.c (monitor_rcmd): Update.
3610
d03de421
PA
36112014-06-16 Pedro Alves <palves@redhat.com>
3612
3613 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3614 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3615 have OBJF_SHARED set.
3616 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3617 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3618 instead of OBJF_USERLOADED.
3619 * objfiles.h (OBJF_SHARED): Update comment.
3620 (userloaded_objfile_contains_address_p): Rename to ...
3621 (shared_objfile_contains_address_p): ... this, and update
3622 comments.
3623 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3624 new objfile.
3625 (remove_symbol_file_command): Skip objfiles that don't have
3626 OBJF_SHARED set.
3627
99f4262f
TT
36282014-06-16 Tom Tromey <tromey@redhat.com>
3629
3630 * minsyms.h (prim_record_minimal_symbol)
3631 (prim_record_minimal_symbol_and_info): Update comments.
3632
97d66cc6
EZ
36332014-06-14 Eli Zaretskii <eliz@gnu.org>
3634
3635 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3636 or --without-guile, according to how GDB was built.
3637
635c7e8a
TT
36382014-06-13 Tom Tromey <tromey@redhat.com>
3639
3640 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3641 to help_list.
3642 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3643 to help_list.
3644 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3645 help_list.
3646 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3647 help_list.Pass all_commands, not -1, to help_list.
3648 * cli/cli-dump.c (dump_command, append_command)
3649 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3650 (binary_dump_command, binary_append_command): Pass all_commands,
3651 not -1, to help_list.
3652 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3653 -1, to help_list.
3654 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3655 -1, to help_list.
3656 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3657 help_list.
3658 * top.c (set_history): Pass all_commands, not -1, to help_list.
3659 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3660 all_commands, not -1, to help_list.
3661 * symfile.c (overlay_command): Pass all_commands, not -1, to
3662 help_list.
3663 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3664 help_list.
3665 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3666 help_list.
3667 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3668 -1, to help_list.
3669 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3670 not -1, to help_list.
3671 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3672 not -1, to help_list.
3673 * maint.c (maintenance_command, maintenance_info_command)
3674 (maintenance_print_command, maintenance_set_cmd): Pass
3675 all_commands, not -1, to help_list.
3676 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3677 help_list.
3678 * language.c (set_check): Pass all_commands, not -1, to help_list.
3679 * infcmd.c (unset_command): Pass all_commands, not -1, to
3680 help_list.
3681 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3682 help_list.
3683 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3684 help_list.
3685 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3686 help_list.
3687 * breakpoint.c (save_command): Pass all_commands, not -1, to
3688 help_list.
3689 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3690 all_commands, not -1, to help_list.
3691
b94ade42
PL
36922014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3693
3694 * regcache.c (struct register_to_invalidate): New structure.
3695 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3696 functions.
3697 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3698
31f628ae
YQ
36992014-06-12 Yao Qi <yao@codesourcery.com>
3700
3701 * varobj.c (varobj_get_num_children): Call
3702 varobj_is_dynamic_p.
3703 (varobj_list_children): Likewise.
3704 (varobj_update): Likewise. Update comments.
3705
cde5ef40
YQ
37062014-06-12 Yao Qi <yao@codesourcery.com>
3707
3708 * varobj.c (varobj_pretty_printed_p): Rename to ...
3709 (varobj_is_dynamic_p): ... this. New function.
3710 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3711 (varobj_is_dynamic_p): Declare.
3712 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3713 (mi_print_value_p, varobj_update_one): Likewise.
3714
576ea091
YQ
37152014-06-12 Pedro Alves <pedro@codesourcery.com>
3716 Yao Qi <yao@codesourcery.com>
3717
3718 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3719 (varobj_get_iterator): Wrap up code for pretty-printer by
3720 "#if HAVE_PYTHON" and "#endif".
3721 (update_dynamic_varobj_children): Likewise.
3722
827f100c
YQ
37232014-06-12 Pedro Alves <pedro@codesourcery.com>
3724 Yao Qi <yao@codesourcery.com>
3725
3726 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3727 gdb_python_initialized is false. Move some code from varobj.c.
3728 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3729 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3730 (struct varobj_item): Moved to varobj-iter.h".
3731 (varobj_clear_saved_item): New function.
3732 (update_dynamic_varobj_children): Move python-related code to
3733 py-varobj.c.
3734 (free_variable): Call varobj_clear_saved_item and
3735 varobj_iter_delete.
3736
e5250216
YQ
37372014-06-12 Pedro Alves <pedro@codesourcery.com>
3738 Yao Qi <yao@codesourcery.com>
3739
3740 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3741 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3742 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3743 (py-varobj.o): New rule.
3744 * python/py-varobj.c: New file.
3745 * python/python-internal.h (py_varobj_get_iterator): Declare.
3746 * varobj-iter.h: New file.
3747 * varobj.c: Include "varobj-iter.h"
3748 (struct varobj) <child_iter>: Change its type from "PyObject *"
3749 to "struct varobj_iter *".
3750 <saved_item>: Likewise.
3751 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3752 [HAVE_PYTHON] (varobj_get_iterator): New function.
3753 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3754 python-specific code to python/py-varobj.c.
3755 (install_visualizer): Call varobj_iter_delete instead of
3756 Py_XDECREF.
3757 * varobj.h (varobj_ensure_python_env): Declare.
3758
5a2e0d6e
YQ
37592014-06-12 Yao Qi <yao@codesourcery.com>
3760
3761 * varobj.c (struct varobj_item): New structure.
3762 (create_child_with_value): Update declaration.
3763 (varobj_add_child): Replace arguments 'name' and 'value' with
3764 'item'. All callers updated.
3765 (install_dynamic_child): Likewise.
3766 (update_dynamic_varobj_children): Likewise.
3767 (varobj_add_child): Likewise.
3768 (create_child_with_value): Likewise.
3769
919b9a93
JB
37702014-06-11 Joel Brobecker <brobecker@adacore.com>
3771
3772 * NEWS: Create a new section for the next release branch.
3773 Rename the section of the current branch, now that it has
3774 been cut.
3775
71a55bdf
JB
37762014-06-11 Joel Brobecker <brobecker@adacore.com>
3777
3778 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3779 * version.in: Bump version to 7.8.50.DATE-cvs.
3780
364fe1f7
PA
37812014-06-11 Pedro Alves <palves@redhat.com>
3782
3783 PR remote/17028
3784 * ser-mingw.c (net_windows_socket_check_pending): New function.
3785 (net_windows_select_thread): Ignore spurious wakeups. Use
3786 net_windows_socket_check_pending.
3787 (net_windows_wait_handle): Check for pending events with
3788 ioctlsocket, through net_windows_socket_check_pending, instead of
3789 checking the socket's event.
3790
5a6c7709
SC
37912014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3792
3793 * python/python-internal.h (gdb_PyObject_GetAttrString)
3794 (gdb_PyObject_HasAttrString): New inline function definitions.
3795 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3796 char * of the second argument to PyObject_GetAttrString.
74228e77 3797
0e58ee40
JB
37982014-06-10 Joel Brobecker <brobecker@adacore.com>
3799
3800 * serial.c (serial_write): Fix index of character to be printed
3801 in call to serial_logchar when serial debug traces are enabled.
3802
d190df30
JB
38032014-06-10 Joel Brobecker <brobecker@adacore.com>
3804
3805 * gdbtypes (resolve_dynamic_range): Add function description.
3806
b4b01d36
PA
38072014-06-09 Pedro Alves <palves@redhat.com>
3808
3809 * linux-nat.c (linux_child_follow_fork): Initialize status with
3810 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3811 inner block. Only pass the signal to PTRACE_DETACH if in pass
3812 state.
3813
3657956b
GB
38142014-06-09 Gary Benson <gbenson@redhat.com>
3815
3816 * common/signals.c (gdb_signal_from_host): Reorder to separate
3817 the always-available ANSI-standard signals from the signals that
3818 require checking.
3819 (do_gdb_signal_to_host): Likewise.
3820 * proc-events.c (signal_table): Likewise.
3821
c077881a
HZ
38222014-06-08 Hui Zhu <hui@codesourcery.com>
3823
3824 * common/linux-ptrace.c (linux_disable_event_reporting): New
3825 function.
3826 * common/linux-ptrace.h (linux_disable_event_reporting): New
3827 declaration.
3828 * linux-nat.c (linux_child_follow_fork): Do a single step before
3829 detach.
3830
4186eb54
KS
38312014-06-07 Keith Seitz <keiths@redhat.com>
3832
3833 Revert:
3834 PR c++/16253
3835 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3836 from symbol_matches_domain in symtab.c. All local callers
3837 of symbol_matches_domain updated.
3838 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3839 search STRUCT_DOMAIN.
3840 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3841 independently. standard_lookup will do that automatically.
3842 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3843 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3844 (cp_lookup_symbol_in_namespace): Likewise.
3845 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3846 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3847 may return a STRUCT_DOMAIN match.
3848 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3849 * cp-support.c: Include language.h.
3850 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3851 VAR_DOMAIN.
3852 * psymtab.c (match_partial_symbol): Compare the requested
3853 domain with the symbol's domain directly.
3854 (lookup_partial_symbol): Likewise.
3855 * symtab.c (lookup_symbol_in_language): Explain when/why
3856 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3857 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3858 appropriate languages.
3859 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3860 and moved to ada-lang.c
3861 (lookup_block_symbol): Explain that this function only returns
3862 symbol matching the requested DOMAIN.
3863 Compare the requested domain with the symbol's domain directly.
3864 (iterate_over_symbols): Compare the requested domain with the
3865 symbol's domain directly.
3866 * symtab.h (symbol_matches_domain): Remove.
3867
25326a28 38682014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3869
3870 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3871 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3872 (gdbscm_guile_version_is_at_least): Declare.
3873 (gdbscm_scm_string_to_int): Declare.
3874 * guile/guile.c (gdbscm_guile_major_version): New global.
3875 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3876 (guile_datadir): New static global.
3877 (gdbscm_guile_data_directory): New function.
3878 (initialize_scheme_side): Update.
3879 (misc_guile_functions): Add guile-data-directory.
3880 (initialize_gdb_module): Fetch guile version number.
3881 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3882 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3883 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3884 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3885 comments.
3886 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3887 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3888 * guile/scm-value.c (gdbscm_value_to_string): Only call
3889 scm_port_conversion_strategy if Guile version >= 2.0.6.
3890
0a770bb2 38912014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3892
3893 * main.c (print_gdb_help): Add -q and --silent.
3894
73ba372c
GB
38952014-06-06 Gary Benson <gbenson@redhat.com>
3896
3897 * common/signals.c: Remove preprocessor conditionals for
3898 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3899 SIGSEGV and SIGTERM.
3900 * proc-events.c: Likewise.
3901
c33b2f12
MM
39022014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3903
3904 * symfile.c (symfile_free_objfile): Remove restriction to
3905 OBJF_USERLOADED.
3906 * symfile-mem.c (symbol_file_add_from_memory): Call
3907 add_target_sections_of_objfile.
3908
fb934770
LC
39092014-06-05 Ludovic Courtès <ludo@gnu.org>
3910
3911 * guile/scm-value.c (gdbscm_history_append_x): Use
3912 'vlscm_get_value_smob_arg_unsafe' instead of
3913 'vlscm_scm_to_value'.
3914
6ef284bd
SM
39152014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3916
3917 PR mi/15806
3918 * utils.c (printchar): Don't escape at all if quoter is NUL.
3919 Update function documentation to clarify effect of parameter
3920 QUOTER.
3921 * remote.c (escape_buffer): Pass '\\' as the quoter to
3922 fputstrn_unfiltered.
3923 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3924 generate the output.
3925 (mi_solib_unloaded): Same.
3926
270c9937
JB
39272014-06-05 Joel Brobecker <brobecker@adacore.com>
3928
3929 * development.sh: Delete.
3930 * Makefile.in (config.status): Adjust dependency on development.sh.
3931 * configure.ac: Adjust development.sh source call.
3932 * configure: Regenerate.
3933
16f691fb
DE
39342014-06-04 Doug Evans <xdje42@gmail.com>
3935
3936 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3937 is_scheme_bkpt, spec.
3938 (bpscm_make_breakpoint_smob): Initialize new members.
3939 (gdbscm_create_breakpoint_x): Split into two ...
3940 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3941 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3942 (scheme_function breakpoint_functions): Update.
3943 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3944 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3945 register-breakpoint!.
3946
ef7cab6b
JB
39472014-06-04 Joel Brobecker <brobecker@adacorer.com>
3948
3949 PR server/17023
3950 * mem-break.c (z_type_supported): Return zero if
3951 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3952
012370f6
TT
39532014-06-04 Tom Tromey <tromey@redhat.com>
3954
3955 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3956 value_from_contents_and_address_unresolved.
3957 (ada_template_to_fixed_record_type_1): Likewise.
3958 (ada_which_variant_applies): Likewise.
3959 * value.h (value_from_contents_and_address_unresolved): Declare.
3960 * value.c (value_from_contents_and_address_unresolved): New
3961 function.
3962 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3963 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3964 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3965
92e2a17f
TT
39662014-06-04 Tom Tromey <tromey@redhat.com>
3967
3968 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3969
c0939df1
TT
39702014-06-04 Tom Tromey <tromey@redhat.com>
3971
3972 * procfs.c (procfs_attach): Make "args" const.
3973 * windows-nat.c (windows_attach): Make "args" const.
3974 * nto-procfs.c (procfs_attach): Make "args" const.
3975 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3976 * go32-nat.c (go32_attach): Make "args" const.
3977 * gnu-nat.c (gnu_attach): Make "args" const.
3978 * darwin-nat.c (darwin_attach): Make "args" const.
3979 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3980 * linux-nat.c (linux_nat_attach): Make "args" const.
3981 * remote.c (extended_remote_attach_1, extended_remote_attach):
3982 Make "args" const.
3983 * target.h (struct target_ops) <to_attach>: Make "args" const.
3984 (find_default_attach): Likewise.
3985 * utils.c (parse_pid_to_attach): Make "args" const.
3986 * utils.h (parse_pid_to_attach): Update.
3987
8eaff7cd
TT
39882014-06-04 Tom Tromey <tromey@redhat.com>
3989
3990 * target-delegates.c: Rebuild.
3991 * target.c (default_thread_address_space): New function.
3992 (target_thread_address_space): Simplify.
3993 * target.h (struct target_ops) <to_thread_address_space>: Add
3994 TARGET_DEFAULT_FUNC.
3995
1913f160
DE
39962014-06-04 Doug Evans <xdje42@gmail.com>
3997
3998 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3999
70ad5bff
MM
40002014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4001
4002 * record-btrace.c: Include event-loop.h and inf-loop.h.
4003 (record_btrace_resume_exec_dir)
4004 (record_btrace_async_inferior_event_handler)
4005 (record_btrace_handle_async_inferior_event): New.
4006 (record_btrace_open): Create async event handler.
4007 (record_btrace_close): Delete async event handler.
4008 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4009 Mark async event handler.
4010 (record_btrace_execution_direction): New.
4011 (init_record_btrace_ops): Initialize to_execution_direction.
4012
b6210538
DE
40132014-06-03 Doug Evans <xdje42@gmail.com>
4014
4015 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4016 (gdbscm_make_parameter): Ditto.
4017
a5b1fd27
DE
40182014-06-03 Doug Evans <dje@google.com>
4019
4020 * exec.c (exec_close_1): Call clear_section_table instead of
4021 resize_section_table.
4022 (clear_section_table): New function.
4023 (resize_section_table): Make static. Rename arg num_added to
4024 adjustment.
4025 * exec.h (clear_section_table): Declare.
4026 (resize_section_table): Delete.
4027 * progspace.c (release_program_space): Call clear_section_table
4028 instead of resize_section_table.
4029
0c6e92a5
SC
40302014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4031
4032 * NEWS (Python Scripting): Add entry about the new xmethods
4033 feature.
4034
883964a7
SC
40352014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4036
4037 * python/py-xmethods.c: New file.
4038 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4039 (objfpy_dealloc): XDECREF on the new xmethods field.
4040 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4041 field.
4042 (objfpy_get_xmethods): New function.
4043 (objfile_getset): New entry 'xmethods'.
4044 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4045 (pspy_dealloc): XDECREF on the new xmethods field.
4046 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4047 field.
4048 (pspy_get_xmethods): New function.
4049 (pspace_getset): New entry 'xmethods'.
4050 * python/python-internal.h: Add declarations for new functions.
4051 * python/python.c (_initialize_python): Invoke
4052 gdbpy_initialize_xmethods.
4053 * python/lib/gdb/__init__.py (xmethods): New
4054 attribute.
4055 * python/lib/gdb/xmethod.py: New file.
4056 * python/lib/gdb/command/xmethods.py: New file.
4057
58992dc5
SC
40582014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4059
4060 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4061 best match method returned by find_overload_match is an xmethod.
4062 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4063 the best matching operator returned by find_overload_match is an
4064 xmethod.
4065 * valops.c: #include "extension.h".
4066 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4067 Return void. The list of matching source methods is returned in
4068 "fn_list" and a vector of matching debug method workers is
4069 returned in "xm_worker_vec". Update all callers.
4070 (value_find_oload_method_list): Likewise.
4071 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4072 non-NULL, then the index of the best matching method in this
4073 vector is returned. Update all callers.
4074 (find_overload_match): Include xmethods while performing overload
4075 resolution.
4076
e81e7f5e
SC
40772014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4078
4079 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4080 * extension-priv.h (struct extension_language_ops): Add the
4081 xmethod interface.
4082 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4083 get_matching_xmethod_workers, get_xmethod_argtypes,
4084 invoke_xmethod, free_xmethod_worker,
4085 free_xmethod_worker_vec): New functions.
4086 * extension.h: #include "common/vec.h".
4087 New function declarations.
4088 (struct xmethod_worker): New struct.
4089 (VEC (xmethod_worker_ptr)): New vector type.
4090 (xmethod_worker_ptr): New typedef.
4091 (xmethod_worker_vec): Likewise.
4092 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4093 builtin_type.
4094 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4095 (struct builtin_type): New field "xmethod".
4096 * valarith.c (value_ptradd): Assert that the value argument is not
4097 lval_xcallable.
4098 * valops.c (value_must_coerce_to_target): Return 0 for
4099 lval_xcallable values.
4100 * value.c (struct value): New field XM_WORKER in the field
4101 LOCATION.
4102 (value_address, value_raw_address): Return 0 for lval_xcallable
4103 values.
4104 (set_value_address): Assert that the value is not an
4105 lval_xcallable.
4106 (value_free): Free the associated xmethod worker when freeing
4107 lval_xcallable values.
4108 (set_value_component_location): Assert that the WHOLE value is not
4109 lval_xcallable.
4110 (value_of_xmethod, call_xmethod): New functions.
4111 * value.h: Declare "struct xmethod_worker".
4112 Declare new functions value_of_xmethod, call_xmethod.
4113
ef370185
JB
41142014-06-03 Joel Brobecker <brobecker@adacore.com>
4115 Pedro Alves <palves@redhat.com>
4116
4117 PR breakpoints/17000
4118 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4119 New function, extracted from software_breakpoint_inserted_here_p.
4120 (software_breakpoint_inserted_here_p): Replace factored out code
4121 by call to find_non_raw_software_breakpoint_inserted_here.
4122 (bp_target_info_copy_insertion_state): New function.
4123 (bkpt_insert_location): Handle the case of a single-step
4124 breakpoint already inserted at the same address.
4125 (bkpt_remove_location): Handle the case of a single-step
4126 breakpoint still inserted at the same address.
4127 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4128 breakpoint already inserted at the same address.
4129 (deprecated_remove_raw_breakpoint): Handle the case of a
4130 non-raw breakpoint still inserted at the same address.
4131 (find_single_step_breakpoint): New function, extracted from
4132 single_step_breakpoint_inserted_here_p.
4133 (find_single_step_breakpoint): New function,
4134 factored out from single_step_breakpoint_inserted_here_p.
4135 (single_step_breakpoint_inserted_here_p): Reimplement.
4136
1e2ccb61
BM
41372014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4138
4139 Pushed by Joel Brobecker <brobecker@adacore.com>
4140 * source.c (show_substitute_path_command): Fix display of matching
4141 substitution rules.
4142
d3448d85
GB
41432014-06-03 Gary Benson <gbenson@redhat.com>
4144
4145 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4146
06eb1586
DE
41472014-06-02 Doug Evans <xdje42@gmail.com>
4148
4149 Add parameter support for Guile.
4150 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4151 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4152 (scm-param.o): New rule.
4153 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4154 (gdbscm_misc_error): Declare.
4155 (gdbscm_canonicalize_command_name): Declare.
4156 (gdbscm_scm_to_host_string): Declare.
4157 (gdbscm_scm_from_host_string): Declare.
4158 (gdbscm_initialize_parameters): Declare.
4159 * guile/guile.c (initialize_gdb_module): Call
4160 gdbscm_initialize_parameters.
4161 * guile/lib/gdb.scm: Export parameter symbols.
4162 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4163 cmdscm_canonicalize_name and made public. All callers updated.
4164 * guile/scm-exception.c (gdbscm_misc_error): New function.
4165 * guile/scm-param.c: New file.
4166 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4167 (gdbscm_scm_to_host_string): New function.
4168 (gdbscm_scm_from_host_string): New function.
4169 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4170
e698b8c4
DE
41712014-06-02 Doug Evans <xdje42@gmail.com>
4172
4173 Add command support for Guile.
4174 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4175 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4176 (scm-cmd.o): New rule.
4177 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4178 (gdbscm_user_error_p): Declare.
4179 (gdbscm_parse_command_name): Declare.
4180 (gdbscm_valid_command_class_p): Declare.
4181 (gdbscm_initialize_commands): Declare.
4182 * guile/guile.c (initialize_gdb_module): Call
4183 gdbscm_initialize_commands.
4184 * guile/lib/gdb.scm: Export command symbols.
4185 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4186 (throw-user-error): New function.
4187 * guile/scm-cmd.c: New file.
4188 * guile/scm-exception.c (user_error_symbol): New static global.
4189 (gdbscm_user_error_p): New function.
4190 (gdbscm_initialize_exceptions): Set user_error_symbol.
4191 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4192
fb1f94b0
PM
41932014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4194
4195 * top.c (command_loop): Handle comments here...
4196 (command_line_input): ... not here.
4197
ded03782
DE
41982014-06-02 Doug Evans <xdje42@gmail.com>
4199
4200 Add progspace support for Guile.
4201 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4202 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4203 (scm-progspace.o): New rule.
4204 * guile/guile-internal.h (pspace_smob): New typedef.
4205 (psscm_pspace_smob_pretty_printers): Declare.
4206 (psscm_pspace_smob_from_pspace): Declare.
4207 (psscm_scm_from_pspace): Declare.
4208 * guile/guile.c (initialize_gdb_module): Call
4209 gdbscm_initialize_pspaces.
4210 * guile/lib/gdb.scm: Export progspace symbols.
4211 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4212 support.
4213 (append-pretty-printer!): Ditto.
4214 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4215 Implement.
4216 * guile/scm-progspace.c: New file.
4217
397998fc
AM
42182014-06-03 Alan Modra <amodra@gmail.com>
4219
4220 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4221 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4222
6aa5f3a6
DE
42232014-06-02 Doug Evans <dje@google.com>
4224
4225 Add support for skeletonless type units.
4226 * dwarf2read.c (struct dwarf2_per_objfile): New member
4227 n_allocated_type_units.
4228 (struct dwarf2_per_objfile) <tu_stats>: New member
4229 nr_all_type_units_reallocs.
4230 (create_signatured_type_table_from_index): Initialize
4231 n_allocated_type_units
4232 (create_all_type_units): Ditto.
4233 (add_type_unit): Move up in file. New arg slot.
4234 All callers updated. Increase space for all_type_units more
4235 efficiently.
4236 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4237 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4238 (lookup_dwp_signatured_type): Ditto.
4239 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4240 All callers updated.
4241 (build_type_psymtabs_1): Leave type_unit_groups as
4242 NULL if no TUs present.
4243 (print_tu_stats): New function.
4244 (process_skeletonless_type_unit): New function.
4245 (process_dwo_file_for_skeletonless_type_units): New
4246 function.
4247 (process_skeletonless_type_units): New function.
4248 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4249 Call print tu_stats if debugging enabled.
4250
41fac0cf
PA
42512014-06-02 Pedro Alves <palves@redhat.com>
4252
4253 * breakpoint.c (build_target_command_list): Don't build a command
4254 list if we have any duplicate location that isn't a dprintf.
4255
cd1608cc
PA
42562014-06-02 Pedro Alves <palves@redhat.com>
4257
4258 * breakpoint.c (dprintf_breakpoint_hit): New function.
4259 (initialize_breakpoint_ops): Install it as dprintf's
4260 breakpoint_hit method.
4261
486ef3b9
JB
42622014-06-02 Joel Brobecker <brobecker@adacore.com>
4263
4264 * source.c (substitute_path_rule_matches): Simplify using
4265 filename_ncmp instead of FILENAME_CMP.
4266
230cd560
JB
42672014-06-02 Joel Brobecker <brobecker@adacore.com>
4268
4269 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4270
16954d5d
LC
42712014-06-01 Ludovic Courtès <ludo@gnu.org>
4272
4273 * configure.ac: When Guile is available, check for the
4274 availability of 'scm_new_smob'.
4275 * configure, config.h.in: Regenerate.
4276 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4277 function.
4278
53e8a631
AB
42792014-05-30 Andrew Burgess <aburgess@broadcom.com>
4280
4281 * frame.c (struct frame_info): Add stop_string field.
4282 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4283 (get_prev_frame_always): Old content moved into
4284 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4285 TRY_CATCH, handle MEMORY_ERROR exceptions.
4286 (frame_stop_reason_string): New function definition.
4287 * frame.h (unwind_stop_reason_to_string): Extend comment to
4288 mention frame_stop_reason_string.
4289 (frame_stop_reason_string): New function declaration.
4290 * stack.c (frame_info): Switch to frame_stop_reason_string.
4291 (backtrace_command_1): Switch to frame_stop_reason_string.
4292 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4293 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4294 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4295
70e38b8e
AB
42962014-05-30 Andrew Burgess <aburgess@broadcom.com>
4297
4298 * frame.c (frame_stop_reason_string): Rename to ...
4299 (unwind_stop_reason_to_string): this.
4300 * frame.h (frame_stop_reason_string): Rename to ...
4301 (unwind_stop_reason_to_string): this.
4302 * stack.c (frame_info): Update call to frame_stop_reason_string.
4303 (backtrace_command_1): Likewise.
4304 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4305 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4306
938f0e2f
AB
43072014-05-30 Andrew Burgess <aburgess@broadcom.com>
4308
4309 * frame.c (remove_prev_frame): New function.
4310 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4311 remove_prev_frame.
4312
a09dd441
PA
43132014-05-29 Pedro Alves <palves@redhat.com>
4314
4315 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4316 and make it const. When a single-step decays to a continue,
4317 clear 'step', not 'hw_step'. Pass whether the caller wanted
4318 to step to user_visible_resume_ptid, not what we ask the
4319 target to do.
4320
bdc36728
PA
43212014-05-29 Pedro Alves <palves@redhat.com>
4322
4323 * infrun.c (process_event_stop_test, handle_step_into_function)
4324 (handle_step_into_function_backward): Adjust.
4325 Don't set the even thread's stop_step and call stop_waiting before
4326 calling end_stepping_range. Instead do that ...
4327 (end_stepping_range): ... here. Take an ecs pointer parameter.
4328
22bcd14b
PA
43292014-05-29 Pedro Alves <palves@redhat.com>
4330
4331 * infrun.c (stop_stepping): Rename to ...
4332 (stop_waiting): ... this.
4333 (proceed): Update comment.
4334 (process_event_stop_test, handle_inferior_event)
4335 (handle_signal_stop, handle_step_into_function)
4336 (handle_step_into_function_backward): Update.
4337
4ae57c05
PA
43382014-05-29 Pedro Alves <palves@redhat.com>
4339
4340 * infcall.c (run_inferior_call): Don't check whether the current
4341 thread is running after the proceed call.
4342
329ea579
PA
43432014-05-29 Pedro Alves <palves@redhat.com>
4344 Tom Tromey <tromey@redhat.com>
4345
4346 * NEWS: Mention "maint set target-async", "set mi-async", and that
4347 background execution commands are now always available.
4348 * target.h (target_async_permitted): Update comment.
4349 * target.c (target_async_permitted, target_async_permitted_1):
4350 Default to 1.
4351 (set_target_async_command): Rename to ...
4352 (maint_set_target_async_command): ... this.
4353 (show_target_async_command): Rename to ...
4354 (maint_show_target_async_command): ... this.
4355 (_initialize_target): Adjust.
4356 * infcmd.c (prepare_execution_command): Make extern.
4357 * inferior.h (prepare_execution_command): Declare.
4358 * infrun.c (set_observer_mode): Leave target async alone.
4359 * mi/mi-interp.c (mi_interpreter_init): Install
4360 mi_on_sync_execution_done as sync_execution_done observer.
4361 (mi_on_sync_execution_done): New function.
4362 (mi_execute_command_input_handler): Don't print the prompt if we
4363 just started a synchronous command with an async target.
4364 (mi_on_resume): Check sync_execution before printing prompt.
4365 * mi/mi-main.h (mi_async_p): Declare.
4366 * mi/mi-main.c: Include gdbcmd.h.
4367 (mi_async_p): New function.
4368 (mi_async, mi_async_1): New globals.
4369 (set_mi_async_command, show_mi_async_command, mi_async): New
4370 functions.
4371 (exec_continue): Call prepare_execution_command.
4372 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4373 (mi_execute_async_cli_command): Use mi_async_p.
4374 (_initialize_mi_main): Install "set mi-async". Make
4375 "target-async" a deprecated alias.
4376
92bcb5f9
PA
43772014-05-29 Pedro Alves <palves@redhat.com>
4378
4379 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4380 (_initialize_cli_interp): Adjust.
4381 * event-loop.c: Include "observer.h".
4382 (start_event_loop): Notify 'command_error' observers instead of
4383 calling display_gdb_prompt. Remove FIXME comment.
4384 * event-top.c (display_gdb_prompt): Remove call into the
4385 interpreters.
4386 * inf-loop.c: Include "observer.h".
4387 (inferior_event_handler): Notify 'command_error' observers instead
4388 of calling display_gdb_prompt.
4389 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4390 observers instead of calling display_gdb_prompt.
4391 * interps.c (interp_set): Don't call display_gdb_prompt.
4392 (current_interp_display_prompt_p): Delete.
4393 * interps.h (interp_prompt_p): Delete declaration.
4394 (interp_prompt_p_ftype): Delete.
4395 (struct interp_procs) <prompt_proc_p>: Delete field.
4396 (current_interp_display_prompt_p): Delete declaration.
4397 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4398 (_initialize_mi_interp): Adjust.
4399 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4400 'command_error' observers.
4401 (tui_on_sync_execution_done, tui_on_command_error): New
4402 functions.
4403 (tui_display_prompt_p): Delete.
4404 (_initialize_tui_interp): Adjust.
4405
fd664c91
PA
44062014-05-29 Pedro Alves <palves@redhat.com>
4407
4408 PR gdb/13860
4409 * cli/cli-interp.c: Include infrun.h and observer.h.
4410 (cli_uiout, cli_interp): New globals.
4411 (cli_on_signal_received, cli_on_end_stepping_range)
4412 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4413 functions.
4414 (cli_interpreter_init): Install them as 'end_stepping_range',
4415 'signal_received' 'signal_exited', 'exited' and 'no_history'
4416 observers.
4417 (_initialize_cli_interp): Remove cli_interp local.
4418 * infrun.c (handle_inferior_event): Call the several stop reason
4419 observers instead of printing the stop reason directly.
4420 (end_stepping_range): New function.
4421 (print_end_stepping_range_reason, print_signal_exited_reason)
4422 (print_exited_reason, print_signal_received_reason)
4423 (print_no_history_reason): Make static, and add an uiout
4424 parameter. Print to that instead of to CURRENT_UIOUT.
4425 * infrun.h (print_end_stepping_range_reason)
4426 (print_signal_exited_reason, print_exited_reason)
4427 (print_signal_received_reason print_no_history_reason): New
4428 declarations.
4429 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4430 'mi_uiout'.
4431 <cli_uiout>: New field.
4432 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4433 uiout for CLI output. Install 'signal_received',
4434 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4435 observers.
4436 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4437 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4438 (mi_on_no_history): New functions.
4439 (ui_out_free_cleanup): Delete function.
4440 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4441 instead use the one already stored in the MI interpreter data.
4442 (mi_ui_out): Adjust.
4443 * tui/tui-interp.c: Include infrun.h and observer.h.
4444 (tui_interp): New global.
4445 (tui_on_signal_received, tui_on_end_stepping_range)
4446 (tui_on_signal_exited, tui_on_exited)
4447 (tui_on_no_history): New functions.
4448 (tui_init): Install them as 'end_stepping_range',
4449 'signal_received' 'signal_exited', 'exited' and 'no_history'
4450 observers.
4451 (_initialize_tui_interp): Delete tui_interp local.
4452
8817a6f2
PA
44532014-05-29 Pedro Alves <palves@redhat.com>
4454
4455 PR gdb/15713
4456 * linux-nat.c (linux_nat_resume_callback): Rename the second
4457 parameter to 'except'. Skip LP if it points to EXCEPT.
4458 (linux_nat_resume): Don't mark the event lwp as not stopped
4459 before resuming sibling lwps. Instead ask
4460 linux_nat_resume_callback to skip the event lwp. Mark it as not
4461 stopped after actually resuming it.
4462 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4463 resuming it.
4464 (wait_lwp): Mark the lwp as stopped here.
4465 (stop_wait_callback): Mark the lwp as not stopped right after
4466 resuming it. Don't mark lwps as stopped here.
4467 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4468 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4469
251bde03
PA
44702014-05-29 Pedro Alves <palves@redhat.com>
4471
4472 PR PR15693
4473 * infrun.c (resume): Determine how much to resume depending on
4474 whether the caller wanted a step, not whether we can hardware step
4475 the target. Mark all threads that we intend to run as running,
4476 unless we're calling an inferior function.
4477 (normal_stop): If the thread is running an infcall, don't finish
4478 thread state.
4479 * target.c (target_resume): Don't mark threads as running here.
4480
7f3c0343
JB
44812014-05-28 Joel Brobecker <brobecker@adacore.com>
4482
4483 * serial.c (_initialize_serial): Remove support for
4484 the "set remotebaud" and "show remotebaud" commands.
4485 * NEWS: Add entry documenting the removal of that command.
4486
ee34b3f9
YQ
44872014-05-28 Yao Qi <yao@codesourcery.com>
4488
4489 * charset.c: Fix typo in comments.
4490
add6c04d
GB
44912014-05-27 Gary Benson <gbenson@redhat.com>
4492
4493 * utils.c (internal_vproblem): Prompt for a bug report.
4494
92c48fc5
AW
44952014-05-26 Andy Wingo <wingo@igalia.com>
4496
4497 * guile/scm-arch.c (arscm_mark_arch_smob):
4498 * guile/scm-block.c (bkscm_mark_block_smob)
4499 (bkscm_mark_block_syms_progress_smob):
4500 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4501 * guile/scm-exception.c (exscm_mark_exception_smob):
4502 * guile/scm-frame.c (frscm_mark_frame_smob):
4503 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4504 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4505 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4506 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4507 (ppscm_mark_pretty_printer_worker_smob):
4508 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4509 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4510 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4511 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4512 mark functions.
4513 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4514 function.
4515
b2715b27
AW
45162014-05-26 Andy Wingo <wingo@igalia.com>
4517 Doug Evans <xdje42@gmail.com>
4518
4519 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4520 empty_base_class. All uses updated.
4521 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4522 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4523 Adapt all callers.
4524 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4525 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4526 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4527 (gdbscm_gsmob_has_property_p, add_property_name)
4528 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4529 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4530 (gdb-object-has-property?, gdb-object-properties): Remove.
4531 (gdb-object-kind): Renamed from gsmob-kind.
4532
214ab2da
AW
45332014-05-26 Andy Wingo <wingo@igalia.com>
4534
4535 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4536 * configure: Regenerate.
4537
589fdceb
MM
45382014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4539
4540 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4541
67b5c0c1
MM
45422014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4543
4544 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4545 (replay_memory_access_read_only, replay_memory_access_read_write)
4546 (replay_memory_access_types, replay_memory_access)
4547 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4548 (cmd_set_record_btrace, cmd_show_record_btrace)
4549 (cmd_show_replay_memory_access): New.
4550 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4551 (record_btrace_remove_breakpoint): Replace
4552 record_btrace_allow_memory_access with replay_memory_access.
4553 (_initialize_record_btrace): Add commands.
4554 * NEWS: Announce it.
4555
036cd381
RR
45562014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4557
4558 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4559
c77c1e42
RR
45602014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4561
4562 * MAINTAINERS (Write After Approval): Move self back from
4563 paper trail.
4564
45741a9c
PA
45652014-05-22 Pedro Alves <palves@redhat.com>
4566
4567 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4568 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4569 (disable_randomization, enum exec_direction_kind)
4570 (execution_direction, stop_registers, start_remote)
4571 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4572 (wait_for_inferior, normal_stop, get_last_target_status)
4573 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4574 (insert_step_resume_breakpoint_at_sal)
4575 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4576 (set_step_info, print_stop_event, signal_stop_state)
4577 (signal_print_state, signal_pass_state, signal_stop_update)
4578 (signal_print_update, signal_pass_update)
4579 (update_signals_program_target, clear_exit_convenience_vars)
4580 (displaced_step_dump_bytes, update_observer_mode)
4581 (signal_catch_update, gdb_signal_from_command): Move
4582 declarations ...
4583 * infrun.h: ... to this new file.
4584 * amd64-tdep.c: Include infrun.h.
4585 * annotate.c: Include infrun.h.
4586 * arch-utils.c: Include infrun.h.
4587 * arm-linux-tdep.c: Include infrun.h.
4588 * arm-tdep.c: Include infrun.h.
4589 * break-catch-sig.c: Include infrun.h.
4590 * breakpoint.c: Include infrun.h.
4591 * common/agent.c: Include infrun.h instead of inferior.h.
4592 * corelow.c: Include infrun.h.
4593 * event-top.c: Include infrun.h.
4594 * go32-nat.c: Include infrun.h.
4595 * i386-tdep.c: Include infrun.h.
4596 * inf-loop.c: Include infrun.h.
4597 * infcall.c: Include infrun.h.
4598 * infcmd.c: Include infrun.h.
4599 * infrun.c: Include infrun.h.
4600 * linux-fork.c: Include infrun.h.
4601 * linux-nat.c: Include infrun.h.
4602 * linux-thread-db.c: Include infrun.h.
4603 * monitor.c: Include infrun.h.
4604 * nto-tdep.c: Include infrun.h.
4605 * procfs.c: Include infrun.h.
4606 * record-btrace.c: Include infrun.h.
4607 * record-full.c: Include infrun.h.
4608 * remote-m32r-sdi.c: Include infrun.h.
4609 * remote-mips.c: Include infrun.h.
4610 * remote-notif.c: Include infrun.h.
4611 * remote-sim.c: Include infrun.h.
4612 * remote.c: Include infrun.h.
4613 * reverse.c: Include infrun.h.
4614 * rs6000-tdep.c: Include infrun.h.
4615 * s390-linux-tdep.c: Include infrun.h.
4616 * solib-irix.c: Include infrun.h.
4617 * solib-osf.c: Include infrun.h.
4618 * solib-svr4.c: Include infrun.h.
4619 * target.c: Include infrun.h.
4620 * top.c: Include infrun.h.
4621 * windows-nat.c: Include infrun.h.
4622 * mi/mi-interp.c: Include infrun.h.
4623 * mi/mi-main.c: Include infrun.h.
4624 * python/py-threadevent.c: Include infrun.h.
4625
98eb56a4
PA
46262014-05-22 Pedro Alves <palves@redhat.com>
4627
4628 * infrun.c (handle_inferior_event): Store the exit code for
4629 --return-child-result here, instead of ...
4630 (print_exited_reason): ... here.
4631
17b2616c
PA
46322014-05-21 Pedro Alves <palves@redhat.com>
4633
4634 PR gdb/13860
4635 * gdbthread.h (struct thread_control_state): New field
4636 `command_interp'.
4637 * infrun.c (follow_fork): Copy the new thread control field to the
4638 child fork thread.
4639 (clear_proceed_status_thread): Clear the new thread control field.
4640 (proceed): Set the new thread control field.
4641 * interps.h (command_interp): Declare.
4642 * interps.c (command_interpreter): New global.
4643 (command_interp): New function.
4644 (interp_exec): Set `command_interpreter' while here.
4645 * cli-out.c (cli_uiout_dtor): New function.
4646 (cli_ui_out_impl): Install it.
4647 * mi/mi-interp.c: Include cli-out.h.
4648 (mi_cmd_interpreter_exec): Add comment.
4649 (restore_current_uiout_cleanup): New function.
4650 (ui_out_free_cleanup): New function.
4651 (mi_on_normal_stop): If finishing an execution command started by
4652 a CLI command, or any kind of breakpoint-like event triggered,
4653 print the stop event to the output (CLI) stream.
4654 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4655
5166082f
PA
46562014-05-21 Pedro Alves <palves@redhat.com>
4657
4658 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4659 current source line having changed.
4660 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4661 * infrun.c (normal_stop): Adjust call to
4662 set_current_sal_from_frame.
4663 * source.c (clear_lines_listed_range): New function.
4664 (set_current_source_symtab_and_line, identify_source_line): Clear
4665 the lines listed range.
4666 (line_info): Handle the first "info line" after the current source
4667 line having changed.
4668 * stack.c (print_stack_frame): Remove center handling.
4669 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4670 center sal.line.
4671
c1ee2fb3
PA
46722014-05-21 Pedro Alves <palves@redhat.com>
4673
4674 * inf-child.c (inf_child_mourn_inferior): New function.
4675 * inf-child.h (inf_child_mourn_inferior): New declaration.
4676 * darwin-nat.c (darwin_mourn_inferior): Use
4677 inf_child_mourn_inferior.
4678 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4679 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4680 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4681 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4682 * windows-nat.c (windows_mourn_inferior): Likewise.
4683
5c6d4fb2
DE
46842014-05-21 Doug Evans <xdje42@gmail.com>
4685
250748cb 4686 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4687
4a2722c5
DE
46882014-05-21 Doug Evans <xdje42@gmail.com>
4689
17292b30 4690 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4691 (gdbscm_out_of_range_error): Ditto.
4692 (gdbscm_memory_error): Ditto.
250748cb
DE
4693 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4694 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4695 (gdbscm_out_of_range_error): Update.
4696 (gdbscm_memory_error): Update.
4697 (gdbscm_scm_to_target_string_unsafe): Delete.
4698
6a3cb8e8
PA
46992014-05-21 Pedro Alves <palves@redhat.com>
4700
4701 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4702 globals.
4703 (inf_child_open_target): New function.
4704 (inf_child_open): Use inf_child_open_target to push the target
4705 instead of erroring out.
4706 (inf_child_disconnect, inf_child_close)
4707 (inf_child_maybe_unpush_target): New functions.
4708 (inf_child_target): Install inf_child_disconnect and
4709 inf_child_close. Store a pointer to the returned object.
4710 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4711 declarations.
4712 * target.c (auto_connect_native_target): New global.
4713 (show_default_run_target): New function.
4714 (find_default_run_target): Return NULL if automatically connecting
4715 to the native target is disabled.
4716 (_initialize_target): Install set/show auto-connect-native-target.
4717 * NEWS: Mention "set auto-connect-native-target", and "target
4718 native".
4719 * linux-nat.c (super_close): New global.
4720 (linux_nat_close): Call super_close.
4721 (linux_nat_add_target): Store a pointer to the base class's
4722 to_close method.
4723 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4724 inf_child_maybe_unpush.
4725 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4726 already pushed.
4727 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4728 the inferior. Use inf_child_maybe_unpush_target.
4729 (inf_ttrace_attach): Don't push the target if it is already
4730 pushed.
4731 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4732 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4733 after mourning the inferior. Use inf_child_maybe_unpush_target.
4734 (darwin_attach_pid): Don't push the target if it is already
4735 pushed.
4736 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4737 mourning the inferior. Use inf_child_maybe_unpush_target.
4738 (gnu_detach): Use inf_child_maybe_unpush_target.
4739 * go32-nat.c (go32_create_inferior): Don't push the target if it
4740 is already pushed.
4741 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4742 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4743 (procfs_open): Rename to ...
4744 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4745 comments. Can target_preopen before changing node. Call
4746 inf_child_open_target to push the target explicitly.
4747 (procfs_attach): Don't push the target if it is already pushed.
4748 (procfs_detach): Use inf_child_maybe_unpush_target.
4749 (procfs_create_inferior): Don't push the target if it is already
4750 pushed.
4751 (nto_native_ops): New global.
4752 (procfs_open): Reimplement.
4753 (procfs_native_open): New function.
4754 (init_procfs_targets): Install procfs_native_open as to_open of
4755 "target native". Store a pointer to the "native" target in
4756 nto_native_ops.
4757 * procfs.c (procfs_attach): Don't push the target if it is already
4758 pushed.
4759 (procfs_detach): Use inf_child_maybe_unpush_target.
4760 (procfs_mourn_inferior): Only unpush the target after mourning the
4761 inferior. Use inf_child_maybe_unpush_target.
4762 (procfs_init_inferior): Don't push the target if it is already
4763 pushed.
4764 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4765 if it is already pushed.
4766
930ee1b1
PA
47672014-05-21 Pedro Alves <palves@redhat.com>
4768
4769 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4770 and "procfs" targets are now called "native" instead.
4771
1f5d1b13
PA
47722014-05-21 Pedro Alves <palves@redhat.com>
4773
4774 * go32-nat.c (go32_open): Delete.
4775 (go32_target): Don't override the to_open method.
4776
132f8e03
PA
47772014-05-21 Pedro Alves <palves@redhat.com>
4778
4779 * nto-procfs.c (procfs_can_run): New function.
4780 (nto_procfs_ops): New global.
4781 (init_procfs_targets): New, based on procfs_target. Install
4782 "target native" in addition to "target procfs".
4783 (_initialize_procfs): Call init_procfs_targets instead of adding
4784 the target here.
4785
03c136c3
PA
47862014-05-21 Pedro Alves <palves@redhat.com>
4787
4788 * windows-nat.c (windows_target): Don't override to_shortname,
4789 to_longname or to_doc.
4790
a635d0f3
PA
47912014-05-21 Pedro Alves <palves@redhat.com>
4792
4793 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4794 to_doc.
4795
4f9b5133
PA
47962014-05-21 Pedro Alves <palves@redhat.com>
4797
4798 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4799 to_shortname, to_longname or to_doc.
4800
bc85afde
PA
48012014-05-21 Pedro Alves <palves@redhat.com>
4802
4803 * go32-nat.c (go32_target): Don't override to_shortname,
4804 to_longname or to_doc.
4805
4ebfc96e
PA
48062014-05-21 Pedro Alves <palves@redhat.com>
4807
4808 * inf-child.c (inf_child_open): Remove mention of "child".
4809 (inf_child_target): Rename target to "native" instead of "child".
4810
2648dfed
AA
48112014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4812
4813 * Makefile.in (SFILES): Delete "regset.c".
4814 (COMMON_OBS): Delete "regset.o".
4815 * regset.c: Remove.
4816 * regset.h (regset_alloc): Delete prototype.
4817
b13feb94
AA
48182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4819
4820 * sparc-linux-tdep.c (sparc32_linux_gregset)
4821 (sparc32_linux_fpregset): New static regset structures.
4822 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4823 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4824 'fpregset' fields.
4825 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4826 (sparc64_linux_fpregset): New static regset structures.
4827 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4828 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4829 New static regset structures.
4830 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4831 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4832 New static regset structures.
4833 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4834 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4835 New static regset structures.
4836 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4837 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4838 New static regset structures.
4839 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4840
b4fd25c9
AA
48412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4842
4843 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4844 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4845 register maps ("regmaps") from "*regset" to "*regmap". Do this
4846 for all regmap types and variables.
4847 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4848 (sparc32_linux_supply_core_gregset)
4849 (sparc32_linux_collect_core_gregset)
4850 (sparc32_linux_supply_core_fpregset)
4851 (sparc32_linux_collect_core_fpregset): Likewise.
4852 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4853 (sparc_gregmap, sparc_fpregmap): ... these.
4854 (sparc_supply_gregset, sparc_collect_gregset)
4855 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4856 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4857 (_initialize_sparc_nat): Rename regmaps.
4858 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4859 (sparc_gregmap, sparc_fpregmap): ... these.
4860 (sparc_supply_gregset, sparc_collect_gregset)
4861 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4862 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4863 Rename macros to...
4864 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4865 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4866 Likewise.
4867 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4868 Rename to...
4869 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4870 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4871 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4872 regmaps.
4873 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4874 (sparc32_bsd_fpregset): Rename to...
4875 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4876 (sparc32_bsd_fpregmap): ... these.
4877 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4878 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4879 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4880 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4881 (struct sparc_gregmap, struct sparc_fpregmap)
4882 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4883 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4884 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4885 (sparc32_supply_regset, sparc32_collect_gregset)
4886 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4887 prototypes.
4888 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4889 (sparc64_linux_ptrace_gregmap): ... this.
4890 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4891 (_initialize_sparc64_linux_nat): Rename regmaps.
4892 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4893 (sparc64_linux_core_gregmap): ... this.
4894 (sparc64_linux_supply_core_gregset)
4895 (sparc64_linux_collect_core_gregset)
4896 (sparc64_linux_supply_core_fpregset)
4897 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4898 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4899 (sparc64_sol2_fpregset): Rename to...
4900 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4901 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4902 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4903 regmaps.
4904 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4905 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4906 (sparc64_bsd_fpregset): Rename to...
4907 (struct sparc_gregmap, sparc64_sol2_gregmap)
4908 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4909 (sparc64_bsd_fpregmap): ... these.
4910 (sparc64_supply_gregset, sparc64_collect_gregset)
4911 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4912 prototypes.
4913 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4914 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4915 (sparc64fbsd_gregmap): ... this.
4916 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4917 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4918 Rename regmaps.
4919 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4920 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4921 (sparc64nbsd_collect_fpregset): Likewise.
4922 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4923 (sparc64nbsd_gregmap): ... this.
4924 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4925 regmaps.
4926 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4927 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4928 (sparc64obsd_gregmap): ... this.
4929 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4930 regmaps.
4931 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4932 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4933 (sparc32nbsd_gregmap): ... this.
4934 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4935 regmaps.
4936
8fea3224
AA
49372014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4938
4939 * score-tdep.c (score7_linux_gregset): New static regset
4940 structure.
4941 (score7_linux_regset_from_core_section): Remove dynamic regset
4942 allocation.
4943 (score_gdbarch_init): Drop allocation of tdep structure.
4944 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4945
24534243
AA
49462014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4947
4948 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4949 regset structures.
4950 (am33_regset_from_core_section): Remove dynamic regset
4951 allocations.
4952
b7195f27
AA
49532014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4954
4955 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4956 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4957 structures.
4958 (mips_linux_regset_from_core_section): Remove dynamic regset
4959 allocations.
4960 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4961 'gregset64', 'fpregset', and 'fpregset64'.
4962 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4963 deleted tdep fields.
4964
ecc37a5a
AA
49652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4966
4967 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4968 regset structures.
4969 (amd64_regset_from_core_section): Remove dynamic regset
4970 allocations.
4971 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4972 structure.
4973 (amd64obsd_regset_from_core_section): Remove dynamic regset
4974 allocation.
4975 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4976 Likewise.
4977 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4978 x86-common regset supply function.
4979 * i386-tdep.c (i386_collect_gregset): Make static.
4980 (i386_gregset): New global regset structure.
4981 (i386_fpregset, i386_xstateregset): New static regset structures.
4982 (i386_regset_from_core_section): Remove dynamic regset
4983 allocations.
4984 (i386_gdbarch_init): Remove initialization of tdep fields
4985 'gregset', 'fpregset', and 'xstateregset'.
4986 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4987 'fpregset', and 'xstateregset'.
4988 (i386_collect_gregset): Remove prototype.
4989 (i386_gregset): New declaration.
4990 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4991 structure.
4992 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4993 allocation.
4994
b7611c43
AA
49952014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4996
4997 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4998 (arm_linux_vfpregset): New static regset structures.
4999 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5000 regset structures.
5001 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5002 and 'vfpregset' fields.
5003
a069a2bd
AA
50042014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5005
5006 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5007 (aarch64_linux_fpregset): New static regset structures.
5008 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5009 of regset structures.
5010 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5011 'fpregset' fields.
5012
09424cff
AA
50132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5014
5015 * regset.h (struct regset): Remove gdbarch field.
5016 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5017 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5018 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5019 Likewise.
5020 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5021 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5022 (ppc32_linux_vsxregset): Likewise.
5023 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5024 via the regcache instead of the regset.
5025 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5026 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5027 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5028 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5029 Likewise.
5030
3ca7dae4
AA
50312014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5032
5033 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5034 Constify structures.
5035 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5036 (alphanbsd_aout_gregset): Likewise.
5037 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5038 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5039 Likewise.
5040 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5041 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5042 Likewise.
5043 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5044 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5045 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5046 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5047 * m88k-tdep.c (m88k_gregset): Likewise.
5048 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5049 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5050 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5051 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5052 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5053 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5054 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5055 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5056 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5057 Likewise.
5058 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5059 * sh-tdep.h (sh_corefile_gregset): Likewise.
5060 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5061 * vax-tdep.c (vax_gregset): Likewise.
5062
5876f503
JK
50632014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5064
5065 Fix TLS access for -static -pthread.
5066 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5067 (try_thread_db_load_1): Initialize it.
5068 (thread_db_get_thread_local_address): Call it if LM is zero.
5069 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5070 * target.h (struct target_ops) (to_get_thread_local_address): Add
5071 load_module_addr comment.
5072
0256a6ac
PA
50732014-05-21 Pedro Alves <palves@redhat.com>
5074
5075 * dcache.c (dcache_read_memory_partial): If reading the cache line
5076 fails, fallback to reading just the memory the caller wanted.
5077
227533ac
DE
50782014-05-20 Doug Evans <dje@google.com>
5079
5080 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5081 instead of get_current_arch.
5082
936d2992
PA
50832014-05-20 Pedro Alves <palves@redhat.com>
5084
5085 * NEWS: Mention that compare-sections now works with all targets.
5086
5087 * remote.c (PACKET_qCRC): New enum value.
5088 (remote_verify_memory): Don't send qCRC if the target has no
5089 execution. Use packet_support/packet_ok. If the target doesn't
5090 support the qCRC packet, fallback to a deep memory copy.
5091 (compare_sections_command): Say "target image" instead of "remote
5092 executable".
5093 (_initialize_remote): Add PACKET_qCRC to the list of config
5094 packets that have no associated command. Extend comment.
5095 * target.c (simple_verify_memory, default_verify_memory): New
5096 function.
5097 * target.h (struct target_ops) <to_verify_memory>: Default to
5098 default_verify_memory.
5099 (simple_verify_memory): New declaration.
5100 * target-delegates.c: Regenerate.
5101
e59fa00f
MM
51022014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5103
5104 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5105
f2205de0
HZ
51062014-05-20 Hui Zhu <hui@codesourcery.com>
5107 Yao Qi <yao@codesourcery.com>
5108
5109 PR backtrace/16558
5110 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5111 and change address of sp and pc.
5112
c4e54771
TT
51132014-05-19 Tom Tromey <tromey@redhat.com>
5114
5115 * gdbtypes.c (rank_function): Use XNEWVEC.
5116 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5117
73051182
DE
51182014-05-19 Doug Evans <dje@google.com>
5119
5120 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5121 build_type_unit_groups and moved closer to only caller. Remove
5122 arguments. All references updated. Remove outdated .gdb_index
5123 comment.
5124 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5125 build_type_psymtabs_1.
5126
8832e7e3
DE
51272014-05-19 Doug Evans <dje@google.com>
5128
5129 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5130 n_type_unit_groups, all_type_unit_groups. All uses removed.
5131 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5132 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5133 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5134 (add_type_unit_group_to_table): Delete.
5135
cd8ae15e
DE
51362014-05-19 Doug Evans <dje@google.com>
5137
5138 * eval.c (evaluate_subexp_standard): Add some comments.
5139
08f4850b
DE
51402014-05-17 Doug Evans <xdje42@gmail.com>
5141
5142 * progspace.c (remove_program_space): Delete, unused.
5143 * progspace.h (remove_program_space): Ditto.
5144
bed8455c
DE
51452014-05-17 Doug Evans <xdje42@gmail.com>
5146
5147 * inferior.c (prune_inferiors): Fix comment.
5148 (remove_inferior_command): Call prune_program_spaces.
5149
8d551b02
DE
51502014-05-16 Doug Evans <dje@google.com>
5151
5152 New command line option -D.
5153 * NEWS: Mention it.
5154 * main.c (set_gdb_data_directory): New function.
5155 (captured_main): Recognize -D. Flag error for --data-directory "".
5156 Call set_gdb_data_directory.
5157 (print_gdb_help): Print --data-directory, -D.
5158 * main.h (set_gdb_data_directory): Declare.
5159 * top.c (staged_gdb_datadir): New static global.
5160 (set_gdb_datadir): Call set_gdb_data_directory
5161 (show_gdb_datadir): New function.
5162 (init_main): Update init of data-directory parameter.
5163
18848e28
GF
51642014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5165
5166 Import the "dirfd" gnulib module.
5167 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5168 * gnulib/aclocal.m4: Update.
5169 * gnulib/config.in: Update.
5170 * gnulib/configure: Update.
5171 * gnulib/import/Makefile.am: Update.
5172 * gnulib/import/Makefile.in: Update.
5173 * gnulib/import/dirfd.c: New.
5174 * gnulib/import/m4/dirfd.m4: New.
5175 * gnulib/import/m4/gnulib-cache.m4: Update.
5176 * gnulib/import/m4/gnulib-comp.m4: Update.
5177
95c64f92
YQ
51782014-05-16 Pierre Muller <muller@sourceware.org>
5179 Yao Qi <yao@codesourcery.com>
5180
5181 * valprint.c (print_wchar): Move the code on checking whether
5182 W is a printable wide char to the default branch of switch
5183 statement below. Call wchar_printable instead of gdb_iswprint.
5184
cac395ea
TM
51852014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5186
19679eca 5187 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5188 ldr.w and ldrd instructions.
5189
83655187
DE
51902014-05-15 Doug Evans <dje@google.com>
5191
5192 * dwarf2read.c (read_structure_type): Delete outdated comments.
5193
dd756689
TT
51942014-05-14 Tom Tromey <tromey@redhat.com>
5195
5196 * macrocmd.c (print_macro_definition): Reindent.
5197
75ddda77
DE
51982014-05-13 Doug Evans <xdje42@gmail.com>
5199
5200 * python/py-cmd.c (cmdpy_completer): Add comment.
5201 (completers): Make const.
5202
b0f16a3e
SM
52032014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5204
5205 * infrun.c (resume): Remove should_resume (unused). Move up
5206 declaration of resume_ptid.
5207
033c3379
TT
52082014-05-13 Tom Tromey <tromey@redhat.com>
5209
5210 * language.h (unop_type_check): Remove.
5211 (binop_type_check): Don't declare.
5212
9b44a3a5
AA
52132014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5214
5215 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5216 call to regcache_raw_collect.
5217
303a33fa
SM
52182014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5219
5220 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5221 mi_console->quote as the quoting character.
5222
196100a0
SM
52232014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5224
5225 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5226
f989a1c8
TT
52272014-04-29 Tom Tromey <tromey@redhat.com>
5228
5229 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5230 "show debug varobj".
5231
9404b58f
KM
52322014-05-07 Kyle McMartin <kyle@redhat.com>
5233
5234 Pushed by Joel Brobecker <brobecker@adacore.com>.
5235 * aarch64-tdep.c (aarch64_software_single_step): New function.
5236 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5237 with aarch64_software_single_step.
5238
5e49ba57
JB
52392014-05-05 Joel Brobecker <brobecker@adacore.com>
5240
5241 GDB 7.7.1 released.
5242
c888a17d
KS
52432014-05-05 Keith Seitz <keiths@redhat.com>
5244
5245 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5246 variable or history value is successfully parsed.
5247
290a839c
YQ
52482014-05-05 Yao Qi <yao@codesourcery.com>
5249 Pedro Alves <palves@redhat.com>
5250
5251 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5252 address of blocks that intersects the requested range. Trim
5253 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5254 sections.
5255 * ctf.c (ctf_xfer_partial): Likewise.
5256
91256dc2
YQ
52572014-05-05 Yao Qi <yao@codesourcery.com>
5258
5259 * printcmd.c (display_command): Remove the check to
5260 target_has_execution.
5261
07284463
MK
52622014-05-03 Mark Kettenis <kettenis@gnu.org>
5263
5264 * ppcobsd-nat.c: Include "obsd-nat.h".
5265 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5266 add_target.
5267 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5268
30a1e6cc
SDJ
52692014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5270
5271 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5272 and 16-bit signed and unsigned arguments. Update comment.
5273 (stap_parse_probe_arguments): Extend code to handle such
5274 arguments. Use warning instead of complaint to notify about
5275 unrecognized bitness.
5276
f33da99a
SDJ
52772014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5278
5279 PR breakpoints/16889
5280 * stap-probe.c (stap_parse_probe_arguments): Simplify
5281 check for non-prefixed probes (i.e., probes whose
5282 arguments do not start with "N@"). Always set the
5283 argument type to a sane value.
5284
95cf3b38
DT
52852014-05-01 David Taylor <dtaylor@emc.com>
5286
5287 * remote.c (compare_sections_command): Add -r option to compare
5288 all loadable read-only sections.
5289
1cfdf534
SC
52902014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5291
5292 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5293 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5294 Update all callers.
5295 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5296 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5297 Remove unused CORE_ADDR argument. Update all callers.
5298
ca4f7f8b
PA
52992014-04-29 Pedro Alves <palves@redhat.com>
5300
5301 * remote.c (struct packet_config) <detect>: Extend comment.
5302 (add_packet_config_cmd): Don't set the config's detect or support
5303 fields here.
5304 (init_all_packet_configs): Also initialize the config's 'detect'
5305 field.
5306 (reset_all_packet_configs_support): New function.
5307 (remote_open_1): Call reset_all_packet_configs_support instead of
5308 init_all_packet_configs.
5309 (_initialize_remote): Initialize all packet configs. Assert that
5310 all packets have an associated command, except a few known
5311 outliers.
5312
11c1ba78
JB
53132014-04-28 Joel Brobecker <brobecker@adacore.com>
5314
5315 * dwarf2read.c (read_subrange_type): Handle dynamic
5316 DW_AT_lower_bound attributes.
5317
8739bc53
JB
53182014-04-28 Joel Brobecker <brobecker@adacore.com>
5319
5320 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5321 dynamic bounds before computing its upper bound.
5322 (ada_discrete_type_low_bound): Same as above with the lower bound.
5323
6f8a3220
JB
53242014-04-28 Joel Brobecker <brobecker@adacore.com>
5325
5326 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5327 range types. Adjust the array handling implementation to
5328 take advantage of this change.
5329 (resolve_dynamic_range): New function, mostly extracted from
5330 resolve_dynamic_bounds.
5331 (resolve_dynamic_array): New function, mostly extracted from
5332 resolve_dynamic_bounds.
5333 (resolve_dynamic_bounds): Delete.
5334 (resolve_dynamic_type): Reimplement. Add handling of
5335 TYPE_CODE_RANGE types.
5336
4d072ce4
JB
53372014-04-28 Joel Brobecker <brobecker@adacore.com>
5338
5339 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5340 handling of parallel ___XA types.
5341
52865325
JB
53422014-04-28 Joel Brobecker <brobecker@adacore.com>
5343
5344 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5345 unnecessary second call to static_unwrap_type.
5346
433e77fa
HZ
53472014-04-27 Hui Zhu <hui@codesourcery.com>
5348
5349 * stack.c (print_frame_info): Call do_gdb_disassembly with
5350 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5351
b51a69ee
DE
53522014-04-26 Doug Evans <xdje42@gmail.com>
5353
5354 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5355
7ae1a6a6
PA
53562014-04-25 Pedro Alves <palves@redhat.com>
5357
5358 PR server/16255
5359 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5360 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5361 and newline from built string.
5362 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5363 (linux_ptrace_attach_fail_reason): ... this.
5364 * linux-nat.c (linux_nat_attach): Adjust to use
5365 linux_ptrace_attach_fail_reason.
5366
4082afcc
PA
53672014-04-25 Pedro Alves <palves@redhat.com>
5368
5369 * remote.c (struct remote_state): Remove multi_process_aware,
5370 non_stop_aware, cond_tracepoints, cond_breakpoints,
5371 breakpoint_commands, fast_tracepoints, static_tracepoints,
5372 install_in_trace, disconnected_tracing,
5373 enable_disable_tracepoints, string_tracing, and
5374 augmented_libraries_svr4_read fields.
5375 (remote_multi_process_p): Move further below in the file.
5376 (struct packet_config): Add comments.
5377 (update_packet_config): Delete function.
5378 (show_packet_config_cmd): Use packet_config_support.
5379 (add_packet_config_cmd): Use NULL as set callback.
5380 (packet_ok): "set remote foo-packet"-style commands no longer
5381 change config->supported -- adjust.
5382 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5383 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5384 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5385 (PACKET_QNonStop, PACKET_multiprocess_feature)
5386 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5387 (PACKET_DisconnectedTracing_feature)
5388 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5389 (set_remote_protocol_packet_cmd): Delete function.
5390 (packet_config_support, packet_support): New functions.
5391 (set_remote_protocol_Z_packet_cmd): Don't call
5392 update_packet_config.
5393 (remote_query_attached, remote_pass_signals)
5394 (remote_program_signals, remote_threads_info)
5395 (remote_threads_extra_info, remote_start_remote): Use
5396 packet_support.
5397 (remote_start_remote): Use packet_config_support and
5398 packet_support.
5399 (init_all_packet_configs): Set all packets to unknown support,
5400 instead of calling update_packet_config.
5401 (remote_check_symbols): Use packet_support.
5402 (remote_supported_packet): Unconditionally set the packet config's
5403 support status.
5404 (remote_multi_process_feature, remote_non_stop_feature)
5405 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5406 (remote_breakpoint_commands_feature)
5407 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5408 (remote_install_in_trace_feature)
5409 (remote_disconnected_tracing_feature)
5410 (remote_enable_disable_tracepoint_feature)
5411 (remote_string_tracing_feature)
5412 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5413 (remote_protocol_features): Adjust to use remote_supported_packet
5414 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5415 "ConditionalTracepoints", "ConditionalBreakpoints",
5416 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5417 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5418 "EnableDisableTracepoints", and "tracenz".
5419 (remote_query_supported): Use packet_support.
5420 (remote_open_1): Adjust.
5421 (extended_remote_attach_1): Use packet_support. Switch on the
5422 result of packet_ok instead of checking whether the packet ended
5423 up disabled.
5424 (remote_vcont_resume): Use packet_support.
5425 (remote_resume, remote_stop_ns, fetch_register_using_p)
5426 (remote_prepare_to_store, store_register_using_P)
5427 (check_binary_download, remote_write_bytes): Use packet_support.
5428 (remote_vkill): Use packet_support. Switch on the result of
5429 packet_ok instead of checking whether the packet ended up
5430 disabled.
5431 (extended_remote_supports_disable_randomization): Use
5432 packet_support.
5433 (extended_remote_run): Switch on the result of packet_ok instead
5434 of checking whether the packet ended up disabled.
5435 (remote_insert_breakpoint, remote_remove_breakpoint)
5436 (remote_insert_watchpoint, remote_remove_watchpoint)
5437 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5438 packet_support.
5439 (remote_search_memory): Use packet_config_support.
5440 (remote_get_thread_local_address, remote_get_tib_address)
5441 (remote_hostio_send_command, remote_can_execute_reverse): Use
5442 packet_support.
5443 (remote_supports_cond_tracepoints)
5444 (remote_supports_cond_breakpoints)
5445 (remote_supports_fast_tracepoints)
5446 (remote_supports_static_tracepoints)
5447 (remote_supports_install_in_trace)
5448 (remote_supports_enable_disable_tracepoint)
5449 (remote_supports_string_tracing)
5450 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5451 the packet config says the feature is enabled or disabled.
5452 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5453 (remote_get_trace_status): Use packet_support.
5454 (remote_set_disconnected_tracing): Adjust to check whether the
5455 feature is enabled with packet_support.
5456 (remote_set_trace_buffer_size, remote_use_agent)
5457 (remote_can_use_agent, remote_supports_btrace): Use
5458 packet_support.
5459 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5460 Use packet_config_support.
5461 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5462 the packet config says the feature is enabled or disabled.
5463 (set_range_stepping): Use packet_support.
5464
bdb52a22
TT
54652014-04-25 Tom Tromey <tromey@redhat.com>
5466
5467 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5468 argument.
5469
e9475ead
SA
54702014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5471
5472 * NEWS: Mention support for C99 variable length arrays.
5473
82eacd52
JB
54742014-04-24 Joel Brobecker <brobecker@adacore.com>
5475
5476 * ada-lang.c (standard_exc): Expand introductory comment.
5477
01f9f808
MS
54782014-04-24 Michael Sturm <michael.sturm@mintel.com>
5479 Walfred Tedeschi <walfred.tedeschi@intel.com>
5480
5481 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5482 AVX512 registers.
5483 (amd64_linux_read_description): Add code to handle AVX512 xstate
5484 mask and return respective tdesc.
5485 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5486 and features/i386/x32-avx512-linux.c.
5487 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5488 (amd64_linux_core_read_description): Add code to handle AVX512
5489 xstate mask and return respective tdesc.
5490 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5491 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5492 calculation.
5493 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5494 (tdesc_amd64_avx512_linux): New prototype.
5495 (tdesc_x32_avx512_linux): Likewise.
5496 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5497 features/i386/x32-avx512.c.
5498 (amd64_ymm_avx512_names): New register names for pseudo
5499 registers YMM16-31.
5500 (amd64_ymmh_avx512_names): New register names for raw registers
5501 YMMH16-31.
5502 (amd64_k_names): New register names for K registers.
5503 (amd64_zmmh_names): New register names for ZMM raw registers.
5504 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5505 (amd64_xmm_avx512_names): New register names for XMM16-31
5506 registers.
5507 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5508 registers.
5509 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5510 if feature is present.
5511 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5512 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5513 (AMD64_NUM_REGS): Adjust to new number of registers.
5514 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5515 registers supplied via XSTATE by AVX512 registers.
5516 (i386_linux_read_description): Add case for AVX512.
5517 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5518 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5519 (i386_linux_core_read_description): Add case for AVX512.
5520 (i386_linux_init_abi): Install supported register note section
5521 for AVX512.
5522 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5523 AVX512.
5524 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5525 registers to be number of zmm7h + 1.
5526 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5527 * i386-tdep.c: Include features/i386/i386-avx512.c.
5528 (i386_zmm_names): Add ZMM pseudo register names array.
5529 (i386_zmmh_names): Add ZMM raw register names array.
5530 (i386_k_names): Add K raw register names array.
5531 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5532 registers. AVX512 has 16 more ZMM registers than there are YMM
5533 registers.
5534 (i386_zmmh_regnum_p): Add function to look up register number of
5535 ZMM raw registers.
5536 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5537 (i386_k_regnum_p): Likewise for K raw registers.
5538 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5539 registers added by AVX512.
5540 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5541 registers added by AVX512.
5542 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5543 added by AVX512.
5544 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5545 (i386_pseudo_register_name): Add ZMM pseudo registers.
5546 (i386_zmm_type): Construct and return vector registers type for ZMM
5547 registers.
5548 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5549 ZMM0-31 pseudo registers and K registers.
5550 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5551 and YMM16-31 registers from register cache.
5552 (i386_pseudo_register_write): Add code to write K, ZMM and
5553 YMM16-31 registers.
5554 (i386_register_reggroup_p): Add code to include/exclude AVX512
5555 registers in/from respective register groups.
5556 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5557 registers if feature is present in xcr0.
5558 (i386_gdbarch_init): Add code to initialize AVX512 feature
5559 variables in tdep structure, wire in pseudo registers and call
5560 initialize_tdesc_i386_avx512.
5561 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5562 variables.
5563 (i386_regnum): Add AVX512 registers.
5564 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5565 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5566 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5567 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5568 512 bits wide.
5569 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5570 (i386_ymm_avx512_regnum_p): Likewise.
5571 (i386_k_regnum_p): Likewise.
5572 (i386_zmm_regnum_p): Likewise.
5573 (i386_zmmh_regnum_p): Likewise.
5574 * i387-tdep.c : Update year in copyright notice.
5575 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5576 XSAVE buffer.
5577 (XSAVE_YMM_AVX512_ADDR): New macro.
5578 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5579 XSAVE buffer.
5580 (XSAVE_XMM_AVX512_ADDR): New macro.
5581 (xsave_avx512_k_offset): New table for K register offsets in
5582 XSAVE buffer.
5583 (XSAVE_AVX512_K_ADDR): New macro.
5584 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5585 in XSAVE buffer.
5586 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5587 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5588 buffer.
5589 (i387_collect_xsave): Add code to collect AVX512 registers from
5590 XSAVE buffer.
5591 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5592 of XMM16-31 registers.
5593 (I387_NUM_K_REGS): New define for number of K registers.
5594 (I387_K0_REGNUM): New define for K0 register number.
5595 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5596 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5597 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5598 registers.
5599 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5600 (I387_XMM16_REGNUM): New define for XMM16 register number.
5601 (I387_YMM0_REGNUM): New define for YMM0 register number.
5602 (I387_KEND_REGNUM): New define for last K register number.
5603 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5604 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5605 number.
5606 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5607 number.
5608 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5609 size.
5610 * features/Makefile: Add AVX512 related files.
5611 * features/i386/32bit-avx512.xml: New file.
5612 * features/i386/64bit-avx512.xml: Likewise.
5613 * features/i386/amd64-avx512-linux.c: Likewise.
5614 * features/i386/amd64-avx512-linux.xml: Likewise.
5615 * features/i386/amd64-avx512.c: Likewise.
5616 * features/i386/amd64-avx512.xml: Likewise.
5617 * features/i386/i386-avx512-linux.c: Likewise.
5618 * features/i386/i386-avx512-linux.xml: Likewise.
5619 * features/i386/i386-avx512.c: Likewise.
5620 * features/i386/i386-avx512.xml: Likewise.
5621 * features/i386/x32-avx512-linux.c: Likewise.
5622 * features/i386/x32-avx512-linux.xml: Likewise.
5623 * features/i386/x32-avx512.c: Likewise.
5624 * features/i386/x32-avx512.xml: Likewise.
5625 * regformats/i386/amd64-avx512-linux.dat: New file.
5626 * regformats/i386/amd64-avx512.dat: Likewise.
5627 * regformats/i386/i386-avx512-linux.dat: Likewise.
5628 * regformats/i386/i386-avx512.dat: Likewise.
5629 * regformats/i386/x32-avx512-linux.dat: Likewise.
5630 * regformats/i386/x32-avx512.dat: Likewise.
5631 * NEWS: Add note about new support for AVX512.
5632
5633
08351840
PA
56342014-04-23 Pedro Alves <palves@redhat.com>
5635
5636 * breakpoint.c (insert_bp_location): Tolerate errors if the
5637 breakpoint is set in a user-loaded objfile.
5638 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5639 location is marked shlib_disabled. If the breakpoint is set in a
5640 user-loaded objfile is a GDB-side memory breakpoint, validate it
5641 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5642 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5643 flag.
5644 * mem-break.c (memory_validate_breakpoint): New function.
5645 * objfiles.c (userloaded_objfile_contains_address_p): New
5646 function.
5647 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5648 * target.h (memory_validate_breakpoint): New declaration.
5649
076855f9
PA
56502014-04-23 Pedro Alves <palves@redhat.com>
5651
5652 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5653 the breakpoint is set in a shared library, only suppress
5654 errors for software breakpoints, not hardware breakpoints.
5655
483805cf
PA
56562014-04-22 Pedro Alves <palves@redhat.com>
5657
5658 * infrun.c (schedlock_applies): New function, factored out from
5659 find_thread_needs_step_over.
5660 (find_thread_needs_step_over): Use it.
5661 (switch_back_to_stepped_thread): Always clear trap_expected if the
5662 step over is finished. Return early if scheduler locking applies.
5663 Look for the stepping thread and a potential step-over thread with
5664 a single loop.
5665 (currently_stepping_or_nexting_callback): Delete.
5666
a75fef0e
NC
56672014-04-22 Nick Clifton <nickc@redhat.com>
5668
5669 * NEWS: Mention that ARM sim now supports tracing.
5670
48b6e87e
YQ
56712014-04-22 Yao Qi <yao@codesourcery.com>
5672
5673 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5674 to ...
5675 * tracefile.c (tracefile_fetch_registers): ... it. New
5676 function.
5677 * tracefile.h (tracefile_fetch_registers): Declare.
5678 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5679 tracefile_fetch_registers.
5680
17617f2d
EZ
56812014-04-19 Eli Zaretskii <eliz@gnu.org>
5682
5683 PR gdb/14018
5684 * windows-nat.c (thread_rec): Don't display a warning when
5685 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5686 fails for any reason, set th->suspended to -1, so that we don't
5687 try to resume such a thread. Also, don't return NULL in these
5688 cases, to avoid completely ruin the session due to "PC register is
5689 not available" error.
5690 (do_windows_fetch_inferior_registers): Check errors in
5691 GetThreadContext call.
5692 (windows_continue): Accept an additional argument KILLED; if not
5693 zero, ignore errors in the SetThreadContext call, since the
5694 inferior was killed and is shutting down.
5695 (windows_resume, get_windows_debug_event)
5696 (windows_create_inferior, windows_mourn_inferior)
5697 (windows_kill_inferior): All callers of windows_continue changed
5698 to adjust to its new calling sequence.
5699
5723a6fd
YQ
57002014-04-19 Yao Qi <yao@codesourcery.com>
5701
5702 * ctf.c (ctf_open): Call post_create_inferior.
5703
614d5099
YQ
57042014-04-19 Yao Qi <yao@codesourcery.com>
5705
5706 * ctf.c (handle_id): New static variable.
5707 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5708 value. Get the declaration of event "register" and get length
5709 of field "contents".
5710
dac3e710
YQ
57112014-04-19 Yao Qi <yao@codesourcery.com>
5712
5713 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5714
2bca57ba
SC
57152014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5716
5717 * valops.c (oload_method_static): Remove unnecessary argument
5718 METHOD. Update all callers.
5719
51d48146
PA
57202014-04-18 Pedro alves <palves@redhat.com>
5721 Tom Tromey <tromey@redhat.com>
5722
5723 PR backtrace/15558
5724 * frame.c (get_prev_frame_1): Rename to ...
5725 (get_prev_frame_always): ... this, and make extern. Adjust.
5726 (skip_artificial_frames): Use get_prev_frame_always.
5727 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5728 (get_frame_unwind_stop_reason): Adjust to rename.
5729 * frame.h (get_prev_frame_always): Declare.
5730 * inline-frame.c: Include frame.h.
5731 (inline_frame_this_id): Use get_prev_frame_always.
5732
1bdad2e0
TG
57332014-04-18 Tristan Gingold <gingold@adacore.com>
5734
5735 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5736 code by using bfd_mach_o_get_base_address.
5737
7ce16bd4
UW
57382014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5739
5740 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5741 (spu_ax_pseudo_register_collect): New function.
5742 (spu_ax_pseudo_register_push_stack): Likewise.
5743 (spu_dwarf_reg_to_regnum): Likewise.
5744 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5745
2ed3c037
UW
57462014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5747
5748 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5749 Replace FRAME argument with FRAME_ID.
5750 * gdbarch.c, gdbarch.h: Regenerate.
5751 * findvar.c (default_value_from_register): Add GDBARCH argument;
5752 replace FRAME by FRAME_ID. No longer call get_frame_id.
5753 (value_from_register): Update call to gdbarch_value_from_register.
5754 * value.h (default_value_from_register): Update prototype.
5755 * s390-linux-tdep.c (s390_value_from_register): Update interface
5756 and call to default_value_from_register.
5757 * spu-tdep.c (spu_value_from_register): Likewise.
5758
5759 * findvar.c (address_from_register): Remove TYPE argument.
5760 Do not call value_from_register; use gdbarch_value_from_register
5761 with null_frame_id instead.
5762 * value.h (address_from_register): Update prototype.
5763 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5764 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5765 address_from_register interface change.
5766
71e50e83
YQ
57672014-04-17 Yao Qi <yao@codesourcery.com>
5768
5769 * gdbtypes.h: Update comments to link to types and macros'
5770 definitions.
5771
7a23c549
SC
57722014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5773
5774 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5775
22869d73
KS
57762014-04-16 Keith Seitz <keiths@redhat.com>
5777
5778 PR gdb/15827
5779 * dwarf2read.c (skip_one_die): Check that all relative-offset
5780 sibling DIEs fall within range of the current reader's buffer.
5781 (read_partial_die): Likewise.
5782
c4f87ca6
KS
57832014-04-16 Keith Seitz <keiths@redhat.com>
5784
5785 PR c++/16597
5786 * cp-namespace.c (lookup_symbol_file): If the type name of
5787 `this' is NULL, return immediately.
5788
b50c8614
KS
57892014-04-14 Keith Seitz <keiths@redhat.com>
5790
5791 PR c++/16253
5792 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5793 from symbol_matches_domain in symtab.c. All local callers
5794 of symbol_matches_domain updated.
5795 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5796 search STRUCT_DOMAIN.
5797 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5798 independently. standard_lookup will do that automatically.
5799 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5800 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5801 (cp_lookup_symbol_in_namespace): Likewise.
5802 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5803 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5804 may return a STRUCT_DOMAIN match.
5805 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5806 * cp-support.c: Include language.h.
5807 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5808 VAR_DOMAIN.
5809 * psymtab.c (match_partial_symbol): Compare the requested
5810 domain with the symbol's domain directly.
5811 (lookup_partial_symbol): Likewise.
5812 * symtab.c (lookup_symbol_in_language): Explain when/why
5813 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5814 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5815 appropriate languages.
5816 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5817 and moved to ada-lang.c
5818 (lookup_block_symbol): Explain that this function only returns
5819 symbol matching the requested DOMAIN.
5820 Compare the requested domain with the symbol's domain directly.
5821 (iterate_over_symbols): Compare the requested domain with the
5822 symbol's domain directly.
5823 * symtab.h (symbol_matches_domain): Remove.
5824
3d567982
TT
58252014-04-14 Tom Tromey <tromey@redhat.com>
5826
5827 PR c++/15246:
5828 * c-exp.y (type_aggregate_p): New function.
5829 (qualified_name, classify_inner_name): Use it.
5830 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5831 and TYPE_TARGET_TYPE of an enum type.
5832 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5833 an enum type.
5834 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5835 handle TYPE_DECLARED_CLASS.
5836 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5837 types.
5838 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5839 * valops.c (enum_constant_from_type): New function.
5840 (value_aggregate_elt): Use it.
5841 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5842 TYPE_CODE_ENUM.
5843
c848d642
TT
58442014-04-14 Tom Tromey <tromey@redhat.com>
5845
5846 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5847 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5848 const.
5849 * value.h (value_aggregate_elt): Update.
5850
0626fc76
TT
58512014-04-14 Tom Tromey <tromey@redhat.com>
5852
5853 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5854
5ecaaa66
SA
58552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5856
5857 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5858 (evaluate_subexp_standard): Pass noside argument.
5859 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5860 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5861 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5862 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5863 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5864
1612e0c0
SA
58652014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5866
5867 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5868 points to a constant blob.
5869
c451ebe5
SA
58702014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5871
5872 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5873 property and store it as the high bound and flag the range accordingly.
5874 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5875 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5876 * gdbtypes.h (enum range_flags): New enum.
5877 (struct range_bounds): Add flags member.
5878
1d42e4c4
SA
58792014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5880
5881 * c-typeprint.c (c_type_print_varspec_suffix): Added
5882 check for not yet resolved high bound. If unresolved, print
5883 "variable length" string to the console instead of random
5884 length.
5885
9f1f738a
SA
58862014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5887
5888 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5889 value.
5890 (ada_template_to_fixed_record_type_1): Likewise.
5891 (ada_to_fixed_type_1): Likewise.
5892 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5893 (cp_print_value): Likewise.
5894 * d-valprint.c (dynamic_array_type): Likewise.
5895 * findvar.c (address_of_variable): Likewise.
5896 * jv-valprint.c (java_value_print): Likewise.
5897 * valops.c (value_ind): Likewise.
5898 * value.c (coerce_ref): Likewise.
5899
3c8452d4
SA
59002014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5901
5902 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5903 value and retrieve the dynamic type size.
5904
4ad88275
SA
59052014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5906
5907 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5908 passed to sizeof is dynamic evaluate the argument to compute the length.
5909
80180f79
SA
59102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5911 Joel Brobecker <brobecker@adacore.com>
5912
5913 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5914 (dwarf2_evaluate_property): New function.
5915 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5916 * dwarf2read.c (attr_to_dynamic_prop): New function.
5917 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5918 attribute.
5919 * gdbtypes.c: Include dwarf2loc.h.
5920 (is_dynamic_type): New function.
5921 (resolve_dynamic_type): New function.
5922 (resolve_dynamic_bounds): New function.
5923 (get_type_length): New function.
5924 (check_typedef): Use get_type_length to compute type length.
5925 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5926 (TYPE_LOW_BOUND_KIND): New macro.
5927 (is_dynamic_type): New function prototype.
5928 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5929 to resolve dynamic properties of the type. Update comment.
5930 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5931
a1556843
RH
59322014-04-14 Richard Henderson <rth@redhat.com>
5933
5934 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5935
0be03e84
DE
59362014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5937 Doug Evans <xdje42@gmail.com>
5938
5939 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5940 dereference TYPE_CODE_REF values.
5941
6b662e19
JB
59422014-04-11 Joel Brobecker <brobecker@adacore.com>
5943
5944 Revert the following changes due to regressions:
5945
5946 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5947 (dwarf2_evaluate_property): New function.
5948 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5949 * dwarf2read.c (attr_to_dynamic_prop): New function.
5950 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5951 attribute.
5952 * gdbtypes.c: Include dwarf2loc.h.
5953 (is_dynamic_type): New function.
5954 (resolve_dynamic_type): New function.
5955 (resolve_dynamic_bounds): New function.
5956 (get_type_length): New function.
5957 (check_typedef): Use get_type_length to compute type length.
5958 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5959 (TYPE_LOW_BOUND_KIND): New macro.
5960 (is_dynamic_type): New function prototype.
5961 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5962 to resolve dynamic properties of the type. Update comment.
5963 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5964
5965 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5966 passed to sizeof is dynamic evaluate the argument to compute the length.
5967
5968 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5969 value and retrieve the dynamic type size.
5970
5971 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5972 (ada_template_to_fixed_record_type_1): Likewise.
5973 (ada_to_fixed_type_1): Likewise.
5974 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5975 (cp_print_value): Likewise.
5976 * d-valprint.c (dynamic_array_type): Likewise.
5977 * eval.c (evaluate_subexp_with_coercion): Likewise.
5978 * findvar.c (address_of_variable): Likewise.
5979 * jv-valprint.c (java_value_print): Likewise.
5980 * valops.c (value_ind): Likewise.
5981 * value.c (coerce_ref): Likewise.
5982
5983 * c-typeprint.c (c_type_print_varspec_suffix): Added
5984 check for not yet resolved high bound. If unresolved, print
5985 "variable length" string to the console instead of random
5986 length.
5987
5988 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5989 property and store it as the high bound and flag the range accordingly.
5990 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5991 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5992 * gdbtypes.h (enum range_flags): New enum.
5993 (struct range_bounds): Add flags member.
5994
5995 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5996 points to a constant blob.
5997
5998 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5999 (evaluate_subexp_standard): Pass noside argument.
6000 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6001 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6002 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6003 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6004 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6005
245a5f0b
KS
60062014-04-11 Keith Seitz <keiths@redhat.com>
6007
6008 PR c++/16675
6009 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6010 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6011 reference types.
6012
3bce8237
SA
60132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6014
6015 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6016 (evaluate_subexp_standard): Pass noside argument.
6017 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6018 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6019 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6020 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6021 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6022
92b09522
SA
60232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6024
6025 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6026 points to a constant blob.
6027
e1969afb
SA
60282014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6029
6030 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6031 property and store it as the high bound and flag the range accordingly.
6032 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6033 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6034 * gdbtypes.h (enum range_flags): New enum.
6035 (struct range_bounds): Add flags member.
6036
b86138fb
SA
60372014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6038
6039 * c-typeprint.c (c_type_print_varspec_suffix): Added
6040 check for not yet resolved high bound. If unresolved, print
6041 "variable length" string to the console instead of random
6042 length.
6043
bcd629a4
SA
60442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6045
6046 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6047 (ada_template_to_fixed_record_type_1): Likewise.
6048 (ada_to_fixed_type_1): Likewise.
6049 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6050 (cp_print_value): Likewise.
6051 * d-valprint.c (dynamic_array_type): Likewise.
6052 * eval.c (evaluate_subexp_with_coercion): Likewise.
6053 * findvar.c (address_of_variable): Likewise.
6054 * jv-valprint.c (java_value_print): Likewise.
6055 * valops.c (value_ind): Likewise.
6056 * value.c (coerce_ref): Likewise.
6057
04b19544
SA
60582014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6059
6060 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6061 value and retrieve the dynamic type size.
6062
26cb189f
SA
60632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6064
6065 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6066 passed to sizeof is dynamic evaluate the argument to compute the length.
6067
37c1ab67
SA
60682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6069
6070 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6071 (dwarf2_evaluate_property): New function.
6072 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6073 * dwarf2read.c (attr_to_dynamic_prop): New function.
6074 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6075 attribute.
6076 * gdbtypes.c: Include dwarf2loc.h.
6077 (is_dynamic_type): New function.
6078 (resolve_dynamic_type): New function.
6079 (resolve_dynamic_bounds): New function.
6080 (get_type_length): New function.
6081 (check_typedef): Use get_type_length to compute type length.
6082 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6083 (TYPE_LOW_BOUND_KIND): New macro.
6084 (is_dynamic_type): New function prototype.
6085 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6086 to resolve dynamic properties of the type. Update comment.
6087 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6088
729efb13
SA
60892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6090
6091 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6092 declaring high/low bounds and change uses accordingly. Call
6093 create_range_type instead of create_static_range_type.
6094 * gdbtypes.c (create_range_type): New function.
6095 (create_range_type): Convert bounds into struct bound_prop and pass
6096 them to create_range_type.
6097 * gdbtypes.h (struct bound_prop): New struct.
6098 (create_range_type): New function prototype.
6099 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6100 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6101 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6102 part of the bound.
6103 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6104
0c9c3474
SA
61052014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6106
6107 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6108 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6109 * ada-lang.c: All uses of create_range_type updated.
6110 * coffread.c: All uses of create_range_type updated.
6111 * dwarf2read.c: All uses of create_range_type updated.
6112 * f-exp.y: All uses of create_range_type updated.
6113 * m2-valprint.c: All uses of create_range_type updated.
6114 * mdebugread.c: All uses of create_range_type updated.
6115 * stabsread.c: All uses of create_range_type updated.
6116 * valops.c: All uses of create_range_type updated.
6117 * valprint.c: All uses of create_range_type updated.
6118
9d497a19
PA
61192014-04-10 Pedro Alves <palves@redhat.com>
6120
6121 * breakpoint.c (single_step_breakpoints)
6122 (single_step_gdbarch): Move up in the file.
6123 (one_breakpoint_xfer_memory): New function, factored out from ...
6124 (breakpoint_xfer_memory): ... here. Also process single-step
6125 breakpoints.
6126
15a9128a
TG
61272014-04-09 Tristan Gingold <gingold@adacore.com>
6128
6129 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6130 comments.
6131 (darwin_decode_exception_message): Free port only after use.
6132
9c97a070
PL
61332014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6134
6135 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6136 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6137 when setting the size of call_length.
6138
7af389b8
SC
61392014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6140
6141 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6142 dereference TYPE_CODE_REF values.
6143
86ad98c3
JB
61442014-04-07 Joel Brobecker <brobecker@adacore.com>
6145
6146 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6147 end of warning message.
6148
b0aeadb3
DE
61492014-04-03 Doug Evans <dje@google.com>
6150
6151 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6152 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6153
5979d6b6
AM
61542014-04-02 Alan Modra <amodra@gmail.com>
6155
6156 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6157 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6158 (struct symbol_file_add_from_memory_args): Add size field.
6159 (find_vdso_size): New function.
6160 (add_vsyscall_page): Attempt to find vdso size.
6161
0d60c288
DE
61622014-04-01 Doug Evans <dje@google.com>
6163
6164 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6165
a41f2563
TG
61662014-04-01 Tristan Gingold <gingold@adacore.com>
6167
6168 * darwin-nat.c (darwin_encode_reply): Add prototype.
6169 (darwin_decode_exception_message): Reply to unknown inferiors.
6170 (darwin_decode_message): Handle message by id. Ignore message
6171 to unknown inferior.
6172 (darwin_wait): Discard unknown messages, add debug trace.
6173
11a865c8
DE
61742014-03-31 Doug Evans <dje@google.com>
6175
6176 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6177 comp_dir_string.
6178
770e7fc7
DE
61792014-03-31 Doug Evans <dje@google.com>
6180
6181 New option "set print symbol-loading".
6182 * NEWS: Mention it.
6183 * solib.c (solib_read_symbols): Only print symbol loading messages
6184 if requested.
6185 (solib_add): If symbol loading is in "brief" mode, notify user
6186 symbols are being loaded.
6187 (reload_shared_libraries_1): Ditto.
6188 * symfile.c (print_symbol_loading_off): New static global.
6189 (print_symbol_loading_brief): New static global.
6190 (print_symbol_loading_full): New static global.
6191 (print_symbol_loading_enums): New static global.
6192 (print_symbol_loading): New static global.
6193 (print_symbol_loading_p): New function.
6194 (symbol_file_add_with_addrs): Only print symbol loading messages
6195 if requested.
6196 (_initialize_symfile): Register "print symbol-loading" set/show
6197 command.
6198 * symfile.h (print_symbol_loading_p): Declare.
6199
c32c64b7
DE
62002014-03-30 Doug Evans <xdje42@gmail.com>
6201
6202 * infrun.c (set_last_target_status): New function.
6203 (handle_inferior_event): Call it.
6204
7c0bc051
DE
62052014-03-30 Doug Evans <xdje42@gmail.com>
6206
6207 * inferior.h (enum stop_kind): Improve comment.
6208
8776cfe9
JB
62092014-03-28 Joel Brobecker <brobecker@adacore.com>
6210
6211 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6212 a reference, strip the reference layer before calling
6213 the lang_ops value_has_mutated callback.
6214
410a0ff2
SDJ
62152014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6216
6217 Remove some globals from our parser.
6218 * language.c (unk_lang_parser): Add "struct parser_state"
6219 argument.
6220 * language.h (struct language_defn) <la_parser>: Likewise.
6221 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6222 (initialize_expout): Add "struct parser_state" argument.
6223 Rewrite function to use the parser state.
6224 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6225 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6226 write_exp_elt_longcst, write_exp_elt_dblcst,
6227 write_exp_elt_decfloatcst, write_exp_elt_type,
6228 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6229 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6230 write_dollar_variable): Likewise.
6231 (parse_exp_in_context_1): Use parser state.
6232 (insert_type_address_space): Add "struct parser_state" argument.
6233 Use parser state.
6234 (increase_expout_size): New function.
6235 * parser-defs.h: Forward declare "struct language_defn" and
6236 "struct parser_state".
6237 (expout, expout_size, expout_ptr): Remove extern declarations.
6238 (parse_gdbarch, parse_language): Rewrite macro declarations to
6239 accept the parser state.
6240 (struct parser_state): New struct.
6241 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6242 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6243 write_exp_elt_decfloatcst, write_exp_elt_type,
6244 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6245 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6246 write_exp_msymbol, write_dollar_variable,
6247 mark_struct_expression, insert_type_address_space): Add "struct
6248 parser_state" argument.
6249 (increase_expout_size): New function.
6250 * utils.c (do_clear_parser_state): New function.
6251 (make_cleanup_clear_parser_state): Likewise.
6252 * utils.h (make_cleanup_clear_parser_state): New function
6253 prototype.
6254 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6255 Update calls to write_exp* in order to pass the parser state.
6256 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6257 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6258 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6259 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6260 * stap-probe.c (stap_parse_register_operand): Likewise.
6261 (stap_parse_single_operand): Likewise.
6262 (stap_parse_argument_1): Likewise.
6263 (stap_parse_argument): Use parser state.
6264 * stap-probe.h: Include "parser-defs.h".
6265 (struct stap_parse_info) <pstate>: New field.
6266 * c-exp.y (parse_type): Rewrite to use parser state.
6267 (yyparse): Redefine to c_parse_internal.
6268 (pstate): New global variable.
6269 (parse_number): Add "struct parser_state" argument.
6270 (write_destructor_name): Likewise.
6271 (type_exp): Update calls to write_exp* and similars in order to
6272 use parser state.
6273 (exp1, exp, variable, qualified_name, space_identifier,
6274 typename, typebase): Likewise.
6275 (write_destructor_name, parse_number, lex_one_token,
6276 classify_name, classify_inner_name, c_parse): Add "struct
6277 parser_state" argument. Update function to use parser state.
6278 * c-lang.h: Forward declare "struct parser_state".
6279 (c_parse): Add "struct parser_state" argument.
6280 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6281 (yyparse): Redefine macro to ada_parse_internal.
6282 (pstate): New variable.
6283 (write_int, write_object_renaming, write_var_or_type,
6284 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6285 type_int, type_long, type_long_long, type_float, type_double,
6286 type_long_double, type_char, type_boolean, type_system_address):
6287 Add "struct parser_state" argument.
6288 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6289 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6290 var_or_type, aggregate, aggregate_component_list,
6291 positional_list, others, component_group,
6292 component_associations): Update calls to write_exp* and similar
6293 functions in order to use parser state.
6294 (ada_parse, write_var_from_sym, write_int,
6295 write_exp_op_with_string, write_object_renaming,
6296 find_primitive_type, write_selectors, write_ambiguous_var,
6297 write_var_or_type, write_name_assoc, type_int, type_long,
6298 type_long_long, type_float, type_double, type_long_double,
6299 type_char, type_boolean, type_system_address): Add "struct
6300 parser_state" argument. Adjust function to use parser state.
6301 * ada-lang.c (parse): Likewise.
6302 * ada-lang.h: Forward declare "struct parser_state".
6303 (ada_parse): Add "struct parser_state" argument.
6304 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6305 calls to both functions.
6306 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6307 parser state.
6308 (yyparse): Redefine macro to f_parse_internal.
6309 (pstate): New variable.
6310 (parse_number): Add "struct parser_state" argument.
6311 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6312 and similars in order to use parser state.
6313 (parse_number): Adjust code to use parser state.
6314 (yylex): Likewise.
6315 (f_parse): New function.
6316 * f-lang.h: Forward declare "struct parser_state".
6317 (f_parse): Add "struct parser_state" argument.
6318 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6319 parser state.
6320 (yyparse): Redefine macro for java_parse_internal.
6321 (pstate): New variable.
6322 (push_expression_name, push_expression_name, insert_exp): Add
6323 "struct parser_state" argument.
6324 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6325 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6326 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6327 PostIncrementExpression, PostDecrementExpression,
6328 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6329 UnaryExpressionNotPlusMinus, CastExpression,
6330 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6331 RelationalExpression, EqualityExpression, AndExpression,
6332 ExclusiveOrExpression, InclusiveOrExpression,
6333 ConditionalAndExpression, ConditionalOrExpression,
6334 ConditionalExpression, Assignment, LeftHandSide): Update
6335 calls to write_exp* and similars in order to use parser state.
6336 (parse_number): Ajust code to use parser state.
6337 (yylex): Likewise.
6338 (java_parse): New function.
6339 (push_variable): Add "struct parser_state" argument. Adjust
6340 code to user parser state.
6341 (push_fieldnames, push_qualified_expression_name,
6342 push_expression_name, insert_exp): Likewise.
6343 * jv-lang.h: Forward declare "struct parser_state".
6344 (java_parse): Add "struct parser_state" argument.
6345 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6346 parser state.
6347 (yyparse): Redefine macro to m2_parse_internal.
6348 (pstate): New variable.
6349 (type_exp, exp, fblock, variable, type): Update calls to
6350 write_exp* and similars to use parser state.
6351 (yylex): Likewise.
6352 (m2_parse): New function.
6353 * m2-lang.h: Forward declare "struct parser_state".
6354 (m2_parse): Add "struct parser_state" argument.
6355 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6356 * objc-lang.h: Forward declare "struct parser_state".
6357 (end_msglist): Add "struct parser_state" argument.
6358 * p-exp.y (parse_type): Rewrite macro to use parser state.
6359 (yyparse): Redefine macro to pascal_parse_internal.
6360 (pstate): New variable.
6361 (parse_number): Add "struct parser_state" argument.
6362 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6363 write_exp* and similars in order to use parser state.
6364 (parse_number, yylex): Adjust code to use parser state.
6365 (pascal_parse): New function.
6366 * p-lang.h: Forward declare "struct parser_state".
6367 (pascal_parse): Add "struct parser_state" argument.
6368 * go-exp.y (parse_type): Rewrite macro to use parser state.
6369 (yyparse): Redefine macro to go_parse_internal.
6370 (pstate): New variable.
6371 (parse_number): Add "struct parser_state" argument.
6372 (type_exp, exp1, exp, variable, type): Update calls to
6373 write_exp* and similars in order to use parser state.
6374 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6375 to use parser state.
6376 (go_parse): Likewise.
6377 * go-lang.h: Forward declare "struct parser_state".
6378 (go_parse): Add "struct parser_state" argument.
6379
342587c4
DE
63802014-03-27 Doug Evans <dje@google.com>
6381
6382 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6383
33e80786
DE
63842014-03-27 Doug Evans <dje@google.com>
6385
6386 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6387 Remove argument abbrev_section. All callers updated.
6388
1dbab08b
DE
63892014-03-27 Doug Evans <dje@google.com>
6390
6391 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6392 addr_base, ranges_base.
6393
318d3177
KS
63942014-03-26 Keith Seitz <keiths@redhat.com>
6395
6396 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6397 types, not VAR_DOMAIN.
6398
1e54db15
SL
63992014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6400
6401 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6402 "ra" registers.
6403 * features/nios2-linux.c: Regenerated.
6404 * features/nios2.c: Regenerated.
6405
d3839ede
PA
64062014-03-25 Pedro Alves <palves@redhat.com>
6407
6408 * cli/cli-script.c (script_from_file): Force the interpreter to
6409 sync mode.
6410
7588d2ec
PL
64112014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6412
6413 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6414 small stack allocation.
6415
a6290449
TG
64162014-03-24 Tristan Gingold <gingold@adacore.com>
6417
6418 * darwin-nat.c (exc_server): Remove unused prototype.
6419 (darwin_dump_message): Correctly display data on x86_64.
6420 (darwin_encode_reply): Fix style.
6421 Add comments and fix indentation.
6422
31ae9d24 64232014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6424
6425 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6426
6339bfc4
DE
64272014-03-22 Doug Evans <xdje42@gmail.com>
6428
6429 * infcmd.c: Whitespace fixes.
6430 (interrupt_command): Merge two function comments into one.
6431
0a07590b
DE
64322014-03-22 Doug Evans <xdje42@gmail.com>
6433
6434 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6435 All uses updated.
6436
b55fbac4
YQ
64372014-03-22 Yao Qi <yao@codesourcery.com>
6438
6439 * remote.c (target_read_live_memory): Remove.
6440 (memory_xfer_live_readonly_partial): Rename it to
6441 remote_xfer_live_readonly_partial. Remove argument 'object'.
6442 All callers updated. Call remote_read_bytes_1
6443 instead of target_read_live_memory.
6444 * tracepoint.c (set_traceframe_number): Remove.
6445 (make_cleanup_restore_traceframe_number): Likewise .
6446 * tracepoint.h (set_traceframe_number): Remove declaration.
6447 (make_cleanup_restore_traceframe_number): Likewise.
6448
9217e74e
YQ
64492014-03-22 Yao Qi <yao@codesourcery.com>
6450
6451 * remote.c (remote_read_bytes): Move code on reading from the
6452 remote stub to ...
6453 (remote_read_bytes_1): ... here. New function.
6454
8acf9577
YQ
64552014-03-22 Yao Qi <yao@codesourcery.com>
6456
6457 * ctf.c (ctf_xfer_partial): Check the return value of
6458 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6459 return TARGET_XFER_UNAVAILABLE.
6460 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6461 * target.c (target_read_live_memory): Move it to remote.c.
6462 (memory_xfer_live_readonly_partial): Likewise.
6463 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6464 * remote.c (target_read_live_memory): Moved from target.c.
6465 (memory_xfer_live_readonly_partial): Likewise.
6466 (remote_read_bytes): Factored out from
6467 memory_xfer_partial_1.
6468
feef67ab
DE
64692014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6470
6471 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6472 NULL pointer.
6473
b65dc60b
PA
64742014-03-21 Pedro Alves <palves@redhat.com>
6475
6476 * infrun.c (normal_stop): Extend comment.
6477
b4ab256d
HZ
64782014-03-21 Hui Zhu <hui@codesourcery.com>
6479 Pedro Alves <palves@redhat.com>
6480
6481 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6482 static buffer.
6483 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6484 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6485 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6486
deba7593
MR
64872014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6488
6489 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6490 `z' formatted output modifier.
6491
1bff71c3
SDJ
64922014-03-20 Tom Tromey <tromey@redhat.com>
6493 Sergio Durigan Junior <sergiodj@redhat.com>
6494
6495 * probe.c (parse_probes): Turn assert into an ordinary error.
6496 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6497 exceptions when parsing probes. Rearrange the code for clarity.
6498
90e28950
TT
64992014-03-20 Tom Tromey <tromey@redhat.com>
6500
6501 PR gdb/14135
6502 * top.c (execute_command): Only dispatch events if the command
6503 started the target.
6504
beb460e8
PA
65052014-03-20 Tom Tromey <tromey@redhat.com>
6506
6507 PR cli/15718
6508 * infcall.c: Include event-top.h.
6509 (run_inferior_call): Call async_disable_stdin if needed.
6510
99619bea
PA
65112014-03-20 Pedro Alves <palves@redhat.com>
6512
6513 * infrun.c (prepare_to_proceed): Delete.
6514 (thread_still_needs_step_over): New function.
6515 (find_thread_needs_step_over): New function.
6516 (proceed): If the current thread needs a step-over, set its
6517 steping_over_breakpoint flag. Adjust to use
6518 find_thread_needs_step_over instead of prepare_to_proceed.
6519 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6520 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6521 breakpoint.
6522 (switch_back_to_stepped_thread): Step over breakpoints of all
6523 threads not the stepping thread, before switching back to the
6524 stepping thread.
6525
2adfaa28
PA
65262014-03-20 Pedro Alves <palves@redhat.com>
6527
6528 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6529 extern.
6530 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6531 * infrun.c (saved_singlestep_ptid)
6532 (stepping_past_singlestep_breakpoint): Delete.
6533 (resume): Remove stepping_past_singlestep_breakpoint handling.
6534 (proceed): Store the prev_pc of the stepping thread too.
6535 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6536 singlestep_pc.
6537 (enum infwait_states): Delete infwait_thread_hop_state.
6538 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6539 field.
6540 (handle_inferior_event): Adjust.
6541 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6542 handling and the thread-hop code. Before removing single-step
6543 breakpoints, check whether the thread hit a single-step breakpoint
6544 of another thread. If it did, the trap is not a random signal.
6545 (switch_back_to_stepped_thread): If the event thread hit a
6546 single-step breakpoint, unblock it before switching to the
6547 stepping thread. Handle the case of the stepped thread having
6548 advanced already.
6549 (keep_going): Handle the case of the current thread moving past a
6550 single-step breakpoint.
6551
31e77af2
PA
65522014-03-20 Pedro Alves <palves@redhat.com>
6553
6554 PR breakpoints/7143
6555 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6556 are being stepped over.
6557 (breakpoint_address_match): Make extern.
6558 * breakpoint.h (breakpoint_address_match): New declaration.
6559 * inferior.h (stepping_past_instruction_at): New declaration.
6560 * infrun.c (struct step_over_info): New type.
6561 (step_over_info): New global.
6562 (set_step_over_info, clear_step_over_info)
6563 (stepping_past_instruction_at): New functions.
6564 (handle_inferior_event): Clear the step-over info when
6565 trap_expected is cleared.
6566 (resume): Remove now stale comment.
6567 (clear_proceed_status): Clear step-over info.
6568 (proceed): Adjust step-over handling to set or clear the step-over
6569 info instead of removing all breakpoints.
6570 (handle_signal_stop): When setting up a thread-hop, don't remove
6571 breakpoints here.
6572 (stop_stepping): Clear step-over info.
6573 (keep_going): Adjust step-over handling to set or clear step-over
6574 info and then always inserting breakpoints, instead of removing
6575 all breakpoints when stepping over one.
6576
b9f437de
PA
65772014-03-20 Pedro Alves <palves@redhat.com>
6578
6579 * infrun.c (previous_inferior_ptid): Adjust comment.
6580 (deferred_step_ptid): Delete.
6581 (infrun_thread_ptid_changed, prepare_to_proceed)
6582 (init_wait_for_inferior): Adjust.
6583 (handle_signal_stop): Delete deferred_step_ptid handling.
6584
06c868a8
JK
65852014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6586
6587 PR gdb/15358
6588 * defs.h (sync_quit_force_run): New declaration.
6589 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6590 * event-top.c (async_sigterm_handler): New declaration.
6591 (async_sigterm_token): New variable.
6592 (async_init_signals): Create also async_sigterm_token.
6593 (async_sigterm_handler): New function.
6594 (sync_quit_force_run): New variable.
6595 (handle_sigterm): Replace quit_force call by other calls.
6596 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6597
dea80df0
MR
65982014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6599
6600 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6601 offset into SPE pseudo registers.
6602
0c7e1a46
PA
66032014-03-18 Pedro Alves <palves@redhat.com>
6604
6605 PR gdb/13860
6606 * inferior.h (print_stop_event): Declare.
6607 * infrun.c (print_stop_event): New, factored out from ...
6608 (normal_stop): ... this.
6609 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6610 of bpstat_print/print_stack_frame.
6611
9c1fcd01
TT
66122014-03-17 Tom Tromey <tromey@redhat.com>
6613
6614 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6615
11aa919a
PMR
66162014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6617
6618 * ada-lang.c (decode_constrained_packed_array): Perform a
6619 minimal coercion for reference with coerce_ref instead of
6620 ada_coerce_ref.
6621
d4ccb5e0
TG
66222014-03-17 Tristan Gingold <gingold@adacore.com>
6623
6624 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6625 (darwin_solib_create_inferior_hook): Emit a warning if version
6626 is unhandled.
6627
49840f2a
UW
66282014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6629
6630 * python/py-value.c (get_field_flag): Cast flag_name argument to
6631 PyObject_GetAttrString to support Python 2.4.
6632
ed4123e5
JK
66332014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6634
6635 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6636 (Global Maintainers): Remove Jan Kratochvil.
6637
d6b64346
PA
66382014-03-14 Pedro Alves <palves@redhat.com>
6639
6640 * inferior.h (terminal_ours_for_output): Rename to ...
6641 (child_terminal_ours_for_output): ... this.
6642 (terminal_save_ours): Rename to ...
6643 (child_terminal_save_ours): ... this.
6644 (terminal_ours): Rename to ...
6645 (child_terminal_ours): ... this.
6646 (terminal_inferior): Rename to ...
6647 (child_terminal_inferior): ... this.
6648 (terminal_init_inferior): Rename to ...
6649 (child_terminal_init_inferior): ... this.
6650 (terminal_init_inferior_with_pgrp): Rename to ...
6651 (child_terminal_init_inferior_with_pgrp): ... this.
6652 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6653 (child_terminal_init_with_pgrp): ... this.
6654 (terminal_save_ours): Rename to ...
6655 (child_terminal_save_ours): ... this.
6656 (terminal_init_inferior): Rename to ...
6657 (child_terminal_init): ... this. Adjust.
6658 (terminal_inferior): Rename to ...
6659 (child_terminal_inferior): ... this.
6660 (terminal_ours_for_output): Rename to ...
6661 (child_terminal_ours_for_output): ... this. Adjust.
6662 (terminal_ours): Rename to ...
6663 (child_terminal_ours): ... this.
6664 (terminal_ours_1): Rename to ...
6665 (child_terminal_ours_1): ... this. Adjust.
6666 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6667 * windows-nat.c (do_initial_windows_stuff): Adjust.
6668 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6669 (gnu_terminal_init): ... this. Adjust.
6670 (gnu_target): Adjust.
6671 * inf-child.c (inf_child_target): Adjust.
6672
5a1e8c7a
DE
66732014-03-13 Doug Evans <xdje42@gmail.com>
6674
6675 PR guile/16612
6676 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6677 new eq?-hashtab.
6678
350e1a76
DE
66792014-03-13 Doug Evans <xdje42@gmail.com>
6680
6681 * value.c (record_latest_value): Call release_value_or_incref
6682 instead of release_value.
6683
a69900ae
PA
66842014-03-13 Pedro Alves <palves@redhat.com>
6685
6686 * procfs.c (procfs_target): Don't override to_shortname,
6687 to_longname or to_doc.
6688
5db9f0bd
PA
66892014-03-13 Pedro Alves <palves@redhat.com>
6690
6691 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6692 Unix in user visible strings.
6693
5e3a2c38
SS
66942014-03-12 Stan Shebs <stan@codesourcery.com>
6695
6696 * gdbtypes.h: Annotate comments for Doxygen, add a page
6697 block comment with some general info.
6698
8bc2fe48
PA
66992014-03-12 Pedro Alves <palves@redhat.com>
6700
6701 * infcmd.c (prepare_execution_command): New function, factored out
6702 from several execution commands.
6703 (run_command_1, continue_command, step_1, jump_command)
6704 (signal_command, until_command, advance_command, finish_command)
6705 (attach_command): Use prepare_execution_command.
6706
638c5f49
OJ
67072014-03-12 Omair Javaid <omair.javaid@linaro.org>
6708
6709 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6710 (MAX_BPTS): Define.
6711 (MAX_WPTS): Define.
6712 (struct arm_linux_thread_points): Removed.
6713 (struct arm_linux_process_info): New.
6714 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6715 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6716 (arm_linux_find_breakpoints_by_tid): Removed.
6717 (struct arch_lwp_info): New.
6718 (arm_linux_find_process_pid): New functions.
6719 (arm_linux_add_process): New functions.
6720 (arm_linux_process_info_get): New functions.
6721 (arm_linux_forget_process): New function.
6722 (arm_linux_get_debug_reg_state): New function.
6723 (struct update_registers_data): New.
6724 (update_registers_callback): New function.
6725 (arm_linux_insert_hw_breakpoint1): Updated.
6726 (arm_linux_remove_hw_breakpoint1): Updated.
6727 (arm_linux_insert_hw_breakpoint): Updated.
6728 (arm_linux_remove_hw_breakpoint): Updated.
6729 (arm_linux_insert_watchpoint): Updated.
6730 (arm_linux_remove_watchpoint): Updated.
6731 (arm_linux_new_thread): Updated.
6732 (arm_linux_prepare_to_resume): New function.
6733 (arm_linux_new_fork): New function.
6734 (_initialize_arm_linux_nat): Updated.
6735
6d03af93
PA
67362014-03-12 Pedro Alves <palves@redhat.com>
6737
6738 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6739
b3ccfe11
TT
67402014-03-12 Tom Tromey <tromey@redhat.com>
6741
6742 * inf-child.c (return_zero): New function.
6743 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6744 * aix-thread.c (aix_thread_inferior_created): New function.
6745 (aix_thread_attach): Remove.
6746 (init_aix_thread_ops): Don't set to_attach.
6747 (_initialize_aix_thread): Register inferior_created observer.
6748 * corelow.c (init_core_ops): Don't set to_attach or
6749 to_create_inferior.
6750 * exec.c (init_exec_ops): Don't set to_attach or
6751 to_create_inferior.
6752 * infcmd.c (run_command_1): Use find_run_target. Make direct
6753 target calls.
6754 (attach_command): Use find_attach_target. Make direct target
6755 calls.
6756 * record-btrace.c (init_record_btrace_ops): Don't set
6757 to_create_inferior.
6758 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6759 Remove.
6760 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6761 set to_create_inferior.
6762 * target.c (complete_target_initialization): Add assertion.
6763 (target_create_inferior): Remove.
6764 (find_default_attach, find_default_create_inferior): Remove.
6765 (find_attach_target, find_run_target): New functions.
6766 (find_default_is_async_p, find_default_can_async_p)
6767 (target_supports_non_stop, target_attach): Remove.
6768 (init_dummy_target): Don't set to_create_inferior or
6769 to_supports_non_stop.
6770 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6771 TARGET_DEFAULT_FUNC.
6772 <to_create_inferior>: Add comment.
6773 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6774 TARGET_DEFAULT_RETURN.
6775 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6776 (find_attach_target, find_run_target): Declare.
6777 (target_create_inferior): Remove.
6778 (target_has_execution_1): Update comment.
6779 (target_supports_non_stop): Remove.
6780 * target-delegates.c: Rebuild.
6781
91f83b02
PA
67822014-03-12 Pedro Alves <palves@redhat.com>
6783
6784 * inf-child.h: Update comment to not mention Unix.
6785
f1aea813
PA
67862014-03-12 Pedro Alves <palves@redhat.com>
6787
6788 * inf-child.c: Update top comment to not mention Unix. Add
6789 generic comment describing how this target is meant to be used.
6790 (inf_child_post_attach, inf_child_post_startup_inferior)
6791 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6792 Unix in comment.
6793
ee8e9165
PA
67942014-03-12 Pedro Alves <palves@redhat.com>
6795
6796 * nto-procfs.c: Include inf-child.h.
6797 (procfs_ops): Delete global.
6798 (procfs_can_run): Delete method.
6799 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6800 target pointer instead of referencing procfs_ops.
6801 (procfs_prepare_to_store): Delete.
6802 (init_procfs_ops): Delete function.
6803 (procfs_target): New function, based on init_procfs_ops, but
6804 inherit inf_child_target.
6805 (_initialize_procfs): Use procfs_target.
6806
51a9c8c5
PA
68072014-03-12 Pedro Alves <palves@redhat.com>
6808
6809 * windows-nat.c: Include inf-child.h.
6810 (windows_ops): Delete global.
6811 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6812 methods.
6813 (init_windows_ops): Delete function.
6814 (windows_target): New function, based on init_windows_ops, but
6815 inherit inf_child_target.
6816 (_initialize_windows_nat): Use windows_target. Install x86
6817 specific target methods here.
6818
c1966e26
DE
68192014-03-10 Doug Evans <xdje42@gmail.com>
6820
6821 * guile/guile.c (call_initialize_gdb_module): New function.
6822 (initialize_guile): Replace call to scm_init_guile with call to
6823 scm_with_guile.
6824
023db19c
JB
68252014-03-10 Joel Brobecker <brobecker@adacore.com>
6826
6827 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6828 in call to TYPE_CODE macro.
6829
5ec18f2b
JG
68302014-03-10 Jerome Guitton <guitton@adacore.com>
6831
8668be63
JB
6832 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6833 Resolve tagged types to full view.
5ec18f2b 6834
7d03f2eb
HZ
68352014-03-10 Hui Zhu <hui@codesourcery.com>
6836
6837 * target.h (target_insert_breakpoint): Remove "hardware" from its
6838 comments.
6839
c5164cbc
DE
68402014-03-07 Doug Evans <dje@google.com>
6841
6842 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6843
c4a3fee2
DE
68442014-03-07 Doug Evans <dje@google.com>
6845
6846 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6847 Remove unused local comp_dir_attr. Assert exactly one of
6848 stub_comp_unit_die, stub_comp_dir is non-NULL.
6849
3156469c
JB
68502014-03-07 Joel Brobecker <brobecker@adacore.com>
6851
6852 * target.h (complete_target_initialization, add_target):
6853 Add comment.
6854
c1a7b7c6
PA
68552014-03-07 Pedro Alves <palves@redhat.com>
6856
6857 * go32-nat.c: Include inf-child.h.
6858 (go32_ops): Delete global.
6859 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6860 Delete methods.
6861 (go32_create_inferior): Push the passed in target pointer instead
6862 of referencing go32_ops.
6863 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6864 (go32_target): New function, based on init_go32_ops, but inherit
6865 inf_child_target.
6866 (_initialize_go32_nat): Use go32_target. Move parts of
6867 init_go32_ops here.
6868
d3c1a85f
JB
68692014-03-06 Joel Brobecker <brobecker@adacore.com>
6870
6871 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6872 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6873 SYMBOL_VALUE_ADDRESS.
6874 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6875
5fa1d40e
YQ
68762014-03-06 Yao Qi <yao@codesourcery.com>
6877
6878 * breakpoint.c (get_tracepoint_by_number): Remove argument
6879 optional_p. All callers updated. Adjust comments. Update
6880 output message.
6881 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6882
0c13193f
YQ
68832014-03-06 Yao Qi <yao@codesourcery.com>
6884
6885 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6886 early if get_number returns zero. Use 'p' instead of 'args'.
6887
2217da06
YQ
68882014-03-06 Yao Qi <yao@codesourcery.com>
6889
6890 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6891 message.
6892
cc3da688
YQ
68932014-03-06 Yao Qi <yao@codesourcery.com>
6894
6895 PR breakpoints/16508
6896 * tracepoint.c (check_trace_running): New function.
6897 (trace_find_command): Move code to check_trace_running and
6898 call check_trace_running.
6899 (trace_find_pc_command): Likewise.
6900 (trace_find_tracepoint_command): Likewise.
6901 (trace_find_line_command): Likewise.
6902 (trace_find_range_command): Likewise.
6903 * tracepoint.h (check_trace_running): Likewise.
6904 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6905
6a5f844b
YQ
69062014-03-06 Yao Qi <yao@codesourcery.com>
6907
6908 * target.h (struct target_ops) <to_traceframe_info>: Use
6909 TARGET_DEFAULT_NORETURN (tcomplain ()).
6910 * target-delegates.c: Regenerated.
6911
0f26cec1
PA
69122014-03-05 Pedro Alves <palves@redhat.com>
6913
6914 PR gdb/16575
6915 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6916 void. Update comment.
6917 (dcache_xfer_memory): Delete.
6918 (dcache_read_memory_partial): New, based on the read bits of
6919 dcache_xfer_memory.
6920 (dcache_update): Add status parameter. Use ULONGEST for len, and
6921 adjust. Discard cache lines if the reason for the update was
6922 error.
6923 * dcache.h (dcache_xfer_memory): Delete declaration.
6924 (dcache_read_memory_partial): New declaration.
6925 (dcache_update): Update prototype.
6926 * target.c (raw_memory_xfer_partial): Update the dcache here.
6927 (memory_xfer_partial_1): Don't handle dcache writes here.
6928
b2b255bd
MF
69292014-03-05 Mike Frysinger <vapier@gentoo.org>
6930
6931 * remote-sim.c (gdbsim_load): Add const to prog.
6932
5d9cf8a4
TT
69332014-03-03 Tom Tromey <tromey@redhat.com>
6934
6935 * elfread.c (probe_key): Change to bfd_data.
6936 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6937 now per-BFD, not per-objfile.
6938 * stap-probe.c (stap_probe_destroy): Update comment.
6939 (handle_stap_probe): Allocate on the per-BFD obstack.
6940
729662a5
TT
69412014-03-03 Tom Tromey <tromey@redhat.com>
6942
6943 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6944 * breakpoint.c (create_longjmp_master_breakpoint): Use
6945 get_probe_address.
6946 (add_location_to_breakpoint, bkpt_probe_insert_location)
6947 (bkpt_probe_remove_location): Update.
6948 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6949 * elfread.c (elf_symfile_relocate_probe): Remove.
6950 (elf_probe_fns): Update.
6951 (insert_exception_resume_breakpoint): Change type of "probe"
6952 parameter to bound_probe.
6953 (check_exception_resume): Update.
6954 * objfiles.c (objfile_relocate1): Don't relocate probes.
6955 * probe.c (bound_probe_s): New typedef.
6956 (parse_probes): Use get_probe_address. Set sal's objfile.
6957 (find_probe_by_pc): Return a bound_probe.
6958 (collect_probes): Return a VEC(bound_probe_s).
6959 (compare_probes): Update.
6960 (gen_ui_out_table_header_info): Change type of "probes"
6961 parameter. Update.
6962 (info_probes_for_ops): Update.
6963 (get_probe_address): New function.
6964 (probe_safe_evaluate_at_pc): Update.
6965 * probe.h (struct probe_ops) <get_probe_address>: New field.
6966 <set_semaphore, clear_semaphore>: Add objfile parameter.
6967 (struct probe) <objfile>: Remove field.
6968 <arch>: New field.
6969 <address>: Update comment.
6970 (struct bound_probe): New.
6971 (find_probe_by_pc): Return a bound_probe.
6972 (get_probe_address): Declare.
6973 * solib-svr4.c (struct probe_and_action) <address>: New field.
6974 (hash_probe_and_action, equal_probe_and_action): Update.
6975 (register_solib_event_probe): Add address parameter.
6976 (solib_event_probe_at): Update.
6977 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6978 get_probe_address.
6979 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6980 (stap_get_probe_address): New function.
6981 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6982 (compile_probe_arg): Update.
6983 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6984 address.
6985 (handle_stap_probe): Don't relocate the probe.
6986 (stap_relocate): Remove.
6987 (stap_gen_info_probes_table_values): Update.
6988 (stap_probe_ops): Remove stap_relocate.
6989 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6990 (debug_sym_probe_fns): Update.
6991 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6992 * symtab.c (init_sal): Use memset.
6993 * symtab.h (struct symtab_and_line) <objfile>: New field.
6994 * tracepoint.c (start_tracing, stop_tracing): Update.
6995
ff887920
TT
69962014-03-03 Tom Tromey <tromey@redhat.com>
6997
6998 * probe.h (parse_probes, find_probe_by_pc)
6999 (find_probes_in_objfile): Fix comments.
7000
f0407826
DE
70012014-03-02 Doug Evans <xdje42@gmail.com>
7002
7003 * infrun.c (handle_signal_stop): Replace test for
7004 TARGET_WAITKIND_STOPPED with an assert.
7005
35e6a711
DE
70062014-03-02 Doug Evans <xdje42@gmail.com>
7007
7008 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7009
667f9d0b
DE
70102014-03-02 Doug Evans <xdje42@gmail.com>
7011
7012 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7013
dc92ace0
MK
70142014-03-01 Mark Kettenis <kettenis@gnu.org>
7015
7016 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7017
a900370f
MK
70182014-03-01 Mark Kettenis <kettenis@gnu.org>
7019
7020 * i386obsd-nat.c: Include "obsd-nat.h".
7021 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7022 add_target.
7023 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7024
b72a7981
MK
70252014-03-01 Mark Kettenis <kettenis@gnu.org>
7026
7027 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7028
96c70aba
MK
70292014-03-01 Mark Kettenis <kettenis@gnu.org>
7030
7031 * mips64obsd-nat.c: Include "obsd-nath".
7032 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7033 add_target
7034 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7035
874a80af
MK
70362014-03-01 Mark Kettenis <kettenis@gnu.org>
7037
8fd408f1
MK
7038 * amd64obsd-nat.c: Include "obsd-nat,h.
7039 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7040 add_target.
874a80af
MK
7041 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7042
9cf95373
SC
70432014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7044
7045 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7046 (find_overload_match): Update call to find_oload_champ.
7047 (find_oload_champ_namespace_loop): Likewise
7048
863e4da4
MK
70492014-02-28 Mark Kettenis <kettenis@gnu.org>
7050
025cac40
MK
7051 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7052
1ed586ce
MK
7053 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7054 * config/sparc/obsd64.mh: New file.
7055 * sparc64obsd-nat.c: New file.
7056
863e4da4
MK
7057 * obsd-nat.h: New file.
7058 * obsd-nat.c: New file.
7059 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7060 (ALLDEPFILES): Add obsd-nat.c.
7061
89de4da4
TT
70622014-02-28 Tom Tromey <tromey@redhat.com>
7063
7064 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7065 * cli-out.h (cli_ui_out_impl): Now const.
7066 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7067 * ui-out.c (struct ui_out) <impl>: Now const.
7068 (default_ui_out_impl): Now const.
7069 (ui_out_new): Make 'impl' parameter const.
7070 * ui-out.h (ui_out_new): Update.
7071
c725e7b6
MK
70722014-02-27 Mark Kettenis <kettenis@gnu.org>
7073
7074 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7075
670b46b3
MK
70762014-02-27 Mark Kettenis <kettenis@gnu.org>
7077
7078 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7079
c91550fc
JK
70802014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7081
7082 Additional PR 8882 fix.
7083 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7084
2fa0369e
PA
70852014-02-27 Pedro Alves <palves@redhat.com>
7086
7087 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7088 isn't set.
7089
d632a097
PA
70902014-02-27 Pedro Alves <palves@redhat.com>
7091
7092 PR 12702
7093 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7094 * nat/linux-waitpid.c: Include string.h.
7095 (status_to_str): Moved here and made extern.
7096 * nat/linux-waitpid.h (status_to_str): New declaration.
7097
2ebd5a35
HZ
70982014-02-27 Hui Zhu <hui@codesourcery.com>
7099
7100 PR 12702
7101 * infrun.c (ptid_match): Move ...
7102 * common/ptid.c (ptid_match): ... here.
7103 * inferior.h (ptid_match): Move ...
7104 * common/ptid.h (ptid_match): ... here.
7105
3cdd631f
MK
71062014-02-27 Mark Kettenis <kettenis@gnu.org>
7107
7108 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7109 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7110 gdb_target_obs.
7111
bee30a64
MK
71122014-02-27 Mark Kettenis <kettenis@gnu.org>
7113
7114 * obsd-tdep.c (obsd_auxv_parse): New function.
7115 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7116
7117 * gdbarch.sh (auxv_parse): New.
7118 * gdbarch.h: Regenerated.
7119 * gdbarch.c: Regenerated.
7120 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7121
7a5a839f
LC
71222014-02-26 Ludovic Courtès <ludo@gnu.org>
7123
7124 * guile/scm-value.c (gdbscm_history_append_x): New function.
7125 (value_functions): Add it.
7126
31aa7e4e
JB
71272014-02-27 Joel Brobecker <brobecker@adacore.com>
7128
7129 * dwarf2read.c (attr_value_as_address): New function.
7130 (dwarf2_find_base_address, read_call_site_scope): Use
7131 attr_value_as_address in place of DW_ADDR.
7132 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7133 the low and high addresses. Slight rework of the handling
7134 of the high pc being a constant form, and limit it to
7135 DWARF verson 4 or higher.
7136 (dwarf2_record_block_ranges): Likewise.
7137 (read_partial_die): Likewise.
7138 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7139
9b333ba3
TT
71402014-02-26 Tom Tromey <tromey@redhat.com>
7141
7142 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7143
5f6cac40
TT
71442014-02-26 Tom Tromey <tromey@redhat.com>
7145
7146 * elfread.c (elf_read_minimal_symbols): Return early if
7147 minimal symbols have already been read. Add "ei" parameter.
7148 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7149 * minsyms.c (prim_record_minimal_symbol_full): Update.
7150 * objfiles.h (struct objstats) <n_minsyms>: Move...
7151 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7152 * symmisc.c (print_objfile_statistics): Update.
7153
2750ef27
TT
71542014-02-26 Tom Tromey <tromey@redhat.com>
7155
7156 * elfread.c (elf_read_minimal_symbols): New function, from
7157 elf_symfile_read.
7158 (elf_symfile_read): Call it.
7159
34643a32
TT
71602014-02-26 Tom Tromey <tromey@redhat.com>
7161
7162 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7163 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7164 (lookup_minimal_symbol_solib_trampoline)
7165 (lookup_minimal_symbol_by_pc_section_1)
7166 (lookup_minimal_symbol_and_objfile): Update.
7167 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7168 Don't allocate a minimal symbol if minsyms have already been read.
7169 (build_minimal_symbol_hash_tables): Update.
7170 (install_minimal_symbols): Do nothing if minsyms already read.
7171 Use the per-BFD obstack.
7172 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7173 * objfiles.c (allocate_objfile): Call
7174 terminate_minimal_symbol_table later.
7175 (have_minimal_symbols): Update.
7176 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7177 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7178 Move from struct objfile.
7179 <minsyms_read>: New field.
7180 (struct objfile) <msymbols, minimal_symbol_count,
7181 msymbol_hash, msymbol_demangled_hash>: Move.
7182 (ALL_OBJFILE_MSYMBOLS): Update.
7183 * symfile.c (read_symbols): Set minsyms_read.
7184 (reread_symbols): Update.
7185 * symmisc.c (dump_objfile, dump_msymbols): Update.
7186
2273f0ac
TT
71872014-02-26 Tom Tromey <tromey@redhat.com>
7188
7189 * minsyms.c (msymbols_sort): Remove.
7190 * minsyms.h (msymbols_sort): Remove.
7191 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7192 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7193 * elfread.c (elf_symtab_read): Don't add section offsets.
7194 * xcoffread.c (record_minimal_symbol): Don't add section offset
7195 to minimal symbol address.
7196 * somread.c (text_offset, data_offset): Remove.
7197 (som_symtab_read): Don't add section offsets to minimal symbol
7198 addresses.
7199 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7200 Don't add section offsets to minimal symbols.
7201 * coffread.c (coff_symtab_read): Don't add section offsets
7202 to minimal symbol addresses.
7203 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7204 to minimal symbol addresses.
7205 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7206 section offset to minimal symbol addresses.
7207 * mdebugread.c (parse_partial_symbols): Don't add section
7208 offset to minimal symbol addresses.
7209 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7210 offset to minimal symbol addresses.
7211
77e371c0
TT
72122014-02-26 Tom Tromey <tromey@redhat.com>
7213
7214 * ada-lang.c (ada_main_name): Update.
7215 (ada_add_standard_exceptions): Update.
7216 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7217 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7218 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7219 * auxv.c (ld_so_xfer_auxv): Update.
7220 * avr-tdep.c (avr_scan_prologue): Update.
7221 * ax-gdb.c (gen_var_ref): Update.
7222 * blockframe.c (get_pc_function_start)
7223 (find_pc_partial_function_gnu_ifunc): Update.
7224 * breakpoint.c (create_overlay_event_breakpoint)
7225 (create_longjmp_master_breakpoint)
7226 (create_std_terminate_master_breakpoint)
7227 (create_exception_master_breakpoint): Update.
7228 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7229 * c-valprint.c (c_val_print): Update.
7230 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7231 * common/agent.c (agent_look_up_symbols): Update.
7232 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7233 * dwarf2loc.c (call_site_to_target_addr): Update.
7234 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7235 * elfread.c (elf_gnu_ifunc_record_cache)
7236 (elf_gnu_ifunc_resolve_by_got): Update.
7237 * findvar.c (default_read_var_value): Update.
7238 * frame.c (inside_main_func): Update.
7239 * frv-tdep.c (frv_frame_this_id): Update.
7240 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7241 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7242 Update.
7243 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7244 (hppa_hpux_find_dummy_bpaddr): Update.
7245 * hppa-tdep.c (hppa_symbol_address): Update.
7246 * infcmd.c (until_next_command): Update.
7247 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7248 Update.
7249 * linespec.c (minsym_found, add_minsym): Update.
7250 * linux-nat.c (get_signo): Update.
7251 * linux-thread-db.c (inferior_has_bug): Update.
7252 * m32c-tdep.c (m32c_return_value)
7253 (m32c_m16c_address_to_pointer): Update.
7254 * m32r-tdep.c (m32r_frame_this_id): Update.
7255 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7256 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7257 * maint.c (maintenance_translate_address): Update.
7258 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7259 (frob_address): New function.
7260 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7261 frob_address. Rename parameter to "pc_in".
7262 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7263 addresses.
7264 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7265 Update.
7266 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7267 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7268 * objc-lang.c (find_objc_msgsend): Update.
7269 * objfiles.c (objfile_relocate1): Update.
7270 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7271 * p-valprint.c (pascal_val_print): Update.
7272 * parse.c (write_exp_msymbol): Update.
7273 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7274 (ppc_elfv2_skip_entrypoint): Update.
7275 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7276 * printcmd.c (build_address_symbolic, msym_info)
7277 (address_info): Update.
7278 * proc-service.c (ps_pglobal_lookup): Update.
7279 * psymtab.c (find_pc_sect_psymtab_closer)
7280 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7281 Change msymbol parameter to bound_minimal_symbol.
7282 * ravenscar-thread.c (get_running_thread_id): Update.
7283 * remote.c (remote_check_symbols): Update.
7284 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7285 address.
7286 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7287 * solib-dsbt.c (lm_base): Update.
7288 * solib-frv.c (lm_base, main_got): Update.
7289 * solib-irix.c (locate_base): Update.
7290 * solib-som.c (som_solib_create_inferior_hook)
7291 (link_map_start): Update.
7292 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7293 * solib-svr4.c (elf_locate_base, enable_break): Update.
7294 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7295 (flush_ea_cache): Update.
7296 * stabsread.c (define_symbol, scan_file_globals): Update.
7297 * stack.c (find_frame_funname): Update.
7298 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7299 (debug_qf_find_pc_sect_symtab): Update.
7300 * symfile.c (simple_read_overlay_table)
7301 (simple_overlay_update): Update.
7302 * symfile.h (struct quick_symbol_functions)
7303 <find_pc_sect_symtab>: Change type of msymbol to
7304 bound_minimal_symbol.
7305 * symmisc.c (dump_msymbols): Update.
7306 * symtab.c (find_pc_sect_symtab_via_partial)
7307 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7308 (search_symbols, print_msymbol_info): Update.
7309 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7310 (MSYMBOL_VALUE_ADDRESS): Redefine.
7311 (BMSYMBOL_VALUE_ADDRESS): New macro.
7312 * tracepoint.c (scope_info): Update.
7313 * tui/tui-disasm.c (tui_find_disassembly_address)
7314 (tui_get_begin_asm_address): Update.
7315 * valops.c (find_function_in_inferior): Update.
7316 * value.c (value_static_field, value_fn_field): Update.
7317
3b7344d5
TT
73182014-02-26 Tom Tromey <tromey@redhat.com>
7319
7320 * ada-lang.c (ada_update_initial_language): Update.
7321 (ada_main_name, ada_has_this_exception_support): Update.
7322 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7323 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7324 * arm-tdep.c (arm_skip_stub): Update.
7325 * auxv.c (ld_so_xfer_auxv): Update.
7326 * avr-tdep.c (avr_scan_prologue): Update.
7327 * ax-gdb.c (gen_var_ref): Update.
7328 * breakpoint.c (struct breakpoint_objfile_data)
7329 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7330 type to bound_minimal_symbol.
7331 (create_overlay_event_breakpoint)
7332 (create_longjmp_master_breakpoint)
7333 (create_std_terminate_master_breakpoint)
7334 (create_exception_master_breakpoint): Update.
7335 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7336 * c-exp.y (classify_name): Update.
7337 * coffread.c (coff_symfile_read): Update.
7338 * common/agent.c (agent_look_up_symbols): Update.
7339 * d-lang.c (d_main_name): Update.
7340 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7341 * dec-thread.c (enable_dec_thread): Update.
7342 * dwarf2loc.c (call_site_to_target_addr): Update.
7343 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7344 * eval.c (evaluate_subexp_standard): Update.
7345 * findvar.c (struct minsym_lookup_data) <result>: Change type
7346 to bound_minimal_symbol.
7347 <objfile>: Remove.
7348 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7349 * frame.c (inside_main_func): Update.
7350 * frv-tdep.c (frv_frame_this_id): Update.
7351 * gcore.c (call_target_sbrk): Update.
7352 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7353 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7354 Update.
7355 * go-lang.c (go_main_name): Update.
7356 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7357 (hppa_hpux_find_import_stub_for_addr): Update.
7358 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7359 Update. Change return type.
7360 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7361 type.
7362 * jit.c (jit_breakpoint_re_set_internal): Update.
7363 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7364 Update.
7365 * linux-nat.c (get_signo): Update.
7366 * linux-thread-db.c (inferior_has_bug): Update
7367 * m32c-tdep.c (m32c_return_value)
7368 (m32c_m16c_address_to_pointer): Update.
7369 * m32r-tdep.c (m32r_frame_this_id): Update.
7370 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7371 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7372 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7373 lookup_minimal_symbol. Change return type.
7374 (lookup_minimal_symbol): Remove.
7375 (lookup_bound_minimal_symbol): Update.
7376 (lookup_minimal_symbol_text): Change return type.
7377 (lookup_minimal_symbol_solib_trampoline): Change return type.
7378 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7379 (lookup_minimal_symbol_solib_trampoline): Change return type.
7380 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7381 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7382 (value_nsstring, find_imps): Update.
7383 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7384 * p-lang.c (pascal_main_name): Update.
7385 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7386 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7387 * proc-service.c (ps_pglobal_lookup): Update.
7388 * ravenscar-thread.c (get_running_thread_msymbol): Change
7389 return type.
7390 (has_ravenscar_runtime, get_running_thread_id): Update.
7391 * remote.c (remote_check_symbols): Update.
7392 * sol-thread.c (ps_pglobal_lookup): Update.
7393 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7394 * solib-dsbt.c (lm_base): Update.
7395 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7396 Update.
7397 * solib-irix.c (locate_base): Update.
7398 * solib-som.c (som_solib_create_inferior_hook)
7399 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7400 Update.
7401 * solib-spu.c (spu_enable_break): Update.
7402 * solib-svr4.c (elf_locate_base, enable_break): Update.
7403 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7404 (flush_ea_cache): Update.
7405 * stabsread.c (define_symbol): Update.
7406 * symfile.c (simple_read_overlay_table): Update.
7407 * symtab.c (find_pc_sect_line): Update.
7408 * tracepoint.c (scope_info): Update.
7409 * tui-disasm.c (tui_get_begin_asm_address): Update.
7410 * value.c (value_static_field): Update.
7411
40c1a007
TT
74122014-02-26 Tom Tromey <tromey@redhat.com>
7413
7414 * minsyms.c (prim_record_minimal_symbol_full): Use
7415 SET_MSYMBOL_VALUE_ADDRESS.
7416 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7417 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7418 SET_MSYMBOL_VALUE_ADDRESS.
7419 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7420 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7421
efd66ac6
TT
74222014-02-26 Tom Tromey <tromey@redhat.com>
7423
7424 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7425 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7426 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7427 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7428 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7429 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7430 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7431 * ada-lang.c (ada_main_name): Update.
7432 (ada_lookup_simple_minsym): Update.
7433 (ada_make_symbol_completion_list): Update.
7434 (ada_add_standard_exceptions): Update.
7435 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7436 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7437 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7438 * arm-tdep.c (skip_prologue_function): Update.
7439 (arm_skip_stack_protector, arm_skip_stub): Update.
7440 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7441 (arm_wince_skip_main_prologue): Update.
7442 * auxv.c (ld_so_xfer_auxv): Update.
7443 * avr-tdep.c (avr_scan_prologue): Update.
7444 * ax-gdb.c (gen_var_ref): Update.
7445 * block.c (call_site_for_pc): Update.
7446 * blockframe.c (get_pc_function_start): Update.
7447 (find_pc_partial_function_gnu_ifunc): Update.
7448 * breakpoint.c (create_overlay_event_breakpoint): Update.
7449 (create_longjmp_master_breakpoint): Update.
7450 (create_std_terminate_master_breakpoint): Update.
7451 (create_exception_master_breakpoint): Update.
7452 (resolve_sal_pc): Update.
7453 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7454 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7455 Update.
7456 * c-valprint.c (c_val_print): Update.
7457 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7458 * coffread.c (coff_symfile_read): Update.
7459 * common/agent.c (agent_look_up_symbols): Update.
7460 * dbxread.c (find_stab_function_addr): Update.
7461 (end_psymtab): Update.
7462 * dwarf2loc.c (call_site_to_target_addr): Update.
7463 (func_verify_no_selftailcall): Update.
7464 (tailcall_dump): Update.
7465 (call_site_find_chain_1): Update.
7466 (dwarf_expr_reg_to_entry_parameter): Update.
7467 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7468 (elf_gnu_ifunc_resolve_by_got): Update.
7469 * f-valprint.c (info_common_command): Update.
7470 * findvar.c (read_var_value): Update.
7471 * frame.c (get_prev_frame_1): Update.
7472 (inside_main_func): Update.
7473 * frv-tdep.c (frv_skip_main_prologue): Update.
7474 (frv_frame_this_id): Update.
7475 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7476 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7477 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7478 (gnuv3_skip_trampoline): Update.
7479 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7480 (hppa64_hpux_in_solib_call_trampoline): Update.
7481 (hppa_hpux_skip_trampoline_code): Update.
7482 (hppa64_hpux_search_dummy_call_sequence): Update.
7483 (hppa_hpux_find_import_stub_for_addr): Update.
7484 (hppa_hpux_find_dummy_bpaddr): Update.
7485 * hppa-tdep.c (hppa_symbol_address)
7486 (hppa_lookup_stub_minimal_symbol): Update.
7487 * i386-tdep.c (i386_skip_main_prologue): Update.
7488 (i386_pe_skip_trampoline_code): Update.
7489 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7490 * infcall.c (get_function_name): Update.
7491 * infcmd.c (until_next_command): Update.
7492 * jit.c (jit_breakpoint_re_set_internal): Update.
7493 (jit_inferior_init): Update.
7494 * linespec.c (minsym_found): Update.
7495 (add_minsym): Update.
7496 * linux-fork.c (info_checkpoints_command): Update.
7497 * linux-nat.c (get_signo): Update.
7498 * linux-thread-db.c (inferior_has_bug): Update.
7499 * m32c-tdep.c (m32c_return_value): Update.
7500 (m32c_m16c_address_to_pointer): Update.
7501 (m32c_m16c_pointer_to_address): Update.
7502 * m32r-tdep.c (m32r_frame_this_id): Update.
7503 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7504 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7505 * maint.c (maintenance_translate_address): Update.
7506 * minsyms.c (add_minsym_to_hash_table): Update.
7507 (add_minsym_to_demangled_hash_table): Update.
7508 (msymbol_objfile): Update.
7509 (lookup_minimal_symbol): Update.
7510 (iterate_over_minimal_symbols): Update.
7511 (lookup_minimal_symbol_text): Update.
7512 (lookup_minimal_symbol_by_pc_name): Update.
7513 (lookup_minimal_symbol_solib_trampoline): Update.
7514 (lookup_minimal_symbol_by_pc_section_1): Update.
7515 (lookup_minimal_symbol_and_objfile): Update.
7516 (prim_record_minimal_symbol_full): Update.
7517 (compare_minimal_symbols): Update.
7518 (compact_minimal_symbols): Update.
7519 (build_minimal_symbol_hash_tables): Update.
7520 (install_minimal_symbols): Update.
7521 (terminate_minimal_symbol_table): Update.
7522 (find_solib_trampoline_target): Update.
7523 (minimal_symbol_upper_bound): Update.
7524 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7525 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7526 (mips_skip_pic_trampoline_code): Update.
7527 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7528 * objc-lang.c (selectors_info): Update.
7529 (classes_info): Update.
7530 (find_methods): Update.
7531 (find_imps): Update.
7532 (find_objc_msgsend): Update.
7533 * objfiles.c (objfile_relocate1): Update.
7534 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7535 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7536 * p-valprint.c (pascal_val_print): Update.
7537 * parse.c (write_exp_msymbol): Update.
7538 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7539 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7540 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7541 * printcmd.c (build_address_symbolic): Update.
7542 (sym_info): Update.
7543 (address_info): Update.
7544 * proc-service.c (ps_pglobal_lookup): Update.
7545 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7546 (find_pc_sect_psymtab): Update.
7547 * python/py-framefilter.c (py_print_frame): Update.
7548 * ravenscar-thread.c (get_running_thread_id): Update.
7549 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7550 Update.
7551 * remote.c (remote_check_symbols): Update.
7552 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7553 (rs6000_skip_trampoline_code): Update.
7554 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7555 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7556 * solib-dsbt.c (lm_base): Update.
7557 * solib-frv.c (lm_base): Update.
7558 (main_got): Update.
7559 * solib-irix.c (locate_base): Update.
7560 * solib-som.c (som_solib_create_inferior_hook): Update.
7561 (som_solib_desire_dynamic_linker_symbols): Update.
7562 (link_map_start): Update.
7563 * solib-spu.c (spu_enable_break): Update.
7564 (ocl_enable_break): Update.
7565 * solib-svr4.c (elf_locate_base): Update.
7566 (enable_break): Update.
7567 * spu-tdep.c (spu_get_overlay_table): Update.
7568 (spu_catch_start): Update.
7569 (flush_ea_cache): Update.
7570 * stabsread.c (define_symbol): Update.
7571 (scan_file_globals): Update.
7572 * stack.c (find_frame_funname): Update.
7573 (frame_info): Update.
7574 * symfile.c (simple_read_overlay_table): Update.
7575 (simple_overlay_update): Update.
7576 * symmisc.c (dump_msymbols): Update.
7577 * symtab.c (fixup_section): Update.
7578 (find_pc_sect_line): Update.
7579 (skip_prologue_sal): Update.
7580 (search_symbols): Update.
7581 (print_msymbol_info): Update.
7582 (rbreak_command): Update.
7583 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7584 (completion_list_objc_symbol): Update.
7585 (default_make_symbol_completion_list_break_on): Update.
7586 * tracepoint.c (scope_info): Update.
7587 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7588 (tui_get_begin_asm_address): Update.
7589 * valops.c (find_function_in_inferior): Update.
7590 * value.c (value_static_field): Update.
7591 (value_fn_field): Update.
7592
50e65b17
TT
75932014-02-26 Tom Tromey <tromey@redhat.com>
7594
7595 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7596 bound minimal symbols. Move code that knows about minsym
7597 table layout...
7598 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7599 function.
7600 * minsyms.h (minimal_symbol_upper_bound): Declare.
7601 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7602 minimal_symbol_upper_bound.
7603
1b588015
JB
76042014-02-27 Joel Brobecker <brobecker@adacore.com>
7605
7606 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7607 Use the type's name if its basic type does not have a tag.
7608
dbb9c2b1
JB
76092014-02-27 Joel Brobecker <brobecker@adacore.com>
7610
7611 * dwarf2read.c (read_subrange_type): Add comment.
7612
55426c9d
JB
76132014-02-27 Joel Brobecker <brobecker@adacore.com>
7614
7615 * dwarf2read.c (update_enumeration_type_from_children): New
7616 function, mostly extracted from process_structure_scope.
7617 (read_enumeration_type): Call update_enumeration_type_from_children.
7618 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7619 and flag_flag_enum fields.
7620
f2fce0ca
PA
76212014-02-26 Pedro Alves <palves@redhat.com>
7622
7623 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7624 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7625 to_xfer_partial method.
7626
7a44e40e
PA
76272014-02-26 Pedro Alves <palves@redhat.com>
7628
7629 * target.c (complete_target_initialization): Don't install
7630 default_xfer_partial as to_xfer_partial hook.
7631 (nomemory): Delete.
7632 (update_current_target): Don't INHERIT nor de_fault
7633 deprecated_xfer_memory. Delete de_fault macro.
7634 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7635 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7636 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7637 field.
7638
bd265cd0
PA
76392014-02-26 Pedro Alves <palves@redhat.com>
7640
7641 * go32-nat.c (my_write_child): New function.
7642 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7643 (go32_xfer_partial): New function.
7644 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7645 Instead install a to_xfer_partial hook.
7646
9d46c4e5
PA
76472014-02-26 Pedro Alves <palves@redhat.com>
7648
7649 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7650 to_xfer_partial helper. Rewrite.
7651 (procfs_xfer_partial): New function.
7652 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7653 Install a to_xfer_partial hook.
7654
a1583b1f
PA
76552014-02-26 Pedro Alves <palves@redhat.com>
7656
7657 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7658 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7659 (m32r_xfer_partial): New function.
7660 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7661 Install a to_xfer_partial hook.
7662
6df1b29f
PA
76632014-02-26 Pedro Alves <palves@redhat.com>
7664
7665 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7666 helper.
7667 (mips_xfer_partial): New function.
7668 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7669 hook. Install a to_xfer_partial hook.
7670
dc53a7ad
JB
76712014-02-26 Joel Brobecker <brobecker@adacore.com>
7672
7673 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7674 * gdbtypes.c (create_array_type_with_stride): New function,
7675 renaming create_array_type, but with an added parameter
7676 called "bit_stride".
7677 (create_array_type): Re-implement using
7678 create_array_type_with_stride.
7679 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7680 and DW_AT_bit_stride attributes.
7681
12ab52e9
PA
76822014-02-26 Pedro Alves <palves@redhat.com>
7683
7684 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7685 task-specific breakpoints.
7686
d16461ae
PA
76872014-02-25 Pedro Alves <palves@redhat.com>
7688
7689 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7690 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7691
a8b16220
SS
76922014-02-25 Stan Shebs <stan@codesourcery.com>
7693
7694 * defs.h: Annotate comments for Doxygen.
7695
b9e795ee
TT
76962014-02-25 Tom Tromey <tromey@redhat.com>
7697
7698 * target.h (target_ignore): Don't declare.
7699 * target.c (target_ignore): Remove.
7700
849c862e
JK
77012014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7702
7703 PR gdb/16626
7704 * auto-load.c (auto_load_objfile_script_1): Change filename to
7705 debugfile.
7706
475109d8
JB
77072014-02-25 Joel Brobecker <brobecker@adacore.com>
7708
7709 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7710 documentation. Adjust prototype to match the target_ops
7711 to_xfer_partial method. Adjust implementation accordingly.
7712
e186c3bd
HZ
77132014-02-25 Hui Zhu <hui@codesourcery.com>
7714
7715 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7716 to_traceframe_info.
7717
6d451942
KB
77182014-02-25 Kevin Buettner <kevinb@redhat.com>
7719
041ab8b4 7720 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7721 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7722 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7723 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7724 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7725 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7726 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7727 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7728 New constants.
7729 (rl78_register_type): Use a data pointer type for SP and
7730 new pseudo registers mentioned above. Use a 16 bit integer
7731 type for all other register pairs.
7732 (rl78_register_name, rl78_g10_register_name): Update for
7733 new pseudo registers.
7734 (rl78_pseudo_register_read): Likewise.
7735 (rl78_pseudo_register_write): Likewise.
7736 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7737 to the newly added pseudo registers.
7738
eddf0bae
DE
77392014-02-24 Doug Evans <dje@google.com>
7740
7741 * value.c (record_latest_value): Fix comment.
7742 * printcmd.c (print_command_1): Remove code to handle -1 return from
7743 record_latest_value.
7744
e96027e0
PA
77452014-02-24 Pedro Alves <palves@redhat.com>
7746
7747 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7748 deprecated_xfer_memory hook.
7749 (procfs_xfer_partial): Call procfs_xfer_memory instead
7750 of the deprecated_xfer_memory target hook.
7751 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7752 helper.
7753
0837c976
YZ
77542014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7755
7756 * windows-nat.c (windows_xfer_shared_libraries): Return
7757 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7758 requested object is TARGET_OBJECT_LIBRARIES.
7759
bc113b4e
YQ
77602014-02-24 Yao Qi <yao@codesourcery.com>
7761
7762 * target.h (enum target_xfer_status)
7763 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7764 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7765 explicitly. New.
7766 * corefile.c (memory_error_message): User updated.
7767 * exec.c (section_table_read_available_memory): Likewise.
7768 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7769 * target.c (target_xfer_status_to_string): Likewise.
7770 (raw_memory_xfer_partial): Likewise.
7771 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7772 * valops.c (read_value_memory): Likewise.
7773 * exec.h: Update comments.
7774
01cb8804
YQ
77752014-02-24 Yao Qi <yao@codesourcery.com>
7776
7777 * target.c (target_xfer_status_to_string): Rename argument err
7778 to status.
7779 * target.h (target_xfer_status_to_string): Update declaration.
7780 Replace target_xfer_error_to_string with
7781 target_xfer_status_to_string in comment.
7782
93063aa6
YQ
77832014-02-24 Yao Qi <yao@codesourcery.com>
7784
7785 * mips-linux-nat.c (super_close): Update its type.
7786 (mips_linux_close): Pass 'self' to super_close.
7787
5c328c05
YQ
77882014-02-24 Yao Qi <yao@codesourcery.com>
7789
7790 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7791 * corefile.c (read_memory): Adjusted.
7792 * target.c (target_write_with_progress): Adjusted.
7793
f73023dd
YQ
77942014-02-23 Yao Qi <yao@codesourcery.com>
7795
7796 Revert two patches:
7797
7798 2013-10-25 Yao Qi <yao@codesourcery.com>
7799
7800 * remote.c (remote_traceframe_info): Return early if
7801 traceframe is not selected.
7802
7803 2013-07-19 Yao Qi <yao@codesourcery.com>
7804
7805 * target.c (update_current_target): Change the default action
7806 of 'to_traceframe_info' from tcomplain to return_zero.
7807 * target.h (struct target_ops) <to_traceframe_info>: Add more
7808 comments.
7809
5a2eb0ef
YQ
78102014-02-23 Yao Qi <yao@codesourcery.com>
7811
7812 * valops.c (read_value_memory): Rewrite it. Call
7813 target_xfer_partial in a loop.
7814 * exec.h (section_table_available_memory): Remove declaration.
7815 Move comments to ...
7816 * exec.c (section_table_available_memory): ... here. Make it
7817 static.
7818
1ee79381
YQ
78192014-02-23 Yao Qi <yao@codesourcery.com>
7820
7821 * exec.c (section_table_read_available_memory): New function.
7822 * exec.h (section_table_read_available_memory): Declare.
7823 * ctf.c (ctf_xfer_partial): Call
7824 section_table_read_available_memory.
7825 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7826
1ca49d37
YQ
78272014-02-23 Yao Qi <yao@codesourcery.com>
7828
7829 * ctf.c (ctf_xfer_partial): Move code to ...
7830 * exec.c (exec_read_partial_read_only): ... it. New function.
7831 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7832 * tracefile.c: Include "exec.h".
7833 * exec.h (exec_read_partial_read_only): Declare.
7834
a283690e
YQ
78352014-02-23 Yao Qi <yao@codesourcery.com>
7836
7837 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7838 (tfile_has_memory): Remove.
7839 (init_tfile_ops): Don't set fields to_has_all_memory and
7840 to_has_memory of tfile_ops.
7841 * tracefile.c (tracefile_has_all_memory): New function.
7842 (tracefile_has_memory): New function.
7843 (init_tracefile_ops): Initialize fields to_has_all_memory and
7844 to_has_memory of 'ops'.
7845
12e03cd0
YQ
78462014-02-23 Yao Qi <yao@codesourcery.com>
7847
7848 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7849 (ctf_thread_alive, ctf_get_trace_status): Remove.
7850 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7851 init_tracefile_ops.
7852 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7853 (tfile_has_stack, tfile_has_registers): Remove.
7854 (tfile_thread_alive): Remove.
7855 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7856 init_tracefile_ops.
7857 * tracefile.c (tracefile_has_stack): New function.
7858 (tracefile_has_registers): New function.
7859 (tracefile_thread_alive): New function.
7860 (tracefile_get_trace_status): New function.
7861 (init_tracefile_ops): New function.
7862 * tracefile.h (init_tracefile_ops): Declare.
7863
11395323
YQ
78642014-02-23 Yao Qi <yao@codesourcery.com>
7865
7866 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7867 (O_LARGEFILE): Likewise.
7868 (tfile_ops): Likewise.
7869 (TRACE_HEADER_SIZE): Likewise.
7870 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7871 (cur_data_size): Likewise.
7872 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7873 (tfile_close, tfile_files_info): Likewise.
7874 (tfile_get_trace_status): Likewise.
7875 (tfile_get_tracepoint_status): Likewise.
7876 (tfile_get_traceframe_address): Likewise.
7877 (tfile_trace_find, match_blocktype): Likewise.
7878 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7879 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7880 (tfile_get_trace_state_variable_value): Likewise.
7881 (tfile_has_all_memory, tfile_has_memory): Likewise.
7882 (tfile_has_stack, tfile_has_registers): Likewise.
7883 (tfile_thread_alive, build_traceframe_info): Likewise.
7884 (tfile_traceframe_info, init_tfile_ops): Likewise.
7885 (_initialize_tracepoint): Don't call init_tfile_ops
7886 and add_target_with_completer.
7887 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7888 exec.h, completer.h and filenames.h.
7889 (_initialize_tracefile_tfile): New function.
7890
7951c4eb
YQ
78912014-02-23 Yao Qi <yao@codesourcery.com>
7892
7893 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7894 tracefile-tfile.o.
7895 (HFILES_NO_SRCDIR): Add tracefile.h.
7896 * ctf.c: Include "tracefile.h".
7897 * tracefile.h: New file.
7898 * tracefile.c: New file
7899 * tracefile-tfile.c: New file.
7900 * tracepoint.c: Include "tracefile.h".
7901 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7902 (stop_reason_names): Add const.
7903 (trace_file_writer_xfree): Move it to tracefile.c.
7904 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7905 (trace_save_ctf): Likewise.
7906 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7907 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7908 (tfile_write_header, tfile_write_regblock_type): Likewise.
7909 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7910 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7911 (tfile_write_raw_data, tfile_end): Likewise.
7912 (tfile_trace_file_writer_new): Likewise.
7913 (free_uploaded_tp): Make it extern.
7914 (free_uploaded_tsv): Make it extern.
7915 (_initialize_tracepoint): Move code to register command 'tsave'
7916 to tracefile.c.
7917 * tracepoint.h (stop_reason_names): Declare.
7918 (struct trace_frame_write_ops): Move it to tracefile.h.
7919 (struct trace_file_write_ops): Likewise.
7920 (struct trace_file_writer): Likewise.
7921 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7922
184cd072
JK
79232014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7924
7925 PR gdb/16594
7926 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7927 process name.
7928 (get_cores_used_by_process): New parameter num_cores, use it.
7929 (linux_xfer_osdata_processes): Pass num_cores to it.
7930 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7931 process name.
7932
c63528fc
AK
79332014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7934
7935 * target.c (memory_xfer_partial): Fix length arg in call to
7936 breakpoint_xfer_memory.
7937
d7b30f67
SDJ
79382014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7939
7940 PR tdep/16397
7941 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7942 number comes after the + or - signs. Adjust length of register
7943 name to be extracted.
7944
8838afaf
TT
79452014-02-20 Tom Tromey <tromey@redhat.com>
7946
7947 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7948 (ada_varobj_ops): Mark "extern".
7949
05227d14
TT
79502014-02-20 Tom Tromey <tromey@redhat.com>
7951
7952 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7953
1254eefc
DE
79542014-02-20 Doug Evans <xdje42@gmail.com>
7955
7956 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7957 All callers updated.
7958 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7959 All callers updated.
7960 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7961 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7962
adde2bff
DE
79632014-02-20 lin zuojian <manjian2006@gmail.com>
7964 Joel Brobecker <brobecker@adacore.com>
7965 Doug Evans <xdje42@gmail.com>
7966
7967 PR symtab/16581
7968 * dwarf2read.c (struct die_info): New member in_process.
7969 (reset_die_in_process): New function.
7970 (process_die): Set it at the start, reset when returning.
7971 (inherit_abstract_dies): Only call process_die if origin_child_die
7972 not already being processed.
7973
3be75f87
JB
79742014-02-20 Joel Brobecker <brobecker@adacore.com>
7975
7976 * windows-nat.c (handle_unload_dll): Add function documentation.
7977 (do_initial_windows_stuff): Add comment explaining why we wait
7978 until after inferior initialization has finished before
7979 processing all DLLs.
7980
47f7ffdb
JB
79812014-02-20 Joel Brobecker <brobecker@adacore.com>
7982
7983 * windows-nat.c (get_module_name): Delete.
7984 (windows_get_exec_module_filename): New function, mostly
7985 inspired from get_module_name.
7986 (windows_pid_to_exec_file): Replace call to get_module_name
7987 by call to windows_get_exec_module_filename.
7988
1cd9feab
JB
79892014-02-20 Joel Brobecker <brobecker@adacore.com>
7990
7991 * windows-nat.c (handle_load_dll): Rewrite this function's
7992 introductory comment. Remove code using get_module_name
7993 to get the DLL's name.
7994
ea39ad35
JB
79952014-02-20 Joel Brobecker <brobecker@adacore.com>
7996
7997 * windows-nat.c (get_windows_debug_event): Ignore
7998 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7999 if windows_initialization_done == 0.
8000 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8001 Adjust implementation to always load all DLLs.
8002 (do_initial_windows_stuff): Replace call to
8003 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8004
95060284
JB
80052014-02-20 Joel Brobecker <brobecker@adacore.com>
8006
8007 * windows-nat.c (_initialize_windows_nat): Deprecate the
8008 "dll-symbols" command. Turn the "add-shared-symbol-files"
8009 and "assf" aliases into commands, and deprecate them as well.
8010 * NEWS: Add entry explaining that "dll-symbols" and its two
8011 aliases are now deprecated.
8012
8d4fdb12
JB
80132014-02-20 Joel Brobecker <brobecker@adacore.com>
8014
8015 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8016 new-line in debug string. Remove trailing spaces.
8017
1b281443
SS
80182014-02-19 Stan Shebs <stan@codesourcery.com>
8019
8020 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8021
f7bd0f78
SC
80222014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8023
8024 * NEWS: Add entry for the new feature
8025 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8026 and class values.
8027
399ebc3d
SS
80282014-02-19 Stan Shebs <stan@codesourcery.com>
8029
8030 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8031
c658158d
PA
80322014-02-19 Pedro Alves <palves@redhat.com>
8033
8034 * common/ptid.h (struct ptid): Mention that process_stratum
8035 targets should prefer ptid.lwp.
8036
ba348170
PA
80372014-02-19 Pedro Alves <palves@redhat.com>
8038
8039 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8040 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8041 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8042 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8043 store remote thread ids rather than ptid.tid.
8044 (_initialize_remote): Adjust.
8045
ac01945b
TT
80462014-02-19 Tom Tromey <tromey@redhat.com>
8047
8048 * target.c (target_get_unwinder): Rewrite.
8049 (target_get_tailcall_unwinder): Rewrite.
8050 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8051 (record_btrace_to_get_tailcall_unwinder): New function.
8052 (init_record_btrace_ops): Update.
8053 * target.h (struct target_ops) <to_get_unwinder,
8054 to_get_tailcall_unwinder>: Now function pointers. Use
8055 TARGET_DEFAULT_RETURN.
8056
8476dc92
TT
80572014-02-19 Tom Tromey <tromey@redhat.com>
8058
8059 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8060 argument.
8061 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8062
c0eca49f
TT
80632014-02-19 Tom Tromey <tromey@redhat.com>
8064
8065 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8066 directly.
8067 * target-delegates.c: Rebuild.
8068 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8069 TARGET_DEFAULT_FUNC.
8070 * target.c (default_target_decr_pc_after_break): Rename from
8071 forward_target_decr_pc_after_break. Simplify.
8072 (target_decr_pc_after_break): Rely on delegation.
8073
596b6b39
TT
80742014-02-19 Tom Tromey <tromey@redhat.com>
8075
8076 * target.c (update_current_target): Do not INHERIT to_doc or
8077 to_magic. Do not de_fault to_open or to_close.
8078
b427c1bc
TT
80792014-02-19 Tom Tromey <tromey@redhat.com>
8080
8081 * gcore.h (objfile_find_memory_regions): Declare.
8082 * gcore.c (objfile_find_memory_regions): No longer static. Add
8083 "self" argument.
8084 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8085 * exec.c: Include gcore.h.
8086 (exec_set_find_memory_regions): Remove.
8087 (exec_find_memory_regions): Remove.
8088 (exec_do_find_memory_regions): Remove.
8089 (init_exec_ops): Update.
8090 * defs.h (exec_set_find_memory_regions): Remove.
8091
9b144037
TT
80922014-02-19 Tom Tromey <tromey@redhat.com>
8093
8094 * target-delegates.c: Rebuild.
8095 * target.h (struct target_ops) <to_extra_thread_info,
8096 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8097 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8098 not 0, in TARGET_DEFAULT_RETURN.
8099
555bbdeb
TT
81002014-02-19 Tom Tromey <tromey@redhat.com>
8101
8102 * target.c (complete_target_initialization): Remove casts. Use
8103 return_zero_has_execution.
8104 (return_zero): Add "ignore" argument.
8105 (return_zero_has_execution): New function.
8106 (init_dummy_target): Remove casts. Use
8107 return_zero_has_execution.
8108
be4ddd36
TT
81092014-02-19 Tom Tromey <tromey@redhat.com>
8110
8111 * target.c (update_current_target): Update comments. Do not
8112 INHERIT to_stratum.
8113
2117c711
TT
81142014-02-19 Tom Tromey <tromey@redhat.com>
8115
8116 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8117 needed.
8118 * corelow.c (core_read_description): Delegate when needed.
8119 * remote.c (remote_read_description): Delegate when needed.
8120 * target-delegates.c: Rebuild.
8121 * target.c (target_read_description): Rewrite.
8122 * target.h (struct target_ops) <to_read_description>: Update
8123 comment. Use TARGET_DEFAULT_RETURN.
8124
e88ef65c
TT
81252014-02-19 Tom Tromey <tromey@redhat.com>
8126
8127 * target-delegates.c: Rebuild.
8128 * target.c (update_current_target): Don't inherit or default
8129 to_can_run.
8130 (find_default_run_target): Check against delegate_can_run.
8131 * target.h (struct target_ops) <to_can_run>: Use
8132 TARGET_DEFAULT_RETURN.
8133
86a0854a
TT
81342014-02-19 Tom Tromey <tromey@redhat.com>
8135
8136 * target-delegates.c: Rebuild.
8137 * target.c (target_disconnect): Unconditionally delegate.
8138 * target.h (struct target_ops) <to_disconnect>: Use
8139 TARGET_DEFAULT_NORETURN.
8140
ee97f592
TT
81412014-02-19 Tom Tromey <tromey@redhat.com>
8142
8143 * record.c (record_stop): Unconditionally delegate.
8144 * target-delegates.c: Rebuild.
8145 * target.c (target_stop_recording): Unconditionally delegate.
8146 * target.h (struct target_ops) <to_stop_recording>: Use
8147 TARGET_DEFAULT_IGNORE.
8148
6dc7fcf4
TT
81492014-02-19 Tom Tromey <tromey@redhat.com>
8150
8151 * target-delegates.c: Rebuild.
8152 * target.c (target_enable_btrace): Unconditionally delegate.
8153 * target.h (struct target_ops) <to_enable_btrace>: Use
8154 TARGET_DEFAULT_NORETURN.
8155
eb5b20d4
TT
81562014-02-19 Tom Tromey <tromey@redhat.com>
8157
8158 * target-delegates.c: Rebuild.
8159 * target.c (target_read_btrace): Unconditionally delegate.
8160 * target.h (struct target_ops) <to_read_btrace>: Use
8161 TARGET_DEFAULT_NORETURN.
8162
9ace480d
TT
81632014-02-19 Tom Tromey <tromey@redhat.com>
8164
8165 * target-delegates.c: Rebuild.
8166 * target.c (target_teardown_btrace): Unconditionally delegate.
8167 * target.h (struct target_ops) <to_teardown_btrace>: Use
8168 TARGET_DEFAULT_NORETURN.
8169
8dc292d3
TT
81702014-02-19 Tom Tromey <tromey@redhat.com>
8171
8172 * target-delegates.c: Rebuild.
8173 * target.c (target_disable_btrace): Unconditionally delegate.
8174 * target.h (struct target_ops) <to_disable_btrace>: Use
8175 TARGET_DEFAULT_NORETURN.
8176
58a5184e
TT
81772014-02-19 Tom Tromey <tromey@redhat.com>
8178
8179 * target-delegates.c: Rebuild.
8180 * target.c (default_search_memory): New function.
8181 (simple_search_memory): Update comment.
8182 (target_search_memory): Unconditionally delegate.
8183 * target.h (struct target_ops) <to_search_memory>: Use
8184 TARGET_DEFAULT_FUNC.
8185
8de71aab
TT
81862014-02-19 Tom Tromey <tromey@redhat.com>
8187
8188 * auxv.c (default_auxv_parse): No longer static.
8189 (target_auxv_parse): Unconditionally delegate.
8190 * auxv.h (default_auxv_parse): Declare.
8191 * target-delegates.c: Rebuild.
8192 * target.c: Include auxv.h.
8193 * target.h (struct target_ops) <to_auxv_parse>: Use
8194 TARGET_DEFAULT_FUNC.
8195
6b2c5a57
TT
81962014-02-19 Tom Tromey <tromey@redhat.com>
8197
8198 * target-delegates.c: Rebuild.
8199 * target.c (target_memory_map): Unconditionally delegate.
8200 * target.h (struct target_ops) <to_memory_map>: Use
8201 TARGET_DEFAULT_RETURN.
8202
cbffc065
TT
82032014-02-19 Tom Tromey <tromey@redhat.com>
8204
8205 * target-delegates.c: Rebuild.
8206 * target.c (target_thread_alive): Unconditionally delegate.
8207 * target.h (struct target_ops) <to_thread_alive>: Use
8208 TARGET_DEFAULT_RETURN.
8209
f09e2107
TT
82102014-02-19 Tom Tromey <tromey@redhat.com>
8211
8212 * target-delegates.c: Rebuild.
8213 * target.c (target_save_record): Unconditionally delegate.
8214 * target.h (struct target_ops) <to_save_record>: Use
8215 TARGET_DEFAULT_NORETURN.
8216
07366925
TT
82172014-02-19 Tom Tromey <tromey@redhat.com>
8218
8219 * target-delegates.c: Rebuild.
8220 * target.c (target_delete_record): Unconditionally delegate.
8221 * target.h (struct target_ops) <to_delete_record>: Use
8222 TARGET_DEFAULT_NORETURN.
8223
dd2e9d25
TT
82242014-02-19 Tom Tromey <tromey@redhat.com>
8225
8226 * target-delegates.c: Rebuild.
8227 * target.c (target_record_is_replaying): Unconditionally
8228 delegate.
8229 * target.h (struct target_ops) <to_record_is_replaying>: Use
8230 TARGET_DEFAULT_RETURN.
8231
671e76cc
TT
82322014-02-19 Tom Tromey <tromey@redhat.com>
8233
8234 * target-delegates.c: Rebuild.
8235 * target.c (target_goto_record_begin): Unconditionally delegate.
8236 * target.h (struct target_ops) <to_goto_record_begin>: Use
8237 TARGET_DEFAULT_NORETURN.
8238
e9179bb3
TT
82392014-02-19 Tom Tromey <tromey@redhat.com>
8240
8241 * target-delegates.c: Rebuild.
8242 * target.c (target_goto_record_end): Unconditionally delegate.
8243 * target.h (struct target_ops) <to_goto_record_end>: Use
8244 TARGET_DEFAULT_NORETURN.
8245
05969c84
TT
82462014-02-19 Tom Tromey <tromey@redhat.com>
8247
8248 * target-delegates.c: Rebuild.
8249 * target.c (target_goto_record): Unconditionally delegate.
8250 * target.h (struct target_ops) <to_goto_record>: Use
8251 TARGET_DEFAULT_NORETURN.
8252
3679abfa
TT
82532014-02-19 Tom Tromey <tromey@redhat.com>
8254
8255 * target-delegates.c: Rebuild.
8256 * target.c (target_insn_history): Unconditionally delegate.
8257 * target.h (struct target_ops) <to_insn_history>: Use
8258 TARGET_DEFAULT_NORETURN.
8259
8444ab58
TT
82602014-02-19 Tom Tromey <tromey@redhat.com>
8261
8262 * target-delegates.c: Rebuild.
8263 * target.c (target_insn_history_from): Unconditionally delegate.
8264 * target.h (struct target_ops) <to_insn_history_from>: Use
8265 TARGET_DEFAULT_NORETURN.
8266
c29302cc
TT
82672014-02-19 Tom Tromey <tromey@redhat.com>
8268
8269 * target-delegates.c: Rebuild.
8270 * target.c (target_insn_history_range): Unconditionally delegate.
8271 * target.h (struct target_ops) <to_insn_history_range>: Use
8272 TARGET_DEFAULT_NORETURN.
8273
170049d4
TT
82742014-02-19 Tom Tromey <tromey@redhat.com>
8275
8276 * target-delegates.c: Rebuild.
8277 * target.c (target_call_history): Unconditionally delegate.
8278 * target.h (struct target_ops) <to_call_history>: Use
8279 TARGET_DEFAULT_NORETURN.
8280
16fc27d6
TT
82812014-02-19 Tom Tromey <tromey@redhat.com>
8282
8283 * target-delegates.c: Rebuild.
8284 * target.c (target_call_history_from): Unconditionally delegate.
8285 * target.h (struct target_ops) <to_call_history_from>: Use
8286 TARGET_DEFAULT_NORETURN.
8287
115d9817
TT
82882014-02-19 Tom Tromey <tromey@redhat.com>
8289
8290 * target-delegates.c: Rebuild.
8291 * target.c (target_call_history_range): Unconditionally delegate.
8292 * target.h (struct target_ops) <to_call_history_range>: Use
8293 TARGET_DEFAULT_NORETURN.
8294
eb276a6b
TT
82952014-02-19 Tom Tromey <tromey@redhat.com>
8296
8297 * target-delegates.c: Rebuild.
8298 * target.c (target_verify_memory): Unconditionally delegate.
8299 * target.h (struct target_ops) <to_verify_memory>: Use
8300 TARGET_DEFAULT_NORETURN.
8301
9e538d0d
TT
83022014-02-19 Tom Tromey <tromey@redhat.com>
8303
8304 * target-delegates.c: Rebuild.
8305 * target.c (target_core_of_thread): Unconditionally delegate.
8306 * target.h (struct target_ops) <to_core_of_thread>: Use
8307 TARGET_DEFAULT_RETURN.
8308
f6fb2925
TT
83092014-02-19 Tom Tromey <tromey@redhat.com>
8310
8311 * target-delegates.c: Rebuild.
8312 * target.c (target_flash_done): Unconditionally delegate.
8313 * target.h (struct target_ops) <to_flash_done>: Use
8314 TARGET_DEFAULT_NORETURN.
8315
e8a6c6ac
TT
83162014-02-19 Tom Tromey <tromey@redhat.com>
8317
8318 * target-delegates.c: Rebuild.
8319 * target.c (target_flash_erase): Unconditionally delegate.
8320 * target.h (struct target_ops) <to_flash_erase>: Use
8321 TARGET_DEFAULT_NORETURN.
8322
7e35c012
TT
83232014-02-19 Tom Tromey <tromey@redhat.com>
8324
8325 * target-delegates.c: Rebuild.
8326 * target.c (target_get_section_table): Unconditionally delegate.
8327 * target.h (struct target_ops) <to_get_section_table>: Use
8328 TARGET_DEFAULT_RETURN.
8329
770234d3
TT
83302014-02-19 Tom Tromey <tromey@redhat.com>
8331
8332 * target-delegates.c: Rebuild.
8333 * target.c (target_pid_to_str): Unconditionally delegate.
8334 (init_dummy_target): Don't initialize to_pid_to_str.
8335 (default_pid_to_str): Rename from dummy_pid_to_str.
8336 * target.h (struct target_ops) <to_pid_to_str>: Use
8337 TARGET_DEFAULT_FUNC.
8338
09b0dc2b
TT
83392014-02-19 Tom Tromey <tromey@redhat.com>
8340
8341 * target-delegates.c: Rebuild.
8342 * target.c (target_find_new_threads): Unconditionally delegate.
8343 * target.h (struct target_ops) <to_find_new_threads>: Use
8344 TARGET_DEFAULT_RETURN.
8345
7d4f8efa
TT
83462014-02-19 Tom Tromey <tromey@redhat.com>
8347
8348 * target-delegates.c: Rebuild.
8349 * target.c (target_program_signals): Unconditionally delegate.
8350 * target.h (struct target_ops) <to_program_signals>: Use
8351 TARGET_DEFAULT_IGNORE.
8352
035cad7f
TT
83532014-02-19 Tom Tromey <tromey@redhat.com>
8354
8355 * target-delegates.c: Rebuild.
8356 * target.c (target_pass_signals): Unconditionally delegate.
8357 * target.h (struct target_ops) <to_pass_signals>: Use
8358 TARGET_DEFAULT_IGNORE.
8359
8d657035
TT
83602014-02-19 Tom Tromey <tromey@redhat.com>
8361
8362 * target-delegates.c: Rebuild.
8363 * target.c (default_mourn_inferior): New function.
8364 (target_mourn_inferior): Unconditionally delegate.
8365 * target.h (struct target_ops) <to_mourn_inferior>: Use
8366 TARGET_DEFAULT_FUNC.
8367
098dba18
TT
83682014-02-19 Tom Tromey <tromey@redhat.com>
8369
8370 * target-delegates.c: Rebuild.
8371 * target.c (default_follow_fork): New function.
8372 (target_follow_fork): Unconditionally delegate.
8373 * target.h (struct target_ops) <to_follow_fork>: Use
8374 TARGET_DEFAULT_FUNC.
8375
423a4807
TT
83762014-02-19 Tom Tromey <tromey@redhat.com>
8377
8378 * target-delegates.c: Rebuild.
8379 * target.c (target_kill): Unconditionally delegate.
8380 * target.h (struct target_ops) <to_kill>: Use
8381 TARGET_DEFAULT_NORETURN.
8382
6c7e5e5c
TT
83832014-02-19 Tom Tromey <tromey@redhat.com>
8384
8385 * target-delegates.c: Rebuild.
8386 * target.c (target_masked_watch_num_registers): Unconditionally
8387 delegate.
8388 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8389 Use TARGET_DEFAULT_RETURN.
8390
8b1c364c
TT
83912014-02-19 Tom Tromey <tromey@redhat.com>
8392
8393 * target-delegates.c: Rebuild.
8394 * target.c (target_remove_mask_watchpoint): Unconditionally
8395 delegate.
8396 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8397 TARGET_DEFAULT_RETURN.
8398
cd4ae029
TT
83992014-02-19 Tom Tromey <tromey@redhat.com>
8400
8401 * target-delegates.c: Rebuild.
8402 * target.c (target_insert_mask_watchpoint): Unconditionally
8403 delegate.
8404 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8405 TARGET_DEFAULT_RETURN.
8406
a134316b
TT
84072014-02-19 Tom Tromey <tromey@redhat.com>
8408
8409 * target-delegates.c: Rebuild.
8410 * target.c (target_ranged_break_num_registers): Unconditionally
8411 delegate.
8412 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8413 Use TARGET_DEFAULT_RETURN.
8414
ad5989bd
TT
84152014-02-19 Tom Tromey <tromey@redhat.com>
8416
8417 * target-delegates.c: Rebuild.
8418 * target.c (target_fetch_registers): Unconditionally delegate.
8419 * target.h (struct target_ops) <to_fetch_registers>: Use
8420 TARGET_DEFAULT_NORETURN.
8421
46ee7e8d
TT
84222014-02-19 Tom Tromey <tromey@redhat.com>
8423
8424 * target-delegates.c: Rebuild.
8425 * target.c (update_current_target): Don't inherit or default
8426 to_stop.
8427 * target.h (struct target_ops) <to_stop>: Use
8428 TARGET_DEFAULT_IGNORE.
8429
843f59ed
TT
84302014-02-19 Tom Tromey <tromey@redhat.com>
8431
8432 * target-delegates.c: Rebuild.
8433 * target.c (update_current_target): Don't inherit or default
8434 to_can_run_breakpoint_commands.
8435 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8436 Use TARGET_DEFAULT_RETURN.
8437
ccfde2a0
TT
84382014-02-19 Tom Tromey <tromey@redhat.com>
8439
8440 * target-delegates.c: Rebuild.
8441 * target.c (update_current_target): Don't inherit or default
8442 to_supports_evaluation_of_breakpoint_conditions.
8443 * target.h (struct target_ops)
8444 <to_supports_evaluation_of_breakpoint_conditions>: Use
8445 TARGET_DEFAULT_RETURN.
8446
0de91722
TT
84472014-02-19 Tom Tromey <tromey@redhat.com>
8448
8449 * target-delegates.c: Rebuild.
8450 * target.c (update_current_target): Don't inherit or default
8451 to_augmented_libraries_svr4_read.
8452 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8453 Use TARGET_DEFAULT_RETURN.
8454
9a7d8b48
TT
84552014-02-19 Tom Tromey <tromey@redhat.com>
8456
8457 * target-delegates.c: Rebuild.
8458 * target.c (update_current_target): Don't inherit or default
8459 to_can_use_agent.
8460 * target.h (struct target_ops) <to_can_use_agent>: Use
8461 TARGET_DEFAULT_RETURN.
8462
d9db5b21
TT
84632014-02-19 Tom Tromey <tromey@redhat.com>
8464
8465 * target-delegates.c: Rebuild.
8466 * target.c (update_current_target): Don't inherit or default
8467 to_use_agent.
8468 * target.h (struct target_ops) <to_use_agent>: Use
8469 TARGET_DEFAULT_NORETURN.
8470
92155eeb
TT
84712014-02-19 Tom Tromey <tromey@redhat.com>
8472
8473 * target-delegates.c: Rebuild.
8474 * target.c (update_current_target): Don't inherit or default
8475 to_traceframe_info.
8476 (return_null): Remove.
8477 * target.h (struct target_ops) <to_traceframe_info>: Use
8478 TARGET_DEFAULT_RETURN.
8479
d6522a22
TT
84802014-02-19 Tom Tromey <tromey@redhat.com>
8481
8482 * target-delegates.c: Rebuild.
8483 * target.c (update_current_target): Don't inherit or default
8484 to_static_tracepoint_markers_by_strid.
8485 * target.h (struct target_ops)
8486 <to_static_tracepoint_markers_by_strid>: Use
8487 TARGET_DEFAULT_NORETURN.
8488
4c3e4425
TT
84892014-02-19 Tom Tromey <tromey@redhat.com>
8490
8491 * target-delegates.c: Rebuild.
8492 * target.c (update_current_target): Don't inherit or default
8493 to_static_tracepoint_marker_at.
8494 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8495 Use TARGET_DEFAULT_RETURN.
8496
dcd6917f
TT
84972014-02-19 Tom Tromey <tromey@redhat.com>
8498
8499 * target-delegates.c: Rebuild.
8500 * target.c (update_current_target): Don't inherit or default
8501 to_set_permissions.
8502 * target.h (struct target_ops) <to_set_permissions>: Use
8503 TARGET_DEFAULT_IGNORE.
8504
22bcceee
TT
85052014-02-19 Tom Tromey <tromey@redhat.com>
8506
8507 * target-delegates.c: Rebuild.
8508 * target.c (update_current_target): Don't inherit or default
8509 to_get_tib_address.
8510 * target.h (struct target_ops) <to_get_tib_address>: Use
8511 TARGET_DEFAULT_NORETURN.
8512
8586ccaa
TT
85132014-02-19 Tom Tromey <tromey@redhat.com>
8514
8515 * target-delegates.c: Rebuild.
8516 * target.c (update_current_target): Don't inherit or default
8517 to_set_trace_notes.
8518 * target.h (struct target_ops) <to_set_trace_notes>: Use
8519 TARGET_DEFAULT_RETURN.
8520
91df8d1d
TT
85212014-02-19 Tom Tromey <tromey@redhat.com>
8522
8523 * target-delegates.c: Rebuild.
8524 * target.c (update_current_target): Don't initialize
8525 to_set_trace_buffer_size.
8526 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8527 TARGET_DEFAULT_IGNORE.
8528
8d526939
TT
85292014-02-19 Tom Tromey <tromey@redhat.com>
8530
8531 * target-delegates.c: Rebuild.
8532 * target.c (update_current_target): Don't inherit or default
8533 to_set_circular_trace_buffer.
8534 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8535 TARGET_DEFAULT_IGNORE.
8536
0bcfeddf
TT
85372014-02-19 Tom Tromey <tromey@redhat.com>
8538
8539 * target-delegates.c: Rebuild.
8540 * target.c (update_current_target): Don't inherit or default
8541 to_set_disconnected_tracing.
8542 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8543 TARGET_DEFAULT_IGNORE.
8544
9249843f
TT
85452014-02-19 Tom Tromey <tromey@redhat.com>
8546
8547 * target-delegates.c: Rebuild.
8548 * target.c (update_current_target): Don't inherit or default
8549 to_get_min_fast_tracepoint_insn_len.
8550 (return_minus_one): Remove.
8551 * target.h (struct target_ops)
8552 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8553
ace92e7d
TT
85542014-02-19 Tom Tromey <tromey@redhat.com>
8555
8556 * target-delegates.c: Rebuild.
8557 * target.c (update_current_target): Don't inherit or default
8558 to_get_raw_trace_data.
8559 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8560 TARGET_DEFAULT_NORETURN.
8561
08120467
TT
85622014-02-19 Tom Tromey <tromey@redhat.com>
8563
8564 * target-delegates.c: Rebuild.
8565 * target.c (update_current_target): Don't inherit or default
8566 to_upload_trace_state_variables.
8567 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8568 Use TARGET_DEFAULT_RETURN.
8569
1e949b00
TT
85702014-02-19 Tom Tromey <tromey@redhat.com>
8571
8572 * target-delegates.c: Rebuild.
8573 * target.c (update_current_target): Don't inherit or default
8574 to_upload_tracepoints.
8575 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8576 TARGET_DEFAULT_RETURN.
8577
a2e6c147
TT
85782014-02-19 Tom Tromey <tromey@redhat.com>
8579
8580 * target-delegates.c: Rebuild.
8581 * target.c (update_current_target): Don't inherit or default
8582 to_save_trace_data.
8583 * target.h (struct target_ops) <to_save_trace_data>: Use
8584 TARGET_DEFAULT_NORETURN.
8585
959bcd0b
TT
85862014-02-19 Tom Tromey <tromey@redhat.com>
8587
8588 * target-delegates.c: Rebuild.
8589 * target.c (update_current_target): Don't inherit or default
8590 to_get_trace_state_variable_value.
8591 * target.h (struct target_ops)
8592 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8593
afc94e66
TT
85942014-02-19 Tom Tromey <tromey@redhat.com>
8595
8596 * target-delegates.c: Rebuild.
8597 * target.c (update_current_target): Don't inherit or default
8598 to_trace_find.
8599 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8600
e51c07ea
TT
86012014-02-19 Tom Tromey <tromey@redhat.com>
8602
8603 * target-delegates.c: Rebuild.
8604 * target.c (update_current_target): Don't inherit or default
8605 to_trace_stop.
8606 * target.h (struct target_ops) <to_trace_stop>: Use
8607 TARGET_DEFAULT_NORETURN.
8608
6fea14cd
TT
86092014-02-19 Tom Tromey <tromey@redhat.com>
8610
8611 * target-delegates.c: Rebuild.
8612 * target.c (update_current_target): Don't inherit or default
8613 to_get_tracepoint_status.
8614 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8615 TARGET_DEFAULT_NORETURN.
8616
4072d4ff
TT
86172014-02-19 Tom Tromey <tromey@redhat.com>
8618
8619 * target-delegates.c: Rebuild.
8620 * target.c (update_current_target): Don't inherit or default
8621 to_get_trace_status.
8622 * target.h (struct target_ops) <to_get_trace_status>: Use
8623 TARGET_DEFAULT_RETURN.
8624
25da2e80
TT
86252014-02-19 Tom Tromey <tromey@redhat.com>
8626
8627 * target-delegates.c: Rebuild.
8628 * target.c (update_current_target): Don't inherit or default
8629 to_trace_start.
8630 * target.h (struct target_ops) <to_trace_start>: Use
8631 TARGET_DEFAULT_NORETURN.
8632
86dd181d
TT
86332014-02-19 Tom Tromey <tromey@redhat.com>
8634
8635 * target-delegates.c: Rebuild.
8636 * target.c (update_current_target): Don't inherit or default
8637 to_trace_set_readonly_regions.
8638 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8639 Use TARGET_DEFAULT_NORETURN.
8640
05c41993
TT
86412014-02-19 Tom Tromey <tromey@redhat.com>
8642
8643 * target-delegates.c: Rebuild.
8644 * target.c (update_current_target): Don't inherit or default
8645 to_disable_tracepoint.
8646 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8647 TARGET_DEFAULT_NORETURN.
8648
151f70f1
TT
86492014-02-19 Tom Tromey <tromey@redhat.com>
8650
8651 * target-delegates.c: Rebuild.
8652 * target.c (update_current_target): Don't inherit or default
8653 to_enable_tracepoint.
8654 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8655 TARGET_DEFAULT_NORETURN.
8656
94eb98b9
TT
86572014-02-19 Tom Tromey <tromey@redhat.com>
8658
8659 * target-delegates.c: Rebuild.
8660 * target.c (update_current_target): Don't inherit or default
8661 to_download_trace_state_variable.
8662 * target.h (struct target_ops) <to_download_trace_state_variable>:
8663 Use TARGET_DEFAULT_NORETURN.
8664
719acc4a
TT
86652014-02-19 Tom Tromey <tromey@redhat.com>
8666
8667 * target-delegates.c: Rebuild.
8668 * target.c (update_current_target): Don't inherit or default
8669 to_can_download_tracepoint.
8670 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8671 TARGET_DEFAULT_RETURN.
8672
9a980a22
TT
86732014-02-19 Tom Tromey <tromey@redhat.com>
8674
8675 * target-delegates.c: Rebuild.
8676 * target.c (update_current_target): Don't inherit or default
8677 to_download_tracepoint.
8678 * target.h (struct target_ops) <to_download_tracepoint>: Use
8679 TARGET_DEFAULT_NORETURN.
8680
5536135b
TT
86812014-02-19 Tom Tromey <tromey@redhat.com>
8682
8683 * target-delegates.c: Rebuild.
8684 * target.c (update_current_target): Don't inherit or default
8685 to_trace_init.
8686 * target.h (struct target_ops) <to_trace_init>: Use
8687 TARGET_DEFAULT_RETURN.
8688
9409d39e
TT
86892014-02-19 Tom Tromey <tromey@redhat.com>
8690
8691 * target-delegates.c: Rebuild.
8692 * target.c (update_current_target): Don't inherit or default
8693 to_supports_string_tracing.
8694 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8695 TARGET_DEFAULT_RETURN.
8696
aab1b22d
TT
86972014-02-19 Tom Tromey <tromey@redhat.com>
8698
8699 * target-delegates.c: Rebuild.
8700 * target.c (update_current_target): Don't inherit or default
8701 to_supports_enable_disable_tracepoint.
8702 * target.h (struct target_ops)
8703 <to_supports_enable_disable_tracepoint>: Use
8704 TARGET_DEFAULT_RETURN.
8705
a7304748
TT
87062014-02-19 Tom Tromey <tromey@redhat.com>
8707
8708 * target-delegates.c: Rebuild.
8709 * target.c (update_current_target): Don't inherit or default
8710 to_supports_multi_process.
8711 * target.h (struct target_ops) <to_supports_multi_process>: Use
8712 TARGET_DEFAULT_RETURN.
8713
4229b31d
TT
87142014-02-19 Tom Tromey <tromey@redhat.com>
8715
8716 * target-delegates.c: Rebuild.
8717 * target.c (update_current_target): Don't inherit or default
8718 to_get_ada_task_ptid.
8719 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8720 TARGET_DEFAULT_FUNC.
8721
43eba180
TT
87222014-02-19 Tom Tromey <tromey@redhat.com>
8723
8724 * target-delegates.c: Rebuild.
8725 * target.c (update_current_target): Don't inherit or default
8726 to_thread_architecture.
8727 * target.h (struct target_ops) <to_thread_architecture>: Use
8728 TARGET_DEFAULT_FUNC.
8729
fe31bf5b
TT
87302014-02-19 Tom Tromey <tromey@redhat.com>
8731
8732 * target-delegates.c: Rebuild.
8733 * target.c (update_current_target): Don't inherit or default
8734 to_execution_direction.
8735 * target.h (struct target_ops) <to_execution_direction>: Use
8736 TARGET_DEFAULT_FUNC.
8737
53e1cfc7
TT
87382014-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_can_execute_reverse.
8743 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8744 TARGET_DEFAULT_RETURN.
8745 (target_can_execute_reverse): Unconditionally delegate.
8746
9bb9d61d
TT
87472014-02-19 Tom Tromey <tromey@redhat.com>
8748
8749 * target-delegates.c: Rebuild.
8750 * target.c (update_current_target): Don't inherit or default
8751 to_goto_bookmark.
8752 (dummy_goto_bookmark): Remove.
8753 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8754 * target.h (struct target_ops) <to_goto_bookmark>: Use
8755 TARGET_DEFAULT_NORETURN.
8756
3dbafbbb
TT
87572014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't inherit or default
8761 to_get_bookmark.
8762 (dummy_get_bookmark): Remove.
8763 (init_dummy_target): Don't inherit or default to_get_bookmark.
8764 * target.h (struct target_ops) <to_get_bookmark>: Use
8765 TARGET_DEFAULT_NORETURN
8766
16f796b1
TT
87672014-02-19 Tom Tromey <tromey@redhat.com>
8768
8769 * target-delegates.c: Rebuild.
8770 * target.c (update_current_target): Don't inherit or default
8771 to_make_corefile_notes.
8772 (init_dummy_target): Don't initialize to_make_corefile_notes.
8773 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8774 TARGET_DEFAULT_FUNC.
8775
0b5a2719
TT
87762014-02-19 Tom Tromey <tromey@redhat.com>
8777
8778 * target-delegates.c: Rebuild.
8779 * target.c (update_current_target): Don't inherit or default
8780 to_find_memory_regions.
8781 (init_dummy_target): Don't initialize to_find_memory_regions.
8782 * target.h (struct target_ops) <to_find_memory_regions>: Use
8783 TARGET_DEFAULT_FUNC.
8784
d9cb0195
TT
87852014-02-19 Tom Tromey <tromey@redhat.com>
8786
8787 * target-delegates.c: Rebuild.
8788 * target.c (update_current_target): Don't inherit or default
8789 to_log_command.
8790 * target.h (struct target_ops) <to_log_command>: Use
8791 TARGET_DEFAULT_IGNORE.
8792 (target_log_command): Unconditionally delegate.
8793
830ca330
TT
87942014-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_pid_to_exec_file.
8799 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8800 TARGET_DEFAULT_RETURN.
8801
825828fc
TT
88022014-02-19 Tom Tromey <tromey@redhat.com>
8803
8804 * target-delegates.c: Rebuild.
8805 * target.c (update_current_target): Don't inherit or default
8806 to_thread_name.
8807 (target_thread_name): Unconditionally delegate.
8808 * target.h (struct target_ops) <to_thread_name>: Use
8809 TARGET_DEFAULT_RETURN.
8810
4a7e6dda
TT
88112014-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_extra_thread_info.
8816 * target.h (struct target_ops) <to_extra_thread_info>: Use
8817 TARGET_DEFAULT_RETURN.
8818
0db88c1d
TT
88192014-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_has_exited.
8824 * target.h (struct target_ops) <to_has_exited>: Use
8825 TARGET_DEFAULT_RETURN..
8826
6a9fa051
TT
88272014-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_set_syscall_catchpoint.
8832 (return_one): Remove.
8833 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8834 TARGET_DEFAULT_RETURN.
8835
62f64d7a
TT
88362014-02-19 Tom Tromey <tromey@redhat.com>
8837
8838 * target-delegates.c: Rebuild.
8839 * target.c (update_current_target): Don't inherit or default
8840 to_insert_exec_catchpoint.
8841 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8842 TARGET_DEFAULT_RETURN.
8843
cda0f38c
TT
88442014-01-08 Tom Tromey <tromey@redhat.com>
8845
8846 * target-delegates.c: Rebuild.
8847 * target.c (update_current_target): Don't inherit or default
8848 to_insert_exec_catchpoint.
8849 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8850 TARGET_DEFAULT_RETURN.
8851
95c3375e
TT
88522014-02-19 Tom Tromey <tromey@redhat.com>
8853
8854 * target-delegates.c: Rebuild.
8855 * target.c (update_current_target): Don't inherit or default
8856 to_remove_vfork_catchpoint.
8857 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8858 TARGET_DEFAULT_RETURN.
8859
7e18a8dc
TT
88602014-02-19 Tom Tromey <tromey@redhat.com>
8861
8862 * target-delegates.c: Rebuild.
8863 * target.c (update_current_target): Don't inherit or default
8864 to_insert_vfork_catchpoint.
8865 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8866 TARGET_DEFAULT_RETURN.
8867
e1a21fb7
TT
88682014-02-19 Tom Tromey <tromey@redhat.com>
8869
8870 * target-delegates.c: Rebuild.
8871 * target.c (update_current_target): Don't inherit or default
8872 to_remove_fork_catchpoint.
8873 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8874 TARGET_DEFAULT_RETURN.
8875
5958ebeb
TT
88762014-02-19 Tom Tromey <tromey@redhat.com>
8877
8878 * target-delegates.c: Rebuild.
8879 * target.c (update_current_target): Don't inherit or default
8880 to_insert_fork_catchpoint.
8881 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8882 TARGET_DEFAULT_RETURN.
8883
340ba4bf
TT
88842014-02-19 Tom Tromey <tromey@redhat.com>
8885
8886 * target-delegates.c: Rebuild.
8887 * target.c (update_current_target): Don't inherit or default
8888 to_post_startup_inferior.
8889 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8890 TARGET_DEFAULT_IGNORE.
8891
7634da87
TT
88922014-02-19 Tom Tromey <tromey@redhat.com>
8893
8894 * target-delegates.c: Rebuild.
8895 * target.c (update_current_target): Don't inherit or default
8896 to_load.
8897 * target.h (struct target_ops) <to_load>: Use
8898 TARGET_DEFAULT_NORETURN.
8899
e19e919f
TT
89002014-02-19 Tom Tromey <tromey@redhat.com>
8901
8902 * target-delegates.c: Rebuild.
8903 * target.c (update_current_target): Don't inherit or default
8904 to_terminal_info.
8905 * target.h (struct target_ops) <to_terminal_info>: Use
8906 TARGET_DEFAULT_FUNC.
8907
c6ea8f79
TT
89082014-02-19 Tom Tromey <tromey@redhat.com>
8909
8910 * target-delegates.c: Rebuild.
8911 * target.c (update_current_target): Don't inherit or default
8912 to_terminal_save_ours.
8913 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8914 TARGET_DEFAULT_IGNORE.
8915
e4a733f1
TT
89162014-02-19 Tom Tromey <tromey@redhat.com>
8917
8918 * target-delegates.c: Rebuild.
8919 * target.c (update_current_target): Don't inherit or default
8920 to_terminal_ours.
8921 * target.h (struct target_ops) <to_terminal_ours>: Use
8922 TARGET_DEFAULT_IGNORE.
8923
74fcbef9
TT
89242014-02-19 Tom Tromey <tromey@redhat.com>
8925
8926 * target-delegates.c: Rebuild.
8927 * target.c (update_current_target): Don't inherit or default
8928 to_terminal_ours_for_output.
8929 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8930 TARGET_DEFAULT_IGNORE.
8931
ddeaacc9
TT
89322014-02-19 Tom Tromey <tromey@redhat.com>
8933
8934 * target-delegates.c: Rebuild.
8935 * target.c (update_current_target): Don't inherit or default
8936 to_terminal_inferior.
8937 * target.h (struct target_ops) <to_terminal_inferior>: Use
8938 TARGET_DEFAULT_IGNORE.
8939
0343661d
TT
89402014-02-19 Tom Tromey <tromey@redhat.com>
8941
8942 * target-delegates.c: Rebuild.
8943 * target.c (update_current_target): Don't inherit or default
8944 to_terminal_init.
8945 * target.h (struct target_ops) <to_terminal_init>: Use
8946 TARGET_DEFAULT_IGNORE.
8947
77cdffe9
TT
89482014-02-19 Tom Tromey <tromey@redhat.com>
8949
8950 * target-delegates.c: Rebuild.
8951 * target.c (update_current_target): Don't inherit or default
8952 to_can_accel_watchpoint_condition.
8953 * target.h (struct target_ops)
8954 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8955
d03655e4
TT
89562014-02-19 Tom Tromey <tromey@redhat.com>
8957
8958 * target-delegates.c: Rebuild.
8959 * target.c (update_current_target): Don't inherit or default
8960 to_region_ok_for_hw_watchpoint.
8961 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8962 Use TARGET_DEFAULT_FUNC.
8963
65f160a9
TT
89642014-02-19 Tom Tromey <tromey@redhat.com>
8965
8966 * target-delegates.c: Rebuild.
8967 * target.c (update_current_target): Don't inherit or default
8968 to_watchpoint_addr_within_range.
8969 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8970 Use TARGET_DEFAULT_FUNC.
8971
61dd109f
TT
89722014-02-19 Tom Tromey <tromey@redhat.com>
8973
8974 * target-delegates.c: Rebuild.
8975 * target.c (update_current_target): Don't inherit or default
8976 to_remove_watchpoint.
8977 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8978 TARGET_DEFAULT_NORETURN.
8979
016facd4
TT
89802014-02-19 Tom Tromey <tromey@redhat.com>
8981
8982 * target-delegates.c: Rebuild.
8983 * target.c (update_current_target): Don't inherit or default
8984 to_insert_watchpoint.
8985 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8986 TARGET_DEFAULT_RETURN.
8987
418dabac
TT
89882014-02-19 Tom Tromey <tromey@redhat.com>
8989
8990 * target-delegates.c: Rebuild.
8991 * target.c (update_current_target): Don't inherit or default
8992 to_remove_hw_breakpoint.
8993 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8994 TARGET_DEFAULT_RETURN.
8995
61b371f9
TT
89962014-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_insert_hw_breakpoint.
9001 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9002 TARGET_DEFAULT_RETURN.
9003
52b51d06
TT
90042014-02-19 Tom Tromey <tromey@redhat.com>
9005
9006 * target-delegates.c: Rebuild.
9007 * target.c (update_current_target): Don't inherit or default
9008 to_can_use_hw_breakpoint.
9009 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9010 TARGET_DEFAULT_RETURN.
9011
f86e59b2
TT
90122014-02-19 Tom Tromey <tromey@redhat.com>
9013
9014 * target-delegates.c: Rebuild.
9015 * target.c (update_current_target): Don't inherit or default
9016 to_files_info.
9017 * target.h (struct target_ops) <to_files_info>: Use
9018 TARGET_DEFAULT_IGNORE.
9019
6c628163
TT
90202014-02-19 Tom Tromey <tromey@redhat.com>
9021
9022 * target-delegates.c: Rebuild.
9023 * target.c (update_current_target): Don't inherit or default
9024 to_store.
9025 * target.h (struct target_ops) <to_store>: Use
9026 TARGET_DEFAULT_NORETURN.
9027
bebd3233
TT
90282014-02-19 Tom Tromey <tromey@redhat.com>
9029
9030 * target-delegates.c: Rebuild.
9031 * target.c (update_current_target): Don't inherit or default
9032 to_post_attach.
9033 * target.h (struct target_ops) <to_post_attach>: Use
9034 TARGET_DEFAULT_IGNORE.
9035
a53f3625
TT
90362014-02-19 Tom Tromey <tromey@redhat.com>
9037
9038 * target-delegates.c: Rebuild.
9039 * target.c (update_current_target): Don't inherit or default
9040 to_rcmd.
9041 (default_rcmd): New function.
9042 (do_monitor_command): Unconditionally delegate.
9043 * target.h (struct target_ops) <to_rmcd>: Use
9044 TARGET_DEFAULT_FUNC.
9045
e9a29200
TT
90462014-02-19 Tom Tromey <tromey@redhat.com>
9047
9048 * target-delegates.c: Rebuild.
9049 * target.c (init_dummy_target): Don't initialize to_attach.
9050 (target_attach): Unconditionally delegate.
9051 * target.h (struct target_ops) <to_attach>: Use
9052 TARGET_DEFAULT_FUNC.
9053
09da0d0a
TT
90542014-02-19 Tom Tromey <tromey@redhat.com>
9055
9056 * target-delegates.c: Rebuild.
9057 * target.c (target_detach): Unconditionally delegate.
9058 (init_dummy_target): Don't initialize to_detach.
9059 * target.h (struct target_ops) <to_detach>: Use
9060 TARGET_DEFAULT_IGNORE.
9061
5436ff03
TT
90622014-02-19 Tom Tromey <tromey@redhat.com>
9063
9064 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9065 Add argument.
9066 (target_augmented_libraries_svr4_read): Add argument.
9067 * target.c (update_current_target): Update.
9068 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9069 argument.
9070
f0d960ea
TT
90712014-02-19 Tom Tromey <tromey@redhat.com>
9072
9073 * target.h (struct target_ops) <to_call_history_range>: Add
9074 argument.
9075 * target.c (target_call_history_range): Add argument.
9076 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9077 argument.
9078 (record_btrace_call_history_from): Update.
9079
ec0aea04
TT
90802014-02-19 Tom Tromey <tromey@redhat.com>
9081
9082 * target.h (struct target_ops) <to_call_history_from>: Add
9083 argument.
9084 * target.c (target_call_history_from): Add argument.
9085 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9086 argument.
9087
5df2fcba
TT
90882014-02-19 Tom Tromey <tromey@redhat.com>
9089
9090 * target.h (struct target_ops) <to_call_history>: Add argument.
9091 * target.c (target_call_history): Add argument.
9092 * record-btrace.c (record_btrace_call_history): Add 'self'
9093 argument.
9094
4e99c6b7
TT
90952014-02-19 Tom Tromey <tromey@redhat.com>
9096
9097 * target.h (struct target_ops) <to_insn_history_range>: Add
9098 argument.
9099 * target.c (target_insn_history_range): Add argument.
9100 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9101 argument.
9102 (record_btrace_insn_history_from): Update.
9103
9abc3ff3
TT
91042014-02-19 Tom Tromey <tromey@redhat.com>
9105
9106 * target.h (struct target_ops) <to_insn_history_from>: Add
9107 argument.
9108 * target.c (target_insn_history_from): Add argument.
9109 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9110 argument.
9111
7a6c5609
TT
91122014-02-19 Tom Tromey <tromey@redhat.com>
9113
9114 * target.h (struct target_ops) <to_insn_history>: Add argument.
9115 * target.c (target_insn_history): Add argument.
9116 * record-btrace.c (record_btrace_insn_history): Add 'self'
9117 argument.
9118
606183ac
TT
91192014-02-19 Tom Tromey <tromey@redhat.com>
9120
9121 * target.h (struct target_ops) <to_goto_record>: Add argument.
9122 * target.c (target_goto_record): Add argument.
9123 * record-full.c (record_full_goto): Add 'self' argument.
9124 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9125
307a1b91
TT
91262014-02-19 Tom Tromey <tromey@redhat.com>
9127
9128 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9129 * target.c (target_goto_record_end): Add argument.
9130 * record-full.c (record_full_goto_end): Add 'self' argument.
9131 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9132
08475817
TT
91332014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target.h (struct target_ops) <to_goto_record_begin>: Add
9136 argument.
9137 * target.c (target_goto_record_begin): Add argument.
9138 * record-full.c (record_full_goto_begin): Add 'self' argument.
9139 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9140 argument.
9141
1c63c994
TT
91422014-02-19 Tom Tromey <tromey@redhat.com>
9143
9144 * target.h (struct target_ops) <to_record_is_replaying>: Add
9145 argument.
9146 * target.c (target_record_is_replaying): Add argument.
9147 * record-full.c (record_full_is_replaying): Add 'self' argument.
9148 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9149 argument.
9150 (record_btrace_xfer_partial, record_btrace_store_registers)
9151 (record_btrace_prepare_to_store, record_btrace_resume)
9152 (record_btrace_wait, record_btrace_decr_pc_after_break)
9153 (record_btrace_find_new_threads, record_btrace_thread_alive):
9154 Update.
9155
d1b55219
TT
91562014-02-19 Tom Tromey <tromey@redhat.com>
9157
9158 * target.h (struct target_ops) <to_delete_record>: Add argument.
9159 * target.c (target_delete_record): Add argument.
9160 * record-full.c (record_full_delete): Add 'self' argument.
9161
1390f529
TT
91622014-02-19 Tom Tromey <tromey@redhat.com>
9163
9164 * target.h (struct target_ops) <to_save_record>: Add argument.
9165 * target.c (target_save_record): Add argument.
9166 * record-full.c (record_full_save): Add 'self' argument.
9167 (record_full_save): Add 'self' argument.
9168
630d6a4a
TT
91692014-02-19 Tom Tromey <tromey@redhat.com>
9170
9171 * target.h (struct target_ops) <to_info_record>: Add argument.
9172 * target.c (target_info_record): Add argument.
9173 * record.c (info_record_command): Add argument.
9174 * record-full.c (record_full_info): Add 'self' argument.
9175 * record-btrace.c (record_btrace_info): Add 'self' argument.
9176
c6cd7c02
TT
91772014-02-19 Tom Tromey <tromey@redhat.com>
9178
9179 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9180 * target.c (target_stop_recording): Add argument.
9181 * record.c (record_stop): Add argument.
9182 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9183 argument.
9184
39c49f83
TT
91852014-02-19 Tom Tromey <tromey@redhat.com>
9186
9187 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9188 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9189 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9190 argument.
9191 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9192 (_initialize_amd64_linux_nat): Use it.
9193 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9194 (_initialize_i386_linux_nat): Use it.
9195
1777056d
TT
91962014-02-19 Tom Tromey <tromey@redhat.com>
9197
9198 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9199 * target.c (target_teardown_btrace): Add argument.
9200 * remote.c (remote_teardown_btrace): Add 'self' argument.
9201 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9202 argument.
9203 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9204 argument.
9205
25e95349
TT
92062014-02-19 Tom Tromey <tromey@redhat.com>
9207
9208 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9209 * target.c (target_disable_btrace): Add argument.
9210 * remote.c (remote_disable_btrace): Add 'self' argument.
9211 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9212 argument.
9213 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9214 argument.
9215
e3c49f88
TT
92162014-02-19 Tom Tromey <tromey@redhat.com>
9217
9218 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9219 * target.c (target_enable_btrace): Add argument.
9220 * remote.c (remote_enable_btrace): Add 'self' argument.
9221 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9222 argument.
9223 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9224 argument.
9225
fe38f897
TT
92262014-02-19 Tom Tromey <tromey@redhat.com>
9227
9228 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9229 (target_can_use_agent): Add argument.
9230 * target.c (update_current_target): Update.
9231 * remote.c (remote_can_use_agent): Add 'self' argument.
9232 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9233
2c152180
TT
92342014-02-19 Tom Tromey <tromey@redhat.com>
9235
9236 * target.h (struct target_ops) <to_use_agent>: Add argument.
9237 (target_use_agent): Add argument.
9238 * target.c (update_current_target): Update.
9239 * remote.c (remote_use_agent): Add 'self' argument.
9240 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9241
a893e81f
TT
92422014-02-19 Tom Tromey <tromey@redhat.com>
9243
9244 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9245 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9246 (target_traceframe_info): Add argument.
9247 * target.c (update_current_target): Update.
9248 * remote.c (remote_traceframe_info): Add 'self' argument.
9249 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9250
c686c57f
TT
92512014-02-19 Tom Tromey <tromey@redhat.com>
9252
9253 * target.h (target_static_tracepoint_markers_by_strid): Add
9254 argument.
9255 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9256 'self' argument.
9257 * target.c (update_current_target): Update.
9258 * remote.c (struct target_ops)
9259 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9260 * linux-nat.c (struct target_ops)
9261 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9262
61fc905d
TT
92632014-02-19 Tom Tromey <tromey@redhat.com>
9264
9265 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9266 Add argument.
9267 (target_static_tracepoint_marker_at): Add argument.
9268 * target.c (update_current_target): Update.
9269 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9270 argument.
9271
c378d69d
TT
92722014-02-19 Tom Tromey <tromey@redhat.com>
9273
9274 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9275 (target_set_permissions): Add argument.
9276 * target.c (update_current_target): Update.
9277 * remote.c (remote_set_permissions): Add 'self' argument.
9278 (remote_start_remote): Update.
9279
bd7ae0f5
TT
92802014-02-19 Tom Tromey <tromey@redhat.com>
9281
9282 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9283 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9284 (target_get_tib_address): Add argument.
9285 * target.c (update_current_target): Update.
9286 * remote.c (remote_get_tib_address): Add 'self' argument.
9287
d9e68a2c
TT
92882014-02-19 Tom Tromey <tromey@redhat.com>
9289
9290 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9291 (target_set_trace_notes): Add argument.
9292 * target.c (update_current_target): Update.
9293 * remote.c (remote_set_trace_notes): Add 'self' argument.
9294
4da384be
TT
92952014-02-19 Tom Tromey <tromey@redhat.com>
9296
9297 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9298 argument.
9299 (target_set_trace_buffer_size): Add argument.
9300 * target.c (update_current_target): Update.
9301 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9302
736d5b1f
TT
93032014-02-19 Tom Tromey <tromey@redhat.com>
9304
9305 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9306 argument.
9307 (target_set_circular_trace_buffer): Add argument.
9308 * target.c (update_current_target): Update.
9309 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9310 argument.
9311
37b25738
TT
93122014-02-19 Tom Tromey <tromey@redhat.com>
9313
9314 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9315 argument.
9316 (target_set_disconnected_tracing): Add argument.
9317 * target.c (update_current_target): Update.
9318 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9319
0e67620a
TT
93202014-02-19 Tom Tromey <tromey@redhat.com>
9321
9322 * target.h (struct target_ops)
9323 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9324 (target_get_min_fast_tracepoint_insn_len): Add argument.
9325 * target.c (update_current_target): Update.
9326 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9327 argument.
9328
88ee6f45
TT
93292014-02-19 Tom Tromey <tromey@redhat.com>
9330
9331 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9332 argument.
9333 (target_get_raw_trace_data): Add argument.
9334 * target.c (update_current_target): Update.
9335 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9336
181e3713
TT
93372014-02-19 Tom Tromey <tromey@redhat.com>
9338
9339 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9340 Add argument.
9341 (target_upload_trace_state_variables): Add argument.
9342 * target.c (update_current_target): Update.
9343 * remote.c (remote_upload_trace_state_variables): Add 'self'
9344 argument.
9345 (remote_start_remote): Update.
9346
ab6617cc
TT
93472014-02-19 Tom Tromey <tromey@redhat.com>
9348
9349 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9350 argument.
9351 (target_upload_tracepoints): Add argument.
9352 * target.c (update_current_target): Update.
9353 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9354 (remote_start_remote): Update.
9355
dc3decaf
TT
93562014-02-19 Tom Tromey <tromey@redhat.com>
9357
9358 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9359 (target_save_trace_data): Add argument.
9360 * target.c (update_current_target): Update.
9361 * remote.c (remote_save_trace_data): Add 'self' argument.
9362
4011015b
TT
93632014-02-19 Tom Tromey <tromey@redhat.com>
9364
9365 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9366 argument.
9367 * target.h (struct target_ops)
9368 <to_get_trace_state_variable_value>: Add argument.
9369 (target_get_trace_state_variable_value): Add argument.
9370 * target.c (update_current_target): Update.
9371 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9372 argument.
9373 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9374
bd4c6793
TT
93752014-02-19 Tom Tromey <tromey@redhat.com>
9376
9377 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9378 * target.h (struct target_ops) <to_trace_find>: Add argument.
9379 (target_trace_find): Add argument.
9380 * target.c (update_current_target): Update.
9381 * remote.c (remote_trace_find): Add 'self' argument.
9382 * ctf.c (ctf_trace_find): Add 'self' argument.
9383
74499f1b
TT
93842014-02-19 Tom Tromey <tromey@redhat.com>
9385
9386 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9387 (target_trace_stop): Add argument.
9388 * target.c (update_current_target): Update.
9389 * remote.c (remote_trace_stop): Add 'self' argument.
9390
db90e85c
TT
93912014-02-19 Tom Tromey <tromey@redhat.com>
9392
9393 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9394 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9395 argument.
9396 (target_get_tracepoint_status): Add argument.
9397 * target.c (update_current_target): Update.
9398 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9399
8bd200f1
TT
94002014-02-19 Tom Tromey <tromey@redhat.com>
9401
9402 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9403 * target.h (struct target_ops) <to_get_trace_status>: Add
9404 argument.
9405 (target_get_trace_status): Add argument.
9406 * target.c (update_current_target): Update.
9407 * remote.c (remote_get_trace_status): Add 'self' argument.
9408 (remote_start_remote, remote_can_download_tracepoint): Update.
9409 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9410
e2d1aae3
TT
94112014-02-19 Tom Tromey <tromey@redhat.com>
9412
9413 * target.h (struct target_ops) <to_trace_start>: Add argument.
9414 (target_trace_start): Add argument.
9415 * target.c (update_current_target): Update.
9416 * remote.c (remote_trace_start): Add 'self' argument.
9417
583f9a86
TT
94182014-02-19 Tom Tromey <tromey@redhat.com>
9419
9420 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9421 Add argument.
9422 (target_trace_set_readonly_regions): Add argument.
9423 * target.c (update_current_target): Update.
9424 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9425 argument.
9426
780b049c
TT
94272014-02-19 Tom Tromey <tromey@redhat.com>
9428
9429 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9430 argument.
9431 (target_disable_tracepoint): Add argument.
9432 * target.c (update_current_target): Update.
9433 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9434
46670d57
TT
94352014-02-19 Tom Tromey <tromey@redhat.com>
9436
9437 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9438 argument.
9439 (target_enable_tracepoint): Add argument.
9440 * target.c (update_current_target): Update.
9441 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9442
559d2b81
TT
94432014-02-19 Tom Tromey <tromey@redhat.com>
9444
9445 * target.h (struct target_ops) <to_download_trace_state_variable>:
9446 Add argument.
9447 (target_download_trace_state_variable): Add argument.
9448 * target.c (update_current_target): Update.
9449 * remote.c (remote_download_trace_state_variable): Add 'self'
9450 argument.
9451
a52a8357
TT
94522014-02-19 Tom Tromey <tromey@redhat.com>
9453
9454 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9455 argument.
9456 (target_can_download_tracepoint): Add argument.
9457 * target.c (update_current_target): Update.
9458 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9459
548f7808
TT
94602014-02-19 Tom Tromey <tromey@redhat.com>
9461
9462 * target.h (struct target_ops) <to_download_tracepoint>: Add
9463 argument.
9464 (target_download_tracepoint): Add argument.
9465 * target.c (update_current_target): Update.
9466 * remote.c (remote_download_tracepoint): Add 'self' argument.
9467
ecae04e1
TT
94682014-02-19 Tom Tromey <tromey@redhat.com>
9469
9470 * target.h (struct target_ops) <to_trace_init>: Add argument.
9471 (target_trace_init): Add argument.
9472 * target.c (update_current_target): Update.
9473 * remote.c (remote_trace_init): Add 'self' argument.
9474
fab5aa7c
TT
94752014-02-19 Tom Tromey <tromey@redhat.com>
9476
9477 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9478 * target.c (target_fileio_readlink): Add argument.
9479 * remote.c (remote_hostio_readlink): Add 'self' argument.
9480 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9481
dbbca37d
TT
94822014-02-19 Tom Tromey <tromey@redhat.com>
9483
9484 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9485 * target.c (target_fileio_unlink): Add argument.
9486 * remote.c (remote_hostio_unlink): Add 'self' argument.
9487 (remote_file_delete): Update.
9488 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9489
df39ea25
TT
94902014-02-19 Tom Tromey <tromey@redhat.com>
9491
9492 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9493 * target.c (target_fileio_close): Add argument.
9494 * remote.c (remote_hostio_close): Add 'self' argument.
9495 (remote_hostio_close_cleanup): Update.
9496 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9497 Update.
9498 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9499
a3be983c
TT
95002014-02-19 Tom Tromey <tromey@redhat.com>
9501
9502 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9503 * target.c (target_fileio_pread): Add argument.
9504 * remote.c (remote_hostio_pread): Add 'self' argument.
9505 (remote_bfd_iovec_pread, remote_file_get): Update.
9506 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9507
0d866f62
TT
95082014-02-19 Tom Tromey <tromey@redhat.com>
9509
9510 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9511 * target.c (target_fileio_pwrite): Add argument.
9512 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9513 (remote_file_put): Update.
9514 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9515
cd897586
TT
95162014-02-19 Tom Tromey <tromey@redhat.com>
9517
9518 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9519 * target.c (target_fileio_open): Add argument.
9520 * remote.c (remote_hostio_open): Add 'self' argument.
9521 (remote_bfd_iovec_open): Add 'self' argument.
9522 (remote_file_put): Add 'self' argument.
9523 (remote_file_get): Add 'self' argument.
9524 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9525
78eff0ec
TT
95262014-02-19 Tom Tromey <tromey@redhat.com>
9527
9528 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9529 Add argument.
9530 (target_can_run_breakpoint_commands): Add argument.
9531 * target.c (update_current_target): Update.
9532 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9533 argument.
9534 (remote_insert_breakpoint): Add 'self' argument.
9535 (remote_insert_hw_breakpoint): Add 'self' argument.
9536 (remote_can_run_breakpoint_commands): Add 'self' argument.
9537
efcc2da7
TT
95382014-02-19 Tom Tromey <tromey@redhat.com>
9539
9540 * target.h (struct target_ops)
9541 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9542 (target_supports_evaluation_of_breakpoint_conditions): Add
9543 argument.
9544 * target.c (update_current_target): Update.
9545 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9546 argument.
9547 (remote_insert_breakpoint): Add 'self' argument.
9548 (remote_insert_hw_breakpoint): Add 'self' argument.
9549 (remote_supports_cond_breakpoints): Add 'self' argument.
9550
6de37a3a
TT
95512014-02-19 Tom Tromey <tromey@redhat.com>
9552
9553 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9554 argument.
9555 (target_supports_string_tracing): Add argument.
9556 * target.c (update_current_target): Update.
9557 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9558
2bfc0540
TT
95592014-02-19 Tom Tromey <tromey@redhat.com>
9560
9561 * target.h (struct target_ops)
9562 <to_supports_disable_randomization>: Add argument.
9563 * target.c (find_default_supports_disable_randomization): Add
9564 argument.
9565 (target_supports_disable_randomization): Add argument.
9566 (find_default_supports_disable_randomization): Add 'self'
9567 argument.
9568 * remote.c (extended_remote_supports_disable_randomization): Add
9569 'self' argument.
9570 (remote_supports_disable_randomization): Add 'self' argument.
9571 (extended_remote_create_inferior): Update.
9572 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9573 'self' argument.
9574
7d178d6a
TT
95752014-02-19 Tom Tromey <tromey@redhat.com>
9576
9577 * target.h (struct target_ops)
9578 <to_supports_enable_disable_tracepoint>: Add argument.
9579 (target_supports_enable_disable_tracepoint): Add argument.
9580 * target.c (update_current_target): Update.
9581 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9582 argument.
9583
86ce2668
TT
95842014-02-19 Tom Tromey <tromey@redhat.com>
9585
9586 * target.h (struct target_ops) <to_supports_multi_process>: Add
9587 argument.
9588 (target_supports_multi_process): Add argument.
9589 * target.c (update_current_target): Update.
9590 * remote.c (remote_supports_multi_process): Add 'self' argument.
9591 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9592 argument.
9593 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9594 argument.
9595
4c612759
TT
95962014-02-19 Tom Tromey <tromey@redhat.com>
9597
9598 * target.h (struct target_ops) <to_execution_direction>: Add
9599 argument.
9600 (target_execution_direction): Add argument.
9601 * target.c (default_execution_direction): Add 'self' argument.
9602 * record-full.c (record_full_execution_direction): Add 'self'
9603 argument.
9604
19db3e69
TT
96052014-02-19 Tom Tromey <tromey@redhat.com>
9606
9607 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9608 argument.
9609 (target_can_execute_reverse): Add argument.
9610 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9611 * record-full.c (record_full_can_execute_reverse): Add 'self'
9612 argument.
9613 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9614 argument.
9615
1e6b91a4
TT
96162014-02-19 Tom Tromey <tromey@redhat.com>
9617
9618 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9619 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9620 argument.
9621 (target_get_ada_task_ptid): Add argument.
9622 * target.c (update_current_target): Update.
9623 (default_get_ada_task_ptid): Add 'self' argument.
9624 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9625 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9626 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9627 argument.
9628 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9629 argument.
9630 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9631 argument.
9632 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9633 argument.
9634 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9635 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9636 argument.
9637
3c80fb48
TT
96382014-02-19 Tom Tromey <tromey@redhat.com>
9639
9640 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9641 (target_goto_bookmark): Add argument.
9642 * target.c (dummy_goto_bookmark): Add 'self' argument.
9643 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9644
dd0e2830
TT
96452014-02-19 Tom Tromey <tromey@redhat.com>
9646
9647 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9648 (target_get_bookmark): Add argument.
9649 * target.c (dummy_get_bookmark): Add 'self' argument.
9650 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9651
fc6691b2
TT
96522014-02-19 Tom Tromey <tromey@redhat.com>
9653
9654 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9655 argument.
9656 (target_make_corefile_notes): Add argument.
9657 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9658 * procfs.c (procfs_make_note_section): Add 'self' argument.
9659 (procfs_make_note_section): Add 'self' argument.
9660 (procfs_make_note_section): Add 'self' argument.
9661 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9662 argument.
9663 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9664 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9665 * exec.c (exec_make_note_section): Add 'self' argument.
9666 (exec_make_note_section): Add 'self' argument.
9667
2e73927c
TT
96682014-02-19 Tom Tromey <tromey@redhat.com>
9669
9670 * target.h (struct target_ops) <to_find_memory_regions>: Add
9671 argument.
9672 (target_find_memory_regions): Add argument.
9673 * target.c (dummy_find_memory_regions): Add 'self' argument.
9674 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9675 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9676 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9677 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9678 * exec. (exec_do_find_memory_regions): New global.
9679 (exec_set_find_memory_regions): Rewrite.
9680 (exec_find_memory_regions): New function.
9681 (init_exec_ops): Use exec_find_memory_regions.
9682
2a9a2795
TT
96832014-02-19 Tom Tromey <tromey@redhat.com>
9684
9685 * target.h (struct target_ops) <to_supports_non_stop>: Add
9686 argument.
9687 * target.c (find_default_supports_non_stop): Add argument.
9688 (target_supports_non_stop): Add argument.
9689 (find_default_supports_non_stop): Add 'self' argument.
9690 * remote.c (remote_supports_non_stop): Add 'self' argument.
9691 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9692
4ab76ea3
TT
96932014-02-19 Tom Tromey <tromey@redhat.com>
9694
9695 * target.h (struct target_ops) <to_log_command>: Add argument.
9696 (target_log_command): Add argument.
9697 * serial.h (serial_log_command): Add 'self' argument.
9698 * serial.c (serial_log_command): Add 'self' argument.
9699
8dd27370
TT
97002014-02-19 Tom Tromey <tromey@redhat.com>
9701
9702 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9703 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9704 argument.
9705 (target_pid_to_exec_file): Add argument.
9706 * target.c (debug_to_pid_to_exec_file): Add argument.
9707 (update_current_target): Update.
9708 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9709 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9710 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9711 (linux_handle_extended_wait): Update.
9712 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9713 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9714 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9715 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9716
1aac633b
TT
97172014-02-19 Tom Tromey <tromey@redhat.com>
9718
9719 * target.h (struct target_ops) <to_rcmd>: Add argument.
9720 (target_rcmd): Add argument.
9721 * target.c (debug_to_rcmd): Add argument.
9722 (update_current_target, do_monitor_command): Update.
9723 * remote.c (remote_rcmd): Add 'self' argument.
9724 * monitor.c (monitor_rcmd): Add 'self' argument.
9725
1eab8a48
TT
97262014-02-19 Tom Tromey <tromey@redhat.com>
9727
9728 * windows-nat.c (windows_stop): Add 'self' argument.
9729 * target.h (struct target_ops) <to_stop>: Add argument.
9730 * target.c (target_stop): Add argument.
9731 (debug_to_stop): Add argument.
9732 (update_current_target): Update.
9733 * remote.c (remote_stop): Add 'self' argument.
9734 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9735 (gdbsim_cntrl_c): Update.
9736 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9737 * procfs.c (procfs_stop): Add 'self' argument.
9738 * nto-procfs.c (procfs_stop): Add 'self' argument.
9739 * monitor.c (monitor_stop): Add 'self' argument.
9740 (monitor_open): Update.
9741 * linux-nat.c (linux_nat_stop): Add argument.
9742 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9743 * gnu-nat.c (gnu_stop): Add 'self' argument.
9744 * darwin-nat.c (darwin_stop): Add 'self' argument.
9745
503a628d
TT
97462014-02-19 Tom Tromey <tromey@redhat.com>
9747
9748 * target.h (struct target_ops) <to_thread_name>: Add argument.
9749 * target.c (target_thread_name): Add argument.
9750 (update_current_target): Update.
9751 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9752
c15906d8
TT
97532014-02-19 Tom Tromey <tromey@redhat.com>
9754
9755 * target.h (struct target_ops) <to_extra_thread_info>: Add
9756 argument.
9757 (target_extra_thread_info): Add argument.
9758 * target.c (update_current_target): Update.
9759 * remote.c (remote_threads_extra_info): Add 'self' argument.
9760 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9761 argument.
9762 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9763 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9764 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9765 argument.
9766 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9767 argument.
9768 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9769 argument.
9770 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9771 argument.
9772
daf5e9b6
TT
97732014-02-19 Tom Tromey <tromey@redhat.com>
9774
9775 * target.h (struct target_ops) <to_program_signals>: Add argument.
9776 * target.c (target_program_signals): Add argument.
9777 * remote.c (remote_program_signals): Add 'self' argument.
9778
94bedb42
TT
97792014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9782 * target.c (target_pass_signals): Add argument.
9783 * remote.c (remote_pass_signals): Add 'self' argument.
9784 (remote_start_remote): Update.
9785 * procfs.c (procfs_pass_signals): Add 'self' argument.
9786 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9787 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9788 (linux_nat_create_inferior, linux_nat_attach): Update.
9789
da82bd6b
TT
97902014-02-19 Tom Tromey <tromey@redhat.com>
9791
9792 * windows-nat.c (windows_can_run): Add 'self' argument.
9793 * target.h (struct target_ops) <to_can_run>: Add argument.
9794 (target_can_run): Add argument.
9795 * target.c (debug_to_can_run): Add argument.
9796 (update_current_target): Update.
9797 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9798 * inf-child.c (inf_child_can_run): Add 'self' argument.
9799 * go32-nat.c (go32_can_run): Add 'self' argument.
9800
d796e1d6
TT
98012014-02-19 Tom Tromey <tromey@redhat.com>
9802
9803 * target.h (struct target_ops) <to_has_exited>: Add argument.
9804 (target_has_exited): Add argument.
9805 * target.c (debug_to_has_exited): Add argument.
9806 (update_current_target): Update.
9807
ff214e67
TT
98082014-02-19 Tom Tromey <tromey@redhat.com>
9809
9810 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9811 argument.
9812 (target_set_syscall_catchpoint): Add argument.
9813 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9814 argument.
9815 * target.c (update_current_target): Update.
9816
758e29d2
TT
98172014-02-19 Tom Tromey <tromey@redhat.com>
9818
9819 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9820 argument.
9821 (target_remove_exec_catchpoint): Add argument.
9822 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9823 (update_current_target): Update.
9824 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9825 argument.
9826
ba025e51
TT
98272014-02-19 Tom Tromey <tromey@redhat.com>
9828
9829 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9830 argument.
9831 (target_insert_exec_catchpoint): Add argument.
9832 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9833 (update_current_target): Update.
9834 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9835 argument.
9836
e98cf0cd
TT
98372014-02-19 Tom Tromey <tromey@redhat.com>
9838
9839 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9840 argument.
9841 (target_remove_vfork_catchpoint): Add argument.
9842 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9843 (update_current_target): Update.
9844 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9845 argument.
9846
3ecc7da0
TT
98472014-02-19 Tom Tromey <tromey@redhat.com>
9848
9849 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9850 argument.
9851 (target_insert_vfork_catchpoint): Add argument.
9852 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9853 (update_current_target): Update.
9854 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9855 argument.
9856
973fc227
TT
98572014-02-19 Tom Tromey <tromey@redhat.com>
9858
9859 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9860 argument.
9861 (target_remove_fork_catchpoint): Add argument.
9862 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9863 (update_current_target): Update.
9864 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9865 argument.
9866
a863b201
TT
98672014-02-19 Tom Tromey <tromey@redhat.com>
9868
9869 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9870 argument.
9871 (target_insert_fork_catchpoint): Add argument.
9872 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9873 (update_current_target): Update.
9874 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9875 argument.
9876
2e97a79e
TT
98772014-02-19 Tom Tromey <tromey@redhat.com>
9878
9879 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9880 argument.
9881 (target_post_startup_inferior): Add argument.
9882 * target.c (debug_to_post_startup_inferior): Add argument.
9883 (update_current_target): Update.
9884 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9885 argument.
9886 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9887 argument.
9888 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9889 argument.
9890 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9891 argument.
9892 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9893 'self' argument.
9894 (super_post_startup_inferior): Likewise.
9895 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9896 'self' argument.
9897 (super_post_startup_inferior): Likewise.
9898 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9899 Add 'self' argument.
9900 (super_post_startup_inferior): Likewise.
9901
71a9f134
TT
99022014-02-19 Tom Tromey <tromey@redhat.com>
9903
9904 * target.h (struct target_ops) <to_load>: Add argument.
9905 * target.c (target_load): Add argument.
9906 (debug_to_load): Add argument.
9907 (update_current_target): Update.
9908 * remote.c (remote_load): Add 'self' argument.
9909 * remote-sim.c (gdbsim_load): Add 'self' argument.
9910 * remote-mips.c (mips_load): Add 'self' argument.
9911 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9912 * monitor.c (monitor_load): Add 'self' argument.
9913 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9914
0a4f40a2
TT
99152014-02-19 Tom Tromey <tromey@redhat.com>
9916
9917 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9918 (target_terminal_info): Add argument.
9919 * target.c (debug_to_terminal_info): Add argument.
9920 (default_terminal_info): Likewise.
9921 * inflow.c (child_terminal_info): Add 'self' argument.
9922 * inferior.h (child_terminal_info): Add 'self' argument.
9923 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9924
ae3bd431
TT
99252014-02-19 Tom Tromey <tromey@redhat.com>
9926
9927 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9928 argument.
9929 (target_terminal_save_ours): Add argument.
9930 * target.c (debug_to_terminal_save_ours): Add argument.
9931 (update_current_target): Update.
9932 * inflow.c (terminal_save_ours): Add 'self' argument.
9933 * inferior.h (terminal_save_ours): Add 'self' argument.
9934
e3594fd1
TT
99352014-02-19 Tom Tromey <tromey@redhat.com>
9936
9937 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9938 (target_terminal_ours): Add argument.
9939 * target.c (debug_to_terminal_ours): Add argument.
9940 (update_current_target): Update.
9941 * remote.c (remote_terminal_ours): Add 'self' argument.
9942 (remote_close): Update.
9943 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9944 * inflow.c (terminal_ours): Add 'self' argument.
9945 * inferior.h (terminal_ours): Add 'self' argument.
9946 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9947
2e1e1a19
TT
99482014-02-19 Pedro Alves <palves@redhat.com>
9949 Tom Tromey <tromey@redhat.com>
9950
9951 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9952 argument.
9953 (target_terminal_ours_for_output): Add argument.
9954 * target.c (debug_to_terminal_ours_for_output): Add argument.
9955 (update_current_target): Update.
9956 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9957 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9958 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9959
d2f640d4
TT
99602014-02-19 Tom Tromey <tromey@redhat.com>
9961
9962 * target.h (struct target_ops) <to_terminal_inferior>: Add
9963 argument.
9964 * target.c (target_terminal_inferior): Add argument.
9965 (update_current_target): Update.
9966 * remote.c (remote_terminal_inferior): Add 'self' argument.
9967 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9968 * inflow.c (terminal_inferior): Add 'self' argument.
9969 * inferior.h (terminal_inferior): Add 'self' argument.
9970 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9971 (go32_terminal_inferior): Add 'self' argument.
9972
c42bf286
TT
99732014-02-19 Tom Tromey <tromey@redhat.com>
9974
9975 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9976 (target_terminal_init): Add argument.
9977 * target.c (debug_to_terminal_init): Add argument.
9978 (update_current_target): Update.
9979 * inflow.c (terminal_init_inferior): Add 'self' argument.
9980 * inferior.h (terminal_init_inferior): Add 'self' argument.
9981 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9982 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9983
c3a5ff89
TT
99842014-02-19 Tom Tromey <tromey@redhat.com>
9985
9986 * target.h (struct target_ops)
9987 <to_can_accel_watchpoint_condition>: Add argument.
9988 (target_can_accel_watchpoint_condition): Add argument.
9989 * target.c (debug_to_can_accel_watchpoint_condition): Add
9990 argument.
9991 (update_current_target): Update.
9992 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9993 'self' argument.
9994
31568a15
TT
99952014-02-19 Tom Tromey <tromey@redhat.com>
9996
9997 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9998 Add argument.
9999 (target_region_ok_for_hw_watchpoint): Add argument.
10000 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10001 (default_region_ok_for_hw_watchpoint): Add argument.
10002 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10003 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10004 argument.
10005 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10006 argument.
10007 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10008 argument.
10009 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10010 'self' argument.
10011 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10012 'self' argument.
10013 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10014 'self' argument.
10015 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10016 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10017 'self' argument.
10018 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10019 Add 'self' argument.
10020
7bb99c53
TT
100212014-02-19 Tom Tromey <tromey@redhat.com>
10022
10023 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10024 argument.
10025 (target_insert_watchpoint): Add argument.
10026 * target.c (debug_to_insert_watchpoint): Add argument.
10027 (update_current_target): Update.
10028 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10029 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10030 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10031 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10032 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10033 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10034 argument.
10035 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10036 (procfs_insert_hw_watchpoint): Add 'self' argument.
10037 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10038 argument.
10039 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10040 argument.
10041 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10042 argument.
10043 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10044 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10045 argument.
10046 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10047 'self' argument.
10048
11b5219a
TT
100492014-02-19 Tom Tromey <tromey@redhat.com>
10050
10051 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10052 argument.
10053 (target_remove_watchpoint): Add argument.
10054 * target.c (debug_to_remove_watchpoint): Add argument.
10055 (update_current_target): Update.
10056 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10057 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10058 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10059 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10060 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10061 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10062 argument.
10063 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10064 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10065 argument.
10066 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10067 argument.
10068 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10069 argument.
10070 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10071 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10072 argument.
10073 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10074 'self' argument.
10075
a64dc96c
TT
100762014-02-19 Tom Tromey <tromey@redhat.com>
10077
10078 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10079 argument.
10080 (target_remove_hw_breakpoint): Add argument.
10081 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10082 (update_current_target): Update.
10083 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10084 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10085 argument.
10086 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10087 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10088 argument.
10089 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10090 'self' argument.
10091
23a26771
TT
100922014-02-19 Tom Tromey <tromey@redhat.com>
10093
10094 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10095 argument.
10096 (target_insert_hw_breakpoint): Add argument.
10097 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10098 (update_current_target): Update.
10099 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10100 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10101 argument.
10102 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10103 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10104 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10105 argument.
10106 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10107 'self' argument.
10108
5461485a
TT
101092014-02-19 Tom Tromey <tromey@redhat.com>
10110
10111 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10112 argument.
10113 (target_can_use_hardware_watchpoint): Add argument.
10114 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10115 (update_current_target): Update.
10116 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10117 argument.
10118 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10119 argument.
10120 * remote.c (remote_check_watch_resources): Add 'self' argument.
10121 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10122 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10123 argument.
10124 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10125 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10126 argument.
10127 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10128 argument.
10129 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10130 argument.
10131 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10132 argument.
10133 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10134 argument.
10135 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10136 argument.
10137 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10138 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10139 argument.
10140 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10141 'self' argument.
10142
f045800c
TT
101432014-02-19 Tom Tromey <tromey@redhat.com>
10144
10145 * target.h (struct target_ops) <to_post_attach>: Add argument.
10146 (target_post_attach): Add argument.
10147 * target.c (debug_to_post_attach): Add argument.
10148 (update_current_target): Update.
10149 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10150 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10151 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10152 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10153 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10154
de90e03d
TT
101552014-02-19 Tom Tromey <tromey@redhat.com>
10156
10157 * windows-nat.c (windows_close): Add 'self' argument.
10158 * tracepoint.c (tfile_close): Add 'self' argument.
10159 * target.h (struct target_ops) <to_close>: Add argument.
10160 * target.c (target_close): Add argument.
10161 (update_current_target): Update.
10162 * remote.c (remote_close): Add 'self' argument.
10163 * remote-sim.c (gdbsim_close): Add 'self' argument.
10164 * remote-mips.c (mips_close): Add 'self' argument.
10165 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10166 * record-full.c (record_full_close): Add 'self' argument.
10167 * record-btrace.c (record_btrace_close): Add 'self' argument.
10168 * monitor.h (monitor_close): Add 'self' argument.
10169 * monitor.c (monitor_close): Add 'self' argument.
10170 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10171 * linux-nat.c (linux_nat_close): Add argument.
10172 * go32-nat.c (go32_close): Add 'self' argument.
10173 * exec.c (exec_close_1): Add 'self' argument.
10174 * ctf.c (ctf_close): Add 'self' argument.
10175 * corelow.c (core_close): Add 'self' argument.
10176 (core_close_cleanup): Update.
10177 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10178 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10179
9dd130a0
TT
101802014-02-19 Tom Tromey <tromey@redhat.com>
10181
10182 * remote.c (remote_load): New function.
10183 (init_remote_ops): Use it.
10184
46917d26
TT
101852014-02-19 Tom Tromey <tromey@redhat.com>
10186
10187 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10188 argument.
10189 * common/linux-btrace.h (linux_supports_btrace): Update.
10190 * remote.c (remote_supports_btrace): Add "self" argument.
10191 * target-delegates.c: Rebuild.
10192 * target.c (target_supports_btrace): Remove.
10193 * target.h (struct target_ops) <to_supports_btrace>: Add
10194 target_ops argument.
10195 (target_supports_btrace): New define.
10196
6b84065d
TT
101972014-02-19 Tom Tromey <tromey@redhat.com>
10198
10199 * record-full.c (record_full_beneath_to_resume_ops)
10200 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10201 (record_full_beneath_to_wait)
10202 (record_full_beneath_to_store_registers_ops)
10203 (record_full_beneath_to_store_registers)
10204 (record_full_beneath_to_xfer_partial_ops)
10205 (record_full_beneath_to_xfer_partial)
10206 (record_full_beneath_to_insert_breakpoint_ops)
10207 (record_full_beneath_to_insert_breakpoint)
10208 (record_full_beneath_to_remove_breakpoint_ops)
10209 (record_full_beneath_to_remove_breakpoint)
10210 (record_full_beneath_to_stopped_by_watchpoint)
10211 (record_full_beneath_to_stopped_data_address)
10212 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10213 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10214 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10215 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10216 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10217 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10218 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10219 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10220 (record_full_resume, record_full_wait_1)
10221 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10222 (record_full_store_registers, record_full_xfer_partial)
10223 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10224 (record_full_async, record_full_core_xfer_partial): Use target
10225 delegation.
10226 * target-delegates.c: Rebuild.
10227 * target.c (current_xfer_partial): Remove.
10228 (update_current_target): Do not INHERIT or de_fault
10229 to_insert_breakpoint, to_remove_breakpoint,
10230 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10231 to_is_async_p, to_async. Do not set to_xfer_partial field.
10232 (default_xfer_partial): Simplify.
10233 (current_xfer_partial): Remove.
10234 (target_wait, target_resume): Simplify.
10235 (find_default_can_async_p, find_default_is_async_p): Update.
10236 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10237 to_xfer_partial, to_stopped_by_watchpoint,
10238 to_stopped_data_address.
10239 (target_store_registers): Simplify.
10240 (forward_target_remove_breakpoint)
10241 (forward_target_insert_breakpoint): Remove.
10242 (target_remove_breakpoint, target_insert_breakpoint)
10243 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10244 * target.h (struct target_ops) <to_resume, to_wait,
10245 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10246 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10247 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10248 markup.
10249 (forward_target_remove_breakpoint)
10250 (forward_target_insert_breakpoint): Remove.
10251 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10252 directly.
10253 (record_btrace_insert_breakpoint): Delegate directly.
10254
1101cb7b
TT
102552014-02-19 Tom Tromey <tromey@redhat.com>
10256
10257 PR build/7701:
10258 * target-delegates.c: New file.
10259 * target.c: Include target-delegates.c.
10260 (init_dummy_target): Call install_dummy_methods.
10261 (complete_target_initialization): Call install_delegators.
10262 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10263 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10264 * make-target-delegates: New file.
10265
8b06beed
TT
102662014-02-19 Tom Tromey <tromey@redhat.com>
10267
10268 * record.c (find_record_target): Use find_target_at.
10269 * target.c (find_target_at): New function.
10270 * target.h (find_target_at): Declare.
10271
6a109b6b
TT
102722014-02-19 Tom Tromey <tromey@redhat.com>
10273
10274 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10275 Add 'ops' argument.
10276 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10277 'ops' argument.
10278 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10279 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10280 'ops' argument.
10281 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10282 argument.
10283 * linux-nat.c (save_sigtrap): Update.
10284 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10285 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10286 (linux_nat_close): Update.
10287 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10288 argument.
10289 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10290 argument.
10291 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10292 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10293 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10294 (tmp_to_async): Add 'ops' argument.
10295 (record_full_stopped_by_watchpoint, record_full_async)
10296 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10297 argument.
10298 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10299 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10300 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10301 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10302 (remote_is_async_p, remote_async): Add 'ops' argument.
10303 (remote_stopped_data_address): Update.
10304 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10305 * target.c (update_current_target)
10306 (find_default_can_async_p, find_default_is_async_p): Update.
10307 (init_dummy_target): Update.
10308 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10309 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10310 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10311 (target_can_async_p, target_is_async_p, target_async)
10312 (target_stopped_by_watchpoint): Update.
10313
e095146b
YQ
103142014-02-19 Yao Qi <yao@codesourcery.com>
10315
10316 PR gdb/16220
10317 * gdbarch.sh: Remove startup_gdbarch.
10318 * gdbarch.c: Regenerated.
10319 * gdbarch.h: Likewise.
10320
bc3c6b36
KB
103212014-02-17 Kevin Buettner <kevinb@redhat.com>
10322
10323 * rl78-tdep.c (rl78_g10_register_name): New function.
10324 (rl78_return_value): Add g10 support.
10325 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10326 g10.
10327
98dc0167 103282014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10329
10330 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10331 (SUBDIR_GUILE_SRCS): Ditto.
10332 (scm-gsmob.o): Ditto.
10333
842c05cd
YQ
103342014-02-17 Yao Qi <yao@codesourcery.com>
10335
10336 * gnu-nat.c (ILL_RPC): Declare defined function.
10337
25c0bd04
YQ
103382014-02-17 Yao Qi <yao@codesourcery.com>
10339
10340 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10341 mach_msg_type_number_t.
10342 (gnu_write_inferior): Likewise.
10343
a9a758e3
YQ
103442014-02-17 Yao Qi <yao@codesourcery.com>
10345
10346 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10347 in format string.
10348 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10349 (inf_validate_procs, inf_signal): Likewise.
10350 (S_exception_raise_request): Likewise.
10351 (do_mach_notify_dead_name): Likewise.
10352 (steal_exc_port): Likewise.
10353 (gnu_read_inferior): Change 'copy_count''s type to
10354 mach_msg_type_number_t.
10355 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10356 format string.
10357
bae8023e
TS
103582014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10359
c82f56d9
TS
10360 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10361 flag. Adjust all users; in particular...
10362 (gnu_wait): ..., don't decrement its value in here...
10363 (gnu_create_inferior): ..., and instead set the flag in here,
10364 around the startup_inferior call, and call that one with
10365 START_INFERIOR_TRAPS_EXPECTED.
10366
3398af6a
TS
10367 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10368 (ILL_RPC): ... new macro.
10369 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10370 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10371 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10372 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10373 functions with ILL_RPC macro.
10374 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10375 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10376 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10377 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10378 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10379 (S_proc_getlogin_reply, S_proc_getsid_reply)
10380 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10381 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10382 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10383 (S_proc_getnports_reply, S_proc_is_important_reply)
10384 (S_proc_get_code_reply): New stub functions, generated with
10385 ILL_RPC macro.
10386
d47642c9
TS
10387 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10388 collected the type check structures.
10389
bae8023e
TS
10390 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10391
8a55ffb0
DE
103922014-02-14 Doug Evans <dje@google.com>
10393
10394 * target.c (target_write_partial): Fix result type.
10395
c2853f3d
JM
103962014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10397
10398 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10399 the proper offsets to access fpregset_t.
10400
ac61d2db
SA
104012014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10402
10403 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10404 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10405 * h8300-tdep.c (setmachinelist): Remove global.
10406 * hppa-tdep.c (hppa_sigtramp): Remove global.
10407 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10408 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10409 * ravenscar-thread.c (update_target_observer): Remove global.
10410 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10411
9d2d0b8b
TT
104122014-02-12 Tom Tromey <tromey@redhat.com>
10413
10414 * common/rsp-low.c: Update comments.
10415 * common/rsp-low.h: Update comments.
10416
a7191e8b
TT
104172014-02-12 Tom Tromey <tromey@redhat.com>
10418
10419 * common/rsp-low.c (convert_ascii_to_int): Remove.
10420 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10421
ff0e980e
TT
104222014-02-12 Tom Tromey <tromey@redhat.com>
10423
10424 * common/rsp-low.h (unhexify): Don't declare.
10425 * common/rsp-low.c (unhexify): Remove.
10426
e9371aff
TT
104272014-02-12 Tom Tromey <tromey@redhat.com>
10428
10429 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10430 * common/rsp-low.c (convert_int_to_ascii): Remove.
10431
971dc0b8
TT
104322014-02-12 Tom Tromey <tromey@redhat.com>
10433
10434 * common/rsp-low.h (hexify): Don't declare.
10435 * common/rsp-low.c (hexify): Remove.
10436
0a822afb
TT
104372014-02-12 Tom Tromey <tromey@redhat.com>
10438
10439 * common/rsp-low.c (hexify): Never take strlen of argument.
10440
9f1b45b0
TT
104412014-02-12 Tom Tromey <tromey@redhat.com>
10442
10443 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10444 * remote.c (extended_remote_run, remote_rcmd)
10445 (remote_download_trace_state_variable, remote_save_trace_data)
10446 (remote_set_trace_notes): Update.
10447 * tracepoint.c (encode_source_string, tfile_write_status)
10448 (tfile_write_uploaded_tsv): Update.
10449
9c3d6531
TT
104502014-02-12 Tom Tromey <tromey@redhat.com>
10451
10452 * tracepoint.c: Include rsp-low.h.
10453 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10454 * remote.c: Include rsp-low.h.
10455 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10456 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10457 (remote_unescape_input): Move to common/rsp-low.c.
10458 * common/rsp-low.h: New file.
10459 * common/rsp-low.c: New file.
10460 * Makefile.in (SFILES): Add common/rsp-low.c.
10461 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10462 (COMMON_OBS): Add rsp-low.o.
10463 (rsp-low.o): New target.
10464
01fd3ea5
TT
104652014-02-12 Tom Tromey <tromey@redhat.com>
10466
10467 * utils.h: Include print-utils.h.
10468 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10469 (int_string, core_addr_to_string, core_addr_to_string_nz)
10470 (hex_string, hex_string_custom): Don't declare.
10471 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10472 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10473 (hex_string_custom, int_string, core_addr_to_string)
10474 (core_addr_to_string_nz, host_address_to_string): Move to
10475 common/print-utils.c.
10476 * common/print-utils.h: New file.
10477 * common/print-utils.c: New file
10478 * Makefile.in (SFILES): Add common/print-utils.c.
10479 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10480 (COMMON_OBS): Add print-utils.o.
10481 (print-utils.o): New target.
10482
9fb50108
TT
104832014-02-12 Tom Tromey <tromey@redhat.com>
10484
10485 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10486
0548b5db
MK
104872014-02-12 Mark Kettenis <kettenis@gnu.org>
10488
10489 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10490
493443a4
MK
104912014-02-12 Mark Kettenis <kettenis@gnu.org>
10492
10493 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10494 if a PT_IO ptrace request returns sucessfully but indicates that 0
10495 bytes were transferred.
10496
706d0883
PA
104972014-02-12 Pedro Alves <palves@redhat.com>
10498 Kevin Buettner <kevinb@redhat.com>
10499
10500 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10501 TYPE_INSTANCE_FLAG_CODE_SPACE.
10502
5caa2f0b
PA
105032014-02-12 Pedro Alves <palves@redhat.com>
10504
10505 * h8300-tdep.c (pseudo_from_raw_register)
10506 (raw_from_pseudo_register): New functions.
10507 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10508 them.
10509
76fd5f74
PA
105102014-02-12 Pedro Alves <palves@redhat.com>
10511
10512 * h8300-tdep.c (h8300_register_sim_regno): New function.
10513 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10514 gdbarch_register_sim_regno hook.
10515
8f008406
SA
105162014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10517
10518 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10519
195abc10
SA
105202014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10521
10522 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10523
93ffa5b9
MK
105242014-02-12 Mark Kettenis <kettenis@gnu.org>
10525
10526 * obsd-tdep.h (obsd_init_abi): New prototype.
10527 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10528 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10529 (obsd_init_abi): New functions.
10530 * i386obsd-tdep.c: Include "obsd-tdep.h".
10531 (i386obsd_init_abi): Call obsd_init_abi.
10532 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10533 (amd64obsd_init_abi): Call obsd_init_abi.
10534 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10535 obsd-tdep.c to gdb_target_obs.
10536
49caec94
JM
105372014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10538
10539 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10540 double float arguments to 16-byte in the argument slots.
10541
e1402065
DE
105422014-02-11 Doug Evans <xdje42@gmail.com>
10543
10544 * configure.ac: Don't crash if pkg-config is not found and guile
10545 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10546 in guile checks.
10547 * configure: Regenerate.
10548
edcc890f
YQ
105492014-02-11 Yao Qi <yao@codesourcery.com>
10550
10551 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10552 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10553 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10554 * gnu-nat.c (gnu_xfer_memory): Likewise.
10555 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10556 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10557 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10558 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10559
9b409511
YQ
105602014-02-11 Yao Qi <yao@codesourcery.com>
10561
10562 * target.h (enum target_xfer_error): Rename to ...
10563 (enum target_xfer_status): ... it. New. All users updated.
10564 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10565 New.
10566 (TARGET_XFER_STATUS_ERROR_P): New macro.
10567 (target_xfer_error_to_string): Remove declaration.
10568 (target_xfer_status_to_string): Declare.
10569 (target_xfer_partial_ftype): Adjust it.
10570 (struct target_ops) <to_xfer_partial>: Return
10571 target_xfer_status. Add argument xfered_len. Update
10572 comments.
10573 * target.c (target_xfer_error_to_string): Rename to ...
10574 (target_xfer_status_to_string): ... it. New. All callers
10575 updated.
10576 (target_read_live_memory): Likewise. Call target_xfer_partial
10577 instead of target_read.
10578 (memory_xfer_live_readonly_partial): Return
10579 target_xfer_status. Add argument xfered_len.
10580 (raw_memory_xfer_partial): Likewise.
10581 (memory_xfer_partial_1): Likewise.
10582 (memory_xfer_partial): Likewise.
10583 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10584 properly. Update debug message.
10585 (default_xfer_partial, current_xfer_partial): Likewise.
10586 (target_write_partial): Likewise.
10587 (target_read_partial): Likewise. All callers updated.
10588 (read_whatever_is_readable): Likewise.
10589 (target_write_with_progress): Likewise.
10590 (target_read_alloc_1): Likewise.
10591
10592 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10593 * auxv.c (procfs_xfer_auxv): Likewise.
10594 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10595 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10596 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10597 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10598 * corefile.c (read_memory): Adjust.
10599 * corelow.c (core_xfer_partial): Likewise.
10600 * ctf.c (ctf_xfer_partial): Likewise.
10601 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10602 updated.
10603 (darwin_xfer_partial): Likewise.
10604 * exec.c (section_table_xfer_memory_partial): Likewise. All
10605 callers updated.
10606 (exec_xfer_partial): Likewise.
10607 * exec.h (section_table_xfer_memory_partial): Update
10608 declaration.
10609 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10610 negative.
10611 (gnu_xfer_partial): Likewise.
10612 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10613 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10614 (ia64_hpux_xfer_solib_got): Likewise.
10615 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10616 type of 'partial_len' to ULONGEST.
10617 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10618 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10619 (linux_nat_xfer_partial): Likewise.
10620 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10621 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10622 * monitor.c (monitor_xfer_memory): Likewise.
10623 (monitor_xfer_partial): Likewise.
10624 * procfs.c (procfs_xfer_partial): Likewise.
10625 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10626 * record-full.c (record_full_xfer_partial): Likewise.
10627 (record_full_core_xfer_partial): Likewise.
10628 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10629 (gdbsim_xfer_partial): Likewise.
10630 * remote.c (remote_write_bytes_aux): Likewise. All callers
10631 updated.
10632 (remote_write_bytes, remote_read_bytes): Likewise. All
10633 callers updated.
10634 (remote_flash_erase): Likewise. All callers updated.
10635 (remote_write_qxfer): Likewise. All callers updated.
10636 (remote_read_qxfer): Likewise. All callers updated.
10637 (remote_xfer_partial): Likewise.
10638 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10639 (rs6000_xfer_shared_libraries): Likewise.
10640 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10641 (sol_thread_xfer_partial): Likewise.
10642 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10643 (sparc_xfer_partial): Likewise.
10644 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10645 updated.
10646 (spu_xfer_partial): Likewise.
10647 * spu-multiarch.c (spu_xfer_partial): Likewise.
10648 * tracepoint.c (tfile_xfer_partial): Likewise.
10649 * windows-nat.c (windows_xfer_memory): Likewise.
10650 (windows_xfer_shared_libraries): Likewise.
10651 (windows_xfer_partial): Likewise.
10652 * valprint.c: Replace 'target_xfer_error' with
10653 'target_xfer_status' in comments.
10654
a8e63083
JB
106552014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10656
10657 Checked in by Joel Brobecker <brobecker@adacore.com>.
10658 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10659
e86b67d3
JB
106602014-02-11 Joel Brobecker <brobecker@adacore.com>
10661
10662 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10663 function parameters.
10664
4b7d1f7f
WN
106652014-02-10 Will Newton <will.newton@linaro.org>
10666
10667 * elfread.c (elf_rel_plt_read): Look for a .got section if
10668 looking up .got.plt fails.
10669 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10670 on address passed to elf_gnu_ifunc_record_cache.
10671 (elf_gnu_ifunc_resolve_addr): Likewise.
10672 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10673
961842b2
JM
106742014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10675
10676 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10677 (X_RETTURN): New macro.
10678 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10679
10680 * sparc64-tdep.c (sparc64_init_abi): Hook
10681 sparc_in_function_epilogue_p.
10682
3f03e7b1
GB
106832014-02-10 Gary Benson <gbenson@redhat.com>
10684
10685 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10686 Rename name_matcher to symbol_matcher.
10687
96f861ef
GB
106882014-02-10 Gary Benson <gbenson@redhat.com>
10689
10690 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10691 Use expand_symtabs_file_matcher_ftype and
10692 expand_symtabs_symbol_matcher_ftype.
10693
ee01b665
JB
106942014-02-10 Joel Brobecker <brobecker@adacore.com>
10695
10696 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10697 (struct ada_symbol_cache): New.
10698 (ada_free_symbol_cache): Forward declare.
10699 (struct ada_pspace_data): New.
10700 (ada_pspace_data_handle): New static global.
10701 (get_ada_pspace_data, ada_pspace_data_cleanup)
10702 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10703 (cache_space, cache): Delete, now folded inside struct
10704 ada_pspace_data.
10705 (ada_get_symbol_cache): New function.
10706 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10707 implementation.
10708 (_initialize_ada_language): Remove initialization of cache_space.
10709 Move call to observer_attach_inferior_exit up, grouping it
10710 with the other observer registrations inside this function.
10711 Rename command to be more general. Add call to
10712 register_program_space_data_with_cleanup.
10713
143adbbf
JB
107142014-02-10 Joel Brobecker <brobecker@adacore.com>
10715
10716 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10717 ada_new_objfile_observer.
10718 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10719 (_initialize_tasks): Update uses of ada_new_objfile_observer
10720 and ada_tasks_normal_stop_observer.
10721
aa4fb036
JB
107222014-02-10 Joel Brobecker <brobecker@adacore.com>
10723
10724 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10725 returned by the 'Length attribute to integer.
10726
9dee8cc6
JB
107272014-02-10 Joel Brobecker <brobecker@adacore.com>
10728
10729 * ada-lang.c (_initialize_ada_language): Initialize
10730 cache_space obstack.
10731
3d9434b5
JB
107322014-02-10 Joel Brobecker <brobecker@adacore.com>
10733
10734 * ada-lang.c (HASH_SIZE): New macro.
10735 (struct cache_entry): New type.
10736 (cache_space, cache): New static globals.
10737 (ada_clear_symbol_cache, find_entry): New functions.
10738 (lookup_cached_symbol, cache_symbol): Implement.
10739 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10740 (_initialize_ada_language): Attach ada_new_objfile_observer
10741 and ada_free_objfile_observer.
10742
f0c5f9b2
JB
107432014-02-10 Joel Brobecker <brobecker@adacore.com>
10744
10745 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10746 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10747 struct block * parameter.
10748 (ada_lookup_symbol_list_worker): Constify local variable "block".
10749 Remove cast which is no longer necessary.
10750
ed3ef339
DE
107512014-02-10 Doug Evans <xdje42@gmail.com>
10752
10753 Add Guile as an extension language.
10754 * NEWS: Mention Guile scripting.
10755 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10756 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10757 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10758 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10759 (CLIBS): Add GUILE_LIBS.
10760 (install-guile): New rule.
10761 (guile.o): New rule.
10762 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10763 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10764 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10765 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10766 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10767 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10768 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10769 * configure.ac: New option --with-guile.
10770 * configure: Regenerate.
10771 * config.in: Regenerate.
10772 * auto-load.c: Remove #include "python/python.h". Add #include
10773 "gdb/section-scripts.h".
10774 (source_section_scripts): Handle Guile scripts.
10775 (_initialize_auto_load): Add name of Guile objfile script to
10776 scripts-directory help text.
10777 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10778 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10779 (struct breakpoint): New member scm_bp_object.
10780 * defs.h (enum command_control_type): New value guile_control.
10781 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10782 "extension.h".
10783 (show_user): Update comment.
10784 (_initialize_cli_cmds): Update help text for "show user". Update help
10785 text for max-user-call-depth.
10786 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10787 "extension.h".
10788 (multi_line_command_p): Add guile_control.
10789 (print_command_lines): Handle guile_control.
10790 (execute_control_command, recurse_read_control_structure): Ditto.
10791 (process_next_line): Recognize "guile" commands.
10792 * disasm.c (gdb_disassemble_info): Make non-static.
10793 * disasm.h: #include "dis-asm.h".
10794 (struct gdbarch): Add forward decl.
10795 (gdb_disassemble_info): Declare.
10796 * extension.c: #include "guile/guile.h".
10797 (extension_languages): Add guile.
10798 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10799 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10800 * gdbtypes.c (get_unsigned_type_max): New function.
10801 (get_signed_type_minmax): New function.
10802 * gdbtypes.h (get_unsigned_type_max): Declare.
10803 (get_signed_type_minmax): Declare.
10804 * guile/README: New file.
10805 * guile/guile-internal.h: New file.
10806 * guile/guile.c: New file.
10807 * guile/guile.h: New file.
10808 * guile/scm-arch.c: New file.
10809 * guile/scm-auto-load.c: New file.
10810 * guile/scm-block.c: New file.
10811 * guile/scm-breakpoint.c: New file.
10812 * guile/scm-disasm.c: New file.
10813 * guile/scm-exception.c: New file.
10814 * guile/scm-frame.c: New file.
10815 * guile/scm-gsmob.c: New file.
10816 * guile/scm-iterator.c: New file.
10817 * guile/scm-lazy-string.c: New file.
10818 * guile/scm-math.c: New file.
10819 * guile/scm-objfile.c: New file.
10820 * guile/scm-ports.c: New file.
10821 * guile/scm-pretty-print.c: New file.
10822 * guile/scm-safe-call.c: New file.
10823 * guile/scm-string.c: New file.
10824 * guile/scm-symbol.c: New file.
10825 * guile/scm-symtab.c: New file.
10826 * guile/scm-type.c: New file.
10827 * guile/scm-utils.c: New file.
10828 * guile/scm-value.c: New file.
10829 * guile/lib/gdb.scm: New file.
10830 * guile/lib/gdb/boot.scm: New file.
10831 * guile/lib/gdb/experimental.scm: New file.
10832 * guile/lib/gdb/init.scm: New file.
10833 * guile/lib/gdb/iterator.scm: New file.
10834 * guile/lib/gdb/printing.scm: New file.
10835 * guile/lib/gdb/types.scm: New file.
10836 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10837 (VPATH): Add $(GUILE_SRCDIR).
10838 (GUILE_DIR): New variable.
10839 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10840 (all): Add stamp-guile dependency.
10841 (stamp-guile): New rule.
10842 (clean-guile, install-guile, uninstall-guile): New rules.
10843 (install-only): Add install-guile dependency.
10844 (uninstall): Add uninstall-guile dependency.
10845 (clean): Add clean-guile dependency.
10846
ac020ec5
DE
108472014-02-09 Doug Evans <xdje42@gmail.com>
10848
10849 Revert this patch (which I approved, mea culpa).
10850
10851 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10852
10853 * Makefile.in (all-lib): Remove.
10854 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10855
2a081c59
JK
108562014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10857
10858 Fix Python stack corruption.
10859 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10860 gdb_py_longest.
10861
0a6bd22d
MK
108622014-02-08 Mark Kettenis <kettenis@gnu.org>
10863
10864 * Makefile.in (all-lib): Remove.
10865 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10866
1a860409
DE
108672014-02-07 Doug Evans <dje@google.com>
10868
10869 * extension-priv.h (extension_language_script_ops): Add comment.
10870 (extension_language_ops): Add comment.
caf5a491 10871 (active_ext_lang_state): Fix typo in comment.
1a860409 10872
d137e6dc
PA
108732014-02-07 Pedro Alves <palves@redhat.com>
10874
0dcb32c3 10875 PR breakpoints/16292
d137e6dc
PA
10876 * infrun.c (handle_signal_stop) <signal arrives while stepping
10877 over a breakpoint>: Switch back to the stepping thread.
10878
ce6d0892
YQ
108792014-02-07 Yao Qi <yao@codesourcery.com>
10880
10881 * target.c (target_xfer_partial): Return zero if LEN is zero.
10882
2ed4b548
YQ
108832014-02-07 Yao Qi <yao@codesourcery.com>
10884
10885 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10886 (ld_so_xfer_auxv): Likewise.
10887 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10888 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10889 * corelow.c (core_xfer_partial): Likewise.
10890 * ctf.c (ctf_xfer_partial): Likewise.
10891 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10892 (darwin_xfer_partial): Likewise.
10893 * exec.c (exec_xfer_partial): Likewise.
10894 * gnu-nat.c (gnu_xfer_partial): Likewise.
10895 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10896 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10897 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10898 * linux-nat.c (linux_xfer_siginfo): Likewise.
10899 (linux_proc_xfer_spu): Likewise.
10900 * procfs.c (procfs_xfer_partial): Likewise.
10901 * record-full.c (record_full_xfer_partial): Likewise.
10902 (record_full_core_xfer_partial): Likewise.
10903 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10904 * remote.c (remote_write_qxfer): Likewise.
10905 (remote_write_qxfer, remote_read_qxfer): Likewise.
10906 (remote_xfer_partial): Likewise.
10907 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10908 (rs6000_xfer_shared_libraries): Likewise.
10909 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10910 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10911 (spu_xfer_partial): Likewise.
10912 * target.c (memory_xfer_partial_1): Likewise.
10913 * tracepoint.c (tfile_xfer_partial): Likewise.
10914 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10915 (windows_xfer_partial): Likewise.
10916
c09f20e4
YQ
109172014-02-07 Yao Qi <yao@codesourcery.com>
10918
10919 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10920 comments.
10921 (core_xfer_shared_libraries_aix): Likewise.
10922 * gdbarch.c, gdbarch.h: Regenerated.
10923 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10924 ULONGEST. Change 'len_avail' type to ULONGEST.
10925 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10926 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10927 declaration.
10928 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10929
8635b3bf
YQ
109302014-02-07 Yao Qi <yao@codesourcery.com>
10931
10932 * corefile.c (memory_error): Get 'exception' from ERR and pass
10933 'exception' to throw_error.
10934
6dddc817
DE
109352014-02-06 Doug Evans <xdje42@gmail.com>
10936
10937 * configure.ac (libpython checking): Remove all but python.o from
10938 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10939 * configure: Regenerate.
10940
10941 * Makefile.in (SFILES): Add extension.c.
10942 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10943 (COMMON_OBS): Add extension.o.
10944 * extension.h: New file.
10945 * extension-priv.h: New file.
10946 * extension.c: New file.
10947
10948 * python/python-internal.h: #include "extension.h".
10949 (gdbpy_auto_load_enabled): Declare.
10950 (gdbpy_apply_val_pretty_printer): Declare.
10951 (gdbpy_apply_frame_filter): Declare.
10952 (gdbpy_preserve_values): Declare.
10953 (gdbpy_breakpoint_cond_says_stop): Declare.
10954 (gdbpy_breakpoint_has_cond): Declare.
10955 (void source_python_script_for_objfile): Delete.
10956 * python/python.c: #include "extension-priv.h".
10957 Delete inclusion of "observer.h".
10958 (extension_language_python): Moved here and renamed from
10959 script_language_python in py-auto-load.c.
10960 Redefined to be of type extension_language_defn.
10961 (python_extension_script_ops): New global.
10962 (python_extension_ops): New global.
10963 (struct python_env): New member previous_active.
10964 (restore_python_env): Call restore_active_ext_lang.
10965 (ensure_python_env): Call set_active_ext_lang.
10966 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10967 New arg extlang.
10968 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10969 New arg extlang.
10970 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10971 New arg extlang.
10972 (gdbpy_eval_from_control_command): Renamed from
10973 eval_python_from_control_command, made static. New arg extlang.
10974 (gdbpy_source_script) Renamed from source_python_script, made static.
10975 New arg extlang.
10976 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10977 result to int. New arg extlang.
10978 (gdbpy_source_objfile_script): Renamed from
10979 source_python_script_for_objfile, made static. New arg extlang.
10980 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10981 static. New args extlang, extlang_printers. Change result type to
10982 "void".
10983 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10984 static. New arg extlang. Rename arg printers to extlang_printers
10985 and change type to ext_lang_type_printers *.
10986 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10987 static. Replace argument arg with extlang, extlang_printers.
10988 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10989 (!HAVE_PYTHON, source_python_script): Delete.
10990 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10991 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10992 (!HAVE_PYTHON, start_type_printers): Delete.
10993 (!HAVE_PYTHON, apply_type_printers): Delete.
10994 (!HAVE_PYTHON, free_type_printers): Delete.
10995 (_initialize_python): Delete call to observer_attach_before_prompt.
10996 (finalize_python): Set/restore active extension language.
10997 (gdbpy_finish_initialization) Renamed from
10998 finish_python_initialization, made static. New arg extlang.
10999 (gdbpy_initialized): New function.
11000 * python/python.h: #include "extension.h". Delete #include
11001 "value.h", "mi/mi-cmds.h".
11002 (extension_language_python): Declare.
11003 (GDBPY_AUTO_FILE_NAME): Delete.
11004 (enum py_bt_status): Moved to extension.h and renamed to
11005 ext_lang_bt_status.
11006 (enum frame_filter_flags): Moved to extension.h.
11007 (enum py_frame_args): Moved to extension.h and renamed to
11008 ext_lang_frame_args.
11009 (finish_python_initialization): Delete.
11010 (eval_python_from_control_command): Delete.
11011 (source_python_script): Delete.
11012 (apply_val_pretty_printer): Delete.
11013 (apply_frame_filter): Delete.
11014 (preserve_python_values): Delete.
11015 (gdbpy_script_language_defn): Delete.
11016 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11017 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11018
11019 * auto-load.c: #include "extension.h".
11020 (GDB_AUTO_FILE_NAME): Delete.
11021 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11022 (script_language_gdb): Delete, moved to extension.c and renamed to
11023 extension_language_gdb.
11024 (source_gdb_script_for_objfile): Delete.
11025 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11026 (loaded_script): Change type of language member to
11027 struct extension_language_defn *.
11028 (init_loaded_scripts_info): Initialize
11029 unsupported_script_warning_printed.
11030 (maybe_add_script): Make static. Change type of language arg to
11031 struct extension_language_defn *.
11032 (clear_section_scripts): Reset unsupported_script_warning_printed.
11033 (auto_load_objfile_script_1): Rewrite to use extension language API.
11034 (auto_load_objfile_script): Make public. Remove support-compiled-in
11035 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11036 (source_section_scripts): Rewrite to use extension language API.
11037 (load_auto_scripts_for_objfile): Rewrite to use
11038 auto_load_scripts_for_objfile.
11039 (collect_matching_scripts_data): Change type of language member to
11040 struct extension_language_defn *.
11041 (auto_load_info_scripts): Change type of language arg to
11042 struct extension_language_defn *.
11043 (unsupported_script_warning_print): New function.
11044 (script_not_found_warning_print): Make static.
11045 (_initialize_auto_load): Rewrite construction of scripts-directory
11046 help.
11047 * auto-load.h (struct objfile): Add forward decl.
11048 (struct script_language): Delete.
11049 (struct auto_load_pspace_info): Add forward decl.
11050 (struct extension_language_defn): Add forward decl.
11051 (maybe_add_script): Delete.
11052 (auto_load_objfile_script): Declare.
11053 (script_not_found_warning_print): Delete.
11054 (auto_load_info_scripts): Update prototype.
11055 (auto_load_gdb_scripts_enabled): Declare.
11056 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11057 auto_load_python_scripts_enabled and made public.
11058 (script_language_python): Delete, moved to python.c.
11059 (gdbpy_script_language_defn): Delete.
11060 (info_auto_load_python_scripts): Update to use
11061 extension_language_python.
11062
11063 * breakpoint.c (condition_command): Replace call to
11064 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11065 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11066 with call to breakpoint_ext_lang_cond_says_stop.
11067 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11068 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11069 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11070 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11071 New arg slang.
11072 (local_setattro): Print name of extension language with existing
11073 stop condition.
11074
11075 * valprint.c (val_print, value_print): Update to call
11076 apply_ext_lang_val_pretty_printer.
11077 * cp-valprint.c (cp_print_value): Update call to
11078 apply_ext_lang_val_pretty_printer.
11079 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11080 (gdbpy_apply_val_pretty_printer): Renamed from
11081 apply_val_pretty_printer. New arg extlang.
11082 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11083
11084 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11085 extension language API.
11086 * cli/cli-script.c (execute_control_command): Update to call
11087 eval_ext_lang_from_control_command.
11088
11089 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11090 enum ext_lang_bt_status values. Update call to
11091 apply_ext_lang_frame_filter.
11092 (mi_cmd_stack_list_locals): Ditto.
11093 (mi_cmd_stack_list_args): Ditto.
11094 (mi_cmd_stack_list_variables): Ditto.
11095 * mi/mi-main.c: Delete #include "python/python-internal.h".
11096 Add #include "extension.h".
11097 (mi_cmd_list_features): Replace reference to python internal variable
11098 gdb_python_initialized with call to ext_lang_initialized_p.
11099
11100 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11101 Update to use enum ext_lang_frame_args. Update to call
11102 apply_ext_lang_frame_filter.
11103 * python/py-framefilter.c (extract_sym): Update to use enum
11104 ext_lang_bt_status.
11105 (extract_value, py_print_type, py_print_value): Ditto.
11106 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11107 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11108 (py_print_frame): Ditto.
11109 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11110 New arg extlang. Update to use enum ext_lang_bt_status.
11111
11112 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11113 finish_python_initialization. Replace with call to
11114 finish_ext_lang_initialization.
11115
11116 * typeprint.c (do_free_global_table): Update to call
11117 free_ext_lang_type_printers.
11118 (create_global_typedef_table): Update to call
11119 start_ext_lang_type_printers.
11120 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11121 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11122 (type_print_options): Change type of global_printers from "void *"
11123 to "struct ext_lang_type_printers *".
11124
11125 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11126 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11127 (gdbpy_preserve_values): Renamed from preserve_python_values.
11128 New arg extlang.
11129 (!HAVE_PYTHON, preserve_python_values): Delete.
11130
11131 * utils.c (quit_flag): Delete, moved to extension.c.
11132 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11133 extension.c.
11134
11135 * eval.c: Delete #include "python/python.h".
11136 * main.c: Delete #include "python/python.h".
11137
11138 * defs.h: Update comment.
11139
6af79985
JB
111402014-02-06 Joel Brobecker <brobecker@adacore.com>
11141
11142 GDB 7.7 released.
11143
12c5175d
MK
111442014-02-05 Mark Kettenis <kettenis@gnu.org>
11145
11146 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11147 defined.
11148
8dc5b319
YQ
111492014-02-05 Yao Qi <yao@codesourcery.com>
11150
11151 * remote.c (remote_pass_signals): Remove local 'buf' and use
11152 rs->buf.
11153 (remote_program_signals): Likewise.
11154
de7b2893
YQ
111552014-02-05 Yao Qi <yao@codesourcery.com>
11156
11157 * ctf.c: Include "inferior.h" and "gdbthread.h".
11158 (CTF_PID): A new macro.
11159 (ctf_open): Call inferior_appeared and add_thread_silent.
11160 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11161 (ctf_thread_alive): New function.
11162 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11163
66d032ac
YQ
111642014-02-05 Yao Qi <yao@codesourcery.com>
11165
11166 Revert this patch:
11167
11168 2013-05-24 Yao Qi <yao@codesourcery.com>
11169
11170 * tracepoint.c (TFILE_PID): Remove.
11171 (tfile_open): Don't add thread and inferior.
11172 (tfile_close): Don't set 'inferior_ptid'. Don't call
11173 exit_inferior_silent.
11174 (tfile_thread_alive): Remove.
11175 (init_tfile_ops): Don't set field 'to_thread_alive' of
11176 tfile_ops.
11177
f4ccffad
CE
111782014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11179
11180 * remote.c (remote_start_remote): Call remote_check_symbols even
11181 if only symbol-file (not file) has been given.
11182
591a12a1
UW
111832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11184
11185 * gdbarch.sh (skip_entrypoint): New callback.
11186 * gdbarch.c, gdbarch.h: Regenerate.
11187 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11188 * infrun.c (fill_in_stop_func): Likewise.
11189 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11190 (ppc_elfv2_elf_make_msymbol_special): New function.
11191 (ppc_elfv2_skip_entrypoint): Likewise.
11192 (ppc_linux_init_abi): Install them for ELFv2.
11193
cc0e89c5
UW
111942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11195
11196 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11197 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11198 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11199 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11200 structures returned in GPRs.
11201
52f548e4
UW
112022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11203
11204 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11205 offset to the stack parameter list for the ELFv2 ABI.
11206
d4094b6a
UW
112072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11208
11209 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11210 set_gdbarch_convert_from_func_ptr_addr and
11211 set_gdbarch_elf_make_msymbol_special for ELFv1.
11212 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11213 function descriptors on ELFv1.
11214 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11215 set up r12 at function entry.
11216
cd453cd0
UW
112172014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11218
11219 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11220 (struct gdbarch_tdep): New member elf_abi.
11221
11222 * rs6000-tdep.c: Include "elf/ppc64.h".
11223 (rs6000_gdbarch_init): Detect ELF ABI version.
11224
0ff3e01f
UW
112252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11226
11227 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11228 within a register pair holding a DFP 128-bit value on little-endian.
11229 (ppc64_sysv_abi_return_value_base): Likewise.
11230 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11231 (dfp_pseudo_register_write): Likewise.
11232
5b757e5d
UW
112332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11234
11235 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11236 offset on little-endian when passing _Decimal32.
11237 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11238
084ee545
UW
112392014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11240
11241 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11242 of the overlapped FP register within the VSX register on little-
11243 endian platforms.
11244 (efpr_pseudo_register_write): Likewise.
11245
d63167af
UW
112462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11247
11248 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11249 offset on little-endian when passing small structures.
11250
e765b44c
UW
112512014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11252
11253 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11254 (struct ppc64_sysv_argpos): New data structure.
11255 (ppc64_sysv_abi_push_float): Remove.
11256 (ppc64_sysv_abi_push_val): New function.
11257 (ppc64_sysv_abi_push_integer): Likewise.
11258 (ppc64_sysv_abi_push_freg): Likewise.
11259 (ppc64_sysv_abi_push_vreg): Likewise.
11260 (ppc64_sysv_abi_push_param): Likewise.
11261 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11262 (ppc64_sysv_abi_return_value_base): New function.
11263 (ppc64_sysv_abi_return_value): Refactor to use it.
11264
36c24d95
UW
112652014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11266
11267 * NEWS: Document new target powerpc64le-*-linux*.
11268
26fd9228
MK
112692014-02-04 Mark Kettenis <kettenis@gnu.org>
11270
11271 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11272 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11273 core dumps.
11274 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11275 register set used in ELF core dumps. Add floating-point register set.
11276
c5bb7362
KB
112772014-02-03 Kevin Buettner <kevinb@redhat.com>
11278
74228e77 11279 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11280 dwarf2_to_gdb[] table using symbolic constants. Adjust
11281 penultimate entry from number representing the PC register
11282 to symbolic constant representing the MDR register. Add
11283 constant for the PC register to the end of the table.
11284
af09351e
MK
112852014-02-03 Mark Kettenis <kettenis@gnu.org>
11286
11287 * bsd-kvm.c: Include <sys/param.h>
11288
8507e05d
MK
112892014-02-03 Mark Kettenis <kettenis@gnu.org>
11290
11291 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11292
ae56bfb8
JB
112932014-01-31 Joel Brobecker <brobecker@adacore.com>
11294
11295 * ada-lang.h (clear_ada_sym_cache): Delete.
11296
718ee4dc
UW
112972014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11298
11299 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11300
401e27fd
JM
113012014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11302
11303 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11304 the sigreturn register save area only if the syscall is
11305 sigreturn.
11306
a7c88acd
JB
113072014-01-29 Joel Brobecker <brobecker@adacore.com>
11308
11309 * valops.c (value_slice): Minor reformatting.
11310
fa0079ea
UW
113112014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11312
11313 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11314
c6044dd1
JB
113152014-01-28 Joel Brobecker <brobecker@adacore.com>
11316
11317 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11318 New static globals.
11319 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11320 (ada_ignore_descriptive_types_p): New static global.
11321 (find_parallel_type_by_descriptive_type): Return immediately
11322 if ada_ignore_descriptive_types_p is set.
11323 (_initialize_ada_language): Register new commands "maintenance
11324 set ada", "maintenance show ada", "maintenance set ada
11325 ignore-descriptive-types" and "maintenance show ada
11326 ignore-descriptive-types".
11327 * NEWS: Add entry for new "maint ada set/show
11328 ignore-descriptive-types" commands.
11329
568e808b
MM
113302014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11331
11332 * record-btrace.c (record_btrace_close): Call btrace_teardown
11333 for all threads.
11334
467d141b
JB
113352014-01-27 Joel Brobecker <brobecker@adacore.com>
11336
11337 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11338 "ui-out.h".
11339
fb151210
JB
113402014-01-27 Joel Brobecker <brobecker@adacore.com>
11341
11342 * ada-typeprint (type_is_full_subrange_of_target_type):
11343 New function.
11344 (print_range): Add parameter bounds_prefered_p. If not set,
11345 try printing range types using the name of their base type.
11346 (print_range_type): Add parameter bounds_prefered_p.
11347 Use it in call to print_range.
11348 (print_array_type, ada_print_type): Update calls to print_range
11349 and print_range_type.
11350
aba02109
JB
113512014-01-27 Joel Brobecker <brobecker@adacore.com>
11352
11353 * ada-typeprint.c (print_array_type, print_choices, print_range)
11354 (print_range_bound, print_dynamic_range_bound, print_range_type):
11355 Remove declaration.
11356
e62e21fd
JB
113572014-01-27 Joel Brobecker <brobecker@adacore.com>
11358
11359 * ada-typeprint.c (print_range): Add missing empty line
11360 after local declaration.
11361
859cf5d1
JB
113622014-01-27 Joel Brobecker <brobecker@adacore.com>
11363
11364 * ada-valprint.c (print_optional_low_bound): Get index_type's
11365 target type for as long as it is a TYPE_CODE_RANGE.
11366
25790f6f
JB
113672014-01-27 Joel Brobecker <brobecker@adacore.com>
11368
11369 * procfs.c (procfs_make_note_section): Remove assertion and
11370 associated comment.
11371
6b6aa828
YQ
113722014-01-24 Yao Qi <yao@codesourcery.com>
11373
11374 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11375 * corelow.c (get_core_siginfo): Likewise.
11376
5d6df423
YQ
113772014-01-24 Yao Qi <yao@codesourcery.com>
11378
11379 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11380 ULONGEST. Don't check 'len' is negative.
11381 (remote_write_bytes): Change type of 'len' to ULONGEST.
11382
83b645b8
TT
113832014-01-23 Tom Tromey <tromey@redhat.com>
11384
11385 PR python/16485:
11386 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11387 Handle exception from frame.block.
11388 (FrameVars.fetch_frame_locals): Likewise.
11389
0740f8d8
TT
113902014-01-23 Tom Tromey <tromey@redhat.com>
11391
11392 PR python/16487:
11393 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11394 on a NULL pointer. Move "goto error" to correct place.
11395
21909fa1
TT
113962014-01-23 Tom Tromey <tromey@redhat.com>
11397
11398 PR python/16491:
11399 * python/py-framefilter.c (apply_frame_filter): Call
11400 ensure_python_env after computing gdbarch.
11401
17fde6d0
YQ
114022014-01-23 Yao Qi <yao@codesourcery.com>
11403
11404 * target.c (raw_memory_xfer_partial): Change argument type
11405 from void * to gdb_byte *.
11406 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11407
87ce2a04
DE
114082014-01-22 Doug Evans <dje@google.com>
11409
11410 New gdbserver option --debug-format=timestamp.
11411 * NEWS: Mention it.
11412
237b092b
AA
114132014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11414
11415 * syscalls/s390x-linux.xml: New file.
11416 * syscalls/s390-linux.xml: New file.
11417 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11418 (XML_SYSCALL_FILENAME_S390X): Likewise.
11419 (op_svc): New enum value for SVC opcode.
11420 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11421 (s390_linux_get_syscall_number): New function.
11422 (s390_gdbarch_init): Register '*get_syscall_number' and the
11423 syscall xml file name.
11424 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11425 "s390-linux.xml" and "s390x-linux.xml".
11426 * NEWS: Announce new feature.
11427
54bff650
BS
114282014-01-22 Baruch Siach <baruch@tkos.co.il>
11429
11430 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11431
14e361d7
PA
114322014-01-22 Pedro Alves <palves@redhat.com>
11433
11434 * xtensa-config.c: Include defs.h.
11435
46bbb3ed
JB
114362014-01-22 Joel Brobecker <brobecker@adacore.com>
11437
11438 * common/common-utils.h: Add "ARI:" comment beside __func__
11439 reference.
11440
3a80edfc
JB
114412014-01-22 Joel Brobecker <brobecker@adacore.com>
11442
11443 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11444 documentation a bit.
11445
4869db5e
RM
114462014-01-21 Roland McGrath <mcgrathr@google.com>
11447
11448 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11449 * configure: Regenerate.
11450 * aclocal.m4: Regenerate.
11451 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11452 New substituted variables.
11453 (install-strip): New target.
11454 (INSTALL_SCRIPT): New substituted variable.
11455 (FLAGS_TO_PASS): Add it.
11456 (install-only): Use $(INSTALL_SCRIPT) rather than
11457 $(INSTALL_PROGRAM) for gcore.
11458
9ea4267d
TT
114592014-01-20 Tom Tromey <tromey@redhat.com>
11460
11461 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11462 together.
11463
1f2bdf09
TT
114642014-01-20 Tom Tromey <tromey@redhat.com>
11465
11466 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11467 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11468 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11469 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11470 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11471 (struct cmd_list_element) <flags>: Remove.
11472 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11473 doc_allocated>: New fields.
11474 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11475 bitfields.
11476 * maint.c (maintenance_do_deprecate): Update.
11477 * top.c (execute_command): Update.
11478
e671835b
BS
114792014-01-20 Baruch Siach <baruch@tkos.co.il>
11480
11481 * xtensa-linux-nat.c: Include asm/ptrace.h.
11482
50367cd2
IB
114832014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11484
11485 * Makefile.in (SFILES): Add d-support.c.
11486 (COMMON_OBS): Add d-support.o.
11487 * d-lang.h (d_parse_symbol): Add comment, now defined in
11488 d-support.c.
11489 * d-lang.c (parse_call_convention)
11490 (parse_attributes, parse_function_types)
11491 (parse_function_args, parse_type, parse_identifier)
11492 (call_convention_p, d_parse_symbol): Move functions to ...
11493 * d-support.c: ... New file.
11494
ec9f644a
IB
114952014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11496
11497 * d-lang.h (d_parse_symbol): Add declaration.
11498 * d-lang.c (extract_identifiers)
11499 (extract_type_info): Remove functions.
11500 (parse_call_convention, parse_attributes)
11501 (parse_function_types, parse_function_args)
11502 (parse_type, parse_identifier, call_convention_p)
11503 (d_parse_symbol): New functions.
11504 (d_demangle): Use d_parse_symbol to demangle D symbols.
11505
94b1b47e
IB
115062014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11507
11508 * d-lang.h (struct builtin_d_type): New data type.
11509 (builtin_d_type): Add declaration.
11510 * d-lang.c (d_language_arch_info, build_d_types)
11511 (builtin_d_type): New functions.
11512 (enum d_primitive_types): New data type.
11513 (d_language_defn): Change c_language_arch_info to
11514 d_language_arch_info.
11515 (d_type_data): New static variable.
11516 (_initialize_d_language): Initialize d_type_data.
11517
63778547
IB
115182014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11519
11520 * d-lang.h (d_main_name): Add declaration.
11521 * d-lang.c (d_main_name): New function.
11522 * symtab.c (find_main_name): Add call to d_main_name.
11523
3271ba66
IB
115242014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11525
11526 * d-lang.c (d_language_defn): Change macro_expansion_c to
11527 macro_expansion_no.
11528
d36b3012
IB
115292014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11530
11531 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11532
c90a6fb7
SDJ
115332014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11534
11535 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11536 gdb_exception" declaration.
11537 * remote.c (getpkt_or_notif_sane): Likewise.
11538
749234e5
DE
115392014-01-17 Doug Evans <dje@google.com>
11540
11541 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11542 function, contents of dirnames_to_char_ptr_vec_append moved here.
11543 (delim_string_to_char_ptr_vec): New function.
11544 (dirnames_to_char_ptr_vec_append): Rewrite.
11545 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11546
df049a58
DE
115472014-01-17 Doug Evans <dje@google.com>
11548
11549 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11550 and moved here ...
11551 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11552 #include "common-utils.h".
11553 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11554 * common/vec.h (VEC_ASSERT_PASS): Update.
11555 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11556 (MACH_CHECK_ERROR): Update.
11557
69f97648
SM
115582014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11559
11560 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11561 comments.
11562 * gdbarch.h: Regenerate.
11563
98b1cfdc
TT
115642014-01-16 Tom Tromey <tromey@redhat.com>
11565
11566 * value.c (struct value) <regnum>: Move earlier.
11567
77a19445
TT
115682014-01-16 Tom Tromey <tromey@redhat.com>
11569
11570 * remote.c (extended_remote_create_inferior): Rename from
11571 extended_remote_create_inferior_1. Add "ops" argument. Remove
11572 old implementation.
11573
62261490
PA
115742014-01-16 Pedro Alves <palves@redhat.com>
11575
11576 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11577 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11578 the backchain.
11579
4d65956b
DE
115802014-01-16 Doug Evans <dje@google.com>
11581
11582 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11583
52834460
MM
115842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11585
11586 * btrace.h (btrace_thread_flag): New.
11587 (struct btrace_thread_info) <flags>: New.
11588 * record-btrace.c (record_btrace_resume_thread)
11589 (record_btrace_find_thread_to_move, btrace_step_no_history)
11590 (btrace_step_stopped, record_btrace_start_replaying)
11591 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11592 (record_btrace_find_resume_thread): New.
11593 (record_btrace_resume, record_btrace_wait): Extend.
11594 (record_btrace_can_execute_reverse): New.
11595 (record_btrace_open): Fail in non-stop mode.
11596 (record_btrace_set_replay): Split into this, ...
11597 (record_btrace_stop_replaying): ... this, ...
11598 (record_btrace_clear_histories): ... and this.
11599 (init_record_btrace_ops): Init to_can_execute_reverse.
11600 * NEWS: Announce it.
11601
118e6252
MM
116022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11603
11604 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11605 (forward_target_decr_pc_after_break)
11606 (target_decr_pc_after_break): New.
11607 * target.c (forward_target_decr_pc_after_break)
11608 (target_decr_pc_after_break): New.
11609 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11610 instead of gdbarch_decr_pc_after_break.
11611 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11612 instead of gdbarch_decr_pc_after_break.
11613 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11614 instead of gdbarch_decr_pc_after_break.
11615 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11616 instead of gdbarch_decr_pc_after_break.
11617 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11618 instead of gdbarch_decr_pc_after_break.
11619 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11620 instead of gdbarch_decr_pc_after_break.
11621
6e07b1d2
MM
116222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11623
11624 * btrace.c: Include regcache.h.
11625 (btrace_add_pc): New.
11626 (btrace_enable): Call btrace_add_pc.
11627 (btrace_is_empty): New.
11628 * btrace.h (btrace_is_empty): New.
11629 * record-btrace.c (require_btrace, record_btrace_info): Call
11630 btrace_is_empty.
11631
969c39fb
MM
116322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11633
11634 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11635 Support delta reads.
11636 (linux_disable_btrace): Change return type.
11637 * common/linux-btrace.h (linux_read_btrace): Change parameters
11638 and return type to allow error reporting. Update users.
11639 (linux_disable_btrace): Change return type. Update users.
11640 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11641 New.
11642 (btrace_error): New.
11643 (btrace_block) <begin>: Comment on BEGIN == 0.
11644 * btrace.c (btrace_compute_ftrace): Start from the end of
11645 the current trace.
11646 (btrace_stitch_trace, btrace_clear_history): New.
11647 (btrace_fetch): Read delta trace, return if replaying.
11648 (btrace_clear): Move clear history code to btrace_clear_history.
11649 (parse_xml_btrace): Throw an error if parsing failed.
11650 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11651 and return type to allow error reporting.
11652 (target_read_btrace): Change parameters and return type to allow
11653 error reporting.
11654 * target.c (target_read_btrace): Update.
11655 * remote.c (remote_read_btrace): Support delta reads. Pass
11656 errors on.
11657 * NEWS: Announce it.
11658
0b722aec
MM
116592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11660
11661 * record.h (record_btrace_frame_unwind)
11662 (record_btrace_tailcall_frame_unwind): New declarations.
11663 * dwarf2-frame: Include record.h
11664 (dwarf2_frame_cfa): Throw an error for btrace frames.
11665 * record-btrace.c: Include hashtab.h.
11666 (btrace_get_bfun_name): New.
11667 (btrace_call_history): Call btrace_get_bfun_name.
11668 (struct btrace_frame_cache): New.
11669 (bfcache): New.
11670 (bfcache_hash, bfcache_eq, bfcache_new): New.
11671 (btrace_get_frame_function): New.
11672 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11673 (record_btrace_frame_this_id): Compute own id.
11674 (record_btrace_frame_prev_register): Provide PC, throw_error
11675 for all other registers.
11676 (record_btrace_frame_sniffer): Detect btrace frames.
11677 (record_btrace_tailcall_frame_sniffer): New.
11678 (record_btrace_frame_dealloc_cache): New.
11679 (record_btrace_frame_unwind): Add new functions.
11680 (record_btrace_tailcall_frame_unwind): New.
11681 (_initialize_record_btrace): Allocate cache.
11682 * btrace.c (btrace_clear): Call reinit_frame_cache.
11683 * NEWS: Announce it.
11684
066ce621
MM
116852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11686
11687 * record-btrace.c (record_btrace_set_replay)
11688 (record_btrace_goto_begin, record_btrace_goto_end)
11689 (record_btrace_goto): New.
11690 (init_record_btrace_ops): Initialize them.
11691 * NEWS: Announce it.
11692
e2887aa3
MM
116932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11694
11695 * record-btrace.c (record_btrace_find_new_threads)
11696 (record_btrace_thread_alive): New.
11697 (init_record_btrace_ops): Initialize to_find_new_threads and
11698 to_thread_alive.
11699
b2f4cfde
MM
117002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11701
11702 * record-btrace.c (record_btrace_resume): New.
11703 (record_btrace_wait): New.
11704 (init_record_btrace_ops): Initialize to_wait and to_resume.
11705
633785ff
MM
117062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11707
11708 * record-btrace.c (record_btrace_xfer_partial)
11709 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11710 (record_btrace_allow_memory_access): New.
11711 (init_record_btrace_ops): Initialize new methods.
11712 * target.c (raw_memory_xfer_partial): Bail out if target reports
11713 that this memory is not available.
11714
3db08215
MM
117152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11716
11717 * target.h (target_ops) <to_insert_breakpoint>
11718 <to_remove_breakpoint>: Add target_ops parameter.
11719 (forward_target_insert_breakpoint): New.
11720 (forward_target_remove_breakpoint): New.
11721 (memory_remove_breakpoint, memory_insert_breakpoint):
11722 Add target_ops parameter.
11723 * target.c (target_insert_breakpoint): Split into this and ...
11724 (forward_target_insert_breakpoint): ... this.
11725 (target_remove_breakpoint): Split into this and ...
11726 (forward_target_remove_breakpoint): ... this.
11727 (debug_to_insert_breakpoint): Add target_ops parameter.
11728 Call forward_target_insert_breakpoint.
11729 (debug_to_remove_breakpoint): Add target_ops parameter.
11730 Call forward_target_remove_breakpoint.
11731 (update_current_target): Do not inherit or default to_insert_breakpoint
11732 and to_remove_breakpoint.
11733 * corelow.c (ignore): Add target_ops parameter.
11734 * exec.c (ignore): Add target_ops parameter.
11735 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11736 Add target_ops parameter.
11737 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11738 Add target_ops parameter.
11739 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11740 Add target_ops parameter.
11741 * record-full.c (record_full_beneath_to_insert_breakpoint)
11742 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11743 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11744 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11745 (record_full_core_remove_breakpoint): Add target_ops parameter.
11746 Update users.
11747 (record_full_beneath_to_insert_breakpoint_ops)
11748 (record_full_beneath_to_remove_breakpoint_ops)
11749 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11750 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11751 tmp_to_remove_breakpoint_ops,
11752 record_full_beneath_to_insert_breakpoint_ops, and
11753 record_full_beneath_to_remove_breakpoint_ops.
11754 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11755 (m32r_remove_breakpoint): Add target_ops parameter.
11756 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11757 Add target_ops parameter.
11758 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11759 Add target_ops parameter.
11760
cecac1ab
MM
117612014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11762 Markus Metzger <markus.t.metzger@intel.com>
11763
11764 * record-btrace.c: Include frame-unwind.h.
11765 (record_btrace_frame_unwind_stop_reason)
11766 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11767 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11768 New.
11769 (init_record_btrace_ops): Install it.
11770
824344ca
MM
117712014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11772
11773 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11774 get_prev_frame_1.
11775
32261e52
MM
117762014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11777
11778 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11779 earlier.
11780
ea001bdc
MM
117812014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11782
11783 * frame-unwind.c: Include target.h.
11784 (frame_unwind_try_unwinder): New function with code from ...
11785 (frame_unwind_find_by_frame): ... here. New variable
11786 unwinder_from_target, call also target_get_unwinder)
11787 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11788 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11789 * target.h (struct target_ops): New fields to_get_unwinder and
11790 to_get_tailcall_unwinder.
11791 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11792
1f3ef581
MM
117932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11794
11795 * record-btrace.c (record_btrace_fetch_registers)
11796 (record_btrace_store_registers)
11797 (record_btrace_to_prepare_to_store): New.
11798 (init_record_btrace_ops): Add the above.
11799
f32dbf8c
MM
118002014-01-16 Tom Tromey <tromey@redhat.com>
11801
11802 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11803 * target.h (struct target_ops) <to_prepare_to_store>: Add
11804 argument.
11805 (target_prepare_to_store): Add argument.
11806 * target.c (debug_to_prepare_to_store): Add argument.
11807 (update_current_target): Update.
11808 * remote.c (remote_prepare_to_store): Add 'self' argument.
11809 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11810 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11811 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11812 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11813 argument.
11814 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11815 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11816 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11817 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11818 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11819
07bbe694
MM
118202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11821
11822 * btrace.h (replay) <replay>: New.
11823 (btrace_is_replaying): New.
11824 * btrace.c (btrace_clear): Free replay iterator.
11825 (btrace_is_replaying): New.
11826 * record-btrace.c (record_btrace_is_replaying): New.
11827 (record_btrace_info): Print insn number if replaying.
11828 (record_btrace_insn_history): Start at replay position.
11829 (record_btrace_call_history): Start at replay position.
11830 (init_record_btrace_ops): Init to_record_is_replaying.
11831
0688d04e
MM
118322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11833
11834 * record-btrace.c (record_btrace_insn_history_range): Include
11835 end.
11836 (record_btrace_insn_history_from): Adjust range.
11837 (record_btrace_call_history_range): Include
11838 end.
11839 (record_btrace_call_history_from): Adjust range.
11840 * NEWS: Announce changes.
11841
8710b709
MM
118422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11843
11844 * record.h (enum record_print_flag)
11845 <record_print_indent_calls>: New.
11846 * record.c (get_call_history_modifiers): Recognize /c modifier.
11847 (_initialize_record): Document /c modifier.
11848 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11849 Reorder fields. Optionally indent the function name. Update
11850 all users.
11851 * NEWS: Announce changes.
11852
d0fa7535
MM
118532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11854
11855 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11856
5de9129b
MM
118572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11858
11859 * btrace.c (ftrace_new_function): Start counting at one.
11860 * record-btrace.c (record_btrace_info): Adjust number of calls
11861 and insns.
11862 * NEWS: Announce it.
11863
7acbe133
MM
118642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11865
11866 * record-btrace.c (btrace_call_history_insn_range): Print
11867 insn range as [begin, end].
11868
23a7fe75
MM
118692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11870
11871 * btrace.h (struct btrace_func_link): New.
11872 (enum btrace_function_flag): New.
11873 (struct btrace_inst): Rename to ...
11874 (struct btrace_insn): ...this. Update all users.
11875 (struct btrace_func) <ibegin, iend>: Remove.
11876 (struct btrace_func_link): New.
11877 (struct btrace_func): Rename to ...
11878 (struct btrace_function): ...this. Update all users.
11879 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11880 (number, level, flags>: New.
11881 (struct btrace_insn_iterator): Rename to ...
11882 (struct btrace_insn_history): ...this.
11883 Update all users.
11884 (struct btrace_insn_iterator, btrace_call_iterator): New.
11885 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11886 (struct btrace_target_info) <begin, end, level>
11887 <insn_history, call_history>: New.
11888 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11889 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11890 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11891 (btrace_call_number, btrace_call_begin, btrace_call_end)
11892 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11893 (btrace_find_function_by_number, btrace_set_insn_history)
11894 (btrace_set_call_history): New.
11895 * btrace.c (btrace_init_insn_iterator)
11896 (btrace_init_func_iterator, compute_itrace): Remove.
11897 (ftrace_print_function_name, ftrace_print_filename)
11898 (ftrace_skip_file): Change
11899 parameter to const.
11900 (ftrace_init_func): Remove.
11901 (ftrace_debug): Use new btrace_function fields.
11902 (ftrace_function_switched): Also consider gaining and
11903 losing symbol information).
11904 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11905 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11906 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11907 New.
11908 (ftrace_new_function): Move. Remove debug print.
11909 (ftrace_update_lines, ftrace_update_insns): New.
11910 (ftrace_update_function): Check for call, ret, and jump.
11911 (compute_ftrace): Renamed to ...
11912 (btrace_compute_ftrace): ...this. Rewritten to compute call
11913 stack.
11914 (btrace_fetch, btrace_clear): Updated.
11915 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11916 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11917 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11918 (btrace_call_number, btrace_call_begin, btrace_call_end)
11919 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11920 (btrace_find_function_by_number, btrace_set_insn_history)
11921 (btrace_set_call_history): New.
11922 * record-btrace.c (require_btrace): Use new btrace thread
11923 info fields.
11924 (record_btrace_info, btrace_insn_history)
11925 (record_btrace_insn_history, record_btrace_insn_history_range):
11926 Use new btrace thread info fields and new iterator.
11927 (btrace_func_history_src_line): Rename to ...
11928 (btrace_call_history_src_line): ...this. Use new btrace
11929 thread info fields.
11930 (btrace_func_history): Rename to ...
11931 (btrace_call_history): ...this. Use new btrace thread info
11932 fields and new iterator.
11933 (record_btrace_call_history, record_btrace_call_history_range):
11934 Use new btrace thread info fields and new iterator.
11935
8372a7cb
MM
119362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11937
11938 * frame.h (frame_id_build_unavailable_stack_special): New.
11939 * frame.c (frame_id_build_unavailable_stack_special): New.
11940
c2170eef
MM
119412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11942
11943 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11944 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11945 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11946 to gdbarch.
11947 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11948 (i386_insn_is_jump, i386_jmp_p): New.
11949 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11950 insn_is_jump to gdbarch.
11951 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11952 * gdbarch.h: Regenerated.
11953 * gdbarch.c: Regenerated.
11954 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11955 (default_insn_is_jump): New.
11956 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11957 (default_insn_is_jump): New.
11958
864089d2
MM
119592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11960
11961 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11962 Change to ...
11963 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11964 (btrace_read_type) <btrace_read_new>: Change to ...
11965 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11966
ed9edfb5
MM
119672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11968
11969 * common/linux-btrace.c (linux_read_btrace): Free trace from
11970 previous iteration.
11971
fbcbc3fd
DE
119722014-01-15 Doug Evans <dje@google.com>
11973
11974 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11975 uint32_t.
11976
3d548a53
TT
119772014-01-15 Tom Tromey <tromey@redhat.com>
11978
11979 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11980 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11981 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11982 (set_objfile_main_name): New function.
11983 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11984 language_of_main>: New fields.
11985 (set_objfile_main_name): Declare.
11986 * symtab.c (find_main_name): Loop over objfiles to find the main
11987 name and language.
11988 (set_main_name): Now static.
11989 (get_main_info): Add comment.
11990 * symtab.h (set_main_name): Don't declare.
11991
32ac0d11
TT
119922014-01-15 Tom Tromey <tromey@redhat.com>
11993
11994 * symtab.c (main_progspace_key): New global.
11995 (struct main_info): New.
11996 (name_of_main, language_of_main): Remove.
11997 (get_main_info, main_info_cleanup): New function.
11998 (set_main_name, main_name, main_language): Use get_main_info.
11999 (_initialize_symtab): Initialize main_progspace_key.
12000
9e6c82ad
TT
120012014-01-15 Tom Tromey <tromey@redhat.com>
12002
12003 * dbxread.c (process_one_symbol): Update.
12004 * dwarf2read.c (read_partial_die): Update.
12005 * symfile.c (set_initial_language): Call main_language.
12006 * symtab.c (language_of_main): Now static.
12007 (set_main_name): Add 'lang' parameter.
12008 (find_main_name): Update.
12009 (main_language): New function.
12010 (symtab_observer_executable_changed): Update.
12011 * symtab.h (set_main_name): Update.
12012 (language_of_main): Remove.
12013 (main_language): Declare.
12014
6ef55de7
TT
120152014-01-15 Tom Tromey <tromey@redhat.com>
12016
12017 * symfile.c (init_entry_point_info): Use new "initialized" field.
12018 Update.
12019 * objfiles.h (struct entry_point) <initialized>: New field.
12020 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12021 (struct objfile) <ei>: ...here. Remove.
12022 * objfiles.c (entry_point_address_query): Update.
12023
53eddfa6
TT
120242014-01-15 Tom Tromey <tromey@redhat.com>
12025
12026 * objfiles.c (entry_point_address_query): Relocate entry point
12027 address.
12028 (objfile_relocate1): Do not relocate entry point address.
12029 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12030 <the_bfd_section_index>: New field.
12031 * symfile.c (init_entry_point_info): Find the entry point's
12032 section.
12033
d56e56aa
TT
120342014-01-15 Tom Tromey <tromey@redhat.com>
12035
12036 * solib-frv.c (enable_break): Use entry_point_address_query.
12037
33a97bbe
OJ
120382014-01-15 Omair Javaid <omair.javaid@linaro.org>
12039
12040 * NEWS: Add note on improved process record-replay on
12041 arm*-linux* targets.
12042
c6ec2b30
OJ
120432014-01-15 Omair Javaid <omair.javaid@linaro.org>
12044
12045 * arm-tdep.c (enum arm_record_result): New enum.
12046 (arm_record_unsupported_insn): New function.
12047 (arm_record_coproc_data_proc): Removed.
12048 (thumb2_record_ld_st_multiple): New function.
12049 (thumb2_record_ld_st_dual_ex_tbb): New function.
12050 (thumb2_record_data_proc_sreg_mimm): New function.
12051 (thumb2_record_ps_dest_generic): New function.
12052 (thumb2_record_branch_misc_cntrl): New function.
12053 (thumb2_record_str_single_data): New function.
12054 (thumb2_record_ld_mem_hints): New function.
12055 (thumb2_record_ld_word): New function.
12056 (thumb2_record_lmul_lmla_div): New function.
12057 (thumb2_record_decode_insn_handler): New function.
12058 (decode_insn): Add thumb32 instruction handlers.
12059
97dfe206
OJ
120602014-01-15 Omair Javaid <omair.javaid@linaro.org>
12061
12062 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12063 (struct arm_linux_record_tdep): Declare.
12064 (arm_canonicalize_syscall): New function.
12065 (arm_all_but_pc_registers_record): New function.
12066 (arm_linux_syscall_record): New function.
12067 (arm_linux_init_abi): Add syscall recording constructs.
12068 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12069 decoding. (arm_record_coproc_data_proc): Update arm syscall
12070 decoding.
12071 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12072 <arm_syscall_record>: New field.
12073 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12074 gdb_target_obs.
12075
9904a494
OJ
120762014-01-15 Omair Javaid <omair.javaid@linaro.org>
12077
12078 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12079 register for push instruction recording.
12080
f969241e
OJ
120812014-01-15 Omair Javaid <omair.javaid@linaro.org>
12082
12083 * arm-tdep.c (thumb_record_misc): Update to correct logical
12084 error while recording ldm, ldmia and pop instructions.
12085
bfbbec00
OJ
120862014-01-15 Omair Javaid <omair.javaid@linaro.org>
12087
12088 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12089
e40adcc9
PA
120902014-01-15 Pedro Alves <palves@redhat.com>
12091
12092 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12093 (go32_resume, go32_fetch_registers, store_register)
12094 (go32_store_registers, go32_prepare_to_store)
12095 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12096 (go32_create_inferior, go32_can_run, go32_terminal_init)
12097 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12098 declarations.
12099
b0a16e66
TT
121002014-01-15 Tom Tromey <tromey@redhat.com>
12101
12102 * target.h (async_callback_ftype): New typedef.
12103 (struct target_ops) <to_async>: Use it.
12104
bf7105a4
JB
121052014-01-15 Joel Brobecker <brobecker@adacore.com>
12106
12107 * python/py-value.c (get_field_type): Remove unnecessary curly
12108 braces for single-statement if block.
12109
a8f35c2e
JB
121102014-01-15 Joel Brobecker <brobecker@adacore.com>
12111
12112 * python/py-type.c (convert_field): Add missing empty line
12113 after declarations.
12114
bb4142cf
DE
121152014-01-14 Doug Evans <dje@google.com>
12116
12117 * symfile.h (expand_symtabs_matching): Renamed from
12118 expand_partial_symbol_names. Update prototype.
12119 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12120 * symfile.c (expand_symtabs_matching): Renamed from
12121 expand_partial_symbol_names. New args file_matcher, kind.
12122 Rename arg fun to symbol_matcher.
12123 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12124 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12125 ada_expand_partial_symbol_name.
12126 (ada_make_symbol_completion_list): Update to call
12127 expand_symtabs_matching.
12128 (ada_add_global_exceptions): Call expand_symtabs_matching.
12129 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12130 call map_symbol_filenames.
12131 * symtab.c (sources_info): Update to call map_symbol_filenames.
12132 (search_symbols): Call expand_symtabs_matching.
12133 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12134 (default_make_symbol_completion_list_break_on): Update to call
12135 expand_symtabs_matching.
12136 (make_source_files_completion_list): Update to call
12137 map_symbol_filenames.
12138
206f2a57
DE
121392014-01-14 Doug Evans <dje@google.com>
12140
12141 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12142 (expand_symtabs_symbol_matcher_ftype): New typedef.
12143 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12144 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12145 * symfile.c (expand_partial_symbol_names): Update to use
12146 expand_symtabs_symbol_matcher_ftype.
12147 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12148 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12149 Arg name_matcher renamed to symbol_matcher.
12150 * psymtab.c (recursively_search_psymtabs): Update to use
12151 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12152 sym_matcher.
12153 (expand_symtabs_matching_via_partial): Update to use
12154 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12155 Arg name_matcher renamed to symbol_matcher.
12156
540c2971
DE
121572014-01-14 Doug Evans <dje@google.com>
12158
12159 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12160 (map_partial_symbol_filenames): Ditto.
12161 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12162 (map_partial_symbol_filenames): Ditto.
12163 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12164 (map_partial_symbol_filenames): Ditto.
12165 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12166 (map_partial_symbol_filenames): Ditto.
12167 * symtab.c: Delete #include "psymtab.h".
12168
8213266a
PA
121692014-01-14 Pedro Alves <palves@redhat.com>
12170 Tom Tromey <tromey@redhat.com>
12171
12172 * infrun.c (use_displaced_stepping): Use find_record_target
12173 instead of RECORD_IS_USED.
12174 (adjust_pc_after_break): Use record_full_is_used instead of
12175 RECORD_IS_USED.
12176 * record-btrace.c (record_btrace_open): Call record_preopen
12177 instead of checking RECORD_IS_USED.
12178 * record-full.c (record_full_shortname)
12179 (record_full_core_shortname): New globals.
12180 (record_full_is_used): New function.
12181 (find_full_open): Call record_preopen instead of checking
12182 RECORD_IS_USED.
12183 (init_record_full_ops): Set the target's shortname to
12184 record_full_shortname.
12185 (init_record_full_core_ops): Set the target's shortname to
12186 record_full_core_shortname.
12187 * record-full.h (record_full_is_used): Declare.
12188 * record.c (find_record_target): Make extern.
12189 (record_preopen): New function.
12190 * record.h (RECORD_IS_USED): Delete macro.
12191 (find_record_target, record_preopen): Declare functions.
12192
7ec1862d
YQ
121932014-01-14 Yao Qi <yao@codesourcery.com>
12194
12195 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12196 'len''s type to ULONGEST.
12197 (core_xfer_shared_libraries_aix): Likewise.
12198 * gdbarch.c, gdbarch.h: Regenerated.
12199 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12200 Change type of 'len' to ULONGEST.
12201 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12202 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12203
dea80a27
YQ
122042014-01-14 Yao Qi <yao@codesourcery.com>
12205
12206 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12207 type of 'len' to ULONGEST.
12208 (linux_xfer_osdata_processgroups): Likewise.
12209 (linux_xfer_osdata_threads): Likewise.
12210 (linux_xfer_osdata_fds): Likewise.
12211 (linux_xfer_osdata_isockets): Likewise.
12212 (linux_xfer_osdata_shm): Likewise.
12213 (linux_xfer_osdata_sem): Likewise.
12214 (linux_xfer_osdata_msg): Likewise.
12215 (linux_common_xfer_osdata): Likewise.
12216 (struct osdata_type) <getter>: Likewise.
12217 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12218 the declaration.
12219
b55e14c7
YQ
122202014-01-14 Yao Qi <yao@codesourcery.com>
12221
12222 * target.h (target_xfer_partial_ftype): Update.
12223 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12224 ULONGEST.
12225 * aix-thread.c (aix_thread_xfer_partial): Change type of
12226 argument 'len' to ULONGEST.
12227 * auxv.c (procfs_xfer_auxv): Likewise.
12228 (ld_so_xfer_auxv): Likewise.
12229 (memory_xfer_auxv): Likewise.
12230 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12231 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12232 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12233 * corelow.c (core_xfer_partial): Likewise.
12234 * ctf.c (ctf_xfer_partial): Likewise.
12235 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12236 '%u'.
12237 (darwin_read_dyld_info): Likewise.
12238 (darwin_xfer_partial): Likewise.
12239 * exec.c (section_table_xfer_memory_partial): Likewise.
12240 (exec_xfer_partial): Likewise.
12241 * exec.h (section_table_xfer_memory_partial): Update
12242 declaration.
12243 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12244 instead of plongest.
12245 (gnu_xfer_partial): Likewise.
12246 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12247 (ia64_hpux_xfer_solib_got): Likewise.
12248 (ia64_hpux_xfer_partial): Likewise.
12249 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12250 * inf-ptrace.c (inf_ptrace_xfer_partial):
12251 * inf-ttrace.c (inf_ttrace_xfer_partial):
12252 * linux-nat.c (linux_xfer_siginfo): Likewise.
12253 (linux_nat_xfer_partial): Likewise.
12254 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12255 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12256 * monitor.c (monitor_xfer_memory): Likewise.
12257 (monitor_xfer_partial): Likewise.
12258 * procfs.c (procfs_xfer_partial): Likewise.
12259 * record-full.c (record_full_xfer_partial): Likewise.
12260 (record_full_core_xfer_partial): Likewise.
12261 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12262 instead of plongest.
12263 (gdbsim_xfer_partial): Likewise.
12264 * remote.c (remote_xfer_partial): Likewise.
12265 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12266 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12267 declaration.
12268 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12269 (rs6000_xfer_shared_libraries): Likewise.
12270 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12271 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12272 (sparc_xfer_partial): Likewise.
12273 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12274 (spu_xfer_partial): Likewise.
12275 * spu-multiarch.c (spu_xfer_partial): Likewise.
12276 * target.c (target_read_live_memory): Likewise.
12277 (memory_xfer_live_readonly_partial): Likewise.
12278 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12279 (target_xfer_partial, default_xfer_partial): Likewise.
12280 (current_xfer_partial): Likewise.
12281 * tracepoint.c (tfile_xfer_partial): Likewise.
12282 * windows-nat.c (windows_xfer_memory): Likewise. Call
12283 pulongest instead of plongest.
12284 (windows_xfer_partial): Likewise.
12285 (windows_xfer_shared_libraries): Likewise.
12286
05804640
YQ
122872014-01-14 Yao Qi <yao@codesourcery.com>
12288
12289 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12290 target_xfer_partial_ftype.
12291
b5b08fb4
SC
122922014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12293
12294 PR python/15464
12295 PR python/16113
12296 * valops.c (value_struct_elt_bitpos): New function
12297 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12298 object to 'None' if the field name is an empty string ("").
12299 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12300 attribute to look for a field when 'name' is 'None'.
12301 (get_field_type): New function
12302
13aaf454
DE
123032014-01-13 Doug Evans <dje@google.com>
12304
12305 PR symtab/16426
12306 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12307 (try_open_dwop_file): Ditto.
12308 * gdb_bfd.c: #include "vec.h".
12309 (bfdp): New typedef.
12310 (struct gdb_bfd_data): New member included_bfds.
12311 (gdb_bfd_unref): Unref all included bfds.
12312 (gdb_bfd_record_inclusion): New function.
12313 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12314
c2cec97c
TT
123152014-01-13 Tom Tromey <tromey@redhat.com>
12316
12317 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12318
78e5999d
TT
123192014-01-13 Tom Tromey <tromey@redhat.com>
12320
12321 * defs.h (use_windows): Remove.
12322 * gdb.c (main): Update.
12323 * main.c (captured_main, gdb_main): Update.
12324 * main.h (struct captured_main_args) <use_windows>: Remove.
12325 * top.c (use_windows): Remove.
12326
f2052bbe
TT
123272014-01-13 Tom Tromey <tromey@redhat.com>
12328
12329 * defs.h (deprecated_flush_hook): Remove.
12330
fde4f8ed
JK
123312014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12332
12333 PR threads/16216
12334 * linux-thread-db.c (try_thread_db_load): Add parameter
12335 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12336 (try_thread_db_load_from_pdir_1): Move it there from here.
12337 (try_thread_db_load_from_sdir): Update caller.
12338 (try_thread_db_load_from_dir): Move it there from here.
12339
bdf61915
PP
123402014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12341
12342 * regformats/regdat.sh: Always rewrite the register file.
12343
f71e1a8d
PA
123442014-01-13 Pedro Alves <palves@redhat.com>
12345
12346 * Makefile.in (CHECK_HEADERS): New variable.
12347 (check-headers:): New rule.
12348
42c85435
TT
123492014-01-13 Tom Tromey <tromey@redhat.com>
12350
12351 * cli/cli-setshow.c (do_set_command): Update.
12352 * defs.h (deprecated_set_hook): Remove.
12353 * top.c (deprecated_set_hook): Remove.
12354
f8de5129
PA
123552014-01-13 Pedro Alves <palves@redhat.com>
12356
12357 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12358 the tracepoint if the PC is a pseudo-register.
12359
fc270c35
TT
123602014-01-13 Tom Tromey <tromey@redhat.com>
12361
12362 * defs.h (XCALLOC): Remove.
12363 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12364 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12365 * dwarf2loc.c (allocate_piece_closure): Likewise.
12366 * elfread.c (elf_symfile_segments): Likewise.
12367 (elf_symfile_segments): Likewise.
12368 * gdbtypes.c (copy_type_recursive): Likewise.
12369 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12370 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12371 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12372 XCALLOC.
12373 * mt-tdep.c (mt_gdbarch_init): Likewise.
12374 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12375 XCALLOC.
12376 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12377 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12378 * registry.c (registry_alloc_data): Likewise.
12379 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12380 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12381 * serial.c (serial_fdopen_ops): Likewise.
12382 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12383 XCALLOC.
12384 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12385 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12386 not XCALLOC.
12387
70ba0933
TT
123882014-01-13 Tom Tromey <tromey@redhat.com>
12389
12390 * defs.h (XMALLOC): Remove.
12391 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12392 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12393 * cli-out.c (struct ui_out *): Likewise.
12394 * cli/cli-dump.c (add_dump_command): Likewise.
12395 (add_dump_command): Likewise.
12396 * complaints.c (get_complaints): Likewise.
12397 (find_complaint): Likewise.
12398 * dwarf2-frame.c (execute_cfa_program): Likewise.
12399 * dwarf2read.c (abbrev_table_read_table): Likewise.
12400 * gdbarch.sh: Likewise.
12401 * gdbarch.c: Rebuild.
12402 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12403 * interps.c (interp_new): Likewise.
12404 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12405 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12406 * mi/mi-console.c (mi_console_file_new): Likewise.
12407 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12408 * mi/mi-out.c (mi_out_new): Likewise.
12409 * mi/mi-parse.c (mi_parse): Likewise.
12410 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12411 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12412 * observer.c (xalloc_observer_list_node): Likewise.
12413 * regcache.c (regcache_xmalloc_1): Likewise.
12414 * reggroups.c (reggroup_new): Likewise.
12415 (_initialize_reggroup): Likewise.
12416 * registry.c (register_data_with_cleanup): Likewise.
12417 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12418 * ser-base.c (serial_ttystate): Likewise.
12419 * ser-mingw.c (make_pipe_state): Likewise.
12420 * ser-pipe.c (pipe_open): Likewise.
12421 * serial.c (serial_open): Likewise.
12422 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12423 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12424 (tui_alloc_win_info): Likewise.
12425 (tui_add_content_elements): Likewise.
12426 * tui/tui-file.c (tui_file_new): Likewise.
12427 * tui/tui-out.c (tui_out_new): Likewise.
12428 * ui-file.c (mem_file_new): Likewise.
12429 * ui-out.c (push_level): Likewise.
12430 (make_cleanup_ui_out_end): Likewise.
12431 (append_header_to_list): Likewise.
12432 (ui_out_new): Likewise.
12433 * user-regs.c (user_reg_add_builtin): Likewise.
12434
41bf6aca
TT
124352014-01-13 Tom Tromey <tromey@redhat.com>
12436
12437 * defs.h (XZALLOC): Remove.
12438 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12439 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12440 (get_ada_tasks_inferior_data): Likewise.
12441 * auto-load.c (get_auto_load_pspace_data): Likewise.
12442 * auxv.c (get_auxv_inferior_data): Likewise.
12443 * bfd-target.c (target_bfd_reopen): Likewise.
12444 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12445 (deprecated_insert_raw_breakpoint): Likewise.
12446 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12447 * corelow.c (core_open): Likewise.
12448 * darwin-nat.c (darwin_check_new_threads): Likewise.
12449 (darwin_attach_pid): Likewise.
12450 * dummy-frame.c (dummy_frame_push): Likewise.
12451 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12452 * dwarf2loc.c (allocate_piece_closure): Likewise.
12453 * elfread.c (elf_symfile_segments): Likewise.
12454 * eval.c (ptrmath_type_p): Likewise.
12455 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12456 * gdbtypes.c (alloc_type_arch): Likewise.
12457 (alloc_type_instance): Likewise.
12458 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12459 * inf-child.c (inf_child_can_use_agent): Likewise.
12460 * inflow.c (get_inflow_inferior_data): Likewise.
12461 * infrun.c (save_infcall_suspend_state): Likewise.
12462 * jit.c (jit_reader_load): Likewise.
12463 (get_jit_objfile_data): Likewise.
12464 (get_jit_program_space_data): Likewise.
12465 (jit_object_open_impl): Likewise.
12466 (jit_symtab_open_impl): Likewise.
12467 (jit_block_open_impl): Likewise.
12468 (jit_frame_sniffer): Likewise.
12469 * linux-fork.c (add_fork): Likewise.
12470 * maint.c (make_command_stats_cleanup): Likewise.
12471 * objfiles.c (get_objfile_pspace_data): Likewise.
12472 * opencl-lang.c (struct lval_closure): Likewise.
12473 * osdata.c (osdata_start_osdata): Likewise.
12474 * progspace.c (new_address_space): Likewise.
12475 (add_program_space): Likewise.
12476 * remote-sim.c (get_sim_inferior_data): Likewise.
12477 * sh-tdep.c (sh_gdbarch_init): Likewise.
12478 * skip.c (Ignore): Likewise.
12479 (skip_delete_command): Likewise.
12480 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12481 (library_list_start_library): Likewise.
12482 (solib_aix_current_sos): Likewise.
12483 * solib-darwin.c (get_darwin_info): Likewise.
12484 (darwin_current_sos): Likewise.
12485 * solib-dsbt.c (get_dsbt_info): Likewise.
12486 * solib-ia64-hpux.c (new_so_list): Likewise.
12487 (ia64_hpux_get_solib_linkage_addr): Likewise.
12488 * solib-spu.c (append_ocl_sos): Likewise.
12489 (spu_current_sos): Likewise.
12490 * solib-svr4.c (get_svr4_info): Likewise.
12491 (svr4_keep_data_in_core): Likewise.
12492 (library_list_start_library): Likewise.
12493 (svr4_default_sos): Likewise.
12494 (svr4_read_so_list): Likewise.
12495 * solib-target.c (library_list_start_library): Likewise.
12496 (solib_target_current_sos): Likewise.
12497 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12498 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12499 * symfile.c (default_symfile_segments): Likewise.
12500 * target-descriptions.c (tdesc_data_init): Likewise.
12501 (tdesc_create_reg): Likewise.
12502 (struct tdesc_type *): Likewise.
12503 (tdesc_create_vector): Likewise.
12504 (tdesc_set_struct_size): Likewise.
12505 (struct tdesc_type *): Likewise.
12506 (tdesc_free_feature): Likewise.
12507 (tdesc_create_feature): Likewise.
12508 * windows-nat.c (windows_add_thread): Likewise.
12509 (windows_make_so): Likewise.
12510 * xml-support.c (gdb_xml_body_text): Likewise.
12511 (gdb_xml_create_parser_and_cleanup): Likewise.
12512 (xml_process_xincludes): Likewise.
12513 * xml-syscall.c (allocate_syscalls_info): Likewise.
12514 (syscall_create_syscall_desc): Likewise.
12515
5acfdbae
SDJ
125162014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12517
12518 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12519 function, with code from i386_stap_parse_special_token.
12520 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12521 (i386_stap_parse_special_token): Move code to the two functions
12522 above; simplify it.
12523
0000e5cc
PA
125242014-01-09 Pedro Alves <palves@redhat.com>
12525 Hui Zhu <hui@codesourcery.com>
12526
12527 PR gdb/16101
12528 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12529 bp_err_string. Don't mark the location shlib_disabled if the
12530 error thrown wasn't a generic or memory error. Catch errors
12531 thrown while inserting breakpoints in overlayed code. Output
12532 error message of software breakpoints.
12533 * remote.c (remote_insert_breakpoint): If this breakpoint has
12534 target-side commands but this stub doesn't support Z0 packets,
12535 throw NOT_SUPPORTED_ERROR error.
12536 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12537 * target.h (target_insert_breakpoint): Extend comment.
12538 (target_insert_hw_breakpoint): Add comment.
12539
b7ea362b
PA
125402014-01-08 Pedro Alves <palves@redhat.com>
12541
12542 * remote.c (remote_add_thread): Add threads silently if starting
12543 up.
12544 (remote_notice_new_inferior): If in all-stop, and starting up,
12545 don't call notice_new_inferior.
12546 (get_current_thread): New function, factored out from ...
12547 (add_current_inferior_and_thread): ... this. Adjust.
12548 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12549 found any thread, then select the remote's current thread as GDB's
12550 current thread too.
12551
b7bba001
JB
125522014-01-08 Joel Brobecker <brobecker@adacore.com>
12553
12554 * NEWS: Create a new section for the next release branch.
12555 Rename the section of the current branch, now that it has
12556 been cut.
12557
16dfbded
JB
125582014-01-08 Joel Brobecker <brobecker@adacore.com>
12559
12560 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12561 * version.in: Bump version to 7.7.50.DATE-cvs.
12562
22c90ac1
YQ
125632014-01-08 Yao Qi <yao@codesourcery.com>
12564
12565 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12566 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12567 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12568
d64ad97c
YQ
125692014-01-08 Yao Qi <yao@codesourcery.com>
12570
12571 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12572 return value of bfd_get_filename to symbol_file_add_from_bfd.
12573
f93ba80c
PM
125742014-01-08 Pierre Muller <muller@sourceware.org>
12575
12576 Fix PR16201.
12577 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12578 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12579 to prim_record_mininal_symbol_and_info.
12580 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12581 in call to prim_record_minimal_symbol_and_info.
12582 (read_pe_exported_syms): Set index field of section_data.
12583
a4d9ba85
AP
125842014-01-07 Andrew Pinski <apinski@cavium.com>
12585
12586 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12587 * features/aarch64.c: Regenerate.
12588
1b67eb02
AS
125892014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12590
12591 * target.c (return_null): Define.
12592 (update_current_target): Use it instead of return_zero for
12593 functions that return a pointer.
12594
5e3f4fab
EBM
125952014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12596
12597 * source.c (add_path): Fix check for duplicated paths in the previously
12598 included paths.
12599
e2616788
HK
126002014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12601
12602 * ada-lang.c: Remove duplicated include statements.
12603 * alphabsd-nat.c: Ditto.
12604 * amd64-darwin-tdep.c: Ditto.
12605 * amd64fbsd-nat.c: Ditto.
12606 * auto-load.c: Ditto.
12607 * ax-gdb.c: Ditto.
12608 * breakpoint.c: Ditto.
12609 * dbxread.c: Ditto.
12610 * fork-child.c: Ditto.
12611 * gdb_usleep.c: Ditto.
12612 * i386-darwin-tdep.c: Ditto.
12613 * i386fbsd-nat.c: Ditto.
12614 * infcmd.c: Ditto.
12615 * inferior.c: Ditto.
12616 * jv-lang.c: Ditto.
12617 * linux-nat.c: Ditto.
12618 * linux-tdep.c: Ditto.
12619 * m68kbsd-nat.c: Ditto.
12620 * m68klinux-nat.c: Ditto.
12621 * microblaze-tdep.c: Ditto.
12622 * mips-linux-tdep.c: Ditto.
12623 * mn10300-tdep.c: Ditto.
12624 * nto-tdep.c: Ditto.
12625 * opencl-lang.c: Ditto.
12626 * osdata.c: Ditto.
12627 * printcmd.c: Ditto.
12628 * regcache.c: Ditto.
12629 * remote-m32r-sdi.c: Ditto.
12630 * remote.c: Ditto.
12631 * symfile.c: Ditto.
12632 * symtab.c: Ditto.
12633 * tilegx-linux-nat.c: Ditto.
12634 * tilegx-tdep.c: Ditto.
12635 * tracepoint.c: Ditto.
12636 * valops.c: Ditto.
12637 * vaxbsd-nat.c: Ditto.
12638 * windows-nat.c: Ditto.
12639 * xtensa-tdep.c: Ditto.
12640
bd1f7788
YQ
126412014-01-07 Yao Qi <yao@codesourcery.com>
12642
12643 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12644
79301218
JB
126452014-01-07 Yao Qi <yao@codesourcery.com>
12646 Joel Brobecker <brobecker@adacore.com>
12647
12648 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12649 (pdc_write_regs): Likewise.
12650 (fetch_regs_kernel_thread): Likewise.
12651 (store_regs_kernel_thread): Likewise.
12652
126532014-01-07 Joel Brobecker <brobecker@adacore.com>
12654
12655 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12656 tagged type objects to their actual type.
12657
8e355c5d
JB
126582014-01-07 Joel Brobecker <brobecker@adacore.com>
12659
12660 * ada-valprint.c (print_field_values): Add "language" parameter.
12661 Update calls to print_field_values and print_variant_part.
12662 Pass new parameter "language" in call to val_print instead
12663 of "current_language". Replace call to ada_val_print by call
12664 to val_print.
12665 (print_variant_part): Add "language" parameter.
12666 (ada_val_print_struct_union): Update call to print_field_values.
12667
4fbf5aa5
JB
126682014-01-07 Joel Brobecker <brobecker@adacore.com>
12669
12670 * ada-valprint.c (ui_memcpy): Delete.
12671 (ada_print_floating): Update documentation. Add empty line
12672 between between function documentation and implementation.
12673 Delete variable "buffer". Use ui_file_xstrdup in place of
12674 ui_file_put. Minor adjustments following this change.
12675
71855601
JB
126762014-01-07 Joel Brobecker <brobecker@adacore.com>
12677
12678 * ada-valprint.c (ada_val_print_string): New function,
12679 extracted from ada_val_print_array.
12680 (ada_val_print_array): Replace extracted code by call
12681 to ada_val_print_string followed by a return. Move
12682 "else" branch to the function's top block.
12683
4eb27a30
JB
126842014-01-07 Joel Brobecker <brobecker@adacore.com>
12685
12686 * ada-valprint.c (ada_val_print_array): Move implementation
12687 down. Rename parameter "offset" and "val" into "offset_aligned"
12688 and "original_value" respectively. Add parameter "offset".
12689
34b27950
JB
126902014-01-07 Joel Brobecker <brobecker@adacore.com>
12691
12692 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12693 re-organizing the code. Change the "???" message printed
12694 when target type is a TYPE_CODE_UNDEF into
12695 "<ref to undefined type>".
12696
079e4591
JB
126972014-01-07 Joel Brobecker <brobecker@adacore.com>
12698
12699 * ada-valprint.c (print_record): Delete, implementation inlined...
12700 (ada_val_print_struct_union): ... here. Remove call to
12701 ada_check_typedef in inlined implementation.
12702
8004dfd1
JB
127032014-01-07 Joel Brobecker <brobecker@adacore.com>
12704
12705 * ada-valprint.c (ada_val_print_gnat_array): New function,
12706 extracted from ada_val_print_1;
12707 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12708 (ada_val_print_flt, ada_val_print_struct_union)
12709 (ada_val_print_ref): Likewise.
12710 (ada_val_print_1): Delete variables i and elttype.
12711 Replace extracted-out code by call to corresponding
12712 new functions.
12713
760a2db0
JB
127142014-01-07 Joel Brobecker <brobecker@adacore.com>
12715
12716 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12717
3a92c861
JB
127182014-01-07 Joel Brobecker <brobecker@adacore.com>
12719
12720 * ada-valprint.c (ada_val_print_1): Replace calls to
12721 ada_val_print_1 by calls to val_print.
12722
cd1630f9
JB
127232014-01-07 Joel Brobecker <brobecker@adacore.com>
12724
12725 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12726 Update calls to self accordingly. Replace calls to c_val_print
12727 by calls to val_print.
12728
bdf779a0
JB
127292014-01-07 Joel Brobecker <brobecker@adacore.com>
12730
12731 * ada-valprint.c (print_record): Delete declaration.
12732 (adjust_type_signedness, ada_val_print_1): Likewise.
12733 (ada_val_print): Move function implementation down.
12734 (print_variant_part, print_field_values, print_record):
12735 Move function implementation up.
12736
c0d48811
JB
127372014-01-07 Joel Brobecker <brobecker@adacore.com>
12738
12739 * python/py-type.c (typy_get_name): New function.
12740 (type_object_getset): Add entry for attribute "name".
12741 * NEWS: Add entry mentioning this new attribute.
12742
c26e9cbb
YQ
127432014-01-07 Yao Qi <yao@codesourcery.com>
12744
12745 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12746 statement.
12747
0cc6f43d
YQ
127482014-01-07 Yao Qi <yao@codesourcery.com>
12749
12750 * gnu-nat.c (info_port_rights): Add qualifier const to
12751 argument args.
12752
eec03155
YQ
127532014-01-07 Yao Qi <yao@codesourcery.com>
12754
12755 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12756
f04a82ef
YQ
127572014-01-07 Yao Qi <yao@codesourcery.com>
12758
12759 * gnu-nat.c (make_inf) Update declaration.
12760 (make_inf): Make it static.
12761 (inf_set_traced): Likewise.
12762 (inf_port_to_thread, inf_task_died_status): Likewise.
12763
d57dda0a
YQ
127642014-01-07 Yao Qi <yao@codesourcery.com>
12765
12766 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12767
3aa8c969
YQ
127682014-01-07 Yao Qi <yao@codesourcery.com>
12769
12770 * gnu-nat.c (_initialize_gnu_nat): Declare.
12771
94123b4f
YQ
127722014-01-07 Yao Qi <yao@codesourcery.com>
12773
12774 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12775 'enum bfd_endian'.
12776 (struct gdbarch_info) <byte_order>: Change type to
12777 'enum bfd_endian'.
12778 <byte_order_for_code>: Likewise.
12779 * gdbarch.c, gdbarch.h: Regenerated.
12780
dc81d70a
TT
127812014-01-06 Sasha Smundak <asmundak@google.com>
12782
12783 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12784
cc2f3c35
TT
127852014-01-06 Tom Tromey <tromey@redhat.com>
12786
12787 * doublest.c (convert_doublest_to_floatformat): Use const, not
12788 CONST.
12789 * somread.c (som_symtab_read): Likewise.
12790
adcf2eed
HZ
127912014-01-07 Hui Zhu <hui@codesourcery.com>
12792
12793 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12794 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12795 (gdb_bfd_fopen): Ditto.
12796 (gdb_bfd_openr): Ditto.
12797 (gdb_bfd_openw): Ditto.
12798 (gdb_bfd_openr_iovec): Ditto.
12799 (gdb_bfd_fdopenr): Ditto.
12800 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12801 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12802 with xstrdup.
12803 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12804 with xstrdup.
12805 * symfile-mem.c (symbol_file_add_from_memory): Removed
12806 gdb_bfd_stash_filename.
12807
50722198
DE
128082014-01-03 Doug Evans <dje@google.com>
12809
12810 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12811 output.
12812
2fa4b862
JB
128132014-01-01 Joel Brobecker <brobecker@adacore.com>
12814
12815 Update year range in copyright notice of all files.
12816
28498c42
JB
128172014-01-01 Joel Brobecker <brobecker@adacore.com>
12818
12819 * top.c (print_gdb_version): Set copyright year to 2014.
12820
7b6e1046
JB
128212014-01-01 Joel Brobecker <brobecker@adacore.com>
12822
12823 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12824
df96af55 12825For older changes see ChangeLog-2013.
c906108c
SS
12826\f
12827Local Variables:
12828mode: change-log
12829left-margin: 8
12830fill-column: 74
12831version-control: never
57da7796 12832coding: utf-8
c906108c 12833End:
This page took 2.696286 seconds and 4 git commands to generate.