Include common-defs.h instead of defs.h/server.h in shared code
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
727605ca
GB
12014-09-12 Gary Benson <gbenson@redhat.com>
2
3 * common/agent.c: Include common-defs.h.
4 Don't include defs.h or server.h.
5 * common/buffer.c: Likewise.
6 * common/common-debug.c: Likewise.
7 * common/common-utils.c: Likewise.
8 * common/errors.c: Likewise.
9 * common/filestuff.c: Likewise.
10 * common/format.c: Likewise.
11 * common/gdb_vecs.c: Likewise.
12 * common/print-utils.c: Likewise.
13 * common/ptid.c: Likewise.
14 * common/rsp-low.c: Likewise.
15 * common/signals.c: Likewise.
16 * common/vec.c: Likewise.
17 * common/xml-utils.c: Likewise.
18 * nat/linux-osdata.c: Likewise.
19 * nat/linux-procfs.c: Likewise.
20 * nat/linux-ptrace.c: Likewise.
21 * nat/mips-linux-watch.c: Likewise.
22 * target/waitstatus.c: Likewise.
23
361c8ade
GB
242014-09-12 Tom Tromey <tromey@redhat.com>
25 Gary Benson <gbenson@redhat.com>
26
27 * common/common-regcache.h: New file.
28 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
29 * regcache.h: Include common-regcache.h.
30 (regcache_read_pc): Don't declare.
31 * regcache.c (get_thread_regcache_for_ptid): New function.
32 * nat/linux-btrace.c: Don't include regcache.h.
33 Include common-regcache.h.
34 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
35
a01cbb49
TS
362014-09-11 Thomas Schwinge <thomas@codesourcery.com>
37
38 * regcache.h (struct regset): Declare.
39
98880d46
PA
402014-09-11 Pedro Alves <palves@redhat.com>
41
42 PR gdb/17347
43 * main.c: Include "infrun.h".
44 (catch_command_errors, catch_command_errors_const): Wait for the
45 foreground command to complete.
46 * top.c (maybe_wait_sync_command_done): New function, factored out
47 from ...
48 (maybe_wait_sync_command_done): ... here.
49 * top.h (maybe_wait_sync_command_done): New declaration.
50
bd9269f7
GB
512014-09-11 Tom Tromey <tromey@redhat.com>
52 Gary Benson <gbenson@redhat.com>
53
54 * common/symbol.h: New file.
55 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
56 * minsyms.c (find_minimal_symbol_address): New function.
57 * common/agent.c: Include common/symbol.h.
58 [!GDBSERVER]: Don't include objfiles.h.
59 (agent_look_up_symbols): Use find_minimal_symbol_address.
60
f8c1d06b
GB
612014-09-11 Gary Benson <gbenson@redhat.com>
62
63 * target/target.h (target_stop_ptid, target_continue_ptid):
64 Declare.
65 * target.c (target_stop_ptid, target_continue_ptid): New
66 functions.
67 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
68 (agent_run_command): Always use target_stop_ptid and
69 target_continue_ptid.
70
721ec300
GB
712014-09-11 Tom Tromey <tromey@redhat.com>
72 Gary Benson <gbenson@redhat.com>
73
74 * target/target.h: New file.
75 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
76 * target.h: Include target/target.h.
77 (target_read_memory, target_write_memory): Don't declare.
78 * target.c (target_read_uint32): New function.
79 * common/agent.c: Include target/target.h.
80 [!GDBSERVER]: Don't include target.h.
81 (helper_thread_id): Type changed to uint32_t.
82 (agent_get_helper_thread_id): Use target_read_uint32.
83 (agent_run_command): Always use target_read_memory and
84 target_write_memory.
85 (agent_capability): Type changed to uint32_t.
86 (agent_capability_check): Use target_read_uint32.
87
c5e92cca
GB
882014-09-11 Gary Benson <gbenson@redhat.com>
89
90 * common/common-debug.h (show_debug_regs): Declare.
91 * common/common-debug.c (show_debug_regs): Define.
92 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
93 all uses with show_debug_regs. Replace all uses that considered
94 debug_hw_points as a multi-value integer with straight boolean
95 uses.
96 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
97 with show_debug_regs.
98 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
99 all uses with show_debug_regs.
100 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
101 uses with show_debug_regs.
102
eeef931a
UW
1032014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
104
105 * findvar.c (address_from_register): Handle targets requiring
106 a special conversion routine even for plain pointer types.
107
8efa9855
UW
1082014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
109
110 * rs6000-nat.c (exec_one_dummy_insn): Remove.
111 (store_register): Do not call exec_one_dummy_insn.
112
eb479039
JB
1132014-09-10 Joel Brobecker <brobecker@adacore.com>
114
115 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
116 dereference it first. Use value_enclosing_type instead of
117 value_type.
118 (ada_array_length): Likewise.
119
deede10c
JB
1202014-09-10 Joel Brobecker <brobecker@adacore.com>
121
122 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
123 Adjust function implementation and documentation accordingly.
124 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
125 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
126 Update call to ada_value_ptr_subscript.
127
7828a5f5
JB
1282014-09-10 Joel Brobecker <brobecker@adacore.com>
129
130 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
131 instead of VAL's type.
132
35782f14
JB
1332014-09-10 Joel Brobecker <brobecker@adacore.com>
134
135 * amd64-linux-nat.c: Add <sys/uio.h> #include.
136
d342a0da
DE
1372014-09-09 Doug Evans <xdje42@gmail.com>
138
139 PR guile/17367
140 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
141 last parameter to pkg-config, not first.
142 * configure.ac: Pass --with-guile provided pkg-config path to
143 GDB_GUILE_PROGRAM_NAMES.
144 * configure: Regenerate.
145
b4a3d263
GKB
1462014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
147
148 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
149 Bertazi".
150
6e466374
MR
1512014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
152
153 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
154 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
155 the list of sections determining GDB_OSABI_IRIX.
156
a1ada89a
JH
1572014-09-09 James Hogan <james.hogan@imgtec.com>
158
159 * MAINTAINERS (Write After Approval): Add "James Hogan".
160
86db008d
JH
1612014-09-09 James Hogan <james.hogan@imgtec.com>
162
163 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
164
72fde3df
JB
1652014-09-09 Joel Brobecker <brobecker@adacore.com>
166
167 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
168
92d8d229
DE
1692014-09-08 Doug Evans <xdje42@gmail.com>
170
171 PR 17247
172 * guile.c: #include <signal.h>.
173 (_initialize_guile): Block SIGCHLD while initializing Guile.
174
175 Replaces the following, which is reverted.
176
177 2014-07-26 Doug Evans <xdje42@gmail.com>
178
179 PR 17185
180 * configure.ac: Add check for header gc/gc.h.
181 Add check for function setenv.
182 * configure: Regenerate.
183 * config.in: Regenerate.
184 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
185
d81412aa
DE
1862014-09-08 Doug Evans <xdje42@gmail.com>
187
188 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
189 with named constant. Fix style of pointer comparison.
190 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
191
a9f116cb
GKB
1922014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
193
194 PR gdb/17035
195 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
196 decide whether we display the command on "show user".
197 * cli/cli-script.c (show_user_1): Only verify cmdlines after
198 printing command name.
199 * cli/cli-decode.h (cli_user_command_p): Declare new function.
200 * cli/cli-decode.c (cli_user_command_p): Create helper function
201 to verify whether cmd_list_element is a user-defined command.
202
c75bd3a2
JK
2032014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
204
205 PR python/17355
206 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
207 Fix goto out of TRY_CATCH.
208
faa42425 2092014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 210 Tom Tromey <tromey@redhat.com>
faa42425
DE
211
212 PR 15276
213 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
214 $_any_caller_matches.
215 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
216 * python/lib/gdb/function/caller_is.py: New file.
217
0d41ba00
DE
2182014-09-06 Doug Evans <xdje42@gmail.com>
219
220 * infcmd.c (program_info): Fix typo.
221
474ca4f6
SDJ
2222014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
223
224 PR gdb/17235
225 * stap-probe.c (stap_parse_single_operand): Delete unused variable
226 'number'. New variable 'has_digit'. Rewrite code to deal with
227 subexpressions on SDT probes.
228
ebf13736
PA
2292014-09-04 Pedro Alves <palves@redhat.com>
230
231 * c-exp.y (parse_number): Skip handling base-switching prefixes if
232 the input is only one character long.
233
eb0b0463
SDJ
2342014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
235
236 PR fortran/17237
237 * f-valprint.c (f_val_print): Specify the correct print option to
238 use when printing integer values.
239
5ee44bfa
GB
2402014-09-04 Gary Benson <gbenson@redhat.com>
241
242 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
243 Remove code to cope with LWPs wrapped as PIDs.
244 Add assertions to ensure no wrapped LWPs are passed.
245
4875ffdb
PA
2462014-09-04 Pedro Alves <palves@redhat.com>
247
248 * value.c (value_ranges_copy_adjusted): New function, factored out
249 from ...
250 (value_contents_copy_raw): ... here.
251 (unpack_value_bits_as_long_1): Rename back to ...
252 (unpack_bits_as_long): ... this. Remove 'original_value' and
253 'result' parameters. Change return type to LONGEST.
254 (unpack_value_bits_as_long): Delete.
255 (unpack_value_field_as_long_1): Delete.
256 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
257 (unpack_value_bitfield): New function.
258 (value_field_bitfield): Reimplement using unpack_value_bitfield.
259 (value_fetch_lazy): Use unpack_value_bitfield.
260 * value.h (unpack_value_bits_as_long): Delete declaration.
261
5f3b99cf
SS
2622014-09-03 Sasha Smundak <asmundak@google.com>
263
264 * python/py-frame.c (frapy_read_register): New function.
265
ac740bc7
JH
2662014-09-03 James Hogan <james.hogan@imgtec.com>
267
268 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
269 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
270
7d793aa9
SDJ
2712014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
272
273 PR python/16699
274 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
275 function.
276 (add_cmd): Set "completer_handle_brkchars" to NULL.
277 * cli/cli-decode.h (struct cmd_list_element)
278 <completer_handle_brkchars>: New field.
279 * command.h (completer_ftype_void): New typedef.
280 (set_cmd_completer_handle_brkchars): New prototype.
281 * completer.c (set_gdb_completion_word_break_characters): New
282 function.
283 (complete_line_internal): Call "completer_handle_brkchars"
284 callback from command.
285 * completer.h: Include "command.h".
286 (set_gdb_completion_word_break_characters): New prototype.
287 * python/py-cmd.c (cmdpy_completer_helper): New function.
288 (cmdpy_completer_handle_brkchars): New function.
289 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
290 (cmdpy_init): Set completer_handle_brkchars to
291 cmdpy_completer_handle_brkchars.
292
97ea6506
GB
2932014-09-03 Gary Benson <gbenson@redhat.com>
294
295 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
296 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
297 Loop conditions changed to equivalent form.
298 (struct x86_debug_reg_state): Updated dr_ref_count comment.
299 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
300 ALL_DEBUG_ADDRESS_REGISTERS.
301
d1437815
JB
3022014-09-03 Joel Brobecker <brobecker@adacore.com>
303
304 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
305 description fix.
306
9b94fcf1
DE
3072014-09-02 Doug Evans <dje@google.com>
308
309 * typeprint.c (find_global_typedef): Fix comment.
310
df7e5265
GB
3112014-09-02 Gary Benson <gbenson@redhat.com>
312
313 * i386-nat.h: Renamed as...
314 * x86-nat.h: New file. All type, function and variable name
315 prefixes changed from "i386_" to "x86_". All references updated.
316 * i386-nat.c: Renamed as...
317 * x86-nat.c: New file. All type, function and variable name
318 prefixes changed from "i386_" to "x86_". All references updated.
319 * common/i386-xstate.h: Renamed as...
320 * common/x86-xstate.h: New file. All type, function and variable
321 name prefixes changed from "i386_" to "x86_". All references
322 updated.
323 * nat/i386-cpuid.h: Renamed as...
324 * nat/x86-cpuid.h: New file. All type, function and variable name
325 prefixes changed from "i386_" to "x86_". All references updated.
326 * nat/i386-gcc-cpuid.h: Renamed as...
327 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
328 name prefixes changed from "i386_" to "x86_". All references
329 updated.
330 * nat/i386-dregs.h: Renamed as...
331 * nat/x86-dregs.h: New file. All type, function and variable name
332 prefixes changed from "i386_" to "x86_". All references updated.
333 * nat/i386-dregs.c: Renamed as...
334 * nat/x86-dregs.c: New file. All type, function and variable name
335 prefixes changed from "i386_" to "x86_". All references updated.
336
1c3569d4
MR
3372014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
338
339 * varobj.c (_initialize_varobj): Move to the end of file.
340
ff55e1b5
GB
3412014-08-29 Gary Benson <gbenson@redhat.com>
342
343 * common/common-exceptions.h: New file.
344 * common/common-exceptions.c: Likewise.
345 * Makefile.in (SFILES): Add common/common-exceptions.c.
346 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
347 (COMMON_OBS): Add common-exceptions.o.
348 (common-exceptions.o): New rule.
349 * exceptions.h (common-exceptions.h): Include.
350 (gdb_setjmp.h): Do not include.
351 (return_reason): Moved to common-exceptions.h.
352 (enum return_reason): Likewise.
353 (RETURN_MASK): Likewise.
354 (typedef return_mask): Likewise.
355 (enum errors): Likewise.
356 (struct gdb_exception): Likewise.
357 (exceptions_state_mc_init): Likewise.
358 (exceptions_state_mc_action_iter): Likewise.
359 (exceptions_state_mc_action_iter_1): Likewise.
360 (TRY_CATCH): Likewise.
361 (throw_exception): Likewise.
362 (throw_verror): Likewise.
363 (throw_vquit): Likewise.
364 (throw_error): Likewise.
365 (throw_quit): Likewise.
366 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
367 (enum catcher_action): Likewise.
368 (struct catcher): Likewise.
369 (current_catcher): Likewise.
370 (catcher_list_size): Likewise.
371 (exceptions_state_mc_init): Likewise.
372 (catcher_pop): Likewise.
373 (exceptions_state_mc): Likewise.
374 (exceptions_state_mc_action_iter): Likewise.
375 (exceptions_state_mc_action_iter_1): Likewise.
376 (throw_exception): Likewise.
377 (exception_messages): Likewise.
378 (exception_messages_size): Likewise.
379 (throw_it): Likewise.
380 (throw_verror): Likewise.
381 (throw_vquit): Likewise.
382 (throw_error): Likewise.
383 (throw_quit): Likewise.
384 (prepare_to_throw_exception): New function.
385
e9bcb658
GB
3862014-08-29 Gary Benson <gbenson@redhat.com>
387
388 * common/gdb_setjmp.h: New file.
389 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
390 * configure.ac: Move sigsetjmp check...
391 * common/common.m4: ...here.
392 * configure: Regenerate.
393 * cp-support.c (SIGJMP_BUF): Delete.
394 (SIGSETJMP): Likewise.
395 (SIGLONGJMP): Likewise.
396 * exceptions.h (gdb_setjmp.h): Include.
397 (setjmp.h): Do not include.
398 (EXCEPTIONS_SIGJMP_BUF): Delete.
399 (EXCEPTIONS_SIGSETJMP): Likewise.
400 (EXCEPTIONS_SIGLONGJMP): Likewise.
401 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
402 from gdb_setjmp.h.
403 * exceptions.c: Likewise.
404
e3180625
GB
4052014-08-29 Gary Benson <gbenson@redhat.com>
406
407 * cleanups.h: Moved to...
408 * common/cleanups.h: New file.
409 * cleanups.c: Moved to...
410 * common/cleanups.c: New file. Include common-defs.h and
411 cleanups.h. Do not include defs.h.
412 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
413 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
414 (cleanups.o): New rule.
415
e3d6ba5d
GB
4162014-08-29 Gary Benson <gbenson@redhat.com>
417
418 * common/errors.h (internal_warning): New declaration.
419 (internal_vwarning): Likewise.
420 * common/errors.c (internal_warning): New function.
421 * utils.h (internal_warning): Don't declare.
422 (internal_vwarning): Likewise.
423 * utils.c (internal_warning): Removed.
424
075c7033
GB
4252014-08-29 Gary Benson <gbenson@redhat.com>
426
427 * main.c (captured_main): Use warning during startup.
428 Prefix startup warning messages with command name.
429
91b35fd0
GB
4302014-08-29 Gary Benson <gbenson@redhat.com>
431
432 * main.c (captured_main): Handle usage errors with error.
433
b1ec390e
GB
4342014-08-29 Gary Benson <gbenson@redhat.com>
435
436 * go32-nat.c (go32_create_inferior): Replace a fprintf/
437 exit pair with a call to error. Wrap the message with _().
438
fd0ef3dd
GB
4392014-08-29 Gary Benson <gbenson@redhat.com>
440
441 * main.c (captured_main): Replace a fprintf/exit
442 pair with a call to error. Wrap the message with _().
443
e0e6bcab
GB
4442014-08-29 Gary Benson <gbenson@redhat.com>
445
446 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
447 pairs with calls to error. Wrap the message with _().
448
0d2f5c07
GB
4492014-08-29 Gary Benson <gbenson@redhat.com>
450
451 * utils.c (vwarning): Protect calls to target_terminal_ours
452 and wrap_here.
453
5df43998
GB
4542014-08-29 Gary Benson <gbenson@redhat.com>
455
456 * exceptions.c (print_flush): Protect calls to
457 target_terminal_ours and wrap_here.
458
2437fd32
GB
4592014-08-29 Gary Benson <gbenson@redhat.com>
460
461 * utils.h (filtered_printing_initialized): New declaration.
462 * utils.c (abort_with_message): New function.
463 (internal_vproblem): Use abort_with_message for first level
464 recursive internal problems, and if gdb_stderr is not set up.
465 Protect calls to target_terminal_ours, begin_line and query.
466
f1f58506
DE
4672014-08-28 Doug Evans <dje@google.com>
468
469 * symtab.c (in_prologue): Move definition to better spot.
470 (skip_prologue_using_sal): Ditto.
471
aab2f208
DE
4722014-08-28 Doug Evans <dje@google.com>
473
474 * symtab.c (find_function_start_sal): Move definition to better spot.
475
6b65d1b6
YQ
4762014-08-28 Yao Qi <yao@codesourcery.com>
477
478 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
479 found_stack_adjust in forward scan. Remove condition check
480 on found_stack_adjust which is always true. Indent the code.
481
a1b34d15
YQ
4822014-08-28 Yao Qi <yao@codesourcery.com>
483
484 * dwarf2read.c (dwarf_decode_lines): Update declaration.
485 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
486 (dwarf_decode_lines): Remove argument
487 want_line_info. Remove condition check on want_line_info.
488 Callers update.
489
d5962de5
DE
4902014-08-27 Doug Evans <dje@google.com>
491
492 * dwarf2read.c (dwarf_record_line): Fix typo.
493
9b139002
SDJ
4942014-08-27 Patrick Palka <patrick@parcs.ath.cx>
495
496 * target.h (struct target_ops::to_terminal_save_ours): Remove
497 declaration.
498 (target_terminal_save_ours): Remove macro.
499 * target-delegates.c: Regenerate.
500 * inf-child.c (inf_child_target): Don't set the nonexistent
501 field to_terminal_save_ours.
502 * inferior.h (child_terminal_save_ours): Remove declaration.
503 * terminal.h (gdb_save_tty_state): New declaration.
504 * inflow.c (child_terminal_save_ours): Rename to ...
505 (gdb_save_tty_state): ... this.
506 * tui/tui.c: Include terminal.h.
507 (tui_enable): Use gdb_save_tty_state instead of
508 target_terminal_save_ours.
509 (tui_disable): Likewise.
510
9debeba0
DE
5112014-08-25 Doug Evans <dje@google.com>
512
513 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
514 Pass NULL instead of 0 for context pointer.
515
428fc5fc
YQ
5162014-08-25 Yao Qi <yao@codesourcery.com>
517
518 * dwarf2read.c: Fix grammatical error.
519
cdc07690
YQ
5202014-08-24 Yao Qi <yao@codesourcery.com>
521
522 * dwarf2read.c (scan_partial_symbols): Update comments.
523 Rename argument 'need_pc' with 'set_addrmap'.
524 (add_partial_namespace): Rename argument 'need_pc' with
525 'set_addrmap'.
526 (add_partial_module): Likewise.
527 (add_partial_subprogram): Likewise. Update comments.
528 (dwarf2_name): Fix typo.
529
a05a36a5
DE
5302014-08-22 Doug Evans <dje@google.com>
531
532 PR 17276
533 * dwarf2read.c (dwarf_record_line_p): New function.
534 (dwarf_decode_lines_1): Ignore subsequent line number entries
535 for the same line if any entry had a non-zero discriminator.
536
252a6764
DE
5372014-08-22 Doug Evans <dje@google.com>
538
539 * buildsym.h (record_line_ftype): New typedef.
540 (record_line): Use it.
541 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
542 (dwarf_decode_lines_1): Call them.
543
510db052
YQ
5442014-08-22 Yao Qi <yao@codesourcery.com>
545
546 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
547 (ctf_end): Remove code.
548
22fd09ae
JK
5492014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
550
551 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
552 (linux_make_corefile_notes): call update_thread_list, protected against
553 exceptions.
554
656e8868
PA
5552014-08-21 Pedro Alves <palves@redhat.com>
556
557 * infcmd.c (attach_command): Remove comment.
558
de589d04
WN
5592014-08-21 Bin Cheng <bin.cheng@arm.com>
560
561 * aarch64-linux-nat.c (dr_changed_t): Change the type from
562 unsigned LONGEST to ULONGEST.
563
2a31c623
PA
5642014-08-20 Pedro Alves <palves@redhat.com>
565
566 * Makefile.in (check-read1): New rule.
567
d36430db
JB
5682014-08-20 Joel Brobecker <brobecker@adacore.com>
569
570 * value.c (value_from_contents_and_address): Strip resolved_type's
571 typedef layers before checking its TYPE_DATA_LOCATION.
572
000339af
PA
5732014-08-20 Pedro Alves <palves@redhat.com>
574
575 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
576
5f52445b
YQ
5772014-08-20 Yao Qi <yao@codesourcery.com>
578
579 * amd64-tdep.c (amd64_classify): Add a blank line after the
580 example. Move "*/" to a new line.
581 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
582 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
583 * dwarf2read.c (psymtab_include_file_name): Likewise.
584
9a0dc9e3
PA
5852014-08-19 Andrew Burgess <aburgess@broadcom.com>
586 Pedro Alves <palves@redhat.com>
587
588 PR symtab/14604
589 PR symtab/14605
590 * ada-lang.c (coerce_unspec_val_to_type): Use
591 value_contents_copy_raw.
592 * ada-valprint.c (val_print_packed_array_elements): Adjust.
593 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
594 * cp-valprint.c (cp_print_value_fields): Let the common printing
595 code handle optimized out values.
596 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
597 * d-valprint.c (dynamic_array_type): Use
598 value_bits_any_optimized_out.
599 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
600 check_any_valid fields.
601 (check_pieced_value_bits): Delete and inline ...
602 (check_pieced_synthetic_pointer): ... here.
603 (check_pieced_value_validity): Delete.
604 (check_pieced_value_invalid): Delete.
605 (pieced_value_funcs): Remove check_validity and check_any_valid
606 fields.
607 (read_pieced_value): Use mark_value_bits_optimized_out.
608 (write_pieced_value): Switch to use
609 mark_value_bytes_optimized_out.
610 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
611 of assuming the whole value is optimized out.
612 * findvar.c (read_frame_register_value): Remove special handling
613 of optimized out registers.
614 (value_from_register): Use mark_value_bytes_optimized_out.
615 * frame-unwind.c (frame_unwind_got_optimized): Use
616 mark_value_bytes_optimized_out.
617 * jv-valprint.c (java_value_print): Adjust.
618 (java_print_value_fields): Let the common printing code handle
619 optimized out values.
620 * mips-tdep.c (mips_print_register): Remove special handling of
621 optimized out registers.
622 * opencl-lang.c (lval_func_check_validity): Delete.
623 (lval_func_check_any_valid): Delete.
624 (opencl_value_funcs): Remove check_validity and check_any_valid
625 fields.
626 * p-valprint.c (pascal_object_print_value_fields): Let the common
627 printing code handle optimized out values.
628 * stack.c (read_frame_arg): Remove special handling of optimized
629 out values. Fetch both VAL and ENTRYVAL before comparing
630 contents. Adjust to value_available_contents_eq rename.
631 * valprint.c (valprint_check_validity)
632 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
633 (val_print_array_elements): Adjust.
634 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
635 (value_bits_any_optimized_out): New function.
636 (value_entirely_covered_by_range_vector): New function, factored
637 out from value_entirely_unavailable.
638 (value_entirely_unavailable): Reimplement.
639 (value_entirely_optimized_out): New function.
640 (insert_into_bit_range_vector): New function, factored out from
641 mark_value_bits_unavailable.
642 (mark_value_bits_unavailable): Reimplement.
643 (struct ranges_and_idx): New struct.
644 (find_first_range_overlap_and_match): New function, factored out
645 from value_available_contents_bits_eq.
646 (value_available_contents_bits_eq): Rename to ...
647 (value_contents_bits_eq): ... this. Check both unavailable
648 contents and optimized out contents.
649 (value_available_contents_eq): Rename to ...
650 (value_contents_eq): ... this.
651 (allocate_value_lazy): Remove reference to the old optimized_out
652 boolean.
653 (allocate_optimized_out_value): Use
654 mark_value_bytes_optimized_out.
655 (require_not_optimized_out): Adjust to check whether the
656 optimized_out vec is empty.
657 (ranges_copy_adjusted): New function, factored out from
658 value_contents_copy_raw.
659 (value_contents_copy_raw): Also copy the optimized out ranges.
660 Assert the destination ranges aren't optimized out.
661 (value_contents_copy): Update comment, remove call to
662 require_not_optimized_out.
663 (value_contents_equal): Adjust to check whether the optimized_out
664 vec is empty.
665 (set_value_optimized_out, value_optimized_out_const): Delete.
666 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
667 New functions.
668 (value_entirely_optimized_out, value_bits_valid): Delete.
669 (value_copy): Take a VEC copy of the 'optimized_out' field.
670 (value_primitive_field): Remove special handling of optimized out.
671 (value_fetch_lazy): Assert that lazy values have no unavailable
672 regions. Use value_bits_any_optimized_out. Remove some special
673 handling for optimized out values.
674 * value.h: Add intro comment about <optimized out> and
675 <unavailable>.
676 (struct lval_funcs): Remove check_validity and check_any_valid
677 fields.
678 (set_value_optimized_out, value_optimized_out_const): Remove.
679 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
680 New declarations.
681 (value_bits_any_optimized_out): New declaration.
682 (value_bits_valid): Delete declaration.
683 (value_available_contents_eq): Rename to ...
684 (value_contents_eq): ... this, and extend comments.
685
6694c411
JK
6862014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
687
688 Fix -fsanitize=address on unreadable inferior strings.
689 * valprint.c (val_print_string): Fix access before BUFFER.
690
89a1c21a
SM
6912014-08-19 Simon Marchi <simon.marchi@ericsson.com>
692
693 * target.c (target_struct_size): Remove.
694 (target_struct_allocsize): Remove.
695 (DEFAULT_ALLOCSIZE): Remove.
696 (target_ops_p): New typedef.
697 (DEF_VEC_P (target_ops_p)): New vector type.
698 (target_structs): Change type to VEC (target_ops_p).
699 (add_target_with_completer): Replace "push" code by VEC_safe_push.
700 (find_default_run_target): Rewrite for loop following changes to
701 target_structs.
702
cb417230
JB
7032014-08-19 Joel Brobecker <brobecker@adacore.com>
704
705 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
706 Adjust code accordingly. Adjust function description comment.
707
817e0957
YQ
7082014-08-19 Yao Qi <yao@codesourcery.com>
709
710 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
711 types.
712
2974be62
AM
7132014-08-19 Alan Modra <amodra@gmail.com>
714
715 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
716 * config.in: Regenerate.
717 * configure: Regenerate.
718
34abf635
GB
7192014-08-19 Tom Tromey <tromey@redhat.com>
720 Gary Benson <gbenson@redhat.com>
721
722 * common/common-debug.h: New file.
723 * common/common-debug.c: Likewise.
724 * debug.c: Likewise.
725 * Makefile.in (SFILES): Add common/common-debug.c.
726 (HFILES_NO_SRCDIR): Add common/common-debug.h.
727 (COMMON_OBS): Add common-debug.o and debug.o.
728 (common-debug.o): New rule.
729 * common/common-defs.h: Include common-debug.h.
730 * common/agent.c (debug_agent_printf): New function.
731 (DEBUG_AGENT): Redefine.
732 * nat/i386-dregs.c (debug_printf): Undefine.
733
f6e94d78
GB
7342014-08-19 Gary Benson <gbenson@redhat.com>
735
736 * common/common-defs.h: Include print-utils.h.
737 * utils.h: Do not include print-utils.h.
738
9239eeab
GB
7392014-08-19 Tom Tromey <tromey@redhat.com>
740 Gary Benson <gbenson@redhat.com>
741
742 * common/common-types.h: New file.
743 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
744 * common/common-defs.h: Include common-types.h.
745 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
746 (ULONGEST): Remove.
747
ef87c8bb
GB
7482014-08-19 Tom Tromey <tromey@redhat.com>
749 Gary Benson <gbenson@redhat.com>
750
751 * common/errors.h: New file.
752 * common/errors.c: Likewise.
753 * Makefile.in (SFILES): Add common/errors.c.
754 (HFILES_NO_SRCDIR): Add common/errors.h.
755 (COMMON_OBS): Add errors.o.
756 (errors.o): New rule.
757 * common/common-defs.h: Include errors.h.
758 * utils.h (perror_with_name, error, verror, warning, vwarning):
759 Don't declare.
760 * common/common-utils.h: (malloc_failure, internal_error):
761 Likewise.
762
196a707b
GB
7632014-08-19 Gary Benson <gbenson@redhat.com>
764
765 * utils.c (internal_vproblem): Always print the message.
766
ded4fc8f
DE
7672014-08-18 Doug Evans <dje@google.com>
768
769 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
770
950c97d8
JB
7712014-08-18 Joel Brobecker <brobecker@adacore.com>
772
773 * ada-typeprint.c (type_is_full_subrange_of_target_type):
774 Return 0 if TYPE is dynamic.
775 (print_range): Add handling of dynamic ranges.
776
3cdcd0ce
JB
7772014-08-18 Keven Boell <keven.boell@intel.com>
778 Joel Brobecker <brobecker@adacore.com>
779
780 * gdbtypes.h (struct main_type): Add field "data_location".
781 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
782 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
783 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
784 a dynamic data location.
785 (resolve_dynamic_type): Add DW_AT_data_location handling.
786 (copy_recursive, copy_type): Copy the data_location information
787 when present.
788 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
789 * value.c (value_from_contents_and_address): Add
790 DW_AT_data_location handling.
791
08412b07
JB
7922014-08-18 Keven Boell <keven.boell@intel.com>
793 Joel Brobecker <brobecker@adacore.com>
794
795 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
796 field "get_object_address".
797 * dwarf2expr.c (execute_stack_op): Add handling for
798 DW_OP_push_object_address.
799 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
800 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
801 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
802 (dwarf_expr_get_obj_addr): New function.
803 (dwarf_expr_ctx_funcs): Add get_object_address field.
804 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
805 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
806 (dwarf2_evaluate_property): Add parameter "address". Use it.
807 (needs_get_obj_addr): New function.
808 (needs_frame_ctx_funcs): Add get_object_address field.
809 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
810 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
811 (resolve_dynamic_array): Likewise.
812
84754697
JB
8132014-08-18 Joel Brobecker <brobecker@adacore.com>
814
815 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
816 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
817 fixed value for records and unions for which some GNAT encodings
818 are present.
819
da5c522f
JB
8202014-08-18 Joel Brobecker <brobecker@adacore.com>
821
822 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
823 rewrite to avoid "else if" and "else" constructs. Should be
824 a no-op in practice.
825
0d72a7c3
JB
8262014-08-18 Joel Brobecker <brobecker@adacore.com>
827
828 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
829 of lexical block.
830
e66d4446
SC
8312014-08-15 Siva Chandra Reddy <sivachandra@google.com>
832
833 PR c++/17132
834 * eval.c: Update all calls to find_overload_match.
835 * valarith.c: Likewise.
836 (value_user_defined_cpp_op, value_user_defined_op): New
837 argument NOSIDE. Update all callers.
838 * valops.c (find_overload_match): New argument NOSIDE.
839 * value.h (find_overload_match): Update signature.
840
940df408
SC
8412014-08-15 Siva Chandra Reddy <sivachandra@google.com>
842
843 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
844 'items' methods instead of 'iteritems' method on dictionaries.
845
699ca60a
DE
8462014-08-15 Doug Evans <dje@google.com>
847
848 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
849 closer to use.
850
37780ee5
DE
8512014-08-15 Doug Evans <dje@google.com>
852
853 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
854
0ad93d4f
DE
8552014-08-15 Doug Evans <dje@google.com>
856
857 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
858
20d8c372
DE
8592014-08-15 Doug Evans <dje@google.com>
860
861 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
862 unused.
863
cb039ba4
EZ
8642014-08-15 Eli Zaretskii <eliz@gnu.org>
865
866 * dcache.h: Include target.h, to avoid compile time warnings.
867
eb7a547a
JB
8682014-08-15 Joel Brobecker <brobecker@adacore.com>
869
870 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
871 frame_info" partial declaration.
872 * gdbarch.h: Regenerate.
873
783cecc8
YQ
8742014-08-15 Yao Qi <yao@codesourcery.com>
875
876 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
877 Add parameter 'decode_for_pst_p'. Callers update.
878
65c749e7
YQ
8792014-08-13 Yao Qi <yao@codesourcery.com>
880
881 PR build/17104
882 * configure.ac: Use local variable 'pos'.
883 * configure: Regenerated.
884
d769e349
DE
8852014-08-11 Doug Evans <dje@google.com>
886
887 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
888 message, it is redundant with "Reading symbols from ..." message.
889
24f1235e
DE
8902014-08-10 Doug Evans <xdje42@gmail.com>
891
892 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
893
dcd2e6ef
YQ
8942014-08-09 Yao Qi <yao@codesourcery.com>
895
896 PR remote/9053
897 * remote.c (remote_xfer_partial): Remove dead code.
898
070bdf0b
AA
8992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
900
901 * ia64-linux-tdep.c: Include "regset.h".
902 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
903 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
904 (ia64_linux_supply_fpregset): New function.
905 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
906 (ia64_linux_regset_from_core_section): New function.
907 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
908 method.
909
08f9f542
AA
9102014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
911
912 * m68klinux-tdep.c: Include "regset.h".
913 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
914 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
915 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
916 (m68k_linux_regset_from_core_section): New function.
917 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
918 method.
919
8f1cee41
AA
9202014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
921
922 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
923 function. Move logic to...
924 (tilegx_linux_regmap): ... this new register map.
925 (tilegx_linux_regset): Refer to register map, replace supply
926 method by regcache_supply_regset, and add collect method.
927 * tilegx-tdep.h (enum tilegx_regnum): New enum value
928 TILEGX_FIRST_EASY_REGNUM.
929
c5741217
AA
9302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
931
932 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
933 that calls regcache_supply_regset and handles the EPC register
934 separately. Move main logic to...
935 (score7_linux_gregmap): ... this new register map.
936 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
937 (score7_linux_gregset): Refer to register map. Add collect method.
938 (score7_linux_regset_from_core_section): Replace
939 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
940 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
941 (struct regset): Delete unused forward declaraction.
942 (struct pt_regs): Delete structure definition.
943 (elf_gregset_t): Delete typedef.
944
81580573
AA
9452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
946
947 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
948 (nios2_core_regset): Add collect method.
949
ba199d7d
AA
9502014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
951
952 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
953 platform-independent and don't write to read-only input buffer.
954 (m32r_linux_collect_gregset): New function.
955 (m32r_linux_gregset): Add collect method.
956
0006a9da
AA
9572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
958
959 * hppa-linux-tdep.c (greg_map): Rename to...
960 (hppa_linux_gregmap): ... this. Also convert to
961 regcache_map_entry format.
962 (hppa_linux_supply_regset): Delete function.
963 (hppa_linux_supply_fpregset): Delete function. Move logic to...
964 (hppa_linux_fpregmap): ... this new register map.
965 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
966 register map, replace supply method by regcache_supply_regset, and
967 add collect method regcache_collect_regset.
968
901e1b23
AA
9692014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
970
971 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
972 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
973 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
974 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
975 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
976 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
977 (frv_linux_supply_gregset): Replace main logic by call to
978 regcache_supply_regset, but keep clearing gr32-gr63.
979 (frv_linux_supply_fpregset): Delete function.
980 (frv_linux_gregset): Refer to appropriate register map and add
981 regcache_collect_regset as the collect method.
982 (frv_linux_fpregset): Likewise. Also exchange the supply method
983 by regcache_supply_regset.
984
1d6e7555
AA
9852014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
986
987 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
988 by call to alpha_supply_int_regs.
989 (alpha_linux_collect_gregset): New function.
990 (alpha_linux_supply_fpregset): Replace logic by call to
991 alpha_supply_fp_regs.
992 (alpha_linux_collect_fpregset): New function.
993 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
994
d4d793bf
AA
9952014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
996
997 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
998 by call to regcache_collect_regset.
999 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1000 instead of aarch64_linux_supply_gregset/_fpregset.
1001 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1002 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1003 header file instead.
1004 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1005 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1006 functions. Move logic to ...
1007 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1008 register maps.
1009 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1010 refer to new register maps, replace *_regset_from_core by
1011 regcache_supply_regset, and also use regcache_collect_regset.
1012 * aarch64-linux-tdep.h: Include "regset.h".
1013 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1014 Delete prototypes.
1015 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1016 macros, moved from C source file.
1017 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1018 variable declarations.
1019
99b7da5d
AA
10202014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1021
1022 * s390-linux-nat.c: Include "regset.h".
1023 (regmap_gregset): Delete macro.
1024 (s390_64_regmap_gregset): New register map for
1025 regcache_supply/_collect_regset.
1026 (s390_64_gregset): New regset.
1027 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1028 (regmap_fpregset): Delete macro.
1029 (s390_native_supply, s390_native_collect): Delete functions.
1030 (supply_gregset, fill_gregset): Replace s390-specific regmap
1031 handling by a call to regcache_supply/_collect_regset.
1032 (supply_fpregset, fill_fpregset): Call regcache_supply/
1033 _collect_regset instead of s390_native_supply/_collect.
1034 (fetch_regset, store_regset): Likewise. Also change the last
1035 parameter to a regset instead of a regmap.
1036 (s390_linux_fetch_inferior_registers)
1037 (390_linux_store_inferior_registers): Adjust last parameter in
1038 calls to fetch_regset and store_regset.
1039 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1040 (s390_gregmap): ... this. Also make static const and convert to
1041 regcache_map_entry format.
1042 (s390x_regmap_gregset): Delete.
1043 (s390_regmap_fpregset): Rename to...
1044 (s390_fpregmap): ... this. Make static const and convert to
1045 regcache_map_entry format.
1046 (s390_regmap_upper, s390_regmap_last_break)
1047 (s390x_regmap_last_break, s390_regmap_system_call)
1048 (s390_regmap_tdb): Likewise.
1049 (s390_supply_regset, s390_collect_regset): Remove functions.
1050 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1051 s390_supply_regset.
1052 (s390_gregset, s390_fpregset, s390_upper_regset)
1053 (s390_last_break_regset, s390x_last_break_regset)
1054 (s390_system_call_regset, s390_tdb_regset): Make global and
1055 replace s390_supply/_collect_regset by regcache_supply/
1056 _collect_regset.
1057 (s390x_gregset): Delete.
1058 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1059 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1060 (s390_regmap_fpregset, s390_regmap_last_break)
1061 (s390x_regmap_last_break, s390_regmap_system_call)
1062 (s390_regmap_tdb): Delete global variable declarations.
1063 (s390_gregset, s390_fpregset, s390_last_break_regset)
1064 (s390x_last_break_regset, s390_system_call_regset)
1065 (s390_tdb_regset): New global variable declarations.
1066
0b309272
AA
10672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1068
1069 * regcache.c: Include "regset.h".
1070 (regcache_transfer_regset): New local function.
1071 (regcache_supply_regset, regcache_collect_regset): New functions.
1072 * regcache.h (struct regcache_map_entry): New structure.
1073 (REGCACHE_MAP_SKIP): New enum value.
1074 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1075
7fefa8d7
AA
10762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1077
1078 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1079 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1080 (ppc_linux_collect_gregset ): Likewise.
1081 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1082 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1083 (ppc_collect_vrregset): Likewise.
1084 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1085 Likewise.
1086
96c4f946
YQ
10872014-08-07 Yao Qi <yao@codesourcery.com>
1088
1089 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1090 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1091 * remote.c (remote_read_bytes): Likewise.
1092
fffbe6a8
YQ
10932014-08-07 Yao Qi <yao@codesourcery.com>
1094
1095 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1096
5ee8a82c
YQ
10972014-08-07 Yao Qi <yao@codesourcery.com>
1098
1099 PR remote/17230
1100 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1101 TARGET_XFER_OK instead of 0.
1102
bb974a24
GB
11032014-08-07 Gary Benson <gbenson@redhat.com>
1104
1105 * common/common-defs.h: Include errno.h.
1106 * defs.h: Do not include errno.h.
1107 * ada-typeprint.c: Likewise.
1108 * c-typeprint.c: Likewise.
1109 * core-regset.c: Likewise.
1110 * corefile.c: Likewise.
1111 * corelow.c: Likewise.
1112 * event-loop.c: Likewise.
1113 * f-typeprint.c: Likewise.
1114 * gnu-nat.c: Likewise.
1115 * go32-nat.c: Likewise.
1116 * i386gnu-nat.c: Likewise.
1117 * m2-typeprint.c: Likewise.
1118 * nat/linux-btrace.c: Likewise.
1119 * p-typeprint.c: Likewise.
1120 * procfs.c: Likewise.
1121 * remote-sim.c: Likewise.
1122 * rs6000-nat.c: Likewise.
1123 * target.c: Likewise.
1124 * typeprint.c: Likewise.
1125 * ui-file.c: Likewise.
1126 * valops.c: Likewise.
1127 * valprint.c: Likewise.
1128
6d3d12eb
GB
11292014-08-07 Gary Benson <gbenson@redhat.com>
1130
1131 * common/common-defs.h: Include string.h.
1132 * aarch64-tdep.c: Do not include string.h.
1133 * ada-exp.y: Likewise.
1134 * ada-lang.c: Likewise.
1135 * ada-lex.l: Likewise.
1136 * ada-typeprint.c: Likewise.
1137 * ada-valprint.c: Likewise.
1138 * aix-thread.c: Likewise.
1139 * alpha-linux-tdep.c: Likewise.
1140 * alpha-mdebug-tdep.c: Likewise.
1141 * alpha-nat.c: Likewise.
1142 * alpha-osf1-tdep.c: Likewise.
1143 * alpha-tdep.c: Likewise.
1144 * alphanbsd-tdep.c: Likewise.
1145 * amd64-dicos-tdep.c: Likewise.
1146 * amd64-linux-tdep.c: Likewise.
1147 * amd64-nat.c: Likewise.
1148 * amd64-sol2-tdep.c: Likewise.
1149 * amd64fbsd-tdep.c: Likewise.
1150 * amd64obsd-tdep.c: Likewise.
1151 * arch-utils.c: Likewise.
1152 * arm-linux-nat.c: Likewise.
1153 * arm-linux-tdep.c: Likewise.
1154 * arm-tdep.c: Likewise.
1155 * arm-wince-tdep.c: Likewise.
1156 * armbsd-tdep.c: Likewise.
1157 * armnbsd-nat.c: Likewise.
1158 * armnbsd-tdep.c: Likewise.
1159 * armobsd-tdep.c: Likewise.
1160 * avr-tdep.c: Likewise.
1161 * ax-gdb.c: Likewise.
1162 * ax-general.c: Likewise.
1163 * bcache.c: Likewise.
1164 * bfin-tdep.c: Likewise.
1165 * breakpoint.c: Likewise.
1166 * build-id.c: Likewise.
1167 * buildsym.c: Likewise.
1168 * c-exp.y: Likewise.
1169 * c-lang.c: Likewise.
1170 * c-typeprint.c: Likewise.
1171 * c-valprint.c: Likewise.
1172 * charset.c: Likewise.
1173 * cli-out.c: Likewise.
1174 * cli/cli-cmds.c: Likewise.
1175 * cli/cli-decode.c: Likewise.
1176 * cli/cli-dump.c: Likewise.
1177 * cli/cli-interp.c: Likewise.
1178 * cli/cli-logging.c: Likewise.
1179 * cli/cli-script.c: Likewise.
1180 * cli/cli-setshow.c: Likewise.
1181 * cli/cli-utils.c: Likewise.
1182 * coffread.c: Likewise.
1183 * common/agent.c: Likewise.
1184 * common/buffer.c: Likewise.
1185 * common/buffer.h: Likewise.
1186 * common/common-utils.c: Likewise.
1187 * common/filestuff.c: Likewise.
1188 * common/filestuff.c: Likewise.
1189 * common/format.c: Likewise.
1190 * common/print-utils.c: Likewise.
1191 * common/rsp-low.c: Likewise.
1192 * common/signals.c: Likewise.
1193 * common/vec.h: Likewise.
1194 * common/xml-utils.c: Likewise.
1195 * core-regset.c: Likewise.
1196 * corefile.c: Likewise.
1197 * corelow.c: Likewise.
1198 * cp-abi.c: Likewise.
1199 * cp-name-parser.y: Likewise.
1200 * cp-support.c: Likewise.
1201 * cp-valprint.c: Likewise.
1202 * cris-tdep.c: Likewise.
1203 * d-exp.y: Likewise.
1204 * darwin-nat.c: Likewise.
1205 * dbxread.c: Likewise.
1206 * dcache.c: Likewise.
1207 * demangle.c: Likewise.
1208 * dicos-tdep.c: Likewise.
1209 * disasm.c: Likewise.
1210 * doublest.c: Likewise.
1211 * dsrec.c: Likewise.
1212 * dummy-frame.c: Likewise.
1213 * dwarf2-frame.c: Likewise.
1214 * dwarf2loc.c: Likewise.
1215 * dwarf2read.c: Likewise.
1216 * elfread.c: Likewise.
1217 * environ.c: Likewise.
1218 * eval.c: Likewise.
1219 * event-loop.c: Likewise.
1220 * exceptions.c: Likewise.
1221 * exec.c: Likewise.
1222 * expprint.c: Likewise.
1223 * f-exp.y: Likewise.
1224 * f-lang.c: Likewise.
1225 * f-typeprint.c: Likewise.
1226 * f-valprint.c: Likewise.
1227 * fbsd-nat.c: Likewise.
1228 * findcmd.c: Likewise.
1229 * findvar.c: Likewise.
1230 * fork-child.c: Likewise.
1231 * frame.c: Likewise.
1232 * frv-linux-tdep.c: Likewise.
1233 * frv-tdep.c: Likewise.
1234 * gdb.c: Likewise.
1235 * gdb_bfd.c: Likewise.
1236 * gdbarch.c: Likewise.
1237 * gdbarch.sh: Likewise.
1238 * gdbtypes.c: Likewise.
1239 * gnu-nat.c: Likewise.
1240 * gnu-v2-abi.c: Likewise.
1241 * gnu-v3-abi.c: Likewise.
1242 * go-exp.y: Likewise.
1243 * go-lang.c: Likewise.
1244 * go32-nat.c: Likewise.
1245 * guile/guile.c: Likewise.
1246 * guile/scm-auto-load.c: Likewise.
1247 * hppa-hpux-tdep.c: Likewise.
1248 * hppa-linux-nat.c: Likewise.
1249 * hppanbsd-tdep.c: Likewise.
1250 * hppaobsd-tdep.c: Likewise.
1251 * i386-cygwin-tdep.c: Likewise.
1252 * i386-dicos-tdep.c: Likewise.
1253 * i386-linux-tdep.c: Likewise.
1254 * i386-nto-tdep.c: Likewise.
1255 * i386-sol2-tdep.c: Likewise.
1256 * i386-tdep.c: Likewise.
1257 * i386bsd-tdep.c: Likewise.
1258 * i386gnu-nat.c: Likewise.
1259 * i386nbsd-tdep.c: Likewise.
1260 * i386obsd-tdep.c: Likewise.
1261 * i387-tdep.c: Likewise.
1262 * ia64-libunwind-tdep.c: Likewise.
1263 * ia64-linux-nat.c: Likewise.
1264 * inf-child.c: Likewise.
1265 * inf-ptrace.c: Likewise.
1266 * inf-ttrace.c: Likewise.
1267 * infcall.c: Likewise.
1268 * infcmd.c: Likewise.
1269 * inflow.c: Likewise.
1270 * infrun.c: Likewise.
1271 * interps.c: Likewise.
1272 * iq2000-tdep.c: Likewise.
1273 * irix5-nat.c: Likewise.
1274 * jv-exp.y: Likewise.
1275 * jv-lang.c: Likewise.
1276 * jv-typeprint.c: Likewise.
1277 * jv-valprint.c: Likewise.
1278 * language.c: Likewise.
1279 * linux-fork.c: Likewise.
1280 * linux-nat.c: Likewise.
1281 * lm32-tdep.c: Likewise.
1282 * m2-exp.y: Likewise.
1283 * m2-typeprint.c: Likewise.
1284 * m32c-tdep.c: Likewise.
1285 * m32r-linux-nat.c: Likewise.
1286 * m32r-linux-tdep.c: Likewise.
1287 * m32r-rom.c: Likewise.
1288 * m32r-tdep.c: Likewise.
1289 * m68hc11-tdep.c: Likewise.
1290 * m68k-tdep.c: Likewise.
1291 * m68kbsd-tdep.c: Likewise.
1292 * m68klinux-nat.c: Likewise.
1293 * m68klinux-tdep.c: Likewise.
1294 * m88k-tdep.c: Likewise.
1295 * machoread.c: Likewise.
1296 * macrocmd.c: Likewise.
1297 * main.c: Likewise.
1298 * mdebugread.c: Likewise.
1299 * mem-break.c: Likewise.
1300 * memattr.c: Likewise.
1301 * memory-map.c: Likewise.
1302 * mep-tdep.c: Likewise.
1303 * mi/mi-cmd-break.c: Likewise.
1304 * mi/mi-cmd-disas.c: Likewise.
1305 * mi/mi-cmd-env.c: Likewise.
1306 * mi/mi-cmd-stack.c: Likewise.
1307 * mi/mi-cmd-var.c: Likewise.
1308 * mi/mi-cmds.c: Likewise.
1309 * mi/mi-console.c: Likewise.
1310 * mi/mi-getopt.c: Likewise.
1311 * mi/mi-interp.c: Likewise.
1312 * mi/mi-main.c: Likewise.
1313 * mi/mi-parse.c: Likewise.
1314 * microblaze-rom.c: Likewise.
1315 * microblaze-tdep.c: Likewise.
1316 * mingw-hdep.c: Likewise.
1317 * minidebug.c: Likewise.
1318 * minsyms.c: Likewise.
1319 * mips-irix-tdep.c: Likewise.
1320 * mips-linux-tdep.c: Likewise.
1321 * mips-tdep.c: Likewise.
1322 * mips64obsd-tdep.c: Likewise.
1323 * mipsnbsd-tdep.c: Likewise.
1324 * mipsread.c: Likewise.
1325 * mn10300-linux-tdep.c: Likewise.
1326 * mn10300-tdep.c: Likewise.
1327 * monitor.c: Likewise.
1328 * moxie-tdep.c: Likewise.
1329 * mt-tdep.c: Likewise.
1330 * nat/linux-btrace.c: Likewise.
1331 * nat/linux-osdata.c: Likewise.
1332 * nat/linux-procfs.c: Likewise.
1333 * nat/linux-ptrace.c: Likewise.
1334 * nat/linux-waitpid.c: Likewise.
1335 * nbsd-tdep.c: Likewise.
1336 * nios2-linux-tdep.c: Likewise.
1337 * nto-procfs.c: Likewise.
1338 * nto-tdep.c: Likewise.
1339 * objc-lang.c: Likewise.
1340 * objfiles.c: Likewise.
1341 * opencl-lang.c: Likewise.
1342 * osabi.c: Likewise.
1343 * osdata.c: Likewise.
1344 * p-exp.y: Likewise.
1345 * p-lang.c: Likewise.
1346 * p-typeprint.c: Likewise.
1347 * parse.c: Likewise.
1348 * posix-hdep.c: Likewise.
1349 * ppc-linux-nat.c: Likewise.
1350 * ppc-sysv-tdep.c: Likewise.
1351 * ppcfbsd-tdep.c: Likewise.
1352 * ppcnbsd-tdep.c: Likewise.
1353 * ppcobsd-tdep.c: Likewise.
1354 * printcmd.c: Likewise.
1355 * procfs.c: Likewise.
1356 * prologue-value.c: Likewise.
1357 * python/py-auto-load.c: Likewise.
1358 * python/py-gdb-readline.c: Likewise.
1359 * ravenscar-thread.c: Likewise.
1360 * regcache.c: Likewise.
1361 * registry.c: Likewise.
1362 * remote-fileio.c: Likewise.
1363 * remote-m32r-sdi.c: Likewise.
1364 * remote-mips.c: Likewise.
1365 * remote-notif.c: Likewise.
1366 * remote-sim.c: Likewise.
1367 * remote.c: Likewise.
1368 * reverse.c: Likewise.
1369 * rs6000-aix-tdep.c: Likewise.
1370 * ser-base.c: Likewise.
1371 * ser-go32.c: Likewise.
1372 * ser-mingw.c: Likewise.
1373 * ser-pipe.c: Likewise.
1374 * ser-tcp.c: Likewise.
1375 * ser-unix.c: Likewise.
1376 * serial.c: Likewise.
1377 * sh-tdep.c: Likewise.
1378 * sh64-tdep.c: Likewise.
1379 * shnbsd-tdep.c: Likewise.
1380 * skip.c: Likewise.
1381 * sol-thread.c: Likewise.
1382 * solib-dsbt.c: Likewise.
1383 * solib-frv.c: Likewise.
1384 * solib-osf.c: Likewise.
1385 * solib-som.c: Likewise.
1386 * solib-spu.c: Likewise.
1387 * solib-target.c: Likewise.
1388 * solib.c: Likewise.
1389 * somread.c: Likewise.
1390 * source.c: Likewise.
1391 * sparc-nat.c: Likewise.
1392 * sparc-sol2-tdep.c: Likewise.
1393 * sparc-tdep.c: Likewise.
1394 * sparc64-tdep.c: Likewise.
1395 * sparc64fbsd-tdep.c: Likewise.
1396 * sparc64nbsd-tdep.c: Likewise.
1397 * sparcnbsd-tdep.c: Likewise.
1398 * spu-linux-nat.c: Likewise.
1399 * spu-multiarch.c: Likewise.
1400 * spu-tdep.c: Likewise.
1401 * stabsread.c: Likewise.
1402 * stack.c: Likewise.
1403 * std-regs.c: Likewise.
1404 * symfile.c: Likewise.
1405 * symmisc.c: Likewise.
1406 * symtab.c: Likewise.
1407 * target.c: Likewise.
1408 * thread.c: Likewise.
1409 * tilegx-linux-nat.c: Likewise.
1410 * tilegx-tdep.c: Likewise.
1411 * top.c: Likewise.
1412 * tracepoint.c: Likewise.
1413 * tui/tui-command.c: Likewise.
1414 * tui/tui-data.c: Likewise.
1415 * tui/tui-disasm.c: Likewise.
1416 * tui/tui-file.c: Likewise.
1417 * tui/tui-layout.c: Likewise.
1418 * tui/tui-out.c: Likewise.
1419 * tui/tui-regs.c: Likewise.
1420 * tui/tui-source.c: Likewise.
1421 * tui/tui-stack.c: Likewise.
1422 * tui/tui-win.c: Likewise.
1423 * tui/tui-windata.c: Likewise.
1424 * tui/tui-winsource.c: Likewise.
1425 * typeprint.c: Likewise.
1426 * ui-file.c: Likewise.
1427 * ui-out.c: Likewise.
1428 * user-regs.c: Likewise.
1429 * utils.c: Likewise.
1430 * v850-tdep.c: Likewise.
1431 * valarith.c: Likewise.
1432 * valops.c: Likewise.
1433 * valprint.c: Likewise.
1434 * value.c: Likewise.
1435 * varobj.c: Likewise.
1436 * vax-tdep.c: Likewise.
1437 * vaxnbsd-tdep.c: Likewise.
1438 * vaxobsd-tdep.c: Likewise.
1439 * windows-nat.c: Likewise.
1440 * xcoffread.c: Likewise.
1441 * xml-support.c: Likewise.
1442 * xstormy16-tdep.c: Likewise.
1443 * xtensa-linux-nat.c: Likewise.
1444
dccbb609
GB
14452014-08-07 Gary Benson <gbenson@redhat.com>
1446
1447 * common/common-defs.h: Include gdb_assert.h.
1448 * aarch64-tdep.c: Do not include gdb_assert.h.
1449 * addrmap.c: Likewise.
1450 * aix-thread.c: Likewise.
1451 * alpha-linux-tdep.c: Likewise.
1452 * alpha-mdebug-tdep.c: Likewise.
1453 * alphanbsd-tdep.c: Likewise.
1454 * amd64-nat.c: Likewise.
1455 * amd64-tdep.c: Likewise.
1456 * amd64bsd-nat.c: Likewise.
1457 * amd64fbsd-nat.c: Likewise.
1458 * amd64fbsd-tdep.c: Likewise.
1459 * amd64nbsd-nat.c: Likewise.
1460 * amd64nbsd-tdep.c: Likewise.
1461 * amd64obsd-nat.c: Likewise.
1462 * amd64obsd-tdep.c: Likewise.
1463 * arch-utils.c: Likewise.
1464 * arm-tdep.c: Likewise.
1465 * armbsd-tdep.c: Likewise.
1466 * auxv.c: Likewise.
1467 * bcache.c: Likewise.
1468 * bfin-tdep.c: Likewise.
1469 * blockframe.c: Likewise.
1470 * breakpoint.c: Likewise.
1471 * bsd-kvm.c: Likewise.
1472 * bsd-uthread.c: Likewise.
1473 * buildsym.c: Likewise.
1474 * c-exp.y: Likewise.
1475 * c-lang.c: Likewise.
1476 * charset.c: Likewise.
1477 * cleanups.c: Likewise.
1478 * cli-out.c: Likewise.
1479 * cli/cli-decode.c: Likewise.
1480 * cli/cli-dump.c: Likewise.
1481 * cli/cli-logging.c: Likewise.
1482 * cli/cli-script.c: Likewise.
1483 * cli/cli-utils.c: Likewise.
1484 * coffread.c: Likewise.
1485 * common/common-utils.c: Likewise.
1486 * common/queue.h: Likewise.
1487 * common/signals.c: Likewise.
1488 * common/vec.h: Likewise.
1489 * complaints.c: Likewise.
1490 * completer.c: Likewise.
1491 * corelow.c: Likewise.
1492 * cp-abi.c: Likewise.
1493 * cp-name-parser.y: Likewise.
1494 * cp-namespace.c: Likewise.
1495 * cp-support.c: Likewise.
1496 * cris-tdep.c: Likewise.
1497 * dbxread.c: Likewise.
1498 * dictionary.c: Likewise.
1499 * doublest.c: Likewise.
1500 * dsrec.c: Likewise.
1501 * dummy-frame.c: Likewise.
1502 * dwarf2-frame-tailcall.c: Likewise.
1503 * dwarf2-frame.c: Likewise.
1504 * dwarf2expr.c: Likewise.
1505 * dwarf2loc.c: Likewise.
1506 * dwarf2read.c: Likewise.
1507 * eval.c: Likewise.
1508 * event-loop.c: Likewise.
1509 * exceptions.c: Likewise.
1510 * expprint.c: Likewise.
1511 * f-valprint.c: Likewise.
1512 * fbsd-nat.c: Likewise.
1513 * findvar.c: Likewise.
1514 * frame-unwind.c: Likewise.
1515 * frame.c: Likewise.
1516 * frv-tdep.c: Likewise.
1517 * gcore.c: Likewise.
1518 * gdb-dlfcn.c: Likewise.
1519 * gdb_bfd.c: Likewise.
1520 * gdbarch.c: Likewise.
1521 * gdbarch.sh: Likewise.
1522 * gdbtypes.c: Likewise.
1523 * gnu-nat.c: Likewise.
1524 * gnu-v3-abi.c: Likewise.
1525 * go-lang.c: Likewise.
1526 * guile/scm-exception.c: Likewise.
1527 * guile/scm-gsmob.c: Likewise.
1528 * guile/scm-lazy-string.c: Likewise.
1529 * guile/scm-math.c: Likewise.
1530 * guile/scm-pretty-print.c: Likewise.
1531 * guile/scm-safe-call.c: Likewise.
1532 * guile/scm-utils.c: Likewise.
1533 * guile/scm-value.c: Likewise.
1534 * h8300-tdep.c: Likewise.
1535 * hppa-hpux-nat.c: Likewise.
1536 * hppa-tdep.c: Likewise.
1537 * hppanbsd-tdep.c: Likewise.
1538 * hppaobsd-tdep.c: Likewise.
1539 * i386-darwin-nat.c: Likewise.
1540 * i386-darwin-tdep.c: Likewise.
1541 * i386-nto-tdep.c: Likewise.
1542 * i386-tdep.c: Likewise.
1543 * i386bsd-nat.c: Likewise.
1544 * i386fbsd-tdep.c: Likewise.
1545 * i386gnu-nat.c: Likewise.
1546 * i386nbsd-tdep.c: Likewise.
1547 * i386obsd-tdep.c: Likewise.
1548 * i387-tdep.c: Likewise.
1549 * ia64-libunwind-tdep.c: Likewise.
1550 * ia64-tdep.c: Likewise.
1551 * inf-ptrace.c: Likewise.
1552 * inf-ttrace.c: Likewise.
1553 * infcall.c: Likewise.
1554 * infcmd.c: Likewise.
1555 * infrun.c: Likewise.
1556 * inline-frame.c: Likewise.
1557 * interps.c: Likewise.
1558 * jv-lang.c: Likewise.
1559 * jv-typeprint.c: Likewise.
1560 * linux-fork.c: Likewise.
1561 * linux-nat.c: Likewise.
1562 * linux-thread-db.c: Likewise.
1563 * m32c-tdep.c: Likewise.
1564 * m32r-linux-nat.c: Likewise.
1565 * m32r-tdep.c: Likewise.
1566 * m68k-tdep.c: Likewise.
1567 * m68kbsd-nat.c: Likewise.
1568 * m68kbsd-tdep.c: Likewise.
1569 * m88k-tdep.c: Likewise.
1570 * machoread.c: Likewise.
1571 * macroexp.c: Likewise.
1572 * macrotab.c: Likewise.
1573 * maint.c: Likewise.
1574 * mdebugread.c: Likewise.
1575 * memory-map.c: Likewise.
1576 * mep-tdep.c: Likewise.
1577 * mi/mi-common.c: Likewise.
1578 * microblaze-tdep.c: Likewise.
1579 * mingw-hdep.c: Likewise.
1580 * mips-linux-nat.c: Likewise.
1581 * mips-linux-tdep.c: Likewise.
1582 * mips-tdep.c: Likewise.
1583 * mips64obsd-tdep.c: Likewise.
1584 * mipsnbsd-tdep.c: Likewise.
1585 * mn10300-linux-tdep.c: Likewise.
1586 * mn10300-tdep.c: Likewise.
1587 * moxie-tdep.c: Likewise.
1588 * mt-tdep.c: Likewise.
1589 * nat/linux-btrace.c: Likewise.
1590 * nat/linux-osdata.c: Likewise.
1591 * nat/linux-ptrace.c: Likewise.
1592 * nat/mips-linux-watch.c: Likewise.
1593 * nios2-linux-tdep.c: Likewise.
1594 * nios2-tdep.c: Likewise.
1595 * objc-lang.c: Likewise.
1596 * objfiles.c: Likewise.
1597 * obsd-nat.c: Likewise.
1598 * opencl-lang.c: Likewise.
1599 * osabi.c: Likewise.
1600 * parse.c: Likewise.
1601 * ppc-linux-nat.c: Likewise.
1602 * ppc-sysv-tdep.c: Likewise.
1603 * ppcfbsd-nat.c: Likewise.
1604 * ppcfbsd-tdep.c: Likewise.
1605 * ppcnbsd-nat.c: Likewise.
1606 * ppcnbsd-tdep.c: Likewise.
1607 * ppcobsd-nat.c: Likewise.
1608 * ppcobsd-tdep.c: Likewise.
1609 * printcmd.c: Likewise.
1610 * procfs.c: Likewise.
1611 * prologue-value.c: Likewise.
1612 * psymtab.c: Likewise.
1613 * python/py-lazy-string.c: Likewise.
1614 * python/py-value.c: Likewise.
1615 * regcache.c: Likewise.
1616 * reggroups.c: Likewise.
1617 * registry.c: Likewise.
1618 * remote-sim.c: Likewise.
1619 * remote.c: Likewise.
1620 * rs6000-aix-tdep.c: Likewise.
1621 * rs6000-tdep.c: Likewise.
1622 * s390-linux-tdep.c: Likewise.
1623 * score-tdep.c: Likewise.
1624 * ser-base.c: Likewise.
1625 * ser-mingw.c: Likewise.
1626 * sh-tdep.c: Likewise.
1627 * sh64-tdep.c: Likewise.
1628 * solib-darwin.c: Likewise.
1629 * solib-spu.c: Likewise.
1630 * solib-svr4.c: Likewise.
1631 * source.c: Likewise.
1632 * sparc-nat.c: Likewise.
1633 * sparc-sol2-tdep.c: Likewise.
1634 * sparc-tdep.c: Likewise.
1635 * sparc64-sol2-tdep.c: Likewise.
1636 * sparc64-tdep.c: Likewise.
1637 * sparc64fbsd-tdep.c: Likewise.
1638 * sparc64nbsd-tdep.c: Likewise.
1639 * sparc64obsd-tdep.c: Likewise.
1640 * sparcnbsd-tdep.c: Likewise.
1641 * sparcobsd-tdep.c: Likewise.
1642 * spu-multiarch.c: Likewise.
1643 * spu-tdep.c: Likewise.
1644 * stabsread.c: Likewise.
1645 * stack.c: Likewise.
1646 * symfile.c: Likewise.
1647 * symtab.c: Likewise.
1648 * target-descriptions.c: Likewise.
1649 * target-memory.c: Likewise.
1650 * target.c: Likewise.
1651 * tic6x-linux-tdep.c: Likewise.
1652 * tic6x-tdep.c: Likewise.
1653 * tilegx-linux-nat.c: Likewise.
1654 * tilegx-tdep.c: Likewise.
1655 * top.c: Likewise.
1656 * tramp-frame.c: Likewise.
1657 * tui/tui-out.c: Likewise.
1658 * tui/tui-winsource.c: Likewise.
1659 * ui-out.c: Likewise.
1660 * user-regs.c: Likewise.
1661 * utils.c: Likewise.
1662 * v850-tdep.c: Likewise.
1663 * valops.c: Likewise.
1664 * value.c: Likewise.
1665 * varobj.c: Likewise.
1666 * vax-nat.c: Likewise.
1667 * xml-syscall.c: Likewise.
1668 * xml-tdesc.c: Likewise.
1669 * xstormy16-tdep.c: Likewise.
1670 * xtensa-linux-nat.c: Likewise.
1671 * xtensa-tdep.c: Likewise.
1672
e76df0d0
GB
16732014-08-07 Gary Benson <gbenson@redhat.com>
1674
1675 * common/common-defs.h: Include common-utils.h.
1676 * defs.h: Do not include common-utils.h.
1677 * common/gdb_assert.h: Likewise.
1678 * darwin-nat.h: Likewise.
1679 * nat/linux-btrace.c: Likewise.
1680 * target/waitstatus.h: Likewise.
1681
4cb9c816
GB
16822014-08-07 Gary Benson <gbenson@redhat.com>
1683
1684 * common/common-defs.h: Include ptid.h.
1685 * defs.h: Do not include ptid.h.
1686 * inferior.h: Likewise.
1687 * infrun.h: Likewise.
1688 * nat/linux-btrace.h: Likewise.
1689 * nat/linux-osdata.h: Likewise.
1690 * target/waitstatus.h: Likewise.
1691
3995eeee
GB
16922014-08-07 Gary Benson <gbenson@redhat.com>
1693
1694 * common/common-defs.h: Include gdb_locale.h.
1695 * defs.h: Do not include gdb_locale.h.
1696
cb9f1a9b
GB
16972014-08-07 Gary Benson <gbenson@redhat.com>
1698
1699 * common/common-defs.h: Include gdb/signals.h.
1700 * defs.h: Do not include gdb/signals.h.
1701
a5fceff8
GB
17022014-08-07 Gary Benson <gbenson@redhat.com>
1703
1704 * common/common-defs.h: Include pathmax.h.
1705 * defs.h: Do not include pathmax.h.
1706
b9391142
GB
17072014-08-07 Gary Benson <gbenson@redhat.com>
1708
1709 * common/common-defs.h: Include libiberty.h.
1710 * defs.h: Do not include libiberty.h.
1711 * common/queue.h: Likewise.
1712 * cp-name-parser.y: Likewise.
1713 * mi/mi-cmd-catch.c: Likewise.
1714 * python/python.c: Likewise.
1715
0e443c87
GB
17162014-08-07 Gary Benson <gbenson@redhat.com>
1717
1718 * common/common-defs.h: Include ansidecl.h.
1719 * defs.h: Do not include ansidecl.h.
1720 * common/buffer.h: Likewise.
1721 * common/common-utils.h: Likewise.
1722
8ebb3f56
GB
17232014-08-07 Gary Benson <gbenson@redhat.com>
1724
1725 * common/common-defs.h: Include stddef.h.
1726 * defs.h: Do not include stddef.h.
1727 * common/common-utils.h: Likewise.
1728 * amd64fbsd-nat.c: Likewise.
1729 * bcache.c: Likewise.
1730 * charset.c: Likewise.
1731 * common/buffer.h: Likewise.
1732 * common/vec.h: Likewise.
1733 * i386bsd-nat.c: Likewise.
1734 * nat/linux-btrace.h: Likewise.
1735 * ppcfbsd-nat.c: Likewise.
1736 * ppcnbsd-tdep.h: Likewise.
1737 * ppcobsd-nat.c: Likewise.
1738 * ppcobsd-tdep.h: Likewise.
1739 * python/py-gdb-readline.c: Likewise.
1740
8980bdf6
GB
17412014-08-07 Gary Benson <gbenson@redhat.com>
1742
1743 * common/common-defs.h: Include stdarg.h.
1744 * defs.h: Do not include stdarg.h.
1745 * ada-lang.c: Likewise.
1746 * common/common-utils.h: Likewise.
1747 * guile/scm-string.c: Likewise.
1748 * guile/scm-utils.c: Likewise.
1749 * m32c-tdep.c: Likewise.
1750
d7096f71
GB
17512014-08-07 Gary Benson <gbenson@redhat.com>
1752
1753 * common/common-defs.h: Include stdlib.h.
1754 * defs.h: Do not include stdlib.h.
1755 * addrmap.c: Likewise.
1756 * bcache.c: Likewise.
1757 * common/buffer.c: Likewise.
1758 * common/common-utils.c: Likewise.
1759 * cp-name-parser.y: Likewise.
1760 * go32-nat.c: Likewise.
1761 * mn10300-linux-tdep.c: Likewise.
1762 * nat/linux-osdata.c: Likewise.
1763 * tui/tui.c: Likewise.
1764 * windows-nat.c: Likewise.
1765
d02f550d
GB
17662014-08-07 Gary Benson <gbenson@redhat.com>
1767
1768 * common/common-defs.h: Include stdio.h.
1769 * defs.h: Do not include stdio.h.
1770 * ada-lang.c: Likewise.
1771 * common/buffer.c: Likewise.
1772 * common/common-utils.c: Likewise.
1773 * cp-name-parser.y: Likewise.
1774 * gnu-nat.c: Likewise.
1775 * go32-nat.c: Likewise.
1776 * i386gnu-nat.c: Likewise.
1777 * proc-api.c: Likewise.
1778 * proc-events.c: Likewise.
1779 * proc-flags.c: Likewise.
1780 * proc-why.c: Likewise.
1781 * python/python-internal.h: Likewise.
1782 * target-memory.c: Likewise.
1783 * tui/tui-io.c: Likewise.
1784 * tui/tui.c: Likewise.
1785
b6d7a4bf
SM
17862014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1787
1788 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1789 (scan_dyntag_auxv): Same.
1790
af19829b
YQ
17912014-08-06 Yao Qi <yao@codesourcery.com>
1792
1793 * amd64-linux-nat.c: Remove duplicated include
1794 "x86-linux-nat.h".
1795 * i386-linux-nat.c: Likewise.
1796
8e07a239
YQ
17972014-08-06 Yao Qi <yao@codesourcery.com>
1798
1799 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1800 operand" with "Special opcode" in comments.
1801
7bfe8241
GB
18022014-08-05 Gary Benson <gbenson@redhat.com>
1803
1804 * interps.c (initialize_interps): Remove prototype.
1805 (interpreter_initialized): Remove static global.
1806 (interp_add): Do not call initialize_interps.
1807 (initialize_interps): Remove function.
1808
d6c95504
GB
18092014-08-05 Gary Benson <gbenson@redhat.com>
1810
1811 * utils.c (vwarning): Remove spurious va_end.
1812
241fd515
AM
18132014-08-05 Alan Modra <amodra@gmail.com>
1814
1815 * charset.c (convert_between_encodings): Cast result of obstack_base.
1816 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1817 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1818 (read_unwind_info): Use size_t for some locals.
1819 * jit.c (finalize_symtab): Likewise.
1820 * utils.c (hashtab_obstack_allocate): Likewise.
1821 * symmisc.c (print_objfile_statistics): Update format strings.
1822
dc304a94
JK
18232014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1824
1825 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1826 (Changes in GDB 7.8): ... here.
1827
3cecbbbe
TT
18282014-08-04 Tom Tromey <tromey@redhat.com>
1829
1830 * target.c (set_targetdebug): New function.
1831 (initialize_targets): Pass set_targetdebug when creating "set
1832 debug target".
1833
6908c509
JB
18342014-08-01 Joel Brobecker <brobecker@adacore.com>
1835
1836 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1837 if detecting a variable-sized field that is not the last field.
1838 Fix struct type length computation.
1839
53e8f97d
JB
18402014-08-01 Joel Brobecker <brobecker@adacore.com>
1841
1842 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1843 Add debug trace.
1844
e068c55d
JB
18452014-08-01 Joel Brobecker <brobecker@adacore.com>
1846
1847 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1848 Remove "+ 8" offset in computation of CHAIN_VMA.
1849
4d4ca2a1
DE
18502014-07-31 Doug Evans <dje@google.com>
1851
1852 * inflow.c (child_terminal_inferior): Add comment.
1853 (child_terminal_ours_for_output): Add comment.
1854 (child_terminal_ours): Add comment.
1855 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1856 (linux_nat_terminal_ours): Add comment.
1857
462f517e
GB
18582014-07-31 Gary Benson <gbenson@redhat.com>
1859
1860 * common/btrace-common.h: Do not include defs.h or server.h.
1861 * nat/mips-linux-watch.h: Likewise.
1862 * gdb-dlfcn.h: Do not include defs.h.
1863 * tracefile.h: Likewise.
1864
74228e77
RM
18652014-07-30 Roland McGrath <mcgrathr@google.com>
1866
1867 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1868
014f9477
TT
18692014-07-30 Tom Tromey <tromey@redhat.com>
1870
1871 * bsd-kvm.c (bsd_kvm_open): Constify.
1872 * corelow.c (core_open): Constify.
1873 * ctf.c (ctf_open): Constify.
1874 * dbug-rom.c (dbug_open): Constify.
1875 * exec.c (exec_open): Constify.
1876 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1877 * microblaze-rom.c (picobug_open): Constify.
1878 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1879 Constify.
1880 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1881 * record-btrace.c (record_btrace_open): Constify.
1882 * record-full.c (record_full_core_open_1, record_full_open_1)
1883 (record_full_open): Constify.
1884 * remote-m32r-sdi.c (m32r_open): Constify.
1885 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1886 (rockhopper_open, lsi_open): Constify.
1887 * remote-sim.c (gdbsim_open): Constify.
1888 * remote.c (remote_open, extended_remote_open, remote_open_1):
1889 Constify.
1890 * target.h (struct target_ops) <to_open>: Make "arg" const.
1891 * tracefile-tfile.c (tfile_open): Constify.
1892
e799154c
TT
18932014-07-30 Tom Tromey <tromey@redhat.com>
1894
1895 * breakpoint.c (map_breakpoint_numbers): Update.
1896 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1897 (get_number_const): New function.
1898 (get_number): Rewrite using get_number_const.
1899 (init_number_or_range): Make "string" const.
1900 (number_is_in_list): Make "list" const.
1901 * cli/cli-utils.h (get_number_const): Declare.
1902 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1903 (init_number_or_range, number_is_in_list): Update.
1904 * printcmd.c (map_display_numbers): Update.
1905 * value.c (value_from_history_ref): Constify.
1906 * value.h (value_from_history_ref): Update.
1907
5f08566b
TT
19082014-07-30 Tom Tromey <tromey@redhat.com>
1909
1910 * corefile.c (hook_type, call_extra_exec_file_hooks)
1911 (specify_exec_file_hook): Constify.
1912 * exec.c (exec_file_attach): Make "filename" const.
1913 * gdbcore.h (deprecated_exec_file_display_hook)
1914 (specify_exec_file_hook, exec_file_attach): Constify.
1915 * main.c (captured_main): Use catch_command_errors_const.
1916
8981c758
TT
19172014-07-30 Tom Tromey <tromey@redhat.com>
1918
1919 * target.c (open_target): New function.
1920 (add_target_with_completer, add_deprecated_target_alias): Use
1921 set_cmd_sfunc, set_cmd_context.
1922 (debug_to_open): Remove.
1923 (setup_target_debug): Update.
1924
a1c7835a
YQ
19252014-07-30 Yao Qi <yao@codesourcery.com>
1926
1927 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1928 comments.
1929 * parse.c (exp_iterate): Update comments.
1930
976411d6
GB
19312014-07-30 Gary Benson <gbenson@redhat.com>
1932
1933 * common/common-defs.h: New file.
1934 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1935 * defs.h: Include common-defs.h.
1936 Do not include config.h or build-gnulib/config.h.
1937
5d4848a4
GB
19382014-07-30 Gary Benson <gbenson@redhat.com>
1939
1940 * common/common-utils.h: Do not include config.h.
1941 * nat/linux-btrace.h: Likewise.
1942
d41f6d8e
GB
19432014-07-30 Gary Benson <gbenson@redhat.com>
1944
1945 * btrace.c: Include defs.h.
1946 * common/ptid.c: Include defs.h or server.h as appropriate.
1947 * nat/mips-linux-watch.c: Likewise.
1948
84202f9c
TT
19492014-07-29 Tom Tromey <tromey@redhat.com>
1950
1951 * target.c (target_is_pushed): Simplify.
1952
2530441c
JB
19532014-07-29 Joel Brobecker <brobecker@adacore.com>
1954
1955 GDB 7.8 released.
1956
7e09a223
YQ
19572014-07-29 Yao Qi <yao@codesourcery.com>
1958
1959 PR gdb/17206
1960 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1961
7ebdbe92
DE
19622014-07-28 Doug Evans <xdje42@gmail.com>
1963
1964 PR guile/17203
1965 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1966 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1967 parameters.
1968
f347ffc9
WN
19692014-07-28 Will Newton <will.newton@linaro.org>
1970
1971 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1972 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1973 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1974 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1975 (THUMB2_EABI_SYSCALL): Likewise.
1976 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1977 struct tramp_frame.
1978 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1979 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1980
37c5f1f7
DE
19812014-07-27 Doug Evans <xdje42@gmail.com>
1982
1983 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1984
0c3abbc7
DE
19852014-07-27 Doug Evans <xdje42@gmail.com>
1986
1987 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1988
e76c5d17
DE
19892014-07-26 Ludovic Courtès <ludo@gnu.org>
1990 Doug Evans <xdje42@gmail.com>
1991
1992 PR guile/17146
1993 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1994 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1995 * configure.ac: Try to use guild to compile an scm file, if it fails
1996 then disable guile support.
1997 * configure: Regenerate.
1998 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1999 GUILE_FILE_LIST.
2000 (GUILE_COMPILED_FILES): New variable.
2001 (GUILE_FILES) Update.
2002 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2003 (stamp-guile): Compile scm files.
2004 * guile/guile.c (boot_guile_support): New function.
2005 (standard_throw_args_p): New function.
2006 (print_standard_throw_error, print_throw_error): New functions.
2007 (handle_boot_error): New function.
2008 (initialize_scheme_side): Rewrite to call boot_guile_support.
2009 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2010 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2011
186fcde0
DE
20122014-07-26 Ludovic Courtès <ludo@gnu.org>
2013 Doug Evans <xdje42@gmail.com>
2014
2015 PR guile/17146
2016 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2017 * guile/lib/gdb/support.scm: New file.
2018 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2019 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2020 All uses updated.
2021 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2022 All uses updated.
2023 (%assert-type): Ditto, and renamed to assert-type.
2024 (%exception-print-style): Delete.
2025
4df42755
DE
20262014-07-26 Doug Evans <xdje42@gmail.com>
2027
2028 PR build/17105
2029 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2030 * configure: Regenerate.
2031 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2032 PYTHON_FILES.
2033 (PYTHON_FILES): New variable.
2034 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2035 (GUILE_FILES): New variable.
2036 (stamp-python, install-python, uninstall-python): Handle empty
2037 file list.
2038 (stamp-guile, install-guile, uninstall-guile): Ditto.
2039
ee7333ae
DE
20402014-07-26 Doug Evans <xdje42@gmail.com>
2041
2042 PR guile/17177
2043 * guile/lib/gdb.scm (pretty-printers): Export.
2044 (set-pretty-printers!): Export.
2045 * guile/lib/gdb/printing.scm (gdb module): Update.
2046 (prepend-pretty-printer!, append-pretty-printer!): Update.
2047 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2048 (pretty_printer_list_var): Delete.
2049 (pretty_printer_list): New static global.
2050 (gdbscm_pretty_printers): New function.
2051 (gdbscm_set_pretty_printers_x): New function.
2052 (ppscm_find_pretty_printer_from_gdb): Update.
2053 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2054 (gdbscm_initialize_pretty_printers): Update.
2055
74edf516
DE
20562014-07-26 Doug Evans <xdje42@gmail.com>
2057
2058 PR 17185
2059 * configure.ac: Add check for header gc/gc.h.
2060 Add check for function setenv.
2061 * configure: Regenerate.
2062 * config.in: Regenerate.
2063 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2064
d54398a7
MR
20652014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2066
2067 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2068 variation in gdbarch matching.
2069
ab16fce8
TT
20702014-07-25 Tom Tromey <tromey@redhat.com>
2071
2072 * exec.c (using_exec_ops): Remove.
2073 (exec_close_1): Update. Remove extraneous block, reindent.
2074 (add_target_sections): Use target_is_pushed.
2075
88056fbb
PA
20762014-07-25 Pedro Alves <palves@redhat.com>
2077
2078 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2079 * monitor.c (monitor_create_inferior): Likewise.
2080 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2081 * remote-sim.c (gdbsim_create_inferior): Likewise.
2082 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2083 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2084 * windows-nat.c (do_initial_windows_stuff): Likewise.
2085
70509625
PA
20862014-07-25 Pedro Alves <palves@redhat.com>
2087
2088 * NEWS: Mention signal passing and "signal" command changes.
2089 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2090 comment.
2091 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2092 call.
2093 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2094 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2095 (jump_command): Adjust clear_proceed_status call.
2096 (signal_command): Warn if other thread that are resumed have
2097 signals that will be delivered. Adjust clear_proceed_status call.
2098 (until_next_command, finish_command)
2099 (proceed_after_attach_callback, attach_command_post_wait)
2100 (attach_command): Adjust clear_proceed_status call.
2101 * infrun.c (proceed_after_vfork_done): Likewise.
2102 (proceed_after_attach_callback): Adjust comment.
2103 (clear_proceed_status_thread): Clear stop_signal if not in pass
2104 state.
2105 (clear_proceed_status_callback): Delete.
2106 (clear_proceed_status): New 'step' parameter. Only clear the
2107 proceed status of threads the command being prepared is about to
2108 resume.
2109 (proceed): If passed in an explicit signal, override stop_signal
2110 with it. Don't pass the last stop signal to the thread we're
2111 resuming.
2112 (init_wait_for_inferior): Adjust clear_proceed_status call.
2113 (switch_back_to_stepped_thread): Clear the signal if it should not
2114 be passed.
2115 * infrun.h (clear_proceed_status): New 'step' parameter.
2116 (user_visible_resume_ptid): Add comment.
2117 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2118 signal is in pass state.
2119 * remote.c (append_pending_thread_resumptions): Likewise.
2120 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2121
d8be2939
TT
21222014-07-25 Tom Tromey <tromey@redhat.com>
2123
2124 * target.h (target_stopped_data_address)
2125 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2126 parentheses.
2127
7d0d9d2b
PL
21282014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2129
2130 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2131 comments.
2132 (avr_pointer_to_address): Likewise.
2133
e9e7f724
TT
21342014-07-24 Tom Tromey <tromey@redhat.com>
2135
2136 * monitor.c (compile_pattern): Update.
2137 * target.h (struct target_ops) <to_shortname, to_longname,
2138 to_doc>: Now const.
2139
1947513d
TT
21402014-07-24 Tom Tromey <tromey@redhat.com>
2141
2142 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2143 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2144 (add_info_alias, add_com): Make "doc" const.
2145 (print_doc_line): Make "str" const.
2146 (delete_cmd): Update.
2147 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2148 (print_doc_line): Update.
2149 * cli/cli-script.c (document_command): Update.
2150 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2151 (add_com, add_info, add_info_alias): Update.
2152 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2153 * python/py-cmd.c (cmdpy_destroyer): Update.
2154
64e61d29
TT
21552014-07-24 Tom Tromey <tromey@redhat.com>
2156
2157 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2158 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2159 (help_cmd_list): Constify.
2160 (lookup_cmd): Update.
2161 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2162 const.
2163 (help_cmd_list, apropos_cmd): Update.
2164 * cli/cli-script.c (show_user): Update.
2165 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2166 * cli/cli-setshow.h (cmd_show_list): Update.
2167 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2168 (cmd_show_list): Update.
2169 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2170 * python/py-cmd.c (cmdpy_destroyer): Update.
2171
429e55ea
TT
21722014-07-24 Tom Tromey <tromey@redhat.com>
2173
2174 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2175 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2176 const.
2177 * command.h (deprecate_cmd): Update.
2178 * maint.c (maintenance_do_deprecate): Add casts.
2179
64669f3b
TT
21802014-07-24 Tom Tromey <tromey@redhat.com>
2181
2182 * cli/cli-decode.c (help_cmd): Make parameter "const".
2183 * cli/cli-decode.h (help_cmd): Update.
2184
d3d3328b
TT
21852014-07-24 Tom Tromey <tromey@redhat.com>
2186
2187 * stack.c (up_silently_base, down_silently_base): Make argument
2188 const.
2189
414842dc
TT
21902014-07-24 Tom Tromey <tromey@redhat.com>
2191
2192 * solib.c (solib_add): Make "pattern" const.
2193 * solib.h (solib_add): Update.
2194
baa336ce
TT
21952014-07-24 Tom Tromey <tromey@redhat.com>
2196
2197 * remote.c (remote_serial_open, print_packet, putpkt)
2198 (putpkt_binary): Constify.
2199 * remote.h (putpkt): Update.
2200
5a19e2d0
TT
22012014-07-24 Tom Tromey <tromey@redhat.com>
2202
2203 * monitor.c (monitor_open): Make "args" const.
2204 * monitor.h (monitor_open): Update.
2205
fc4baa5e
TT
22062014-07-24 Tom Tromey <tromey@redhat.com>
2207
2208 * maint.c (match_bfd_flags): Make "string" const.
2209 (print_bfd_section_info): Remove casts.
2210 (print_objfile_section_info): Make "string" const.
2211
0d5f0dbe
TT
22122014-07-24 Tom Tromey <tromey@redhat.com>
2213
2214 * inf-child.c (inf_child_open_target): Make "arg" const.
2215 * inf-child.h (inf_child_open_target): Update.
2216
41c77899
TT
22172014-07-24 Tom Tromey <tromey@redhat.com>
2218
2219 * environ.c (unset_in_environ): Make "var" const.
2220 * environ.h (unset_in_environ): Update.
2221
93db0d79
TT
22222014-07-24 Tom Tromey <tromey@redhat.com>
2223
2224 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2225 Make "cmd" const.
2226 (scan_filename_with_cleanup): Likewise.
2227 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2228 Make arguments const.
2229 (restore_command): Update.
2230
36d6eb95
PA
22312014-07-24 Pedro Alves <palves@redhat.com>
2232
2233 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2234
8009206a
TT
22352014-07-24 Tom Tromey <tromey@redhat.com>
2236 Gary Benson <gbenson@redhat.com>
2237
2238 * nat/linux-ptrace.c (additional_flags): New global.
2239 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2240 additional_flags; don't check GDBSERVER.
2241 (linux_ptrace_set_additional_flags): New function.
2242 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2243 Declare.
2244 * linux-nat.c (_initialize_linux_nat): Call
2245 linux_ptrace_set_additional_flags.
2246
a7068b60
TT
22472014-07-24 Tom Tromey <tromey@redhat.com>
2248
2249 * make-target-delegates (munge_type, write_debugmethod): New
2250 functions.
2251 (debug_names): New global.
2252 ($TARGET_DEBUG_PRINTER): New global.
2253 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2254 name.
2255 Write debug methods. Generate init_debug_target.
2256 * target-debug.h: New file.
2257 * target-delegates.c: Rebuild.
2258 * target.c: Include target-debug.h.
2259 (debug_target): Hoist definition.
2260 (target_kill, target_get_section_table, target_memory_map)
2261 (target_flash_erase, target_flash_done, target_detach)
2262 (target_disconnect, target_wait, target_resume)
2263 (target_pass_signals, target_program_signals, target_follow_fork)
2264 (target_mourn_inferior, target_search_memory)
2265 (target_thread_address_space, target_close)
2266 (target_find_new_threads, target_core_of_thread)
2267 (target_verify_memory, target_insert_mask_watchpoint)
2268 (target_remove_mask_watchpoint): Remove targetdebug code.
2269 (debug_to_post_attach, debug_to_prepare_to_store)
2270 (debug_to_files_info, debug_to_insert_breakpoint)
2271 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2272 (debug_to_region_ok_for_hw_watchpoint)
2273 (debug_to_can_accel_watchpoint_condition)
2274 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2275 (debug_to_watchpoint_addr_within_range)
2276 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2277 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2278 (debug_to_terminal_init, debug_to_terminal_inferior)
2279 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2280 (debug_to_terminal_save_ours, debug_to_terminal_info)
2281 (debug_to_load, debug_to_post_startup_inferior)
2282 (debug_to_insert_fork_catchpoint)
2283 (debug_to_remove_fork_catchpoint)
2284 (debug_to_insert_vfork_catchpoint)
2285 (debug_to_remove_vfork_catchpoint)
2286 (debug_to_insert_exec_catchpoint)
2287 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2288 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2289 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2290 (setup_target_debug): Call init_debug_target.
2291 * target.h (TARGET_DEBUG_PRINTER): New macro.
2292 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2293 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2294
2c51604d
GB
22952014-07-24 Gary Benson <gbenson@redhat.com>
2296
2297 * exceptions.h (throw_vfatal): Renamed to...
2298 (throw_vquit): New declaration.
2299 (throw_quit): Likewise.
2300 * exceptions.c (throw_vfatal): Renamed to...
2301 (throw_vquit): New function.
2302 (throw_quit): Likewise.
2303 (throw_error): Call throw_verror rather than throw_it.
2304 * utils.h (vfatal): Removed.
2305 (fatal): Likewise.
2306 * utils.c (vfatal): Removed.
2307 (fatal): Likewise.
2308 (internal_verror): Replaced call to fatal with call to throw_quit.
2309 (quit): Replaced calls to fatal with calls to throw_quit.
2310
34211963
ME
23112014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2312
2313 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2314 target_read_code.
2315
a52b4d3e
ME
23162014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2317
2318 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2319 less than zero in conditional expression.
2320
a8bdc56b
TT
23212014-07-23 Tom Tromey <tromey@redhat.com>
2322
2323 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2324 ($INTRO_PART): Don't match whitespace.
2325 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2326 argument matching.
2327 ($METHOD): Add $METHOD_TRAILER.
2328 (trim): Rewrite.
2329 (scan_target_h): New sub.
2330 Change main loop not to collect state.
2331 * target-delegates.c: Rebuild.
2332
91b52240
GB
23332014-07-23 Gary Benson <gbenson@redhat.com>
2334
2335 * cp-support.c (gdb_demangle): Fix build on systems without
2336 sigaltstack.
2337
45326f6f
JK
23382014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2339
2340 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2341 for reference entry value target data value.
2342
e214cf6c
JK
23432014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2344
2345 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2346 value_available_contents_eq.
2347
bddbbedd
PA
23482014-07-22 Pedro Alves <palves@redhat.com>
2349
2350 * value.c (allocate_optimized_out_value): Don't mark value as
2351 non-lazy.
2352
45c71484
JW
23532014-07-22 Jiong Wang <jiong.wang@arm.com>
2354
2355 * MAINTAINERS (Write After Approval): Update my email address.
2356
9597b22a
DE
23572014-07-20 Doug Evans <dje@google.com>
2358
2359 PR server/17147
2360 * remote.c (putpkt_binary): Add text to error message.
2361
91101fe5
YQ
23622014-07-20 Yao Qi <yao@codesourcery.com>
2363
2364 * eval.c: Remove "Chill" from comments.
2365 * gdbtypes.h: Likewise.
2366 * symtab.h: Likewise.
2367
c9402c95
YQ
23682014-07-20 Yao Qi <yao@codesourcery.com>
2369
2370 * std-operator.def: Update comments to TERNOP_SLICE.
2371
ae8fddda
YQ
23722014-07-20 Yao Qi <yao@codesourcery.com>
2373
2374 * std-operator.def: Remove BINOP_RANGE.
2375 * breakpoint.c (watchpoint_exp_is_const): Update.
2376 * expprint.c (dump_subexp_body_standard): Likewise.
2377 * eval.c (init_array_element): Remove dead code.
2378 (evaluate_subexp_standard): Likewise.
2379
9c816640
YQ
23802014-07-20 Yao Qi <yao@codesourcery.com>
2381
2382 * std-operator.def: Remove BINOP_IN.
2383 * breakpoint.c (watchpoint_exp_is_const): Update.
2384 * eval.c (evaluate_subexp_standard): Likewise.
2385 * expprint.c (dump_subexp_body_standard): Likewise.
2386
164224e9
ME
23872014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2388
2389 * microblaze-tdep.c (microblaze_register_names): Add
2390 the rshr and rslr register names.
2391 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2392 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2393 Use of tdesc_numbered_register. Use of
2394 microblaze_register_g_packet_guesses. Use of
2395 tdesc_use_registers. Use of set_gdbarch_register_type.
2396 (microblaze_register_g_packet_guesses): New.
2397 * microblaze-tdep.h (microblaze_reg_num): Add
2398 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2399 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2400 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2401 * features/microblaze-core.xml: New file.
2402 * features/microblaze-stack-protect.xml: New file.
2403 * features/microblaze-with-stack-protect.c: New file.
2404 * features/microblaze-with-stack-protect.xml: New file.
2405 * features/microblaze.xml: New file.
2406 * features/microblaze.c: New file.
2407 * features/Makefile (microblaze-with-stack-protect): Add
2408 microblaze-with-stack-protect microblaze and microblaze-expedite.
2409 * regformats/microblaze-with-stack-protect.dat: New file.
2410 * regformats/microblaze.dat: New file.
2411 * doc/gdb.texinfo (MicroBlaze Features): Added.
2412
e8b2341c
TT
24132014-07-18 Tom Tromey <tromey@redhat.com>
2414
2415 * exec.c (exec_ops): Now static.
2416 * exec.h (exec_ops): Don't declare.
2417
44e89118
TT
24182014-07-18 Tom Tromey <tromey@redhat.com>
2419
2420 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2421 to find_target_beneath.
2422 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2423 find_target_beneath.
2424 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2425
b0ed115f
TT
24262014-07-18 Tom Tromey <tromey@redhat.com>
2427
2428 PR gdb/17130:
2429 * utils.c (quit): Use target_supports_terminal_ours.
2430 * target.h (target_supports_terminal_ours): Declare.
2431 * target.c (target_supports_delete_record): Don't check
2432 to_delete_record against NULL.
2433 (target_supports_terminal_ours): New function.
2434
e75fdfca
TT
24352014-07-18 Tom Tromey <tromey@redhat.com>
2436
2437 PR gdb/17130:
2438 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2439 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2440 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2441 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2442 * windows-nat.c (windows_xfer_partial): Always delegate.
2443 * record-btrace.c (record_btrace_xfer_partial): Simplify
2444 delegation.
2445 (record_btrace_fetch_registers, record_btrace_store_registers)
2446 (record_btrace_prepare_to_store, record_btrace_resume)
2447 (record_btrace_wait, record_btrace_find_new_threads)
2448 (record_btrace_thread_alive): Likewise.
2449 * procfs.c (procfs_xfer_partial): Always delegate.
2450 * corelow.c (core_xfer_partial): Always delegate.
2451 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2452
83814951
TT
24532014-07-18 Tom Tromey <tromey@redhat.com>
2454
2455 * exec.c (exec_make_note_section): Move earlier.
2456
b8b8facf
DE
24572014-07-17 Doug Evans <dje@google.com>
2458
74b49205 2459 PR gdb/17170
b8b8facf
DE
2460 * maint.c (count_symtabs_and_blocks): Handle NULL
2461 current_program_space.
2462 (report_command_stats): Check global enabled flag in addition to
2463 recorded enabled flag.
2464 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2465
69ff6be5
PA
24662014-07-16 Pedro Alves <palves@redhat.com>
2467
2468 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2469
252db1b5
TT
24702014-07-16 Tom Tromey <tromey@redhat.com>
2471
2472 * target.h (struct target_ops) <to_delete_record>: Reformat
2473 comment.
2474
a432721e
TT
24752014-07-16 Tom Tromey <tromey@redhat.com>
2476
2477 * target-delegates.c: Rebuild.
2478
487d9753
PL
24792014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2480
2481 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2482 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2483 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2484 (avr_pointer_to_address): Likewise.
2485 (avr_address_class_type_flags): New function.
2486 (avr_address_class_type_flags_to_name): Likewise.
2487 (avr_address_class_name_to_type_flags): Likewise.
2488 (avr_gdbarch_init): Set address_class_type_flags,
2489 address_class_type_flags_to_name and
2490 address_class_name_to_type_flags.
2491
57745c90
PA
24922014-07-15 Pedro Alves <palves@redhat.com>
2493
2494 * linux-nat.c (kill_callback): Save errno and work with saved
2495 copy.
2496
2d40be18
SM
24972014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2498
2499 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2500
572f6555
EBM
25012014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2502
2503 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2504 breakpoint support correctly.
2505
cc1c52ad
PA
25062014-07-14 Pedro Alves <palves@redhat.com>
2507
2508 * utils.c (prompt_for_continue): Call target_terminal_ours.
2509
1e973570
PA
25102014-07-14 Pedro Alves <palves@redhat.com>
2511
2512 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2513 catch_errors. Don't re-enable stdin or notify observers where,
2514 and rethrow error.
2515 (fetch_inferior_event_wrapper): Delete.
2516
93d6eb10
PA
25172014-07-14 Pedro Alves <palves@redhat.com>
2518
2519 PR gdb/17072
2520 * top.c: Include "inf-loop.h".
2521 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2522 field.
2523 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2524 was async before.
2525 (gdb_readline_wrapper): Store whether the target is async, and
2526 make it sync.
2527
0017922d
PA
25282014-07-14 Pedro Alves <palves@redhat.com>
2529
2530 PR gdb/17072
2531 * top.c (gdb_readline_wrapper_line): Tweak comment.
2532 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2533 the input handler callback.
2534
94696ad3
PA
25352014-07-14 Pedro Alves <palves@redhat.com>
2536
2537 PR gdb/17072
2538 * main.c: Include event-top.h.
2539 (handle_command_errors): New function.
2540 (catch_command_errors, catch_command_errors_const): Use it.
2541
9d1e69a2
PA
25422014-07-14 Pedro Alves <palves@redhat.com>
2543
2544 * exceptions.c (catch_command_errors, catch_command_errors_const):
2545 Moved to main.c.
2546 * exceptions.h (catch_command_errors_ftype)
2547 (catch_command_errors_const_ftype): Moved to main.c.
2548 (catch_command_errors, catch_command_errors_const): Delete
2549 declarations.
2550 * main.c (catch_command_errors_ftype)
2551 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2552 (catch_command_errors, catch_command_errors_const)): Moved here
2553 from exceptions.c and make static.
2554
feefc97b
PA
25552014-07-14 Pedro Alves <palves@redhat.com>
2556
2557 * exceptions.c (print_any_exception): Delete.
2558 (catch_exceptions_with_msg): Use exception_print instead of
2559 print_any_exception.
2560 (catch_errors): Use exception_fprintf instead of
2561 print_any_exception.
2562 (catch_command_errors, catch_command_errors_const): Use
2563 exception_print instead of print_any_exception.
2564
c933f875
PA
25652014-07-14 Pedro Alves <palves@redhat.com>
2566
2567 * infcall.c (run_inferior_call): Set 'sync_execution' while
2568 running the inferior call.
2569
feb6f816
PA
25702014-07-14 Pedro Alves <palves@redhat.com>
2571
2572 * value.c (value_contents_equal): Delete function.
2573 * value.h (value_contents_equal): Delete declaration.
2574
d98b7a16
TT
25752014-07-14 Tom Tromey <tromey@redhat.com>
2576
2577 PR exp/17106:
2578 * gdbtypes.c (is_dynamic_type_internal): New function, from
2579 is_dynamic_type.
2580 (is_dynamic_type): Rewrite.
2581 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2582 (resolve_dynamic_struct): Likewise.
2583 (resolve_dynamic_type_internal): New function, from
2584 resolve_dynamic_type.
2585 (resolve_dynamic_type): Rewrite.
2586
548740d6
TT
25872014-07-14 Tom Tromey <tromey@redhat.com>
2588
2589 * target.c (target_require_runnable): Also check record_stratum.
2590 Update comment.
2591
808f7ab1
YQ
25922014-07-11 Yao Qi <yao@codesourcery.com>
2593
2594 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2595 thumb_instruction_restores_sp return true.
2596
540314bd
YQ
25972014-07-11 Yao Qi <yao@codesourcery.com>
2598
2599 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2600 (thumb_in_function_epilogue_p): Call
2601 thumb_instruction_restores_sp.
2602
1db01f22
YQ
26032014-07-11 Yao Qi <yao@codesourcery.com>
2604
2605 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2606 'add sp, #imm'.
2607 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2608
3116063b
GB
26092014-07-11 Gary Benson <gbenson@redhat.com>
2610
2611 * amd64-linux-nat.c (gdbcore.h): Remove include.
2612 (regset.h): Likewise.
2613 (nat/linux-btrace.h): Likewise.
2614 (btrace.h): Likewise.
2615 (gdb_assert.h): Likewise.
2616 (string.h): Likewise.
2617 (sys/uio.h): Likewise.
2618 (sys/debugreg.h): Likewise.
2619 (sys/syscall.h): Likewise.
2620 (sys/procfs.h): Likewise.
2621 (sys/user.h): Likewise.
2622 (asm/ptrace.h): Likewise.
2623 (i386-nat.h): Likewise.
2624 * i386-linux-nat.c (i386-nat.h): Likewise.
2625 (regset.h): Likewise.
2626 (target.h): Likewise.
2627 (linux-nat.h): Likewise.
2628 (nat/linux-btrace.h): Likewise.
2629 (btrace.h): Likewise.
2630 (gdb_assert.h): Likewise.
2631 (string.h): Likewise.
2632 (sys/uio.h): Likewise.
2633 (sys/user.h): Likewise.
2634 (sys/procfs.h): Likewise.
2635 (sys/reg.h): Likewise.
2636 (sys/debugreg.h): Likewise.
2637 (ORIG_EAX): Remove definition.
2638
040baaf6
GB
26392014-07-11 Gary Benson <gbenson@redhat.com>
2640
2641 * i386-linux-nat.h: New file.
2642 * x86-linux-nat.h: Likewise.
2643 * x86-linux-nat.c: Likewise.
2644 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2645 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2646 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2647 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2648 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2649 (PTRACE_SETREGSET): Likewise.
2650 (arch_lwp_info): Now in x86-linux-nat.c.
2651 (have_ptrace_getregset): Now in x86-linux-nat.h.
2652 (x86_linux_dr_get): Now in x86-linux-nat.c.
2653 (x86_linux_dr_set): Likewise.
2654 (x86_linux_dr_get_addr): Likewise.
2655 (x86_linux_dr_get_control): Likewise.
2656 (x86_linux_dr_get_status): Likewise.
2657 (update_debug_registers_callback): Likewise.
2658 (x86_linux_dr_set_control): Likewise.
2659 (x86_linux_dr_set_addr): Likewise.
2660 (x86_linux_prepare_to_resume): Likewise.
2661 (x86_linux_new_thread): Likewise.
2662 (x86_linux_new_fork): Likewise.
2663 (x86_linux_get_thread_area): Likewise.
2664 (super_post_startup_inferior): Likewise.
2665 (x86_linux_child_post_startup_inferior): Likewise.
2666 (AMD64_LINUX_USER64_CS): Likewise.
2667 (AMD64_LINUX_X32_DS): Likewise.
2668 (x86_linux_read_description): Likewise.
2669 (x86_linux_enable_btrace): Likewise.
2670 (x86_linux_disable_btrace): Likewise.
2671 (x86_linux_teardown_btrace): Likewise.
2672 (x86_linux_read_btrace): Likewise.
2673 (x86_linux_create_target): Likewise.
2674 (x86_linux_add_target): Likewise.
2675 * i386-linux-nat.c (x86-linux-nat.h): New include.
2676 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2677 (PTRACE_SETREGSET): Likewise.
2678 (arch_lwp_info): Now in x86-linux-nat.c.
2679 (have_ptrace_getregset): Now in x86-linux-nat.h.
2680 (x86_linux_dr_get): Now in x86-linux-nat.c.
2681 (x86_linux_dr_set): Likewise.
2682 (x86_linux_dr_get_addr): Likewise.
2683 (x86_linux_dr_get_control): Likewise.
2684 (x86_linux_dr_get_status): Likewise.
2685 (update_debug_registers_callback): Likewise.
2686 (x86_linux_dr_set_control): Likewise.
2687 (x86_linux_dr_set_addr): Likewise.
2688 (x86_linux_prepare_to_resume): Likewise.
2689 (x86_linux_new_thread): Likewise.
2690 (x86_linux_new_fork): Likewise.
2691 (x86_linux_get_thread_area): Likewise.
2692 (super_post_startup_inferior): Likewise.
2693 (x86_linux_child_post_startup_inferior): Likewise.
2694 (AMD64_LINUX_USER64_CS): Likewise.
2695 (AMD64_LINUX_X32_DS): Likewise.
2696 (x86_linux_read_description): Likewise.
2697 (x86_linux_enable_btrace): Likewise.
2698 (x86_linux_disable_btrace): Likewise.
2699 (x86_linux_teardown_btrace): Likewise.
2700 (x86_linux_read_btrace): Likewise.
2701 (x86_linux_create_target): Likewise.
2702 (x86_linux_add_target): Likewise.
2703
1aa7e42c
GB
27042014-07-11 Gary Benson <gbenson@redhat.com>
2705
2706 * amd64-linux-nat.c: Comment and whitespace changes.
2707 * i386-linux-nat.c: Comment and whitespace changes.
2708
c1e246a0
GB
27092014-07-11 Gary Benson <gbenson@redhat.com>
2710
2711 * amd64-linux-nat.c (x86_linux_create_target): New function.
2712 (x86_linux_add_target): Likewise.
2713 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2714 * i386-linux-nat.c (x86_linux_create_target): New function.
2715 (x86_linux_add_target): Likewise.
2716 (_initialize_i386_linux_nat): Delegate to the above new functions.
2717
8c420b8d
GB
27182014-07-11 Gary Benson <gbenson@redhat.com>
2719
2720 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2721 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2722 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2723 (ps_get_thread_area): Delegate to the above.
2724
cb1da100
GB
27252014-07-11 Gary Benson <gbenson@redhat.com>
2726
2727 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2728 x86_linux_read_description. All uses updated. amd64-specific
2729 code conditionalized. Conditionalized i386-specific code added.
2730 Redundant cast removed.
2731 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2732 x86_linux_read_description. All uses updated. i386-specific
2733 code conditionalized. Conditionalized amd64-specific code added.
2734 One sizeof replaced with the actual type it is describing.
2735
2acf3cd0
GB
27362014-07-11 Gary Benson <gbenson@redhat.com>
2737
2738 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2739 x86_linux_dr_get. All uses updated.
2740 (amd64_linux_dr_set): Renamed to
2741 x86_linux_dr_set. All uses updated.
2742 (amd64_linux_dr_get_addr): Renamed to
2743 x86_linux_dr_get_addr. All uses updated.
2744 (amd64_linux_dr_get_control): Renamed to
2745 x86_linux_dr_get_control. All uses updated.
2746 (amd64_linux_dr_get_status): Renamed to
2747 x86_linux_dr_get_status. All uses updated.
2748 (amd64_linux_dr_set_control): Renamed to
2749 x86_linux_dr_set_control. All uses updated.
2750 (amd64_linux_dr_set_addr): Renamed to
2751 x86_linux_dr_set_addr. All uses updated.
2752 (amd64_linux_prepare_to_resume): Renamed to
2753 x86_linux_prepare_to_resume. All uses updated.
2754 (amd64_linux_new_thread): Renamed to
2755 x86_linux_new_thread. All uses updated.
2756 (amd64_linux_new_fork): Renamed to
2757 x86_linux_new_fork. All uses updated.
2758 (amd64_linux_child_post_startup_inferior): Renamed to
2759 x86_linux_child_post_startup_inferior. All uses updated.
2760 (amd64_linux_enable_btrace): Renamed to
2761 x86_linux_enable_btrace. All uses updated.
2762 (amd64_linux_disable_btrace): Renamed to
2763 x86_linux_disable_btrace. All uses updated.
2764 (amd64_linux_teardown_btrace): Renamed to
2765 x86_linux_teardown_btrace. All uses updated.
2766 (amd64_linux_read_btrace): Renamed to
2767 x86_linux_read_btrace. All uses updated.
2768 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2769 x86_linux_dr_get. All uses updated.
2770 (i386_linux_dr_set): Renamed to
2771 x86_linux_dr_set. All uses updated.
2772 (i386_linux_dr_get_addr): Renamed to
2773 x86_linux_dr_get_addr. All uses updated.
2774 (i386_linux_dr_get_control): Renamed to
2775 x86_linux_dr_get_control. All uses updated.
2776 (i386_linux_dr_get_status): Renamed to
2777 x86_linux_dr_get_status. All uses updated.
2778 (i386_linux_dr_set_control): Renamed to
2779 x86_linux_dr_set_control. All uses updated.
2780 (i386_linux_dr_set_addr): Renamed to
2781 x86_linux_dr_set_addr. All uses updated.
2782 (i386_linux_prepare_to_resume): Renamed to
2783 x86_linux_prepare_to_resume. All uses updated.
2784 (i386_linux_new_thread): Renamed to
2785 x86_linux_new_thread. All uses updated.
2786 (i386_linux_new_fork): Renamed to
2787 x86_linux_new_fork. All uses updated.
2788 (i386_linux_child_post_startup_inferior): Renamed to
2789 x86_linux_child_post_startup_inferior. All uses updated.
2790 (i386_linux_enable_btrace): Renamed to
2791 x86_linux_enable_btrace. All uses updated.
2792 (i386_linux_disable_btrace): Renamed to
2793 x86_linux_disable_btrace. All uses updated.
2794 (i386_linux_teardown_btrace): Renamed to
2795 x86_linux_teardown_btrace. All uses updated.
2796 (i386_linux_read_btrace): Renamed to
2797 x86_linux_read_btrace. All uses updated.
2798
b9c1d481
AS
27992014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2800
2801 * remote.c (extended_remote_post_attach): New function.
2802 (init_extended_remote_ops): Install it as to_post_attach method.
2803
7180e04a
PA
28042014-07-09 Pedro Alves <palves@redhat.com>
2805
2806 * infcmd.c (attach_command_post_wait): Don't call
2807 target_terminal_inferior here.
2808 (attach_command): Call it here instead.
2809
9a9a7608
AB
28102014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2811
2812 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2813 field.
2814 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2815 from varobj.c, with additional checks.
2816 (c_varobj_ops): Fill in is_path_expr_parent field.
2817 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2818 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2819 field.
2820 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2821 ops method.
2822 (varobj_default_is_path_expr_parent): New function.
2823 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2824 (varobj_default_is_path_expr_parent): Declare new function.
2825
1f267ae3
MM
28262014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2827
2828 * infcmd.c (finish_backward): Turn internal error into normal error.
2829
b2ee242b
PA
28302014-07-07 Pedro Alves <palves@redhat.com>
2831
8a869bca 2832 PR gdb/17096
b2ee242b
PA
2833 * remote.c (async_handle_remote_sigint)
2834 (async_handle_remote_sigint_twice): Call
2835 gdb_call_async_signal_handler instead of
2836 mark_async_signal_handler.
2837
38e229b2
TT
28382014-07-07 Tom Tromey <tromey@redhat.com>
2839
2840 * target-delegates.c: Rebuild.
2841 * target.c (target_info_record): Remove.
2842 * record.c (info_record_command): Unconditionally call
2843 to_info_record.
2844 * target.h (struct target_ops) <to_info_record>: Use
2845 TARGET_DEFAULT_IGNORE.
2846 (target_info_record): Remove.
2847
f0f9ff95
TT
28482014-07-07 Tom Tromey <tromey@redhat.com>
2849
2850 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2851 TARGET_DEFAULT_NORETURN.
2852 * target.c (generic_tls_error): New function.
2853 (target_translate_tls_address): Don't search target stack.
2854 * target-delegates.c: Rebuild.
2855 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2856 stack.
2857 * linux-thread-db.c (thread_db_get_thread_local_address):
2858 Unconditionally call beneath target.
2859
4a5be5ee
MK
28602014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2861
2862 * cli/cli-logging.c (pop_output_files): Assign targerr to
2863 gdb_stdtargerr.
2864
92c3b204
AB
28652014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2866
2867 * MAINTAINERS (Write After Approval): Update my email address.
2868
9b11e3a7
GB
28692014-07-02 Gary Benson <gbenson@redhat.com>
2870
2871 * proc-service.c (ps_xfer_memory): Update comment.
2872 (ps_pstop): Remove unused function.
2873 (ps_pcontinue): Likewise.
2874 (ps_lstop): Likewise.
2875 (ps_lcontinue): Likewise.
2876 (ps_lgetxregsize): Likewise.
2877 (ps_lgetxregs): Likewise.
2878 (ps_lsetxregs): Likewise.
2879 (ps_plog): Likewise.
2880 (ps_ptread): Likewise.
2881 (ps_ptwrite): Likewise.
2882
cf363f18
MW
28832014-07-01 Mark Wielaard <mjw@redhat.com>
2884
2885 * dwarf2read.c (add_array_cv_type): New function.
2886 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2887 (read_tag_volatile_type): Likewise.
2888
82ae6c8d
TT
28892014-07-01 Tom Tromey <tromey@redhat.com>
2890
2891 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2892 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2893 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2894 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2895 * command.h (cmd_cfunc_ftype): Move earlier.
2896 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2897 (add_com, add_info): Use cmd_cfunc_ftype.
2898
96142726
TT
28992014-06-30 Tom Tromey <tromey@redhat.com>
2900
2901 * symtab.c (operator_chars): Make parameters and return type
2902 const.
2903 (file_matches): Make "files" const.
2904 (struct search_symbols_data) <files>: Now const.
2905 (search_symbols): Make "regexp" and "files" parameters const.
2906 Update.
2907 (symtab_symbol_info): Remove cast.
2908 (rbreak_command): Update.
2909 * symtab.h (search_symbols): Update.
2910
b67a2c6f
YQ
29112014-06-27 Yao Qi <yao@codesourcery.com>
2912
2913 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2914 Change parameter type to 'struct thread_info *'. Caller
2915 updated.
2916 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2917 Update declaration.
2918 * dummy-frame.c (struct dummy_frame_id): New.
2919 (dummy_frame_id_eq): New function.
2920 (struct dummy_frame) <id>: Change its type to 'struct
2921 dummy_frame_id'.
2922 (dummy_frame_push): Add parameter ptid and save it in
2923 dummy_frame_id.
2924 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2925 inferior_ptid.
2926 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2927 to inferior_ptid.
2928 (lookup_dummy_frame): Change parameter type to 'struct
2929 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2930 instead of frame_id_eq.
2931 (dummy_frame_pop): Add parameter ptid. Callers updated.
2932 Update comments. Compose dummy_frame_id and pass it to
2933 lookup_dummy_frame.
2934 (dummy_frame_discard): Add parameter ptid.
2935 (dummy_frame_sniffer): Compose dummy_frame_id and call
2936 dummy_frame_id_eq instead of frame_id_eq.
2937 (fprint_dummy_frames): Print ptid.
2938 * dummy-frame.h: Remove comments.
2939 (dummy_frame_push): Add ptid in declaration.
2940 (dummy_frame_pop, dummy_frame_discard): Likewise.
2941
5b10184c
TT
29422014-06-26 Tom Tromey <tromey@redhat.com>
2943
2944 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2945 * command.h (error_no_arg): Update.
2946
06900326
TT
29472014-06-26 Tom Tromey <tromey@redhat.com>
2948
2949 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2950 (do_show_command): Make "arg" const.
2951 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2952
c2bcbb1d
TT
29532014-06-26 Tom Tromey <tromey@redhat.com>
2954
2955 * record-full.c (record_full_get_bookmark): Make "args" const.
2956 (record_full_goto_bookmark): Make "raw_bookmark" const.
2957 * record.c (record_goto): New function.
2958 (cmd_record_goto): Use it. Now static.
2959 * record.h (record_goto): Declare.
2960 (cmd_record_goto): Remove declaration.
2961 * target-delegates.c: Rebuild.
2962 * target.h (struct target_ops) <to_get_bookmark,
2963 to_goto_bookmark>: Make parameter const.
2964
9cbe5fff
TT
29652014-06-26 Tom Tromey <tromey@redhat.com>
2966
2967 * defs.h (generic_load): Update.
2968 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2969 * monitor.c (monitor_load): Make "args" const.
2970 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2971 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2972 const.
2973 (mips_load): Make "file" const.
2974 * remote-sim.c (gdbsim_load): Make "args" const.
2975 * remote.c (remote_load): Make "name" const.
2976 * symfile.c (generic_load): Make "args" const.
2977 * target-delegates.c: Rebuild.
2978 * target.c (target_load): Make "arg" const.
2979 (debug_to_load): Make "args" const.
2980 * target.h (struct target_ops) <to_load>: Make parameter const.
2981 (target_load): Update.
2982
34a68019
TT
29832014-06-26 Tom Tromey <tromey@redhat.com>
2984
2985 PR symtab/16902:
2986 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2987 (dwarf2_physname, read_partial_die)
2988 (guess_partial_die_structure_name, fixup_partial_die)
2989 (guess_full_die_structure_name, anonymous_struct_prefix)
2990 (dwarf2_name): Use per-BFD obstack.
2991
efc889c1
YQ
29922014-06-26 Yao Qi <yao@codesourcery.com>
2993
2994 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2995 dummyframe and this_id into inner block below.
2996
4395285e
YQ
29972014-06-26 Yao Qi <yao@codesourcery.com>
2998
2999 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3000 with "signal_pass[0]" in the initialization of signal_pass.
3001
aef92902
MM
30022014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3003
3004 * record-btrace.c (record_btrace_generating_corefile)
3005 (record_btrace_prepare_to_generate_core)
3006 (record_btrace_done_generating_core): New.
3007 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3008 (record_btrace_store_registers, record_btrace_prepare_to_store):
3009 Forward request when generating a core file.
3010 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3011 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3012 to_done_generating_core.
3013
5fff78c4
MM
30142014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3015
3016 * target.h (target_ops) <to_prepare_to_generate_core>
3017 <to_done_generating_core>: New.
3018 (target_prepare_to_generate_core, target_done_generating_core): New.
3019 * target.c (target_prepare_to_generate_core)
3020 (target_done_generating_core): New.
3021 * target-delegates.c: Regenerate.
3022 * gcore.c: (write_gcore_file): Rename to ...
3023 (write_gcore_file_1): ...this.
3024 (write_gcore_file): Call target_prepare_to_generate_core
3025 and target_done_generating_core.
3026
1d1f1ccb
MM
30272014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3028
3029 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3030 * gcore.c (write_gcore_file): Free memory returned from
3031 make_corefile_notes.
3032 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3033 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3034
3343ef86
YQ
30352014-06-24 Yao Qi <yao@codesourcery.com>
3036
3037 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3038 (arm_linux_init_abi): Set skip_trampoline_code with
3039 gdbarch_skip_trampoline_code instead of
3040 find_solib_trampoline_target.
3041
18d18ac8
YQ
30422014-06-24 Yao Qi <yao@codesourcery.com>
3043
3044 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3045 arm_skip_bx_reg returns non-zero.
3046
80d8d390
YQ
30472014-06-24 Yao Qi <yao@codesourcery.com>
3048
3049 * arm-tdep.c (arm_skip_bx_reg): New function.
3050 (arm_skip_stub): Call arm_skip_bx_reg.
3051
6a18a01c
DB
30522014-06-23 Don Breazeal <donb@codesourcery.com>
3053
3054 * MAINTAINERS: Add myself as write-after-approval maintainer.
3055
8e9db26e
PA
30562014-06-23 Pedro Alves <palves@redhat.com>
3057
3058 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3059 DR_CONTROL before setting DR0..DR3.
3060 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3061 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3062 bits of DR_CONTROL related to the debug register slot being
3063 disabled. If all slots are vacant, clear local slowdown as well,
3064 and assert DR_CONTROL is 0.
3065
70afc5b7
SC
30662014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3067
3068 * python/lib/gdb/command/xmethods.py
3069 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3070 current progspace only if the string "progspace" matches LOCUS_RE.
3071
840ed64d
JK
30722014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3073
3074 Fix --with-system-readline with readline-6.3 patch 5.
3075 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3076 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3077 types.
3078
26f2dc30
TT
30792014-06-20 Tom Tromey <tromey@redhat.com>
3080
3081 * dwarf2read.c (dw2_get_real_path): Use correct type in
3082 OBSTACK_CALLOC.
3083 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3084
125f8a3d
GB
30852014-06-20 Gary Benson <gbenson@redhat.com>
3086
3087 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3088 * common/glibc_thread_db.h: Likewise.
3089 * common/i386-cpuid.h: Likewise.
3090 * common/i386-gcc-cpuid.h: Likewise.
3091 * common/linux-btrace.h: Likewise.
3092 * common/linux-osdata.h: Likewise.
3093 * common/linux-procfs.h: Likewise.
3094 * common/linux-ptrace.h: Likewise.
3095 * common/mips-linux-watch.h: Likewise.
3096 * common/linux-btrace.c: Moved to nat.
3097 * common/linux-osdata.c: Likewise.
3098 * common/linux-procfs.c: Likewise.
3099 * common/linux-ptrace.c: Likewise.
3100 * common/mips-linux-watch.c: Likewise.
3101 * nat/gdb_thread_db.h: Moved from common.
3102 * nat/glibc_thread_db.h: Likewise.
3103 * nat/i386-cpuid.h: Likewise.
3104 * nat/i386-gcc-cpuid.h: Likewise.
3105 * nat/linux-btrace.c: Likewise.
3106 * nat/linux-btrace.h: Likewise.
3107 * nat/linux-osdata.c: Likewise.
3108 * nat/linux-osdata.h: Likewise.
3109 * nat/linux-procfs.c: Likewise.
3110 * nat/linux-procfs.h: Likewise.
3111 * nat/linux-ptrace.c: Likewise.
3112 * nat/linux-ptrace.h: Likewise.
3113 * nat/mips-linux-watch.c: Likewise.
3114 * nat/mips-linux-watch.h: Likewise.
3115 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3116 (object file files): Reordered.
3117 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3118 of glibc_thread_db.h.
3119
42995dbd
GB
31202014-06-20 Gary Benson <gbenson@redhat.com>
3121
3122 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3123 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3124 (i386_dr_low): Likewise.
3125 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3126 (i386_dr_low_set_addr): Likewise.
3127 (i386_dr_low_get_addr): Likewise.
3128 (i386_dr_low_can_set_control): Likewise.
3129 (i386_dr_low_set_control): Likewise.
3130 (i386_dr_low_get_control): Likewise.
3131 (i386_dr_low_get_status): Likewise.
3132 (i386_get_debug_register_length): Likewise.
3133 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3134 (i386_dr_low): Likewise.
3135 * nat/i386-dregs.c (i386-low.h): Remove include.
3136 (i386-nat.h): Likewise.
3137 (nat/i386-dregs.h): New include.
3138 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3139 (i386_dr_low_set_addr): Likewise.
3140 (i386_dr_low_get_addr): Likewise.
3141 (i386_dr_low_can_set_control): Likewise.
3142 (i386_dr_low_set_control): Likewise.
3143 (i386_dr_low_get_control): Likewise.
3144 (i386_dr_low_get_status): Likewise.
3145 (i386_get_debug_register_length): Likewise.
3146 (debug_hw_points): Likewise.
3147
3ed9baed
IB
31482014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3149
3150 * Makefile.in (SFILES): Add d-exp.y.
3151 (YYFILES): Add d-exp.c.
3152 (YYOBJ): Add d-exp.o.
3153 (local-maintainer-clean): Delete d-exp.c.
3154 * d-exp.y: New file.
3155 * d-lang.h (d_parse): New declaration.
3156 (d_error): New declaration.
3157 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3158 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3159 PREC_ORDER operators.
3160 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3161
78c164b0
YQ
31622014-06-19 Yao Qi <yao@codesourcery.com>
3163
3164 * gdbthread.h (any_running): Remove the declaration.
3165 * thread.c (any_running): Remove.
3166
f6e29b6e
YQ
31672014-06-19 Yao Qi <yao@codesourcery.com>
3168
3169 * gdbthread.h (struct thread_info) <state>: Change its type to
3170 'enum thread_state'. Update comments.
3171
034f788c
PA
31722014-06-19 Pedro Alves <palves@redhat.com>
3173
3174 * gdbthread.h (ALL_THREADS): Delete.
3175 (ALL_NON_EXITED_THREADS): New macro.
3176 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3177 instead of ALL_THREADS.
3178 * infrun.c (find_thread_needs_step_over)
3179 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3180 instead of ALL_THREADS.
3181 * record-btrace.c (record_btrace_open)
3182 (record_btrace_stop_recording, record_btrace_close)
3183 (record_btrace_is_replaying, record_btrace_resume)
3184 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3185 * remote.c (append_pending_thread_resumptions): Likewise.
3186 * thread.c (thread_apply_all_command): Likewise.
3187
46e33252
GB
31882014-06-19 Gary Benson <gbenson@redhat.com>
3189
3190 * i386-nat.c (i386_stopped_by_watchpoint):
3191 Use i386_dr_stopped_by_watchpoint.
3192 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3193 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3194
3a8ee006
GB
31952014-06-19 Gary Benson <gbenson@redhat.com>
3196
3197 * nat/i386-dregs.c: New file.
3198 * Makefile.in (i386-dregs.o): New rule.
3199 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3200 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3201 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3202 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3203 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3204 * config/i386/go32.mh (NATDEPFILES): Likewise.
3205 * config/i386/linux.mh (NATDEPFILES): Likewise.
3206 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3207 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3208 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3209 * i386-nat.h (debug_hw_points): New declaration.
3210 * i386-nat.c (breakpoint.h): Remove include.
3211 (command.h): Likewise.
3212 (target.h): Likewise.
3213 (gdb_assert.h): Likewise.
3214 (debug_hw_points): Made nonstatic.
3215 (debug_printf): Now in i386-dregs.c.
3216 (TARGET_HAS_DR_LEN_8): Likewise.
3217 (DR_CONTROL_SHIFT): Likewise.
3218 (DR_CONTROL_SIZE): Likewise.
3219 (DR_RW_EXECUTE): Likewise.
3220 (DR_RW_WRITE): Likewise.
3221 (DR_RW_READ): Likewise.
3222 (DR_RW_IORW): Likewise.
3223 (DR_LEN_1): Likewise.
3224 (DR_LEN_2): Likewise.
3225 (DR_LEN_4): Likewise.
3226 (DR_LEN_8): Likewise.
3227 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3228 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3229 (DR_ENABLE_SIZE): Likewise.
3230 (DR_LOCAL_SLOWDOWN): Likewise.
3231 (DR_GLOBAL_SLOWDOWN): Likewise.
3232 (DR_CONTROL_RESERVED): Likewise.
3233 (I386_DR_CONTROL_MASK): Likewise.
3234 (I386_DR_VACANT): Likewise.
3235 (I386_DR_LOCAL_ENABLE): Likewise.
3236 (I386_DR_GLOBAL_ENABLE): Likewise.
3237 (I386_DR_DISABLE): Likewise.
3238 (I386_DR_SET_RW_LEN): Likewise.
3239 (I386_DR_GET_RW_LEN): Likewise.
3240 (I386_DR_WATCH_HIT): Likewise.
3241 (i386_wp_op_t): Likewise.
3242 (i386_show_dr): Likewise.
3243 (i386_length_and_rw_bits): Likewise.
3244 (i386_insert_aligned_watchpoint): Likewise.
3245 (i386_remove_aligned_watchpoint): Likewise.
3246 (i386_handle_nonaligned_watchpoint): Likewise.
3247 (i386_update_inferior_debug_regs): Likewise.
3248 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3249 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3250 (i386_region_ok_for_watchpoint):
3251 Use i386_dr_region_ok_for_watchpoint.
3252 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3253
322a8e06
GB
32542014-06-19 Gary Benson <gbenson@redhat.com>
3255
3256 * i386-nat.c (i386_insert_hw_breakpoint): Use
3257 i386_insert_watchpoint.
3258 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3259
8f26655c
GB
32602014-06-19 Gary Benson <gbenson@redhat.com>
3261
3262 * i386-nat.c (i386_dr_show): Renamed to
3263 i386_show_dr and made static. All uses updated.
3264 (i386_dr_length_and_rw_bits): Renamed to
3265 i386_length_and_rw_bits and made static.
3266 All uses updated.
3267 (i386_dr_insert_aligned_watchpoint): Renamed to
3268 i386_insert_aligned_watchpoint and made static.
3269 All uses updated.
3270 (i386_dr_remove_aligned_watchpoint): Renamed to
3271 i386_remove_aligned_watchpoint and made static.
3272 All uses updated.
3273 (i386_dr_update_inferior_debug_regs): Renamed to
3274 i386_update_inferior_debug_regs and made static.
3275 All uses updated.
3276 * nat/i386-dregs.h (i386_dr_show): Removed.
3277 (i386_dr_length_and_rw_bits): Likewise.
3278 (i386_dr_insert_aligned_watchpoint): Likewise.
3279 (i386_dr_remove_aligned_watchpoint): Likewise.
3280 (i386_dr_update_inferior_debug_regs): Likewise.
3281
992c7d70
GB
32822014-06-19 Gary Benson <gbenson@redhat.com>
3283
3284 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3285 * configure: Regenerate.
3286 * config.in: Likewise.
3287 * main.c (signal.h): New include.
3288 (setup_alternate_signal_stack): New function.
3289 (captured_main): Call the above.
3290 * cp-support.c (signal.h): New include.
3291 (catch_demangler_crashes): New flag.
3292 (SIGJMP_BUF): New define.
3293 (SIGSETJMP): Likewise.
3294 (SIGLONGJMP): Likewise.
3295 (gdb_demangle_jmp_buf): New static global.
3296 (gdb_demangle_attempt_core_dump): Likewise.
3297 (gdb_demangle_signal_handler): New function.
3298 (gdb_demangle): If catch_demangler_crashes is set, install the
3299 above signal handler before calling bfd_demangle, and restore
3300 the original signal handler afterwards. Display the offending
3301 symbol and call demangler_warning the first time a segmentation
3302 fault is caught.
3303 (_initialize_cp_support): New maint set/show command.
3304
eae7090b
GB
33052014-06-19 Gary Benson <gbenson@redhat.com>
3306
3307 * utils.h (resource_limit_kind): New enum.
3308 (can_dump_core): New declaration.
3309 (warn_cant_dump_core): Likewise.
3310 (dump_core): Likewise.
3311 * utils.c (dump_core): Made nonstatic. Added new
3312 parameter "limit_kind".
3313 (can_dump_core): Made nonstatic. Moved printing code to...
3314 (warn_cant_dump_core): New function.
3315 (can_dump_core_warn): Likewise.
3316 (internal_vproblem): Replace calls to can_dump_core with
3317 calls to can_dump_core_warn. Supply new argument to each.
3318
57fcfb1b
GB
33192014-06-19 Gary Benson <gbenson@redhat.com>
3320
3321 * utils.h (demangler_vwarning): New declaration.
3322 (demangler_warning): Likewise.
3323 * utils.c (struct internal_problem)
3324 <user_settable_should_quit>: New field.
3325 <user_settable_should_dump_core>: Likewise
3326 (internal_error_problem): Add values for above new fields.
3327 (internal_warning_problem): Likewise.
3328 (demangler_warning_problem): New static global.
3329 (demangler_vwarning): New function.
3330 (demangler_warning): Likewise.
3331 (add_internal_problem_command): Selectively add commands.
3332 (_initialize_utils): New internal problem command.
3333 * maint.c (maintenance_demangler_warning): New function.
3334 (_initialize_maint_cmds): New command.
3335
17a40b44
TT
33362014-06-18 Tom Tromey <tromey@redhat.com>
3337
3338 * f-valprint.c (info_common_command_for_block): Update.
3339 * symtab.h (struct general_symbol_info) <common_block>: Now
3340 const.
3341
346d1dfe
TT
33422014-06-18 Tom Tromey <tromey@redhat.com>
3343
3344 * symtab.h (struct symtab) <blockvector>: Now const.
3345 * ada-lang.c (ada_add_global_exceptions): Update.
3346 * buildsym.c (augment_type_symtab): Update.
3347 * dwarf2read.c (dw2_lookup_symbol): Update.
3348 * jit.c (finalize_symtab): Update.
3349 * jv-lang.c (add_class_symtab_symbol): Update.
3350 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3351 Update.
3352 * objfiles.c (objfile_relocate1): Update.
3353 * psymtab.c (lookup_symbol_aux_psymtabs)
3354 (maintenance_check_psymtabs): Update.
3355 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3356 Update.
3357 * spu-tdep.c (spu_catch_start): Update.
3358 * symmisc.c (dump_symtab_1): Update.
3359 * symtab.c (lookup_global_symbol_from_objfile)
3360 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3361 (basic_lookup_transparent_type_quick)
3362 (basic_lookup_transparent_type, find_pc_sect_symtab)
3363 (find_pc_sect_line, search_symbols): Update.
3364 * block.c (find_block_in_blockvector): Make "bl" const.
3365 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3366 const.
3367 (blockvector_contains_pc): Make "bv" const.
3368 (block_for_pc_sect): Update.
3369 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3370 (blockvector_contains_pc): Update.
3371 * breakpoint.c (resolve_sal_pc): Update.
3372 * inline-frame.c (block_starting_point_at): Update.
3373
1834676b
TT
33742014-06-18 Tom Tromey <tromey@redhat.com>
3375
3376 * completer.c (complete_line): Make "line_buffer" const.
3377 * completer.h (complete_line): Update.
3378
ac1a991b
TT
33792014-06-18 Tom Tromey <tromey@redhat.com>
3380
3381 * symtab.c (add_macro_name): Remove unneeded cast.
3382
5bc98e52
TT
33832014-06-18 Tom Tromey <tromey@redhat.com>
3384
3385 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3386 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3387
8236def8
TT
33882014-06-18 Tom Tromey <tromey@redhat.com>
3389
3390 * probe.c (info_probes_for_ops): Make "arg" const.
3391 * probe.h (info_probes_for_ops): Update.
3392
3977b71f
TT
33932014-06-18 Tom Tromey <tromey@redhat.com>
3394
3395 * varobj.c (varobj_create): Update.
3396 * valops.c (value_of_this): Update.
3397 * tracepoint.c (add_local_symbols, scope_info): Update.
3398 * symtab.h (struct general_symbol_info) <block>: Now const.
3399 * symtab.c (skip_prologue_sal)
3400 (default_make_symbol_completion_list_break_on)
3401 (skip_prologue_using_sal): Update.
3402 * stack.h (iterate_over_block_locals)
3403 (iterate_over_block_local_vars): Update.
3404 * stack.c (print_frame_args): Update.
3405 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3406 parameter const.
3407 (get_selected_block): Make return type const.
3408 * python/py-frame.c (frapy_block): Update.
3409 * python/py-block.c (gdbpy_block_for_pc): Update.
3410 * p-exp.y (%union) <bval>: Now const.
3411 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3412 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3413 * m2-exp.y (%union) <bval>: Now const.
3414 * linespec.c (get_current_search_block): Make return type const.
3415 (create_sals_line_offset, find_label_symbols): Update.
3416 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3417 Update.
3418 (block_starting_point_at): Make "block" const.
3419 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3420 (check_exception_resume): Update.
3421 * guile/scm-frame.c (gdbscm_frame_block): Update.
3422 * guile/scm-block.c (gdbscm_lookup_block): Update.
3423 * frame.h (get_frame_block): Update.
3424 (get_selected_block): Make return type const.
3425 * frame.c (frame_id_inner): Update.
3426 * f-valprint.c (info_common_command_for_block)
3427 (info_common_command): Update.
3428 * dwarf2loc.c (dwarf2_find_location_expression)
3429 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3430 (locexpr_describe_location_piece): Update.
3431 * c-exp.y (%union) <bval>: Now const.
3432 * breakpoint.c (resolve_sal_pc): Update.
3433 * blockframe.c (get_frame_block):Make return type const.
3434 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3435 (block_innermost_frame): Update.
3436 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3437 (block_for_pc, block_for_pc_sect): Update.
3438 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3439 'pblock' const.
3440 (block_for_pc_sect, block_for_pc): Make return type const.
3441 * ax-gdb.c (gen_expr): Update.
3442 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3443 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3444 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3445 (ada_read_var_value): Update.
3446 * ada-exp.y (struct name_info) <block>: Now const.
3447 (%union): Likewise.
3448 (block_lookup): Constify.
3449
b9228891
GB
34502014-06-18 Gary Benson <gbenson@redhat.com>
3451
3452 * nat/i386-dregs.h: New file.
3453 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3454 * i386-nat.h (i386-dregs.h): New include.
3455 (DR_FIRSTADDR): Now in i386-dregs.h.
3456 (DR_LASTADDR): Likewise.
3457 (DR_NADDR): Likewise.
3458 (DR_STATUS): Likewise.
3459 (DR_CONTROL): Likewise.
3460 (i386_debug_reg_state): Likewise.
3461 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3462
a1aa2221
LM
34632014-06-18 Don Breazeal <donb@codesourcery.com>
3464
3465 * breakpoint.c (set_longjmp_breakpoint): Call
3466 momentary_breakpoint_from_master with additional argument.
3467 (set_longjmp_breakpoint_for_call_dummy): Call
3468 momentary_breakpoint_from_master with additional argument.
3469 (set_std_terminate_breakpoint): Call
3470 momentary_breakpoint_from_master with additional argument.
3471 (momentary_breakpoint_from_master): Add argument to function
3472 definition and use it to initialize structure member flag.
74228e77 3473 (clone_momentary_breakpoint): Call
a1aa2221
LM
3474 momentary_breakpoint_from_master with additional argument.
3475 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3476 member flags set in momentary_breakpoint_from_master.
3477
4be83cc2
GB
34782014-06-18 Gary Benson <gbenson@redhat.com>
3479
3480 * i386-nat.c (i386_show_dr): Renamed to
3481 i386_dr_show and made nonstatic. All uses updated.
3482 (i386_length_and_rw_bits): Renamed to
3483 i386_dr_length_and_rw_bits and made nonstatic.
3484 All uses updated.
3485 (i386_insert_aligned_watchpoint): Renamed to
3486 i386_dr_insert_aligned_watchpoint and made nonstatic.
3487 All uses updated.
3488 (i386_remove_aligned_watchpoint): Renamed to
3489 i386_dr_remove_aligned_watchpoint and made nonstatic.
3490 All uses updated.
3491 (i386_update_inferior_debug_regs): Renamed to
3492 i386_dr_update_inferior_debug_regs and made nonstatic.
3493 All uses updated.
3494
131aa0d4
GB
34952014-06-18 Gary Benson <gbenson@redhat.com>
3496
3497 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3498 (i386_dr_low_can_set_control): Likewise.
3499 (i386_dr_low_set_addr): Likewise.
3500 (i386_dr_low_set_control): Likewise.
3501 (i386_dr_low_get_addr): Likewise.
3502 (i386_dr_low_get_status): Likewise.
3503 (i386_dr_low_get_control): Likewise.
3504 (i386_insert_aligned_watchpoint): Use new macros.
3505 (i386_update_inferior_debug_regs): Likewise.
3506 (i386_stopped_data_address): Likewise.
3507
d9305f7f
GB
35082014-06-18 Gary Benson <gbenson@redhat.com>
3509
3510 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3511 New parameter. All uses updated.
3512
ea008da4
GB
35132014-06-18 Gary Benson <gbenson@redhat.com>
3514
3515 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3516 All uses updated.
3517
1b6d4134
GB
35182014-06-18 Gary Benson <gbenson@redhat.com>
3519
3520 * i386-nat.c (debug_printf): New macro.
3521 (i386_get_debug_register_length): Likewise.
3522 (TARGET_HAS_DR_LEN_8): Use above macro.
3523 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3524 and printf_unfiltered. Use phex to format values.
3525
9b4550ef
GB
35262014-06-18 Gary Benson <gbenson@redhat.com>
3527
3528 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3529 Make const.
3530
6e62758f
GB
35312014-06-18 Gary Benson <gbenson@redhat.com>
3532
3533 * i386-nat.c: Comment changes.
3534
51c79e94
GB
35352014-06-18 Gary Benson <gbenson@redhat.com>
3536
3537 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3538
3e11889a
GB
35392014-06-18 Gary Benson <gbenson@redhat.com>
3540
3541 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3542 (i386_insert_aligned_watchpoint): Likewise.
3543 (i386_remove_aligned_watchpoint): Likewise.
3544 (i386_handle_nonaligned_watchpoint): Likewise.
3545
fc6e2f03
GB
35462014-06-18 Gary Benson <gbenson@redhat.com>
3547
3548 * i386-nat.c: Whitespace changes.
3549
2afe7d50
SB
35502014-06-17 Samuel Bronson <naesten@gmail.com>
3551
3552 * MAINTAINERS: Update Roland McGrath's email address.
3553 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3554 Red Hat a while ago, and giving me a current address.
2afe7d50 3555
3bca49ee
TT
35562014-06-17 Tom Tromey <tromey@redhat.com>
3557
3558 * utils.h (savestring): Remove declaration.
3559
6e366df1
TT
35602014-06-17 Tom Tromey <tromey@redhat.com>
3561
3562 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3563
6be47f0c
KS
35642014-06-16 Keith Seitz <keiths@redhat.com>
3565
3566 PR mi/15863
3567 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3568 to update the varobj if inferior_ptid is null_ptid.
3569
7bc112c1
TT
35702014-06-16 Tom Tromey <tromey@redhat.com>
3571
3572 * target.h (struct target_ops) <to_info_proc>: Make parameter
3573 const.
3574 (target_info_proc): Update.
3575 * target.c (target_info_proc): Make "args" const.
3576 * procfs.c (procfs_info_proc): Update.
3577 * linux-tdep.c (linux_info_proc): Update.
3578 (linux_core_info_proc_mappings): Make "args" const.
3579 (linux_core_info_proc): Update.
3580 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3581 * gdbarch.c: Rebuild.
3582 * gdbarch.h: Rebuild.
3583 * corelow.c (core_info_proc): Update.
3584
fee354ee
TT
35852014-06-16 Tom Tromey <tromey@redhat.com>
3586
3587 * target.h (struct target_ops) <to_disconnect>: Make parameter
3588 const.
3589 (target_disconnect): Update.
3590 * target.c (target_disconnect): Make "args" const.
3591 * target-delegates.c: Rebuild.
3592 * remote.c (remote_disconnect): Update.
3593 * record.h (record_disconnect): Update.
3594 * record.c (record_disconnect): Update.
3595 * inf-child.c (inf_child_disconnect): Update.
3596
a30bf1f1
TT
35972014-06-16 Tom Tromey <tromey@redhat.com>
3598
3599 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3600 * target.c (debug_to_rcmd, default_rcmd): Update.
3601 * target-delegates.c: Rebuild.
3602 * remote.c (remote_rcmd): Update.
3603 * monitor.c (monitor_rcmd): Update.
3604
d03de421
PA
36052014-06-16 Pedro Alves <palves@redhat.com>
3606
3607 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3608 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3609 have OBJF_SHARED set.
3610 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3611 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3612 instead of OBJF_USERLOADED.
3613 * objfiles.h (OBJF_SHARED): Update comment.
3614 (userloaded_objfile_contains_address_p): Rename to ...
3615 (shared_objfile_contains_address_p): ... this, and update
3616 comments.
3617 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3618 new objfile.
3619 (remove_symbol_file_command): Skip objfiles that don't have
3620 OBJF_SHARED set.
3621
99f4262f
TT
36222014-06-16 Tom Tromey <tromey@redhat.com>
3623
3624 * minsyms.h (prim_record_minimal_symbol)
3625 (prim_record_minimal_symbol_and_info): Update comments.
3626
97d66cc6
EZ
36272014-06-14 Eli Zaretskii <eliz@gnu.org>
3628
3629 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3630 or --without-guile, according to how GDB was built.
3631
635c7e8a
TT
36322014-06-13 Tom Tromey <tromey@redhat.com>
3633
3634 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3635 to help_list.
3636 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3637 to help_list.
3638 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3639 help_list.
3640 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3641 help_list.Pass all_commands, not -1, to help_list.
3642 * cli/cli-dump.c (dump_command, append_command)
3643 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3644 (binary_dump_command, binary_append_command): Pass all_commands,
3645 not -1, to help_list.
3646 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3647 -1, to help_list.
3648 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3649 -1, to help_list.
3650 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3651 help_list.
3652 * top.c (set_history): Pass all_commands, not -1, to help_list.
3653 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3654 all_commands, not -1, to help_list.
3655 * symfile.c (overlay_command): Pass all_commands, not -1, to
3656 help_list.
3657 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3658 help_list.
3659 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3660 help_list.
3661 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3662 -1, to help_list.
3663 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3664 not -1, to help_list.
3665 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3666 not -1, to help_list.
3667 * maint.c (maintenance_command, maintenance_info_command)
3668 (maintenance_print_command, maintenance_set_cmd): Pass
3669 all_commands, not -1, to help_list.
3670 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3671 help_list.
3672 * language.c (set_check): Pass all_commands, not -1, to help_list.
3673 * infcmd.c (unset_command): Pass all_commands, not -1, to
3674 help_list.
3675 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3676 help_list.
3677 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3678 help_list.
3679 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3680 help_list.
3681 * breakpoint.c (save_command): Pass all_commands, not -1, to
3682 help_list.
3683 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3684 all_commands, not -1, to help_list.
3685
b94ade42
PL
36862014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3687
3688 * regcache.c (struct register_to_invalidate): New structure.
3689 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3690 functions.
3691 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3692
31f628ae
YQ
36932014-06-12 Yao Qi <yao@codesourcery.com>
3694
3695 * varobj.c (varobj_get_num_children): Call
3696 varobj_is_dynamic_p.
3697 (varobj_list_children): Likewise.
3698 (varobj_update): Likewise. Update comments.
3699
cde5ef40
YQ
37002014-06-12 Yao Qi <yao@codesourcery.com>
3701
3702 * varobj.c (varobj_pretty_printed_p): Rename to ...
3703 (varobj_is_dynamic_p): ... this. New function.
3704 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3705 (varobj_is_dynamic_p): Declare.
3706 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3707 (mi_print_value_p, varobj_update_one): Likewise.
3708
576ea091
YQ
37092014-06-12 Pedro Alves <pedro@codesourcery.com>
3710 Yao Qi <yao@codesourcery.com>
3711
3712 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3713 (varobj_get_iterator): Wrap up code for pretty-printer by
3714 "#if HAVE_PYTHON" and "#endif".
3715 (update_dynamic_varobj_children): Likewise.
3716
827f100c
YQ
37172014-06-12 Pedro Alves <pedro@codesourcery.com>
3718 Yao Qi <yao@codesourcery.com>
3719
3720 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3721 gdb_python_initialized is false. Move some code from varobj.c.
3722 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3723 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3724 (struct varobj_item): Moved to varobj-iter.h".
3725 (varobj_clear_saved_item): New function.
3726 (update_dynamic_varobj_children): Move python-related code to
3727 py-varobj.c.
3728 (free_variable): Call varobj_clear_saved_item and
3729 varobj_iter_delete.
3730
e5250216
YQ
37312014-06-12 Pedro Alves <pedro@codesourcery.com>
3732 Yao Qi <yao@codesourcery.com>
3733
3734 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3735 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3736 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3737 (py-varobj.o): New rule.
3738 * python/py-varobj.c: New file.
3739 * python/python-internal.h (py_varobj_get_iterator): Declare.
3740 * varobj-iter.h: New file.
3741 * varobj.c: Include "varobj-iter.h"
3742 (struct varobj) <child_iter>: Change its type from "PyObject *"
3743 to "struct varobj_iter *".
3744 <saved_item>: Likewise.
3745 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3746 [HAVE_PYTHON] (varobj_get_iterator): New function.
3747 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3748 python-specific code to python/py-varobj.c.
3749 (install_visualizer): Call varobj_iter_delete instead of
3750 Py_XDECREF.
3751 * varobj.h (varobj_ensure_python_env): Declare.
3752
5a2e0d6e
YQ
37532014-06-12 Yao Qi <yao@codesourcery.com>
3754
3755 * varobj.c (struct varobj_item): New structure.
3756 (create_child_with_value): Update declaration.
3757 (varobj_add_child): Replace arguments 'name' and 'value' with
3758 'item'. All callers updated.
3759 (install_dynamic_child): Likewise.
3760 (update_dynamic_varobj_children): Likewise.
3761 (varobj_add_child): Likewise.
3762 (create_child_with_value): Likewise.
3763
919b9a93
JB
37642014-06-11 Joel Brobecker <brobecker@adacore.com>
3765
3766 * NEWS: Create a new section for the next release branch.
3767 Rename the section of the current branch, now that it has
3768 been cut.
3769
71a55bdf
JB
37702014-06-11 Joel Brobecker <brobecker@adacore.com>
3771
3772 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3773 * version.in: Bump version to 7.8.50.DATE-cvs.
3774
364fe1f7
PA
37752014-06-11 Pedro Alves <palves@redhat.com>
3776
3777 PR remote/17028
3778 * ser-mingw.c (net_windows_socket_check_pending): New function.
3779 (net_windows_select_thread): Ignore spurious wakeups. Use
3780 net_windows_socket_check_pending.
3781 (net_windows_wait_handle): Check for pending events with
3782 ioctlsocket, through net_windows_socket_check_pending, instead of
3783 checking the socket's event.
3784
5a6c7709
SC
37852014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3786
3787 * python/python-internal.h (gdb_PyObject_GetAttrString)
3788 (gdb_PyObject_HasAttrString): New inline function definitions.
3789 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3790 char * of the second argument to PyObject_GetAttrString.
74228e77 3791
0e58ee40
JB
37922014-06-10 Joel Brobecker <brobecker@adacore.com>
3793
3794 * serial.c (serial_write): Fix index of character to be printed
3795 in call to serial_logchar when serial debug traces are enabled.
3796
d190df30
JB
37972014-06-10 Joel Brobecker <brobecker@adacore.com>
3798
3799 * gdbtypes (resolve_dynamic_range): Add function description.
3800
b4b01d36
PA
38012014-06-09 Pedro Alves <palves@redhat.com>
3802
3803 * linux-nat.c (linux_child_follow_fork): Initialize status with
3804 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3805 inner block. Only pass the signal to PTRACE_DETACH if in pass
3806 state.
3807
3657956b
GB
38082014-06-09 Gary Benson <gbenson@redhat.com>
3809
3810 * common/signals.c (gdb_signal_from_host): Reorder to separate
3811 the always-available ANSI-standard signals from the signals that
3812 require checking.
3813 (do_gdb_signal_to_host): Likewise.
3814 * proc-events.c (signal_table): Likewise.
3815
c077881a
HZ
38162014-06-08 Hui Zhu <hui@codesourcery.com>
3817
3818 * common/linux-ptrace.c (linux_disable_event_reporting): New
3819 function.
3820 * common/linux-ptrace.h (linux_disable_event_reporting): New
3821 declaration.
3822 * linux-nat.c (linux_child_follow_fork): Do a single step before
3823 detach.
3824
4186eb54
KS
38252014-06-07 Keith Seitz <keiths@redhat.com>
3826
3827 Revert:
3828 PR c++/16253
3829 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3830 from symbol_matches_domain in symtab.c. All local callers
3831 of symbol_matches_domain updated.
3832 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3833 search STRUCT_DOMAIN.
3834 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3835 independently. standard_lookup will do that automatically.
3836 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3837 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3838 (cp_lookup_symbol_in_namespace): Likewise.
3839 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3840 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3841 may return a STRUCT_DOMAIN match.
3842 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3843 * cp-support.c: Include language.h.
3844 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3845 VAR_DOMAIN.
3846 * psymtab.c (match_partial_symbol): Compare the requested
3847 domain with the symbol's domain directly.
3848 (lookup_partial_symbol): Likewise.
3849 * symtab.c (lookup_symbol_in_language): Explain when/why
3850 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3851 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3852 appropriate languages.
3853 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3854 and moved to ada-lang.c
3855 (lookup_block_symbol): Explain that this function only returns
3856 symbol matching the requested DOMAIN.
3857 Compare the requested domain with the symbol's domain directly.
3858 (iterate_over_symbols): Compare the requested domain with the
3859 symbol's domain directly.
3860 * symtab.h (symbol_matches_domain): Remove.
3861
25326a28 38622014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3863
3864 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3865 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3866 (gdbscm_guile_version_is_at_least): Declare.
3867 (gdbscm_scm_string_to_int): Declare.
3868 * guile/guile.c (gdbscm_guile_major_version): New global.
3869 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3870 (guile_datadir): New static global.
3871 (gdbscm_guile_data_directory): New function.
3872 (initialize_scheme_side): Update.
3873 (misc_guile_functions): Add guile-data-directory.
3874 (initialize_gdb_module): Fetch guile version number.
3875 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3876 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3877 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3878 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3879 comments.
3880 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3881 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3882 * guile/scm-value.c (gdbscm_value_to_string): Only call
3883 scm_port_conversion_strategy if Guile version >= 2.0.6.
3884
0a770bb2 38852014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3886
3887 * main.c (print_gdb_help): Add -q and --silent.
3888
73ba372c
GB
38892014-06-06 Gary Benson <gbenson@redhat.com>
3890
3891 * common/signals.c: Remove preprocessor conditionals for
3892 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3893 SIGSEGV and SIGTERM.
3894 * proc-events.c: Likewise.
3895
c33b2f12
MM
38962014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3897
3898 * symfile.c (symfile_free_objfile): Remove restriction to
3899 OBJF_USERLOADED.
3900 * symfile-mem.c (symbol_file_add_from_memory): Call
3901 add_target_sections_of_objfile.
3902
fb934770
LC
39032014-06-05 Ludovic Courtès <ludo@gnu.org>
3904
3905 * guile/scm-value.c (gdbscm_history_append_x): Use
3906 'vlscm_get_value_smob_arg_unsafe' instead of
3907 'vlscm_scm_to_value'.
3908
6ef284bd
SM
39092014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3910
3911 PR mi/15806
3912 * utils.c (printchar): Don't escape at all if quoter is NUL.
3913 Update function documentation to clarify effect of parameter
3914 QUOTER.
3915 * remote.c (escape_buffer): Pass '\\' as the quoter to
3916 fputstrn_unfiltered.
3917 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3918 generate the output.
3919 (mi_solib_unloaded): Same.
3920
270c9937
JB
39212014-06-05 Joel Brobecker <brobecker@adacore.com>
3922
3923 * development.sh: Delete.
3924 * Makefile.in (config.status): Adjust dependency on development.sh.
3925 * configure.ac: Adjust development.sh source call.
3926 * configure: Regenerate.
3927
16f691fb
DE
39282014-06-04 Doug Evans <xdje42@gmail.com>
3929
3930 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3931 is_scheme_bkpt, spec.
3932 (bpscm_make_breakpoint_smob): Initialize new members.
3933 (gdbscm_create_breakpoint_x): Split into two ...
3934 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3935 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3936 (scheme_function breakpoint_functions): Update.
3937 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3938 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3939 register-breakpoint!.
3940
ef7cab6b
JB
39412014-06-04 Joel Brobecker <brobecker@adacorer.com>
3942
3943 PR server/17023
3944 * mem-break.c (z_type_supported): Return zero if
3945 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3946
012370f6
TT
39472014-06-04 Tom Tromey <tromey@redhat.com>
3948
3949 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3950 value_from_contents_and_address_unresolved.
3951 (ada_template_to_fixed_record_type_1): Likewise.
3952 (ada_which_variant_applies): Likewise.
3953 * value.h (value_from_contents_and_address_unresolved): Declare.
3954 * value.c (value_from_contents_and_address_unresolved): New
3955 function.
3956 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3957 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3958 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3959
92e2a17f
TT
39602014-06-04 Tom Tromey <tromey@redhat.com>
3961
3962 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3963
c0939df1
TT
39642014-06-04 Tom Tromey <tromey@redhat.com>
3965
3966 * procfs.c (procfs_attach): Make "args" const.
3967 * windows-nat.c (windows_attach): Make "args" const.
3968 * nto-procfs.c (procfs_attach): Make "args" const.
3969 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3970 * go32-nat.c (go32_attach): Make "args" const.
3971 * gnu-nat.c (gnu_attach): Make "args" const.
3972 * darwin-nat.c (darwin_attach): Make "args" const.
3973 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3974 * linux-nat.c (linux_nat_attach): Make "args" const.
3975 * remote.c (extended_remote_attach_1, extended_remote_attach):
3976 Make "args" const.
3977 * target.h (struct target_ops) <to_attach>: Make "args" const.
3978 (find_default_attach): Likewise.
3979 * utils.c (parse_pid_to_attach): Make "args" const.
3980 * utils.h (parse_pid_to_attach): Update.
3981
8eaff7cd
TT
39822014-06-04 Tom Tromey <tromey@redhat.com>
3983
3984 * target-delegates.c: Rebuild.
3985 * target.c (default_thread_address_space): New function.
3986 (target_thread_address_space): Simplify.
3987 * target.h (struct target_ops) <to_thread_address_space>: Add
3988 TARGET_DEFAULT_FUNC.
3989
1913f160
DE
39902014-06-04 Doug Evans <xdje42@gmail.com>
3991
3992 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3993
70ad5bff
MM
39942014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3995
3996 * record-btrace.c: Include event-loop.h and inf-loop.h.
3997 (record_btrace_resume_exec_dir)
3998 (record_btrace_async_inferior_event_handler)
3999 (record_btrace_handle_async_inferior_event): New.
4000 (record_btrace_open): Create async event handler.
4001 (record_btrace_close): Delete async event handler.
4002 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4003 Mark async event handler.
4004 (record_btrace_execution_direction): New.
4005 (init_record_btrace_ops): Initialize to_execution_direction.
4006
b6210538
DE
40072014-06-03 Doug Evans <xdje42@gmail.com>
4008
4009 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4010 (gdbscm_make_parameter): Ditto.
4011
a5b1fd27
DE
40122014-06-03 Doug Evans <dje@google.com>
4013
4014 * exec.c (exec_close_1): Call clear_section_table instead of
4015 resize_section_table.
4016 (clear_section_table): New function.
4017 (resize_section_table): Make static. Rename arg num_added to
4018 adjustment.
4019 * exec.h (clear_section_table): Declare.
4020 (resize_section_table): Delete.
4021 * progspace.c (release_program_space): Call clear_section_table
4022 instead of resize_section_table.
4023
0c6e92a5
SC
40242014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4025
4026 * NEWS (Python Scripting): Add entry about the new xmethods
4027 feature.
4028
883964a7
SC
40292014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4030
4031 * python/py-xmethods.c: New file.
4032 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4033 (objfpy_dealloc): XDECREF on the new xmethods field.
4034 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4035 field.
4036 (objfpy_get_xmethods): New function.
4037 (objfile_getset): New entry 'xmethods'.
4038 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4039 (pspy_dealloc): XDECREF on the new xmethods field.
4040 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4041 field.
4042 (pspy_get_xmethods): New function.
4043 (pspace_getset): New entry 'xmethods'.
4044 * python/python-internal.h: Add declarations for new functions.
4045 * python/python.c (_initialize_python): Invoke
4046 gdbpy_initialize_xmethods.
4047 * python/lib/gdb/__init__.py (xmethods): New
4048 attribute.
4049 * python/lib/gdb/xmethod.py: New file.
4050 * python/lib/gdb/command/xmethods.py: New file.
4051
58992dc5
SC
40522014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4053
4054 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4055 best match method returned by find_overload_match is an xmethod.
4056 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4057 the best matching operator returned by find_overload_match is an
4058 xmethod.
4059 * valops.c: #include "extension.h".
4060 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4061 Return void. The list of matching source methods is returned in
4062 "fn_list" and a vector of matching debug method workers is
4063 returned in "xm_worker_vec". Update all callers.
4064 (value_find_oload_method_list): Likewise.
4065 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4066 non-NULL, then the index of the best matching method in this
4067 vector is returned. Update all callers.
4068 (find_overload_match): Include xmethods while performing overload
4069 resolution.
4070
e81e7f5e
SC
40712014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4072
4073 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4074 * extension-priv.h (struct extension_language_ops): Add the
4075 xmethod interface.
4076 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4077 get_matching_xmethod_workers, get_xmethod_argtypes,
4078 invoke_xmethod, free_xmethod_worker,
4079 free_xmethod_worker_vec): New functions.
4080 * extension.h: #include "common/vec.h".
4081 New function declarations.
4082 (struct xmethod_worker): New struct.
4083 (VEC (xmethod_worker_ptr)): New vector type.
4084 (xmethod_worker_ptr): New typedef.
4085 (xmethod_worker_vec): Likewise.
4086 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4087 builtin_type.
4088 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4089 (struct builtin_type): New field "xmethod".
4090 * valarith.c (value_ptradd): Assert that the value argument is not
4091 lval_xcallable.
4092 * valops.c (value_must_coerce_to_target): Return 0 for
4093 lval_xcallable values.
4094 * value.c (struct value): New field XM_WORKER in the field
4095 LOCATION.
4096 (value_address, value_raw_address): Return 0 for lval_xcallable
4097 values.
4098 (set_value_address): Assert that the value is not an
4099 lval_xcallable.
4100 (value_free): Free the associated xmethod worker when freeing
4101 lval_xcallable values.
4102 (set_value_component_location): Assert that the WHOLE value is not
4103 lval_xcallable.
4104 (value_of_xmethod, call_xmethod): New functions.
4105 * value.h: Declare "struct xmethod_worker".
4106 Declare new functions value_of_xmethod, call_xmethod.
4107
ef370185
JB
41082014-06-03 Joel Brobecker <brobecker@adacore.com>
4109 Pedro Alves <palves@redhat.com>
4110
4111 PR breakpoints/17000
4112 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4113 New function, extracted from software_breakpoint_inserted_here_p.
4114 (software_breakpoint_inserted_here_p): Replace factored out code
4115 by call to find_non_raw_software_breakpoint_inserted_here.
4116 (bp_target_info_copy_insertion_state): New function.
4117 (bkpt_insert_location): Handle the case of a single-step
4118 breakpoint already inserted at the same address.
4119 (bkpt_remove_location): Handle the case of a single-step
4120 breakpoint still inserted at the same address.
4121 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4122 breakpoint already inserted at the same address.
4123 (deprecated_remove_raw_breakpoint): Handle the case of a
4124 non-raw breakpoint still inserted at the same address.
4125 (find_single_step_breakpoint): New function, extracted from
4126 single_step_breakpoint_inserted_here_p.
4127 (find_single_step_breakpoint): New function,
4128 factored out from single_step_breakpoint_inserted_here_p.
4129 (single_step_breakpoint_inserted_here_p): Reimplement.
4130
1e2ccb61
BM
41312014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4132
4133 Pushed by Joel Brobecker <brobecker@adacore.com>
4134 * source.c (show_substitute_path_command): Fix display of matching
4135 substitution rules.
4136
d3448d85
GB
41372014-06-03 Gary Benson <gbenson@redhat.com>
4138
4139 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4140
06eb1586
DE
41412014-06-02 Doug Evans <xdje42@gmail.com>
4142
4143 Add parameter support for Guile.
4144 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4145 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4146 (scm-param.o): New rule.
4147 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4148 (gdbscm_misc_error): Declare.
4149 (gdbscm_canonicalize_command_name): Declare.
4150 (gdbscm_scm_to_host_string): Declare.
4151 (gdbscm_scm_from_host_string): Declare.
4152 (gdbscm_initialize_parameters): Declare.
4153 * guile/guile.c (initialize_gdb_module): Call
4154 gdbscm_initialize_parameters.
4155 * guile/lib/gdb.scm: Export parameter symbols.
4156 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4157 cmdscm_canonicalize_name and made public. All callers updated.
4158 * guile/scm-exception.c (gdbscm_misc_error): New function.
4159 * guile/scm-param.c: New file.
4160 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4161 (gdbscm_scm_to_host_string): New function.
4162 (gdbscm_scm_from_host_string): New function.
4163 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4164
e698b8c4
DE
41652014-06-02 Doug Evans <xdje42@gmail.com>
4166
4167 Add command support for Guile.
4168 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4169 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4170 (scm-cmd.o): New rule.
4171 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4172 (gdbscm_user_error_p): Declare.
4173 (gdbscm_parse_command_name): Declare.
4174 (gdbscm_valid_command_class_p): Declare.
4175 (gdbscm_initialize_commands): Declare.
4176 * guile/guile.c (initialize_gdb_module): Call
4177 gdbscm_initialize_commands.
4178 * guile/lib/gdb.scm: Export command symbols.
4179 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4180 (throw-user-error): New function.
4181 * guile/scm-cmd.c: New file.
4182 * guile/scm-exception.c (user_error_symbol): New static global.
4183 (gdbscm_user_error_p): New function.
4184 (gdbscm_initialize_exceptions): Set user_error_symbol.
4185 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4186
fb1f94b0
PM
41872014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4188
4189 * top.c (command_loop): Handle comments here...
4190 (command_line_input): ... not here.
4191
ded03782
DE
41922014-06-02 Doug Evans <xdje42@gmail.com>
4193
4194 Add progspace support for Guile.
4195 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4196 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4197 (scm-progspace.o): New rule.
4198 * guile/guile-internal.h (pspace_smob): New typedef.
4199 (psscm_pspace_smob_pretty_printers): Declare.
4200 (psscm_pspace_smob_from_pspace): Declare.
4201 (psscm_scm_from_pspace): Declare.
4202 * guile/guile.c (initialize_gdb_module): Call
4203 gdbscm_initialize_pspaces.
4204 * guile/lib/gdb.scm: Export progspace symbols.
4205 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4206 support.
4207 (append-pretty-printer!): Ditto.
4208 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4209 Implement.
4210 * guile/scm-progspace.c: New file.
4211
397998fc
AM
42122014-06-03 Alan Modra <amodra@gmail.com>
4213
4214 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4215 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4216
6aa5f3a6
DE
42172014-06-02 Doug Evans <dje@google.com>
4218
4219 Add support for skeletonless type units.
4220 * dwarf2read.c (struct dwarf2_per_objfile): New member
4221 n_allocated_type_units.
4222 (struct dwarf2_per_objfile) <tu_stats>: New member
4223 nr_all_type_units_reallocs.
4224 (create_signatured_type_table_from_index): Initialize
4225 n_allocated_type_units
4226 (create_all_type_units): Ditto.
4227 (add_type_unit): Move up in file. New arg slot.
4228 All callers updated. Increase space for all_type_units more
4229 efficiently.
4230 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4231 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4232 (lookup_dwp_signatured_type): Ditto.
4233 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4234 All callers updated.
4235 (build_type_psymtabs_1): Leave type_unit_groups as
4236 NULL if no TUs present.
4237 (print_tu_stats): New function.
4238 (process_skeletonless_type_unit): New function.
4239 (process_dwo_file_for_skeletonless_type_units): New
4240 function.
4241 (process_skeletonless_type_units): New function.
4242 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4243 Call print tu_stats if debugging enabled.
4244
41fac0cf
PA
42452014-06-02 Pedro Alves <palves@redhat.com>
4246
4247 * breakpoint.c (build_target_command_list): Don't build a command
4248 list if we have any duplicate location that isn't a dprintf.
4249
cd1608cc
PA
42502014-06-02 Pedro Alves <palves@redhat.com>
4251
4252 * breakpoint.c (dprintf_breakpoint_hit): New function.
4253 (initialize_breakpoint_ops): Install it as dprintf's
4254 breakpoint_hit method.
4255
486ef3b9
JB
42562014-06-02 Joel Brobecker <brobecker@adacore.com>
4257
4258 * source.c (substitute_path_rule_matches): Simplify using
4259 filename_ncmp instead of FILENAME_CMP.
4260
230cd560
JB
42612014-06-02 Joel Brobecker <brobecker@adacore.com>
4262
4263 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4264
16954d5d
LC
42652014-06-01 Ludovic Courtès <ludo@gnu.org>
4266
4267 * configure.ac: When Guile is available, check for the
4268 availability of 'scm_new_smob'.
4269 * configure, config.h.in: Regenerate.
4270 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4271 function.
4272
53e8a631
AB
42732014-05-30 Andrew Burgess <aburgess@broadcom.com>
4274
4275 * frame.c (struct frame_info): Add stop_string field.
4276 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4277 (get_prev_frame_always): Old content moved into
4278 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4279 TRY_CATCH, handle MEMORY_ERROR exceptions.
4280 (frame_stop_reason_string): New function definition.
4281 * frame.h (unwind_stop_reason_to_string): Extend comment to
4282 mention frame_stop_reason_string.
4283 (frame_stop_reason_string): New function declaration.
4284 * stack.c (frame_info): Switch to frame_stop_reason_string.
4285 (backtrace_command_1): Switch to frame_stop_reason_string.
4286 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4287 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4288 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4289
70e38b8e
AB
42902014-05-30 Andrew Burgess <aburgess@broadcom.com>
4291
4292 * frame.c (frame_stop_reason_string): Rename to ...
4293 (unwind_stop_reason_to_string): this.
4294 * frame.h (frame_stop_reason_string): Rename to ...
4295 (unwind_stop_reason_to_string): this.
4296 * stack.c (frame_info): Update call to frame_stop_reason_string.
4297 (backtrace_command_1): Likewise.
4298 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4299 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4300
938f0e2f
AB
43012014-05-30 Andrew Burgess <aburgess@broadcom.com>
4302
4303 * frame.c (remove_prev_frame): New function.
4304 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4305 remove_prev_frame.
4306
a09dd441
PA
43072014-05-29 Pedro Alves <palves@redhat.com>
4308
4309 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4310 and make it const. When a single-step decays to a continue,
4311 clear 'step', not 'hw_step'. Pass whether the caller wanted
4312 to step to user_visible_resume_ptid, not what we ask the
4313 target to do.
4314
bdc36728
PA
43152014-05-29 Pedro Alves <palves@redhat.com>
4316
4317 * infrun.c (process_event_stop_test, handle_step_into_function)
4318 (handle_step_into_function_backward): Adjust.
4319 Don't set the even thread's stop_step and call stop_waiting before
4320 calling end_stepping_range. Instead do that ...
4321 (end_stepping_range): ... here. Take an ecs pointer parameter.
4322
22bcd14b
PA
43232014-05-29 Pedro Alves <palves@redhat.com>
4324
4325 * infrun.c (stop_stepping): Rename to ...
4326 (stop_waiting): ... this.
4327 (proceed): Update comment.
4328 (process_event_stop_test, handle_inferior_event)
4329 (handle_signal_stop, handle_step_into_function)
4330 (handle_step_into_function_backward): Update.
4331
4ae57c05
PA
43322014-05-29 Pedro Alves <palves@redhat.com>
4333
4334 * infcall.c (run_inferior_call): Don't check whether the current
4335 thread is running after the proceed call.
4336
329ea579
PA
43372014-05-29 Pedro Alves <palves@redhat.com>
4338 Tom Tromey <tromey@redhat.com>
4339
4340 * NEWS: Mention "maint set target-async", "set mi-async", and that
4341 background execution commands are now always available.
4342 * target.h (target_async_permitted): Update comment.
4343 * target.c (target_async_permitted, target_async_permitted_1):
4344 Default to 1.
4345 (set_target_async_command): Rename to ...
4346 (maint_set_target_async_command): ... this.
4347 (show_target_async_command): Rename to ...
4348 (maint_show_target_async_command): ... this.
4349 (_initialize_target): Adjust.
4350 * infcmd.c (prepare_execution_command): Make extern.
4351 * inferior.h (prepare_execution_command): Declare.
4352 * infrun.c (set_observer_mode): Leave target async alone.
4353 * mi/mi-interp.c (mi_interpreter_init): Install
4354 mi_on_sync_execution_done as sync_execution_done observer.
4355 (mi_on_sync_execution_done): New function.
4356 (mi_execute_command_input_handler): Don't print the prompt if we
4357 just started a synchronous command with an async target.
4358 (mi_on_resume): Check sync_execution before printing prompt.
4359 * mi/mi-main.h (mi_async_p): Declare.
4360 * mi/mi-main.c: Include gdbcmd.h.
4361 (mi_async_p): New function.
4362 (mi_async, mi_async_1): New globals.
4363 (set_mi_async_command, show_mi_async_command, mi_async): New
4364 functions.
4365 (exec_continue): Call prepare_execution_command.
4366 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4367 (mi_execute_async_cli_command): Use mi_async_p.
4368 (_initialize_mi_main): Install "set mi-async". Make
4369 "target-async" a deprecated alias.
4370
92bcb5f9
PA
43712014-05-29 Pedro Alves <palves@redhat.com>
4372
4373 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4374 (_initialize_cli_interp): Adjust.
4375 * event-loop.c: Include "observer.h".
4376 (start_event_loop): Notify 'command_error' observers instead of
4377 calling display_gdb_prompt. Remove FIXME comment.
4378 * event-top.c (display_gdb_prompt): Remove call into the
4379 interpreters.
4380 * inf-loop.c: Include "observer.h".
4381 (inferior_event_handler): Notify 'command_error' observers instead
4382 of calling display_gdb_prompt.
4383 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4384 observers instead of calling display_gdb_prompt.
4385 * interps.c (interp_set): Don't call display_gdb_prompt.
4386 (current_interp_display_prompt_p): Delete.
4387 * interps.h (interp_prompt_p): Delete declaration.
4388 (interp_prompt_p_ftype): Delete.
4389 (struct interp_procs) <prompt_proc_p>: Delete field.
4390 (current_interp_display_prompt_p): Delete declaration.
4391 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4392 (_initialize_mi_interp): Adjust.
4393 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4394 'command_error' observers.
4395 (tui_on_sync_execution_done, tui_on_command_error): New
4396 functions.
4397 (tui_display_prompt_p): Delete.
4398 (_initialize_tui_interp): Adjust.
4399
fd664c91
PA
44002014-05-29 Pedro Alves <palves@redhat.com>
4401
4402 PR gdb/13860
4403 * cli/cli-interp.c: Include infrun.h and observer.h.
4404 (cli_uiout, cli_interp): New globals.
4405 (cli_on_signal_received, cli_on_end_stepping_range)
4406 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4407 functions.
4408 (cli_interpreter_init): Install them as 'end_stepping_range',
4409 'signal_received' 'signal_exited', 'exited' and 'no_history'
4410 observers.
4411 (_initialize_cli_interp): Remove cli_interp local.
4412 * infrun.c (handle_inferior_event): Call the several stop reason
4413 observers instead of printing the stop reason directly.
4414 (end_stepping_range): New function.
4415 (print_end_stepping_range_reason, print_signal_exited_reason)
4416 (print_exited_reason, print_signal_received_reason)
4417 (print_no_history_reason): Make static, and add an uiout
4418 parameter. Print to that instead of to CURRENT_UIOUT.
4419 * infrun.h (print_end_stepping_range_reason)
4420 (print_signal_exited_reason, print_exited_reason)
4421 (print_signal_received_reason print_no_history_reason): New
4422 declarations.
4423 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4424 'mi_uiout'.
4425 <cli_uiout>: New field.
4426 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4427 uiout for CLI output. Install 'signal_received',
4428 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4429 observers.
4430 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4431 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4432 (mi_on_no_history): New functions.
4433 (ui_out_free_cleanup): Delete function.
4434 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4435 instead use the one already stored in the MI interpreter data.
4436 (mi_ui_out): Adjust.
4437 * tui/tui-interp.c: Include infrun.h and observer.h.
4438 (tui_interp): New global.
4439 (tui_on_signal_received, tui_on_end_stepping_range)
4440 (tui_on_signal_exited, tui_on_exited)
4441 (tui_on_no_history): New functions.
4442 (tui_init): Install them as 'end_stepping_range',
4443 'signal_received' 'signal_exited', 'exited' and 'no_history'
4444 observers.
4445 (_initialize_tui_interp): Delete tui_interp local.
4446
8817a6f2
PA
44472014-05-29 Pedro Alves <palves@redhat.com>
4448
4449 PR gdb/15713
4450 * linux-nat.c (linux_nat_resume_callback): Rename the second
4451 parameter to 'except'. Skip LP if it points to EXCEPT.
4452 (linux_nat_resume): Don't mark the event lwp as not stopped
4453 before resuming sibling lwps. Instead ask
4454 linux_nat_resume_callback to skip the event lwp. Mark it as not
4455 stopped after actually resuming it.
4456 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4457 resuming it.
4458 (wait_lwp): Mark the lwp as stopped here.
4459 (stop_wait_callback): Mark the lwp as not stopped right after
4460 resuming it. Don't mark lwps as stopped here.
4461 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4462 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4463
251bde03
PA
44642014-05-29 Pedro Alves <palves@redhat.com>
4465
4466 PR PR15693
4467 * infrun.c (resume): Determine how much to resume depending on
4468 whether the caller wanted a step, not whether we can hardware step
4469 the target. Mark all threads that we intend to run as running,
4470 unless we're calling an inferior function.
4471 (normal_stop): If the thread is running an infcall, don't finish
4472 thread state.
4473 * target.c (target_resume): Don't mark threads as running here.
4474
7f3c0343
JB
44752014-05-28 Joel Brobecker <brobecker@adacore.com>
4476
4477 * serial.c (_initialize_serial): Remove support for
4478 the "set remotebaud" and "show remotebaud" commands.
4479 * NEWS: Add entry documenting the removal of that command.
4480
ee34b3f9
YQ
44812014-05-28 Yao Qi <yao@codesourcery.com>
4482
4483 * charset.c: Fix typo in comments.
4484
add6c04d
GB
44852014-05-27 Gary Benson <gbenson@redhat.com>
4486
4487 * utils.c (internal_vproblem): Prompt for a bug report.
4488
92c48fc5
AW
44892014-05-26 Andy Wingo <wingo@igalia.com>
4490
4491 * guile/scm-arch.c (arscm_mark_arch_smob):
4492 * guile/scm-block.c (bkscm_mark_block_smob)
4493 (bkscm_mark_block_syms_progress_smob):
4494 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4495 * guile/scm-exception.c (exscm_mark_exception_smob):
4496 * guile/scm-frame.c (frscm_mark_frame_smob):
4497 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4498 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4499 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4500 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4501 (ppscm_mark_pretty_printer_worker_smob):
4502 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4503 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4504 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4505 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4506 mark functions.
4507 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4508 function.
4509
b2715b27
AW
45102014-05-26 Andy Wingo <wingo@igalia.com>
4511 Doug Evans <xdje42@gmail.com>
4512
4513 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4514 empty_base_class. All uses updated.
4515 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4516 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4517 Adapt all callers.
4518 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4519 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4520 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4521 (gdbscm_gsmob_has_property_p, add_property_name)
4522 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4523 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4524 (gdb-object-has-property?, gdb-object-properties): Remove.
4525 (gdb-object-kind): Renamed from gsmob-kind.
4526
214ab2da
AW
45272014-05-26 Andy Wingo <wingo@igalia.com>
4528
4529 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4530 * configure: Regenerate.
4531
589fdceb
MM
45322014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4533
4534 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4535
67b5c0c1
MM
45362014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4537
4538 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4539 (replay_memory_access_read_only, replay_memory_access_read_write)
4540 (replay_memory_access_types, replay_memory_access)
4541 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4542 (cmd_set_record_btrace, cmd_show_record_btrace)
4543 (cmd_show_replay_memory_access): New.
4544 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4545 (record_btrace_remove_breakpoint): Replace
4546 record_btrace_allow_memory_access with replay_memory_access.
4547 (_initialize_record_btrace): Add commands.
4548 * NEWS: Announce it.
4549
036cd381
RR
45502014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4551
4552 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4553
c77c1e42
RR
45542014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4555
4556 * MAINTAINERS (Write After Approval): Move self back from
4557 paper trail.
4558
45741a9c
PA
45592014-05-22 Pedro Alves <palves@redhat.com>
4560
4561 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4562 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4563 (disable_randomization, enum exec_direction_kind)
4564 (execution_direction, stop_registers, start_remote)
4565 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4566 (wait_for_inferior, normal_stop, get_last_target_status)
4567 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4568 (insert_step_resume_breakpoint_at_sal)
4569 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4570 (set_step_info, print_stop_event, signal_stop_state)
4571 (signal_print_state, signal_pass_state, signal_stop_update)
4572 (signal_print_update, signal_pass_update)
4573 (update_signals_program_target, clear_exit_convenience_vars)
4574 (displaced_step_dump_bytes, update_observer_mode)
4575 (signal_catch_update, gdb_signal_from_command): Move
4576 declarations ...
4577 * infrun.h: ... to this new file.
4578 * amd64-tdep.c: Include infrun.h.
4579 * annotate.c: Include infrun.h.
4580 * arch-utils.c: Include infrun.h.
4581 * arm-linux-tdep.c: Include infrun.h.
4582 * arm-tdep.c: Include infrun.h.
4583 * break-catch-sig.c: Include infrun.h.
4584 * breakpoint.c: Include infrun.h.
4585 * common/agent.c: Include infrun.h instead of inferior.h.
4586 * corelow.c: Include infrun.h.
4587 * event-top.c: Include infrun.h.
4588 * go32-nat.c: Include infrun.h.
4589 * i386-tdep.c: Include infrun.h.
4590 * inf-loop.c: Include infrun.h.
4591 * infcall.c: Include infrun.h.
4592 * infcmd.c: Include infrun.h.
4593 * infrun.c: Include infrun.h.
4594 * linux-fork.c: Include infrun.h.
4595 * linux-nat.c: Include infrun.h.
4596 * linux-thread-db.c: Include infrun.h.
4597 * monitor.c: Include infrun.h.
4598 * nto-tdep.c: Include infrun.h.
4599 * procfs.c: Include infrun.h.
4600 * record-btrace.c: Include infrun.h.
4601 * record-full.c: Include infrun.h.
4602 * remote-m32r-sdi.c: Include infrun.h.
4603 * remote-mips.c: Include infrun.h.
4604 * remote-notif.c: Include infrun.h.
4605 * remote-sim.c: Include infrun.h.
4606 * remote.c: Include infrun.h.
4607 * reverse.c: Include infrun.h.
4608 * rs6000-tdep.c: Include infrun.h.
4609 * s390-linux-tdep.c: Include infrun.h.
4610 * solib-irix.c: Include infrun.h.
4611 * solib-osf.c: Include infrun.h.
4612 * solib-svr4.c: Include infrun.h.
4613 * target.c: Include infrun.h.
4614 * top.c: Include infrun.h.
4615 * windows-nat.c: Include infrun.h.
4616 * mi/mi-interp.c: Include infrun.h.
4617 * mi/mi-main.c: Include infrun.h.
4618 * python/py-threadevent.c: Include infrun.h.
4619
98eb56a4
PA
46202014-05-22 Pedro Alves <palves@redhat.com>
4621
4622 * infrun.c (handle_inferior_event): Store the exit code for
4623 --return-child-result here, instead of ...
4624 (print_exited_reason): ... here.
4625
17b2616c
PA
46262014-05-21 Pedro Alves <palves@redhat.com>
4627
4628 PR gdb/13860
4629 * gdbthread.h (struct thread_control_state): New field
4630 `command_interp'.
4631 * infrun.c (follow_fork): Copy the new thread control field to the
4632 child fork thread.
4633 (clear_proceed_status_thread): Clear the new thread control field.
4634 (proceed): Set the new thread control field.
4635 * interps.h (command_interp): Declare.
4636 * interps.c (command_interpreter): New global.
4637 (command_interp): New function.
4638 (interp_exec): Set `command_interpreter' while here.
4639 * cli-out.c (cli_uiout_dtor): New function.
4640 (cli_ui_out_impl): Install it.
4641 * mi/mi-interp.c: Include cli-out.h.
4642 (mi_cmd_interpreter_exec): Add comment.
4643 (restore_current_uiout_cleanup): New function.
4644 (ui_out_free_cleanup): New function.
4645 (mi_on_normal_stop): If finishing an execution command started by
4646 a CLI command, or any kind of breakpoint-like event triggered,
4647 print the stop event to the output (CLI) stream.
4648 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4649
5166082f
PA
46502014-05-21 Pedro Alves <palves@redhat.com>
4651
4652 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4653 current source line having changed.
4654 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4655 * infrun.c (normal_stop): Adjust call to
4656 set_current_sal_from_frame.
4657 * source.c (clear_lines_listed_range): New function.
4658 (set_current_source_symtab_and_line, identify_source_line): Clear
4659 the lines listed range.
4660 (line_info): Handle the first "info line" after the current source
4661 line having changed.
4662 * stack.c (print_stack_frame): Remove center handling.
4663 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4664 center sal.line.
4665
c1ee2fb3
PA
46662014-05-21 Pedro Alves <palves@redhat.com>
4667
4668 * inf-child.c (inf_child_mourn_inferior): New function.
4669 * inf-child.h (inf_child_mourn_inferior): New declaration.
4670 * darwin-nat.c (darwin_mourn_inferior): Use
4671 inf_child_mourn_inferior.
4672 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4673 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4674 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4675 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4676 * windows-nat.c (windows_mourn_inferior): Likewise.
4677
5c6d4fb2
DE
46782014-05-21 Doug Evans <xdje42@gmail.com>
4679
250748cb 4680 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4681
4a2722c5
DE
46822014-05-21 Doug Evans <xdje42@gmail.com>
4683
17292b30 4684 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4685 (gdbscm_out_of_range_error): Ditto.
4686 (gdbscm_memory_error): Ditto.
250748cb
DE
4687 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4688 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4689 (gdbscm_out_of_range_error): Update.
4690 (gdbscm_memory_error): Update.
4691 (gdbscm_scm_to_target_string_unsafe): Delete.
4692
6a3cb8e8
PA
46932014-05-21 Pedro Alves <palves@redhat.com>
4694
4695 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4696 globals.
4697 (inf_child_open_target): New function.
4698 (inf_child_open): Use inf_child_open_target to push the target
4699 instead of erroring out.
4700 (inf_child_disconnect, inf_child_close)
4701 (inf_child_maybe_unpush_target): New functions.
4702 (inf_child_target): Install inf_child_disconnect and
4703 inf_child_close. Store a pointer to the returned object.
4704 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4705 declarations.
4706 * target.c (auto_connect_native_target): New global.
4707 (show_default_run_target): New function.
4708 (find_default_run_target): Return NULL if automatically connecting
4709 to the native target is disabled.
4710 (_initialize_target): Install set/show auto-connect-native-target.
4711 * NEWS: Mention "set auto-connect-native-target", and "target
4712 native".
4713 * linux-nat.c (super_close): New global.
4714 (linux_nat_close): Call super_close.
4715 (linux_nat_add_target): Store a pointer to the base class's
4716 to_close method.
4717 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4718 inf_child_maybe_unpush.
4719 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4720 already pushed.
4721 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4722 the inferior. Use inf_child_maybe_unpush_target.
4723 (inf_ttrace_attach): Don't push the target if it is already
4724 pushed.
4725 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4726 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4727 after mourning the inferior. Use inf_child_maybe_unpush_target.
4728 (darwin_attach_pid): Don't push the target if it is already
4729 pushed.
4730 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4731 mourning the inferior. Use inf_child_maybe_unpush_target.
4732 (gnu_detach): Use inf_child_maybe_unpush_target.
4733 * go32-nat.c (go32_create_inferior): Don't push the target if it
4734 is already pushed.
4735 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4736 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4737 (procfs_open): Rename to ...
4738 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4739 comments. Can target_preopen before changing node. Call
4740 inf_child_open_target to push the target explicitly.
4741 (procfs_attach): Don't push the target if it is already pushed.
4742 (procfs_detach): Use inf_child_maybe_unpush_target.
4743 (procfs_create_inferior): Don't push the target if it is already
4744 pushed.
4745 (nto_native_ops): New global.
4746 (procfs_open): Reimplement.
4747 (procfs_native_open): New function.
4748 (init_procfs_targets): Install procfs_native_open as to_open of
4749 "target native". Store a pointer to the "native" target in
4750 nto_native_ops.
4751 * procfs.c (procfs_attach): Don't push the target if it is already
4752 pushed.
4753 (procfs_detach): Use inf_child_maybe_unpush_target.
4754 (procfs_mourn_inferior): Only unpush the target after mourning the
4755 inferior. Use inf_child_maybe_unpush_target.
4756 (procfs_init_inferior): Don't push the target if it is already
4757 pushed.
4758 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4759 if it is already pushed.
4760
930ee1b1
PA
47612014-05-21 Pedro Alves <palves@redhat.com>
4762
4763 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4764 and "procfs" targets are now called "native" instead.
4765
1f5d1b13
PA
47662014-05-21 Pedro Alves <palves@redhat.com>
4767
4768 * go32-nat.c (go32_open): Delete.
4769 (go32_target): Don't override the to_open method.
4770
132f8e03
PA
47712014-05-21 Pedro Alves <palves@redhat.com>
4772
4773 * nto-procfs.c (procfs_can_run): New function.
4774 (nto_procfs_ops): New global.
4775 (init_procfs_targets): New, based on procfs_target. Install
4776 "target native" in addition to "target procfs".
4777 (_initialize_procfs): Call init_procfs_targets instead of adding
4778 the target here.
4779
03c136c3
PA
47802014-05-21 Pedro Alves <palves@redhat.com>
4781
4782 * windows-nat.c (windows_target): Don't override to_shortname,
4783 to_longname or to_doc.
4784
a635d0f3
PA
47852014-05-21 Pedro Alves <palves@redhat.com>
4786
4787 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4788 to_doc.
4789
4f9b5133
PA
47902014-05-21 Pedro Alves <palves@redhat.com>
4791
4792 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4793 to_shortname, to_longname or to_doc.
4794
bc85afde
PA
47952014-05-21 Pedro Alves <palves@redhat.com>
4796
4797 * go32-nat.c (go32_target): Don't override to_shortname,
4798 to_longname or to_doc.
4799
4ebfc96e
PA
48002014-05-21 Pedro Alves <palves@redhat.com>
4801
4802 * inf-child.c (inf_child_open): Remove mention of "child".
4803 (inf_child_target): Rename target to "native" instead of "child".
4804
2648dfed
AA
48052014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4806
4807 * Makefile.in (SFILES): Delete "regset.c".
4808 (COMMON_OBS): Delete "regset.o".
4809 * regset.c: Remove.
4810 * regset.h (regset_alloc): Delete prototype.
4811
b13feb94
AA
48122014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4813
4814 * sparc-linux-tdep.c (sparc32_linux_gregset)
4815 (sparc32_linux_fpregset): New static regset structures.
4816 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4817 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4818 'fpregset' fields.
4819 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4820 (sparc64_linux_fpregset): New static regset structures.
4821 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4822 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4823 New static regset structures.
4824 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4825 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4826 New static regset structures.
4827 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4828 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4829 New static regset structures.
4830 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4831 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4832 New static regset structures.
4833 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4834
b4fd25c9
AA
48352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4836
4837 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4838 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4839 register maps ("regmaps") from "*regset" to "*regmap". Do this
4840 for all regmap types and variables.
4841 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4842 (sparc32_linux_supply_core_gregset)
4843 (sparc32_linux_collect_core_gregset)
4844 (sparc32_linux_supply_core_fpregset)
4845 (sparc32_linux_collect_core_fpregset): Likewise.
4846 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4847 (sparc_gregmap, sparc_fpregmap): ... these.
4848 (sparc_supply_gregset, sparc_collect_gregset)
4849 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4850 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4851 (_initialize_sparc_nat): Rename regmaps.
4852 * sparc-nat.h (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-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4857 Rename macros to...
4858 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4859 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4860 Likewise.
4861 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4862 Rename to...
4863 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4864 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4865 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4866 regmaps.
4867 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4868 (sparc32_bsd_fpregset): Rename to...
4869 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4870 (sparc32_bsd_fpregmap): ... these.
4871 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4872 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4873 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4874 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4875 (struct sparc_gregmap, struct sparc_fpregmap)
4876 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4877 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4878 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4879 (sparc32_supply_regset, sparc32_collect_gregset)
4880 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4881 prototypes.
4882 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4883 (sparc64_linux_ptrace_gregmap): ... this.
4884 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4885 (_initialize_sparc64_linux_nat): Rename regmaps.
4886 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4887 (sparc64_linux_core_gregmap): ... this.
4888 (sparc64_linux_supply_core_gregset)
4889 (sparc64_linux_collect_core_gregset)
4890 (sparc64_linux_supply_core_fpregset)
4891 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4892 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4893 (sparc64_sol2_fpregset): Rename to...
4894 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4895 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4896 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4897 regmaps.
4898 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4899 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4900 (sparc64_bsd_fpregset): Rename to...
4901 (struct sparc_gregmap, sparc64_sol2_gregmap)
4902 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4903 (sparc64_bsd_fpregmap): ... these.
4904 (sparc64_supply_gregset, sparc64_collect_gregset)
4905 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4906 prototypes.
4907 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4908 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4909 (sparc64fbsd_gregmap): ... this.
4910 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4911 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4912 Rename regmaps.
4913 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4914 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4915 (sparc64nbsd_collect_fpregset): Likewise.
4916 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4917 (sparc64nbsd_gregmap): ... this.
4918 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4919 regmaps.
4920 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4921 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4922 (sparc64obsd_gregmap): ... this.
4923 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4924 regmaps.
4925 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4926 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4927 (sparc32nbsd_gregmap): ... this.
4928 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4929 regmaps.
4930
8fea3224
AA
49312014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4932
4933 * score-tdep.c (score7_linux_gregset): New static regset
4934 structure.
4935 (score7_linux_regset_from_core_section): Remove dynamic regset
4936 allocation.
4937 (score_gdbarch_init): Drop allocation of tdep structure.
4938 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4939
24534243
AA
49402014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4941
4942 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4943 regset structures.
4944 (am33_regset_from_core_section): Remove dynamic regset
4945 allocations.
4946
b7195f27
AA
49472014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4948
4949 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4950 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4951 structures.
4952 (mips_linux_regset_from_core_section): Remove dynamic regset
4953 allocations.
4954 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4955 'gregset64', 'fpregset', and 'fpregset64'.
4956 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4957 deleted tdep fields.
4958
ecc37a5a
AA
49592014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4960
4961 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4962 regset structures.
4963 (amd64_regset_from_core_section): Remove dynamic regset
4964 allocations.
4965 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4966 structure.
4967 (amd64obsd_regset_from_core_section): Remove dynamic regset
4968 allocation.
4969 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4970 Likewise.
4971 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4972 x86-common regset supply function.
4973 * i386-tdep.c (i386_collect_gregset): Make static.
4974 (i386_gregset): New global regset structure.
4975 (i386_fpregset, i386_xstateregset): New static regset structures.
4976 (i386_regset_from_core_section): Remove dynamic regset
4977 allocations.
4978 (i386_gdbarch_init): Remove initialization of tdep fields
4979 'gregset', 'fpregset', and 'xstateregset'.
4980 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4981 'fpregset', and 'xstateregset'.
4982 (i386_collect_gregset): Remove prototype.
4983 (i386_gregset): New declaration.
4984 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4985 structure.
4986 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4987 allocation.
4988
b7611c43
AA
49892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4990
4991 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4992 (arm_linux_vfpregset): New static regset structures.
4993 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4994 regset structures.
4995 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4996 and 'vfpregset' fields.
4997
a069a2bd
AA
49982014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4999
5000 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5001 (aarch64_linux_fpregset): New static regset structures.
5002 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5003 of regset structures.
5004 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5005 'fpregset' fields.
5006
09424cff
AA
50072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5008
5009 * regset.h (struct regset): Remove gdbarch field.
5010 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5011 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5012 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5013 Likewise.
5014 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5015 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5016 (ppc32_linux_vsxregset): Likewise.
5017 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5018 via the regcache instead of the regset.
5019 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5020 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5021 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5022 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5023 Likewise.
5024
3ca7dae4
AA
50252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5026
5027 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5028 Constify structures.
5029 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5030 (alphanbsd_aout_gregset): Likewise.
5031 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5032 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5033 Likewise.
5034 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5035 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5036 Likewise.
5037 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5038 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5039 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5040 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5041 * m88k-tdep.c (m88k_gregset): Likewise.
5042 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5043 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5044 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5045 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5046 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5047 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5048 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5049 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5050 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5051 Likewise.
5052 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5053 * sh-tdep.h (sh_corefile_gregset): Likewise.
5054 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5055 * vax-tdep.c (vax_gregset): Likewise.
5056
5876f503
JK
50572014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5058
5059 Fix TLS access for -static -pthread.
5060 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5061 (try_thread_db_load_1): Initialize it.
5062 (thread_db_get_thread_local_address): Call it if LM is zero.
5063 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5064 * target.h (struct target_ops) (to_get_thread_local_address): Add
5065 load_module_addr comment.
5066
0256a6ac
PA
50672014-05-21 Pedro Alves <palves@redhat.com>
5068
5069 * dcache.c (dcache_read_memory_partial): If reading the cache line
5070 fails, fallback to reading just the memory the caller wanted.
5071
227533ac
DE
50722014-05-20 Doug Evans <dje@google.com>
5073
5074 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5075 instead of get_current_arch.
5076
936d2992
PA
50772014-05-20 Pedro Alves <palves@redhat.com>
5078
5079 * NEWS: Mention that compare-sections now works with all targets.
5080
5081 * remote.c (PACKET_qCRC): New enum value.
5082 (remote_verify_memory): Don't send qCRC if the target has no
5083 execution. Use packet_support/packet_ok. If the target doesn't
5084 support the qCRC packet, fallback to a deep memory copy.
5085 (compare_sections_command): Say "target image" instead of "remote
5086 executable".
5087 (_initialize_remote): Add PACKET_qCRC to the list of config
5088 packets that have no associated command. Extend comment.
5089 * target.c (simple_verify_memory, default_verify_memory): New
5090 function.
5091 * target.h (struct target_ops) <to_verify_memory>: Default to
5092 default_verify_memory.
5093 (simple_verify_memory): New declaration.
5094 * target-delegates.c: Regenerate.
5095
e59fa00f
MM
50962014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5097
5098 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5099
f2205de0
HZ
51002014-05-20 Hui Zhu <hui@codesourcery.com>
5101 Yao Qi <yao@codesourcery.com>
5102
5103 PR backtrace/16558
5104 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5105 and change address of sp and pc.
5106
c4e54771
TT
51072014-05-19 Tom Tromey <tromey@redhat.com>
5108
5109 * gdbtypes.c (rank_function): Use XNEWVEC.
5110 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5111
73051182
DE
51122014-05-19 Doug Evans <dje@google.com>
5113
5114 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5115 build_type_unit_groups and moved closer to only caller. Remove
5116 arguments. All references updated. Remove outdated .gdb_index
5117 comment.
5118 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5119 build_type_psymtabs_1.
5120
8832e7e3
DE
51212014-05-19 Doug Evans <dje@google.com>
5122
5123 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5124 n_type_unit_groups, all_type_unit_groups. All uses removed.
5125 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5126 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5127 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5128 (add_type_unit_group_to_table): Delete.
5129
cd8ae15e
DE
51302014-05-19 Doug Evans <dje@google.com>
5131
5132 * eval.c (evaluate_subexp_standard): Add some comments.
5133
08f4850b
DE
51342014-05-17 Doug Evans <xdje42@gmail.com>
5135
5136 * progspace.c (remove_program_space): Delete, unused.
5137 * progspace.h (remove_program_space): Ditto.
5138
bed8455c
DE
51392014-05-17 Doug Evans <xdje42@gmail.com>
5140
5141 * inferior.c (prune_inferiors): Fix comment.
5142 (remove_inferior_command): Call prune_program_spaces.
5143
8d551b02
DE
51442014-05-16 Doug Evans <dje@google.com>
5145
5146 New command line option -D.
5147 * NEWS: Mention it.
5148 * main.c (set_gdb_data_directory): New function.
5149 (captured_main): Recognize -D. Flag error for --data-directory "".
5150 Call set_gdb_data_directory.
5151 (print_gdb_help): Print --data-directory, -D.
5152 * main.h (set_gdb_data_directory): Declare.
5153 * top.c (staged_gdb_datadir): New static global.
5154 (set_gdb_datadir): Call set_gdb_data_directory
5155 (show_gdb_datadir): New function.
5156 (init_main): Update init of data-directory parameter.
5157
18848e28
GF
51582014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5159
5160 Import the "dirfd" gnulib module.
5161 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5162 * gnulib/aclocal.m4: Update.
5163 * gnulib/config.in: Update.
5164 * gnulib/configure: Update.
5165 * gnulib/import/Makefile.am: Update.
5166 * gnulib/import/Makefile.in: Update.
5167 * gnulib/import/dirfd.c: New.
5168 * gnulib/import/m4/dirfd.m4: New.
5169 * gnulib/import/m4/gnulib-cache.m4: Update.
5170 * gnulib/import/m4/gnulib-comp.m4: Update.
5171
95c64f92
YQ
51722014-05-16 Pierre Muller <muller@sourceware.org>
5173 Yao Qi <yao@codesourcery.com>
5174
5175 * valprint.c (print_wchar): Move the code on checking whether
5176 W is a printable wide char to the default branch of switch
5177 statement below. Call wchar_printable instead of gdb_iswprint.
5178
cac395ea
TM
51792014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5180
19679eca 5181 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5182 ldr.w and ldrd instructions.
5183
83655187
DE
51842014-05-15 Doug Evans <dje@google.com>
5185
5186 * dwarf2read.c (read_structure_type): Delete outdated comments.
5187
dd756689
TT
51882014-05-14 Tom Tromey <tromey@redhat.com>
5189
5190 * macrocmd.c (print_macro_definition): Reindent.
5191
75ddda77
DE
51922014-05-13 Doug Evans <xdje42@gmail.com>
5193
5194 * python/py-cmd.c (cmdpy_completer): Add comment.
5195 (completers): Make const.
5196
b0f16a3e
SM
51972014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5198
5199 * infrun.c (resume): Remove should_resume (unused). Move up
5200 declaration of resume_ptid.
5201
033c3379
TT
52022014-05-13 Tom Tromey <tromey@redhat.com>
5203
5204 * language.h (unop_type_check): Remove.
5205 (binop_type_check): Don't declare.
5206
9b44a3a5
AA
52072014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5208
5209 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5210 call to regcache_raw_collect.
5211
303a33fa
SM
52122014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5213
5214 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5215 mi_console->quote as the quoting character.
5216
196100a0
SM
52172014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5218
5219 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5220
f989a1c8
TT
52212014-04-29 Tom Tromey <tromey@redhat.com>
5222
5223 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5224 "show debug varobj".
5225
9404b58f
KM
52262014-05-07 Kyle McMartin <kyle@redhat.com>
5227
5228 Pushed by Joel Brobecker <brobecker@adacore.com>.
5229 * aarch64-tdep.c (aarch64_software_single_step): New function.
5230 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5231 with aarch64_software_single_step.
5232
5e49ba57
JB
52332014-05-05 Joel Brobecker <brobecker@adacore.com>
5234
5235 GDB 7.7.1 released.
5236
c888a17d
KS
52372014-05-05 Keith Seitz <keiths@redhat.com>
5238
5239 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5240 variable or history value is successfully parsed.
5241
290a839c
YQ
52422014-05-05 Yao Qi <yao@codesourcery.com>
5243 Pedro Alves <palves@redhat.com>
5244
5245 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5246 address of blocks that intersects the requested range. Trim
5247 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5248 sections.
5249 * ctf.c (ctf_xfer_partial): Likewise.
5250
91256dc2
YQ
52512014-05-05 Yao Qi <yao@codesourcery.com>
5252
5253 * printcmd.c (display_command): Remove the check to
5254 target_has_execution.
5255
07284463
MK
52562014-05-03 Mark Kettenis <kettenis@gnu.org>
5257
5258 * ppcobsd-nat.c: Include "obsd-nat.h".
5259 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5260 add_target.
5261 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5262
30a1e6cc
SDJ
52632014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5264
5265 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5266 and 16-bit signed and unsigned arguments. Update comment.
5267 (stap_parse_probe_arguments): Extend code to handle such
5268 arguments. Use warning instead of complaint to notify about
5269 unrecognized bitness.
5270
f33da99a
SDJ
52712014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5272
5273 PR breakpoints/16889
5274 * stap-probe.c (stap_parse_probe_arguments): Simplify
5275 check for non-prefixed probes (i.e., probes whose
5276 arguments do not start with "N@"). Always set the
5277 argument type to a sane value.
5278
95cf3b38
DT
52792014-05-01 David Taylor <dtaylor@emc.com>
5280
5281 * remote.c (compare_sections_command): Add -r option to compare
5282 all loadable read-only sections.
5283
1cfdf534
SC
52842014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5285
5286 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5287 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5288 Update all callers.
5289 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5290 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5291 Remove unused CORE_ADDR argument. Update all callers.
5292
ca4f7f8b
PA
52932014-04-29 Pedro Alves <palves@redhat.com>
5294
5295 * remote.c (struct packet_config) <detect>: Extend comment.
5296 (add_packet_config_cmd): Don't set the config's detect or support
5297 fields here.
5298 (init_all_packet_configs): Also initialize the config's 'detect'
5299 field.
5300 (reset_all_packet_configs_support): New function.
5301 (remote_open_1): Call reset_all_packet_configs_support instead of
5302 init_all_packet_configs.
5303 (_initialize_remote): Initialize all packet configs. Assert that
5304 all packets have an associated command, except a few known
5305 outliers.
5306
11c1ba78
JB
53072014-04-28 Joel Brobecker <brobecker@adacore.com>
5308
5309 * dwarf2read.c (read_subrange_type): Handle dynamic
5310 DW_AT_lower_bound attributes.
5311
8739bc53
JB
53122014-04-28 Joel Brobecker <brobecker@adacore.com>
5313
5314 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5315 dynamic bounds before computing its upper bound.
5316 (ada_discrete_type_low_bound): Same as above with the lower bound.
5317
6f8a3220
JB
53182014-04-28 Joel Brobecker <brobecker@adacore.com>
5319
5320 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5321 range types. Adjust the array handling implementation to
5322 take advantage of this change.
5323 (resolve_dynamic_range): New function, mostly extracted from
5324 resolve_dynamic_bounds.
5325 (resolve_dynamic_array): New function, mostly extracted from
5326 resolve_dynamic_bounds.
5327 (resolve_dynamic_bounds): Delete.
5328 (resolve_dynamic_type): Reimplement. Add handling of
5329 TYPE_CODE_RANGE types.
5330
4d072ce4
JB
53312014-04-28 Joel Brobecker <brobecker@adacore.com>
5332
5333 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5334 handling of parallel ___XA types.
5335
52865325
JB
53362014-04-28 Joel Brobecker <brobecker@adacore.com>
5337
5338 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5339 unnecessary second call to static_unwrap_type.
5340
433e77fa
HZ
53412014-04-27 Hui Zhu <hui@codesourcery.com>
5342
5343 * stack.c (print_frame_info): Call do_gdb_disassembly with
5344 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5345
b51a69ee
DE
53462014-04-26 Doug Evans <xdje42@gmail.com>
5347
5348 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5349
7ae1a6a6
PA
53502014-04-25 Pedro Alves <palves@redhat.com>
5351
5352 PR server/16255
5353 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5354 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5355 and newline from built string.
5356 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5357 (linux_ptrace_attach_fail_reason): ... this.
5358 * linux-nat.c (linux_nat_attach): Adjust to use
5359 linux_ptrace_attach_fail_reason.
5360
4082afcc
PA
53612014-04-25 Pedro Alves <palves@redhat.com>
5362
5363 * remote.c (struct remote_state): Remove multi_process_aware,
5364 non_stop_aware, cond_tracepoints, cond_breakpoints,
5365 breakpoint_commands, fast_tracepoints, static_tracepoints,
5366 install_in_trace, disconnected_tracing,
5367 enable_disable_tracepoints, string_tracing, and
5368 augmented_libraries_svr4_read fields.
5369 (remote_multi_process_p): Move further below in the file.
5370 (struct packet_config): Add comments.
5371 (update_packet_config): Delete function.
5372 (show_packet_config_cmd): Use packet_config_support.
5373 (add_packet_config_cmd): Use NULL as set callback.
5374 (packet_ok): "set remote foo-packet"-style commands no longer
5375 change config->supported -- adjust.
5376 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5377 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5378 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5379 (PACKET_QNonStop, PACKET_multiprocess_feature)
5380 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5381 (PACKET_DisconnectedTracing_feature)
5382 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5383 (set_remote_protocol_packet_cmd): Delete function.
5384 (packet_config_support, packet_support): New functions.
5385 (set_remote_protocol_Z_packet_cmd): Don't call
5386 update_packet_config.
5387 (remote_query_attached, remote_pass_signals)
5388 (remote_program_signals, remote_threads_info)
5389 (remote_threads_extra_info, remote_start_remote): Use
5390 packet_support.
5391 (remote_start_remote): Use packet_config_support and
5392 packet_support.
5393 (init_all_packet_configs): Set all packets to unknown support,
5394 instead of calling update_packet_config.
5395 (remote_check_symbols): Use packet_support.
5396 (remote_supported_packet): Unconditionally set the packet config's
5397 support status.
5398 (remote_multi_process_feature, remote_non_stop_feature)
5399 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5400 (remote_breakpoint_commands_feature)
5401 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5402 (remote_install_in_trace_feature)
5403 (remote_disconnected_tracing_feature)
5404 (remote_enable_disable_tracepoint_feature)
5405 (remote_string_tracing_feature)
5406 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5407 (remote_protocol_features): Adjust to use remote_supported_packet
5408 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5409 "ConditionalTracepoints", "ConditionalBreakpoints",
5410 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5411 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5412 "EnableDisableTracepoints", and "tracenz".
5413 (remote_query_supported): Use packet_support.
5414 (remote_open_1): Adjust.
5415 (extended_remote_attach_1): Use packet_support. Switch on the
5416 result of packet_ok instead of checking whether the packet ended
5417 up disabled.
5418 (remote_vcont_resume): Use packet_support.
5419 (remote_resume, remote_stop_ns, fetch_register_using_p)
5420 (remote_prepare_to_store, store_register_using_P)
5421 (check_binary_download, remote_write_bytes): Use packet_support.
5422 (remote_vkill): Use packet_support. Switch on the result of
5423 packet_ok instead of checking whether the packet ended up
5424 disabled.
5425 (extended_remote_supports_disable_randomization): Use
5426 packet_support.
5427 (extended_remote_run): Switch on the result of packet_ok instead
5428 of checking whether the packet ended up disabled.
5429 (remote_insert_breakpoint, remote_remove_breakpoint)
5430 (remote_insert_watchpoint, remote_remove_watchpoint)
5431 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5432 packet_support.
5433 (remote_search_memory): Use packet_config_support.
5434 (remote_get_thread_local_address, remote_get_tib_address)
5435 (remote_hostio_send_command, remote_can_execute_reverse): Use
5436 packet_support.
5437 (remote_supports_cond_tracepoints)
5438 (remote_supports_cond_breakpoints)
5439 (remote_supports_fast_tracepoints)
5440 (remote_supports_static_tracepoints)
5441 (remote_supports_install_in_trace)
5442 (remote_supports_enable_disable_tracepoint)
5443 (remote_supports_string_tracing)
5444 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5445 the packet config says the feature is enabled or disabled.
5446 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5447 (remote_get_trace_status): Use packet_support.
5448 (remote_set_disconnected_tracing): Adjust to check whether the
5449 feature is enabled with packet_support.
5450 (remote_set_trace_buffer_size, remote_use_agent)
5451 (remote_can_use_agent, remote_supports_btrace): Use
5452 packet_support.
5453 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5454 Use packet_config_support.
5455 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5456 the packet config says the feature is enabled or disabled.
5457 (set_range_stepping): Use packet_support.
5458
bdb52a22
TT
54592014-04-25 Tom Tromey <tromey@redhat.com>
5460
5461 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5462 argument.
5463
e9475ead
SA
54642014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5465
5466 * NEWS: Mention support for C99 variable length arrays.
5467
82eacd52
JB
54682014-04-24 Joel Brobecker <brobecker@adacore.com>
5469
5470 * ada-lang.c (standard_exc): Expand introductory comment.
5471
01f9f808
MS
54722014-04-24 Michael Sturm <michael.sturm@mintel.com>
5473 Walfred Tedeschi <walfred.tedeschi@intel.com>
5474
5475 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5476 AVX512 registers.
5477 (amd64_linux_read_description): Add code to handle AVX512 xstate
5478 mask and return respective tdesc.
5479 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5480 and features/i386/x32-avx512-linux.c.
5481 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5482 (amd64_linux_core_read_description): Add code to handle AVX512
5483 xstate mask and return respective tdesc.
5484 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5485 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5486 calculation.
5487 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5488 (tdesc_amd64_avx512_linux): New prototype.
5489 (tdesc_x32_avx512_linux): Likewise.
5490 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5491 features/i386/x32-avx512.c.
5492 (amd64_ymm_avx512_names): New register names for pseudo
5493 registers YMM16-31.
5494 (amd64_ymmh_avx512_names): New register names for raw registers
5495 YMMH16-31.
5496 (amd64_k_names): New register names for K registers.
5497 (amd64_zmmh_names): New register names for ZMM raw registers.
5498 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5499 (amd64_xmm_avx512_names): New register names for XMM16-31
5500 registers.
5501 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5502 registers.
5503 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5504 if feature is present.
5505 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5506 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5507 (AMD64_NUM_REGS): Adjust to new number of registers.
5508 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5509 registers supplied via XSTATE by AVX512 registers.
5510 (i386_linux_read_description): Add case for AVX512.
5511 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5512 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5513 (i386_linux_core_read_description): Add case for AVX512.
5514 (i386_linux_init_abi): Install supported register note section
5515 for AVX512.
5516 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5517 AVX512.
5518 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5519 registers to be number of zmm7h + 1.
5520 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5521 * i386-tdep.c: Include features/i386/i386-avx512.c.
5522 (i386_zmm_names): Add ZMM pseudo register names array.
5523 (i386_zmmh_names): Add ZMM raw register names array.
5524 (i386_k_names): Add K raw register names array.
5525 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5526 registers. AVX512 has 16 more ZMM registers than there are YMM
5527 registers.
5528 (i386_zmmh_regnum_p): Add function to look up register number of
5529 ZMM raw registers.
5530 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5531 (i386_k_regnum_p): Likewise for K raw registers.
5532 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5533 registers added by AVX512.
5534 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5535 registers added by AVX512.
5536 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5537 added by AVX512.
5538 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5539 (i386_pseudo_register_name): Add ZMM pseudo registers.
5540 (i386_zmm_type): Construct and return vector registers type for ZMM
5541 registers.
5542 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5543 ZMM0-31 pseudo registers and K registers.
5544 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5545 and YMM16-31 registers from register cache.
5546 (i386_pseudo_register_write): Add code to write K, ZMM and
5547 YMM16-31 registers.
5548 (i386_register_reggroup_p): Add code to include/exclude AVX512
5549 registers in/from respective register groups.
5550 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5551 registers if feature is present in xcr0.
5552 (i386_gdbarch_init): Add code to initialize AVX512 feature
5553 variables in tdep structure, wire in pseudo registers and call
5554 initialize_tdesc_i386_avx512.
5555 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5556 variables.
5557 (i386_regnum): Add AVX512 registers.
5558 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5559 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5560 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5561 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5562 512 bits wide.
5563 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5564 (i386_ymm_avx512_regnum_p): Likewise.
5565 (i386_k_regnum_p): Likewise.
5566 (i386_zmm_regnum_p): Likewise.
5567 (i386_zmmh_regnum_p): Likewise.
5568 * i387-tdep.c : Update year in copyright notice.
5569 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5570 XSAVE buffer.
5571 (XSAVE_YMM_AVX512_ADDR): New macro.
5572 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5573 XSAVE buffer.
5574 (XSAVE_XMM_AVX512_ADDR): New macro.
5575 (xsave_avx512_k_offset): New table for K register offsets in
5576 XSAVE buffer.
5577 (XSAVE_AVX512_K_ADDR): New macro.
5578 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5579 in XSAVE buffer.
5580 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5581 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5582 buffer.
5583 (i387_collect_xsave): Add code to collect AVX512 registers from
5584 XSAVE buffer.
5585 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5586 of XMM16-31 registers.
5587 (I387_NUM_K_REGS): New define for number of K registers.
5588 (I387_K0_REGNUM): New define for K0 register number.
5589 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5590 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5591 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5592 registers.
5593 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5594 (I387_XMM16_REGNUM): New define for XMM16 register number.
5595 (I387_YMM0_REGNUM): New define for YMM0 register number.
5596 (I387_KEND_REGNUM): New define for last K register number.
5597 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5598 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5599 number.
5600 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5601 number.
5602 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5603 size.
5604 * features/Makefile: Add AVX512 related files.
5605 * features/i386/32bit-avx512.xml: New file.
5606 * features/i386/64bit-avx512.xml: Likewise.
5607 * features/i386/amd64-avx512-linux.c: Likewise.
5608 * features/i386/amd64-avx512-linux.xml: Likewise.
5609 * features/i386/amd64-avx512.c: Likewise.
5610 * features/i386/amd64-avx512.xml: Likewise.
5611 * features/i386/i386-avx512-linux.c: Likewise.
5612 * features/i386/i386-avx512-linux.xml: Likewise.
5613 * features/i386/i386-avx512.c: Likewise.
5614 * features/i386/i386-avx512.xml: Likewise.
5615 * features/i386/x32-avx512-linux.c: Likewise.
5616 * features/i386/x32-avx512-linux.xml: Likewise.
5617 * features/i386/x32-avx512.c: Likewise.
5618 * features/i386/x32-avx512.xml: Likewise.
5619 * regformats/i386/amd64-avx512-linux.dat: New file.
5620 * regformats/i386/amd64-avx512.dat: Likewise.
5621 * regformats/i386/i386-avx512-linux.dat: Likewise.
5622 * regformats/i386/i386-avx512.dat: Likewise.
5623 * regformats/i386/x32-avx512-linux.dat: Likewise.
5624 * regformats/i386/x32-avx512.dat: Likewise.
5625 * NEWS: Add note about new support for AVX512.
5626
5627
08351840
PA
56282014-04-23 Pedro Alves <palves@redhat.com>
5629
5630 * breakpoint.c (insert_bp_location): Tolerate errors if the
5631 breakpoint is set in a user-loaded objfile.
5632 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5633 location is marked shlib_disabled. If the breakpoint is set in a
5634 user-loaded objfile is a GDB-side memory breakpoint, validate it
5635 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5636 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5637 flag.
5638 * mem-break.c (memory_validate_breakpoint): New function.
5639 * objfiles.c (userloaded_objfile_contains_address_p): New
5640 function.
5641 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5642 * target.h (memory_validate_breakpoint): New declaration.
5643
076855f9
PA
56442014-04-23 Pedro Alves <palves@redhat.com>
5645
5646 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5647 the breakpoint is set in a shared library, only suppress
5648 errors for software breakpoints, not hardware breakpoints.
5649
483805cf
PA
56502014-04-22 Pedro Alves <palves@redhat.com>
5651
5652 * infrun.c (schedlock_applies): New function, factored out from
5653 find_thread_needs_step_over.
5654 (find_thread_needs_step_over): Use it.
5655 (switch_back_to_stepped_thread): Always clear trap_expected if the
5656 step over is finished. Return early if scheduler locking applies.
5657 Look for the stepping thread and a potential step-over thread with
5658 a single loop.
5659 (currently_stepping_or_nexting_callback): Delete.
5660
a75fef0e
NC
56612014-04-22 Nick Clifton <nickc@redhat.com>
5662
5663 * NEWS: Mention that ARM sim now supports tracing.
5664
48b6e87e
YQ
56652014-04-22 Yao Qi <yao@codesourcery.com>
5666
5667 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5668 to ...
5669 * tracefile.c (tracefile_fetch_registers): ... it. New
5670 function.
5671 * tracefile.h (tracefile_fetch_registers): Declare.
5672 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5673 tracefile_fetch_registers.
5674
17617f2d
EZ
56752014-04-19 Eli Zaretskii <eliz@gnu.org>
5676
5677 PR gdb/14018
5678 * windows-nat.c (thread_rec): Don't display a warning when
5679 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5680 fails for any reason, set th->suspended to -1, so that we don't
5681 try to resume such a thread. Also, don't return NULL in these
5682 cases, to avoid completely ruin the session due to "PC register is
5683 not available" error.
5684 (do_windows_fetch_inferior_registers): Check errors in
5685 GetThreadContext call.
5686 (windows_continue): Accept an additional argument KILLED; if not
5687 zero, ignore errors in the SetThreadContext call, since the
5688 inferior was killed and is shutting down.
5689 (windows_resume, get_windows_debug_event)
5690 (windows_create_inferior, windows_mourn_inferior)
5691 (windows_kill_inferior): All callers of windows_continue changed
5692 to adjust to its new calling sequence.
5693
5723a6fd
YQ
56942014-04-19 Yao Qi <yao@codesourcery.com>
5695
5696 * ctf.c (ctf_open): Call post_create_inferior.
5697
614d5099
YQ
56982014-04-19 Yao Qi <yao@codesourcery.com>
5699
5700 * ctf.c (handle_id): New static variable.
5701 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5702 value. Get the declaration of event "register" and get length
5703 of field "contents".
5704
dac3e710
YQ
57052014-04-19 Yao Qi <yao@codesourcery.com>
5706
5707 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5708
2bca57ba
SC
57092014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5710
5711 * valops.c (oload_method_static): Remove unnecessary argument
5712 METHOD. Update all callers.
5713
51d48146
PA
57142014-04-18 Pedro alves <palves@redhat.com>
5715 Tom Tromey <tromey@redhat.com>
5716
5717 PR backtrace/15558
5718 * frame.c (get_prev_frame_1): Rename to ...
5719 (get_prev_frame_always): ... this, and make extern. Adjust.
5720 (skip_artificial_frames): Use get_prev_frame_always.
5721 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5722 (get_frame_unwind_stop_reason): Adjust to rename.
5723 * frame.h (get_prev_frame_always): Declare.
5724 * inline-frame.c: Include frame.h.
5725 (inline_frame_this_id): Use get_prev_frame_always.
5726
1bdad2e0
TG
57272014-04-18 Tristan Gingold <gingold@adacore.com>
5728
5729 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5730 code by using bfd_mach_o_get_base_address.
5731
7ce16bd4
UW
57322014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5733
5734 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5735 (spu_ax_pseudo_register_collect): New function.
5736 (spu_ax_pseudo_register_push_stack): Likewise.
5737 (spu_dwarf_reg_to_regnum): Likewise.
5738 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5739
2ed3c037
UW
57402014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5741
5742 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5743 Replace FRAME argument with FRAME_ID.
5744 * gdbarch.c, gdbarch.h: Regenerate.
5745 * findvar.c (default_value_from_register): Add GDBARCH argument;
5746 replace FRAME by FRAME_ID. No longer call get_frame_id.
5747 (value_from_register): Update call to gdbarch_value_from_register.
5748 * value.h (default_value_from_register): Update prototype.
5749 * s390-linux-tdep.c (s390_value_from_register): Update interface
5750 and call to default_value_from_register.
5751 * spu-tdep.c (spu_value_from_register): Likewise.
5752
5753 * findvar.c (address_from_register): Remove TYPE argument.
5754 Do not call value_from_register; use gdbarch_value_from_register
5755 with null_frame_id instead.
5756 * value.h (address_from_register): Update prototype.
5757 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5758 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5759 address_from_register interface change.
5760
71e50e83
YQ
57612014-04-17 Yao Qi <yao@codesourcery.com>
5762
5763 * gdbtypes.h: Update comments to link to types and macros'
5764 definitions.
5765
7a23c549
SC
57662014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5767
5768 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5769
22869d73
KS
57702014-04-16 Keith Seitz <keiths@redhat.com>
5771
5772 PR gdb/15827
5773 * dwarf2read.c (skip_one_die): Check that all relative-offset
5774 sibling DIEs fall within range of the current reader's buffer.
5775 (read_partial_die): Likewise.
5776
c4f87ca6
KS
57772014-04-16 Keith Seitz <keiths@redhat.com>
5778
5779 PR c++/16597
5780 * cp-namespace.c (lookup_symbol_file): If the type name of
5781 `this' is NULL, return immediately.
5782
b50c8614
KS
57832014-04-14 Keith Seitz <keiths@redhat.com>
5784
5785 PR c++/16253
5786 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5787 from symbol_matches_domain in symtab.c. All local callers
5788 of symbol_matches_domain updated.
5789 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5790 search STRUCT_DOMAIN.
5791 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5792 independently. standard_lookup will do that automatically.
5793 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5794 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5795 (cp_lookup_symbol_in_namespace): Likewise.
5796 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5797 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5798 may return a STRUCT_DOMAIN match.
5799 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5800 * cp-support.c: Include language.h.
5801 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5802 VAR_DOMAIN.
5803 * psymtab.c (match_partial_symbol): Compare the requested
5804 domain with the symbol's domain directly.
5805 (lookup_partial_symbol): Likewise.
5806 * symtab.c (lookup_symbol_in_language): Explain when/why
5807 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5808 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5809 appropriate languages.
5810 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5811 and moved to ada-lang.c
5812 (lookup_block_symbol): Explain that this function only returns
5813 symbol matching the requested DOMAIN.
5814 Compare the requested domain with the symbol's domain directly.
5815 (iterate_over_symbols): Compare the requested domain with the
5816 symbol's domain directly.
5817 * symtab.h (symbol_matches_domain): Remove.
5818
3d567982
TT
58192014-04-14 Tom Tromey <tromey@redhat.com>
5820
5821 PR c++/15246:
5822 * c-exp.y (type_aggregate_p): New function.
5823 (qualified_name, classify_inner_name): Use it.
5824 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5825 and TYPE_TARGET_TYPE of an enum type.
5826 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5827 an enum type.
5828 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5829 handle TYPE_DECLARED_CLASS.
5830 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5831 types.
5832 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5833 * valops.c (enum_constant_from_type): New function.
5834 (value_aggregate_elt): Use it.
5835 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5836 TYPE_CODE_ENUM.
5837
c848d642
TT
58382014-04-14 Tom Tromey <tromey@redhat.com>
5839
5840 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5841 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5842 const.
5843 * value.h (value_aggregate_elt): Update.
5844
0626fc76
TT
58452014-04-14 Tom Tromey <tromey@redhat.com>
5846
5847 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5848
5ecaaa66
SA
58492014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5850
5851 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5852 (evaluate_subexp_standard): Pass noside argument.
5853 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5854 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5855 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5856 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5857 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5858
1612e0c0
SA
58592014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5860
5861 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5862 points to a constant blob.
5863
c451ebe5
SA
58642014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5865
5866 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5867 property and store it as the high bound and flag the range accordingly.
5868 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5869 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5870 * gdbtypes.h (enum range_flags): New enum.
5871 (struct range_bounds): Add flags member.
5872
1d42e4c4
SA
58732014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5874
5875 * c-typeprint.c (c_type_print_varspec_suffix): Added
5876 check for not yet resolved high bound. If unresolved, print
5877 "variable length" string to the console instead of random
5878 length.
5879
9f1f738a
SA
58802014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5881
5882 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5883 value.
5884 (ada_template_to_fixed_record_type_1): Likewise.
5885 (ada_to_fixed_type_1): Likewise.
5886 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5887 (cp_print_value): Likewise.
5888 * d-valprint.c (dynamic_array_type): Likewise.
5889 * findvar.c (address_of_variable): Likewise.
5890 * jv-valprint.c (java_value_print): Likewise.
5891 * valops.c (value_ind): Likewise.
5892 * value.c (coerce_ref): Likewise.
5893
3c8452d4
SA
58942014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5895
5896 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5897 value and retrieve the dynamic type size.
5898
4ad88275
SA
58992014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5900
5901 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5902 passed to sizeof is dynamic evaluate the argument to compute the length.
5903
80180f79
SA
59042014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5905 Joel Brobecker <brobecker@adacore.com>
5906
5907 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5908 (dwarf2_evaluate_property): New function.
5909 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5910 * dwarf2read.c (attr_to_dynamic_prop): New function.
5911 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5912 attribute.
5913 * gdbtypes.c: Include dwarf2loc.h.
5914 (is_dynamic_type): New function.
5915 (resolve_dynamic_type): New function.
5916 (resolve_dynamic_bounds): New function.
5917 (get_type_length): New function.
5918 (check_typedef): Use get_type_length to compute type length.
5919 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5920 (TYPE_LOW_BOUND_KIND): New macro.
5921 (is_dynamic_type): New function prototype.
5922 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5923 to resolve dynamic properties of the type. Update comment.
5924 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5925
a1556843
RH
59262014-04-14 Richard Henderson <rth@redhat.com>
5927
5928 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5929
0be03e84
DE
59302014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5931 Doug Evans <xdje42@gmail.com>
5932
5933 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5934 dereference TYPE_CODE_REF values.
5935
6b662e19
JB
59362014-04-11 Joel Brobecker <brobecker@adacore.com>
5937
5938 Revert the following changes due to regressions:
5939
5940 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5941 (dwarf2_evaluate_property): New function.
5942 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5943 * dwarf2read.c (attr_to_dynamic_prop): New function.
5944 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5945 attribute.
5946 * gdbtypes.c: Include dwarf2loc.h.
5947 (is_dynamic_type): New function.
5948 (resolve_dynamic_type): New function.
5949 (resolve_dynamic_bounds): New function.
5950 (get_type_length): New function.
5951 (check_typedef): Use get_type_length to compute type length.
5952 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5953 (TYPE_LOW_BOUND_KIND): New macro.
5954 (is_dynamic_type): New function prototype.
5955 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5956 to resolve dynamic properties of the type. Update comment.
5957 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5958
5959 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5960 passed to sizeof is dynamic evaluate the argument to compute the length.
5961
5962 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5963 value and retrieve the dynamic type size.
5964
5965 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5966 (ada_template_to_fixed_record_type_1): Likewise.
5967 (ada_to_fixed_type_1): Likewise.
5968 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5969 (cp_print_value): Likewise.
5970 * d-valprint.c (dynamic_array_type): Likewise.
5971 * eval.c (evaluate_subexp_with_coercion): Likewise.
5972 * findvar.c (address_of_variable): Likewise.
5973 * jv-valprint.c (java_value_print): Likewise.
5974 * valops.c (value_ind): Likewise.
5975 * value.c (coerce_ref): Likewise.
5976
5977 * c-typeprint.c (c_type_print_varspec_suffix): Added
5978 check for not yet resolved high bound. If unresolved, print
5979 "variable length" string to the console instead of random
5980 length.
5981
5982 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5983 property and store it as the high bound and flag the range accordingly.
5984 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5985 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5986 * gdbtypes.h (enum range_flags): New enum.
5987 (struct range_bounds): Add flags member.
5988
5989 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5990 points to a constant blob.
5991
5992 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5993 (evaluate_subexp_standard): Pass noside argument.
5994 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5995 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5996 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5997 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5998 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5999
245a5f0b
KS
60002014-04-11 Keith Seitz <keiths@redhat.com>
6001
6002 PR c++/16675
6003 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6004 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6005 reference types.
6006
3bce8237
SA
60072014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6008
6009 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6010 (evaluate_subexp_standard): Pass noside argument.
6011 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6012 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6013 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6014 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6015 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6016
92b09522
SA
60172014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6018
6019 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6020 points to a constant blob.
6021
e1969afb
SA
60222014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6023
6024 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6025 property and store it as the high bound and flag the range accordingly.
6026 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6027 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6028 * gdbtypes.h (enum range_flags): New enum.
6029 (struct range_bounds): Add flags member.
6030
b86138fb
SA
60312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6032
6033 * c-typeprint.c (c_type_print_varspec_suffix): Added
6034 check for not yet resolved high bound. If unresolved, print
6035 "variable length" string to the console instead of random
6036 length.
6037
bcd629a4
SA
60382014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6039
6040 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6041 (ada_template_to_fixed_record_type_1): Likewise.
6042 (ada_to_fixed_type_1): Likewise.
6043 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6044 (cp_print_value): Likewise.
6045 * d-valprint.c (dynamic_array_type): Likewise.
6046 * eval.c (evaluate_subexp_with_coercion): Likewise.
6047 * findvar.c (address_of_variable): Likewise.
6048 * jv-valprint.c (java_value_print): Likewise.
6049 * valops.c (value_ind): Likewise.
6050 * value.c (coerce_ref): Likewise.
6051
04b19544
SA
60522014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6053
6054 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6055 value and retrieve the dynamic type size.
6056
26cb189f
SA
60572014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6058
6059 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6060 passed to sizeof is dynamic evaluate the argument to compute the length.
6061
37c1ab67
SA
60622014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6063
6064 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6065 (dwarf2_evaluate_property): New function.
6066 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6067 * dwarf2read.c (attr_to_dynamic_prop): New function.
6068 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6069 attribute.
6070 * gdbtypes.c: Include dwarf2loc.h.
6071 (is_dynamic_type): New function.
6072 (resolve_dynamic_type): New function.
6073 (resolve_dynamic_bounds): New function.
6074 (get_type_length): New function.
6075 (check_typedef): Use get_type_length to compute type length.
6076 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6077 (TYPE_LOW_BOUND_KIND): New macro.
6078 (is_dynamic_type): New function prototype.
6079 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6080 to resolve dynamic properties of the type. Update comment.
6081 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6082
729efb13
SA
60832014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6084
6085 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6086 declaring high/low bounds and change uses accordingly. Call
6087 create_range_type instead of create_static_range_type.
6088 * gdbtypes.c (create_range_type): New function.
6089 (create_range_type): Convert bounds into struct bound_prop and pass
6090 them to create_range_type.
6091 * gdbtypes.h (struct bound_prop): New struct.
6092 (create_range_type): New function prototype.
6093 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6094 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6095 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6096 part of the bound.
6097 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6098
0c9c3474
SA
60992014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6100
6101 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6102 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6103 * ada-lang.c: All uses of create_range_type updated.
6104 * coffread.c: All uses of create_range_type updated.
6105 * dwarf2read.c: All uses of create_range_type updated.
6106 * f-exp.y: All uses of create_range_type updated.
6107 * m2-valprint.c: All uses of create_range_type updated.
6108 * mdebugread.c: All uses of create_range_type updated.
6109 * stabsread.c: All uses of create_range_type updated.
6110 * valops.c: All uses of create_range_type updated.
6111 * valprint.c: All uses of create_range_type updated.
6112
9d497a19
PA
61132014-04-10 Pedro Alves <palves@redhat.com>
6114
6115 * breakpoint.c (single_step_breakpoints)
6116 (single_step_gdbarch): Move up in the file.
6117 (one_breakpoint_xfer_memory): New function, factored out from ...
6118 (breakpoint_xfer_memory): ... here. Also process single-step
6119 breakpoints.
6120
15a9128a
TG
61212014-04-09 Tristan Gingold <gingold@adacore.com>
6122
6123 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6124 comments.
6125 (darwin_decode_exception_message): Free port only after use.
6126
9c97a070
PL
61272014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6128
6129 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6130 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6131 when setting the size of call_length.
6132
7af389b8
SC
61332014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6134
6135 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6136 dereference TYPE_CODE_REF values.
6137
86ad98c3
JB
61382014-04-07 Joel Brobecker <brobecker@adacore.com>
6139
6140 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6141 end of warning message.
6142
b0aeadb3
DE
61432014-04-03 Doug Evans <dje@google.com>
6144
6145 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6146 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6147
5979d6b6
AM
61482014-04-02 Alan Modra <amodra@gmail.com>
6149
6150 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6151 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6152 (struct symbol_file_add_from_memory_args): Add size field.
6153 (find_vdso_size): New function.
6154 (add_vsyscall_page): Attempt to find vdso size.
6155
0d60c288
DE
61562014-04-01 Doug Evans <dje@google.com>
6157
6158 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6159
a41f2563
TG
61602014-04-01 Tristan Gingold <gingold@adacore.com>
6161
6162 * darwin-nat.c (darwin_encode_reply): Add prototype.
6163 (darwin_decode_exception_message): Reply to unknown inferiors.
6164 (darwin_decode_message): Handle message by id. Ignore message
6165 to unknown inferior.
6166 (darwin_wait): Discard unknown messages, add debug trace.
6167
11a865c8
DE
61682014-03-31 Doug Evans <dje@google.com>
6169
6170 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6171 comp_dir_string.
6172
770e7fc7
DE
61732014-03-31 Doug Evans <dje@google.com>
6174
6175 New option "set print symbol-loading".
6176 * NEWS: Mention it.
6177 * solib.c (solib_read_symbols): Only print symbol loading messages
6178 if requested.
6179 (solib_add): If symbol loading is in "brief" mode, notify user
6180 symbols are being loaded.
6181 (reload_shared_libraries_1): Ditto.
6182 * symfile.c (print_symbol_loading_off): New static global.
6183 (print_symbol_loading_brief): New static global.
6184 (print_symbol_loading_full): New static global.
6185 (print_symbol_loading_enums): New static global.
6186 (print_symbol_loading): New static global.
6187 (print_symbol_loading_p): New function.
6188 (symbol_file_add_with_addrs): Only print symbol loading messages
6189 if requested.
6190 (_initialize_symfile): Register "print symbol-loading" set/show
6191 command.
6192 * symfile.h (print_symbol_loading_p): Declare.
6193
c32c64b7
DE
61942014-03-30 Doug Evans <xdje42@gmail.com>
6195
6196 * infrun.c (set_last_target_status): New function.
6197 (handle_inferior_event): Call it.
6198
7c0bc051
DE
61992014-03-30 Doug Evans <xdje42@gmail.com>
6200
6201 * inferior.h (enum stop_kind): Improve comment.
6202
8776cfe9
JB
62032014-03-28 Joel Brobecker <brobecker@adacore.com>
6204
6205 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6206 a reference, strip the reference layer before calling
6207 the lang_ops value_has_mutated callback.
6208
410a0ff2
SDJ
62092014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6210
6211 Remove some globals from our parser.
6212 * language.c (unk_lang_parser): Add "struct parser_state"
6213 argument.
6214 * language.h (struct language_defn) <la_parser>: Likewise.
6215 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6216 (initialize_expout): Add "struct parser_state" argument.
6217 Rewrite function to use the parser state.
6218 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6219 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6220 write_exp_elt_longcst, write_exp_elt_dblcst,
6221 write_exp_elt_decfloatcst, write_exp_elt_type,
6222 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6223 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6224 write_dollar_variable): Likewise.
6225 (parse_exp_in_context_1): Use parser state.
6226 (insert_type_address_space): Add "struct parser_state" argument.
6227 Use parser state.
6228 (increase_expout_size): New function.
6229 * parser-defs.h: Forward declare "struct language_defn" and
6230 "struct parser_state".
6231 (expout, expout_size, expout_ptr): Remove extern declarations.
6232 (parse_gdbarch, parse_language): Rewrite macro declarations to
6233 accept the parser state.
6234 (struct parser_state): New struct.
6235 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6236 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6237 write_exp_elt_decfloatcst, write_exp_elt_type,
6238 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6239 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6240 write_exp_msymbol, write_dollar_variable,
6241 mark_struct_expression, insert_type_address_space): Add "struct
6242 parser_state" argument.
6243 (increase_expout_size): New function.
6244 * utils.c (do_clear_parser_state): New function.
6245 (make_cleanup_clear_parser_state): Likewise.
6246 * utils.h (make_cleanup_clear_parser_state): New function
6247 prototype.
6248 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6249 Update calls to write_exp* in order to pass the parser state.
6250 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6251 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6252 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6253 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6254 * stap-probe.c (stap_parse_register_operand): Likewise.
6255 (stap_parse_single_operand): Likewise.
6256 (stap_parse_argument_1): Likewise.
6257 (stap_parse_argument): Use parser state.
6258 * stap-probe.h: Include "parser-defs.h".
6259 (struct stap_parse_info) <pstate>: New field.
6260 * c-exp.y (parse_type): Rewrite to use parser state.
6261 (yyparse): Redefine to c_parse_internal.
6262 (pstate): New global variable.
6263 (parse_number): Add "struct parser_state" argument.
6264 (write_destructor_name): Likewise.
6265 (type_exp): Update calls to write_exp* and similars in order to
6266 use parser state.
6267 (exp1, exp, variable, qualified_name, space_identifier,
6268 typename, typebase): Likewise.
6269 (write_destructor_name, parse_number, lex_one_token,
6270 classify_name, classify_inner_name, c_parse): Add "struct
6271 parser_state" argument. Update function to use parser state.
6272 * c-lang.h: Forward declare "struct parser_state".
6273 (c_parse): Add "struct parser_state" argument.
6274 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6275 (yyparse): Redefine macro to ada_parse_internal.
6276 (pstate): New variable.
6277 (write_int, write_object_renaming, write_var_or_type,
6278 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6279 type_int, type_long, type_long_long, type_float, type_double,
6280 type_long_double, type_char, type_boolean, type_system_address):
6281 Add "struct parser_state" argument.
6282 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6283 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6284 var_or_type, aggregate, aggregate_component_list,
6285 positional_list, others, component_group,
6286 component_associations): Update calls to write_exp* and similar
6287 functions in order to use parser state.
6288 (ada_parse, write_var_from_sym, write_int,
6289 write_exp_op_with_string, write_object_renaming,
6290 find_primitive_type, write_selectors, write_ambiguous_var,
6291 write_var_or_type, write_name_assoc, type_int, type_long,
6292 type_long_long, type_float, type_double, type_long_double,
6293 type_char, type_boolean, type_system_address): Add "struct
6294 parser_state" argument. Adjust function to use parser state.
6295 * ada-lang.c (parse): Likewise.
6296 * ada-lang.h: Forward declare "struct parser_state".
6297 (ada_parse): Add "struct parser_state" argument.
6298 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6299 calls to both functions.
6300 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6301 parser state.
6302 (yyparse): Redefine macro to f_parse_internal.
6303 (pstate): New variable.
6304 (parse_number): Add "struct parser_state" argument.
6305 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6306 and similars in order to use parser state.
6307 (parse_number): Adjust code to use parser state.
6308 (yylex): Likewise.
6309 (f_parse): New function.
6310 * f-lang.h: Forward declare "struct parser_state".
6311 (f_parse): Add "struct parser_state" argument.
6312 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6313 parser state.
6314 (yyparse): Redefine macro for java_parse_internal.
6315 (pstate): New variable.
6316 (push_expression_name, push_expression_name, insert_exp): Add
6317 "struct parser_state" argument.
6318 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6319 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6320 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6321 PostIncrementExpression, PostDecrementExpression,
6322 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6323 UnaryExpressionNotPlusMinus, CastExpression,
6324 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6325 RelationalExpression, EqualityExpression, AndExpression,
6326 ExclusiveOrExpression, InclusiveOrExpression,
6327 ConditionalAndExpression, ConditionalOrExpression,
6328 ConditionalExpression, Assignment, LeftHandSide): Update
6329 calls to write_exp* and similars in order to use parser state.
6330 (parse_number): Ajust code to use parser state.
6331 (yylex): Likewise.
6332 (java_parse): New function.
6333 (push_variable): Add "struct parser_state" argument. Adjust
6334 code to user parser state.
6335 (push_fieldnames, push_qualified_expression_name,
6336 push_expression_name, insert_exp): Likewise.
6337 * jv-lang.h: Forward declare "struct parser_state".
6338 (java_parse): Add "struct parser_state" argument.
6339 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6340 parser state.
6341 (yyparse): Redefine macro to m2_parse_internal.
6342 (pstate): New variable.
6343 (type_exp, exp, fblock, variable, type): Update calls to
6344 write_exp* and similars to use parser state.
6345 (yylex): Likewise.
6346 (m2_parse): New function.
6347 * m2-lang.h: Forward declare "struct parser_state".
6348 (m2_parse): Add "struct parser_state" argument.
6349 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6350 * objc-lang.h: Forward declare "struct parser_state".
6351 (end_msglist): Add "struct parser_state" argument.
6352 * p-exp.y (parse_type): Rewrite macro to use parser state.
6353 (yyparse): Redefine macro to pascal_parse_internal.
6354 (pstate): New variable.
6355 (parse_number): Add "struct parser_state" argument.
6356 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6357 write_exp* and similars in order to use parser state.
6358 (parse_number, yylex): Adjust code to use parser state.
6359 (pascal_parse): New function.
6360 * p-lang.h: Forward declare "struct parser_state".
6361 (pascal_parse): Add "struct parser_state" argument.
6362 * go-exp.y (parse_type): Rewrite macro to use parser state.
6363 (yyparse): Redefine macro to go_parse_internal.
6364 (pstate): New variable.
6365 (parse_number): Add "struct parser_state" argument.
6366 (type_exp, exp1, exp, variable, type): Update calls to
6367 write_exp* and similars in order to use parser state.
6368 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6369 to use parser state.
6370 (go_parse): Likewise.
6371 * go-lang.h: Forward declare "struct parser_state".
6372 (go_parse): Add "struct parser_state" argument.
6373
342587c4
DE
63742014-03-27 Doug Evans <dje@google.com>
6375
6376 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6377
33e80786
DE
63782014-03-27 Doug Evans <dje@google.com>
6379
6380 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6381 Remove argument abbrev_section. All callers updated.
6382
1dbab08b
DE
63832014-03-27 Doug Evans <dje@google.com>
6384
6385 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6386 addr_base, ranges_base.
6387
318d3177
KS
63882014-03-26 Keith Seitz <keiths@redhat.com>
6389
6390 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6391 types, not VAR_DOMAIN.
6392
1e54db15
SL
63932014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6394
6395 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6396 "ra" registers.
6397 * features/nios2-linux.c: Regenerated.
6398 * features/nios2.c: Regenerated.
6399
d3839ede
PA
64002014-03-25 Pedro Alves <palves@redhat.com>
6401
6402 * cli/cli-script.c (script_from_file): Force the interpreter to
6403 sync mode.
6404
7588d2ec
PL
64052014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6406
6407 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6408 small stack allocation.
6409
a6290449
TG
64102014-03-24 Tristan Gingold <gingold@adacore.com>
6411
6412 * darwin-nat.c (exc_server): Remove unused prototype.
6413 (darwin_dump_message): Correctly display data on x86_64.
6414 (darwin_encode_reply): Fix style.
6415 Add comments and fix indentation.
6416
31ae9d24 64172014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6418
6419 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6420
6339bfc4
DE
64212014-03-22 Doug Evans <xdje42@gmail.com>
6422
6423 * infcmd.c: Whitespace fixes.
6424 (interrupt_command): Merge two function comments into one.
6425
0a07590b
DE
64262014-03-22 Doug Evans <xdje42@gmail.com>
6427
6428 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6429 All uses updated.
6430
b55fbac4
YQ
64312014-03-22 Yao Qi <yao@codesourcery.com>
6432
6433 * remote.c (target_read_live_memory): Remove.
6434 (memory_xfer_live_readonly_partial): Rename it to
6435 remote_xfer_live_readonly_partial. Remove argument 'object'.
6436 All callers updated. Call remote_read_bytes_1
6437 instead of target_read_live_memory.
6438 * tracepoint.c (set_traceframe_number): Remove.
6439 (make_cleanup_restore_traceframe_number): Likewise .
6440 * tracepoint.h (set_traceframe_number): Remove declaration.
6441 (make_cleanup_restore_traceframe_number): Likewise.
6442
9217e74e
YQ
64432014-03-22 Yao Qi <yao@codesourcery.com>
6444
6445 * remote.c (remote_read_bytes): Move code on reading from the
6446 remote stub to ...
6447 (remote_read_bytes_1): ... here. New function.
6448
8acf9577
YQ
64492014-03-22 Yao Qi <yao@codesourcery.com>
6450
6451 * ctf.c (ctf_xfer_partial): Check the return value of
6452 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6453 return TARGET_XFER_UNAVAILABLE.
6454 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6455 * target.c (target_read_live_memory): Move it to remote.c.
6456 (memory_xfer_live_readonly_partial): Likewise.
6457 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6458 * remote.c (target_read_live_memory): Moved from target.c.
6459 (memory_xfer_live_readonly_partial): Likewise.
6460 (remote_read_bytes): Factored out from
6461 memory_xfer_partial_1.
6462
feef67ab
DE
64632014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6464
6465 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6466 NULL pointer.
6467
b65dc60b
PA
64682014-03-21 Pedro Alves <palves@redhat.com>
6469
6470 * infrun.c (normal_stop): Extend comment.
6471
b4ab256d
HZ
64722014-03-21 Hui Zhu <hui@codesourcery.com>
6473 Pedro Alves <palves@redhat.com>
6474
6475 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6476 static buffer.
6477 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6478 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6479 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6480
deba7593
MR
64812014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6482
6483 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6484 `z' formatted output modifier.
6485
1bff71c3
SDJ
64862014-03-20 Tom Tromey <tromey@redhat.com>
6487 Sergio Durigan Junior <sergiodj@redhat.com>
6488
6489 * probe.c (parse_probes): Turn assert into an ordinary error.
6490 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6491 exceptions when parsing probes. Rearrange the code for clarity.
6492
90e28950
TT
64932014-03-20 Tom Tromey <tromey@redhat.com>
6494
6495 PR gdb/14135
6496 * top.c (execute_command): Only dispatch events if the command
6497 started the target.
6498
beb460e8
PA
64992014-03-20 Tom Tromey <tromey@redhat.com>
6500
6501 PR cli/15718
6502 * infcall.c: Include event-top.h.
6503 (run_inferior_call): Call async_disable_stdin if needed.
6504
99619bea
PA
65052014-03-20 Pedro Alves <palves@redhat.com>
6506
6507 * infrun.c (prepare_to_proceed): Delete.
6508 (thread_still_needs_step_over): New function.
6509 (find_thread_needs_step_over): New function.
6510 (proceed): If the current thread needs a step-over, set its
6511 steping_over_breakpoint flag. Adjust to use
6512 find_thread_needs_step_over instead of prepare_to_proceed.
6513 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6514 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6515 breakpoint.
6516 (switch_back_to_stepped_thread): Step over breakpoints of all
6517 threads not the stepping thread, before switching back to the
6518 stepping thread.
6519
2adfaa28
PA
65202014-03-20 Pedro Alves <palves@redhat.com>
6521
6522 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6523 extern.
6524 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6525 * infrun.c (saved_singlestep_ptid)
6526 (stepping_past_singlestep_breakpoint): Delete.
6527 (resume): Remove stepping_past_singlestep_breakpoint handling.
6528 (proceed): Store the prev_pc of the stepping thread too.
6529 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6530 singlestep_pc.
6531 (enum infwait_states): Delete infwait_thread_hop_state.
6532 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6533 field.
6534 (handle_inferior_event): Adjust.
6535 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6536 handling and the thread-hop code. Before removing single-step
6537 breakpoints, check whether the thread hit a single-step breakpoint
6538 of another thread. If it did, the trap is not a random signal.
6539 (switch_back_to_stepped_thread): If the event thread hit a
6540 single-step breakpoint, unblock it before switching to the
6541 stepping thread. Handle the case of the stepped thread having
6542 advanced already.
6543 (keep_going): Handle the case of the current thread moving past a
6544 single-step breakpoint.
6545
31e77af2
PA
65462014-03-20 Pedro Alves <palves@redhat.com>
6547
6548 PR breakpoints/7143
6549 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6550 are being stepped over.
6551 (breakpoint_address_match): Make extern.
6552 * breakpoint.h (breakpoint_address_match): New declaration.
6553 * inferior.h (stepping_past_instruction_at): New declaration.
6554 * infrun.c (struct step_over_info): New type.
6555 (step_over_info): New global.
6556 (set_step_over_info, clear_step_over_info)
6557 (stepping_past_instruction_at): New functions.
6558 (handle_inferior_event): Clear the step-over info when
6559 trap_expected is cleared.
6560 (resume): Remove now stale comment.
6561 (clear_proceed_status): Clear step-over info.
6562 (proceed): Adjust step-over handling to set or clear the step-over
6563 info instead of removing all breakpoints.
6564 (handle_signal_stop): When setting up a thread-hop, don't remove
6565 breakpoints here.
6566 (stop_stepping): Clear step-over info.
6567 (keep_going): Adjust step-over handling to set or clear step-over
6568 info and then always inserting breakpoints, instead of removing
6569 all breakpoints when stepping over one.
6570
b9f437de
PA
65712014-03-20 Pedro Alves <palves@redhat.com>
6572
6573 * infrun.c (previous_inferior_ptid): Adjust comment.
6574 (deferred_step_ptid): Delete.
6575 (infrun_thread_ptid_changed, prepare_to_proceed)
6576 (init_wait_for_inferior): Adjust.
6577 (handle_signal_stop): Delete deferred_step_ptid handling.
6578
06c868a8
JK
65792014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6580
6581 PR gdb/15358
6582 * defs.h (sync_quit_force_run): New declaration.
6583 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6584 * event-top.c (async_sigterm_handler): New declaration.
6585 (async_sigterm_token): New variable.
6586 (async_init_signals): Create also async_sigterm_token.
6587 (async_sigterm_handler): New function.
6588 (sync_quit_force_run): New variable.
6589 (handle_sigterm): Replace quit_force call by other calls.
6590 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6591
dea80df0
MR
65922014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6593
6594 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6595 offset into SPE pseudo registers.
6596
0c7e1a46
PA
65972014-03-18 Pedro Alves <palves@redhat.com>
6598
6599 PR gdb/13860
6600 * inferior.h (print_stop_event): Declare.
6601 * infrun.c (print_stop_event): New, factored out from ...
6602 (normal_stop): ... this.
6603 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6604 of bpstat_print/print_stack_frame.
6605
9c1fcd01
TT
66062014-03-17 Tom Tromey <tromey@redhat.com>
6607
6608 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6609
11aa919a
PMR
66102014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6611
6612 * ada-lang.c (decode_constrained_packed_array): Perform a
6613 minimal coercion for reference with coerce_ref instead of
6614 ada_coerce_ref.
6615
d4ccb5e0
TG
66162014-03-17 Tristan Gingold <gingold@adacore.com>
6617
6618 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6619 (darwin_solib_create_inferior_hook): Emit a warning if version
6620 is unhandled.
6621
49840f2a
UW
66222014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6623
6624 * python/py-value.c (get_field_flag): Cast flag_name argument to
6625 PyObject_GetAttrString to support Python 2.4.
6626
ed4123e5
JK
66272014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6628
6629 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6630 (Global Maintainers): Remove Jan Kratochvil.
6631
d6b64346
PA
66322014-03-14 Pedro Alves <palves@redhat.com>
6633
6634 * inferior.h (terminal_ours_for_output): Rename to ...
6635 (child_terminal_ours_for_output): ... this.
6636 (terminal_save_ours): Rename to ...
6637 (child_terminal_save_ours): ... this.
6638 (terminal_ours): Rename to ...
6639 (child_terminal_ours): ... this.
6640 (terminal_inferior): Rename to ...
6641 (child_terminal_inferior): ... this.
6642 (terminal_init_inferior): Rename to ...
6643 (child_terminal_init_inferior): ... this.
6644 (terminal_init_inferior_with_pgrp): Rename to ...
6645 (child_terminal_init_inferior_with_pgrp): ... this.
6646 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6647 (child_terminal_init_with_pgrp): ... this.
6648 (terminal_save_ours): Rename to ...
6649 (child_terminal_save_ours): ... this.
6650 (terminal_init_inferior): Rename to ...
6651 (child_terminal_init): ... this. Adjust.
6652 (terminal_inferior): Rename to ...
6653 (child_terminal_inferior): ... this.
6654 (terminal_ours_for_output): Rename to ...
6655 (child_terminal_ours_for_output): ... this. Adjust.
6656 (terminal_ours): Rename to ...
6657 (child_terminal_ours): ... this.
6658 (terminal_ours_1): Rename to ...
6659 (child_terminal_ours_1): ... this. Adjust.
6660 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6661 * windows-nat.c (do_initial_windows_stuff): Adjust.
6662 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6663 (gnu_terminal_init): ... this. Adjust.
6664 (gnu_target): Adjust.
6665 * inf-child.c (inf_child_target): Adjust.
6666
5a1e8c7a
DE
66672014-03-13 Doug Evans <xdje42@gmail.com>
6668
6669 PR guile/16612
6670 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6671 new eq?-hashtab.
6672
350e1a76
DE
66732014-03-13 Doug Evans <xdje42@gmail.com>
6674
6675 * value.c (record_latest_value): Call release_value_or_incref
6676 instead of release_value.
6677
a69900ae
PA
66782014-03-13 Pedro Alves <palves@redhat.com>
6679
6680 * procfs.c (procfs_target): Don't override to_shortname,
6681 to_longname or to_doc.
6682
5db9f0bd
PA
66832014-03-13 Pedro Alves <palves@redhat.com>
6684
6685 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6686 Unix in user visible strings.
6687
5e3a2c38
SS
66882014-03-12 Stan Shebs <stan@codesourcery.com>
6689
6690 * gdbtypes.h: Annotate comments for Doxygen, add a page
6691 block comment with some general info.
6692
8bc2fe48
PA
66932014-03-12 Pedro Alves <palves@redhat.com>
6694
6695 * infcmd.c (prepare_execution_command): New function, factored out
6696 from several execution commands.
6697 (run_command_1, continue_command, step_1, jump_command)
6698 (signal_command, until_command, advance_command, finish_command)
6699 (attach_command): Use prepare_execution_command.
6700
638c5f49
OJ
67012014-03-12 Omair Javaid <omair.javaid@linaro.org>
6702
6703 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6704 (MAX_BPTS): Define.
6705 (MAX_WPTS): Define.
6706 (struct arm_linux_thread_points): Removed.
6707 (struct arm_linux_process_info): New.
6708 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6709 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6710 (arm_linux_find_breakpoints_by_tid): Removed.
6711 (struct arch_lwp_info): New.
6712 (arm_linux_find_process_pid): New functions.
6713 (arm_linux_add_process): New functions.
6714 (arm_linux_process_info_get): New functions.
6715 (arm_linux_forget_process): New function.
6716 (arm_linux_get_debug_reg_state): New function.
6717 (struct update_registers_data): New.
6718 (update_registers_callback): New function.
6719 (arm_linux_insert_hw_breakpoint1): Updated.
6720 (arm_linux_remove_hw_breakpoint1): Updated.
6721 (arm_linux_insert_hw_breakpoint): Updated.
6722 (arm_linux_remove_hw_breakpoint): Updated.
6723 (arm_linux_insert_watchpoint): Updated.
6724 (arm_linux_remove_watchpoint): Updated.
6725 (arm_linux_new_thread): Updated.
6726 (arm_linux_prepare_to_resume): New function.
6727 (arm_linux_new_fork): New function.
6728 (_initialize_arm_linux_nat): Updated.
6729
6d03af93
PA
67302014-03-12 Pedro Alves <palves@redhat.com>
6731
6732 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6733
b3ccfe11
TT
67342014-03-12 Tom Tromey <tromey@redhat.com>
6735
6736 * inf-child.c (return_zero): New function.
6737 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6738 * aix-thread.c (aix_thread_inferior_created): New function.
6739 (aix_thread_attach): Remove.
6740 (init_aix_thread_ops): Don't set to_attach.
6741 (_initialize_aix_thread): Register inferior_created observer.
6742 * corelow.c (init_core_ops): Don't set to_attach or
6743 to_create_inferior.
6744 * exec.c (init_exec_ops): Don't set to_attach or
6745 to_create_inferior.
6746 * infcmd.c (run_command_1): Use find_run_target. Make direct
6747 target calls.
6748 (attach_command): Use find_attach_target. Make direct target
6749 calls.
6750 * record-btrace.c (init_record_btrace_ops): Don't set
6751 to_create_inferior.
6752 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6753 Remove.
6754 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6755 set to_create_inferior.
6756 * target.c (complete_target_initialization): Add assertion.
6757 (target_create_inferior): Remove.
6758 (find_default_attach, find_default_create_inferior): Remove.
6759 (find_attach_target, find_run_target): New functions.
6760 (find_default_is_async_p, find_default_can_async_p)
6761 (target_supports_non_stop, target_attach): Remove.
6762 (init_dummy_target): Don't set to_create_inferior or
6763 to_supports_non_stop.
6764 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6765 TARGET_DEFAULT_FUNC.
6766 <to_create_inferior>: Add comment.
6767 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6768 TARGET_DEFAULT_RETURN.
6769 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6770 (find_attach_target, find_run_target): Declare.
6771 (target_create_inferior): Remove.
6772 (target_has_execution_1): Update comment.
6773 (target_supports_non_stop): Remove.
6774 * target-delegates.c: Rebuild.
6775
91f83b02
PA
67762014-03-12 Pedro Alves <palves@redhat.com>
6777
6778 * inf-child.h: Update comment to not mention Unix.
6779
f1aea813
PA
67802014-03-12 Pedro Alves <palves@redhat.com>
6781
6782 * inf-child.c: Update top comment to not mention Unix. Add
6783 generic comment describing how this target is meant to be used.
6784 (inf_child_post_attach, inf_child_post_startup_inferior)
6785 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6786 Unix in comment.
6787
ee8e9165
PA
67882014-03-12 Pedro Alves <palves@redhat.com>
6789
6790 * nto-procfs.c: Include inf-child.h.
6791 (procfs_ops): Delete global.
6792 (procfs_can_run): Delete method.
6793 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6794 target pointer instead of referencing procfs_ops.
6795 (procfs_prepare_to_store): Delete.
6796 (init_procfs_ops): Delete function.
6797 (procfs_target): New function, based on init_procfs_ops, but
6798 inherit inf_child_target.
6799 (_initialize_procfs): Use procfs_target.
6800
51a9c8c5
PA
68012014-03-12 Pedro Alves <palves@redhat.com>
6802
6803 * windows-nat.c: Include inf-child.h.
6804 (windows_ops): Delete global.
6805 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6806 methods.
6807 (init_windows_ops): Delete function.
6808 (windows_target): New function, based on init_windows_ops, but
6809 inherit inf_child_target.
6810 (_initialize_windows_nat): Use windows_target. Install x86
6811 specific target methods here.
6812
c1966e26
DE
68132014-03-10 Doug Evans <xdje42@gmail.com>
6814
6815 * guile/guile.c (call_initialize_gdb_module): New function.
6816 (initialize_guile): Replace call to scm_init_guile with call to
6817 scm_with_guile.
6818
023db19c
JB
68192014-03-10 Joel Brobecker <brobecker@adacore.com>
6820
6821 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6822 in call to TYPE_CODE macro.
6823
5ec18f2b
JG
68242014-03-10 Jerome Guitton <guitton@adacore.com>
6825
8668be63
JB
6826 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6827 Resolve tagged types to full view.
5ec18f2b 6828
7d03f2eb
HZ
68292014-03-10 Hui Zhu <hui@codesourcery.com>
6830
6831 * target.h (target_insert_breakpoint): Remove "hardware" from its
6832 comments.
6833
c5164cbc
DE
68342014-03-07 Doug Evans <dje@google.com>
6835
6836 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6837
c4a3fee2
DE
68382014-03-07 Doug Evans <dje@google.com>
6839
6840 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6841 Remove unused local comp_dir_attr. Assert exactly one of
6842 stub_comp_unit_die, stub_comp_dir is non-NULL.
6843
3156469c
JB
68442014-03-07 Joel Brobecker <brobecker@adacore.com>
6845
6846 * target.h (complete_target_initialization, add_target):
6847 Add comment.
6848
c1a7b7c6
PA
68492014-03-07 Pedro Alves <palves@redhat.com>
6850
6851 * go32-nat.c: Include inf-child.h.
6852 (go32_ops): Delete global.
6853 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6854 Delete methods.
6855 (go32_create_inferior): Push the passed in target pointer instead
6856 of referencing go32_ops.
6857 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6858 (go32_target): New function, based on init_go32_ops, but inherit
6859 inf_child_target.
6860 (_initialize_go32_nat): Use go32_target. Move parts of
6861 init_go32_ops here.
6862
d3c1a85f
JB
68632014-03-06 Joel Brobecker <brobecker@adacore.com>
6864
6865 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6866 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6867 SYMBOL_VALUE_ADDRESS.
6868 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6869
5fa1d40e
YQ
68702014-03-06 Yao Qi <yao@codesourcery.com>
6871
6872 * breakpoint.c (get_tracepoint_by_number): Remove argument
6873 optional_p. All callers updated. Adjust comments. Update
6874 output message.
6875 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6876
0c13193f
YQ
68772014-03-06 Yao Qi <yao@codesourcery.com>
6878
6879 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6880 early if get_number returns zero. Use 'p' instead of 'args'.
6881
2217da06
YQ
68822014-03-06 Yao Qi <yao@codesourcery.com>
6883
6884 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6885 message.
6886
cc3da688
YQ
68872014-03-06 Yao Qi <yao@codesourcery.com>
6888
6889 PR breakpoints/16508
6890 * tracepoint.c (check_trace_running): New function.
6891 (trace_find_command): Move code to check_trace_running and
6892 call check_trace_running.
6893 (trace_find_pc_command): Likewise.
6894 (trace_find_tracepoint_command): Likewise.
6895 (trace_find_line_command): Likewise.
6896 (trace_find_range_command): Likewise.
6897 * tracepoint.h (check_trace_running): Likewise.
6898 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6899
6a5f844b
YQ
69002014-03-06 Yao Qi <yao@codesourcery.com>
6901
6902 * target.h (struct target_ops) <to_traceframe_info>: Use
6903 TARGET_DEFAULT_NORETURN (tcomplain ()).
6904 * target-delegates.c: Regenerated.
6905
0f26cec1
PA
69062014-03-05 Pedro Alves <palves@redhat.com>
6907
6908 PR gdb/16575
6909 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6910 void. Update comment.
6911 (dcache_xfer_memory): Delete.
6912 (dcache_read_memory_partial): New, based on the read bits of
6913 dcache_xfer_memory.
6914 (dcache_update): Add status parameter. Use ULONGEST for len, and
6915 adjust. Discard cache lines if the reason for the update was
6916 error.
6917 * dcache.h (dcache_xfer_memory): Delete declaration.
6918 (dcache_read_memory_partial): New declaration.
6919 (dcache_update): Update prototype.
6920 * target.c (raw_memory_xfer_partial): Update the dcache here.
6921 (memory_xfer_partial_1): Don't handle dcache writes here.
6922
b2b255bd
MF
69232014-03-05 Mike Frysinger <vapier@gentoo.org>
6924
6925 * remote-sim.c (gdbsim_load): Add const to prog.
6926
5d9cf8a4
TT
69272014-03-03 Tom Tromey <tromey@redhat.com>
6928
6929 * elfread.c (probe_key): Change to bfd_data.
6930 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6931 now per-BFD, not per-objfile.
6932 * stap-probe.c (stap_probe_destroy): Update comment.
6933 (handle_stap_probe): Allocate on the per-BFD obstack.
6934
729662a5
TT
69352014-03-03 Tom Tromey <tromey@redhat.com>
6936
6937 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6938 * breakpoint.c (create_longjmp_master_breakpoint): Use
6939 get_probe_address.
6940 (add_location_to_breakpoint, bkpt_probe_insert_location)
6941 (bkpt_probe_remove_location): Update.
6942 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6943 * elfread.c (elf_symfile_relocate_probe): Remove.
6944 (elf_probe_fns): Update.
6945 (insert_exception_resume_breakpoint): Change type of "probe"
6946 parameter to bound_probe.
6947 (check_exception_resume): Update.
6948 * objfiles.c (objfile_relocate1): Don't relocate probes.
6949 * probe.c (bound_probe_s): New typedef.
6950 (parse_probes): Use get_probe_address. Set sal's objfile.
6951 (find_probe_by_pc): Return a bound_probe.
6952 (collect_probes): Return a VEC(bound_probe_s).
6953 (compare_probes): Update.
6954 (gen_ui_out_table_header_info): Change type of "probes"
6955 parameter. Update.
6956 (info_probes_for_ops): Update.
6957 (get_probe_address): New function.
6958 (probe_safe_evaluate_at_pc): Update.
6959 * probe.h (struct probe_ops) <get_probe_address>: New field.
6960 <set_semaphore, clear_semaphore>: Add objfile parameter.
6961 (struct probe) <objfile>: Remove field.
6962 <arch>: New field.
6963 <address>: Update comment.
6964 (struct bound_probe): New.
6965 (find_probe_by_pc): Return a bound_probe.
6966 (get_probe_address): Declare.
6967 * solib-svr4.c (struct probe_and_action) <address>: New field.
6968 (hash_probe_and_action, equal_probe_and_action): Update.
6969 (register_solib_event_probe): Add address parameter.
6970 (solib_event_probe_at): Update.
6971 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6972 get_probe_address.
6973 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6974 (stap_get_probe_address): New function.
6975 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6976 (compile_probe_arg): Update.
6977 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6978 address.
6979 (handle_stap_probe): Don't relocate the probe.
6980 (stap_relocate): Remove.
6981 (stap_gen_info_probes_table_values): Update.
6982 (stap_probe_ops): Remove stap_relocate.
6983 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6984 (debug_sym_probe_fns): Update.
6985 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6986 * symtab.c (init_sal): Use memset.
6987 * symtab.h (struct symtab_and_line) <objfile>: New field.
6988 * tracepoint.c (start_tracing, stop_tracing): Update.
6989
ff887920
TT
69902014-03-03 Tom Tromey <tromey@redhat.com>
6991
6992 * probe.h (parse_probes, find_probe_by_pc)
6993 (find_probes_in_objfile): Fix comments.
6994
f0407826
DE
69952014-03-02 Doug Evans <xdje42@gmail.com>
6996
6997 * infrun.c (handle_signal_stop): Replace test for
6998 TARGET_WAITKIND_STOPPED with an assert.
6999
35e6a711
DE
70002014-03-02 Doug Evans <xdje42@gmail.com>
7001
7002 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7003
667f9d0b
DE
70042014-03-02 Doug Evans <xdje42@gmail.com>
7005
7006 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7007
dc92ace0
MK
70082014-03-01 Mark Kettenis <kettenis@gnu.org>
7009
7010 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7011
a900370f
MK
70122014-03-01 Mark Kettenis <kettenis@gnu.org>
7013
7014 * i386obsd-nat.c: Include "obsd-nat.h".
7015 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7016 add_target.
7017 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7018
b72a7981
MK
70192014-03-01 Mark Kettenis <kettenis@gnu.org>
7020
7021 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7022
96c70aba
MK
70232014-03-01 Mark Kettenis <kettenis@gnu.org>
7024
7025 * mips64obsd-nat.c: Include "obsd-nath".
7026 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7027 add_target
7028 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7029
874a80af
MK
70302014-03-01 Mark Kettenis <kettenis@gnu.org>
7031
8fd408f1
MK
7032 * amd64obsd-nat.c: Include "obsd-nat,h.
7033 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7034 add_target.
874a80af
MK
7035 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7036
9cf95373
SC
70372014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7038
7039 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7040 (find_overload_match): Update call to find_oload_champ.
7041 (find_oload_champ_namespace_loop): Likewise
7042
863e4da4
MK
70432014-02-28 Mark Kettenis <kettenis@gnu.org>
7044
025cac40
MK
7045 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7046
1ed586ce
MK
7047 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7048 * config/sparc/obsd64.mh: New file.
7049 * sparc64obsd-nat.c: New file.
7050
863e4da4
MK
7051 * obsd-nat.h: New file.
7052 * obsd-nat.c: New file.
7053 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7054 (ALLDEPFILES): Add obsd-nat.c.
7055
89de4da4
TT
70562014-02-28 Tom Tromey <tromey@redhat.com>
7057
7058 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7059 * cli-out.h (cli_ui_out_impl): Now const.
7060 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7061 * ui-out.c (struct ui_out) <impl>: Now const.
7062 (default_ui_out_impl): Now const.
7063 (ui_out_new): Make 'impl' parameter const.
7064 * ui-out.h (ui_out_new): Update.
7065
c725e7b6
MK
70662014-02-27 Mark Kettenis <kettenis@gnu.org>
7067
7068 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7069
670b46b3
MK
70702014-02-27 Mark Kettenis <kettenis@gnu.org>
7071
7072 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7073
c91550fc
JK
70742014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7075
7076 Additional PR 8882 fix.
7077 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7078
2fa0369e
PA
70792014-02-27 Pedro Alves <palves@redhat.com>
7080
7081 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7082 isn't set.
7083
d632a097
PA
70842014-02-27 Pedro Alves <palves@redhat.com>
7085
7086 PR 12702
7087 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7088 * nat/linux-waitpid.c: Include string.h.
7089 (status_to_str): Moved here and made extern.
7090 * nat/linux-waitpid.h (status_to_str): New declaration.
7091
2ebd5a35
HZ
70922014-02-27 Hui Zhu <hui@codesourcery.com>
7093
7094 PR 12702
7095 * infrun.c (ptid_match): Move ...
7096 * common/ptid.c (ptid_match): ... here.
7097 * inferior.h (ptid_match): Move ...
7098 * common/ptid.h (ptid_match): ... here.
7099
3cdd631f
MK
71002014-02-27 Mark Kettenis <kettenis@gnu.org>
7101
7102 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7103 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7104 gdb_target_obs.
7105
bee30a64
MK
71062014-02-27 Mark Kettenis <kettenis@gnu.org>
7107
7108 * obsd-tdep.c (obsd_auxv_parse): New function.
7109 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7110
7111 * gdbarch.sh (auxv_parse): New.
7112 * gdbarch.h: Regenerated.
7113 * gdbarch.c: Regenerated.
7114 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7115
7a5a839f
LC
71162014-02-26 Ludovic Courtès <ludo@gnu.org>
7117
7118 * guile/scm-value.c (gdbscm_history_append_x): New function.
7119 (value_functions): Add it.
7120
31aa7e4e
JB
71212014-02-27 Joel Brobecker <brobecker@adacore.com>
7122
7123 * dwarf2read.c (attr_value_as_address): New function.
7124 (dwarf2_find_base_address, read_call_site_scope): Use
7125 attr_value_as_address in place of DW_ADDR.
7126 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7127 the low and high addresses. Slight rework of the handling
7128 of the high pc being a constant form, and limit it to
7129 DWARF verson 4 or higher.
7130 (dwarf2_record_block_ranges): Likewise.
7131 (read_partial_die): Likewise.
7132 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7133
9b333ba3
TT
71342014-02-26 Tom Tromey <tromey@redhat.com>
7135
7136 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7137
5f6cac40
TT
71382014-02-26 Tom Tromey <tromey@redhat.com>
7139
7140 * elfread.c (elf_read_minimal_symbols): Return early if
7141 minimal symbols have already been read. Add "ei" parameter.
7142 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7143 * minsyms.c (prim_record_minimal_symbol_full): Update.
7144 * objfiles.h (struct objstats) <n_minsyms>: Move...
7145 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7146 * symmisc.c (print_objfile_statistics): Update.
7147
2750ef27
TT
71482014-02-26 Tom Tromey <tromey@redhat.com>
7149
7150 * elfread.c (elf_read_minimal_symbols): New function, from
7151 elf_symfile_read.
7152 (elf_symfile_read): Call it.
7153
34643a32
TT
71542014-02-26 Tom Tromey <tromey@redhat.com>
7155
7156 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7157 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7158 (lookup_minimal_symbol_solib_trampoline)
7159 (lookup_minimal_symbol_by_pc_section_1)
7160 (lookup_minimal_symbol_and_objfile): Update.
7161 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7162 Don't allocate a minimal symbol if minsyms have already been read.
7163 (build_minimal_symbol_hash_tables): Update.
7164 (install_minimal_symbols): Do nothing if minsyms already read.
7165 Use the per-BFD obstack.
7166 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7167 * objfiles.c (allocate_objfile): Call
7168 terminate_minimal_symbol_table later.
7169 (have_minimal_symbols): Update.
7170 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7171 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7172 Move from struct objfile.
7173 <minsyms_read>: New field.
7174 (struct objfile) <msymbols, minimal_symbol_count,
7175 msymbol_hash, msymbol_demangled_hash>: Move.
7176 (ALL_OBJFILE_MSYMBOLS): Update.
7177 * symfile.c (read_symbols): Set minsyms_read.
7178 (reread_symbols): Update.
7179 * symmisc.c (dump_objfile, dump_msymbols): Update.
7180
2273f0ac
TT
71812014-02-26 Tom Tromey <tromey@redhat.com>
7182
7183 * minsyms.c (msymbols_sort): Remove.
7184 * minsyms.h (msymbols_sort): Remove.
7185 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7186 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7187 * elfread.c (elf_symtab_read): Don't add section offsets.
7188 * xcoffread.c (record_minimal_symbol): Don't add section offset
7189 to minimal symbol address.
7190 * somread.c (text_offset, data_offset): Remove.
7191 (som_symtab_read): Don't add section offsets to minimal symbol
7192 addresses.
7193 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7194 Don't add section offsets to minimal symbols.
7195 * coffread.c (coff_symtab_read): Don't add section offsets
7196 to minimal symbol addresses.
7197 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7198 to minimal symbol addresses.
7199 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7200 section offset to minimal symbol addresses.
7201 * mdebugread.c (parse_partial_symbols): Don't add section
7202 offset to minimal symbol addresses.
7203 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7204 offset to minimal symbol addresses.
7205
77e371c0
TT
72062014-02-26 Tom Tromey <tromey@redhat.com>
7207
7208 * ada-lang.c (ada_main_name): Update.
7209 (ada_add_standard_exceptions): Update.
7210 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7211 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7212 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7213 * auxv.c (ld_so_xfer_auxv): Update.
7214 * avr-tdep.c (avr_scan_prologue): Update.
7215 * ax-gdb.c (gen_var_ref): Update.
7216 * blockframe.c (get_pc_function_start)
7217 (find_pc_partial_function_gnu_ifunc): Update.
7218 * breakpoint.c (create_overlay_event_breakpoint)
7219 (create_longjmp_master_breakpoint)
7220 (create_std_terminate_master_breakpoint)
7221 (create_exception_master_breakpoint): Update.
7222 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7223 * c-valprint.c (c_val_print): Update.
7224 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7225 * common/agent.c (agent_look_up_symbols): Update.
7226 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7227 * dwarf2loc.c (call_site_to_target_addr): Update.
7228 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7229 * elfread.c (elf_gnu_ifunc_record_cache)
7230 (elf_gnu_ifunc_resolve_by_got): Update.
7231 * findvar.c (default_read_var_value): Update.
7232 * frame.c (inside_main_func): Update.
7233 * frv-tdep.c (frv_frame_this_id): Update.
7234 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7235 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7236 Update.
7237 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7238 (hppa_hpux_find_dummy_bpaddr): Update.
7239 * hppa-tdep.c (hppa_symbol_address): Update.
7240 * infcmd.c (until_next_command): Update.
7241 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7242 Update.
7243 * linespec.c (minsym_found, add_minsym): Update.
7244 * linux-nat.c (get_signo): Update.
7245 * linux-thread-db.c (inferior_has_bug): Update.
7246 * m32c-tdep.c (m32c_return_value)
7247 (m32c_m16c_address_to_pointer): Update.
7248 * m32r-tdep.c (m32r_frame_this_id): Update.
7249 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7250 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7251 * maint.c (maintenance_translate_address): Update.
7252 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7253 (frob_address): New function.
7254 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7255 frob_address. Rename parameter to "pc_in".
7256 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7257 addresses.
7258 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7259 Update.
7260 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7261 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7262 * objc-lang.c (find_objc_msgsend): Update.
7263 * objfiles.c (objfile_relocate1): Update.
7264 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7265 * p-valprint.c (pascal_val_print): Update.
7266 * parse.c (write_exp_msymbol): Update.
7267 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7268 (ppc_elfv2_skip_entrypoint): Update.
7269 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7270 * printcmd.c (build_address_symbolic, msym_info)
7271 (address_info): Update.
7272 * proc-service.c (ps_pglobal_lookup): Update.
7273 * psymtab.c (find_pc_sect_psymtab_closer)
7274 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7275 Change msymbol parameter to bound_minimal_symbol.
7276 * ravenscar-thread.c (get_running_thread_id): Update.
7277 * remote.c (remote_check_symbols): Update.
7278 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7279 address.
7280 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7281 * solib-dsbt.c (lm_base): Update.
7282 * solib-frv.c (lm_base, main_got): Update.
7283 * solib-irix.c (locate_base): Update.
7284 * solib-som.c (som_solib_create_inferior_hook)
7285 (link_map_start): Update.
7286 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7287 * solib-svr4.c (elf_locate_base, enable_break): Update.
7288 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7289 (flush_ea_cache): Update.
7290 * stabsread.c (define_symbol, scan_file_globals): Update.
7291 * stack.c (find_frame_funname): Update.
7292 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7293 (debug_qf_find_pc_sect_symtab): Update.
7294 * symfile.c (simple_read_overlay_table)
7295 (simple_overlay_update): Update.
7296 * symfile.h (struct quick_symbol_functions)
7297 <find_pc_sect_symtab>: Change type of msymbol to
7298 bound_minimal_symbol.
7299 * symmisc.c (dump_msymbols): Update.
7300 * symtab.c (find_pc_sect_symtab_via_partial)
7301 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7302 (search_symbols, print_msymbol_info): Update.
7303 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7304 (MSYMBOL_VALUE_ADDRESS): Redefine.
7305 (BMSYMBOL_VALUE_ADDRESS): New macro.
7306 * tracepoint.c (scope_info): Update.
7307 * tui/tui-disasm.c (tui_find_disassembly_address)
7308 (tui_get_begin_asm_address): Update.
7309 * valops.c (find_function_in_inferior): Update.
7310 * value.c (value_static_field, value_fn_field): Update.
7311
3b7344d5
TT
73122014-02-26 Tom Tromey <tromey@redhat.com>
7313
7314 * ada-lang.c (ada_update_initial_language): Update.
7315 (ada_main_name, ada_has_this_exception_support): Update.
7316 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7317 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7318 * arm-tdep.c (arm_skip_stub): Update.
7319 * auxv.c (ld_so_xfer_auxv): Update.
7320 * avr-tdep.c (avr_scan_prologue): Update.
7321 * ax-gdb.c (gen_var_ref): Update.
7322 * breakpoint.c (struct breakpoint_objfile_data)
7323 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7324 type to bound_minimal_symbol.
7325 (create_overlay_event_breakpoint)
7326 (create_longjmp_master_breakpoint)
7327 (create_std_terminate_master_breakpoint)
7328 (create_exception_master_breakpoint): Update.
7329 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7330 * c-exp.y (classify_name): Update.
7331 * coffread.c (coff_symfile_read): Update.
7332 * common/agent.c (agent_look_up_symbols): Update.
7333 * d-lang.c (d_main_name): Update.
7334 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7335 * dec-thread.c (enable_dec_thread): Update.
7336 * dwarf2loc.c (call_site_to_target_addr): Update.
7337 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7338 * eval.c (evaluate_subexp_standard): Update.
7339 * findvar.c (struct minsym_lookup_data) <result>: Change type
7340 to bound_minimal_symbol.
7341 <objfile>: Remove.
7342 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7343 * frame.c (inside_main_func): Update.
7344 * frv-tdep.c (frv_frame_this_id): Update.
7345 * gcore.c (call_target_sbrk): Update.
7346 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7347 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7348 Update.
7349 * go-lang.c (go_main_name): Update.
7350 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7351 (hppa_hpux_find_import_stub_for_addr): Update.
7352 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7353 Update. Change return type.
7354 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7355 type.
7356 * jit.c (jit_breakpoint_re_set_internal): Update.
7357 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7358 Update.
7359 * linux-nat.c (get_signo): Update.
7360 * linux-thread-db.c (inferior_has_bug): Update
7361 * m32c-tdep.c (m32c_return_value)
7362 (m32c_m16c_address_to_pointer): Update.
7363 * m32r-tdep.c (m32r_frame_this_id): Update.
7364 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7365 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7366 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7367 lookup_minimal_symbol. Change return type.
7368 (lookup_minimal_symbol): Remove.
7369 (lookup_bound_minimal_symbol): Update.
7370 (lookup_minimal_symbol_text): Change return type.
7371 (lookup_minimal_symbol_solib_trampoline): Change return type.
7372 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7373 (lookup_minimal_symbol_solib_trampoline): Change return type.
7374 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7375 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7376 (value_nsstring, find_imps): Update.
7377 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7378 * p-lang.c (pascal_main_name): Update.
7379 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7380 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7381 * proc-service.c (ps_pglobal_lookup): Update.
7382 * ravenscar-thread.c (get_running_thread_msymbol): Change
7383 return type.
7384 (has_ravenscar_runtime, get_running_thread_id): Update.
7385 * remote.c (remote_check_symbols): Update.
7386 * sol-thread.c (ps_pglobal_lookup): Update.
7387 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7388 * solib-dsbt.c (lm_base): Update.
7389 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7390 Update.
7391 * solib-irix.c (locate_base): Update.
7392 * solib-som.c (som_solib_create_inferior_hook)
7393 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7394 Update.
7395 * solib-spu.c (spu_enable_break): Update.
7396 * solib-svr4.c (elf_locate_base, enable_break): Update.
7397 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7398 (flush_ea_cache): Update.
7399 * stabsread.c (define_symbol): Update.
7400 * symfile.c (simple_read_overlay_table): Update.
7401 * symtab.c (find_pc_sect_line): Update.
7402 * tracepoint.c (scope_info): Update.
7403 * tui-disasm.c (tui_get_begin_asm_address): Update.
7404 * value.c (value_static_field): Update.
7405
40c1a007
TT
74062014-02-26 Tom Tromey <tromey@redhat.com>
7407
7408 * minsyms.c (prim_record_minimal_symbol_full): Use
7409 SET_MSYMBOL_VALUE_ADDRESS.
7410 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7411 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7412 SET_MSYMBOL_VALUE_ADDRESS.
7413 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7414 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7415
efd66ac6
TT
74162014-02-26 Tom Tromey <tromey@redhat.com>
7417
7418 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7419 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7420 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7421 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7422 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7423 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7424 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7425 * ada-lang.c (ada_main_name): Update.
7426 (ada_lookup_simple_minsym): Update.
7427 (ada_make_symbol_completion_list): Update.
7428 (ada_add_standard_exceptions): Update.
7429 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7430 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7431 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7432 * arm-tdep.c (skip_prologue_function): Update.
7433 (arm_skip_stack_protector, arm_skip_stub): Update.
7434 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7435 (arm_wince_skip_main_prologue): Update.
7436 * auxv.c (ld_so_xfer_auxv): Update.
7437 * avr-tdep.c (avr_scan_prologue): Update.
7438 * ax-gdb.c (gen_var_ref): Update.
7439 * block.c (call_site_for_pc): Update.
7440 * blockframe.c (get_pc_function_start): Update.
7441 (find_pc_partial_function_gnu_ifunc): Update.
7442 * breakpoint.c (create_overlay_event_breakpoint): Update.
7443 (create_longjmp_master_breakpoint): Update.
7444 (create_std_terminate_master_breakpoint): Update.
7445 (create_exception_master_breakpoint): Update.
7446 (resolve_sal_pc): Update.
7447 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7448 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7449 Update.
7450 * c-valprint.c (c_val_print): Update.
7451 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7452 * coffread.c (coff_symfile_read): Update.
7453 * common/agent.c (agent_look_up_symbols): Update.
7454 * dbxread.c (find_stab_function_addr): Update.
7455 (end_psymtab): Update.
7456 * dwarf2loc.c (call_site_to_target_addr): Update.
7457 (func_verify_no_selftailcall): Update.
7458 (tailcall_dump): Update.
7459 (call_site_find_chain_1): Update.
7460 (dwarf_expr_reg_to_entry_parameter): Update.
7461 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7462 (elf_gnu_ifunc_resolve_by_got): Update.
7463 * f-valprint.c (info_common_command): Update.
7464 * findvar.c (read_var_value): Update.
7465 * frame.c (get_prev_frame_1): Update.
7466 (inside_main_func): Update.
7467 * frv-tdep.c (frv_skip_main_prologue): Update.
7468 (frv_frame_this_id): Update.
7469 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7470 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7471 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7472 (gnuv3_skip_trampoline): Update.
7473 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7474 (hppa64_hpux_in_solib_call_trampoline): Update.
7475 (hppa_hpux_skip_trampoline_code): Update.
7476 (hppa64_hpux_search_dummy_call_sequence): Update.
7477 (hppa_hpux_find_import_stub_for_addr): Update.
7478 (hppa_hpux_find_dummy_bpaddr): Update.
7479 * hppa-tdep.c (hppa_symbol_address)
7480 (hppa_lookup_stub_minimal_symbol): Update.
7481 * i386-tdep.c (i386_skip_main_prologue): Update.
7482 (i386_pe_skip_trampoline_code): Update.
7483 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7484 * infcall.c (get_function_name): Update.
7485 * infcmd.c (until_next_command): Update.
7486 * jit.c (jit_breakpoint_re_set_internal): Update.
7487 (jit_inferior_init): Update.
7488 * linespec.c (minsym_found): Update.
7489 (add_minsym): Update.
7490 * linux-fork.c (info_checkpoints_command): Update.
7491 * linux-nat.c (get_signo): Update.
7492 * linux-thread-db.c (inferior_has_bug): Update.
7493 * m32c-tdep.c (m32c_return_value): Update.
7494 (m32c_m16c_address_to_pointer): Update.
7495 (m32c_m16c_pointer_to_address): Update.
7496 * m32r-tdep.c (m32r_frame_this_id): Update.
7497 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7498 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7499 * maint.c (maintenance_translate_address): Update.
7500 * minsyms.c (add_minsym_to_hash_table): Update.
7501 (add_minsym_to_demangled_hash_table): Update.
7502 (msymbol_objfile): Update.
7503 (lookup_minimal_symbol): Update.
7504 (iterate_over_minimal_symbols): Update.
7505 (lookup_minimal_symbol_text): Update.
7506 (lookup_minimal_symbol_by_pc_name): Update.
7507 (lookup_minimal_symbol_solib_trampoline): Update.
7508 (lookup_minimal_symbol_by_pc_section_1): Update.
7509 (lookup_minimal_symbol_and_objfile): Update.
7510 (prim_record_minimal_symbol_full): Update.
7511 (compare_minimal_symbols): Update.
7512 (compact_minimal_symbols): Update.
7513 (build_minimal_symbol_hash_tables): Update.
7514 (install_minimal_symbols): Update.
7515 (terminate_minimal_symbol_table): Update.
7516 (find_solib_trampoline_target): Update.
7517 (minimal_symbol_upper_bound): Update.
7518 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7519 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7520 (mips_skip_pic_trampoline_code): Update.
7521 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7522 * objc-lang.c (selectors_info): Update.
7523 (classes_info): Update.
7524 (find_methods): Update.
7525 (find_imps): Update.
7526 (find_objc_msgsend): Update.
7527 * objfiles.c (objfile_relocate1): Update.
7528 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7529 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7530 * p-valprint.c (pascal_val_print): Update.
7531 * parse.c (write_exp_msymbol): Update.
7532 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7533 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7534 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7535 * printcmd.c (build_address_symbolic): Update.
7536 (sym_info): Update.
7537 (address_info): Update.
7538 * proc-service.c (ps_pglobal_lookup): Update.
7539 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7540 (find_pc_sect_psymtab): Update.
7541 * python/py-framefilter.c (py_print_frame): Update.
7542 * ravenscar-thread.c (get_running_thread_id): Update.
7543 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7544 Update.
7545 * remote.c (remote_check_symbols): Update.
7546 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7547 (rs6000_skip_trampoline_code): Update.
7548 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7549 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7550 * solib-dsbt.c (lm_base): Update.
7551 * solib-frv.c (lm_base): Update.
7552 (main_got): Update.
7553 * solib-irix.c (locate_base): Update.
7554 * solib-som.c (som_solib_create_inferior_hook): Update.
7555 (som_solib_desire_dynamic_linker_symbols): Update.
7556 (link_map_start): Update.
7557 * solib-spu.c (spu_enable_break): Update.
7558 (ocl_enable_break): Update.
7559 * solib-svr4.c (elf_locate_base): Update.
7560 (enable_break): Update.
7561 * spu-tdep.c (spu_get_overlay_table): Update.
7562 (spu_catch_start): Update.
7563 (flush_ea_cache): Update.
7564 * stabsread.c (define_symbol): Update.
7565 (scan_file_globals): Update.
7566 * stack.c (find_frame_funname): Update.
7567 (frame_info): Update.
7568 * symfile.c (simple_read_overlay_table): Update.
7569 (simple_overlay_update): Update.
7570 * symmisc.c (dump_msymbols): Update.
7571 * symtab.c (fixup_section): Update.
7572 (find_pc_sect_line): Update.
7573 (skip_prologue_sal): Update.
7574 (search_symbols): Update.
7575 (print_msymbol_info): Update.
7576 (rbreak_command): Update.
7577 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7578 (completion_list_objc_symbol): Update.
7579 (default_make_symbol_completion_list_break_on): Update.
7580 * tracepoint.c (scope_info): Update.
7581 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7582 (tui_get_begin_asm_address): Update.
7583 * valops.c (find_function_in_inferior): Update.
7584 * value.c (value_static_field): Update.
7585 (value_fn_field): Update.
7586
50e65b17
TT
75872014-02-26 Tom Tromey <tromey@redhat.com>
7588
7589 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7590 bound minimal symbols. Move code that knows about minsym
7591 table layout...
7592 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7593 function.
7594 * minsyms.h (minimal_symbol_upper_bound): Declare.
7595 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7596 minimal_symbol_upper_bound.
7597
1b588015
JB
75982014-02-27 Joel Brobecker <brobecker@adacore.com>
7599
7600 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7601 Use the type's name if its basic type does not have a tag.
7602
dbb9c2b1
JB
76032014-02-27 Joel Brobecker <brobecker@adacore.com>
7604
7605 * dwarf2read.c (read_subrange_type): Add comment.
7606
55426c9d
JB
76072014-02-27 Joel Brobecker <brobecker@adacore.com>
7608
7609 * dwarf2read.c (update_enumeration_type_from_children): New
7610 function, mostly extracted from process_structure_scope.
7611 (read_enumeration_type): Call update_enumeration_type_from_children.
7612 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7613 and flag_flag_enum fields.
7614
f2fce0ca
PA
76152014-02-26 Pedro Alves <palves@redhat.com>
7616
7617 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7618 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7619 to_xfer_partial method.
7620
7a44e40e
PA
76212014-02-26 Pedro Alves <palves@redhat.com>
7622
7623 * target.c (complete_target_initialization): Don't install
7624 default_xfer_partial as to_xfer_partial hook.
7625 (nomemory): Delete.
7626 (update_current_target): Don't INHERIT nor de_fault
7627 deprecated_xfer_memory. Delete de_fault macro.
7628 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7629 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7630 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7631 field.
7632
bd265cd0
PA
76332014-02-26 Pedro Alves <palves@redhat.com>
7634
7635 * go32-nat.c (my_write_child): New function.
7636 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7637 (go32_xfer_partial): New function.
7638 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7639 Instead install a to_xfer_partial hook.
7640
9d46c4e5
PA
76412014-02-26 Pedro Alves <palves@redhat.com>
7642
7643 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7644 to_xfer_partial helper. Rewrite.
7645 (procfs_xfer_partial): New function.
7646 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7647 Install a to_xfer_partial hook.
7648
a1583b1f
PA
76492014-02-26 Pedro Alves <palves@redhat.com>
7650
7651 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7652 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7653 (m32r_xfer_partial): New function.
7654 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7655 Install a to_xfer_partial hook.
7656
6df1b29f
PA
76572014-02-26 Pedro Alves <palves@redhat.com>
7658
7659 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7660 helper.
7661 (mips_xfer_partial): New function.
7662 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7663 hook. Install a to_xfer_partial hook.
7664
dc53a7ad
JB
76652014-02-26 Joel Brobecker <brobecker@adacore.com>
7666
7667 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7668 * gdbtypes.c (create_array_type_with_stride): New function,
7669 renaming create_array_type, but with an added parameter
7670 called "bit_stride".
7671 (create_array_type): Re-implement using
7672 create_array_type_with_stride.
7673 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7674 and DW_AT_bit_stride attributes.
7675
12ab52e9
PA
76762014-02-26 Pedro Alves <palves@redhat.com>
7677
7678 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7679 task-specific breakpoints.
7680
d16461ae
PA
76812014-02-25 Pedro Alves <palves@redhat.com>
7682
7683 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7684 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7685
a8b16220
SS
76862014-02-25 Stan Shebs <stan@codesourcery.com>
7687
7688 * defs.h: Annotate comments for Doxygen.
7689
b9e795ee
TT
76902014-02-25 Tom Tromey <tromey@redhat.com>
7691
7692 * target.h (target_ignore): Don't declare.
7693 * target.c (target_ignore): Remove.
7694
849c862e
JK
76952014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7696
7697 PR gdb/16626
7698 * auto-load.c (auto_load_objfile_script_1): Change filename to
7699 debugfile.
7700
475109d8
JB
77012014-02-25 Joel Brobecker <brobecker@adacore.com>
7702
7703 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7704 documentation. Adjust prototype to match the target_ops
7705 to_xfer_partial method. Adjust implementation accordingly.
7706
e186c3bd
HZ
77072014-02-25 Hui Zhu <hui@codesourcery.com>
7708
7709 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7710 to_traceframe_info.
7711
6d451942
KB
77122014-02-25 Kevin Buettner <kevinb@redhat.com>
7713
041ab8b4 7714 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7715 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7716 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7717 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7718 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7719 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7720 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7721 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7722 New constants.
7723 (rl78_register_type): Use a data pointer type for SP and
7724 new pseudo registers mentioned above. Use a 16 bit integer
7725 type for all other register pairs.
7726 (rl78_register_name, rl78_g10_register_name): Update for
7727 new pseudo registers.
7728 (rl78_pseudo_register_read): Likewise.
7729 (rl78_pseudo_register_write): Likewise.
7730 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7731 to the newly added pseudo registers.
7732
eddf0bae
DE
77332014-02-24 Doug Evans <dje@google.com>
7734
7735 * value.c (record_latest_value): Fix comment.
7736 * printcmd.c (print_command_1): Remove code to handle -1 return from
7737 record_latest_value.
7738
e96027e0
PA
77392014-02-24 Pedro Alves <palves@redhat.com>
7740
7741 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7742 deprecated_xfer_memory hook.
7743 (procfs_xfer_partial): Call procfs_xfer_memory instead
7744 of the deprecated_xfer_memory target hook.
7745 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7746 helper.
7747
0837c976
YZ
77482014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7749
7750 * windows-nat.c (windows_xfer_shared_libraries): Return
7751 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7752 requested object is TARGET_OBJECT_LIBRARIES.
7753
bc113b4e
YQ
77542014-02-24 Yao Qi <yao@codesourcery.com>
7755
7756 * target.h (enum target_xfer_status)
7757 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7758 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7759 explicitly. New.
7760 * corefile.c (memory_error_message): User updated.
7761 * exec.c (section_table_read_available_memory): Likewise.
7762 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7763 * target.c (target_xfer_status_to_string): Likewise.
7764 (raw_memory_xfer_partial): Likewise.
7765 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7766 * valops.c (read_value_memory): Likewise.
7767 * exec.h: Update comments.
7768
01cb8804
YQ
77692014-02-24 Yao Qi <yao@codesourcery.com>
7770
7771 * target.c (target_xfer_status_to_string): Rename argument err
7772 to status.
7773 * target.h (target_xfer_status_to_string): Update declaration.
7774 Replace target_xfer_error_to_string with
7775 target_xfer_status_to_string in comment.
7776
93063aa6
YQ
77772014-02-24 Yao Qi <yao@codesourcery.com>
7778
7779 * mips-linux-nat.c (super_close): Update its type.
7780 (mips_linux_close): Pass 'self' to super_close.
7781
5c328c05
YQ
77822014-02-24 Yao Qi <yao@codesourcery.com>
7783
7784 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7785 * corefile.c (read_memory): Adjusted.
7786 * target.c (target_write_with_progress): Adjusted.
7787
f73023dd
YQ
77882014-02-23 Yao Qi <yao@codesourcery.com>
7789
7790 Revert two patches:
7791
7792 2013-10-25 Yao Qi <yao@codesourcery.com>
7793
7794 * remote.c (remote_traceframe_info): Return early if
7795 traceframe is not selected.
7796
7797 2013-07-19 Yao Qi <yao@codesourcery.com>
7798
7799 * target.c (update_current_target): Change the default action
7800 of 'to_traceframe_info' from tcomplain to return_zero.
7801 * target.h (struct target_ops) <to_traceframe_info>: Add more
7802 comments.
7803
5a2eb0ef
YQ
78042014-02-23 Yao Qi <yao@codesourcery.com>
7805
7806 * valops.c (read_value_memory): Rewrite it. Call
7807 target_xfer_partial in a loop.
7808 * exec.h (section_table_available_memory): Remove declaration.
7809 Move comments to ...
7810 * exec.c (section_table_available_memory): ... here. Make it
7811 static.
7812
1ee79381
YQ
78132014-02-23 Yao Qi <yao@codesourcery.com>
7814
7815 * exec.c (section_table_read_available_memory): New function.
7816 * exec.h (section_table_read_available_memory): Declare.
7817 * ctf.c (ctf_xfer_partial): Call
7818 section_table_read_available_memory.
7819 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7820
1ca49d37
YQ
78212014-02-23 Yao Qi <yao@codesourcery.com>
7822
7823 * ctf.c (ctf_xfer_partial): Move code to ...
7824 * exec.c (exec_read_partial_read_only): ... it. New function.
7825 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7826 * tracefile.c: Include "exec.h".
7827 * exec.h (exec_read_partial_read_only): Declare.
7828
a283690e
YQ
78292014-02-23 Yao Qi <yao@codesourcery.com>
7830
7831 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7832 (tfile_has_memory): Remove.
7833 (init_tfile_ops): Don't set fields to_has_all_memory and
7834 to_has_memory of tfile_ops.
7835 * tracefile.c (tracefile_has_all_memory): New function.
7836 (tracefile_has_memory): New function.
7837 (init_tracefile_ops): Initialize fields to_has_all_memory and
7838 to_has_memory of 'ops'.
7839
12e03cd0
YQ
78402014-02-23 Yao Qi <yao@codesourcery.com>
7841
7842 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7843 (ctf_thread_alive, ctf_get_trace_status): Remove.
7844 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7845 init_tracefile_ops.
7846 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7847 (tfile_has_stack, tfile_has_registers): Remove.
7848 (tfile_thread_alive): Remove.
7849 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7850 init_tracefile_ops.
7851 * tracefile.c (tracefile_has_stack): New function.
7852 (tracefile_has_registers): New function.
7853 (tracefile_thread_alive): New function.
7854 (tracefile_get_trace_status): New function.
7855 (init_tracefile_ops): New function.
7856 * tracefile.h (init_tracefile_ops): Declare.
7857
11395323
YQ
78582014-02-23 Yao Qi <yao@codesourcery.com>
7859
7860 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7861 (O_LARGEFILE): Likewise.
7862 (tfile_ops): Likewise.
7863 (TRACE_HEADER_SIZE): Likewise.
7864 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7865 (cur_data_size): Likewise.
7866 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7867 (tfile_close, tfile_files_info): Likewise.
7868 (tfile_get_trace_status): Likewise.
7869 (tfile_get_tracepoint_status): Likewise.
7870 (tfile_get_traceframe_address): Likewise.
7871 (tfile_trace_find, match_blocktype): Likewise.
7872 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7873 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7874 (tfile_get_trace_state_variable_value): Likewise.
7875 (tfile_has_all_memory, tfile_has_memory): Likewise.
7876 (tfile_has_stack, tfile_has_registers): Likewise.
7877 (tfile_thread_alive, build_traceframe_info): Likewise.
7878 (tfile_traceframe_info, init_tfile_ops): Likewise.
7879 (_initialize_tracepoint): Don't call init_tfile_ops
7880 and add_target_with_completer.
7881 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7882 exec.h, completer.h and filenames.h.
7883 (_initialize_tracefile_tfile): New function.
7884
7951c4eb
YQ
78852014-02-23 Yao Qi <yao@codesourcery.com>
7886
7887 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7888 tracefile-tfile.o.
7889 (HFILES_NO_SRCDIR): Add tracefile.h.
7890 * ctf.c: Include "tracefile.h".
7891 * tracefile.h: New file.
7892 * tracefile.c: New file
7893 * tracefile-tfile.c: New file.
7894 * tracepoint.c: Include "tracefile.h".
7895 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7896 (stop_reason_names): Add const.
7897 (trace_file_writer_xfree): Move it to tracefile.c.
7898 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7899 (trace_save_ctf): Likewise.
7900 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7901 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7902 (tfile_write_header, tfile_write_regblock_type): Likewise.
7903 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7904 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7905 (tfile_write_raw_data, tfile_end): Likewise.
7906 (tfile_trace_file_writer_new): Likewise.
7907 (free_uploaded_tp): Make it extern.
7908 (free_uploaded_tsv): Make it extern.
7909 (_initialize_tracepoint): Move code to register command 'tsave'
7910 to tracefile.c.
7911 * tracepoint.h (stop_reason_names): Declare.
7912 (struct trace_frame_write_ops): Move it to tracefile.h.
7913 (struct trace_file_write_ops): Likewise.
7914 (struct trace_file_writer): Likewise.
7915 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7916
184cd072
JK
79172014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7918
7919 PR gdb/16594
7920 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7921 process name.
7922 (get_cores_used_by_process): New parameter num_cores, use it.
7923 (linux_xfer_osdata_processes): Pass num_cores to it.
7924 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7925 process name.
7926
c63528fc
AK
79272014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7928
7929 * target.c (memory_xfer_partial): Fix length arg in call to
7930 breakpoint_xfer_memory.
7931
d7b30f67
SDJ
79322014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7933
7934 PR tdep/16397
7935 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7936 number comes after the + or - signs. Adjust length of register
7937 name to be extracted.
7938
8838afaf
TT
79392014-02-20 Tom Tromey <tromey@redhat.com>
7940
7941 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7942 (ada_varobj_ops): Mark "extern".
7943
05227d14
TT
79442014-02-20 Tom Tromey <tromey@redhat.com>
7945
7946 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7947
1254eefc
DE
79482014-02-20 Doug Evans <xdje42@gmail.com>
7949
7950 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7951 All callers updated.
7952 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7953 All callers updated.
7954 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7955 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7956
adde2bff
DE
79572014-02-20 lin zuojian <manjian2006@gmail.com>
7958 Joel Brobecker <brobecker@adacore.com>
7959 Doug Evans <xdje42@gmail.com>
7960
7961 PR symtab/16581
7962 * dwarf2read.c (struct die_info): New member in_process.
7963 (reset_die_in_process): New function.
7964 (process_die): Set it at the start, reset when returning.
7965 (inherit_abstract_dies): Only call process_die if origin_child_die
7966 not already being processed.
7967
3be75f87
JB
79682014-02-20 Joel Brobecker <brobecker@adacore.com>
7969
7970 * windows-nat.c (handle_unload_dll): Add function documentation.
7971 (do_initial_windows_stuff): Add comment explaining why we wait
7972 until after inferior initialization has finished before
7973 processing all DLLs.
7974
47f7ffdb
JB
79752014-02-20 Joel Brobecker <brobecker@adacore.com>
7976
7977 * windows-nat.c (get_module_name): Delete.
7978 (windows_get_exec_module_filename): New function, mostly
7979 inspired from get_module_name.
7980 (windows_pid_to_exec_file): Replace call to get_module_name
7981 by call to windows_get_exec_module_filename.
7982
1cd9feab
JB
79832014-02-20 Joel Brobecker <brobecker@adacore.com>
7984
7985 * windows-nat.c (handle_load_dll): Rewrite this function's
7986 introductory comment. Remove code using get_module_name
7987 to get the DLL's name.
7988
ea39ad35
JB
79892014-02-20 Joel Brobecker <brobecker@adacore.com>
7990
7991 * windows-nat.c (get_windows_debug_event): Ignore
7992 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7993 if windows_initialization_done == 0.
7994 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7995 Adjust implementation to always load all DLLs.
7996 (do_initial_windows_stuff): Replace call to
7997 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7998
95060284
JB
79992014-02-20 Joel Brobecker <brobecker@adacore.com>
8000
8001 * windows-nat.c (_initialize_windows_nat): Deprecate the
8002 "dll-symbols" command. Turn the "add-shared-symbol-files"
8003 and "assf" aliases into commands, and deprecate them as well.
8004 * NEWS: Add entry explaining that "dll-symbols" and its two
8005 aliases are now deprecated.
8006
8d4fdb12
JB
80072014-02-20 Joel Brobecker <brobecker@adacore.com>
8008
8009 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8010 new-line in debug string. Remove trailing spaces.
8011
1b281443
SS
80122014-02-19 Stan Shebs <stan@codesourcery.com>
8013
8014 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8015
f7bd0f78
SC
80162014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8017
8018 * NEWS: Add entry for the new feature
8019 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8020 and class values.
8021
399ebc3d
SS
80222014-02-19 Stan Shebs <stan@codesourcery.com>
8023
8024 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8025
c658158d
PA
80262014-02-19 Pedro Alves <palves@redhat.com>
8027
8028 * common/ptid.h (struct ptid): Mention that process_stratum
8029 targets should prefer ptid.lwp.
8030
ba348170
PA
80312014-02-19 Pedro Alves <palves@redhat.com>
8032
8033 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8034 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8035 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8036 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8037 store remote thread ids rather than ptid.tid.
8038 (_initialize_remote): Adjust.
8039
ac01945b
TT
80402014-02-19 Tom Tromey <tromey@redhat.com>
8041
8042 * target.c (target_get_unwinder): Rewrite.
8043 (target_get_tailcall_unwinder): Rewrite.
8044 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8045 (record_btrace_to_get_tailcall_unwinder): New function.
8046 (init_record_btrace_ops): Update.
8047 * target.h (struct target_ops) <to_get_unwinder,
8048 to_get_tailcall_unwinder>: Now function pointers. Use
8049 TARGET_DEFAULT_RETURN.
8050
8476dc92
TT
80512014-02-19 Tom Tromey <tromey@redhat.com>
8052
8053 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8054 argument.
8055 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8056
c0eca49f
TT
80572014-02-19 Tom Tromey <tromey@redhat.com>
8058
8059 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8060 directly.
8061 * target-delegates.c: Rebuild.
8062 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8063 TARGET_DEFAULT_FUNC.
8064 * target.c (default_target_decr_pc_after_break): Rename from
8065 forward_target_decr_pc_after_break. Simplify.
8066 (target_decr_pc_after_break): Rely on delegation.
8067
596b6b39
TT
80682014-02-19 Tom Tromey <tromey@redhat.com>
8069
8070 * target.c (update_current_target): Do not INHERIT to_doc or
8071 to_magic. Do not de_fault to_open or to_close.
8072
b427c1bc
TT
80732014-02-19 Tom Tromey <tromey@redhat.com>
8074
8075 * gcore.h (objfile_find_memory_regions): Declare.
8076 * gcore.c (objfile_find_memory_regions): No longer static. Add
8077 "self" argument.
8078 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8079 * exec.c: Include gcore.h.
8080 (exec_set_find_memory_regions): Remove.
8081 (exec_find_memory_regions): Remove.
8082 (exec_do_find_memory_regions): Remove.
8083 (init_exec_ops): Update.
8084 * defs.h (exec_set_find_memory_regions): Remove.
8085
9b144037
TT
80862014-02-19 Tom Tromey <tromey@redhat.com>
8087
8088 * target-delegates.c: Rebuild.
8089 * target.h (struct target_ops) <to_extra_thread_info,
8090 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8091 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8092 not 0, in TARGET_DEFAULT_RETURN.
8093
555bbdeb
TT
80942014-02-19 Tom Tromey <tromey@redhat.com>
8095
8096 * target.c (complete_target_initialization): Remove casts. Use
8097 return_zero_has_execution.
8098 (return_zero): Add "ignore" argument.
8099 (return_zero_has_execution): New function.
8100 (init_dummy_target): Remove casts. Use
8101 return_zero_has_execution.
8102
be4ddd36
TT
81032014-02-19 Tom Tromey <tromey@redhat.com>
8104
8105 * target.c (update_current_target): Update comments. Do not
8106 INHERIT to_stratum.
8107
2117c711
TT
81082014-02-19 Tom Tromey <tromey@redhat.com>
8109
8110 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8111 needed.
8112 * corelow.c (core_read_description): Delegate when needed.
8113 * remote.c (remote_read_description): Delegate when needed.
8114 * target-delegates.c: Rebuild.
8115 * target.c (target_read_description): Rewrite.
8116 * target.h (struct target_ops) <to_read_description>: Update
8117 comment. Use TARGET_DEFAULT_RETURN.
8118
e88ef65c
TT
81192014-02-19 Tom Tromey <tromey@redhat.com>
8120
8121 * target-delegates.c: Rebuild.
8122 * target.c (update_current_target): Don't inherit or default
8123 to_can_run.
8124 (find_default_run_target): Check against delegate_can_run.
8125 * target.h (struct target_ops) <to_can_run>: Use
8126 TARGET_DEFAULT_RETURN.
8127
86a0854a
TT
81282014-02-19 Tom Tromey <tromey@redhat.com>
8129
8130 * target-delegates.c: Rebuild.
8131 * target.c (target_disconnect): Unconditionally delegate.
8132 * target.h (struct target_ops) <to_disconnect>: Use
8133 TARGET_DEFAULT_NORETURN.
8134
ee97f592
TT
81352014-02-19 Tom Tromey <tromey@redhat.com>
8136
8137 * record.c (record_stop): Unconditionally delegate.
8138 * target-delegates.c: Rebuild.
8139 * target.c (target_stop_recording): Unconditionally delegate.
8140 * target.h (struct target_ops) <to_stop_recording>: Use
8141 TARGET_DEFAULT_IGNORE.
8142
6dc7fcf4
TT
81432014-02-19 Tom Tromey <tromey@redhat.com>
8144
8145 * target-delegates.c: Rebuild.
8146 * target.c (target_enable_btrace): Unconditionally delegate.
8147 * target.h (struct target_ops) <to_enable_btrace>: Use
8148 TARGET_DEFAULT_NORETURN.
8149
eb5b20d4
TT
81502014-02-19 Tom Tromey <tromey@redhat.com>
8151
8152 * target-delegates.c: Rebuild.
8153 * target.c (target_read_btrace): Unconditionally delegate.
8154 * target.h (struct target_ops) <to_read_btrace>: Use
8155 TARGET_DEFAULT_NORETURN.
8156
9ace480d
TT
81572014-02-19 Tom Tromey <tromey@redhat.com>
8158
8159 * target-delegates.c: Rebuild.
8160 * target.c (target_teardown_btrace): Unconditionally delegate.
8161 * target.h (struct target_ops) <to_teardown_btrace>: Use
8162 TARGET_DEFAULT_NORETURN.
8163
8dc292d3
TT
81642014-02-19 Tom Tromey <tromey@redhat.com>
8165
8166 * target-delegates.c: Rebuild.
8167 * target.c (target_disable_btrace): Unconditionally delegate.
8168 * target.h (struct target_ops) <to_disable_btrace>: Use
8169 TARGET_DEFAULT_NORETURN.
8170
58a5184e
TT
81712014-02-19 Tom Tromey <tromey@redhat.com>
8172
8173 * target-delegates.c: Rebuild.
8174 * target.c (default_search_memory): New function.
8175 (simple_search_memory): Update comment.
8176 (target_search_memory): Unconditionally delegate.
8177 * target.h (struct target_ops) <to_search_memory>: Use
8178 TARGET_DEFAULT_FUNC.
8179
8de71aab
TT
81802014-02-19 Tom Tromey <tromey@redhat.com>
8181
8182 * auxv.c (default_auxv_parse): No longer static.
8183 (target_auxv_parse): Unconditionally delegate.
8184 * auxv.h (default_auxv_parse): Declare.
8185 * target-delegates.c: Rebuild.
8186 * target.c: Include auxv.h.
8187 * target.h (struct target_ops) <to_auxv_parse>: Use
8188 TARGET_DEFAULT_FUNC.
8189
6b2c5a57
TT
81902014-02-19 Tom Tromey <tromey@redhat.com>
8191
8192 * target-delegates.c: Rebuild.
8193 * target.c (target_memory_map): Unconditionally delegate.
8194 * target.h (struct target_ops) <to_memory_map>: Use
8195 TARGET_DEFAULT_RETURN.
8196
cbffc065
TT
81972014-02-19 Tom Tromey <tromey@redhat.com>
8198
8199 * target-delegates.c: Rebuild.
8200 * target.c (target_thread_alive): Unconditionally delegate.
8201 * target.h (struct target_ops) <to_thread_alive>: Use
8202 TARGET_DEFAULT_RETURN.
8203
f09e2107
TT
82042014-02-19 Tom Tromey <tromey@redhat.com>
8205
8206 * target-delegates.c: Rebuild.
8207 * target.c (target_save_record): Unconditionally delegate.
8208 * target.h (struct target_ops) <to_save_record>: Use
8209 TARGET_DEFAULT_NORETURN.
8210
07366925
TT
82112014-02-19 Tom Tromey <tromey@redhat.com>
8212
8213 * target-delegates.c: Rebuild.
8214 * target.c (target_delete_record): Unconditionally delegate.
8215 * target.h (struct target_ops) <to_delete_record>: Use
8216 TARGET_DEFAULT_NORETURN.
8217
dd2e9d25
TT
82182014-02-19 Tom Tromey <tromey@redhat.com>
8219
8220 * target-delegates.c: Rebuild.
8221 * target.c (target_record_is_replaying): Unconditionally
8222 delegate.
8223 * target.h (struct target_ops) <to_record_is_replaying>: Use
8224 TARGET_DEFAULT_RETURN.
8225
671e76cc
TT
82262014-02-19 Tom Tromey <tromey@redhat.com>
8227
8228 * target-delegates.c: Rebuild.
8229 * target.c (target_goto_record_begin): Unconditionally delegate.
8230 * target.h (struct target_ops) <to_goto_record_begin>: Use
8231 TARGET_DEFAULT_NORETURN.
8232
e9179bb3
TT
82332014-02-19 Tom Tromey <tromey@redhat.com>
8234
8235 * target-delegates.c: Rebuild.
8236 * target.c (target_goto_record_end): Unconditionally delegate.
8237 * target.h (struct target_ops) <to_goto_record_end>: Use
8238 TARGET_DEFAULT_NORETURN.
8239
05969c84
TT
82402014-02-19 Tom Tromey <tromey@redhat.com>
8241
8242 * target-delegates.c: Rebuild.
8243 * target.c (target_goto_record): Unconditionally delegate.
8244 * target.h (struct target_ops) <to_goto_record>: Use
8245 TARGET_DEFAULT_NORETURN.
8246
3679abfa
TT
82472014-02-19 Tom Tromey <tromey@redhat.com>
8248
8249 * target-delegates.c: Rebuild.
8250 * target.c (target_insn_history): Unconditionally delegate.
8251 * target.h (struct target_ops) <to_insn_history>: Use
8252 TARGET_DEFAULT_NORETURN.
8253
8444ab58
TT
82542014-02-19 Tom Tromey <tromey@redhat.com>
8255
8256 * target-delegates.c: Rebuild.
8257 * target.c (target_insn_history_from): Unconditionally delegate.
8258 * target.h (struct target_ops) <to_insn_history_from>: Use
8259 TARGET_DEFAULT_NORETURN.
8260
c29302cc
TT
82612014-02-19 Tom Tromey <tromey@redhat.com>
8262
8263 * target-delegates.c: Rebuild.
8264 * target.c (target_insn_history_range): Unconditionally delegate.
8265 * target.h (struct target_ops) <to_insn_history_range>: Use
8266 TARGET_DEFAULT_NORETURN.
8267
170049d4
TT
82682014-02-19 Tom Tromey <tromey@redhat.com>
8269
8270 * target-delegates.c: Rebuild.
8271 * target.c (target_call_history): Unconditionally delegate.
8272 * target.h (struct target_ops) <to_call_history>: Use
8273 TARGET_DEFAULT_NORETURN.
8274
16fc27d6
TT
82752014-02-19 Tom Tromey <tromey@redhat.com>
8276
8277 * target-delegates.c: Rebuild.
8278 * target.c (target_call_history_from): Unconditionally delegate.
8279 * target.h (struct target_ops) <to_call_history_from>: Use
8280 TARGET_DEFAULT_NORETURN.
8281
115d9817
TT
82822014-02-19 Tom Tromey <tromey@redhat.com>
8283
8284 * target-delegates.c: Rebuild.
8285 * target.c (target_call_history_range): Unconditionally delegate.
8286 * target.h (struct target_ops) <to_call_history_range>: Use
8287 TARGET_DEFAULT_NORETURN.
8288
eb276a6b
TT
82892014-02-19 Tom Tromey <tromey@redhat.com>
8290
8291 * target-delegates.c: Rebuild.
8292 * target.c (target_verify_memory): Unconditionally delegate.
8293 * target.h (struct target_ops) <to_verify_memory>: Use
8294 TARGET_DEFAULT_NORETURN.
8295
9e538d0d
TT
82962014-02-19 Tom Tromey <tromey@redhat.com>
8297
8298 * target-delegates.c: Rebuild.
8299 * target.c (target_core_of_thread): Unconditionally delegate.
8300 * target.h (struct target_ops) <to_core_of_thread>: Use
8301 TARGET_DEFAULT_RETURN.
8302
f6fb2925
TT
83032014-02-19 Tom Tromey <tromey@redhat.com>
8304
8305 * target-delegates.c: Rebuild.
8306 * target.c (target_flash_done): Unconditionally delegate.
8307 * target.h (struct target_ops) <to_flash_done>: Use
8308 TARGET_DEFAULT_NORETURN.
8309
e8a6c6ac
TT
83102014-02-19 Tom Tromey <tromey@redhat.com>
8311
8312 * target-delegates.c: Rebuild.
8313 * target.c (target_flash_erase): Unconditionally delegate.
8314 * target.h (struct target_ops) <to_flash_erase>: Use
8315 TARGET_DEFAULT_NORETURN.
8316
7e35c012
TT
83172014-02-19 Tom Tromey <tromey@redhat.com>
8318
8319 * target-delegates.c: Rebuild.
8320 * target.c (target_get_section_table): Unconditionally delegate.
8321 * target.h (struct target_ops) <to_get_section_table>: Use
8322 TARGET_DEFAULT_RETURN.
8323
770234d3
TT
83242014-02-19 Tom Tromey <tromey@redhat.com>
8325
8326 * target-delegates.c: Rebuild.
8327 * target.c (target_pid_to_str): Unconditionally delegate.
8328 (init_dummy_target): Don't initialize to_pid_to_str.
8329 (default_pid_to_str): Rename from dummy_pid_to_str.
8330 * target.h (struct target_ops) <to_pid_to_str>: Use
8331 TARGET_DEFAULT_FUNC.
8332
09b0dc2b
TT
83332014-02-19 Tom Tromey <tromey@redhat.com>
8334
8335 * target-delegates.c: Rebuild.
8336 * target.c (target_find_new_threads): Unconditionally delegate.
8337 * target.h (struct target_ops) <to_find_new_threads>: Use
8338 TARGET_DEFAULT_RETURN.
8339
7d4f8efa
TT
83402014-02-19 Tom Tromey <tromey@redhat.com>
8341
8342 * target-delegates.c: Rebuild.
8343 * target.c (target_program_signals): Unconditionally delegate.
8344 * target.h (struct target_ops) <to_program_signals>: Use
8345 TARGET_DEFAULT_IGNORE.
8346
035cad7f
TT
83472014-02-19 Tom Tromey <tromey@redhat.com>
8348
8349 * target-delegates.c: Rebuild.
8350 * target.c (target_pass_signals): Unconditionally delegate.
8351 * target.h (struct target_ops) <to_pass_signals>: Use
8352 TARGET_DEFAULT_IGNORE.
8353
8d657035
TT
83542014-02-19 Tom Tromey <tromey@redhat.com>
8355
8356 * target-delegates.c: Rebuild.
8357 * target.c (default_mourn_inferior): New function.
8358 (target_mourn_inferior): Unconditionally delegate.
8359 * target.h (struct target_ops) <to_mourn_inferior>: Use
8360 TARGET_DEFAULT_FUNC.
8361
098dba18
TT
83622014-02-19 Tom Tromey <tromey@redhat.com>
8363
8364 * target-delegates.c: Rebuild.
8365 * target.c (default_follow_fork): New function.
8366 (target_follow_fork): Unconditionally delegate.
8367 * target.h (struct target_ops) <to_follow_fork>: Use
8368 TARGET_DEFAULT_FUNC.
8369
423a4807
TT
83702014-02-19 Tom Tromey <tromey@redhat.com>
8371
8372 * target-delegates.c: Rebuild.
8373 * target.c (target_kill): Unconditionally delegate.
8374 * target.h (struct target_ops) <to_kill>: Use
8375 TARGET_DEFAULT_NORETURN.
8376
6c7e5e5c
TT
83772014-02-19 Tom Tromey <tromey@redhat.com>
8378
8379 * target-delegates.c: Rebuild.
8380 * target.c (target_masked_watch_num_registers): Unconditionally
8381 delegate.
8382 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8383 Use TARGET_DEFAULT_RETURN.
8384
8b1c364c
TT
83852014-02-19 Tom Tromey <tromey@redhat.com>
8386
8387 * target-delegates.c: Rebuild.
8388 * target.c (target_remove_mask_watchpoint): Unconditionally
8389 delegate.
8390 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8391 TARGET_DEFAULT_RETURN.
8392
cd4ae029
TT
83932014-02-19 Tom Tromey <tromey@redhat.com>
8394
8395 * target-delegates.c: Rebuild.
8396 * target.c (target_insert_mask_watchpoint): Unconditionally
8397 delegate.
8398 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8399 TARGET_DEFAULT_RETURN.
8400
a134316b
TT
84012014-02-19 Tom Tromey <tromey@redhat.com>
8402
8403 * target-delegates.c: Rebuild.
8404 * target.c (target_ranged_break_num_registers): Unconditionally
8405 delegate.
8406 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8407 Use TARGET_DEFAULT_RETURN.
8408
ad5989bd
TT
84092014-02-19 Tom Tromey <tromey@redhat.com>
8410
8411 * target-delegates.c: Rebuild.
8412 * target.c (target_fetch_registers): Unconditionally delegate.
8413 * target.h (struct target_ops) <to_fetch_registers>: Use
8414 TARGET_DEFAULT_NORETURN.
8415
46ee7e8d
TT
84162014-02-19 Tom Tromey <tromey@redhat.com>
8417
8418 * target-delegates.c: Rebuild.
8419 * target.c (update_current_target): Don't inherit or default
8420 to_stop.
8421 * target.h (struct target_ops) <to_stop>: Use
8422 TARGET_DEFAULT_IGNORE.
8423
843f59ed
TT
84242014-02-19 Tom Tromey <tromey@redhat.com>
8425
8426 * target-delegates.c: Rebuild.
8427 * target.c (update_current_target): Don't inherit or default
8428 to_can_run_breakpoint_commands.
8429 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8430 Use TARGET_DEFAULT_RETURN.
8431
ccfde2a0
TT
84322014-02-19 Tom Tromey <tromey@redhat.com>
8433
8434 * target-delegates.c: Rebuild.
8435 * target.c (update_current_target): Don't inherit or default
8436 to_supports_evaluation_of_breakpoint_conditions.
8437 * target.h (struct target_ops)
8438 <to_supports_evaluation_of_breakpoint_conditions>: Use
8439 TARGET_DEFAULT_RETURN.
8440
0de91722
TT
84412014-02-19 Tom Tromey <tromey@redhat.com>
8442
8443 * target-delegates.c: Rebuild.
8444 * target.c (update_current_target): Don't inherit or default
8445 to_augmented_libraries_svr4_read.
8446 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8447 Use TARGET_DEFAULT_RETURN.
8448
9a7d8b48
TT
84492014-02-19 Tom Tromey <tromey@redhat.com>
8450
8451 * target-delegates.c: Rebuild.
8452 * target.c (update_current_target): Don't inherit or default
8453 to_can_use_agent.
8454 * target.h (struct target_ops) <to_can_use_agent>: Use
8455 TARGET_DEFAULT_RETURN.
8456
d9db5b21
TT
84572014-02-19 Tom Tromey <tromey@redhat.com>
8458
8459 * target-delegates.c: Rebuild.
8460 * target.c (update_current_target): Don't inherit or default
8461 to_use_agent.
8462 * target.h (struct target_ops) <to_use_agent>: Use
8463 TARGET_DEFAULT_NORETURN.
8464
92155eeb
TT
84652014-02-19 Tom Tromey <tromey@redhat.com>
8466
8467 * target-delegates.c: Rebuild.
8468 * target.c (update_current_target): Don't inherit or default
8469 to_traceframe_info.
8470 (return_null): Remove.
8471 * target.h (struct target_ops) <to_traceframe_info>: Use
8472 TARGET_DEFAULT_RETURN.
8473
d6522a22
TT
84742014-02-19 Tom Tromey <tromey@redhat.com>
8475
8476 * target-delegates.c: Rebuild.
8477 * target.c (update_current_target): Don't inherit or default
8478 to_static_tracepoint_markers_by_strid.
8479 * target.h (struct target_ops)
8480 <to_static_tracepoint_markers_by_strid>: Use
8481 TARGET_DEFAULT_NORETURN.
8482
4c3e4425
TT
84832014-02-19 Tom Tromey <tromey@redhat.com>
8484
8485 * target-delegates.c: Rebuild.
8486 * target.c (update_current_target): Don't inherit or default
8487 to_static_tracepoint_marker_at.
8488 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8489 Use TARGET_DEFAULT_RETURN.
8490
dcd6917f
TT
84912014-02-19 Tom Tromey <tromey@redhat.com>
8492
8493 * target-delegates.c: Rebuild.
8494 * target.c (update_current_target): Don't inherit or default
8495 to_set_permissions.
8496 * target.h (struct target_ops) <to_set_permissions>: Use
8497 TARGET_DEFAULT_IGNORE.
8498
22bcceee
TT
84992014-02-19 Tom Tromey <tromey@redhat.com>
8500
8501 * target-delegates.c: Rebuild.
8502 * target.c (update_current_target): Don't inherit or default
8503 to_get_tib_address.
8504 * target.h (struct target_ops) <to_get_tib_address>: Use
8505 TARGET_DEFAULT_NORETURN.
8506
8586ccaa
TT
85072014-02-19 Tom Tromey <tromey@redhat.com>
8508
8509 * target-delegates.c: Rebuild.
8510 * target.c (update_current_target): Don't inherit or default
8511 to_set_trace_notes.
8512 * target.h (struct target_ops) <to_set_trace_notes>: Use
8513 TARGET_DEFAULT_RETURN.
8514
91df8d1d
TT
85152014-02-19 Tom Tromey <tromey@redhat.com>
8516
8517 * target-delegates.c: Rebuild.
8518 * target.c (update_current_target): Don't initialize
8519 to_set_trace_buffer_size.
8520 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8521 TARGET_DEFAULT_IGNORE.
8522
8d526939
TT
85232014-02-19 Tom Tromey <tromey@redhat.com>
8524
8525 * target-delegates.c: Rebuild.
8526 * target.c (update_current_target): Don't inherit or default
8527 to_set_circular_trace_buffer.
8528 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8529 TARGET_DEFAULT_IGNORE.
8530
0bcfeddf
TT
85312014-02-19 Tom Tromey <tromey@redhat.com>
8532
8533 * target-delegates.c: Rebuild.
8534 * target.c (update_current_target): Don't inherit or default
8535 to_set_disconnected_tracing.
8536 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8537 TARGET_DEFAULT_IGNORE.
8538
9249843f
TT
85392014-02-19 Tom Tromey <tromey@redhat.com>
8540
8541 * target-delegates.c: Rebuild.
8542 * target.c (update_current_target): Don't inherit or default
8543 to_get_min_fast_tracepoint_insn_len.
8544 (return_minus_one): Remove.
8545 * target.h (struct target_ops)
8546 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8547
ace92e7d
TT
85482014-02-19 Tom Tromey <tromey@redhat.com>
8549
8550 * target-delegates.c: Rebuild.
8551 * target.c (update_current_target): Don't inherit or default
8552 to_get_raw_trace_data.
8553 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8554 TARGET_DEFAULT_NORETURN.
8555
08120467
TT
85562014-02-19 Tom Tromey <tromey@redhat.com>
8557
8558 * target-delegates.c: Rebuild.
8559 * target.c (update_current_target): Don't inherit or default
8560 to_upload_trace_state_variables.
8561 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8562 Use TARGET_DEFAULT_RETURN.
8563
1e949b00
TT
85642014-02-19 Tom Tromey <tromey@redhat.com>
8565
8566 * target-delegates.c: Rebuild.
8567 * target.c (update_current_target): Don't inherit or default
8568 to_upload_tracepoints.
8569 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8570 TARGET_DEFAULT_RETURN.
8571
a2e6c147
TT
85722014-02-19 Tom Tromey <tromey@redhat.com>
8573
8574 * target-delegates.c: Rebuild.
8575 * target.c (update_current_target): Don't inherit or default
8576 to_save_trace_data.
8577 * target.h (struct target_ops) <to_save_trace_data>: Use
8578 TARGET_DEFAULT_NORETURN.
8579
959bcd0b
TT
85802014-02-19 Tom Tromey <tromey@redhat.com>
8581
8582 * target-delegates.c: Rebuild.
8583 * target.c (update_current_target): Don't inherit or default
8584 to_get_trace_state_variable_value.
8585 * target.h (struct target_ops)
8586 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8587
afc94e66
TT
85882014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * target-delegates.c: Rebuild.
8591 * target.c (update_current_target): Don't inherit or default
8592 to_trace_find.
8593 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8594
e51c07ea
TT
85952014-02-19 Tom Tromey <tromey@redhat.com>
8596
8597 * target-delegates.c: Rebuild.
8598 * target.c (update_current_target): Don't inherit or default
8599 to_trace_stop.
8600 * target.h (struct target_ops) <to_trace_stop>: Use
8601 TARGET_DEFAULT_NORETURN.
8602
6fea14cd
TT
86032014-02-19 Tom Tromey <tromey@redhat.com>
8604
8605 * target-delegates.c: Rebuild.
8606 * target.c (update_current_target): Don't inherit or default
8607 to_get_tracepoint_status.
8608 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8609 TARGET_DEFAULT_NORETURN.
8610
4072d4ff
TT
86112014-02-19 Tom Tromey <tromey@redhat.com>
8612
8613 * target-delegates.c: Rebuild.
8614 * target.c (update_current_target): Don't inherit or default
8615 to_get_trace_status.
8616 * target.h (struct target_ops) <to_get_trace_status>: Use
8617 TARGET_DEFAULT_RETURN.
8618
25da2e80
TT
86192014-02-19 Tom Tromey <tromey@redhat.com>
8620
8621 * target-delegates.c: Rebuild.
8622 * target.c (update_current_target): Don't inherit or default
8623 to_trace_start.
8624 * target.h (struct target_ops) <to_trace_start>: Use
8625 TARGET_DEFAULT_NORETURN.
8626
86dd181d
TT
86272014-02-19 Tom Tromey <tromey@redhat.com>
8628
8629 * target-delegates.c: Rebuild.
8630 * target.c (update_current_target): Don't inherit or default
8631 to_trace_set_readonly_regions.
8632 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8633 Use TARGET_DEFAULT_NORETURN.
8634
05c41993
TT
86352014-02-19 Tom Tromey <tromey@redhat.com>
8636
8637 * target-delegates.c: Rebuild.
8638 * target.c (update_current_target): Don't inherit or default
8639 to_disable_tracepoint.
8640 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8641 TARGET_DEFAULT_NORETURN.
8642
151f70f1
TT
86432014-02-19 Tom Tromey <tromey@redhat.com>
8644
8645 * target-delegates.c: Rebuild.
8646 * target.c (update_current_target): Don't inherit or default
8647 to_enable_tracepoint.
8648 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8649 TARGET_DEFAULT_NORETURN.
8650
94eb98b9
TT
86512014-02-19 Tom Tromey <tromey@redhat.com>
8652
8653 * target-delegates.c: Rebuild.
8654 * target.c (update_current_target): Don't inherit or default
8655 to_download_trace_state_variable.
8656 * target.h (struct target_ops) <to_download_trace_state_variable>:
8657 Use TARGET_DEFAULT_NORETURN.
8658
719acc4a
TT
86592014-02-19 Tom Tromey <tromey@redhat.com>
8660
8661 * target-delegates.c: Rebuild.
8662 * target.c (update_current_target): Don't inherit or default
8663 to_can_download_tracepoint.
8664 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8665 TARGET_DEFAULT_RETURN.
8666
9a980a22
TT
86672014-02-19 Tom Tromey <tromey@redhat.com>
8668
8669 * target-delegates.c: Rebuild.
8670 * target.c (update_current_target): Don't inherit or default
8671 to_download_tracepoint.
8672 * target.h (struct target_ops) <to_download_tracepoint>: Use
8673 TARGET_DEFAULT_NORETURN.
8674
5536135b
TT
86752014-02-19 Tom Tromey <tromey@redhat.com>
8676
8677 * target-delegates.c: Rebuild.
8678 * target.c (update_current_target): Don't inherit or default
8679 to_trace_init.
8680 * target.h (struct target_ops) <to_trace_init>: Use
8681 TARGET_DEFAULT_RETURN.
8682
9409d39e
TT
86832014-02-19 Tom Tromey <tromey@redhat.com>
8684
8685 * target-delegates.c: Rebuild.
8686 * target.c (update_current_target): Don't inherit or default
8687 to_supports_string_tracing.
8688 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8689 TARGET_DEFAULT_RETURN.
8690
aab1b22d
TT
86912014-02-19 Tom Tromey <tromey@redhat.com>
8692
8693 * target-delegates.c: Rebuild.
8694 * target.c (update_current_target): Don't inherit or default
8695 to_supports_enable_disable_tracepoint.
8696 * target.h (struct target_ops)
8697 <to_supports_enable_disable_tracepoint>: Use
8698 TARGET_DEFAULT_RETURN.
8699
a7304748
TT
87002014-02-19 Tom Tromey <tromey@redhat.com>
8701
8702 * target-delegates.c: Rebuild.
8703 * target.c (update_current_target): Don't inherit or default
8704 to_supports_multi_process.
8705 * target.h (struct target_ops) <to_supports_multi_process>: Use
8706 TARGET_DEFAULT_RETURN.
8707
4229b31d
TT
87082014-02-19 Tom Tromey <tromey@redhat.com>
8709
8710 * target-delegates.c: Rebuild.
8711 * target.c (update_current_target): Don't inherit or default
8712 to_get_ada_task_ptid.
8713 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8714 TARGET_DEFAULT_FUNC.
8715
43eba180
TT
87162014-02-19 Tom Tromey <tromey@redhat.com>
8717
8718 * target-delegates.c: Rebuild.
8719 * target.c (update_current_target): Don't inherit or default
8720 to_thread_architecture.
8721 * target.h (struct target_ops) <to_thread_architecture>: Use
8722 TARGET_DEFAULT_FUNC.
8723
fe31bf5b
TT
87242014-02-19 Tom Tromey <tromey@redhat.com>
8725
8726 * target-delegates.c: Rebuild.
8727 * target.c (update_current_target): Don't inherit or default
8728 to_execution_direction.
8729 * target.h (struct target_ops) <to_execution_direction>: Use
8730 TARGET_DEFAULT_FUNC.
8731
53e1cfc7
TT
87322014-02-19 Tom Tromey <tromey@redhat.com>
8733
8734 * target-delegates.c: Rebuild.
8735 * target.c (update_current_target): Don't inherit or default
8736 to_can_execute_reverse.
8737 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8738 TARGET_DEFAULT_RETURN.
8739 (target_can_execute_reverse): Unconditionally delegate.
8740
9bb9d61d
TT
87412014-02-19 Tom Tromey <tromey@redhat.com>
8742
8743 * target-delegates.c: Rebuild.
8744 * target.c (update_current_target): Don't inherit or default
8745 to_goto_bookmark.
8746 (dummy_goto_bookmark): Remove.
8747 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8748 * target.h (struct target_ops) <to_goto_bookmark>: Use
8749 TARGET_DEFAULT_NORETURN.
8750
3dbafbbb
TT
87512014-02-19 Tom Tromey <tromey@redhat.com>
8752
8753 * target-delegates.c: Rebuild.
8754 * target.c (update_current_target): Don't inherit or default
8755 to_get_bookmark.
8756 (dummy_get_bookmark): Remove.
8757 (init_dummy_target): Don't inherit or default to_get_bookmark.
8758 * target.h (struct target_ops) <to_get_bookmark>: Use
8759 TARGET_DEFAULT_NORETURN
8760
16f796b1
TT
87612014-02-19 Tom Tromey <tromey@redhat.com>
8762
8763 * target-delegates.c: Rebuild.
8764 * target.c (update_current_target): Don't inherit or default
8765 to_make_corefile_notes.
8766 (init_dummy_target): Don't initialize to_make_corefile_notes.
8767 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8768 TARGET_DEFAULT_FUNC.
8769
0b5a2719
TT
87702014-02-19 Tom Tromey <tromey@redhat.com>
8771
8772 * target-delegates.c: Rebuild.
8773 * target.c (update_current_target): Don't inherit or default
8774 to_find_memory_regions.
8775 (init_dummy_target): Don't initialize to_find_memory_regions.
8776 * target.h (struct target_ops) <to_find_memory_regions>: Use
8777 TARGET_DEFAULT_FUNC.
8778
d9cb0195
TT
87792014-02-19 Tom Tromey <tromey@redhat.com>
8780
8781 * target-delegates.c: Rebuild.
8782 * target.c (update_current_target): Don't inherit or default
8783 to_log_command.
8784 * target.h (struct target_ops) <to_log_command>: Use
8785 TARGET_DEFAULT_IGNORE.
8786 (target_log_command): Unconditionally delegate.
8787
830ca330
TT
87882014-02-19 Tom Tromey <tromey@redhat.com>
8789
8790 * target-delegates.c: Rebuild.
8791 * target.c (update_current_target): Don't inherit or default
8792 to_pid_to_exec_file.
8793 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8794 TARGET_DEFAULT_RETURN.
8795
825828fc
TT
87962014-02-19 Tom Tromey <tromey@redhat.com>
8797
8798 * target-delegates.c: Rebuild.
8799 * target.c (update_current_target): Don't inherit or default
8800 to_thread_name.
8801 (target_thread_name): Unconditionally delegate.
8802 * target.h (struct target_ops) <to_thread_name>: Use
8803 TARGET_DEFAULT_RETURN.
8804
4a7e6dda
TT
88052014-02-19 Tom Tromey <tromey@redhat.com>
8806
8807 * target-delegates.c: Rebuild.
8808 * target.c (update_current_target): Don't inherit or default
8809 to_extra_thread_info.
8810 * target.h (struct target_ops) <to_extra_thread_info>: Use
8811 TARGET_DEFAULT_RETURN.
8812
0db88c1d
TT
88132014-02-19 Tom Tromey <tromey@redhat.com>
8814
8815 * target-delegates.c: Rebuild.
8816 * target.c (update_current_target): Don't inherit or default
8817 to_has_exited.
8818 * target.h (struct target_ops) <to_has_exited>: Use
8819 TARGET_DEFAULT_RETURN..
8820
6a9fa051
TT
88212014-02-19 Tom Tromey <tromey@redhat.com>
8822
8823 * target-delegates.c: Rebuild.
8824 * target.c (update_current_target): Don't inherit or default
8825 to_set_syscall_catchpoint.
8826 (return_one): Remove.
8827 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8828 TARGET_DEFAULT_RETURN.
8829
62f64d7a
TT
88302014-02-19 Tom Tromey <tromey@redhat.com>
8831
8832 * target-delegates.c: Rebuild.
8833 * target.c (update_current_target): Don't inherit or default
8834 to_insert_exec_catchpoint.
8835 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8836 TARGET_DEFAULT_RETURN.
8837
cda0f38c
TT
88382014-01-08 Tom Tromey <tromey@redhat.com>
8839
8840 * target-delegates.c: Rebuild.
8841 * target.c (update_current_target): Don't inherit or default
8842 to_insert_exec_catchpoint.
8843 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8844 TARGET_DEFAULT_RETURN.
8845
95c3375e
TT
88462014-02-19 Tom Tromey <tromey@redhat.com>
8847
8848 * target-delegates.c: Rebuild.
8849 * target.c (update_current_target): Don't inherit or default
8850 to_remove_vfork_catchpoint.
8851 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8852 TARGET_DEFAULT_RETURN.
8853
7e18a8dc
TT
88542014-02-19 Tom Tromey <tromey@redhat.com>
8855
8856 * target-delegates.c: Rebuild.
8857 * target.c (update_current_target): Don't inherit or default
8858 to_insert_vfork_catchpoint.
8859 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8860 TARGET_DEFAULT_RETURN.
8861
e1a21fb7
TT
88622014-02-19 Tom Tromey <tromey@redhat.com>
8863
8864 * target-delegates.c: Rebuild.
8865 * target.c (update_current_target): Don't inherit or default
8866 to_remove_fork_catchpoint.
8867 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8868 TARGET_DEFAULT_RETURN.
8869
5958ebeb
TT
88702014-02-19 Tom Tromey <tromey@redhat.com>
8871
8872 * target-delegates.c: Rebuild.
8873 * target.c (update_current_target): Don't inherit or default
8874 to_insert_fork_catchpoint.
8875 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8876 TARGET_DEFAULT_RETURN.
8877
340ba4bf
TT
88782014-02-19 Tom Tromey <tromey@redhat.com>
8879
8880 * target-delegates.c: Rebuild.
8881 * target.c (update_current_target): Don't inherit or default
8882 to_post_startup_inferior.
8883 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8884 TARGET_DEFAULT_IGNORE.
8885
7634da87
TT
88862014-02-19 Tom Tromey <tromey@redhat.com>
8887
8888 * target-delegates.c: Rebuild.
8889 * target.c (update_current_target): Don't inherit or default
8890 to_load.
8891 * target.h (struct target_ops) <to_load>: Use
8892 TARGET_DEFAULT_NORETURN.
8893
e19e919f
TT
88942014-02-19 Tom Tromey <tromey@redhat.com>
8895
8896 * target-delegates.c: Rebuild.
8897 * target.c (update_current_target): Don't inherit or default
8898 to_terminal_info.
8899 * target.h (struct target_ops) <to_terminal_info>: Use
8900 TARGET_DEFAULT_FUNC.
8901
c6ea8f79
TT
89022014-02-19 Tom Tromey <tromey@redhat.com>
8903
8904 * target-delegates.c: Rebuild.
8905 * target.c (update_current_target): Don't inherit or default
8906 to_terminal_save_ours.
8907 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8908 TARGET_DEFAULT_IGNORE.
8909
e4a733f1
TT
89102014-02-19 Tom Tromey <tromey@redhat.com>
8911
8912 * target-delegates.c: Rebuild.
8913 * target.c (update_current_target): Don't inherit or default
8914 to_terminal_ours.
8915 * target.h (struct target_ops) <to_terminal_ours>: Use
8916 TARGET_DEFAULT_IGNORE.
8917
74fcbef9
TT
89182014-02-19 Tom Tromey <tromey@redhat.com>
8919
8920 * target-delegates.c: Rebuild.
8921 * target.c (update_current_target): Don't inherit or default
8922 to_terminal_ours_for_output.
8923 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8924 TARGET_DEFAULT_IGNORE.
8925
ddeaacc9
TT
89262014-02-19 Tom Tromey <tromey@redhat.com>
8927
8928 * target-delegates.c: Rebuild.
8929 * target.c (update_current_target): Don't inherit or default
8930 to_terminal_inferior.
8931 * target.h (struct target_ops) <to_terminal_inferior>: Use
8932 TARGET_DEFAULT_IGNORE.
8933
0343661d
TT
89342014-02-19 Tom Tromey <tromey@redhat.com>
8935
8936 * target-delegates.c: Rebuild.
8937 * target.c (update_current_target): Don't inherit or default
8938 to_terminal_init.
8939 * target.h (struct target_ops) <to_terminal_init>: Use
8940 TARGET_DEFAULT_IGNORE.
8941
77cdffe9
TT
89422014-02-19 Tom Tromey <tromey@redhat.com>
8943
8944 * target-delegates.c: Rebuild.
8945 * target.c (update_current_target): Don't inherit or default
8946 to_can_accel_watchpoint_condition.
8947 * target.h (struct target_ops)
8948 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8949
d03655e4
TT
89502014-02-19 Tom Tromey <tromey@redhat.com>
8951
8952 * target-delegates.c: Rebuild.
8953 * target.c (update_current_target): Don't inherit or default
8954 to_region_ok_for_hw_watchpoint.
8955 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8956 Use TARGET_DEFAULT_FUNC.
8957
65f160a9
TT
89582014-02-19 Tom Tromey <tromey@redhat.com>
8959
8960 * target-delegates.c: Rebuild.
8961 * target.c (update_current_target): Don't inherit or default
8962 to_watchpoint_addr_within_range.
8963 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8964 Use TARGET_DEFAULT_FUNC.
8965
61dd109f
TT
89662014-02-19 Tom Tromey <tromey@redhat.com>
8967
8968 * target-delegates.c: Rebuild.
8969 * target.c (update_current_target): Don't inherit or default
8970 to_remove_watchpoint.
8971 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8972 TARGET_DEFAULT_NORETURN.
8973
016facd4
TT
89742014-02-19 Tom Tromey <tromey@redhat.com>
8975
8976 * target-delegates.c: Rebuild.
8977 * target.c (update_current_target): Don't inherit or default
8978 to_insert_watchpoint.
8979 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8980 TARGET_DEFAULT_RETURN.
8981
418dabac
TT
89822014-02-19 Tom Tromey <tromey@redhat.com>
8983
8984 * target-delegates.c: Rebuild.
8985 * target.c (update_current_target): Don't inherit or default
8986 to_remove_hw_breakpoint.
8987 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8988 TARGET_DEFAULT_RETURN.
8989
61b371f9
TT
89902014-02-19 Tom Tromey <tromey@redhat.com>
8991
8992 * target-delegates.c: Rebuild.
8993 * target.c (update_current_target): Don't inherit or default
8994 to_insert_hw_breakpoint.
8995 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8996 TARGET_DEFAULT_RETURN.
8997
52b51d06
TT
89982014-02-19 Tom Tromey <tromey@redhat.com>
8999
9000 * target-delegates.c: Rebuild.
9001 * target.c (update_current_target): Don't inherit or default
9002 to_can_use_hw_breakpoint.
9003 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9004 TARGET_DEFAULT_RETURN.
9005
f86e59b2
TT
90062014-02-19 Tom Tromey <tromey@redhat.com>
9007
9008 * target-delegates.c: Rebuild.
9009 * target.c (update_current_target): Don't inherit or default
9010 to_files_info.
9011 * target.h (struct target_ops) <to_files_info>: Use
9012 TARGET_DEFAULT_IGNORE.
9013
6c628163
TT
90142014-02-19 Tom Tromey <tromey@redhat.com>
9015
9016 * target-delegates.c: Rebuild.
9017 * target.c (update_current_target): Don't inherit or default
9018 to_store.
9019 * target.h (struct target_ops) <to_store>: Use
9020 TARGET_DEFAULT_NORETURN.
9021
bebd3233
TT
90222014-02-19 Tom Tromey <tromey@redhat.com>
9023
9024 * target-delegates.c: Rebuild.
9025 * target.c (update_current_target): Don't inherit or default
9026 to_post_attach.
9027 * target.h (struct target_ops) <to_post_attach>: Use
9028 TARGET_DEFAULT_IGNORE.
9029
a53f3625
TT
90302014-02-19 Tom Tromey <tromey@redhat.com>
9031
9032 * target-delegates.c: Rebuild.
9033 * target.c (update_current_target): Don't inherit or default
9034 to_rcmd.
9035 (default_rcmd): New function.
9036 (do_monitor_command): Unconditionally delegate.
9037 * target.h (struct target_ops) <to_rmcd>: Use
9038 TARGET_DEFAULT_FUNC.
9039
e9a29200
TT
90402014-02-19 Tom Tromey <tromey@redhat.com>
9041
9042 * target-delegates.c: Rebuild.
9043 * target.c (init_dummy_target): Don't initialize to_attach.
9044 (target_attach): Unconditionally delegate.
9045 * target.h (struct target_ops) <to_attach>: Use
9046 TARGET_DEFAULT_FUNC.
9047
09da0d0a
TT
90482014-02-19 Tom Tromey <tromey@redhat.com>
9049
9050 * target-delegates.c: Rebuild.
9051 * target.c (target_detach): Unconditionally delegate.
9052 (init_dummy_target): Don't initialize to_detach.
9053 * target.h (struct target_ops) <to_detach>: Use
9054 TARGET_DEFAULT_IGNORE.
9055
5436ff03
TT
90562014-02-19 Tom Tromey <tromey@redhat.com>
9057
9058 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9059 Add argument.
9060 (target_augmented_libraries_svr4_read): Add argument.
9061 * target.c (update_current_target): Update.
9062 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9063 argument.
9064
f0d960ea
TT
90652014-02-19 Tom Tromey <tromey@redhat.com>
9066
9067 * target.h (struct target_ops) <to_call_history_range>: Add
9068 argument.
9069 * target.c (target_call_history_range): Add argument.
9070 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9071 argument.
9072 (record_btrace_call_history_from): Update.
9073
ec0aea04
TT
90742014-02-19 Tom Tromey <tromey@redhat.com>
9075
9076 * target.h (struct target_ops) <to_call_history_from>: Add
9077 argument.
9078 * target.c (target_call_history_from): Add argument.
9079 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9080 argument.
9081
5df2fcba
TT
90822014-02-19 Tom Tromey <tromey@redhat.com>
9083
9084 * target.h (struct target_ops) <to_call_history>: Add argument.
9085 * target.c (target_call_history): Add argument.
9086 * record-btrace.c (record_btrace_call_history): Add 'self'
9087 argument.
9088
4e99c6b7
TT
90892014-02-19 Tom Tromey <tromey@redhat.com>
9090
9091 * target.h (struct target_ops) <to_insn_history_range>: Add
9092 argument.
9093 * target.c (target_insn_history_range): Add argument.
9094 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9095 argument.
9096 (record_btrace_insn_history_from): Update.
9097
9abc3ff3
TT
90982014-02-19 Tom Tromey <tromey@redhat.com>
9099
9100 * target.h (struct target_ops) <to_insn_history_from>: Add
9101 argument.
9102 * target.c (target_insn_history_from): Add argument.
9103 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9104 argument.
9105
7a6c5609
TT
91062014-02-19 Tom Tromey <tromey@redhat.com>
9107
9108 * target.h (struct target_ops) <to_insn_history>: Add argument.
9109 * target.c (target_insn_history): Add argument.
9110 * record-btrace.c (record_btrace_insn_history): Add 'self'
9111 argument.
9112
606183ac
TT
91132014-02-19 Tom Tromey <tromey@redhat.com>
9114
9115 * target.h (struct target_ops) <to_goto_record>: Add argument.
9116 * target.c (target_goto_record): Add argument.
9117 * record-full.c (record_full_goto): Add 'self' argument.
9118 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9119
307a1b91
TT
91202014-02-19 Tom Tromey <tromey@redhat.com>
9121
9122 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9123 * target.c (target_goto_record_end): Add argument.
9124 * record-full.c (record_full_goto_end): Add 'self' argument.
9125 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9126
08475817
TT
91272014-02-19 Tom Tromey <tromey@redhat.com>
9128
9129 * target.h (struct target_ops) <to_goto_record_begin>: Add
9130 argument.
9131 * target.c (target_goto_record_begin): Add argument.
9132 * record-full.c (record_full_goto_begin): Add 'self' argument.
9133 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9134 argument.
9135
1c63c994
TT
91362014-02-19 Tom Tromey <tromey@redhat.com>
9137
9138 * target.h (struct target_ops) <to_record_is_replaying>: Add
9139 argument.
9140 * target.c (target_record_is_replaying): Add argument.
9141 * record-full.c (record_full_is_replaying): Add 'self' argument.
9142 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9143 argument.
9144 (record_btrace_xfer_partial, record_btrace_store_registers)
9145 (record_btrace_prepare_to_store, record_btrace_resume)
9146 (record_btrace_wait, record_btrace_decr_pc_after_break)
9147 (record_btrace_find_new_threads, record_btrace_thread_alive):
9148 Update.
9149
d1b55219
TT
91502014-02-19 Tom Tromey <tromey@redhat.com>
9151
9152 * target.h (struct target_ops) <to_delete_record>: Add argument.
9153 * target.c (target_delete_record): Add argument.
9154 * record-full.c (record_full_delete): Add 'self' argument.
9155
1390f529
TT
91562014-02-19 Tom Tromey <tromey@redhat.com>
9157
9158 * target.h (struct target_ops) <to_save_record>: Add argument.
9159 * target.c (target_save_record): Add argument.
9160 * record-full.c (record_full_save): Add 'self' argument.
9161 (record_full_save): Add 'self' argument.
9162
630d6a4a
TT
91632014-02-19 Tom Tromey <tromey@redhat.com>
9164
9165 * target.h (struct target_ops) <to_info_record>: Add argument.
9166 * target.c (target_info_record): Add argument.
9167 * record.c (info_record_command): Add argument.
9168 * record-full.c (record_full_info): Add 'self' argument.
9169 * record-btrace.c (record_btrace_info): Add 'self' argument.
9170
c6cd7c02
TT
91712014-02-19 Tom Tromey <tromey@redhat.com>
9172
9173 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9174 * target.c (target_stop_recording): Add argument.
9175 * record.c (record_stop): Add argument.
9176 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9177 argument.
9178
39c49f83
TT
91792014-02-19 Tom Tromey <tromey@redhat.com>
9180
9181 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9182 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9183 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9184 argument.
9185 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9186 (_initialize_amd64_linux_nat): Use it.
9187 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9188 (_initialize_i386_linux_nat): Use it.
9189
1777056d
TT
91902014-02-19 Tom Tromey <tromey@redhat.com>
9191
9192 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9193 * target.c (target_teardown_btrace): Add argument.
9194 * remote.c (remote_teardown_btrace): Add 'self' argument.
9195 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9196 argument.
9197 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9198 argument.
9199
25e95349
TT
92002014-02-19 Tom Tromey <tromey@redhat.com>
9201
9202 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9203 * target.c (target_disable_btrace): Add argument.
9204 * remote.c (remote_disable_btrace): Add 'self' argument.
9205 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9206 argument.
9207 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9208 argument.
9209
e3c49f88
TT
92102014-02-19 Tom Tromey <tromey@redhat.com>
9211
9212 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9213 * target.c (target_enable_btrace): Add argument.
9214 * remote.c (remote_enable_btrace): Add 'self' argument.
9215 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9216 argument.
9217 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9218 argument.
9219
fe38f897
TT
92202014-02-19 Tom Tromey <tromey@redhat.com>
9221
9222 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9223 (target_can_use_agent): Add argument.
9224 * target.c (update_current_target): Update.
9225 * remote.c (remote_can_use_agent): Add 'self' argument.
9226 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9227
2c152180
TT
92282014-02-19 Tom Tromey <tromey@redhat.com>
9229
9230 * target.h (struct target_ops) <to_use_agent>: Add argument.
9231 (target_use_agent): Add argument.
9232 * target.c (update_current_target): Update.
9233 * remote.c (remote_use_agent): Add 'self' argument.
9234 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9235
a893e81f
TT
92362014-02-19 Tom Tromey <tromey@redhat.com>
9237
9238 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9239 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9240 (target_traceframe_info): Add argument.
9241 * target.c (update_current_target): Update.
9242 * remote.c (remote_traceframe_info): Add 'self' argument.
9243 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9244
c686c57f
TT
92452014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target.h (target_static_tracepoint_markers_by_strid): Add
9248 argument.
9249 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9250 'self' argument.
9251 * target.c (update_current_target): Update.
9252 * remote.c (struct target_ops)
9253 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9254 * linux-nat.c (struct target_ops)
9255 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9256
61fc905d
TT
92572014-02-19 Tom Tromey <tromey@redhat.com>
9258
9259 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9260 Add argument.
9261 (target_static_tracepoint_marker_at): Add argument.
9262 * target.c (update_current_target): Update.
9263 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9264 argument.
9265
c378d69d
TT
92662014-02-19 Tom Tromey <tromey@redhat.com>
9267
9268 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9269 (target_set_permissions): Add argument.
9270 * target.c (update_current_target): Update.
9271 * remote.c (remote_set_permissions): Add 'self' argument.
9272 (remote_start_remote): Update.
9273
bd7ae0f5
TT
92742014-02-19 Tom Tromey <tromey@redhat.com>
9275
9276 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9277 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9278 (target_get_tib_address): Add argument.
9279 * target.c (update_current_target): Update.
9280 * remote.c (remote_get_tib_address): Add 'self' argument.
9281
d9e68a2c
TT
92822014-02-19 Tom Tromey <tromey@redhat.com>
9283
9284 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9285 (target_set_trace_notes): Add argument.
9286 * target.c (update_current_target): Update.
9287 * remote.c (remote_set_trace_notes): Add 'self' argument.
9288
4da384be
TT
92892014-02-19 Tom Tromey <tromey@redhat.com>
9290
9291 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9292 argument.
9293 (target_set_trace_buffer_size): Add argument.
9294 * target.c (update_current_target): Update.
9295 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9296
736d5b1f
TT
92972014-02-19 Tom Tromey <tromey@redhat.com>
9298
9299 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9300 argument.
9301 (target_set_circular_trace_buffer): Add argument.
9302 * target.c (update_current_target): Update.
9303 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9304 argument.
9305
37b25738
TT
93062014-02-19 Tom Tromey <tromey@redhat.com>
9307
9308 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9309 argument.
9310 (target_set_disconnected_tracing): Add argument.
9311 * target.c (update_current_target): Update.
9312 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9313
0e67620a
TT
93142014-02-19 Tom Tromey <tromey@redhat.com>
9315
9316 * target.h (struct target_ops)
9317 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9318 (target_get_min_fast_tracepoint_insn_len): Add argument.
9319 * target.c (update_current_target): Update.
9320 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9321 argument.
9322
88ee6f45
TT
93232014-02-19 Tom Tromey <tromey@redhat.com>
9324
9325 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9326 argument.
9327 (target_get_raw_trace_data): Add argument.
9328 * target.c (update_current_target): Update.
9329 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9330
181e3713
TT
93312014-02-19 Tom Tromey <tromey@redhat.com>
9332
9333 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9334 Add argument.
9335 (target_upload_trace_state_variables): Add argument.
9336 * target.c (update_current_target): Update.
9337 * remote.c (remote_upload_trace_state_variables): Add 'self'
9338 argument.
9339 (remote_start_remote): Update.
9340
ab6617cc
TT
93412014-02-19 Tom Tromey <tromey@redhat.com>
9342
9343 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9344 argument.
9345 (target_upload_tracepoints): Add argument.
9346 * target.c (update_current_target): Update.
9347 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9348 (remote_start_remote): Update.
9349
dc3decaf
TT
93502014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9353 (target_save_trace_data): Add argument.
9354 * target.c (update_current_target): Update.
9355 * remote.c (remote_save_trace_data): Add 'self' argument.
9356
4011015b
TT
93572014-02-19 Tom Tromey <tromey@redhat.com>
9358
9359 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9360 argument.
9361 * target.h (struct target_ops)
9362 <to_get_trace_state_variable_value>: Add argument.
9363 (target_get_trace_state_variable_value): Add argument.
9364 * target.c (update_current_target): Update.
9365 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9366 argument.
9367 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9368
bd4c6793
TT
93692014-02-19 Tom Tromey <tromey@redhat.com>
9370
9371 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9372 * target.h (struct target_ops) <to_trace_find>: Add argument.
9373 (target_trace_find): Add argument.
9374 * target.c (update_current_target): Update.
9375 * remote.c (remote_trace_find): Add 'self' argument.
9376 * ctf.c (ctf_trace_find): Add 'self' argument.
9377
74499f1b
TT
93782014-02-19 Tom Tromey <tromey@redhat.com>
9379
9380 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9381 (target_trace_stop): Add argument.
9382 * target.c (update_current_target): Update.
9383 * remote.c (remote_trace_stop): Add 'self' argument.
9384
db90e85c
TT
93852014-02-19 Tom Tromey <tromey@redhat.com>
9386
9387 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9388 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9389 argument.
9390 (target_get_tracepoint_status): Add argument.
9391 * target.c (update_current_target): Update.
9392 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9393
8bd200f1
TT
93942014-02-19 Tom Tromey <tromey@redhat.com>
9395
9396 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9397 * target.h (struct target_ops) <to_get_trace_status>: Add
9398 argument.
9399 (target_get_trace_status): Add argument.
9400 * target.c (update_current_target): Update.
9401 * remote.c (remote_get_trace_status): Add 'self' argument.
9402 (remote_start_remote, remote_can_download_tracepoint): Update.
9403 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9404
e2d1aae3
TT
94052014-02-19 Tom Tromey <tromey@redhat.com>
9406
9407 * target.h (struct target_ops) <to_trace_start>: Add argument.
9408 (target_trace_start): Add argument.
9409 * target.c (update_current_target): Update.
9410 * remote.c (remote_trace_start): Add 'self' argument.
9411
583f9a86
TT
94122014-02-19 Tom Tromey <tromey@redhat.com>
9413
9414 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9415 Add argument.
9416 (target_trace_set_readonly_regions): Add argument.
9417 * target.c (update_current_target): Update.
9418 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9419 argument.
9420
780b049c
TT
94212014-02-19 Tom Tromey <tromey@redhat.com>
9422
9423 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9424 argument.
9425 (target_disable_tracepoint): Add argument.
9426 * target.c (update_current_target): Update.
9427 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9428
46670d57
TT
94292014-02-19 Tom Tromey <tromey@redhat.com>
9430
9431 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9432 argument.
9433 (target_enable_tracepoint): Add argument.
9434 * target.c (update_current_target): Update.
9435 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9436
559d2b81
TT
94372014-02-19 Tom Tromey <tromey@redhat.com>
9438
9439 * target.h (struct target_ops) <to_download_trace_state_variable>:
9440 Add argument.
9441 (target_download_trace_state_variable): Add argument.
9442 * target.c (update_current_target): Update.
9443 * remote.c (remote_download_trace_state_variable): Add 'self'
9444 argument.
9445
a52a8357
TT
94462014-02-19 Tom Tromey <tromey@redhat.com>
9447
9448 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9449 argument.
9450 (target_can_download_tracepoint): Add argument.
9451 * target.c (update_current_target): Update.
9452 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9453
548f7808
TT
94542014-02-19 Tom Tromey <tromey@redhat.com>
9455
9456 * target.h (struct target_ops) <to_download_tracepoint>: Add
9457 argument.
9458 (target_download_tracepoint): Add argument.
9459 * target.c (update_current_target): Update.
9460 * remote.c (remote_download_tracepoint): Add 'self' argument.
9461
ecae04e1
TT
94622014-02-19 Tom Tromey <tromey@redhat.com>
9463
9464 * target.h (struct target_ops) <to_trace_init>: Add argument.
9465 (target_trace_init): Add argument.
9466 * target.c (update_current_target): Update.
9467 * remote.c (remote_trace_init): Add 'self' argument.
9468
fab5aa7c
TT
94692014-02-19 Tom Tromey <tromey@redhat.com>
9470
9471 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9472 * target.c (target_fileio_readlink): Add argument.
9473 * remote.c (remote_hostio_readlink): Add 'self' argument.
9474 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9475
dbbca37d
TT
94762014-02-19 Tom Tromey <tromey@redhat.com>
9477
9478 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9479 * target.c (target_fileio_unlink): Add argument.
9480 * remote.c (remote_hostio_unlink): Add 'self' argument.
9481 (remote_file_delete): Update.
9482 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9483
df39ea25
TT
94842014-02-19 Tom Tromey <tromey@redhat.com>
9485
9486 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9487 * target.c (target_fileio_close): Add argument.
9488 * remote.c (remote_hostio_close): Add 'self' argument.
9489 (remote_hostio_close_cleanup): Update.
9490 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9491 Update.
9492 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9493
a3be983c
TT
94942014-02-19 Tom Tromey <tromey@redhat.com>
9495
9496 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9497 * target.c (target_fileio_pread): Add argument.
9498 * remote.c (remote_hostio_pread): Add 'self' argument.
9499 (remote_bfd_iovec_pread, remote_file_get): Update.
9500 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9501
0d866f62
TT
95022014-02-19 Tom Tromey <tromey@redhat.com>
9503
9504 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9505 * target.c (target_fileio_pwrite): Add argument.
9506 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9507 (remote_file_put): Update.
9508 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9509
cd897586
TT
95102014-02-19 Tom Tromey <tromey@redhat.com>
9511
9512 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9513 * target.c (target_fileio_open): Add argument.
9514 * remote.c (remote_hostio_open): Add 'self' argument.
9515 (remote_bfd_iovec_open): Add 'self' argument.
9516 (remote_file_put): Add 'self' argument.
9517 (remote_file_get): Add 'self' argument.
9518 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9519
78eff0ec
TT
95202014-02-19 Tom Tromey <tromey@redhat.com>
9521
9522 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9523 Add argument.
9524 (target_can_run_breakpoint_commands): Add argument.
9525 * target.c (update_current_target): Update.
9526 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9527 argument.
9528 (remote_insert_breakpoint): Add 'self' argument.
9529 (remote_insert_hw_breakpoint): Add 'self' argument.
9530 (remote_can_run_breakpoint_commands): Add 'self' argument.
9531
efcc2da7
TT
95322014-02-19 Tom Tromey <tromey@redhat.com>
9533
9534 * target.h (struct target_ops)
9535 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9536 (target_supports_evaluation_of_breakpoint_conditions): Add
9537 argument.
9538 * target.c (update_current_target): Update.
9539 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9540 argument.
9541 (remote_insert_breakpoint): Add 'self' argument.
9542 (remote_insert_hw_breakpoint): Add 'self' argument.
9543 (remote_supports_cond_breakpoints): Add 'self' argument.
9544
6de37a3a
TT
95452014-02-19 Tom Tromey <tromey@redhat.com>
9546
9547 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9548 argument.
9549 (target_supports_string_tracing): Add argument.
9550 * target.c (update_current_target): Update.
9551 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9552
2bfc0540
TT
95532014-02-19 Tom Tromey <tromey@redhat.com>
9554
9555 * target.h (struct target_ops)
9556 <to_supports_disable_randomization>: Add argument.
9557 * target.c (find_default_supports_disable_randomization): Add
9558 argument.
9559 (target_supports_disable_randomization): Add argument.
9560 (find_default_supports_disable_randomization): Add 'self'
9561 argument.
9562 * remote.c (extended_remote_supports_disable_randomization): Add
9563 'self' argument.
9564 (remote_supports_disable_randomization): Add 'self' argument.
9565 (extended_remote_create_inferior): Update.
9566 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9567 'self' argument.
9568
7d178d6a
TT
95692014-02-19 Tom Tromey <tromey@redhat.com>
9570
9571 * target.h (struct target_ops)
9572 <to_supports_enable_disable_tracepoint>: Add argument.
9573 (target_supports_enable_disable_tracepoint): Add argument.
9574 * target.c (update_current_target): Update.
9575 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9576 argument.
9577
86ce2668
TT
95782014-02-19 Tom Tromey <tromey@redhat.com>
9579
9580 * target.h (struct target_ops) <to_supports_multi_process>: Add
9581 argument.
9582 (target_supports_multi_process): Add argument.
9583 * target.c (update_current_target): Update.
9584 * remote.c (remote_supports_multi_process): Add 'self' argument.
9585 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9586 argument.
9587 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9588 argument.
9589
4c612759
TT
95902014-02-19 Tom Tromey <tromey@redhat.com>
9591
9592 * target.h (struct target_ops) <to_execution_direction>: Add
9593 argument.
9594 (target_execution_direction): Add argument.
9595 * target.c (default_execution_direction): Add 'self' argument.
9596 * record-full.c (record_full_execution_direction): Add 'self'
9597 argument.
9598
19db3e69
TT
95992014-02-19 Tom Tromey <tromey@redhat.com>
9600
9601 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9602 argument.
9603 (target_can_execute_reverse): Add argument.
9604 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9605 * record-full.c (record_full_can_execute_reverse): Add 'self'
9606 argument.
9607 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9608 argument.
9609
1e6b91a4
TT
96102014-02-19 Tom Tromey <tromey@redhat.com>
9611
9612 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9613 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9614 argument.
9615 (target_get_ada_task_ptid): Add argument.
9616 * target.c (update_current_target): Update.
9617 (default_get_ada_task_ptid): Add 'self' argument.
9618 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9619 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9620 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9621 argument.
9622 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9623 argument.
9624 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9625 argument.
9626 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9627 argument.
9628 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9629 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9630 argument.
9631
3c80fb48
TT
96322014-02-19 Tom Tromey <tromey@redhat.com>
9633
9634 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9635 (target_goto_bookmark): Add argument.
9636 * target.c (dummy_goto_bookmark): Add 'self' argument.
9637 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9638
dd0e2830
TT
96392014-02-19 Tom Tromey <tromey@redhat.com>
9640
9641 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9642 (target_get_bookmark): Add argument.
9643 * target.c (dummy_get_bookmark): Add 'self' argument.
9644 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9645
fc6691b2
TT
96462014-02-19 Tom Tromey <tromey@redhat.com>
9647
9648 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9649 argument.
9650 (target_make_corefile_notes): Add argument.
9651 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9652 * procfs.c (procfs_make_note_section): Add 'self' argument.
9653 (procfs_make_note_section): Add 'self' argument.
9654 (procfs_make_note_section): Add 'self' argument.
9655 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9656 argument.
9657 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9658 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9659 * exec.c (exec_make_note_section): Add 'self' argument.
9660 (exec_make_note_section): Add 'self' argument.
9661
2e73927c
TT
96622014-02-19 Tom Tromey <tromey@redhat.com>
9663
9664 * target.h (struct target_ops) <to_find_memory_regions>: Add
9665 argument.
9666 (target_find_memory_regions): Add argument.
9667 * target.c (dummy_find_memory_regions): Add 'self' argument.
9668 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9669 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9670 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9671 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9672 * exec. (exec_do_find_memory_regions): New global.
9673 (exec_set_find_memory_regions): Rewrite.
9674 (exec_find_memory_regions): New function.
9675 (init_exec_ops): Use exec_find_memory_regions.
9676
2a9a2795
TT
96772014-02-19 Tom Tromey <tromey@redhat.com>
9678
9679 * target.h (struct target_ops) <to_supports_non_stop>: Add
9680 argument.
9681 * target.c (find_default_supports_non_stop): Add argument.
9682 (target_supports_non_stop): Add argument.
9683 (find_default_supports_non_stop): Add 'self' argument.
9684 * remote.c (remote_supports_non_stop): Add 'self' argument.
9685 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9686
4ab76ea3
TT
96872014-02-19 Tom Tromey <tromey@redhat.com>
9688
9689 * target.h (struct target_ops) <to_log_command>: Add argument.
9690 (target_log_command): Add argument.
9691 * serial.h (serial_log_command): Add 'self' argument.
9692 * serial.c (serial_log_command): Add 'self' argument.
9693
8dd27370
TT
96942014-02-19 Tom Tromey <tromey@redhat.com>
9695
9696 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9697 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9698 argument.
9699 (target_pid_to_exec_file): Add argument.
9700 * target.c (debug_to_pid_to_exec_file): Add argument.
9701 (update_current_target): Update.
9702 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9703 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9704 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9705 (linux_handle_extended_wait): Update.
9706 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9707 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9708 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9709 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9710
1aac633b
TT
97112014-02-19 Tom Tromey <tromey@redhat.com>
9712
9713 * target.h (struct target_ops) <to_rcmd>: Add argument.
9714 (target_rcmd): Add argument.
9715 * target.c (debug_to_rcmd): Add argument.
9716 (update_current_target, do_monitor_command): Update.
9717 * remote.c (remote_rcmd): Add 'self' argument.
9718 * monitor.c (monitor_rcmd): Add 'self' argument.
9719
1eab8a48
TT
97202014-02-19 Tom Tromey <tromey@redhat.com>
9721
9722 * windows-nat.c (windows_stop): Add 'self' argument.
9723 * target.h (struct target_ops) <to_stop>: Add argument.
9724 * target.c (target_stop): Add argument.
9725 (debug_to_stop): Add argument.
9726 (update_current_target): Update.
9727 * remote.c (remote_stop): Add 'self' argument.
9728 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9729 (gdbsim_cntrl_c): Update.
9730 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9731 * procfs.c (procfs_stop): Add 'self' argument.
9732 * nto-procfs.c (procfs_stop): Add 'self' argument.
9733 * monitor.c (monitor_stop): Add 'self' argument.
9734 (monitor_open): Update.
9735 * linux-nat.c (linux_nat_stop): Add argument.
9736 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9737 * gnu-nat.c (gnu_stop): Add 'self' argument.
9738 * darwin-nat.c (darwin_stop): Add 'self' argument.
9739
503a628d
TT
97402014-02-19 Tom Tromey <tromey@redhat.com>
9741
9742 * target.h (struct target_ops) <to_thread_name>: Add argument.
9743 * target.c (target_thread_name): Add argument.
9744 (update_current_target): Update.
9745 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9746
c15906d8
TT
97472014-02-19 Tom Tromey <tromey@redhat.com>
9748
9749 * target.h (struct target_ops) <to_extra_thread_info>: Add
9750 argument.
9751 (target_extra_thread_info): Add argument.
9752 * target.c (update_current_target): Update.
9753 * remote.c (remote_threads_extra_info): Add 'self' argument.
9754 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9755 argument.
9756 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9757 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9758 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9759 argument.
9760 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9761 argument.
9762 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9763 argument.
9764 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9765 argument.
9766
daf5e9b6
TT
97672014-02-19 Tom Tromey <tromey@redhat.com>
9768
9769 * target.h (struct target_ops) <to_program_signals>: Add argument.
9770 * target.c (target_program_signals): Add argument.
9771 * remote.c (remote_program_signals): Add 'self' argument.
9772
94bedb42
TT
97732014-02-19 Tom Tromey <tromey@redhat.com>
9774
9775 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9776 * target.c (target_pass_signals): Add argument.
9777 * remote.c (remote_pass_signals): Add 'self' argument.
9778 (remote_start_remote): Update.
9779 * procfs.c (procfs_pass_signals): Add 'self' argument.
9780 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9781 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9782 (linux_nat_create_inferior, linux_nat_attach): Update.
9783
da82bd6b
TT
97842014-02-19 Tom Tromey <tromey@redhat.com>
9785
9786 * windows-nat.c (windows_can_run): Add 'self' argument.
9787 * target.h (struct target_ops) <to_can_run>: Add argument.
9788 (target_can_run): Add argument.
9789 * target.c (debug_to_can_run): Add argument.
9790 (update_current_target): Update.
9791 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9792 * inf-child.c (inf_child_can_run): Add 'self' argument.
9793 * go32-nat.c (go32_can_run): Add 'self' argument.
9794
d796e1d6
TT
97952014-02-19 Tom Tromey <tromey@redhat.com>
9796
9797 * target.h (struct target_ops) <to_has_exited>: Add argument.
9798 (target_has_exited): Add argument.
9799 * target.c (debug_to_has_exited): Add argument.
9800 (update_current_target): Update.
9801
ff214e67
TT
98022014-02-19 Tom Tromey <tromey@redhat.com>
9803
9804 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9805 argument.
9806 (target_set_syscall_catchpoint): Add argument.
9807 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9808 argument.
9809 * target.c (update_current_target): Update.
9810
758e29d2
TT
98112014-02-19 Tom Tromey <tromey@redhat.com>
9812
9813 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9814 argument.
9815 (target_remove_exec_catchpoint): Add argument.
9816 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9817 (update_current_target): Update.
9818 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9819 argument.
9820
ba025e51
TT
98212014-02-19 Tom Tromey <tromey@redhat.com>
9822
9823 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9824 argument.
9825 (target_insert_exec_catchpoint): Add argument.
9826 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9827 (update_current_target): Update.
9828 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9829 argument.
9830
e98cf0cd
TT
98312014-02-19 Tom Tromey <tromey@redhat.com>
9832
9833 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9834 argument.
9835 (target_remove_vfork_catchpoint): Add argument.
9836 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9837 (update_current_target): Update.
9838 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9839 argument.
9840
3ecc7da0
TT
98412014-02-19 Tom Tromey <tromey@redhat.com>
9842
9843 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9844 argument.
9845 (target_insert_vfork_catchpoint): Add argument.
9846 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9847 (update_current_target): Update.
9848 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9849 argument.
9850
973fc227
TT
98512014-02-19 Tom Tromey <tromey@redhat.com>
9852
9853 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9854 argument.
9855 (target_remove_fork_catchpoint): Add argument.
9856 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9857 (update_current_target): Update.
9858 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9859 argument.
9860
a863b201
TT
98612014-02-19 Tom Tromey <tromey@redhat.com>
9862
9863 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9864 argument.
9865 (target_insert_fork_catchpoint): Add argument.
9866 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9867 (update_current_target): Update.
9868 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9869 argument.
9870
2e97a79e
TT
98712014-02-19 Tom Tromey <tromey@redhat.com>
9872
9873 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9874 argument.
9875 (target_post_startup_inferior): Add argument.
9876 * target.c (debug_to_post_startup_inferior): Add argument.
9877 (update_current_target): Update.
9878 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9879 argument.
9880 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9881 argument.
9882 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9883 argument.
9884 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9885 argument.
9886 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9887 'self' argument.
9888 (super_post_startup_inferior): Likewise.
9889 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9890 'self' argument.
9891 (super_post_startup_inferior): Likewise.
9892 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9893 Add 'self' argument.
9894 (super_post_startup_inferior): Likewise.
9895
71a9f134
TT
98962014-02-19 Tom Tromey <tromey@redhat.com>
9897
9898 * target.h (struct target_ops) <to_load>: Add argument.
9899 * target.c (target_load): Add argument.
9900 (debug_to_load): Add argument.
9901 (update_current_target): Update.
9902 * remote.c (remote_load): Add 'self' argument.
9903 * remote-sim.c (gdbsim_load): Add 'self' argument.
9904 * remote-mips.c (mips_load): Add 'self' argument.
9905 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9906 * monitor.c (monitor_load): Add 'self' argument.
9907 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9908
0a4f40a2
TT
99092014-02-19 Tom Tromey <tromey@redhat.com>
9910
9911 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9912 (target_terminal_info): Add argument.
9913 * target.c (debug_to_terminal_info): Add argument.
9914 (default_terminal_info): Likewise.
9915 * inflow.c (child_terminal_info): Add 'self' argument.
9916 * inferior.h (child_terminal_info): Add 'self' argument.
9917 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9918
ae3bd431
TT
99192014-02-19 Tom Tromey <tromey@redhat.com>
9920
9921 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9922 argument.
9923 (target_terminal_save_ours): Add argument.
9924 * target.c (debug_to_terminal_save_ours): Add argument.
9925 (update_current_target): Update.
9926 * inflow.c (terminal_save_ours): Add 'self' argument.
9927 * inferior.h (terminal_save_ours): Add 'self' argument.
9928
e3594fd1
TT
99292014-02-19 Tom Tromey <tromey@redhat.com>
9930
9931 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9932 (target_terminal_ours): Add argument.
9933 * target.c (debug_to_terminal_ours): Add argument.
9934 (update_current_target): Update.
9935 * remote.c (remote_terminal_ours): Add 'self' argument.
9936 (remote_close): Update.
9937 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9938 * inflow.c (terminal_ours): Add 'self' argument.
9939 * inferior.h (terminal_ours): Add 'self' argument.
9940 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9941
2e1e1a19
TT
99422014-02-19 Pedro Alves <palves@redhat.com>
9943 Tom Tromey <tromey@redhat.com>
9944
9945 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9946 argument.
9947 (target_terminal_ours_for_output): Add argument.
9948 * target.c (debug_to_terminal_ours_for_output): Add argument.
9949 (update_current_target): Update.
9950 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9951 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9952 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9953
d2f640d4
TT
99542014-02-19 Tom Tromey <tromey@redhat.com>
9955
9956 * target.h (struct target_ops) <to_terminal_inferior>: Add
9957 argument.
9958 * target.c (target_terminal_inferior): Add argument.
9959 (update_current_target): Update.
9960 * remote.c (remote_terminal_inferior): Add 'self' argument.
9961 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9962 * inflow.c (terminal_inferior): Add 'self' argument.
9963 * inferior.h (terminal_inferior): Add 'self' argument.
9964 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9965 (go32_terminal_inferior): Add 'self' argument.
9966
c42bf286
TT
99672014-02-19 Tom Tromey <tromey@redhat.com>
9968
9969 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9970 (target_terminal_init): Add argument.
9971 * target.c (debug_to_terminal_init): Add argument.
9972 (update_current_target): Update.
9973 * inflow.c (terminal_init_inferior): Add 'self' argument.
9974 * inferior.h (terminal_init_inferior): Add 'self' argument.
9975 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9976 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9977
c3a5ff89
TT
99782014-02-19 Tom Tromey <tromey@redhat.com>
9979
9980 * target.h (struct target_ops)
9981 <to_can_accel_watchpoint_condition>: Add argument.
9982 (target_can_accel_watchpoint_condition): Add argument.
9983 * target.c (debug_to_can_accel_watchpoint_condition): Add
9984 argument.
9985 (update_current_target): Update.
9986 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9987 'self' argument.
9988
31568a15
TT
99892014-02-19 Tom Tromey <tromey@redhat.com>
9990
9991 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9992 Add argument.
9993 (target_region_ok_for_hw_watchpoint): Add argument.
9994 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9995 (default_region_ok_for_hw_watchpoint): Add argument.
9996 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9997 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9998 argument.
9999 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10000 argument.
10001 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10002 argument.
10003 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10004 'self' argument.
10005 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10006 'self' argument.
10007 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10008 'self' argument.
10009 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10010 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10011 'self' argument.
10012 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10013 Add 'self' argument.
10014
7bb99c53
TT
100152014-02-19 Tom Tromey <tromey@redhat.com>
10016
10017 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10018 argument.
10019 (target_insert_watchpoint): Add argument.
10020 * target.c (debug_to_insert_watchpoint): Add argument.
10021 (update_current_target): Update.
10022 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10023 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10024 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10025 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10026 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10027 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10028 argument.
10029 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10030 (procfs_insert_hw_watchpoint): Add 'self' argument.
10031 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10032 argument.
10033 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10034 argument.
10035 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10036 argument.
10037 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10038 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10039 argument.
10040 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10041 'self' argument.
10042
11b5219a
TT
100432014-02-19 Tom Tromey <tromey@redhat.com>
10044
10045 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10046 argument.
10047 (target_remove_watchpoint): Add argument.
10048 * target.c (debug_to_remove_watchpoint): Add argument.
10049 (update_current_target): Update.
10050 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10051 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10052 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10053 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10054 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10055 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10056 argument.
10057 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10058 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10059 argument.
10060 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10061 argument.
10062 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10063 argument.
10064 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10065 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10066 argument.
10067 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10068 'self' argument.
10069
a64dc96c
TT
100702014-02-19 Tom Tromey <tromey@redhat.com>
10071
10072 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10073 argument.
10074 (target_remove_hw_breakpoint): Add argument.
10075 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10076 (update_current_target): Update.
10077 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10078 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10079 argument.
10080 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10081 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10082 argument.
10083 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10084 'self' argument.
10085
23a26771
TT
100862014-02-19 Tom Tromey <tromey@redhat.com>
10087
10088 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10089 argument.
10090 (target_insert_hw_breakpoint): Add argument.
10091 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10092 (update_current_target): Update.
10093 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10094 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10095 argument.
10096 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10097 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10098 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10099 argument.
10100 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10101 'self' argument.
10102
5461485a
TT
101032014-02-19 Tom Tromey <tromey@redhat.com>
10104
10105 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10106 argument.
10107 (target_can_use_hardware_watchpoint): Add argument.
10108 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10109 (update_current_target): Update.
10110 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10111 argument.
10112 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10113 argument.
10114 * remote.c (remote_check_watch_resources): Add 'self' argument.
10115 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10116 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10117 argument.
10118 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10119 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10120 argument.
10121 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10122 argument.
10123 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10124 argument.
10125 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10126 argument.
10127 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10128 argument.
10129 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10130 argument.
10131 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10132 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10133 argument.
10134 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10135 'self' argument.
10136
f045800c
TT
101372014-02-19 Tom Tromey <tromey@redhat.com>
10138
10139 * target.h (struct target_ops) <to_post_attach>: Add argument.
10140 (target_post_attach): Add argument.
10141 * target.c (debug_to_post_attach): Add argument.
10142 (update_current_target): Update.
10143 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10144 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10145 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10146 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10147 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10148
de90e03d
TT
101492014-02-19 Tom Tromey <tromey@redhat.com>
10150
10151 * windows-nat.c (windows_close): Add 'self' argument.
10152 * tracepoint.c (tfile_close): Add 'self' argument.
10153 * target.h (struct target_ops) <to_close>: Add argument.
10154 * target.c (target_close): Add argument.
10155 (update_current_target): Update.
10156 * remote.c (remote_close): Add 'self' argument.
10157 * remote-sim.c (gdbsim_close): Add 'self' argument.
10158 * remote-mips.c (mips_close): Add 'self' argument.
10159 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10160 * record-full.c (record_full_close): Add 'self' argument.
10161 * record-btrace.c (record_btrace_close): Add 'self' argument.
10162 * monitor.h (monitor_close): Add 'self' argument.
10163 * monitor.c (monitor_close): Add 'self' argument.
10164 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10165 * linux-nat.c (linux_nat_close): Add argument.
10166 * go32-nat.c (go32_close): Add 'self' argument.
10167 * exec.c (exec_close_1): Add 'self' argument.
10168 * ctf.c (ctf_close): Add 'self' argument.
10169 * corelow.c (core_close): Add 'self' argument.
10170 (core_close_cleanup): Update.
10171 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10172 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10173
9dd130a0
TT
101742014-02-19 Tom Tromey <tromey@redhat.com>
10175
10176 * remote.c (remote_load): New function.
10177 (init_remote_ops): Use it.
10178
46917d26
TT
101792014-02-19 Tom Tromey <tromey@redhat.com>
10180
10181 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10182 argument.
10183 * common/linux-btrace.h (linux_supports_btrace): Update.
10184 * remote.c (remote_supports_btrace): Add "self" argument.
10185 * target-delegates.c: Rebuild.
10186 * target.c (target_supports_btrace): Remove.
10187 * target.h (struct target_ops) <to_supports_btrace>: Add
10188 target_ops argument.
10189 (target_supports_btrace): New define.
10190
6b84065d
TT
101912014-02-19 Tom Tromey <tromey@redhat.com>
10192
10193 * record-full.c (record_full_beneath_to_resume_ops)
10194 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10195 (record_full_beneath_to_wait)
10196 (record_full_beneath_to_store_registers_ops)
10197 (record_full_beneath_to_store_registers)
10198 (record_full_beneath_to_xfer_partial_ops)
10199 (record_full_beneath_to_xfer_partial)
10200 (record_full_beneath_to_insert_breakpoint_ops)
10201 (record_full_beneath_to_insert_breakpoint)
10202 (record_full_beneath_to_remove_breakpoint_ops)
10203 (record_full_beneath_to_remove_breakpoint)
10204 (record_full_beneath_to_stopped_by_watchpoint)
10205 (record_full_beneath_to_stopped_data_address)
10206 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10207 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10208 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10209 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10210 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10211 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10212 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10213 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10214 (record_full_resume, record_full_wait_1)
10215 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10216 (record_full_store_registers, record_full_xfer_partial)
10217 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10218 (record_full_async, record_full_core_xfer_partial): Use target
10219 delegation.
10220 * target-delegates.c: Rebuild.
10221 * target.c (current_xfer_partial): Remove.
10222 (update_current_target): Do not INHERIT or de_fault
10223 to_insert_breakpoint, to_remove_breakpoint,
10224 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10225 to_is_async_p, to_async. Do not set to_xfer_partial field.
10226 (default_xfer_partial): Simplify.
10227 (current_xfer_partial): Remove.
10228 (target_wait, target_resume): Simplify.
10229 (find_default_can_async_p, find_default_is_async_p): Update.
10230 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10231 to_xfer_partial, to_stopped_by_watchpoint,
10232 to_stopped_data_address.
10233 (target_store_registers): Simplify.
10234 (forward_target_remove_breakpoint)
10235 (forward_target_insert_breakpoint): Remove.
10236 (target_remove_breakpoint, target_insert_breakpoint)
10237 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10238 * target.h (struct target_ops) <to_resume, to_wait,
10239 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10240 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10241 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10242 markup.
10243 (forward_target_remove_breakpoint)
10244 (forward_target_insert_breakpoint): Remove.
10245 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10246 directly.
10247 (record_btrace_insert_breakpoint): Delegate directly.
10248
1101cb7b
TT
102492014-02-19 Tom Tromey <tromey@redhat.com>
10250
10251 PR build/7701:
10252 * target-delegates.c: New file.
10253 * target.c: Include target-delegates.c.
10254 (init_dummy_target): Call install_dummy_methods.
10255 (complete_target_initialization): Call install_delegators.
10256 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10257 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10258 * make-target-delegates: New file.
10259
8b06beed
TT
102602014-02-19 Tom Tromey <tromey@redhat.com>
10261
10262 * record.c (find_record_target): Use find_target_at.
10263 * target.c (find_target_at): New function.
10264 * target.h (find_target_at): Declare.
10265
6a109b6b
TT
102662014-02-19 Tom Tromey <tromey@redhat.com>
10267
10268 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10269 Add 'ops' argument.
10270 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10271 'ops' argument.
10272 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10273 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10274 'ops' argument.
10275 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10276 argument.
10277 * linux-nat.c (save_sigtrap): Update.
10278 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10279 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10280 (linux_nat_close): Update.
10281 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10282 argument.
10283 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10284 argument.
10285 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10286 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10287 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10288 (tmp_to_async): Add 'ops' argument.
10289 (record_full_stopped_by_watchpoint, record_full_async)
10290 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10291 argument.
10292 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10293 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10294 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10295 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10296 (remote_is_async_p, remote_async): Add 'ops' argument.
10297 (remote_stopped_data_address): Update.
10298 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10299 * target.c (update_current_target)
10300 (find_default_can_async_p, find_default_is_async_p): Update.
10301 (init_dummy_target): Update.
10302 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10303 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10304 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10305 (target_can_async_p, target_is_async_p, target_async)
10306 (target_stopped_by_watchpoint): Update.
10307
e095146b
YQ
103082014-02-19 Yao Qi <yao@codesourcery.com>
10309
10310 PR gdb/16220
10311 * gdbarch.sh: Remove startup_gdbarch.
10312 * gdbarch.c: Regenerated.
10313 * gdbarch.h: Likewise.
10314
bc3c6b36
KB
103152014-02-17 Kevin Buettner <kevinb@redhat.com>
10316
10317 * rl78-tdep.c (rl78_g10_register_name): New function.
10318 (rl78_return_value): Add g10 support.
10319 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10320 g10.
10321
98dc0167 103222014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10323
10324 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10325 (SUBDIR_GUILE_SRCS): Ditto.
10326 (scm-gsmob.o): Ditto.
10327
842c05cd
YQ
103282014-02-17 Yao Qi <yao@codesourcery.com>
10329
10330 * gnu-nat.c (ILL_RPC): Declare defined function.
10331
25c0bd04
YQ
103322014-02-17 Yao Qi <yao@codesourcery.com>
10333
10334 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10335 mach_msg_type_number_t.
10336 (gnu_write_inferior): Likewise.
10337
a9a758e3
YQ
103382014-02-17 Yao Qi <yao@codesourcery.com>
10339
10340 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10341 in format string.
10342 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10343 (inf_validate_procs, inf_signal): Likewise.
10344 (S_exception_raise_request): Likewise.
10345 (do_mach_notify_dead_name): Likewise.
10346 (steal_exc_port): Likewise.
10347 (gnu_read_inferior): Change 'copy_count''s type to
10348 mach_msg_type_number_t.
10349 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10350 format string.
10351
bae8023e
TS
103522014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10353
c82f56d9
TS
10354 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10355 flag. Adjust all users; in particular...
10356 (gnu_wait): ..., don't decrement its value in here...
10357 (gnu_create_inferior): ..., and instead set the flag in here,
10358 around the startup_inferior call, and call that one with
10359 START_INFERIOR_TRAPS_EXPECTED.
10360
3398af6a
TS
10361 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10362 (ILL_RPC): ... new macro.
10363 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10364 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10365 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10366 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10367 functions with ILL_RPC macro.
10368 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10369 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10370 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10371 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10372 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10373 (S_proc_getlogin_reply, S_proc_getsid_reply)
10374 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10375 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10376 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10377 (S_proc_getnports_reply, S_proc_is_important_reply)
10378 (S_proc_get_code_reply): New stub functions, generated with
10379 ILL_RPC macro.
10380
d47642c9
TS
10381 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10382 collected the type check structures.
10383
bae8023e
TS
10384 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10385
8a55ffb0
DE
103862014-02-14 Doug Evans <dje@google.com>
10387
10388 * target.c (target_write_partial): Fix result type.
10389
c2853f3d
JM
103902014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10391
10392 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10393 the proper offsets to access fpregset_t.
10394
ac61d2db
SA
103952014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10396
10397 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10398 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10399 * h8300-tdep.c (setmachinelist): Remove global.
10400 * hppa-tdep.c (hppa_sigtramp): Remove global.
10401 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10402 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10403 * ravenscar-thread.c (update_target_observer): Remove global.
10404 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10405
9d2d0b8b
TT
104062014-02-12 Tom Tromey <tromey@redhat.com>
10407
10408 * common/rsp-low.c: Update comments.
10409 * common/rsp-low.h: Update comments.
10410
a7191e8b
TT
104112014-02-12 Tom Tromey <tromey@redhat.com>
10412
10413 * common/rsp-low.c (convert_ascii_to_int): Remove.
10414 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10415
ff0e980e
TT
104162014-02-12 Tom Tromey <tromey@redhat.com>
10417
10418 * common/rsp-low.h (unhexify): Don't declare.
10419 * common/rsp-low.c (unhexify): Remove.
10420
e9371aff
TT
104212014-02-12 Tom Tromey <tromey@redhat.com>
10422
10423 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10424 * common/rsp-low.c (convert_int_to_ascii): Remove.
10425
971dc0b8
TT
104262014-02-12 Tom Tromey <tromey@redhat.com>
10427
10428 * common/rsp-low.h (hexify): Don't declare.
10429 * common/rsp-low.c (hexify): Remove.
10430
0a822afb
TT
104312014-02-12 Tom Tromey <tromey@redhat.com>
10432
10433 * common/rsp-low.c (hexify): Never take strlen of argument.
10434
9f1b45b0
TT
104352014-02-12 Tom Tromey <tromey@redhat.com>
10436
10437 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10438 * remote.c (extended_remote_run, remote_rcmd)
10439 (remote_download_trace_state_variable, remote_save_trace_data)
10440 (remote_set_trace_notes): Update.
10441 * tracepoint.c (encode_source_string, tfile_write_status)
10442 (tfile_write_uploaded_tsv): Update.
10443
9c3d6531
TT
104442014-02-12 Tom Tromey <tromey@redhat.com>
10445
10446 * tracepoint.c: Include rsp-low.h.
10447 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10448 * remote.c: Include rsp-low.h.
10449 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10450 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10451 (remote_unescape_input): Move to common/rsp-low.c.
10452 * common/rsp-low.h: New file.
10453 * common/rsp-low.c: New file.
10454 * Makefile.in (SFILES): Add common/rsp-low.c.
10455 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10456 (COMMON_OBS): Add rsp-low.o.
10457 (rsp-low.o): New target.
10458
01fd3ea5
TT
104592014-02-12 Tom Tromey <tromey@redhat.com>
10460
10461 * utils.h: Include print-utils.h.
10462 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10463 (int_string, core_addr_to_string, core_addr_to_string_nz)
10464 (hex_string, hex_string_custom): Don't declare.
10465 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10466 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10467 (hex_string_custom, int_string, core_addr_to_string)
10468 (core_addr_to_string_nz, host_address_to_string): Move to
10469 common/print-utils.c.
10470 * common/print-utils.h: New file.
10471 * common/print-utils.c: New file
10472 * Makefile.in (SFILES): Add common/print-utils.c.
10473 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10474 (COMMON_OBS): Add print-utils.o.
10475 (print-utils.o): New target.
10476
9fb50108
TT
104772014-02-12 Tom Tromey <tromey@redhat.com>
10478
10479 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10480
0548b5db
MK
104812014-02-12 Mark Kettenis <kettenis@gnu.org>
10482
10483 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10484
493443a4
MK
104852014-02-12 Mark Kettenis <kettenis@gnu.org>
10486
10487 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10488 if a PT_IO ptrace request returns sucessfully but indicates that 0
10489 bytes were transferred.
10490
706d0883
PA
104912014-02-12 Pedro Alves <palves@redhat.com>
10492 Kevin Buettner <kevinb@redhat.com>
10493
10494 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10495 TYPE_INSTANCE_FLAG_CODE_SPACE.
10496
5caa2f0b
PA
104972014-02-12 Pedro Alves <palves@redhat.com>
10498
10499 * h8300-tdep.c (pseudo_from_raw_register)
10500 (raw_from_pseudo_register): New functions.
10501 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10502 them.
10503
76fd5f74
PA
105042014-02-12 Pedro Alves <palves@redhat.com>
10505
10506 * h8300-tdep.c (h8300_register_sim_regno): New function.
10507 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10508 gdbarch_register_sim_regno hook.
10509
8f008406
SA
105102014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10511
10512 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10513
195abc10
SA
105142014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10515
10516 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10517
93ffa5b9
MK
105182014-02-12 Mark Kettenis <kettenis@gnu.org>
10519
10520 * obsd-tdep.h (obsd_init_abi): New prototype.
10521 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10522 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10523 (obsd_init_abi): New functions.
10524 * i386obsd-tdep.c: Include "obsd-tdep.h".
10525 (i386obsd_init_abi): Call obsd_init_abi.
10526 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10527 (amd64obsd_init_abi): Call obsd_init_abi.
10528 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10529 obsd-tdep.c to gdb_target_obs.
10530
49caec94
JM
105312014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10532
10533 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10534 double float arguments to 16-byte in the argument slots.
10535
e1402065
DE
105362014-02-11 Doug Evans <xdje42@gmail.com>
10537
10538 * configure.ac: Don't crash if pkg-config is not found and guile
10539 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10540 in guile checks.
10541 * configure: Regenerate.
10542
edcc890f
YQ
105432014-02-11 Yao Qi <yao@codesourcery.com>
10544
10545 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10546 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10547 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10548 * gnu-nat.c (gnu_xfer_memory): Likewise.
10549 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10550 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10551 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10552 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10553
9b409511
YQ
105542014-02-11 Yao Qi <yao@codesourcery.com>
10555
10556 * target.h (enum target_xfer_error): Rename to ...
10557 (enum target_xfer_status): ... it. New. All users updated.
10558 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10559 New.
10560 (TARGET_XFER_STATUS_ERROR_P): New macro.
10561 (target_xfer_error_to_string): Remove declaration.
10562 (target_xfer_status_to_string): Declare.
10563 (target_xfer_partial_ftype): Adjust it.
10564 (struct target_ops) <to_xfer_partial>: Return
10565 target_xfer_status. Add argument xfered_len. Update
10566 comments.
10567 * target.c (target_xfer_error_to_string): Rename to ...
10568 (target_xfer_status_to_string): ... it. New. All callers
10569 updated.
10570 (target_read_live_memory): Likewise. Call target_xfer_partial
10571 instead of target_read.
10572 (memory_xfer_live_readonly_partial): Return
10573 target_xfer_status. Add argument xfered_len.
10574 (raw_memory_xfer_partial): Likewise.
10575 (memory_xfer_partial_1): Likewise.
10576 (memory_xfer_partial): Likewise.
10577 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10578 properly. Update debug message.
10579 (default_xfer_partial, current_xfer_partial): Likewise.
10580 (target_write_partial): Likewise.
10581 (target_read_partial): Likewise. All callers updated.
10582 (read_whatever_is_readable): Likewise.
10583 (target_write_with_progress): Likewise.
10584 (target_read_alloc_1): Likewise.
10585
10586 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10587 * auxv.c (procfs_xfer_auxv): Likewise.
10588 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10589 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10590 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10591 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10592 * corefile.c (read_memory): Adjust.
10593 * corelow.c (core_xfer_partial): Likewise.
10594 * ctf.c (ctf_xfer_partial): Likewise.
10595 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10596 updated.
10597 (darwin_xfer_partial): Likewise.
10598 * exec.c (section_table_xfer_memory_partial): Likewise. All
10599 callers updated.
10600 (exec_xfer_partial): Likewise.
10601 * exec.h (section_table_xfer_memory_partial): Update
10602 declaration.
10603 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10604 negative.
10605 (gnu_xfer_partial): Likewise.
10606 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10607 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10608 (ia64_hpux_xfer_solib_got): Likewise.
10609 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10610 type of 'partial_len' to ULONGEST.
10611 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10612 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10613 (linux_nat_xfer_partial): Likewise.
10614 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10615 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10616 * monitor.c (monitor_xfer_memory): Likewise.
10617 (monitor_xfer_partial): Likewise.
10618 * procfs.c (procfs_xfer_partial): Likewise.
10619 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10620 * record-full.c (record_full_xfer_partial): Likewise.
10621 (record_full_core_xfer_partial): Likewise.
10622 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10623 (gdbsim_xfer_partial): Likewise.
10624 * remote.c (remote_write_bytes_aux): Likewise. All callers
10625 updated.
10626 (remote_write_bytes, remote_read_bytes): Likewise. All
10627 callers updated.
10628 (remote_flash_erase): Likewise. All callers updated.
10629 (remote_write_qxfer): Likewise. All callers updated.
10630 (remote_read_qxfer): Likewise. All callers updated.
10631 (remote_xfer_partial): Likewise.
10632 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10633 (rs6000_xfer_shared_libraries): Likewise.
10634 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10635 (sol_thread_xfer_partial): Likewise.
10636 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10637 (sparc_xfer_partial): Likewise.
10638 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10639 updated.
10640 (spu_xfer_partial): Likewise.
10641 * spu-multiarch.c (spu_xfer_partial): Likewise.
10642 * tracepoint.c (tfile_xfer_partial): Likewise.
10643 * windows-nat.c (windows_xfer_memory): Likewise.
10644 (windows_xfer_shared_libraries): Likewise.
10645 (windows_xfer_partial): Likewise.
10646 * valprint.c: Replace 'target_xfer_error' with
10647 'target_xfer_status' in comments.
10648
a8e63083
JB
106492014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10650
10651 Checked in by Joel Brobecker <brobecker@adacore.com>.
10652 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10653
e86b67d3
JB
106542014-02-11 Joel Brobecker <brobecker@adacore.com>
10655
10656 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10657 function parameters.
10658
4b7d1f7f
WN
106592014-02-10 Will Newton <will.newton@linaro.org>
10660
10661 * elfread.c (elf_rel_plt_read): Look for a .got section if
10662 looking up .got.plt fails.
10663 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10664 on address passed to elf_gnu_ifunc_record_cache.
10665 (elf_gnu_ifunc_resolve_addr): Likewise.
10666 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10667
961842b2
JM
106682014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10669
10670 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10671 (X_RETTURN): New macro.
10672 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10673
10674 * sparc64-tdep.c (sparc64_init_abi): Hook
10675 sparc_in_function_epilogue_p.
10676
3f03e7b1
GB
106772014-02-10 Gary Benson <gbenson@redhat.com>
10678
10679 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10680 Rename name_matcher to symbol_matcher.
10681
96f861ef
GB
106822014-02-10 Gary Benson <gbenson@redhat.com>
10683
10684 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10685 Use expand_symtabs_file_matcher_ftype and
10686 expand_symtabs_symbol_matcher_ftype.
10687
ee01b665
JB
106882014-02-10 Joel Brobecker <brobecker@adacore.com>
10689
10690 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10691 (struct ada_symbol_cache): New.
10692 (ada_free_symbol_cache): Forward declare.
10693 (struct ada_pspace_data): New.
10694 (ada_pspace_data_handle): New static global.
10695 (get_ada_pspace_data, ada_pspace_data_cleanup)
10696 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10697 (cache_space, cache): Delete, now folded inside struct
10698 ada_pspace_data.
10699 (ada_get_symbol_cache): New function.
10700 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10701 implementation.
10702 (_initialize_ada_language): Remove initialization of cache_space.
10703 Move call to observer_attach_inferior_exit up, grouping it
10704 with the other observer registrations inside this function.
10705 Rename command to be more general. Add call to
10706 register_program_space_data_with_cleanup.
10707
143adbbf
JB
107082014-02-10 Joel Brobecker <brobecker@adacore.com>
10709
10710 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10711 ada_new_objfile_observer.
10712 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10713 (_initialize_tasks): Update uses of ada_new_objfile_observer
10714 and ada_tasks_normal_stop_observer.
10715
aa4fb036
JB
107162014-02-10 Joel Brobecker <brobecker@adacore.com>
10717
10718 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10719 returned by the 'Length attribute to integer.
10720
9dee8cc6
JB
107212014-02-10 Joel Brobecker <brobecker@adacore.com>
10722
10723 * ada-lang.c (_initialize_ada_language): Initialize
10724 cache_space obstack.
10725
3d9434b5
JB
107262014-02-10 Joel Brobecker <brobecker@adacore.com>
10727
10728 * ada-lang.c (HASH_SIZE): New macro.
10729 (struct cache_entry): New type.
10730 (cache_space, cache): New static globals.
10731 (ada_clear_symbol_cache, find_entry): New functions.
10732 (lookup_cached_symbol, cache_symbol): Implement.
10733 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10734 (_initialize_ada_language): Attach ada_new_objfile_observer
10735 and ada_free_objfile_observer.
10736
f0c5f9b2
JB
107372014-02-10 Joel Brobecker <brobecker@adacore.com>
10738
10739 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10740 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10741 struct block * parameter.
10742 (ada_lookup_symbol_list_worker): Constify local variable "block".
10743 Remove cast which is no longer necessary.
10744
ed3ef339
DE
107452014-02-10 Doug Evans <xdje42@gmail.com>
10746
10747 Add Guile as an extension language.
10748 * NEWS: Mention Guile scripting.
10749 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10750 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10751 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10752 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10753 (CLIBS): Add GUILE_LIBS.
10754 (install-guile): New rule.
10755 (guile.o): New rule.
10756 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10757 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10758 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10759 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10760 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10761 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10762 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10763 * configure.ac: New option --with-guile.
10764 * configure: Regenerate.
10765 * config.in: Regenerate.
10766 * auto-load.c: Remove #include "python/python.h". Add #include
10767 "gdb/section-scripts.h".
10768 (source_section_scripts): Handle Guile scripts.
10769 (_initialize_auto_load): Add name of Guile objfile script to
10770 scripts-directory help text.
10771 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10772 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10773 (struct breakpoint): New member scm_bp_object.
10774 * defs.h (enum command_control_type): New value guile_control.
10775 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10776 "extension.h".
10777 (show_user): Update comment.
10778 (_initialize_cli_cmds): Update help text for "show user". Update help
10779 text for max-user-call-depth.
10780 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10781 "extension.h".
10782 (multi_line_command_p): Add guile_control.
10783 (print_command_lines): Handle guile_control.
10784 (execute_control_command, recurse_read_control_structure): Ditto.
10785 (process_next_line): Recognize "guile" commands.
10786 * disasm.c (gdb_disassemble_info): Make non-static.
10787 * disasm.h: #include "dis-asm.h".
10788 (struct gdbarch): Add forward decl.
10789 (gdb_disassemble_info): Declare.
10790 * extension.c: #include "guile/guile.h".
10791 (extension_languages): Add guile.
10792 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10793 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10794 * gdbtypes.c (get_unsigned_type_max): New function.
10795 (get_signed_type_minmax): New function.
10796 * gdbtypes.h (get_unsigned_type_max): Declare.
10797 (get_signed_type_minmax): Declare.
10798 * guile/README: New file.
10799 * guile/guile-internal.h: New file.
10800 * guile/guile.c: New file.
10801 * guile/guile.h: New file.
10802 * guile/scm-arch.c: New file.
10803 * guile/scm-auto-load.c: New file.
10804 * guile/scm-block.c: New file.
10805 * guile/scm-breakpoint.c: New file.
10806 * guile/scm-disasm.c: New file.
10807 * guile/scm-exception.c: New file.
10808 * guile/scm-frame.c: New file.
10809 * guile/scm-gsmob.c: New file.
10810 * guile/scm-iterator.c: New file.
10811 * guile/scm-lazy-string.c: New file.
10812 * guile/scm-math.c: New file.
10813 * guile/scm-objfile.c: New file.
10814 * guile/scm-ports.c: New file.
10815 * guile/scm-pretty-print.c: New file.
10816 * guile/scm-safe-call.c: New file.
10817 * guile/scm-string.c: New file.
10818 * guile/scm-symbol.c: New file.
10819 * guile/scm-symtab.c: New file.
10820 * guile/scm-type.c: New file.
10821 * guile/scm-utils.c: New file.
10822 * guile/scm-value.c: New file.
10823 * guile/lib/gdb.scm: New file.
10824 * guile/lib/gdb/boot.scm: New file.
10825 * guile/lib/gdb/experimental.scm: New file.
10826 * guile/lib/gdb/init.scm: New file.
10827 * guile/lib/gdb/iterator.scm: New file.
10828 * guile/lib/gdb/printing.scm: New file.
10829 * guile/lib/gdb/types.scm: New file.
10830 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10831 (VPATH): Add $(GUILE_SRCDIR).
10832 (GUILE_DIR): New variable.
10833 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10834 (all): Add stamp-guile dependency.
10835 (stamp-guile): New rule.
10836 (clean-guile, install-guile, uninstall-guile): New rules.
10837 (install-only): Add install-guile dependency.
10838 (uninstall): Add uninstall-guile dependency.
10839 (clean): Add clean-guile dependency.
10840
ac020ec5
DE
108412014-02-09 Doug Evans <xdje42@gmail.com>
10842
10843 Revert this patch (which I approved, mea culpa).
10844
10845 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10846
10847 * Makefile.in (all-lib): Remove.
10848 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10849
2a081c59
JK
108502014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10851
10852 Fix Python stack corruption.
10853 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10854 gdb_py_longest.
10855
0a6bd22d
MK
108562014-02-08 Mark Kettenis <kettenis@gnu.org>
10857
10858 * Makefile.in (all-lib): Remove.
10859 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10860
1a860409
DE
108612014-02-07 Doug Evans <dje@google.com>
10862
10863 * extension-priv.h (extension_language_script_ops): Add comment.
10864 (extension_language_ops): Add comment.
caf5a491 10865 (active_ext_lang_state): Fix typo in comment.
1a860409 10866
d137e6dc
PA
108672014-02-07 Pedro Alves <palves@redhat.com>
10868
0dcb32c3 10869 PR breakpoints/16292
d137e6dc
PA
10870 * infrun.c (handle_signal_stop) <signal arrives while stepping
10871 over a breakpoint>: Switch back to the stepping thread.
10872
ce6d0892
YQ
108732014-02-07 Yao Qi <yao@codesourcery.com>
10874
10875 * target.c (target_xfer_partial): Return zero if LEN is zero.
10876
2ed4b548
YQ
108772014-02-07 Yao Qi <yao@codesourcery.com>
10878
10879 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10880 (ld_so_xfer_auxv): Likewise.
10881 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10882 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10883 * corelow.c (core_xfer_partial): Likewise.
10884 * ctf.c (ctf_xfer_partial): Likewise.
10885 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10886 (darwin_xfer_partial): Likewise.
10887 * exec.c (exec_xfer_partial): Likewise.
10888 * gnu-nat.c (gnu_xfer_partial): Likewise.
10889 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10890 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10891 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10892 * linux-nat.c (linux_xfer_siginfo): Likewise.
10893 (linux_proc_xfer_spu): Likewise.
10894 * procfs.c (procfs_xfer_partial): Likewise.
10895 * record-full.c (record_full_xfer_partial): Likewise.
10896 (record_full_core_xfer_partial): Likewise.
10897 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10898 * remote.c (remote_write_qxfer): Likewise.
10899 (remote_write_qxfer, remote_read_qxfer): Likewise.
10900 (remote_xfer_partial): Likewise.
10901 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10902 (rs6000_xfer_shared_libraries): Likewise.
10903 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10904 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10905 (spu_xfer_partial): Likewise.
10906 * target.c (memory_xfer_partial_1): Likewise.
10907 * tracepoint.c (tfile_xfer_partial): Likewise.
10908 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10909 (windows_xfer_partial): Likewise.
10910
c09f20e4
YQ
109112014-02-07 Yao Qi <yao@codesourcery.com>
10912
10913 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10914 comments.
10915 (core_xfer_shared_libraries_aix): Likewise.
10916 * gdbarch.c, gdbarch.h: Regenerated.
10917 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10918 ULONGEST. Change 'len_avail' type to ULONGEST.
10919 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10920 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10921 declaration.
10922 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10923
8635b3bf
YQ
109242014-02-07 Yao Qi <yao@codesourcery.com>
10925
10926 * corefile.c (memory_error): Get 'exception' from ERR and pass
10927 'exception' to throw_error.
10928
6dddc817
DE
109292014-02-06 Doug Evans <xdje42@gmail.com>
10930
10931 * configure.ac (libpython checking): Remove all but python.o from
10932 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10933 * configure: Regenerate.
10934
10935 * Makefile.in (SFILES): Add extension.c.
10936 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10937 (COMMON_OBS): Add extension.o.
10938 * extension.h: New file.
10939 * extension-priv.h: New file.
10940 * extension.c: New file.
10941
10942 * python/python-internal.h: #include "extension.h".
10943 (gdbpy_auto_load_enabled): Declare.
10944 (gdbpy_apply_val_pretty_printer): Declare.
10945 (gdbpy_apply_frame_filter): Declare.
10946 (gdbpy_preserve_values): Declare.
10947 (gdbpy_breakpoint_cond_says_stop): Declare.
10948 (gdbpy_breakpoint_has_cond): Declare.
10949 (void source_python_script_for_objfile): Delete.
10950 * python/python.c: #include "extension-priv.h".
10951 Delete inclusion of "observer.h".
10952 (extension_language_python): Moved here and renamed from
10953 script_language_python in py-auto-load.c.
10954 Redefined to be of type extension_language_defn.
10955 (python_extension_script_ops): New global.
10956 (python_extension_ops): New global.
10957 (struct python_env): New member previous_active.
10958 (restore_python_env): Call restore_active_ext_lang.
10959 (ensure_python_env): Call set_active_ext_lang.
10960 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10961 New arg extlang.
10962 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10963 New arg extlang.
10964 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10965 New arg extlang.
10966 (gdbpy_eval_from_control_command): Renamed from
10967 eval_python_from_control_command, made static. New arg extlang.
10968 (gdbpy_source_script) Renamed from source_python_script, made static.
10969 New arg extlang.
10970 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10971 result to int. New arg extlang.
10972 (gdbpy_source_objfile_script): Renamed from
10973 source_python_script_for_objfile, made static. New arg extlang.
10974 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10975 static. New args extlang, extlang_printers. Change result type to
10976 "void".
10977 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10978 static. New arg extlang. Rename arg printers to extlang_printers
10979 and change type to ext_lang_type_printers *.
10980 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10981 static. Replace argument arg with extlang, extlang_printers.
10982 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10983 (!HAVE_PYTHON, source_python_script): Delete.
10984 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10985 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10986 (!HAVE_PYTHON, start_type_printers): Delete.
10987 (!HAVE_PYTHON, apply_type_printers): Delete.
10988 (!HAVE_PYTHON, free_type_printers): Delete.
10989 (_initialize_python): Delete call to observer_attach_before_prompt.
10990 (finalize_python): Set/restore active extension language.
10991 (gdbpy_finish_initialization) Renamed from
10992 finish_python_initialization, made static. New arg extlang.
10993 (gdbpy_initialized): New function.
10994 * python/python.h: #include "extension.h". Delete #include
10995 "value.h", "mi/mi-cmds.h".
10996 (extension_language_python): Declare.
10997 (GDBPY_AUTO_FILE_NAME): Delete.
10998 (enum py_bt_status): Moved to extension.h and renamed to
10999 ext_lang_bt_status.
11000 (enum frame_filter_flags): Moved to extension.h.
11001 (enum py_frame_args): Moved to extension.h and renamed to
11002 ext_lang_frame_args.
11003 (finish_python_initialization): Delete.
11004 (eval_python_from_control_command): Delete.
11005 (source_python_script): Delete.
11006 (apply_val_pretty_printer): Delete.
11007 (apply_frame_filter): Delete.
11008 (preserve_python_values): Delete.
11009 (gdbpy_script_language_defn): Delete.
11010 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11011 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11012
11013 * auto-load.c: #include "extension.h".
11014 (GDB_AUTO_FILE_NAME): Delete.
11015 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11016 (script_language_gdb): Delete, moved to extension.c and renamed to
11017 extension_language_gdb.
11018 (source_gdb_script_for_objfile): Delete.
11019 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11020 (loaded_script): Change type of language member to
11021 struct extension_language_defn *.
11022 (init_loaded_scripts_info): Initialize
11023 unsupported_script_warning_printed.
11024 (maybe_add_script): Make static. Change type of language arg to
11025 struct extension_language_defn *.
11026 (clear_section_scripts): Reset unsupported_script_warning_printed.
11027 (auto_load_objfile_script_1): Rewrite to use extension language API.
11028 (auto_load_objfile_script): Make public. Remove support-compiled-in
11029 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11030 (source_section_scripts): Rewrite to use extension language API.
11031 (load_auto_scripts_for_objfile): Rewrite to use
11032 auto_load_scripts_for_objfile.
11033 (collect_matching_scripts_data): Change type of language member to
11034 struct extension_language_defn *.
11035 (auto_load_info_scripts): Change type of language arg to
11036 struct extension_language_defn *.
11037 (unsupported_script_warning_print): New function.
11038 (script_not_found_warning_print): Make static.
11039 (_initialize_auto_load): Rewrite construction of scripts-directory
11040 help.
11041 * auto-load.h (struct objfile): Add forward decl.
11042 (struct script_language): Delete.
11043 (struct auto_load_pspace_info): Add forward decl.
11044 (struct extension_language_defn): Add forward decl.
11045 (maybe_add_script): Delete.
11046 (auto_load_objfile_script): Declare.
11047 (script_not_found_warning_print): Delete.
11048 (auto_load_info_scripts): Update prototype.
11049 (auto_load_gdb_scripts_enabled): Declare.
11050 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11051 auto_load_python_scripts_enabled and made public.
11052 (script_language_python): Delete, moved to python.c.
11053 (gdbpy_script_language_defn): Delete.
11054 (info_auto_load_python_scripts): Update to use
11055 extension_language_python.
11056
11057 * breakpoint.c (condition_command): Replace call to
11058 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11059 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11060 with call to breakpoint_ext_lang_cond_says_stop.
11061 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11062 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11063 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11064 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11065 New arg slang.
11066 (local_setattro): Print name of extension language with existing
11067 stop condition.
11068
11069 * valprint.c (val_print, value_print): Update to call
11070 apply_ext_lang_val_pretty_printer.
11071 * cp-valprint.c (cp_print_value): Update call to
11072 apply_ext_lang_val_pretty_printer.
11073 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11074 (gdbpy_apply_val_pretty_printer): Renamed from
11075 apply_val_pretty_printer. New arg extlang.
11076 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11077
11078 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11079 extension language API.
11080 * cli/cli-script.c (execute_control_command): Update to call
11081 eval_ext_lang_from_control_command.
11082
11083 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11084 enum ext_lang_bt_status values. Update call to
11085 apply_ext_lang_frame_filter.
11086 (mi_cmd_stack_list_locals): Ditto.
11087 (mi_cmd_stack_list_args): Ditto.
11088 (mi_cmd_stack_list_variables): Ditto.
11089 * mi/mi-main.c: Delete #include "python/python-internal.h".
11090 Add #include "extension.h".
11091 (mi_cmd_list_features): Replace reference to python internal variable
11092 gdb_python_initialized with call to ext_lang_initialized_p.
11093
11094 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11095 Update to use enum ext_lang_frame_args. Update to call
11096 apply_ext_lang_frame_filter.
11097 * python/py-framefilter.c (extract_sym): Update to use enum
11098 ext_lang_bt_status.
11099 (extract_value, py_print_type, py_print_value): Ditto.
11100 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11101 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11102 (py_print_frame): Ditto.
11103 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11104 New arg extlang. Update to use enum ext_lang_bt_status.
11105
11106 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11107 finish_python_initialization. Replace with call to
11108 finish_ext_lang_initialization.
11109
11110 * typeprint.c (do_free_global_table): Update to call
11111 free_ext_lang_type_printers.
11112 (create_global_typedef_table): Update to call
11113 start_ext_lang_type_printers.
11114 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11115 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11116 (type_print_options): Change type of global_printers from "void *"
11117 to "struct ext_lang_type_printers *".
11118
11119 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11120 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11121 (gdbpy_preserve_values): Renamed from preserve_python_values.
11122 New arg extlang.
11123 (!HAVE_PYTHON, preserve_python_values): Delete.
11124
11125 * utils.c (quit_flag): Delete, moved to extension.c.
11126 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11127 extension.c.
11128
11129 * eval.c: Delete #include "python/python.h".
11130 * main.c: Delete #include "python/python.h".
11131
11132 * defs.h: Update comment.
11133
6af79985
JB
111342014-02-06 Joel Brobecker <brobecker@adacore.com>
11135
11136 GDB 7.7 released.
11137
12c5175d
MK
111382014-02-05 Mark Kettenis <kettenis@gnu.org>
11139
11140 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11141 defined.
11142
8dc5b319
YQ
111432014-02-05 Yao Qi <yao@codesourcery.com>
11144
11145 * remote.c (remote_pass_signals): Remove local 'buf' and use
11146 rs->buf.
11147 (remote_program_signals): Likewise.
11148
de7b2893
YQ
111492014-02-05 Yao Qi <yao@codesourcery.com>
11150
11151 * ctf.c: Include "inferior.h" and "gdbthread.h".
11152 (CTF_PID): A new macro.
11153 (ctf_open): Call inferior_appeared and add_thread_silent.
11154 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11155 (ctf_thread_alive): New function.
11156 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11157
66d032ac
YQ
111582014-02-05 Yao Qi <yao@codesourcery.com>
11159
11160 Revert this patch:
11161
11162 2013-05-24 Yao Qi <yao@codesourcery.com>
11163
11164 * tracepoint.c (TFILE_PID): Remove.
11165 (tfile_open): Don't add thread and inferior.
11166 (tfile_close): Don't set 'inferior_ptid'. Don't call
11167 exit_inferior_silent.
11168 (tfile_thread_alive): Remove.
11169 (init_tfile_ops): Don't set field 'to_thread_alive' of
11170 tfile_ops.
11171
f4ccffad
CE
111722014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11173
11174 * remote.c (remote_start_remote): Call remote_check_symbols even
11175 if only symbol-file (not file) has been given.
11176
591a12a1
UW
111772014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11178
11179 * gdbarch.sh (skip_entrypoint): New callback.
11180 * gdbarch.c, gdbarch.h: Regenerate.
11181 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11182 * infrun.c (fill_in_stop_func): Likewise.
11183 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11184 (ppc_elfv2_elf_make_msymbol_special): New function.
11185 (ppc_elfv2_skip_entrypoint): Likewise.
11186 (ppc_linux_init_abi): Install them for ELFv2.
11187
cc0e89c5
UW
111882014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11189
11190 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11191 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11192 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11193 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11194 structures returned in GPRs.
11195
52f548e4
UW
111962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11197
11198 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11199 offset to the stack parameter list for the ELFv2 ABI.
11200
d4094b6a
UW
112012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11202
11203 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11204 set_gdbarch_convert_from_func_ptr_addr and
11205 set_gdbarch_elf_make_msymbol_special for ELFv1.
11206 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11207 function descriptors on ELFv1.
11208 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11209 set up r12 at function entry.
11210
cd453cd0
UW
112112014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11212
11213 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11214 (struct gdbarch_tdep): New member elf_abi.
11215
11216 * rs6000-tdep.c: Include "elf/ppc64.h".
11217 (rs6000_gdbarch_init): Detect ELF ABI version.
11218
0ff3e01f
UW
112192014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11220
11221 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11222 within a register pair holding a DFP 128-bit value on little-endian.
11223 (ppc64_sysv_abi_return_value_base): Likewise.
11224 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11225 (dfp_pseudo_register_write): Likewise.
11226
5b757e5d
UW
112272014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11228
11229 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11230 offset on little-endian when passing _Decimal32.
11231 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11232
084ee545
UW
112332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11234
11235 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11236 of the overlapped FP register within the VSX register on little-
11237 endian platforms.
11238 (efpr_pseudo_register_write): Likewise.
11239
d63167af
UW
112402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11241
11242 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11243 offset on little-endian when passing small structures.
11244
e765b44c
UW
112452014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11246
11247 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11248 (struct ppc64_sysv_argpos): New data structure.
11249 (ppc64_sysv_abi_push_float): Remove.
11250 (ppc64_sysv_abi_push_val): New function.
11251 (ppc64_sysv_abi_push_integer): Likewise.
11252 (ppc64_sysv_abi_push_freg): Likewise.
11253 (ppc64_sysv_abi_push_vreg): Likewise.
11254 (ppc64_sysv_abi_push_param): Likewise.
11255 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11256 (ppc64_sysv_abi_return_value_base): New function.
11257 (ppc64_sysv_abi_return_value): Refactor to use it.
11258
36c24d95
UW
112592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11260
11261 * NEWS: Document new target powerpc64le-*-linux*.
11262
26fd9228
MK
112632014-02-04 Mark Kettenis <kettenis@gnu.org>
11264
11265 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11266 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11267 core dumps.
11268 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11269 register set used in ELF core dumps. Add floating-point register set.
11270
c5bb7362
KB
112712014-02-03 Kevin Buettner <kevinb@redhat.com>
11272
74228e77 11273 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11274 dwarf2_to_gdb[] table using symbolic constants. Adjust
11275 penultimate entry from number representing the PC register
11276 to symbolic constant representing the MDR register. Add
11277 constant for the PC register to the end of the table.
11278
af09351e
MK
112792014-02-03 Mark Kettenis <kettenis@gnu.org>
11280
11281 * bsd-kvm.c: Include <sys/param.h>
11282
8507e05d
MK
112832014-02-03 Mark Kettenis <kettenis@gnu.org>
11284
11285 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11286
ae56bfb8
JB
112872014-01-31 Joel Brobecker <brobecker@adacore.com>
11288
11289 * ada-lang.h (clear_ada_sym_cache): Delete.
11290
718ee4dc
UW
112912014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11292
11293 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11294
401e27fd
JM
112952014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11296
11297 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11298 the sigreturn register save area only if the syscall is
11299 sigreturn.
11300
a7c88acd
JB
113012014-01-29 Joel Brobecker <brobecker@adacore.com>
11302
11303 * valops.c (value_slice): Minor reformatting.
11304
fa0079ea
UW
113052014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11306
11307 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11308
c6044dd1
JB
113092014-01-28 Joel Brobecker <brobecker@adacore.com>
11310
11311 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11312 New static globals.
11313 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11314 (ada_ignore_descriptive_types_p): New static global.
11315 (find_parallel_type_by_descriptive_type): Return immediately
11316 if ada_ignore_descriptive_types_p is set.
11317 (_initialize_ada_language): Register new commands "maintenance
11318 set ada", "maintenance show ada", "maintenance set ada
11319 ignore-descriptive-types" and "maintenance show ada
11320 ignore-descriptive-types".
11321 * NEWS: Add entry for new "maint ada set/show
11322 ignore-descriptive-types" commands.
11323
568e808b
MM
113242014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11325
11326 * record-btrace.c (record_btrace_close): Call btrace_teardown
11327 for all threads.
11328
467d141b
JB
113292014-01-27 Joel Brobecker <brobecker@adacore.com>
11330
11331 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11332 "ui-out.h".
11333
fb151210
JB
113342014-01-27 Joel Brobecker <brobecker@adacore.com>
11335
11336 * ada-typeprint (type_is_full_subrange_of_target_type):
11337 New function.
11338 (print_range): Add parameter bounds_prefered_p. If not set,
11339 try printing range types using the name of their base type.
11340 (print_range_type): Add parameter bounds_prefered_p.
11341 Use it in call to print_range.
11342 (print_array_type, ada_print_type): Update calls to print_range
11343 and print_range_type.
11344
aba02109
JB
113452014-01-27 Joel Brobecker <brobecker@adacore.com>
11346
11347 * ada-typeprint.c (print_array_type, print_choices, print_range)
11348 (print_range_bound, print_dynamic_range_bound, print_range_type):
11349 Remove declaration.
11350
e62e21fd
JB
113512014-01-27 Joel Brobecker <brobecker@adacore.com>
11352
11353 * ada-typeprint.c (print_range): Add missing empty line
11354 after local declaration.
11355
859cf5d1
JB
113562014-01-27 Joel Brobecker <brobecker@adacore.com>
11357
11358 * ada-valprint.c (print_optional_low_bound): Get index_type's
11359 target type for as long as it is a TYPE_CODE_RANGE.
11360
25790f6f
JB
113612014-01-27 Joel Brobecker <brobecker@adacore.com>
11362
11363 * procfs.c (procfs_make_note_section): Remove assertion and
11364 associated comment.
11365
6b6aa828
YQ
113662014-01-24 Yao Qi <yao@codesourcery.com>
11367
11368 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11369 * corelow.c (get_core_siginfo): Likewise.
11370
5d6df423
YQ
113712014-01-24 Yao Qi <yao@codesourcery.com>
11372
11373 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11374 ULONGEST. Don't check 'len' is negative.
11375 (remote_write_bytes): Change type of 'len' to ULONGEST.
11376
83b645b8
TT
113772014-01-23 Tom Tromey <tromey@redhat.com>
11378
11379 PR python/16485:
11380 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11381 Handle exception from frame.block.
11382 (FrameVars.fetch_frame_locals): Likewise.
11383
0740f8d8
TT
113842014-01-23 Tom Tromey <tromey@redhat.com>
11385
11386 PR python/16487:
11387 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11388 on a NULL pointer. Move "goto error" to correct place.
11389
21909fa1
TT
113902014-01-23 Tom Tromey <tromey@redhat.com>
11391
11392 PR python/16491:
11393 * python/py-framefilter.c (apply_frame_filter): Call
11394 ensure_python_env after computing gdbarch.
11395
17fde6d0
YQ
113962014-01-23 Yao Qi <yao@codesourcery.com>
11397
11398 * target.c (raw_memory_xfer_partial): Change argument type
11399 from void * to gdb_byte *.
11400 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11401
87ce2a04
DE
114022014-01-22 Doug Evans <dje@google.com>
11403
11404 New gdbserver option --debug-format=timestamp.
11405 * NEWS: Mention it.
11406
237b092b
AA
114072014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11408
11409 * syscalls/s390x-linux.xml: New file.
11410 * syscalls/s390-linux.xml: New file.
11411 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11412 (XML_SYSCALL_FILENAME_S390X): Likewise.
11413 (op_svc): New enum value for SVC opcode.
11414 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11415 (s390_linux_get_syscall_number): New function.
11416 (s390_gdbarch_init): Register '*get_syscall_number' and the
11417 syscall xml file name.
11418 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11419 "s390-linux.xml" and "s390x-linux.xml".
11420 * NEWS: Announce new feature.
11421
54bff650
BS
114222014-01-22 Baruch Siach <baruch@tkos.co.il>
11423
11424 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11425
14e361d7
PA
114262014-01-22 Pedro Alves <palves@redhat.com>
11427
11428 * xtensa-config.c: Include defs.h.
11429
46bbb3ed
JB
114302014-01-22 Joel Brobecker <brobecker@adacore.com>
11431
11432 * common/common-utils.h: Add "ARI:" comment beside __func__
11433 reference.
11434
3a80edfc
JB
114352014-01-22 Joel Brobecker <brobecker@adacore.com>
11436
11437 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11438 documentation a bit.
11439
4869db5e
RM
114402014-01-21 Roland McGrath <mcgrathr@google.com>
11441
11442 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11443 * configure: Regenerate.
11444 * aclocal.m4: Regenerate.
11445 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11446 New substituted variables.
11447 (install-strip): New target.
11448 (INSTALL_SCRIPT): New substituted variable.
11449 (FLAGS_TO_PASS): Add it.
11450 (install-only): Use $(INSTALL_SCRIPT) rather than
11451 $(INSTALL_PROGRAM) for gcore.
11452
9ea4267d
TT
114532014-01-20 Tom Tromey <tromey@redhat.com>
11454
11455 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11456 together.
11457
1f2bdf09
TT
114582014-01-20 Tom Tromey <tromey@redhat.com>
11459
11460 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11461 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11462 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11463 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11464 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11465 (struct cmd_list_element) <flags>: Remove.
11466 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11467 doc_allocated>: New fields.
11468 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11469 bitfields.
11470 * maint.c (maintenance_do_deprecate): Update.
11471 * top.c (execute_command): Update.
11472
e671835b
BS
114732014-01-20 Baruch Siach <baruch@tkos.co.il>
11474
11475 * xtensa-linux-nat.c: Include asm/ptrace.h.
11476
50367cd2
IB
114772014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11478
11479 * Makefile.in (SFILES): Add d-support.c.
11480 (COMMON_OBS): Add d-support.o.
11481 * d-lang.h (d_parse_symbol): Add comment, now defined in
11482 d-support.c.
11483 * d-lang.c (parse_call_convention)
11484 (parse_attributes, parse_function_types)
11485 (parse_function_args, parse_type, parse_identifier)
11486 (call_convention_p, d_parse_symbol): Move functions to ...
11487 * d-support.c: ... New file.
11488
ec9f644a
IB
114892014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11490
11491 * d-lang.h (d_parse_symbol): Add declaration.
11492 * d-lang.c (extract_identifiers)
11493 (extract_type_info): Remove functions.
11494 (parse_call_convention, parse_attributes)
11495 (parse_function_types, parse_function_args)
11496 (parse_type, parse_identifier, call_convention_p)
11497 (d_parse_symbol): New functions.
11498 (d_demangle): Use d_parse_symbol to demangle D symbols.
11499
94b1b47e
IB
115002014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11501
11502 * d-lang.h (struct builtin_d_type): New data type.
11503 (builtin_d_type): Add declaration.
11504 * d-lang.c (d_language_arch_info, build_d_types)
11505 (builtin_d_type): New functions.
11506 (enum d_primitive_types): New data type.
11507 (d_language_defn): Change c_language_arch_info to
11508 d_language_arch_info.
11509 (d_type_data): New static variable.
11510 (_initialize_d_language): Initialize d_type_data.
11511
63778547
IB
115122014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11513
11514 * d-lang.h (d_main_name): Add declaration.
11515 * d-lang.c (d_main_name): New function.
11516 * symtab.c (find_main_name): Add call to d_main_name.
11517
3271ba66
IB
115182014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11519
11520 * d-lang.c (d_language_defn): Change macro_expansion_c to
11521 macro_expansion_no.
11522
d36b3012
IB
115232014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11524
11525 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11526
c90a6fb7
SDJ
115272014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11528
11529 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11530 gdb_exception" declaration.
11531 * remote.c (getpkt_or_notif_sane): Likewise.
11532
749234e5
DE
115332014-01-17 Doug Evans <dje@google.com>
11534
11535 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11536 function, contents of dirnames_to_char_ptr_vec_append moved here.
11537 (delim_string_to_char_ptr_vec): New function.
11538 (dirnames_to_char_ptr_vec_append): Rewrite.
11539 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11540
df049a58
DE
115412014-01-17 Doug Evans <dje@google.com>
11542
11543 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11544 and moved here ...
11545 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11546 #include "common-utils.h".
11547 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11548 * common/vec.h (VEC_ASSERT_PASS): Update.
11549 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11550 (MACH_CHECK_ERROR): Update.
11551
69f97648
SM
115522014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11553
11554 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11555 comments.
11556 * gdbarch.h: Regenerate.
11557
98b1cfdc
TT
115582014-01-16 Tom Tromey <tromey@redhat.com>
11559
11560 * value.c (struct value) <regnum>: Move earlier.
11561
77a19445
TT
115622014-01-16 Tom Tromey <tromey@redhat.com>
11563
11564 * remote.c (extended_remote_create_inferior): Rename from
11565 extended_remote_create_inferior_1. Add "ops" argument. Remove
11566 old implementation.
11567
62261490
PA
115682014-01-16 Pedro Alves <palves@redhat.com>
11569
11570 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11571 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11572 the backchain.
11573
4d65956b
DE
115742014-01-16 Doug Evans <dje@google.com>
11575
11576 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11577
52834460
MM
115782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11579
11580 * btrace.h (btrace_thread_flag): New.
11581 (struct btrace_thread_info) <flags>: New.
11582 * record-btrace.c (record_btrace_resume_thread)
11583 (record_btrace_find_thread_to_move, btrace_step_no_history)
11584 (btrace_step_stopped, record_btrace_start_replaying)
11585 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11586 (record_btrace_find_resume_thread): New.
11587 (record_btrace_resume, record_btrace_wait): Extend.
11588 (record_btrace_can_execute_reverse): New.
11589 (record_btrace_open): Fail in non-stop mode.
11590 (record_btrace_set_replay): Split into this, ...
11591 (record_btrace_stop_replaying): ... this, ...
11592 (record_btrace_clear_histories): ... and this.
11593 (init_record_btrace_ops): Init to_can_execute_reverse.
11594 * NEWS: Announce it.
11595
118e6252
MM
115962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11597
11598 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11599 (forward_target_decr_pc_after_break)
11600 (target_decr_pc_after_break): New.
11601 * target.c (forward_target_decr_pc_after_break)
11602 (target_decr_pc_after_break): New.
11603 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11604 instead of gdbarch_decr_pc_after_break.
11605 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11606 instead of gdbarch_decr_pc_after_break.
11607 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11608 instead of gdbarch_decr_pc_after_break.
11609 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11610 instead of gdbarch_decr_pc_after_break.
11611 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11612 instead of gdbarch_decr_pc_after_break.
11613 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11614 instead of gdbarch_decr_pc_after_break.
11615
6e07b1d2
MM
116162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11617
11618 * btrace.c: Include regcache.h.
11619 (btrace_add_pc): New.
11620 (btrace_enable): Call btrace_add_pc.
11621 (btrace_is_empty): New.
11622 * btrace.h (btrace_is_empty): New.
11623 * record-btrace.c (require_btrace, record_btrace_info): Call
11624 btrace_is_empty.
11625
969c39fb
MM
116262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11627
11628 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11629 Support delta reads.
11630 (linux_disable_btrace): Change return type.
11631 * common/linux-btrace.h (linux_read_btrace): Change parameters
11632 and return type to allow error reporting. Update users.
11633 (linux_disable_btrace): Change return type. Update users.
11634 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11635 New.
11636 (btrace_error): New.
11637 (btrace_block) <begin>: Comment on BEGIN == 0.
11638 * btrace.c (btrace_compute_ftrace): Start from the end of
11639 the current trace.
11640 (btrace_stitch_trace, btrace_clear_history): New.
11641 (btrace_fetch): Read delta trace, return if replaying.
11642 (btrace_clear): Move clear history code to btrace_clear_history.
11643 (parse_xml_btrace): Throw an error if parsing failed.
11644 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11645 and return type to allow error reporting.
11646 (target_read_btrace): Change parameters and return type to allow
11647 error reporting.
11648 * target.c (target_read_btrace): Update.
11649 * remote.c (remote_read_btrace): Support delta reads. Pass
11650 errors on.
11651 * NEWS: Announce it.
11652
0b722aec
MM
116532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11654
11655 * record.h (record_btrace_frame_unwind)
11656 (record_btrace_tailcall_frame_unwind): New declarations.
11657 * dwarf2-frame: Include record.h
11658 (dwarf2_frame_cfa): Throw an error for btrace frames.
11659 * record-btrace.c: Include hashtab.h.
11660 (btrace_get_bfun_name): New.
11661 (btrace_call_history): Call btrace_get_bfun_name.
11662 (struct btrace_frame_cache): New.
11663 (bfcache): New.
11664 (bfcache_hash, bfcache_eq, bfcache_new): New.
11665 (btrace_get_frame_function): New.
11666 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11667 (record_btrace_frame_this_id): Compute own id.
11668 (record_btrace_frame_prev_register): Provide PC, throw_error
11669 for all other registers.
11670 (record_btrace_frame_sniffer): Detect btrace frames.
11671 (record_btrace_tailcall_frame_sniffer): New.
11672 (record_btrace_frame_dealloc_cache): New.
11673 (record_btrace_frame_unwind): Add new functions.
11674 (record_btrace_tailcall_frame_unwind): New.
11675 (_initialize_record_btrace): Allocate cache.
11676 * btrace.c (btrace_clear): Call reinit_frame_cache.
11677 * NEWS: Announce it.
11678
066ce621
MM
116792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11680
11681 * record-btrace.c (record_btrace_set_replay)
11682 (record_btrace_goto_begin, record_btrace_goto_end)
11683 (record_btrace_goto): New.
11684 (init_record_btrace_ops): Initialize them.
11685 * NEWS: Announce it.
11686
e2887aa3
MM
116872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11688
11689 * record-btrace.c (record_btrace_find_new_threads)
11690 (record_btrace_thread_alive): New.
11691 (init_record_btrace_ops): Initialize to_find_new_threads and
11692 to_thread_alive.
11693
b2f4cfde
MM
116942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11695
11696 * record-btrace.c (record_btrace_resume): New.
11697 (record_btrace_wait): New.
11698 (init_record_btrace_ops): Initialize to_wait and to_resume.
11699
633785ff
MM
117002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11701
11702 * record-btrace.c (record_btrace_xfer_partial)
11703 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11704 (record_btrace_allow_memory_access): New.
11705 (init_record_btrace_ops): Initialize new methods.
11706 * target.c (raw_memory_xfer_partial): Bail out if target reports
11707 that this memory is not available.
11708
3db08215
MM
117092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11710
11711 * target.h (target_ops) <to_insert_breakpoint>
11712 <to_remove_breakpoint>: Add target_ops parameter.
11713 (forward_target_insert_breakpoint): New.
11714 (forward_target_remove_breakpoint): New.
11715 (memory_remove_breakpoint, memory_insert_breakpoint):
11716 Add target_ops parameter.
11717 * target.c (target_insert_breakpoint): Split into this and ...
11718 (forward_target_insert_breakpoint): ... this.
11719 (target_remove_breakpoint): Split into this and ...
11720 (forward_target_remove_breakpoint): ... this.
11721 (debug_to_insert_breakpoint): Add target_ops parameter.
11722 Call forward_target_insert_breakpoint.
11723 (debug_to_remove_breakpoint): Add target_ops parameter.
11724 Call forward_target_remove_breakpoint.
11725 (update_current_target): Do not inherit or default to_insert_breakpoint
11726 and to_remove_breakpoint.
11727 * corelow.c (ignore): Add target_ops parameter.
11728 * exec.c (ignore): Add target_ops parameter.
11729 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11730 Add target_ops parameter.
11731 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11732 Add target_ops parameter.
11733 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11734 Add target_ops parameter.
11735 * record-full.c (record_full_beneath_to_insert_breakpoint)
11736 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11737 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11738 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11739 (record_full_core_remove_breakpoint): Add target_ops parameter.
11740 Update users.
11741 (record_full_beneath_to_insert_breakpoint_ops)
11742 (record_full_beneath_to_remove_breakpoint_ops)
11743 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11744 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11745 tmp_to_remove_breakpoint_ops,
11746 record_full_beneath_to_insert_breakpoint_ops, and
11747 record_full_beneath_to_remove_breakpoint_ops.
11748 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11749 (m32r_remove_breakpoint): Add target_ops parameter.
11750 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11751 Add target_ops parameter.
11752 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11753 Add target_ops parameter.
11754
cecac1ab
MM
117552014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11756 Markus Metzger <markus.t.metzger@intel.com>
11757
11758 * record-btrace.c: Include frame-unwind.h.
11759 (record_btrace_frame_unwind_stop_reason)
11760 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11761 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11762 New.
11763 (init_record_btrace_ops): Install it.
11764
824344ca
MM
117652014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11766
11767 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11768 get_prev_frame_1.
11769
32261e52
MM
117702014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11771
11772 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11773 earlier.
11774
ea001bdc
MM
117752014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11776
11777 * frame-unwind.c: Include target.h.
11778 (frame_unwind_try_unwinder): New function with code from ...
11779 (frame_unwind_find_by_frame): ... here. New variable
11780 unwinder_from_target, call also target_get_unwinder)
11781 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11782 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11783 * target.h (struct target_ops): New fields to_get_unwinder and
11784 to_get_tailcall_unwinder.
11785 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11786
1f3ef581
MM
117872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11788
11789 * record-btrace.c (record_btrace_fetch_registers)
11790 (record_btrace_store_registers)
11791 (record_btrace_to_prepare_to_store): New.
11792 (init_record_btrace_ops): Add the above.
11793
f32dbf8c
MM
117942014-01-16 Tom Tromey <tromey@redhat.com>
11795
11796 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11797 * target.h (struct target_ops) <to_prepare_to_store>: Add
11798 argument.
11799 (target_prepare_to_store): Add argument.
11800 * target.c (debug_to_prepare_to_store): Add argument.
11801 (update_current_target): Update.
11802 * remote.c (remote_prepare_to_store): Add 'self' argument.
11803 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11804 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11805 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11806 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11807 argument.
11808 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11809 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11810 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11811 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11812 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11813
07bbe694
MM
118142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11815
11816 * btrace.h (replay) <replay>: New.
11817 (btrace_is_replaying): New.
11818 * btrace.c (btrace_clear): Free replay iterator.
11819 (btrace_is_replaying): New.
11820 * record-btrace.c (record_btrace_is_replaying): New.
11821 (record_btrace_info): Print insn number if replaying.
11822 (record_btrace_insn_history): Start at replay position.
11823 (record_btrace_call_history): Start at replay position.
11824 (init_record_btrace_ops): Init to_record_is_replaying.
11825
0688d04e
MM
118262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11827
11828 * record-btrace.c (record_btrace_insn_history_range): Include
11829 end.
11830 (record_btrace_insn_history_from): Adjust range.
11831 (record_btrace_call_history_range): Include
11832 end.
11833 (record_btrace_call_history_from): Adjust range.
11834 * NEWS: Announce changes.
11835
8710b709
MM
118362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11837
11838 * record.h (enum record_print_flag)
11839 <record_print_indent_calls>: New.
11840 * record.c (get_call_history_modifiers): Recognize /c modifier.
11841 (_initialize_record): Document /c modifier.
11842 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11843 Reorder fields. Optionally indent the function name. Update
11844 all users.
11845 * NEWS: Announce changes.
11846
d0fa7535
MM
118472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11848
11849 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11850
5de9129b
MM
118512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11852
11853 * btrace.c (ftrace_new_function): Start counting at one.
11854 * record-btrace.c (record_btrace_info): Adjust number of calls
11855 and insns.
11856 * NEWS: Announce it.
11857
7acbe133
MM
118582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11859
11860 * record-btrace.c (btrace_call_history_insn_range): Print
11861 insn range as [begin, end].
11862
23a7fe75
MM
118632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11864
11865 * btrace.h (struct btrace_func_link): New.
11866 (enum btrace_function_flag): New.
11867 (struct btrace_inst): Rename to ...
11868 (struct btrace_insn): ...this. Update all users.
11869 (struct btrace_func) <ibegin, iend>: Remove.
11870 (struct btrace_func_link): New.
11871 (struct btrace_func): Rename to ...
11872 (struct btrace_function): ...this. Update all users.
11873 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11874 (number, level, flags>: New.
11875 (struct btrace_insn_iterator): Rename to ...
11876 (struct btrace_insn_history): ...this.
11877 Update all users.
11878 (struct btrace_insn_iterator, btrace_call_iterator): New.
11879 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11880 (struct btrace_target_info) <begin, end, level>
11881 <insn_history, call_history>: New.
11882 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11883 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11884 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11885 (btrace_call_number, btrace_call_begin, btrace_call_end)
11886 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11887 (btrace_find_function_by_number, btrace_set_insn_history)
11888 (btrace_set_call_history): New.
11889 * btrace.c (btrace_init_insn_iterator)
11890 (btrace_init_func_iterator, compute_itrace): Remove.
11891 (ftrace_print_function_name, ftrace_print_filename)
11892 (ftrace_skip_file): Change
11893 parameter to const.
11894 (ftrace_init_func): Remove.
11895 (ftrace_debug): Use new btrace_function fields.
11896 (ftrace_function_switched): Also consider gaining and
11897 losing symbol information).
11898 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11899 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11900 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11901 New.
11902 (ftrace_new_function): Move. Remove debug print.
11903 (ftrace_update_lines, ftrace_update_insns): New.
11904 (ftrace_update_function): Check for call, ret, and jump.
11905 (compute_ftrace): Renamed to ...
11906 (btrace_compute_ftrace): ...this. Rewritten to compute call
11907 stack.
11908 (btrace_fetch, btrace_clear): Updated.
11909 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11910 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11911 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11912 (btrace_call_number, btrace_call_begin, btrace_call_end)
11913 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11914 (btrace_find_function_by_number, btrace_set_insn_history)
11915 (btrace_set_call_history): New.
11916 * record-btrace.c (require_btrace): Use new btrace thread
11917 info fields.
11918 (record_btrace_info, btrace_insn_history)
11919 (record_btrace_insn_history, record_btrace_insn_history_range):
11920 Use new btrace thread info fields and new iterator.
11921 (btrace_func_history_src_line): Rename to ...
11922 (btrace_call_history_src_line): ...this. Use new btrace
11923 thread info fields.
11924 (btrace_func_history): Rename to ...
11925 (btrace_call_history): ...this. Use new btrace thread info
11926 fields and new iterator.
11927 (record_btrace_call_history, record_btrace_call_history_range):
11928 Use new btrace thread info fields and new iterator.
11929
8372a7cb
MM
119302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11931
11932 * frame.h (frame_id_build_unavailable_stack_special): New.
11933 * frame.c (frame_id_build_unavailable_stack_special): New.
11934
c2170eef
MM
119352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11936
11937 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11938 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11939 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11940 to gdbarch.
11941 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11942 (i386_insn_is_jump, i386_jmp_p): New.
11943 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11944 insn_is_jump to gdbarch.
11945 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11946 * gdbarch.h: Regenerated.
11947 * gdbarch.c: Regenerated.
11948 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11949 (default_insn_is_jump): New.
11950 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11951 (default_insn_is_jump): New.
11952
864089d2
MM
119532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11954
11955 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11956 Change to ...
11957 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11958 (btrace_read_type) <btrace_read_new>: Change to ...
11959 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11960
ed9edfb5
MM
119612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11962
11963 * common/linux-btrace.c (linux_read_btrace): Free trace from
11964 previous iteration.
11965
fbcbc3fd
DE
119662014-01-15 Doug Evans <dje@google.com>
11967
11968 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11969 uint32_t.
11970
3d548a53
TT
119712014-01-15 Tom Tromey <tromey@redhat.com>
11972
11973 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11974 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11975 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11976 (set_objfile_main_name): New function.
11977 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11978 language_of_main>: New fields.
11979 (set_objfile_main_name): Declare.
11980 * symtab.c (find_main_name): Loop over objfiles to find the main
11981 name and language.
11982 (set_main_name): Now static.
11983 (get_main_info): Add comment.
11984 * symtab.h (set_main_name): Don't declare.
11985
32ac0d11
TT
119862014-01-15 Tom Tromey <tromey@redhat.com>
11987
11988 * symtab.c (main_progspace_key): New global.
11989 (struct main_info): New.
11990 (name_of_main, language_of_main): Remove.
11991 (get_main_info, main_info_cleanup): New function.
11992 (set_main_name, main_name, main_language): Use get_main_info.
11993 (_initialize_symtab): Initialize main_progspace_key.
11994
9e6c82ad
TT
119952014-01-15 Tom Tromey <tromey@redhat.com>
11996
11997 * dbxread.c (process_one_symbol): Update.
11998 * dwarf2read.c (read_partial_die): Update.
11999 * symfile.c (set_initial_language): Call main_language.
12000 * symtab.c (language_of_main): Now static.
12001 (set_main_name): Add 'lang' parameter.
12002 (find_main_name): Update.
12003 (main_language): New function.
12004 (symtab_observer_executable_changed): Update.
12005 * symtab.h (set_main_name): Update.
12006 (language_of_main): Remove.
12007 (main_language): Declare.
12008
6ef55de7
TT
120092014-01-15 Tom Tromey <tromey@redhat.com>
12010
12011 * symfile.c (init_entry_point_info): Use new "initialized" field.
12012 Update.
12013 * objfiles.h (struct entry_point) <initialized>: New field.
12014 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12015 (struct objfile) <ei>: ...here. Remove.
12016 * objfiles.c (entry_point_address_query): Update.
12017
53eddfa6
TT
120182014-01-15 Tom Tromey <tromey@redhat.com>
12019
12020 * objfiles.c (entry_point_address_query): Relocate entry point
12021 address.
12022 (objfile_relocate1): Do not relocate entry point address.
12023 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12024 <the_bfd_section_index>: New field.
12025 * symfile.c (init_entry_point_info): Find the entry point's
12026 section.
12027
d56e56aa
TT
120282014-01-15 Tom Tromey <tromey@redhat.com>
12029
12030 * solib-frv.c (enable_break): Use entry_point_address_query.
12031
33a97bbe
OJ
120322014-01-15 Omair Javaid <omair.javaid@linaro.org>
12033
12034 * NEWS: Add note on improved process record-replay on
12035 arm*-linux* targets.
12036
c6ec2b30
OJ
120372014-01-15 Omair Javaid <omair.javaid@linaro.org>
12038
12039 * arm-tdep.c (enum arm_record_result): New enum.
12040 (arm_record_unsupported_insn): New function.
12041 (arm_record_coproc_data_proc): Removed.
12042 (thumb2_record_ld_st_multiple): New function.
12043 (thumb2_record_ld_st_dual_ex_tbb): New function.
12044 (thumb2_record_data_proc_sreg_mimm): New function.
12045 (thumb2_record_ps_dest_generic): New function.
12046 (thumb2_record_branch_misc_cntrl): New function.
12047 (thumb2_record_str_single_data): New function.
12048 (thumb2_record_ld_mem_hints): New function.
12049 (thumb2_record_ld_word): New function.
12050 (thumb2_record_lmul_lmla_div): New function.
12051 (thumb2_record_decode_insn_handler): New function.
12052 (decode_insn): Add thumb32 instruction handlers.
12053
97dfe206
OJ
120542014-01-15 Omair Javaid <omair.javaid@linaro.org>
12055
12056 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12057 (struct arm_linux_record_tdep): Declare.
12058 (arm_canonicalize_syscall): New function.
12059 (arm_all_but_pc_registers_record): New function.
12060 (arm_linux_syscall_record): New function.
12061 (arm_linux_init_abi): Add syscall recording constructs.
12062 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12063 decoding. (arm_record_coproc_data_proc): Update arm syscall
12064 decoding.
12065 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12066 <arm_syscall_record>: New field.
12067 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12068 gdb_target_obs.
12069
9904a494
OJ
120702014-01-15 Omair Javaid <omair.javaid@linaro.org>
12071
12072 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12073 register for push instruction recording.
12074
f969241e
OJ
120752014-01-15 Omair Javaid <omair.javaid@linaro.org>
12076
12077 * arm-tdep.c (thumb_record_misc): Update to correct logical
12078 error while recording ldm, ldmia and pop instructions.
12079
bfbbec00
OJ
120802014-01-15 Omair Javaid <omair.javaid@linaro.org>
12081
12082 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12083
e40adcc9
PA
120842014-01-15 Pedro Alves <palves@redhat.com>
12085
12086 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12087 (go32_resume, go32_fetch_registers, store_register)
12088 (go32_store_registers, go32_prepare_to_store)
12089 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12090 (go32_create_inferior, go32_can_run, go32_terminal_init)
12091 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12092 declarations.
12093
b0a16e66
TT
120942014-01-15 Tom Tromey <tromey@redhat.com>
12095
12096 * target.h (async_callback_ftype): New typedef.
12097 (struct target_ops) <to_async>: Use it.
12098
bf7105a4
JB
120992014-01-15 Joel Brobecker <brobecker@adacore.com>
12100
12101 * python/py-value.c (get_field_type): Remove unnecessary curly
12102 braces for single-statement if block.
12103
a8f35c2e
JB
121042014-01-15 Joel Brobecker <brobecker@adacore.com>
12105
12106 * python/py-type.c (convert_field): Add missing empty line
12107 after declarations.
12108
bb4142cf
DE
121092014-01-14 Doug Evans <dje@google.com>
12110
12111 * symfile.h (expand_symtabs_matching): Renamed from
12112 expand_partial_symbol_names. Update prototype.
12113 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12114 * symfile.c (expand_symtabs_matching): Renamed from
12115 expand_partial_symbol_names. New args file_matcher, kind.
12116 Rename arg fun to symbol_matcher.
12117 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12118 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12119 ada_expand_partial_symbol_name.
12120 (ada_make_symbol_completion_list): Update to call
12121 expand_symtabs_matching.
12122 (ada_add_global_exceptions): Call expand_symtabs_matching.
12123 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12124 call map_symbol_filenames.
12125 * symtab.c (sources_info): Update to call map_symbol_filenames.
12126 (search_symbols): Call expand_symtabs_matching.
12127 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12128 (default_make_symbol_completion_list_break_on): Update to call
12129 expand_symtabs_matching.
12130 (make_source_files_completion_list): Update to call
12131 map_symbol_filenames.
12132
206f2a57
DE
121332014-01-14 Doug Evans <dje@google.com>
12134
12135 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12136 (expand_symtabs_symbol_matcher_ftype): New typedef.
12137 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12138 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12139 * symfile.c (expand_partial_symbol_names): Update to use
12140 expand_symtabs_symbol_matcher_ftype.
12141 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12142 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12143 Arg name_matcher renamed to symbol_matcher.
12144 * psymtab.c (recursively_search_psymtabs): Update to use
12145 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12146 sym_matcher.
12147 (expand_symtabs_matching_via_partial): Update to use
12148 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12149 Arg name_matcher renamed to symbol_matcher.
12150
540c2971
DE
121512014-01-14 Doug Evans <dje@google.com>
12152
12153 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12154 (map_partial_symbol_filenames): Ditto.
12155 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12156 (map_partial_symbol_filenames): Ditto.
12157 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12158 (map_partial_symbol_filenames): Ditto.
12159 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12160 (map_partial_symbol_filenames): Ditto.
12161 * symtab.c: Delete #include "psymtab.h".
12162
8213266a
PA
121632014-01-14 Pedro Alves <palves@redhat.com>
12164 Tom Tromey <tromey@redhat.com>
12165
12166 * infrun.c (use_displaced_stepping): Use find_record_target
12167 instead of RECORD_IS_USED.
12168 (adjust_pc_after_break): Use record_full_is_used instead of
12169 RECORD_IS_USED.
12170 * record-btrace.c (record_btrace_open): Call record_preopen
12171 instead of checking RECORD_IS_USED.
12172 * record-full.c (record_full_shortname)
12173 (record_full_core_shortname): New globals.
12174 (record_full_is_used): New function.
12175 (find_full_open): Call record_preopen instead of checking
12176 RECORD_IS_USED.
12177 (init_record_full_ops): Set the target's shortname to
12178 record_full_shortname.
12179 (init_record_full_core_ops): Set the target's shortname to
12180 record_full_core_shortname.
12181 * record-full.h (record_full_is_used): Declare.
12182 * record.c (find_record_target): Make extern.
12183 (record_preopen): New function.
12184 * record.h (RECORD_IS_USED): Delete macro.
12185 (find_record_target, record_preopen): Declare functions.
12186
7ec1862d
YQ
121872014-01-14 Yao Qi <yao@codesourcery.com>
12188
12189 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12190 'len''s type to ULONGEST.
12191 (core_xfer_shared_libraries_aix): Likewise.
12192 * gdbarch.c, gdbarch.h: Regenerated.
12193 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12194 Change type of 'len' to ULONGEST.
12195 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12196 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12197
dea80a27
YQ
121982014-01-14 Yao Qi <yao@codesourcery.com>
12199
12200 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12201 type of 'len' to ULONGEST.
12202 (linux_xfer_osdata_processgroups): Likewise.
12203 (linux_xfer_osdata_threads): Likewise.
12204 (linux_xfer_osdata_fds): Likewise.
12205 (linux_xfer_osdata_isockets): Likewise.
12206 (linux_xfer_osdata_shm): Likewise.
12207 (linux_xfer_osdata_sem): Likewise.
12208 (linux_xfer_osdata_msg): Likewise.
12209 (linux_common_xfer_osdata): Likewise.
12210 (struct osdata_type) <getter>: Likewise.
12211 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12212 the declaration.
12213
b55e14c7
YQ
122142014-01-14 Yao Qi <yao@codesourcery.com>
12215
12216 * target.h (target_xfer_partial_ftype): Update.
12217 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12218 ULONGEST.
12219 * aix-thread.c (aix_thread_xfer_partial): Change type of
12220 argument 'len' to ULONGEST.
12221 * auxv.c (procfs_xfer_auxv): Likewise.
12222 (ld_so_xfer_auxv): Likewise.
12223 (memory_xfer_auxv): Likewise.
12224 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12225 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12226 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12227 * corelow.c (core_xfer_partial): Likewise.
12228 * ctf.c (ctf_xfer_partial): Likewise.
12229 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12230 '%u'.
12231 (darwin_read_dyld_info): Likewise.
12232 (darwin_xfer_partial): Likewise.
12233 * exec.c (section_table_xfer_memory_partial): Likewise.
12234 (exec_xfer_partial): Likewise.
12235 * exec.h (section_table_xfer_memory_partial): Update
12236 declaration.
12237 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12238 instead of plongest.
12239 (gnu_xfer_partial): Likewise.
12240 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12241 (ia64_hpux_xfer_solib_got): Likewise.
12242 (ia64_hpux_xfer_partial): Likewise.
12243 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12244 * inf-ptrace.c (inf_ptrace_xfer_partial):
12245 * inf-ttrace.c (inf_ttrace_xfer_partial):
12246 * linux-nat.c (linux_xfer_siginfo): Likewise.
12247 (linux_nat_xfer_partial): Likewise.
12248 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12249 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12250 * monitor.c (monitor_xfer_memory): Likewise.
12251 (monitor_xfer_partial): Likewise.
12252 * procfs.c (procfs_xfer_partial): Likewise.
12253 * record-full.c (record_full_xfer_partial): Likewise.
12254 (record_full_core_xfer_partial): Likewise.
12255 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12256 instead of plongest.
12257 (gdbsim_xfer_partial): Likewise.
12258 * remote.c (remote_xfer_partial): Likewise.
12259 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12260 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12261 declaration.
12262 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12263 (rs6000_xfer_shared_libraries): Likewise.
12264 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12265 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12266 (sparc_xfer_partial): Likewise.
12267 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12268 (spu_xfer_partial): Likewise.
12269 * spu-multiarch.c (spu_xfer_partial): Likewise.
12270 * target.c (target_read_live_memory): Likewise.
12271 (memory_xfer_live_readonly_partial): Likewise.
12272 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12273 (target_xfer_partial, default_xfer_partial): Likewise.
12274 (current_xfer_partial): Likewise.
12275 * tracepoint.c (tfile_xfer_partial): Likewise.
12276 * windows-nat.c (windows_xfer_memory): Likewise. Call
12277 pulongest instead of plongest.
12278 (windows_xfer_partial): Likewise.
12279 (windows_xfer_shared_libraries): Likewise.
12280
05804640
YQ
122812014-01-14 Yao Qi <yao@codesourcery.com>
12282
12283 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12284 target_xfer_partial_ftype.
12285
b5b08fb4
SC
122862014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12287
12288 PR python/15464
12289 PR python/16113
12290 * valops.c (value_struct_elt_bitpos): New function
12291 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12292 object to 'None' if the field name is an empty string ("").
12293 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12294 attribute to look for a field when 'name' is 'None'.
12295 (get_field_type): New function
12296
13aaf454
DE
122972014-01-13 Doug Evans <dje@google.com>
12298
12299 PR symtab/16426
12300 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12301 (try_open_dwop_file): Ditto.
12302 * gdb_bfd.c: #include "vec.h".
12303 (bfdp): New typedef.
12304 (struct gdb_bfd_data): New member included_bfds.
12305 (gdb_bfd_unref): Unref all included bfds.
12306 (gdb_bfd_record_inclusion): New function.
12307 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12308
c2cec97c
TT
123092014-01-13 Tom Tromey <tromey@redhat.com>
12310
12311 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12312
78e5999d
TT
123132014-01-13 Tom Tromey <tromey@redhat.com>
12314
12315 * defs.h (use_windows): Remove.
12316 * gdb.c (main): Update.
12317 * main.c (captured_main, gdb_main): Update.
12318 * main.h (struct captured_main_args) <use_windows>: Remove.
12319 * top.c (use_windows): Remove.
12320
f2052bbe
TT
123212014-01-13 Tom Tromey <tromey@redhat.com>
12322
12323 * defs.h (deprecated_flush_hook): Remove.
12324
fde4f8ed
JK
123252014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12326
12327 PR threads/16216
12328 * linux-thread-db.c (try_thread_db_load): Add parameter
12329 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12330 (try_thread_db_load_from_pdir_1): Move it there from here.
12331 (try_thread_db_load_from_sdir): Update caller.
12332 (try_thread_db_load_from_dir): Move it there from here.
12333
bdf61915
PP
123342014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12335
12336 * regformats/regdat.sh: Always rewrite the register file.
12337
f71e1a8d
PA
123382014-01-13 Pedro Alves <palves@redhat.com>
12339
12340 * Makefile.in (CHECK_HEADERS): New variable.
12341 (check-headers:): New rule.
12342
42c85435
TT
123432014-01-13 Tom Tromey <tromey@redhat.com>
12344
12345 * cli/cli-setshow.c (do_set_command): Update.
12346 * defs.h (deprecated_set_hook): Remove.
12347 * top.c (deprecated_set_hook): Remove.
12348
f8de5129
PA
123492014-01-13 Pedro Alves <palves@redhat.com>
12350
12351 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12352 the tracepoint if the PC is a pseudo-register.
12353
fc270c35
TT
123542014-01-13 Tom Tromey <tromey@redhat.com>
12355
12356 * defs.h (XCALLOC): Remove.
12357 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12358 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12359 * dwarf2loc.c (allocate_piece_closure): Likewise.
12360 * elfread.c (elf_symfile_segments): Likewise.
12361 (elf_symfile_segments): Likewise.
12362 * gdbtypes.c (copy_type_recursive): Likewise.
12363 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12364 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12365 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12366 XCALLOC.
12367 * mt-tdep.c (mt_gdbarch_init): Likewise.
12368 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12369 XCALLOC.
12370 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12371 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12372 * registry.c (registry_alloc_data): Likewise.
12373 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12374 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12375 * serial.c (serial_fdopen_ops): Likewise.
12376 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12377 XCALLOC.
12378 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12379 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12380 not XCALLOC.
12381
70ba0933
TT
123822014-01-13 Tom Tromey <tromey@redhat.com>
12383
12384 * defs.h (XMALLOC): Remove.
12385 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12386 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12387 * cli-out.c (struct ui_out *): Likewise.
12388 * cli/cli-dump.c (add_dump_command): Likewise.
12389 (add_dump_command): Likewise.
12390 * complaints.c (get_complaints): Likewise.
12391 (find_complaint): Likewise.
12392 * dwarf2-frame.c (execute_cfa_program): Likewise.
12393 * dwarf2read.c (abbrev_table_read_table): Likewise.
12394 * gdbarch.sh: Likewise.
12395 * gdbarch.c: Rebuild.
12396 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12397 * interps.c (interp_new): Likewise.
12398 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12399 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12400 * mi/mi-console.c (mi_console_file_new): Likewise.
12401 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12402 * mi/mi-out.c (mi_out_new): Likewise.
12403 * mi/mi-parse.c (mi_parse): Likewise.
12404 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12405 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12406 * observer.c (xalloc_observer_list_node): Likewise.
12407 * regcache.c (regcache_xmalloc_1): Likewise.
12408 * reggroups.c (reggroup_new): Likewise.
12409 (_initialize_reggroup): Likewise.
12410 * registry.c (register_data_with_cleanup): Likewise.
12411 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12412 * ser-base.c (serial_ttystate): Likewise.
12413 * ser-mingw.c (make_pipe_state): Likewise.
12414 * ser-pipe.c (pipe_open): Likewise.
12415 * serial.c (serial_open): Likewise.
12416 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12417 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12418 (tui_alloc_win_info): Likewise.
12419 (tui_add_content_elements): Likewise.
12420 * tui/tui-file.c (tui_file_new): Likewise.
12421 * tui/tui-out.c (tui_out_new): Likewise.
12422 * ui-file.c (mem_file_new): Likewise.
12423 * ui-out.c (push_level): Likewise.
12424 (make_cleanup_ui_out_end): Likewise.
12425 (append_header_to_list): Likewise.
12426 (ui_out_new): Likewise.
12427 * user-regs.c (user_reg_add_builtin): Likewise.
12428
41bf6aca
TT
124292014-01-13 Tom Tromey <tromey@redhat.com>
12430
12431 * defs.h (XZALLOC): Remove.
12432 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12433 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12434 (get_ada_tasks_inferior_data): Likewise.
12435 * auto-load.c (get_auto_load_pspace_data): Likewise.
12436 * auxv.c (get_auxv_inferior_data): Likewise.
12437 * bfd-target.c (target_bfd_reopen): Likewise.
12438 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12439 (deprecated_insert_raw_breakpoint): Likewise.
12440 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12441 * corelow.c (core_open): Likewise.
12442 * darwin-nat.c (darwin_check_new_threads): Likewise.
12443 (darwin_attach_pid): Likewise.
12444 * dummy-frame.c (dummy_frame_push): Likewise.
12445 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12446 * dwarf2loc.c (allocate_piece_closure): Likewise.
12447 * elfread.c (elf_symfile_segments): Likewise.
12448 * eval.c (ptrmath_type_p): Likewise.
12449 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12450 * gdbtypes.c (alloc_type_arch): Likewise.
12451 (alloc_type_instance): Likewise.
12452 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12453 * inf-child.c (inf_child_can_use_agent): Likewise.
12454 * inflow.c (get_inflow_inferior_data): Likewise.
12455 * infrun.c (save_infcall_suspend_state): Likewise.
12456 * jit.c (jit_reader_load): Likewise.
12457 (get_jit_objfile_data): Likewise.
12458 (get_jit_program_space_data): Likewise.
12459 (jit_object_open_impl): Likewise.
12460 (jit_symtab_open_impl): Likewise.
12461 (jit_block_open_impl): Likewise.
12462 (jit_frame_sniffer): Likewise.
12463 * linux-fork.c (add_fork): Likewise.
12464 * maint.c (make_command_stats_cleanup): Likewise.
12465 * objfiles.c (get_objfile_pspace_data): Likewise.
12466 * opencl-lang.c (struct lval_closure): Likewise.
12467 * osdata.c (osdata_start_osdata): Likewise.
12468 * progspace.c (new_address_space): Likewise.
12469 (add_program_space): Likewise.
12470 * remote-sim.c (get_sim_inferior_data): Likewise.
12471 * sh-tdep.c (sh_gdbarch_init): Likewise.
12472 * skip.c (Ignore): Likewise.
12473 (skip_delete_command): Likewise.
12474 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12475 (library_list_start_library): Likewise.
12476 (solib_aix_current_sos): Likewise.
12477 * solib-darwin.c (get_darwin_info): Likewise.
12478 (darwin_current_sos): Likewise.
12479 * solib-dsbt.c (get_dsbt_info): Likewise.
12480 * solib-ia64-hpux.c (new_so_list): Likewise.
12481 (ia64_hpux_get_solib_linkage_addr): Likewise.
12482 * solib-spu.c (append_ocl_sos): Likewise.
12483 (spu_current_sos): Likewise.
12484 * solib-svr4.c (get_svr4_info): Likewise.
12485 (svr4_keep_data_in_core): Likewise.
12486 (library_list_start_library): Likewise.
12487 (svr4_default_sos): Likewise.
12488 (svr4_read_so_list): Likewise.
12489 * solib-target.c (library_list_start_library): Likewise.
12490 (solib_target_current_sos): Likewise.
12491 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12492 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12493 * symfile.c (default_symfile_segments): Likewise.
12494 * target-descriptions.c (tdesc_data_init): Likewise.
12495 (tdesc_create_reg): Likewise.
12496 (struct tdesc_type *): Likewise.
12497 (tdesc_create_vector): Likewise.
12498 (tdesc_set_struct_size): Likewise.
12499 (struct tdesc_type *): Likewise.
12500 (tdesc_free_feature): Likewise.
12501 (tdesc_create_feature): Likewise.
12502 * windows-nat.c (windows_add_thread): Likewise.
12503 (windows_make_so): Likewise.
12504 * xml-support.c (gdb_xml_body_text): Likewise.
12505 (gdb_xml_create_parser_and_cleanup): Likewise.
12506 (xml_process_xincludes): Likewise.
12507 * xml-syscall.c (allocate_syscalls_info): Likewise.
12508 (syscall_create_syscall_desc): Likewise.
12509
5acfdbae
SDJ
125102014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12511
12512 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12513 function, with code from i386_stap_parse_special_token.
12514 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12515 (i386_stap_parse_special_token): Move code to the two functions
12516 above; simplify it.
12517
0000e5cc
PA
125182014-01-09 Pedro Alves <palves@redhat.com>
12519 Hui Zhu <hui@codesourcery.com>
12520
12521 PR gdb/16101
12522 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12523 bp_err_string. Don't mark the location shlib_disabled if the
12524 error thrown wasn't a generic or memory error. Catch errors
12525 thrown while inserting breakpoints in overlayed code. Output
12526 error message of software breakpoints.
12527 * remote.c (remote_insert_breakpoint): If this breakpoint has
12528 target-side commands but this stub doesn't support Z0 packets,
12529 throw NOT_SUPPORTED_ERROR error.
12530 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12531 * target.h (target_insert_breakpoint): Extend comment.
12532 (target_insert_hw_breakpoint): Add comment.
12533
b7ea362b
PA
125342014-01-08 Pedro Alves <palves@redhat.com>
12535
12536 * remote.c (remote_add_thread): Add threads silently if starting
12537 up.
12538 (remote_notice_new_inferior): If in all-stop, and starting up,
12539 don't call notice_new_inferior.
12540 (get_current_thread): New function, factored out from ...
12541 (add_current_inferior_and_thread): ... this. Adjust.
12542 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12543 found any thread, then select the remote's current thread as GDB's
12544 current thread too.
12545
b7bba001
JB
125462014-01-08 Joel Brobecker <brobecker@adacore.com>
12547
12548 * NEWS: Create a new section for the next release branch.
12549 Rename the section of the current branch, now that it has
12550 been cut.
12551
16dfbded
JB
125522014-01-08 Joel Brobecker <brobecker@adacore.com>
12553
12554 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12555 * version.in: Bump version to 7.7.50.DATE-cvs.
12556
22c90ac1
YQ
125572014-01-08 Yao Qi <yao@codesourcery.com>
12558
12559 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12560 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12561 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12562
d64ad97c
YQ
125632014-01-08 Yao Qi <yao@codesourcery.com>
12564
12565 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12566 return value of bfd_get_filename to symbol_file_add_from_bfd.
12567
f93ba80c
PM
125682014-01-08 Pierre Muller <muller@sourceware.org>
12569
12570 Fix PR16201.
12571 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12572 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12573 to prim_record_mininal_symbol_and_info.
12574 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12575 in call to prim_record_minimal_symbol_and_info.
12576 (read_pe_exported_syms): Set index field of section_data.
12577
a4d9ba85
AP
125782014-01-07 Andrew Pinski <apinski@cavium.com>
12579
12580 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12581 * features/aarch64.c: Regenerate.
12582
1b67eb02
AS
125832014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12584
12585 * target.c (return_null): Define.
12586 (update_current_target): Use it instead of return_zero for
12587 functions that return a pointer.
12588
5e3f4fab
EBM
125892014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12590
12591 * source.c (add_path): Fix check for duplicated paths in the previously
12592 included paths.
12593
e2616788
HK
125942014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12595
12596 * ada-lang.c: Remove duplicated include statements.
12597 * alphabsd-nat.c: Ditto.
12598 * amd64-darwin-tdep.c: Ditto.
12599 * amd64fbsd-nat.c: Ditto.
12600 * auto-load.c: Ditto.
12601 * ax-gdb.c: Ditto.
12602 * breakpoint.c: Ditto.
12603 * dbxread.c: Ditto.
12604 * fork-child.c: Ditto.
12605 * gdb_usleep.c: Ditto.
12606 * i386-darwin-tdep.c: Ditto.
12607 * i386fbsd-nat.c: Ditto.
12608 * infcmd.c: Ditto.
12609 * inferior.c: Ditto.
12610 * jv-lang.c: Ditto.
12611 * linux-nat.c: Ditto.
12612 * linux-tdep.c: Ditto.
12613 * m68kbsd-nat.c: Ditto.
12614 * m68klinux-nat.c: Ditto.
12615 * microblaze-tdep.c: Ditto.
12616 * mips-linux-tdep.c: Ditto.
12617 * mn10300-tdep.c: Ditto.
12618 * nto-tdep.c: Ditto.
12619 * opencl-lang.c: Ditto.
12620 * osdata.c: Ditto.
12621 * printcmd.c: Ditto.
12622 * regcache.c: Ditto.
12623 * remote-m32r-sdi.c: Ditto.
12624 * remote.c: Ditto.
12625 * symfile.c: Ditto.
12626 * symtab.c: Ditto.
12627 * tilegx-linux-nat.c: Ditto.
12628 * tilegx-tdep.c: Ditto.
12629 * tracepoint.c: Ditto.
12630 * valops.c: Ditto.
12631 * vaxbsd-nat.c: Ditto.
12632 * windows-nat.c: Ditto.
12633 * xtensa-tdep.c: Ditto.
12634
bd1f7788
YQ
126352014-01-07 Yao Qi <yao@codesourcery.com>
12636
12637 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12638
79301218
JB
126392014-01-07 Yao Qi <yao@codesourcery.com>
12640 Joel Brobecker <brobecker@adacore.com>
12641
12642 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12643 (pdc_write_regs): Likewise.
12644 (fetch_regs_kernel_thread): Likewise.
12645 (store_regs_kernel_thread): Likewise.
12646
126472014-01-07 Joel Brobecker <brobecker@adacore.com>
12648
12649 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12650 tagged type objects to their actual type.
12651
8e355c5d
JB
126522014-01-07 Joel Brobecker <brobecker@adacore.com>
12653
12654 * ada-valprint.c (print_field_values): Add "language" parameter.
12655 Update calls to print_field_values and print_variant_part.
12656 Pass new parameter "language" in call to val_print instead
12657 of "current_language". Replace call to ada_val_print by call
12658 to val_print.
12659 (print_variant_part): Add "language" parameter.
12660 (ada_val_print_struct_union): Update call to print_field_values.
12661
4fbf5aa5
JB
126622014-01-07 Joel Brobecker <brobecker@adacore.com>
12663
12664 * ada-valprint.c (ui_memcpy): Delete.
12665 (ada_print_floating): Update documentation. Add empty line
12666 between between function documentation and implementation.
12667 Delete variable "buffer". Use ui_file_xstrdup in place of
12668 ui_file_put. Minor adjustments following this change.
12669
71855601
JB
126702014-01-07 Joel Brobecker <brobecker@adacore.com>
12671
12672 * ada-valprint.c (ada_val_print_string): New function,
12673 extracted from ada_val_print_array.
12674 (ada_val_print_array): Replace extracted code by call
12675 to ada_val_print_string followed by a return. Move
12676 "else" branch to the function's top block.
12677
4eb27a30
JB
126782014-01-07 Joel Brobecker <brobecker@adacore.com>
12679
12680 * ada-valprint.c (ada_val_print_array): Move implementation
12681 down. Rename parameter "offset" and "val" into "offset_aligned"
12682 and "original_value" respectively. Add parameter "offset".
12683
34b27950
JB
126842014-01-07 Joel Brobecker <brobecker@adacore.com>
12685
12686 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12687 re-organizing the code. Change the "???" message printed
12688 when target type is a TYPE_CODE_UNDEF into
12689 "<ref to undefined type>".
12690
079e4591
JB
126912014-01-07 Joel Brobecker <brobecker@adacore.com>
12692
12693 * ada-valprint.c (print_record): Delete, implementation inlined...
12694 (ada_val_print_struct_union): ... here. Remove call to
12695 ada_check_typedef in inlined implementation.
12696
8004dfd1
JB
126972014-01-07 Joel Brobecker <brobecker@adacore.com>
12698
12699 * ada-valprint.c (ada_val_print_gnat_array): New function,
12700 extracted from ada_val_print_1;
12701 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12702 (ada_val_print_flt, ada_val_print_struct_union)
12703 (ada_val_print_ref): Likewise.
12704 (ada_val_print_1): Delete variables i and elttype.
12705 Replace extracted-out code by call to corresponding
12706 new functions.
12707
760a2db0
JB
127082014-01-07 Joel Brobecker <brobecker@adacore.com>
12709
12710 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12711
3a92c861
JB
127122014-01-07 Joel Brobecker <brobecker@adacore.com>
12713
12714 * ada-valprint.c (ada_val_print_1): Replace calls to
12715 ada_val_print_1 by calls to val_print.
12716
cd1630f9
JB
127172014-01-07 Joel Brobecker <brobecker@adacore.com>
12718
12719 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12720 Update calls to self accordingly. Replace calls to c_val_print
12721 by calls to val_print.
12722
bdf779a0
JB
127232014-01-07 Joel Brobecker <brobecker@adacore.com>
12724
12725 * ada-valprint.c (print_record): Delete declaration.
12726 (adjust_type_signedness, ada_val_print_1): Likewise.
12727 (ada_val_print): Move function implementation down.
12728 (print_variant_part, print_field_values, print_record):
12729 Move function implementation up.
12730
c0d48811
JB
127312014-01-07 Joel Brobecker <brobecker@adacore.com>
12732
12733 * python/py-type.c (typy_get_name): New function.
12734 (type_object_getset): Add entry for attribute "name".
12735 * NEWS: Add entry mentioning this new attribute.
12736
c26e9cbb
YQ
127372014-01-07 Yao Qi <yao@codesourcery.com>
12738
12739 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12740 statement.
12741
0cc6f43d
YQ
127422014-01-07 Yao Qi <yao@codesourcery.com>
12743
12744 * gnu-nat.c (info_port_rights): Add qualifier const to
12745 argument args.
12746
eec03155
YQ
127472014-01-07 Yao Qi <yao@codesourcery.com>
12748
12749 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12750
f04a82ef
YQ
127512014-01-07 Yao Qi <yao@codesourcery.com>
12752
12753 * gnu-nat.c (make_inf) Update declaration.
12754 (make_inf): Make it static.
12755 (inf_set_traced): Likewise.
12756 (inf_port_to_thread, inf_task_died_status): Likewise.
12757
d57dda0a
YQ
127582014-01-07 Yao Qi <yao@codesourcery.com>
12759
12760 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12761
3aa8c969
YQ
127622014-01-07 Yao Qi <yao@codesourcery.com>
12763
12764 * gnu-nat.c (_initialize_gnu_nat): Declare.
12765
94123b4f
YQ
127662014-01-07 Yao Qi <yao@codesourcery.com>
12767
12768 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12769 'enum bfd_endian'.
12770 (struct gdbarch_info) <byte_order>: Change type to
12771 'enum bfd_endian'.
12772 <byte_order_for_code>: Likewise.
12773 * gdbarch.c, gdbarch.h: Regenerated.
12774
dc81d70a
TT
127752014-01-06 Sasha Smundak <asmundak@google.com>
12776
12777 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12778
cc2f3c35
TT
127792014-01-06 Tom Tromey <tromey@redhat.com>
12780
12781 * doublest.c (convert_doublest_to_floatformat): Use const, not
12782 CONST.
12783 * somread.c (som_symtab_read): Likewise.
12784
adcf2eed
HZ
127852014-01-07 Hui Zhu <hui@codesourcery.com>
12786
12787 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12788 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12789 (gdb_bfd_fopen): Ditto.
12790 (gdb_bfd_openr): Ditto.
12791 (gdb_bfd_openw): Ditto.
12792 (gdb_bfd_openr_iovec): Ditto.
12793 (gdb_bfd_fdopenr): Ditto.
12794 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12795 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12796 with xstrdup.
12797 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12798 with xstrdup.
12799 * symfile-mem.c (symbol_file_add_from_memory): Removed
12800 gdb_bfd_stash_filename.
12801
50722198
DE
128022014-01-03 Doug Evans <dje@google.com>
12803
12804 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12805 output.
12806
2fa4b862
JB
128072014-01-01 Joel Brobecker <brobecker@adacore.com>
12808
12809 Update year range in copyright notice of all files.
12810
28498c42
JB
128112014-01-01 Joel Brobecker <brobecker@adacore.com>
12812
12813 * top.c (print_gdb_version): Set copyright year to 2014.
12814
7b6e1046
JB
128152014-01-01 Joel Brobecker <brobecker@adacore.com>
12816
12817 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12818
df96af55 12819For older changes see ChangeLog-2013.
c906108c
SS
12820\f
12821Local Variables:
12822mode: change-log
12823left-margin: 8
12824fill-column: 74
12825version-control: never
57da7796 12826coding: utf-8
c906108c 12827End:
This page took 2.907431 seconds and 4 git commands to generate.