gdb.base/watch-bitfields.exp: Improve test
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bb9d5f81
PP
12014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2
3 PR breakpoints/12526
4 * breakpoint.h (struct watchpoint): New fields val_bitpos and
5 val_bitsize.
6 * breakpoint.c (watch_command_1): Use these fields to retain
7 bitfield information.
8 (extract_bitfield_from_watchpoint_value): New function.
9 (watchpoint_check): Use it.
10 (update_watchpoint): Use it. Optimize the address and length of a
11 HW watchpoint pointing to a bitfield.
12 * value.h (unpack_value_bitfield): New prototype.
13 * value.c (unpack_value_bitfield): Make extern.
14
05db5edd
ST
152014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16
17 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
18 x86-dregs.o.
19 * gnu-nat.c (inf_threads): New function.
20 * gnu-nat.h (inf_threads_ftype): New typedef.
21 (inf_threads): New declaration.
22 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
23 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
24 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
25 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
26 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
27 (i386_gnu_dr_get_control): New functions.
28 (reg_addr): New structure.
29 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
30 i386 debugging register hooks.
31 * NEWS: Mention this.
32
5a578da5
OJ
332014-08-13 Omair Javaid <omair.javaid@linaro.org>
34
35 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
36 vector data transfer instructions.
37 (arm_record_coproc_data_proc): Updated.
38
f20f80dd
OJ
392014-08-13 Omair Javaid <omair.javaid@linaro.org>
40
41 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
42 arm_record_exreg_ld_st_insn.
43 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
44 load/store insns.
45
851f26ae
OJ
462014-08-13 Omair Javaid <omair.javaid@linaro.org>
47
48 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
49 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
50 processing instructions.
51
1e1b6563
OJ
522014-08-13 Omair Javaid <omair.javaid@linaro.org>
53
54 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
55 for advance SIMD struct ld/st insn.
56 (thumb2_record_decode_insn_handler): Replace stub handler with
57 thumb2_record_asimd_struct_ld_st.
58
60cc5e93
OJ
592014-08-13 Omair Javaid <omair.javaid@linaro.org>
60
61 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
62 for asimd, vfp and coprocessor insns.
63 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
64 and coprocessor insns.
65 (thumb2_record_coproc_insn): New function.
66 (thumb2_record_decode_insn_handler): Update coprocessor insns record
67 handlers.
68 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
69 opcode 110 insns.
70
81219e53
DE
712014-09-13 Doug Evans <xdje42@gmail.com>
72
73 * NEWS: Mention new "queue-signal" command.
74 * infcmd.c (queue_signal_command): New function.
75 (_initialize_infcmd): Add new queue-signal command.
76
d36bf488
DE
772014-09-13 Doug Evans <xdje42@gmail.com>
78
79 * linux-nat.c (wait_lwp): Add debugging printf.
80 (linux_nat_wait_1): Ditto.
81
f37f681c
PA
822014-09-12 Pedro Alves <palves@redhat.com>
83
84 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
85 (create_and_insert_solib_event_breakpoint): New functions.
86 * breakpoint.h (create_and_insert_solib_event_breakpoint)
87 (remove_solib_event_breakpoints_at_next_stop): New declarations.
88 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
89 (remove_dbx_link_breakpoint): Delete function.
90 (insert_dbx_link_bpt_in_file): Use
91 create_and_insert_solib_event_breakpoint instead of
92 deprecated_insert_raw_breakpoint.
93 (procfs_wait): Don't check whether we hit __dbx_link here.
94 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
95 here.
96 * solib-irix.c (base_breakpoint): Delete global.
97 (disable_break): Delete function.
98 (enable_break): Use create_solib_event_breakpoint
99 instead of deprecated_insert_raw_breakpoint.
100 (irix_solib_handle_event): New function.
101 (irix_solib_create_inferior_hook): Don't run the target or disable
102 the mapping-complete breakpoint here.
103 (_initialize_irix_solib): Install irix_solib_handle_event as
104 so_ops->handle_event hook.
105
9d9bf2df
EBM
1062014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
107 Ulrich Weigand  <uweigand@de.ibm.com>
108
109 PR tdep/17379
110 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
111 instead of read_memory_unsigned_integer.
112
b006a80e
GB
1132014-09-12 Gary Benson <gbenson@redhat.com>
114
115 * nat/linux-waitpid.c: Include common-defs.h.
116 [GDBSERVER]: Add FIXME comment.
117 [!GDBSERVER]: Don't include defs.h or signal.h.
118 (linux_debug) [!GDBSERVER]: Remove empty block.
119
296b1496
GB
1202014-09-12 Gary Benson <gbenson@redhat.com>
121
122 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
123 Don't include defs.h or server.h.
124
53f81362
GB
1252014-09-12 Gary Benson <gbenson@redhat.com>
126
127 * nat/linux-btrace.c: Include common-defs.h.
128 Don't include defs.h, server.h or gdbthread.h.
129 * nat/linux-btrace.h (struct target_ops): New forward declaration.
130
727605ca
GB
1312014-09-12 Gary Benson <gbenson@redhat.com>
132
133 * common/agent.c: Include common-defs.h.
134 Don't include defs.h or server.h.
135 * common/buffer.c: Likewise.
136 * common/common-debug.c: Likewise.
137 * common/common-utils.c: Likewise.
138 * common/errors.c: Likewise.
139 * common/filestuff.c: Likewise.
140 * common/format.c: Likewise.
141 * common/gdb_vecs.c: Likewise.
142 * common/print-utils.c: Likewise.
143 * common/ptid.c: Likewise.
144 * common/rsp-low.c: Likewise.
145 * common/signals.c: Likewise.
146 * common/vec.c: Likewise.
147 * common/xml-utils.c: Likewise.
148 * nat/linux-osdata.c: Likewise.
149 * nat/linux-procfs.c: Likewise.
150 * nat/linux-ptrace.c: Likewise.
151 * nat/mips-linux-watch.c: Likewise.
152 * target/waitstatus.c: Likewise.
153
361c8ade
GB
1542014-09-12 Tom Tromey <tromey@redhat.com>
155 Gary Benson <gbenson@redhat.com>
156
157 * common/common-regcache.h: New file.
158 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
159 * regcache.h: Include common-regcache.h.
160 (regcache_read_pc): Don't declare.
161 * regcache.c (get_thread_regcache_for_ptid): New function.
162 * nat/linux-btrace.c: Don't include regcache.h.
163 Include common-regcache.h.
164 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
165
a01cbb49
TS
1662014-09-11 Thomas Schwinge <thomas@codesourcery.com>
167
168 * regcache.h (struct regset): Declare.
169
98880d46
PA
1702014-09-11 Pedro Alves <palves@redhat.com>
171
172 PR gdb/17347
173 * main.c: Include "infrun.h".
174 (catch_command_errors, catch_command_errors_const): Wait for the
175 foreground command to complete.
176 * top.c (maybe_wait_sync_command_done): New function, factored out
177 from ...
178 (maybe_wait_sync_command_done): ... here.
179 * top.h (maybe_wait_sync_command_done): New declaration.
180
bd9269f7
GB
1812014-09-11 Tom Tromey <tromey@redhat.com>
182 Gary Benson <gbenson@redhat.com>
183
184 * common/symbol.h: New file.
185 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
186 * minsyms.c (find_minimal_symbol_address): New function.
187 * common/agent.c: Include common/symbol.h.
188 [!GDBSERVER]: Don't include objfiles.h.
189 (agent_look_up_symbols): Use find_minimal_symbol_address.
190
f8c1d06b
GB
1912014-09-11 Gary Benson <gbenson@redhat.com>
192
193 * target/target.h (target_stop_ptid, target_continue_ptid):
194 Declare.
195 * target.c (target_stop_ptid, target_continue_ptid): New
196 functions.
197 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
198 (agent_run_command): Always use target_stop_ptid and
199 target_continue_ptid.
200
721ec300
GB
2012014-09-11 Tom Tromey <tromey@redhat.com>
202 Gary Benson <gbenson@redhat.com>
203
204 * target/target.h: New file.
205 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
206 * target.h: Include target/target.h.
207 (target_read_memory, target_write_memory): Don't declare.
208 * target.c (target_read_uint32): New function.
209 * common/agent.c: Include target/target.h.
210 [!GDBSERVER]: Don't include target.h.
211 (helper_thread_id): Type changed to uint32_t.
212 (agent_get_helper_thread_id): Use target_read_uint32.
213 (agent_run_command): Always use target_read_memory and
214 target_write_memory.
215 (agent_capability): Type changed to uint32_t.
216 (agent_capability_check): Use target_read_uint32.
217
c5e92cca
GB
2182014-09-11 Gary Benson <gbenson@redhat.com>
219
220 * common/common-debug.h (show_debug_regs): Declare.
221 * common/common-debug.c (show_debug_regs): Define.
222 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
223 all uses with show_debug_regs. Replace all uses that considered
224 debug_hw_points as a multi-value integer with straight boolean
225 uses.
226 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
227 with show_debug_regs.
228 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
229 all uses with show_debug_regs.
230 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
231 uses with show_debug_regs.
232
eeef931a
UW
2332014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
234
235 * findvar.c (address_from_register): Handle targets requiring
236 a special conversion routine even for plain pointer types.
237
8efa9855
UW
2382014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
239
240 * rs6000-nat.c (exec_one_dummy_insn): Remove.
241 (store_register): Do not call exec_one_dummy_insn.
242
eb479039
JB
2432014-09-10 Joel Brobecker <brobecker@adacore.com>
244
245 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
246 dereference it first. Use value_enclosing_type instead of
247 value_type.
248 (ada_array_length): Likewise.
249
deede10c
JB
2502014-09-10 Joel Brobecker <brobecker@adacore.com>
251
252 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
253 Adjust function implementation and documentation accordingly.
254 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
255 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
256 Update call to ada_value_ptr_subscript.
257
7828a5f5
JB
2582014-09-10 Joel Brobecker <brobecker@adacore.com>
259
260 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
261 instead of VAL's type.
262
35782f14
JB
2632014-09-10 Joel Brobecker <brobecker@adacore.com>
264
265 * amd64-linux-nat.c: Add <sys/uio.h> #include.
266
d342a0da
DE
2672014-09-09 Doug Evans <xdje42@gmail.com>
268
269 PR guile/17367
270 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
271 last parameter to pkg-config, not first.
272 * configure.ac: Pass --with-guile provided pkg-config path to
273 GDB_GUILE_PROGRAM_NAMES.
274 * configure: Regenerate.
275
b4a3d263
GKB
2762014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
277
278 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
279 Bertazi".
280
6e466374
MR
2812014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
282
283 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
284 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
285 the list of sections determining GDB_OSABI_IRIX.
286
a1ada89a
JH
2872014-09-09 James Hogan <james.hogan@imgtec.com>
288
289 * MAINTAINERS (Write After Approval): Add "James Hogan".
290
86db008d
JH
2912014-09-09 James Hogan <james.hogan@imgtec.com>
292
293 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
294
72fde3df
JB
2952014-09-09 Joel Brobecker <brobecker@adacore.com>
296
297 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
298
92d8d229
DE
2992014-09-08 Doug Evans <xdje42@gmail.com>
300
301 PR 17247
302 * guile.c: #include <signal.h>.
303 (_initialize_guile): Block SIGCHLD while initializing Guile.
304
305 Replaces the following, which is reverted.
306
307 2014-07-26 Doug Evans <xdje42@gmail.com>
308
309 PR 17185
310 * configure.ac: Add check for header gc/gc.h.
311 Add check for function setenv.
312 * configure: Regenerate.
313 * config.in: Regenerate.
314 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
315
d81412aa
DE
3162014-09-08 Doug Evans <xdje42@gmail.com>
317
318 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
319 with named constant. Fix style of pointer comparison.
320 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
321
a9f116cb
GKB
3222014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
323
324 PR gdb/17035
325 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
326 decide whether we display the command on "show user".
327 * cli/cli-script.c (show_user_1): Only verify cmdlines after
328 printing command name.
329 * cli/cli-decode.h (cli_user_command_p): Declare new function.
330 * cli/cli-decode.c (cli_user_command_p): Create helper function
331 to verify whether cmd_list_element is a user-defined command.
332
c75bd3a2
JK
3332014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
334
335 PR python/17355
336 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
337 Fix goto out of TRY_CATCH.
338
faa42425 3392014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 340 Tom Tromey <tromey@redhat.com>
faa42425
DE
341
342 PR 15276
343 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
344 $_any_caller_matches.
345 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
346 * python/lib/gdb/function/caller_is.py: New file.
347
0d41ba00
DE
3482014-09-06 Doug Evans <xdje42@gmail.com>
349
350 * infcmd.c (program_info): Fix typo.
351
474ca4f6
SDJ
3522014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
353
354 PR gdb/17235
355 * stap-probe.c (stap_parse_single_operand): Delete unused variable
356 'number'. New variable 'has_digit'. Rewrite code to deal with
357 subexpressions on SDT probes.
358
ebf13736
PA
3592014-09-04 Pedro Alves <palves@redhat.com>
360
361 * c-exp.y (parse_number): Skip handling base-switching prefixes if
362 the input is only one character long.
363
eb0b0463
SDJ
3642014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
365
366 PR fortran/17237
367 * f-valprint.c (f_val_print): Specify the correct print option to
368 use when printing integer values.
369
5ee44bfa
GB
3702014-09-04 Gary Benson <gbenson@redhat.com>
371
372 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
373 Remove code to cope with LWPs wrapped as PIDs.
374 Add assertions to ensure no wrapped LWPs are passed.
375
4875ffdb
PA
3762014-09-04 Pedro Alves <palves@redhat.com>
377
378 * value.c (value_ranges_copy_adjusted): New function, factored out
379 from ...
380 (value_contents_copy_raw): ... here.
381 (unpack_value_bits_as_long_1): Rename back to ...
382 (unpack_bits_as_long): ... this. Remove 'original_value' and
383 'result' parameters. Change return type to LONGEST.
384 (unpack_value_bits_as_long): Delete.
385 (unpack_value_field_as_long_1): Delete.
386 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
387 (unpack_value_bitfield): New function.
388 (value_field_bitfield): Reimplement using unpack_value_bitfield.
389 (value_fetch_lazy): Use unpack_value_bitfield.
390 * value.h (unpack_value_bits_as_long): Delete declaration.
391
5f3b99cf
SS
3922014-09-03 Sasha Smundak <asmundak@google.com>
393
394 * python/py-frame.c (frapy_read_register): New function.
395
ac740bc7
JH
3962014-09-03 James Hogan <james.hogan@imgtec.com>
397
398 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
399 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
400
7d793aa9
SDJ
4012014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
402
403 PR python/16699
404 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
405 function.
406 (add_cmd): Set "completer_handle_brkchars" to NULL.
407 * cli/cli-decode.h (struct cmd_list_element)
408 <completer_handle_brkchars>: New field.
409 * command.h (completer_ftype_void): New typedef.
410 (set_cmd_completer_handle_brkchars): New prototype.
411 * completer.c (set_gdb_completion_word_break_characters): New
412 function.
413 (complete_line_internal): Call "completer_handle_brkchars"
414 callback from command.
415 * completer.h: Include "command.h".
416 (set_gdb_completion_word_break_characters): New prototype.
417 * python/py-cmd.c (cmdpy_completer_helper): New function.
418 (cmdpy_completer_handle_brkchars): New function.
419 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
420 (cmdpy_init): Set completer_handle_brkchars to
421 cmdpy_completer_handle_brkchars.
422
97ea6506
GB
4232014-09-03 Gary Benson <gbenson@redhat.com>
424
425 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
426 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
427 Loop conditions changed to equivalent form.
428 (struct x86_debug_reg_state): Updated dr_ref_count comment.
429 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
430 ALL_DEBUG_ADDRESS_REGISTERS.
431
d1437815
JB
4322014-09-03 Joel Brobecker <brobecker@adacore.com>
433
434 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
435 description fix.
436
9b94fcf1
DE
4372014-09-02 Doug Evans <dje@google.com>
438
439 * typeprint.c (find_global_typedef): Fix comment.
440
df7e5265
GB
4412014-09-02 Gary Benson <gbenson@redhat.com>
442
443 * i386-nat.h: Renamed as...
444 * x86-nat.h: New file. All type, function and variable name
445 prefixes changed from "i386_" to "x86_". All references updated.
446 * i386-nat.c: Renamed as...
447 * x86-nat.c: New file. All type, function and variable name
448 prefixes changed from "i386_" to "x86_". All references updated.
449 * common/i386-xstate.h: Renamed as...
450 * common/x86-xstate.h: New file. All type, function and variable
451 name prefixes changed from "i386_" to "x86_". All references
452 updated.
453 * nat/i386-cpuid.h: Renamed as...
454 * nat/x86-cpuid.h: New file. All type, function and variable name
455 prefixes changed from "i386_" to "x86_". All references updated.
456 * nat/i386-gcc-cpuid.h: Renamed as...
457 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
458 name prefixes changed from "i386_" to "x86_". All references
459 updated.
460 * nat/i386-dregs.h: Renamed as...
461 * nat/x86-dregs.h: New file. All type, function and variable name
462 prefixes changed from "i386_" to "x86_". All references updated.
463 * nat/i386-dregs.c: Renamed as...
464 * nat/x86-dregs.c: New file. All type, function and variable name
465 prefixes changed from "i386_" to "x86_". All references updated.
466
1c3569d4
MR
4672014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
468
469 * varobj.c (_initialize_varobj): Move to the end of file.
470
ff55e1b5
GB
4712014-08-29 Gary Benson <gbenson@redhat.com>
472
473 * common/common-exceptions.h: New file.
474 * common/common-exceptions.c: Likewise.
475 * Makefile.in (SFILES): Add common/common-exceptions.c.
476 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
477 (COMMON_OBS): Add common-exceptions.o.
478 (common-exceptions.o): New rule.
479 * exceptions.h (common-exceptions.h): Include.
480 (gdb_setjmp.h): Do not include.
481 (return_reason): Moved to common-exceptions.h.
482 (enum return_reason): Likewise.
483 (RETURN_MASK): Likewise.
484 (typedef return_mask): Likewise.
485 (enum errors): Likewise.
486 (struct gdb_exception): Likewise.
487 (exceptions_state_mc_init): Likewise.
488 (exceptions_state_mc_action_iter): Likewise.
489 (exceptions_state_mc_action_iter_1): Likewise.
490 (TRY_CATCH): Likewise.
491 (throw_exception): Likewise.
492 (throw_verror): Likewise.
493 (throw_vquit): Likewise.
494 (throw_error): Likewise.
495 (throw_quit): Likewise.
496 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
497 (enum catcher_action): Likewise.
498 (struct catcher): Likewise.
499 (current_catcher): Likewise.
500 (catcher_list_size): Likewise.
501 (exceptions_state_mc_init): Likewise.
502 (catcher_pop): Likewise.
503 (exceptions_state_mc): Likewise.
504 (exceptions_state_mc_action_iter): Likewise.
505 (exceptions_state_mc_action_iter_1): Likewise.
506 (throw_exception): Likewise.
507 (exception_messages): Likewise.
508 (exception_messages_size): Likewise.
509 (throw_it): Likewise.
510 (throw_verror): Likewise.
511 (throw_vquit): Likewise.
512 (throw_error): Likewise.
513 (throw_quit): Likewise.
514 (prepare_to_throw_exception): New function.
515
e9bcb658
GB
5162014-08-29 Gary Benson <gbenson@redhat.com>
517
518 * common/gdb_setjmp.h: New file.
519 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
520 * configure.ac: Move sigsetjmp check...
521 * common/common.m4: ...here.
522 * configure: Regenerate.
523 * cp-support.c (SIGJMP_BUF): Delete.
524 (SIGSETJMP): Likewise.
525 (SIGLONGJMP): Likewise.
526 * exceptions.h (gdb_setjmp.h): Include.
527 (setjmp.h): Do not include.
528 (EXCEPTIONS_SIGJMP_BUF): Delete.
529 (EXCEPTIONS_SIGSETJMP): Likewise.
530 (EXCEPTIONS_SIGLONGJMP): Likewise.
531 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
532 from gdb_setjmp.h.
533 * exceptions.c: Likewise.
534
e3180625
GB
5352014-08-29 Gary Benson <gbenson@redhat.com>
536
537 * cleanups.h: Moved to...
538 * common/cleanups.h: New file.
539 * cleanups.c: Moved to...
540 * common/cleanups.c: New file. Include common-defs.h and
541 cleanups.h. Do not include defs.h.
542 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
543 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
544 (cleanups.o): New rule.
545
e3d6ba5d
GB
5462014-08-29 Gary Benson <gbenson@redhat.com>
547
548 * common/errors.h (internal_warning): New declaration.
549 (internal_vwarning): Likewise.
550 * common/errors.c (internal_warning): New function.
551 * utils.h (internal_warning): Don't declare.
552 (internal_vwarning): Likewise.
553 * utils.c (internal_warning): Removed.
554
075c7033
GB
5552014-08-29 Gary Benson <gbenson@redhat.com>
556
557 * main.c (captured_main): Use warning during startup.
558 Prefix startup warning messages with command name.
559
91b35fd0
GB
5602014-08-29 Gary Benson <gbenson@redhat.com>
561
562 * main.c (captured_main): Handle usage errors with error.
563
b1ec390e
GB
5642014-08-29 Gary Benson <gbenson@redhat.com>
565
566 * go32-nat.c (go32_create_inferior): Replace a fprintf/
567 exit pair with a call to error. Wrap the message with _().
568
fd0ef3dd
GB
5692014-08-29 Gary Benson <gbenson@redhat.com>
570
571 * main.c (captured_main): Replace a fprintf/exit
572 pair with a call to error. Wrap the message with _().
573
e0e6bcab
GB
5742014-08-29 Gary Benson <gbenson@redhat.com>
575
576 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
577 pairs with calls to error. Wrap the message with _().
578
0d2f5c07
GB
5792014-08-29 Gary Benson <gbenson@redhat.com>
580
581 * utils.c (vwarning): Protect calls to target_terminal_ours
582 and wrap_here.
583
5df43998
GB
5842014-08-29 Gary Benson <gbenson@redhat.com>
585
586 * exceptions.c (print_flush): Protect calls to
587 target_terminal_ours and wrap_here.
588
2437fd32
GB
5892014-08-29 Gary Benson <gbenson@redhat.com>
590
591 * utils.h (filtered_printing_initialized): New declaration.
592 * utils.c (abort_with_message): New function.
593 (internal_vproblem): Use abort_with_message for first level
594 recursive internal problems, and if gdb_stderr is not set up.
595 Protect calls to target_terminal_ours, begin_line and query.
596
f1f58506
DE
5972014-08-28 Doug Evans <dje@google.com>
598
599 * symtab.c (in_prologue): Move definition to better spot.
600 (skip_prologue_using_sal): Ditto.
601
aab2f208
DE
6022014-08-28 Doug Evans <dje@google.com>
603
604 * symtab.c (find_function_start_sal): Move definition to better spot.
605
6b65d1b6
YQ
6062014-08-28 Yao Qi <yao@codesourcery.com>
607
608 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
609 found_stack_adjust in forward scan. Remove condition check
610 on found_stack_adjust which is always true. Indent the code.
611
a1b34d15
YQ
6122014-08-28 Yao Qi <yao@codesourcery.com>
613
614 * dwarf2read.c (dwarf_decode_lines): Update declaration.
615 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
616 (dwarf_decode_lines): Remove argument
617 want_line_info. Remove condition check on want_line_info.
618 Callers update.
619
d5962de5
DE
6202014-08-27 Doug Evans <dje@google.com>
621
622 * dwarf2read.c (dwarf_record_line): Fix typo.
623
9b139002
SDJ
6242014-08-27 Patrick Palka <patrick@parcs.ath.cx>
625
626 * target.h (struct target_ops::to_terminal_save_ours): Remove
627 declaration.
628 (target_terminal_save_ours): Remove macro.
629 * target-delegates.c: Regenerate.
630 * inf-child.c (inf_child_target): Don't set the nonexistent
631 field to_terminal_save_ours.
632 * inferior.h (child_terminal_save_ours): Remove declaration.
633 * terminal.h (gdb_save_tty_state): New declaration.
634 * inflow.c (child_terminal_save_ours): Rename to ...
635 (gdb_save_tty_state): ... this.
636 * tui/tui.c: Include terminal.h.
637 (tui_enable): Use gdb_save_tty_state instead of
638 target_terminal_save_ours.
639 (tui_disable): Likewise.
640
9debeba0
DE
6412014-08-25 Doug Evans <dje@google.com>
642
643 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
644 Pass NULL instead of 0 for context pointer.
645
428fc5fc
YQ
6462014-08-25 Yao Qi <yao@codesourcery.com>
647
648 * dwarf2read.c: Fix grammatical error.
649
cdc07690
YQ
6502014-08-24 Yao Qi <yao@codesourcery.com>
651
652 * dwarf2read.c (scan_partial_symbols): Update comments.
653 Rename argument 'need_pc' with 'set_addrmap'.
654 (add_partial_namespace): Rename argument 'need_pc' with
655 'set_addrmap'.
656 (add_partial_module): Likewise.
657 (add_partial_subprogram): Likewise. Update comments.
658 (dwarf2_name): Fix typo.
659
a05a36a5
DE
6602014-08-22 Doug Evans <dje@google.com>
661
662 PR 17276
663 * dwarf2read.c (dwarf_record_line_p): New function.
664 (dwarf_decode_lines_1): Ignore subsequent line number entries
665 for the same line if any entry had a non-zero discriminator.
666
252a6764
DE
6672014-08-22 Doug Evans <dje@google.com>
668
669 * buildsym.h (record_line_ftype): New typedef.
670 (record_line): Use it.
671 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
672 (dwarf_decode_lines_1): Call them.
673
510db052
YQ
6742014-08-22 Yao Qi <yao@codesourcery.com>
675
676 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
677 (ctf_end): Remove code.
678
22fd09ae
JK
6792014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
680
681 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
682 (linux_make_corefile_notes): call update_thread_list, protected against
683 exceptions.
684
656e8868
PA
6852014-08-21 Pedro Alves <palves@redhat.com>
686
687 * infcmd.c (attach_command): Remove comment.
688
de589d04
WN
6892014-08-21 Bin Cheng <bin.cheng@arm.com>
690
691 * aarch64-linux-nat.c (dr_changed_t): Change the type from
692 unsigned LONGEST to ULONGEST.
693
2a31c623
PA
6942014-08-20 Pedro Alves <palves@redhat.com>
695
696 * Makefile.in (check-read1): New rule.
697
d36430db
JB
6982014-08-20 Joel Brobecker <brobecker@adacore.com>
699
700 * value.c (value_from_contents_and_address): Strip resolved_type's
701 typedef layers before checking its TYPE_DATA_LOCATION.
702
000339af
PA
7032014-08-20 Pedro Alves <palves@redhat.com>
704
705 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
706
5f52445b
YQ
7072014-08-20 Yao Qi <yao@codesourcery.com>
708
709 * amd64-tdep.c (amd64_classify): Add a blank line after the
710 example. Move "*/" to a new line.
711 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
712 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
713 * dwarf2read.c (psymtab_include_file_name): Likewise.
714
9a0dc9e3
PA
7152014-08-19 Andrew Burgess <aburgess@broadcom.com>
716 Pedro Alves <palves@redhat.com>
717
718 PR symtab/14604
719 PR symtab/14605
720 * ada-lang.c (coerce_unspec_val_to_type): Use
721 value_contents_copy_raw.
722 * ada-valprint.c (val_print_packed_array_elements): Adjust.
723 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
724 * cp-valprint.c (cp_print_value_fields): Let the common printing
725 code handle optimized out values.
726 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
727 * d-valprint.c (dynamic_array_type): Use
728 value_bits_any_optimized_out.
729 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
730 check_any_valid fields.
731 (check_pieced_value_bits): Delete and inline ...
732 (check_pieced_synthetic_pointer): ... here.
733 (check_pieced_value_validity): Delete.
734 (check_pieced_value_invalid): Delete.
735 (pieced_value_funcs): Remove check_validity and check_any_valid
736 fields.
737 (read_pieced_value): Use mark_value_bits_optimized_out.
738 (write_pieced_value): Switch to use
739 mark_value_bytes_optimized_out.
740 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
741 of assuming the whole value is optimized out.
742 * findvar.c (read_frame_register_value): Remove special handling
743 of optimized out registers.
744 (value_from_register): Use mark_value_bytes_optimized_out.
745 * frame-unwind.c (frame_unwind_got_optimized): Use
746 mark_value_bytes_optimized_out.
747 * jv-valprint.c (java_value_print): Adjust.
748 (java_print_value_fields): Let the common printing code handle
749 optimized out values.
750 * mips-tdep.c (mips_print_register): Remove special handling of
751 optimized out registers.
752 * opencl-lang.c (lval_func_check_validity): Delete.
753 (lval_func_check_any_valid): Delete.
754 (opencl_value_funcs): Remove check_validity and check_any_valid
755 fields.
756 * p-valprint.c (pascal_object_print_value_fields): Let the common
757 printing code handle optimized out values.
758 * stack.c (read_frame_arg): Remove special handling of optimized
759 out values. Fetch both VAL and ENTRYVAL before comparing
760 contents. Adjust to value_available_contents_eq rename.
761 * valprint.c (valprint_check_validity)
762 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
763 (val_print_array_elements): Adjust.
764 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
765 (value_bits_any_optimized_out): New function.
766 (value_entirely_covered_by_range_vector): New function, factored
767 out from value_entirely_unavailable.
768 (value_entirely_unavailable): Reimplement.
769 (value_entirely_optimized_out): New function.
770 (insert_into_bit_range_vector): New function, factored out from
771 mark_value_bits_unavailable.
772 (mark_value_bits_unavailable): Reimplement.
773 (struct ranges_and_idx): New struct.
774 (find_first_range_overlap_and_match): New function, factored out
775 from value_available_contents_bits_eq.
776 (value_available_contents_bits_eq): Rename to ...
777 (value_contents_bits_eq): ... this. Check both unavailable
778 contents and optimized out contents.
779 (value_available_contents_eq): Rename to ...
780 (value_contents_eq): ... this.
781 (allocate_value_lazy): Remove reference to the old optimized_out
782 boolean.
783 (allocate_optimized_out_value): Use
784 mark_value_bytes_optimized_out.
785 (require_not_optimized_out): Adjust to check whether the
786 optimized_out vec is empty.
787 (ranges_copy_adjusted): New function, factored out from
788 value_contents_copy_raw.
789 (value_contents_copy_raw): Also copy the optimized out ranges.
790 Assert the destination ranges aren't optimized out.
791 (value_contents_copy): Update comment, remove call to
792 require_not_optimized_out.
793 (value_contents_equal): Adjust to check whether the optimized_out
794 vec is empty.
795 (set_value_optimized_out, value_optimized_out_const): Delete.
796 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
797 New functions.
798 (value_entirely_optimized_out, value_bits_valid): Delete.
799 (value_copy): Take a VEC copy of the 'optimized_out' field.
800 (value_primitive_field): Remove special handling of optimized out.
801 (value_fetch_lazy): Assert that lazy values have no unavailable
802 regions. Use value_bits_any_optimized_out. Remove some special
803 handling for optimized out values.
804 * value.h: Add intro comment about <optimized out> and
805 <unavailable>.
806 (struct lval_funcs): Remove check_validity and check_any_valid
807 fields.
808 (set_value_optimized_out, value_optimized_out_const): Remove.
809 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
810 New declarations.
811 (value_bits_any_optimized_out): New declaration.
812 (value_bits_valid): Delete declaration.
813 (value_available_contents_eq): Rename to ...
814 (value_contents_eq): ... this, and extend comments.
815
6694c411
JK
8162014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
817
818 Fix -fsanitize=address on unreadable inferior strings.
819 * valprint.c (val_print_string): Fix access before BUFFER.
820
89a1c21a
SM
8212014-08-19 Simon Marchi <simon.marchi@ericsson.com>
822
823 * target.c (target_struct_size): Remove.
824 (target_struct_allocsize): Remove.
825 (DEFAULT_ALLOCSIZE): Remove.
826 (target_ops_p): New typedef.
827 (DEF_VEC_P (target_ops_p)): New vector type.
828 (target_structs): Change type to VEC (target_ops_p).
829 (add_target_with_completer): Replace "push" code by VEC_safe_push.
830 (find_default_run_target): Rewrite for loop following changes to
831 target_structs.
832
cb417230
JB
8332014-08-19 Joel Brobecker <brobecker@adacore.com>
834
835 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
836 Adjust code accordingly. Adjust function description comment.
837
817e0957
YQ
8382014-08-19 Yao Qi <yao@codesourcery.com>
839
840 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
841 types.
842
2974be62
AM
8432014-08-19 Alan Modra <amodra@gmail.com>
844
845 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
846 * config.in: Regenerate.
847 * configure: Regenerate.
848
34abf635
GB
8492014-08-19 Tom Tromey <tromey@redhat.com>
850 Gary Benson <gbenson@redhat.com>
851
852 * common/common-debug.h: New file.
853 * common/common-debug.c: Likewise.
854 * debug.c: Likewise.
855 * Makefile.in (SFILES): Add common/common-debug.c.
856 (HFILES_NO_SRCDIR): Add common/common-debug.h.
857 (COMMON_OBS): Add common-debug.o and debug.o.
858 (common-debug.o): New rule.
859 * common/common-defs.h: Include common-debug.h.
860 * common/agent.c (debug_agent_printf): New function.
861 (DEBUG_AGENT): Redefine.
862 * nat/i386-dregs.c (debug_printf): Undefine.
863
f6e94d78
GB
8642014-08-19 Gary Benson <gbenson@redhat.com>
865
866 * common/common-defs.h: Include print-utils.h.
867 * utils.h: Do not include print-utils.h.
868
9239eeab
GB
8692014-08-19 Tom Tromey <tromey@redhat.com>
870 Gary Benson <gbenson@redhat.com>
871
872 * common/common-types.h: New file.
873 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
874 * common/common-defs.h: Include common-types.h.
875 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
876 (ULONGEST): Remove.
877
ef87c8bb
GB
8782014-08-19 Tom Tromey <tromey@redhat.com>
879 Gary Benson <gbenson@redhat.com>
880
881 * common/errors.h: New file.
882 * common/errors.c: Likewise.
883 * Makefile.in (SFILES): Add common/errors.c.
884 (HFILES_NO_SRCDIR): Add common/errors.h.
885 (COMMON_OBS): Add errors.o.
886 (errors.o): New rule.
887 * common/common-defs.h: Include errors.h.
888 * utils.h (perror_with_name, error, verror, warning, vwarning):
889 Don't declare.
890 * common/common-utils.h: (malloc_failure, internal_error):
891 Likewise.
892
196a707b
GB
8932014-08-19 Gary Benson <gbenson@redhat.com>
894
895 * utils.c (internal_vproblem): Always print the message.
896
ded4fc8f
DE
8972014-08-18 Doug Evans <dje@google.com>
898
899 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
900
950c97d8
JB
9012014-08-18 Joel Brobecker <brobecker@adacore.com>
902
903 * ada-typeprint.c (type_is_full_subrange_of_target_type):
904 Return 0 if TYPE is dynamic.
905 (print_range): Add handling of dynamic ranges.
906
3cdcd0ce
JB
9072014-08-18 Keven Boell <keven.boell@intel.com>
908 Joel Brobecker <brobecker@adacore.com>
909
910 * gdbtypes.h (struct main_type): Add field "data_location".
911 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
912 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
913 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
914 a dynamic data location.
915 (resolve_dynamic_type): Add DW_AT_data_location handling.
916 (copy_recursive, copy_type): Copy the data_location information
917 when present.
918 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
919 * value.c (value_from_contents_and_address): Add
920 DW_AT_data_location handling.
921
08412b07
JB
9222014-08-18 Keven Boell <keven.boell@intel.com>
923 Joel Brobecker <brobecker@adacore.com>
924
925 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
926 field "get_object_address".
927 * dwarf2expr.c (execute_stack_op): Add handling for
928 DW_OP_push_object_address.
929 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
930 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
931 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
932 (dwarf_expr_get_obj_addr): New function.
933 (dwarf_expr_ctx_funcs): Add get_object_address field.
934 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
935 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
936 (dwarf2_evaluate_property): Add parameter "address". Use it.
937 (needs_get_obj_addr): New function.
938 (needs_frame_ctx_funcs): Add get_object_address field.
939 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
940 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
941 (resolve_dynamic_array): Likewise.
942
84754697
JB
9432014-08-18 Joel Brobecker <brobecker@adacore.com>
944
945 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
946 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
947 fixed value for records and unions for which some GNAT encodings
948 are present.
949
da5c522f
JB
9502014-08-18 Joel Brobecker <brobecker@adacore.com>
951
952 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
953 rewrite to avoid "else if" and "else" constructs. Should be
954 a no-op in practice.
955
0d72a7c3
JB
9562014-08-18 Joel Brobecker <brobecker@adacore.com>
957
958 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
959 of lexical block.
960
e66d4446
SC
9612014-08-15 Siva Chandra Reddy <sivachandra@google.com>
962
963 PR c++/17132
964 * eval.c: Update all calls to find_overload_match.
965 * valarith.c: Likewise.
966 (value_user_defined_cpp_op, value_user_defined_op): New
967 argument NOSIDE. Update all callers.
968 * valops.c (find_overload_match): New argument NOSIDE.
969 * value.h (find_overload_match): Update signature.
970
940df408
SC
9712014-08-15 Siva Chandra Reddy <sivachandra@google.com>
972
973 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
974 'items' methods instead of 'iteritems' method on dictionaries.
975
699ca60a
DE
9762014-08-15 Doug Evans <dje@google.com>
977
978 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
979 closer to use.
980
37780ee5
DE
9812014-08-15 Doug Evans <dje@google.com>
982
983 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
984
0ad93d4f
DE
9852014-08-15 Doug Evans <dje@google.com>
986
987 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
988
20d8c372
DE
9892014-08-15 Doug Evans <dje@google.com>
990
991 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
992 unused.
993
cb039ba4
EZ
9942014-08-15 Eli Zaretskii <eliz@gnu.org>
995
996 * dcache.h: Include target.h, to avoid compile time warnings.
997
eb7a547a
JB
9982014-08-15 Joel Brobecker <brobecker@adacore.com>
999
1000 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1001 frame_info" partial declaration.
1002 * gdbarch.h: Regenerate.
1003
783cecc8
YQ
10042014-08-15 Yao Qi <yao@codesourcery.com>
1005
1006 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1007 Add parameter 'decode_for_pst_p'. Callers update.
1008
65c749e7
YQ
10092014-08-13 Yao Qi <yao@codesourcery.com>
1010
1011 PR build/17104
1012 * configure.ac: Use local variable 'pos'.
1013 * configure: Regenerated.
1014
d769e349
DE
10152014-08-11 Doug Evans <dje@google.com>
1016
1017 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1018 message, it is redundant with "Reading symbols from ..." message.
1019
24f1235e
DE
10202014-08-10 Doug Evans <xdje42@gmail.com>
1021
1022 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1023
dcd2e6ef
YQ
10242014-08-09 Yao Qi <yao@codesourcery.com>
1025
1026 PR remote/9053
1027 * remote.c (remote_xfer_partial): Remove dead code.
1028
070bdf0b
AA
10292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1030
1031 * ia64-linux-tdep.c: Include "regset.h".
1032 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1033 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1034 (ia64_linux_supply_fpregset): New function.
1035 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1036 (ia64_linux_regset_from_core_section): New function.
1037 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1038 method.
1039
08f9f542
AA
10402014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1041
1042 * m68klinux-tdep.c: Include "regset.h".
1043 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1044 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1045 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1046 (m68k_linux_regset_from_core_section): New function.
1047 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1048 method.
1049
8f1cee41
AA
10502014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1051
1052 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1053 function. Move logic to...
1054 (tilegx_linux_regmap): ... this new register map.
1055 (tilegx_linux_regset): Refer to register map, replace supply
1056 method by regcache_supply_regset, and add collect method.
1057 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1058 TILEGX_FIRST_EASY_REGNUM.
1059
c5741217
AA
10602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1061
1062 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1063 that calls regcache_supply_regset and handles the EPC register
1064 separately. Move main logic to...
1065 (score7_linux_gregmap): ... this new register map.
1066 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1067 (score7_linux_gregset): Refer to register map. Add collect method.
1068 (score7_linux_regset_from_core_section): Replace
1069 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1070 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1071 (struct regset): Delete unused forward declaraction.
1072 (struct pt_regs): Delete structure definition.
1073 (elf_gregset_t): Delete typedef.
1074
81580573
AA
10752014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1076
1077 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1078 (nios2_core_regset): Add collect method.
1079
ba199d7d
AA
10802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1081
1082 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1083 platform-independent and don't write to read-only input buffer.
1084 (m32r_linux_collect_gregset): New function.
1085 (m32r_linux_gregset): Add collect method.
1086
0006a9da
AA
10872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1088
1089 * hppa-linux-tdep.c (greg_map): Rename to...
1090 (hppa_linux_gregmap): ... this. Also convert to
1091 regcache_map_entry format.
1092 (hppa_linux_supply_regset): Delete function.
1093 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1094 (hppa_linux_fpregmap): ... this new register map.
1095 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1096 register map, replace supply method by regcache_supply_regset, and
1097 add collect method regcache_collect_regset.
1098
901e1b23
AA
10992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1100
1101 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1102 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1103 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1104 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1105 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1106 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1107 (frv_linux_supply_gregset): Replace main logic by call to
1108 regcache_supply_regset, but keep clearing gr32-gr63.
1109 (frv_linux_supply_fpregset): Delete function.
1110 (frv_linux_gregset): Refer to appropriate register map and add
1111 regcache_collect_regset as the collect method.
1112 (frv_linux_fpregset): Likewise. Also exchange the supply method
1113 by regcache_supply_regset.
1114
1d6e7555
AA
11152014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1116
1117 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1118 by call to alpha_supply_int_regs.
1119 (alpha_linux_collect_gregset): New function.
1120 (alpha_linux_supply_fpregset): Replace logic by call to
1121 alpha_supply_fp_regs.
1122 (alpha_linux_collect_fpregset): New function.
1123 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1124
d4d793bf
AA
11252014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1126
1127 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1128 by call to regcache_collect_regset.
1129 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1130 instead of aarch64_linux_supply_gregset/_fpregset.
1131 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1132 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1133 header file instead.
1134 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1135 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1136 functions. Move logic to ...
1137 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1138 register maps.
1139 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1140 refer to new register maps, replace *_regset_from_core by
1141 regcache_supply_regset, and also use regcache_collect_regset.
1142 * aarch64-linux-tdep.h: Include "regset.h".
1143 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1144 Delete prototypes.
1145 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1146 macros, moved from C source file.
1147 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1148 variable declarations.
1149
99b7da5d
AA
11502014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1151
1152 * s390-linux-nat.c: Include "regset.h".
1153 (regmap_gregset): Delete macro.
1154 (s390_64_regmap_gregset): New register map for
1155 regcache_supply/_collect_regset.
1156 (s390_64_gregset): New regset.
1157 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1158 (regmap_fpregset): Delete macro.
1159 (s390_native_supply, s390_native_collect): Delete functions.
1160 (supply_gregset, fill_gregset): Replace s390-specific regmap
1161 handling by a call to regcache_supply/_collect_regset.
1162 (supply_fpregset, fill_fpregset): Call regcache_supply/
1163 _collect_regset instead of s390_native_supply/_collect.
1164 (fetch_regset, store_regset): Likewise. Also change the last
1165 parameter to a regset instead of a regmap.
1166 (s390_linux_fetch_inferior_registers)
1167 (390_linux_store_inferior_registers): Adjust last parameter in
1168 calls to fetch_regset and store_regset.
1169 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1170 (s390_gregmap): ... this. Also make static const and convert to
1171 regcache_map_entry format.
1172 (s390x_regmap_gregset): Delete.
1173 (s390_regmap_fpregset): Rename to...
1174 (s390_fpregmap): ... this. Make static const and convert to
1175 regcache_map_entry format.
1176 (s390_regmap_upper, s390_regmap_last_break)
1177 (s390x_regmap_last_break, s390_regmap_system_call)
1178 (s390_regmap_tdb): Likewise.
1179 (s390_supply_regset, s390_collect_regset): Remove functions.
1180 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1181 s390_supply_regset.
1182 (s390_gregset, s390_fpregset, s390_upper_regset)
1183 (s390_last_break_regset, s390x_last_break_regset)
1184 (s390_system_call_regset, s390_tdb_regset): Make global and
1185 replace s390_supply/_collect_regset by regcache_supply/
1186 _collect_regset.
1187 (s390x_gregset): Delete.
1188 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1189 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1190 (s390_regmap_fpregset, s390_regmap_last_break)
1191 (s390x_regmap_last_break, s390_regmap_system_call)
1192 (s390_regmap_tdb): Delete global variable declarations.
1193 (s390_gregset, s390_fpregset, s390_last_break_regset)
1194 (s390x_last_break_regset, s390_system_call_regset)
1195 (s390_tdb_regset): New global variable declarations.
1196
0b309272
AA
11972014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1198
1199 * regcache.c: Include "regset.h".
1200 (regcache_transfer_regset): New local function.
1201 (regcache_supply_regset, regcache_collect_regset): New functions.
1202 * regcache.h (struct regcache_map_entry): New structure.
1203 (REGCACHE_MAP_SKIP): New enum value.
1204 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1205
7fefa8d7
AA
12062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1207
1208 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1209 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1210 (ppc_linux_collect_gregset ): Likewise.
1211 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1212 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1213 (ppc_collect_vrregset): Likewise.
1214 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1215 Likewise.
1216
96c4f946
YQ
12172014-08-07 Yao Qi <yao@codesourcery.com>
1218
1219 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1220 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1221 * remote.c (remote_read_bytes): Likewise.
1222
fffbe6a8
YQ
12232014-08-07 Yao Qi <yao@codesourcery.com>
1224
1225 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1226
5ee8a82c
YQ
12272014-08-07 Yao Qi <yao@codesourcery.com>
1228
1229 PR remote/17230
1230 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1231 TARGET_XFER_OK instead of 0.
1232
bb974a24
GB
12332014-08-07 Gary Benson <gbenson@redhat.com>
1234
1235 * common/common-defs.h: Include errno.h.
1236 * defs.h: Do not include errno.h.
1237 * ada-typeprint.c: Likewise.
1238 * c-typeprint.c: Likewise.
1239 * core-regset.c: Likewise.
1240 * corefile.c: Likewise.
1241 * corelow.c: Likewise.
1242 * event-loop.c: Likewise.
1243 * f-typeprint.c: Likewise.
1244 * gnu-nat.c: Likewise.
1245 * go32-nat.c: Likewise.
1246 * i386gnu-nat.c: Likewise.
1247 * m2-typeprint.c: Likewise.
1248 * nat/linux-btrace.c: Likewise.
1249 * p-typeprint.c: Likewise.
1250 * procfs.c: Likewise.
1251 * remote-sim.c: Likewise.
1252 * rs6000-nat.c: Likewise.
1253 * target.c: Likewise.
1254 * typeprint.c: Likewise.
1255 * ui-file.c: Likewise.
1256 * valops.c: Likewise.
1257 * valprint.c: Likewise.
1258
6d3d12eb
GB
12592014-08-07 Gary Benson <gbenson@redhat.com>
1260
1261 * common/common-defs.h: Include string.h.
1262 * aarch64-tdep.c: Do not include string.h.
1263 * ada-exp.y: Likewise.
1264 * ada-lang.c: Likewise.
1265 * ada-lex.l: Likewise.
1266 * ada-typeprint.c: Likewise.
1267 * ada-valprint.c: Likewise.
1268 * aix-thread.c: Likewise.
1269 * alpha-linux-tdep.c: Likewise.
1270 * alpha-mdebug-tdep.c: Likewise.
1271 * alpha-nat.c: Likewise.
1272 * alpha-osf1-tdep.c: Likewise.
1273 * alpha-tdep.c: Likewise.
1274 * alphanbsd-tdep.c: Likewise.
1275 * amd64-dicos-tdep.c: Likewise.
1276 * amd64-linux-tdep.c: Likewise.
1277 * amd64-nat.c: Likewise.
1278 * amd64-sol2-tdep.c: Likewise.
1279 * amd64fbsd-tdep.c: Likewise.
1280 * amd64obsd-tdep.c: Likewise.
1281 * arch-utils.c: Likewise.
1282 * arm-linux-nat.c: Likewise.
1283 * arm-linux-tdep.c: Likewise.
1284 * arm-tdep.c: Likewise.
1285 * arm-wince-tdep.c: Likewise.
1286 * armbsd-tdep.c: Likewise.
1287 * armnbsd-nat.c: Likewise.
1288 * armnbsd-tdep.c: Likewise.
1289 * armobsd-tdep.c: Likewise.
1290 * avr-tdep.c: Likewise.
1291 * ax-gdb.c: Likewise.
1292 * ax-general.c: Likewise.
1293 * bcache.c: Likewise.
1294 * bfin-tdep.c: Likewise.
1295 * breakpoint.c: Likewise.
1296 * build-id.c: Likewise.
1297 * buildsym.c: Likewise.
1298 * c-exp.y: Likewise.
1299 * c-lang.c: Likewise.
1300 * c-typeprint.c: Likewise.
1301 * c-valprint.c: Likewise.
1302 * charset.c: Likewise.
1303 * cli-out.c: Likewise.
1304 * cli/cli-cmds.c: Likewise.
1305 * cli/cli-decode.c: Likewise.
1306 * cli/cli-dump.c: Likewise.
1307 * cli/cli-interp.c: Likewise.
1308 * cli/cli-logging.c: Likewise.
1309 * cli/cli-script.c: Likewise.
1310 * cli/cli-setshow.c: Likewise.
1311 * cli/cli-utils.c: Likewise.
1312 * coffread.c: Likewise.
1313 * common/agent.c: Likewise.
1314 * common/buffer.c: Likewise.
1315 * common/buffer.h: Likewise.
1316 * common/common-utils.c: Likewise.
1317 * common/filestuff.c: Likewise.
1318 * common/filestuff.c: Likewise.
1319 * common/format.c: Likewise.
1320 * common/print-utils.c: Likewise.
1321 * common/rsp-low.c: Likewise.
1322 * common/signals.c: Likewise.
1323 * common/vec.h: Likewise.
1324 * common/xml-utils.c: Likewise.
1325 * core-regset.c: Likewise.
1326 * corefile.c: Likewise.
1327 * corelow.c: Likewise.
1328 * cp-abi.c: Likewise.
1329 * cp-name-parser.y: Likewise.
1330 * cp-support.c: Likewise.
1331 * cp-valprint.c: Likewise.
1332 * cris-tdep.c: Likewise.
1333 * d-exp.y: Likewise.
1334 * darwin-nat.c: Likewise.
1335 * dbxread.c: Likewise.
1336 * dcache.c: Likewise.
1337 * demangle.c: Likewise.
1338 * dicos-tdep.c: Likewise.
1339 * disasm.c: Likewise.
1340 * doublest.c: Likewise.
1341 * dsrec.c: Likewise.
1342 * dummy-frame.c: Likewise.
1343 * dwarf2-frame.c: Likewise.
1344 * dwarf2loc.c: Likewise.
1345 * dwarf2read.c: Likewise.
1346 * elfread.c: Likewise.
1347 * environ.c: Likewise.
1348 * eval.c: Likewise.
1349 * event-loop.c: Likewise.
1350 * exceptions.c: Likewise.
1351 * exec.c: Likewise.
1352 * expprint.c: Likewise.
1353 * f-exp.y: Likewise.
1354 * f-lang.c: Likewise.
1355 * f-typeprint.c: Likewise.
1356 * f-valprint.c: Likewise.
1357 * fbsd-nat.c: Likewise.
1358 * findcmd.c: Likewise.
1359 * findvar.c: Likewise.
1360 * fork-child.c: Likewise.
1361 * frame.c: Likewise.
1362 * frv-linux-tdep.c: Likewise.
1363 * frv-tdep.c: Likewise.
1364 * gdb.c: Likewise.
1365 * gdb_bfd.c: Likewise.
1366 * gdbarch.c: Likewise.
1367 * gdbarch.sh: Likewise.
1368 * gdbtypes.c: Likewise.
1369 * gnu-nat.c: Likewise.
1370 * gnu-v2-abi.c: Likewise.
1371 * gnu-v3-abi.c: Likewise.
1372 * go-exp.y: Likewise.
1373 * go-lang.c: Likewise.
1374 * go32-nat.c: Likewise.
1375 * guile/guile.c: Likewise.
1376 * guile/scm-auto-load.c: Likewise.
1377 * hppa-hpux-tdep.c: Likewise.
1378 * hppa-linux-nat.c: Likewise.
1379 * hppanbsd-tdep.c: Likewise.
1380 * hppaobsd-tdep.c: Likewise.
1381 * i386-cygwin-tdep.c: Likewise.
1382 * i386-dicos-tdep.c: Likewise.
1383 * i386-linux-tdep.c: Likewise.
1384 * i386-nto-tdep.c: Likewise.
1385 * i386-sol2-tdep.c: Likewise.
1386 * i386-tdep.c: Likewise.
1387 * i386bsd-tdep.c: Likewise.
1388 * i386gnu-nat.c: Likewise.
1389 * i386nbsd-tdep.c: Likewise.
1390 * i386obsd-tdep.c: Likewise.
1391 * i387-tdep.c: Likewise.
1392 * ia64-libunwind-tdep.c: Likewise.
1393 * ia64-linux-nat.c: Likewise.
1394 * inf-child.c: Likewise.
1395 * inf-ptrace.c: Likewise.
1396 * inf-ttrace.c: Likewise.
1397 * infcall.c: Likewise.
1398 * infcmd.c: Likewise.
1399 * inflow.c: Likewise.
1400 * infrun.c: Likewise.
1401 * interps.c: Likewise.
1402 * iq2000-tdep.c: Likewise.
1403 * irix5-nat.c: Likewise.
1404 * jv-exp.y: Likewise.
1405 * jv-lang.c: Likewise.
1406 * jv-typeprint.c: Likewise.
1407 * jv-valprint.c: Likewise.
1408 * language.c: Likewise.
1409 * linux-fork.c: Likewise.
1410 * linux-nat.c: Likewise.
1411 * lm32-tdep.c: Likewise.
1412 * m2-exp.y: Likewise.
1413 * m2-typeprint.c: Likewise.
1414 * m32c-tdep.c: Likewise.
1415 * m32r-linux-nat.c: Likewise.
1416 * m32r-linux-tdep.c: Likewise.
1417 * m32r-rom.c: Likewise.
1418 * m32r-tdep.c: Likewise.
1419 * m68hc11-tdep.c: Likewise.
1420 * m68k-tdep.c: Likewise.
1421 * m68kbsd-tdep.c: Likewise.
1422 * m68klinux-nat.c: Likewise.
1423 * m68klinux-tdep.c: Likewise.
1424 * m88k-tdep.c: Likewise.
1425 * machoread.c: Likewise.
1426 * macrocmd.c: Likewise.
1427 * main.c: Likewise.
1428 * mdebugread.c: Likewise.
1429 * mem-break.c: Likewise.
1430 * memattr.c: Likewise.
1431 * memory-map.c: Likewise.
1432 * mep-tdep.c: Likewise.
1433 * mi/mi-cmd-break.c: Likewise.
1434 * mi/mi-cmd-disas.c: Likewise.
1435 * mi/mi-cmd-env.c: Likewise.
1436 * mi/mi-cmd-stack.c: Likewise.
1437 * mi/mi-cmd-var.c: Likewise.
1438 * mi/mi-cmds.c: Likewise.
1439 * mi/mi-console.c: Likewise.
1440 * mi/mi-getopt.c: Likewise.
1441 * mi/mi-interp.c: Likewise.
1442 * mi/mi-main.c: Likewise.
1443 * mi/mi-parse.c: Likewise.
1444 * microblaze-rom.c: Likewise.
1445 * microblaze-tdep.c: Likewise.
1446 * mingw-hdep.c: Likewise.
1447 * minidebug.c: Likewise.
1448 * minsyms.c: Likewise.
1449 * mips-irix-tdep.c: Likewise.
1450 * mips-linux-tdep.c: Likewise.
1451 * mips-tdep.c: Likewise.
1452 * mips64obsd-tdep.c: Likewise.
1453 * mipsnbsd-tdep.c: Likewise.
1454 * mipsread.c: Likewise.
1455 * mn10300-linux-tdep.c: Likewise.
1456 * mn10300-tdep.c: Likewise.
1457 * monitor.c: Likewise.
1458 * moxie-tdep.c: Likewise.
1459 * mt-tdep.c: Likewise.
1460 * nat/linux-btrace.c: Likewise.
1461 * nat/linux-osdata.c: Likewise.
1462 * nat/linux-procfs.c: Likewise.
1463 * nat/linux-ptrace.c: Likewise.
1464 * nat/linux-waitpid.c: Likewise.
1465 * nbsd-tdep.c: Likewise.
1466 * nios2-linux-tdep.c: Likewise.
1467 * nto-procfs.c: Likewise.
1468 * nto-tdep.c: Likewise.
1469 * objc-lang.c: Likewise.
1470 * objfiles.c: Likewise.
1471 * opencl-lang.c: Likewise.
1472 * osabi.c: Likewise.
1473 * osdata.c: Likewise.
1474 * p-exp.y: Likewise.
1475 * p-lang.c: Likewise.
1476 * p-typeprint.c: Likewise.
1477 * parse.c: Likewise.
1478 * posix-hdep.c: Likewise.
1479 * ppc-linux-nat.c: Likewise.
1480 * ppc-sysv-tdep.c: Likewise.
1481 * ppcfbsd-tdep.c: Likewise.
1482 * ppcnbsd-tdep.c: Likewise.
1483 * ppcobsd-tdep.c: Likewise.
1484 * printcmd.c: Likewise.
1485 * procfs.c: Likewise.
1486 * prologue-value.c: Likewise.
1487 * python/py-auto-load.c: Likewise.
1488 * python/py-gdb-readline.c: Likewise.
1489 * ravenscar-thread.c: Likewise.
1490 * regcache.c: Likewise.
1491 * registry.c: Likewise.
1492 * remote-fileio.c: Likewise.
1493 * remote-m32r-sdi.c: Likewise.
1494 * remote-mips.c: Likewise.
1495 * remote-notif.c: Likewise.
1496 * remote-sim.c: Likewise.
1497 * remote.c: Likewise.
1498 * reverse.c: Likewise.
1499 * rs6000-aix-tdep.c: Likewise.
1500 * ser-base.c: Likewise.
1501 * ser-go32.c: Likewise.
1502 * ser-mingw.c: Likewise.
1503 * ser-pipe.c: Likewise.
1504 * ser-tcp.c: Likewise.
1505 * ser-unix.c: Likewise.
1506 * serial.c: Likewise.
1507 * sh-tdep.c: Likewise.
1508 * sh64-tdep.c: Likewise.
1509 * shnbsd-tdep.c: Likewise.
1510 * skip.c: Likewise.
1511 * sol-thread.c: Likewise.
1512 * solib-dsbt.c: Likewise.
1513 * solib-frv.c: Likewise.
1514 * solib-osf.c: Likewise.
1515 * solib-som.c: Likewise.
1516 * solib-spu.c: Likewise.
1517 * solib-target.c: Likewise.
1518 * solib.c: Likewise.
1519 * somread.c: Likewise.
1520 * source.c: Likewise.
1521 * sparc-nat.c: Likewise.
1522 * sparc-sol2-tdep.c: Likewise.
1523 * sparc-tdep.c: Likewise.
1524 * sparc64-tdep.c: Likewise.
1525 * sparc64fbsd-tdep.c: Likewise.
1526 * sparc64nbsd-tdep.c: Likewise.
1527 * sparcnbsd-tdep.c: Likewise.
1528 * spu-linux-nat.c: Likewise.
1529 * spu-multiarch.c: Likewise.
1530 * spu-tdep.c: Likewise.
1531 * stabsread.c: Likewise.
1532 * stack.c: Likewise.
1533 * std-regs.c: Likewise.
1534 * symfile.c: Likewise.
1535 * symmisc.c: Likewise.
1536 * symtab.c: Likewise.
1537 * target.c: Likewise.
1538 * thread.c: Likewise.
1539 * tilegx-linux-nat.c: Likewise.
1540 * tilegx-tdep.c: Likewise.
1541 * top.c: Likewise.
1542 * tracepoint.c: Likewise.
1543 * tui/tui-command.c: Likewise.
1544 * tui/tui-data.c: Likewise.
1545 * tui/tui-disasm.c: Likewise.
1546 * tui/tui-file.c: Likewise.
1547 * tui/tui-layout.c: Likewise.
1548 * tui/tui-out.c: Likewise.
1549 * tui/tui-regs.c: Likewise.
1550 * tui/tui-source.c: Likewise.
1551 * tui/tui-stack.c: Likewise.
1552 * tui/tui-win.c: Likewise.
1553 * tui/tui-windata.c: Likewise.
1554 * tui/tui-winsource.c: Likewise.
1555 * typeprint.c: Likewise.
1556 * ui-file.c: Likewise.
1557 * ui-out.c: Likewise.
1558 * user-regs.c: Likewise.
1559 * utils.c: Likewise.
1560 * v850-tdep.c: Likewise.
1561 * valarith.c: Likewise.
1562 * valops.c: Likewise.
1563 * valprint.c: Likewise.
1564 * value.c: Likewise.
1565 * varobj.c: Likewise.
1566 * vax-tdep.c: Likewise.
1567 * vaxnbsd-tdep.c: Likewise.
1568 * vaxobsd-tdep.c: Likewise.
1569 * windows-nat.c: Likewise.
1570 * xcoffread.c: Likewise.
1571 * xml-support.c: Likewise.
1572 * xstormy16-tdep.c: Likewise.
1573 * xtensa-linux-nat.c: Likewise.
1574
dccbb609
GB
15752014-08-07 Gary Benson <gbenson@redhat.com>
1576
1577 * common/common-defs.h: Include gdb_assert.h.
1578 * aarch64-tdep.c: Do not include gdb_assert.h.
1579 * addrmap.c: Likewise.
1580 * aix-thread.c: Likewise.
1581 * alpha-linux-tdep.c: Likewise.
1582 * alpha-mdebug-tdep.c: Likewise.
1583 * alphanbsd-tdep.c: Likewise.
1584 * amd64-nat.c: Likewise.
1585 * amd64-tdep.c: Likewise.
1586 * amd64bsd-nat.c: Likewise.
1587 * amd64fbsd-nat.c: Likewise.
1588 * amd64fbsd-tdep.c: Likewise.
1589 * amd64nbsd-nat.c: Likewise.
1590 * amd64nbsd-tdep.c: Likewise.
1591 * amd64obsd-nat.c: Likewise.
1592 * amd64obsd-tdep.c: Likewise.
1593 * arch-utils.c: Likewise.
1594 * arm-tdep.c: Likewise.
1595 * armbsd-tdep.c: Likewise.
1596 * auxv.c: Likewise.
1597 * bcache.c: Likewise.
1598 * bfin-tdep.c: Likewise.
1599 * blockframe.c: Likewise.
1600 * breakpoint.c: Likewise.
1601 * bsd-kvm.c: Likewise.
1602 * bsd-uthread.c: Likewise.
1603 * buildsym.c: Likewise.
1604 * c-exp.y: Likewise.
1605 * c-lang.c: Likewise.
1606 * charset.c: Likewise.
1607 * cleanups.c: Likewise.
1608 * cli-out.c: Likewise.
1609 * cli/cli-decode.c: Likewise.
1610 * cli/cli-dump.c: Likewise.
1611 * cli/cli-logging.c: Likewise.
1612 * cli/cli-script.c: Likewise.
1613 * cli/cli-utils.c: Likewise.
1614 * coffread.c: Likewise.
1615 * common/common-utils.c: Likewise.
1616 * common/queue.h: Likewise.
1617 * common/signals.c: Likewise.
1618 * common/vec.h: Likewise.
1619 * complaints.c: Likewise.
1620 * completer.c: Likewise.
1621 * corelow.c: Likewise.
1622 * cp-abi.c: Likewise.
1623 * cp-name-parser.y: Likewise.
1624 * cp-namespace.c: Likewise.
1625 * cp-support.c: Likewise.
1626 * cris-tdep.c: Likewise.
1627 * dbxread.c: Likewise.
1628 * dictionary.c: Likewise.
1629 * doublest.c: Likewise.
1630 * dsrec.c: Likewise.
1631 * dummy-frame.c: Likewise.
1632 * dwarf2-frame-tailcall.c: Likewise.
1633 * dwarf2-frame.c: Likewise.
1634 * dwarf2expr.c: Likewise.
1635 * dwarf2loc.c: Likewise.
1636 * dwarf2read.c: Likewise.
1637 * eval.c: Likewise.
1638 * event-loop.c: Likewise.
1639 * exceptions.c: Likewise.
1640 * expprint.c: Likewise.
1641 * f-valprint.c: Likewise.
1642 * fbsd-nat.c: Likewise.
1643 * findvar.c: Likewise.
1644 * frame-unwind.c: Likewise.
1645 * frame.c: Likewise.
1646 * frv-tdep.c: Likewise.
1647 * gcore.c: Likewise.
1648 * gdb-dlfcn.c: Likewise.
1649 * gdb_bfd.c: Likewise.
1650 * gdbarch.c: Likewise.
1651 * gdbarch.sh: Likewise.
1652 * gdbtypes.c: Likewise.
1653 * gnu-nat.c: Likewise.
1654 * gnu-v3-abi.c: Likewise.
1655 * go-lang.c: Likewise.
1656 * guile/scm-exception.c: Likewise.
1657 * guile/scm-gsmob.c: Likewise.
1658 * guile/scm-lazy-string.c: Likewise.
1659 * guile/scm-math.c: Likewise.
1660 * guile/scm-pretty-print.c: Likewise.
1661 * guile/scm-safe-call.c: Likewise.
1662 * guile/scm-utils.c: Likewise.
1663 * guile/scm-value.c: Likewise.
1664 * h8300-tdep.c: Likewise.
1665 * hppa-hpux-nat.c: Likewise.
1666 * hppa-tdep.c: Likewise.
1667 * hppanbsd-tdep.c: Likewise.
1668 * hppaobsd-tdep.c: Likewise.
1669 * i386-darwin-nat.c: Likewise.
1670 * i386-darwin-tdep.c: Likewise.
1671 * i386-nto-tdep.c: Likewise.
1672 * i386-tdep.c: Likewise.
1673 * i386bsd-nat.c: Likewise.
1674 * i386fbsd-tdep.c: Likewise.
1675 * i386gnu-nat.c: Likewise.
1676 * i386nbsd-tdep.c: Likewise.
1677 * i386obsd-tdep.c: Likewise.
1678 * i387-tdep.c: Likewise.
1679 * ia64-libunwind-tdep.c: Likewise.
1680 * ia64-tdep.c: Likewise.
1681 * inf-ptrace.c: Likewise.
1682 * inf-ttrace.c: Likewise.
1683 * infcall.c: Likewise.
1684 * infcmd.c: Likewise.
1685 * infrun.c: Likewise.
1686 * inline-frame.c: Likewise.
1687 * interps.c: Likewise.
1688 * jv-lang.c: Likewise.
1689 * jv-typeprint.c: Likewise.
1690 * linux-fork.c: Likewise.
1691 * linux-nat.c: Likewise.
1692 * linux-thread-db.c: Likewise.
1693 * m32c-tdep.c: Likewise.
1694 * m32r-linux-nat.c: Likewise.
1695 * m32r-tdep.c: Likewise.
1696 * m68k-tdep.c: Likewise.
1697 * m68kbsd-nat.c: Likewise.
1698 * m68kbsd-tdep.c: Likewise.
1699 * m88k-tdep.c: Likewise.
1700 * machoread.c: Likewise.
1701 * macroexp.c: Likewise.
1702 * macrotab.c: Likewise.
1703 * maint.c: Likewise.
1704 * mdebugread.c: Likewise.
1705 * memory-map.c: Likewise.
1706 * mep-tdep.c: Likewise.
1707 * mi/mi-common.c: Likewise.
1708 * microblaze-tdep.c: Likewise.
1709 * mingw-hdep.c: Likewise.
1710 * mips-linux-nat.c: Likewise.
1711 * mips-linux-tdep.c: Likewise.
1712 * mips-tdep.c: Likewise.
1713 * mips64obsd-tdep.c: Likewise.
1714 * mipsnbsd-tdep.c: Likewise.
1715 * mn10300-linux-tdep.c: Likewise.
1716 * mn10300-tdep.c: Likewise.
1717 * moxie-tdep.c: Likewise.
1718 * mt-tdep.c: Likewise.
1719 * nat/linux-btrace.c: Likewise.
1720 * nat/linux-osdata.c: Likewise.
1721 * nat/linux-ptrace.c: Likewise.
1722 * nat/mips-linux-watch.c: Likewise.
1723 * nios2-linux-tdep.c: Likewise.
1724 * nios2-tdep.c: Likewise.
1725 * objc-lang.c: Likewise.
1726 * objfiles.c: Likewise.
1727 * obsd-nat.c: Likewise.
1728 * opencl-lang.c: Likewise.
1729 * osabi.c: Likewise.
1730 * parse.c: Likewise.
1731 * ppc-linux-nat.c: Likewise.
1732 * ppc-sysv-tdep.c: Likewise.
1733 * ppcfbsd-nat.c: Likewise.
1734 * ppcfbsd-tdep.c: Likewise.
1735 * ppcnbsd-nat.c: Likewise.
1736 * ppcnbsd-tdep.c: Likewise.
1737 * ppcobsd-nat.c: Likewise.
1738 * ppcobsd-tdep.c: Likewise.
1739 * printcmd.c: Likewise.
1740 * procfs.c: Likewise.
1741 * prologue-value.c: Likewise.
1742 * psymtab.c: Likewise.
1743 * python/py-lazy-string.c: Likewise.
1744 * python/py-value.c: Likewise.
1745 * regcache.c: Likewise.
1746 * reggroups.c: Likewise.
1747 * registry.c: Likewise.
1748 * remote-sim.c: Likewise.
1749 * remote.c: Likewise.
1750 * rs6000-aix-tdep.c: Likewise.
1751 * rs6000-tdep.c: Likewise.
1752 * s390-linux-tdep.c: Likewise.
1753 * score-tdep.c: Likewise.
1754 * ser-base.c: Likewise.
1755 * ser-mingw.c: Likewise.
1756 * sh-tdep.c: Likewise.
1757 * sh64-tdep.c: Likewise.
1758 * solib-darwin.c: Likewise.
1759 * solib-spu.c: Likewise.
1760 * solib-svr4.c: Likewise.
1761 * source.c: Likewise.
1762 * sparc-nat.c: Likewise.
1763 * sparc-sol2-tdep.c: Likewise.
1764 * sparc-tdep.c: Likewise.
1765 * sparc64-sol2-tdep.c: Likewise.
1766 * sparc64-tdep.c: Likewise.
1767 * sparc64fbsd-tdep.c: Likewise.
1768 * sparc64nbsd-tdep.c: Likewise.
1769 * sparc64obsd-tdep.c: Likewise.
1770 * sparcnbsd-tdep.c: Likewise.
1771 * sparcobsd-tdep.c: Likewise.
1772 * spu-multiarch.c: Likewise.
1773 * spu-tdep.c: Likewise.
1774 * stabsread.c: Likewise.
1775 * stack.c: Likewise.
1776 * symfile.c: Likewise.
1777 * symtab.c: Likewise.
1778 * target-descriptions.c: Likewise.
1779 * target-memory.c: Likewise.
1780 * target.c: Likewise.
1781 * tic6x-linux-tdep.c: Likewise.
1782 * tic6x-tdep.c: Likewise.
1783 * tilegx-linux-nat.c: Likewise.
1784 * tilegx-tdep.c: Likewise.
1785 * top.c: Likewise.
1786 * tramp-frame.c: Likewise.
1787 * tui/tui-out.c: Likewise.
1788 * tui/tui-winsource.c: Likewise.
1789 * ui-out.c: Likewise.
1790 * user-regs.c: Likewise.
1791 * utils.c: Likewise.
1792 * v850-tdep.c: Likewise.
1793 * valops.c: Likewise.
1794 * value.c: Likewise.
1795 * varobj.c: Likewise.
1796 * vax-nat.c: Likewise.
1797 * xml-syscall.c: Likewise.
1798 * xml-tdesc.c: Likewise.
1799 * xstormy16-tdep.c: Likewise.
1800 * xtensa-linux-nat.c: Likewise.
1801 * xtensa-tdep.c: Likewise.
1802
e76df0d0
GB
18032014-08-07 Gary Benson <gbenson@redhat.com>
1804
1805 * common/common-defs.h: Include common-utils.h.
1806 * defs.h: Do not include common-utils.h.
1807 * common/gdb_assert.h: Likewise.
1808 * darwin-nat.h: Likewise.
1809 * nat/linux-btrace.c: Likewise.
1810 * target/waitstatus.h: Likewise.
1811
4cb9c816
GB
18122014-08-07 Gary Benson <gbenson@redhat.com>
1813
1814 * common/common-defs.h: Include ptid.h.
1815 * defs.h: Do not include ptid.h.
1816 * inferior.h: Likewise.
1817 * infrun.h: Likewise.
1818 * nat/linux-btrace.h: Likewise.
1819 * nat/linux-osdata.h: Likewise.
1820 * target/waitstatus.h: Likewise.
1821
3995eeee
GB
18222014-08-07 Gary Benson <gbenson@redhat.com>
1823
1824 * common/common-defs.h: Include gdb_locale.h.
1825 * defs.h: Do not include gdb_locale.h.
1826
cb9f1a9b
GB
18272014-08-07 Gary Benson <gbenson@redhat.com>
1828
1829 * common/common-defs.h: Include gdb/signals.h.
1830 * defs.h: Do not include gdb/signals.h.
1831
a5fceff8
GB
18322014-08-07 Gary Benson <gbenson@redhat.com>
1833
1834 * common/common-defs.h: Include pathmax.h.
1835 * defs.h: Do not include pathmax.h.
1836
b9391142
GB
18372014-08-07 Gary Benson <gbenson@redhat.com>
1838
1839 * common/common-defs.h: Include libiberty.h.
1840 * defs.h: Do not include libiberty.h.
1841 * common/queue.h: Likewise.
1842 * cp-name-parser.y: Likewise.
1843 * mi/mi-cmd-catch.c: Likewise.
1844 * python/python.c: Likewise.
1845
0e443c87
GB
18462014-08-07 Gary Benson <gbenson@redhat.com>
1847
1848 * common/common-defs.h: Include ansidecl.h.
1849 * defs.h: Do not include ansidecl.h.
1850 * common/buffer.h: Likewise.
1851 * common/common-utils.h: Likewise.
1852
8ebb3f56
GB
18532014-08-07 Gary Benson <gbenson@redhat.com>
1854
1855 * common/common-defs.h: Include stddef.h.
1856 * defs.h: Do not include stddef.h.
1857 * common/common-utils.h: Likewise.
1858 * amd64fbsd-nat.c: Likewise.
1859 * bcache.c: Likewise.
1860 * charset.c: Likewise.
1861 * common/buffer.h: Likewise.
1862 * common/vec.h: Likewise.
1863 * i386bsd-nat.c: Likewise.
1864 * nat/linux-btrace.h: Likewise.
1865 * ppcfbsd-nat.c: Likewise.
1866 * ppcnbsd-tdep.h: Likewise.
1867 * ppcobsd-nat.c: Likewise.
1868 * ppcobsd-tdep.h: Likewise.
1869 * python/py-gdb-readline.c: Likewise.
1870
8980bdf6
GB
18712014-08-07 Gary Benson <gbenson@redhat.com>
1872
1873 * common/common-defs.h: Include stdarg.h.
1874 * defs.h: Do not include stdarg.h.
1875 * ada-lang.c: Likewise.
1876 * common/common-utils.h: Likewise.
1877 * guile/scm-string.c: Likewise.
1878 * guile/scm-utils.c: Likewise.
1879 * m32c-tdep.c: Likewise.
1880
d7096f71
GB
18812014-08-07 Gary Benson <gbenson@redhat.com>
1882
1883 * common/common-defs.h: Include stdlib.h.
1884 * defs.h: Do not include stdlib.h.
1885 * addrmap.c: Likewise.
1886 * bcache.c: Likewise.
1887 * common/buffer.c: Likewise.
1888 * common/common-utils.c: Likewise.
1889 * cp-name-parser.y: Likewise.
1890 * go32-nat.c: Likewise.
1891 * mn10300-linux-tdep.c: Likewise.
1892 * nat/linux-osdata.c: Likewise.
1893 * tui/tui.c: Likewise.
1894 * windows-nat.c: Likewise.
1895
d02f550d
GB
18962014-08-07 Gary Benson <gbenson@redhat.com>
1897
1898 * common/common-defs.h: Include stdio.h.
1899 * defs.h: Do not include stdio.h.
1900 * ada-lang.c: Likewise.
1901 * common/buffer.c: Likewise.
1902 * common/common-utils.c: Likewise.
1903 * cp-name-parser.y: Likewise.
1904 * gnu-nat.c: Likewise.
1905 * go32-nat.c: Likewise.
1906 * i386gnu-nat.c: Likewise.
1907 * proc-api.c: Likewise.
1908 * proc-events.c: Likewise.
1909 * proc-flags.c: Likewise.
1910 * proc-why.c: Likewise.
1911 * python/python-internal.h: Likewise.
1912 * target-memory.c: Likewise.
1913 * tui/tui-io.c: Likewise.
1914 * tui/tui.c: Likewise.
1915
b6d7a4bf
SM
19162014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1917
1918 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1919 (scan_dyntag_auxv): Same.
1920
af19829b
YQ
19212014-08-06 Yao Qi <yao@codesourcery.com>
1922
1923 * amd64-linux-nat.c: Remove duplicated include
1924 "x86-linux-nat.h".
1925 * i386-linux-nat.c: Likewise.
1926
8e07a239
YQ
19272014-08-06 Yao Qi <yao@codesourcery.com>
1928
1929 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1930 operand" with "Special opcode" in comments.
1931
7bfe8241
GB
19322014-08-05 Gary Benson <gbenson@redhat.com>
1933
1934 * interps.c (initialize_interps): Remove prototype.
1935 (interpreter_initialized): Remove static global.
1936 (interp_add): Do not call initialize_interps.
1937 (initialize_interps): Remove function.
1938
d6c95504
GB
19392014-08-05 Gary Benson <gbenson@redhat.com>
1940
1941 * utils.c (vwarning): Remove spurious va_end.
1942
241fd515
AM
19432014-08-05 Alan Modra <amodra@gmail.com>
1944
1945 * charset.c (convert_between_encodings): Cast result of obstack_base.
1946 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1947 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1948 (read_unwind_info): Use size_t for some locals.
1949 * jit.c (finalize_symtab): Likewise.
1950 * utils.c (hashtab_obstack_allocate): Likewise.
1951 * symmisc.c (print_objfile_statistics): Update format strings.
1952
dc304a94
JK
19532014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1954
1955 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1956 (Changes in GDB 7.8): ... here.
1957
3cecbbbe
TT
19582014-08-04 Tom Tromey <tromey@redhat.com>
1959
1960 * target.c (set_targetdebug): New function.
1961 (initialize_targets): Pass set_targetdebug when creating "set
1962 debug target".
1963
6908c509
JB
19642014-08-01 Joel Brobecker <brobecker@adacore.com>
1965
1966 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1967 if detecting a variable-sized field that is not the last field.
1968 Fix struct type length computation.
1969
53e8f97d
JB
19702014-08-01 Joel Brobecker <brobecker@adacore.com>
1971
1972 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1973 Add debug trace.
1974
e068c55d
JB
19752014-08-01 Joel Brobecker <brobecker@adacore.com>
1976
1977 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1978 Remove "+ 8" offset in computation of CHAIN_VMA.
1979
4d4ca2a1
DE
19802014-07-31 Doug Evans <dje@google.com>
1981
1982 * inflow.c (child_terminal_inferior): Add comment.
1983 (child_terminal_ours_for_output): Add comment.
1984 (child_terminal_ours): Add comment.
1985 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1986 (linux_nat_terminal_ours): Add comment.
1987
462f517e
GB
19882014-07-31 Gary Benson <gbenson@redhat.com>
1989
1990 * common/btrace-common.h: Do not include defs.h or server.h.
1991 * nat/mips-linux-watch.h: Likewise.
1992 * gdb-dlfcn.h: Do not include defs.h.
1993 * tracefile.h: Likewise.
1994
74228e77
RM
19952014-07-30 Roland McGrath <mcgrathr@google.com>
1996
1997 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1998
014f9477
TT
19992014-07-30 Tom Tromey <tromey@redhat.com>
2000
2001 * bsd-kvm.c (bsd_kvm_open): Constify.
2002 * corelow.c (core_open): Constify.
2003 * ctf.c (ctf_open): Constify.
2004 * dbug-rom.c (dbug_open): Constify.
2005 * exec.c (exec_open): Constify.
2006 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2007 * microblaze-rom.c (picobug_open): Constify.
2008 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2009 Constify.
2010 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2011 * record-btrace.c (record_btrace_open): Constify.
2012 * record-full.c (record_full_core_open_1, record_full_open_1)
2013 (record_full_open): Constify.
2014 * remote-m32r-sdi.c (m32r_open): Constify.
2015 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2016 (rockhopper_open, lsi_open): Constify.
2017 * remote-sim.c (gdbsim_open): Constify.
2018 * remote.c (remote_open, extended_remote_open, remote_open_1):
2019 Constify.
2020 * target.h (struct target_ops) <to_open>: Make "arg" const.
2021 * tracefile-tfile.c (tfile_open): Constify.
2022
e799154c
TT
20232014-07-30 Tom Tromey <tromey@redhat.com>
2024
2025 * breakpoint.c (map_breakpoint_numbers): Update.
2026 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2027 (get_number_const): New function.
2028 (get_number): Rewrite using get_number_const.
2029 (init_number_or_range): Make "string" const.
2030 (number_is_in_list): Make "list" const.
2031 * cli/cli-utils.h (get_number_const): Declare.
2032 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2033 (init_number_or_range, number_is_in_list): Update.
2034 * printcmd.c (map_display_numbers): Update.
2035 * value.c (value_from_history_ref): Constify.
2036 * value.h (value_from_history_ref): Update.
2037
5f08566b
TT
20382014-07-30 Tom Tromey <tromey@redhat.com>
2039
2040 * corefile.c (hook_type, call_extra_exec_file_hooks)
2041 (specify_exec_file_hook): Constify.
2042 * exec.c (exec_file_attach): Make "filename" const.
2043 * gdbcore.h (deprecated_exec_file_display_hook)
2044 (specify_exec_file_hook, exec_file_attach): Constify.
2045 * main.c (captured_main): Use catch_command_errors_const.
2046
8981c758
TT
20472014-07-30 Tom Tromey <tromey@redhat.com>
2048
2049 * target.c (open_target): New function.
2050 (add_target_with_completer, add_deprecated_target_alias): Use
2051 set_cmd_sfunc, set_cmd_context.
2052 (debug_to_open): Remove.
2053 (setup_target_debug): Update.
2054
a1c7835a
YQ
20552014-07-30 Yao Qi <yao@codesourcery.com>
2056
2057 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2058 comments.
2059 * parse.c (exp_iterate): Update comments.
2060
976411d6
GB
20612014-07-30 Gary Benson <gbenson@redhat.com>
2062
2063 * common/common-defs.h: New file.
2064 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2065 * defs.h: Include common-defs.h.
2066 Do not include config.h or build-gnulib/config.h.
2067
5d4848a4
GB
20682014-07-30 Gary Benson <gbenson@redhat.com>
2069
2070 * common/common-utils.h: Do not include config.h.
2071 * nat/linux-btrace.h: Likewise.
2072
d41f6d8e
GB
20732014-07-30 Gary Benson <gbenson@redhat.com>
2074
2075 * btrace.c: Include defs.h.
2076 * common/ptid.c: Include defs.h or server.h as appropriate.
2077 * nat/mips-linux-watch.c: Likewise.
2078
84202f9c
TT
20792014-07-29 Tom Tromey <tromey@redhat.com>
2080
2081 * target.c (target_is_pushed): Simplify.
2082
2530441c
JB
20832014-07-29 Joel Brobecker <brobecker@adacore.com>
2084
2085 GDB 7.8 released.
2086
7e09a223
YQ
20872014-07-29 Yao Qi <yao@codesourcery.com>
2088
2089 PR gdb/17206
2090 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2091
7ebdbe92
DE
20922014-07-28 Doug Evans <xdje42@gmail.com>
2093
2094 PR guile/17203
2095 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2096 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2097 parameters.
2098
f347ffc9
WN
20992014-07-28 Will Newton <will.newton@linaro.org>
2100
2101 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2102 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2103 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2104 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2105 (THUMB2_EABI_SYSCALL): Likewise.
2106 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2107 struct tramp_frame.
2108 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2109 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2110
37c5f1f7
DE
21112014-07-27 Doug Evans <xdje42@gmail.com>
2112
2113 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2114
0c3abbc7
DE
21152014-07-27 Doug Evans <xdje42@gmail.com>
2116
2117 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2118
e76c5d17
DE
21192014-07-26 Ludovic Courtès <ludo@gnu.org>
2120 Doug Evans <xdje42@gmail.com>
2121
2122 PR guile/17146
2123 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2124 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2125 * configure.ac: Try to use guild to compile an scm file, if it fails
2126 then disable guile support.
2127 * configure: Regenerate.
2128 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2129 GUILE_FILE_LIST.
2130 (GUILE_COMPILED_FILES): New variable.
2131 (GUILE_FILES) Update.
2132 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2133 (stamp-guile): Compile scm files.
2134 * guile/guile.c (boot_guile_support): New function.
2135 (standard_throw_args_p): New function.
2136 (print_standard_throw_error, print_throw_error): New functions.
2137 (handle_boot_error): New function.
2138 (initialize_scheme_side): Rewrite to call boot_guile_support.
2139 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2140 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2141
186fcde0
DE
21422014-07-26 Ludovic Courtès <ludo@gnu.org>
2143 Doug Evans <xdje42@gmail.com>
2144
2145 PR guile/17146
2146 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2147 * guile/lib/gdb/support.scm: New file.
2148 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2149 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2150 All uses updated.
2151 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2152 All uses updated.
2153 (%assert-type): Ditto, and renamed to assert-type.
2154 (%exception-print-style): Delete.
2155
4df42755
DE
21562014-07-26 Doug Evans <xdje42@gmail.com>
2157
2158 PR build/17105
2159 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2160 * configure: Regenerate.
2161 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2162 PYTHON_FILES.
2163 (PYTHON_FILES): New variable.
2164 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2165 (GUILE_FILES): New variable.
2166 (stamp-python, install-python, uninstall-python): Handle empty
2167 file list.
2168 (stamp-guile, install-guile, uninstall-guile): Ditto.
2169
ee7333ae
DE
21702014-07-26 Doug Evans <xdje42@gmail.com>
2171
2172 PR guile/17177
2173 * guile/lib/gdb.scm (pretty-printers): Export.
2174 (set-pretty-printers!): Export.
2175 * guile/lib/gdb/printing.scm (gdb module): Update.
2176 (prepend-pretty-printer!, append-pretty-printer!): Update.
2177 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2178 (pretty_printer_list_var): Delete.
2179 (pretty_printer_list): New static global.
2180 (gdbscm_pretty_printers): New function.
2181 (gdbscm_set_pretty_printers_x): New function.
2182 (ppscm_find_pretty_printer_from_gdb): Update.
2183 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2184 (gdbscm_initialize_pretty_printers): Update.
2185
74edf516
DE
21862014-07-26 Doug Evans <xdje42@gmail.com>
2187
2188 PR 17185
2189 * configure.ac: Add check for header gc/gc.h.
2190 Add check for function setenv.
2191 * configure: Regenerate.
2192 * config.in: Regenerate.
2193 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2194
d54398a7
MR
21952014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2196
2197 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2198 variation in gdbarch matching.
2199
ab16fce8
TT
22002014-07-25 Tom Tromey <tromey@redhat.com>
2201
2202 * exec.c (using_exec_ops): Remove.
2203 (exec_close_1): Update. Remove extraneous block, reindent.
2204 (add_target_sections): Use target_is_pushed.
2205
88056fbb
PA
22062014-07-25 Pedro Alves <palves@redhat.com>
2207
2208 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2209 * monitor.c (monitor_create_inferior): Likewise.
2210 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2211 * remote-sim.c (gdbsim_create_inferior): Likewise.
2212 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2213 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2214 * windows-nat.c (do_initial_windows_stuff): Likewise.
2215
70509625
PA
22162014-07-25 Pedro Alves <palves@redhat.com>
2217
2218 * NEWS: Mention signal passing and "signal" command changes.
2219 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2220 comment.
2221 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2222 call.
2223 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2224 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2225 (jump_command): Adjust clear_proceed_status call.
2226 (signal_command): Warn if other thread that are resumed have
2227 signals that will be delivered. Adjust clear_proceed_status call.
2228 (until_next_command, finish_command)
2229 (proceed_after_attach_callback, attach_command_post_wait)
2230 (attach_command): Adjust clear_proceed_status call.
2231 * infrun.c (proceed_after_vfork_done): Likewise.
2232 (proceed_after_attach_callback): Adjust comment.
2233 (clear_proceed_status_thread): Clear stop_signal if not in pass
2234 state.
2235 (clear_proceed_status_callback): Delete.
2236 (clear_proceed_status): New 'step' parameter. Only clear the
2237 proceed status of threads the command being prepared is about to
2238 resume.
2239 (proceed): If passed in an explicit signal, override stop_signal
2240 with it. Don't pass the last stop signal to the thread we're
2241 resuming.
2242 (init_wait_for_inferior): Adjust clear_proceed_status call.
2243 (switch_back_to_stepped_thread): Clear the signal if it should not
2244 be passed.
2245 * infrun.h (clear_proceed_status): New 'step' parameter.
2246 (user_visible_resume_ptid): Add comment.
2247 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2248 signal is in pass state.
2249 * remote.c (append_pending_thread_resumptions): Likewise.
2250 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2251
d8be2939
TT
22522014-07-25 Tom Tromey <tromey@redhat.com>
2253
2254 * target.h (target_stopped_data_address)
2255 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2256 parentheses.
2257
7d0d9d2b
PL
22582014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2259
2260 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2261 comments.
2262 (avr_pointer_to_address): Likewise.
2263
e9e7f724
TT
22642014-07-24 Tom Tromey <tromey@redhat.com>
2265
2266 * monitor.c (compile_pattern): Update.
2267 * target.h (struct target_ops) <to_shortname, to_longname,
2268 to_doc>: Now const.
2269
1947513d
TT
22702014-07-24 Tom Tromey <tromey@redhat.com>
2271
2272 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2273 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2274 (add_info_alias, add_com): Make "doc" const.
2275 (print_doc_line): Make "str" const.
2276 (delete_cmd): Update.
2277 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2278 (print_doc_line): Update.
2279 * cli/cli-script.c (document_command): Update.
2280 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2281 (add_com, add_info, add_info_alias): Update.
2282 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2283 * python/py-cmd.c (cmdpy_destroyer): Update.
2284
64e61d29
TT
22852014-07-24 Tom Tromey <tromey@redhat.com>
2286
2287 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2288 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2289 (help_cmd_list): Constify.
2290 (lookup_cmd): Update.
2291 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2292 const.
2293 (help_cmd_list, apropos_cmd): Update.
2294 * cli/cli-script.c (show_user): Update.
2295 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2296 * cli/cli-setshow.h (cmd_show_list): Update.
2297 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2298 (cmd_show_list): Update.
2299 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2300 * python/py-cmd.c (cmdpy_destroyer): Update.
2301
429e55ea
TT
23022014-07-24 Tom Tromey <tromey@redhat.com>
2303
2304 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2305 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2306 const.
2307 * command.h (deprecate_cmd): Update.
2308 * maint.c (maintenance_do_deprecate): Add casts.
2309
64669f3b
TT
23102014-07-24 Tom Tromey <tromey@redhat.com>
2311
2312 * cli/cli-decode.c (help_cmd): Make parameter "const".
2313 * cli/cli-decode.h (help_cmd): Update.
2314
d3d3328b
TT
23152014-07-24 Tom Tromey <tromey@redhat.com>
2316
2317 * stack.c (up_silently_base, down_silently_base): Make argument
2318 const.
2319
414842dc
TT
23202014-07-24 Tom Tromey <tromey@redhat.com>
2321
2322 * solib.c (solib_add): Make "pattern" const.
2323 * solib.h (solib_add): Update.
2324
baa336ce
TT
23252014-07-24 Tom Tromey <tromey@redhat.com>
2326
2327 * remote.c (remote_serial_open, print_packet, putpkt)
2328 (putpkt_binary): Constify.
2329 * remote.h (putpkt): Update.
2330
5a19e2d0
TT
23312014-07-24 Tom Tromey <tromey@redhat.com>
2332
2333 * monitor.c (monitor_open): Make "args" const.
2334 * monitor.h (monitor_open): Update.
2335
fc4baa5e
TT
23362014-07-24 Tom Tromey <tromey@redhat.com>
2337
2338 * maint.c (match_bfd_flags): Make "string" const.
2339 (print_bfd_section_info): Remove casts.
2340 (print_objfile_section_info): Make "string" const.
2341
0d5f0dbe
TT
23422014-07-24 Tom Tromey <tromey@redhat.com>
2343
2344 * inf-child.c (inf_child_open_target): Make "arg" const.
2345 * inf-child.h (inf_child_open_target): Update.
2346
41c77899
TT
23472014-07-24 Tom Tromey <tromey@redhat.com>
2348
2349 * environ.c (unset_in_environ): Make "var" const.
2350 * environ.h (unset_in_environ): Update.
2351
93db0d79
TT
23522014-07-24 Tom Tromey <tromey@redhat.com>
2353
2354 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2355 Make "cmd" const.
2356 (scan_filename_with_cleanup): Likewise.
2357 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2358 Make arguments const.
2359 (restore_command): Update.
2360
36d6eb95
PA
23612014-07-24 Pedro Alves <palves@redhat.com>
2362
2363 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2364
8009206a
TT
23652014-07-24 Tom Tromey <tromey@redhat.com>
2366 Gary Benson <gbenson@redhat.com>
2367
2368 * nat/linux-ptrace.c (additional_flags): New global.
2369 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2370 additional_flags; don't check GDBSERVER.
2371 (linux_ptrace_set_additional_flags): New function.
2372 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2373 Declare.
2374 * linux-nat.c (_initialize_linux_nat): Call
2375 linux_ptrace_set_additional_flags.
2376
a7068b60
TT
23772014-07-24 Tom Tromey <tromey@redhat.com>
2378
2379 * make-target-delegates (munge_type, write_debugmethod): New
2380 functions.
2381 (debug_names): New global.
2382 ($TARGET_DEBUG_PRINTER): New global.
2383 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2384 name.
2385 Write debug methods. Generate init_debug_target.
2386 * target-debug.h: New file.
2387 * target-delegates.c: Rebuild.
2388 * target.c: Include target-debug.h.
2389 (debug_target): Hoist definition.
2390 (target_kill, target_get_section_table, target_memory_map)
2391 (target_flash_erase, target_flash_done, target_detach)
2392 (target_disconnect, target_wait, target_resume)
2393 (target_pass_signals, target_program_signals, target_follow_fork)
2394 (target_mourn_inferior, target_search_memory)
2395 (target_thread_address_space, target_close)
2396 (target_find_new_threads, target_core_of_thread)
2397 (target_verify_memory, target_insert_mask_watchpoint)
2398 (target_remove_mask_watchpoint): Remove targetdebug code.
2399 (debug_to_post_attach, debug_to_prepare_to_store)
2400 (debug_to_files_info, debug_to_insert_breakpoint)
2401 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2402 (debug_to_region_ok_for_hw_watchpoint)
2403 (debug_to_can_accel_watchpoint_condition)
2404 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2405 (debug_to_watchpoint_addr_within_range)
2406 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2407 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2408 (debug_to_terminal_init, debug_to_terminal_inferior)
2409 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2410 (debug_to_terminal_save_ours, debug_to_terminal_info)
2411 (debug_to_load, debug_to_post_startup_inferior)
2412 (debug_to_insert_fork_catchpoint)
2413 (debug_to_remove_fork_catchpoint)
2414 (debug_to_insert_vfork_catchpoint)
2415 (debug_to_remove_vfork_catchpoint)
2416 (debug_to_insert_exec_catchpoint)
2417 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2418 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2419 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2420 (setup_target_debug): Call init_debug_target.
2421 * target.h (TARGET_DEBUG_PRINTER): New macro.
2422 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2423 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2424
2c51604d
GB
24252014-07-24 Gary Benson <gbenson@redhat.com>
2426
2427 * exceptions.h (throw_vfatal): Renamed to...
2428 (throw_vquit): New declaration.
2429 (throw_quit): Likewise.
2430 * exceptions.c (throw_vfatal): Renamed to...
2431 (throw_vquit): New function.
2432 (throw_quit): Likewise.
2433 (throw_error): Call throw_verror rather than throw_it.
2434 * utils.h (vfatal): Removed.
2435 (fatal): Likewise.
2436 * utils.c (vfatal): Removed.
2437 (fatal): Likewise.
2438 (internal_verror): Replaced call to fatal with call to throw_quit.
2439 (quit): Replaced calls to fatal with calls to throw_quit.
2440
34211963
ME
24412014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2442
2443 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2444 target_read_code.
2445
a52b4d3e
ME
24462014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2447
2448 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2449 less than zero in conditional expression.
2450
a8bdc56b
TT
24512014-07-23 Tom Tromey <tromey@redhat.com>
2452
2453 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2454 ($INTRO_PART): Don't match whitespace.
2455 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2456 argument matching.
2457 ($METHOD): Add $METHOD_TRAILER.
2458 (trim): Rewrite.
2459 (scan_target_h): New sub.
2460 Change main loop not to collect state.
2461 * target-delegates.c: Rebuild.
2462
91b52240
GB
24632014-07-23 Gary Benson <gbenson@redhat.com>
2464
2465 * cp-support.c (gdb_demangle): Fix build on systems without
2466 sigaltstack.
2467
45326f6f
JK
24682014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2469
2470 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2471 for reference entry value target data value.
2472
e214cf6c
JK
24732014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2474
2475 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2476 value_available_contents_eq.
2477
bddbbedd
PA
24782014-07-22 Pedro Alves <palves@redhat.com>
2479
2480 * value.c (allocate_optimized_out_value): Don't mark value as
2481 non-lazy.
2482
45c71484
JW
24832014-07-22 Jiong Wang <jiong.wang@arm.com>
2484
2485 * MAINTAINERS (Write After Approval): Update my email address.
2486
9597b22a
DE
24872014-07-20 Doug Evans <dje@google.com>
2488
2489 PR server/17147
2490 * remote.c (putpkt_binary): Add text to error message.
2491
91101fe5
YQ
24922014-07-20 Yao Qi <yao@codesourcery.com>
2493
2494 * eval.c: Remove "Chill" from comments.
2495 * gdbtypes.h: Likewise.
2496 * symtab.h: Likewise.
2497
c9402c95
YQ
24982014-07-20 Yao Qi <yao@codesourcery.com>
2499
2500 * std-operator.def: Update comments to TERNOP_SLICE.
2501
ae8fddda
YQ
25022014-07-20 Yao Qi <yao@codesourcery.com>
2503
2504 * std-operator.def: Remove BINOP_RANGE.
2505 * breakpoint.c (watchpoint_exp_is_const): Update.
2506 * expprint.c (dump_subexp_body_standard): Likewise.
2507 * eval.c (init_array_element): Remove dead code.
2508 (evaluate_subexp_standard): Likewise.
2509
9c816640
YQ
25102014-07-20 Yao Qi <yao@codesourcery.com>
2511
2512 * std-operator.def: Remove BINOP_IN.
2513 * breakpoint.c (watchpoint_exp_is_const): Update.
2514 * eval.c (evaluate_subexp_standard): Likewise.
2515 * expprint.c (dump_subexp_body_standard): Likewise.
2516
164224e9
ME
25172014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2518
2519 * microblaze-tdep.c (microblaze_register_names): Add
2520 the rshr and rslr register names.
2521 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2522 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2523 Use of tdesc_numbered_register. Use of
2524 microblaze_register_g_packet_guesses. Use of
2525 tdesc_use_registers. Use of set_gdbarch_register_type.
2526 (microblaze_register_g_packet_guesses): New.
2527 * microblaze-tdep.h (microblaze_reg_num): Add
2528 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2529 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2530 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2531 * features/microblaze-core.xml: New file.
2532 * features/microblaze-stack-protect.xml: New file.
2533 * features/microblaze-with-stack-protect.c: New file.
2534 * features/microblaze-with-stack-protect.xml: New file.
2535 * features/microblaze.xml: New file.
2536 * features/microblaze.c: New file.
2537 * features/Makefile (microblaze-with-stack-protect): Add
2538 microblaze-with-stack-protect microblaze and microblaze-expedite.
2539 * regformats/microblaze-with-stack-protect.dat: New file.
2540 * regformats/microblaze.dat: New file.
2541 * doc/gdb.texinfo (MicroBlaze Features): Added.
2542
e8b2341c
TT
25432014-07-18 Tom Tromey <tromey@redhat.com>
2544
2545 * exec.c (exec_ops): Now static.
2546 * exec.h (exec_ops): Don't declare.
2547
44e89118
TT
25482014-07-18 Tom Tromey <tromey@redhat.com>
2549
2550 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2551 to find_target_beneath.
2552 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2553 find_target_beneath.
2554 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2555
b0ed115f
TT
25562014-07-18 Tom Tromey <tromey@redhat.com>
2557
2558 PR gdb/17130:
2559 * utils.c (quit): Use target_supports_terminal_ours.
2560 * target.h (target_supports_terminal_ours): Declare.
2561 * target.c (target_supports_delete_record): Don't check
2562 to_delete_record against NULL.
2563 (target_supports_terminal_ours): New function.
2564
e75fdfca
TT
25652014-07-18 Tom Tromey <tromey@redhat.com>
2566
2567 PR gdb/17130:
2568 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2569 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2570 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2571 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2572 * windows-nat.c (windows_xfer_partial): Always delegate.
2573 * record-btrace.c (record_btrace_xfer_partial): Simplify
2574 delegation.
2575 (record_btrace_fetch_registers, record_btrace_store_registers)
2576 (record_btrace_prepare_to_store, record_btrace_resume)
2577 (record_btrace_wait, record_btrace_find_new_threads)
2578 (record_btrace_thread_alive): Likewise.
2579 * procfs.c (procfs_xfer_partial): Always delegate.
2580 * corelow.c (core_xfer_partial): Always delegate.
2581 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2582
83814951
TT
25832014-07-18 Tom Tromey <tromey@redhat.com>
2584
2585 * exec.c (exec_make_note_section): Move earlier.
2586
b8b8facf
DE
25872014-07-17 Doug Evans <dje@google.com>
2588
74b49205 2589 PR gdb/17170
b8b8facf
DE
2590 * maint.c (count_symtabs_and_blocks): Handle NULL
2591 current_program_space.
2592 (report_command_stats): Check global enabled flag in addition to
2593 recorded enabled flag.
2594 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2595
69ff6be5
PA
25962014-07-16 Pedro Alves <palves@redhat.com>
2597
2598 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2599
252db1b5
TT
26002014-07-16 Tom Tromey <tromey@redhat.com>
2601
2602 * target.h (struct target_ops) <to_delete_record>: Reformat
2603 comment.
2604
a432721e
TT
26052014-07-16 Tom Tromey <tromey@redhat.com>
2606
2607 * target-delegates.c: Rebuild.
2608
487d9753
PL
26092014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2610
2611 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2612 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2613 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2614 (avr_pointer_to_address): Likewise.
2615 (avr_address_class_type_flags): New function.
2616 (avr_address_class_type_flags_to_name): Likewise.
2617 (avr_address_class_name_to_type_flags): Likewise.
2618 (avr_gdbarch_init): Set address_class_type_flags,
2619 address_class_type_flags_to_name and
2620 address_class_name_to_type_flags.
2621
57745c90
PA
26222014-07-15 Pedro Alves <palves@redhat.com>
2623
2624 * linux-nat.c (kill_callback): Save errno and work with saved
2625 copy.
2626
2d40be18
SM
26272014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2628
2629 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2630
572f6555
EBM
26312014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2632
2633 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2634 breakpoint support correctly.
2635
cc1c52ad
PA
26362014-07-14 Pedro Alves <palves@redhat.com>
2637
2638 * utils.c (prompt_for_continue): Call target_terminal_ours.
2639
1e973570
PA
26402014-07-14 Pedro Alves <palves@redhat.com>
2641
2642 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2643 catch_errors. Don't re-enable stdin or notify observers where,
2644 and rethrow error.
2645 (fetch_inferior_event_wrapper): Delete.
2646
93d6eb10
PA
26472014-07-14 Pedro Alves <palves@redhat.com>
2648
2649 PR gdb/17072
2650 * top.c: Include "inf-loop.h".
2651 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2652 field.
2653 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2654 was async before.
2655 (gdb_readline_wrapper): Store whether the target is async, and
2656 make it sync.
2657
0017922d
PA
26582014-07-14 Pedro Alves <palves@redhat.com>
2659
2660 PR gdb/17072
2661 * top.c (gdb_readline_wrapper_line): Tweak comment.
2662 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2663 the input handler callback.
2664
94696ad3
PA
26652014-07-14 Pedro Alves <palves@redhat.com>
2666
2667 PR gdb/17072
2668 * main.c: Include event-top.h.
2669 (handle_command_errors): New function.
2670 (catch_command_errors, catch_command_errors_const): Use it.
2671
9d1e69a2
PA
26722014-07-14 Pedro Alves <palves@redhat.com>
2673
2674 * exceptions.c (catch_command_errors, catch_command_errors_const):
2675 Moved to main.c.
2676 * exceptions.h (catch_command_errors_ftype)
2677 (catch_command_errors_const_ftype): Moved to main.c.
2678 (catch_command_errors, catch_command_errors_const): Delete
2679 declarations.
2680 * main.c (catch_command_errors_ftype)
2681 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2682 (catch_command_errors, catch_command_errors_const)): Moved here
2683 from exceptions.c and make static.
2684
feefc97b
PA
26852014-07-14 Pedro Alves <palves@redhat.com>
2686
2687 * exceptions.c (print_any_exception): Delete.
2688 (catch_exceptions_with_msg): Use exception_print instead of
2689 print_any_exception.
2690 (catch_errors): Use exception_fprintf instead of
2691 print_any_exception.
2692 (catch_command_errors, catch_command_errors_const): Use
2693 exception_print instead of print_any_exception.
2694
c933f875
PA
26952014-07-14 Pedro Alves <palves@redhat.com>
2696
2697 * infcall.c (run_inferior_call): Set 'sync_execution' while
2698 running the inferior call.
2699
feb6f816
PA
27002014-07-14 Pedro Alves <palves@redhat.com>
2701
2702 * value.c (value_contents_equal): Delete function.
2703 * value.h (value_contents_equal): Delete declaration.
2704
d98b7a16
TT
27052014-07-14 Tom Tromey <tromey@redhat.com>
2706
2707 PR exp/17106:
2708 * gdbtypes.c (is_dynamic_type_internal): New function, from
2709 is_dynamic_type.
2710 (is_dynamic_type): Rewrite.
2711 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2712 (resolve_dynamic_struct): Likewise.
2713 (resolve_dynamic_type_internal): New function, from
2714 resolve_dynamic_type.
2715 (resolve_dynamic_type): Rewrite.
2716
548740d6
TT
27172014-07-14 Tom Tromey <tromey@redhat.com>
2718
2719 * target.c (target_require_runnable): Also check record_stratum.
2720 Update comment.
2721
808f7ab1
YQ
27222014-07-11 Yao Qi <yao@codesourcery.com>
2723
2724 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2725 thumb_instruction_restores_sp return true.
2726
540314bd
YQ
27272014-07-11 Yao Qi <yao@codesourcery.com>
2728
2729 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2730 (thumb_in_function_epilogue_p): Call
2731 thumb_instruction_restores_sp.
2732
1db01f22
YQ
27332014-07-11 Yao Qi <yao@codesourcery.com>
2734
2735 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2736 'add sp, #imm'.
2737 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2738
3116063b
GB
27392014-07-11 Gary Benson <gbenson@redhat.com>
2740
2741 * amd64-linux-nat.c (gdbcore.h): Remove include.
2742 (regset.h): Likewise.
2743 (nat/linux-btrace.h): Likewise.
2744 (btrace.h): Likewise.
2745 (gdb_assert.h): Likewise.
2746 (string.h): Likewise.
2747 (sys/uio.h): Likewise.
2748 (sys/debugreg.h): Likewise.
2749 (sys/syscall.h): Likewise.
2750 (sys/procfs.h): Likewise.
2751 (sys/user.h): Likewise.
2752 (asm/ptrace.h): Likewise.
2753 (i386-nat.h): Likewise.
2754 * i386-linux-nat.c (i386-nat.h): Likewise.
2755 (regset.h): Likewise.
2756 (target.h): Likewise.
2757 (linux-nat.h): Likewise.
2758 (nat/linux-btrace.h): Likewise.
2759 (btrace.h): Likewise.
2760 (gdb_assert.h): Likewise.
2761 (string.h): Likewise.
2762 (sys/uio.h): Likewise.
2763 (sys/user.h): Likewise.
2764 (sys/procfs.h): Likewise.
2765 (sys/reg.h): Likewise.
2766 (sys/debugreg.h): Likewise.
2767 (ORIG_EAX): Remove definition.
2768
040baaf6
GB
27692014-07-11 Gary Benson <gbenson@redhat.com>
2770
2771 * i386-linux-nat.h: New file.
2772 * x86-linux-nat.h: Likewise.
2773 * x86-linux-nat.c: Likewise.
2774 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2775 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2776 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2777 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2778 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2779 (PTRACE_SETREGSET): Likewise.
2780 (arch_lwp_info): Now in x86-linux-nat.c.
2781 (have_ptrace_getregset): Now in x86-linux-nat.h.
2782 (x86_linux_dr_get): Now in x86-linux-nat.c.
2783 (x86_linux_dr_set): Likewise.
2784 (x86_linux_dr_get_addr): Likewise.
2785 (x86_linux_dr_get_control): Likewise.
2786 (x86_linux_dr_get_status): Likewise.
2787 (update_debug_registers_callback): Likewise.
2788 (x86_linux_dr_set_control): Likewise.
2789 (x86_linux_dr_set_addr): Likewise.
2790 (x86_linux_prepare_to_resume): Likewise.
2791 (x86_linux_new_thread): Likewise.
2792 (x86_linux_new_fork): Likewise.
2793 (x86_linux_get_thread_area): Likewise.
2794 (super_post_startup_inferior): Likewise.
2795 (x86_linux_child_post_startup_inferior): Likewise.
2796 (AMD64_LINUX_USER64_CS): Likewise.
2797 (AMD64_LINUX_X32_DS): Likewise.
2798 (x86_linux_read_description): Likewise.
2799 (x86_linux_enable_btrace): Likewise.
2800 (x86_linux_disable_btrace): Likewise.
2801 (x86_linux_teardown_btrace): Likewise.
2802 (x86_linux_read_btrace): Likewise.
2803 (x86_linux_create_target): Likewise.
2804 (x86_linux_add_target): Likewise.
2805 * i386-linux-nat.c (x86-linux-nat.h): New include.
2806 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2807 (PTRACE_SETREGSET): Likewise.
2808 (arch_lwp_info): Now in x86-linux-nat.c.
2809 (have_ptrace_getregset): Now in x86-linux-nat.h.
2810 (x86_linux_dr_get): Now in x86-linux-nat.c.
2811 (x86_linux_dr_set): Likewise.
2812 (x86_linux_dr_get_addr): Likewise.
2813 (x86_linux_dr_get_control): Likewise.
2814 (x86_linux_dr_get_status): Likewise.
2815 (update_debug_registers_callback): Likewise.
2816 (x86_linux_dr_set_control): Likewise.
2817 (x86_linux_dr_set_addr): Likewise.
2818 (x86_linux_prepare_to_resume): Likewise.
2819 (x86_linux_new_thread): Likewise.
2820 (x86_linux_new_fork): Likewise.
2821 (x86_linux_get_thread_area): Likewise.
2822 (super_post_startup_inferior): Likewise.
2823 (x86_linux_child_post_startup_inferior): Likewise.
2824 (AMD64_LINUX_USER64_CS): Likewise.
2825 (AMD64_LINUX_X32_DS): Likewise.
2826 (x86_linux_read_description): Likewise.
2827 (x86_linux_enable_btrace): Likewise.
2828 (x86_linux_disable_btrace): Likewise.
2829 (x86_linux_teardown_btrace): Likewise.
2830 (x86_linux_read_btrace): Likewise.
2831 (x86_linux_create_target): Likewise.
2832 (x86_linux_add_target): Likewise.
2833
1aa7e42c
GB
28342014-07-11 Gary Benson <gbenson@redhat.com>
2835
2836 * amd64-linux-nat.c: Comment and whitespace changes.
2837 * i386-linux-nat.c: Comment and whitespace changes.
2838
c1e246a0
GB
28392014-07-11 Gary Benson <gbenson@redhat.com>
2840
2841 * amd64-linux-nat.c (x86_linux_create_target): New function.
2842 (x86_linux_add_target): Likewise.
2843 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2844 * i386-linux-nat.c (x86_linux_create_target): New function.
2845 (x86_linux_add_target): Likewise.
2846 (_initialize_i386_linux_nat): Delegate to the above new functions.
2847
8c420b8d
GB
28482014-07-11 Gary Benson <gbenson@redhat.com>
2849
2850 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2851 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2852 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2853 (ps_get_thread_area): Delegate to the above.
2854
cb1da100
GB
28552014-07-11 Gary Benson <gbenson@redhat.com>
2856
2857 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2858 x86_linux_read_description. All uses updated. amd64-specific
2859 code conditionalized. Conditionalized i386-specific code added.
2860 Redundant cast removed.
2861 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2862 x86_linux_read_description. All uses updated. i386-specific
2863 code conditionalized. Conditionalized amd64-specific code added.
2864 One sizeof replaced with the actual type it is describing.
2865
2acf3cd0
GB
28662014-07-11 Gary Benson <gbenson@redhat.com>
2867
2868 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2869 x86_linux_dr_get. All uses updated.
2870 (amd64_linux_dr_set): Renamed to
2871 x86_linux_dr_set. All uses updated.
2872 (amd64_linux_dr_get_addr): Renamed to
2873 x86_linux_dr_get_addr. All uses updated.
2874 (amd64_linux_dr_get_control): Renamed to
2875 x86_linux_dr_get_control. All uses updated.
2876 (amd64_linux_dr_get_status): Renamed to
2877 x86_linux_dr_get_status. All uses updated.
2878 (amd64_linux_dr_set_control): Renamed to
2879 x86_linux_dr_set_control. All uses updated.
2880 (amd64_linux_dr_set_addr): Renamed to
2881 x86_linux_dr_set_addr. All uses updated.
2882 (amd64_linux_prepare_to_resume): Renamed to
2883 x86_linux_prepare_to_resume. All uses updated.
2884 (amd64_linux_new_thread): Renamed to
2885 x86_linux_new_thread. All uses updated.
2886 (amd64_linux_new_fork): Renamed to
2887 x86_linux_new_fork. All uses updated.
2888 (amd64_linux_child_post_startup_inferior): Renamed to
2889 x86_linux_child_post_startup_inferior. All uses updated.
2890 (amd64_linux_enable_btrace): Renamed to
2891 x86_linux_enable_btrace. All uses updated.
2892 (amd64_linux_disable_btrace): Renamed to
2893 x86_linux_disable_btrace. All uses updated.
2894 (amd64_linux_teardown_btrace): Renamed to
2895 x86_linux_teardown_btrace. All uses updated.
2896 (amd64_linux_read_btrace): Renamed to
2897 x86_linux_read_btrace. All uses updated.
2898 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2899 x86_linux_dr_get. All uses updated.
2900 (i386_linux_dr_set): Renamed to
2901 x86_linux_dr_set. All uses updated.
2902 (i386_linux_dr_get_addr): Renamed to
2903 x86_linux_dr_get_addr. All uses updated.
2904 (i386_linux_dr_get_control): Renamed to
2905 x86_linux_dr_get_control. All uses updated.
2906 (i386_linux_dr_get_status): Renamed to
2907 x86_linux_dr_get_status. All uses updated.
2908 (i386_linux_dr_set_control): Renamed to
2909 x86_linux_dr_set_control. All uses updated.
2910 (i386_linux_dr_set_addr): Renamed to
2911 x86_linux_dr_set_addr. All uses updated.
2912 (i386_linux_prepare_to_resume): Renamed to
2913 x86_linux_prepare_to_resume. All uses updated.
2914 (i386_linux_new_thread): Renamed to
2915 x86_linux_new_thread. All uses updated.
2916 (i386_linux_new_fork): Renamed to
2917 x86_linux_new_fork. All uses updated.
2918 (i386_linux_child_post_startup_inferior): Renamed to
2919 x86_linux_child_post_startup_inferior. All uses updated.
2920 (i386_linux_enable_btrace): Renamed to
2921 x86_linux_enable_btrace. All uses updated.
2922 (i386_linux_disable_btrace): Renamed to
2923 x86_linux_disable_btrace. All uses updated.
2924 (i386_linux_teardown_btrace): Renamed to
2925 x86_linux_teardown_btrace. All uses updated.
2926 (i386_linux_read_btrace): Renamed to
2927 x86_linux_read_btrace. All uses updated.
2928
b9c1d481
AS
29292014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2930
2931 * remote.c (extended_remote_post_attach): New function.
2932 (init_extended_remote_ops): Install it as to_post_attach method.
2933
7180e04a
PA
29342014-07-09 Pedro Alves <palves@redhat.com>
2935
2936 * infcmd.c (attach_command_post_wait): Don't call
2937 target_terminal_inferior here.
2938 (attach_command): Call it here instead.
2939
9a9a7608
AB
29402014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2941
2942 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2943 field.
2944 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2945 from varobj.c, with additional checks.
2946 (c_varobj_ops): Fill in is_path_expr_parent field.
2947 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2948 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2949 field.
2950 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2951 ops method.
2952 (varobj_default_is_path_expr_parent): New function.
2953 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2954 (varobj_default_is_path_expr_parent): Declare new function.
2955
1f267ae3
MM
29562014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2957
2958 * infcmd.c (finish_backward): Turn internal error into normal error.
2959
b2ee242b
PA
29602014-07-07 Pedro Alves <palves@redhat.com>
2961
8a869bca 2962 PR gdb/17096
b2ee242b
PA
2963 * remote.c (async_handle_remote_sigint)
2964 (async_handle_remote_sigint_twice): Call
2965 gdb_call_async_signal_handler instead of
2966 mark_async_signal_handler.
2967
38e229b2
TT
29682014-07-07 Tom Tromey <tromey@redhat.com>
2969
2970 * target-delegates.c: Rebuild.
2971 * target.c (target_info_record): Remove.
2972 * record.c (info_record_command): Unconditionally call
2973 to_info_record.
2974 * target.h (struct target_ops) <to_info_record>: Use
2975 TARGET_DEFAULT_IGNORE.
2976 (target_info_record): Remove.
2977
f0f9ff95
TT
29782014-07-07 Tom Tromey <tromey@redhat.com>
2979
2980 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2981 TARGET_DEFAULT_NORETURN.
2982 * target.c (generic_tls_error): New function.
2983 (target_translate_tls_address): Don't search target stack.
2984 * target-delegates.c: Rebuild.
2985 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2986 stack.
2987 * linux-thread-db.c (thread_db_get_thread_local_address):
2988 Unconditionally call beneath target.
2989
4a5be5ee
MK
29902014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2991
2992 * cli/cli-logging.c (pop_output_files): Assign targerr to
2993 gdb_stdtargerr.
2994
92c3b204
AB
29952014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2996
2997 * MAINTAINERS (Write After Approval): Update my email address.
2998
9b11e3a7
GB
29992014-07-02 Gary Benson <gbenson@redhat.com>
3000
3001 * proc-service.c (ps_xfer_memory): Update comment.
3002 (ps_pstop): Remove unused function.
3003 (ps_pcontinue): Likewise.
3004 (ps_lstop): Likewise.
3005 (ps_lcontinue): Likewise.
3006 (ps_lgetxregsize): Likewise.
3007 (ps_lgetxregs): Likewise.
3008 (ps_lsetxregs): Likewise.
3009 (ps_plog): Likewise.
3010 (ps_ptread): Likewise.
3011 (ps_ptwrite): Likewise.
3012
cf363f18
MW
30132014-07-01 Mark Wielaard <mjw@redhat.com>
3014
3015 * dwarf2read.c (add_array_cv_type): New function.
3016 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3017 (read_tag_volatile_type): Likewise.
3018
82ae6c8d
TT
30192014-07-01 Tom Tromey <tromey@redhat.com>
3020
3021 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3022 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3023 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3024 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3025 * command.h (cmd_cfunc_ftype): Move earlier.
3026 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3027 (add_com, add_info): Use cmd_cfunc_ftype.
3028
96142726
TT
30292014-06-30 Tom Tromey <tromey@redhat.com>
3030
3031 * symtab.c (operator_chars): Make parameters and return type
3032 const.
3033 (file_matches): Make "files" const.
3034 (struct search_symbols_data) <files>: Now const.
3035 (search_symbols): Make "regexp" and "files" parameters const.
3036 Update.
3037 (symtab_symbol_info): Remove cast.
3038 (rbreak_command): Update.
3039 * symtab.h (search_symbols): Update.
3040
b67a2c6f
YQ
30412014-06-27 Yao Qi <yao@codesourcery.com>
3042
3043 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3044 Change parameter type to 'struct thread_info *'. Caller
3045 updated.
3046 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3047 Update declaration.
3048 * dummy-frame.c (struct dummy_frame_id): New.
3049 (dummy_frame_id_eq): New function.
3050 (struct dummy_frame) <id>: Change its type to 'struct
3051 dummy_frame_id'.
3052 (dummy_frame_push): Add parameter ptid and save it in
3053 dummy_frame_id.
3054 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3055 inferior_ptid.
3056 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3057 to inferior_ptid.
3058 (lookup_dummy_frame): Change parameter type to 'struct
3059 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3060 instead of frame_id_eq.
3061 (dummy_frame_pop): Add parameter ptid. Callers updated.
3062 Update comments. Compose dummy_frame_id and pass it to
3063 lookup_dummy_frame.
3064 (dummy_frame_discard): Add parameter ptid.
3065 (dummy_frame_sniffer): Compose dummy_frame_id and call
3066 dummy_frame_id_eq instead of frame_id_eq.
3067 (fprint_dummy_frames): Print ptid.
3068 * dummy-frame.h: Remove comments.
3069 (dummy_frame_push): Add ptid in declaration.
3070 (dummy_frame_pop, dummy_frame_discard): Likewise.
3071
5b10184c
TT
30722014-06-26 Tom Tromey <tromey@redhat.com>
3073
3074 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3075 * command.h (error_no_arg): Update.
3076
06900326
TT
30772014-06-26 Tom Tromey <tromey@redhat.com>
3078
3079 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3080 (do_show_command): Make "arg" const.
3081 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3082
c2bcbb1d
TT
30832014-06-26 Tom Tromey <tromey@redhat.com>
3084
3085 * record-full.c (record_full_get_bookmark): Make "args" const.
3086 (record_full_goto_bookmark): Make "raw_bookmark" const.
3087 * record.c (record_goto): New function.
3088 (cmd_record_goto): Use it. Now static.
3089 * record.h (record_goto): Declare.
3090 (cmd_record_goto): Remove declaration.
3091 * target-delegates.c: Rebuild.
3092 * target.h (struct target_ops) <to_get_bookmark,
3093 to_goto_bookmark>: Make parameter const.
3094
9cbe5fff
TT
30952014-06-26 Tom Tromey <tromey@redhat.com>
3096
3097 * defs.h (generic_load): Update.
3098 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3099 * monitor.c (monitor_load): Make "args" const.
3100 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3101 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3102 const.
3103 (mips_load): Make "file" const.
3104 * remote-sim.c (gdbsim_load): Make "args" const.
3105 * remote.c (remote_load): Make "name" const.
3106 * symfile.c (generic_load): Make "args" const.
3107 * target-delegates.c: Rebuild.
3108 * target.c (target_load): Make "arg" const.
3109 (debug_to_load): Make "args" const.
3110 * target.h (struct target_ops) <to_load>: Make parameter const.
3111 (target_load): Update.
3112
34a68019
TT
31132014-06-26 Tom Tromey <tromey@redhat.com>
3114
3115 PR symtab/16902:
3116 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3117 (dwarf2_physname, read_partial_die)
3118 (guess_partial_die_structure_name, fixup_partial_die)
3119 (guess_full_die_structure_name, anonymous_struct_prefix)
3120 (dwarf2_name): Use per-BFD obstack.
3121
efc889c1
YQ
31222014-06-26 Yao Qi <yao@codesourcery.com>
3123
3124 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3125 dummyframe and this_id into inner block below.
3126
4395285e
YQ
31272014-06-26 Yao Qi <yao@codesourcery.com>
3128
3129 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3130 with "signal_pass[0]" in the initialization of signal_pass.
3131
aef92902
MM
31322014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3133
3134 * record-btrace.c (record_btrace_generating_corefile)
3135 (record_btrace_prepare_to_generate_core)
3136 (record_btrace_done_generating_core): New.
3137 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3138 (record_btrace_store_registers, record_btrace_prepare_to_store):
3139 Forward request when generating a core file.
3140 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3141 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3142 to_done_generating_core.
3143
5fff78c4
MM
31442014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3145
3146 * target.h (target_ops) <to_prepare_to_generate_core>
3147 <to_done_generating_core>: New.
3148 (target_prepare_to_generate_core, target_done_generating_core): New.
3149 * target.c (target_prepare_to_generate_core)
3150 (target_done_generating_core): New.
3151 * target-delegates.c: Regenerate.
3152 * gcore.c: (write_gcore_file): Rename to ...
3153 (write_gcore_file_1): ...this.
3154 (write_gcore_file): Call target_prepare_to_generate_core
3155 and target_done_generating_core.
3156
1d1f1ccb
MM
31572014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3158
3159 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3160 * gcore.c (write_gcore_file): Free memory returned from
3161 make_corefile_notes.
3162 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3163 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3164
3343ef86
YQ
31652014-06-24 Yao Qi <yao@codesourcery.com>
3166
3167 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3168 (arm_linux_init_abi): Set skip_trampoline_code with
3169 gdbarch_skip_trampoline_code instead of
3170 find_solib_trampoline_target.
3171
18d18ac8
YQ
31722014-06-24 Yao Qi <yao@codesourcery.com>
3173
3174 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3175 arm_skip_bx_reg returns non-zero.
3176
80d8d390
YQ
31772014-06-24 Yao Qi <yao@codesourcery.com>
3178
3179 * arm-tdep.c (arm_skip_bx_reg): New function.
3180 (arm_skip_stub): Call arm_skip_bx_reg.
3181
6a18a01c
DB
31822014-06-23 Don Breazeal <donb@codesourcery.com>
3183
3184 * MAINTAINERS: Add myself as write-after-approval maintainer.
3185
8e9db26e
PA
31862014-06-23 Pedro Alves <palves@redhat.com>
3187
3188 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3189 DR_CONTROL before setting DR0..DR3.
3190 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3191 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3192 bits of DR_CONTROL related to the debug register slot being
3193 disabled. If all slots are vacant, clear local slowdown as well,
3194 and assert DR_CONTROL is 0.
3195
70afc5b7
SC
31962014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3197
3198 * python/lib/gdb/command/xmethods.py
3199 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3200 current progspace only if the string "progspace" matches LOCUS_RE.
3201
840ed64d
JK
32022014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3203
3204 Fix --with-system-readline with readline-6.3 patch 5.
3205 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3206 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3207 types.
3208
26f2dc30
TT
32092014-06-20 Tom Tromey <tromey@redhat.com>
3210
3211 * dwarf2read.c (dw2_get_real_path): Use correct type in
3212 OBSTACK_CALLOC.
3213 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3214
125f8a3d
GB
32152014-06-20 Gary Benson <gbenson@redhat.com>
3216
3217 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3218 * common/glibc_thread_db.h: Likewise.
3219 * common/i386-cpuid.h: Likewise.
3220 * common/i386-gcc-cpuid.h: Likewise.
3221 * common/linux-btrace.h: Likewise.
3222 * common/linux-osdata.h: Likewise.
3223 * common/linux-procfs.h: Likewise.
3224 * common/linux-ptrace.h: Likewise.
3225 * common/mips-linux-watch.h: Likewise.
3226 * common/linux-btrace.c: Moved to nat.
3227 * common/linux-osdata.c: Likewise.
3228 * common/linux-procfs.c: Likewise.
3229 * common/linux-ptrace.c: Likewise.
3230 * common/mips-linux-watch.c: Likewise.
3231 * nat/gdb_thread_db.h: Moved from common.
3232 * nat/glibc_thread_db.h: Likewise.
3233 * nat/i386-cpuid.h: Likewise.
3234 * nat/i386-gcc-cpuid.h: Likewise.
3235 * nat/linux-btrace.c: Likewise.
3236 * nat/linux-btrace.h: Likewise.
3237 * nat/linux-osdata.c: Likewise.
3238 * nat/linux-osdata.h: Likewise.
3239 * nat/linux-procfs.c: Likewise.
3240 * nat/linux-procfs.h: Likewise.
3241 * nat/linux-ptrace.c: Likewise.
3242 * nat/linux-ptrace.h: Likewise.
3243 * nat/mips-linux-watch.c: Likewise.
3244 * nat/mips-linux-watch.h: Likewise.
3245 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3246 (object file files): Reordered.
3247 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3248 of glibc_thread_db.h.
3249
42995dbd
GB
32502014-06-20 Gary Benson <gbenson@redhat.com>
3251
3252 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3253 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3254 (i386_dr_low): Likewise.
3255 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3256 (i386_dr_low_set_addr): Likewise.
3257 (i386_dr_low_get_addr): Likewise.
3258 (i386_dr_low_can_set_control): Likewise.
3259 (i386_dr_low_set_control): Likewise.
3260 (i386_dr_low_get_control): Likewise.
3261 (i386_dr_low_get_status): Likewise.
3262 (i386_get_debug_register_length): Likewise.
3263 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3264 (i386_dr_low): Likewise.
3265 * nat/i386-dregs.c (i386-low.h): Remove include.
3266 (i386-nat.h): Likewise.
3267 (nat/i386-dregs.h): New include.
3268 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3269 (i386_dr_low_set_addr): Likewise.
3270 (i386_dr_low_get_addr): Likewise.
3271 (i386_dr_low_can_set_control): Likewise.
3272 (i386_dr_low_set_control): Likewise.
3273 (i386_dr_low_get_control): Likewise.
3274 (i386_dr_low_get_status): Likewise.
3275 (i386_get_debug_register_length): Likewise.
3276 (debug_hw_points): Likewise.
3277
3ed9baed
IB
32782014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3279
3280 * Makefile.in (SFILES): Add d-exp.y.
3281 (YYFILES): Add d-exp.c.
3282 (YYOBJ): Add d-exp.o.
3283 (local-maintainer-clean): Delete d-exp.c.
3284 * d-exp.y: New file.
3285 * d-lang.h (d_parse): New declaration.
3286 (d_error): New declaration.
3287 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3288 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3289 PREC_ORDER operators.
3290 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3291
78c164b0
YQ
32922014-06-19 Yao Qi <yao@codesourcery.com>
3293
3294 * gdbthread.h (any_running): Remove the declaration.
3295 * thread.c (any_running): Remove.
3296
f6e29b6e
YQ
32972014-06-19 Yao Qi <yao@codesourcery.com>
3298
3299 * gdbthread.h (struct thread_info) <state>: Change its type to
3300 'enum thread_state'. Update comments.
3301
034f788c
PA
33022014-06-19 Pedro Alves <palves@redhat.com>
3303
3304 * gdbthread.h (ALL_THREADS): Delete.
3305 (ALL_NON_EXITED_THREADS): New macro.
3306 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3307 instead of ALL_THREADS.
3308 * infrun.c (find_thread_needs_step_over)
3309 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3310 instead of ALL_THREADS.
3311 * record-btrace.c (record_btrace_open)
3312 (record_btrace_stop_recording, record_btrace_close)
3313 (record_btrace_is_replaying, record_btrace_resume)
3314 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3315 * remote.c (append_pending_thread_resumptions): Likewise.
3316 * thread.c (thread_apply_all_command): Likewise.
3317
46e33252
GB
33182014-06-19 Gary Benson <gbenson@redhat.com>
3319
3320 * i386-nat.c (i386_stopped_by_watchpoint):
3321 Use i386_dr_stopped_by_watchpoint.
3322 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3323 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3324
3a8ee006
GB
33252014-06-19 Gary Benson <gbenson@redhat.com>
3326
3327 * nat/i386-dregs.c: New file.
3328 * Makefile.in (i386-dregs.o): New rule.
3329 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3330 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3331 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3332 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3333 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3334 * config/i386/go32.mh (NATDEPFILES): Likewise.
3335 * config/i386/linux.mh (NATDEPFILES): Likewise.
3336 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3337 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3338 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3339 * i386-nat.h (debug_hw_points): New declaration.
3340 * i386-nat.c (breakpoint.h): Remove include.
3341 (command.h): Likewise.
3342 (target.h): Likewise.
3343 (gdb_assert.h): Likewise.
3344 (debug_hw_points): Made nonstatic.
3345 (debug_printf): Now in i386-dregs.c.
3346 (TARGET_HAS_DR_LEN_8): Likewise.
3347 (DR_CONTROL_SHIFT): Likewise.
3348 (DR_CONTROL_SIZE): Likewise.
3349 (DR_RW_EXECUTE): Likewise.
3350 (DR_RW_WRITE): Likewise.
3351 (DR_RW_READ): Likewise.
3352 (DR_RW_IORW): Likewise.
3353 (DR_LEN_1): Likewise.
3354 (DR_LEN_2): Likewise.
3355 (DR_LEN_4): Likewise.
3356 (DR_LEN_8): Likewise.
3357 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3358 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3359 (DR_ENABLE_SIZE): Likewise.
3360 (DR_LOCAL_SLOWDOWN): Likewise.
3361 (DR_GLOBAL_SLOWDOWN): Likewise.
3362 (DR_CONTROL_RESERVED): Likewise.
3363 (I386_DR_CONTROL_MASK): Likewise.
3364 (I386_DR_VACANT): Likewise.
3365 (I386_DR_LOCAL_ENABLE): Likewise.
3366 (I386_DR_GLOBAL_ENABLE): Likewise.
3367 (I386_DR_DISABLE): Likewise.
3368 (I386_DR_SET_RW_LEN): Likewise.
3369 (I386_DR_GET_RW_LEN): Likewise.
3370 (I386_DR_WATCH_HIT): Likewise.
3371 (i386_wp_op_t): Likewise.
3372 (i386_show_dr): Likewise.
3373 (i386_length_and_rw_bits): Likewise.
3374 (i386_insert_aligned_watchpoint): Likewise.
3375 (i386_remove_aligned_watchpoint): Likewise.
3376 (i386_handle_nonaligned_watchpoint): Likewise.
3377 (i386_update_inferior_debug_regs): Likewise.
3378 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3379 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3380 (i386_region_ok_for_watchpoint):
3381 Use i386_dr_region_ok_for_watchpoint.
3382 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3383
322a8e06
GB
33842014-06-19 Gary Benson <gbenson@redhat.com>
3385
3386 * i386-nat.c (i386_insert_hw_breakpoint): Use
3387 i386_insert_watchpoint.
3388 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3389
8f26655c
GB
33902014-06-19 Gary Benson <gbenson@redhat.com>
3391
3392 * i386-nat.c (i386_dr_show): Renamed to
3393 i386_show_dr and made static. All uses updated.
3394 (i386_dr_length_and_rw_bits): Renamed to
3395 i386_length_and_rw_bits and made static.
3396 All uses updated.
3397 (i386_dr_insert_aligned_watchpoint): Renamed to
3398 i386_insert_aligned_watchpoint and made static.
3399 All uses updated.
3400 (i386_dr_remove_aligned_watchpoint): Renamed to
3401 i386_remove_aligned_watchpoint and made static.
3402 All uses updated.
3403 (i386_dr_update_inferior_debug_regs): Renamed to
3404 i386_update_inferior_debug_regs and made static.
3405 All uses updated.
3406 * nat/i386-dregs.h (i386_dr_show): Removed.
3407 (i386_dr_length_and_rw_bits): Likewise.
3408 (i386_dr_insert_aligned_watchpoint): Likewise.
3409 (i386_dr_remove_aligned_watchpoint): Likewise.
3410 (i386_dr_update_inferior_debug_regs): Likewise.
3411
992c7d70
GB
34122014-06-19 Gary Benson <gbenson@redhat.com>
3413
3414 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3415 * configure: Regenerate.
3416 * config.in: Likewise.
3417 * main.c (signal.h): New include.
3418 (setup_alternate_signal_stack): New function.
3419 (captured_main): Call the above.
3420 * cp-support.c (signal.h): New include.
3421 (catch_demangler_crashes): New flag.
3422 (SIGJMP_BUF): New define.
3423 (SIGSETJMP): Likewise.
3424 (SIGLONGJMP): Likewise.
3425 (gdb_demangle_jmp_buf): New static global.
3426 (gdb_demangle_attempt_core_dump): Likewise.
3427 (gdb_demangle_signal_handler): New function.
3428 (gdb_demangle): If catch_demangler_crashes is set, install the
3429 above signal handler before calling bfd_demangle, and restore
3430 the original signal handler afterwards. Display the offending
3431 symbol and call demangler_warning the first time a segmentation
3432 fault is caught.
3433 (_initialize_cp_support): New maint set/show command.
3434
eae7090b
GB
34352014-06-19 Gary Benson <gbenson@redhat.com>
3436
3437 * utils.h (resource_limit_kind): New enum.
3438 (can_dump_core): New declaration.
3439 (warn_cant_dump_core): Likewise.
3440 (dump_core): Likewise.
3441 * utils.c (dump_core): Made nonstatic. Added new
3442 parameter "limit_kind".
3443 (can_dump_core): Made nonstatic. Moved printing code to...
3444 (warn_cant_dump_core): New function.
3445 (can_dump_core_warn): Likewise.
3446 (internal_vproblem): Replace calls to can_dump_core with
3447 calls to can_dump_core_warn. Supply new argument to each.
3448
57fcfb1b
GB
34492014-06-19 Gary Benson <gbenson@redhat.com>
3450
3451 * utils.h (demangler_vwarning): New declaration.
3452 (demangler_warning): Likewise.
3453 * utils.c (struct internal_problem)
3454 <user_settable_should_quit>: New field.
3455 <user_settable_should_dump_core>: Likewise
3456 (internal_error_problem): Add values for above new fields.
3457 (internal_warning_problem): Likewise.
3458 (demangler_warning_problem): New static global.
3459 (demangler_vwarning): New function.
3460 (demangler_warning): Likewise.
3461 (add_internal_problem_command): Selectively add commands.
3462 (_initialize_utils): New internal problem command.
3463 * maint.c (maintenance_demangler_warning): New function.
3464 (_initialize_maint_cmds): New command.
3465
17a40b44
TT
34662014-06-18 Tom Tromey <tromey@redhat.com>
3467
3468 * f-valprint.c (info_common_command_for_block): Update.
3469 * symtab.h (struct general_symbol_info) <common_block>: Now
3470 const.
3471
346d1dfe
TT
34722014-06-18 Tom Tromey <tromey@redhat.com>
3473
3474 * symtab.h (struct symtab) <blockvector>: Now const.
3475 * ada-lang.c (ada_add_global_exceptions): Update.
3476 * buildsym.c (augment_type_symtab): Update.
3477 * dwarf2read.c (dw2_lookup_symbol): Update.
3478 * jit.c (finalize_symtab): Update.
3479 * jv-lang.c (add_class_symtab_symbol): Update.
3480 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3481 Update.
3482 * objfiles.c (objfile_relocate1): Update.
3483 * psymtab.c (lookup_symbol_aux_psymtabs)
3484 (maintenance_check_psymtabs): Update.
3485 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3486 Update.
3487 * spu-tdep.c (spu_catch_start): Update.
3488 * symmisc.c (dump_symtab_1): Update.
3489 * symtab.c (lookup_global_symbol_from_objfile)
3490 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3491 (basic_lookup_transparent_type_quick)
3492 (basic_lookup_transparent_type, find_pc_sect_symtab)
3493 (find_pc_sect_line, search_symbols): Update.
3494 * block.c (find_block_in_blockvector): Make "bl" const.
3495 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3496 const.
3497 (blockvector_contains_pc): Make "bv" const.
3498 (block_for_pc_sect): Update.
3499 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3500 (blockvector_contains_pc): Update.
3501 * breakpoint.c (resolve_sal_pc): Update.
3502 * inline-frame.c (block_starting_point_at): Update.
3503
1834676b
TT
35042014-06-18 Tom Tromey <tromey@redhat.com>
3505
3506 * completer.c (complete_line): Make "line_buffer" const.
3507 * completer.h (complete_line): Update.
3508
ac1a991b
TT
35092014-06-18 Tom Tromey <tromey@redhat.com>
3510
3511 * symtab.c (add_macro_name): Remove unneeded cast.
3512
5bc98e52
TT
35132014-06-18 Tom Tromey <tromey@redhat.com>
3514
3515 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3516 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3517
8236def8
TT
35182014-06-18 Tom Tromey <tromey@redhat.com>
3519
3520 * probe.c (info_probes_for_ops): Make "arg" const.
3521 * probe.h (info_probes_for_ops): Update.
3522
3977b71f
TT
35232014-06-18 Tom Tromey <tromey@redhat.com>
3524
3525 * varobj.c (varobj_create): Update.
3526 * valops.c (value_of_this): Update.
3527 * tracepoint.c (add_local_symbols, scope_info): Update.
3528 * symtab.h (struct general_symbol_info) <block>: Now const.
3529 * symtab.c (skip_prologue_sal)
3530 (default_make_symbol_completion_list_break_on)
3531 (skip_prologue_using_sal): Update.
3532 * stack.h (iterate_over_block_locals)
3533 (iterate_over_block_local_vars): Update.
3534 * stack.c (print_frame_args): Update.
3535 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3536 parameter const.
3537 (get_selected_block): Make return type const.
3538 * python/py-frame.c (frapy_block): Update.
3539 * python/py-block.c (gdbpy_block_for_pc): Update.
3540 * p-exp.y (%union) <bval>: Now const.
3541 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3542 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3543 * m2-exp.y (%union) <bval>: Now const.
3544 * linespec.c (get_current_search_block): Make return type const.
3545 (create_sals_line_offset, find_label_symbols): Update.
3546 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3547 Update.
3548 (block_starting_point_at): Make "block" const.
3549 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3550 (check_exception_resume): Update.
3551 * guile/scm-frame.c (gdbscm_frame_block): Update.
3552 * guile/scm-block.c (gdbscm_lookup_block): Update.
3553 * frame.h (get_frame_block): Update.
3554 (get_selected_block): Make return type const.
3555 * frame.c (frame_id_inner): Update.
3556 * f-valprint.c (info_common_command_for_block)
3557 (info_common_command): Update.
3558 * dwarf2loc.c (dwarf2_find_location_expression)
3559 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3560 (locexpr_describe_location_piece): Update.
3561 * c-exp.y (%union) <bval>: Now const.
3562 * breakpoint.c (resolve_sal_pc): Update.
3563 * blockframe.c (get_frame_block):Make return type const.
3564 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3565 (block_innermost_frame): Update.
3566 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3567 (block_for_pc, block_for_pc_sect): Update.
3568 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3569 'pblock' const.
3570 (block_for_pc_sect, block_for_pc): Make return type const.
3571 * ax-gdb.c (gen_expr): Update.
3572 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3573 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3574 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3575 (ada_read_var_value): Update.
3576 * ada-exp.y (struct name_info) <block>: Now const.
3577 (%union): Likewise.
3578 (block_lookup): Constify.
3579
b9228891
GB
35802014-06-18 Gary Benson <gbenson@redhat.com>
3581
3582 * nat/i386-dregs.h: New file.
3583 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3584 * i386-nat.h (i386-dregs.h): New include.
3585 (DR_FIRSTADDR): Now in i386-dregs.h.
3586 (DR_LASTADDR): Likewise.
3587 (DR_NADDR): Likewise.
3588 (DR_STATUS): Likewise.
3589 (DR_CONTROL): Likewise.
3590 (i386_debug_reg_state): Likewise.
3591 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3592
a1aa2221
LM
35932014-06-18 Don Breazeal <donb@codesourcery.com>
3594
3595 * breakpoint.c (set_longjmp_breakpoint): Call
3596 momentary_breakpoint_from_master with additional argument.
3597 (set_longjmp_breakpoint_for_call_dummy): Call
3598 momentary_breakpoint_from_master with additional argument.
3599 (set_std_terminate_breakpoint): Call
3600 momentary_breakpoint_from_master with additional argument.
3601 (momentary_breakpoint_from_master): Add argument to function
3602 definition and use it to initialize structure member flag.
74228e77 3603 (clone_momentary_breakpoint): Call
a1aa2221
LM
3604 momentary_breakpoint_from_master with additional argument.
3605 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3606 member flags set in momentary_breakpoint_from_master.
3607
4be83cc2
GB
36082014-06-18 Gary Benson <gbenson@redhat.com>
3609
3610 * i386-nat.c (i386_show_dr): Renamed to
3611 i386_dr_show and made nonstatic. All uses updated.
3612 (i386_length_and_rw_bits): Renamed to
3613 i386_dr_length_and_rw_bits and made nonstatic.
3614 All uses updated.
3615 (i386_insert_aligned_watchpoint): Renamed to
3616 i386_dr_insert_aligned_watchpoint and made nonstatic.
3617 All uses updated.
3618 (i386_remove_aligned_watchpoint): Renamed to
3619 i386_dr_remove_aligned_watchpoint and made nonstatic.
3620 All uses updated.
3621 (i386_update_inferior_debug_regs): Renamed to
3622 i386_dr_update_inferior_debug_regs and made nonstatic.
3623 All uses updated.
3624
131aa0d4
GB
36252014-06-18 Gary Benson <gbenson@redhat.com>
3626
3627 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3628 (i386_dr_low_can_set_control): Likewise.
3629 (i386_dr_low_set_addr): Likewise.
3630 (i386_dr_low_set_control): Likewise.
3631 (i386_dr_low_get_addr): Likewise.
3632 (i386_dr_low_get_status): Likewise.
3633 (i386_dr_low_get_control): Likewise.
3634 (i386_insert_aligned_watchpoint): Use new macros.
3635 (i386_update_inferior_debug_regs): Likewise.
3636 (i386_stopped_data_address): Likewise.
3637
d9305f7f
GB
36382014-06-18 Gary Benson <gbenson@redhat.com>
3639
3640 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3641 New parameter. All uses updated.
3642
ea008da4
GB
36432014-06-18 Gary Benson <gbenson@redhat.com>
3644
3645 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3646 All uses updated.
3647
1b6d4134
GB
36482014-06-18 Gary Benson <gbenson@redhat.com>
3649
3650 * i386-nat.c (debug_printf): New macro.
3651 (i386_get_debug_register_length): Likewise.
3652 (TARGET_HAS_DR_LEN_8): Use above macro.
3653 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3654 and printf_unfiltered. Use phex to format values.
3655
9b4550ef
GB
36562014-06-18 Gary Benson <gbenson@redhat.com>
3657
3658 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3659 Make const.
3660
6e62758f
GB
36612014-06-18 Gary Benson <gbenson@redhat.com>
3662
3663 * i386-nat.c: Comment changes.
3664
51c79e94
GB
36652014-06-18 Gary Benson <gbenson@redhat.com>
3666
3667 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3668
3e11889a
GB
36692014-06-18 Gary Benson <gbenson@redhat.com>
3670
3671 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3672 (i386_insert_aligned_watchpoint): Likewise.
3673 (i386_remove_aligned_watchpoint): Likewise.
3674 (i386_handle_nonaligned_watchpoint): Likewise.
3675
fc6e2f03
GB
36762014-06-18 Gary Benson <gbenson@redhat.com>
3677
3678 * i386-nat.c: Whitespace changes.
3679
2afe7d50
SB
36802014-06-17 Samuel Bronson <naesten@gmail.com>
3681
3682 * MAINTAINERS: Update Roland McGrath's email address.
3683 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3684 Red Hat a while ago, and giving me a current address.
2afe7d50 3685
3bca49ee
TT
36862014-06-17 Tom Tromey <tromey@redhat.com>
3687
3688 * utils.h (savestring): Remove declaration.
3689
6e366df1
TT
36902014-06-17 Tom Tromey <tromey@redhat.com>
3691
3692 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3693
6be47f0c
KS
36942014-06-16 Keith Seitz <keiths@redhat.com>
3695
3696 PR mi/15863
3697 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3698 to update the varobj if inferior_ptid is null_ptid.
3699
7bc112c1
TT
37002014-06-16 Tom Tromey <tromey@redhat.com>
3701
3702 * target.h (struct target_ops) <to_info_proc>: Make parameter
3703 const.
3704 (target_info_proc): Update.
3705 * target.c (target_info_proc): Make "args" const.
3706 * procfs.c (procfs_info_proc): Update.
3707 * linux-tdep.c (linux_info_proc): Update.
3708 (linux_core_info_proc_mappings): Make "args" const.
3709 (linux_core_info_proc): Update.
3710 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3711 * gdbarch.c: Rebuild.
3712 * gdbarch.h: Rebuild.
3713 * corelow.c (core_info_proc): Update.
3714
fee354ee
TT
37152014-06-16 Tom Tromey <tromey@redhat.com>
3716
3717 * target.h (struct target_ops) <to_disconnect>: Make parameter
3718 const.
3719 (target_disconnect): Update.
3720 * target.c (target_disconnect): Make "args" const.
3721 * target-delegates.c: Rebuild.
3722 * remote.c (remote_disconnect): Update.
3723 * record.h (record_disconnect): Update.
3724 * record.c (record_disconnect): Update.
3725 * inf-child.c (inf_child_disconnect): Update.
3726
a30bf1f1
TT
37272014-06-16 Tom Tromey <tromey@redhat.com>
3728
3729 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3730 * target.c (debug_to_rcmd, default_rcmd): Update.
3731 * target-delegates.c: Rebuild.
3732 * remote.c (remote_rcmd): Update.
3733 * monitor.c (monitor_rcmd): Update.
3734
d03de421
PA
37352014-06-16 Pedro Alves <palves@redhat.com>
3736
3737 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3738 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3739 have OBJF_SHARED set.
3740 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3741 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3742 instead of OBJF_USERLOADED.
3743 * objfiles.h (OBJF_SHARED): Update comment.
3744 (userloaded_objfile_contains_address_p): Rename to ...
3745 (shared_objfile_contains_address_p): ... this, and update
3746 comments.
3747 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3748 new objfile.
3749 (remove_symbol_file_command): Skip objfiles that don't have
3750 OBJF_SHARED set.
3751
99f4262f
TT
37522014-06-16 Tom Tromey <tromey@redhat.com>
3753
3754 * minsyms.h (prim_record_minimal_symbol)
3755 (prim_record_minimal_symbol_and_info): Update comments.
3756
97d66cc6
EZ
37572014-06-14 Eli Zaretskii <eliz@gnu.org>
3758
3759 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3760 or --without-guile, according to how GDB was built.
3761
635c7e8a
TT
37622014-06-13 Tom Tromey <tromey@redhat.com>
3763
3764 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3765 to help_list.
3766 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3767 to help_list.
3768 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3769 help_list.
3770 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3771 help_list.Pass all_commands, not -1, to help_list.
3772 * cli/cli-dump.c (dump_command, append_command)
3773 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3774 (binary_dump_command, binary_append_command): Pass all_commands,
3775 not -1, to help_list.
3776 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3777 -1, to help_list.
3778 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3779 -1, to help_list.
3780 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3781 help_list.
3782 * top.c (set_history): Pass all_commands, not -1, to help_list.
3783 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3784 all_commands, not -1, to help_list.
3785 * symfile.c (overlay_command): Pass all_commands, not -1, to
3786 help_list.
3787 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3788 help_list.
3789 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3790 help_list.
3791 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3792 -1, to help_list.
3793 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3794 not -1, to help_list.
3795 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3796 not -1, to help_list.
3797 * maint.c (maintenance_command, maintenance_info_command)
3798 (maintenance_print_command, maintenance_set_cmd): Pass
3799 all_commands, not -1, to help_list.
3800 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3801 help_list.
3802 * language.c (set_check): Pass all_commands, not -1, to help_list.
3803 * infcmd.c (unset_command): Pass all_commands, not -1, to
3804 help_list.
3805 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3806 help_list.
3807 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3808 help_list.
3809 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3810 help_list.
3811 * breakpoint.c (save_command): Pass all_commands, not -1, to
3812 help_list.
3813 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3814 all_commands, not -1, to help_list.
3815
b94ade42
PL
38162014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3817
3818 * regcache.c (struct register_to_invalidate): New structure.
3819 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3820 functions.
3821 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3822
31f628ae
YQ
38232014-06-12 Yao Qi <yao@codesourcery.com>
3824
3825 * varobj.c (varobj_get_num_children): Call
3826 varobj_is_dynamic_p.
3827 (varobj_list_children): Likewise.
3828 (varobj_update): Likewise. Update comments.
3829
cde5ef40
YQ
38302014-06-12 Yao Qi <yao@codesourcery.com>
3831
3832 * varobj.c (varobj_pretty_printed_p): Rename to ...
3833 (varobj_is_dynamic_p): ... this. New function.
3834 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3835 (varobj_is_dynamic_p): Declare.
3836 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3837 (mi_print_value_p, varobj_update_one): Likewise.
3838
576ea091
YQ
38392014-06-12 Pedro Alves <pedro@codesourcery.com>
3840 Yao Qi <yao@codesourcery.com>
3841
3842 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3843 (varobj_get_iterator): Wrap up code for pretty-printer by
3844 "#if HAVE_PYTHON" and "#endif".
3845 (update_dynamic_varobj_children): Likewise.
3846
827f100c
YQ
38472014-06-12 Pedro Alves <pedro@codesourcery.com>
3848 Yao Qi <yao@codesourcery.com>
3849
3850 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3851 gdb_python_initialized is false. Move some code from varobj.c.
3852 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3853 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3854 (struct varobj_item): Moved to varobj-iter.h".
3855 (varobj_clear_saved_item): New function.
3856 (update_dynamic_varobj_children): Move python-related code to
3857 py-varobj.c.
3858 (free_variable): Call varobj_clear_saved_item and
3859 varobj_iter_delete.
3860
e5250216
YQ
38612014-06-12 Pedro Alves <pedro@codesourcery.com>
3862 Yao Qi <yao@codesourcery.com>
3863
3864 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3865 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3866 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3867 (py-varobj.o): New rule.
3868 * python/py-varobj.c: New file.
3869 * python/python-internal.h (py_varobj_get_iterator): Declare.
3870 * varobj-iter.h: New file.
3871 * varobj.c: Include "varobj-iter.h"
3872 (struct varobj) <child_iter>: Change its type from "PyObject *"
3873 to "struct varobj_iter *".
3874 <saved_item>: Likewise.
3875 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3876 [HAVE_PYTHON] (varobj_get_iterator): New function.
3877 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3878 python-specific code to python/py-varobj.c.
3879 (install_visualizer): Call varobj_iter_delete instead of
3880 Py_XDECREF.
3881 * varobj.h (varobj_ensure_python_env): Declare.
3882
5a2e0d6e
YQ
38832014-06-12 Yao Qi <yao@codesourcery.com>
3884
3885 * varobj.c (struct varobj_item): New structure.
3886 (create_child_with_value): Update declaration.
3887 (varobj_add_child): Replace arguments 'name' and 'value' with
3888 'item'. All callers updated.
3889 (install_dynamic_child): Likewise.
3890 (update_dynamic_varobj_children): Likewise.
3891 (varobj_add_child): Likewise.
3892 (create_child_with_value): Likewise.
3893
919b9a93
JB
38942014-06-11 Joel Brobecker <brobecker@adacore.com>
3895
3896 * NEWS: Create a new section for the next release branch.
3897 Rename the section of the current branch, now that it has
3898 been cut.
3899
71a55bdf
JB
39002014-06-11 Joel Brobecker <brobecker@adacore.com>
3901
3902 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3903 * version.in: Bump version to 7.8.50.DATE-cvs.
3904
364fe1f7
PA
39052014-06-11 Pedro Alves <palves@redhat.com>
3906
3907 PR remote/17028
3908 * ser-mingw.c (net_windows_socket_check_pending): New function.
3909 (net_windows_select_thread): Ignore spurious wakeups. Use
3910 net_windows_socket_check_pending.
3911 (net_windows_wait_handle): Check for pending events with
3912 ioctlsocket, through net_windows_socket_check_pending, instead of
3913 checking the socket's event.
3914
5a6c7709
SC
39152014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3916
3917 * python/python-internal.h (gdb_PyObject_GetAttrString)
3918 (gdb_PyObject_HasAttrString): New inline function definitions.
3919 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3920 char * of the second argument to PyObject_GetAttrString.
74228e77 3921
0e58ee40
JB
39222014-06-10 Joel Brobecker <brobecker@adacore.com>
3923
3924 * serial.c (serial_write): Fix index of character to be printed
3925 in call to serial_logchar when serial debug traces are enabled.
3926
d190df30
JB
39272014-06-10 Joel Brobecker <brobecker@adacore.com>
3928
3929 * gdbtypes (resolve_dynamic_range): Add function description.
3930
b4b01d36
PA
39312014-06-09 Pedro Alves <palves@redhat.com>
3932
3933 * linux-nat.c (linux_child_follow_fork): Initialize status with
3934 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3935 inner block. Only pass the signal to PTRACE_DETACH if in pass
3936 state.
3937
3657956b
GB
39382014-06-09 Gary Benson <gbenson@redhat.com>
3939
3940 * common/signals.c (gdb_signal_from_host): Reorder to separate
3941 the always-available ANSI-standard signals from the signals that
3942 require checking.
3943 (do_gdb_signal_to_host): Likewise.
3944 * proc-events.c (signal_table): Likewise.
3945
c077881a
HZ
39462014-06-08 Hui Zhu <hui@codesourcery.com>
3947
3948 * common/linux-ptrace.c (linux_disable_event_reporting): New
3949 function.
3950 * common/linux-ptrace.h (linux_disable_event_reporting): New
3951 declaration.
3952 * linux-nat.c (linux_child_follow_fork): Do a single step before
3953 detach.
3954
4186eb54
KS
39552014-06-07 Keith Seitz <keiths@redhat.com>
3956
3957 Revert:
3958 PR c++/16253
3959 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3960 from symbol_matches_domain in symtab.c. All local callers
3961 of symbol_matches_domain updated.
3962 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3963 search STRUCT_DOMAIN.
3964 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3965 independently. standard_lookup will do that automatically.
3966 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3967 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3968 (cp_lookup_symbol_in_namespace): Likewise.
3969 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3970 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3971 may return a STRUCT_DOMAIN match.
3972 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3973 * cp-support.c: Include language.h.
3974 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3975 VAR_DOMAIN.
3976 * psymtab.c (match_partial_symbol): Compare the requested
3977 domain with the symbol's domain directly.
3978 (lookup_partial_symbol): Likewise.
3979 * symtab.c (lookup_symbol_in_language): Explain when/why
3980 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3981 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3982 appropriate languages.
3983 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3984 and moved to ada-lang.c
3985 (lookup_block_symbol): Explain that this function only returns
3986 symbol matching the requested DOMAIN.
3987 Compare the requested domain with the symbol's domain directly.
3988 (iterate_over_symbols): Compare the requested domain with the
3989 symbol's domain directly.
3990 * symtab.h (symbol_matches_domain): Remove.
3991
25326a28 39922014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3993
3994 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3995 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3996 (gdbscm_guile_version_is_at_least): Declare.
3997 (gdbscm_scm_string_to_int): Declare.
3998 * guile/guile.c (gdbscm_guile_major_version): New global.
3999 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4000 (guile_datadir): New static global.
4001 (gdbscm_guile_data_directory): New function.
4002 (initialize_scheme_side): Update.
4003 (misc_guile_functions): Add guile-data-directory.
4004 (initialize_gdb_module): Fetch guile version number.
4005 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4006 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4007 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4008 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4009 comments.
4010 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4011 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4012 * guile/scm-value.c (gdbscm_value_to_string): Only call
4013 scm_port_conversion_strategy if Guile version >= 2.0.6.
4014
0a770bb2 40152014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4016
4017 * main.c (print_gdb_help): Add -q and --silent.
4018
73ba372c
GB
40192014-06-06 Gary Benson <gbenson@redhat.com>
4020
4021 * common/signals.c: Remove preprocessor conditionals for
4022 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4023 SIGSEGV and SIGTERM.
4024 * proc-events.c: Likewise.
4025
c33b2f12
MM
40262014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4027
4028 * symfile.c (symfile_free_objfile): Remove restriction to
4029 OBJF_USERLOADED.
4030 * symfile-mem.c (symbol_file_add_from_memory): Call
4031 add_target_sections_of_objfile.
4032
fb934770
LC
40332014-06-05 Ludovic Courtès <ludo@gnu.org>
4034
4035 * guile/scm-value.c (gdbscm_history_append_x): Use
4036 'vlscm_get_value_smob_arg_unsafe' instead of
4037 'vlscm_scm_to_value'.
4038
6ef284bd
SM
40392014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4040
4041 PR mi/15806
4042 * utils.c (printchar): Don't escape at all if quoter is NUL.
4043 Update function documentation to clarify effect of parameter
4044 QUOTER.
4045 * remote.c (escape_buffer): Pass '\\' as the quoter to
4046 fputstrn_unfiltered.
4047 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4048 generate the output.
4049 (mi_solib_unloaded): Same.
4050
270c9937
JB
40512014-06-05 Joel Brobecker <brobecker@adacore.com>
4052
4053 * development.sh: Delete.
4054 * Makefile.in (config.status): Adjust dependency on development.sh.
4055 * configure.ac: Adjust development.sh source call.
4056 * configure: Regenerate.
4057
16f691fb
DE
40582014-06-04 Doug Evans <xdje42@gmail.com>
4059
4060 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4061 is_scheme_bkpt, spec.
4062 (bpscm_make_breakpoint_smob): Initialize new members.
4063 (gdbscm_create_breakpoint_x): Split into two ...
4064 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4065 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4066 (scheme_function breakpoint_functions): Update.
4067 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4068 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4069 register-breakpoint!.
4070
ef7cab6b
JB
40712014-06-04 Joel Brobecker <brobecker@adacorer.com>
4072
4073 PR server/17023
4074 * mem-break.c (z_type_supported): Return zero if
4075 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4076
012370f6
TT
40772014-06-04 Tom Tromey <tromey@redhat.com>
4078
4079 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4080 value_from_contents_and_address_unresolved.
4081 (ada_template_to_fixed_record_type_1): Likewise.
4082 (ada_which_variant_applies): Likewise.
4083 * value.h (value_from_contents_and_address_unresolved): Declare.
4084 * value.c (value_from_contents_and_address_unresolved): New
4085 function.
4086 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4087 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4088 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4089
92e2a17f
TT
40902014-06-04 Tom Tromey <tromey@redhat.com>
4091
4092 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4093
c0939df1
TT
40942014-06-04 Tom Tromey <tromey@redhat.com>
4095
4096 * procfs.c (procfs_attach): Make "args" const.
4097 * windows-nat.c (windows_attach): Make "args" const.
4098 * nto-procfs.c (procfs_attach): Make "args" const.
4099 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4100 * go32-nat.c (go32_attach): Make "args" const.
4101 * gnu-nat.c (gnu_attach): Make "args" const.
4102 * darwin-nat.c (darwin_attach): Make "args" const.
4103 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4104 * linux-nat.c (linux_nat_attach): Make "args" const.
4105 * remote.c (extended_remote_attach_1, extended_remote_attach):
4106 Make "args" const.
4107 * target.h (struct target_ops) <to_attach>: Make "args" const.
4108 (find_default_attach): Likewise.
4109 * utils.c (parse_pid_to_attach): Make "args" const.
4110 * utils.h (parse_pid_to_attach): Update.
4111
8eaff7cd
TT
41122014-06-04 Tom Tromey <tromey@redhat.com>
4113
4114 * target-delegates.c: Rebuild.
4115 * target.c (default_thread_address_space): New function.
4116 (target_thread_address_space): Simplify.
4117 * target.h (struct target_ops) <to_thread_address_space>: Add
4118 TARGET_DEFAULT_FUNC.
4119
1913f160
DE
41202014-06-04 Doug Evans <xdje42@gmail.com>
4121
4122 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4123
70ad5bff
MM
41242014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4125
4126 * record-btrace.c: Include event-loop.h and inf-loop.h.
4127 (record_btrace_resume_exec_dir)
4128 (record_btrace_async_inferior_event_handler)
4129 (record_btrace_handle_async_inferior_event): New.
4130 (record_btrace_open): Create async event handler.
4131 (record_btrace_close): Delete async event handler.
4132 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4133 Mark async event handler.
4134 (record_btrace_execution_direction): New.
4135 (init_record_btrace_ops): Initialize to_execution_direction.
4136
b6210538
DE
41372014-06-03 Doug Evans <xdje42@gmail.com>
4138
4139 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4140 (gdbscm_make_parameter): Ditto.
4141
a5b1fd27
DE
41422014-06-03 Doug Evans <dje@google.com>
4143
4144 * exec.c (exec_close_1): Call clear_section_table instead of
4145 resize_section_table.
4146 (clear_section_table): New function.
4147 (resize_section_table): Make static. Rename arg num_added to
4148 adjustment.
4149 * exec.h (clear_section_table): Declare.
4150 (resize_section_table): Delete.
4151 * progspace.c (release_program_space): Call clear_section_table
4152 instead of resize_section_table.
4153
0c6e92a5
SC
41542014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4155
4156 * NEWS (Python Scripting): Add entry about the new xmethods
4157 feature.
4158
883964a7
SC
41592014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4160
4161 * python/py-xmethods.c: New file.
4162 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4163 (objfpy_dealloc): XDECREF on the new xmethods field.
4164 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4165 field.
4166 (objfpy_get_xmethods): New function.
4167 (objfile_getset): New entry 'xmethods'.
4168 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4169 (pspy_dealloc): XDECREF on the new xmethods field.
4170 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4171 field.
4172 (pspy_get_xmethods): New function.
4173 (pspace_getset): New entry 'xmethods'.
4174 * python/python-internal.h: Add declarations for new functions.
4175 * python/python.c (_initialize_python): Invoke
4176 gdbpy_initialize_xmethods.
4177 * python/lib/gdb/__init__.py (xmethods): New
4178 attribute.
4179 * python/lib/gdb/xmethod.py: New file.
4180 * python/lib/gdb/command/xmethods.py: New file.
4181
58992dc5
SC
41822014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4183
4184 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4185 best match method returned by find_overload_match is an xmethod.
4186 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4187 the best matching operator returned by find_overload_match is an
4188 xmethod.
4189 * valops.c: #include "extension.h".
4190 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4191 Return void. The list of matching source methods is returned in
4192 "fn_list" and a vector of matching debug method workers is
4193 returned in "xm_worker_vec". Update all callers.
4194 (value_find_oload_method_list): Likewise.
4195 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4196 non-NULL, then the index of the best matching method in this
4197 vector is returned. Update all callers.
4198 (find_overload_match): Include xmethods while performing overload
4199 resolution.
4200
e81e7f5e
SC
42012014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4202
4203 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4204 * extension-priv.h (struct extension_language_ops): Add the
4205 xmethod interface.
4206 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4207 get_matching_xmethod_workers, get_xmethod_argtypes,
4208 invoke_xmethod, free_xmethod_worker,
4209 free_xmethod_worker_vec): New functions.
4210 * extension.h: #include "common/vec.h".
4211 New function declarations.
4212 (struct xmethod_worker): New struct.
4213 (VEC (xmethod_worker_ptr)): New vector type.
4214 (xmethod_worker_ptr): New typedef.
4215 (xmethod_worker_vec): Likewise.
4216 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4217 builtin_type.
4218 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4219 (struct builtin_type): New field "xmethod".
4220 * valarith.c (value_ptradd): Assert that the value argument is not
4221 lval_xcallable.
4222 * valops.c (value_must_coerce_to_target): Return 0 for
4223 lval_xcallable values.
4224 * value.c (struct value): New field XM_WORKER in the field
4225 LOCATION.
4226 (value_address, value_raw_address): Return 0 for lval_xcallable
4227 values.
4228 (set_value_address): Assert that the value is not an
4229 lval_xcallable.
4230 (value_free): Free the associated xmethod worker when freeing
4231 lval_xcallable values.
4232 (set_value_component_location): Assert that the WHOLE value is not
4233 lval_xcallable.
4234 (value_of_xmethod, call_xmethod): New functions.
4235 * value.h: Declare "struct xmethod_worker".
4236 Declare new functions value_of_xmethod, call_xmethod.
4237
ef370185
JB
42382014-06-03 Joel Brobecker <brobecker@adacore.com>
4239 Pedro Alves <palves@redhat.com>
4240
4241 PR breakpoints/17000
4242 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4243 New function, extracted from software_breakpoint_inserted_here_p.
4244 (software_breakpoint_inserted_here_p): Replace factored out code
4245 by call to find_non_raw_software_breakpoint_inserted_here.
4246 (bp_target_info_copy_insertion_state): New function.
4247 (bkpt_insert_location): Handle the case of a single-step
4248 breakpoint already inserted at the same address.
4249 (bkpt_remove_location): Handle the case of a single-step
4250 breakpoint still inserted at the same address.
4251 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4252 breakpoint already inserted at the same address.
4253 (deprecated_remove_raw_breakpoint): Handle the case of a
4254 non-raw breakpoint still inserted at the same address.
4255 (find_single_step_breakpoint): New function, extracted from
4256 single_step_breakpoint_inserted_here_p.
4257 (find_single_step_breakpoint): New function,
4258 factored out from single_step_breakpoint_inserted_here_p.
4259 (single_step_breakpoint_inserted_here_p): Reimplement.
4260
1e2ccb61
BM
42612014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4262
4263 Pushed by Joel Brobecker <brobecker@adacore.com>
4264 * source.c (show_substitute_path_command): Fix display of matching
4265 substitution rules.
4266
d3448d85
GB
42672014-06-03 Gary Benson <gbenson@redhat.com>
4268
4269 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4270
06eb1586
DE
42712014-06-02 Doug Evans <xdje42@gmail.com>
4272
4273 Add parameter support for Guile.
4274 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4275 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4276 (scm-param.o): New rule.
4277 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4278 (gdbscm_misc_error): Declare.
4279 (gdbscm_canonicalize_command_name): Declare.
4280 (gdbscm_scm_to_host_string): Declare.
4281 (gdbscm_scm_from_host_string): Declare.
4282 (gdbscm_initialize_parameters): Declare.
4283 * guile/guile.c (initialize_gdb_module): Call
4284 gdbscm_initialize_parameters.
4285 * guile/lib/gdb.scm: Export parameter symbols.
4286 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4287 cmdscm_canonicalize_name and made public. All callers updated.
4288 * guile/scm-exception.c (gdbscm_misc_error): New function.
4289 * guile/scm-param.c: New file.
4290 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4291 (gdbscm_scm_to_host_string): New function.
4292 (gdbscm_scm_from_host_string): New function.
4293 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4294
e698b8c4
DE
42952014-06-02 Doug Evans <xdje42@gmail.com>
4296
4297 Add command support for Guile.
4298 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4299 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4300 (scm-cmd.o): New rule.
4301 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4302 (gdbscm_user_error_p): Declare.
4303 (gdbscm_parse_command_name): Declare.
4304 (gdbscm_valid_command_class_p): Declare.
4305 (gdbscm_initialize_commands): Declare.
4306 * guile/guile.c (initialize_gdb_module): Call
4307 gdbscm_initialize_commands.
4308 * guile/lib/gdb.scm: Export command symbols.
4309 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4310 (throw-user-error): New function.
4311 * guile/scm-cmd.c: New file.
4312 * guile/scm-exception.c (user_error_symbol): New static global.
4313 (gdbscm_user_error_p): New function.
4314 (gdbscm_initialize_exceptions): Set user_error_symbol.
4315 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4316
fb1f94b0
PM
43172014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4318
4319 * top.c (command_loop): Handle comments here...
4320 (command_line_input): ... not here.
4321
ded03782
DE
43222014-06-02 Doug Evans <xdje42@gmail.com>
4323
4324 Add progspace support for Guile.
4325 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4326 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4327 (scm-progspace.o): New rule.
4328 * guile/guile-internal.h (pspace_smob): New typedef.
4329 (psscm_pspace_smob_pretty_printers): Declare.
4330 (psscm_pspace_smob_from_pspace): Declare.
4331 (psscm_scm_from_pspace): Declare.
4332 * guile/guile.c (initialize_gdb_module): Call
4333 gdbscm_initialize_pspaces.
4334 * guile/lib/gdb.scm: Export progspace symbols.
4335 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4336 support.
4337 (append-pretty-printer!): Ditto.
4338 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4339 Implement.
4340 * guile/scm-progspace.c: New file.
4341
397998fc
AM
43422014-06-03 Alan Modra <amodra@gmail.com>
4343
4344 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4345 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4346
6aa5f3a6
DE
43472014-06-02 Doug Evans <dje@google.com>
4348
4349 Add support for skeletonless type units.
4350 * dwarf2read.c (struct dwarf2_per_objfile): New member
4351 n_allocated_type_units.
4352 (struct dwarf2_per_objfile) <tu_stats>: New member
4353 nr_all_type_units_reallocs.
4354 (create_signatured_type_table_from_index): Initialize
4355 n_allocated_type_units
4356 (create_all_type_units): Ditto.
4357 (add_type_unit): Move up in file. New arg slot.
4358 All callers updated. Increase space for all_type_units more
4359 efficiently.
4360 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4361 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4362 (lookup_dwp_signatured_type): Ditto.
4363 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4364 All callers updated.
4365 (build_type_psymtabs_1): Leave type_unit_groups as
4366 NULL if no TUs present.
4367 (print_tu_stats): New function.
4368 (process_skeletonless_type_unit): New function.
4369 (process_dwo_file_for_skeletonless_type_units): New
4370 function.
4371 (process_skeletonless_type_units): New function.
4372 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4373 Call print tu_stats if debugging enabled.
4374
41fac0cf
PA
43752014-06-02 Pedro Alves <palves@redhat.com>
4376
4377 * breakpoint.c (build_target_command_list): Don't build a command
4378 list if we have any duplicate location that isn't a dprintf.
4379
cd1608cc
PA
43802014-06-02 Pedro Alves <palves@redhat.com>
4381
4382 * breakpoint.c (dprintf_breakpoint_hit): New function.
4383 (initialize_breakpoint_ops): Install it as dprintf's
4384 breakpoint_hit method.
4385
486ef3b9
JB
43862014-06-02 Joel Brobecker <brobecker@adacore.com>
4387
4388 * source.c (substitute_path_rule_matches): Simplify using
4389 filename_ncmp instead of FILENAME_CMP.
4390
230cd560
JB
43912014-06-02 Joel Brobecker <brobecker@adacore.com>
4392
4393 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4394
16954d5d
LC
43952014-06-01 Ludovic Courtès <ludo@gnu.org>
4396
4397 * configure.ac: When Guile is available, check for the
4398 availability of 'scm_new_smob'.
4399 * configure, config.h.in: Regenerate.
4400 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4401 function.
4402
53e8a631
AB
44032014-05-30 Andrew Burgess <aburgess@broadcom.com>
4404
4405 * frame.c (struct frame_info): Add stop_string field.
4406 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4407 (get_prev_frame_always): Old content moved into
4408 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4409 TRY_CATCH, handle MEMORY_ERROR exceptions.
4410 (frame_stop_reason_string): New function definition.
4411 * frame.h (unwind_stop_reason_to_string): Extend comment to
4412 mention frame_stop_reason_string.
4413 (frame_stop_reason_string): New function declaration.
4414 * stack.c (frame_info): Switch to frame_stop_reason_string.
4415 (backtrace_command_1): Switch to frame_stop_reason_string.
4416 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4417 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4418 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4419
70e38b8e
AB
44202014-05-30 Andrew Burgess <aburgess@broadcom.com>
4421
4422 * frame.c (frame_stop_reason_string): Rename to ...
4423 (unwind_stop_reason_to_string): this.
4424 * frame.h (frame_stop_reason_string): Rename to ...
4425 (unwind_stop_reason_to_string): this.
4426 * stack.c (frame_info): Update call to frame_stop_reason_string.
4427 (backtrace_command_1): Likewise.
4428 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4429 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4430
938f0e2f
AB
44312014-05-30 Andrew Burgess <aburgess@broadcom.com>
4432
4433 * frame.c (remove_prev_frame): New function.
4434 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4435 remove_prev_frame.
4436
a09dd441
PA
44372014-05-29 Pedro Alves <palves@redhat.com>
4438
4439 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4440 and make it const. When a single-step decays to a continue,
4441 clear 'step', not 'hw_step'. Pass whether the caller wanted
4442 to step to user_visible_resume_ptid, not what we ask the
4443 target to do.
4444
bdc36728
PA
44452014-05-29 Pedro Alves <palves@redhat.com>
4446
4447 * infrun.c (process_event_stop_test, handle_step_into_function)
4448 (handle_step_into_function_backward): Adjust.
4449 Don't set the even thread's stop_step and call stop_waiting before
4450 calling end_stepping_range. Instead do that ...
4451 (end_stepping_range): ... here. Take an ecs pointer parameter.
4452
22bcd14b
PA
44532014-05-29 Pedro Alves <palves@redhat.com>
4454
4455 * infrun.c (stop_stepping): Rename to ...
4456 (stop_waiting): ... this.
4457 (proceed): Update comment.
4458 (process_event_stop_test, handle_inferior_event)
4459 (handle_signal_stop, handle_step_into_function)
4460 (handle_step_into_function_backward): Update.
4461
4ae57c05
PA
44622014-05-29 Pedro Alves <palves@redhat.com>
4463
4464 * infcall.c (run_inferior_call): Don't check whether the current
4465 thread is running after the proceed call.
4466
329ea579
PA
44672014-05-29 Pedro Alves <palves@redhat.com>
4468 Tom Tromey <tromey@redhat.com>
4469
4470 * NEWS: Mention "maint set target-async", "set mi-async", and that
4471 background execution commands are now always available.
4472 * target.h (target_async_permitted): Update comment.
4473 * target.c (target_async_permitted, target_async_permitted_1):
4474 Default to 1.
4475 (set_target_async_command): Rename to ...
4476 (maint_set_target_async_command): ... this.
4477 (show_target_async_command): Rename to ...
4478 (maint_show_target_async_command): ... this.
4479 (_initialize_target): Adjust.
4480 * infcmd.c (prepare_execution_command): Make extern.
4481 * inferior.h (prepare_execution_command): Declare.
4482 * infrun.c (set_observer_mode): Leave target async alone.
4483 * mi/mi-interp.c (mi_interpreter_init): Install
4484 mi_on_sync_execution_done as sync_execution_done observer.
4485 (mi_on_sync_execution_done): New function.
4486 (mi_execute_command_input_handler): Don't print the prompt if we
4487 just started a synchronous command with an async target.
4488 (mi_on_resume): Check sync_execution before printing prompt.
4489 * mi/mi-main.h (mi_async_p): Declare.
4490 * mi/mi-main.c: Include gdbcmd.h.
4491 (mi_async_p): New function.
4492 (mi_async, mi_async_1): New globals.
4493 (set_mi_async_command, show_mi_async_command, mi_async): New
4494 functions.
4495 (exec_continue): Call prepare_execution_command.
4496 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4497 (mi_execute_async_cli_command): Use mi_async_p.
4498 (_initialize_mi_main): Install "set mi-async". Make
4499 "target-async" a deprecated alias.
4500
92bcb5f9
PA
45012014-05-29 Pedro Alves <palves@redhat.com>
4502
4503 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4504 (_initialize_cli_interp): Adjust.
4505 * event-loop.c: Include "observer.h".
4506 (start_event_loop): Notify 'command_error' observers instead of
4507 calling display_gdb_prompt. Remove FIXME comment.
4508 * event-top.c (display_gdb_prompt): Remove call into the
4509 interpreters.
4510 * inf-loop.c: Include "observer.h".
4511 (inferior_event_handler): Notify 'command_error' observers instead
4512 of calling display_gdb_prompt.
4513 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4514 observers instead of calling display_gdb_prompt.
4515 * interps.c (interp_set): Don't call display_gdb_prompt.
4516 (current_interp_display_prompt_p): Delete.
4517 * interps.h (interp_prompt_p): Delete declaration.
4518 (interp_prompt_p_ftype): Delete.
4519 (struct interp_procs) <prompt_proc_p>: Delete field.
4520 (current_interp_display_prompt_p): Delete declaration.
4521 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4522 (_initialize_mi_interp): Adjust.
4523 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4524 'command_error' observers.
4525 (tui_on_sync_execution_done, tui_on_command_error): New
4526 functions.
4527 (tui_display_prompt_p): Delete.
4528 (_initialize_tui_interp): Adjust.
4529
fd664c91
PA
45302014-05-29 Pedro Alves <palves@redhat.com>
4531
4532 PR gdb/13860
4533 * cli/cli-interp.c: Include infrun.h and observer.h.
4534 (cli_uiout, cli_interp): New globals.
4535 (cli_on_signal_received, cli_on_end_stepping_range)
4536 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4537 functions.
4538 (cli_interpreter_init): Install them as 'end_stepping_range',
4539 'signal_received' 'signal_exited', 'exited' and 'no_history'
4540 observers.
4541 (_initialize_cli_interp): Remove cli_interp local.
4542 * infrun.c (handle_inferior_event): Call the several stop reason
4543 observers instead of printing the stop reason directly.
4544 (end_stepping_range): New function.
4545 (print_end_stepping_range_reason, print_signal_exited_reason)
4546 (print_exited_reason, print_signal_received_reason)
4547 (print_no_history_reason): Make static, and add an uiout
4548 parameter. Print to that instead of to CURRENT_UIOUT.
4549 * infrun.h (print_end_stepping_range_reason)
4550 (print_signal_exited_reason, print_exited_reason)
4551 (print_signal_received_reason print_no_history_reason): New
4552 declarations.
4553 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4554 'mi_uiout'.
4555 <cli_uiout>: New field.
4556 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4557 uiout for CLI output. Install 'signal_received',
4558 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4559 observers.
4560 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4561 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4562 (mi_on_no_history): New functions.
4563 (ui_out_free_cleanup): Delete function.
4564 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4565 instead use the one already stored in the MI interpreter data.
4566 (mi_ui_out): Adjust.
4567 * tui/tui-interp.c: Include infrun.h and observer.h.
4568 (tui_interp): New global.
4569 (tui_on_signal_received, tui_on_end_stepping_range)
4570 (tui_on_signal_exited, tui_on_exited)
4571 (tui_on_no_history): New functions.
4572 (tui_init): Install them as 'end_stepping_range',
4573 'signal_received' 'signal_exited', 'exited' and 'no_history'
4574 observers.
4575 (_initialize_tui_interp): Delete tui_interp local.
4576
8817a6f2
PA
45772014-05-29 Pedro Alves <palves@redhat.com>
4578
4579 PR gdb/15713
4580 * linux-nat.c (linux_nat_resume_callback): Rename the second
4581 parameter to 'except'. Skip LP if it points to EXCEPT.
4582 (linux_nat_resume): Don't mark the event lwp as not stopped
4583 before resuming sibling lwps. Instead ask
4584 linux_nat_resume_callback to skip the event lwp. Mark it as not
4585 stopped after actually resuming it.
4586 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4587 resuming it.
4588 (wait_lwp): Mark the lwp as stopped here.
4589 (stop_wait_callback): Mark the lwp as not stopped right after
4590 resuming it. Don't mark lwps as stopped here.
4591 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4592 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4593
251bde03
PA
45942014-05-29 Pedro Alves <palves@redhat.com>
4595
4596 PR PR15693
4597 * infrun.c (resume): Determine how much to resume depending on
4598 whether the caller wanted a step, not whether we can hardware step
4599 the target. Mark all threads that we intend to run as running,
4600 unless we're calling an inferior function.
4601 (normal_stop): If the thread is running an infcall, don't finish
4602 thread state.
4603 * target.c (target_resume): Don't mark threads as running here.
4604
7f3c0343
JB
46052014-05-28 Joel Brobecker <brobecker@adacore.com>
4606
4607 * serial.c (_initialize_serial): Remove support for
4608 the "set remotebaud" and "show remotebaud" commands.
4609 * NEWS: Add entry documenting the removal of that command.
4610
ee34b3f9
YQ
46112014-05-28 Yao Qi <yao@codesourcery.com>
4612
4613 * charset.c: Fix typo in comments.
4614
add6c04d
GB
46152014-05-27 Gary Benson <gbenson@redhat.com>
4616
4617 * utils.c (internal_vproblem): Prompt for a bug report.
4618
92c48fc5
AW
46192014-05-26 Andy Wingo <wingo@igalia.com>
4620
4621 * guile/scm-arch.c (arscm_mark_arch_smob):
4622 * guile/scm-block.c (bkscm_mark_block_smob)
4623 (bkscm_mark_block_syms_progress_smob):
4624 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4625 * guile/scm-exception.c (exscm_mark_exception_smob):
4626 * guile/scm-frame.c (frscm_mark_frame_smob):
4627 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4628 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4629 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4630 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4631 (ppscm_mark_pretty_printer_worker_smob):
4632 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4633 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4634 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4635 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4636 mark functions.
4637 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4638 function.
4639
b2715b27
AW
46402014-05-26 Andy Wingo <wingo@igalia.com>
4641 Doug Evans <xdje42@gmail.com>
4642
4643 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4644 empty_base_class. All uses updated.
4645 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4646 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4647 Adapt all callers.
4648 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4649 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4650 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4651 (gdbscm_gsmob_has_property_p, add_property_name)
4652 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4653 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4654 (gdb-object-has-property?, gdb-object-properties): Remove.
4655 (gdb-object-kind): Renamed from gsmob-kind.
4656
214ab2da
AW
46572014-05-26 Andy Wingo <wingo@igalia.com>
4658
4659 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4660 * configure: Regenerate.
4661
589fdceb
MM
46622014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4663
4664 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4665
67b5c0c1
MM
46662014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4667
4668 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4669 (replay_memory_access_read_only, replay_memory_access_read_write)
4670 (replay_memory_access_types, replay_memory_access)
4671 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4672 (cmd_set_record_btrace, cmd_show_record_btrace)
4673 (cmd_show_replay_memory_access): New.
4674 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4675 (record_btrace_remove_breakpoint): Replace
4676 record_btrace_allow_memory_access with replay_memory_access.
4677 (_initialize_record_btrace): Add commands.
4678 * NEWS: Announce it.
4679
036cd381
RR
46802014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4681
4682 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4683
c77c1e42
RR
46842014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4685
4686 * MAINTAINERS (Write After Approval): Move self back from
4687 paper trail.
4688
45741a9c
PA
46892014-05-22 Pedro Alves <palves@redhat.com>
4690
4691 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4692 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4693 (disable_randomization, enum exec_direction_kind)
4694 (execution_direction, stop_registers, start_remote)
4695 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4696 (wait_for_inferior, normal_stop, get_last_target_status)
4697 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4698 (insert_step_resume_breakpoint_at_sal)
4699 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4700 (set_step_info, print_stop_event, signal_stop_state)
4701 (signal_print_state, signal_pass_state, signal_stop_update)
4702 (signal_print_update, signal_pass_update)
4703 (update_signals_program_target, clear_exit_convenience_vars)
4704 (displaced_step_dump_bytes, update_observer_mode)
4705 (signal_catch_update, gdb_signal_from_command): Move
4706 declarations ...
4707 * infrun.h: ... to this new file.
4708 * amd64-tdep.c: Include infrun.h.
4709 * annotate.c: Include infrun.h.
4710 * arch-utils.c: Include infrun.h.
4711 * arm-linux-tdep.c: Include infrun.h.
4712 * arm-tdep.c: Include infrun.h.
4713 * break-catch-sig.c: Include infrun.h.
4714 * breakpoint.c: Include infrun.h.
4715 * common/agent.c: Include infrun.h instead of inferior.h.
4716 * corelow.c: Include infrun.h.
4717 * event-top.c: Include infrun.h.
4718 * go32-nat.c: Include infrun.h.
4719 * i386-tdep.c: Include infrun.h.
4720 * inf-loop.c: Include infrun.h.
4721 * infcall.c: Include infrun.h.
4722 * infcmd.c: Include infrun.h.
4723 * infrun.c: Include infrun.h.
4724 * linux-fork.c: Include infrun.h.
4725 * linux-nat.c: Include infrun.h.
4726 * linux-thread-db.c: Include infrun.h.
4727 * monitor.c: Include infrun.h.
4728 * nto-tdep.c: Include infrun.h.
4729 * procfs.c: Include infrun.h.
4730 * record-btrace.c: Include infrun.h.
4731 * record-full.c: Include infrun.h.
4732 * remote-m32r-sdi.c: Include infrun.h.
4733 * remote-mips.c: Include infrun.h.
4734 * remote-notif.c: Include infrun.h.
4735 * remote-sim.c: Include infrun.h.
4736 * remote.c: Include infrun.h.
4737 * reverse.c: Include infrun.h.
4738 * rs6000-tdep.c: Include infrun.h.
4739 * s390-linux-tdep.c: Include infrun.h.
4740 * solib-irix.c: Include infrun.h.
4741 * solib-osf.c: Include infrun.h.
4742 * solib-svr4.c: Include infrun.h.
4743 * target.c: Include infrun.h.
4744 * top.c: Include infrun.h.
4745 * windows-nat.c: Include infrun.h.
4746 * mi/mi-interp.c: Include infrun.h.
4747 * mi/mi-main.c: Include infrun.h.
4748 * python/py-threadevent.c: Include infrun.h.
4749
98eb56a4
PA
47502014-05-22 Pedro Alves <palves@redhat.com>
4751
4752 * infrun.c (handle_inferior_event): Store the exit code for
4753 --return-child-result here, instead of ...
4754 (print_exited_reason): ... here.
4755
17b2616c
PA
47562014-05-21 Pedro Alves <palves@redhat.com>
4757
4758 PR gdb/13860
4759 * gdbthread.h (struct thread_control_state): New field
4760 `command_interp'.
4761 * infrun.c (follow_fork): Copy the new thread control field to the
4762 child fork thread.
4763 (clear_proceed_status_thread): Clear the new thread control field.
4764 (proceed): Set the new thread control field.
4765 * interps.h (command_interp): Declare.
4766 * interps.c (command_interpreter): New global.
4767 (command_interp): New function.
4768 (interp_exec): Set `command_interpreter' while here.
4769 * cli-out.c (cli_uiout_dtor): New function.
4770 (cli_ui_out_impl): Install it.
4771 * mi/mi-interp.c: Include cli-out.h.
4772 (mi_cmd_interpreter_exec): Add comment.
4773 (restore_current_uiout_cleanup): New function.
4774 (ui_out_free_cleanup): New function.
4775 (mi_on_normal_stop): If finishing an execution command started by
4776 a CLI command, or any kind of breakpoint-like event triggered,
4777 print the stop event to the output (CLI) stream.
4778 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4779
5166082f
PA
47802014-05-21 Pedro Alves <palves@redhat.com>
4781
4782 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4783 current source line having changed.
4784 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4785 * infrun.c (normal_stop): Adjust call to
4786 set_current_sal_from_frame.
4787 * source.c (clear_lines_listed_range): New function.
4788 (set_current_source_symtab_and_line, identify_source_line): Clear
4789 the lines listed range.
4790 (line_info): Handle the first "info line" after the current source
4791 line having changed.
4792 * stack.c (print_stack_frame): Remove center handling.
4793 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4794 center sal.line.
4795
c1ee2fb3
PA
47962014-05-21 Pedro Alves <palves@redhat.com>
4797
4798 * inf-child.c (inf_child_mourn_inferior): New function.
4799 * inf-child.h (inf_child_mourn_inferior): New declaration.
4800 * darwin-nat.c (darwin_mourn_inferior): Use
4801 inf_child_mourn_inferior.
4802 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4803 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4804 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4805 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4806 * windows-nat.c (windows_mourn_inferior): Likewise.
4807
5c6d4fb2
DE
48082014-05-21 Doug Evans <xdje42@gmail.com>
4809
250748cb 4810 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4811
4a2722c5
DE
48122014-05-21 Doug Evans <xdje42@gmail.com>
4813
17292b30 4814 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4815 (gdbscm_out_of_range_error): Ditto.
4816 (gdbscm_memory_error): Ditto.
250748cb
DE
4817 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4818 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4819 (gdbscm_out_of_range_error): Update.
4820 (gdbscm_memory_error): Update.
4821 (gdbscm_scm_to_target_string_unsafe): Delete.
4822
6a3cb8e8
PA
48232014-05-21 Pedro Alves <palves@redhat.com>
4824
4825 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4826 globals.
4827 (inf_child_open_target): New function.
4828 (inf_child_open): Use inf_child_open_target to push the target
4829 instead of erroring out.
4830 (inf_child_disconnect, inf_child_close)
4831 (inf_child_maybe_unpush_target): New functions.
4832 (inf_child_target): Install inf_child_disconnect and
4833 inf_child_close. Store a pointer to the returned object.
4834 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4835 declarations.
4836 * target.c (auto_connect_native_target): New global.
4837 (show_default_run_target): New function.
4838 (find_default_run_target): Return NULL if automatically connecting
4839 to the native target is disabled.
4840 (_initialize_target): Install set/show auto-connect-native-target.
4841 * NEWS: Mention "set auto-connect-native-target", and "target
4842 native".
4843 * linux-nat.c (super_close): New global.
4844 (linux_nat_close): Call super_close.
4845 (linux_nat_add_target): Store a pointer to the base class's
4846 to_close method.
4847 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4848 inf_child_maybe_unpush.
4849 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4850 already pushed.
4851 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4852 the inferior. Use inf_child_maybe_unpush_target.
4853 (inf_ttrace_attach): Don't push the target if it is already
4854 pushed.
4855 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4856 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4857 after mourning the inferior. Use inf_child_maybe_unpush_target.
4858 (darwin_attach_pid): Don't push the target if it is already
4859 pushed.
4860 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4861 mourning the inferior. Use inf_child_maybe_unpush_target.
4862 (gnu_detach): Use inf_child_maybe_unpush_target.
4863 * go32-nat.c (go32_create_inferior): Don't push the target if it
4864 is already pushed.
4865 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4866 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4867 (procfs_open): Rename to ...
4868 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4869 comments. Can target_preopen before changing node. Call
4870 inf_child_open_target to push the target explicitly.
4871 (procfs_attach): Don't push the target if it is already pushed.
4872 (procfs_detach): Use inf_child_maybe_unpush_target.
4873 (procfs_create_inferior): Don't push the target if it is already
4874 pushed.
4875 (nto_native_ops): New global.
4876 (procfs_open): Reimplement.
4877 (procfs_native_open): New function.
4878 (init_procfs_targets): Install procfs_native_open as to_open of
4879 "target native". Store a pointer to the "native" target in
4880 nto_native_ops.
4881 * procfs.c (procfs_attach): Don't push the target if it is already
4882 pushed.
4883 (procfs_detach): Use inf_child_maybe_unpush_target.
4884 (procfs_mourn_inferior): Only unpush the target after mourning the
4885 inferior. Use inf_child_maybe_unpush_target.
4886 (procfs_init_inferior): Don't push the target if it is already
4887 pushed.
4888 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4889 if it is already pushed.
4890
930ee1b1
PA
48912014-05-21 Pedro Alves <palves@redhat.com>
4892
4893 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4894 and "procfs" targets are now called "native" instead.
4895
1f5d1b13
PA
48962014-05-21 Pedro Alves <palves@redhat.com>
4897
4898 * go32-nat.c (go32_open): Delete.
4899 (go32_target): Don't override the to_open method.
4900
132f8e03
PA
49012014-05-21 Pedro Alves <palves@redhat.com>
4902
4903 * nto-procfs.c (procfs_can_run): New function.
4904 (nto_procfs_ops): New global.
4905 (init_procfs_targets): New, based on procfs_target. Install
4906 "target native" in addition to "target procfs".
4907 (_initialize_procfs): Call init_procfs_targets instead of adding
4908 the target here.
4909
03c136c3
PA
49102014-05-21 Pedro Alves <palves@redhat.com>
4911
4912 * windows-nat.c (windows_target): Don't override to_shortname,
4913 to_longname or to_doc.
4914
a635d0f3
PA
49152014-05-21 Pedro Alves <palves@redhat.com>
4916
4917 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4918 to_doc.
4919
4f9b5133
PA
49202014-05-21 Pedro Alves <palves@redhat.com>
4921
4922 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4923 to_shortname, to_longname or to_doc.
4924
bc85afde
PA
49252014-05-21 Pedro Alves <palves@redhat.com>
4926
4927 * go32-nat.c (go32_target): Don't override to_shortname,
4928 to_longname or to_doc.
4929
4ebfc96e
PA
49302014-05-21 Pedro Alves <palves@redhat.com>
4931
4932 * inf-child.c (inf_child_open): Remove mention of "child".
4933 (inf_child_target): Rename target to "native" instead of "child".
4934
2648dfed
AA
49352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4936
4937 * Makefile.in (SFILES): Delete "regset.c".
4938 (COMMON_OBS): Delete "regset.o".
4939 * regset.c: Remove.
4940 * regset.h (regset_alloc): Delete prototype.
4941
b13feb94
AA
49422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4943
4944 * sparc-linux-tdep.c (sparc32_linux_gregset)
4945 (sparc32_linux_fpregset): New static regset structures.
4946 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4947 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4948 'fpregset' fields.
4949 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4950 (sparc64_linux_fpregset): New static regset structures.
4951 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4952 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4953 New static regset structures.
4954 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4955 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4956 New static regset structures.
4957 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4958 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4959 New static regset structures.
4960 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4961 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4962 New static regset structures.
4963 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4964
b4fd25c9
AA
49652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4966
4967 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4968 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4969 register maps ("regmaps") from "*regset" to "*regmap". Do this
4970 for all regmap types and variables.
4971 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4972 (sparc32_linux_supply_core_gregset)
4973 (sparc32_linux_collect_core_gregset)
4974 (sparc32_linux_supply_core_fpregset)
4975 (sparc32_linux_collect_core_fpregset): Likewise.
4976 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4977 (sparc_gregmap, sparc_fpregmap): ... these.
4978 (sparc_supply_gregset, sparc_collect_gregset)
4979 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4980 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4981 (_initialize_sparc_nat): Rename regmaps.
4982 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4983 (sparc_gregmap, sparc_fpregmap): ... these.
4984 (sparc_supply_gregset, sparc_collect_gregset)
4985 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4986 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4987 Rename macros to...
4988 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4989 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4990 Likewise.
4991 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4992 Rename to...
4993 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4994 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4995 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4996 regmaps.
4997 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4998 (sparc32_bsd_fpregset): Rename to...
4999 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5000 (sparc32_bsd_fpregmap): ... these.
5001 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5002 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5003 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5004 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5005 (struct sparc_gregmap, struct sparc_fpregmap)
5006 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5007 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5008 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5009 (sparc32_supply_regset, sparc32_collect_gregset)
5010 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5011 prototypes.
5012 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5013 (sparc64_linux_ptrace_gregmap): ... this.
5014 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5015 (_initialize_sparc64_linux_nat): Rename regmaps.
5016 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5017 (sparc64_linux_core_gregmap): ... this.
5018 (sparc64_linux_supply_core_gregset)
5019 (sparc64_linux_collect_core_gregset)
5020 (sparc64_linux_supply_core_fpregset)
5021 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5022 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5023 (sparc64_sol2_fpregset): Rename to...
5024 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5025 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5026 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5027 regmaps.
5028 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5029 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5030 (sparc64_bsd_fpregset): Rename to...
5031 (struct sparc_gregmap, sparc64_sol2_gregmap)
5032 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5033 (sparc64_bsd_fpregmap): ... these.
5034 (sparc64_supply_gregset, sparc64_collect_gregset)
5035 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5036 prototypes.
5037 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5038 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5039 (sparc64fbsd_gregmap): ... this.
5040 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5041 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5042 Rename regmaps.
5043 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5044 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5045 (sparc64nbsd_collect_fpregset): Likewise.
5046 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5047 (sparc64nbsd_gregmap): ... this.
5048 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5049 regmaps.
5050 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5051 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5052 (sparc64obsd_gregmap): ... this.
5053 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5054 regmaps.
5055 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5056 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5057 (sparc32nbsd_gregmap): ... this.
5058 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5059 regmaps.
5060
8fea3224
AA
50612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5062
5063 * score-tdep.c (score7_linux_gregset): New static regset
5064 structure.
5065 (score7_linux_regset_from_core_section): Remove dynamic regset
5066 allocation.
5067 (score_gdbarch_init): Drop allocation of tdep structure.
5068 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5069
24534243
AA
50702014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5071
5072 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5073 regset structures.
5074 (am33_regset_from_core_section): Remove dynamic regset
5075 allocations.
5076
b7195f27
AA
50772014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5078
5079 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5080 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5081 structures.
5082 (mips_linux_regset_from_core_section): Remove dynamic regset
5083 allocations.
5084 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5085 'gregset64', 'fpregset', and 'fpregset64'.
5086 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5087 deleted tdep fields.
5088
ecc37a5a
AA
50892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5090
5091 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5092 regset structures.
5093 (amd64_regset_from_core_section): Remove dynamic regset
5094 allocations.
5095 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5096 structure.
5097 (amd64obsd_regset_from_core_section): Remove dynamic regset
5098 allocation.
5099 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5100 Likewise.
5101 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5102 x86-common regset supply function.
5103 * i386-tdep.c (i386_collect_gregset): Make static.
5104 (i386_gregset): New global regset structure.
5105 (i386_fpregset, i386_xstateregset): New static regset structures.
5106 (i386_regset_from_core_section): Remove dynamic regset
5107 allocations.
5108 (i386_gdbarch_init): Remove initialization of tdep fields
5109 'gregset', 'fpregset', and 'xstateregset'.
5110 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5111 'fpregset', and 'xstateregset'.
5112 (i386_collect_gregset): Remove prototype.
5113 (i386_gregset): New declaration.
5114 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5115 structure.
5116 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5117 allocation.
5118
b7611c43
AA
51192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5120
5121 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5122 (arm_linux_vfpregset): New static regset structures.
5123 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5124 regset structures.
5125 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5126 and 'vfpregset' fields.
5127
a069a2bd
AA
51282014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5129
5130 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5131 (aarch64_linux_fpregset): New static regset structures.
5132 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5133 of regset structures.
5134 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5135 'fpregset' fields.
5136
09424cff
AA
51372014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5138
5139 * regset.h (struct regset): Remove gdbarch field.
5140 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5141 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5142 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5143 Likewise.
5144 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5145 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5146 (ppc32_linux_vsxregset): Likewise.
5147 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5148 via the regcache instead of the regset.
5149 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5150 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5151 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5152 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5153 Likewise.
5154
3ca7dae4
AA
51552014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5156
5157 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5158 Constify structures.
5159 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5160 (alphanbsd_aout_gregset): Likewise.
5161 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5162 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5163 Likewise.
5164 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5165 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5166 Likewise.
5167 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5168 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5169 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5170 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5171 * m88k-tdep.c (m88k_gregset): Likewise.
5172 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5173 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5174 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5175 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5176 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5177 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5178 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5179 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5180 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5181 Likewise.
5182 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5183 * sh-tdep.h (sh_corefile_gregset): Likewise.
5184 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5185 * vax-tdep.c (vax_gregset): Likewise.
5186
5876f503
JK
51872014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5188
5189 Fix TLS access for -static -pthread.
5190 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5191 (try_thread_db_load_1): Initialize it.
5192 (thread_db_get_thread_local_address): Call it if LM is zero.
5193 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5194 * target.h (struct target_ops) (to_get_thread_local_address): Add
5195 load_module_addr comment.
5196
0256a6ac
PA
51972014-05-21 Pedro Alves <palves@redhat.com>
5198
5199 * dcache.c (dcache_read_memory_partial): If reading the cache line
5200 fails, fallback to reading just the memory the caller wanted.
5201
227533ac
DE
52022014-05-20 Doug Evans <dje@google.com>
5203
5204 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5205 instead of get_current_arch.
5206
936d2992
PA
52072014-05-20 Pedro Alves <palves@redhat.com>
5208
5209 * NEWS: Mention that compare-sections now works with all targets.
5210
5211 * remote.c (PACKET_qCRC): New enum value.
5212 (remote_verify_memory): Don't send qCRC if the target has no
5213 execution. Use packet_support/packet_ok. If the target doesn't
5214 support the qCRC packet, fallback to a deep memory copy.
5215 (compare_sections_command): Say "target image" instead of "remote
5216 executable".
5217 (_initialize_remote): Add PACKET_qCRC to the list of config
5218 packets that have no associated command. Extend comment.
5219 * target.c (simple_verify_memory, default_verify_memory): New
5220 function.
5221 * target.h (struct target_ops) <to_verify_memory>: Default to
5222 default_verify_memory.
5223 (simple_verify_memory): New declaration.
5224 * target-delegates.c: Regenerate.
5225
e59fa00f
MM
52262014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5227
5228 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5229
f2205de0
HZ
52302014-05-20 Hui Zhu <hui@codesourcery.com>
5231 Yao Qi <yao@codesourcery.com>
5232
5233 PR backtrace/16558
5234 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5235 and change address of sp and pc.
5236
c4e54771
TT
52372014-05-19 Tom Tromey <tromey@redhat.com>
5238
5239 * gdbtypes.c (rank_function): Use XNEWVEC.
5240 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5241
73051182
DE
52422014-05-19 Doug Evans <dje@google.com>
5243
5244 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5245 build_type_unit_groups and moved closer to only caller. Remove
5246 arguments. All references updated. Remove outdated .gdb_index
5247 comment.
5248 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5249 build_type_psymtabs_1.
5250
8832e7e3
DE
52512014-05-19 Doug Evans <dje@google.com>
5252
5253 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5254 n_type_unit_groups, all_type_unit_groups. All uses removed.
5255 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5256 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5257 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5258 (add_type_unit_group_to_table): Delete.
5259
cd8ae15e
DE
52602014-05-19 Doug Evans <dje@google.com>
5261
5262 * eval.c (evaluate_subexp_standard): Add some comments.
5263
08f4850b
DE
52642014-05-17 Doug Evans <xdje42@gmail.com>
5265
5266 * progspace.c (remove_program_space): Delete, unused.
5267 * progspace.h (remove_program_space): Ditto.
5268
bed8455c
DE
52692014-05-17 Doug Evans <xdje42@gmail.com>
5270
5271 * inferior.c (prune_inferiors): Fix comment.
5272 (remove_inferior_command): Call prune_program_spaces.
5273
8d551b02
DE
52742014-05-16 Doug Evans <dje@google.com>
5275
5276 New command line option -D.
5277 * NEWS: Mention it.
5278 * main.c (set_gdb_data_directory): New function.
5279 (captured_main): Recognize -D. Flag error for --data-directory "".
5280 Call set_gdb_data_directory.
5281 (print_gdb_help): Print --data-directory, -D.
5282 * main.h (set_gdb_data_directory): Declare.
5283 * top.c (staged_gdb_datadir): New static global.
5284 (set_gdb_datadir): Call set_gdb_data_directory
5285 (show_gdb_datadir): New function.
5286 (init_main): Update init of data-directory parameter.
5287
18848e28
GF
52882014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5289
5290 Import the "dirfd" gnulib module.
5291 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5292 * gnulib/aclocal.m4: Update.
5293 * gnulib/config.in: Update.
5294 * gnulib/configure: Update.
5295 * gnulib/import/Makefile.am: Update.
5296 * gnulib/import/Makefile.in: Update.
5297 * gnulib/import/dirfd.c: New.
5298 * gnulib/import/m4/dirfd.m4: New.
5299 * gnulib/import/m4/gnulib-cache.m4: Update.
5300 * gnulib/import/m4/gnulib-comp.m4: Update.
5301
95c64f92
YQ
53022014-05-16 Pierre Muller <muller@sourceware.org>
5303 Yao Qi <yao@codesourcery.com>
5304
5305 * valprint.c (print_wchar): Move the code on checking whether
5306 W is a printable wide char to the default branch of switch
5307 statement below. Call wchar_printable instead of gdb_iswprint.
5308
cac395ea
TM
53092014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5310
19679eca 5311 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5312 ldr.w and ldrd instructions.
5313
83655187
DE
53142014-05-15 Doug Evans <dje@google.com>
5315
5316 * dwarf2read.c (read_structure_type): Delete outdated comments.
5317
dd756689
TT
53182014-05-14 Tom Tromey <tromey@redhat.com>
5319
5320 * macrocmd.c (print_macro_definition): Reindent.
5321
75ddda77
DE
53222014-05-13 Doug Evans <xdje42@gmail.com>
5323
5324 * python/py-cmd.c (cmdpy_completer): Add comment.
5325 (completers): Make const.
5326
b0f16a3e
SM
53272014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5328
5329 * infrun.c (resume): Remove should_resume (unused). Move up
5330 declaration of resume_ptid.
5331
033c3379
TT
53322014-05-13 Tom Tromey <tromey@redhat.com>
5333
5334 * language.h (unop_type_check): Remove.
5335 (binop_type_check): Don't declare.
5336
9b44a3a5
AA
53372014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5338
5339 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5340 call to regcache_raw_collect.
5341
303a33fa
SM
53422014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5343
5344 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5345 mi_console->quote as the quoting character.
5346
196100a0
SM
53472014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5348
5349 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5350
f989a1c8
TT
53512014-04-29 Tom Tromey <tromey@redhat.com>
5352
5353 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5354 "show debug varobj".
5355
9404b58f
KM
53562014-05-07 Kyle McMartin <kyle@redhat.com>
5357
5358 Pushed by Joel Brobecker <brobecker@adacore.com>.
5359 * aarch64-tdep.c (aarch64_software_single_step): New function.
5360 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5361 with aarch64_software_single_step.
5362
5e49ba57
JB
53632014-05-05 Joel Brobecker <brobecker@adacore.com>
5364
5365 GDB 7.7.1 released.
5366
c888a17d
KS
53672014-05-05 Keith Seitz <keiths@redhat.com>
5368
5369 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5370 variable or history value is successfully parsed.
5371
290a839c
YQ
53722014-05-05 Yao Qi <yao@codesourcery.com>
5373 Pedro Alves <palves@redhat.com>
5374
5375 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5376 address of blocks that intersects the requested range. Trim
5377 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5378 sections.
5379 * ctf.c (ctf_xfer_partial): Likewise.
5380
91256dc2
YQ
53812014-05-05 Yao Qi <yao@codesourcery.com>
5382
5383 * printcmd.c (display_command): Remove the check to
5384 target_has_execution.
5385
07284463
MK
53862014-05-03 Mark Kettenis <kettenis@gnu.org>
5387
5388 * ppcobsd-nat.c: Include "obsd-nat.h".
5389 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5390 add_target.
5391 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5392
30a1e6cc
SDJ
53932014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5394
5395 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5396 and 16-bit signed and unsigned arguments. Update comment.
5397 (stap_parse_probe_arguments): Extend code to handle such
5398 arguments. Use warning instead of complaint to notify about
5399 unrecognized bitness.
5400
f33da99a
SDJ
54012014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5402
5403 PR breakpoints/16889
5404 * stap-probe.c (stap_parse_probe_arguments): Simplify
5405 check for non-prefixed probes (i.e., probes whose
5406 arguments do not start with "N@"). Always set the
5407 argument type to a sane value.
5408
95cf3b38
DT
54092014-05-01 David Taylor <dtaylor@emc.com>
5410
5411 * remote.c (compare_sections_command): Add -r option to compare
5412 all loadable read-only sections.
5413
1cfdf534
SC
54142014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5415
5416 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5417 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5418 Update all callers.
5419 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5420 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5421 Remove unused CORE_ADDR argument. Update all callers.
5422
ca4f7f8b
PA
54232014-04-29 Pedro Alves <palves@redhat.com>
5424
5425 * remote.c (struct packet_config) <detect>: Extend comment.
5426 (add_packet_config_cmd): Don't set the config's detect or support
5427 fields here.
5428 (init_all_packet_configs): Also initialize the config's 'detect'
5429 field.
5430 (reset_all_packet_configs_support): New function.
5431 (remote_open_1): Call reset_all_packet_configs_support instead of
5432 init_all_packet_configs.
5433 (_initialize_remote): Initialize all packet configs. Assert that
5434 all packets have an associated command, except a few known
5435 outliers.
5436
11c1ba78
JB
54372014-04-28 Joel Brobecker <brobecker@adacore.com>
5438
5439 * dwarf2read.c (read_subrange_type): Handle dynamic
5440 DW_AT_lower_bound attributes.
5441
8739bc53
JB
54422014-04-28 Joel Brobecker <brobecker@adacore.com>
5443
5444 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5445 dynamic bounds before computing its upper bound.
5446 (ada_discrete_type_low_bound): Same as above with the lower bound.
5447
6f8a3220
JB
54482014-04-28 Joel Brobecker <brobecker@adacore.com>
5449
5450 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5451 range types. Adjust the array handling implementation to
5452 take advantage of this change.
5453 (resolve_dynamic_range): New function, mostly extracted from
5454 resolve_dynamic_bounds.
5455 (resolve_dynamic_array): New function, mostly extracted from
5456 resolve_dynamic_bounds.
5457 (resolve_dynamic_bounds): Delete.
5458 (resolve_dynamic_type): Reimplement. Add handling of
5459 TYPE_CODE_RANGE types.
5460
4d072ce4
JB
54612014-04-28 Joel Brobecker <brobecker@adacore.com>
5462
5463 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5464 handling of parallel ___XA types.
5465
52865325
JB
54662014-04-28 Joel Brobecker <brobecker@adacore.com>
5467
5468 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5469 unnecessary second call to static_unwrap_type.
5470
433e77fa
HZ
54712014-04-27 Hui Zhu <hui@codesourcery.com>
5472
5473 * stack.c (print_frame_info): Call do_gdb_disassembly with
5474 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5475
b51a69ee
DE
54762014-04-26 Doug Evans <xdje42@gmail.com>
5477
5478 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5479
7ae1a6a6
PA
54802014-04-25 Pedro Alves <palves@redhat.com>
5481
5482 PR server/16255
5483 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5484 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5485 and newline from built string.
5486 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5487 (linux_ptrace_attach_fail_reason): ... this.
5488 * linux-nat.c (linux_nat_attach): Adjust to use
5489 linux_ptrace_attach_fail_reason.
5490
4082afcc
PA
54912014-04-25 Pedro Alves <palves@redhat.com>
5492
5493 * remote.c (struct remote_state): Remove multi_process_aware,
5494 non_stop_aware, cond_tracepoints, cond_breakpoints,
5495 breakpoint_commands, fast_tracepoints, static_tracepoints,
5496 install_in_trace, disconnected_tracing,
5497 enable_disable_tracepoints, string_tracing, and
5498 augmented_libraries_svr4_read fields.
5499 (remote_multi_process_p): Move further below in the file.
5500 (struct packet_config): Add comments.
5501 (update_packet_config): Delete function.
5502 (show_packet_config_cmd): Use packet_config_support.
5503 (add_packet_config_cmd): Use NULL as set callback.
5504 (packet_ok): "set remote foo-packet"-style commands no longer
5505 change config->supported -- adjust.
5506 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5507 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5508 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5509 (PACKET_QNonStop, PACKET_multiprocess_feature)
5510 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5511 (PACKET_DisconnectedTracing_feature)
5512 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5513 (set_remote_protocol_packet_cmd): Delete function.
5514 (packet_config_support, packet_support): New functions.
5515 (set_remote_protocol_Z_packet_cmd): Don't call
5516 update_packet_config.
5517 (remote_query_attached, remote_pass_signals)
5518 (remote_program_signals, remote_threads_info)
5519 (remote_threads_extra_info, remote_start_remote): Use
5520 packet_support.
5521 (remote_start_remote): Use packet_config_support and
5522 packet_support.
5523 (init_all_packet_configs): Set all packets to unknown support,
5524 instead of calling update_packet_config.
5525 (remote_check_symbols): Use packet_support.
5526 (remote_supported_packet): Unconditionally set the packet config's
5527 support status.
5528 (remote_multi_process_feature, remote_non_stop_feature)
5529 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5530 (remote_breakpoint_commands_feature)
5531 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5532 (remote_install_in_trace_feature)
5533 (remote_disconnected_tracing_feature)
5534 (remote_enable_disable_tracepoint_feature)
5535 (remote_string_tracing_feature)
5536 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5537 (remote_protocol_features): Adjust to use remote_supported_packet
5538 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5539 "ConditionalTracepoints", "ConditionalBreakpoints",
5540 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5541 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5542 "EnableDisableTracepoints", and "tracenz".
5543 (remote_query_supported): Use packet_support.
5544 (remote_open_1): Adjust.
5545 (extended_remote_attach_1): Use packet_support. Switch on the
5546 result of packet_ok instead of checking whether the packet ended
5547 up disabled.
5548 (remote_vcont_resume): Use packet_support.
5549 (remote_resume, remote_stop_ns, fetch_register_using_p)
5550 (remote_prepare_to_store, store_register_using_P)
5551 (check_binary_download, remote_write_bytes): Use packet_support.
5552 (remote_vkill): Use packet_support. Switch on the result of
5553 packet_ok instead of checking whether the packet ended up
5554 disabled.
5555 (extended_remote_supports_disable_randomization): Use
5556 packet_support.
5557 (extended_remote_run): Switch on the result of packet_ok instead
5558 of checking whether the packet ended up disabled.
5559 (remote_insert_breakpoint, remote_remove_breakpoint)
5560 (remote_insert_watchpoint, remote_remove_watchpoint)
5561 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5562 packet_support.
5563 (remote_search_memory): Use packet_config_support.
5564 (remote_get_thread_local_address, remote_get_tib_address)
5565 (remote_hostio_send_command, remote_can_execute_reverse): Use
5566 packet_support.
5567 (remote_supports_cond_tracepoints)
5568 (remote_supports_cond_breakpoints)
5569 (remote_supports_fast_tracepoints)
5570 (remote_supports_static_tracepoints)
5571 (remote_supports_install_in_trace)
5572 (remote_supports_enable_disable_tracepoint)
5573 (remote_supports_string_tracing)
5574 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5575 the packet config says the feature is enabled or disabled.
5576 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5577 (remote_get_trace_status): Use packet_support.
5578 (remote_set_disconnected_tracing): Adjust to check whether the
5579 feature is enabled with packet_support.
5580 (remote_set_trace_buffer_size, remote_use_agent)
5581 (remote_can_use_agent, remote_supports_btrace): Use
5582 packet_support.
5583 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5584 Use packet_config_support.
5585 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5586 the packet config says the feature is enabled or disabled.
5587 (set_range_stepping): Use packet_support.
5588
bdb52a22
TT
55892014-04-25 Tom Tromey <tromey@redhat.com>
5590
5591 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5592 argument.
5593
e9475ead
SA
55942014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5595
5596 * NEWS: Mention support for C99 variable length arrays.
5597
82eacd52
JB
55982014-04-24 Joel Brobecker <brobecker@adacore.com>
5599
5600 * ada-lang.c (standard_exc): Expand introductory comment.
5601
01f9f808
MS
56022014-04-24 Michael Sturm <michael.sturm@mintel.com>
5603 Walfred Tedeschi <walfred.tedeschi@intel.com>
5604
5605 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5606 AVX512 registers.
5607 (amd64_linux_read_description): Add code to handle AVX512 xstate
5608 mask and return respective tdesc.
5609 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5610 and features/i386/x32-avx512-linux.c.
5611 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5612 (amd64_linux_core_read_description): Add code to handle AVX512
5613 xstate mask and return respective tdesc.
5614 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5615 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5616 calculation.
5617 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5618 (tdesc_amd64_avx512_linux): New prototype.
5619 (tdesc_x32_avx512_linux): Likewise.
5620 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5621 features/i386/x32-avx512.c.
5622 (amd64_ymm_avx512_names): New register names for pseudo
5623 registers YMM16-31.
5624 (amd64_ymmh_avx512_names): New register names for raw registers
5625 YMMH16-31.
5626 (amd64_k_names): New register names for K registers.
5627 (amd64_zmmh_names): New register names for ZMM raw registers.
5628 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5629 (amd64_xmm_avx512_names): New register names for XMM16-31
5630 registers.
5631 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5632 registers.
5633 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5634 if feature is present.
5635 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5636 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5637 (AMD64_NUM_REGS): Adjust to new number of registers.
5638 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5639 registers supplied via XSTATE by AVX512 registers.
5640 (i386_linux_read_description): Add case for AVX512.
5641 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5642 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5643 (i386_linux_core_read_description): Add case for AVX512.
5644 (i386_linux_init_abi): Install supported register note section
5645 for AVX512.
5646 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5647 AVX512.
5648 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5649 registers to be number of zmm7h + 1.
5650 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5651 * i386-tdep.c: Include features/i386/i386-avx512.c.
5652 (i386_zmm_names): Add ZMM pseudo register names array.
5653 (i386_zmmh_names): Add ZMM raw register names array.
5654 (i386_k_names): Add K raw register names array.
5655 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5656 registers. AVX512 has 16 more ZMM registers than there are YMM
5657 registers.
5658 (i386_zmmh_regnum_p): Add function to look up register number of
5659 ZMM raw registers.
5660 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5661 (i386_k_regnum_p): Likewise for K raw registers.
5662 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5663 registers added by AVX512.
5664 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5665 registers added by AVX512.
5666 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5667 added by AVX512.
5668 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5669 (i386_pseudo_register_name): Add ZMM pseudo registers.
5670 (i386_zmm_type): Construct and return vector registers type for ZMM
5671 registers.
5672 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5673 ZMM0-31 pseudo registers and K registers.
5674 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5675 and YMM16-31 registers from register cache.
5676 (i386_pseudo_register_write): Add code to write K, ZMM and
5677 YMM16-31 registers.
5678 (i386_register_reggroup_p): Add code to include/exclude AVX512
5679 registers in/from respective register groups.
5680 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5681 registers if feature is present in xcr0.
5682 (i386_gdbarch_init): Add code to initialize AVX512 feature
5683 variables in tdep structure, wire in pseudo registers and call
5684 initialize_tdesc_i386_avx512.
5685 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5686 variables.
5687 (i386_regnum): Add AVX512 registers.
5688 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5689 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5690 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5691 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5692 512 bits wide.
5693 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5694 (i386_ymm_avx512_regnum_p): Likewise.
5695 (i386_k_regnum_p): Likewise.
5696 (i386_zmm_regnum_p): Likewise.
5697 (i386_zmmh_regnum_p): Likewise.
5698 * i387-tdep.c : Update year in copyright notice.
5699 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5700 XSAVE buffer.
5701 (XSAVE_YMM_AVX512_ADDR): New macro.
5702 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5703 XSAVE buffer.
5704 (XSAVE_XMM_AVX512_ADDR): New macro.
5705 (xsave_avx512_k_offset): New table for K register offsets in
5706 XSAVE buffer.
5707 (XSAVE_AVX512_K_ADDR): New macro.
5708 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5709 in XSAVE buffer.
5710 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5711 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5712 buffer.
5713 (i387_collect_xsave): Add code to collect AVX512 registers from
5714 XSAVE buffer.
5715 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5716 of XMM16-31 registers.
5717 (I387_NUM_K_REGS): New define for number of K registers.
5718 (I387_K0_REGNUM): New define for K0 register number.
5719 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5720 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5721 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5722 registers.
5723 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5724 (I387_XMM16_REGNUM): New define for XMM16 register number.
5725 (I387_YMM0_REGNUM): New define for YMM0 register number.
5726 (I387_KEND_REGNUM): New define for last K register number.
5727 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5728 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5729 number.
5730 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5731 number.
5732 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5733 size.
5734 * features/Makefile: Add AVX512 related files.
5735 * features/i386/32bit-avx512.xml: New file.
5736 * features/i386/64bit-avx512.xml: Likewise.
5737 * features/i386/amd64-avx512-linux.c: Likewise.
5738 * features/i386/amd64-avx512-linux.xml: Likewise.
5739 * features/i386/amd64-avx512.c: Likewise.
5740 * features/i386/amd64-avx512.xml: Likewise.
5741 * features/i386/i386-avx512-linux.c: Likewise.
5742 * features/i386/i386-avx512-linux.xml: Likewise.
5743 * features/i386/i386-avx512.c: Likewise.
5744 * features/i386/i386-avx512.xml: Likewise.
5745 * features/i386/x32-avx512-linux.c: Likewise.
5746 * features/i386/x32-avx512-linux.xml: Likewise.
5747 * features/i386/x32-avx512.c: Likewise.
5748 * features/i386/x32-avx512.xml: Likewise.
5749 * regformats/i386/amd64-avx512-linux.dat: New file.
5750 * regformats/i386/amd64-avx512.dat: Likewise.
5751 * regformats/i386/i386-avx512-linux.dat: Likewise.
5752 * regformats/i386/i386-avx512.dat: Likewise.
5753 * regformats/i386/x32-avx512-linux.dat: Likewise.
5754 * regformats/i386/x32-avx512.dat: Likewise.
5755 * NEWS: Add note about new support for AVX512.
5756
5757
08351840
PA
57582014-04-23 Pedro Alves <palves@redhat.com>
5759
5760 * breakpoint.c (insert_bp_location): Tolerate errors if the
5761 breakpoint is set in a user-loaded objfile.
5762 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5763 location is marked shlib_disabled. If the breakpoint is set in a
5764 user-loaded objfile is a GDB-side memory breakpoint, validate it
5765 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5766 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5767 flag.
5768 * mem-break.c (memory_validate_breakpoint): New function.
5769 * objfiles.c (userloaded_objfile_contains_address_p): New
5770 function.
5771 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5772 * target.h (memory_validate_breakpoint): New declaration.
5773
076855f9
PA
57742014-04-23 Pedro Alves <palves@redhat.com>
5775
5776 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5777 the breakpoint is set in a shared library, only suppress
5778 errors for software breakpoints, not hardware breakpoints.
5779
483805cf
PA
57802014-04-22 Pedro Alves <palves@redhat.com>
5781
5782 * infrun.c (schedlock_applies): New function, factored out from
5783 find_thread_needs_step_over.
5784 (find_thread_needs_step_over): Use it.
5785 (switch_back_to_stepped_thread): Always clear trap_expected if the
5786 step over is finished. Return early if scheduler locking applies.
5787 Look for the stepping thread and a potential step-over thread with
5788 a single loop.
5789 (currently_stepping_or_nexting_callback): Delete.
5790
a75fef0e
NC
57912014-04-22 Nick Clifton <nickc@redhat.com>
5792
5793 * NEWS: Mention that ARM sim now supports tracing.
5794
48b6e87e
YQ
57952014-04-22 Yao Qi <yao@codesourcery.com>
5796
5797 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5798 to ...
5799 * tracefile.c (tracefile_fetch_registers): ... it. New
5800 function.
5801 * tracefile.h (tracefile_fetch_registers): Declare.
5802 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5803 tracefile_fetch_registers.
5804
17617f2d
EZ
58052014-04-19 Eli Zaretskii <eliz@gnu.org>
5806
5807 PR gdb/14018
5808 * windows-nat.c (thread_rec): Don't display a warning when
5809 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5810 fails for any reason, set th->suspended to -1, so that we don't
5811 try to resume such a thread. Also, don't return NULL in these
5812 cases, to avoid completely ruin the session due to "PC register is
5813 not available" error.
5814 (do_windows_fetch_inferior_registers): Check errors in
5815 GetThreadContext call.
5816 (windows_continue): Accept an additional argument KILLED; if not
5817 zero, ignore errors in the SetThreadContext call, since the
5818 inferior was killed and is shutting down.
5819 (windows_resume, get_windows_debug_event)
5820 (windows_create_inferior, windows_mourn_inferior)
5821 (windows_kill_inferior): All callers of windows_continue changed
5822 to adjust to its new calling sequence.
5823
5723a6fd
YQ
58242014-04-19 Yao Qi <yao@codesourcery.com>
5825
5826 * ctf.c (ctf_open): Call post_create_inferior.
5827
614d5099
YQ
58282014-04-19 Yao Qi <yao@codesourcery.com>
5829
5830 * ctf.c (handle_id): New static variable.
5831 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5832 value. Get the declaration of event "register" and get length
5833 of field "contents".
5834
dac3e710
YQ
58352014-04-19 Yao Qi <yao@codesourcery.com>
5836
5837 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5838
2bca57ba
SC
58392014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5840
5841 * valops.c (oload_method_static): Remove unnecessary argument
5842 METHOD. Update all callers.
5843
51d48146
PA
58442014-04-18 Pedro alves <palves@redhat.com>
5845 Tom Tromey <tromey@redhat.com>
5846
5847 PR backtrace/15558
5848 * frame.c (get_prev_frame_1): Rename to ...
5849 (get_prev_frame_always): ... this, and make extern. Adjust.
5850 (skip_artificial_frames): Use get_prev_frame_always.
5851 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5852 (get_frame_unwind_stop_reason): Adjust to rename.
5853 * frame.h (get_prev_frame_always): Declare.
5854 * inline-frame.c: Include frame.h.
5855 (inline_frame_this_id): Use get_prev_frame_always.
5856
1bdad2e0
TG
58572014-04-18 Tristan Gingold <gingold@adacore.com>
5858
5859 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5860 code by using bfd_mach_o_get_base_address.
5861
7ce16bd4
UW
58622014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5863
5864 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5865 (spu_ax_pseudo_register_collect): New function.
5866 (spu_ax_pseudo_register_push_stack): Likewise.
5867 (spu_dwarf_reg_to_regnum): Likewise.
5868 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5869
2ed3c037
UW
58702014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5871
5872 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5873 Replace FRAME argument with FRAME_ID.
5874 * gdbarch.c, gdbarch.h: Regenerate.
5875 * findvar.c (default_value_from_register): Add GDBARCH argument;
5876 replace FRAME by FRAME_ID. No longer call get_frame_id.
5877 (value_from_register): Update call to gdbarch_value_from_register.
5878 * value.h (default_value_from_register): Update prototype.
5879 * s390-linux-tdep.c (s390_value_from_register): Update interface
5880 and call to default_value_from_register.
5881 * spu-tdep.c (spu_value_from_register): Likewise.
5882
5883 * findvar.c (address_from_register): Remove TYPE argument.
5884 Do not call value_from_register; use gdbarch_value_from_register
5885 with null_frame_id instead.
5886 * value.h (address_from_register): Update prototype.
5887 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5888 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5889 address_from_register interface change.
5890
71e50e83
YQ
58912014-04-17 Yao Qi <yao@codesourcery.com>
5892
5893 * gdbtypes.h: Update comments to link to types and macros'
5894 definitions.
5895
7a23c549
SC
58962014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5897
5898 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5899
22869d73
KS
59002014-04-16 Keith Seitz <keiths@redhat.com>
5901
5902 PR gdb/15827
5903 * dwarf2read.c (skip_one_die): Check that all relative-offset
5904 sibling DIEs fall within range of the current reader's buffer.
5905 (read_partial_die): Likewise.
5906
c4f87ca6
KS
59072014-04-16 Keith Seitz <keiths@redhat.com>
5908
5909 PR c++/16597
5910 * cp-namespace.c (lookup_symbol_file): If the type name of
5911 `this' is NULL, return immediately.
5912
b50c8614
KS
59132014-04-14 Keith Seitz <keiths@redhat.com>
5914
5915 PR c++/16253
5916 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5917 from symbol_matches_domain in symtab.c. All local callers
5918 of symbol_matches_domain updated.
5919 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5920 search STRUCT_DOMAIN.
5921 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5922 independently. standard_lookup will do that automatically.
5923 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5924 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5925 (cp_lookup_symbol_in_namespace): Likewise.
5926 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5927 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5928 may return a STRUCT_DOMAIN match.
5929 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5930 * cp-support.c: Include language.h.
5931 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5932 VAR_DOMAIN.
5933 * psymtab.c (match_partial_symbol): Compare the requested
5934 domain with the symbol's domain directly.
5935 (lookup_partial_symbol): Likewise.
5936 * symtab.c (lookup_symbol_in_language): Explain when/why
5937 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5938 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5939 appropriate languages.
5940 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5941 and moved to ada-lang.c
5942 (lookup_block_symbol): Explain that this function only returns
5943 symbol matching the requested DOMAIN.
5944 Compare the requested domain with the symbol's domain directly.
5945 (iterate_over_symbols): Compare the requested domain with the
5946 symbol's domain directly.
5947 * symtab.h (symbol_matches_domain): Remove.
5948
3d567982
TT
59492014-04-14 Tom Tromey <tromey@redhat.com>
5950
5951 PR c++/15246:
5952 * c-exp.y (type_aggregate_p): New function.
5953 (qualified_name, classify_inner_name): Use it.
5954 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5955 and TYPE_TARGET_TYPE of an enum type.
5956 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5957 an enum type.
5958 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5959 handle TYPE_DECLARED_CLASS.
5960 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5961 types.
5962 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5963 * valops.c (enum_constant_from_type): New function.
5964 (value_aggregate_elt): Use it.
5965 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5966 TYPE_CODE_ENUM.
5967
c848d642
TT
59682014-04-14 Tom Tromey <tromey@redhat.com>
5969
5970 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5971 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5972 const.
5973 * value.h (value_aggregate_elt): Update.
5974
0626fc76
TT
59752014-04-14 Tom Tromey <tromey@redhat.com>
5976
5977 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5978
5ecaaa66
SA
59792014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5980
5981 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5982 (evaluate_subexp_standard): Pass noside argument.
5983 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5984 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5985 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5986 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5987 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5988
1612e0c0
SA
59892014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5990
5991 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5992 points to a constant blob.
5993
c451ebe5
SA
59942014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5995
5996 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5997 property and store it as the high bound and flag the range accordingly.
5998 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5999 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6000 * gdbtypes.h (enum range_flags): New enum.
6001 (struct range_bounds): Add flags member.
6002
1d42e4c4
SA
60032014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6004
6005 * c-typeprint.c (c_type_print_varspec_suffix): Added
6006 check for not yet resolved high bound. If unresolved, print
6007 "variable length" string to the console instead of random
6008 length.
6009
9f1f738a
SA
60102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6011
6012 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6013 value.
6014 (ada_template_to_fixed_record_type_1): Likewise.
6015 (ada_to_fixed_type_1): Likewise.
6016 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6017 (cp_print_value): Likewise.
6018 * d-valprint.c (dynamic_array_type): Likewise.
6019 * findvar.c (address_of_variable): Likewise.
6020 * jv-valprint.c (java_value_print): Likewise.
6021 * valops.c (value_ind): Likewise.
6022 * value.c (coerce_ref): Likewise.
6023
3c8452d4
SA
60242014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6025
6026 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6027 value and retrieve the dynamic type size.
6028
4ad88275
SA
60292014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6030
6031 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6032 passed to sizeof is dynamic evaluate the argument to compute the length.
6033
80180f79
SA
60342014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6035 Joel Brobecker <brobecker@adacore.com>
6036
6037 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6038 (dwarf2_evaluate_property): New function.
6039 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6040 * dwarf2read.c (attr_to_dynamic_prop): New function.
6041 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6042 attribute.
6043 * gdbtypes.c: Include dwarf2loc.h.
6044 (is_dynamic_type): New function.
6045 (resolve_dynamic_type): New function.
6046 (resolve_dynamic_bounds): New function.
6047 (get_type_length): New function.
6048 (check_typedef): Use get_type_length to compute type length.
6049 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6050 (TYPE_LOW_BOUND_KIND): New macro.
6051 (is_dynamic_type): New function prototype.
6052 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6053 to resolve dynamic properties of the type. Update comment.
6054 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6055
a1556843
RH
60562014-04-14 Richard Henderson <rth@redhat.com>
6057
6058 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6059
0be03e84
DE
60602014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6061 Doug Evans <xdje42@gmail.com>
6062
6063 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6064 dereference TYPE_CODE_REF values.
6065
6b662e19
JB
60662014-04-11 Joel Brobecker <brobecker@adacore.com>
6067
6068 Revert the following changes due to regressions:
6069
6070 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6071 (dwarf2_evaluate_property): New function.
6072 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6073 * dwarf2read.c (attr_to_dynamic_prop): New function.
6074 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6075 attribute.
6076 * gdbtypes.c: Include dwarf2loc.h.
6077 (is_dynamic_type): New function.
6078 (resolve_dynamic_type): New function.
6079 (resolve_dynamic_bounds): New function.
6080 (get_type_length): New function.
6081 (check_typedef): Use get_type_length to compute type length.
6082 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6083 (TYPE_LOW_BOUND_KIND): New macro.
6084 (is_dynamic_type): New function prototype.
6085 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6086 to resolve dynamic properties of the type. Update comment.
6087 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6088
6089 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6090 passed to sizeof is dynamic evaluate the argument to compute the length.
6091
6092 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6093 value and retrieve the dynamic type size.
6094
6095 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6096 (ada_template_to_fixed_record_type_1): Likewise.
6097 (ada_to_fixed_type_1): Likewise.
6098 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6099 (cp_print_value): Likewise.
6100 * d-valprint.c (dynamic_array_type): Likewise.
6101 * eval.c (evaluate_subexp_with_coercion): Likewise.
6102 * findvar.c (address_of_variable): Likewise.
6103 * jv-valprint.c (java_value_print): Likewise.
6104 * valops.c (value_ind): Likewise.
6105 * value.c (coerce_ref): Likewise.
6106
6107 * c-typeprint.c (c_type_print_varspec_suffix): Added
6108 check for not yet resolved high bound. If unresolved, print
6109 "variable length" string to the console instead of random
6110 length.
6111
6112 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6113 property and store it as the high bound and flag the range accordingly.
6114 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6115 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6116 * gdbtypes.h (enum range_flags): New enum.
6117 (struct range_bounds): Add flags member.
6118
6119 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6120 points to a constant blob.
6121
6122 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6123 (evaluate_subexp_standard): Pass noside argument.
6124 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6125 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6126 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6127 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6128 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6129
245a5f0b
KS
61302014-04-11 Keith Seitz <keiths@redhat.com>
6131
6132 PR c++/16675
6133 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6134 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6135 reference types.
6136
3bce8237
SA
61372014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6138
6139 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6140 (evaluate_subexp_standard): Pass noside argument.
6141 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6142 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6143 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6144 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6145 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6146
92b09522
SA
61472014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6148
6149 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6150 points to a constant blob.
6151
e1969afb
SA
61522014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6153
6154 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6155 property and store it as the high bound and flag the range accordingly.
6156 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6157 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6158 * gdbtypes.h (enum range_flags): New enum.
6159 (struct range_bounds): Add flags member.
6160
b86138fb
SA
61612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6162
6163 * c-typeprint.c (c_type_print_varspec_suffix): Added
6164 check for not yet resolved high bound. If unresolved, print
6165 "variable length" string to the console instead of random
6166 length.
6167
bcd629a4
SA
61682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6169
6170 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6171 (ada_template_to_fixed_record_type_1): Likewise.
6172 (ada_to_fixed_type_1): Likewise.
6173 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6174 (cp_print_value): Likewise.
6175 * d-valprint.c (dynamic_array_type): Likewise.
6176 * eval.c (evaluate_subexp_with_coercion): Likewise.
6177 * findvar.c (address_of_variable): Likewise.
6178 * jv-valprint.c (java_value_print): Likewise.
6179 * valops.c (value_ind): Likewise.
6180 * value.c (coerce_ref): Likewise.
6181
04b19544
SA
61822014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6183
6184 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6185 value and retrieve the dynamic type size.
6186
26cb189f
SA
61872014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6188
6189 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6190 passed to sizeof is dynamic evaluate the argument to compute the length.
6191
37c1ab67
SA
61922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6193
6194 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6195 (dwarf2_evaluate_property): New function.
6196 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6197 * dwarf2read.c (attr_to_dynamic_prop): New function.
6198 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6199 attribute.
6200 * gdbtypes.c: Include dwarf2loc.h.
6201 (is_dynamic_type): New function.
6202 (resolve_dynamic_type): New function.
6203 (resolve_dynamic_bounds): New function.
6204 (get_type_length): New function.
6205 (check_typedef): Use get_type_length to compute type length.
6206 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6207 (TYPE_LOW_BOUND_KIND): New macro.
6208 (is_dynamic_type): New function prototype.
6209 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6210 to resolve dynamic properties of the type. Update comment.
6211 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6212
729efb13
SA
62132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6214
6215 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6216 declaring high/low bounds and change uses accordingly. Call
6217 create_range_type instead of create_static_range_type.
6218 * gdbtypes.c (create_range_type): New function.
6219 (create_range_type): Convert bounds into struct bound_prop and pass
6220 them to create_range_type.
6221 * gdbtypes.h (struct bound_prop): New struct.
6222 (create_range_type): New function prototype.
6223 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6224 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6225 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6226 part of the bound.
6227 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6228
0c9c3474
SA
62292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6230
6231 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6232 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6233 * ada-lang.c: All uses of create_range_type updated.
6234 * coffread.c: All uses of create_range_type updated.
6235 * dwarf2read.c: All uses of create_range_type updated.
6236 * f-exp.y: All uses of create_range_type updated.
6237 * m2-valprint.c: All uses of create_range_type updated.
6238 * mdebugread.c: All uses of create_range_type updated.
6239 * stabsread.c: All uses of create_range_type updated.
6240 * valops.c: All uses of create_range_type updated.
6241 * valprint.c: All uses of create_range_type updated.
6242
9d497a19
PA
62432014-04-10 Pedro Alves <palves@redhat.com>
6244
6245 * breakpoint.c (single_step_breakpoints)
6246 (single_step_gdbarch): Move up in the file.
6247 (one_breakpoint_xfer_memory): New function, factored out from ...
6248 (breakpoint_xfer_memory): ... here. Also process single-step
6249 breakpoints.
6250
15a9128a
TG
62512014-04-09 Tristan Gingold <gingold@adacore.com>
6252
6253 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6254 comments.
6255 (darwin_decode_exception_message): Free port only after use.
6256
9c97a070
PL
62572014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6258
6259 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6260 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6261 when setting the size of call_length.
6262
7af389b8
SC
62632014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6264
6265 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6266 dereference TYPE_CODE_REF values.
6267
86ad98c3
JB
62682014-04-07 Joel Brobecker <brobecker@adacore.com>
6269
6270 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6271 end of warning message.
6272
b0aeadb3
DE
62732014-04-03 Doug Evans <dje@google.com>
6274
6275 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6276 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6277
5979d6b6
AM
62782014-04-02 Alan Modra <amodra@gmail.com>
6279
6280 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6281 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6282 (struct symbol_file_add_from_memory_args): Add size field.
6283 (find_vdso_size): New function.
6284 (add_vsyscall_page): Attempt to find vdso size.
6285
0d60c288
DE
62862014-04-01 Doug Evans <dje@google.com>
6287
6288 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6289
a41f2563
TG
62902014-04-01 Tristan Gingold <gingold@adacore.com>
6291
6292 * darwin-nat.c (darwin_encode_reply): Add prototype.
6293 (darwin_decode_exception_message): Reply to unknown inferiors.
6294 (darwin_decode_message): Handle message by id. Ignore message
6295 to unknown inferior.
6296 (darwin_wait): Discard unknown messages, add debug trace.
6297
11a865c8
DE
62982014-03-31 Doug Evans <dje@google.com>
6299
6300 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6301 comp_dir_string.
6302
770e7fc7
DE
63032014-03-31 Doug Evans <dje@google.com>
6304
6305 New option "set print symbol-loading".
6306 * NEWS: Mention it.
6307 * solib.c (solib_read_symbols): Only print symbol loading messages
6308 if requested.
6309 (solib_add): If symbol loading is in "brief" mode, notify user
6310 symbols are being loaded.
6311 (reload_shared_libraries_1): Ditto.
6312 * symfile.c (print_symbol_loading_off): New static global.
6313 (print_symbol_loading_brief): New static global.
6314 (print_symbol_loading_full): New static global.
6315 (print_symbol_loading_enums): New static global.
6316 (print_symbol_loading): New static global.
6317 (print_symbol_loading_p): New function.
6318 (symbol_file_add_with_addrs): Only print symbol loading messages
6319 if requested.
6320 (_initialize_symfile): Register "print symbol-loading" set/show
6321 command.
6322 * symfile.h (print_symbol_loading_p): Declare.
6323
c32c64b7
DE
63242014-03-30 Doug Evans <xdje42@gmail.com>
6325
6326 * infrun.c (set_last_target_status): New function.
6327 (handle_inferior_event): Call it.
6328
7c0bc051
DE
63292014-03-30 Doug Evans <xdje42@gmail.com>
6330
6331 * inferior.h (enum stop_kind): Improve comment.
6332
8776cfe9
JB
63332014-03-28 Joel Brobecker <brobecker@adacore.com>
6334
6335 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6336 a reference, strip the reference layer before calling
6337 the lang_ops value_has_mutated callback.
6338
410a0ff2
SDJ
63392014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6340
6341 Remove some globals from our parser.
6342 * language.c (unk_lang_parser): Add "struct parser_state"
6343 argument.
6344 * language.h (struct language_defn) <la_parser>: Likewise.
6345 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6346 (initialize_expout): Add "struct parser_state" argument.
6347 Rewrite function to use the parser state.
6348 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6349 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6350 write_exp_elt_longcst, write_exp_elt_dblcst,
6351 write_exp_elt_decfloatcst, write_exp_elt_type,
6352 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6353 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6354 write_dollar_variable): Likewise.
6355 (parse_exp_in_context_1): Use parser state.
6356 (insert_type_address_space): Add "struct parser_state" argument.
6357 Use parser state.
6358 (increase_expout_size): New function.
6359 * parser-defs.h: Forward declare "struct language_defn" and
6360 "struct parser_state".
6361 (expout, expout_size, expout_ptr): Remove extern declarations.
6362 (parse_gdbarch, parse_language): Rewrite macro declarations to
6363 accept the parser state.
6364 (struct parser_state): New struct.
6365 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6366 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6367 write_exp_elt_decfloatcst, write_exp_elt_type,
6368 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6369 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6370 write_exp_msymbol, write_dollar_variable,
6371 mark_struct_expression, insert_type_address_space): Add "struct
6372 parser_state" argument.
6373 (increase_expout_size): New function.
6374 * utils.c (do_clear_parser_state): New function.
6375 (make_cleanup_clear_parser_state): Likewise.
6376 * utils.h (make_cleanup_clear_parser_state): New function
6377 prototype.
6378 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6379 Update calls to write_exp* in order to pass the parser state.
6380 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6381 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6382 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6383 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6384 * stap-probe.c (stap_parse_register_operand): Likewise.
6385 (stap_parse_single_operand): Likewise.
6386 (stap_parse_argument_1): Likewise.
6387 (stap_parse_argument): Use parser state.
6388 * stap-probe.h: Include "parser-defs.h".
6389 (struct stap_parse_info) <pstate>: New field.
6390 * c-exp.y (parse_type): Rewrite to use parser state.
6391 (yyparse): Redefine to c_parse_internal.
6392 (pstate): New global variable.
6393 (parse_number): Add "struct parser_state" argument.
6394 (write_destructor_name): Likewise.
6395 (type_exp): Update calls to write_exp* and similars in order to
6396 use parser state.
6397 (exp1, exp, variable, qualified_name, space_identifier,
6398 typename, typebase): Likewise.
6399 (write_destructor_name, parse_number, lex_one_token,
6400 classify_name, classify_inner_name, c_parse): Add "struct
6401 parser_state" argument. Update function to use parser state.
6402 * c-lang.h: Forward declare "struct parser_state".
6403 (c_parse): Add "struct parser_state" argument.
6404 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6405 (yyparse): Redefine macro to ada_parse_internal.
6406 (pstate): New variable.
6407 (write_int, write_object_renaming, write_var_or_type,
6408 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6409 type_int, type_long, type_long_long, type_float, type_double,
6410 type_long_double, type_char, type_boolean, type_system_address):
6411 Add "struct parser_state" argument.
6412 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6413 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6414 var_or_type, aggregate, aggregate_component_list,
6415 positional_list, others, component_group,
6416 component_associations): Update calls to write_exp* and similar
6417 functions in order to use parser state.
6418 (ada_parse, write_var_from_sym, write_int,
6419 write_exp_op_with_string, write_object_renaming,
6420 find_primitive_type, write_selectors, write_ambiguous_var,
6421 write_var_or_type, write_name_assoc, type_int, type_long,
6422 type_long_long, type_float, type_double, type_long_double,
6423 type_char, type_boolean, type_system_address): Add "struct
6424 parser_state" argument. Adjust function to use parser state.
6425 * ada-lang.c (parse): Likewise.
6426 * ada-lang.h: Forward declare "struct parser_state".
6427 (ada_parse): Add "struct parser_state" argument.
6428 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6429 calls to both functions.
6430 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6431 parser state.
6432 (yyparse): Redefine macro to f_parse_internal.
6433 (pstate): New variable.
6434 (parse_number): Add "struct parser_state" argument.
6435 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6436 and similars in order to use parser state.
6437 (parse_number): Adjust code to use parser state.
6438 (yylex): Likewise.
6439 (f_parse): New function.
6440 * f-lang.h: Forward declare "struct parser_state".
6441 (f_parse): Add "struct parser_state" argument.
6442 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6443 parser state.
6444 (yyparse): Redefine macro for java_parse_internal.
6445 (pstate): New variable.
6446 (push_expression_name, push_expression_name, insert_exp): Add
6447 "struct parser_state" argument.
6448 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6449 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6450 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6451 PostIncrementExpression, PostDecrementExpression,
6452 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6453 UnaryExpressionNotPlusMinus, CastExpression,
6454 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6455 RelationalExpression, EqualityExpression, AndExpression,
6456 ExclusiveOrExpression, InclusiveOrExpression,
6457 ConditionalAndExpression, ConditionalOrExpression,
6458 ConditionalExpression, Assignment, LeftHandSide): Update
6459 calls to write_exp* and similars in order to use parser state.
6460 (parse_number): Ajust code to use parser state.
6461 (yylex): Likewise.
6462 (java_parse): New function.
6463 (push_variable): Add "struct parser_state" argument. Adjust
6464 code to user parser state.
6465 (push_fieldnames, push_qualified_expression_name,
6466 push_expression_name, insert_exp): Likewise.
6467 * jv-lang.h: Forward declare "struct parser_state".
6468 (java_parse): Add "struct parser_state" argument.
6469 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6470 parser state.
6471 (yyparse): Redefine macro to m2_parse_internal.
6472 (pstate): New variable.
6473 (type_exp, exp, fblock, variable, type): Update calls to
6474 write_exp* and similars to use parser state.
6475 (yylex): Likewise.
6476 (m2_parse): New function.
6477 * m2-lang.h: Forward declare "struct parser_state".
6478 (m2_parse): Add "struct parser_state" argument.
6479 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6480 * objc-lang.h: Forward declare "struct parser_state".
6481 (end_msglist): Add "struct parser_state" argument.
6482 * p-exp.y (parse_type): Rewrite macro to use parser state.
6483 (yyparse): Redefine macro to pascal_parse_internal.
6484 (pstate): New variable.
6485 (parse_number): Add "struct parser_state" argument.
6486 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6487 write_exp* and similars in order to use parser state.
6488 (parse_number, yylex): Adjust code to use parser state.
6489 (pascal_parse): New function.
6490 * p-lang.h: Forward declare "struct parser_state".
6491 (pascal_parse): Add "struct parser_state" argument.
6492 * go-exp.y (parse_type): Rewrite macro to use parser state.
6493 (yyparse): Redefine macro to go_parse_internal.
6494 (pstate): New variable.
6495 (parse_number): Add "struct parser_state" argument.
6496 (type_exp, exp1, exp, variable, type): Update calls to
6497 write_exp* and similars in order to use parser state.
6498 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6499 to use parser state.
6500 (go_parse): Likewise.
6501 * go-lang.h: Forward declare "struct parser_state".
6502 (go_parse): Add "struct parser_state" argument.
6503
342587c4
DE
65042014-03-27 Doug Evans <dje@google.com>
6505
6506 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6507
33e80786
DE
65082014-03-27 Doug Evans <dje@google.com>
6509
6510 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6511 Remove argument abbrev_section. All callers updated.
6512
1dbab08b
DE
65132014-03-27 Doug Evans <dje@google.com>
6514
6515 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6516 addr_base, ranges_base.
6517
318d3177
KS
65182014-03-26 Keith Seitz <keiths@redhat.com>
6519
6520 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6521 types, not VAR_DOMAIN.
6522
1e54db15
SL
65232014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6524
6525 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6526 "ra" registers.
6527 * features/nios2-linux.c: Regenerated.
6528 * features/nios2.c: Regenerated.
6529
d3839ede
PA
65302014-03-25 Pedro Alves <palves@redhat.com>
6531
6532 * cli/cli-script.c (script_from_file): Force the interpreter to
6533 sync mode.
6534
7588d2ec
PL
65352014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6536
6537 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6538 small stack allocation.
6539
a6290449
TG
65402014-03-24 Tristan Gingold <gingold@adacore.com>
6541
6542 * darwin-nat.c (exc_server): Remove unused prototype.
6543 (darwin_dump_message): Correctly display data on x86_64.
6544 (darwin_encode_reply): Fix style.
6545 Add comments and fix indentation.
6546
31ae9d24 65472014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6548
6549 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6550
6339bfc4
DE
65512014-03-22 Doug Evans <xdje42@gmail.com>
6552
6553 * infcmd.c: Whitespace fixes.
6554 (interrupt_command): Merge two function comments into one.
6555
0a07590b
DE
65562014-03-22 Doug Evans <xdje42@gmail.com>
6557
6558 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6559 All uses updated.
6560
b55fbac4
YQ
65612014-03-22 Yao Qi <yao@codesourcery.com>
6562
6563 * remote.c (target_read_live_memory): Remove.
6564 (memory_xfer_live_readonly_partial): Rename it to
6565 remote_xfer_live_readonly_partial. Remove argument 'object'.
6566 All callers updated. Call remote_read_bytes_1
6567 instead of target_read_live_memory.
6568 * tracepoint.c (set_traceframe_number): Remove.
6569 (make_cleanup_restore_traceframe_number): Likewise .
6570 * tracepoint.h (set_traceframe_number): Remove declaration.
6571 (make_cleanup_restore_traceframe_number): Likewise.
6572
9217e74e
YQ
65732014-03-22 Yao Qi <yao@codesourcery.com>
6574
6575 * remote.c (remote_read_bytes): Move code on reading from the
6576 remote stub to ...
6577 (remote_read_bytes_1): ... here. New function.
6578
8acf9577
YQ
65792014-03-22 Yao Qi <yao@codesourcery.com>
6580
6581 * ctf.c (ctf_xfer_partial): Check the return value of
6582 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6583 return TARGET_XFER_UNAVAILABLE.
6584 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6585 * target.c (target_read_live_memory): Move it to remote.c.
6586 (memory_xfer_live_readonly_partial): Likewise.
6587 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6588 * remote.c (target_read_live_memory): Moved from target.c.
6589 (memory_xfer_live_readonly_partial): Likewise.
6590 (remote_read_bytes): Factored out from
6591 memory_xfer_partial_1.
6592
feef67ab
DE
65932014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6594
6595 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6596 NULL pointer.
6597
b65dc60b
PA
65982014-03-21 Pedro Alves <palves@redhat.com>
6599
6600 * infrun.c (normal_stop): Extend comment.
6601
b4ab256d
HZ
66022014-03-21 Hui Zhu <hui@codesourcery.com>
6603 Pedro Alves <palves@redhat.com>
6604
6605 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6606 static buffer.
6607 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6608 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6609 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6610
deba7593
MR
66112014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6612
6613 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6614 `z' formatted output modifier.
6615
1bff71c3
SDJ
66162014-03-20 Tom Tromey <tromey@redhat.com>
6617 Sergio Durigan Junior <sergiodj@redhat.com>
6618
6619 * probe.c (parse_probes): Turn assert into an ordinary error.
6620 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6621 exceptions when parsing probes. Rearrange the code for clarity.
6622
90e28950
TT
66232014-03-20 Tom Tromey <tromey@redhat.com>
6624
6625 PR gdb/14135
6626 * top.c (execute_command): Only dispatch events if the command
6627 started the target.
6628
beb460e8
PA
66292014-03-20 Tom Tromey <tromey@redhat.com>
6630
6631 PR cli/15718
6632 * infcall.c: Include event-top.h.
6633 (run_inferior_call): Call async_disable_stdin if needed.
6634
99619bea
PA
66352014-03-20 Pedro Alves <palves@redhat.com>
6636
6637 * infrun.c (prepare_to_proceed): Delete.
6638 (thread_still_needs_step_over): New function.
6639 (find_thread_needs_step_over): New function.
6640 (proceed): If the current thread needs a step-over, set its
6641 steping_over_breakpoint flag. Adjust to use
6642 find_thread_needs_step_over instead of prepare_to_proceed.
6643 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6644 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6645 breakpoint.
6646 (switch_back_to_stepped_thread): Step over breakpoints of all
6647 threads not the stepping thread, before switching back to the
6648 stepping thread.
6649
2adfaa28
PA
66502014-03-20 Pedro Alves <palves@redhat.com>
6651
6652 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6653 extern.
6654 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6655 * infrun.c (saved_singlestep_ptid)
6656 (stepping_past_singlestep_breakpoint): Delete.
6657 (resume): Remove stepping_past_singlestep_breakpoint handling.
6658 (proceed): Store the prev_pc of the stepping thread too.
6659 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6660 singlestep_pc.
6661 (enum infwait_states): Delete infwait_thread_hop_state.
6662 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6663 field.
6664 (handle_inferior_event): Adjust.
6665 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6666 handling and the thread-hop code. Before removing single-step
6667 breakpoints, check whether the thread hit a single-step breakpoint
6668 of another thread. If it did, the trap is not a random signal.
6669 (switch_back_to_stepped_thread): If the event thread hit a
6670 single-step breakpoint, unblock it before switching to the
6671 stepping thread. Handle the case of the stepped thread having
6672 advanced already.
6673 (keep_going): Handle the case of the current thread moving past a
6674 single-step breakpoint.
6675
31e77af2
PA
66762014-03-20 Pedro Alves <palves@redhat.com>
6677
6678 PR breakpoints/7143
6679 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6680 are being stepped over.
6681 (breakpoint_address_match): Make extern.
6682 * breakpoint.h (breakpoint_address_match): New declaration.
6683 * inferior.h (stepping_past_instruction_at): New declaration.
6684 * infrun.c (struct step_over_info): New type.
6685 (step_over_info): New global.
6686 (set_step_over_info, clear_step_over_info)
6687 (stepping_past_instruction_at): New functions.
6688 (handle_inferior_event): Clear the step-over info when
6689 trap_expected is cleared.
6690 (resume): Remove now stale comment.
6691 (clear_proceed_status): Clear step-over info.
6692 (proceed): Adjust step-over handling to set or clear the step-over
6693 info instead of removing all breakpoints.
6694 (handle_signal_stop): When setting up a thread-hop, don't remove
6695 breakpoints here.
6696 (stop_stepping): Clear step-over info.
6697 (keep_going): Adjust step-over handling to set or clear step-over
6698 info and then always inserting breakpoints, instead of removing
6699 all breakpoints when stepping over one.
6700
b9f437de
PA
67012014-03-20 Pedro Alves <palves@redhat.com>
6702
6703 * infrun.c (previous_inferior_ptid): Adjust comment.
6704 (deferred_step_ptid): Delete.
6705 (infrun_thread_ptid_changed, prepare_to_proceed)
6706 (init_wait_for_inferior): Adjust.
6707 (handle_signal_stop): Delete deferred_step_ptid handling.
6708
06c868a8
JK
67092014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6710
6711 PR gdb/15358
6712 * defs.h (sync_quit_force_run): New declaration.
6713 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6714 * event-top.c (async_sigterm_handler): New declaration.
6715 (async_sigterm_token): New variable.
6716 (async_init_signals): Create also async_sigterm_token.
6717 (async_sigterm_handler): New function.
6718 (sync_quit_force_run): New variable.
6719 (handle_sigterm): Replace quit_force call by other calls.
6720 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6721
dea80df0
MR
67222014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6723
6724 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6725 offset into SPE pseudo registers.
6726
0c7e1a46
PA
67272014-03-18 Pedro Alves <palves@redhat.com>
6728
6729 PR gdb/13860
6730 * inferior.h (print_stop_event): Declare.
6731 * infrun.c (print_stop_event): New, factored out from ...
6732 (normal_stop): ... this.
6733 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6734 of bpstat_print/print_stack_frame.
6735
9c1fcd01
TT
67362014-03-17 Tom Tromey <tromey@redhat.com>
6737
6738 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6739
11aa919a
PMR
67402014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6741
6742 * ada-lang.c (decode_constrained_packed_array): Perform a
6743 minimal coercion for reference with coerce_ref instead of
6744 ada_coerce_ref.
6745
d4ccb5e0
TG
67462014-03-17 Tristan Gingold <gingold@adacore.com>
6747
6748 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6749 (darwin_solib_create_inferior_hook): Emit a warning if version
6750 is unhandled.
6751
49840f2a
UW
67522014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6753
6754 * python/py-value.c (get_field_flag): Cast flag_name argument to
6755 PyObject_GetAttrString to support Python 2.4.
6756
ed4123e5
JK
67572014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6758
6759 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6760 (Global Maintainers): Remove Jan Kratochvil.
6761
d6b64346
PA
67622014-03-14 Pedro Alves <palves@redhat.com>
6763
6764 * inferior.h (terminal_ours_for_output): Rename to ...
6765 (child_terminal_ours_for_output): ... this.
6766 (terminal_save_ours): Rename to ...
6767 (child_terminal_save_ours): ... this.
6768 (terminal_ours): Rename to ...
6769 (child_terminal_ours): ... this.
6770 (terminal_inferior): Rename to ...
6771 (child_terminal_inferior): ... this.
6772 (terminal_init_inferior): Rename to ...
6773 (child_terminal_init_inferior): ... this.
6774 (terminal_init_inferior_with_pgrp): Rename to ...
6775 (child_terminal_init_inferior_with_pgrp): ... this.
6776 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6777 (child_terminal_init_with_pgrp): ... this.
6778 (terminal_save_ours): Rename to ...
6779 (child_terminal_save_ours): ... this.
6780 (terminal_init_inferior): Rename to ...
6781 (child_terminal_init): ... this. Adjust.
6782 (terminal_inferior): Rename to ...
6783 (child_terminal_inferior): ... this.
6784 (terminal_ours_for_output): Rename to ...
6785 (child_terminal_ours_for_output): ... this. Adjust.
6786 (terminal_ours): Rename to ...
6787 (child_terminal_ours): ... this.
6788 (terminal_ours_1): Rename to ...
6789 (child_terminal_ours_1): ... this. Adjust.
6790 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6791 * windows-nat.c (do_initial_windows_stuff): Adjust.
6792 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6793 (gnu_terminal_init): ... this. Adjust.
6794 (gnu_target): Adjust.
6795 * inf-child.c (inf_child_target): Adjust.
6796
5a1e8c7a
DE
67972014-03-13 Doug Evans <xdje42@gmail.com>
6798
6799 PR guile/16612
6800 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6801 new eq?-hashtab.
6802
350e1a76
DE
68032014-03-13 Doug Evans <xdje42@gmail.com>
6804
6805 * value.c (record_latest_value): Call release_value_or_incref
6806 instead of release_value.
6807
a69900ae
PA
68082014-03-13 Pedro Alves <palves@redhat.com>
6809
6810 * procfs.c (procfs_target): Don't override to_shortname,
6811 to_longname or to_doc.
6812
5db9f0bd
PA
68132014-03-13 Pedro Alves <palves@redhat.com>
6814
6815 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6816 Unix in user visible strings.
6817
5e3a2c38
SS
68182014-03-12 Stan Shebs <stan@codesourcery.com>
6819
6820 * gdbtypes.h: Annotate comments for Doxygen, add a page
6821 block comment with some general info.
6822
8bc2fe48
PA
68232014-03-12 Pedro Alves <palves@redhat.com>
6824
6825 * infcmd.c (prepare_execution_command): New function, factored out
6826 from several execution commands.
6827 (run_command_1, continue_command, step_1, jump_command)
6828 (signal_command, until_command, advance_command, finish_command)
6829 (attach_command): Use prepare_execution_command.
6830
638c5f49
OJ
68312014-03-12 Omair Javaid <omair.javaid@linaro.org>
6832
6833 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6834 (MAX_BPTS): Define.
6835 (MAX_WPTS): Define.
6836 (struct arm_linux_thread_points): Removed.
6837 (struct arm_linux_process_info): New.
6838 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6839 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6840 (arm_linux_find_breakpoints_by_tid): Removed.
6841 (struct arch_lwp_info): New.
6842 (arm_linux_find_process_pid): New functions.
6843 (arm_linux_add_process): New functions.
6844 (arm_linux_process_info_get): New functions.
6845 (arm_linux_forget_process): New function.
6846 (arm_linux_get_debug_reg_state): New function.
6847 (struct update_registers_data): New.
6848 (update_registers_callback): New function.
6849 (arm_linux_insert_hw_breakpoint1): Updated.
6850 (arm_linux_remove_hw_breakpoint1): Updated.
6851 (arm_linux_insert_hw_breakpoint): Updated.
6852 (arm_linux_remove_hw_breakpoint): Updated.
6853 (arm_linux_insert_watchpoint): Updated.
6854 (arm_linux_remove_watchpoint): Updated.
6855 (arm_linux_new_thread): Updated.
6856 (arm_linux_prepare_to_resume): New function.
6857 (arm_linux_new_fork): New function.
6858 (_initialize_arm_linux_nat): Updated.
6859
6d03af93
PA
68602014-03-12 Pedro Alves <palves@redhat.com>
6861
6862 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6863
b3ccfe11
TT
68642014-03-12 Tom Tromey <tromey@redhat.com>
6865
6866 * inf-child.c (return_zero): New function.
6867 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6868 * aix-thread.c (aix_thread_inferior_created): New function.
6869 (aix_thread_attach): Remove.
6870 (init_aix_thread_ops): Don't set to_attach.
6871 (_initialize_aix_thread): Register inferior_created observer.
6872 * corelow.c (init_core_ops): Don't set to_attach or
6873 to_create_inferior.
6874 * exec.c (init_exec_ops): Don't set to_attach or
6875 to_create_inferior.
6876 * infcmd.c (run_command_1): Use find_run_target. Make direct
6877 target calls.
6878 (attach_command): Use find_attach_target. Make direct target
6879 calls.
6880 * record-btrace.c (init_record_btrace_ops): Don't set
6881 to_create_inferior.
6882 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6883 Remove.
6884 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6885 set to_create_inferior.
6886 * target.c (complete_target_initialization): Add assertion.
6887 (target_create_inferior): Remove.
6888 (find_default_attach, find_default_create_inferior): Remove.
6889 (find_attach_target, find_run_target): New functions.
6890 (find_default_is_async_p, find_default_can_async_p)
6891 (target_supports_non_stop, target_attach): Remove.
6892 (init_dummy_target): Don't set to_create_inferior or
6893 to_supports_non_stop.
6894 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6895 TARGET_DEFAULT_FUNC.
6896 <to_create_inferior>: Add comment.
6897 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6898 TARGET_DEFAULT_RETURN.
6899 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6900 (find_attach_target, find_run_target): Declare.
6901 (target_create_inferior): Remove.
6902 (target_has_execution_1): Update comment.
6903 (target_supports_non_stop): Remove.
6904 * target-delegates.c: Rebuild.
6905
91f83b02
PA
69062014-03-12 Pedro Alves <palves@redhat.com>
6907
6908 * inf-child.h: Update comment to not mention Unix.
6909
f1aea813
PA
69102014-03-12 Pedro Alves <palves@redhat.com>
6911
6912 * inf-child.c: Update top comment to not mention Unix. Add
6913 generic comment describing how this target is meant to be used.
6914 (inf_child_post_attach, inf_child_post_startup_inferior)
6915 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6916 Unix in comment.
6917
ee8e9165
PA
69182014-03-12 Pedro Alves <palves@redhat.com>
6919
6920 * nto-procfs.c: Include inf-child.h.
6921 (procfs_ops): Delete global.
6922 (procfs_can_run): Delete method.
6923 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6924 target pointer instead of referencing procfs_ops.
6925 (procfs_prepare_to_store): Delete.
6926 (init_procfs_ops): Delete function.
6927 (procfs_target): New function, based on init_procfs_ops, but
6928 inherit inf_child_target.
6929 (_initialize_procfs): Use procfs_target.
6930
51a9c8c5
PA
69312014-03-12 Pedro Alves <palves@redhat.com>
6932
6933 * windows-nat.c: Include inf-child.h.
6934 (windows_ops): Delete global.
6935 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6936 methods.
6937 (init_windows_ops): Delete function.
6938 (windows_target): New function, based on init_windows_ops, but
6939 inherit inf_child_target.
6940 (_initialize_windows_nat): Use windows_target. Install x86
6941 specific target methods here.
6942
c1966e26
DE
69432014-03-10 Doug Evans <xdje42@gmail.com>
6944
6945 * guile/guile.c (call_initialize_gdb_module): New function.
6946 (initialize_guile): Replace call to scm_init_guile with call to
6947 scm_with_guile.
6948
023db19c
JB
69492014-03-10 Joel Brobecker <brobecker@adacore.com>
6950
6951 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6952 in call to TYPE_CODE macro.
6953
5ec18f2b
JG
69542014-03-10 Jerome Guitton <guitton@adacore.com>
6955
8668be63
JB
6956 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6957 Resolve tagged types to full view.
5ec18f2b 6958
7d03f2eb
HZ
69592014-03-10 Hui Zhu <hui@codesourcery.com>
6960
6961 * target.h (target_insert_breakpoint): Remove "hardware" from its
6962 comments.
6963
c5164cbc
DE
69642014-03-07 Doug Evans <dje@google.com>
6965
6966 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6967
c4a3fee2
DE
69682014-03-07 Doug Evans <dje@google.com>
6969
6970 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6971 Remove unused local comp_dir_attr. Assert exactly one of
6972 stub_comp_unit_die, stub_comp_dir is non-NULL.
6973
3156469c
JB
69742014-03-07 Joel Brobecker <brobecker@adacore.com>
6975
6976 * target.h (complete_target_initialization, add_target):
6977 Add comment.
6978
c1a7b7c6
PA
69792014-03-07 Pedro Alves <palves@redhat.com>
6980
6981 * go32-nat.c: Include inf-child.h.
6982 (go32_ops): Delete global.
6983 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6984 Delete methods.
6985 (go32_create_inferior): Push the passed in target pointer instead
6986 of referencing go32_ops.
6987 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6988 (go32_target): New function, based on init_go32_ops, but inherit
6989 inf_child_target.
6990 (_initialize_go32_nat): Use go32_target. Move parts of
6991 init_go32_ops here.
6992
d3c1a85f
JB
69932014-03-06 Joel Brobecker <brobecker@adacore.com>
6994
6995 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6996 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6997 SYMBOL_VALUE_ADDRESS.
6998 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6999
5fa1d40e
YQ
70002014-03-06 Yao Qi <yao@codesourcery.com>
7001
7002 * breakpoint.c (get_tracepoint_by_number): Remove argument
7003 optional_p. All callers updated. Adjust comments. Update
7004 output message.
7005 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7006
0c13193f
YQ
70072014-03-06 Yao Qi <yao@codesourcery.com>
7008
7009 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7010 early if get_number returns zero. Use 'p' instead of 'args'.
7011
2217da06
YQ
70122014-03-06 Yao Qi <yao@codesourcery.com>
7013
7014 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7015 message.
7016
cc3da688
YQ
70172014-03-06 Yao Qi <yao@codesourcery.com>
7018
7019 PR breakpoints/16508
7020 * tracepoint.c (check_trace_running): New function.
7021 (trace_find_command): Move code to check_trace_running and
7022 call check_trace_running.
7023 (trace_find_pc_command): Likewise.
7024 (trace_find_tracepoint_command): Likewise.
7025 (trace_find_line_command): Likewise.
7026 (trace_find_range_command): Likewise.
7027 * tracepoint.h (check_trace_running): Likewise.
7028 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7029
6a5f844b
YQ
70302014-03-06 Yao Qi <yao@codesourcery.com>
7031
7032 * target.h (struct target_ops) <to_traceframe_info>: Use
7033 TARGET_DEFAULT_NORETURN (tcomplain ()).
7034 * target-delegates.c: Regenerated.
7035
0f26cec1
PA
70362014-03-05 Pedro Alves <palves@redhat.com>
7037
7038 PR gdb/16575
7039 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7040 void. Update comment.
7041 (dcache_xfer_memory): Delete.
7042 (dcache_read_memory_partial): New, based on the read bits of
7043 dcache_xfer_memory.
7044 (dcache_update): Add status parameter. Use ULONGEST for len, and
7045 adjust. Discard cache lines if the reason for the update was
7046 error.
7047 * dcache.h (dcache_xfer_memory): Delete declaration.
7048 (dcache_read_memory_partial): New declaration.
7049 (dcache_update): Update prototype.
7050 * target.c (raw_memory_xfer_partial): Update the dcache here.
7051 (memory_xfer_partial_1): Don't handle dcache writes here.
7052
b2b255bd
MF
70532014-03-05 Mike Frysinger <vapier@gentoo.org>
7054
7055 * remote-sim.c (gdbsim_load): Add const to prog.
7056
5d9cf8a4
TT
70572014-03-03 Tom Tromey <tromey@redhat.com>
7058
7059 * elfread.c (probe_key): Change to bfd_data.
7060 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7061 now per-BFD, not per-objfile.
7062 * stap-probe.c (stap_probe_destroy): Update comment.
7063 (handle_stap_probe): Allocate on the per-BFD obstack.
7064
729662a5
TT
70652014-03-03 Tom Tromey <tromey@redhat.com>
7066
7067 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7068 * breakpoint.c (create_longjmp_master_breakpoint): Use
7069 get_probe_address.
7070 (add_location_to_breakpoint, bkpt_probe_insert_location)
7071 (bkpt_probe_remove_location): Update.
7072 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7073 * elfread.c (elf_symfile_relocate_probe): Remove.
7074 (elf_probe_fns): Update.
7075 (insert_exception_resume_breakpoint): Change type of "probe"
7076 parameter to bound_probe.
7077 (check_exception_resume): Update.
7078 * objfiles.c (objfile_relocate1): Don't relocate probes.
7079 * probe.c (bound_probe_s): New typedef.
7080 (parse_probes): Use get_probe_address. Set sal's objfile.
7081 (find_probe_by_pc): Return a bound_probe.
7082 (collect_probes): Return a VEC(bound_probe_s).
7083 (compare_probes): Update.
7084 (gen_ui_out_table_header_info): Change type of "probes"
7085 parameter. Update.
7086 (info_probes_for_ops): Update.
7087 (get_probe_address): New function.
7088 (probe_safe_evaluate_at_pc): Update.
7089 * probe.h (struct probe_ops) <get_probe_address>: New field.
7090 <set_semaphore, clear_semaphore>: Add objfile parameter.
7091 (struct probe) <objfile>: Remove field.
7092 <arch>: New field.
7093 <address>: Update comment.
7094 (struct bound_probe): New.
7095 (find_probe_by_pc): Return a bound_probe.
7096 (get_probe_address): Declare.
7097 * solib-svr4.c (struct probe_and_action) <address>: New field.
7098 (hash_probe_and_action, equal_probe_and_action): Update.
7099 (register_solib_event_probe): Add address parameter.
7100 (solib_event_probe_at): Update.
7101 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7102 get_probe_address.
7103 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7104 (stap_get_probe_address): New function.
7105 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7106 (compile_probe_arg): Update.
7107 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7108 address.
7109 (handle_stap_probe): Don't relocate the probe.
7110 (stap_relocate): Remove.
7111 (stap_gen_info_probes_table_values): Update.
7112 (stap_probe_ops): Remove stap_relocate.
7113 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7114 (debug_sym_probe_fns): Update.
7115 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7116 * symtab.c (init_sal): Use memset.
7117 * symtab.h (struct symtab_and_line) <objfile>: New field.
7118 * tracepoint.c (start_tracing, stop_tracing): Update.
7119
ff887920
TT
71202014-03-03 Tom Tromey <tromey@redhat.com>
7121
7122 * probe.h (parse_probes, find_probe_by_pc)
7123 (find_probes_in_objfile): Fix comments.
7124
f0407826
DE
71252014-03-02 Doug Evans <xdje42@gmail.com>
7126
7127 * infrun.c (handle_signal_stop): Replace test for
7128 TARGET_WAITKIND_STOPPED with an assert.
7129
35e6a711
DE
71302014-03-02 Doug Evans <xdje42@gmail.com>
7131
7132 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7133
667f9d0b
DE
71342014-03-02 Doug Evans <xdje42@gmail.com>
7135
7136 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7137
dc92ace0
MK
71382014-03-01 Mark Kettenis <kettenis@gnu.org>
7139
7140 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7141
a900370f
MK
71422014-03-01 Mark Kettenis <kettenis@gnu.org>
7143
7144 * i386obsd-nat.c: Include "obsd-nat.h".
7145 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7146 add_target.
7147 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7148
b72a7981
MK
71492014-03-01 Mark Kettenis <kettenis@gnu.org>
7150
7151 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7152
96c70aba
MK
71532014-03-01 Mark Kettenis <kettenis@gnu.org>
7154
7155 * mips64obsd-nat.c: Include "obsd-nath".
7156 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7157 add_target
7158 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7159
874a80af
MK
71602014-03-01 Mark Kettenis <kettenis@gnu.org>
7161
8fd408f1
MK
7162 * amd64obsd-nat.c: Include "obsd-nat,h.
7163 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7164 add_target.
874a80af
MK
7165 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7166
9cf95373
SC
71672014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7168
7169 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7170 (find_overload_match): Update call to find_oload_champ.
7171 (find_oload_champ_namespace_loop): Likewise
7172
863e4da4
MK
71732014-02-28 Mark Kettenis <kettenis@gnu.org>
7174
025cac40
MK
7175 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7176
1ed586ce
MK
7177 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7178 * config/sparc/obsd64.mh: New file.
7179 * sparc64obsd-nat.c: New file.
7180
863e4da4
MK
7181 * obsd-nat.h: New file.
7182 * obsd-nat.c: New file.
7183 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7184 (ALLDEPFILES): Add obsd-nat.c.
7185
89de4da4
TT
71862014-02-28 Tom Tromey <tromey@redhat.com>
7187
7188 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7189 * cli-out.h (cli_ui_out_impl): Now const.
7190 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7191 * ui-out.c (struct ui_out) <impl>: Now const.
7192 (default_ui_out_impl): Now const.
7193 (ui_out_new): Make 'impl' parameter const.
7194 * ui-out.h (ui_out_new): Update.
7195
c725e7b6
MK
71962014-02-27 Mark Kettenis <kettenis@gnu.org>
7197
7198 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7199
670b46b3
MK
72002014-02-27 Mark Kettenis <kettenis@gnu.org>
7201
7202 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7203
c91550fc
JK
72042014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7205
7206 Additional PR 8882 fix.
7207 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7208
2fa0369e
PA
72092014-02-27 Pedro Alves <palves@redhat.com>
7210
7211 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7212 isn't set.
7213
d632a097
PA
72142014-02-27 Pedro Alves <palves@redhat.com>
7215
7216 PR 12702
7217 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7218 * nat/linux-waitpid.c: Include string.h.
7219 (status_to_str): Moved here and made extern.
7220 * nat/linux-waitpid.h (status_to_str): New declaration.
7221
2ebd5a35
HZ
72222014-02-27 Hui Zhu <hui@codesourcery.com>
7223
7224 PR 12702
7225 * infrun.c (ptid_match): Move ...
7226 * common/ptid.c (ptid_match): ... here.
7227 * inferior.h (ptid_match): Move ...
7228 * common/ptid.h (ptid_match): ... here.
7229
3cdd631f
MK
72302014-02-27 Mark Kettenis <kettenis@gnu.org>
7231
7232 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7233 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7234 gdb_target_obs.
7235
bee30a64
MK
72362014-02-27 Mark Kettenis <kettenis@gnu.org>
7237
7238 * obsd-tdep.c (obsd_auxv_parse): New function.
7239 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7240
7241 * gdbarch.sh (auxv_parse): New.
7242 * gdbarch.h: Regenerated.
7243 * gdbarch.c: Regenerated.
7244 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7245
7a5a839f
LC
72462014-02-26 Ludovic Courtès <ludo@gnu.org>
7247
7248 * guile/scm-value.c (gdbscm_history_append_x): New function.
7249 (value_functions): Add it.
7250
31aa7e4e
JB
72512014-02-27 Joel Brobecker <brobecker@adacore.com>
7252
7253 * dwarf2read.c (attr_value_as_address): New function.
7254 (dwarf2_find_base_address, read_call_site_scope): Use
7255 attr_value_as_address in place of DW_ADDR.
7256 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7257 the low and high addresses. Slight rework of the handling
7258 of the high pc being a constant form, and limit it to
7259 DWARF verson 4 or higher.
7260 (dwarf2_record_block_ranges): Likewise.
7261 (read_partial_die): Likewise.
7262 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7263
9b333ba3
TT
72642014-02-26 Tom Tromey <tromey@redhat.com>
7265
7266 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7267
5f6cac40
TT
72682014-02-26 Tom Tromey <tromey@redhat.com>
7269
7270 * elfread.c (elf_read_minimal_symbols): Return early if
7271 minimal symbols have already been read. Add "ei" parameter.
7272 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7273 * minsyms.c (prim_record_minimal_symbol_full): Update.
7274 * objfiles.h (struct objstats) <n_minsyms>: Move...
7275 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7276 * symmisc.c (print_objfile_statistics): Update.
7277
2750ef27
TT
72782014-02-26 Tom Tromey <tromey@redhat.com>
7279
7280 * elfread.c (elf_read_minimal_symbols): New function, from
7281 elf_symfile_read.
7282 (elf_symfile_read): Call it.
7283
34643a32
TT
72842014-02-26 Tom Tromey <tromey@redhat.com>
7285
7286 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7287 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7288 (lookup_minimal_symbol_solib_trampoline)
7289 (lookup_minimal_symbol_by_pc_section_1)
7290 (lookup_minimal_symbol_and_objfile): Update.
7291 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7292 Don't allocate a minimal symbol if minsyms have already been read.
7293 (build_minimal_symbol_hash_tables): Update.
7294 (install_minimal_symbols): Do nothing if minsyms already read.
7295 Use the per-BFD obstack.
7296 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7297 * objfiles.c (allocate_objfile): Call
7298 terminate_minimal_symbol_table later.
7299 (have_minimal_symbols): Update.
7300 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7301 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7302 Move from struct objfile.
7303 <minsyms_read>: New field.
7304 (struct objfile) <msymbols, minimal_symbol_count,
7305 msymbol_hash, msymbol_demangled_hash>: Move.
7306 (ALL_OBJFILE_MSYMBOLS): Update.
7307 * symfile.c (read_symbols): Set minsyms_read.
7308 (reread_symbols): Update.
7309 * symmisc.c (dump_objfile, dump_msymbols): Update.
7310
2273f0ac
TT
73112014-02-26 Tom Tromey <tromey@redhat.com>
7312
7313 * minsyms.c (msymbols_sort): Remove.
7314 * minsyms.h (msymbols_sort): Remove.
7315 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7316 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7317 * elfread.c (elf_symtab_read): Don't add section offsets.
7318 * xcoffread.c (record_minimal_symbol): Don't add section offset
7319 to minimal symbol address.
7320 * somread.c (text_offset, data_offset): Remove.
7321 (som_symtab_read): Don't add section offsets to minimal symbol
7322 addresses.
7323 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7324 Don't add section offsets to minimal symbols.
7325 * coffread.c (coff_symtab_read): Don't add section offsets
7326 to minimal symbol addresses.
7327 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7328 to minimal symbol addresses.
7329 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7330 section offset to minimal symbol addresses.
7331 * mdebugread.c (parse_partial_symbols): Don't add section
7332 offset to minimal symbol addresses.
7333 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7334 offset to minimal symbol addresses.
7335
77e371c0
TT
73362014-02-26 Tom Tromey <tromey@redhat.com>
7337
7338 * ada-lang.c (ada_main_name): Update.
7339 (ada_add_standard_exceptions): Update.
7340 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7341 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7342 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7343 * auxv.c (ld_so_xfer_auxv): Update.
7344 * avr-tdep.c (avr_scan_prologue): Update.
7345 * ax-gdb.c (gen_var_ref): Update.
7346 * blockframe.c (get_pc_function_start)
7347 (find_pc_partial_function_gnu_ifunc): Update.
7348 * breakpoint.c (create_overlay_event_breakpoint)
7349 (create_longjmp_master_breakpoint)
7350 (create_std_terminate_master_breakpoint)
7351 (create_exception_master_breakpoint): Update.
7352 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7353 * c-valprint.c (c_val_print): Update.
7354 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7355 * common/agent.c (agent_look_up_symbols): Update.
7356 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7357 * dwarf2loc.c (call_site_to_target_addr): Update.
7358 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7359 * elfread.c (elf_gnu_ifunc_record_cache)
7360 (elf_gnu_ifunc_resolve_by_got): Update.
7361 * findvar.c (default_read_var_value): Update.
7362 * frame.c (inside_main_func): Update.
7363 * frv-tdep.c (frv_frame_this_id): Update.
7364 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7365 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7366 Update.
7367 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7368 (hppa_hpux_find_dummy_bpaddr): Update.
7369 * hppa-tdep.c (hppa_symbol_address): Update.
7370 * infcmd.c (until_next_command): Update.
7371 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7372 Update.
7373 * linespec.c (minsym_found, add_minsym): Update.
7374 * linux-nat.c (get_signo): Update.
7375 * linux-thread-db.c (inferior_has_bug): Update.
7376 * m32c-tdep.c (m32c_return_value)
7377 (m32c_m16c_address_to_pointer): Update.
7378 * m32r-tdep.c (m32r_frame_this_id): Update.
7379 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7380 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7381 * maint.c (maintenance_translate_address): Update.
7382 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7383 (frob_address): New function.
7384 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7385 frob_address. Rename parameter to "pc_in".
7386 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7387 addresses.
7388 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7389 Update.
7390 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7391 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7392 * objc-lang.c (find_objc_msgsend): Update.
7393 * objfiles.c (objfile_relocate1): Update.
7394 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7395 * p-valprint.c (pascal_val_print): Update.
7396 * parse.c (write_exp_msymbol): Update.
7397 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7398 (ppc_elfv2_skip_entrypoint): Update.
7399 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7400 * printcmd.c (build_address_symbolic, msym_info)
7401 (address_info): Update.
7402 * proc-service.c (ps_pglobal_lookup): Update.
7403 * psymtab.c (find_pc_sect_psymtab_closer)
7404 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7405 Change msymbol parameter to bound_minimal_symbol.
7406 * ravenscar-thread.c (get_running_thread_id): Update.
7407 * remote.c (remote_check_symbols): Update.
7408 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7409 address.
7410 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7411 * solib-dsbt.c (lm_base): Update.
7412 * solib-frv.c (lm_base, main_got): Update.
7413 * solib-irix.c (locate_base): Update.
7414 * solib-som.c (som_solib_create_inferior_hook)
7415 (link_map_start): Update.
7416 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7417 * solib-svr4.c (elf_locate_base, enable_break): Update.
7418 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7419 (flush_ea_cache): Update.
7420 * stabsread.c (define_symbol, scan_file_globals): Update.
7421 * stack.c (find_frame_funname): Update.
7422 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7423 (debug_qf_find_pc_sect_symtab): Update.
7424 * symfile.c (simple_read_overlay_table)
7425 (simple_overlay_update): Update.
7426 * symfile.h (struct quick_symbol_functions)
7427 <find_pc_sect_symtab>: Change type of msymbol to
7428 bound_minimal_symbol.
7429 * symmisc.c (dump_msymbols): Update.
7430 * symtab.c (find_pc_sect_symtab_via_partial)
7431 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7432 (search_symbols, print_msymbol_info): Update.
7433 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7434 (MSYMBOL_VALUE_ADDRESS): Redefine.
7435 (BMSYMBOL_VALUE_ADDRESS): New macro.
7436 * tracepoint.c (scope_info): Update.
7437 * tui/tui-disasm.c (tui_find_disassembly_address)
7438 (tui_get_begin_asm_address): Update.
7439 * valops.c (find_function_in_inferior): Update.
7440 * value.c (value_static_field, value_fn_field): Update.
7441
3b7344d5
TT
74422014-02-26 Tom Tromey <tromey@redhat.com>
7443
7444 * ada-lang.c (ada_update_initial_language): Update.
7445 (ada_main_name, ada_has_this_exception_support): Update.
7446 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7447 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7448 * arm-tdep.c (arm_skip_stub): Update.
7449 * auxv.c (ld_so_xfer_auxv): Update.
7450 * avr-tdep.c (avr_scan_prologue): Update.
7451 * ax-gdb.c (gen_var_ref): Update.
7452 * breakpoint.c (struct breakpoint_objfile_data)
7453 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7454 type to bound_minimal_symbol.
7455 (create_overlay_event_breakpoint)
7456 (create_longjmp_master_breakpoint)
7457 (create_std_terminate_master_breakpoint)
7458 (create_exception_master_breakpoint): Update.
7459 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7460 * c-exp.y (classify_name): Update.
7461 * coffread.c (coff_symfile_read): Update.
7462 * common/agent.c (agent_look_up_symbols): Update.
7463 * d-lang.c (d_main_name): Update.
7464 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7465 * dec-thread.c (enable_dec_thread): Update.
7466 * dwarf2loc.c (call_site_to_target_addr): Update.
7467 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7468 * eval.c (evaluate_subexp_standard): Update.
7469 * findvar.c (struct minsym_lookup_data) <result>: Change type
7470 to bound_minimal_symbol.
7471 <objfile>: Remove.
7472 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7473 * frame.c (inside_main_func): Update.
7474 * frv-tdep.c (frv_frame_this_id): Update.
7475 * gcore.c (call_target_sbrk): Update.
7476 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7477 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7478 Update.
7479 * go-lang.c (go_main_name): Update.
7480 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7481 (hppa_hpux_find_import_stub_for_addr): Update.
7482 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7483 Update. Change return type.
7484 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7485 type.
7486 * jit.c (jit_breakpoint_re_set_internal): Update.
7487 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7488 Update.
7489 * linux-nat.c (get_signo): Update.
7490 * linux-thread-db.c (inferior_has_bug): Update
7491 * m32c-tdep.c (m32c_return_value)
7492 (m32c_m16c_address_to_pointer): Update.
7493 * m32r-tdep.c (m32r_frame_this_id): Update.
7494 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7495 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7496 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7497 lookup_minimal_symbol. Change return type.
7498 (lookup_minimal_symbol): Remove.
7499 (lookup_bound_minimal_symbol): Update.
7500 (lookup_minimal_symbol_text): Change return type.
7501 (lookup_minimal_symbol_solib_trampoline): Change return type.
7502 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7503 (lookup_minimal_symbol_solib_trampoline): Change return type.
7504 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7505 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7506 (value_nsstring, find_imps): Update.
7507 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7508 * p-lang.c (pascal_main_name): Update.
7509 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7510 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7511 * proc-service.c (ps_pglobal_lookup): Update.
7512 * ravenscar-thread.c (get_running_thread_msymbol): Change
7513 return type.
7514 (has_ravenscar_runtime, get_running_thread_id): Update.
7515 * remote.c (remote_check_symbols): Update.
7516 * sol-thread.c (ps_pglobal_lookup): Update.
7517 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7518 * solib-dsbt.c (lm_base): Update.
7519 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7520 Update.
7521 * solib-irix.c (locate_base): Update.
7522 * solib-som.c (som_solib_create_inferior_hook)
7523 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7524 Update.
7525 * solib-spu.c (spu_enable_break): Update.
7526 * solib-svr4.c (elf_locate_base, enable_break): Update.
7527 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7528 (flush_ea_cache): Update.
7529 * stabsread.c (define_symbol): Update.
7530 * symfile.c (simple_read_overlay_table): Update.
7531 * symtab.c (find_pc_sect_line): Update.
7532 * tracepoint.c (scope_info): Update.
7533 * tui-disasm.c (tui_get_begin_asm_address): Update.
7534 * value.c (value_static_field): Update.
7535
40c1a007
TT
75362014-02-26 Tom Tromey <tromey@redhat.com>
7537
7538 * minsyms.c (prim_record_minimal_symbol_full): Use
7539 SET_MSYMBOL_VALUE_ADDRESS.
7540 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7541 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7542 SET_MSYMBOL_VALUE_ADDRESS.
7543 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7544 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7545
efd66ac6
TT
75462014-02-26 Tom Tromey <tromey@redhat.com>
7547
7548 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7549 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7550 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7551 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7552 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7553 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7554 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7555 * ada-lang.c (ada_main_name): Update.
7556 (ada_lookup_simple_minsym): Update.
7557 (ada_make_symbol_completion_list): Update.
7558 (ada_add_standard_exceptions): Update.
7559 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7560 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7561 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7562 * arm-tdep.c (skip_prologue_function): Update.
7563 (arm_skip_stack_protector, arm_skip_stub): Update.
7564 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7565 (arm_wince_skip_main_prologue): Update.
7566 * auxv.c (ld_so_xfer_auxv): Update.
7567 * avr-tdep.c (avr_scan_prologue): Update.
7568 * ax-gdb.c (gen_var_ref): Update.
7569 * block.c (call_site_for_pc): Update.
7570 * blockframe.c (get_pc_function_start): Update.
7571 (find_pc_partial_function_gnu_ifunc): Update.
7572 * breakpoint.c (create_overlay_event_breakpoint): Update.
7573 (create_longjmp_master_breakpoint): Update.
7574 (create_std_terminate_master_breakpoint): Update.
7575 (create_exception_master_breakpoint): Update.
7576 (resolve_sal_pc): Update.
7577 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7578 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7579 Update.
7580 * c-valprint.c (c_val_print): Update.
7581 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7582 * coffread.c (coff_symfile_read): Update.
7583 * common/agent.c (agent_look_up_symbols): Update.
7584 * dbxread.c (find_stab_function_addr): Update.
7585 (end_psymtab): Update.
7586 * dwarf2loc.c (call_site_to_target_addr): Update.
7587 (func_verify_no_selftailcall): Update.
7588 (tailcall_dump): Update.
7589 (call_site_find_chain_1): Update.
7590 (dwarf_expr_reg_to_entry_parameter): Update.
7591 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7592 (elf_gnu_ifunc_resolve_by_got): Update.
7593 * f-valprint.c (info_common_command): Update.
7594 * findvar.c (read_var_value): Update.
7595 * frame.c (get_prev_frame_1): Update.
7596 (inside_main_func): Update.
7597 * frv-tdep.c (frv_skip_main_prologue): Update.
7598 (frv_frame_this_id): Update.
7599 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7600 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7601 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7602 (gnuv3_skip_trampoline): Update.
7603 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7604 (hppa64_hpux_in_solib_call_trampoline): Update.
7605 (hppa_hpux_skip_trampoline_code): Update.
7606 (hppa64_hpux_search_dummy_call_sequence): Update.
7607 (hppa_hpux_find_import_stub_for_addr): Update.
7608 (hppa_hpux_find_dummy_bpaddr): Update.
7609 * hppa-tdep.c (hppa_symbol_address)
7610 (hppa_lookup_stub_minimal_symbol): Update.
7611 * i386-tdep.c (i386_skip_main_prologue): Update.
7612 (i386_pe_skip_trampoline_code): Update.
7613 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7614 * infcall.c (get_function_name): Update.
7615 * infcmd.c (until_next_command): Update.
7616 * jit.c (jit_breakpoint_re_set_internal): Update.
7617 (jit_inferior_init): Update.
7618 * linespec.c (minsym_found): Update.
7619 (add_minsym): Update.
7620 * linux-fork.c (info_checkpoints_command): Update.
7621 * linux-nat.c (get_signo): Update.
7622 * linux-thread-db.c (inferior_has_bug): Update.
7623 * m32c-tdep.c (m32c_return_value): Update.
7624 (m32c_m16c_address_to_pointer): Update.
7625 (m32c_m16c_pointer_to_address): Update.
7626 * m32r-tdep.c (m32r_frame_this_id): Update.
7627 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7628 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7629 * maint.c (maintenance_translate_address): Update.
7630 * minsyms.c (add_minsym_to_hash_table): Update.
7631 (add_minsym_to_demangled_hash_table): Update.
7632 (msymbol_objfile): Update.
7633 (lookup_minimal_symbol): Update.
7634 (iterate_over_minimal_symbols): Update.
7635 (lookup_minimal_symbol_text): Update.
7636 (lookup_minimal_symbol_by_pc_name): Update.
7637 (lookup_minimal_symbol_solib_trampoline): Update.
7638 (lookup_minimal_symbol_by_pc_section_1): Update.
7639 (lookup_minimal_symbol_and_objfile): Update.
7640 (prim_record_minimal_symbol_full): Update.
7641 (compare_minimal_symbols): Update.
7642 (compact_minimal_symbols): Update.
7643 (build_minimal_symbol_hash_tables): Update.
7644 (install_minimal_symbols): Update.
7645 (terminate_minimal_symbol_table): Update.
7646 (find_solib_trampoline_target): Update.
7647 (minimal_symbol_upper_bound): Update.
7648 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7649 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7650 (mips_skip_pic_trampoline_code): Update.
7651 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7652 * objc-lang.c (selectors_info): Update.
7653 (classes_info): Update.
7654 (find_methods): Update.
7655 (find_imps): Update.
7656 (find_objc_msgsend): Update.
7657 * objfiles.c (objfile_relocate1): Update.
7658 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7659 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7660 * p-valprint.c (pascal_val_print): Update.
7661 * parse.c (write_exp_msymbol): Update.
7662 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7663 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7664 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7665 * printcmd.c (build_address_symbolic): Update.
7666 (sym_info): Update.
7667 (address_info): Update.
7668 * proc-service.c (ps_pglobal_lookup): Update.
7669 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7670 (find_pc_sect_psymtab): Update.
7671 * python/py-framefilter.c (py_print_frame): Update.
7672 * ravenscar-thread.c (get_running_thread_id): Update.
7673 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7674 Update.
7675 * remote.c (remote_check_symbols): Update.
7676 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7677 (rs6000_skip_trampoline_code): Update.
7678 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7679 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7680 * solib-dsbt.c (lm_base): Update.
7681 * solib-frv.c (lm_base): Update.
7682 (main_got): Update.
7683 * solib-irix.c (locate_base): Update.
7684 * solib-som.c (som_solib_create_inferior_hook): Update.
7685 (som_solib_desire_dynamic_linker_symbols): Update.
7686 (link_map_start): Update.
7687 * solib-spu.c (spu_enable_break): Update.
7688 (ocl_enable_break): Update.
7689 * solib-svr4.c (elf_locate_base): Update.
7690 (enable_break): Update.
7691 * spu-tdep.c (spu_get_overlay_table): Update.
7692 (spu_catch_start): Update.
7693 (flush_ea_cache): Update.
7694 * stabsread.c (define_symbol): Update.
7695 (scan_file_globals): Update.
7696 * stack.c (find_frame_funname): Update.
7697 (frame_info): Update.
7698 * symfile.c (simple_read_overlay_table): Update.
7699 (simple_overlay_update): Update.
7700 * symmisc.c (dump_msymbols): Update.
7701 * symtab.c (fixup_section): Update.
7702 (find_pc_sect_line): Update.
7703 (skip_prologue_sal): Update.
7704 (search_symbols): Update.
7705 (print_msymbol_info): Update.
7706 (rbreak_command): Update.
7707 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7708 (completion_list_objc_symbol): Update.
7709 (default_make_symbol_completion_list_break_on): Update.
7710 * tracepoint.c (scope_info): Update.
7711 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7712 (tui_get_begin_asm_address): Update.
7713 * valops.c (find_function_in_inferior): Update.
7714 * value.c (value_static_field): Update.
7715 (value_fn_field): Update.
7716
50e65b17
TT
77172014-02-26 Tom Tromey <tromey@redhat.com>
7718
7719 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7720 bound minimal symbols. Move code that knows about minsym
7721 table layout...
7722 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7723 function.
7724 * minsyms.h (minimal_symbol_upper_bound): Declare.
7725 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7726 minimal_symbol_upper_bound.
7727
1b588015
JB
77282014-02-27 Joel Brobecker <brobecker@adacore.com>
7729
7730 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7731 Use the type's name if its basic type does not have a tag.
7732
dbb9c2b1
JB
77332014-02-27 Joel Brobecker <brobecker@adacore.com>
7734
7735 * dwarf2read.c (read_subrange_type): Add comment.
7736
55426c9d
JB
77372014-02-27 Joel Brobecker <brobecker@adacore.com>
7738
7739 * dwarf2read.c (update_enumeration_type_from_children): New
7740 function, mostly extracted from process_structure_scope.
7741 (read_enumeration_type): Call update_enumeration_type_from_children.
7742 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7743 and flag_flag_enum fields.
7744
f2fce0ca
PA
77452014-02-26 Pedro Alves <palves@redhat.com>
7746
7747 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7748 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7749 to_xfer_partial method.
7750
7a44e40e
PA
77512014-02-26 Pedro Alves <palves@redhat.com>
7752
7753 * target.c (complete_target_initialization): Don't install
7754 default_xfer_partial as to_xfer_partial hook.
7755 (nomemory): Delete.
7756 (update_current_target): Don't INHERIT nor de_fault
7757 deprecated_xfer_memory. Delete de_fault macro.
7758 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7759 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7760 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7761 field.
7762
bd265cd0
PA
77632014-02-26 Pedro Alves <palves@redhat.com>
7764
7765 * go32-nat.c (my_write_child): New function.
7766 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7767 (go32_xfer_partial): New function.
7768 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7769 Instead install a to_xfer_partial hook.
7770
9d46c4e5
PA
77712014-02-26 Pedro Alves <palves@redhat.com>
7772
7773 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7774 to_xfer_partial helper. Rewrite.
7775 (procfs_xfer_partial): New function.
7776 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7777 Install a to_xfer_partial hook.
7778
a1583b1f
PA
77792014-02-26 Pedro Alves <palves@redhat.com>
7780
7781 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7782 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7783 (m32r_xfer_partial): New function.
7784 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7785 Install a to_xfer_partial hook.
7786
6df1b29f
PA
77872014-02-26 Pedro Alves <palves@redhat.com>
7788
7789 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7790 helper.
7791 (mips_xfer_partial): New function.
7792 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7793 hook. Install a to_xfer_partial hook.
7794
dc53a7ad
JB
77952014-02-26 Joel Brobecker <brobecker@adacore.com>
7796
7797 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7798 * gdbtypes.c (create_array_type_with_stride): New function,
7799 renaming create_array_type, but with an added parameter
7800 called "bit_stride".
7801 (create_array_type): Re-implement using
7802 create_array_type_with_stride.
7803 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7804 and DW_AT_bit_stride attributes.
7805
12ab52e9
PA
78062014-02-26 Pedro Alves <palves@redhat.com>
7807
7808 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7809 task-specific breakpoints.
7810
d16461ae
PA
78112014-02-25 Pedro Alves <palves@redhat.com>
7812
7813 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7814 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7815
a8b16220
SS
78162014-02-25 Stan Shebs <stan@codesourcery.com>
7817
7818 * defs.h: Annotate comments for Doxygen.
7819
b9e795ee
TT
78202014-02-25 Tom Tromey <tromey@redhat.com>
7821
7822 * target.h (target_ignore): Don't declare.
7823 * target.c (target_ignore): Remove.
7824
849c862e
JK
78252014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7826
7827 PR gdb/16626
7828 * auto-load.c (auto_load_objfile_script_1): Change filename to
7829 debugfile.
7830
475109d8
JB
78312014-02-25 Joel Brobecker <brobecker@adacore.com>
7832
7833 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7834 documentation. Adjust prototype to match the target_ops
7835 to_xfer_partial method. Adjust implementation accordingly.
7836
e186c3bd
HZ
78372014-02-25 Hui Zhu <hui@codesourcery.com>
7838
7839 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7840 to_traceframe_info.
7841
6d451942
KB
78422014-02-25 Kevin Buettner <kevinb@redhat.com>
7843
041ab8b4 7844 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7845 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7846 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7847 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7848 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7849 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7850 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7851 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7852 New constants.
7853 (rl78_register_type): Use a data pointer type for SP and
7854 new pseudo registers mentioned above. Use a 16 bit integer
7855 type for all other register pairs.
7856 (rl78_register_name, rl78_g10_register_name): Update for
7857 new pseudo registers.
7858 (rl78_pseudo_register_read): Likewise.
7859 (rl78_pseudo_register_write): Likewise.
7860 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7861 to the newly added pseudo registers.
7862
eddf0bae
DE
78632014-02-24 Doug Evans <dje@google.com>
7864
7865 * value.c (record_latest_value): Fix comment.
7866 * printcmd.c (print_command_1): Remove code to handle -1 return from
7867 record_latest_value.
7868
e96027e0
PA
78692014-02-24 Pedro Alves <palves@redhat.com>
7870
7871 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7872 deprecated_xfer_memory hook.
7873 (procfs_xfer_partial): Call procfs_xfer_memory instead
7874 of the deprecated_xfer_memory target hook.
7875 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7876 helper.
7877
0837c976
YZ
78782014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7879
7880 * windows-nat.c (windows_xfer_shared_libraries): Return
7881 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7882 requested object is TARGET_OBJECT_LIBRARIES.
7883
bc113b4e
YQ
78842014-02-24 Yao Qi <yao@codesourcery.com>
7885
7886 * target.h (enum target_xfer_status)
7887 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7888 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7889 explicitly. New.
7890 * corefile.c (memory_error_message): User updated.
7891 * exec.c (section_table_read_available_memory): Likewise.
7892 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7893 * target.c (target_xfer_status_to_string): Likewise.
7894 (raw_memory_xfer_partial): Likewise.
7895 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7896 * valops.c (read_value_memory): Likewise.
7897 * exec.h: Update comments.
7898
01cb8804
YQ
78992014-02-24 Yao Qi <yao@codesourcery.com>
7900
7901 * target.c (target_xfer_status_to_string): Rename argument err
7902 to status.
7903 * target.h (target_xfer_status_to_string): Update declaration.
7904 Replace target_xfer_error_to_string with
7905 target_xfer_status_to_string in comment.
7906
93063aa6
YQ
79072014-02-24 Yao Qi <yao@codesourcery.com>
7908
7909 * mips-linux-nat.c (super_close): Update its type.
7910 (mips_linux_close): Pass 'self' to super_close.
7911
5c328c05
YQ
79122014-02-24 Yao Qi <yao@codesourcery.com>
7913
7914 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7915 * corefile.c (read_memory): Adjusted.
7916 * target.c (target_write_with_progress): Adjusted.
7917
f73023dd
YQ
79182014-02-23 Yao Qi <yao@codesourcery.com>
7919
7920 Revert two patches:
7921
7922 2013-10-25 Yao Qi <yao@codesourcery.com>
7923
7924 * remote.c (remote_traceframe_info): Return early if
7925 traceframe is not selected.
7926
7927 2013-07-19 Yao Qi <yao@codesourcery.com>
7928
7929 * target.c (update_current_target): Change the default action
7930 of 'to_traceframe_info' from tcomplain to return_zero.
7931 * target.h (struct target_ops) <to_traceframe_info>: Add more
7932 comments.
7933
5a2eb0ef
YQ
79342014-02-23 Yao Qi <yao@codesourcery.com>
7935
7936 * valops.c (read_value_memory): Rewrite it. Call
7937 target_xfer_partial in a loop.
7938 * exec.h (section_table_available_memory): Remove declaration.
7939 Move comments to ...
7940 * exec.c (section_table_available_memory): ... here. Make it
7941 static.
7942
1ee79381
YQ
79432014-02-23 Yao Qi <yao@codesourcery.com>
7944
7945 * exec.c (section_table_read_available_memory): New function.
7946 * exec.h (section_table_read_available_memory): Declare.
7947 * ctf.c (ctf_xfer_partial): Call
7948 section_table_read_available_memory.
7949 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7950
1ca49d37
YQ
79512014-02-23 Yao Qi <yao@codesourcery.com>
7952
7953 * ctf.c (ctf_xfer_partial): Move code to ...
7954 * exec.c (exec_read_partial_read_only): ... it. New function.
7955 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7956 * tracefile.c: Include "exec.h".
7957 * exec.h (exec_read_partial_read_only): Declare.
7958
a283690e
YQ
79592014-02-23 Yao Qi <yao@codesourcery.com>
7960
7961 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7962 (tfile_has_memory): Remove.
7963 (init_tfile_ops): Don't set fields to_has_all_memory and
7964 to_has_memory of tfile_ops.
7965 * tracefile.c (tracefile_has_all_memory): New function.
7966 (tracefile_has_memory): New function.
7967 (init_tracefile_ops): Initialize fields to_has_all_memory and
7968 to_has_memory of 'ops'.
7969
12e03cd0
YQ
79702014-02-23 Yao Qi <yao@codesourcery.com>
7971
7972 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7973 (ctf_thread_alive, ctf_get_trace_status): Remove.
7974 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7975 init_tracefile_ops.
7976 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7977 (tfile_has_stack, tfile_has_registers): Remove.
7978 (tfile_thread_alive): Remove.
7979 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7980 init_tracefile_ops.
7981 * tracefile.c (tracefile_has_stack): New function.
7982 (tracefile_has_registers): New function.
7983 (tracefile_thread_alive): New function.
7984 (tracefile_get_trace_status): New function.
7985 (init_tracefile_ops): New function.
7986 * tracefile.h (init_tracefile_ops): Declare.
7987
11395323
YQ
79882014-02-23 Yao Qi <yao@codesourcery.com>
7989
7990 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7991 (O_LARGEFILE): Likewise.
7992 (tfile_ops): Likewise.
7993 (TRACE_HEADER_SIZE): Likewise.
7994 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7995 (cur_data_size): Likewise.
7996 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7997 (tfile_close, tfile_files_info): Likewise.
7998 (tfile_get_trace_status): Likewise.
7999 (tfile_get_tracepoint_status): Likewise.
8000 (tfile_get_traceframe_address): Likewise.
8001 (tfile_trace_find, match_blocktype): Likewise.
8002 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8003 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8004 (tfile_get_trace_state_variable_value): Likewise.
8005 (tfile_has_all_memory, tfile_has_memory): Likewise.
8006 (tfile_has_stack, tfile_has_registers): Likewise.
8007 (tfile_thread_alive, build_traceframe_info): Likewise.
8008 (tfile_traceframe_info, init_tfile_ops): Likewise.
8009 (_initialize_tracepoint): Don't call init_tfile_ops
8010 and add_target_with_completer.
8011 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8012 exec.h, completer.h and filenames.h.
8013 (_initialize_tracefile_tfile): New function.
8014
7951c4eb
YQ
80152014-02-23 Yao Qi <yao@codesourcery.com>
8016
8017 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8018 tracefile-tfile.o.
8019 (HFILES_NO_SRCDIR): Add tracefile.h.
8020 * ctf.c: Include "tracefile.h".
8021 * tracefile.h: New file.
8022 * tracefile.c: New file
8023 * tracefile-tfile.c: New file.
8024 * tracepoint.c: Include "tracefile.h".
8025 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8026 (stop_reason_names): Add const.
8027 (trace_file_writer_xfree): Move it to tracefile.c.
8028 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8029 (trace_save_ctf): Likewise.
8030 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8031 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8032 (tfile_write_header, tfile_write_regblock_type): Likewise.
8033 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8034 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8035 (tfile_write_raw_data, tfile_end): Likewise.
8036 (tfile_trace_file_writer_new): Likewise.
8037 (free_uploaded_tp): Make it extern.
8038 (free_uploaded_tsv): Make it extern.
8039 (_initialize_tracepoint): Move code to register command 'tsave'
8040 to tracefile.c.
8041 * tracepoint.h (stop_reason_names): Declare.
8042 (struct trace_frame_write_ops): Move it to tracefile.h.
8043 (struct trace_file_write_ops): Likewise.
8044 (struct trace_file_writer): Likewise.
8045 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8046
184cd072
JK
80472014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8048
8049 PR gdb/16594
8050 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8051 process name.
8052 (get_cores_used_by_process): New parameter num_cores, use it.
8053 (linux_xfer_osdata_processes): Pass num_cores to it.
8054 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8055 process name.
8056
c63528fc
AK
80572014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8058
8059 * target.c (memory_xfer_partial): Fix length arg in call to
8060 breakpoint_xfer_memory.
8061
d7b30f67
SDJ
80622014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8063
8064 PR tdep/16397
8065 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8066 number comes after the + or - signs. Adjust length of register
8067 name to be extracted.
8068
8838afaf
TT
80692014-02-20 Tom Tromey <tromey@redhat.com>
8070
8071 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8072 (ada_varobj_ops): Mark "extern".
8073
05227d14
TT
80742014-02-20 Tom Tromey <tromey@redhat.com>
8075
8076 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8077
1254eefc
DE
80782014-02-20 Doug Evans <xdje42@gmail.com>
8079
8080 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8081 All callers updated.
8082 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8083 All callers updated.
8084 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8085 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8086
adde2bff
DE
80872014-02-20 lin zuojian <manjian2006@gmail.com>
8088 Joel Brobecker <brobecker@adacore.com>
8089 Doug Evans <xdje42@gmail.com>
8090
8091 PR symtab/16581
8092 * dwarf2read.c (struct die_info): New member in_process.
8093 (reset_die_in_process): New function.
8094 (process_die): Set it at the start, reset when returning.
8095 (inherit_abstract_dies): Only call process_die if origin_child_die
8096 not already being processed.
8097
3be75f87
JB
80982014-02-20 Joel Brobecker <brobecker@adacore.com>
8099
8100 * windows-nat.c (handle_unload_dll): Add function documentation.
8101 (do_initial_windows_stuff): Add comment explaining why we wait
8102 until after inferior initialization has finished before
8103 processing all DLLs.
8104
47f7ffdb
JB
81052014-02-20 Joel Brobecker <brobecker@adacore.com>
8106
8107 * windows-nat.c (get_module_name): Delete.
8108 (windows_get_exec_module_filename): New function, mostly
8109 inspired from get_module_name.
8110 (windows_pid_to_exec_file): Replace call to get_module_name
8111 by call to windows_get_exec_module_filename.
8112
1cd9feab
JB
81132014-02-20 Joel Brobecker <brobecker@adacore.com>
8114
8115 * windows-nat.c (handle_load_dll): Rewrite this function's
8116 introductory comment. Remove code using get_module_name
8117 to get the DLL's name.
8118
ea39ad35
JB
81192014-02-20 Joel Brobecker <brobecker@adacore.com>
8120
8121 * windows-nat.c (get_windows_debug_event): Ignore
8122 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8123 if windows_initialization_done == 0.
8124 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8125 Adjust implementation to always load all DLLs.
8126 (do_initial_windows_stuff): Replace call to
8127 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8128
95060284
JB
81292014-02-20 Joel Brobecker <brobecker@adacore.com>
8130
8131 * windows-nat.c (_initialize_windows_nat): Deprecate the
8132 "dll-symbols" command. Turn the "add-shared-symbol-files"
8133 and "assf" aliases into commands, and deprecate them as well.
8134 * NEWS: Add entry explaining that "dll-symbols" and its two
8135 aliases are now deprecated.
8136
8d4fdb12
JB
81372014-02-20 Joel Brobecker <brobecker@adacore.com>
8138
8139 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8140 new-line in debug string. Remove trailing spaces.
8141
1b281443
SS
81422014-02-19 Stan Shebs <stan@codesourcery.com>
8143
8144 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8145
f7bd0f78
SC
81462014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8147
8148 * NEWS: Add entry for the new feature
8149 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8150 and class values.
8151
399ebc3d
SS
81522014-02-19 Stan Shebs <stan@codesourcery.com>
8153
8154 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8155
c658158d
PA
81562014-02-19 Pedro Alves <palves@redhat.com>
8157
8158 * common/ptid.h (struct ptid): Mention that process_stratum
8159 targets should prefer ptid.lwp.
8160
ba348170
PA
81612014-02-19 Pedro Alves <palves@redhat.com>
8162
8163 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8164 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8165 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8166 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8167 store remote thread ids rather than ptid.tid.
8168 (_initialize_remote): Adjust.
8169
ac01945b
TT
81702014-02-19 Tom Tromey <tromey@redhat.com>
8171
8172 * target.c (target_get_unwinder): Rewrite.
8173 (target_get_tailcall_unwinder): Rewrite.
8174 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8175 (record_btrace_to_get_tailcall_unwinder): New function.
8176 (init_record_btrace_ops): Update.
8177 * target.h (struct target_ops) <to_get_unwinder,
8178 to_get_tailcall_unwinder>: Now function pointers. Use
8179 TARGET_DEFAULT_RETURN.
8180
8476dc92
TT
81812014-02-19 Tom Tromey <tromey@redhat.com>
8182
8183 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8184 argument.
8185 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8186
c0eca49f
TT
81872014-02-19 Tom Tromey <tromey@redhat.com>
8188
8189 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8190 directly.
8191 * target-delegates.c: Rebuild.
8192 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8193 TARGET_DEFAULT_FUNC.
8194 * target.c (default_target_decr_pc_after_break): Rename from
8195 forward_target_decr_pc_after_break. Simplify.
8196 (target_decr_pc_after_break): Rely on delegation.
8197
596b6b39
TT
81982014-02-19 Tom Tromey <tromey@redhat.com>
8199
8200 * target.c (update_current_target): Do not INHERIT to_doc or
8201 to_magic. Do not de_fault to_open or to_close.
8202
b427c1bc
TT
82032014-02-19 Tom Tromey <tromey@redhat.com>
8204
8205 * gcore.h (objfile_find_memory_regions): Declare.
8206 * gcore.c (objfile_find_memory_regions): No longer static. Add
8207 "self" argument.
8208 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8209 * exec.c: Include gcore.h.
8210 (exec_set_find_memory_regions): Remove.
8211 (exec_find_memory_regions): Remove.
8212 (exec_do_find_memory_regions): Remove.
8213 (init_exec_ops): Update.
8214 * defs.h (exec_set_find_memory_regions): Remove.
8215
9b144037
TT
82162014-02-19 Tom Tromey <tromey@redhat.com>
8217
8218 * target-delegates.c: Rebuild.
8219 * target.h (struct target_ops) <to_extra_thread_info,
8220 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8221 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8222 not 0, in TARGET_DEFAULT_RETURN.
8223
555bbdeb
TT
82242014-02-19 Tom Tromey <tromey@redhat.com>
8225
8226 * target.c (complete_target_initialization): Remove casts. Use
8227 return_zero_has_execution.
8228 (return_zero): Add "ignore" argument.
8229 (return_zero_has_execution): New function.
8230 (init_dummy_target): Remove casts. Use
8231 return_zero_has_execution.
8232
be4ddd36
TT
82332014-02-19 Tom Tromey <tromey@redhat.com>
8234
8235 * target.c (update_current_target): Update comments. Do not
8236 INHERIT to_stratum.
8237
2117c711
TT
82382014-02-19 Tom Tromey <tromey@redhat.com>
8239
8240 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8241 needed.
8242 * corelow.c (core_read_description): Delegate when needed.
8243 * remote.c (remote_read_description): Delegate when needed.
8244 * target-delegates.c: Rebuild.
8245 * target.c (target_read_description): Rewrite.
8246 * target.h (struct target_ops) <to_read_description>: Update
8247 comment. Use TARGET_DEFAULT_RETURN.
8248
e88ef65c
TT
82492014-02-19 Tom Tromey <tromey@redhat.com>
8250
8251 * target-delegates.c: Rebuild.
8252 * target.c (update_current_target): Don't inherit or default
8253 to_can_run.
8254 (find_default_run_target): Check against delegate_can_run.
8255 * target.h (struct target_ops) <to_can_run>: Use
8256 TARGET_DEFAULT_RETURN.
8257
86a0854a
TT
82582014-02-19 Tom Tromey <tromey@redhat.com>
8259
8260 * target-delegates.c: Rebuild.
8261 * target.c (target_disconnect): Unconditionally delegate.
8262 * target.h (struct target_ops) <to_disconnect>: Use
8263 TARGET_DEFAULT_NORETURN.
8264
ee97f592
TT
82652014-02-19 Tom Tromey <tromey@redhat.com>
8266
8267 * record.c (record_stop): Unconditionally delegate.
8268 * target-delegates.c: Rebuild.
8269 * target.c (target_stop_recording): Unconditionally delegate.
8270 * target.h (struct target_ops) <to_stop_recording>: Use
8271 TARGET_DEFAULT_IGNORE.
8272
6dc7fcf4
TT
82732014-02-19 Tom Tromey <tromey@redhat.com>
8274
8275 * target-delegates.c: Rebuild.
8276 * target.c (target_enable_btrace): Unconditionally delegate.
8277 * target.h (struct target_ops) <to_enable_btrace>: Use
8278 TARGET_DEFAULT_NORETURN.
8279
eb5b20d4
TT
82802014-02-19 Tom Tromey <tromey@redhat.com>
8281
8282 * target-delegates.c: Rebuild.
8283 * target.c (target_read_btrace): Unconditionally delegate.
8284 * target.h (struct target_ops) <to_read_btrace>: Use
8285 TARGET_DEFAULT_NORETURN.
8286
9ace480d
TT
82872014-02-19 Tom Tromey <tromey@redhat.com>
8288
8289 * target-delegates.c: Rebuild.
8290 * target.c (target_teardown_btrace): Unconditionally delegate.
8291 * target.h (struct target_ops) <to_teardown_btrace>: Use
8292 TARGET_DEFAULT_NORETURN.
8293
8dc292d3
TT
82942014-02-19 Tom Tromey <tromey@redhat.com>
8295
8296 * target-delegates.c: Rebuild.
8297 * target.c (target_disable_btrace): Unconditionally delegate.
8298 * target.h (struct target_ops) <to_disable_btrace>: Use
8299 TARGET_DEFAULT_NORETURN.
8300
58a5184e
TT
83012014-02-19 Tom Tromey <tromey@redhat.com>
8302
8303 * target-delegates.c: Rebuild.
8304 * target.c (default_search_memory): New function.
8305 (simple_search_memory): Update comment.
8306 (target_search_memory): Unconditionally delegate.
8307 * target.h (struct target_ops) <to_search_memory>: Use
8308 TARGET_DEFAULT_FUNC.
8309
8de71aab
TT
83102014-02-19 Tom Tromey <tromey@redhat.com>
8311
8312 * auxv.c (default_auxv_parse): No longer static.
8313 (target_auxv_parse): Unconditionally delegate.
8314 * auxv.h (default_auxv_parse): Declare.
8315 * target-delegates.c: Rebuild.
8316 * target.c: Include auxv.h.
8317 * target.h (struct target_ops) <to_auxv_parse>: Use
8318 TARGET_DEFAULT_FUNC.
8319
6b2c5a57
TT
83202014-02-19 Tom Tromey <tromey@redhat.com>
8321
8322 * target-delegates.c: Rebuild.
8323 * target.c (target_memory_map): Unconditionally delegate.
8324 * target.h (struct target_ops) <to_memory_map>: Use
8325 TARGET_DEFAULT_RETURN.
8326
cbffc065
TT
83272014-02-19 Tom Tromey <tromey@redhat.com>
8328
8329 * target-delegates.c: Rebuild.
8330 * target.c (target_thread_alive): Unconditionally delegate.
8331 * target.h (struct target_ops) <to_thread_alive>: Use
8332 TARGET_DEFAULT_RETURN.
8333
f09e2107
TT
83342014-02-19 Tom Tromey <tromey@redhat.com>
8335
8336 * target-delegates.c: Rebuild.
8337 * target.c (target_save_record): Unconditionally delegate.
8338 * target.h (struct target_ops) <to_save_record>: Use
8339 TARGET_DEFAULT_NORETURN.
8340
07366925
TT
83412014-02-19 Tom Tromey <tromey@redhat.com>
8342
8343 * target-delegates.c: Rebuild.
8344 * target.c (target_delete_record): Unconditionally delegate.
8345 * target.h (struct target_ops) <to_delete_record>: Use
8346 TARGET_DEFAULT_NORETURN.
8347
dd2e9d25
TT
83482014-02-19 Tom Tromey <tromey@redhat.com>
8349
8350 * target-delegates.c: Rebuild.
8351 * target.c (target_record_is_replaying): Unconditionally
8352 delegate.
8353 * target.h (struct target_ops) <to_record_is_replaying>: Use
8354 TARGET_DEFAULT_RETURN.
8355
671e76cc
TT
83562014-02-19 Tom Tromey <tromey@redhat.com>
8357
8358 * target-delegates.c: Rebuild.
8359 * target.c (target_goto_record_begin): Unconditionally delegate.
8360 * target.h (struct target_ops) <to_goto_record_begin>: Use
8361 TARGET_DEFAULT_NORETURN.
8362
e9179bb3
TT
83632014-02-19 Tom Tromey <tromey@redhat.com>
8364
8365 * target-delegates.c: Rebuild.
8366 * target.c (target_goto_record_end): Unconditionally delegate.
8367 * target.h (struct target_ops) <to_goto_record_end>: Use
8368 TARGET_DEFAULT_NORETURN.
8369
05969c84
TT
83702014-02-19 Tom Tromey <tromey@redhat.com>
8371
8372 * target-delegates.c: Rebuild.
8373 * target.c (target_goto_record): Unconditionally delegate.
8374 * target.h (struct target_ops) <to_goto_record>: Use
8375 TARGET_DEFAULT_NORETURN.
8376
3679abfa
TT
83772014-02-19 Tom Tromey <tromey@redhat.com>
8378
8379 * target-delegates.c: Rebuild.
8380 * target.c (target_insn_history): Unconditionally delegate.
8381 * target.h (struct target_ops) <to_insn_history>: Use
8382 TARGET_DEFAULT_NORETURN.
8383
8444ab58
TT
83842014-02-19 Tom Tromey <tromey@redhat.com>
8385
8386 * target-delegates.c: Rebuild.
8387 * target.c (target_insn_history_from): Unconditionally delegate.
8388 * target.h (struct target_ops) <to_insn_history_from>: Use
8389 TARGET_DEFAULT_NORETURN.
8390
c29302cc
TT
83912014-02-19 Tom Tromey <tromey@redhat.com>
8392
8393 * target-delegates.c: Rebuild.
8394 * target.c (target_insn_history_range): Unconditionally delegate.
8395 * target.h (struct target_ops) <to_insn_history_range>: Use
8396 TARGET_DEFAULT_NORETURN.
8397
170049d4
TT
83982014-02-19 Tom Tromey <tromey@redhat.com>
8399
8400 * target-delegates.c: Rebuild.
8401 * target.c (target_call_history): Unconditionally delegate.
8402 * target.h (struct target_ops) <to_call_history>: Use
8403 TARGET_DEFAULT_NORETURN.
8404
16fc27d6
TT
84052014-02-19 Tom Tromey <tromey@redhat.com>
8406
8407 * target-delegates.c: Rebuild.
8408 * target.c (target_call_history_from): Unconditionally delegate.
8409 * target.h (struct target_ops) <to_call_history_from>: Use
8410 TARGET_DEFAULT_NORETURN.
8411
115d9817
TT
84122014-02-19 Tom Tromey <tromey@redhat.com>
8413
8414 * target-delegates.c: Rebuild.
8415 * target.c (target_call_history_range): Unconditionally delegate.
8416 * target.h (struct target_ops) <to_call_history_range>: Use
8417 TARGET_DEFAULT_NORETURN.
8418
eb276a6b
TT
84192014-02-19 Tom Tromey <tromey@redhat.com>
8420
8421 * target-delegates.c: Rebuild.
8422 * target.c (target_verify_memory): Unconditionally delegate.
8423 * target.h (struct target_ops) <to_verify_memory>: Use
8424 TARGET_DEFAULT_NORETURN.
8425
9e538d0d
TT
84262014-02-19 Tom Tromey <tromey@redhat.com>
8427
8428 * target-delegates.c: Rebuild.
8429 * target.c (target_core_of_thread): Unconditionally delegate.
8430 * target.h (struct target_ops) <to_core_of_thread>: Use
8431 TARGET_DEFAULT_RETURN.
8432
f6fb2925
TT
84332014-02-19 Tom Tromey <tromey@redhat.com>
8434
8435 * target-delegates.c: Rebuild.
8436 * target.c (target_flash_done): Unconditionally delegate.
8437 * target.h (struct target_ops) <to_flash_done>: Use
8438 TARGET_DEFAULT_NORETURN.
8439
e8a6c6ac
TT
84402014-02-19 Tom Tromey <tromey@redhat.com>
8441
8442 * target-delegates.c: Rebuild.
8443 * target.c (target_flash_erase): Unconditionally delegate.
8444 * target.h (struct target_ops) <to_flash_erase>: Use
8445 TARGET_DEFAULT_NORETURN.
8446
7e35c012
TT
84472014-02-19 Tom Tromey <tromey@redhat.com>
8448
8449 * target-delegates.c: Rebuild.
8450 * target.c (target_get_section_table): Unconditionally delegate.
8451 * target.h (struct target_ops) <to_get_section_table>: Use
8452 TARGET_DEFAULT_RETURN.
8453
770234d3
TT
84542014-02-19 Tom Tromey <tromey@redhat.com>
8455
8456 * target-delegates.c: Rebuild.
8457 * target.c (target_pid_to_str): Unconditionally delegate.
8458 (init_dummy_target): Don't initialize to_pid_to_str.
8459 (default_pid_to_str): Rename from dummy_pid_to_str.
8460 * target.h (struct target_ops) <to_pid_to_str>: Use
8461 TARGET_DEFAULT_FUNC.
8462
09b0dc2b
TT
84632014-02-19 Tom Tromey <tromey@redhat.com>
8464
8465 * target-delegates.c: Rebuild.
8466 * target.c (target_find_new_threads): Unconditionally delegate.
8467 * target.h (struct target_ops) <to_find_new_threads>: Use
8468 TARGET_DEFAULT_RETURN.
8469
7d4f8efa
TT
84702014-02-19 Tom Tromey <tromey@redhat.com>
8471
8472 * target-delegates.c: Rebuild.
8473 * target.c (target_program_signals): Unconditionally delegate.
8474 * target.h (struct target_ops) <to_program_signals>: Use
8475 TARGET_DEFAULT_IGNORE.
8476
035cad7f
TT
84772014-02-19 Tom Tromey <tromey@redhat.com>
8478
8479 * target-delegates.c: Rebuild.
8480 * target.c (target_pass_signals): Unconditionally delegate.
8481 * target.h (struct target_ops) <to_pass_signals>: Use
8482 TARGET_DEFAULT_IGNORE.
8483
8d657035
TT
84842014-02-19 Tom Tromey <tromey@redhat.com>
8485
8486 * target-delegates.c: Rebuild.
8487 * target.c (default_mourn_inferior): New function.
8488 (target_mourn_inferior): Unconditionally delegate.
8489 * target.h (struct target_ops) <to_mourn_inferior>: Use
8490 TARGET_DEFAULT_FUNC.
8491
098dba18
TT
84922014-02-19 Tom Tromey <tromey@redhat.com>
8493
8494 * target-delegates.c: Rebuild.
8495 * target.c (default_follow_fork): New function.
8496 (target_follow_fork): Unconditionally delegate.
8497 * target.h (struct target_ops) <to_follow_fork>: Use
8498 TARGET_DEFAULT_FUNC.
8499
423a4807
TT
85002014-02-19 Tom Tromey <tromey@redhat.com>
8501
8502 * target-delegates.c: Rebuild.
8503 * target.c (target_kill): Unconditionally delegate.
8504 * target.h (struct target_ops) <to_kill>: Use
8505 TARGET_DEFAULT_NORETURN.
8506
6c7e5e5c
TT
85072014-02-19 Tom Tromey <tromey@redhat.com>
8508
8509 * target-delegates.c: Rebuild.
8510 * target.c (target_masked_watch_num_registers): Unconditionally
8511 delegate.
8512 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8513 Use TARGET_DEFAULT_RETURN.
8514
8b1c364c
TT
85152014-02-19 Tom Tromey <tromey@redhat.com>
8516
8517 * target-delegates.c: Rebuild.
8518 * target.c (target_remove_mask_watchpoint): Unconditionally
8519 delegate.
8520 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8521 TARGET_DEFAULT_RETURN.
8522
cd4ae029
TT
85232014-02-19 Tom Tromey <tromey@redhat.com>
8524
8525 * target-delegates.c: Rebuild.
8526 * target.c (target_insert_mask_watchpoint): Unconditionally
8527 delegate.
8528 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8529 TARGET_DEFAULT_RETURN.
8530
a134316b
TT
85312014-02-19 Tom Tromey <tromey@redhat.com>
8532
8533 * target-delegates.c: Rebuild.
8534 * target.c (target_ranged_break_num_registers): Unconditionally
8535 delegate.
8536 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8537 Use TARGET_DEFAULT_RETURN.
8538
ad5989bd
TT
85392014-02-19 Tom Tromey <tromey@redhat.com>
8540
8541 * target-delegates.c: Rebuild.
8542 * target.c (target_fetch_registers): Unconditionally delegate.
8543 * target.h (struct target_ops) <to_fetch_registers>: Use
8544 TARGET_DEFAULT_NORETURN.
8545
46ee7e8d
TT
85462014-02-19 Tom Tromey <tromey@redhat.com>
8547
8548 * target-delegates.c: Rebuild.
8549 * target.c (update_current_target): Don't inherit or default
8550 to_stop.
8551 * target.h (struct target_ops) <to_stop>: Use
8552 TARGET_DEFAULT_IGNORE.
8553
843f59ed
TT
85542014-02-19 Tom Tromey <tromey@redhat.com>
8555
8556 * target-delegates.c: Rebuild.
8557 * target.c (update_current_target): Don't inherit or default
8558 to_can_run_breakpoint_commands.
8559 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8560 Use TARGET_DEFAULT_RETURN.
8561
ccfde2a0
TT
85622014-02-19 Tom Tromey <tromey@redhat.com>
8563
8564 * target-delegates.c: Rebuild.
8565 * target.c (update_current_target): Don't inherit or default
8566 to_supports_evaluation_of_breakpoint_conditions.
8567 * target.h (struct target_ops)
8568 <to_supports_evaluation_of_breakpoint_conditions>: Use
8569 TARGET_DEFAULT_RETURN.
8570
0de91722
TT
85712014-02-19 Tom Tromey <tromey@redhat.com>
8572
8573 * target-delegates.c: Rebuild.
8574 * target.c (update_current_target): Don't inherit or default
8575 to_augmented_libraries_svr4_read.
8576 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8577 Use TARGET_DEFAULT_RETURN.
8578
9a7d8b48
TT
85792014-02-19 Tom Tromey <tromey@redhat.com>
8580
8581 * target-delegates.c: Rebuild.
8582 * target.c (update_current_target): Don't inherit or default
8583 to_can_use_agent.
8584 * target.h (struct target_ops) <to_can_use_agent>: Use
8585 TARGET_DEFAULT_RETURN.
8586
d9db5b21
TT
85872014-02-19 Tom Tromey <tromey@redhat.com>
8588
8589 * target-delegates.c: Rebuild.
8590 * target.c (update_current_target): Don't inherit or default
8591 to_use_agent.
8592 * target.h (struct target_ops) <to_use_agent>: Use
8593 TARGET_DEFAULT_NORETURN.
8594
92155eeb
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_traceframe_info.
8600 (return_null): Remove.
8601 * target.h (struct target_ops) <to_traceframe_info>: Use
8602 TARGET_DEFAULT_RETURN.
8603
d6522a22
TT
86042014-02-19 Tom Tromey <tromey@redhat.com>
8605
8606 * target-delegates.c: Rebuild.
8607 * target.c (update_current_target): Don't inherit or default
8608 to_static_tracepoint_markers_by_strid.
8609 * target.h (struct target_ops)
8610 <to_static_tracepoint_markers_by_strid>: Use
8611 TARGET_DEFAULT_NORETURN.
8612
4c3e4425
TT
86132014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_static_tracepoint_marker_at.
8618 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8619 Use TARGET_DEFAULT_RETURN.
8620
dcd6917f
TT
86212014-02-19 Tom Tromey <tromey@redhat.com>
8622
8623 * target-delegates.c: Rebuild.
8624 * target.c (update_current_target): Don't inherit or default
8625 to_set_permissions.
8626 * target.h (struct target_ops) <to_set_permissions>: Use
8627 TARGET_DEFAULT_IGNORE.
8628
22bcceee
TT
86292014-02-19 Tom Tromey <tromey@redhat.com>
8630
8631 * target-delegates.c: Rebuild.
8632 * target.c (update_current_target): Don't inherit or default
8633 to_get_tib_address.
8634 * target.h (struct target_ops) <to_get_tib_address>: Use
8635 TARGET_DEFAULT_NORETURN.
8636
8586ccaa
TT
86372014-02-19 Tom Tromey <tromey@redhat.com>
8638
8639 * target-delegates.c: Rebuild.
8640 * target.c (update_current_target): Don't inherit or default
8641 to_set_trace_notes.
8642 * target.h (struct target_ops) <to_set_trace_notes>: Use
8643 TARGET_DEFAULT_RETURN.
8644
91df8d1d
TT
86452014-02-19 Tom Tromey <tromey@redhat.com>
8646
8647 * target-delegates.c: Rebuild.
8648 * target.c (update_current_target): Don't initialize
8649 to_set_trace_buffer_size.
8650 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8651 TARGET_DEFAULT_IGNORE.
8652
8d526939
TT
86532014-02-19 Tom Tromey <tromey@redhat.com>
8654
8655 * target-delegates.c: Rebuild.
8656 * target.c (update_current_target): Don't inherit or default
8657 to_set_circular_trace_buffer.
8658 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8659 TARGET_DEFAULT_IGNORE.
8660
0bcfeddf
TT
86612014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * target-delegates.c: Rebuild.
8664 * target.c (update_current_target): Don't inherit or default
8665 to_set_disconnected_tracing.
8666 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8667 TARGET_DEFAULT_IGNORE.
8668
9249843f
TT
86692014-02-19 Tom Tromey <tromey@redhat.com>
8670
8671 * target-delegates.c: Rebuild.
8672 * target.c (update_current_target): Don't inherit or default
8673 to_get_min_fast_tracepoint_insn_len.
8674 (return_minus_one): Remove.
8675 * target.h (struct target_ops)
8676 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8677
ace92e7d
TT
86782014-02-19 Tom Tromey <tromey@redhat.com>
8679
8680 * target-delegates.c: Rebuild.
8681 * target.c (update_current_target): Don't inherit or default
8682 to_get_raw_trace_data.
8683 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8684 TARGET_DEFAULT_NORETURN.
8685
08120467
TT
86862014-02-19 Tom Tromey <tromey@redhat.com>
8687
8688 * target-delegates.c: Rebuild.
8689 * target.c (update_current_target): Don't inherit or default
8690 to_upload_trace_state_variables.
8691 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8692 Use TARGET_DEFAULT_RETURN.
8693
1e949b00
TT
86942014-02-19 Tom Tromey <tromey@redhat.com>
8695
8696 * target-delegates.c: Rebuild.
8697 * target.c (update_current_target): Don't inherit or default
8698 to_upload_tracepoints.
8699 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8700 TARGET_DEFAULT_RETURN.
8701
a2e6c147
TT
87022014-02-19 Tom Tromey <tromey@redhat.com>
8703
8704 * target-delegates.c: Rebuild.
8705 * target.c (update_current_target): Don't inherit or default
8706 to_save_trace_data.
8707 * target.h (struct target_ops) <to_save_trace_data>: Use
8708 TARGET_DEFAULT_NORETURN.
8709
959bcd0b
TT
87102014-02-19 Tom Tromey <tromey@redhat.com>
8711
8712 * target-delegates.c: Rebuild.
8713 * target.c (update_current_target): Don't inherit or default
8714 to_get_trace_state_variable_value.
8715 * target.h (struct target_ops)
8716 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8717
afc94e66
TT
87182014-02-19 Tom Tromey <tromey@redhat.com>
8719
8720 * target-delegates.c: Rebuild.
8721 * target.c (update_current_target): Don't inherit or default
8722 to_trace_find.
8723 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8724
e51c07ea
TT
87252014-02-19 Tom Tromey <tromey@redhat.com>
8726
8727 * target-delegates.c: Rebuild.
8728 * target.c (update_current_target): Don't inherit or default
8729 to_trace_stop.
8730 * target.h (struct target_ops) <to_trace_stop>: Use
8731 TARGET_DEFAULT_NORETURN.
8732
6fea14cd
TT
87332014-02-19 Tom Tromey <tromey@redhat.com>
8734
8735 * target-delegates.c: Rebuild.
8736 * target.c (update_current_target): Don't inherit or default
8737 to_get_tracepoint_status.
8738 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8739 TARGET_DEFAULT_NORETURN.
8740
4072d4ff
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_get_trace_status.
8746 * target.h (struct target_ops) <to_get_trace_status>: Use
8747 TARGET_DEFAULT_RETURN.
8748
25da2e80
TT
87492014-02-19 Tom Tromey <tromey@redhat.com>
8750
8751 * target-delegates.c: Rebuild.
8752 * target.c (update_current_target): Don't inherit or default
8753 to_trace_start.
8754 * target.h (struct target_ops) <to_trace_start>: Use
8755 TARGET_DEFAULT_NORETURN.
8756
86dd181d
TT
87572014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't inherit or default
8761 to_trace_set_readonly_regions.
8762 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8763 Use TARGET_DEFAULT_NORETURN.
8764
05c41993
TT
87652014-02-19 Tom Tromey <tromey@redhat.com>
8766
8767 * target-delegates.c: Rebuild.
8768 * target.c (update_current_target): Don't inherit or default
8769 to_disable_tracepoint.
8770 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8771 TARGET_DEFAULT_NORETURN.
8772
151f70f1
TT
87732014-02-19 Tom Tromey <tromey@redhat.com>
8774
8775 * target-delegates.c: Rebuild.
8776 * target.c (update_current_target): Don't inherit or default
8777 to_enable_tracepoint.
8778 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8779 TARGET_DEFAULT_NORETURN.
8780
94eb98b9
TT
87812014-02-19 Tom Tromey <tromey@redhat.com>
8782
8783 * target-delegates.c: Rebuild.
8784 * target.c (update_current_target): Don't inherit or default
8785 to_download_trace_state_variable.
8786 * target.h (struct target_ops) <to_download_trace_state_variable>:
8787 Use TARGET_DEFAULT_NORETURN.
8788
719acc4a
TT
87892014-02-19 Tom Tromey <tromey@redhat.com>
8790
8791 * target-delegates.c: Rebuild.
8792 * target.c (update_current_target): Don't inherit or default
8793 to_can_download_tracepoint.
8794 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8795 TARGET_DEFAULT_RETURN.
8796
9a980a22
TT
87972014-02-19 Tom Tromey <tromey@redhat.com>
8798
8799 * target-delegates.c: Rebuild.
8800 * target.c (update_current_target): Don't inherit or default
8801 to_download_tracepoint.
8802 * target.h (struct target_ops) <to_download_tracepoint>: Use
8803 TARGET_DEFAULT_NORETURN.
8804
5536135b
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_trace_init.
8810 * target.h (struct target_ops) <to_trace_init>: Use
8811 TARGET_DEFAULT_RETURN.
8812
9409d39e
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_supports_string_tracing.
8818 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8819 TARGET_DEFAULT_RETURN.
8820
aab1b22d
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_supports_enable_disable_tracepoint.
8826 * target.h (struct target_ops)
8827 <to_supports_enable_disable_tracepoint>: Use
8828 TARGET_DEFAULT_RETURN.
8829
a7304748
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_supports_multi_process.
8835 * target.h (struct target_ops) <to_supports_multi_process>: Use
8836 TARGET_DEFAULT_RETURN.
8837
4229b31d
TT
88382014-02-19 Tom Tromey <tromey@redhat.com>
8839
8840 * target-delegates.c: Rebuild.
8841 * target.c (update_current_target): Don't inherit or default
8842 to_get_ada_task_ptid.
8843 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8844 TARGET_DEFAULT_FUNC.
8845
43eba180
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_thread_architecture.
8851 * target.h (struct target_ops) <to_thread_architecture>: Use
8852 TARGET_DEFAULT_FUNC.
8853
fe31bf5b
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_execution_direction.
8859 * target.h (struct target_ops) <to_execution_direction>: Use
8860 TARGET_DEFAULT_FUNC.
8861
53e1cfc7
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_can_execute_reverse.
8867 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8868 TARGET_DEFAULT_RETURN.
8869 (target_can_execute_reverse): Unconditionally delegate.
8870
9bb9d61d
TT
88712014-02-19 Tom Tromey <tromey@redhat.com>
8872
8873 * target-delegates.c: Rebuild.
8874 * target.c (update_current_target): Don't inherit or default
8875 to_goto_bookmark.
8876 (dummy_goto_bookmark): Remove.
8877 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8878 * target.h (struct target_ops) <to_goto_bookmark>: Use
8879 TARGET_DEFAULT_NORETURN.
8880
3dbafbbb
TT
88812014-02-19 Tom Tromey <tromey@redhat.com>
8882
8883 * target-delegates.c: Rebuild.
8884 * target.c (update_current_target): Don't inherit or default
8885 to_get_bookmark.
8886 (dummy_get_bookmark): Remove.
8887 (init_dummy_target): Don't inherit or default to_get_bookmark.
8888 * target.h (struct target_ops) <to_get_bookmark>: Use
8889 TARGET_DEFAULT_NORETURN
8890
16f796b1
TT
88912014-02-19 Tom Tromey <tromey@redhat.com>
8892
8893 * target-delegates.c: Rebuild.
8894 * target.c (update_current_target): Don't inherit or default
8895 to_make_corefile_notes.
8896 (init_dummy_target): Don't initialize to_make_corefile_notes.
8897 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8898 TARGET_DEFAULT_FUNC.
8899
0b5a2719
TT
89002014-02-19 Tom Tromey <tromey@redhat.com>
8901
8902 * target-delegates.c: Rebuild.
8903 * target.c (update_current_target): Don't inherit or default
8904 to_find_memory_regions.
8905 (init_dummy_target): Don't initialize to_find_memory_regions.
8906 * target.h (struct target_ops) <to_find_memory_regions>: Use
8907 TARGET_DEFAULT_FUNC.
8908
d9cb0195
TT
89092014-02-19 Tom Tromey <tromey@redhat.com>
8910
8911 * target-delegates.c: Rebuild.
8912 * target.c (update_current_target): Don't inherit or default
8913 to_log_command.
8914 * target.h (struct target_ops) <to_log_command>: Use
8915 TARGET_DEFAULT_IGNORE.
8916 (target_log_command): Unconditionally delegate.
8917
830ca330
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_pid_to_exec_file.
8923 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8924 TARGET_DEFAULT_RETURN.
8925
825828fc
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_thread_name.
8931 (target_thread_name): Unconditionally delegate.
8932 * target.h (struct target_ops) <to_thread_name>: Use
8933 TARGET_DEFAULT_RETURN.
8934
4a7e6dda
TT
89352014-02-19 Tom Tromey <tromey@redhat.com>
8936
8937 * target-delegates.c: Rebuild.
8938 * target.c (update_current_target): Don't inherit or default
8939 to_extra_thread_info.
8940 * target.h (struct target_ops) <to_extra_thread_info>: Use
8941 TARGET_DEFAULT_RETURN.
8942
0db88c1d
TT
89432014-02-19 Tom Tromey <tromey@redhat.com>
8944
8945 * target-delegates.c: Rebuild.
8946 * target.c (update_current_target): Don't inherit or default
8947 to_has_exited.
8948 * target.h (struct target_ops) <to_has_exited>: Use
8949 TARGET_DEFAULT_RETURN..
8950
6a9fa051
TT
89512014-02-19 Tom Tromey <tromey@redhat.com>
8952
8953 * target-delegates.c: Rebuild.
8954 * target.c (update_current_target): Don't inherit or default
8955 to_set_syscall_catchpoint.
8956 (return_one): Remove.
8957 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8958 TARGET_DEFAULT_RETURN.
8959
62f64d7a
TT
89602014-02-19 Tom Tromey <tromey@redhat.com>
8961
8962 * target-delegates.c: Rebuild.
8963 * target.c (update_current_target): Don't inherit or default
8964 to_insert_exec_catchpoint.
8965 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8966 TARGET_DEFAULT_RETURN.
8967
cda0f38c
TT
89682014-01-08 Tom Tromey <tromey@redhat.com>
8969
8970 * target-delegates.c: Rebuild.
8971 * target.c (update_current_target): Don't inherit or default
8972 to_insert_exec_catchpoint.
8973 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8974 TARGET_DEFAULT_RETURN.
8975
95c3375e
TT
89762014-02-19 Tom Tromey <tromey@redhat.com>
8977
8978 * target-delegates.c: Rebuild.
8979 * target.c (update_current_target): Don't inherit or default
8980 to_remove_vfork_catchpoint.
8981 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8982 TARGET_DEFAULT_RETURN.
8983
7e18a8dc
TT
89842014-02-19 Tom Tromey <tromey@redhat.com>
8985
8986 * target-delegates.c: Rebuild.
8987 * target.c (update_current_target): Don't inherit or default
8988 to_insert_vfork_catchpoint.
8989 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8990 TARGET_DEFAULT_RETURN.
8991
e1a21fb7
TT
89922014-02-19 Tom Tromey <tromey@redhat.com>
8993
8994 * target-delegates.c: Rebuild.
8995 * target.c (update_current_target): Don't inherit or default
8996 to_remove_fork_catchpoint.
8997 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8998 TARGET_DEFAULT_RETURN.
8999
5958ebeb
TT
90002014-02-19 Tom Tromey <tromey@redhat.com>
9001
9002 * target-delegates.c: Rebuild.
9003 * target.c (update_current_target): Don't inherit or default
9004 to_insert_fork_catchpoint.
9005 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9006 TARGET_DEFAULT_RETURN.
9007
340ba4bf
TT
90082014-02-19 Tom Tromey <tromey@redhat.com>
9009
9010 * target-delegates.c: Rebuild.
9011 * target.c (update_current_target): Don't inherit or default
9012 to_post_startup_inferior.
9013 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9014 TARGET_DEFAULT_IGNORE.
9015
7634da87
TT
90162014-02-19 Tom Tromey <tromey@redhat.com>
9017
9018 * target-delegates.c: Rebuild.
9019 * target.c (update_current_target): Don't inherit or default
9020 to_load.
9021 * target.h (struct target_ops) <to_load>: Use
9022 TARGET_DEFAULT_NORETURN.
9023
e19e919f
TT
90242014-02-19 Tom Tromey <tromey@redhat.com>
9025
9026 * target-delegates.c: Rebuild.
9027 * target.c (update_current_target): Don't inherit or default
9028 to_terminal_info.
9029 * target.h (struct target_ops) <to_terminal_info>: Use
9030 TARGET_DEFAULT_FUNC.
9031
c6ea8f79
TT
90322014-02-19 Tom Tromey <tromey@redhat.com>
9033
9034 * target-delegates.c: Rebuild.
9035 * target.c (update_current_target): Don't inherit or default
9036 to_terminal_save_ours.
9037 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9038 TARGET_DEFAULT_IGNORE.
9039
e4a733f1
TT
90402014-02-19 Tom Tromey <tromey@redhat.com>
9041
9042 * target-delegates.c: Rebuild.
9043 * target.c (update_current_target): Don't inherit or default
9044 to_terminal_ours.
9045 * target.h (struct target_ops) <to_terminal_ours>: Use
9046 TARGET_DEFAULT_IGNORE.
9047
74fcbef9
TT
90482014-02-19 Tom Tromey <tromey@redhat.com>
9049
9050 * target-delegates.c: Rebuild.
9051 * target.c (update_current_target): Don't inherit or default
9052 to_terminal_ours_for_output.
9053 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9054 TARGET_DEFAULT_IGNORE.
9055
ddeaacc9
TT
90562014-02-19 Tom Tromey <tromey@redhat.com>
9057
9058 * target-delegates.c: Rebuild.
9059 * target.c (update_current_target): Don't inherit or default
9060 to_terminal_inferior.
9061 * target.h (struct target_ops) <to_terminal_inferior>: Use
9062 TARGET_DEFAULT_IGNORE.
9063
0343661d
TT
90642014-02-19 Tom Tromey <tromey@redhat.com>
9065
9066 * target-delegates.c: Rebuild.
9067 * target.c (update_current_target): Don't inherit or default
9068 to_terminal_init.
9069 * target.h (struct target_ops) <to_terminal_init>: Use
9070 TARGET_DEFAULT_IGNORE.
9071
77cdffe9
TT
90722014-02-19 Tom Tromey <tromey@redhat.com>
9073
9074 * target-delegates.c: Rebuild.
9075 * target.c (update_current_target): Don't inherit or default
9076 to_can_accel_watchpoint_condition.
9077 * target.h (struct target_ops)
9078 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9079
d03655e4
TT
90802014-02-19 Tom Tromey <tromey@redhat.com>
9081
9082 * target-delegates.c: Rebuild.
9083 * target.c (update_current_target): Don't inherit or default
9084 to_region_ok_for_hw_watchpoint.
9085 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9086 Use TARGET_DEFAULT_FUNC.
9087
65f160a9
TT
90882014-02-19 Tom Tromey <tromey@redhat.com>
9089
9090 * target-delegates.c: Rebuild.
9091 * target.c (update_current_target): Don't inherit or default
9092 to_watchpoint_addr_within_range.
9093 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9094 Use TARGET_DEFAULT_FUNC.
9095
61dd109f
TT
90962014-02-19 Tom Tromey <tromey@redhat.com>
9097
9098 * target-delegates.c: Rebuild.
9099 * target.c (update_current_target): Don't inherit or default
9100 to_remove_watchpoint.
9101 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9102 TARGET_DEFAULT_NORETURN.
9103
016facd4
TT
91042014-02-19 Tom Tromey <tromey@redhat.com>
9105
9106 * target-delegates.c: Rebuild.
9107 * target.c (update_current_target): Don't inherit or default
9108 to_insert_watchpoint.
9109 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9110 TARGET_DEFAULT_RETURN.
9111
418dabac
TT
91122014-02-19 Tom Tromey <tromey@redhat.com>
9113
9114 * target-delegates.c: Rebuild.
9115 * target.c (update_current_target): Don't inherit or default
9116 to_remove_hw_breakpoint.
9117 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9118 TARGET_DEFAULT_RETURN.
9119
61b371f9
TT
91202014-02-19 Tom Tromey <tromey@redhat.com>
9121
9122 * target-delegates.c: Rebuild.
9123 * target.c (update_current_target): Don't inherit or default
9124 to_insert_hw_breakpoint.
9125 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9126 TARGET_DEFAULT_RETURN.
9127
52b51d06
TT
91282014-02-19 Tom Tromey <tromey@redhat.com>
9129
9130 * target-delegates.c: Rebuild.
9131 * target.c (update_current_target): Don't inherit or default
9132 to_can_use_hw_breakpoint.
9133 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9134 TARGET_DEFAULT_RETURN.
9135
f86e59b2
TT
91362014-02-19 Tom Tromey <tromey@redhat.com>
9137
9138 * target-delegates.c: Rebuild.
9139 * target.c (update_current_target): Don't inherit or default
9140 to_files_info.
9141 * target.h (struct target_ops) <to_files_info>: Use
9142 TARGET_DEFAULT_IGNORE.
9143
6c628163
TT
91442014-02-19 Tom Tromey <tromey@redhat.com>
9145
9146 * target-delegates.c: Rebuild.
9147 * target.c (update_current_target): Don't inherit or default
9148 to_store.
9149 * target.h (struct target_ops) <to_store>: Use
9150 TARGET_DEFAULT_NORETURN.
9151
bebd3233
TT
91522014-02-19 Tom Tromey <tromey@redhat.com>
9153
9154 * target-delegates.c: Rebuild.
9155 * target.c (update_current_target): Don't inherit or default
9156 to_post_attach.
9157 * target.h (struct target_ops) <to_post_attach>: Use
9158 TARGET_DEFAULT_IGNORE.
9159
a53f3625
TT
91602014-02-19 Tom Tromey <tromey@redhat.com>
9161
9162 * target-delegates.c: Rebuild.
9163 * target.c (update_current_target): Don't inherit or default
9164 to_rcmd.
9165 (default_rcmd): New function.
9166 (do_monitor_command): Unconditionally delegate.
9167 * target.h (struct target_ops) <to_rmcd>: Use
9168 TARGET_DEFAULT_FUNC.
9169
e9a29200
TT
91702014-02-19 Tom Tromey <tromey@redhat.com>
9171
9172 * target-delegates.c: Rebuild.
9173 * target.c (init_dummy_target): Don't initialize to_attach.
9174 (target_attach): Unconditionally delegate.
9175 * target.h (struct target_ops) <to_attach>: Use
9176 TARGET_DEFAULT_FUNC.
9177
09da0d0a
TT
91782014-02-19 Tom Tromey <tromey@redhat.com>
9179
9180 * target-delegates.c: Rebuild.
9181 * target.c (target_detach): Unconditionally delegate.
9182 (init_dummy_target): Don't initialize to_detach.
9183 * target.h (struct target_ops) <to_detach>: Use
9184 TARGET_DEFAULT_IGNORE.
9185
5436ff03
TT
91862014-02-19 Tom Tromey <tromey@redhat.com>
9187
9188 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9189 Add argument.
9190 (target_augmented_libraries_svr4_read): Add argument.
9191 * target.c (update_current_target): Update.
9192 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9193 argument.
9194
f0d960ea
TT
91952014-02-19 Tom Tromey <tromey@redhat.com>
9196
9197 * target.h (struct target_ops) <to_call_history_range>: Add
9198 argument.
9199 * target.c (target_call_history_range): Add argument.
9200 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9201 argument.
9202 (record_btrace_call_history_from): Update.
9203
ec0aea04
TT
92042014-02-19 Tom Tromey <tromey@redhat.com>
9205
9206 * target.h (struct target_ops) <to_call_history_from>: Add
9207 argument.
9208 * target.c (target_call_history_from): Add argument.
9209 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9210 argument.
9211
5df2fcba
TT
92122014-02-19 Tom Tromey <tromey@redhat.com>
9213
9214 * target.h (struct target_ops) <to_call_history>: Add argument.
9215 * target.c (target_call_history): Add argument.
9216 * record-btrace.c (record_btrace_call_history): Add 'self'
9217 argument.
9218
4e99c6b7
TT
92192014-02-19 Tom Tromey <tromey@redhat.com>
9220
9221 * target.h (struct target_ops) <to_insn_history_range>: Add
9222 argument.
9223 * target.c (target_insn_history_range): Add argument.
9224 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9225 argument.
9226 (record_btrace_insn_history_from): Update.
9227
9abc3ff3
TT
92282014-02-19 Tom Tromey <tromey@redhat.com>
9229
9230 * target.h (struct target_ops) <to_insn_history_from>: Add
9231 argument.
9232 * target.c (target_insn_history_from): Add argument.
9233 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9234 argument.
9235
7a6c5609
TT
92362014-02-19 Tom Tromey <tromey@redhat.com>
9237
9238 * target.h (struct target_ops) <to_insn_history>: Add argument.
9239 * target.c (target_insn_history): Add argument.
9240 * record-btrace.c (record_btrace_insn_history): Add 'self'
9241 argument.
9242
606183ac
TT
92432014-02-19 Tom Tromey <tromey@redhat.com>
9244
9245 * target.h (struct target_ops) <to_goto_record>: Add argument.
9246 * target.c (target_goto_record): Add argument.
9247 * record-full.c (record_full_goto): Add 'self' argument.
9248 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9249
307a1b91
TT
92502014-02-19 Tom Tromey <tromey@redhat.com>
9251
9252 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9253 * target.c (target_goto_record_end): Add argument.
9254 * record-full.c (record_full_goto_end): Add 'self' argument.
9255 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9256
08475817
TT
92572014-02-19 Tom Tromey <tromey@redhat.com>
9258
9259 * target.h (struct target_ops) <to_goto_record_begin>: Add
9260 argument.
9261 * target.c (target_goto_record_begin): Add argument.
9262 * record-full.c (record_full_goto_begin): Add 'self' argument.
9263 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9264 argument.
9265
1c63c994
TT
92662014-02-19 Tom Tromey <tromey@redhat.com>
9267
9268 * target.h (struct target_ops) <to_record_is_replaying>: Add
9269 argument.
9270 * target.c (target_record_is_replaying): Add argument.
9271 * record-full.c (record_full_is_replaying): Add 'self' argument.
9272 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9273 argument.
9274 (record_btrace_xfer_partial, record_btrace_store_registers)
9275 (record_btrace_prepare_to_store, record_btrace_resume)
9276 (record_btrace_wait, record_btrace_decr_pc_after_break)
9277 (record_btrace_find_new_threads, record_btrace_thread_alive):
9278 Update.
9279
d1b55219
TT
92802014-02-19 Tom Tromey <tromey@redhat.com>
9281
9282 * target.h (struct target_ops) <to_delete_record>: Add argument.
9283 * target.c (target_delete_record): Add argument.
9284 * record-full.c (record_full_delete): Add 'self' argument.
9285
1390f529
TT
92862014-02-19 Tom Tromey <tromey@redhat.com>
9287
9288 * target.h (struct target_ops) <to_save_record>: Add argument.
9289 * target.c (target_save_record): Add argument.
9290 * record-full.c (record_full_save): Add 'self' argument.
9291 (record_full_save): Add 'self' argument.
9292
630d6a4a
TT
92932014-02-19 Tom Tromey <tromey@redhat.com>
9294
9295 * target.h (struct target_ops) <to_info_record>: Add argument.
9296 * target.c (target_info_record): Add argument.
9297 * record.c (info_record_command): Add argument.
9298 * record-full.c (record_full_info): Add 'self' argument.
9299 * record-btrace.c (record_btrace_info): Add 'self' argument.
9300
c6cd7c02
TT
93012014-02-19 Tom Tromey <tromey@redhat.com>
9302
9303 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9304 * target.c (target_stop_recording): Add argument.
9305 * record.c (record_stop): Add argument.
9306 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9307 argument.
9308
39c49f83
TT
93092014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9312 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9313 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9314 argument.
9315 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9316 (_initialize_amd64_linux_nat): Use it.
9317 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9318 (_initialize_i386_linux_nat): Use it.
9319
1777056d
TT
93202014-02-19 Tom Tromey <tromey@redhat.com>
9321
9322 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9323 * target.c (target_teardown_btrace): Add argument.
9324 * remote.c (remote_teardown_btrace): Add 'self' argument.
9325 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9326 argument.
9327 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9328 argument.
9329
25e95349
TT
93302014-02-19 Tom Tromey <tromey@redhat.com>
9331
9332 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9333 * target.c (target_disable_btrace): Add argument.
9334 * remote.c (remote_disable_btrace): Add 'self' argument.
9335 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9336 argument.
9337 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9338 argument.
9339
e3c49f88
TT
93402014-02-19 Tom Tromey <tromey@redhat.com>
9341
9342 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9343 * target.c (target_enable_btrace): Add argument.
9344 * remote.c (remote_enable_btrace): Add 'self' argument.
9345 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9346 argument.
9347 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9348 argument.
9349
fe38f897
TT
93502014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9353 (target_can_use_agent): Add argument.
9354 * target.c (update_current_target): Update.
9355 * remote.c (remote_can_use_agent): Add 'self' argument.
9356 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9357
2c152180
TT
93582014-02-19 Tom Tromey <tromey@redhat.com>
9359
9360 * target.h (struct target_ops) <to_use_agent>: Add argument.
9361 (target_use_agent): Add argument.
9362 * target.c (update_current_target): Update.
9363 * remote.c (remote_use_agent): Add 'self' argument.
9364 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9365
a893e81f
TT
93662014-02-19 Tom Tromey <tromey@redhat.com>
9367
9368 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9369 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9370 (target_traceframe_info): Add argument.
9371 * target.c (update_current_target): Update.
9372 * remote.c (remote_traceframe_info): Add 'self' argument.
9373 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9374
c686c57f
TT
93752014-02-19 Tom Tromey <tromey@redhat.com>
9376
9377 * target.h (target_static_tracepoint_markers_by_strid): Add
9378 argument.
9379 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9380 'self' argument.
9381 * target.c (update_current_target): Update.
9382 * remote.c (struct target_ops)
9383 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9384 * linux-nat.c (struct target_ops)
9385 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9386
61fc905d
TT
93872014-02-19 Tom Tromey <tromey@redhat.com>
9388
9389 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9390 Add argument.
9391 (target_static_tracepoint_marker_at): Add argument.
9392 * target.c (update_current_target): Update.
9393 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9394 argument.
9395
c378d69d
TT
93962014-02-19 Tom Tromey <tromey@redhat.com>
9397
9398 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9399 (target_set_permissions): Add argument.
9400 * target.c (update_current_target): Update.
9401 * remote.c (remote_set_permissions): Add 'self' argument.
9402 (remote_start_remote): Update.
9403
bd7ae0f5
TT
94042014-02-19 Tom Tromey <tromey@redhat.com>
9405
9406 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9407 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9408 (target_get_tib_address): Add argument.
9409 * target.c (update_current_target): Update.
9410 * remote.c (remote_get_tib_address): Add 'self' argument.
9411
d9e68a2c
TT
94122014-02-19 Tom Tromey <tromey@redhat.com>
9413
9414 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9415 (target_set_trace_notes): Add argument.
9416 * target.c (update_current_target): Update.
9417 * remote.c (remote_set_trace_notes): Add 'self' argument.
9418
4da384be
TT
94192014-02-19 Tom Tromey <tromey@redhat.com>
9420
9421 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9422 argument.
9423 (target_set_trace_buffer_size): Add argument.
9424 * target.c (update_current_target): Update.
9425 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9426
736d5b1f
TT
94272014-02-19 Tom Tromey <tromey@redhat.com>
9428
9429 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9430 argument.
9431 (target_set_circular_trace_buffer): Add argument.
9432 * target.c (update_current_target): Update.
9433 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9434 argument.
9435
37b25738
TT
94362014-02-19 Tom Tromey <tromey@redhat.com>
9437
9438 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9439 argument.
9440 (target_set_disconnected_tracing): Add argument.
9441 * target.c (update_current_target): Update.
9442 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9443
0e67620a
TT
94442014-02-19 Tom Tromey <tromey@redhat.com>
9445
9446 * target.h (struct target_ops)
9447 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9448 (target_get_min_fast_tracepoint_insn_len): Add argument.
9449 * target.c (update_current_target): Update.
9450 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9451 argument.
9452
88ee6f45
TT
94532014-02-19 Tom Tromey <tromey@redhat.com>
9454
9455 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9456 argument.
9457 (target_get_raw_trace_data): Add argument.
9458 * target.c (update_current_target): Update.
9459 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9460
181e3713
TT
94612014-02-19 Tom Tromey <tromey@redhat.com>
9462
9463 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9464 Add argument.
9465 (target_upload_trace_state_variables): Add argument.
9466 * target.c (update_current_target): Update.
9467 * remote.c (remote_upload_trace_state_variables): Add 'self'
9468 argument.
9469 (remote_start_remote): Update.
9470
ab6617cc
TT
94712014-02-19 Tom Tromey <tromey@redhat.com>
9472
9473 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9474 argument.
9475 (target_upload_tracepoints): Add argument.
9476 * target.c (update_current_target): Update.
9477 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9478 (remote_start_remote): Update.
9479
dc3decaf
TT
94802014-02-19 Tom Tromey <tromey@redhat.com>
9481
9482 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9483 (target_save_trace_data): Add argument.
9484 * target.c (update_current_target): Update.
9485 * remote.c (remote_save_trace_data): Add 'self' argument.
9486
4011015b
TT
94872014-02-19 Tom Tromey <tromey@redhat.com>
9488
9489 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9490 argument.
9491 * target.h (struct target_ops)
9492 <to_get_trace_state_variable_value>: Add argument.
9493 (target_get_trace_state_variable_value): Add argument.
9494 * target.c (update_current_target): Update.
9495 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9496 argument.
9497 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9498
bd4c6793
TT
94992014-02-19 Tom Tromey <tromey@redhat.com>
9500
9501 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9502 * target.h (struct target_ops) <to_trace_find>: Add argument.
9503 (target_trace_find): Add argument.
9504 * target.c (update_current_target): Update.
9505 * remote.c (remote_trace_find): Add 'self' argument.
9506 * ctf.c (ctf_trace_find): Add 'self' argument.
9507
74499f1b
TT
95082014-02-19 Tom Tromey <tromey@redhat.com>
9509
9510 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9511 (target_trace_stop): Add argument.
9512 * target.c (update_current_target): Update.
9513 * remote.c (remote_trace_stop): Add 'self' argument.
9514
db90e85c
TT
95152014-02-19 Tom Tromey <tromey@redhat.com>
9516
9517 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9518 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9519 argument.
9520 (target_get_tracepoint_status): Add argument.
9521 * target.c (update_current_target): Update.
9522 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9523
8bd200f1
TT
95242014-02-19 Tom Tromey <tromey@redhat.com>
9525
9526 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9527 * target.h (struct target_ops) <to_get_trace_status>: Add
9528 argument.
9529 (target_get_trace_status): Add argument.
9530 * target.c (update_current_target): Update.
9531 * remote.c (remote_get_trace_status): Add 'self' argument.
9532 (remote_start_remote, remote_can_download_tracepoint): Update.
9533 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9534
e2d1aae3
TT
95352014-02-19 Tom Tromey <tromey@redhat.com>
9536
9537 * target.h (struct target_ops) <to_trace_start>: Add argument.
9538 (target_trace_start): Add argument.
9539 * target.c (update_current_target): Update.
9540 * remote.c (remote_trace_start): Add 'self' argument.
9541
583f9a86
TT
95422014-02-19 Tom Tromey <tromey@redhat.com>
9543
9544 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9545 Add argument.
9546 (target_trace_set_readonly_regions): Add argument.
9547 * target.c (update_current_target): Update.
9548 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9549 argument.
9550
780b049c
TT
95512014-02-19 Tom Tromey <tromey@redhat.com>
9552
9553 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9554 argument.
9555 (target_disable_tracepoint): Add argument.
9556 * target.c (update_current_target): Update.
9557 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9558
46670d57
TT
95592014-02-19 Tom Tromey <tromey@redhat.com>
9560
9561 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9562 argument.
9563 (target_enable_tracepoint): Add argument.
9564 * target.c (update_current_target): Update.
9565 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9566
559d2b81
TT
95672014-02-19 Tom Tromey <tromey@redhat.com>
9568
9569 * target.h (struct target_ops) <to_download_trace_state_variable>:
9570 Add argument.
9571 (target_download_trace_state_variable): Add argument.
9572 * target.c (update_current_target): Update.
9573 * remote.c (remote_download_trace_state_variable): Add 'self'
9574 argument.
9575
a52a8357
TT
95762014-02-19 Tom Tromey <tromey@redhat.com>
9577
9578 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9579 argument.
9580 (target_can_download_tracepoint): Add argument.
9581 * target.c (update_current_target): Update.
9582 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9583
548f7808
TT
95842014-02-19 Tom Tromey <tromey@redhat.com>
9585
9586 * target.h (struct target_ops) <to_download_tracepoint>: Add
9587 argument.
9588 (target_download_tracepoint): Add argument.
9589 * target.c (update_current_target): Update.
9590 * remote.c (remote_download_tracepoint): Add 'self' argument.
9591
ecae04e1
TT
95922014-02-19 Tom Tromey <tromey@redhat.com>
9593
9594 * target.h (struct target_ops) <to_trace_init>: Add argument.
9595 (target_trace_init): Add argument.
9596 * target.c (update_current_target): Update.
9597 * remote.c (remote_trace_init): Add 'self' argument.
9598
fab5aa7c
TT
95992014-02-19 Tom Tromey <tromey@redhat.com>
9600
9601 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9602 * target.c (target_fileio_readlink): Add argument.
9603 * remote.c (remote_hostio_readlink): Add 'self' argument.
9604 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9605
dbbca37d
TT
96062014-02-19 Tom Tromey <tromey@redhat.com>
9607
9608 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9609 * target.c (target_fileio_unlink): Add argument.
9610 * remote.c (remote_hostio_unlink): Add 'self' argument.
9611 (remote_file_delete): Update.
9612 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9613
df39ea25
TT
96142014-02-19 Tom Tromey <tromey@redhat.com>
9615
9616 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9617 * target.c (target_fileio_close): Add argument.
9618 * remote.c (remote_hostio_close): Add 'self' argument.
9619 (remote_hostio_close_cleanup): Update.
9620 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9621 Update.
9622 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9623
a3be983c
TT
96242014-02-19 Tom Tromey <tromey@redhat.com>
9625
9626 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9627 * target.c (target_fileio_pread): Add argument.
9628 * remote.c (remote_hostio_pread): Add 'self' argument.
9629 (remote_bfd_iovec_pread, remote_file_get): Update.
9630 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9631
0d866f62
TT
96322014-02-19 Tom Tromey <tromey@redhat.com>
9633
9634 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9635 * target.c (target_fileio_pwrite): Add argument.
9636 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9637 (remote_file_put): Update.
9638 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9639
cd897586
TT
96402014-02-19 Tom Tromey <tromey@redhat.com>
9641
9642 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9643 * target.c (target_fileio_open): Add argument.
9644 * remote.c (remote_hostio_open): Add 'self' argument.
9645 (remote_bfd_iovec_open): Add 'self' argument.
9646 (remote_file_put): Add 'self' argument.
9647 (remote_file_get): Add 'self' argument.
9648 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9649
78eff0ec
TT
96502014-02-19 Tom Tromey <tromey@redhat.com>
9651
9652 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9653 Add argument.
9654 (target_can_run_breakpoint_commands): Add argument.
9655 * target.c (update_current_target): Update.
9656 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9657 argument.
9658 (remote_insert_breakpoint): Add 'self' argument.
9659 (remote_insert_hw_breakpoint): Add 'self' argument.
9660 (remote_can_run_breakpoint_commands): Add 'self' argument.
9661
efcc2da7
TT
96622014-02-19 Tom Tromey <tromey@redhat.com>
9663
9664 * target.h (struct target_ops)
9665 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9666 (target_supports_evaluation_of_breakpoint_conditions): Add
9667 argument.
9668 * target.c (update_current_target): Update.
9669 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9670 argument.
9671 (remote_insert_breakpoint): Add 'self' argument.
9672 (remote_insert_hw_breakpoint): Add 'self' argument.
9673 (remote_supports_cond_breakpoints): Add 'self' argument.
9674
6de37a3a
TT
96752014-02-19 Tom Tromey <tromey@redhat.com>
9676
9677 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9678 argument.
9679 (target_supports_string_tracing): Add argument.
9680 * target.c (update_current_target): Update.
9681 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9682
2bfc0540
TT
96832014-02-19 Tom Tromey <tromey@redhat.com>
9684
9685 * target.h (struct target_ops)
9686 <to_supports_disable_randomization>: Add argument.
9687 * target.c (find_default_supports_disable_randomization): Add
9688 argument.
9689 (target_supports_disable_randomization): Add argument.
9690 (find_default_supports_disable_randomization): Add 'self'
9691 argument.
9692 * remote.c (extended_remote_supports_disable_randomization): Add
9693 'self' argument.
9694 (remote_supports_disable_randomization): Add 'self' argument.
9695 (extended_remote_create_inferior): Update.
9696 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9697 'self' argument.
9698
7d178d6a
TT
96992014-02-19 Tom Tromey <tromey@redhat.com>
9700
9701 * target.h (struct target_ops)
9702 <to_supports_enable_disable_tracepoint>: Add argument.
9703 (target_supports_enable_disable_tracepoint): Add argument.
9704 * target.c (update_current_target): Update.
9705 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9706 argument.
9707
86ce2668
TT
97082014-02-19 Tom Tromey <tromey@redhat.com>
9709
9710 * target.h (struct target_ops) <to_supports_multi_process>: Add
9711 argument.
9712 (target_supports_multi_process): Add argument.
9713 * target.c (update_current_target): Update.
9714 * remote.c (remote_supports_multi_process): Add 'self' argument.
9715 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9716 argument.
9717 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9718 argument.
9719
4c612759
TT
97202014-02-19 Tom Tromey <tromey@redhat.com>
9721
9722 * target.h (struct target_ops) <to_execution_direction>: Add
9723 argument.
9724 (target_execution_direction): Add argument.
9725 * target.c (default_execution_direction): Add 'self' argument.
9726 * record-full.c (record_full_execution_direction): Add 'self'
9727 argument.
9728
19db3e69
TT
97292014-02-19 Tom Tromey <tromey@redhat.com>
9730
9731 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9732 argument.
9733 (target_can_execute_reverse): Add argument.
9734 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9735 * record-full.c (record_full_can_execute_reverse): Add 'self'
9736 argument.
9737 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9738 argument.
9739
1e6b91a4
TT
97402014-02-19 Tom Tromey <tromey@redhat.com>
9741
9742 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9743 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9744 argument.
9745 (target_get_ada_task_ptid): Add argument.
9746 * target.c (update_current_target): Update.
9747 (default_get_ada_task_ptid): Add 'self' argument.
9748 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9749 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9750 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9751 argument.
9752 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9753 argument.
9754 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9755 argument.
9756 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9757 argument.
9758 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9759 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9760 argument.
9761
3c80fb48
TT
97622014-02-19 Tom Tromey <tromey@redhat.com>
9763
9764 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9765 (target_goto_bookmark): Add argument.
9766 * target.c (dummy_goto_bookmark): Add 'self' argument.
9767 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9768
dd0e2830
TT
97692014-02-19 Tom Tromey <tromey@redhat.com>
9770
9771 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9772 (target_get_bookmark): Add argument.
9773 * target.c (dummy_get_bookmark): Add 'self' argument.
9774 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9775
fc6691b2
TT
97762014-02-19 Tom Tromey <tromey@redhat.com>
9777
9778 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9779 argument.
9780 (target_make_corefile_notes): Add argument.
9781 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9782 * procfs.c (procfs_make_note_section): Add 'self' argument.
9783 (procfs_make_note_section): Add 'self' argument.
9784 (procfs_make_note_section): Add 'self' argument.
9785 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9786 argument.
9787 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9788 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9789 * exec.c (exec_make_note_section): Add 'self' argument.
9790 (exec_make_note_section): Add 'self' argument.
9791
2e73927c
TT
97922014-02-19 Tom Tromey <tromey@redhat.com>
9793
9794 * target.h (struct target_ops) <to_find_memory_regions>: Add
9795 argument.
9796 (target_find_memory_regions): Add argument.
9797 * target.c (dummy_find_memory_regions): Add 'self' argument.
9798 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9799 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9800 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9801 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9802 * exec. (exec_do_find_memory_regions): New global.
9803 (exec_set_find_memory_regions): Rewrite.
9804 (exec_find_memory_regions): New function.
9805 (init_exec_ops): Use exec_find_memory_regions.
9806
2a9a2795
TT
98072014-02-19 Tom Tromey <tromey@redhat.com>
9808
9809 * target.h (struct target_ops) <to_supports_non_stop>: Add
9810 argument.
9811 * target.c (find_default_supports_non_stop): Add argument.
9812 (target_supports_non_stop): Add argument.
9813 (find_default_supports_non_stop): Add 'self' argument.
9814 * remote.c (remote_supports_non_stop): Add 'self' argument.
9815 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9816
4ab76ea3
TT
98172014-02-19 Tom Tromey <tromey@redhat.com>
9818
9819 * target.h (struct target_ops) <to_log_command>: Add argument.
9820 (target_log_command): Add argument.
9821 * serial.h (serial_log_command): Add 'self' argument.
9822 * serial.c (serial_log_command): Add 'self' argument.
9823
8dd27370
TT
98242014-02-19 Tom Tromey <tromey@redhat.com>
9825
9826 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9827 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9828 argument.
9829 (target_pid_to_exec_file): Add argument.
9830 * target.c (debug_to_pid_to_exec_file): Add argument.
9831 (update_current_target): Update.
9832 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9833 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9834 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9835 (linux_handle_extended_wait): Update.
9836 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9837 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9838 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9839 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9840
1aac633b
TT
98412014-02-19 Tom Tromey <tromey@redhat.com>
9842
9843 * target.h (struct target_ops) <to_rcmd>: Add argument.
9844 (target_rcmd): Add argument.
9845 * target.c (debug_to_rcmd): Add argument.
9846 (update_current_target, do_monitor_command): Update.
9847 * remote.c (remote_rcmd): Add 'self' argument.
9848 * monitor.c (monitor_rcmd): Add 'self' argument.
9849
1eab8a48
TT
98502014-02-19 Tom Tromey <tromey@redhat.com>
9851
9852 * windows-nat.c (windows_stop): Add 'self' argument.
9853 * target.h (struct target_ops) <to_stop>: Add argument.
9854 * target.c (target_stop): Add argument.
9855 (debug_to_stop): Add argument.
9856 (update_current_target): Update.
9857 * remote.c (remote_stop): Add 'self' argument.
9858 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9859 (gdbsim_cntrl_c): Update.
9860 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9861 * procfs.c (procfs_stop): Add 'self' argument.
9862 * nto-procfs.c (procfs_stop): Add 'self' argument.
9863 * monitor.c (monitor_stop): Add 'self' argument.
9864 (monitor_open): Update.
9865 * linux-nat.c (linux_nat_stop): Add argument.
9866 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9867 * gnu-nat.c (gnu_stop): Add 'self' argument.
9868 * darwin-nat.c (darwin_stop): Add 'self' argument.
9869
503a628d
TT
98702014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * target.h (struct target_ops) <to_thread_name>: Add argument.
9873 * target.c (target_thread_name): Add argument.
9874 (update_current_target): Update.
9875 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9876
c15906d8
TT
98772014-02-19 Tom Tromey <tromey@redhat.com>
9878
9879 * target.h (struct target_ops) <to_extra_thread_info>: Add
9880 argument.
9881 (target_extra_thread_info): Add argument.
9882 * target.c (update_current_target): Update.
9883 * remote.c (remote_threads_extra_info): Add 'self' argument.
9884 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9885 argument.
9886 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9887 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9888 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9889 argument.
9890 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9891 argument.
9892 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9893 argument.
9894 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9895 argument.
9896
daf5e9b6
TT
98972014-02-19 Tom Tromey <tromey@redhat.com>
9898
9899 * target.h (struct target_ops) <to_program_signals>: Add argument.
9900 * target.c (target_program_signals): Add argument.
9901 * remote.c (remote_program_signals): Add 'self' argument.
9902
94bedb42
TT
99032014-02-19 Tom Tromey <tromey@redhat.com>
9904
9905 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9906 * target.c (target_pass_signals): Add argument.
9907 * remote.c (remote_pass_signals): Add 'self' argument.
9908 (remote_start_remote): Update.
9909 * procfs.c (procfs_pass_signals): Add 'self' argument.
9910 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9911 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9912 (linux_nat_create_inferior, linux_nat_attach): Update.
9913
da82bd6b
TT
99142014-02-19 Tom Tromey <tromey@redhat.com>
9915
9916 * windows-nat.c (windows_can_run): Add 'self' argument.
9917 * target.h (struct target_ops) <to_can_run>: Add argument.
9918 (target_can_run): Add argument.
9919 * target.c (debug_to_can_run): Add argument.
9920 (update_current_target): Update.
9921 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9922 * inf-child.c (inf_child_can_run): Add 'self' argument.
9923 * go32-nat.c (go32_can_run): Add 'self' argument.
9924
d796e1d6
TT
99252014-02-19 Tom Tromey <tromey@redhat.com>
9926
9927 * target.h (struct target_ops) <to_has_exited>: Add argument.
9928 (target_has_exited): Add argument.
9929 * target.c (debug_to_has_exited): Add argument.
9930 (update_current_target): Update.
9931
ff214e67
TT
99322014-02-19 Tom Tromey <tromey@redhat.com>
9933
9934 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9935 argument.
9936 (target_set_syscall_catchpoint): Add argument.
9937 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9938 argument.
9939 * target.c (update_current_target): Update.
9940
758e29d2
TT
99412014-02-19 Tom Tromey <tromey@redhat.com>
9942
9943 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9944 argument.
9945 (target_remove_exec_catchpoint): Add argument.
9946 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9947 (update_current_target): Update.
9948 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9949 argument.
9950
ba025e51
TT
99512014-02-19 Tom Tromey <tromey@redhat.com>
9952
9953 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9954 argument.
9955 (target_insert_exec_catchpoint): Add argument.
9956 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9957 (update_current_target): Update.
9958 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9959 argument.
9960
e98cf0cd
TT
99612014-02-19 Tom Tromey <tromey@redhat.com>
9962
9963 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9964 argument.
9965 (target_remove_vfork_catchpoint): Add argument.
9966 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9967 (update_current_target): Update.
9968 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9969 argument.
9970
3ecc7da0
TT
99712014-02-19 Tom Tromey <tromey@redhat.com>
9972
9973 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9974 argument.
9975 (target_insert_vfork_catchpoint): Add argument.
9976 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9977 (update_current_target): Update.
9978 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9979 argument.
9980
973fc227
TT
99812014-02-19 Tom Tromey <tromey@redhat.com>
9982
9983 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9984 argument.
9985 (target_remove_fork_catchpoint): Add argument.
9986 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9987 (update_current_target): Update.
9988 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9989 argument.
9990
a863b201
TT
99912014-02-19 Tom Tromey <tromey@redhat.com>
9992
9993 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9994 argument.
9995 (target_insert_fork_catchpoint): Add argument.
9996 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9997 (update_current_target): Update.
9998 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9999 argument.
10000
2e97a79e
TT
100012014-02-19 Tom Tromey <tromey@redhat.com>
10002
10003 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10004 argument.
10005 (target_post_startup_inferior): Add argument.
10006 * target.c (debug_to_post_startup_inferior): Add argument.
10007 (update_current_target): Update.
10008 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10009 argument.
10010 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10011 argument.
10012 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10013 argument.
10014 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10015 argument.
10016 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10017 'self' argument.
10018 (super_post_startup_inferior): Likewise.
10019 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10020 'self' argument.
10021 (super_post_startup_inferior): Likewise.
10022 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10023 Add 'self' argument.
10024 (super_post_startup_inferior): Likewise.
10025
71a9f134
TT
100262014-02-19 Tom Tromey <tromey@redhat.com>
10027
10028 * target.h (struct target_ops) <to_load>: Add argument.
10029 * target.c (target_load): Add argument.
10030 (debug_to_load): Add argument.
10031 (update_current_target): Update.
10032 * remote.c (remote_load): Add 'self' argument.
10033 * remote-sim.c (gdbsim_load): Add 'self' argument.
10034 * remote-mips.c (mips_load): Add 'self' argument.
10035 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10036 * monitor.c (monitor_load): Add 'self' argument.
10037 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10038
0a4f40a2
TT
100392014-02-19 Tom Tromey <tromey@redhat.com>
10040
10041 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10042 (target_terminal_info): Add argument.
10043 * target.c (debug_to_terminal_info): Add argument.
10044 (default_terminal_info): Likewise.
10045 * inflow.c (child_terminal_info): Add 'self' argument.
10046 * inferior.h (child_terminal_info): Add 'self' argument.
10047 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10048
ae3bd431
TT
100492014-02-19 Tom Tromey <tromey@redhat.com>
10050
10051 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10052 argument.
10053 (target_terminal_save_ours): Add argument.
10054 * target.c (debug_to_terminal_save_ours): Add argument.
10055 (update_current_target): Update.
10056 * inflow.c (terminal_save_ours): Add 'self' argument.
10057 * inferior.h (terminal_save_ours): Add 'self' argument.
10058
e3594fd1
TT
100592014-02-19 Tom Tromey <tromey@redhat.com>
10060
10061 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10062 (target_terminal_ours): Add argument.
10063 * target.c (debug_to_terminal_ours): Add argument.
10064 (update_current_target): Update.
10065 * remote.c (remote_terminal_ours): Add 'self' argument.
10066 (remote_close): Update.
10067 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10068 * inflow.c (terminal_ours): Add 'self' argument.
10069 * inferior.h (terminal_ours): Add 'self' argument.
10070 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10071
2e1e1a19
TT
100722014-02-19 Pedro Alves <palves@redhat.com>
10073 Tom Tromey <tromey@redhat.com>
10074
10075 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10076 argument.
10077 (target_terminal_ours_for_output): Add argument.
10078 * target.c (debug_to_terminal_ours_for_output): Add argument.
10079 (update_current_target): Update.
10080 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10081 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10082 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10083
d2f640d4
TT
100842014-02-19 Tom Tromey <tromey@redhat.com>
10085
10086 * target.h (struct target_ops) <to_terminal_inferior>: Add
10087 argument.
10088 * target.c (target_terminal_inferior): Add argument.
10089 (update_current_target): Update.
10090 * remote.c (remote_terminal_inferior): Add 'self' argument.
10091 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10092 * inflow.c (terminal_inferior): Add 'self' argument.
10093 * inferior.h (terminal_inferior): Add 'self' argument.
10094 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10095 (go32_terminal_inferior): Add 'self' argument.
10096
c42bf286
TT
100972014-02-19 Tom Tromey <tromey@redhat.com>
10098
10099 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10100 (target_terminal_init): Add argument.
10101 * target.c (debug_to_terminal_init): Add argument.
10102 (update_current_target): Update.
10103 * inflow.c (terminal_init_inferior): Add 'self' argument.
10104 * inferior.h (terminal_init_inferior): Add 'self' argument.
10105 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10106 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10107
c3a5ff89
TT
101082014-02-19 Tom Tromey <tromey@redhat.com>
10109
10110 * target.h (struct target_ops)
10111 <to_can_accel_watchpoint_condition>: Add argument.
10112 (target_can_accel_watchpoint_condition): Add argument.
10113 * target.c (debug_to_can_accel_watchpoint_condition): Add
10114 argument.
10115 (update_current_target): Update.
10116 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10117 'self' argument.
10118
31568a15
TT
101192014-02-19 Tom Tromey <tromey@redhat.com>
10120
10121 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10122 Add argument.
10123 (target_region_ok_for_hw_watchpoint): Add argument.
10124 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10125 (default_region_ok_for_hw_watchpoint): Add argument.
10126 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10127 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10128 argument.
10129 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10130 argument.
10131 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10132 argument.
10133 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10134 'self' argument.
10135 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10136 'self' argument.
10137 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10138 'self' argument.
10139 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10140 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10141 'self' argument.
10142 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10143 Add 'self' argument.
10144
7bb99c53
TT
101452014-02-19 Tom Tromey <tromey@redhat.com>
10146
10147 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10148 argument.
10149 (target_insert_watchpoint): Add argument.
10150 * target.c (debug_to_insert_watchpoint): Add argument.
10151 (update_current_target): Update.
10152 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10153 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10154 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10155 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10156 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10157 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10158 argument.
10159 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10160 (procfs_insert_hw_watchpoint): Add 'self' argument.
10161 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10162 argument.
10163 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10164 argument.
10165 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10166 argument.
10167 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10168 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10169 argument.
10170 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10171 'self' argument.
10172
11b5219a
TT
101732014-02-19 Tom Tromey <tromey@redhat.com>
10174
10175 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10176 argument.
10177 (target_remove_watchpoint): Add argument.
10178 * target.c (debug_to_remove_watchpoint): Add argument.
10179 (update_current_target): Update.
10180 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10181 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10182 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10183 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10184 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10185 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10186 argument.
10187 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10188 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10189 argument.
10190 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10191 argument.
10192 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10193 argument.
10194 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10195 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10196 argument.
10197 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10198 'self' argument.
10199
a64dc96c
TT
102002014-02-19 Tom Tromey <tromey@redhat.com>
10201
10202 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10203 argument.
10204 (target_remove_hw_breakpoint): Add argument.
10205 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10206 (update_current_target): Update.
10207 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10208 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10209 argument.
10210 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10211 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10212 argument.
10213 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10214 'self' argument.
10215
23a26771
TT
102162014-02-19 Tom Tromey <tromey@redhat.com>
10217
10218 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10219 argument.
10220 (target_insert_hw_breakpoint): Add argument.
10221 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10222 (update_current_target): Update.
10223 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10224 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10225 argument.
10226 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10227 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10228 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10229 argument.
10230 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10231 'self' argument.
10232
5461485a
TT
102332014-02-19 Tom Tromey <tromey@redhat.com>
10234
10235 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10236 argument.
10237 (target_can_use_hardware_watchpoint): Add argument.
10238 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10239 (update_current_target): Update.
10240 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10241 argument.
10242 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10243 argument.
10244 * remote.c (remote_check_watch_resources): Add 'self' argument.
10245 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10246 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10247 argument.
10248 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10249 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10250 argument.
10251 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10252 argument.
10253 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10254 argument.
10255 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10256 argument.
10257 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10258 argument.
10259 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10260 argument.
10261 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10262 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10263 argument.
10264 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10265 'self' argument.
10266
f045800c
TT
102672014-02-19 Tom Tromey <tromey@redhat.com>
10268
10269 * target.h (struct target_ops) <to_post_attach>: Add argument.
10270 (target_post_attach): Add argument.
10271 * target.c (debug_to_post_attach): Add argument.
10272 (update_current_target): Update.
10273 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10274 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10275 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10276 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10277 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10278
de90e03d
TT
102792014-02-19 Tom Tromey <tromey@redhat.com>
10280
10281 * windows-nat.c (windows_close): Add 'self' argument.
10282 * tracepoint.c (tfile_close): Add 'self' argument.
10283 * target.h (struct target_ops) <to_close>: Add argument.
10284 * target.c (target_close): Add argument.
10285 (update_current_target): Update.
10286 * remote.c (remote_close): Add 'self' argument.
10287 * remote-sim.c (gdbsim_close): Add 'self' argument.
10288 * remote-mips.c (mips_close): Add 'self' argument.
10289 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10290 * record-full.c (record_full_close): Add 'self' argument.
10291 * record-btrace.c (record_btrace_close): Add 'self' argument.
10292 * monitor.h (monitor_close): Add 'self' argument.
10293 * monitor.c (monitor_close): Add 'self' argument.
10294 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10295 * linux-nat.c (linux_nat_close): Add argument.
10296 * go32-nat.c (go32_close): Add 'self' argument.
10297 * exec.c (exec_close_1): Add 'self' argument.
10298 * ctf.c (ctf_close): Add 'self' argument.
10299 * corelow.c (core_close): Add 'self' argument.
10300 (core_close_cleanup): Update.
10301 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10302 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10303
9dd130a0
TT
103042014-02-19 Tom Tromey <tromey@redhat.com>
10305
10306 * remote.c (remote_load): New function.
10307 (init_remote_ops): Use it.
10308
46917d26
TT
103092014-02-19 Tom Tromey <tromey@redhat.com>
10310
10311 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10312 argument.
10313 * common/linux-btrace.h (linux_supports_btrace): Update.
10314 * remote.c (remote_supports_btrace): Add "self" argument.
10315 * target-delegates.c: Rebuild.
10316 * target.c (target_supports_btrace): Remove.
10317 * target.h (struct target_ops) <to_supports_btrace>: Add
10318 target_ops argument.
10319 (target_supports_btrace): New define.
10320
6b84065d
TT
103212014-02-19 Tom Tromey <tromey@redhat.com>
10322
10323 * record-full.c (record_full_beneath_to_resume_ops)
10324 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10325 (record_full_beneath_to_wait)
10326 (record_full_beneath_to_store_registers_ops)
10327 (record_full_beneath_to_store_registers)
10328 (record_full_beneath_to_xfer_partial_ops)
10329 (record_full_beneath_to_xfer_partial)
10330 (record_full_beneath_to_insert_breakpoint_ops)
10331 (record_full_beneath_to_insert_breakpoint)
10332 (record_full_beneath_to_remove_breakpoint_ops)
10333 (record_full_beneath_to_remove_breakpoint)
10334 (record_full_beneath_to_stopped_by_watchpoint)
10335 (record_full_beneath_to_stopped_data_address)
10336 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10337 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10338 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10339 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10340 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10341 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10342 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10343 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10344 (record_full_resume, record_full_wait_1)
10345 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10346 (record_full_store_registers, record_full_xfer_partial)
10347 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10348 (record_full_async, record_full_core_xfer_partial): Use target
10349 delegation.
10350 * target-delegates.c: Rebuild.
10351 * target.c (current_xfer_partial): Remove.
10352 (update_current_target): Do not INHERIT or de_fault
10353 to_insert_breakpoint, to_remove_breakpoint,
10354 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10355 to_is_async_p, to_async. Do not set to_xfer_partial field.
10356 (default_xfer_partial): Simplify.
10357 (current_xfer_partial): Remove.
10358 (target_wait, target_resume): Simplify.
10359 (find_default_can_async_p, find_default_is_async_p): Update.
10360 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10361 to_xfer_partial, to_stopped_by_watchpoint,
10362 to_stopped_data_address.
10363 (target_store_registers): Simplify.
10364 (forward_target_remove_breakpoint)
10365 (forward_target_insert_breakpoint): Remove.
10366 (target_remove_breakpoint, target_insert_breakpoint)
10367 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10368 * target.h (struct target_ops) <to_resume, to_wait,
10369 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10370 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10371 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10372 markup.
10373 (forward_target_remove_breakpoint)
10374 (forward_target_insert_breakpoint): Remove.
10375 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10376 directly.
10377 (record_btrace_insert_breakpoint): Delegate directly.
10378
1101cb7b
TT
103792014-02-19 Tom Tromey <tromey@redhat.com>
10380
10381 PR build/7701:
10382 * target-delegates.c: New file.
10383 * target.c: Include target-delegates.c.
10384 (init_dummy_target): Call install_dummy_methods.
10385 (complete_target_initialization): Call install_delegators.
10386 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10387 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10388 * make-target-delegates: New file.
10389
8b06beed
TT
103902014-02-19 Tom Tromey <tromey@redhat.com>
10391
10392 * record.c (find_record_target): Use find_target_at.
10393 * target.c (find_target_at): New function.
10394 * target.h (find_target_at): Declare.
10395
6a109b6b
TT
103962014-02-19 Tom Tromey <tromey@redhat.com>
10397
10398 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10399 Add 'ops' argument.
10400 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10401 'ops' argument.
10402 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10403 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10404 'ops' argument.
10405 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10406 argument.
10407 * linux-nat.c (save_sigtrap): Update.
10408 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10409 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10410 (linux_nat_close): Update.
10411 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10412 argument.
10413 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10414 argument.
10415 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10416 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10417 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10418 (tmp_to_async): Add 'ops' argument.
10419 (record_full_stopped_by_watchpoint, record_full_async)
10420 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10421 argument.
10422 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10423 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10424 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10425 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10426 (remote_is_async_p, remote_async): Add 'ops' argument.
10427 (remote_stopped_data_address): Update.
10428 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10429 * target.c (update_current_target)
10430 (find_default_can_async_p, find_default_is_async_p): Update.
10431 (init_dummy_target): Update.
10432 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10433 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10434 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10435 (target_can_async_p, target_is_async_p, target_async)
10436 (target_stopped_by_watchpoint): Update.
10437
e095146b
YQ
104382014-02-19 Yao Qi <yao@codesourcery.com>
10439
10440 PR gdb/16220
10441 * gdbarch.sh: Remove startup_gdbarch.
10442 * gdbarch.c: Regenerated.
10443 * gdbarch.h: Likewise.
10444
bc3c6b36
KB
104452014-02-17 Kevin Buettner <kevinb@redhat.com>
10446
10447 * rl78-tdep.c (rl78_g10_register_name): New function.
10448 (rl78_return_value): Add g10 support.
10449 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10450 g10.
10451
98dc0167 104522014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10453
10454 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10455 (SUBDIR_GUILE_SRCS): Ditto.
10456 (scm-gsmob.o): Ditto.
10457
842c05cd
YQ
104582014-02-17 Yao Qi <yao@codesourcery.com>
10459
10460 * gnu-nat.c (ILL_RPC): Declare defined function.
10461
25c0bd04
YQ
104622014-02-17 Yao Qi <yao@codesourcery.com>
10463
10464 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10465 mach_msg_type_number_t.
10466 (gnu_write_inferior): Likewise.
10467
a9a758e3
YQ
104682014-02-17 Yao Qi <yao@codesourcery.com>
10469
10470 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10471 in format string.
10472 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10473 (inf_validate_procs, inf_signal): Likewise.
10474 (S_exception_raise_request): Likewise.
10475 (do_mach_notify_dead_name): Likewise.
10476 (steal_exc_port): Likewise.
10477 (gnu_read_inferior): Change 'copy_count''s type to
10478 mach_msg_type_number_t.
10479 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10480 format string.
10481
bae8023e
TS
104822014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10483
c82f56d9
TS
10484 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10485 flag. Adjust all users; in particular...
10486 (gnu_wait): ..., don't decrement its value in here...
10487 (gnu_create_inferior): ..., and instead set the flag in here,
10488 around the startup_inferior call, and call that one with
10489 START_INFERIOR_TRAPS_EXPECTED.
10490
3398af6a
TS
10491 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10492 (ILL_RPC): ... new macro.
10493 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10494 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10495 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10496 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10497 functions with ILL_RPC macro.
10498 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10499 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10500 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10501 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10502 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10503 (S_proc_getlogin_reply, S_proc_getsid_reply)
10504 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10505 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10506 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10507 (S_proc_getnports_reply, S_proc_is_important_reply)
10508 (S_proc_get_code_reply): New stub functions, generated with
10509 ILL_RPC macro.
10510
d47642c9
TS
10511 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10512 collected the type check structures.
10513
bae8023e
TS
10514 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10515
8a55ffb0
DE
105162014-02-14 Doug Evans <dje@google.com>
10517
10518 * target.c (target_write_partial): Fix result type.
10519
c2853f3d
JM
105202014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10521
10522 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10523 the proper offsets to access fpregset_t.
10524
ac61d2db
SA
105252014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10526
10527 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10528 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10529 * h8300-tdep.c (setmachinelist): Remove global.
10530 * hppa-tdep.c (hppa_sigtramp): Remove global.
10531 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10532 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10533 * ravenscar-thread.c (update_target_observer): Remove global.
10534 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10535
9d2d0b8b
TT
105362014-02-12 Tom Tromey <tromey@redhat.com>
10537
10538 * common/rsp-low.c: Update comments.
10539 * common/rsp-low.h: Update comments.
10540
a7191e8b
TT
105412014-02-12 Tom Tromey <tromey@redhat.com>
10542
10543 * common/rsp-low.c (convert_ascii_to_int): Remove.
10544 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10545
ff0e980e
TT
105462014-02-12 Tom Tromey <tromey@redhat.com>
10547
10548 * common/rsp-low.h (unhexify): Don't declare.
10549 * common/rsp-low.c (unhexify): Remove.
10550
e9371aff
TT
105512014-02-12 Tom Tromey <tromey@redhat.com>
10552
10553 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10554 * common/rsp-low.c (convert_int_to_ascii): Remove.
10555
971dc0b8
TT
105562014-02-12 Tom Tromey <tromey@redhat.com>
10557
10558 * common/rsp-low.h (hexify): Don't declare.
10559 * common/rsp-low.c (hexify): Remove.
10560
0a822afb
TT
105612014-02-12 Tom Tromey <tromey@redhat.com>
10562
10563 * common/rsp-low.c (hexify): Never take strlen of argument.
10564
9f1b45b0
TT
105652014-02-12 Tom Tromey <tromey@redhat.com>
10566
10567 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10568 * remote.c (extended_remote_run, remote_rcmd)
10569 (remote_download_trace_state_variable, remote_save_trace_data)
10570 (remote_set_trace_notes): Update.
10571 * tracepoint.c (encode_source_string, tfile_write_status)
10572 (tfile_write_uploaded_tsv): Update.
10573
9c3d6531
TT
105742014-02-12 Tom Tromey <tromey@redhat.com>
10575
10576 * tracepoint.c: Include rsp-low.h.
10577 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10578 * remote.c: Include rsp-low.h.
10579 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10580 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10581 (remote_unescape_input): Move to common/rsp-low.c.
10582 * common/rsp-low.h: New file.
10583 * common/rsp-low.c: New file.
10584 * Makefile.in (SFILES): Add common/rsp-low.c.
10585 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10586 (COMMON_OBS): Add rsp-low.o.
10587 (rsp-low.o): New target.
10588
01fd3ea5
TT
105892014-02-12 Tom Tromey <tromey@redhat.com>
10590
10591 * utils.h: Include print-utils.h.
10592 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10593 (int_string, core_addr_to_string, core_addr_to_string_nz)
10594 (hex_string, hex_string_custom): Don't declare.
10595 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10596 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10597 (hex_string_custom, int_string, core_addr_to_string)
10598 (core_addr_to_string_nz, host_address_to_string): Move to
10599 common/print-utils.c.
10600 * common/print-utils.h: New file.
10601 * common/print-utils.c: New file
10602 * Makefile.in (SFILES): Add common/print-utils.c.
10603 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10604 (COMMON_OBS): Add print-utils.o.
10605 (print-utils.o): New target.
10606
9fb50108
TT
106072014-02-12 Tom Tromey <tromey@redhat.com>
10608
10609 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10610
0548b5db
MK
106112014-02-12 Mark Kettenis <kettenis@gnu.org>
10612
10613 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10614
493443a4
MK
106152014-02-12 Mark Kettenis <kettenis@gnu.org>
10616
10617 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10618 if a PT_IO ptrace request returns sucessfully but indicates that 0
10619 bytes were transferred.
10620
706d0883
PA
106212014-02-12 Pedro Alves <palves@redhat.com>
10622 Kevin Buettner <kevinb@redhat.com>
10623
10624 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10625 TYPE_INSTANCE_FLAG_CODE_SPACE.
10626
5caa2f0b
PA
106272014-02-12 Pedro Alves <palves@redhat.com>
10628
10629 * h8300-tdep.c (pseudo_from_raw_register)
10630 (raw_from_pseudo_register): New functions.
10631 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10632 them.
10633
76fd5f74
PA
106342014-02-12 Pedro Alves <palves@redhat.com>
10635
10636 * h8300-tdep.c (h8300_register_sim_regno): New function.
10637 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10638 gdbarch_register_sim_regno hook.
10639
8f008406
SA
106402014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10641
10642 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10643
195abc10
SA
106442014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10645
10646 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10647
93ffa5b9
MK
106482014-02-12 Mark Kettenis <kettenis@gnu.org>
10649
10650 * obsd-tdep.h (obsd_init_abi): New prototype.
10651 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10652 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10653 (obsd_init_abi): New functions.
10654 * i386obsd-tdep.c: Include "obsd-tdep.h".
10655 (i386obsd_init_abi): Call obsd_init_abi.
10656 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10657 (amd64obsd_init_abi): Call obsd_init_abi.
10658 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10659 obsd-tdep.c to gdb_target_obs.
10660
49caec94
JM
106612014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10662
10663 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10664 double float arguments to 16-byte in the argument slots.
10665
e1402065
DE
106662014-02-11 Doug Evans <xdje42@gmail.com>
10667
10668 * configure.ac: Don't crash if pkg-config is not found and guile
10669 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10670 in guile checks.
10671 * configure: Regenerate.
10672
edcc890f
YQ
106732014-02-11 Yao Qi <yao@codesourcery.com>
10674
10675 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10676 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10677 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10678 * gnu-nat.c (gnu_xfer_memory): Likewise.
10679 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10680 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10681 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10682 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10683
9b409511
YQ
106842014-02-11 Yao Qi <yao@codesourcery.com>
10685
10686 * target.h (enum target_xfer_error): Rename to ...
10687 (enum target_xfer_status): ... it. New. All users updated.
10688 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10689 New.
10690 (TARGET_XFER_STATUS_ERROR_P): New macro.
10691 (target_xfer_error_to_string): Remove declaration.
10692 (target_xfer_status_to_string): Declare.
10693 (target_xfer_partial_ftype): Adjust it.
10694 (struct target_ops) <to_xfer_partial>: Return
10695 target_xfer_status. Add argument xfered_len. Update
10696 comments.
10697 * target.c (target_xfer_error_to_string): Rename to ...
10698 (target_xfer_status_to_string): ... it. New. All callers
10699 updated.
10700 (target_read_live_memory): Likewise. Call target_xfer_partial
10701 instead of target_read.
10702 (memory_xfer_live_readonly_partial): Return
10703 target_xfer_status. Add argument xfered_len.
10704 (raw_memory_xfer_partial): Likewise.
10705 (memory_xfer_partial_1): Likewise.
10706 (memory_xfer_partial): Likewise.
10707 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10708 properly. Update debug message.
10709 (default_xfer_partial, current_xfer_partial): Likewise.
10710 (target_write_partial): Likewise.
10711 (target_read_partial): Likewise. All callers updated.
10712 (read_whatever_is_readable): Likewise.
10713 (target_write_with_progress): Likewise.
10714 (target_read_alloc_1): Likewise.
10715
10716 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10717 * auxv.c (procfs_xfer_auxv): Likewise.
10718 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10719 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10720 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10721 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10722 * corefile.c (read_memory): Adjust.
10723 * corelow.c (core_xfer_partial): Likewise.
10724 * ctf.c (ctf_xfer_partial): Likewise.
10725 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10726 updated.
10727 (darwin_xfer_partial): Likewise.
10728 * exec.c (section_table_xfer_memory_partial): Likewise. All
10729 callers updated.
10730 (exec_xfer_partial): Likewise.
10731 * exec.h (section_table_xfer_memory_partial): Update
10732 declaration.
10733 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10734 negative.
10735 (gnu_xfer_partial): Likewise.
10736 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10737 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10738 (ia64_hpux_xfer_solib_got): Likewise.
10739 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10740 type of 'partial_len' to ULONGEST.
10741 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10742 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10743 (linux_nat_xfer_partial): Likewise.
10744 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10745 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10746 * monitor.c (monitor_xfer_memory): Likewise.
10747 (monitor_xfer_partial): Likewise.
10748 * procfs.c (procfs_xfer_partial): Likewise.
10749 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10750 * record-full.c (record_full_xfer_partial): Likewise.
10751 (record_full_core_xfer_partial): Likewise.
10752 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10753 (gdbsim_xfer_partial): Likewise.
10754 * remote.c (remote_write_bytes_aux): Likewise. All callers
10755 updated.
10756 (remote_write_bytes, remote_read_bytes): Likewise. All
10757 callers updated.
10758 (remote_flash_erase): Likewise. All callers updated.
10759 (remote_write_qxfer): Likewise. All callers updated.
10760 (remote_read_qxfer): Likewise. All callers updated.
10761 (remote_xfer_partial): Likewise.
10762 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10763 (rs6000_xfer_shared_libraries): Likewise.
10764 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10765 (sol_thread_xfer_partial): Likewise.
10766 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10767 (sparc_xfer_partial): Likewise.
10768 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10769 updated.
10770 (spu_xfer_partial): Likewise.
10771 * spu-multiarch.c (spu_xfer_partial): Likewise.
10772 * tracepoint.c (tfile_xfer_partial): Likewise.
10773 * windows-nat.c (windows_xfer_memory): Likewise.
10774 (windows_xfer_shared_libraries): Likewise.
10775 (windows_xfer_partial): Likewise.
10776 * valprint.c: Replace 'target_xfer_error' with
10777 'target_xfer_status' in comments.
10778
a8e63083
JB
107792014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10780
10781 Checked in by Joel Brobecker <brobecker@adacore.com>.
10782 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10783
e86b67d3
JB
107842014-02-11 Joel Brobecker <brobecker@adacore.com>
10785
10786 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10787 function parameters.
10788
4b7d1f7f
WN
107892014-02-10 Will Newton <will.newton@linaro.org>
10790
10791 * elfread.c (elf_rel_plt_read): Look for a .got section if
10792 looking up .got.plt fails.
10793 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10794 on address passed to elf_gnu_ifunc_record_cache.
10795 (elf_gnu_ifunc_resolve_addr): Likewise.
10796 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10797
961842b2
JM
107982014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10799
10800 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10801 (X_RETTURN): New macro.
10802 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10803
10804 * sparc64-tdep.c (sparc64_init_abi): Hook
10805 sparc_in_function_epilogue_p.
10806
3f03e7b1
GB
108072014-02-10 Gary Benson <gbenson@redhat.com>
10808
10809 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10810 Rename name_matcher to symbol_matcher.
10811
96f861ef
GB
108122014-02-10 Gary Benson <gbenson@redhat.com>
10813
10814 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10815 Use expand_symtabs_file_matcher_ftype and
10816 expand_symtabs_symbol_matcher_ftype.
10817
ee01b665
JB
108182014-02-10 Joel Brobecker <brobecker@adacore.com>
10819
10820 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10821 (struct ada_symbol_cache): New.
10822 (ada_free_symbol_cache): Forward declare.
10823 (struct ada_pspace_data): New.
10824 (ada_pspace_data_handle): New static global.
10825 (get_ada_pspace_data, ada_pspace_data_cleanup)
10826 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10827 (cache_space, cache): Delete, now folded inside struct
10828 ada_pspace_data.
10829 (ada_get_symbol_cache): New function.
10830 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10831 implementation.
10832 (_initialize_ada_language): Remove initialization of cache_space.
10833 Move call to observer_attach_inferior_exit up, grouping it
10834 with the other observer registrations inside this function.
10835 Rename command to be more general. Add call to
10836 register_program_space_data_with_cleanup.
10837
143adbbf
JB
108382014-02-10 Joel Brobecker <brobecker@adacore.com>
10839
10840 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10841 ada_new_objfile_observer.
10842 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10843 (_initialize_tasks): Update uses of ada_new_objfile_observer
10844 and ada_tasks_normal_stop_observer.
10845
aa4fb036
JB
108462014-02-10 Joel Brobecker <brobecker@adacore.com>
10847
10848 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10849 returned by the 'Length attribute to integer.
10850
9dee8cc6
JB
108512014-02-10 Joel Brobecker <brobecker@adacore.com>
10852
10853 * ada-lang.c (_initialize_ada_language): Initialize
10854 cache_space obstack.
10855
3d9434b5
JB
108562014-02-10 Joel Brobecker <brobecker@adacore.com>
10857
10858 * ada-lang.c (HASH_SIZE): New macro.
10859 (struct cache_entry): New type.
10860 (cache_space, cache): New static globals.
10861 (ada_clear_symbol_cache, find_entry): New functions.
10862 (lookup_cached_symbol, cache_symbol): Implement.
10863 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10864 (_initialize_ada_language): Attach ada_new_objfile_observer
10865 and ada_free_objfile_observer.
10866
f0c5f9b2
JB
108672014-02-10 Joel Brobecker <brobecker@adacore.com>
10868
10869 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10870 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10871 struct block * parameter.
10872 (ada_lookup_symbol_list_worker): Constify local variable "block".
10873 Remove cast which is no longer necessary.
10874
ed3ef339
DE
108752014-02-10 Doug Evans <xdje42@gmail.com>
10876
10877 Add Guile as an extension language.
10878 * NEWS: Mention Guile scripting.
10879 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10880 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10881 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10882 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10883 (CLIBS): Add GUILE_LIBS.
10884 (install-guile): New rule.
10885 (guile.o): New rule.
10886 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10887 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10888 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10889 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10890 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10891 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10892 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10893 * configure.ac: New option --with-guile.
10894 * configure: Regenerate.
10895 * config.in: Regenerate.
10896 * auto-load.c: Remove #include "python/python.h". Add #include
10897 "gdb/section-scripts.h".
10898 (source_section_scripts): Handle Guile scripts.
10899 (_initialize_auto_load): Add name of Guile objfile script to
10900 scripts-directory help text.
10901 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10902 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10903 (struct breakpoint): New member scm_bp_object.
10904 * defs.h (enum command_control_type): New value guile_control.
10905 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10906 "extension.h".
10907 (show_user): Update comment.
10908 (_initialize_cli_cmds): Update help text for "show user". Update help
10909 text for max-user-call-depth.
10910 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10911 "extension.h".
10912 (multi_line_command_p): Add guile_control.
10913 (print_command_lines): Handle guile_control.
10914 (execute_control_command, recurse_read_control_structure): Ditto.
10915 (process_next_line): Recognize "guile" commands.
10916 * disasm.c (gdb_disassemble_info): Make non-static.
10917 * disasm.h: #include "dis-asm.h".
10918 (struct gdbarch): Add forward decl.
10919 (gdb_disassemble_info): Declare.
10920 * extension.c: #include "guile/guile.h".
10921 (extension_languages): Add guile.
10922 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10923 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10924 * gdbtypes.c (get_unsigned_type_max): New function.
10925 (get_signed_type_minmax): New function.
10926 * gdbtypes.h (get_unsigned_type_max): Declare.
10927 (get_signed_type_minmax): Declare.
10928 * guile/README: New file.
10929 * guile/guile-internal.h: New file.
10930 * guile/guile.c: New file.
10931 * guile/guile.h: New file.
10932 * guile/scm-arch.c: New file.
10933 * guile/scm-auto-load.c: New file.
10934 * guile/scm-block.c: New file.
10935 * guile/scm-breakpoint.c: New file.
10936 * guile/scm-disasm.c: New file.
10937 * guile/scm-exception.c: New file.
10938 * guile/scm-frame.c: New file.
10939 * guile/scm-gsmob.c: New file.
10940 * guile/scm-iterator.c: New file.
10941 * guile/scm-lazy-string.c: New file.
10942 * guile/scm-math.c: New file.
10943 * guile/scm-objfile.c: New file.
10944 * guile/scm-ports.c: New file.
10945 * guile/scm-pretty-print.c: New file.
10946 * guile/scm-safe-call.c: New file.
10947 * guile/scm-string.c: New file.
10948 * guile/scm-symbol.c: New file.
10949 * guile/scm-symtab.c: New file.
10950 * guile/scm-type.c: New file.
10951 * guile/scm-utils.c: New file.
10952 * guile/scm-value.c: New file.
10953 * guile/lib/gdb.scm: New file.
10954 * guile/lib/gdb/boot.scm: New file.
10955 * guile/lib/gdb/experimental.scm: New file.
10956 * guile/lib/gdb/init.scm: New file.
10957 * guile/lib/gdb/iterator.scm: New file.
10958 * guile/lib/gdb/printing.scm: New file.
10959 * guile/lib/gdb/types.scm: New file.
10960 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10961 (VPATH): Add $(GUILE_SRCDIR).
10962 (GUILE_DIR): New variable.
10963 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10964 (all): Add stamp-guile dependency.
10965 (stamp-guile): New rule.
10966 (clean-guile, install-guile, uninstall-guile): New rules.
10967 (install-only): Add install-guile dependency.
10968 (uninstall): Add uninstall-guile dependency.
10969 (clean): Add clean-guile dependency.
10970
ac020ec5
DE
109712014-02-09 Doug Evans <xdje42@gmail.com>
10972
10973 Revert this patch (which I approved, mea culpa).
10974
10975 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10976
10977 * Makefile.in (all-lib): Remove.
10978 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10979
2a081c59
JK
109802014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10981
10982 Fix Python stack corruption.
10983 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10984 gdb_py_longest.
10985
0a6bd22d
MK
109862014-02-08 Mark Kettenis <kettenis@gnu.org>
10987
10988 * Makefile.in (all-lib): Remove.
10989 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10990
1a860409
DE
109912014-02-07 Doug Evans <dje@google.com>
10992
10993 * extension-priv.h (extension_language_script_ops): Add comment.
10994 (extension_language_ops): Add comment.
caf5a491 10995 (active_ext_lang_state): Fix typo in comment.
1a860409 10996
d137e6dc
PA
109972014-02-07 Pedro Alves <palves@redhat.com>
10998
0dcb32c3 10999 PR breakpoints/16292
d137e6dc
PA
11000 * infrun.c (handle_signal_stop) <signal arrives while stepping
11001 over a breakpoint>: Switch back to the stepping thread.
11002
ce6d0892
YQ
110032014-02-07 Yao Qi <yao@codesourcery.com>
11004
11005 * target.c (target_xfer_partial): Return zero if LEN is zero.
11006
2ed4b548
YQ
110072014-02-07 Yao Qi <yao@codesourcery.com>
11008
11009 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11010 (ld_so_xfer_auxv): Likewise.
11011 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11012 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11013 * corelow.c (core_xfer_partial): Likewise.
11014 * ctf.c (ctf_xfer_partial): Likewise.
11015 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11016 (darwin_xfer_partial): Likewise.
11017 * exec.c (exec_xfer_partial): Likewise.
11018 * gnu-nat.c (gnu_xfer_partial): Likewise.
11019 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11020 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11021 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11022 * linux-nat.c (linux_xfer_siginfo): Likewise.
11023 (linux_proc_xfer_spu): Likewise.
11024 * procfs.c (procfs_xfer_partial): Likewise.
11025 * record-full.c (record_full_xfer_partial): Likewise.
11026 (record_full_core_xfer_partial): Likewise.
11027 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11028 * remote.c (remote_write_qxfer): Likewise.
11029 (remote_write_qxfer, remote_read_qxfer): Likewise.
11030 (remote_xfer_partial): Likewise.
11031 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11032 (rs6000_xfer_shared_libraries): Likewise.
11033 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11034 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11035 (spu_xfer_partial): Likewise.
11036 * target.c (memory_xfer_partial_1): Likewise.
11037 * tracepoint.c (tfile_xfer_partial): Likewise.
11038 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11039 (windows_xfer_partial): Likewise.
11040
c09f20e4
YQ
110412014-02-07 Yao Qi <yao@codesourcery.com>
11042
11043 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11044 comments.
11045 (core_xfer_shared_libraries_aix): Likewise.
11046 * gdbarch.c, gdbarch.h: Regenerated.
11047 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11048 ULONGEST. Change 'len_avail' type to ULONGEST.
11049 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11050 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11051 declaration.
11052 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11053
8635b3bf
YQ
110542014-02-07 Yao Qi <yao@codesourcery.com>
11055
11056 * corefile.c (memory_error): Get 'exception' from ERR and pass
11057 'exception' to throw_error.
11058
6dddc817
DE
110592014-02-06 Doug Evans <xdje42@gmail.com>
11060
11061 * configure.ac (libpython checking): Remove all but python.o from
11062 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11063 * configure: Regenerate.
11064
11065 * Makefile.in (SFILES): Add extension.c.
11066 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11067 (COMMON_OBS): Add extension.o.
11068 * extension.h: New file.
11069 * extension-priv.h: New file.
11070 * extension.c: New file.
11071
11072 * python/python-internal.h: #include "extension.h".
11073 (gdbpy_auto_load_enabled): Declare.
11074 (gdbpy_apply_val_pretty_printer): Declare.
11075 (gdbpy_apply_frame_filter): Declare.
11076 (gdbpy_preserve_values): Declare.
11077 (gdbpy_breakpoint_cond_says_stop): Declare.
11078 (gdbpy_breakpoint_has_cond): Declare.
11079 (void source_python_script_for_objfile): Delete.
11080 * python/python.c: #include "extension-priv.h".
11081 Delete inclusion of "observer.h".
11082 (extension_language_python): Moved here and renamed from
11083 script_language_python in py-auto-load.c.
11084 Redefined to be of type extension_language_defn.
11085 (python_extension_script_ops): New global.
11086 (python_extension_ops): New global.
11087 (struct python_env): New member previous_active.
11088 (restore_python_env): Call restore_active_ext_lang.
11089 (ensure_python_env): Call set_active_ext_lang.
11090 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11091 New arg extlang.
11092 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11093 New arg extlang.
11094 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11095 New arg extlang.
11096 (gdbpy_eval_from_control_command): Renamed from
11097 eval_python_from_control_command, made static. New arg extlang.
11098 (gdbpy_source_script) Renamed from source_python_script, made static.
11099 New arg extlang.
11100 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11101 result to int. New arg extlang.
11102 (gdbpy_source_objfile_script): Renamed from
11103 source_python_script_for_objfile, made static. New arg extlang.
11104 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11105 static. New args extlang, extlang_printers. Change result type to
11106 "void".
11107 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11108 static. New arg extlang. Rename arg printers to extlang_printers
11109 and change type to ext_lang_type_printers *.
11110 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11111 static. Replace argument arg with extlang, extlang_printers.
11112 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11113 (!HAVE_PYTHON, source_python_script): Delete.
11114 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11115 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11116 (!HAVE_PYTHON, start_type_printers): Delete.
11117 (!HAVE_PYTHON, apply_type_printers): Delete.
11118 (!HAVE_PYTHON, free_type_printers): Delete.
11119 (_initialize_python): Delete call to observer_attach_before_prompt.
11120 (finalize_python): Set/restore active extension language.
11121 (gdbpy_finish_initialization) Renamed from
11122 finish_python_initialization, made static. New arg extlang.
11123 (gdbpy_initialized): New function.
11124 * python/python.h: #include "extension.h". Delete #include
11125 "value.h", "mi/mi-cmds.h".
11126 (extension_language_python): Declare.
11127 (GDBPY_AUTO_FILE_NAME): Delete.
11128 (enum py_bt_status): Moved to extension.h and renamed to
11129 ext_lang_bt_status.
11130 (enum frame_filter_flags): Moved to extension.h.
11131 (enum py_frame_args): Moved to extension.h and renamed to
11132 ext_lang_frame_args.
11133 (finish_python_initialization): Delete.
11134 (eval_python_from_control_command): Delete.
11135 (source_python_script): Delete.
11136 (apply_val_pretty_printer): Delete.
11137 (apply_frame_filter): Delete.
11138 (preserve_python_values): Delete.
11139 (gdbpy_script_language_defn): Delete.
11140 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11141 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11142
11143 * auto-load.c: #include "extension.h".
11144 (GDB_AUTO_FILE_NAME): Delete.
11145 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11146 (script_language_gdb): Delete, moved to extension.c and renamed to
11147 extension_language_gdb.
11148 (source_gdb_script_for_objfile): Delete.
11149 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11150 (loaded_script): Change type of language member to
11151 struct extension_language_defn *.
11152 (init_loaded_scripts_info): Initialize
11153 unsupported_script_warning_printed.
11154 (maybe_add_script): Make static. Change type of language arg to
11155 struct extension_language_defn *.
11156 (clear_section_scripts): Reset unsupported_script_warning_printed.
11157 (auto_load_objfile_script_1): Rewrite to use extension language API.
11158 (auto_load_objfile_script): Make public. Remove support-compiled-in
11159 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11160 (source_section_scripts): Rewrite to use extension language API.
11161 (load_auto_scripts_for_objfile): Rewrite to use
11162 auto_load_scripts_for_objfile.
11163 (collect_matching_scripts_data): Change type of language member to
11164 struct extension_language_defn *.
11165 (auto_load_info_scripts): Change type of language arg to
11166 struct extension_language_defn *.
11167 (unsupported_script_warning_print): New function.
11168 (script_not_found_warning_print): Make static.
11169 (_initialize_auto_load): Rewrite construction of scripts-directory
11170 help.
11171 * auto-load.h (struct objfile): Add forward decl.
11172 (struct script_language): Delete.
11173 (struct auto_load_pspace_info): Add forward decl.
11174 (struct extension_language_defn): Add forward decl.
11175 (maybe_add_script): Delete.
11176 (auto_load_objfile_script): Declare.
11177 (script_not_found_warning_print): Delete.
11178 (auto_load_info_scripts): Update prototype.
11179 (auto_load_gdb_scripts_enabled): Declare.
11180 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11181 auto_load_python_scripts_enabled and made public.
11182 (script_language_python): Delete, moved to python.c.
11183 (gdbpy_script_language_defn): Delete.
11184 (info_auto_load_python_scripts): Update to use
11185 extension_language_python.
11186
11187 * breakpoint.c (condition_command): Replace call to
11188 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11189 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11190 with call to breakpoint_ext_lang_cond_says_stop.
11191 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11192 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11193 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11194 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11195 New arg slang.
11196 (local_setattro): Print name of extension language with existing
11197 stop condition.
11198
11199 * valprint.c (val_print, value_print): Update to call
11200 apply_ext_lang_val_pretty_printer.
11201 * cp-valprint.c (cp_print_value): Update call to
11202 apply_ext_lang_val_pretty_printer.
11203 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11204 (gdbpy_apply_val_pretty_printer): Renamed from
11205 apply_val_pretty_printer. New arg extlang.
11206 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11207
11208 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11209 extension language API.
11210 * cli/cli-script.c (execute_control_command): Update to call
11211 eval_ext_lang_from_control_command.
11212
11213 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11214 enum ext_lang_bt_status values. Update call to
11215 apply_ext_lang_frame_filter.
11216 (mi_cmd_stack_list_locals): Ditto.
11217 (mi_cmd_stack_list_args): Ditto.
11218 (mi_cmd_stack_list_variables): Ditto.
11219 * mi/mi-main.c: Delete #include "python/python-internal.h".
11220 Add #include "extension.h".
11221 (mi_cmd_list_features): Replace reference to python internal variable
11222 gdb_python_initialized with call to ext_lang_initialized_p.
11223
11224 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11225 Update to use enum ext_lang_frame_args. Update to call
11226 apply_ext_lang_frame_filter.
11227 * python/py-framefilter.c (extract_sym): Update to use enum
11228 ext_lang_bt_status.
11229 (extract_value, py_print_type, py_print_value): Ditto.
11230 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11231 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11232 (py_print_frame): Ditto.
11233 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11234 New arg extlang. Update to use enum ext_lang_bt_status.
11235
11236 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11237 finish_python_initialization. Replace with call to
11238 finish_ext_lang_initialization.
11239
11240 * typeprint.c (do_free_global_table): Update to call
11241 free_ext_lang_type_printers.
11242 (create_global_typedef_table): Update to call
11243 start_ext_lang_type_printers.
11244 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11245 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11246 (type_print_options): Change type of global_printers from "void *"
11247 to "struct ext_lang_type_printers *".
11248
11249 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11250 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11251 (gdbpy_preserve_values): Renamed from preserve_python_values.
11252 New arg extlang.
11253 (!HAVE_PYTHON, preserve_python_values): Delete.
11254
11255 * utils.c (quit_flag): Delete, moved to extension.c.
11256 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11257 extension.c.
11258
11259 * eval.c: Delete #include "python/python.h".
11260 * main.c: Delete #include "python/python.h".
11261
11262 * defs.h: Update comment.
11263
6af79985
JB
112642014-02-06 Joel Brobecker <brobecker@adacore.com>
11265
11266 GDB 7.7 released.
11267
12c5175d
MK
112682014-02-05 Mark Kettenis <kettenis@gnu.org>
11269
11270 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11271 defined.
11272
8dc5b319
YQ
112732014-02-05 Yao Qi <yao@codesourcery.com>
11274
11275 * remote.c (remote_pass_signals): Remove local 'buf' and use
11276 rs->buf.
11277 (remote_program_signals): Likewise.
11278
de7b2893
YQ
112792014-02-05 Yao Qi <yao@codesourcery.com>
11280
11281 * ctf.c: Include "inferior.h" and "gdbthread.h".
11282 (CTF_PID): A new macro.
11283 (ctf_open): Call inferior_appeared and add_thread_silent.
11284 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11285 (ctf_thread_alive): New function.
11286 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11287
66d032ac
YQ
112882014-02-05 Yao Qi <yao@codesourcery.com>
11289
11290 Revert this patch:
11291
11292 2013-05-24 Yao Qi <yao@codesourcery.com>
11293
11294 * tracepoint.c (TFILE_PID): Remove.
11295 (tfile_open): Don't add thread and inferior.
11296 (tfile_close): Don't set 'inferior_ptid'. Don't call
11297 exit_inferior_silent.
11298 (tfile_thread_alive): Remove.
11299 (init_tfile_ops): Don't set field 'to_thread_alive' of
11300 tfile_ops.
11301
f4ccffad
CE
113022014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11303
11304 * remote.c (remote_start_remote): Call remote_check_symbols even
11305 if only symbol-file (not file) has been given.
11306
591a12a1
UW
113072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11308
11309 * gdbarch.sh (skip_entrypoint): New callback.
11310 * gdbarch.c, gdbarch.h: Regenerate.
11311 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11312 * infrun.c (fill_in_stop_func): Likewise.
11313 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11314 (ppc_elfv2_elf_make_msymbol_special): New function.
11315 (ppc_elfv2_skip_entrypoint): Likewise.
11316 (ppc_linux_init_abi): Install them for ELFv2.
11317
cc0e89c5
UW
113182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11319
11320 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11321 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11322 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11323 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11324 structures returned in GPRs.
11325
52f548e4
UW
113262014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11327
11328 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11329 offset to the stack parameter list for the ELFv2 ABI.
11330
d4094b6a
UW
113312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11332
11333 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11334 set_gdbarch_convert_from_func_ptr_addr and
11335 set_gdbarch_elf_make_msymbol_special for ELFv1.
11336 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11337 function descriptors on ELFv1.
11338 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11339 set up r12 at function entry.
11340
cd453cd0
UW
113412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11342
11343 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11344 (struct gdbarch_tdep): New member elf_abi.
11345
11346 * rs6000-tdep.c: Include "elf/ppc64.h".
11347 (rs6000_gdbarch_init): Detect ELF ABI version.
11348
0ff3e01f
UW
113492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11350
11351 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11352 within a register pair holding a DFP 128-bit value on little-endian.
11353 (ppc64_sysv_abi_return_value_base): Likewise.
11354 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11355 (dfp_pseudo_register_write): Likewise.
11356
5b757e5d
UW
113572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11358
11359 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11360 offset on little-endian when passing _Decimal32.
11361 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11362
084ee545
UW
113632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11364
11365 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11366 of the overlapped FP register within the VSX register on little-
11367 endian platforms.
11368 (efpr_pseudo_register_write): Likewise.
11369
d63167af
UW
113702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11371
11372 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11373 offset on little-endian when passing small structures.
11374
e765b44c
UW
113752014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11376
11377 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11378 (struct ppc64_sysv_argpos): New data structure.
11379 (ppc64_sysv_abi_push_float): Remove.
11380 (ppc64_sysv_abi_push_val): New function.
11381 (ppc64_sysv_abi_push_integer): Likewise.
11382 (ppc64_sysv_abi_push_freg): Likewise.
11383 (ppc64_sysv_abi_push_vreg): Likewise.
11384 (ppc64_sysv_abi_push_param): Likewise.
11385 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11386 (ppc64_sysv_abi_return_value_base): New function.
11387 (ppc64_sysv_abi_return_value): Refactor to use it.
11388
36c24d95
UW
113892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11390
11391 * NEWS: Document new target powerpc64le-*-linux*.
11392
26fd9228
MK
113932014-02-04 Mark Kettenis <kettenis@gnu.org>
11394
11395 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11396 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11397 core dumps.
11398 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11399 register set used in ELF core dumps. Add floating-point register set.
11400
c5bb7362
KB
114012014-02-03 Kevin Buettner <kevinb@redhat.com>
11402
74228e77 11403 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11404 dwarf2_to_gdb[] table using symbolic constants. Adjust
11405 penultimate entry from number representing the PC register
11406 to symbolic constant representing the MDR register. Add
11407 constant for the PC register to the end of the table.
11408
af09351e
MK
114092014-02-03 Mark Kettenis <kettenis@gnu.org>
11410
11411 * bsd-kvm.c: Include <sys/param.h>
11412
8507e05d
MK
114132014-02-03 Mark Kettenis <kettenis@gnu.org>
11414
11415 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11416
ae56bfb8
JB
114172014-01-31 Joel Brobecker <brobecker@adacore.com>
11418
11419 * ada-lang.h (clear_ada_sym_cache): Delete.
11420
718ee4dc
UW
114212014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11422
11423 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11424
401e27fd
JM
114252014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11426
11427 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11428 the sigreturn register save area only if the syscall is
11429 sigreturn.
11430
a7c88acd
JB
114312014-01-29 Joel Brobecker <brobecker@adacore.com>
11432
11433 * valops.c (value_slice): Minor reformatting.
11434
fa0079ea
UW
114352014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11436
11437 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11438
c6044dd1
JB
114392014-01-28 Joel Brobecker <brobecker@adacore.com>
11440
11441 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11442 New static globals.
11443 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11444 (ada_ignore_descriptive_types_p): New static global.
11445 (find_parallel_type_by_descriptive_type): Return immediately
11446 if ada_ignore_descriptive_types_p is set.
11447 (_initialize_ada_language): Register new commands "maintenance
11448 set ada", "maintenance show ada", "maintenance set ada
11449 ignore-descriptive-types" and "maintenance show ada
11450 ignore-descriptive-types".
11451 * NEWS: Add entry for new "maint ada set/show
11452 ignore-descriptive-types" commands.
11453
568e808b
MM
114542014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11455
11456 * record-btrace.c (record_btrace_close): Call btrace_teardown
11457 for all threads.
11458
467d141b
JB
114592014-01-27 Joel Brobecker <brobecker@adacore.com>
11460
11461 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11462 "ui-out.h".
11463
fb151210
JB
114642014-01-27 Joel Brobecker <brobecker@adacore.com>
11465
11466 * ada-typeprint (type_is_full_subrange_of_target_type):
11467 New function.
11468 (print_range): Add parameter bounds_prefered_p. If not set,
11469 try printing range types using the name of their base type.
11470 (print_range_type): Add parameter bounds_prefered_p.
11471 Use it in call to print_range.
11472 (print_array_type, ada_print_type): Update calls to print_range
11473 and print_range_type.
11474
aba02109
JB
114752014-01-27 Joel Brobecker <brobecker@adacore.com>
11476
11477 * ada-typeprint.c (print_array_type, print_choices, print_range)
11478 (print_range_bound, print_dynamic_range_bound, print_range_type):
11479 Remove declaration.
11480
e62e21fd
JB
114812014-01-27 Joel Brobecker <brobecker@adacore.com>
11482
11483 * ada-typeprint.c (print_range): Add missing empty line
11484 after local declaration.
11485
859cf5d1
JB
114862014-01-27 Joel Brobecker <brobecker@adacore.com>
11487
11488 * ada-valprint.c (print_optional_low_bound): Get index_type's
11489 target type for as long as it is a TYPE_CODE_RANGE.
11490
25790f6f
JB
114912014-01-27 Joel Brobecker <brobecker@adacore.com>
11492
11493 * procfs.c (procfs_make_note_section): Remove assertion and
11494 associated comment.
11495
6b6aa828
YQ
114962014-01-24 Yao Qi <yao@codesourcery.com>
11497
11498 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11499 * corelow.c (get_core_siginfo): Likewise.
11500
5d6df423
YQ
115012014-01-24 Yao Qi <yao@codesourcery.com>
11502
11503 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11504 ULONGEST. Don't check 'len' is negative.
11505 (remote_write_bytes): Change type of 'len' to ULONGEST.
11506
83b645b8
TT
115072014-01-23 Tom Tromey <tromey@redhat.com>
11508
11509 PR python/16485:
11510 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11511 Handle exception from frame.block.
11512 (FrameVars.fetch_frame_locals): Likewise.
11513
0740f8d8
TT
115142014-01-23 Tom Tromey <tromey@redhat.com>
11515
11516 PR python/16487:
11517 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11518 on a NULL pointer. Move "goto error" to correct place.
11519
21909fa1
TT
115202014-01-23 Tom Tromey <tromey@redhat.com>
11521
11522 PR python/16491:
11523 * python/py-framefilter.c (apply_frame_filter): Call
11524 ensure_python_env after computing gdbarch.
11525
17fde6d0
YQ
115262014-01-23 Yao Qi <yao@codesourcery.com>
11527
11528 * target.c (raw_memory_xfer_partial): Change argument type
11529 from void * to gdb_byte *.
11530 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11531
87ce2a04
DE
115322014-01-22 Doug Evans <dje@google.com>
11533
11534 New gdbserver option --debug-format=timestamp.
11535 * NEWS: Mention it.
11536
237b092b
AA
115372014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11538
11539 * syscalls/s390x-linux.xml: New file.
11540 * syscalls/s390-linux.xml: New file.
11541 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11542 (XML_SYSCALL_FILENAME_S390X): Likewise.
11543 (op_svc): New enum value for SVC opcode.
11544 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11545 (s390_linux_get_syscall_number): New function.
11546 (s390_gdbarch_init): Register '*get_syscall_number' and the
11547 syscall xml file name.
11548 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11549 "s390-linux.xml" and "s390x-linux.xml".
11550 * NEWS: Announce new feature.
11551
54bff650
BS
115522014-01-22 Baruch Siach <baruch@tkos.co.il>
11553
11554 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11555
14e361d7
PA
115562014-01-22 Pedro Alves <palves@redhat.com>
11557
11558 * xtensa-config.c: Include defs.h.
11559
46bbb3ed
JB
115602014-01-22 Joel Brobecker <brobecker@adacore.com>
11561
11562 * common/common-utils.h: Add "ARI:" comment beside __func__
11563 reference.
11564
3a80edfc
JB
115652014-01-22 Joel Brobecker <brobecker@adacore.com>
11566
11567 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11568 documentation a bit.
11569
4869db5e
RM
115702014-01-21 Roland McGrath <mcgrathr@google.com>
11571
11572 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11573 * configure: Regenerate.
11574 * aclocal.m4: Regenerate.
11575 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11576 New substituted variables.
11577 (install-strip): New target.
11578 (INSTALL_SCRIPT): New substituted variable.
11579 (FLAGS_TO_PASS): Add it.
11580 (install-only): Use $(INSTALL_SCRIPT) rather than
11581 $(INSTALL_PROGRAM) for gcore.
11582
9ea4267d
TT
115832014-01-20 Tom Tromey <tromey@redhat.com>
11584
11585 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11586 together.
11587
1f2bdf09
TT
115882014-01-20 Tom Tromey <tromey@redhat.com>
11589
11590 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11591 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11592 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11593 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11594 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11595 (struct cmd_list_element) <flags>: Remove.
11596 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11597 doc_allocated>: New fields.
11598 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11599 bitfields.
11600 * maint.c (maintenance_do_deprecate): Update.
11601 * top.c (execute_command): Update.
11602
e671835b
BS
116032014-01-20 Baruch Siach <baruch@tkos.co.il>
11604
11605 * xtensa-linux-nat.c: Include asm/ptrace.h.
11606
50367cd2
IB
116072014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11608
11609 * Makefile.in (SFILES): Add d-support.c.
11610 (COMMON_OBS): Add d-support.o.
11611 * d-lang.h (d_parse_symbol): Add comment, now defined in
11612 d-support.c.
11613 * d-lang.c (parse_call_convention)
11614 (parse_attributes, parse_function_types)
11615 (parse_function_args, parse_type, parse_identifier)
11616 (call_convention_p, d_parse_symbol): Move functions to ...
11617 * d-support.c: ... New file.
11618
ec9f644a
IB
116192014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11620
11621 * d-lang.h (d_parse_symbol): Add declaration.
11622 * d-lang.c (extract_identifiers)
11623 (extract_type_info): Remove functions.
11624 (parse_call_convention, parse_attributes)
11625 (parse_function_types, parse_function_args)
11626 (parse_type, parse_identifier, call_convention_p)
11627 (d_parse_symbol): New functions.
11628 (d_demangle): Use d_parse_symbol to demangle D symbols.
11629
94b1b47e
IB
116302014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11631
11632 * d-lang.h (struct builtin_d_type): New data type.
11633 (builtin_d_type): Add declaration.
11634 * d-lang.c (d_language_arch_info, build_d_types)
11635 (builtin_d_type): New functions.
11636 (enum d_primitive_types): New data type.
11637 (d_language_defn): Change c_language_arch_info to
11638 d_language_arch_info.
11639 (d_type_data): New static variable.
11640 (_initialize_d_language): Initialize d_type_data.
11641
63778547
IB
116422014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11643
11644 * d-lang.h (d_main_name): Add declaration.
11645 * d-lang.c (d_main_name): New function.
11646 * symtab.c (find_main_name): Add call to d_main_name.
11647
3271ba66
IB
116482014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11649
11650 * d-lang.c (d_language_defn): Change macro_expansion_c to
11651 macro_expansion_no.
11652
d36b3012
IB
116532014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11654
11655 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11656
c90a6fb7
SDJ
116572014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11658
11659 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11660 gdb_exception" declaration.
11661 * remote.c (getpkt_or_notif_sane): Likewise.
11662
749234e5
DE
116632014-01-17 Doug Evans <dje@google.com>
11664
11665 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11666 function, contents of dirnames_to_char_ptr_vec_append moved here.
11667 (delim_string_to_char_ptr_vec): New function.
11668 (dirnames_to_char_ptr_vec_append): Rewrite.
11669 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11670
df049a58
DE
116712014-01-17 Doug Evans <dje@google.com>
11672
11673 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11674 and moved here ...
11675 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11676 #include "common-utils.h".
11677 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11678 * common/vec.h (VEC_ASSERT_PASS): Update.
11679 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11680 (MACH_CHECK_ERROR): Update.
11681
69f97648
SM
116822014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11683
11684 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11685 comments.
11686 * gdbarch.h: Regenerate.
11687
98b1cfdc
TT
116882014-01-16 Tom Tromey <tromey@redhat.com>
11689
11690 * value.c (struct value) <regnum>: Move earlier.
11691
77a19445
TT
116922014-01-16 Tom Tromey <tromey@redhat.com>
11693
11694 * remote.c (extended_remote_create_inferior): Rename from
11695 extended_remote_create_inferior_1. Add "ops" argument. Remove
11696 old implementation.
11697
62261490
PA
116982014-01-16 Pedro Alves <palves@redhat.com>
11699
11700 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11701 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11702 the backchain.
11703
4d65956b
DE
117042014-01-16 Doug Evans <dje@google.com>
11705
11706 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11707
52834460
MM
117082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11709
11710 * btrace.h (btrace_thread_flag): New.
11711 (struct btrace_thread_info) <flags>: New.
11712 * record-btrace.c (record_btrace_resume_thread)
11713 (record_btrace_find_thread_to_move, btrace_step_no_history)
11714 (btrace_step_stopped, record_btrace_start_replaying)
11715 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11716 (record_btrace_find_resume_thread): New.
11717 (record_btrace_resume, record_btrace_wait): Extend.
11718 (record_btrace_can_execute_reverse): New.
11719 (record_btrace_open): Fail in non-stop mode.
11720 (record_btrace_set_replay): Split into this, ...
11721 (record_btrace_stop_replaying): ... this, ...
11722 (record_btrace_clear_histories): ... and this.
11723 (init_record_btrace_ops): Init to_can_execute_reverse.
11724 * NEWS: Announce it.
11725
118e6252
MM
117262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11727
11728 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11729 (forward_target_decr_pc_after_break)
11730 (target_decr_pc_after_break): New.
11731 * target.c (forward_target_decr_pc_after_break)
11732 (target_decr_pc_after_break): New.
11733 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11734 instead of gdbarch_decr_pc_after_break.
11735 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11736 instead of gdbarch_decr_pc_after_break.
11737 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11738 instead of gdbarch_decr_pc_after_break.
11739 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11740 instead of gdbarch_decr_pc_after_break.
11741 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11742 instead of gdbarch_decr_pc_after_break.
11743 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11744 instead of gdbarch_decr_pc_after_break.
11745
6e07b1d2
MM
117462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11747
11748 * btrace.c: Include regcache.h.
11749 (btrace_add_pc): New.
11750 (btrace_enable): Call btrace_add_pc.
11751 (btrace_is_empty): New.
11752 * btrace.h (btrace_is_empty): New.
11753 * record-btrace.c (require_btrace, record_btrace_info): Call
11754 btrace_is_empty.
11755
969c39fb
MM
117562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11757
11758 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11759 Support delta reads.
11760 (linux_disable_btrace): Change return type.
11761 * common/linux-btrace.h (linux_read_btrace): Change parameters
11762 and return type to allow error reporting. Update users.
11763 (linux_disable_btrace): Change return type. Update users.
11764 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11765 New.
11766 (btrace_error): New.
11767 (btrace_block) <begin>: Comment on BEGIN == 0.
11768 * btrace.c (btrace_compute_ftrace): Start from the end of
11769 the current trace.
11770 (btrace_stitch_trace, btrace_clear_history): New.
11771 (btrace_fetch): Read delta trace, return if replaying.
11772 (btrace_clear): Move clear history code to btrace_clear_history.
11773 (parse_xml_btrace): Throw an error if parsing failed.
11774 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11775 and return type to allow error reporting.
11776 (target_read_btrace): Change parameters and return type to allow
11777 error reporting.
11778 * target.c (target_read_btrace): Update.
11779 * remote.c (remote_read_btrace): Support delta reads. Pass
11780 errors on.
11781 * NEWS: Announce it.
11782
0b722aec
MM
117832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11784
11785 * record.h (record_btrace_frame_unwind)
11786 (record_btrace_tailcall_frame_unwind): New declarations.
11787 * dwarf2-frame: Include record.h
11788 (dwarf2_frame_cfa): Throw an error for btrace frames.
11789 * record-btrace.c: Include hashtab.h.
11790 (btrace_get_bfun_name): New.
11791 (btrace_call_history): Call btrace_get_bfun_name.
11792 (struct btrace_frame_cache): New.
11793 (bfcache): New.
11794 (bfcache_hash, bfcache_eq, bfcache_new): New.
11795 (btrace_get_frame_function): New.
11796 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11797 (record_btrace_frame_this_id): Compute own id.
11798 (record_btrace_frame_prev_register): Provide PC, throw_error
11799 for all other registers.
11800 (record_btrace_frame_sniffer): Detect btrace frames.
11801 (record_btrace_tailcall_frame_sniffer): New.
11802 (record_btrace_frame_dealloc_cache): New.
11803 (record_btrace_frame_unwind): Add new functions.
11804 (record_btrace_tailcall_frame_unwind): New.
11805 (_initialize_record_btrace): Allocate cache.
11806 * btrace.c (btrace_clear): Call reinit_frame_cache.
11807 * NEWS: Announce it.
11808
066ce621
MM
118092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11810
11811 * record-btrace.c (record_btrace_set_replay)
11812 (record_btrace_goto_begin, record_btrace_goto_end)
11813 (record_btrace_goto): New.
11814 (init_record_btrace_ops): Initialize them.
11815 * NEWS: Announce it.
11816
e2887aa3
MM
118172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11818
11819 * record-btrace.c (record_btrace_find_new_threads)
11820 (record_btrace_thread_alive): New.
11821 (init_record_btrace_ops): Initialize to_find_new_threads and
11822 to_thread_alive.
11823
b2f4cfde
MM
118242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11825
11826 * record-btrace.c (record_btrace_resume): New.
11827 (record_btrace_wait): New.
11828 (init_record_btrace_ops): Initialize to_wait and to_resume.
11829
633785ff
MM
118302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11831
11832 * record-btrace.c (record_btrace_xfer_partial)
11833 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11834 (record_btrace_allow_memory_access): New.
11835 (init_record_btrace_ops): Initialize new methods.
11836 * target.c (raw_memory_xfer_partial): Bail out if target reports
11837 that this memory is not available.
11838
3db08215
MM
118392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11840
11841 * target.h (target_ops) <to_insert_breakpoint>
11842 <to_remove_breakpoint>: Add target_ops parameter.
11843 (forward_target_insert_breakpoint): New.
11844 (forward_target_remove_breakpoint): New.
11845 (memory_remove_breakpoint, memory_insert_breakpoint):
11846 Add target_ops parameter.
11847 * target.c (target_insert_breakpoint): Split into this and ...
11848 (forward_target_insert_breakpoint): ... this.
11849 (target_remove_breakpoint): Split into this and ...
11850 (forward_target_remove_breakpoint): ... this.
11851 (debug_to_insert_breakpoint): Add target_ops parameter.
11852 Call forward_target_insert_breakpoint.
11853 (debug_to_remove_breakpoint): Add target_ops parameter.
11854 Call forward_target_remove_breakpoint.
11855 (update_current_target): Do not inherit or default to_insert_breakpoint
11856 and to_remove_breakpoint.
11857 * corelow.c (ignore): Add target_ops parameter.
11858 * exec.c (ignore): Add target_ops parameter.
11859 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11860 Add target_ops parameter.
11861 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11862 Add target_ops parameter.
11863 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11864 Add target_ops parameter.
11865 * record-full.c (record_full_beneath_to_insert_breakpoint)
11866 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11867 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11868 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11869 (record_full_core_remove_breakpoint): Add target_ops parameter.
11870 Update users.
11871 (record_full_beneath_to_insert_breakpoint_ops)
11872 (record_full_beneath_to_remove_breakpoint_ops)
11873 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11874 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11875 tmp_to_remove_breakpoint_ops,
11876 record_full_beneath_to_insert_breakpoint_ops, and
11877 record_full_beneath_to_remove_breakpoint_ops.
11878 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11879 (m32r_remove_breakpoint): Add target_ops parameter.
11880 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11881 Add target_ops parameter.
11882 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11883 Add target_ops parameter.
11884
cecac1ab
MM
118852014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11886 Markus Metzger <markus.t.metzger@intel.com>
11887
11888 * record-btrace.c: Include frame-unwind.h.
11889 (record_btrace_frame_unwind_stop_reason)
11890 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11891 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11892 New.
11893 (init_record_btrace_ops): Install it.
11894
824344ca
MM
118952014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11896
11897 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11898 get_prev_frame_1.
11899
32261e52
MM
119002014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11901
11902 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11903 earlier.
11904
ea001bdc
MM
119052014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11906
11907 * frame-unwind.c: Include target.h.
11908 (frame_unwind_try_unwinder): New function with code from ...
11909 (frame_unwind_find_by_frame): ... here. New variable
11910 unwinder_from_target, call also target_get_unwinder)
11911 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11912 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11913 * target.h (struct target_ops): New fields to_get_unwinder and
11914 to_get_tailcall_unwinder.
11915 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11916
1f3ef581
MM
119172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11918
11919 * record-btrace.c (record_btrace_fetch_registers)
11920 (record_btrace_store_registers)
11921 (record_btrace_to_prepare_to_store): New.
11922 (init_record_btrace_ops): Add the above.
11923
f32dbf8c
MM
119242014-01-16 Tom Tromey <tromey@redhat.com>
11925
11926 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11927 * target.h (struct target_ops) <to_prepare_to_store>: Add
11928 argument.
11929 (target_prepare_to_store): Add argument.
11930 * target.c (debug_to_prepare_to_store): Add argument.
11931 (update_current_target): Update.
11932 * remote.c (remote_prepare_to_store): Add 'self' argument.
11933 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11934 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11935 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11936 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11937 argument.
11938 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11939 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11940 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11941 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11942 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11943
07bbe694
MM
119442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11945
11946 * btrace.h (replay) <replay>: New.
11947 (btrace_is_replaying): New.
11948 * btrace.c (btrace_clear): Free replay iterator.
11949 (btrace_is_replaying): New.
11950 * record-btrace.c (record_btrace_is_replaying): New.
11951 (record_btrace_info): Print insn number if replaying.
11952 (record_btrace_insn_history): Start at replay position.
11953 (record_btrace_call_history): Start at replay position.
11954 (init_record_btrace_ops): Init to_record_is_replaying.
11955
0688d04e
MM
119562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11957
11958 * record-btrace.c (record_btrace_insn_history_range): Include
11959 end.
11960 (record_btrace_insn_history_from): Adjust range.
11961 (record_btrace_call_history_range): Include
11962 end.
11963 (record_btrace_call_history_from): Adjust range.
11964 * NEWS: Announce changes.
11965
8710b709
MM
119662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11967
11968 * record.h (enum record_print_flag)
11969 <record_print_indent_calls>: New.
11970 * record.c (get_call_history_modifiers): Recognize /c modifier.
11971 (_initialize_record): Document /c modifier.
11972 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11973 Reorder fields. Optionally indent the function name. Update
11974 all users.
11975 * NEWS: Announce changes.
11976
d0fa7535
MM
119772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11978
11979 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11980
5de9129b
MM
119812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11982
11983 * btrace.c (ftrace_new_function): Start counting at one.
11984 * record-btrace.c (record_btrace_info): Adjust number of calls
11985 and insns.
11986 * NEWS: Announce it.
11987
7acbe133
MM
119882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11989
11990 * record-btrace.c (btrace_call_history_insn_range): Print
11991 insn range as [begin, end].
11992
23a7fe75
MM
119932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11994
11995 * btrace.h (struct btrace_func_link): New.
11996 (enum btrace_function_flag): New.
11997 (struct btrace_inst): Rename to ...
11998 (struct btrace_insn): ...this. Update all users.
11999 (struct btrace_func) <ibegin, iend>: Remove.
12000 (struct btrace_func_link): New.
12001 (struct btrace_func): Rename to ...
12002 (struct btrace_function): ...this. Update all users.
12003 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12004 (number, level, flags>: New.
12005 (struct btrace_insn_iterator): Rename to ...
12006 (struct btrace_insn_history): ...this.
12007 Update all users.
12008 (struct btrace_insn_iterator, btrace_call_iterator): New.
12009 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12010 (struct btrace_target_info) <begin, end, level>
12011 <insn_history, call_history>: New.
12012 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12013 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12014 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12015 (btrace_call_number, btrace_call_begin, btrace_call_end)
12016 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12017 (btrace_find_function_by_number, btrace_set_insn_history)
12018 (btrace_set_call_history): New.
12019 * btrace.c (btrace_init_insn_iterator)
12020 (btrace_init_func_iterator, compute_itrace): Remove.
12021 (ftrace_print_function_name, ftrace_print_filename)
12022 (ftrace_skip_file): Change
12023 parameter to const.
12024 (ftrace_init_func): Remove.
12025 (ftrace_debug): Use new btrace_function fields.
12026 (ftrace_function_switched): Also consider gaining and
12027 losing symbol information).
12028 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12029 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12030 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12031 New.
12032 (ftrace_new_function): Move. Remove debug print.
12033 (ftrace_update_lines, ftrace_update_insns): New.
12034 (ftrace_update_function): Check for call, ret, and jump.
12035 (compute_ftrace): Renamed to ...
12036 (btrace_compute_ftrace): ...this. Rewritten to compute call
12037 stack.
12038 (btrace_fetch, btrace_clear): Updated.
12039 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12040 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12041 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12042 (btrace_call_number, btrace_call_begin, btrace_call_end)
12043 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12044 (btrace_find_function_by_number, btrace_set_insn_history)
12045 (btrace_set_call_history): New.
12046 * record-btrace.c (require_btrace): Use new btrace thread
12047 info fields.
12048 (record_btrace_info, btrace_insn_history)
12049 (record_btrace_insn_history, record_btrace_insn_history_range):
12050 Use new btrace thread info fields and new iterator.
12051 (btrace_func_history_src_line): Rename to ...
12052 (btrace_call_history_src_line): ...this. Use new btrace
12053 thread info fields.
12054 (btrace_func_history): Rename to ...
12055 (btrace_call_history): ...this. Use new btrace thread info
12056 fields and new iterator.
12057 (record_btrace_call_history, record_btrace_call_history_range):
12058 Use new btrace thread info fields and new iterator.
12059
8372a7cb
MM
120602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12061
12062 * frame.h (frame_id_build_unavailable_stack_special): New.
12063 * frame.c (frame_id_build_unavailable_stack_special): New.
12064
c2170eef
MM
120652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12066
12067 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12068 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12069 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12070 to gdbarch.
12071 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12072 (i386_insn_is_jump, i386_jmp_p): New.
12073 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12074 insn_is_jump to gdbarch.
12075 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12076 * gdbarch.h: Regenerated.
12077 * gdbarch.c: Regenerated.
12078 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12079 (default_insn_is_jump): New.
12080 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12081 (default_insn_is_jump): New.
12082
864089d2
MM
120832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12084
12085 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12086 Change to ...
12087 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12088 (btrace_read_type) <btrace_read_new>: Change to ...
12089 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12090
ed9edfb5
MM
120912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12092
12093 * common/linux-btrace.c (linux_read_btrace): Free trace from
12094 previous iteration.
12095
fbcbc3fd
DE
120962014-01-15 Doug Evans <dje@google.com>
12097
12098 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12099 uint32_t.
12100
3d548a53
TT
121012014-01-15 Tom Tromey <tromey@redhat.com>
12102
12103 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12104 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12105 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12106 (set_objfile_main_name): New function.
12107 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12108 language_of_main>: New fields.
12109 (set_objfile_main_name): Declare.
12110 * symtab.c (find_main_name): Loop over objfiles to find the main
12111 name and language.
12112 (set_main_name): Now static.
12113 (get_main_info): Add comment.
12114 * symtab.h (set_main_name): Don't declare.
12115
32ac0d11
TT
121162014-01-15 Tom Tromey <tromey@redhat.com>
12117
12118 * symtab.c (main_progspace_key): New global.
12119 (struct main_info): New.
12120 (name_of_main, language_of_main): Remove.
12121 (get_main_info, main_info_cleanup): New function.
12122 (set_main_name, main_name, main_language): Use get_main_info.
12123 (_initialize_symtab): Initialize main_progspace_key.
12124
9e6c82ad
TT
121252014-01-15 Tom Tromey <tromey@redhat.com>
12126
12127 * dbxread.c (process_one_symbol): Update.
12128 * dwarf2read.c (read_partial_die): Update.
12129 * symfile.c (set_initial_language): Call main_language.
12130 * symtab.c (language_of_main): Now static.
12131 (set_main_name): Add 'lang' parameter.
12132 (find_main_name): Update.
12133 (main_language): New function.
12134 (symtab_observer_executable_changed): Update.
12135 * symtab.h (set_main_name): Update.
12136 (language_of_main): Remove.
12137 (main_language): Declare.
12138
6ef55de7
TT
121392014-01-15 Tom Tromey <tromey@redhat.com>
12140
12141 * symfile.c (init_entry_point_info): Use new "initialized" field.
12142 Update.
12143 * objfiles.h (struct entry_point) <initialized>: New field.
12144 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12145 (struct objfile) <ei>: ...here. Remove.
12146 * objfiles.c (entry_point_address_query): Update.
12147
53eddfa6
TT
121482014-01-15 Tom Tromey <tromey@redhat.com>
12149
12150 * objfiles.c (entry_point_address_query): Relocate entry point
12151 address.
12152 (objfile_relocate1): Do not relocate entry point address.
12153 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12154 <the_bfd_section_index>: New field.
12155 * symfile.c (init_entry_point_info): Find the entry point's
12156 section.
12157
d56e56aa
TT
121582014-01-15 Tom Tromey <tromey@redhat.com>
12159
12160 * solib-frv.c (enable_break): Use entry_point_address_query.
12161
33a97bbe
OJ
121622014-01-15 Omair Javaid <omair.javaid@linaro.org>
12163
12164 * NEWS: Add note on improved process record-replay on
12165 arm*-linux* targets.
12166
c6ec2b30
OJ
121672014-01-15 Omair Javaid <omair.javaid@linaro.org>
12168
12169 * arm-tdep.c (enum arm_record_result): New enum.
12170 (arm_record_unsupported_insn): New function.
12171 (arm_record_coproc_data_proc): Removed.
12172 (thumb2_record_ld_st_multiple): New function.
12173 (thumb2_record_ld_st_dual_ex_tbb): New function.
12174 (thumb2_record_data_proc_sreg_mimm): New function.
12175 (thumb2_record_ps_dest_generic): New function.
12176 (thumb2_record_branch_misc_cntrl): New function.
12177 (thumb2_record_str_single_data): New function.
12178 (thumb2_record_ld_mem_hints): New function.
12179 (thumb2_record_ld_word): New function.
12180 (thumb2_record_lmul_lmla_div): New function.
12181 (thumb2_record_decode_insn_handler): New function.
12182 (decode_insn): Add thumb32 instruction handlers.
12183
97dfe206
OJ
121842014-01-15 Omair Javaid <omair.javaid@linaro.org>
12185
12186 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12187 (struct arm_linux_record_tdep): Declare.
12188 (arm_canonicalize_syscall): New function.
12189 (arm_all_but_pc_registers_record): New function.
12190 (arm_linux_syscall_record): New function.
12191 (arm_linux_init_abi): Add syscall recording constructs.
12192 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12193 decoding. (arm_record_coproc_data_proc): Update arm syscall
12194 decoding.
12195 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12196 <arm_syscall_record>: New field.
12197 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12198 gdb_target_obs.
12199
9904a494
OJ
122002014-01-15 Omair Javaid <omair.javaid@linaro.org>
12201
12202 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12203 register for push instruction recording.
12204
f969241e
OJ
122052014-01-15 Omair Javaid <omair.javaid@linaro.org>
12206
12207 * arm-tdep.c (thumb_record_misc): Update to correct logical
12208 error while recording ldm, ldmia and pop instructions.
12209
bfbbec00
OJ
122102014-01-15 Omair Javaid <omair.javaid@linaro.org>
12211
12212 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12213
e40adcc9
PA
122142014-01-15 Pedro Alves <palves@redhat.com>
12215
12216 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12217 (go32_resume, go32_fetch_registers, store_register)
12218 (go32_store_registers, go32_prepare_to_store)
12219 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12220 (go32_create_inferior, go32_can_run, go32_terminal_init)
12221 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12222 declarations.
12223
b0a16e66
TT
122242014-01-15 Tom Tromey <tromey@redhat.com>
12225
12226 * target.h (async_callback_ftype): New typedef.
12227 (struct target_ops) <to_async>: Use it.
12228
bf7105a4
JB
122292014-01-15 Joel Brobecker <brobecker@adacore.com>
12230
12231 * python/py-value.c (get_field_type): Remove unnecessary curly
12232 braces for single-statement if block.
12233
a8f35c2e
JB
122342014-01-15 Joel Brobecker <brobecker@adacore.com>
12235
12236 * python/py-type.c (convert_field): Add missing empty line
12237 after declarations.
12238
bb4142cf
DE
122392014-01-14 Doug Evans <dje@google.com>
12240
12241 * symfile.h (expand_symtabs_matching): Renamed from
12242 expand_partial_symbol_names. Update prototype.
12243 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12244 * symfile.c (expand_symtabs_matching): Renamed from
12245 expand_partial_symbol_names. New args file_matcher, kind.
12246 Rename arg fun to symbol_matcher.
12247 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12248 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12249 ada_expand_partial_symbol_name.
12250 (ada_make_symbol_completion_list): Update to call
12251 expand_symtabs_matching.
12252 (ada_add_global_exceptions): Call expand_symtabs_matching.
12253 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12254 call map_symbol_filenames.
12255 * symtab.c (sources_info): Update to call map_symbol_filenames.
12256 (search_symbols): Call expand_symtabs_matching.
12257 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12258 (default_make_symbol_completion_list_break_on): Update to call
12259 expand_symtabs_matching.
12260 (make_source_files_completion_list): Update to call
12261 map_symbol_filenames.
12262
206f2a57
DE
122632014-01-14 Doug Evans <dje@google.com>
12264
12265 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12266 (expand_symtabs_symbol_matcher_ftype): New typedef.
12267 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12268 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12269 * symfile.c (expand_partial_symbol_names): Update to use
12270 expand_symtabs_symbol_matcher_ftype.
12271 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12272 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12273 Arg name_matcher renamed to symbol_matcher.
12274 * psymtab.c (recursively_search_psymtabs): Update to use
12275 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12276 sym_matcher.
12277 (expand_symtabs_matching_via_partial): Update to use
12278 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12279 Arg name_matcher renamed to symbol_matcher.
12280
540c2971
DE
122812014-01-14 Doug Evans <dje@google.com>
12282
12283 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12284 (map_partial_symbol_filenames): Ditto.
12285 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12286 (map_partial_symbol_filenames): Ditto.
12287 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12288 (map_partial_symbol_filenames): Ditto.
12289 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12290 (map_partial_symbol_filenames): Ditto.
12291 * symtab.c: Delete #include "psymtab.h".
12292
8213266a
PA
122932014-01-14 Pedro Alves <palves@redhat.com>
12294 Tom Tromey <tromey@redhat.com>
12295
12296 * infrun.c (use_displaced_stepping): Use find_record_target
12297 instead of RECORD_IS_USED.
12298 (adjust_pc_after_break): Use record_full_is_used instead of
12299 RECORD_IS_USED.
12300 * record-btrace.c (record_btrace_open): Call record_preopen
12301 instead of checking RECORD_IS_USED.
12302 * record-full.c (record_full_shortname)
12303 (record_full_core_shortname): New globals.
12304 (record_full_is_used): New function.
12305 (find_full_open): Call record_preopen instead of checking
12306 RECORD_IS_USED.
12307 (init_record_full_ops): Set the target's shortname to
12308 record_full_shortname.
12309 (init_record_full_core_ops): Set the target's shortname to
12310 record_full_core_shortname.
12311 * record-full.h (record_full_is_used): Declare.
12312 * record.c (find_record_target): Make extern.
12313 (record_preopen): New function.
12314 * record.h (RECORD_IS_USED): Delete macro.
12315 (find_record_target, record_preopen): Declare functions.
12316
7ec1862d
YQ
123172014-01-14 Yao Qi <yao@codesourcery.com>
12318
12319 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12320 'len''s type to ULONGEST.
12321 (core_xfer_shared_libraries_aix): Likewise.
12322 * gdbarch.c, gdbarch.h: Regenerated.
12323 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12324 Change type of 'len' to ULONGEST.
12325 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12326 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12327
dea80a27
YQ
123282014-01-14 Yao Qi <yao@codesourcery.com>
12329
12330 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12331 type of 'len' to ULONGEST.
12332 (linux_xfer_osdata_processgroups): Likewise.
12333 (linux_xfer_osdata_threads): Likewise.
12334 (linux_xfer_osdata_fds): Likewise.
12335 (linux_xfer_osdata_isockets): Likewise.
12336 (linux_xfer_osdata_shm): Likewise.
12337 (linux_xfer_osdata_sem): Likewise.
12338 (linux_xfer_osdata_msg): Likewise.
12339 (linux_common_xfer_osdata): Likewise.
12340 (struct osdata_type) <getter>: Likewise.
12341 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12342 the declaration.
12343
b55e14c7
YQ
123442014-01-14 Yao Qi <yao@codesourcery.com>
12345
12346 * target.h (target_xfer_partial_ftype): Update.
12347 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12348 ULONGEST.
12349 * aix-thread.c (aix_thread_xfer_partial): Change type of
12350 argument 'len' to ULONGEST.
12351 * auxv.c (procfs_xfer_auxv): Likewise.
12352 (ld_so_xfer_auxv): Likewise.
12353 (memory_xfer_auxv): Likewise.
12354 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12355 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12356 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12357 * corelow.c (core_xfer_partial): Likewise.
12358 * ctf.c (ctf_xfer_partial): Likewise.
12359 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12360 '%u'.
12361 (darwin_read_dyld_info): Likewise.
12362 (darwin_xfer_partial): Likewise.
12363 * exec.c (section_table_xfer_memory_partial): Likewise.
12364 (exec_xfer_partial): Likewise.
12365 * exec.h (section_table_xfer_memory_partial): Update
12366 declaration.
12367 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12368 instead of plongest.
12369 (gnu_xfer_partial): Likewise.
12370 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12371 (ia64_hpux_xfer_solib_got): Likewise.
12372 (ia64_hpux_xfer_partial): Likewise.
12373 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12374 * inf-ptrace.c (inf_ptrace_xfer_partial):
12375 * inf-ttrace.c (inf_ttrace_xfer_partial):
12376 * linux-nat.c (linux_xfer_siginfo): Likewise.
12377 (linux_nat_xfer_partial): Likewise.
12378 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12379 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12380 * monitor.c (monitor_xfer_memory): Likewise.
12381 (monitor_xfer_partial): Likewise.
12382 * procfs.c (procfs_xfer_partial): Likewise.
12383 * record-full.c (record_full_xfer_partial): Likewise.
12384 (record_full_core_xfer_partial): Likewise.
12385 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12386 instead of plongest.
12387 (gdbsim_xfer_partial): Likewise.
12388 * remote.c (remote_xfer_partial): Likewise.
12389 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12390 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12391 declaration.
12392 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12393 (rs6000_xfer_shared_libraries): Likewise.
12394 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12395 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12396 (sparc_xfer_partial): Likewise.
12397 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12398 (spu_xfer_partial): Likewise.
12399 * spu-multiarch.c (spu_xfer_partial): Likewise.
12400 * target.c (target_read_live_memory): Likewise.
12401 (memory_xfer_live_readonly_partial): Likewise.
12402 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12403 (target_xfer_partial, default_xfer_partial): Likewise.
12404 (current_xfer_partial): Likewise.
12405 * tracepoint.c (tfile_xfer_partial): Likewise.
12406 * windows-nat.c (windows_xfer_memory): Likewise. Call
12407 pulongest instead of plongest.
12408 (windows_xfer_partial): Likewise.
12409 (windows_xfer_shared_libraries): Likewise.
12410
05804640
YQ
124112014-01-14 Yao Qi <yao@codesourcery.com>
12412
12413 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12414 target_xfer_partial_ftype.
12415
b5b08fb4
SC
124162014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12417
12418 PR python/15464
12419 PR python/16113
12420 * valops.c (value_struct_elt_bitpos): New function
12421 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12422 object to 'None' if the field name is an empty string ("").
12423 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12424 attribute to look for a field when 'name' is 'None'.
12425 (get_field_type): New function
12426
13aaf454
DE
124272014-01-13 Doug Evans <dje@google.com>
12428
12429 PR symtab/16426
12430 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12431 (try_open_dwop_file): Ditto.
12432 * gdb_bfd.c: #include "vec.h".
12433 (bfdp): New typedef.
12434 (struct gdb_bfd_data): New member included_bfds.
12435 (gdb_bfd_unref): Unref all included bfds.
12436 (gdb_bfd_record_inclusion): New function.
12437 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12438
c2cec97c
TT
124392014-01-13 Tom Tromey <tromey@redhat.com>
12440
12441 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12442
78e5999d
TT
124432014-01-13 Tom Tromey <tromey@redhat.com>
12444
12445 * defs.h (use_windows): Remove.
12446 * gdb.c (main): Update.
12447 * main.c (captured_main, gdb_main): Update.
12448 * main.h (struct captured_main_args) <use_windows>: Remove.
12449 * top.c (use_windows): Remove.
12450
f2052bbe
TT
124512014-01-13 Tom Tromey <tromey@redhat.com>
12452
12453 * defs.h (deprecated_flush_hook): Remove.
12454
fde4f8ed
JK
124552014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12456
12457 PR threads/16216
12458 * linux-thread-db.c (try_thread_db_load): Add parameter
12459 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12460 (try_thread_db_load_from_pdir_1): Move it there from here.
12461 (try_thread_db_load_from_sdir): Update caller.
12462 (try_thread_db_load_from_dir): Move it there from here.
12463
bdf61915
PP
124642014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12465
12466 * regformats/regdat.sh: Always rewrite the register file.
12467
f71e1a8d
PA
124682014-01-13 Pedro Alves <palves@redhat.com>
12469
12470 * Makefile.in (CHECK_HEADERS): New variable.
12471 (check-headers:): New rule.
12472
42c85435
TT
124732014-01-13 Tom Tromey <tromey@redhat.com>
12474
12475 * cli/cli-setshow.c (do_set_command): Update.
12476 * defs.h (deprecated_set_hook): Remove.
12477 * top.c (deprecated_set_hook): Remove.
12478
f8de5129
PA
124792014-01-13 Pedro Alves <palves@redhat.com>
12480
12481 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12482 the tracepoint if the PC is a pseudo-register.
12483
fc270c35
TT
124842014-01-13 Tom Tromey <tromey@redhat.com>
12485
12486 * defs.h (XCALLOC): Remove.
12487 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12488 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12489 * dwarf2loc.c (allocate_piece_closure): Likewise.
12490 * elfread.c (elf_symfile_segments): Likewise.
12491 (elf_symfile_segments): Likewise.
12492 * gdbtypes.c (copy_type_recursive): Likewise.
12493 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12494 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12495 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12496 XCALLOC.
12497 * mt-tdep.c (mt_gdbarch_init): Likewise.
12498 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12499 XCALLOC.
12500 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12501 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12502 * registry.c (registry_alloc_data): Likewise.
12503 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12504 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12505 * serial.c (serial_fdopen_ops): Likewise.
12506 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12507 XCALLOC.
12508 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12509 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12510 not XCALLOC.
12511
70ba0933
TT
125122014-01-13 Tom Tromey <tromey@redhat.com>
12513
12514 * defs.h (XMALLOC): Remove.
12515 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12516 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12517 * cli-out.c (struct ui_out *): Likewise.
12518 * cli/cli-dump.c (add_dump_command): Likewise.
12519 (add_dump_command): Likewise.
12520 * complaints.c (get_complaints): Likewise.
12521 (find_complaint): Likewise.
12522 * dwarf2-frame.c (execute_cfa_program): Likewise.
12523 * dwarf2read.c (abbrev_table_read_table): Likewise.
12524 * gdbarch.sh: Likewise.
12525 * gdbarch.c: Rebuild.
12526 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12527 * interps.c (interp_new): Likewise.
12528 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12529 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12530 * mi/mi-console.c (mi_console_file_new): Likewise.
12531 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12532 * mi/mi-out.c (mi_out_new): Likewise.
12533 * mi/mi-parse.c (mi_parse): Likewise.
12534 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12535 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12536 * observer.c (xalloc_observer_list_node): Likewise.
12537 * regcache.c (regcache_xmalloc_1): Likewise.
12538 * reggroups.c (reggroup_new): Likewise.
12539 (_initialize_reggroup): Likewise.
12540 * registry.c (register_data_with_cleanup): Likewise.
12541 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12542 * ser-base.c (serial_ttystate): Likewise.
12543 * ser-mingw.c (make_pipe_state): Likewise.
12544 * ser-pipe.c (pipe_open): Likewise.
12545 * serial.c (serial_open): Likewise.
12546 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12547 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12548 (tui_alloc_win_info): Likewise.
12549 (tui_add_content_elements): Likewise.
12550 * tui/tui-file.c (tui_file_new): Likewise.
12551 * tui/tui-out.c (tui_out_new): Likewise.
12552 * ui-file.c (mem_file_new): Likewise.
12553 * ui-out.c (push_level): Likewise.
12554 (make_cleanup_ui_out_end): Likewise.
12555 (append_header_to_list): Likewise.
12556 (ui_out_new): Likewise.
12557 * user-regs.c (user_reg_add_builtin): Likewise.
12558
41bf6aca
TT
125592014-01-13 Tom Tromey <tromey@redhat.com>
12560
12561 * defs.h (XZALLOC): Remove.
12562 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12563 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12564 (get_ada_tasks_inferior_data): Likewise.
12565 * auto-load.c (get_auto_load_pspace_data): Likewise.
12566 * auxv.c (get_auxv_inferior_data): Likewise.
12567 * bfd-target.c (target_bfd_reopen): Likewise.
12568 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12569 (deprecated_insert_raw_breakpoint): Likewise.
12570 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12571 * corelow.c (core_open): Likewise.
12572 * darwin-nat.c (darwin_check_new_threads): Likewise.
12573 (darwin_attach_pid): Likewise.
12574 * dummy-frame.c (dummy_frame_push): Likewise.
12575 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12576 * dwarf2loc.c (allocate_piece_closure): Likewise.
12577 * elfread.c (elf_symfile_segments): Likewise.
12578 * eval.c (ptrmath_type_p): Likewise.
12579 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12580 * gdbtypes.c (alloc_type_arch): Likewise.
12581 (alloc_type_instance): Likewise.
12582 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12583 * inf-child.c (inf_child_can_use_agent): Likewise.
12584 * inflow.c (get_inflow_inferior_data): Likewise.
12585 * infrun.c (save_infcall_suspend_state): Likewise.
12586 * jit.c (jit_reader_load): Likewise.
12587 (get_jit_objfile_data): Likewise.
12588 (get_jit_program_space_data): Likewise.
12589 (jit_object_open_impl): Likewise.
12590 (jit_symtab_open_impl): Likewise.
12591 (jit_block_open_impl): Likewise.
12592 (jit_frame_sniffer): Likewise.
12593 * linux-fork.c (add_fork): Likewise.
12594 * maint.c (make_command_stats_cleanup): Likewise.
12595 * objfiles.c (get_objfile_pspace_data): Likewise.
12596 * opencl-lang.c (struct lval_closure): Likewise.
12597 * osdata.c (osdata_start_osdata): Likewise.
12598 * progspace.c (new_address_space): Likewise.
12599 (add_program_space): Likewise.
12600 * remote-sim.c (get_sim_inferior_data): Likewise.
12601 * sh-tdep.c (sh_gdbarch_init): Likewise.
12602 * skip.c (Ignore): Likewise.
12603 (skip_delete_command): Likewise.
12604 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12605 (library_list_start_library): Likewise.
12606 (solib_aix_current_sos): Likewise.
12607 * solib-darwin.c (get_darwin_info): Likewise.
12608 (darwin_current_sos): Likewise.
12609 * solib-dsbt.c (get_dsbt_info): Likewise.
12610 * solib-ia64-hpux.c (new_so_list): Likewise.
12611 (ia64_hpux_get_solib_linkage_addr): Likewise.
12612 * solib-spu.c (append_ocl_sos): Likewise.
12613 (spu_current_sos): Likewise.
12614 * solib-svr4.c (get_svr4_info): Likewise.
12615 (svr4_keep_data_in_core): Likewise.
12616 (library_list_start_library): Likewise.
12617 (svr4_default_sos): Likewise.
12618 (svr4_read_so_list): Likewise.
12619 * solib-target.c (library_list_start_library): Likewise.
12620 (solib_target_current_sos): Likewise.
12621 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12622 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12623 * symfile.c (default_symfile_segments): Likewise.
12624 * target-descriptions.c (tdesc_data_init): Likewise.
12625 (tdesc_create_reg): Likewise.
12626 (struct tdesc_type *): Likewise.
12627 (tdesc_create_vector): Likewise.
12628 (tdesc_set_struct_size): Likewise.
12629 (struct tdesc_type *): Likewise.
12630 (tdesc_free_feature): Likewise.
12631 (tdesc_create_feature): Likewise.
12632 * windows-nat.c (windows_add_thread): Likewise.
12633 (windows_make_so): Likewise.
12634 * xml-support.c (gdb_xml_body_text): Likewise.
12635 (gdb_xml_create_parser_and_cleanup): Likewise.
12636 (xml_process_xincludes): Likewise.
12637 * xml-syscall.c (allocate_syscalls_info): Likewise.
12638 (syscall_create_syscall_desc): Likewise.
12639
5acfdbae
SDJ
126402014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12641
12642 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12643 function, with code from i386_stap_parse_special_token.
12644 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12645 (i386_stap_parse_special_token): Move code to the two functions
12646 above; simplify it.
12647
0000e5cc
PA
126482014-01-09 Pedro Alves <palves@redhat.com>
12649 Hui Zhu <hui@codesourcery.com>
12650
12651 PR gdb/16101
12652 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12653 bp_err_string. Don't mark the location shlib_disabled if the
12654 error thrown wasn't a generic or memory error. Catch errors
12655 thrown while inserting breakpoints in overlayed code. Output
12656 error message of software breakpoints.
12657 * remote.c (remote_insert_breakpoint): If this breakpoint has
12658 target-side commands but this stub doesn't support Z0 packets,
12659 throw NOT_SUPPORTED_ERROR error.
12660 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12661 * target.h (target_insert_breakpoint): Extend comment.
12662 (target_insert_hw_breakpoint): Add comment.
12663
b7ea362b
PA
126642014-01-08 Pedro Alves <palves@redhat.com>
12665
12666 * remote.c (remote_add_thread): Add threads silently if starting
12667 up.
12668 (remote_notice_new_inferior): If in all-stop, and starting up,
12669 don't call notice_new_inferior.
12670 (get_current_thread): New function, factored out from ...
12671 (add_current_inferior_and_thread): ... this. Adjust.
12672 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12673 found any thread, then select the remote's current thread as GDB's
12674 current thread too.
12675
b7bba001
JB
126762014-01-08 Joel Brobecker <brobecker@adacore.com>
12677
12678 * NEWS: Create a new section for the next release branch.
12679 Rename the section of the current branch, now that it has
12680 been cut.
12681
16dfbded
JB
126822014-01-08 Joel Brobecker <brobecker@adacore.com>
12683
12684 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12685 * version.in: Bump version to 7.7.50.DATE-cvs.
12686
22c90ac1
YQ
126872014-01-08 Yao Qi <yao@codesourcery.com>
12688
12689 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12690 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12691 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12692
d64ad97c
YQ
126932014-01-08 Yao Qi <yao@codesourcery.com>
12694
12695 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12696 return value of bfd_get_filename to symbol_file_add_from_bfd.
12697
f93ba80c
PM
126982014-01-08 Pierre Muller <muller@sourceware.org>
12699
12700 Fix PR16201.
12701 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12702 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12703 to prim_record_mininal_symbol_and_info.
12704 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12705 in call to prim_record_minimal_symbol_and_info.
12706 (read_pe_exported_syms): Set index field of section_data.
12707
a4d9ba85
AP
127082014-01-07 Andrew Pinski <apinski@cavium.com>
12709
12710 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12711 * features/aarch64.c: Regenerate.
12712
1b67eb02
AS
127132014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12714
12715 * target.c (return_null): Define.
12716 (update_current_target): Use it instead of return_zero for
12717 functions that return a pointer.
12718
5e3f4fab
EBM
127192014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12720
12721 * source.c (add_path): Fix check for duplicated paths in the previously
12722 included paths.
12723
e2616788
HK
127242014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12725
12726 * ada-lang.c: Remove duplicated include statements.
12727 * alphabsd-nat.c: Ditto.
12728 * amd64-darwin-tdep.c: Ditto.
12729 * amd64fbsd-nat.c: Ditto.
12730 * auto-load.c: Ditto.
12731 * ax-gdb.c: Ditto.
12732 * breakpoint.c: Ditto.
12733 * dbxread.c: Ditto.
12734 * fork-child.c: Ditto.
12735 * gdb_usleep.c: Ditto.
12736 * i386-darwin-tdep.c: Ditto.
12737 * i386fbsd-nat.c: Ditto.
12738 * infcmd.c: Ditto.
12739 * inferior.c: Ditto.
12740 * jv-lang.c: Ditto.
12741 * linux-nat.c: Ditto.
12742 * linux-tdep.c: Ditto.
12743 * m68kbsd-nat.c: Ditto.
12744 * m68klinux-nat.c: Ditto.
12745 * microblaze-tdep.c: Ditto.
12746 * mips-linux-tdep.c: Ditto.
12747 * mn10300-tdep.c: Ditto.
12748 * nto-tdep.c: Ditto.
12749 * opencl-lang.c: Ditto.
12750 * osdata.c: Ditto.
12751 * printcmd.c: Ditto.
12752 * regcache.c: Ditto.
12753 * remote-m32r-sdi.c: Ditto.
12754 * remote.c: Ditto.
12755 * symfile.c: Ditto.
12756 * symtab.c: Ditto.
12757 * tilegx-linux-nat.c: Ditto.
12758 * tilegx-tdep.c: Ditto.
12759 * tracepoint.c: Ditto.
12760 * valops.c: Ditto.
12761 * vaxbsd-nat.c: Ditto.
12762 * windows-nat.c: Ditto.
12763 * xtensa-tdep.c: Ditto.
12764
bd1f7788
YQ
127652014-01-07 Yao Qi <yao@codesourcery.com>
12766
12767 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12768
79301218
JB
127692014-01-07 Yao Qi <yao@codesourcery.com>
12770 Joel Brobecker <brobecker@adacore.com>
12771
12772 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12773 (pdc_write_regs): Likewise.
12774 (fetch_regs_kernel_thread): Likewise.
12775 (store_regs_kernel_thread): Likewise.
12776
127772014-01-07 Joel Brobecker <brobecker@adacore.com>
12778
12779 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12780 tagged type objects to their actual type.
12781
8e355c5d
JB
127822014-01-07 Joel Brobecker <brobecker@adacore.com>
12783
12784 * ada-valprint.c (print_field_values): Add "language" parameter.
12785 Update calls to print_field_values and print_variant_part.
12786 Pass new parameter "language" in call to val_print instead
12787 of "current_language". Replace call to ada_val_print by call
12788 to val_print.
12789 (print_variant_part): Add "language" parameter.
12790 (ada_val_print_struct_union): Update call to print_field_values.
12791
4fbf5aa5
JB
127922014-01-07 Joel Brobecker <brobecker@adacore.com>
12793
12794 * ada-valprint.c (ui_memcpy): Delete.
12795 (ada_print_floating): Update documentation. Add empty line
12796 between between function documentation and implementation.
12797 Delete variable "buffer". Use ui_file_xstrdup in place of
12798 ui_file_put. Minor adjustments following this change.
12799
71855601
JB
128002014-01-07 Joel Brobecker <brobecker@adacore.com>
12801
12802 * ada-valprint.c (ada_val_print_string): New function,
12803 extracted from ada_val_print_array.
12804 (ada_val_print_array): Replace extracted code by call
12805 to ada_val_print_string followed by a return. Move
12806 "else" branch to the function's top block.
12807
4eb27a30
JB
128082014-01-07 Joel Brobecker <brobecker@adacore.com>
12809
12810 * ada-valprint.c (ada_val_print_array): Move implementation
12811 down. Rename parameter "offset" and "val" into "offset_aligned"
12812 and "original_value" respectively. Add parameter "offset".
12813
34b27950
JB
128142014-01-07 Joel Brobecker <brobecker@adacore.com>
12815
12816 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12817 re-organizing the code. Change the "???" message printed
12818 when target type is a TYPE_CODE_UNDEF into
12819 "<ref to undefined type>".
12820
079e4591
JB
128212014-01-07 Joel Brobecker <brobecker@adacore.com>
12822
12823 * ada-valprint.c (print_record): Delete, implementation inlined...
12824 (ada_val_print_struct_union): ... here. Remove call to
12825 ada_check_typedef in inlined implementation.
12826
8004dfd1
JB
128272014-01-07 Joel Brobecker <brobecker@adacore.com>
12828
12829 * ada-valprint.c (ada_val_print_gnat_array): New function,
12830 extracted from ada_val_print_1;
12831 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12832 (ada_val_print_flt, ada_val_print_struct_union)
12833 (ada_val_print_ref): Likewise.
12834 (ada_val_print_1): Delete variables i and elttype.
12835 Replace extracted-out code by call to corresponding
12836 new functions.
12837
760a2db0
JB
128382014-01-07 Joel Brobecker <brobecker@adacore.com>
12839
12840 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12841
3a92c861
JB
128422014-01-07 Joel Brobecker <brobecker@adacore.com>
12843
12844 * ada-valprint.c (ada_val_print_1): Replace calls to
12845 ada_val_print_1 by calls to val_print.
12846
cd1630f9
JB
128472014-01-07 Joel Brobecker <brobecker@adacore.com>
12848
12849 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12850 Update calls to self accordingly. Replace calls to c_val_print
12851 by calls to val_print.
12852
bdf779a0
JB
128532014-01-07 Joel Brobecker <brobecker@adacore.com>
12854
12855 * ada-valprint.c (print_record): Delete declaration.
12856 (adjust_type_signedness, ada_val_print_1): Likewise.
12857 (ada_val_print): Move function implementation down.
12858 (print_variant_part, print_field_values, print_record):
12859 Move function implementation up.
12860
c0d48811
JB
128612014-01-07 Joel Brobecker <brobecker@adacore.com>
12862
12863 * python/py-type.c (typy_get_name): New function.
12864 (type_object_getset): Add entry for attribute "name".
12865 * NEWS: Add entry mentioning this new attribute.
12866
c26e9cbb
YQ
128672014-01-07 Yao Qi <yao@codesourcery.com>
12868
12869 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12870 statement.
12871
0cc6f43d
YQ
128722014-01-07 Yao Qi <yao@codesourcery.com>
12873
12874 * gnu-nat.c (info_port_rights): Add qualifier const to
12875 argument args.
12876
eec03155
YQ
128772014-01-07 Yao Qi <yao@codesourcery.com>
12878
12879 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12880
f04a82ef
YQ
128812014-01-07 Yao Qi <yao@codesourcery.com>
12882
12883 * gnu-nat.c (make_inf) Update declaration.
12884 (make_inf): Make it static.
12885 (inf_set_traced): Likewise.
12886 (inf_port_to_thread, inf_task_died_status): Likewise.
12887
d57dda0a
YQ
128882014-01-07 Yao Qi <yao@codesourcery.com>
12889
12890 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12891
3aa8c969
YQ
128922014-01-07 Yao Qi <yao@codesourcery.com>
12893
12894 * gnu-nat.c (_initialize_gnu_nat): Declare.
12895
94123b4f
YQ
128962014-01-07 Yao Qi <yao@codesourcery.com>
12897
12898 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12899 'enum bfd_endian'.
12900 (struct gdbarch_info) <byte_order>: Change type to
12901 'enum bfd_endian'.
12902 <byte_order_for_code>: Likewise.
12903 * gdbarch.c, gdbarch.h: Regenerated.
12904
dc81d70a
TT
129052014-01-06 Sasha Smundak <asmundak@google.com>
12906
12907 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12908
cc2f3c35
TT
129092014-01-06 Tom Tromey <tromey@redhat.com>
12910
12911 * doublest.c (convert_doublest_to_floatformat): Use const, not
12912 CONST.
12913 * somread.c (som_symtab_read): Likewise.
12914
adcf2eed
HZ
129152014-01-07 Hui Zhu <hui@codesourcery.com>
12916
12917 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12918 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12919 (gdb_bfd_fopen): Ditto.
12920 (gdb_bfd_openr): Ditto.
12921 (gdb_bfd_openw): Ditto.
12922 (gdb_bfd_openr_iovec): Ditto.
12923 (gdb_bfd_fdopenr): Ditto.
12924 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12925 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12926 with xstrdup.
12927 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12928 with xstrdup.
12929 * symfile-mem.c (symbol_file_add_from_memory): Removed
12930 gdb_bfd_stash_filename.
12931
50722198
DE
129322014-01-03 Doug Evans <dje@google.com>
12933
12934 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12935 output.
12936
2fa4b862
JB
129372014-01-01 Joel Brobecker <brobecker@adacore.com>
12938
12939 Update year range in copyright notice of all files.
12940
28498c42
JB
129412014-01-01 Joel Brobecker <brobecker@adacore.com>
12942
12943 * top.c (print_gdb_version): Set copyright year to 2014.
12944
7b6e1046
JB
129452014-01-01 Joel Brobecker <brobecker@adacore.com>
12946
12947 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12948
df96af55 12949For older changes see ChangeLog-2013.
c906108c
SS
12950\f
12951Local Variables:
12952mode: change-log
12953left-margin: 8
12954fill-column: 74
12955version-control: never
57da7796 12956coding: utf-8
c906108c 12957End:
This page took 2.270944 seconds and 4 git commands to generate.