]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
[Ada] Fix handling of array renamings
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e6c2c623
PMR
12015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2
3 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
4 value is a reference, actually dereference it in order to get
5 the underlying value.
6
bc1f8cda
SM
72015-09-22 Simon Marchi <simon.marchi@ericsson.com>
8
9 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
10
acaa662f
SM
112015-09-21 Simon Marchi <simon.marchi@ericsson.com>
12
13 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
14 * linespec.c (linespec_lexer_lex_string): Same.
15
4d9d419e
PL
162015-09-21 Pierre Langlois <pierre.langlois@arm.com>
17
18 * NEWS: Mention support for fast tracepoints on aarch64-linux.
19
6ec5f4be
PL
202015-09-21 Pierre Langlois <pierre.langlois@arm.com>
21
22 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
23 variable. Call aarch64_decode_adr instead of
24 aarch64_decode_adrp.
25 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
26 (aarch64_decode_adr): New function declaration.
27 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
28 (aarch64_decode_adr): New function, factored out from
29 aarch64_decode_adrp to decode both adr and adrp instructions.
30
787749ea
PL
312015-09-21 Pierre Langlois <pierre.langlois@arm.com>
32
33 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
34 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
35 (aarch64-insn.o): New rule.
36 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
37 (aarch64*-*-linux*): Likewise.
38 * arch/aarch64-insn.c: New file.
39 * arch/aarch64-insn.h: New file.
40 * aarch64-tdep.c: Include arch/aarch64-insn.h.
41 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
42 arch/aarch64-insn.h.
43 (decode_add_sub_imm): Rename to ...
44 (aarch64_decode_add_sub_imm): ... this.
45 (decode_adrp): Rename to ...
46 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
47 Declare in arch/aarch64-insn.h.
48 (decode_b): Rename to ...
49 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
50 Declare in arch/aarch64-insn.h.
51 (decode_bcond): Rename to ...
52 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
53 Declare in arch/aarch64-insn.h.
54 (decode_br): Rename to ...
55 (aarch64_decode_br): ... this.
56 (decode_cb): Rename to ...
57 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
58 Declare in arch/aarch64-insn.h.
59 (decode_eret): Rename to ...
60 (aarch64_decode_eret): ... this.
61 (decode_movz): Rename to ...
62 (aarch64_decode_movz): ... this.
63 (decode_orr_shifted_register_x): Rename to ...
64 (aarch64_decode_orr_shifted_register_x): ... this.
65 (decode_ret): Rename to ...
66 (aarch64_decode_ret): ... this.
67 (decode_stp_offset): Rename to ...
68 (aarch64_decode_stp_offset): ... this.
69 (decode_stp_offset_wb): Rename to ...
70 (aarch64_decode_stp_offset_wb): ... this.
71 (decode_stur): Rename to ...
72 (aarch64_decode_stur): ... this.
73 (decode_tb): Rename to ...
74 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
75 Declare in arch/aarch64-insn.h.
76 (aarch64_analyze_prologue): Adjust calls to renamed functions.
77
183dc7ec
DE
782015-09-20 Doug Evans <xdje42@gmail.com>
79
80 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
81
2ee7123e
DE
822015-09-20 Doug Evans <xdje42@gmail.com>
83
84 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
85 variable name that collides with a parameter.
86
7d1c9c9b
JB
872015-09-20 Joel Brobecker <brobecker@adacore.com>
88
89 * dwarf2loc.c (locexpr_get_frame_base): Renames
90 block_op_get_frame_base.
91 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
92 block_op_get_frame_base by reference to locexpr_get_frame_base.
93 (loclist_get_frame_base): New function, near identical copy of
94 locexpr_get_frame_base.
95 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
96 block_op_get_frame_base by reference to loclist_get_frame_base.
97
7dc7c195
DE
982015-09-19 Doug Evans <xdje42@gmail.com>
99
100 * ravenscar-thread.c (ravenscar_inferior_created): Replace
101 current_inferior ()->gdbarch with its wrapper target_gdbarch.
102
be550b6e
DE
1032015-09-18 Doug Evans <xdje42@gmail.com>
104
105 * linux-thread-db.c (record_thread): Return the created thread.
106 (thread_from_lwp): Likewise.
107 (thread_db_get_thread_local_address): Update.
108
615b3f62
DE
1092015-09-18 Doug Evans <xdje42@gmail.com>
110
111 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
112 move only member demangled_name up. All uses updated.
113
015d2e7e
DE
1142015-09-18 Doug Evans <xdje42@gmail.com>
115
116 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
117 kind of minimal symbol in the error message.
118 * objfiles.c (objfile_flavour_name): New function.
119 * objfiles.h (objfile_flavour_name): Declare.
120
a0cc84cd
YQ
1212015-09-18 Yao Qi <yao.qi@linaro.org>
122
123 * nat/aarch64-linux.c: Include elf/common.h,
124 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
125 (aarch64_ps_get_thread_area): New function.
126 * nat/aarch64-linux.h: Include gdb_proc_service.h.
127 (aarch64_ps_get_thread_area): Declare.
128 * aarch64-linux-nat.c (ps_get_thread_area): Call
129 aarch64_ps_get_thread_area.
130
d2939ba2
MM
1312015-09-18 Markus Metzger <markus.t.metzger@intel.com>
132
133 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
134
f2665db5
MM
1352015-09-18 Markus Metzger <markus.t.metzger@intel.com>
136
137 * NEWS: Announce new scheduler-locking mode.
138 * infrun.c (schedlock_replay): New.
139 (scheduler_enums): Add schedlock_replay.
140 (scheduler_mode): Change default to schedlock_replay.
141 (user_visible_resume_ptid): Handle schedlock_replay.
142 (clear_proceed_status_thread): Stop replaying if resumed thread is
143 not replaying.
144 (schedlock_applies): Handle schedlock_replay.
145 (_initialize_infrun): Document new scheduler-locking mode.
146 * record-btrace.c (record_btrace_resume): Remove code to stop other
147 threads when not replaying the resumed thread.
148
7ff27e9b
MM
1492015-09-18 Markus Metzger <markus.t.metzger@intel.com>
150
151 * record-btrace.c ((record_btrace_will_replay): New.
152 (init_record_btrace_ops): Initialize to_record_will_replay.
153 * record-full.c ((record_full_will_replay): New.
154 (init_record_full_ops): Initialize to_record_will_replay.
155 * target-delegates.c: Regenerated.
156 * target.c (target_record_will_replay): New.
157 * target.h (struct target_ops) <to_record_will_replay>: New.
158 (target_record_will_replay): New.
159
797094dd
MM
1602015-09-18 Markus Metzger <markus.t.metzger@intel.com>
161
162 * record-btrace.c (record_btrace_resume): Call
163 target_record_stop_replaying.
164 (record_btrace_stop_replaying_all): New.
165 (init_record_btrace_ops): Initialize to_record_stop_replaying.
166 * record-full.c (record_full_stop_replaying): New.
167 (init_record_full_ops ): Initialize to_record_stop_replaying.
168 * target-delegates.c: Regenerated.
169 * target.c (target_record_stop_replaying): New.
170 * target.h (struct target_ops) <to_record_stop_replaying>: New.
171 (target_record_stop_replaying): New.
172
4d10e986
MM
1732015-09-18 Markus Metzger <markus.t.metzger@intel.com>
174
175 * record-btrace.c (record_btrace_xfer_partial)
176 (record_btrace_store_registers, record_btrace_prepare_to_store):
177 Call record_btrace_is_replaying with inferior_ptid instead of
178 minus_one_ptid.
179 (record_btrace_store_registers): Change error message.
180
a52eab48
MM
1812015-09-18 Markus Metzger <markus.t.metzger@intel.com>
182
183 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
184 Update users to pass minus_one_ptid.
185 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
186 * record.c (cmd_record_delete): Pass inferior_ptid to
187 target_record_is_replaying.
188 * target-delegates.c: Regenerated.
189 * target.c (target_record_is_replaying): Add ptid argument.
190 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
191 argument.
192 (target_record_is_replaying): Add ptid argument.
193
cbb55fa7
MM
1942015-09-18 Markus Metzger <markus.t.metzger@intel.com>
195
196 * record-btrace.c (record_btrace_open): Remove non_stop check.
197 * NEWS: Announce that record btrace supports non-stop mode.
198
d1988021
MM
1992015-09-18 Markus Metzger <markus.t.metzger@intel.com>
200
201 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
202 in the TARKET_WAITKIND_NO_HISTORY case.
203
a6b5be76
MM
2042015-09-18 Markus Metzger <markus.t.metzger@intel.com>
205
206 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
207 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
208
ec71cc2f
MM
2092015-09-18 Markus Metzger <markus.t.metzger@intel.com>
210
211 * record-btrace.c (get_thread_current_frame): New.
212 (record_btrace_start_replaying): Call get_thread_current_frame.
213
0ca912df
MM
2142015-09-18 Markus Metzger <markus.t.metzger@intel.com>
215
216 * record-btrace.c (record_btrace_resume_thread): A move request
217 overwrites a previous move request.
218 (record_btrace_find_resume_thread): Removed.
219 (record_btrace_resume): Resume all requested threads.
220
e3cfc1c7
MM
2212015-09-18 Markus Metzger <markus.t.metzger@intel.com>
222
223 * record-btrace.c: Include vec.h.
224 (record_btrace_find_thread_to_move): Removed.
225 (btrace_step_no_resumed, btrace_step_again)
226 (record_btrace_stop_replaying_at_end): New.
227 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
228 (record_btrace_single_step_forward): Remove calls to
229 record_btrace_stop_replaying.
230 (record_btrace_step_thread): Do only one step for BTHR_CONT and
231 BTHR_RCONT. Keep threads at the end of their history moving.
232 (record_btrace_wait): Call record_btrace_step_thread for all threads
233 until one reports an event. Call record_btrace_stop_replaying_at_end
234 for the eventing thread.
235
cf8f8f0c
MM
2362015-09-18 Markus Metzger <markus.t.metzger@intel.com>
237
238 * record-btrace.c (record_btrace_single_step_forward): Return
239 NO_HISTORY if a step brings us to the end of the execution history.
240
011c71b6
MM
2412015-09-18 Markus Metzger <markus.t.metzger@intel.com>
242
243 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
244 to ...
245 (record_btrace_single_step_forward): ... here and
246 (record_btrace_single_step_backward): ... here.
247
d825d248
MM
2482015-09-18 Markus Metzger <markus.t.metzger@intel.com>
249
250 * record-btrace.c (btrace_step_spurious)
251 (record_btrace_single_step_forward)
252 (record_btrace_single_step_backward): New.
253 (record_btrace_step_thread): Call record_btrace_single_step_forward
254 and record_btrace_single_step_backward.
255
3c615f99
MM
2562015-09-18 Markus Metzger <markus.t.metzger@intel.com>
257
258 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
259 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
260
987e68b1
MM
2612015-09-18 Markus Metzger <markus.t.metzger@intel.com>
262
263 * record-btrace.c (btrace_thread_flag_to_str)
264 (record_btrace_cancel_resume): New.
265 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
266 (record_btrace_resume): Print execution direction.
267 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
268 (record_btrace_wait): Call record_btrace_cancel_resume.
269
6e4879f0
MM
2702015-09-18 Markus Metzger <markus.t.metzger@intel.com>
271
272 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
273 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
274 (record_btrace_find_thread_to_move): Also accept threads that have
275 BTHR_STOP set.
276 (btrace_step_stopped_on_request, record_btrace_stop): New.
277 (record_btrace_step_thread): Support BTHR_STOP.
278 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
279 (init_record_btrace_ops): Initialize to_stop.
280
5953356c
MM
2812015-09-18 Markus Metzger <markus.t.metzger@intel.com>
282
283 * record-btrace.c (record_btrace_wait): Replace non_stop check with
284 target_is_non_stop_p ().
285
bfca584f
PMR
2862015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
287
288 * ada-typeprint.c (print_array_type): Do not describe arrays as
289 packed when they embed dynamic elements.
290
5382cfab
PW
2912015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
292
293 * symtab.h (address_class): Document that TLS variables
294 are handled by LOC_UNRESOLVED.
295 * findvar.c (default_read_var_value): Don't relocate TLS variables.
296 * printcmd.c (address_info): Don't relocate TLS variables.
297
b277c936
PL
2982015-09-15 Pierre Langlois <pierre.langlois@arm.com>
299
300 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
301 (decode_adrp): Likewise.
302 (decode_b): Likewise.
303 (decode_bcond): Likewise.
304 (decode_br): Likewise.
305 (decode_cb): Likewise.
306 (decode_eret): Likewise.
307 (decode_movz): Likewise.
308 (decode_orr_shifted_register_x): Likewise.
309 (decode_ret): Likewise.
310 (decode_stp_offset): Likewise.
311 (decode_stp_offset_wb): Likewise.
312 (decode_stur): Likewise.
313 (decode_tb): Likewise.
314 (aarch64_analyze_prologue): Likewise.
315 (pass_in_x): Likewise.
316 (pass_in_v): Likewise.
317 (pass_on_stack): Likewise.
318 (aarch64_push_dummy_call): Likewise.
319 (aarch64_extract_return_value): Likewise.
320 (aarch64_store_return_value): Likewise.
321 (aarch64_return_value): Likewise.
322 (aarch64_record_asimd_load_store): Likewise.
323 (aarch64_record_load_store): Likewise.
324 (aarch64_record_data_proc_simd_fp): Likewise.
325
141c5cc4
JK
3262015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
327
328 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
329 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
330 (ppc64_skip_trampoline_code_1): ... here.
331 (ppc64_skip_trampoline_code): New wrapper function.
332 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
333
750ce8d1
YQ
3342015-09-15 Yao Qi <yao.qi@linaro.org>
335
336 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
337 function.
338 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
339 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
340 if target_can_do_single_step returns 1.
341 * remote.c (struct vCont_action_support) <s, S>: New fields.
342 (PACKET_vContSupported): New enum.
343 (remote_protocol_features): New element for vContSupported.
344 (remote_query_supported): Append "vContSupported+".
345 (remote_vcont_probe): Remove support_s and support_S, use
346 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
347 vCont packet if c and C actions are not supported.
348 (remote_can_do_single_step): New function.
349 (init_remote_ops): Install it to to_can_do_single_step.
350 (_initialize_remote): Call add_packet_config_cmd.
351 * target.h (struct target_ops) <to_can_do_single_step>: New field.
352 (target_can_do_single_step): New macro.
353 * target-delegates.c: Re-generated.
354
ade90bde
YQ
3552015-09-15 Yao Qi <yao.qi@linaro.org>
356
357 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
358 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
359 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
360 New function.
361 (aarch64_siginfo_from_compat_siginfo): New function.
362 * nat/aarch64-linux.h: Include signal.h.
363 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
364 (compat_timer_t, compat_clock_t): Likewise.
365 (struct compat_timeval): New.
366 (union compat_sigval): New.
367 (struct compat_siginfo): New.
368 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
369 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
370 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
371 (cpt_si_band, cpt_si_fd): Likewise.
372
4c2f2a79
PA
3732015-09-14 Pedro Alves <palves@redhat.com>
374
375 * infrun.c (current_stop_id): New global.
376 (get_stop_id, new_stop_id): New functions.
377 (fetch_inferior_event): Handle normal_stop proceeding the target.
378 (struct stop_context): New.
379 (save_stop_context, release_stop_context_cleanup)
380 (stop_context_changed): New functions.
381 (normal_stop): Return true if the hook-stop changes the stop
382 context.
383 * infrun.h (get_stop_id): Declare.
384 (normal_stop): Now returns int. Add documentation.
385
919e6dbe
PMR
3862015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
387
388 * ada-lang.c (ada_value_ptr_subscript): Update the heading
389 comment. Handle packed arrays.
390
b027a8fa
PA
3912015-09-14 Pedro Alves <palves@redhat.com>
392
393 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
394 mention of maint set/show target-non-stop.
395
b459a59b
DB
3962015-09-11 Don Breazeal <donb@codesourcery.com>
397
398 * NEWS: Announce new remote packets for the exec-events
399 feature and the exec-events feature and associated commands.
400
d46addbb
DB
4012015-09-11 Don Breazeal <donb@codesourcery.com>
402
403 * remote.c (remote_exec_event_p): New function.
404 (remote_insert_exec_catchpoint): New function.
405 (remote_remove_exec_catchpoint): New function.
406 (init_extended_remote_ops): Initialize extended_remote_ops
407 members to_insert_exec_catchpoint and
408 to_remove_exec_catchpoint.
409
94585166
DB
4102015-09-11 Don Breazeal <donb@codesourcery.com>
411 Luis Machado <lgustavo@codesourcery.com>
412
413 * infrun.c (follow_exec): Use process-style ptid for
414 exec message. Call add_inferior_with_spaces and
415 target_follow_exec.
416 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
417 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
418 * remote.c (remote_pspace_data): New static variable.
419 (remote_pspace_data_cleanup): New function.
420 (get_remote_exec_file): New function.
421 (set_remote_exec_file_1): New function.
422 (set_remote_exec_file): New function.
423 (show_remote_exec_file): New function.
424 (remote_exec_file): Delete static variable.
425 (anonymous enum) <PACKET_exec_event_feature>: New
426 enumeration constant.
427 (remote_protocol_features): Add entry for exec-events feature.
428 (remote_query_supported): Add client side of qSupported query
429 for exec-events feature.
430 (remote_follow_exec): New function.
431 (remote_parse_stop_reply): Handle 'exec' stop reason.
432 (extended_remote_run, extended_remote_create_inferior): Call
433 get_remote_exec_file and set_remote_exec_file_1.
434 (init_extended_remote_ops) <to_follow_exec>: Initialize new
435 member.
436 (_initialize_remote): Call
437 register_program_space_data_with_cleanup. Call
438 add_packet_config_cmd for remote exec-events feature.
439 Modify call to add_setshow_string_noescape_cmd for exec-file
440 to use new functions set_remote_exec_file and
441 show_remote_exec_file.
442 * target-debug.h, target-delegates.c: Regenerated.
443 * target.c (target_follow_exec): New function.
444 * target.h (struct target_ops) <to_follow_exec>: New member.
445 (target_follow_exec): Declare new function.
446
669e74e8
PL
4472015-09-11 Pierre Langlois <pierre.langlois@arm.com>
448
449 * aarch64-tdep.c (decode_cb): Move up comment describing the
450 encoding.
451 (decode_tb): Fix a typo in comment above the function. Move up
452 comment describing the encoding.
453
4d50586d
PL
4542015-09-11 Pierre Langlois <pierre.langlois@arm.com>
455
456 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
457
6dcaef99
MMN
4582015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
459
460 PR gdb/18947
461 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
462 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
463
5da1a4d3
SM
4642015-09-10 Simon Marchi <simon.marchi@ericsson.com>
465
466 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
467 operations.
468
108d56a4
SM
4692015-09-10 Simon Marchi <simon.marchi@ericsson.com>
470
471 * ada-lang.c (ada_search_struct_field): Constify parameters
472 and/or variables..
473 (xget_renaming_scope): Likewise.
474 (ada_is_redundant_range_encoding): Likewise.
475 (scan_discrim_bound): Likewise.
476 (to_fixed_range_type): Likewise.
477
dd2e65cc
YQ
4782015-09-10 Yao Qi <yao.qi@linaro.org>
479
480 * breakpoint.c (download_tracepoint_locations): New local
481 can_download_tracepoint. Check the result of
482 target_can_download_tracepoint and save it in
483 can_download_tracepoint if there are tracepoints to download.
484 * linux-nat.h (enum tribool): Move it to ...
485 * common/common-types.h: ... here.
486
cfe75703
PA
4872015-09-09 Pedro Alves <palves@redhat.com>
488
489 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
490 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
491
a85a3079
PA
4922015-09-09 Pedro Alves <palves@redhat.com>
493
494 * continuations.c (add_continuation, restore_thread_cleanup)
495 (do_all_continuations_ptid, do_all_continuations_thread_callback)
496 (do_all_continuations_thread, do_all_continuations)
497 (discard_all_continuations_thread_callback)
498 (discard_all_continuations_thread, discard_all_continuations)
499 (add_intermediate_continuation)
500 (do_all_intermediate_continuations_thread_callback)
501 (do_all_intermediate_continuations_thread)
502 (do_all_intermediate_continuations)
503 (discard_all_intermediate_continuations_thread_callback)
504 (discard_all_intermediate_continuations_thread)
505 (discard_all_intermediate_continuations): Delete.
506 * continuations.h (add_continuation, do_all_continuations)
507 (do_all_continuations_thread, discard_all_continuations)
508 (discard_all_continuations_thread, add_intermediate_continuation)
509 (do_all_intermediate_continuations)
510 (do_all_intermediate_continuations_thread)
511 (discard_all_intermediate_continuations)
512 (discard_all_intermediate_continuations_thread): Delete
513 declarations.
514 * event-top.c (stdin_event_handler): Delete references to
515 continuations.
516 * gdbthread.h (struct thread_info): Delete continuations and
517 intermediate_continuations fields.
518 * inf-loop.c (inferior_event_handler): Remove references to
519 continuations.
520 * infrun.c (infrun_thread_stop_requested_callback): Remove
521 references to continuations.
522 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
523 * thread.c: Don't include "continuations.h".
524 (clear_thread_inferior_resources): Remove references to
525 continuations.
526
0700e23e
PA
5272015-09-09 Pedro Alves <palves@redhat.com>
528
529 * infcall.c (struct dummy_frame_context_saver): Delete.
530 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
531 (dummy_frame_context_saver_drop)
532 (dummy_frame_context_saver_cleanup)
533 (dummy_frame_context_saver_get_regs)
534 (dummy_frame_context_saver_setup): Delete.
535 * infcall.h (dummy_frame_context_saver_drop)
536 (dummy_frame_context_saver_cleanup)
537 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
538 Delete.
539 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
540 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
541 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
542
cfc31633
PA
5432015-09-09 Pedro Alves <palves@redhat.com>
544
545 * breakpoint.c: Include "thread-fsm.h".
546 (struct until_break_command_continuation_args): Delete.
547 (struct until_break_fsm): New.
548 (until_break_fsm_ops): New global.
549 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
550 (until_break_command_continuation): Delete.
551 (until_break_fsm_clean_up): New function.
552 (until_break_fsm_async_reply_reason): New function.
553 (until_break_command): Adjust to create an until_break_fsm instead
554 of a continuation.
555 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
556 here.
557 * infcmd.c (struct until_next_fsm): New.
558 (until_next_fsm_ops): New global.
559 (new_until_next_fsm, until_next_fsm_should_stop): New function.
560 (until_next_continuation): Delete.
561 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
562 functions.
563 (until_next_command): Adjust to create a new until_next_fsm
564 instead of a continuation.
565
388a7084
PA
5662015-09-09 Pedro Alves <palves@redhat.com>
567
568 * infcall.c: Include thread_fsm.h.
569 (struct call_return_meta_info): New.
570 (get_call_return_value): New function, factored out from
571 call_function_by_hand_dummy.
572 (struct call_thread_fsm): New.
573 (call_thread_fsm_ops): New global.
574 (new_call_thread_fsm, call_thread_fsm_should_stop)
575 (call_thread_fsm_should_notify_stop): New functions.
576 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
577 the thread.
578 (call_function_by_hand_dummy): Create a new call_thread_fsm
579 instance, associate it with the thread, and wait for the FSM to
580 finish. If finished successfully, fetch the function's result
581 value out of the FSM.
582 * infrun.c (fetch_inferior_event): If the FSM says the stop
583 shouldn't be notified, don't call normal_stop.
584 (maybe_remove_breakpoints): New function, factored out from ...
585 (normal_stop): ... here. Simplify.
586 * infrun.h (maybe_remove_breakpoints): Declare.
587 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
588 (thread-fsm.h) <struct thread_fsm_ops>: New field.
589 (thread_fsm_should_notify_stop): Declare.
590
243a9253
PA
5912015-09-09 Pedro Alves <palves@redhat.com>
592
593 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
594 * breakpoint.c (handle_jit_event): Print debug output.
595 (bpstat_what): Split event callback handling to ...
596 (bpstat_run_callbacks): ... this new function.
597 (momentary_bkpt_print_it): No longer handle bp_finish here.
598 * breakpoint.h (bpstat_run_callbacks): Declare.
599 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
600 <thread_fsm>: New field.
601 (thread_cancel_execution_command): Declare.
602 * infcmd.c: Include thread-fsm.h.
603 (struct step_command_fsm): New.
604 (step_command_fsm_ops): New global.
605 (new_step_command_fsm, step_command_fsm_prepare): New functions.
606 (step_1): Adjust to use step_command_fsm_prepare and
607 prepare_one_step.
608 (struct step_1_continuation_args): Delete.
609 (step_1_continuation): Delete.
610 (step_command_fsm_should_stop): New function.
611 (step_once): Delete.
612 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
613 (prepare_one_step): New function, based on step_once.
614 (until_next_command): Remove step_multi reference.
615 (struct return_value_info): New.
616 (print_return_value): Rename to ...
617 (print_return_value_1): ... this. New struct return_value_info
618 parameter. Adjust.
619 (print_return_value): Reimplement as wrapper around
620 print_return_value_1.
621 (struct finish_command_fsm): New.
622 (finish_command_continuation): Delete.
623 (finish_command_fsm_ops): New global.
624 (new_finish_command_fsm, finish_command_fsm_should_stop): New
625 functions.
626 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
627 New.
628 (finish_command_continuation_free_arg): Delete.
629 (finish_command_fsm_async_reply_reason): New.
630 (finish_backward, finish_forward): Change symbol parameter to a
631 finish_command_fsm. Adjust.
632 (finish_command): Create a finish_command_fsm. Adjust.
633 * infrun.c: Include "thread-fsm.h".
634 (clear_proceed_status_thread): Delete the thread's FSM.
635 (infrun_thread_stop_requested_callback): Cancel the thread's
636 execution command.
637 (clean_up_just_stopped_threads_fsms): New function.
638 (fetch_inferior_event): Handle the event_thread's should_stop
639 method saying the command isn't done yet.
640 (process_event_stop_test): Run breakpoint callbacks here.
641 (print_stop_event): Rename to ...
642 (print_stop_location): ... this.
643 (restore_current_uiout_cleanup): New function.
644 (print_stop_event): Reimplement.
645 (normal_stop): No longer notify the end_stepping_range observers
646 here handle "step N" nor "finish" here. No longer call
647 print_stop_event here.
648 * infrun.h (struct return_value_info): Forward declare.
649 (print_return_value): Declare.
650 (print_stop_event): Change prototype.
651 * thread-fsm.c: New file.
652 * thread-fsm.h: New file.
653 * thread.c: Include "thread-fsm.h".
654 (thread_cancel_execution_command): New function.
655 (clear_thread_inferior_resources): Call it.
656 * cli/cli-interp.c (cli_on_normal_stop): New function.
657 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
658 observer.
659 * mi/mi-interp.c: Include "thread-fsm.h".
660 (restore_current_uiout_cleanup): Delete.
661 (mi_on_normal_stop): If the thread has an FSM associated, and it
662 finished, ask it for the async-reply-reason to print. Always call
663 print_stop_event here, regardless of the top-level interpreter.
664 Check bpstat_what to tell whether an asynchronous breakpoint hit
665 triggered.
666 * tui/tui-interp.c (tui_on_normal_stop): New function.
667 (tui_init): Install tui_on_normal_stop as normal_stop observer.
668
0b333c5e
PA
6692015-09-09 Pedro Alves <palves@redhat.com>
670
671 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
672 check whether the target can async.
673 * inf-loop.c (inferior_event_handler): Only call target_async if
674 the target can async.
675 * infcall.c: Include top.h and interps.h.
676 (run_inferior_call): For the interpreter to sync mode while
677 running the infcall. Call wait_sync_command_done instead of
678 wait_for_inferior plus normal_stop.
679 * infcmd.c (prepare_execution_command): Don't check whether the
680 target can async when running in the foreground.
681 (step_1): Delete synchronous case handling.
682 (step_once): Always install a continuation, even in sync mode.
683 (until_next_command, finish_forward): Don't check whether the
684 target can async.
685 (attach_command_post_wait, notice_new_inferior): Always install a
686 continuation, even in sync mode.
687 * infrun.c (mark_infrun_async_event_handler): New function.
688 (proceed): In sync mode, mark infrun's event source instead of
689 waiting for events here.
690 (fetch_inferior_event): If the target can't async, do a blocking
691 wait.
692 (prepare_to_wait): In sync mode, mark infrun's event source.
693 (infrun_async_inferior_event_handler): No longer bail out if the
694 target can't async.
695 * infrun.h (mark_infrun_async_event_handler): New declaration.
696 * linux-nat.c (linux_nat_wait_1): Remove calls to
697 set_sigint_trap/clear_sigint_trap.
698 (linux_nat_terminal_inferior): No longer check whether the target
699 can async.
700 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
701 comment.
702 (mi_execute_command_input_handler): No longer check whether the
703 target is async. Update and simplify comment.
704 * target.c (default_target_wait): New function.
705 * target.h (struct target_ops) <to_wait>: Now defaults to
706 default_target_wait.
707 (default_target_wait): Declare.
708 * top.c (wait_sync_command_done): New function, factored out from
709 ...
710 (maybe_wait_sync_command_done): ... this.
711 * top.h (wait_sync_command_done): Declare.
712 * target-delegates.c: Regenerate.
713
0568462b
MM
7142015-09-09 Markus Metzger <markus.t.metzger@intel.com>
715
716 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
717 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
718 Remove include of sys/utsname.h.
719 (linux_determine_kernel_ptr_bits): Remove.
720 (linux_determine_kernel_start): New.
721 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
722 Update check.
723 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
724 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
725 initialization.
726 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
727 assignment.
728
72e02483
PA
7292015-09-07 Pedro Alves <palves@redhat.com>
730
731 * guile/guile-internal.h (as_a_scm_t_subr): New.
732 * guile/guile.c (misc_guile_functions): Use it.
733 * guile/scm-arch.c (arch_functions): Use it.
734 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
735 Use it.
736 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
737 * guile/scm-cmd.c (command_functions): Use it.
738 * guile/scm-disasm.c (disasm_functions): Use it.
739 * guile/scm-exception.c (exception_functions)
740 (private_exception_functions): Use it.
741 * guile/scm-frame.c (frame_functions)
742 * guile/scm-gsmob.c (gsmob_functions): Use it.
743 * guile/scm-iterator.c (iterator_functions): Use it.
744 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
745 * guile/scm-math.c (math_functions): Use it.
746 * guile/scm-objfile.c (objfile_functions): Use it.
747 * guile/scm-param.c (parameter_functions): Use it.
748 * guile/scm-ports.c (port_functions, private_port_functions): Use
749 it.
750 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
751 * guile/scm-progspace.c (pspace_functions): Use it.
752 * guile/scm-string.c (string_functions): Use it.
753 * guile/scm-symbol.c (symbol_functions): Use it.
754 * guile/scm-symtab.c (symtab_functions): Use it.
755 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
756 it.
757 * guile/scm-value.c (value_functions): Use it.
758
e65b5245
AB
7592015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
760
761 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
762 (tui_next_win): Likewise.
763 (tui_prev_win): Likewise.
764 (tui_partial_win_by_name): Likewise.
765 (tui_init_generic_part): Likewise.
766 (init_content_element): Likewise.
767 (tui_del_window): Likewise.
768 (tui_free_window): Likewise.
769 (tui_del_data_windows): Likewise.
770 (tui_free_data_content): Likewise.
771 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
772 * tui/tui-regs.c (tui_show_register_group): Likewise.
773 * tui/tui-win.c (tui_resize_all): Likewise.
774 (tui_set_focus): Likewise.
775 (tui_set_win_height): Likewise.
776 (make_invisible_and_set_new_height): Likewise.
777 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
778 * tui/tui-wingeneral.c (make_visible): Likewise.
779
b03e6ad9
AB
7802015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
781
782 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
783
be903358
AB
7842015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
785
786 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
787 pointer.
788 * dbxread.c (dbx_end_psymtab): Likewise.
789 * gnu-nat.c (gnu_write_inferior): Likewise.
790 * mdebugread.c (cross_ref): Likewise.
791 * p-valprint.c (pascal_val_print): Likewise.
792 * xcoffread.c (xcoff_end_psymtab): Likewise.
793
02f024f9
YQ
7942015-09-04 Yao Qi <yao.qi@linaro.org>
795
796 * NEWS: Mention the aarch64 multi-arch debugging support.
797
cd7c1778
PMR
7982015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
799
800 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
801 type instead of a TYPE_CODE_INT one for the string_char_type
802 and the ada_primitive_type_char types.
803
39edd165
YQ
8042015-09-03 Yao Qi <yao.qi@linaro.org>
805
806 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
807 Move code to aarch64_linux_region_ok_for_watchpoint. Call
808 aarch64_linux_region_ok_for_watchpoint.
809 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
810 New function.
811 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
812 Declare it.
813
6c214e7c
PP
8142015-09-02 Patrick Palka <patrick@parcs.ath.cx>
815
816 * gdb_obstack.h (obstack_strdup): Declare.
817 * gdb_obstack.c (obstack_strdup): Define.
818 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
819 * gdbarch.c: Regenerate.
820 * gdbarch.h: Regenerate.
821 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
822
eed8b28a
PP
8232015-09-02 Patrick Palka <patrick@parcs.ath.cx>
824
825 * gdbtypes.c (copy_type_recursive): Update documentation.
826
73c6b475
SDJ
8272015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
828
829 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
830 as zero.
831
ad1c917a
SDJ
8322015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
833
834 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
835
3bd7e5b7
SDJ
8362015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
837
838 * solib-svr4.c (solib_event_probe_action): Call
839 get_probe_argument_count using TRY...CATCH.
840 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
841
f469e8ce
SDJ
8422015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
843
844 * probe.h (struct probe_ops) <get_probe_argument_count,
845 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
846 the comment that the function can throw an exception.
847 (get_probe_argument_count): Likewise.
848 (evaluate_probe_argument): Likewise.
849 * stap-probe.c (stap_get_opcode): Call error instead of
850 internal_error.
851 (stap_get_expected_argument_type): Likewise. Add argument
852 'probe'. Improve error message by mentioning the probe's name.
853 (stap_parse_probe_arguments): Adjust call to
854 stap_get_expected_argument_type.
855 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
856 not zero. Call internal_error if GDB requests an argument but the
857 probe has no arguments.
858
dc5c8746
PMR
8592015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
860
861 * ada-lang.c (ada_resolve_function): Do not ask the user what
862 match to use when in completion mode.
863
136765ea
AB
8642015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
865
866 * tui/tui-data.c (tui_win_name): Make local variable const, remove
867 cast of NULL.
868
90b81c5f
MF
8692015-08-31 Max Filippov <jcmvbkbc@gmail.com>
870
871 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
872 call_abi using XSHAL_ABI macro.
873
1cd36e54
DE
8742015-08-29 Doug Evans <xdje42@gmail.com>
875
876 * symtab.h (struct symbol): Tweak comment.
877
8f57eec2
PP
8782015-08-29 Patrick Palka <patrick@parcs.ath.cx>
879
880 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
881 gdbarch obstack instead of on the heap. Update commentary
882 accordingly.
883
38eebd71
JB
8842015-08-28 Joel Brobecker <brobecker@adacore.com>
885
886 GDB 7.10 released.
887
d63dd61e
SM
8882015-08-28 Simon Marchi <simon.marchi@ericsson.com>
889
890 * NEWS: Update entry about non-8-bits addressable memory.
891
6f059256
UW
8922015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
893
894 Revert:
895 2014-11-06 Doug Evans <xdje42@gmail.com>
896 * solib.c (solib_global_lookup): Fetch arch from objfile,
897 not target_gdbarch.
898
70987a92 8992015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
900
901 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
902 attempt to relocate a TLS variable offset.
903
70987a92 9042015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
905
906 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
907 registered yet. Set inferior_ptid while calling target_read_memory.
908
70987a92 9092015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
910
911 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
912 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
913 * linux-nat.c (check_stopped_by_breakpoint): Use
914 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
915
70987a92 9162015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
917
918 * linux-thread-db.c (thread_db_get_thread_local_address): If the
919 thread was not yet discovered, use thread_from_lwp instead of
920 calling thread_db_find_new_threads_1.
921
f5cdf498
SM
9222015-08-27 Simon Marchi <simon.marchi@ericsson.com>
923
924 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
925 statements.
926
fd2ae5d6
SM
9272015-08-27 Simon Marchi <simon.marchi@ericsson.com>
928
929 * NEWS: Document support for non-8-bits addressable memory.
930
14d88147
PA
9312015-08-27 Pedro Alves <palves@redhat.com>
932
933 * configure.ac: Remove AC_TYPE_SIGNAL call.
934 * configure, config.in: Regenerate.
935
a40805d4
PA
9362015-08-27 Pedro Alves <palves@redhat.com>
937
938 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
939 * extension-priv.h: Include signal.h.
940 (struct signal_handler) <handler>: Change type to sighandler_t.
941 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
942 * inflow.c (sigint_ours, sigquit_ours): Change type to
943 sighandler_t.
944 (child_terminal_inferior): Remove casts.
945 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
946 (osig): Change type to sighandler_t.
947 * nto-procfs.c (ofunc): Change type to sighandler_t.
948 (procfs_wait): Remove casts.
949 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
950 * remote-sim.c (gdbsim_wait): Use sighandler_t.
951 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
952
0750520d
PA
9532015-08-27 Pedro Alves <palves@redhat.com>
954
955 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
956 * gnulib/aclocal.m4: Renegerate.
957 * gnulib/config.in: Renegerate.
958 * gnulib/configure: Renegerate.
959 * gnulib/import/Makefile.am: Update.
960 * gnulib/import/Makefile.in: Regenerate.
961 * gnulib/import/m4/gnulib-cache.m4: Update.
962 * gnulib/import/m4/gnulib-comp.m4: Update.
963 * gnulib/import/m4/signal_h.m4: New file.
964 * gnulib/import/signal.in.h: New file.
965
a5c0808e
PA
9662015-08-27 Pedro Alves <palves@redhat.com>
967
968 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
969 (MIN_MEMORY_PACKET_SIZE): New.
970 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
971 (get_memory_packet_size): Adjust. No longer limit the max packet
972 size.
973 (set_memory_packet_size): Adjust, and remove dead code.
974 (remote_check_symbols): Use xmalloc and a cleanup instead of
975 alloca.
976 (remote_packet_size): No longer cap the packet size.
977 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
978
cdaec3f3
LM
9792015-08-26 Luis Machado <lgustavo@codesourcery.com>
980
981 * compile/compile.c (compile_to_object): Mention language in
982 error message.
983
e9756d52
PP
9842015-08-26 Patrick Palka <patrick@parcs.ath.cx>
985
986 * target.c (target_pre_inferior): Unset attach_flag.
987
1dc7a623
SM
9882015-08-26 Simon Marchi <simon.marchi@ericsson.com>
989
990 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
991 * gdbarch.c: Re-generate.
992
8d749320
SM
9932015-08-26 Simon Marchi <simon.marchi@ericsson.com>
994
6711b7f8
SM
995 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
996 function with the XNEW-family equivalent.
8d749320
SM
997 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
998 * ada-exp.y (write_ambiguous_var): Likewise.
999 * ada-lang.c (resolve_subexp): Likewise.
1000 (user_select_syms): Likewise.
1001 (assign_aggregate): Likewise.
1002 (ada_evaluate_subexp): Likewise.
1003 (cache_symbol): Likewise.
1004 * addrmap.c (allocate_key): Likewise.
1005 (addrmap_create_mutable): Likewise.
1006 * aix-thread.c (sync_threadlists): Likewise.
1007 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
1008 (alpha_gdbarch_init): Likewise.
1009 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
1010 * arm-linux-nat.c (arm_linux_add_process): Likewise.
1011 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
1012 * arm-tdep.c (push_stack_item): Likewise.
1013 (arm_displaced_step_copy_insn): Likewise.
1014 (arm_gdbarch_init): Likewise.
1015 (_initialize_arm_tdep): Likewise.
1016 * avr-tdep.c (push_stack_item): Likewise.
1017 * ax-general.c (new_agent_expr): Likewise.
1018 * block.c (block_initialize_namespace): Likewise.
1019 * breakpoint.c (alloc_counted_command_line): Likewise.
1020 (update_dprintf_command_list): Likewise.
1021 (parse_breakpoint_sals): Likewise.
1022 (decode_static_tracepoint_spec): Likewise.
1023 (until_break_command): Likewise.
1024 (clear_command): Likewise.
1025 (update_global_location_list): Likewise.
1026 (get_breakpoint_objfile_data) Likewise.
1027 * btrace.c (ftrace_new_function): Likewise.
1028 (btrace_set_insn_history): Likewise.
1029 (btrace_set_call_history): Likewise.
1030 * buildsym.c (add_symbol_to_list): Likewise.
1031 (record_pending_block): Likewise.
1032 (start_subfile): Likewise.
1033 (start_buildsym_compunit): Likewise.
1034 (push_subfile): Likewise.
1035 (end_symtab_get_static_block): Likewise.
1036 (buildsym_init): Likewise.
1037 * cli/cli-cmds.c (source_command): Likewise.
1038 * cli/cli-decode.c (add_cmd): Likewise.
1039 * cli/cli-script.c (build_command_line): Likewise.
1040 (setup_user_args): Likewise.
1041 (realloc_body_list): Likewise.
1042 (process_next_line): Likewise.
1043 (copy_command_lines): Likewise.
1044 * cli/cli-setshow.c (do_set_command): Likewise.
1045 * coff-pe-read.c (read_pe_exported_syms): Likewise.
1046 * coffread.c (coff_locate_sections): Likewise.
1047 (coff_symtab_read): Likewise.
1048 (coff_read_struct_type): Likewise.
1049 * common/cleanups.c (make_my_cleanup2): Likewise.
1050 * common/common-exceptions.c (throw_it): Likewise.
1051 * common/filestuff.c (make_cleanup_close): Likewise.
1052 * common/format.c (parse_format_string): Likewise.
1053 * common/queue.h (DEFINE_QUEUE_P): Likewise.
1054 * compile/compile-object-load.c (munmap_list_add): Likewise.
1055 (compile_object_load): Likewise.
1056 * compile/compile-object-run.c (compile_object_run): Likewise.
1057 * compile/compile.c (append_args): Likewise.
1058 * corefile.c (specify_exec_file_hook): Likewise.
1059 * cp-support.c (make_symbol_overload_list): Likewise.
1060 * cris-tdep.c (push_stack_item): Likewise.
1061 (cris_gdbarch_init): Likewise.
1062 * ctf.c (ctf_trace_file_writer_new): Likewise.
1063 * dbxread.c (init_header_files): Likewise.
1064 (add_new_header_file): Likewise.
1065 (init_bincl_list): Likewise.
1066 (dbx_end_psymtab): Likewise.
1067 (start_psymtab): Likewise.
1068 (dbx_end_psymtab): Likewise.
1069 * dcache.c (dcache_init): Likewise.
1070 * dictionary.c (dict_create_hashed): Likewise.
1071 (dict_create_hashed_expandable): Likewise.
1072 (dict_create_linear): Likewise.
1073 (dict_create_linear_expandable): Likewise.
1074 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
1075 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
1076 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
1077 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1078 (decode_frame_entry_1): Likewise.
1079 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
1080 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
1081 * dwarf2read.c (dwarf2_has_info): Likewise.
1082 (create_signatured_type_table_from_index): Likewise.
1083 (dwarf2_read_index): Likewise.
1084 (dw2_get_file_names_reader): Likewise.
1085 (create_all_type_units): Likewise.
1086 (read_cutu_die_from_dwo): Likewise.
1087 (init_tu_and_read_dwo_dies): Likewise.
1088 (init_cutu_and_read_dies): Likewise.
1089 (create_all_comp_units): Likewise.
1090 (queue_comp_unit): Likewise.
1091 (inherit_abstract_dies): Likewise.
1092 (read_call_site_scope): Likewise.
1093 (dwarf2_add_field): Likewise.
1094 (dwarf2_add_typedef): Likewise.
1095 (dwarf2_add_member_fn): Likewise.
1096 (attr_to_dynamic_prop): Likewise.
1097 (abbrev_table_alloc_abbrev): Likewise.
1098 (abbrev_table_read_table): Likewise.
1099 (add_include_dir): Likewise.
1100 (add_file_name): Likewise.
1101 (dwarf_decode_line_header): Likewise.
1102 (dwarf2_const_value_attr): Likewise.
1103 (dwarf_alloc_block): Likewise.
1104 (parse_macro_definition): Likewise.
1105 (set_die_type): Likewise.
1106 (write_psymtabs_to_index): Likewise.
1107 (create_cus_from_index): Likewise.
1108 (dwarf2_create_include_psymtab): Likewise.
1109 (process_psymtab_comp_unit_reader): Likewise.
1110 (build_type_psymtab_dependencies): Likewise.
1111 (read_comp_units_from_section): Likewise.
1112 (compute_compunit_symtab_includes): Likewise.
1113 (create_dwo_unit_in_dwp_v1): Likewise.
1114 (create_dwo_unit_in_dwp_v2): Likewise.
1115 (read_func_scope): Likewise.
1116 (process_structure_scope): Likewise.
1117 (mark_common_block_symbol_computed): Likewise.
1118 (load_partial_dies): Likewise.
1119 (dwarf2_symbol_mark_computed): Likewise.
1120 * elfread.c (elf_symfile_segments): Likewise.
1121 (elf_read_minimal_symbols): Likewise.
1122 * environ.c (make_environ): Likewise.
1123 * eval.c (evaluate_subexp_standard): Likewise.
1124 * event-loop.c (create_file_handler): Likewise.
1125 (create_async_signal_handler): Likewise.
1126 (create_async_event_handler): Likewise.
1127 (create_timer): Likewise.
1128 * exec.c (build_section_table): Likewise.
1129 * fbsd-nat.c (fbsd_remember_child): Likewise.
1130 * fork-child.c (fork_inferior): Likewise.
1131 * frv-tdep.c (new_variant): Likewise.
1132 * gdbarch.sh (gdbarch_alloc): Likewise.
1133 (append_name): Likewise.
1134 * gdbtypes.c (rank_function): Likewise.
1135 (copy_type_recursive): Likewise.
1136 (add_dyn_prop): Likewise.
1137 * gnu-nat.c (make_proc): Likewise.
1138 (make_inf): Likewise.
1139 (gnu_write_inferior): Likewise.
1140 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1141 (build_std_type_info_type): Likewise.
1142 * guile/scm-param.c (compute_enum_list): Likewise.
1143 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
1144 * guile/scm-value.c (gdbscm_value_call): Likewise.
1145 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
1146 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
1147 (read_unwind_info): Likewise.
1148 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
1149 * infcall.c (dummy_frame_context_saver_setup): Likewise.
1150 (call_function_by_hand_dummy): Likewise.
1151 * infcmd.c (step_once): Likewise.
1152 (finish_forward): Likewise.
1153 (attach_command): Likewise.
1154 (notice_new_inferior): Likewise.
1155 * inferior.c (add_inferior_silent): Likewise.
1156 * infrun.c (add_displaced_stepping_state): Likewise.
1157 (save_infcall_control_state): Likewise.
1158 (save_inferior_ptid): Likewise.
1159 (_initialize_infrun): Likewise.
1160 * jit.c (bfd_open_from_target_memory): Likewise.
1161 (jit_gdbarch_data_init): Likewise.
1162 * language.c (add_language): Likewise.
1163 * linespec.c (decode_line_2): Likewise.
1164 * linux-nat.c (add_to_pid_list): Likewise.
1165 (add_initial_lwp): Likewise.
1166 * linux-thread-db.c (add_thread_db_info): Likewise.
1167 (record_thread): Likewise.
1168 (info_auto_load_libthread_db): Likewise.
1169 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
1170 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1171 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1172 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
1173 * macrocmd.c (macro_define_command): Likewise.
1174 * macroexp.c (gather_arguments): Likewise.
1175 * macroscope.c (sal_macro_scope): Likewise.
1176 * macrotab.c (new_macro_table): Likewise.
1177 * mdebugread.c (push_parse_stack): Likewise.
1178 (parse_partial_symbols): Likewise.
1179 (parse_symbol): Likewise.
1180 (psymtab_to_symtab_1): Likewise.
1181 (new_block): Likewise.
1182 (new_psymtab): Likewise.
1183 (mdebug_build_psymtabs): Likewise.
1184 (add_pending): Likewise.
1185 (elfmdebug_build_psymtabs): Likewise.
1186 * mep-tdep.c (mep_gdbarch_init): Likewise.
1187 * mi/mi-main.c (mi_execute_command): Likewise.
1188 * mi/mi-parse.c (mi_parse_argv): Likewise.
1189 * minidebug.c (lzma_open): Likewise.
1190 * minsyms.c (terminate_minimal_symbol_table): Likewise.
1191 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
1192 * mips-tdep.c (mips_gdbarch_init): Likewise.
1193 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1194 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
1195 * mt-tdep.c (mt_registers_info): Likewise.
1196 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
1197 * nat/linux-btrace.c (linux_enable_bts): Likewise.
1198 (linux_enable_pt): Likewise.
1199 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
1200 (linux_xfer_osdata_processgroups): Likewise.
1201 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
1202 * nto-procfs.c (procfs_meminfo): Likewise.
1203 * objc-lang.c (start_msglist): Likewise.
1204 (selectors_info): Likewise.
1205 (classes_info): Likewise.
1206 (find_methods): Likewise.
1207 * objfiles.c (allocate_objfile): Likewise.
1208 (update_section_map): Likewise.
1209 * osabi.c (gdbarch_register_osabi): Likewise.
1210 (gdbarch_register_osabi_sniffer): Likewise.
1211 * parse.c (start_arglist): Likewise.
1212 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
1213 (hwdebug_insert_point): Likewise.
1214 * printcmd.c (display_command): Likewise.
1215 (ui_printf): Likewise.
1216 * procfs.c (create_procinfo): Likewise.
1217 (load_syscalls): Likewise.
1218 (proc_get_LDT_entry): Likewise.
1219 (proc_update_threads): Likewise.
1220 * prologue-value.c (make_pv_area): Likewise.
1221 (pv_area_store): Likewise.
1222 * psymtab.c (extend_psymbol_list): Likewise.
1223 (init_psymbol_list): Likewise.
1224 (allocate_psymtab): Likewise.
1225 * python/py-inferior.c (add_thread_object): Likewise.
1226 * python/py-param.c (compute_enum_values): Likewise.
1227 * python/py-value.c (valpy_call): Likewise.
1228 * python/py-varobj.c (py_varobj_iter_next): Likewise.
1229 * python/python.c (ensure_python_env): Likewise.
1230 * record-btrace.c (record_btrace_start_replaying): Likewise.
1231 * record-full.c (record_full_reg_alloc): Likewise.
1232 (record_full_mem_alloc): Likewise.
1233 (record_full_end_alloc): Likewise.
1234 (record_full_core_xfer_partial): Likewise.
1235 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
1236 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
1237 * remote-notif.c (remote_notif_state_allocate): Likewise.
1238 * remote.c (demand_private_info): Likewise.
1239 (remote_notif_stop_alloc_reply): Likewise.
1240 (remote_enable_btrace): Likewise.
1241 * reverse.c (save_bookmark_command): Likewise.
1242 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
1243 * rx-tdep.c (rx_gdbarch_init): Likewise.
1244 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
1245 * ser-go32.c (dos_get_tty_state): Likewise.
1246 (dos_copy_tty_state): Likewise.
1247 * ser-mingw.c (ser_windows_open): Likewise.
1248 (ser_console_wait_handle): Likewise.
1249 (ser_console_get_tty_state): Likewise.
1250 (make_pipe_state): Likewise.
1251 (net_windows_open): Likewise.
1252 * ser-unix.c (hardwire_get_tty_state): Likewise.
1253 (hardwire_copy_tty_state): Likewise.
1254 * solib-aix.c (solib_aix_new_lm_info): Likewise.
1255 * solib-dsbt.c (dsbt_current_sos): Likewise.
1256 (dsbt_relocate_main_executable): Likewise.
1257 * solib-frv.c (frv_current_sos): Likewise.
1258 (frv_relocate_main_executable): Likewise.
1259 * solib-spu.c (spu_bfd_fopen): Likewise.
1260 * solib-svr4.c (lm_info_read): Likewise.
1261 (svr4_copy_library_list): Likewise.
1262 (svr4_default_sos): Likewise.
1263 * source.c (find_source_lines): Likewise.
1264 (line_info): Likewise.
1265 (add_substitute_path_rule): Likewise.
1266 * spu-linux-nat.c (spu_bfd_open): Likewise.
1267 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
1268 * stabsread.c (dbx_lookup_type): Likewise.
1269 (read_type): Likewise.
1270 (read_member_functions): Likewise.
1271 (read_struct_fields): Likewise.
1272 (read_baseclasses): Likewise.
1273 (read_args): Likewise.
1274 (_initialize_stabsread): Likewise.
1275 * stack.c (func_command): Likewise.
1276 * stap-probe.c (handle_stap_probe): Likewise.
1277 * symfile.c (addrs_section_sort): Likewise.
1278 (addr_info_make_relative): Likewise.
1279 (load_section_callback): Likewise.
1280 (add_symbol_file_command): Likewise.
1281 (init_filename_language_table): Likewise.
1282 * symtab.c (create_filename_seen_cache): Likewise.
1283 (sort_search_symbols_remove_dups): Likewise.
1284 (search_symbols): Likewise.
1285 * target.c (make_cleanup_restore_target_terminal): Likewise.
1286 * thread.c (new_thread): Likewise.
1287 (enable_thread_stack_temporaries): Likewise.
1288 (make_cleanup_restore_current_thread): Likewise.
1289 (thread_apply_all_command): Likewise.
1290 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
1291 * top.c (gdb_readline_wrapper): Likewise.
1292 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
1293 * tracepoint.c (trace_find_line_command): Likewise.
1294 (all_tracepoint_actions_and_cleanup): Likewise.
1295 (make_cleanup_restore_current_traceframe): Likewise.
1296 (get_uploaded_tp): Likewise.
1297 (get_uploaded_tsv): Likewise.
1298 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
1299 (tui_alloc_win_info): Likewise.
1300 (tui_alloc_content): Likewise.
1301 (tui_add_content_elements): Likewise.
1302 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
1303 (tui_set_disassem_content): Likewise.
1304 * ui-file.c (ui_file_new): Likewise.
1305 (stdio_file_new): Likewise.
1306 (tee_file_new): Likewise.
1307 * utils.c (make_cleanup_restore_integer): Likewise.
1308 (add_internal_problem_command): Likewise.
1309 * v850-tdep.c (v850_gdbarch_init): Likewise.
1310 * valops.c (find_oload_champ): Likewise.
1311 * value.c (allocate_value_lazy): Likewise.
1312 (record_latest_value): Likewise.
1313 (create_internalvar): Likewise.
1314 * varobj.c (install_variable): Likewise.
1315 (new_variable): Likewise.
1316 (new_root_variable): Likewise.
1317 (cppush): Likewise.
1318 (_initialize_varobj): Likewise.
1319 * windows-nat.c (windows_make_so): Likewise.
1320 * x86-nat.c (x86_add_process): Likewise.
1321 * xcoffread.c (arrange_linetable): Likewise.
1322 (allocate_include_entry): Likewise.
1323 (process_linenos): Likewise.
1324 (SYMBOL_DUP): Likewise.
1325 (xcoff_start_psymtab): Likewise.
1326 (xcoff_end_psymtab): Likewise.
1327 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
1328 * xtensa-tdep.c (xtensa_register_type): Likewise.
1329 * gdbarch.c: Regenerate.
1330 * gdbarch.h: Regenerate.
1331
17d8546e
DB
13322015-08-25 Don Breazeal <donb@codesourcery.com>
1333
1334 * infrun.c (follow_exec): Re-order operations for
1335 handling follow-exec-mode "new".
1336 (handle_inferior_event_1): Assign ecs->event_thread
1337 to the current thread.
1338 * remote.c (get_remote_arch_state): Add an assertion.
1339
ba49e44b
PA
13402015-08-26 Pedro Alves <palves@redhat.com>
1341
1342 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
1343
7541ab03 13442015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 1345
7541ab03 1346 PR gdb/18804
abc56d60
PA
1347 * defs.h (maybe_quit): Declare.
1348 (QUIT): Now calls maybe_quit.
1349 * event-loop.c (clear_async_signal_handler)
1350 (async_signal_handler_is_marked): New functions.
1351 * event-loop.h (async_signal_handler_is_marked)
1352 (clear_async_signal_handler): New declarations.
1353 * remote.c (remote_check_pending_interrupt): New function.
1354 (interrupt_query): Use make_cleanup_restore_target_terminal. No
1355 longer check whether the target is async. If waiting for a stop
1356 reply, and a Ctrl-C as been sent to the target, offer to
1357 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
1358 Otherwise do not disconnect and throw a quit.
1359 (_initialize_remote): Install remote_check_pending_interrupt as
1360 to_check_pending_interrupt.
1361 * target.c (target_check_pending_interrupt): New function.
1362 * target.h (struct target_ops) <to_check_pending_interrupt>: New
1363 field.
1364 (target_check_pending_interrupt): New declaration.
1365 * utils.c (maybe_quit): New function.
1366 * target-delegates.c: Regenerate.
1367
dfe7f77c
YQ
13682015-08-25 Yao Qi <yao.qi@linaro.org>
1369
1370 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
1371 Rename local variable pid to tid, and get lwpid of lwp. Update
1372 debug output.
1373
63e43d3a
PMR
13742015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
1375
1376 * ada-lang.c (ada_read_var_value): Add a var_block argument
1377 and pass it to default_read_var_value.
1378 * block.c (block_static_link): New accessor.
1379 * block.h (block_static_link): Declare it.
1380 * buildsym.c (finish_block_internal): Add a static_link
1381 argument. If there is a static link, associate it to the new
1382 block.
1383 (finish_block): Add a static link argument and pass it to
1384 finish_block_internal.
1385 (end_symtab_get_static_block): Update calls to finish_block and
1386 to finish_block_internal.
1387 (end_symtab_with_blockvector): Update call to
1388 finish_block_internal.
1389 * buildsym.h: Forward-declare struct dynamic_prop.
1390 (struct context_stack): Add a static_link field.
1391 (finish_block): Add a static link argument.
1392 * c-exp.y: Remove an obsolete comment (evaluation of variables
1393 already start from the selected frame, and now they climb *up*
1394 the call stack) and propagate the block information to the
1395 produced expression.
1396 * d-exp.y: Likewise.
1397 * f-exp.y: Likewise.
1398 * go-exp.y: Likewise.
1399 * jv-exp.y: Likewise.
1400 * m2-exp.y: Likewise.
1401 * p-exp.y: Likewise.
1402 * coffread.c (coff_symtab_read): Update calls to finish_block.
1403 * dbxread.c (process_one_symbol): Likewise.
1404 * xcoffread.c (read_xcoff_symtab): Likewise.
1405 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
1406 "sym" parameter to struct block_symbol, update its uses and pass
1407 its block to calls to read_var_value.
1408 (convert_symbol_sym): Update the calls to convert_one_symbol.
1409 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
1410 call to read_var_value.
1411 * dwarf2loc.c (block_op_get_frame_base): New.
1412 (dwarf2_block_frame_base_locexpr_funcs): Implement the
1413 get_frame_base method.
1414 (dwarf2_block_frame_base_loclist_funcs): Likewise.
1415 (dwarf2locexpr_baton_eval): Add a frame argument and use it
1416 instead of the selected frame in order to evaluate the
1417 expression.
1418 (dwarf2_evaluate_property): Add a frame argument. Update call
1419 to dwarf2_locexpr_baton_eval to provide a frame in available and
1420 to handle the absence of address stack.
1421 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
1422 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
1423 declaration.
1424 (read_func_scope): Record any available static link description.
1425 Update call to finish_block.
1426 (read_lexical_block_scope): Update call to finish_block.
1427 * findvar.c (follow_static_link): New.
1428 (get_hosting_frame): New.
1429 (default_read_var_value): Add a var_block argument. Use
1430 get_hosting_frame to handle non-local references.
1431 (read_var_value): Add a var_block argument and pass it to the
1432 LA_READ_VAR_VALUE method.
1433 * gdbtypes.c (resolve_dynamic_range): Update calls to
1434 dwarf2_evaluate_property.
1435 (resolve_dynamic_type_internal): Likewise.
1436 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
1437 read_var_value, passing it the block coming from symbol lookup.
1438 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
1439 read_var_value (TODO).
1440 * infcmd.c (finish_command_continuation): Update call to
1441 read_var_value, passing it the block coming from symbol lookup.
1442 * infrun.c (insert_exception_resume_breakpoint): Likewise.
1443 * language.h (struct language_defn): Add a var_block argument to
1444 the LA_READ_VAR_VALUE method.
1445 * objfiles.c (struct static_link_htab_entry): New.
1446 (static_link_htab_entry_hash): New.
1447 (static_link_htab_entry_eq): New.
1448 (objfile_register_static_link): New.
1449 (objfile_lookup_static_link): New.
1450 (free_objfile): Free the STATIC_LINKS hashed map if needed.
1451 * objfiles.h: Include hashtab.h.
1452 (struct objfile): Add a static_links field.
1453 (objfile_register_static_link): New.
1454 (objfile_lookup_static_link): New.
1455 * printcmd.c (print_variable_and_value): Update call to
1456 read_var_value.
1457 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
1458 * python/py-frame.c (frapy_read_var): Update call to
1459 read_var_value, passing it the block coming from symbol lookup.
1460 * python/py-framefilter.c (extract_sym): Add a sym_block
1461 parameter and set the pointed value to NULL (TODO).
1462 (enumerate_args): Update call to extract_sym.
1463 (enumerate_locals): Update calls to extract_sym and to
1464 read_var_value.
1465 * python/py-symbol.c (sympy_value): Update call to
1466 read_var_value (TODO).
1467 * stack.c (read_frame_local): Update call to read_var_value.
1468 (read_frame_arg): Likewise.
1469 (return_command): Likewise.
1470 * symtab.h (struct symbol_block_ops): Add a get_frame_base
1471 method.
1472 (struct symbol): Add a block field.
1473 (SYMBOL_BLOCK): New accessor.
1474 * valops.c (value_of_variable): Remove frame/block handling and
1475 pass the block argument to read_var_value, which does this job
1476 now.
1477 (value_struct_elt_for_reference): Update calls to
1478 read_var_value.
1479 (value_of_this): Pass the block found to read_var_value.
1480 * value.h (read_var_value): Add a var_block argument.
1481 (default_read_var_value): Likewise.
1482
ed8b7b42
YQ
14832015-08-25 Yao Qi <yao.qi@linaro.org>
1484
1485 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
1486 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
1487 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
1488
db3cb7cb
YQ
14892015-08-25 Yao Qi <yao.qi@linaro.org>
1490
1491 * Makefile.in (aarch64-liunx.o): New rule.
1492 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
1493 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
1494 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
1495 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
1496 extern.
1497 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
1498 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
1499 * nat/aarch64-linux.c: New file.
1500 * nat/aarch64-linux.h: New file.
1501
f6011a1c
YQ
15022015-08-25 Yao Qi <yao.qi@linaro.org>
1503
1504 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
1505 lwp_arch_private_info and ptid_of_lwp.
1506
5e35436e
YQ
15072015-08-25 Yao Qi <yao.qi@linaro.org>
1508
1509 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
1510 Move it to nat/aarch64-linux-hw-point.c.
1511 (debug_reg_change_callback): Likewise.
1512 (aarch64_notify_debug_reg_change): :Likewise.
1513 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
1514 (aarch64_dr_update_callback_param): New.
1515 (debug_reg_change_callback): New function.
1516 (aarch64_notify_debug_reg_change): Likewise.
1517 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
1518 Remove the declaration.
1519
4a8a7965
YQ
15202015-08-25 Yao Qi <yao.qi@linaro.org>
1521
1522 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
1523 Call current_lwp_ptid.
1524
32a271ee
YQ
15252015-08-25 Yao Qi <yao.qi@linaro.org>
1526
1527 * aarch64-linux-nat.c (debug_reg_change_callback): Use
1528 debug_printf.
1529
5e137137
YQ
15302015-08-25 Yao Qi <yao.qi@linaro.org>
1531
1532 * aarch64-linux-nat.c (debug_reg_change_callback): Call
1533 ptid_get_pid rather than ptid_get_lwp.
1534
73b8c1fd
PA
15352015-08-24 Pedro Alves <palves@redhat.com>
1536
1537 * NEWS (New commands): Mention set/show remote
1538 multiprocess-extensions-packet.
1539 * remote.c (remote_query_supported): Only tell the server to use
1540 the multiprocess extensions if the user hasn't force-disabled them
1541 with "set remote multiprocess-extensions-packet off".
1542
4a626d0a
PA
15432015-08-24 Pedro Alves <palves@redhat.com>
1544
1545 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1546 1029a8112290f6eee9d7878a391c49db42c999bd.
1547 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
1548 Regenerate.
1549 * gnulib/import/Makefile.am: Update.
1550 * gnulib/import/Makefile.in: Update.
1551 * gnulib/import/alloca.in.h: Update.
1552 * gnulib/import/basename-lgpl.c: Update.
1553 * gnulib/import/canonicalize-lgpl.c: Update.
1554 * gnulib/import/config.charset: Update.
1555 * gnulib/import/dirent.in.h: Update.
1556 * gnulib/import/dirfd.c: Update.
1557 * gnulib/import/dirname-lgpl.c: Update.
1558 * gnulib/import/dirname.h: Update.
1559 * gnulib/import/dosname.h: Update.
1560 * gnulib/import/errno.in.h: Update.
1561 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
1562 * gnulib/import/extra/snippet/c++defs.h: Update.
1563 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1564 * gnulib/import/extra/update-copyright: Update.
1565 * gnulib/import/float+.h: Update.
1566 * gnulib/import/float.c: Update.
1567 * gnulib/import/float.in.h: Update.
1568 * gnulib/import/fnmatch.c: Update.
1569 * gnulib/import/fnmatch.in.h: Update.
1570 * gnulib/import/fnmatch_loop.c: Update.
1571 * gnulib/import/fpucw.h: Update.
1572 * gnulib/import/frexp.c: Update.
1573 * gnulib/import/frexpl.c: Update.
1574 * gnulib/import/gettimeofday.c: Update.
1575 * gnulib/import/inttypes.in.h: Update.
1576 * gnulib/import/isnan.c: Update.
1577 * gnulib/import/isnand-nolibm.h: Update.
1578 * gnulib/import/isnand.c: Update.
1579 * gnulib/import/isnanl-nolibm.h: Update.
1580 * gnulib/import/isnanl.c: Update.
1581 * gnulib/import/itold.c: Update.
1582 * gnulib/import/localcharset.c: Update.
1583 * gnulib/import/localcharset.h: Update.
1584 * gnulib/import/lstat.c: Update.
1585 * gnulib/import/m4/00gnulib.m4: Update.
1586 * gnulib/import/m4/absolute-header.m4: Update.
1587 * gnulib/import/m4/alloca.m4: Update.
1588 * gnulib/import/m4/canonicalize.m4: Update.
1589 * gnulib/import/m4/codeset.m4: Update.
1590 * gnulib/import/m4/configmake.m4: Update.
1591 * gnulib/import/m4/dirent_h.m4: Update.
1592 * gnulib/import/m4/dirfd.m4: Update.
1593 * gnulib/import/m4/dirname.m4: Update.
1594 * gnulib/import/m4/double-slash-root.m4: Update.
1595 * gnulib/import/m4/eealloc.m4: Update.
1596 * gnulib/import/m4/errno_h.m4: Update.
1597 * gnulib/import/m4/exponentd.m4: Update.
1598 * gnulib/import/m4/exponentl.m4: Update.
1599 * gnulib/import/m4/extensions.m4: Update.
1600 * gnulib/import/m4/extern-inline.m4: Update.
1601 * gnulib/import/m4/fcntl-o.m4: Update.
1602 * gnulib/import/m4/float_h.m4: Update.
1603 * gnulib/import/m4/fnmatch.m4: Update.
1604 * gnulib/import/m4/fpieee.m4: Update.
1605 * gnulib/import/m4/frexp.m4: Update.
1606 * gnulib/import/m4/frexpl.m4: Update.
1607 * gnulib/import/m4/gettimeofday.m4: Update.
1608 * gnulib/import/m4/glibc21.m4: Update.
1609 * gnulib/import/m4/gnulib-cache.m4: Update.
1610 * gnulib/import/m4/gnulib-common.m4: Update.
1611 * gnulib/import/m4/gnulib-comp.m4: Update.
1612 * gnulib/import/m4/gnulib-tool.m4: Update.
1613 * gnulib/import/m4/include_next.m4: Update.
1614 * gnulib/import/m4/inttypes-pri.m4: Update.
1615 * gnulib/import/m4/inttypes.m4: Update.
1616 * gnulib/import/m4/isnand.m4: Update.
1617 * gnulib/import/m4/isnanl.m4: Update.
1618 * gnulib/import/m4/largefile.m4: Update.
1619 * gnulib/import/m4/localcharset.m4: Update.
1620 * gnulib/import/m4/locale-fr.m4: Update.
1621 * gnulib/import/m4/locale-ja.m4: Update.
1622 * gnulib/import/m4/locale-zh.m4: Update.
1623 * gnulib/import/m4/longlong.m4: Update.
1624 * gnulib/import/m4/lstat.m4: Update.
1625 * gnulib/import/m4/malloc.m4: Update.
1626 * gnulib/import/m4/malloca.m4: Update.
1627 * gnulib/import/m4/math_h.m4: Update.
1628 * gnulib/import/m4/mbrtowc.m4: Update.
1629 * gnulib/import/m4/mbsinit.m4: Update.
1630 * gnulib/import/m4/mbsrtowcs.m4: Update.
1631 * gnulib/import/m4/mbstate_t.m4: Update.
1632 * gnulib/import/m4/memchr.m4: Update.
1633 * gnulib/import/m4/memmem.m4: Update.
1634 * gnulib/import/m4/mmap-anon.m4: Update.
1635 * gnulib/import/m4/multiarch.m4: Update.
1636 * gnulib/import/m4/nocrash.m4: Update.
1637 * gnulib/import/m4/off_t.m4: Update.
1638 * gnulib/import/m4/pathmax.m4: Update.
1639 * gnulib/import/m4/readlink.m4: Update.
1640 * gnulib/import/m4/rename.m4: Update.
1641 * gnulib/import/m4/rmdir.m4: Update.
1642 * gnulib/import/m4/ssize_t.m4: Update.
1643 * gnulib/import/m4/stat.m4: Update.
1644 * gnulib/import/m4/stdbool.m4: Update.
1645 * gnulib/import/m4/stddef_h.m4: Update.
1646 * gnulib/import/m4/stdint.m4: Update.
1647 * gnulib/import/m4/stdio_h.m4: Update.
1648 * gnulib/import/m4/stdlib_h.m4: Update.
1649 * gnulib/import/m4/string_h.m4: Update.
1650 * gnulib/import/m4/strstr.m4: Update.
1651 * gnulib/import/m4/strtok_r.m4: Update.
1652 * gnulib/import/m4/sys_socket_h.m4: Update.
1653 * gnulib/import/m4/sys_stat_h.m4: Update.
1654 * gnulib/import/m4/sys_time_h.m4: Update.
1655 * gnulib/import/m4/sys_types_h.m4: Update.
1656 * gnulib/import/m4/time_h.m4: Update.
1657 * gnulib/import/m4/unistd_h.m4: Update.
1658 * gnulib/import/m4/warn-on-use.m4: Update.
1659 * gnulib/import/m4/wchar_h.m4: Update.
1660 * gnulib/import/m4/wchar_t.m4: Update.
1661 * gnulib/import/m4/wctype_h.m4: Update.
1662 * gnulib/import/m4/wint_t.m4: Update.
1663 * gnulib/import/malloc.c: Update.
1664 * gnulib/import/malloca.c: Update.
1665 * gnulib/import/malloca.h: Update.
1666 * gnulib/import/math.in.h: Update.
1667 * gnulib/import/mbrtowc.c: Update.
1668 * gnulib/import/mbsinit.c: Update.
1669 * gnulib/import/mbsrtowcs-impl.h: Update.
1670 * gnulib/import/mbsrtowcs-state.c: Update.
1671 * gnulib/import/mbsrtowcs.c: Update.
1672 * gnulib/import/memchr.c: Update.
1673 * gnulib/import/memmem.c: Update.
1674 * gnulib/import/pathmax.h: Update.
1675 * gnulib/import/readlink.c: Update.
1676 * gnulib/import/ref-add.sin: Update.
1677 * gnulib/import/ref-del.sin: Update.
1678 * gnulib/import/rename.c: Update.
1679 * gnulib/import/rmdir.c: Update.
1680 * gnulib/import/same-inode.h: Update.
1681 * gnulib/import/stat.c: Update.
1682 * gnulib/import/stdbool.in.h: Update.
1683 * gnulib/import/stddef.in.h: Update.
1684 * gnulib/import/stdint.in.h: Update.
1685 * gnulib/import/stdio.c: Update.
1686 * gnulib/import/stdio.in.h: Update.
1687 * gnulib/import/stdlib.in.h: Update.
1688 * gnulib/import/str-two-way.h: Update.
1689 * gnulib/import/streq.h: Update.
1690 * gnulib/import/string.in.h: Update.
1691 * gnulib/import/stripslash.c: Update.
1692 * gnulib/import/strnlen1.c: Update.
1693 * gnulib/import/strnlen1.h: Update.
1694 * gnulib/import/strstr.c: Update.
1695 * gnulib/import/strtok_r.c: Update.
1696 * gnulib/import/sys_stat.in.h: Update.
1697 * gnulib/import/sys_time.in.h: Update.
1698 * gnulib/import/sys_types.in.h: Update.
1699 * gnulib/import/time.in.h: Update.
1700 * gnulib/import/unistd.in.h: Update.
1701 * gnulib/import/verify.h: Update.
1702 * gnulib/import/wchar.in.h: Update.
1703 * gnulib/import/wctype.in.h: Update.
1704 * gnulib/import/gettimeofday.c: New file.
1705 * gnulib/import/m4/absolute-header.m4: New file.
1706 * gnulib/import/m4/gettimeofday.m4: New file.
1707 * gnulib/import/m4/sys_socket_h.m4: New file.
1708 * gnulib/import/m4/sys_time_h.m4: New file.
1709 * gnulib/import/stdio.c: Delete file.
1710 * gnulib/import/sys_time.in.h: New file.
1711
438e1e42
PA
17122015-08-24 Pedro Alves <palves@redhat.com>
1713
1714 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
1715 * common/gdb_sys_time.h: New file.
1716 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
1717 * gdb_select.h: Likewise.
1718 * gdb_usleep.c: Likewise.
1719 * maint.c: Likewise.
1720 * mi/mi-main.c: Likewise.
1721 * mi/mi-parse.h: Likewise.
1722 * remote-fileio.c: Likewise.
1723 * remote-m32r-sdi.c: Likewise.
1724 * remote.c: Likewise.
1725 * ser-base.c: Likewise.
1726 * ser-pipe.c: Likewise.
1727 * ser-tcp.c: Likewise.
1728 * ser-unix.c: Likewise.
1729 * symfile.c: Likewise.
1730 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
1731 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
1732 * utils.c: Likewise.
1733
40e0b271
PA
17342015-08-24 Pedro Alves <palves@redhat.com>
1735
1736 * NEWS: Mention removed support for the various ROM monitors.
1737 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
1738 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
1739 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
1740 gdb_target_obs.
1741 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
1742 gdb_target_obs.
1743 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
1744 dsrec.o from gdb_target_obs.
1745 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
1746 from gdb_target_obs.
1747 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
1748 gdb_target_obs.
1749 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
1750 dink32-rom.o from gdb_target_obs.
1751 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
1752 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
1753 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
1754 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
1755
f8904751
PA
17562015-08-21 Pedro Alves <palves@redhat.com>
1757
1758 * frame.c (null_frame_id): Explicitly zero-initialize.
1759
049412e3
TT
17602015-08-21 Tom Tromey <tromey@redhat.com>
1761
1762 * dwarf2read.c (struct dwarf2_section_info): Rename field
1763 'asection' to 'section'.
1764 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
1765 (dwarf2_locate_sections, dwarf2_locate_sections)
1766 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
1767 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
1768 (dwarf2_locate_v2_dwp_sections): Adjust.
1769
948578a9
PP
17702015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1771
1772 * top.h (gdb_in_secondary_prompt_p): Declare.
1773 * top.c (gdb_secondary_prompt_depth): Define.
1774 (gdb_in_secondary_prompt_p): Define.
1775 (gdb_readline_wrapper_cleanup): Decrement
1776 gdb_secondary_prompt_depth.
1777 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
1778 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
1779 are in a secondary prompt.
1780
7a8bcb88
PP
17812015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1782
1783 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
1784 emit the newline.
1785
2d7711a3
GB
17862015-08-21 Gary Benson <gbenson@redhat.com>
1787
1788 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
1789
4313b8c0
GB
17902015-08-21 Gary Benson <gbenson@redhat.com>
1791
1792 * target.h (struct target_ops) <to_fileio_open>: New argument
1793 warn_if_slow. Update comment. All implementations updated.
1794 (target_fileio_open_warn_if_slow): New declaration.
1795 * target.c (target_fileio_open): Renamed as...
1796 (target_fileio_open_1): ...this. New argument warn_if_slow.
1797 Pass warn_if_slow to implementation. Update debug printing.
1798 (target_fileio_open): New function.
1799 (target_fileio_open_warn_if_slow): Likewise.
1800 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
1801 target_fileio_open_warn_if_slow.
1802
f36b8719
GB
18032015-08-21 Gary Benson <gbenson@redhat.com>
1804
1805 * nat/linux-namespaces.c (linux_mntns_access_fs):
1806 Do not overwrite old_chain.
1807
40045d91
MF
18082015-08-20 Max Filippov <jcmvbkbc@gmail.com>
1809
1810 * arch/xtensa.h: New file.
1811 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
1812 (ps_get_thread_area): New function.
1813 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
1814 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
1815 * xtensa-tdep.c (osabi.h): New #include.
1816 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
1817 xtensa-specific hooks.
1818 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
1819 member and move the structure to arch/xtensa.h.
1820
80152258
PA
18212015-08-21 Pedro Alves <palves@redhat.com>
1822
1823 * remote.c (struct readahead_cache): New.
1824 (struct remote_state) <readahead_cache>: New field.
1825 (remote_open_1): Invalidate the cache.
1826 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
1827 functions.
1828 (remote_hostio_pwrite): Invalidate the readahead cache.
1829 (remote_hostio_pread): Rename to ...
1830 (remote_hostio_pread_vFile): ... this.
1831 (remote_hostio_pread_from_cache): New function.
1832 (remote_hostio_pread): Reimplement.
1833 (remote_hostio_close): Invalidate the readahead cache.
1834
88fc5eb7
MC
18352015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
1836
1837 PR build/18843
1838 * procfs.c: Include "filestuff.h".
1839
6f1cb6ea
PP
18402015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1841
1842 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
1843 curch.
1844 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
1845 cur_line or curch, instead call wmove().
1846 (init_win_info) [CMD_WIN]: Likewise.
1847 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
1848 instead call getcury().
1849 (tui_redisplay_readline): Don't set cur_line or curch.
1850 (tui_mld_erase_entire_line): Don't read cur_line, instead call
1851 getcury().
1852 (tui_cont_sig): Remove call to wmove.
1853 (tui_getc): Don't read cur_line or curch, instead call getcury()
1854 or getyx(). Don't set curch.
1855 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
1856 set cur_line or curch. Always move cursor to (0,0).
1857
221e1a37
PA
18582015-08-20 Pedro Alves <palves@redhat.com>
1859
1860 * infrun.c (print_target_wait_results): Make extern.
1861 * infrun.h (print_target_wait_results): Declare.
1862 * remote.c (set_stop_requested_callback): Delete.
1863 (process_initial_stop_replies): New function.
1864 (remote_start_remote): Use it.
1865 (stop_reply_queue_length): New function.
1866
40e3ad0e
PA
18672015-08-20 Pedro Alves <palves@redhat.com>
1868
1869 * dwarf2read.c (process_full_comp_unit): To tell whether
1870 start_subfile managed to deduce a language, test for
1871 language_unknown instead of language_c.
1872
af39b327
PMR
18732015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
1874
1875 * ada-lex.l: Reset the start condition to INITIAL in the rule that
1876 matches attributes.
1877
7d45c7c3
KB
18782015-08-19 Kevin Buettner <kevinb@redhat.com>
1879
1880 * dwarf2read.c (dwarf2_string_attr): New function.
1881 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
1882 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
1883 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
1884 (anonymous_struct_prefix, prepare_one_comp_unit): Use
1885 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
1886
4d6cceb4
DE
18872015-08-18 Doug Evans <dje@google.com>
1888 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1889
1890 PR mi/18833
1891 * cli/cli-logging.c (pop_output_files): Don't restore redirection
1892 if MI-like.
1893 * mi/mi-out.c: #include "vec.h".
1894 (ui_filep): New type.
1895 (DEV_VEC_P (ui_filep)): New type.
1896 (struct ui_out_data) <buffer, original_buffer>: Delete.
1897 (struct ui_out_data) <streams>: New member.
1898 (mi_ui_out_impl): Add data_destroy field.
1899 (mi_field_string, mi_field_fmt): Update.
1900 (mi_flush, mi_redirect, field_separator): Update.
1901 (mi_open, mi_close): Update.
1902 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
1903 (mi_out_data_ctor, mi_out_data_dtor): New functions.
1904 (mi_out_new): Call mi_out_data_ctor.
1905
26d56a93
SL
19062015-08-18 Sandra Loosemore <sandra@codesourcery.com>
1907
1908 * remote.c (strprefix): New.
1909 (remote_parse_stop_reply): Use strprefix instead of strncmp
1910 to ensure exact match of keyword.
1911
566f5e3b
AB
19122015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1913
1914 * gdb_bfd.c (debug_bfd_cache): New variable.
1915 (show_bfd_cache_debug): New function.
1916 (gdb_bfd_open): Add debug logging.
1917 (gdb_bfd_ref): Likewise.
1918 (gdb_bfd_unref): Likewise.
1919 (_initialize_gdb_bfd): Add new set/show command.
1920 * NEWS: Mention new command.
1921
18989b3c
AB
19222015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1923
1924 * gdb_bfd.c (bfd_sharing): New variable.
1925 (show_bfd_sharing): New function.
1926 (gdb_bfd_open): Check bfd_sharing variable.
1927 (_initialize_gdb_bfd): Add new set/show command.
1928 * NEWS: Mention new command.
1929
c04fe68f
AB
19302015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1931
1932 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
1933 field.
1934 (struct gdb_bfd_cache_search): Likewise.
1935 (eq_bfd): Compare the size, inode, and device id fields.
1936 (gdb_bfd_open): Initialise the size, inode, and device id fields.
1937 (gdb_bfd_ref): Likewise.
1938 (gdb_bfd_unref): Likewise.
1939
b2a33439
PA
19402015-08-18 Pedro Alves <palves@redhat.com>
1941
1942 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
1943 target implements to_always_non_stop_p, call it.
1944 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
1945 (x86_linux_create_target): Install it as to_always_non_stop_p
1946 method.
1947
71b57e37
DE
19482015-08-17 Doug Evans <dje@google.com>
1949
1950 * ui-out.c (default_ui_out_impl): Add comment.
1951
7f3706eb
IB
19522015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
1953
1954 * d-exp.y (type_aggregate_p): New function.
1955 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
1956 (classify_inner_name): Likewise.
1957 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
1958
1762568f
DE
19592015-08-15 Doug Evans <xdje42@gmail.com>
1960
1961 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
1962 updated.
1963 (add_psymbol_to_list): Ditto.
1964
8763cede
DE
19652015-08-15 Doug Evans <xdje42@gmail.com>
1966
1967 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
1968 updated. Call end_psymtab_common.
1969 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
1970 end_psymtab_common.
1971 (build_type_psymtabs_reader): Ditto.
1972 * psympriv.h (sort_pst_symbols): Delete.
1973 (end_psymtab_common): Declare.
1974 * psymtab.c (sort_pst_symbols): Make static.
1975 (end_psymtab_common): New function.
1976 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
1977
51cdc993
DE
19782015-08-15 Doug Evans <xdje42@gmail.com>
1979
1980 * defs.h (LANGUAGE_BITS): Define.
1981 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
1982 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
1983 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
1984 (minimal_symbol_type): Add nr_minsym_types.
1985 (MINSYM_TYPE_BITS): Define.
1986 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
1987 (domain_enum_tag): Add NR_DOMAINS.
1988 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
1989 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
1990
95cf5869
DE
19912015-08-15 Doug Evans <xdje42@gmail.com>
1992
1993 * objfiles.h: Whitespace cleanup.
1994 * psympriv.h: Whitespace cleanup.
1995 * psymtab.c: Whitespace/coding convention cleanup.
1996
e3ae3c43
PP
19972015-08-15 Patrick Palka <patrick@parcs.ath.cx>
1998
1999 * inferior.c (detach_inferior_command): Don't call
2000 any_thread_of_process when pid is 0.
2001 (kill_inferior_command): Likewise.
2002
6ff0ba5f
DE
20032015-08-14 Doug Evans <xdje42@gmail.com>
2004
2005 PR gdb/11833
2006 * NEWS: Document new /s modifier for the disassemble command.
2007 * cli/cli-cmds.c (disassemble_command): Add support for /s.
2008 (_initialize_cli_cmds): Update online docs of disassemble command.
2009 * disasm.c: #include "source.h".
2010 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
2011 All uses updated.
2012 (dis_line_entry): New struct.
2013 (hash_dis_line_entry, eq_dis_line_entry): New functions.
2014 (allocate_dis_line_table): New functions.
2015 (maybe_add_dis_line_entry, line_has_code_p): New functions.
2016 (dump_insns): New arg end_pc. All callers updated.
2017 (do_mixed_source_and_assembly_deprecated): Renamed from
2018 do_mixed_source_and_assembly. All callers updated.
2019 (do_mixed_source_and_assembly): New function.
2020 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
2021 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
2022 DISASSEMBLY_SOURCE. All uses updated.
2023 (DISASSEMBLY_SOURCE): New macro.
2024 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
2025
b56ccc20
KS
20262015-08-14 Keith Seitz <keiths@redhat.com>
2027
2028 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
2029 `typename' to `type_name' to avoid C++ reserved word.
2030
ebdad8fc
KS
20312015-08-14 Keith Seitz <keiths@redhat.com>
2032
2033 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
2034 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
2035 silence ARI errors.
2036
c0fe2ae7
IB
20372015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
2038
2039 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
2040 xstrprintf instead of malloc and sprintf.
2041 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
2042 (lex_one_token): Likewise.
2043
a738da3a
MF
20442015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
2045
2046 * solib-svr4.c (read_program_header): Add base_addr argument to
2047 report the runtime address of the segment.
2048 (find_program_interpreter): Update read_program_header call to pass
2049 a NULL pointer for the new argument.
2050 (scan_dyntag): Add ptr_addr argument to report the runtime address
2051 of the tag payload.
2052 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
2053 read_program_header to get the base address of the dynamic segment.
2054 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
2055 read_program_header.
2056 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
2057
f8edc4ff
MF
20582015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
2059
2060 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
2061
444c1ed8
IB
20622015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
2063
2064 * d-exp.y (%union): Add voidval.
2065 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
2066 name in the lexing stage.
2067 (PostfixExpression): Move symbol completion handling in grammar here
2068 from PrimaryExpression.
2069 (PrimaryExpression): Move routines to handle resolving identifier
2070 tokens in the grammar here from push_expression_name.
2071 (IdentifierExp): Remove the handling of alternating '.' and identifier
2072 tokens.
2073 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
2074 (BasicType): Remove C-style typename rules.
2075 (d_type_from_name, d_module_from_name, push_variable)
2076 (push_fieldnames, push_type_name, push_module_name)
2077 (push_expression_name): Remove.
2078 (lex_one_token): Rename from yylex. Replace pstate with par_state.
2079 (token_and_value): New type.
2080 (token_fifo, popping, name_obstack): New globals.
2081 (classify_name): New function.
2082 (classify_inner_name): Likewise.
2083 (yylex): Likewise.
2084 (d_parse): Initialize token_fifo, popping and name_obstack.
2085
bc7c9fab
IB
20862015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
2087
2088 * Makefile.in (SFILES): Add d-namespace.c.
2089 (COMMON_OBS): Add d-namespace.o.
2090 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
2091 la_lookup_symbol_nonlocal callback function pointer.
2092 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
2093 (d_lookup_nested_symbol): New declaration.
2094 * d-namespace.c: New file.
2095
3207396b
PA
20962015-08-13 Pedro Alves <palves@redhat.com>
2097
2098 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
2099 cleanup after the decref cleanup, not before.
2100
5d8c3ed3
PMR
21012015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
2102
2103 * ada-lang.c: Include namespace.h
2104 (aux_add_nonlocal_symbols): Fix a function name in comment.
2105 (ada_add_block_renamings): New.
2106 (add_nonlocal_symbols): Add global renamings handling.
2107 (ada_lookup_symbol_list_worker): Move the symbol lookup part
2108 to...
2109 (ada_add_all_symbols): ... this new function.
2110 (ada_add_block_symbols): Try to match the input name against the
2111 "using directives list", perform a recursive symbol lookup on
2112 the matched declarations.
2113 * block.h (struct block): Move the_namespace to top-level as
2114 namespace_info. Remove the language_specific field.
2115 (BLOCK_NAMESPACE): Update access to the namespace_info field.
2116 * buildsym.h (using_directives): Rename into...
2117 (local_using_directives): ... this.
2118 (global_using_directives): New.
2119 (struct context_stack): Rename the using_directives field into
2120 local_using_directives.
2121 * buildsym.c (finish_block_internal): Deal with the proper
2122 using directives repository (local or global).
2123 (prepare_for_building): Reset local_using_directives. Assert
2124 that there is no pending global using directive.
2125 (reset_symtab_globals): Reset global_using_directives and
2126 local_using_directives.
2127 (end_symtab_get_static_block): Don't ignore symtabs that have
2128 only using directives.
2129 (push_context): Update references to local_using_directives.
2130 (buildsym_init): Do not reset using_directives.
2131 * cp-support.c: Include namespace.h.
2132 * cp-support.h (struct using_direct): Move to namespace.h.
2133 (cp_add_using_directives): Move to namespace.h.
2134 * cp-namespace.c: Include namespace.h
2135 (cp_add_using_directive): Move to namespace.c, rename it to
2136 add_using_directive, add a "using_directives" argument and use
2137 it as the pending using directives repository. All callers
2138 updated.
2139 * dwarf2read.c (using_directives): New.
2140 (read_import_statement): Call using_directives.
2141 (read_func_scope): Update references to local_using_directives.
2142 (read_lexical_block_scope): Likewise.
2143 (read_namespace): Update the heading comment, call
2144 using_directives.
2145 * namespace.h: New file.
2146 * namespace.c: New file.
2147 * Makefile.in (SFILES): Add namespace.c.
2148 (COMMON_OBS): Add namespace.o
2149
4dafcdeb
JB
21502015-08-12 Joel Brobecker <brobecker@adacore.com>
2151
2152 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
2153 compute RETADDR.
2154
67994074
KS
21552015-08-12 Keith Seitz <keiths@redhat.com>
2156
2157 * break-catch-throw.c (re_set_exception_catchpoint) Rename
2158 reserved C++ keyword "explicit" to "explicit_loc".
2159 * breakpoint.c (create_overlay_event_breakpoint)
2160 (create_longjmp_master_breakpoint)
2161 (create_std_terminate_master_breakpoint)
2162 (create_exception_master_breakpoint, update_static_tracepoint):
2163 Rename reserved C++ keyword "explicit" to "explicit_loc".
2164 * completer.c (collect_explicit_location_matches)
2165 (explicit_location_completer): Rename reserved C++ keyword
2166 "explicit" to "explicit_loc".
2167 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
2168 (canonicalize_linespec, create_sals_line_offset)
2169 (convert_linespec_to_sals, convert_explicit_location_to_sals)
2170 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
2171 "explicit" to "explicit_loc".
2172 * location.c (struct event_location) <explicit>: Rename to
2173 "explicit_loc".
2174 (initialize_explicit_location, new_explicit_location)
2175 (explicit_location_to_string_internal, explicit_location_to_linespec):
2176 Rename reserved C++ keyword "explicit" to "explicit_loc".
2177 * location.h (explicit_location_to_string)
2178 (explicit_location_to_linespec, initialize_explicit_location)
2179 (new_explicit_location): Rename reserved C++ keyword "explicit"
2180 to "explicit_loc".
2181 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
2182 keyword "explicit" to "explicit_loc".
2183
59ecaff3
KS
21842015-08-12 Keith Seitz <keiths@redhat.com>
2185
2186 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
2187 and only call decode_line_1 when it is non-NULL.
2188
244558af
LM
21892015-08-12 Luis Machado <lgustavo@codesourcery.com>
2190
2191 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
2192 location address is not meaningful.
2193 (breakpoint_address_is_meaningful): Update comment.
2194
629500fa
KS
21952015-08-11 Keith Seitz <keiths@redhat.com>
2196
2197 * NEWS: Mention explicit locations.
2198 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
2199 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
2200 (_initialize_breakpoint): Update documentation for
2201 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
2202
eb8c4e2e
KS
22032015-08-11 Keith Seitz <keiths@redhat.com>
2204
2205 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
2206 explicit locations, options "--source", "--function",
2207 "--label", and "--line".
2208
87f0e720
KS
22092015-08-11 Keith Seitz <keiths@redhat.com>
2210
2211 * completer.c: Include location.h.
2212 (enum match_type): New enum.
2213 (location_completer): Rename to ...
2214 (linespec_completer): ... this.
2215 (collect_explicit_location_matches, backup_text_ptr)
2216 (explicit_location_completer): New functions.
2217 (location_completer): "New" function; handle linespec
2218 and explicit location completions.
2219 (complete_line_internal): Remove all location completer-specific
2220 handling.
2221 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
2222 (find_toplevel_char): Export.
2223 (linespec_parse_line_offset): Export.
2224 Issue error if STRING is not numerical.
2225 (gdb_get_linespec_parser_quote_characters): New function.
2226 * linespec.h (linespec_parse_line_offset): Declare.
2227 (get_gdb_linespec_parser_quote_characters): Declare.
2228 (is_ada_operator): Declare.
2229 (find_toplevel_char): Declare.
2230 (linespec_lexer_lex_keyword): Declare.
2231 * location.c (explicit_to_event_location): New function.
2232 (explicit_location_lex_one): New function.
2233 (string_to_explicit_location): New function.
2234 (string_to_event_location): Handle explicit locations.
2235 * location.h (explicit_to_event_location): Declare.
2236 (string_to_explicit_location): Declare.
2237
00e52e53
KS
22382015-08-11 Keith Seitz <keiths@redhat.com>
2239
2240 * break-catch-throw.c (re_set_exception_catchpoint): Convert
2241 linespec into explicit location.
2242 * breakpoint.c (create_overlay_breakpoint)
2243 (create_longjmp_master_breakpoint)
2244 (create_std_terminate_master_breakpoint)
2245 (create_exception_master_breakpoint): Convert linespec into explicit
2246 location.
2247 (update_static_tracepoint): Convert linespec into explicit location.
2248 * linespec.c (enum offset_relative_sign, struct line_offset): Move
2249 location.h.
2250 (struct linespec) <expression, expr_pc, source_filename>
2251 <function_name, label_name, line_offset>: Replace with ...
2252 <explicit>: ... this.
2253 <is_linespec>: New member.
2254 (PARSER_EXPLICIT): New accessor macro.
2255 (undefined_label_error): New function.
2256 (source_file_not_found_error): New function.
2257 (linespec_parse_basic): The parser result is now an explicit location.
2258 Use PARSER_EXPLICIT to access it.
2259 Use undefined_label_error.
2260 (canonicalize_linespec): Convert canonical linespec into explicit
2261 location.
2262 Move string representation of location to explicit_location_to_linespec
2263 and use it and explicit_location_to_string to save string
2264 representations of the canonical location.
2265 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
2266 explicit location. Update all references.
2267 (convert_explicit_location_to_sals): New function.
2268 (parse_linespec): Use PARSER_EXPLICIT to access the parser
2269 result's explicit location.
2270 (linespec_state_constructor): Initialize is_linespec.
2271 Use PARSER_EXPLICIT.
2272 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
2273 result.
2274 (event_location_to_sals): For linespec locations, set is_linespec.
2275 Handle explicit locations.
2276 (decode_objc): 'ls' contains an explicit location now. Update all
2277 references.
2278 (symtabs_from_filename): Use source_file_not_found_error.
2279 * location.c (struct event_location.u) <explicit>: New member.
2280 (initialize_explicit_location): New function.
2281 (initialize_event_location): Initialize explicit locations.
2282 (new_explicit_location, get_explicit_location)
2283 (get_explicit_location_const): New functions.
2284 (explicit_to_string_internal): New function; most of contents moved
2285 from canonicalize_linespec.
2286 (explicit_location_to_string): New function.
2287 (explicit_location_to_linespec): New function.
2288 (copy_event_location, delete_event_location)
2289 (event_location_to_string_const, event_location_empty_p): Handle
2290 explicit locations.
2291 * location.h (enum offset_relative_sign, struct line_offset): Move
2292 here from linespec.h.
2293 (enum event_location_type): Add EXPLICIT_LOCATION.
2294 (struct explicit_location): New structure.
2295 (explicit_location_to_string): Declare.
2296 (explicit_location_to_linespec): Declare.
2297 (new_explicit_location, get_explicit_locationp
2298 (get_explicit_location_const, initialize_explicit_location): Declare.
2299
5b56227b
KS
23002015-08-11 Keith Seitz <keiths@redhat.com>
2301
2302 * break-catch-throw.c (re_set_exception_catchpoint): Convert
2303 linespec for stap probe to probe location.
2304 * breakpoint.c (create_longjmp_master_breakpoint)
2305 (create_exception_master_breakpoint): Likewise.
2306 (break_command_1): Remove local variable `arg_cp'.
2307 Check location type to set appropriate breakpoint ops methods.
2308 (trace_command): Likewise.
2309 * linespec.c (event_location_to_sals): Assert on probe locations.
2310 * location.c (EL_PROBE): Add macro definition.
2311 (new_probe_location, get_probe_location): New functions.
2312 (copy_event_location, delete_event_location, event_location_to_string)
2313 (string_to_event_location, event_location_empty_p): Handle probe
2314 locations.
2315 * location.h (enum event_location_type): Add PROBE_LOCATION.
2316 (new_probe_location, get_probe_location): Declare.
2317 * probe.c (parse_probes): Assert that LOCATION is a probe location.
2318 Convert linespec into probe location.
2319
a06efdd6
KS
23202015-08-11 Keith Seitz <keiths@redhat.com>
2321
2322 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
2323 Convert linespec to address location.
2324 * linespec.c (canonicalize_linespec): Do not handle address
2325 locations here.
2326 (convert_address_location_to_sals): New function; contents moved
2327 from ...
2328 (convert_linespc_to_sals): ... here.
2329 (parse_linespec): Remove address locations from linespec grammar.
2330 Remove handling of address locations.
2331 (linespec_lex_to_end): Remove handling of address linespecs.
2332 (event_location_to_sals): Handle ADDRESS_LOCATION.
2333 (linespec_expression_to_pc): Export.
2334 * linespec.h (linespec_expression_to_pc): Add declaration.
2335 * location.c (struct event_location.u) <address>: New member.
2336 (new_address_location, get_address_location): New functions.
2337 (copy_event_location, delete_event_location, event_location_to_string)
2338 (string_to_event_location, event_location_empty_p): Handle address
2339 locations.
2340 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
2341 (new_address_location, get_address_location): Declare.
2342 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
2343 to address location.
2344 * spu-tdep.c (spu_catch_start): Likewise.
2345
f00aae0f
KS
23462015-08-11 Keith Seitz <keiths@redhat.com>
2347
2348 * ax-gdb.c: Include location.h.
2349 (agent_command_1) Use linespec location instead of address
2350 string.
2351 * break-catch-throw.c: Include location.h.
2352 (re_set_exception_catchpoint): Use linespec locations instead
2353 of address strings.
2354 * breakpoint.c: Include location.h.
2355 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
2356 (create_std_terminate_master_breakpoint)
2357 (create_exception_master_breakpoint, update_breakpoints_after_exec):
2358 Use linespec location instead of address string.
2359 (print_breakpoint_location): Use locations and
2360 event_location_to_string.
2361 Print extra_string for pending locations for non-MI streams.
2362 (print_one_breakpoint_location): Use locations and
2363 event_location_to_string.
2364 (init_raw_breakpoint_without_location): Initialize b->location.
2365 (create_thread_event_breakpoint): Use linespec location instead of
2366 address string.
2367 (init_breakpoint_sal): Likewise.
2368 Only save extra_string if it is non-NULL and not the empty string.
2369 Use event_location_to_string instead of `addr_string'.
2370 Constify `p' and `endp'.
2371 Use skip_spaces_const/skip_space_const instead of non-const versions.
2372 Copy the location into the breakpoint.
2373 If LOCATION is NULL, save the breakpoint address as a linespec location
2374 instead of an address string.
2375 (create_breakpoint_sal): Change `addr_string' parameter to a struct
2376 event_location. All uses updated.
2377 (create_breakpoints_sal): Likewise for local variable `addr_string'.
2378 (parse_breakpoint_sals): Use locations instead of address strings.
2379 Remove check for empty linespec with conditional.
2380 Refactor.
2381 (decode_static_tracepoint_spec): Make argument const and update
2382 function.
2383 (create_breakpoint): Change `arg' to a struct event_location and
2384 rename.
2385 Remove `copy_arg' and `addr_start'.
2386 If EXTRA_STRING is empty, set it to NULL.
2387 Don't populate `canonical' for pending breakpoints.
2388 Pass `extra_string' to find_condition_and_thread.
2389 Clear `extra_string' if `rest' was NULL.
2390 Do not error with "garbage after location" if setting a dprintf
2391 breakpoint.
2392 Copy the location into the breakpoint instead of an address string.
2393 (break_command_1): Use string_to_event_location and pass this to
2394 create_breakpoint instead of an address string.
2395 Check against `arg_cp' for a probe linespec.
2396 (dprintf_command): Use string_to_event_location and pass this to
2397 create_breakpoint instead of an address string.
2398 Throw an exception if no format string was specified.
2399 (print_recreate_ranged_breakpoint): Use event_location_to_string
2400 instead of address strings.
2401 (break_range_command, until_break_command)
2402 (init_ada_exception_breakpoint): Use locations instead
2403 of address strings.
2404 (say_where): Print out extra_string for pending locations.
2405 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
2406 the breakpoint.
2407 (base_breakpoint_create_sals_from_location): Use struct event_location
2408 instead of address string.
2409 Remove `addr_start' and `copy_arg' parameters.
2410 (base_breakpoint_decode_location): Use struct event_location instead of
2411 address string.
2412 (bkpt_re_set): Use locations instead of address strings.
2413 Use event_location_empty_p to check for unset location.
2414 (bkpt_print_recreate): Use event_location_to_string instead of
2415 an address string.
2416 Print out extra_string for pending locations.
2417 (bkpt_create_sals_from_location, bkpt_decode_location)
2418 (bkpt_probe_create_sals_from_location): Use struct event_location
2419 instead of address string.
2420 (bkpt_probe_decode_location): Use struct event_location instead of
2421 address string.
2422 (tracepoint_print_recreate): Use event_location_to_string to
2423 recreate the tracepoint.
2424 (tracepoint_create_sals_from_location, tracepoint_decode_location)
2425 (tracepoint_probe_create_sals_from_location)
2426 (tracepoint_probe_decode_location): Use struct event_location
2427 instead of address string.
2428 (dprintf_print_recreate): Use event_location_to_string to recreate
2429 the dprintf.
2430 (dprintf_re_set): Remove check for valid/missing format string.
2431 (strace_marker_create_sals_from_location)
2432 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
2433 (update_static_tracepoint): Use struct event_location instead of
2434 address string.
2435 (location_to_sals): Likewise.
2436 Pass `extra_string' to find_condition_and_thread.
2437 For newly resolved pending breakpoint locations, clear the location's
2438 string representation.
2439 Assert that the breakpoint's condition string is NULL when
2440 condition_not_parsed.
2441 (breakpoint_re_set_default, create_sals_from_location_default)
2442 (decode_location_default, trace_command, ftrace_command)
2443 (strace_command, create_tracepoint_from_upload): Use locations
2444 instead of address strings.
2445 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
2446 Use struct event_location instead of address string.
2447 Update all uses.
2448 <decode_location>: Likewise.
2449 (struct breakpoint) <addr_string>: Change to struct event_location
2450 and rename `location'.
2451 <addr_string_range_end>: Change to struct event_location and rename
2452 `location_range_end'.
2453 (create_breakpoint): Use struct event_location instead of address
2454 string.
2455 * cli/cli-cmds.c: Include location.h.
2456 (edit_command, list_command): Use locations instead of address strings.
2457 * elfread.c: Include location.h.
2458 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
2459 * guile/scm-breakpoint.c: Include location.h.
2460 (bpscm_print_breakpoint_smob): Use event_location_to_string.
2461 (gdbscm_register_breakpoint): Use locations instead of address
2462 strings.
2463 * linespec.c: Include location.h.
2464 (struct ls_parser) <stream>: Change to const char *.
2465 (PARSER_STREAM): Update.
2466 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
2467 keywords must be followed by whitespace.
2468 (canonicalize_linespec): Save a linespec location into `canonical'.
2469 Save a canonical linespec into `canonical'.
2470 (parse_linespec): Change `argptr' to const char * and rename `arg'.
2471 All uses updated.
2472 Update function description.
2473 (linespec_parser_new): Initialize `parser'.
2474 Update initialization of parsing stream.
2475 (event_location_to_sals): New function.
2476 (decode_line_full): Change `argptr' to a struct event_location and
2477 rename it `location'.
2478 Use locations instead of address strings.
2479 Call event_location_to_sals instead of parse_linespec.
2480 (decode_line_1): Likewise.
2481 (decode_line_with_current_source, decode_line_with_last_displayed)
2482 Use locations instead of address strings.
2483 (decode_objc): Likewise.
2484 Change `argptr' to const char * and rename `arg'.
2485 (destroy_linespec_result): Delete the linespec result's location
2486 instead of freeing the address string.
2487 * linespec.h (struct linespec_result) <addr_string>: Change to
2488 struct event_location and rename to ...
2489 <location>: ... this.
2490 (decode_line_1, decode_line_full): Change `argptr' to struct
2491 event_location. All callers updated.
2492 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
2493 (mi_cmd_break_insert_1): Use locations instead of address strings.
2494 Throw an error if there was "garbage" at the end of the specified
2495 linespec.
2496 * probe.c: Include location.h.
2497 (parse_probes): Change `argptr' to struct event_location.
2498 Use event locations instead of address strings.
2499 * probe.h (parse_probes): Change `argptr' to struct event_location.
2500 * python/py-breakpoint.c: Include location.h.
2501 (bppy_get_location): Constify local variable `str'.
2502 Use event_location_to_string.
2503 (bppy_init): Use locations instead of address strings.
2504 * python/py-finishbreakpoint.c: Include location.h.
2505 (bpfinishpy_init): Remove local variable `addr_str'.
2506 Use locations instead of address strings.
2507 * python/python.c: Include location.h.
2508 (gdbpy_decode_line): Use locations instead of address strings.
2509 * remote.c: Include location.h.
2510 (remote_download_tracepoint): Use locations instead of address
2511 strings.
2512 * spu-tdep.c: Include location.h.
2513 (spu_catch_start): Remove local variable `buf'.
2514 Use locations instead of address strings.
2515 * tracepoint.c: Include location.h.
2516 (scope_info): Use locations instead of address strings.
2517 (encode_source_string): Constify parameter `src'.
2518 * tracepoint.h (encode_source_string): Likewise.
2519
c7c1b3e9
KS
25202015-08-11 Keith Seitz <keiths@redhat.com>
2521
2522 * Makefile.in (SFILES): Add location.c.
2523 (HFILES_NO_SRCDIR): Add location.h.
2524 (COMMON_OBS): Add location.o.
2525 * linespec.c (linespec_lex_to_end): New function.
2526 * linespec.h (linespec_lex_to_end): Declare.
2527 * location.c: New file.
2528 * location.h: New file.
2529
5f700d83
KS
25302015-08-11 Keith Seitz <keiths@redhat.com>
2531
2532 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
2533 Renamed to create_sals_from_location.
2534 <decode_linespec>: Renamed to decode_location.
2535 Update all callers.
2536 * breakpoint.c (create_sals_from_address_default): Renamed to ...
2537 (create_sals_from_location_default): ... this.
2538 (addr_string_to_sals): Renamed to ...
2539 (location_to_sals): ... this.
2540 (decode_linespec_default): Renamed to ...
2541 (decode_location_default): ... this.
2542 (base_breakpoint_create_sals_from_address): Renamed to ...
2543 (base_breakpoint_create_sals_from_location): ... this.
2544 (bkpt_create_sals_from_address): Renamed to ...
2545 (bkpt_create_sals_from_location): ... this.
2546 (bkpt_decode_linespec): Renamed to ...
2547 (bkpt_decode_location): ... this.
2548 (bkpt_probe_create_sals_from_address): Renamed to ...
2549 (bkpt_probe_create_sals_from_location): ... this.
2550 (tracepoint_create_sals_from_address): Renamed to ...
2551 (tracepoint_create_sals_from_location): ... this.
2552 (tracepoint_decode_linespec): Renamed to ...
2553 (tracepoint_decode_location): ... this.
2554 (tracepoint_probe_create_sals_from_address): Renamed to ...
2555 (tracepoint_probe_create_sals_from_location): ... this.
2556 (tracepoint_probe_decode_linespec): Renamed to ...
2557 (tracepoint_probe_decode_location): ... this.
2558 (strace_marker_create_sals_from_address): Renamed to ...
2559 (strace_marker_create_sals_from_location): ... this.
2560 (decode_linespec_default): Renamed to ...
2561 (decode_location_default): ... this.
2562
e27852be
DE
25632015-08-10 Doug Evans <dje@google.com>
2564 Keith Seitz <keiths@redhat.com>
2565
2566 PR gdb/17960
2567 * symtab.c (make_file_symbol_completion_list_1): Renamed from
2568 make_file_symbol_completion_list and made static.
2569 (make_file_symbol_completion_list): New function.
80af41e0 2570
fd7dcb94
JB
25712015-08-10 Joel Brobecker <brobecker@adacore.com>
2572
2573 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
2574 trailing new-line at end of warning message.
2575 (proceed): Add i18n marker to error messages.
2576
f12899e9
PA
25772015-08-07 Pedro Alves <palves@redhat.com>
2578
2579 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
2580
5ac21343
PA
25812015-08-07 Pedro Alves <palves@redhat.com>
2582
2583 * s390-linux-tdep.c (is_non_branch_ril)
2584 (s390_displaced_step_copy_insn): New functions.
2585 (s390_displaced_step_fixup): Update comment.
2586 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
2587 gdbarch_displaced_step_copy_insn hook.
2588
7f03bd92
PA
25892015-08-07 Pedro Alves <palves@redhat.com>
2590
2591 * infrun.c (displaced_step_prepare_throw): Return -1 if
2592 gdbarch_displaced_step_copy_insn returns NULL. Update intro
2593 comment.
2594 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
2595 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
2596 in file.
2597 (ppc_displaced_step_copy_insn): New function.
2598 (ppc_displaced_step_fixup): Update comment.
2599 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
2600 gdbarch_displaced_step_copy_insn hook.
2601 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
2602 NULL return.
2603 * gdbarch.h: Regenerate.
2604
3fc8eb30
PA
26052015-08-07 Pedro Alves <palves@redhat.com>
2606
2607 * inferior.h (struct inferior) <displaced_stepping_failed>: New
2608 field.
2609 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
2610 Return false if dispaced stepping failed before.
2611 (resume): Pass the current inferior to
2612 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
2613 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
2614 displaced_stepping_failed flag, and fall back to an in-line
2615 step-over.
2616
bfedc46a
PA
26172015-08-07 Pedro Alves <palves@redhat.com>
2618
2619 * darwin-nat.c (darwin_stop): Rename to ...
2620 (darwin_interrupt): ... this.
2621 (_initialize_darwin_inferior): Adjust.
2622 * gnu-nat.c (gnu_stop): Delete.
2623 (gnu_target): Don't install gnu_stop.
2624 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
2625 (inf_ptrace_interrupt): ... this.
2626 (inf_ptrace_target): Adjust.
2627 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
2628 target_stop.
2629 * linux-nat (linux_nat_stop): Rename to ...
2630 (linux_nat_interrupt): ... this.
2631 (linux_nat_stop): Reimplement.
2632 (linux_nat_add_target): Install linux_nat_interrupt.
2633 * nto-procfs.c (nto_interrupt_twice): Rename to ...
2634 (nto_handle_sigint_twice): ... this.
2635 (nto_interrupt): Rename to ...
2636 (nto_handle_sigint): ... this. Call target_interrupt instead of
2637 target_stop.
2638 (procfs_wait): Adjust.
2639 (procfs_stop): Rename to ...
2640 (procfs_interrupt): ... this.
2641 (init_procfs_targets): Adjust.
2642 * procfs.c (procfs_stop): Rename to ...
2643 (procfs_interrupt): ... this.
2644 (procfs_target): Adjust.
2645 * remote-m32r-sdi.c (m32r_stop): Rename to ...
2646 (m32r_interrupt): ... this.
2647 (init_m32r_ops): Adjust.
2648 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
2649 (gdbsim_interrupt_inferior): ... this.
2650 (gdbsim_stop): Rename to ...
2651 (gdbsim_interrupt): ... this.
2652 (gdbsim_cntrl_c): Adjust.
2653 (init_gdbsim_ops): Adjust.
2654 * remote.c (sync_remote_interrupt): Adjust comments.
2655 (remote_stop_as): Rename to ...
2656 (remote_interrupt_as): ... this.
2657 (remote_stop): Adjust comment.
2658 (remote_interrupt): New function.
2659 (init_remote_ops): Install remote_interrupt.
2660 * target.c (target_interrupt): New function.
2661 * target.h (struct target_ops) <to_interrupt>: New field.
2662 (target_interrupt): New declaration.
2663 * windows-nat.c (windows_stop): Rename to ...
2664 (windows_interrupt): ... this.
2665 * target-delegates.c: Regenerate.
2666
d55007b5
PA
26672015-08-07 Pedro Alves <palves@redhat.com>
2668
2669 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
2670 threads" as alternative to "switching back to stepped thread".
2671
fbea99ea
PA
26722015-08-07 Pedro Alves <palves@redhat.com>
2673
2674 * NEWS: Mention "maint set/show target-non-stop".
2675 * breakpoint.c (update_global_location_list): Check
2676 target_is_non_stop_p instead of non_stop.
2677 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
2678 * infrun.c (show_can_use_displaced_stepping)
2679 (can_use_displaced_stepping_p, start_step_over_inferior):
2680 Likewise.
2681 (internal_resume_ptid): New function.
2682 (resume): Use it.
2683 (proceed): Check target_is_non_stop_p instead of non_stop. If in
2684 all-stop mode but the target is always in non-stop mode, start all
2685 the other threads that are implicitly resumed too.
2686 (for_each_just_stopped_thread, fetch_inferior_event)
2687 (adjust_pc_after_break, stop_all_threads): Check
2688 target_is_non_stop_p instead of non_stop.
2689 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
2690 with the target always in non-stop mode.
2691 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
2692 instead of non_stop.
2693 (switch_back_to_stepped_thread): Check target_is_non_stop_p
2694 instead of non_stop.
2695 (keep_going_stepped_thread): Use internal_resume_ptid.
2696 (stop_waiting): If in all-stop mode, and the target is in non-stop
2697 mode, stop all threads.
2698 (keep_going_pass): Likewise, when starting a new in-line step-over
2699 sequence.
2700 * linux-nat.c (get_pending_status, select_event_lwp)
2701 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
2702 target_is_non_stop_p instead of non_stop.
2703 (linux_nat_always_non_stop_p): New function.
2704 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
2705 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
2706 * target-delegates.c: Regenerate.
2707 * target.c (target_is_non_stop_p): New function.
2708 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
2709 (maint_set_target_non_stop_command)
2710 (maint_show_target_non_stop_command): New functions.
2711 (_initilize_target): Install "maint set/show target-non-stop"
2712 commands.
2713 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
2714 (target_non_stop_enabled): New declaration.
2715 (target_is_non_stop_p): New declaration.
2716
372316f1
PA
27172015-08-07 Pedro Alves <pedro@codesourcery.com>
2718
2719 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
2720 has a pending status, return true.
2721 * gdbthread.h: Include target/waitstatus.h.
2722 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
2723 stop_pc>: New fields.
2724 (struct thread_info) <resumed>: New field.
2725 (set_resumed): Declare.
2726 * infrun.c: Include "event-loop.h".
2727 (infrun_async_inferior_event_token, infrun_is_async): New globals.
2728 (infrun_async): New function.
2729 (clear_step_over_info): Add debug output.
2730 (displaced_step_in_progress_any_inferior): New function.
2731 (displaced_step_fixup): New returns int.
2732 (start_step_over): Handle in-line step-overs too. Assert the
2733 thread is marked resumed.
2734 (resume_cleanups): Clear the thread's resumed flag.
2735 (resume): Set the thread's resumed flag. Return early if the
2736 thread has a pending status. Allow stepping a breakpoint with no
2737 signal.
2738 (proceed): Adjust to check 'resumed' instead of 'executing'.
2739 (clear_proceed_status_thread): If the thread has a pending status,
2740 and that status is a finished step, discard the pending status.
2741 (clear_proceed_status): Don't clear step_over_info here.
2742 (random_pending_event_thread, do_target_wait): New functions.
2743 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
2744 do_target_wait.
2745 (wait_one): New function.
2746 (THREAD_STOPPED_BY): New macro.
2747 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2748 (thread_stopped_by_hw_breakpoint): New functions.
2749 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
2750 functions.
2751 (handle_inferior_event): Also call set_resumed(false) on all
2752 threads implicitly stopped by the event.
2753 (restart_threads, resumed_thread_with_pending_status): New
2754 functions.
2755 (finish_step_over): If we were doing an in-line step-over before,
2756 and no longer are after trying to start a new step-over, restart
2757 all threads. If we have multiple threads with pending events,
2758 save the current event and go through the event loop again.
2759 (handle_signal_stop): Return early if finish_step_over returns
2760 false.
2761 <random signal>: If we get a signal while stepping over a
2762 breakpoint in-line in non-stop mode, restart all threads. Clear
2763 step_over_info before delivering the signal.
2764 (keep_going_stepped_thread): Use internal_error instead of
2765 gdb_assert. Mark the thread as resumed.
2766 (keep_going_pass_signal): Assert the thread isn't already resumed.
2767 If some other thread is doing an in-line step-over, defer the
2768 resume. If we just started a new in-line step-over, stop all
2769 threads. Don't clear step_over_info.
2770 (infrun_async_inferior_event_handler): New function.
2771 (_initialize_infrun): Create async event handler with
2772 infrun_async_inferior_event_handler as callback.
2773 (infrun_async): New declaration.
2774 * target.c (target_async): New function.
2775 * target.h (target_async): Declare macro and readd as function
2776 declaration.
2777 * target/waitstatus.h (enum target_stop_reason)
2778 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2779 * thread.c (new_thread): Clear the new waitstatus field.
2780 (set_resumed): New function.
2781
2ac7589c
PA
27822015-08-07 Pedro Alves <palves@redhat.com>
2783
2784 * infrun.c (keep_going_stepped_thread): New function, factored out
2785 from ...
2786 (switch_back_to_stepped_thread): ... here.
2787
8b061563
PA
27882015-08-07 Pedro Alves <palves@redhat.com>
2789
2790 * infrun.c (currently_stepping): Extend intro comment.
2791 * target.h (target_resume): Extend intro comment.
2792
1afd5965
PA
27932015-08-07 Pedro Alves <palves@redhat.com>
2794
2795 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
2796 of inferior_ptid. If the stepped thread vanished, return 0
2797 instead of resuming here. Use reset_ecs. Print the prev_pc and
2798 the current stop_pc in log message. Clear trap_expected if the
2799 thread advanced. Don't pass currently_stepping to
2800 do_target_resume.
2801
4d9d9d04
PA
28022015-08-07 Pedro Alves <palves@redhat.com>
2803
2804 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
2805 * infrun.c (struct execution_control_state): Move higher up in the
2806 file.
2807 (reset_ecs): New function.
2808 (start_step_over): Now returns int. Rewrite to use
2809 keep_going_pass_signal instead of manually starting a displaced step.
2810 (resume): Don't call set_running here. If displaced stepping
2811 can't start now, clear trap_expected.
2812 (find_thread_needs_step_over): Delete function.
2813 (proceed): Set up finish_thread_state_cleanup. Call set_running.
2814 If the current thread needs a step over, push it in the step-over
2815 chain. Don't set insert breakpoints nor call resume directly
2816 here. Instead rewrite to use start_step_over and
2817 keep_going_pass_signal.
2818 (finish_step_over): New function.
2819 (handle_signal_stop): Call finish_step_over instead of
2820 start_step_over.
2821 (switch_back_to_stepped_thread): If the event thread needs another
2822 step-over do that first. Use start_step_over.
2823 (keep_going_pass_signal): New function, factored out from ...
2824 (keep_going): ... here.
2825 (_initialize_infrun): Comment moved here.
2826 * thread.c (set_running_thread): New function.
2827 (set_running, finish_thread_state): Use set_running_thread.
2828
c2829269
PA
28292015-08-07 Pedro Alves <palves@redhat.com>
2830
2831 * gdbthread.h (struct thread_info) <step_over_prev,
2832 step_over_next>: New fields.
2833 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
2834 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
2835 declarations.
2836 * infrun.c (struct displaced_step_request): Delete.
2837 (struct displaced_step_inferior_state) <step_request_queue>:
2838 Delete field.
2839 (displaced_step_prepare): Assert that trap_expected is set. Use
2840 thread_step_over_chain_enqueue. Split starting a new displaced
2841 step to ...
2842 (start_step_over): ... this new function.
2843 (resume): Assert the thread isn't waiting for a step over already.
2844 (proceed): Assert the thread isn't waiting for a step over
2845 already.
2846 (infrun_thread_stop_requested): Adjust to remove threads from the
2847 embedded step-over chain.
2848 (handle_inferior_event) <fork/vfork>: Call start_step_over after
2849 displaced_step_fixup.
2850 (handle_signal_stop): Call start_step_over after
2851 displaced_step_fixup.
2852 * infrun.h (step_over_queue_head): New declaration.
2853 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
2854 (thread_step_over_chain_next, thread_is_in_step_over_chain)
2855 (thread_step_over_chain_enqueue)
2856 (thread_step_over_chain_remove): New functions.
2857 (delete_thread_1): Remove thread from the step-over chain.
2858
6c4cfb24
PA
28592015-08-07 Pedro Alves <palves@redhat.com>
2860
2861 * infrun.c (thread_still_needs_step_over): Rename to ...
2862 (thread_still_needs_step_over_bp): ... this.
2863 (enum step_over_what): New.
2864 (thread_still_needs_step_over): Reimplement.
2865
567420d1
PA
28662015-08-07 Pedro Alves <palves@redhat.com>
2867
2868 * remote.c (remote_wait_as): If not waiting for a stop reply,
2869 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
2870 requested, don't block waiting forever.
2871
d8dd4d5f
PA
28722015-08-07 Pedro Alves <pedro@codesourcery.com>
2873
2874 * infrun.c (adjust_pc_after_break): Now takes thread_info and
2875 waitstatus pointers instead of an ecs. Adjust.
2876 (handle_inferior_event): Adjust caller.
2877
e1316e60
PA
28782015-08-07 Pedro Alves <palves@redhat.com>
2879
2880 * infrun.c (handle_inferior_event): If we get
2881 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
2882 mode, mark all threads of the exiting process as not-executing.
2883 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
2884 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
2885 exiting process, if inferior_ptid still points at a process.
2886 * thread.c (struct current_thread_cleanup) <next>: New field.
2887 (current_thread_cleanup_chain): New global.
2888 (restore_current_thread_ptid_changed): New function.
2889 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
2890 current_thread_cleanup_chain list.
2891 (make_cleanup_restore_current_thread): Add the cleanup data to the
2892 current_thread_cleanup_chain list.
2893 (_initialize_thread): Install restore_current_thread_ptid_changed
2894 as thread_ptid_changed observer.
2895
47e9c225
JB
28962015-08-07 Joel Brobecker <brobecker@adacore.com>
2897
2898 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
2899 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
2900 smaller than expected.
2901
06096720
AB
29022015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
2903
2904 * stack.c (get_frame_language): Moved ...
2905 * frame.c (get_frame_language): ... to here.
2906 * language.h (get_frame_language): Declaration moved to frame.h.
2907 * frame.h: Add language.h include, for language enum.
2908 (get_frame_language): Declaration moved from language.h.
2909 * language.c: Add frame.h include.
2910 * top.c: Add frame.h include.
2911 * symtab.h (struct obj_section): Declare.
2912 (struct cmd_list_element): Declare.
2913
7ff38b1c
AB
29142015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
2915
2916 * language.c (show_language_command): Find selected frame before
2917 asking for the language of that frame.
2918 (set_language_command): Likewise.
2919 * language.h (get_frame_language): Add frame parameter.
2920 * stack.c (get_frame_language): Add frame parameter, assert
2921 parameter is not NULL, update comment and reindent.
2922 * top.c (check_frame_language_change): Pass the selected frame
2923 into get_frame_language.
2924
da8c46d2
MM
29252015-08-07 Markus Metzger <markus.t.metzger@intel.com>
2926
2927 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
2928 (pt_btrace_insn_flags): New.
2929 (ftrace_add_pt): Call pt_btrace_insn_flags.
2930 * btrace.h (btrace_insn_flag): New.
2931 (btrace_insn) <flags>: New.
2932 * record-btrace.c (btrace_insn_history): Print insn prefix.
2933 * NEWS: Announce it.
2934
5599c404
MM
29352015-08-07 Markus Metzger <markus.t.metzger@intel.com>
2936
2937 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
2938 * configure: Regenerate.
2939
016a3251
DD
29402015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
2941
2942 * Makefile.in (LIBICONV): Define.
2943 (CLIBS): Add LIBICONV.
2944 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
2945 * configure: Regenerate.
2946
aead7601
SM
29472015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2948 Pedro Alves <palves@redhat.com>
2949
2950 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
2951 (arm_set_abi): Likewise.
2952 * ax-general.c (ax_print): Likewise.
2953 * c-exp.y (exp : string_exp): Likewise.
2954 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
2955 (do_compile_dwarf_expr_to_c): Likewise.
2956 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
2957 Likewise.
2958 * dwarf2expr.c (execute_stack_op): Likewise.
2959 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2960 (disassemble_dwarf_expression): Likewise.
2961 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
2962 (read_array_order): Likewise.
2963 (abbrev_table_read_table): Likewise.
2964 (read_attribute_value): Likewise.
2965 (skip_unknown_opcode): Likewise.
2966 (dwarf_decode_macro_bytes): Likewise.
2967 (dwarf_decode_macros): Likewise.
2968 * eval.c (value_f90_subarray): Likewise.
2969 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2970 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2971 * infrun.c (handle_command): Likewise.
2972 * memory-map.c (memory_map_start_memory): Likewise.
2973 * osabi.c (set_osabi): Likewise.
2974 * parse.c (operator_length_standard): Likewise.
2975 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
2976 single return point.
2977 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2978 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2979 (gdbpy_lookup_global_symbol): Likewise.
2980 * record-full.c (record_full_restore): Likewise.
2981 * regcache.c (regcache_register_status): Likewise.
2982 (regcache_raw_read): Likewise.
2983 (regcache_cooked_read): Likewise.
2984 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2985 * symtab.c (initialize_ordinary_address_classes): Likewise.
2986 * target-debug.h (target_debug_print_signals): Likewise.
2987 * utils.c (do_restore_current_language): Likewise.
2988
ca0a5f0b
CD
29892015-08-06 Clem Dickey <clemd@acm.org>
2990
2991 PR python/17136
2992 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
2993
05d999b0
SM
29942015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2995
2996 * complaints.c (enum complaint_series): Add newlines and remove
2997 out of date comment.
2998 (struct complaints) <series>: Change type to enum
2999 complaint_series and remove out of date comment.
3000 (symfile_complaint_hook): Use equivalent enum value
3001 ISOLATED_MESSAGE instead of 0.
3002
bf47e248
PA
30032015-08-06 Pedro Alves <palves@redhat.com>
3004
3005 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
3006 returned > 0.
3007
b6b9ffcc
PL
30082015-08-06 Pierre Langlois <pierre.langlois@arm.com>
3009
3010 * common/agent.c (symbol_list) <required>: Remove.
3011
863d01bd
PA
30122015-08-06 Pedro Alves <palves@redhat.com>
3013
3014 * target/waitstatus.h (enum target_stop_reason)
3015 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
3016
0a39bb32
PA
30172015-08-05 Pedro Alves <palves@redhat.com>
3018 Joel Brobecker <brobecker@adacore.com>
3019
9d996aba 3020 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
3021 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
3022 case where BS->STOP is not set.
3023
260439cb
UW
30242015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
3025
3026 * nat/gdb_thread_db.h: Add copyright header.
3027 Protect against multiple inclusion.
3028
d89fa914
YQ
30292015-08-05 Yao Qi <yao.qi@linaro.org>
3030
3031 * aarch64-linux-nat.c (get_thread_id): Remove.
3032 (debug_reg_change_callback): Call ptid_get_lwp instead of
3033 get_thread_id.
3034 (fetch_gregs_from_thread): Likewise.
3035 (store_gregs_to_thread): Likewise.
3036 (fetch_fpregs_from_thread): Likewise.
3037 (store_fpregs_to_thread): Likewise.
3038 (aarch64_linux_get_debug_reg_capacity): Likewise.
3039 * arm-linux-nat.c (get_thread_id): Remove.
3040 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
3041 * xtensa-linux-nat.c (get_thread_id): Remove.
3042 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
3043 * arm-linux-nat.c (get_thread_id): Remove.
3044 (GET_THREAD_ID): Remove.
3045 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
3046 (store_fpregs, fetch_regs, store_regs): Likewise.
3047 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
3048 (fetch_vfp_regs, store_vfp_regs): Likewise.
3049 (arm_linux_read_description): Likewise.
3050 (arm_linux_get_hwbp_cap): Likewise.
3051 * xtensa-linux-nat.c (get_thread_id): Remove.
3052 (GET_THREAD_ID): Remove.
3053 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
3054 GET_THREAD_ID.
3055
4efd80aa
CS
30562015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
3057
3058 * python/py-linetable.c: Fix case of Linetable to LineTable
3059 in docstrings and code comments.
3060 * python/py-symtab.c: Same.
3061
c6343a91
JK
30622015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3063
3064 * infcmd.c (signal_command): Call do_cleanups for args_chain.
3065
978b9495
JK
30662015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3067
3068 PR gdb/18767
3069 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
3070 use.
3071
96e9210f
PA
30722015-08-04 Pedro Alves <palves@redhat.com>
3073
3074 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
3075 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
3076 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
3077 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
3078 (td_thr_validate_ftype, td_thr_get_info_ftype)
3079 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
3080 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
3081 New typedefs.
3082 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
3083 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
3084 local macros and use them instead of verbose_dlsym and dlsym
3085 calls.
3086
af60a1ef
SL
30872015-08-03 Sandra Loosemore <sandra@codesourcery.com>
3088
3089 * nios2-tdep.h: Include opcode/nios2.h here.
3090 (NIOS2_CDX_OPCODE_SIZE): New.
3091 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
3092 * nios2-tdep.c: Don't include opcode/nios2.h here.
3093 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
3094 4-byte read fails.
3095 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
3096 (nios2_match_addi, nios2_match_orhi): Likewise.
3097 (nios2_match_stw, nios2_match_ldw): Likewise.
3098 (nios2_match_rdctl): Likewise.
3099 (nios2_match_stwm, nios2_match_ldwm): New.
3100 (nios2_match_branch): Add cases for R2 encodings.
3101 (nios2_match_jmpi, nios2_match_calli): Likewise.
3102 (nios2_match_jmpr, nios2_match_callr): Likewise.
3103 (nios2_match_break, nios2_match_trap): Likewise.
3104 (nios2_in_epilogue_p): Add R2 support.
3105 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
3106 prologues.
3107 (nios2_breakpoint_from_pc): Handle R2 instructions.
3108 (nios2_get_next_pc): Likewise. Adjust call to
3109 tdep->syscall_next_pc.
3110 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
3111 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
3112 instruction field macros instead of literal hex values.
3113 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
3114 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
3115 Use size field from OP instead of assuming all instructions
3116 are the same size.
3117 (nios2_linux_init_abi): Register appropriate unwinder for mach.
3118
1da03605
UW
31192015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
3120
3121 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
3122 variable warning with some compilers.
3123
8156fe7f
YQ
31242015-08-03 Yao Qi <yao.qi@linaro.org>
3125
3126 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
3127 in comment. Replace "rw" with "type".
3128 (arm_linux_remove_watchpoint): Change type of "rw" to
3129 "enum target_hw_bp_type".
3130
835a09d9
PMR
31312015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
3132
3133 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
3134 lookup_symbol.
3135 * ft32-tdep.c (ft32_skip_prologue): Likewise.
3136 * moxie-tdep.c (moxie_skip_prologue): Likewise.
3137 * mt-tdep.c (mt_skip_prologue): Likewise.
3138 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
3139
d12307c1
PMR
31402015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
3141
3142 * ada-exp.y (write_object_renaming): Replace struct
3143 ada_symbol_info with struct block_symbol. Update field
3144 references accordingly.
3145 (block_lookup, select_possible_type_sym): Likewise.
3146 (find_primitive_type): Likewise. Also update call to
3147 ada_lookup_symbol to extract the symbol itself.
3148 (write_var_or_type, write_name_assoc): Likewise.
3149 * ada-lang.h (struct ada_symbol_info): Remove.
3150 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
3151 struct block_symbol.
3152 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
3153 (ada_lookup_symbol): Return struct block_symbol instead of a
3154 mere symbol.
3155 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
3156 with struct block_symbol.
3157 (resolve_subexp, ada_resolve_function, sort_choices,
3158 user_select_syms, is_nonfunction, add_defn_to_vec,
3159 num_defns_collected, defns_collected,
3160 symbols_are_identical_enums, remove_extra_symbols,
3161 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
3162 ada_lookup_symbol_list, ada_iterate_over_symbols,
3163 ada_lookup_encoded_symbol, get_var_value): Likewise.
3164 (ada_lookup_symbol): Return a block_symbol instead of a mere
3165 symbol. Replace struct ada_symbol_info with struct
3166 block_symbol.
3167 (ada_lookup_symbol_nonlocal): Likewise.
3168 (standard_lookup): Make block passing explicit through
3169 lookup_symbol_in_language.
3170 * ada-tasks.c (get_tcb_types_info): Update the calls to
3171 lookup_symbol_in_language to extract the mere symbol out of the
3172 returned value.
3173 (ada_tasks_inferior_data_sniffer): Likewise.
3174 * ax-gdb.c (gen_static_field): Likewise for the call to
3175 lookup_symbol.
a5fdf78a 3176 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
3177 lookup functions.
3178 (gen_expr): Likewise.
3179 * c-exp.y: Likewise. Remove uses of block_found.
3180 (lex_one_token, classify_inner_name, c_print_token): Likewise.
3181 (classify_name): Likewise. Rename the "sym" local variable to
3182 "bsym".
3183 * c-valprint.c (print_unpacked_pointer): Likewise.
3184 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
3185 "sym" parameter from struct symbol * to struct block_symbol.
3186 Use it to remove uses of block_found. Deal with struct
a5fdf78a 3187 block_symbol from lookup functions.
d12307c1
PMR
3188 (gcc_convert_symbol): Likewise. Update the call to
3189 convert_symbol_sym.
3190 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 3191 struct block_symbol from lookup functions.
d12307c1
PMR
3192 * cp-namespace.c (cp_lookup_nested_symbol_1,
3193 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
3194 cp_search_static_and_baseclasses,
3195 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
3196 cp_lookup_symbol_imports_or_template,
3197 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
3198 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
3199 find_symbol_in_baseclass): Return struct block_symbol instead of
3200 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
3201 functions.
3202 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 3203 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
3204 lookup functions.
3205 * cp-support.h (cp_lookup_symbol_nonlocal,
3206 cp_lookup_symbol_from_namespace,
3207 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 3208 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
3209 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
3210 push_module_name):
a5fdf78a 3211 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
3212 uses of block_found.
3213 * eval.c (evaluate_subexp_standard): Update call to
3214 cp_lookup_symbol_namespace.
a5fdf78a
PMR
3215 * f-exp.y: Deal with struct block_symbol from lookup functions.
3216 Remove uses of block_found.
d12307c1
PMR
3217 (yylex): Likewise.
3218 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
3219 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 3220 struct block_symbol from lookup functions.
d12307c1
PMR
3221 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
3222 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
3223 (gdbscm_lookup_global_symbol): Likewise.
3224 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
3225 * go-exp.y: Likewise. Remove uses of block_found.
3226 (package_name_p, classify_packaged_name, classify_name):
3227 Likewise.
3228 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3229 * jv-exp.y (push_variable): Likewise.
3230 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
3231 * language.c (language_bool_type): Likewise.
3232 * language.h (struct language_defn): Update
a5fdf78a
PMR
3233 la_lookup_symbol_nonlocal to return a struct block_symbol rather
3234 than a mere symbol.
3235 * linespec.c (find_label_symbols): Deal with struct block_symbol
3236 from lookup functions.
d12307c1
PMR
3237 * m2-exp.y: Likewise. Remove uses of block_found.
3238 (yylex): Likewise.
3239 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3240 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
3241 * p-exp.y: Likewise. Remove uses of block_found.
3242 (yylex): Likewise.
3243 * p-valprint.c (pascal_val_print): Likewise.
3244 * parse.c (write_dollar_variable): Likewise. Remove uses of
3245 block_found.
3246 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
3247 struct block_symbol.
3248 * printcmd.c (address_info): Deal with struct block_symbol from
3249 lookup functions.
d12307c1
PMR
3250 * python/py-frame.c (frapy_read_var): Likewise.
3251 * python/py-symbol.c (gdbpy_lookup_symbol,
3252 gdbpy_lookup_global_symbol): Likewise.
3253 * skip.c (skip_function_command): Likewise.
3254 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 3255 block_symbol instead of a mere symbol.
d12307c1
PMR
3256 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
3257 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
3258 * solib.c (solib_global_lookup): Likewise.
3259 * solist.h (solib_global_lookup): Likewise.
3260 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
3261 return a struct block_symbol rather than a mere symbol.
3262 * source.c (select_source_symtab): Deal with struct block_symbol
3263 from lookup functions.
d12307c1
PMR
3264 * stack.c (print_frame_args, iterate_over_block_arg_vars):
3265 Likewise.
3266 * symfile.c (set_initial_language): Likewise.
3267 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 3268 block_symbol.
d12307c1
PMR
3269 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
3270 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 3271 block_symbol.
d12307c1 3272 (block_found): Remove.
a5fdf78a 3273 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 3274 cache slots.
a5fdf78a
PMR
3275 (symbol_cache_lookup): Return a struct block_symbol rather than
3276 a mere symbol.
d12307c1
PMR
3277 (symbol_cache_mark_found): Add a BLOCK parameter to fill
3278 appropriately the cache slots. Update callers.
3279 (symbol_cache_dump): Update cache slots handling to the type
3280 change.
3281 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
3282 lookup_symbol_aux, lookup_local_symbol,
3283 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
3284 lookup_symbol_in_objfile_symtabs,
3285 lookup_symbol_in_objfile_from_linkage_name,
3286 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
3287 lookup_symbol_in_static_block, lookup_static_symbol,
3288 lookup_global_symbol):
a5fdf78a
PMR
3289 Return a struct block_symbol rather than a mere symbol. Deal
3290 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
3291 uses of block_found.
3292 (lookup_symbol_in_block): Remove uses of block_found.
3293 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 3294 struct block_symbol.
d12307c1
PMR
3295 (lookup_symbol_global_iterator_cb): Update references to the
3296 RESULT field.
a5fdf78a 3297 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 3298 functions.
a5fdf78a 3299 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
3300 (block_found): Remove.
3301 (lookup_symbol_in_language, lookup_symbol,
3302 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
3303 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
3304 lookup_global_symbol_from_objfile): Return a struct block_symbol
3305 rather than just a mere symbol. Update comments to remove
3306 mentions of block_found.
d12307c1
PMR
3307 * valops.c (find_function_in_inferior,
3308 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 3309 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
3310 functions.
3311 * value.c (value_static_field, value_fn_field): Likewise.
3312
b1c59ddc
SM
33132015-07-31 Simon Marchi <simon.marchi@ericsson.com>
3314
3315 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
3316 instead of integer.
3317
f486487f 33182015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 3319 Pedro Alves <palves@redhat.com>
f486487f
SM
3320
3321 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
3322 type or value instead of integer.
3323 (aarch64_linux_insert_watchpoint): Likewise.
3324 (aarch64_linux_remove_watchpoint): Likewise.
3325 * ada-lang.c (ada_op_print_tab): Likewise.
3326 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
3327 (amd64_linux_syscall_record_common): Likewise.
3328 * arch-utils.c (target_byte_order_user): Likewise.
3329 (default_byte_order): Likewise.
3330 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
3331 (arm_linux_get_hwbp_type): Likewise.
3332 (arm_linux_hw_watchpoint_initialize): Likewise.
3333 (arm_linux_insert_watchpoint): Likewise.
3334 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
3335 (arm_linux_syscall_record): Likewise.
3336 * breakpoint.c (update_watchpoint): Likewise.
3337 (breakpoint_here_p): Likewise.
3338 (bpstat_print): Likewise.
3339 (enable_breakpoint_disp): Likewise.
3340 * c-lang.c (c_op_print_tab): Likewise.
3341 * cli/cli-decode.c (add_info_alias): Likewise.
3342 * d-lang.c (d_op_print_tab): Likewise.
3343 * eval.c (evaluate_subexp_standard): Likewise.
3344 * f-exp.y (dot_ops): Likewise.
3345 (f77_keywords): Likewise.
3346 * f-lang.c (f_op_print_tab): Likewise.
3347 * go-lang.c (go_op_print_tab): Likewise.
3348 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
3349 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
3350 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
3351 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
3352 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
3353 (struct scm_from_stringn_data): Likewise.
3354 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
3355 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
3356 (ia64_linux_remove_watchpoint): Likewise.
3357 (ia64_linux_can_use_hw_breakpoint): Likewise.
3358 * infrun.c (print_stop_event): Likewise.
3359 * jv-lang.c (java_op_print_tab): Likewise.
3360 * linux-nat.c (linux_proc_xfer_partial): Likewise.
3361 * linux-nat.h (struct lwp_info): Likewise.
3362 * linux-thread-db.c (enable_thread_event): Likewise.
3363 * m2-lang.c (m2_op_print_tab): Likewise.
3364 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
3365 (mi_cmd_stack_list_variables): Likewise.
3366 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
3367 * mi/mi-out.c (mi_table_begin): Likewise.
3368 (mi_table_header): Likewise.
3369 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
3370 (mips_linux_insert_watchpoint): Likewise.
3371 (mips_linux_remove_watchpoint): Likewise.
3372 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
3373 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
3374 (mips_linux_watch_type_to_irw): Likewise.
3375 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
3376 (procfs_insert_hw_watchpoint): Likewise.
3377 (procfs_remove_hw_watchpoint): Likewise.
3378 (procfs_hw_watchpoint): Likewise.
3379 (procfs_can_use_hw_breakpoint): Likewise.
3380 (procfs_remove_hw_watchpoint): Likewise.
3381 (procfs_insert_hw_watchpoint): Likewise.
3382 * p-lang.c (pascal_op_print_tab): Likewise.
3383 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
3384 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
3385 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
3386 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
3387 (procfs_insert_watchpoint): Likewise.
3388 (procfs_remove_watchpoint): Likewise.
3389 * psymtab.c (recursively_search_psymtabs): Likewise.
3390 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
3391 (m32r_insert_watchpoint): Likewise.
3392 * remote-mips.c (mips_can_use_watchpoint): Likewise.
3393 (mips_insert_watchpoint): Likewise.
3394 (mips_remove_watchpoint): Likewise.
3395 * remote.c (watchpoint_to_Z_packet): Likewise.
3396 (remote_insert_watchpoint): Likewise.
3397 (remote_remove_watchpoint): Likewise.
3398 (remote_check_watch_resources): Likewise.
3399 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3400 (s390_remove_watchpoint): Likewise.
3401 (s390_can_use_hw_breakpoint): Likewise.
3402 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3403 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
3404 * target.h (struct target_ops): Likewise.
3405 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3406 * ui-out.c (struct ui_out_hdr): Likewise.
3407 (append_header_to_list): Likewise.
3408 (get_next_header): Likewise.
3409 (verify_field): Likewise.
3410 (ui_out_begin): Likewise.
3411 (ui_out_field_int): Likewise.
3412 (ui_out_field_fmt_int): Likewise.
3413 (ui_out_field_skip): Likewise.
3414 (ui_out_field_string): Likewise.
3415 (ui_out_field_fmt): Likewise.
3416 * varobj.c (new_variable): Likewise.
3417 * x86-nat.c (x86_insert_watchpoint): Likewise.
3418 (x86_remove_watchpoint): Likewise.
3419 (x86_can_use_hw_breakpoint): Likewise.
3420 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
3421 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
3422 previously anonymous enumeration type..
3423 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
3424 value.
3425 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
3426 (target_debug_print_enum_bptype): New.
3427 * target-delegates.c: Regenerate.
3428
e1b5381f
SL
34292015-07-30 Sandra Loosemore <sandra@codesourcery.com>
3430
3431 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
3432 already says and disallow non-stack memory writes in the prologue.
3433
9aaf8e3a
SL
34342015-07-30 Sandra Loosemore <sandra@codesourcery.com>
3435
3436 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
3437 reflect how current GCC emits stack overflow checks. Match
3438 both trap and break instructions for backward compatbility.
3439 Disallow other trap and break instructions in the prologue.
3440
69dde7dc
PA
34412015-07-30 Pedro Alves <palves@redhat.com>
3442
3443 PR threads/18600
3444 * linux-nat.c (wait_lwp): Report to the core when thread group
3445 leader exits.
3446
4dd63d48
PA
34472015-07-30 Pedro Alves <palves@redhat.com>
3448 Simon Marchi <simon.marchi@ericsson.com>
3449
3450 PR threads/18600
3451 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
3452 mark the new thread as resumed. Remove STOPPING parameter.
3453 (wait_lwp): Adjust call to linux_handle_extended_wait.
3454 (linux_nat_filter_event): Adjust call to
3455 linux_handle_extended_wait.
3456 (resume_stopped_resumed_lwps): Add debug output.
3457
6b940e6a
PL
34582015-07-30 Pierre Langlois <pierre.langlois@arm.com>
3459
3460 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
3461 isize argument.
3462 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
3463 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
3464 gdbarch_fast_tracepoint_valid_at.
3465 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
3466 * gdbarch.h: Regenerate.
3467 * gdbarch.c: Regenerate.
3468 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
3469 argument. Do not set it.
3470 * remote.c (remote_download_tracepoint): Adjust call to
3471 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
3472 the instruction length.
3473
ec741292
YQ
34742015-07-30 Yao Qi <yao.qi@linaro.org>
3475
3476 * arm-tdep.h (enum gdb_regnum): Move it to ...
3477 * arch/arm.h: ... here. New file.
3478 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
3479
0ea6402e
PL
34802015-07-30 Pierre Langlois <pierre.langlois@arm.com>
3481
3482 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
3483 Change its type to int *.
3484 (decode_br): Rename link argument to is_blr. Change its type to
3485 int *.
3486 (decode_cb): Rename op argument to is_cbnz. Change its type to
3487 int *.
3488 (decode_tb): Rename op argument to is_tbnz. Change its type to
3489 int *. Set is_tbnz to either 1 or 0.
3490 (aarch64_analyze_prologue): Change type of is_link to int. Add
3491 new variables is_cbnz and is_tbnz. Adjust call to
3492 aarch64_decode_cb and aarch64_decode_tb.
3493
aa58a496
SM
34942015-07-29 Simon Marchi <simon.marchi@ericsson.com>
3495
3496 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
3497 parameter.
3498 (mips_linux_new_thread): Likewise.
3499 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
3500
18206ca3
PP
35012015-07-29 Patrick Palka <patrick@parcs.ath.cx>
3502
3503 * top.c: Include "tui/tui.h".
3504 (undo_terminal_modifications_before_exit): New static function.
3505 (quit_force): Use it.
3506
7afa63c6
PP
35072015-07-29 Patrick Palka <patrick@parcs.ath.cx>
3508
3509 * target.c (terminal_state): Initialize to terminal_is_ours.
3510
cc9f16aa
YQ
35112015-07-29 Yao Qi <yao.qi@linaro.org>
3512
3513 PR record/18691
3514 * dcache.c (dcache_read_memory_partial): Call
3515 raw_memory_xfer_partial.
3516 * target.c (raw_memory_xfer_partial): Make it non-static.
3517 * target.h (raw_memory_xfer_partial): Declare.
3518
3ae385af
SM
35192015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3520
3521 * c-valprint.c (c_val_print_array): Consider addressable memory
3522 unit size.
3523 (c_val_print_ptr): Likewise.
3524 (c_val_print_int): Likewise.
3525 * findvar.c (read_frame_register_value): Likewise.
3526 * valarith.c (find_size_for_pointer_math): Likewise.
3527 (value_ptrdiff): Likewise.
3528 (value_subscripted_rvalue): Likewise.
3529 * valops.c (read_value_memory): Likewise (and rename variables).
3530 (value_assign): Likewise.
3531 (value_repeat): Likewise.
3532 (value_array): Likewise.
3533 (value_slice): Likewise.
3534 * valprint.c (generic_val_print_ptr): Likewise.
3535 (generic_val_print_enum): Likewise.
3536 (generic_val_print_bool): Likewise.
3537 (generic_val_print_int): Likewise.
3538 (generic_val_print_char): Likewise.
3539 (generic_val_print_float): Likewise.
3540 (generic_val_print_decfloat): Likewise.
3541 (generic_val_print_complex): Likewise.
3542 (val_print_scalar_formatted): Likewise.
3543 (val_print_array_elements): Likewise.
3544 * value.c (set_value_parent): Likewise.
3545 (value_contents_copy_raw): Likewise.
3546 (set_internalvar_component): Likewise.
3547 (value_primitive_field): Likewise.
3548 (value_fetch_lazy): Likewise.
3549 * value.h (read_value_memory): Update comment.
3550
e512cdbd
SM
35512015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3552
3553 * value.c (get_value_arch): New function.
3554 * value.h (get_value_arch): New declaration.
3555
3723fda8
SM
35562015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3557
3558 * value.c (struct value): Update comments.
3559
2e056931
SM
35602015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3561
3562 * gdbtypes.c (type_length_units): New function.
3563 * gdbtypes.h (type_length_units): New declaration.
3564 (struct type) <length>: Update comment.
3565
0c87c0bf
SM
35662015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3567
3568 * valprint.c (generic_val_print): Factor out complex
3569 printing code to ...
3570 (generic_val_print_complex): ... this new function.
3571
9550ae5e
SM
35722015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3573
3574 * valprint.c (generic_val_print): Factor out decfloat
3575 printing code to ...
3576 (generic_val_print_decfloat): ... this new function.
3577
7784724b
SM
35782015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3579
3580 * valprint.c (generic_val_print): Factor out float
3581 printing code to ...
3582 (generic_val_print_float): ... this new function.
3583
385f5aff
SM
35842015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3585
3586 * valprint.c (generic_val_print): Factor out char
3587 printing code to ...
3588 (generic_val_print_char): ... this new function.
3589
b21b6342
SM
35902015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3591
3592 * valprint.c (generic_val_print): Factor out integer
3593 printing code to ...
3594 (generic_val_print_int): ... this new function.
3595
e5bead4b
SM
35962015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3597
3598 * valprint.c (generic_val_print): Factor out bool
3599 printing code to ...
3600 (generic_val_print_bool): ... this new function.
3601
4a8c372f
SM
36022015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3603
3604 * valprint.c (generic_val_print): Factor out function/method
3605 printing code to ...
3606 (generic_val_print_func): ... this new function.
3607
d93880bd
SM
36082015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3609
3610 * valprint.c (generic_val_print): Factor out flags
3611 printing code to ...
3612 (generic_val_print_flags): ... this new function.
3613
ef0bc0dd
SM
36142015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3615
3616 * valprint.c (generic_val_print): Factor out enum
3617 printing code to ...
3618 (generic_val_print_enum): ... this new function.
3619
fe43fede
SM
36202015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3621
3622 * valprint.c (generic_val_print): Factor out reference
3623 printing code to ...
3624 (generic_val_print_ref): ... this new function.
3625
45000ea2
SM
36262015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3627
3628 * valprint.c (generic_val_print): Factor out memberptr
3629 printing code to ...
3630 (generic_val_print_memberptr): ... this new function.
3631
81eb921a
SM
36322015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3633
3634 * valprint.c (generic_val_print): Factor out pointer
3635 printing code to ...
3636 (generic_val_print_ptr): ... this new function.
3637
557dbe8a
SM
36382015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3639
3640 * valprint.c (generic_val_print): Factor out array
3641 printing code to ...
3642 (generic_val_print_array): ... this new function.
3643
9f436164
SM
36442015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3645
3646 * valprint.c (generic_val_print): Factor out
3647 print_unpacked_pointer code to ...
3648 (print_unpacked_pointer): ... this new function.
3649
077836f7
PP
36502015-07-27 Patrick Palka <patrick@parcs.ath.cx>
3651
3652 * event-top.c (handle_sigterm): Don't inspect
3653 target_can_async_p. Always set the quit flag and always mark
3654 the async signal handler.
3655
3a60804f
YQ
36562015-07-27 Yao Qi <yao.qi@linaro.org>
3657
3658 * Makefile.in (REMOTE_EXAMPLES): Remove it.
3659
c9f35b34
KB
36602015-07-25 Kevin Buettner <kevinb@redhat.com>
3661
3662 * remote.c (read_ptid): Return null_ptid when no thread id
3663 is found.
3664 (remote_current_thread): Add log warning for malformed
3665 qC reply.
3666 (remote_start_remote): Add log warning when current thread
3667 not found.
3668
2b4cab86
PA
36692015-07-24 Pedro Alves <palves@redhat.com>
3670
3671 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
3672 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
3673 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
3674
77598427
PA
36752015-07-24 Pedro Alves <palves@redhat.com>
3676
3677 PR gdb/18717
3678 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
3679 is resumed, and extend the debug log.
3680
fe23c31f
PA
36812015-07-24 Pedro Alves <palves@redhat.com>
3682
3683 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
3684
5826e159
PA
36852015-07-24 Pedro Alves <palves@redhat.com>
3686
3687 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
3688 sys/ptrace.h.
3689 * alpha-linux-nat.c: Likewise.
3690 * amd64-linux-nat.c: Likewise.
3691 * arm-linux-nat.c: Likewise.
3692 * hppa-linux-nat.c: Likewise.
3693 * i386-linux-nat.c: Likewise.
3694 * ia64-linux-nat.c: Likewise.
3695 * linux-fork.c: Likewise.
3696 * linux-nat.c: Likewise.
3697 * m32r-linux-nat.c: Likewise.
3698 * m68klinux-nat.c: Likewise.
3699 * mips-linux-nat.c: Likewise.
3700 * nat/linux-btrace.c: Likewise.
3701 * nat/linux-ptrace.c: Likewise.
3702 * nat/linux-ptrace.h
3703 * nat/mips-linux-watch.c: Likewise.
3704 * nat/x86-linux-dregs.c: Likewise.
3705 * ppc-linux-nat.c: Likewise.
3706 * s390-linux-nat.c: Likewise.
3707 * spu-linux-nat.c: Likewise.
3708 * tilegx-linux-nat.c: Likewise.
3709 * x86-linux-nat.c: Likewise.
3710 * xtensa-linux-nat.c: Likewise.
3711
54019719
PA
37122015-07-24 Pedro Alves <palves@redhat.com>
3713
3714 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
3715 __ptrace_request as first parameter type instead of int.
3716 (PTRACE_TYPE_ARG1): Define.
3717 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
3718 that casts first argument to PTRACE_TYPE_ARG1.
3719 * config.in: Regenerate.
3720 * configure: Regenerate.
3721
e3790375
PA
37222015-07-24 Pedro Alves <palves@redhat.com>
3723
3724 * gdb_ptrace.h: Move ...
3725 * nat/gdb_ptrace.h: ... here.
3726 * inf-ptrace.c: Adjust.
3727
eb7aa561
PA
37282015-07-24 Pedro Alves <palves@redhat.com>
3729
3730 * acinclude.m4: Include ptrace.m4.
3731 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
3732 * ptrace.m4: ... to this new file.
3733
cc12ce38
DE
37342015-07-23 Doug Evans <dje@google.com>
3735
3736 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
3737 (load_cu): Handle dummy CUs.
3738 (dw2_do_instantiate_symtab, process_queuef): Ditto.
3739 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
3740
7b849db4
CS
37412015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
3742
3743 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
3744 documentation to say that it returns a list rather than
3745 a FrozenSet.
3746 (linetable_object_methods): Update the docstring of the
3747 "source_line" entry.
3748
d0d84780
PMR
37492015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
3750
3751 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
3752 type to the recursive call instead of the original (maybe
3753 TYPE_CODE_TYPEDEF) type.
3754
c2fbdc59
YQ
37552015-07-23 Yao Qi <yao.qi@linaro.org>
3756
3757 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
3758 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
3759 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
3760
af1b22f3
YQ
37612015-07-21 Yao Qi <yao.qi@linaro.org>
3762
3763 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
3764 Move it to nat/aarch64-linux-hw-point.c.
3765 (aarch64_linux_child_post_startup_inferior): Update.
3766 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
3767 New function.
3768 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
3769 Declare it.
3770
40e050d2
MM
37712015-07-21 Markus Metzger <markus.t.metzger@intel.com>
3772
3773 * common/btrace-common.c (btrace_data_append): Change case label.
3774
3675a06a
YQ
37752015-07-20 Yao Qi <yao.qi@linaro.org>
3776
3777 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
3778 Re-indent the code.
3779 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
3780 "unsigned long long".
3781
b4e1fd61
KB
37822015-07-18 Kevin Buettner <kevinb@redhat.com>
3783
3784 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
3785 to be set for SEC_ALLOC sections too.
3786
554717a3
YQ
37872015-07-17 Yao Qi <yao.qi@linaro.org>
3788
3789 * Makefile.in (HFILES_NO_SRCDIR): Add
3790 nat/aarch64-linux-hw-point.h.
3791 (aarch64-linux-hw-point.o): New rule.
3792 * nat/aarch64-linux-hw-point.h: New file.
3793 * nat/aarch64-linux-hw-point.c: New file.
3794 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
3795 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
3796 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
3797 (AARCH64_HWP_ALIGNMENT): Likewise.
3798 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
3799 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
3800 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
3801 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
3802 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
3803 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
3804 (struct aarch64_debug_reg_state): Likewise.
3805 (struct arch_lwp_info): Likewise.
3806 (aarch64_linux_set_debug_regs): Likewise.
3807 (aarch64_notify_debug_reg_change): Remove static.
3808 (aarch64_align_watchpoint): Likewise.
3809 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
3810 (aarch64_watchpoint_length): Likewise.
3811 (aarch64_point_encode_ctrl_reg): Likewise
3812 (aarch64_point_is_aligned): Likewise.
3813 (aarch64_dr_state_insert_one_point): Likewise.
3814 (aarch64_dr_state_remove_one_point): Likewise.
3815 (aarch64_handle_breakpoint): Likewise.
3816 (aarch64_handle_aligned_watchpoint): Likewise.
3817 (aarch64_handle_unaligned_watchpoint): Likewise.
3818 (aarch64_handle_watchpoint): Likewise.
3819 * config/aarch64/linux.mh (NAT_FILE): Add
3820 aarch64-linux-hw-point.o.
3821
c67ca4de
YQ
38222015-07-17 Yao Qi <yao.qi@linaro.org>
3823
3824 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
3825 state and don't call aarch64_get_debug_reg_state. All callers
3826 update.
3827 (aarch64_linux_insert_hw_breakpoint): Call
3828 aarch64_get_debug_reg_state earlier.
3829 (aarch64_linux_remove_hw_breakpoint): Likewise.
3830 (aarch64_handle_aligned_watchpoint): Add argument state and
3831 don't call aarch64_get_debug_reg_state. All callers update.
3832 (aarch64_handle_unaligned_watchpoint): Likewise.
3833 (aarch64_handle_watchpoint): Add argument state.
3834 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
3835 earlier.
3836 (aarch64_linux_remove_watchpoint): Likewise.
3837
25abf979
YQ
38382015-07-17 Yao Qi <yao.qi@linaro.org>
3839
3840 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
3841 debug_printf.
3842 (aarch64_handle_unaligned_watchpoint): Likewise.
3843
2ecd81c2
YQ
38442015-07-17 Yao Qi <yao.qi@linaro.org>
3845
3846 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
3847 argument type's type to 'enum target_hw_bp_type'.
3848 (aarch64_dr_state_remove_one_point): Likewise.
3849 (aarch64_handle_breakpoint): Likewise.
3850 (aarch64_linux_insert_hw_breakpoint): Likewise.
3851 (aarch64_linux_remove_hw_breakpoint): Likewise.
3852 (aarch64_handle_aligned_watchpoint): Likewise.
3853
e53b6938
YQ
38542015-07-17 Yao Qi <yao.qi@linaro.org>
3855
3856 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
3857 ptid_get_pid instead of get_thread_id.
3858
6a49a997
YQ
38592015-07-17 Yao Qi <yao.qi@linaro.org>
3860
3861 * remote.c (get_current_thread): Initialise ptid to null_ptid.
3862 (add_current_inferior_and_thread): Don't initialise ptid.
3863
4bcddace
PL
38642015-07-16 Pierre Langlois <pierre.langlois@arm.com>
3865
3866 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
3867 unavailable if invalid.
3868
db1ff28b
JK
38692015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3870
3871 Revert the previous 6 commits:
3872 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3873 Move gdb_regex* to common/
3874 Prepare linux_find_memory_regions_full & co. for move
3875 Move linux_find_memory_regions_full & co.
3876 gdbserver build-id attribute generator
3877 Validate symbol file using build-id
3878
ca5268b6
JK
38792015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3880 Jan Kratochvil <jan.kratochvil@redhat.com>
3881
3882 Validate symbol file using build-id.
3883 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
3884 and 'show validate-build-id'. Add build-id attribute.
3885 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
3886 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
3887 * solib-frv.c (_initialize_frv_solib): Ditto.
3888 * solib-spu.c (set_spu_solib_ops): Ditto.
3889 * solib-svr4.c: Include rsp-low.h.
3890 (NOTE_GNU_BUILD_ID_NAME): New define.
3891 (svr4_validate): New function.
3892 (svr4_copy_library_list): Duplicate field build_id.
3893 (library_list_start_library): Parse 'build-id' attribute.
3894 (svr4_library_attributes): Add 'build-id' attribute.
3895 (_initialize_svr4_solib): Assign validate value.
3896 * solib-target.c (solib.h): Include.
3897 (_initialize_solib_target): Assign validate value.
3898 * solib.c (validate_build_id, show_validate_build_id): New.
3899 (solib_map_sections): Use ops->validate.
3900 (clear_so): Free build_id.
3901 (default_solib_validate): New function.
3902 (_initialize_solib): Add "validate-build-id".
3903 * solib.h (default_solib_validate): New declaration.
3904 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
3905 (target_so_ops): New field 'validate'.
3906
700ca40f
JK
39072015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3908 Jan Kratochvil <jan.kratochvil@redhat.com>
3909
3910 gdbserver build-id attribute generator.
3911 * features/library-list-svr4.dtd (library-list-svr4): New
3912 'build-id' attribute.
3913
9904185c
JK
39142015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3915 Jan Kratochvil <jan.kratochvil@redhat.com>
3916
3917 Move linux_find_memory_regions_full & co.
3918 * linux-tdep.c (nat/linux-maps.h): Include.
3919 (gdb_regex.h): Remove the include.
3920 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
3921 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
3922 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
3923 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
3924 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
3925 and target/target.h.
3926 (struct smaps_vmflags, read_mapping, decode_vmflags)
3927 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
3928 (linux_find_memory_regions_full): Move from linux-tdep.c.
3929 * nat/linux-maps.h (read_mapping): New declaration.
3930 (linux_find_memory_region_ftype, enum filterflags): Moved from
3931 linux-tdep.c.
3932 (linux_find_memory_regions_full): New declaration.
3933 * target.c (target/target-utils.h): Include.
3934 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
3935 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
3936 definitions to target/target-utils.c.
3937 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
3938 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
3939 from target.c.
3940 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
3941 (read_alloc): New declaration.
3942 (read_stralloc_func_ftype): New typedef.
3943 (read_stralloc): New declaration.
3944 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
3945
f7af1fcd
JK
39462015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3947 Jan Kratochvil <jan.kratochvil@redhat.com>
3948
3949 Prepare linux_find_memory_regions_full & co. for move.
3950 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
3951 (linux_find_memory_regions_full): Change signature and prepare
3952 for moving to linux-maps.
3953 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
3954 (linux_find_memory_regions_thunk): New.
3955 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
3956 (linux_find_memory_regions_gdb): New.
3957 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
3958 (linux_make_mappings_corefile_notes): Use
3959 linux_find_memory_regions_gdb.
3960 * target.c (read_alloc_pread_ftype): New typedef.
3961 (target_fileio_read_alloc_1_pread): New function.
3962 (read_alloc): Refactor from target_fileio_read_alloc_1.
3963 (read_stralloc_func_ftype): New typedef.
3964 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
3965 (read_stralloc): Refactored from target_fileio_read_stralloc.
3966 (target_fileio_read_stralloc): New implementation, use read_stralloc.
3967
6e5b4429
JK
39682015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3969
3970 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
3971 common/gdb_regex.h.
3972 (COMMON_OBS): Add gdb_regex.o.
3973 (gdb_regex.o): New.
3974 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
3975 --without-included-regex and USE_INCLUDED_REGEX.
3976 * common/gdb_regex.c: New file from utils.c functions.
3977 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
3978 file wrapping define name.
3979 * configure: Rebuilt.
3980 * configure.ac (gdb_use_included_regex, --without-included-regex)
3981 (USE_INCLUDED_REGEX): Move them to common/common.m4.
3982 * gdb_regex.h: Move it to common/gdb_regex.h.
3983 * utils.c: Remove include gdb_regex.h.
3984 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
3985 (compile_rx_or_error): Move them to common/gdb_regex.c.
3986
ddc98fbf
JK
39872015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3988 Jan Kratochvil <jan.kratochvil@redhat.com>
3989
3990 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3991 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
3992 common/target-utils.h.
3993 (COMMON_OBS): Add target-utils.o.
3994 (linux-maps.o, target-utils.o): New.
3995 * target/target-utils.c: New file.
3996 * target/target-utils.h: New file.
3997 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
3998 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3999 * nat/linux-maps.c: New file.
4000 * nat/linux-maps.h: New file.
4001
e7b01ce0
MM
40022015-07-15 Markus Metzger <markus.t.metzger@intel.com>
4003 Pedro Alves <palves@redhat.com>
4004
4005 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
4006 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
4007 (perf_event_read_bts): Change the type of SIZE and READ.
4008 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
4009 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
4010 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
4011 mmap page.
4012 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
4013 buffer size to UINT_MAX.
4014 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
4015 DATA_TAIL.
4016 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
4017 <last_head>: Change type.
4018 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
4019 * common/btrace-common.c (btrace_data_append): Change the type of
4020 SIZE.
4021 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
4022 check.
4023
f168693b
SM
40242015-07-14 Simon Marchi <simon.marchi@ericsson.com>
4025
4026 * gdbtypes.h (CHECK_TYPEDEF): Remove.
4027 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
4028 with check_typedef.
4029 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
4030 (ada_array_length): Likewise.
4031 (find_parallel_type_by_descriptive_type): Likewise.
4032 (ada_check_typedef): Likewise.
4033 * arm-tdep.c (arm_return_in_memory): Likewise.
4034 * ax-gdb.c (gen_trace_static_fields): Likewise.
4035 (gen_struct_ref_recursive): Likewise.
4036 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
4037 (variable: block COLONCOLON name): Likewise.
4038 (qualified_name: TYPENAME COLONCOLON name): Likewise.
4039 * c-lang.c (classify_type): Likewise.
4040 * c-typeprint.c (c_print_type): Likewise.
4041 (c_print_typedef): Likewise.
4042 (c_type_print_base): Likewise.
4043 * c-valprint.c (c_val_print): Likewise.
4044 * compile/compile-c-types.c (convert_type): Likewise.
4045 * compile/compile-object-load.c (get_out_value_type): Likewise.
4046 * completer.c (add_struct_fields): Likewise.
4047 (expression_completer): Likewise.
4048 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
4049 (cp_lookup_nested_symbol_1): Likewise.
4050 (cp_lookup_nested_symbol): Likewise.
4051 * cp-valprint.c (cp_print_value_fields): Likewise.
4052 (cp_print_static_field): Likewise.
4053 * d-valprint.c (d_val_print): Likewise.
4054 * eval.c (evaluate_subexp_standard): Likewise.
4055 (evaluate_subexp_for_sizeof): Likewise.
4056 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
4057 * f-typeprint.c (f_type_print_base): Likewise.
4058 * f-valprint.c (f_val_print): Likewise.
4059 * gdbtypes.c (get_discrete_bounds): Likewise.
4060 (create_array_type_with_stride): Likewise.
4061 (type_name_no_tag_or_error): Likewise.
4062 (lookup_struct_elt_type): Likewise.
4063 (get_unsigned_type_max): Likewise.
4064 (internal_type_vptr_fieldno): Likewise.
4065 (set_type_vptr_fieldno): Likewise.
4066 (internal_type_vptr_basetype): Likewise.
4067 (set_type_vptr_basetype): Likewise.
4068 (get_vptr_fieldno): Likewise.
4069 (is_integral_type): Likewise.
4070 (is_scalar_type): Likewise.
4071 (is_scalar_type_recursive): Likewise.
4072 (distance_to_ancestor): Likewise.
4073 (is_unique_ancestor_worker): Likewise.
4074 (check_types_equal): Likewise.
4075 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
4076
45280282
IB
40772015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
4078
4079 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
4080 also test for language_d.
4081 (dwarf2_compute_name): Likewise.
4082 (read_func_scope): Likewise.
4083 (read_structure_type): Likewise.
4084 (new_symbol_full): Likewise.
4085 (determine_prefix): Likewise.
4086 (read_import_statement): Use dot as the separator for language_d.
4087 (typename_concat): Likewise, but don't prefix the D main function.
4088
99fe86f7
PB
40892015-07-14 Peter Bergner <bergner@vnet.ibm.com>
4090
4091 * nat/linux-namespaces.c (setns): Rename from this ...
4092 (do_setns): ... to this. Support calling setns if it exists.
4093 (mnsh_handle_setns): Call do_setns.
4094
d5131498
YQ
40952015-07-13 Yao Qi <yao.qi@linaro.org>
4096
4097 * exec.c (exec_file_attach): Add period at the end of error
4098 message.
4099
97605e61
AB
41002015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
4101
4102 * tui/tui-win.c (window_name_completer): New function.
4103 (focus_completer): Call window_name_completer. All old content
4104 moved into window_name_completer.
4105 (winheight_completer): New function.
4106 (_initialize_tui_win): Rename variable. Add completer to
4107 winheight command. Update doc string on winheight.
4108
8d6dbeb4
SL
41092015-07-12 Sandra Loosemore <sandra@codesourcery.com>
4110
4111 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
4112 all nios2 mach variants.
4113
a0e28e54
KB
41142015-07-10 Kevin Buettner <kevinb@redhat.com>
4115
4116 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
4117 of target_read_memory.
4118
c101f28f
AB
41192015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4120
4121 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
4122 string copy.
4123 (parse_scrolling_args): Likewise.
4124
150375dc
AB
41252015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4126
4127 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
4128 names in this function.
4129
6dce28e4
AB
41302015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4131
4132 * tui/tui-data.h (SRC_NAME): Convert to lower case.
4133 (CMD_NAME): Likewise.
4134 (DATA_NAME): Likewise.
4135 (DISASSEM_NAME): Likewise.
4136 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
4137 (tui_set_win_height): Likewise.
4138 (parse_scrolling_args): Likewise.
4139
485668e5
MM
41402015-07-10 Markus Metzger <markus.t.metzger@intel.com>
4141
4142 * record-btrace.c (record_btrace_goto_begin)
4143 (record_btrace_goto_end, record_btrace_goto): Move call to
4144 print_stack_frame ...
4145 (record_btrace_set_replay): ... here. Set stop_pc.
4146 * record-full.c (record_full_goto_entry): Set stop_pc.
4147
58d2eda5
PL
41482015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4149
4150 * NEWS: Mention support for tracepoints on aarch64-linux.
4151
7671bf47
PL
41522015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4153
4154 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
4155 function. Return 1.
4156 (the_low_target): Install it.
4157
7890fb45
PL
41582015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4159
4160 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
4161 * gdb.trace/collection.exp: Likewise.
4162 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
4163 * gdb.trace/mi-trace-unavailable.exp: Likewise.
4164 * gdb.trace/report.exp: Likewise.
4165 * gdb.trace/trace-break.exp: Likewise.
4166 * gdb.trace/unavailable.exp: Likewise.
4167 * gdb.trace/while-dyn.exp: Likewise.
4168
ea873d8e
PL
41692015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4170
4171 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
4172 (aarch64_gen_return_address): New function.
4173 (aarch64_gdbarch_init): Hook it.
4174
02a2a705
PL
41752015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4176
4177 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
4178 swallow NOT_AVAILABLE_ERROR.
4179 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
4180 available_p is not set.
4181 (aarch64_stub_frame_unwind_stop_reason): New function.
4182 (aarch64_stub_unwind): Install it.
4183
7dfa3edc
PL
41842015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4185
4186 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
4187 field.
4188 (aarch64_make_prologue_cache_1): New function, factored out from
4189 aarch64_make_prologue_cache. Do not allocate cache. Set
4190 available_p.
4191 (aarch64_make_prologue_cache): Reimplement wrapping
4192 aarch64_make_prologue_cache_1, and swallowing
4193 NOT_AVAILABLE_ERROR.
4194 (aarch64_prologue_frame_unwind_stop_reason): New function.
4195 Return UNWIND_UNAVAILABLE if available_p is not set.
4196 (aarch64_prologue_unwind): Install it.
4197 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
4198 checks into aarch64_prologue_frame_unwind_stop_reason. Call
4199 frame_id_build_unavailable_stack if available_p is not set.
4200
db634143
PL
42012015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4202
4203 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
4204 fields.
4205 (aarch64_scan_prologue): Set prev_pc.
4206 (aarch64_make_prologue_cache): Set func.
4207 (aarch64_make_stub_cache): Set prev_pc.
4208 (aarch64_prologue_this_id): Remove local variables id, pc and
4209 func. Read prev_pc and func from cache.
4210 (aarch64_stub_this_id): Read prev_pc from cache.
4211
8b61f75d
PL
42122015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4213
4214 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
4215 argument this_cache. Remove unused local variables reg and
4216 unwound_fp. Return early if this_cache is already set. Set
4217 this_cache.
4218 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
4219
7c8edfae
PL
42202015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4221
4222 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
4223 New argument this_cache. Return early if this_cache is already
4224 set. Set this_cache.
4225 (aarch64_prologue_this_id): Update call to
4226 aarch64_make_prologue_cache.
4227 (aarch64_prologue_prev_register): Likewise.
4228 (aarch64_normal_frame_base): Likewise.
4229
938c69a1
SM
42302015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4231
4232 * c-valprint.c (c_val_print): Factor out memberptr printing code
4233 from c_val_print to ...
4234 (c_val_print_memberptr): ... this new function.
4235
49f7fe28
SM
42362015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4237
4238 * c-valprint.c (c_val_print): Factor out int printing code to ...
4239 (c_val_print_int): ... this new function.
4240
9e4f353c
SM
42412015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4242
4243 * c-valprint.c (c_val_print): Factor out struct and union
4244 printing code to ...
4245 (c_val_print_struct): ... this new function ...
4246 (c_val_print_union): ... and this new function.
4247
1c67f032
SM
42482015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4249
4250 * c-valprint.c (c_val_print): Factor out pointer printing code
4251 to ...
4252 (c_val_print_ptr): ... this new function.
4253
0b6ef777
SM
42542015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4255
4256 * c-valprint.c (c_valprint): Factor our array printing code from
4257 c_val_print to ...
4258 (c_val_print_array): ... this new function.
4259
1033c33c
SM
42602015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4261
4262 * c-valprint.c (c_val_print): Factor out pointer printing code
4263 to ...
4264 (print_unpacked_pointer): ... this new function.
4265
f6b93c34
SM
42662015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4267
4268 * c-valprint.c (c_val_print): Remove an assignment to i and move
4269 its declaration.
4270
0f4576e3
YQ
42712015-07-09 Yao Qi <yao.qi@linaro.org>
4272
4273 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
4274 argument ptid. Update comments. Caller update.
4275
37fdfe4c
MM
42762015-07-09 Markus Metzger <markus.t.metzger@intel.com>
4277
4278 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
4279 mnt packets.
4280
80a2b330
MM
42812015-07-09 Markus Metzger <markus.t.metzger@intel.com>
4282
4283 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
4284
4ab31498
SM
42852015-07-08 Simon Marchi <simon.marchi@ericsson.com>
4286
4287 * progspace.c (delete_program_space): Add missing spaces.
4288
7a41607e
SM
42892015-07-08 Simon Marchi <simon.marchi@ericsson.com>
4290
4291 * inferior.c (delete_inferior_1): Rename to ...
4292 (delete_inferior): ..., remove 'silent' parameter, delete
4293 program space when unused and remove call to prune_program_spaces.
4294 Remove the old, unused, delete_inferior.
4295 (delete_inferior_silent): Remove.
4296 (prune_inferiors): Change call from delete_inferior_1 to
4297 delete_inferior and remove 'silent' parameter. Remove call to
4298 prune_program_spaces.
4299 (remove_inferior_command): Idem.
4300 * inferior.h (delete_inferior_1): Rename to...
4301 (delete_inferior): ..., remove 'silent' parameter and remove the
4302 original delete_inferior.
4303 (delete_inferior_silent): Remove.
4304 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
4305 delete_inferior_1 to delete_inferior and remove 'silent'
4306 parameter.
4307 * progspace.c (prune_program_spaces): Remove.
4308 (pspace_empty_p): Rename to...
4309 (program_space_empty_p): ... and make non-static.
4310 (delete_program_space): New.
4311 * progspace.h (prune_program_spaces): Remove declaration.
4312 (program_space_empty_p): New declaration.
4313 (delete_program_space): New declaration.
4314 * monitor.c (monitor_close): Replace call to
4315 delete_thread_silent and delete_inferior_silent with
4316 discard_all_inferiors.
4317
a9bd710f
PP
43182015-07-08 Patrick Palka <patrick@parcs.ath.cx>
4319
4320 * defs.h (deprecated_register_changed_hook): Remove prototype.
4321 * interps.c (clear_iterpreter_hooks): Remove reference to
4322 deprecated_register_changed_hook.
4323 * top.c (deprecated_register_changed_hook): Remove prototype.
4324 * valops.c (value_assign): Remove reference to
4325 deprecated_register_changed_hook.
4326 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
4327 Add comment documenting the function.
4328 (tui_register_changed_observer): Define.
4329 (tui_install_hooks): Remove reference to
4330 deprecated_register_changed_hook. Set
4331 tui_register_changed_observer.
4332 (tui_remove_hooks): Remove reference to
4333 deprecated_register_changed_hook. Unset
4334 tui_register_changed_observer.
4335
08464196
JK
43362015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4337
4338 PR compile/18484
4339 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
4340
bcf5c1d9
RC
43412015-07-08 Robert O'Callahan <robert@ocallahan.org>
4342
4343 PR exp/18617
4344 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
4345
e8643a45
MM
43462015-07-08 Markus Metzger <markus.t.metzger@intel.com>
4347
4348 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
4349
76fb6829
MM
43502015-07-08 Markus Metzger <markus.t.metzger@intel.com>
4351
4352 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
4353 Use safe_strerror() instead of strerror().
4354
82c40d4b
YQ
43552015-07-07 Yao Qi <yao.qi@linaro.org>
4356
4357 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
4358 * features/arm-with-m-fpa-layout.c: Regenerated.
4359 * features/arm-with-m-vfp-d16.xml: Likewise.
4360 * features/arm-with-m-vfp-d16.c: Regenerated.
4361 * features/arm-with-m.xml: Likewise.
4362 * features/arm-with-m.c: Regenerated.
4363 * features/arm-with-neon.xml: Likewise.
4364 * features/arm-with-neon.c: Regenerated.
4365 * features/arm-with-vfpv2.xml: Likewise.
4366 * features/arm-with-vfpv2.c: Regenerated.
4367 * features/arm-with-vfpv3.xml: Likewise.
4368 * features/arm-with-vfpv3.c: Regenerated.
4369
607685ec
YQ
43702015-07-07 Yao Qi <yao.qi@linaro.org>
4371
4372 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
4373 arm-linux-nat.c.
4374 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
4375 elf/external.h.
4376 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
4377 if target is 32-bit.
4378 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
4379 if target is 32-bit.
4380 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
4381 if target is 32-bit.
4382 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
4383 if target is 32-bit.
4384 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
4385 (aarch64_linux_read_description): Return the right target
4386 description.
4387 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
4388 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
4389 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
4390 arm-linux-tdep.o.
4391
f1b67888
YQ
43922015-07-07 Yao Qi <yao.qi@linaro.org>
4393
4394 * aarch32-linux-nat.c: New file.
4395 * aarch32-linux-nat.h: New file.
4396 * arm-linux-nat.c: Include aarch32-linux-nat.h.
4397 (fetch_regs): Move code to aarch32-linux-nat.c. Call
4398 aarch32_gp_regcache_supply.
4399 (store_regs): Move code to aarch32-linux-nat.c. Call
4400 aarch32_gp_regcache_collect.
4401 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
4402 aarch32_vfp_regcache_supply.
4403 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
4404 aarch32_vfp_regcache_collect.
4405 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
4406
179bfe82
YQ
44072015-07-07 Yao Qi <yao.qi@linaro.org>
4408
4409 * arm-linux-nat.c (store_fpregister): Remove.
4410 (store_register): Likewise.
4411 (fetch_fpregister): Likewise.
4412 (fetch_register): Likewise.
4413 (arm_linux_store_inferior_registers): Call store_regs and
4414 store_fpregs instead.
4415 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
4416 fetch_regs instead.
4417
6008fc5f
AB
44182015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4419
4420 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
4421 and focus commands.
4422
7c79d316
JB
44232015-07-06 Joel Brobecker <brobecker@adacore.com>
4424
4425 * NEWS: Create a new section for the next release branch.
4426 Rename the section of the current branch, now that it has
4427 been cut.
4428
f2232bea
JB
44292015-07-06 Joel Brobecker <brobecker@adacore.com>
4430
4431 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
4432 * version.in: Bump version to 7.10.50.DATE-cvs.
4433
66c4b3e8
LM
44342015-07-06 Luis Machado <lgustavo@codesourcery.com>
4435
4436 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
4437 breakpoints in a special way.
4438 (remove_breakpoint): Likewise.
4439 (mark_breakpoints_out): Likewise.
4440
bcd8537c
AB
44412015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4442
4443 * doc/gdb.texinfo (TUI): Add comma after @xref.
4444
10e9aaa3
AB
44452015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4446
4447 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
4448 instead of casting the structure type.
4449
8a13d42d
SM
44502015-07-06 Simon Marchi <simon.marchi@ericsson.com>
4451
4452 * valops.c (search_struct_field): Remove OFFSET parameter.
4453 (value_cast_structs): Adjust calls to search_struct_field.
4454 (value_struct_elt): Same.
4455 (find_overload_match): Same.
4456
a844296a
SM
44572015-07-06 Simon Marchi <simon.marchi@ericsson.com>
4458
4459 * value.c (value_fetch_lazy): Update comment, change return
4460 value to void.
4461 * value.h (value_fetch_lazy): Change return value to void.
4462
f41cbf58
AB
44632015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4464
4465 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
4466 (tui_win_name): Make parameter and result const.
4467 * tui/tui-data.h (tui_win_name): Make parameter and result const.
4468
118ca224
PP
44692015-07-06 Patrick Palka <patrick@parcs.ath.cx>
4470
4471 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
4472 use printf_unfiltered.
4473 (set_mpx_cmd): Add missing trailing space to command string
4474 literal.
4475 (_initialize_i386_tdep): Give the "mpx" prefix command its
4476 correct name.
4477
1b485e67
KB
44782015-07-02 Kevin Buettner <kevinb@redhat.com>
4479
4480 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
4481 (enum rx_frame_type): New.
4482 (struct rx_prologue): Add new field `frame_type'.
4483 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
4484 parameter in the prologue struct. Add code for recording
4485 locations of PC and PSW for fast interrupt and exception frames.
4486 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
4487 (rx_analyze_frame_prologue): Add `frame_type' parameter.
4488 (rx_frame_type): New function.
4489 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
4490 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
4491 `this_cache'.
4492 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 4493 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
4494 RX_FRAME_TYPE_FAST_INTERRUPT.
4495 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
4496 (rx_frame_sniffer, rx_exception_sniffer): New functions.
4497 (rx_frame_unwind): Use rx_frame_sniffer instead of
4498 default_frame_sniffer.
4499 (rx_frame_unwind): New unwinder.
4500 (rx_gdbarch_init): Register new unwinder.
4501
0561fea4
KB
45022015-07-02 Kevin Buettner <kevinb@redhat.com>
4503
4504 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
4505 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
4506 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
4507 and RX_FPSW_REGNUM.
4508 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
4509
decf8d9a
JK
45102015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4511
4512 Fix GCC false warning.
4513 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
4514
2fd0f80d
YQ
45152015-07-02 Yao Qi <yao.qi@linaro.org>
4516
4517 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
4518 typo in the debugging message.
4519
b0627500
MM
45202015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4521
4522 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
4523 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
4524 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
4525 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
4526 (btrace_maint_clear): New.
4527 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
4528 (pt_print_packet, btrace_maint_decode_pt)
4529 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
4530 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
4531 (maint_btrace_packet_history_cmd)
4532 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
4533 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
4534 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
4535 (maint_info_btrace_cmd, _initialize_btrace): New.
4536 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
4537 (btrace_maint_packet_history, btrace_maint_info): New.
4538 (btrace_thread_info) <maint>: New.
4539 * NEWS: Announce it.
4540
9be54cae
MM
45412015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4542
4543 * btrace.c (btrace_fetch): Append the new trace data.
4544 (btrace_clear): Clear the stored trace data.
4545 * btrace.h (btrace_thread_info) <data>: New.
4546 * common/btrace-common.h (btrace_data_clear)
4547 (btrace_data_append): New.
4548 * common/btrace-common.c (btrace_data_clear)
4549 (btrace_data_append): New.
4550
010a18a1
MM
45512015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4552
4553 * nat/linux-btrace.c (linux_enable_bts): Check for
4554 PERF_ATTR_SIZE_VER5.
4555 Check for data_offset and data_size fields. Use them.
4556
b20a6524
MM
45572015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4558
4559 * NEWS: Announce new commands "record btrace pt" and "record pt".
4560 Announce new options "set|show record btrace pt buffer-size".
4561 * btrace.c: Include "rsp-low.h".
4562 Include "inttypes.h".
4563 (btrace_add_pc): Add forward declaration.
4564 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
4565 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
4566 (btrace_compute_ftrace_pt): New.
4567 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
4568 (check_xml_btrace_version): Update version check.
4569 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
4570 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
4571 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
4572 (btrace_pt_children): New.
4573 (btrace_children): Add support for "pt".
4574 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
4575 (btrace_conf_children): Add support for "pt".
4576 * btrace.h: Include "intel-pt.h".
4577 (btrace_pt_error): New.
4578 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
4579 (btrace_data_empty): Support BTRACE_FORMAT_PT.
4580 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
4581 (struct btrace_config_pt): New.
4582 (struct btrace_config)<pt>: New.
4583 (struct btrace_data_pt_config, struct btrace_data_pt): New.
4584 (struct btrace_data)<pt>: New.
4585 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
4586 (pt): New.
4587 * features/btrace.dtd (btrace)<pt>: New.
4588 (pt, pt-config, cpu): New.
4589 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
4590 (perf_event_pt_event_type, kernel_supports_pt)
4591 (linux_supports_pt): New.
4592 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
4593 (linux_enable_bts): Free tinfo on error.
4594 (linux_enable_pt): New.
4595 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
4596 (linux_disable_pt): New.
4597 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
4598 (linux_fill_btrace_pt_config, linux_read_pt): New.
4599 (linux_read_btrace): Support BTRACE_FORMAT_PT.
4600 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
4601 (struct btrace_target_info)<pt>: New.
4602 * record-btrace.c (set_record_btrace_pt_cmdlist)
4603 (show_record_btrace_pt_cmdlist): New.
4604 (record_btrace_print_pt_conf): New.
4605 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
4606 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
4607 (cmd_record_btrace_pt_start): New.
4608 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
4609 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
4610 (_initialize_record_btrace): Add new commands.
4611 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
4612 (remote_protocol_features): Add "Qbtrace:pt".
4613 Add "Qbtrace-conf:pt:size".
4614 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
4615 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
4616 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
4617 (_initialize_remote): Add new commands.
4618
58bfce93
MM
46192015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4620
4621 * configure.ac: check for libipt
4622 * configure: Regenerate.
4623 * config.in: Regenerate.
4624 * Makefile.in (LIBIPT): New.
4625 (CLIBS): Add $LIBIPT.
4626 * NEWS: document new configure options
4627
b0fd6b30
JK
46282015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4629
4630 * compile/compile-object-load.c (compile_object_load): Replace debug
4631 message "lookup undefined ELF symbol" by 3 more specific messages.
4632
e6280369
KB
46332015-07-01 Kevin Buettner <kevinb@redhat.com>
4634
4635 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
4636 (rl78_register_type): Add case for RL78_PSW_REGNUM.
4637 (rl78_gdbarch_init): Initialize rl78_psw_type.
4638
bbcbf914
PP
46392015-07-01 Patrick Palka <patrick@parcs.ath.cx>
4640
4641 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
4642 Update commentary. Always refresh the registers when frame
4643 information has changed.
4644 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
4645 Change return type to int. Return 1 if frame information has
4646 changed, 0 otherwise.
4647 (tui_before_prompt): Update commentary.
4648 * tui/tui-stack.h (tui_show_frame_info): Change return type to
4649 int.
4650
0986c744
PP
46512015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4652
4653 PR tui/13378
4654 * frame.c (select_frame): Remove reference to
4655 deprecated_selected_frame_level_changed_hook.
4656 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
4657 declaration.
4658 * stack.c (deprecated_selected_frame_level_changed_hook):
4659 Likewise.
4660 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
4661 Rename to ...
4662 (tui_refresh_frame_and_register_information): ... this. Bail
4663 out if there is no stack. Don't update register information
4664 unless registers_too_p is true.
4665 (tui_print_frame_info_listing_hook): Rename to ...
4666 (tui_dummy_print_frame_info_listing_hook): ... this.
4667 (tui_before_prompt): New function.
4668 (tui_normal_stop): New function.
4669 (tui_before_prompt_observer): New observer.
4670 (tui_normal_stop_observer): New observer.
4671 (tui_install_hooks): Set
4672 deprecated_print_frame_info_listing_hook to
4673 tui_dummy_print_frame_info_listing_hook. Register
4674 tui_before_prompt_observer to call tui_before_prompt and
4675 tui_normal_stop_observer to call tui_normal_stop. Remove
4676 reference to deprecated_selected_frame_level_changed_hook.
4677 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
4678 and tui_normal_stop_observer. Remove reference to
4679 deprecated_selected_frame_level_changed_hook.
4680
b5fca6d7
PP
46812015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4682
4683 PR tui/13378
4684 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
4685 return an int instead of void. Return whether the locator
4686 window has changed.
4687 (tui_show_frame_info): If the locator info has not changed, then
4688 bail out early to avoid refreshing the windows.
4689
c45613e3
PP
46902015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4691
4692 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
4693 LOCATOR_WIN to tui_alloc_content.
4694
7b9be803
YQ
46952015-06-30 Yao Qi <yao.qi@linaro.org>
4696
4697 PR tdep/18605
4698 * arm-tdep.c (arm_get_next_pc_raw): Break for media
4699 instructions.
4700
fd6e021d
KB
47012015-06-29 Kevin Buettner <kevinb@redhat.com>
4702
78ab7e9d
KB
4703 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
4704 (rx_dwarf_reg_to_regnum): New function.
4705 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
4706 unwinding.
fd6e021d 4707
28bf096c
PA
47082015-06-29 Pedro Alves <palves@redhat.com>
4709
4710 PR threads/18127
4711 * infcall.c (run_inferior_call): On infcall success, if the thread
4712 was marked stopped before, reset it back to stopped.
4713 * infrun.c (resume): Don't suppress the set_running calls when
4714 doing an infcall.
4715 (normal_stop): Only discard the finish_thread_state cleanup if the
4716 infcall succeeded.
4717
2880b51c 47182015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
4719
4720 * MAINTAINERS (Write After Approval): Update my email address.
4721
ee93cd5e
KS
47222015-06-26 Keith Seitz <keiths@redhat.com>
4723 Doug Evans <dje@google.com>
4724
4725 PR 16253
4726 * block.c (block_lookup_symbol): For non-function blocks,
4727 continue to search for a symbol with an exact domain match
4728 Otherwise, return any previously found "best domain" symbol.
4729 (block_lookup_symbol_primary): Likewise.
4730
fc637f04
PP
47312015-06-26 Patrick Palka <patrick@parcs.ath.cx>
4732
4733 * NEWS: Mention the new option "history remove-duplicates".
4734 * top.c (history_remove_duplicates): New static variable.
4735 (show_history_remove_duplicates): New static function.
4736 (gdb_add_history): Conditionally remove duplicate history
4737 entries.
4738 (init_main): Add "history remove-duplicates" option.
4739
2e52ae68
PP
47402015-06-26 Patrick Palka <patrick@parcs.ath.cx>
4741
4742 * tui/tui-win.c (focus_completer): New static function.
4743 (_initialize_tui_win): Set the completion function of the
4744 "focus" command to focus_completer.
4745
6e22494e
JK
47462015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4747
4748 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
4749 and language_asm..
4750 * symtab.c (find_function_start_sal): Likewise.
4751
f8773be1
GB
47522015-06-25 Gary Benson <gbenson@redhat.com>
4753
4754 * solib.c (solib_find_1): Set local variable sysroot to NULL if
4755 it is the empty string after trailing slashes have been stripped.
4756
a3be80c3
GB
47572015-06-25 Gary Benson <gbenson@redhat.com>
4758
4759 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
4760 * infrun.c (follow_exec): Likewise.
4761 * remote.c (remote_filesystem_is_local): Likewise.
4762 * solib.c (solib_find_1): Likewise.
4763
32fad71f
KS
47642015-06-24 Keith Seitz <keiths@redhat.com>
4765
4766 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
4767 return value from lrealpath.
4768
87d1b309
MF
47692015-06-24 Mike Frysinger <vapier@gentoo.org>
4770
4771 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
4772
23bf70af
MF
47732015-06-24 Mike Frysinger <vapier@gentoo.org>
4774
4775 * remote-sim.c: Include gdb_bfd.h.
4776 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
4777 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
4778
5cd867b4
YQ
47792015-06-24 Yao Qi <yao.qi@linaro.org>
4780
4781 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
4782 set_gdbarch_get_siginfo_type.
4783 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
4784 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
4785 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4786 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
4787 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
4788 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4789 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
4790 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
4791 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
4792 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
4793
dc06243f
GB
47942015-06-24 Gary Benson <gbenson@redhat.com>
4795
4796 * common/buffer.c (stdint.h): Do not include.
4797 * common/print-utils.c (stdint.h): Likewise.
4798 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
4799 * compile/compile-c-types.c (gdb_assert.h): Likewise.
4800 * ft32-tdep.c (gdb_assert.h): Likewise.
4801 * guile/scm-utils.c (stdint.h): Likewise.
4802 * i386-linux-tdep.c (stdint.h): Likewise.
4803 * i386-tdep.c (stdint.h): Likewise.
4804 * nat/linux-btrace.c (stdint.h): Likewise.
4805 * nat/linux-btrace.h (stdint.h): Likewise.
4806 * nat/linux-ptrace.c (stdint.h): Likewise.
4807 * nat/mips-linux-watch.h (stdint.h): Likewise.
4808 * ppc-linux-nat.c (stdint.h): Likewise.
4809 * python/python-internal.h (stdint.h): Likewise.
4810 * stub-termcap.c (stdlib.h): Likewise.
4811 * target/target.h (stdint.h): Likewise.
4812 * xtensa-linux-nat.c (stdint.h): Likewise.
4813
0fc26caf
PP
48142015-06-23 Patrick Palka <patrick@parcs.ath.cx>
4815
4816 * top.c (init_history): Look at errno after calling strtol to
4817 properly map large GDBHISTSIZE values to infinity.
4818
a38fe4fe
DE
48192015-06-23 Doug Evans <dje@google.com>
4820
4821 * inferior.h (struct inferior_suspend_state): Delete, unused.
4822 All references deleted.
4823
7564fe45
MF
48242015-06-23 Mike Frysinger <vapier@gentoo.org>
4825
4826 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
4827 (microblaze_push_dummy_call): Likewise.
4828 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
4829 and set_gdbarch_push_dummy_call.
4830
0bdb2f78
YQ
48312015-06-23 Yao Qi <yao.qi@linaro.org>
4832
4833 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4834 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
4835 (amd64_linux_store_inferior_registers): Likewise.
4836 * arm-linux-nat.c (fetch_fpregister): Likewise.
4837 (fetch_fpregs, store_fpregister): Likewise.
4838 (store_fpregister, store_fpregs): Likewise.
4839 (fetch_register, fetch_regs): Likewise.
4840 (store_register, store_regs): Likewise.
4841 (fetch_vfp_regs, store_vfp_regs): Likewise.
4842 (arm_linux_read_description): Check have_ptrace_getregset is
4843 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
4844 or TRIBOOL_FALSE.
4845 * i386-linux-nat.c (fetch_xstateregs): Check
4846 have_ptrace_getregset is not TRIBOOL_TRUE.
4847 (store_xstateregs): Likewise.
4848 * linux-nat.c (have_ptrace_getregset): Change its type to
4849 enum tribool.
4850 * linux-nat.h (tribool): New enum.
4851 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
4852 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
4853
18a94d75
DE
48542015-06-19 Doug Evans <dje@google.com>
4855
4856 * NEWS: Mention Sun's version of stabs is no longer supported.
4857 * elfread.c (free_elfinfo): Delete. All uses updated.
4858 (elfstab_offset_sections): Delete. All uses updated.
4859 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
4860 * psympriv.h (partial_symtab) <section_offsets>: Delete.
4861 All uses updated.
4862 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
4863 All callers updated.
4864
124e13d9
SM
48652015-06-18 Simon Marchi <simon.marchi@ericsson.com>
4866
4867 * common/rsp-low.c (needs_escaping): New.
4868 (remote_escape_output): Add unit_size parameter. Refactor to
4869 support multi-byte addressable units. Rename parameters.
4870 * common/rsp-low.h (remote_escape_output): Add unit_size
4871 parameter and rename others. Update doc.
4872 * remote.c (align_for_efficient_write): New.
4873 (remote_write_bytes_aux): Add unit_size parameter and use it.
4874 Rename some variables. Update doc.
4875 (remote_xfer_partial): Get unit size and use it.
4876 (remote_read_bytes_1): Add unit_size parameter and use it.
4877 Rename some variables. Update doc.
4878 (remote_write_bytes): Same.
4879 (remote_xfer_live_readonly_partial): Same.
4880 (remote_read_bytes): Same.
4881 (remote_flash_write): Update call to remote_write_bytes_aux.
4882 (remote_write_qxfer): Update call to remote_escape_output.
4883 (remote_search_memory): Same.
4884 (remote_hostio_pwrite): Same.
4885
6ae88661
LM
48862015-06-17 Luis Machado <lgustavo@codesourcery.com>
4887
4888 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
4889 locations as inserted.
4890 Update and expand comment about permanent locations.
4891 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
4892 Move comment to add_location_to_breakpoint.
4893 (update_global_location_list): Don't error out if a permanent
4894 breakpoint is not marked inserted.
4895 Don't error out if a non-permanent breakpoint location is inserted on
4896 top of a permanent breakpoint.
4897
da4616f6
LM
48982015-06-17 Luis Machado <lgustavo@codesourcery.com>
4899
4900 * breakpoint.c (make_breakpoint_permanent): Remove unused
4901 function.
4902 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
4903
bc460514
PP
49042015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4905
4906 PR gdb/16999
4907 * NEWS: Mention new GDBHISTSIZE behavior.
4908 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
4909 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
4910
b58c513b
PP
49112015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4912
4913 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
4914 * top.c (init_history): Read from GDBHISTSIZE instead of
4915 HISTSIZE.
4916 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
4917
2093d2d3
PP
49182015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4919
4920 * top.c (gdb_safe_append_history): Do not call
4921 history_truncate_file if the history is not stifled.
4922
fc248485
AA
49232015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4924
4925 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
4926 * syscalls/s390x-linux.xml: Likewise.
4927
4da680ad
ME
49282015-06-16 Michael Eager <eager@eagercon.com>
4929
4930 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
4931
0a75489f
PP
49322015-06-16 Patrick Palka <patrick@parcs.ath.cx>
4933
4934 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
4935 target_terminal_ours_for_output() before calling
4936 tui_show_frame_info(), and restore the original terminal
4937 settings afterwards.
4938
95855ca8
MS
49392015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
4940
4941 * arm-linux-nat.c: Include nat/linux-ptrace.h.
4942
cfc32360
SM
49432015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4944
4945 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
4946 memory unit size.
4947 (mi_cmd_data_write_memory_bytes): Same.
4948
cb6f16cf
SM
49492015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4950
4951 * corefile.c (write_memory): Update doc.
4952 * gdbcore.h (write_memory): Same.
4953
31b7833d
JK
49542015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4955
4956 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
4957 (dump_mapping_p): Use it for parameter filterflags.
4958 (linux_find_memory_regions_full): Use it for variable filterflags.
4959
909c2cda
JK
49602015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4961 Jan Kratochvil <jan.kratochvil@redhat.com>
4962
4963 Merge multiple hex conversions.
4964 * monitor.c: Include rsp-low.h.
4965 (fromhex): Remove definition.
4966
03aef70f
JK
49672015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4968 Jan Kratochvil <jan.kratochvil@redhat.com>
4969
4970 Move utility functions to common/.
4971 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
4972 Move defs to common/common-utils.c.
4973 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
4974 (skip_to_space_const): Move decls to common/common-utils.h.
4975 * common/common-defs.h: Move include of common-types.h before
4976 common-utils.h.
4977 * common/common-utils.c: Include host-defs.h and ctype.h.
4978 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
4979 from utils.c.
4980 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
4981 cli/cli-utils.c.
4982 * common/common-utils.h (strtoulst): Move decl from utils.h.
4983 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
4984 Move from cli/cli-utils.h.
4985 * common/host-defs.h: Include limits.h.
4986 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
4987 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
4988 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
4989 common/common-utils.h.
4990 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
4991 (strtoulst): Move to common/common-utils.c.
4992 * utils.h (strtoulst): Moved decl to common/common-utils.h.
4993
d1168cc1
YQ
49942015-06-15 Yao Qi <yao.qi@linaro.org>
4995
4996 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
4997
c74f7d1c
JT
49982015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
4999
5000 * build-id.c: Don't include elf-bfd.h.
5001 (build_id_bfd_get): Use bfd_build_id.
5002 (build_id_verify): Ditto.
5003 * build-id.h: Ditto.
5004 (find_separate_debug_file_by_buildid): Ditto.
5005 * python/py-objfile.c: Don't include elf-bfd.h.
5006 (objfpy_get_build_id) Use bfd_build_id.
5007 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
5008 * coffread.c: Include build-id.h.
5009 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
5010
f20c58f5
JT
50112015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
5012
5013 * windows-nat.c (do_windows_fetch_inferior_registers)
5014 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
5015 conditional with __CYGWIN__.
5016
51f0e40d
AB
50172015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
5018
5019 * completer.c: Add arch-utils.h include.
5020 (enum reg_completer_targets): New enum.
5021 (reg_or_group_completer_1): New function containing old
5022 reg_or_group_completer, add and use new parameter to control what
5023 is completed on. Use get_current_arch rather than architecture of
5024 currently selected frame.
5025 (reg_or_group_completer): Call new reg_or_group_completer_1.
5026 (reggroup_completer): Call new reg_or_group_completer_1.
5027 * completer.h (reggroup_completer): Add declaration.
5028 * tui/tui-regs.c: Add 'completer.h' include.
5029 (tui_reg_next_command): Renamed to...
5030 (tui_reg_next): ...this. Adjust parameters and return rather than
5031 display new group.
5032 (tui_reg_prev_command): Renamed to...
5033 (tui_reg_prev): ...this. Adjust parameters and return rather than
5034 display new group.
5035 (tui_reg_float_command): Delete.
5036 (tui_reg_general_command): Delete.
5037 (tui_reg_system_command): Delete.
5038 (tui_reg_command): Rewrite to perform switching of register group.
5039 Add header comment.
5040 (tuireglist): Remove.
5041 (tui_reggroup_completer): New function.
5042 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
5043 creation of 'tui reg' command.
5044 * NEWS: Add comment about 'tui reg' changes.
5045
d309493c
SM
50462015-06-12 Simon Marchi <simon.marchi@ericsson.com>
5047
5048 * target.c (target_read): Consider addressable unit size when
5049 reading from a memory object.
5050 (read_memory_robust): Same.
5051 (read_whatever_is_readable): Same.
5052 (target_write_with_progress): Consider addressable unit size
5053 when writing to a memory object.
5054 * target.h (target_read): Update documentation.
5055 (target_write): Add documentation.
5056
3374165f
SM
50572015-06-12 Simon Marchi <simon.marchi@ericsson.com>
5058
5059 * arch-utils.h (default_addressable_memory_unit_size): New.
5060 * arch-utils.c (default_addressable_memory_unit_size): New.
5061 * gdbarch.sh (addressable_memory_unit_size): New.
5062 * gdbarch.h: Re-generate.
5063 * gdbarch.c: Re-generate.
5064
279a6fed
SM
50652015-06-12 Simon Marchi <simon.marchi@ericsson.com>
5066
5067 * target.c (target_read): Rename variables and use
5068 TARGET_XFER_E_IO.
5069 (target_read_with_progress): Same.
5070 (read_memory_robust): Constify parameters and rename
5071 variables.
5072 (read_whatever_is_readable): Constify parameters,
5073 rename variables, adjust formatting.
5074 * target.h (read_memory_robust): Constify parameters.
5075
1e5338b6 50762015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
5077
5078 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
5079 synthetic (non-AltiVec) vector types.
5080 (ppc64_sysv_abi_return_value): Likewise.
5081
98aa42ee
AT
50822015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
5083
5084 PR breakpoints/16465
5085 * breakpoint.c (create_breakpoint): Save extra_string for
5086 pending breakpoints.
5087
966f0aef
WT
50882015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
5089
5090 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
5091 and bt_mask to CORE_ADDR.
5092
6449ed0d
GB
50932015-06-11 Gary Benson <gbenson@redhat.com>
5094
5095 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
5096 (mnsh_recv_message): Likewise.
5097
34f8ac9f
WT
50982015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
5099
5100 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
5101 long long int and plongest instead of %ll.
5102
198c808c
GB
51032015-06-11 Gary Benson <gbenson@redhat.com>
5104
5105 * nat/linux-namespaces.c (gdb_wait.h): New include.
5106 (sys/wait.h): Do not include.
5107
e815d2d2
SM
51082015-06-10 Simon Marchi <simon.marchi@ericsson.com>
5109
5110 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
5111 end_sequence is true.
5112
8847cac2
JK
51132015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5114
5115 Code cleanup.
5116 * solib-target.c (library_list_start_list): Use explicit NULL
5117 comparison.
5118
24c05f46
JK
51192015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5120
5121 * solib-target.c (library_list_start_list): Do not dereference
5122 variable version in its initialization. Make the VERSION check handle
5123 NULL.
5124 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
5125
51aad7cc
GB
51262015-06-10 Gary Benson <gbenson@redhat.com>
5127
5128 * NEWS: Announce support for direct access of executable and
5129 shared library files when attaching to inferiors in containers
5130 on GNU/Linux systems.
5131
15a201c8
GB
51322015-06-10 Gary Benson <gbenson@redhat.com>
5133
5134 * remote.c (struct remote_state) <fs_pid>: New field.
5135 (new_remote_state): Initialize the above.
5136 (PACKET_vFile_setfs): New enum value.
5137 (remote_hostio_set_filesystem): New function.
5138 (remote_hostio_open): Call the above.
5139 (remote_hostio_unlink): Likewise.
5140 (remote_hostio_readlink): Likewise.
5141 (_initialize_remote): Register new "set/show remote
5142 hostio-setfs-packet" command.
5143 * NEWS: Announce new vFile:setfs packet.
5144
7a6a1731
GB
51452015-06-10 Gary Benson <gbenson@redhat.com>
5146
5147 * linux-nat.c (nat/linux-namespaces.h): New include.
5148 (fileio.h): Likewise.
5149 (linux_nat_filesystem_is_local): New function.
5150 (linux_nat_fileio_pid_of): Likewise.
5151 (linux_nat_fileio_open): Likewise.
5152 (linux_nat_fileio_readlink): Likewise.
5153 (linux_nat_fileio_unlink): Likewise.
5154 (linux_nat_add_target): Initialize to_filesystem_is_local,
5155 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
5156 (_initialize_linux_nat): New "set/show debug linux-namespaces"
5157 commands.
5158 * NEWS: Mention new "set/show debug linux-namespaces" commands.
5159
07c138c8
GB
51602015-06-10 Gary Benson <gbenson@redhat.com>
5161
5162 * target.h (struct inferior): New forward declaration.
5163 (struct target_ops) <to_filesystem_is_local>: Update comment.
5164 (struct target_ops) <to_fileio_open>: New argument inf.
5165 Update comment. All implementations updated.
5166 (struct target_ops) <to_fileio_unlink>: Likewise.
5167 (struct target_ops) <to_fileio_readlink>: Likewise.
5168 (target_filesystem_is_local): Update comment.
5169 (target_fileio_open): New argument inf. Update comment.
5170 (target_fileio_unlink): Likewise.
5171 (target_fileio_readlink): Likewise.
5172 (target_fileio_read_alloc): Likewise.
5173 (target_fileio_read_stralloc): Likewise.
5174 * target.c (target_fileio_open): New argument inf.
5175 Pass inf to implementation. Update debug printing.
5176 (target_fileio_unlink): Likewise.
5177 (target_fileio_readlink): Likewise.
5178 (target_fileio_read_alloc_1): New argument inf. Pass inf
5179 to target_fileio_open.
5180 (target_fileio_read_alloc): New argument inf. Pass inf to
5181 target_fileio_read_alloc_1.
5182 (target_fileio_read_stralloc): Likewise.
5183 * gdb_bfd.c (inferior.h): New include.
5184 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
5185 argument with new argument "inferior". Pass inferior to
5186 target_fileio_open.
5187 (gdb_bfd_open): Supply inferior argument to
5188 gdb_bfd_iovec_fileio_open.
5189 * linux-tdep.c (linux_info_proc): Supply inf argument to
5190 relevant target_fileio calls.
5191 (linux_find_memory_regions_full): Likewise.
5192 (linux_fill_prpsinfo): Likewise.
5193 * remote.c (remote_filesystem_is_local): Supply inf
5194 argument to remote_hostio_open.
5195 (remote_file_put): Likewise.
5196 (remote_file_get): Likewise.
5197 (remote_file_delete): Supply inf argument to
5198 remote_hostio_unlink.
5199
12e2a5fd
GB
52002015-06-10 Gary Benson <gbenson@redhat.com>
5201
5202 * inf-child.c (inf_child_fileio_open): Replace comment.
5203 (inf_child_fileio_pwrite): Likewise.
5204 (inf_child_fileio_pread): Likewise.
5205 (inf_child_fileio_fstat): Insert blank line before comment.
5206 (inf_child_fileio_close): Replace comment.
5207 (inf_child_fileio_unlink): Likewise.
5208 (inf_child_fileio_readlink): Likewise.
5209 * remote.c (remote_hostio_open): Likewise.
5210 (remote_hostio_pread): Likewise.
5211 (remote_hostio_pwrite): Likewise.
5212 (remote_hostio_close): Likewise.
5213 (remote_hostio_unlink): Likewise.
5214 (remote_hostio_readlink): Likewise.
5215 (remote_hostio_fstat): Likewise.
5216 (remote_filesystem_is_local): Likewise.
5217 * target.c (target_fileio_open): Likewise.
5218 (target_fileio_pwrite): Likewise.
5219 (target_fileio_pread): Likewise.
5220 (target_fileio_fstat): Insert blank line before comment.
5221 (target_fileio_close): Replace comment.
5222 (target_fileio_unlink): Likewise.
5223 (target_fileio_readlink): Likewise.
5224 (target_fileio_read_alloc): Likewise.
5225 (target_fileio_read_stralloc): Likewise.
5226
9bc3a976
GB
52272015-06-10 Gary Benson <gbenson@redhat.com>
5228
5229 * linux-thread-db.c (nat/linux-namespaces.h): New include.
5230 (check_pid_namespace_match): Use linux_ns_same rather than
5231 linux_proc_pid_get_ns to spot PID namespace mismatches.
5232 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
5233 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
5234
4b8b5e72
GB
52352015-06-10 Gary Benson <gbenson@redhat.com>
5236
5237 * configure.ac (AC_CHECK_FUNCS): Add setns.
5238 * config.in: Regenerate.
5239 * configure: Likewise.
5240 * nat/linux-namespaces.h: New file.
5241 * nat/linux-namespaces.c: Likewise.
5242 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
5243 (linux-namespaces.o): New rule.
5244 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
5245 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
5246 * config/arm/linux.mh (NATDEPFILES): Likewise.
5247 * config/i386/linux.mh (NATDEPFILES): Likewise.
5248 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5249 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5250 * config/m32r/linux.mh (NATDEPFILES): Likewise.
5251 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5252 * config/mips/linux.mh (NATDEPFILES): Likewise.
5253 * config/pa/linux.mh (NATDEPFILES): Likewise.
5254 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5255 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
5256 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
5257 * config/s390/linux.mh (NATDEPFILES): Likewise.
5258 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5259 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
5260 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
5261 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
5262
ca095836
GB
52632015-06-10 Gary Benson <gbenson@redhat.com>
5264
5265 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
5266 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
5267 (make_cleanup_close): Likewise.
5268 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
5269 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
5270 (make_cleanup_close): Likewise.
5271
5d9c55d3
JT
52722015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
5273
5274 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
5275 from SuspendThread().
5276
040ea00b
JT
52772015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
5278
5279 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
5280 from OutputDebugString.
5281
7d73c23c
WT
52822015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
5283 Mircea Gherzan <mircea.gherzan@intel.com>
5284
5285 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
5286 MPX_BT_MASK_32): New macros.
5287 (i386_mpx_set_bounds): New function that implements
5288 the command "set-mpx-bound".
5289 (i386_mpx_enabled): Helper function to test MPX availability.
5290 (i386_mpx_bd_base): Helper function to calculate the base directory
5291 address.
5292 (i386_mpx_get_bt_entry): Helper function to access a bound
5293 table entry.
5294 (i386_mpx_print_bounds): Effectively display bound information.
5295 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
5296 "show mpx".
5297 (_initialize_i386_tdep):
5298 Add "bound" to the commands "show mpx" and "set mpx" commands.
5299 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
5300 and "show mpx" commands.
5301 * NEWS: List new commands for MPX support.
5302
3ac2e371
GB
53032015-06-09 Gary Benson <gbenson@redhat.com>
5304
5305 * common/fileio.h (fileio_to_host_mode): New declaration.
5306 * common/fileio.c (fileio_to_host_mode): New Function.
5307 * inf-child.c (inf_child_fileio_open): Process mode argument
5308 with fileio_to_host_mode.
5309
ecef18c5
GB
53102015-06-09 Gary Benson <gbenson@redhat.com>
5311
5312 * common/fileio.c (fileio_mode_pack): Fix preprocessor
5313 conditional.
5314
e3dd7556
GB
53152015-06-05 Gary Benson <gbenson@redhat.com>
5316
5317 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
5318 * remote.c (remote_filesystem_is_local): ...here.
5319
5b74bf7d
YQ
53202015-06-04 Yao Qi <yao.qi@linaro.org>
5321
5322 * gdbarch.c: Regenerate it.
5323
7f361056
JK
53242015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5325
5326 * arch-utils.c (default_infcall_munmap): New.
5327 * arch-utils.h (default_infcall_munmap): New declaration.
5328 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
5329 (munmap_list_free, munmap_listp_free_cleanup): New.
5330 (struct setup_sections_data): Add field munmap_list_headp.
5331 (setup_sections): Call munmap_list_add.
5332 (compile_object_load): New variable munmap_list_head, initialize
5333 setup_sections_data.munmap_list_headp, return munmap_list_head.
5334 * compile/compile-object-load.h (struct munmap_list): New declaration.
5335 (struct compile_module): Add field munmap_list_head.
5336 (munmap_list_free): New declaration.
5337 * compile/compile-object-run.c (struct do_module_cleanup): Add field
5338 munmap_list_head.
5339 (do_module_cleanup): Call munmap_list_free.
5340 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
5341 * gdbarch.c: Regenerate.
5342 * gdbarch.h: Regenerate.
5343 * gdbarch.sh (infcall_munmap): New.
5344 * linux-tdep.c (linux_infcall_munmap): New.
5345 (linux_init_abi): Install it.
5346
3b462ec2
SM
53472015-06-02 Simon Marchi <simon.marchi@ericsson.com>
5348
5349 PR gdb/15564
5350 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
5351
8d683210
YQ
53522015-06-02 Yao Qi <yao.qi@linaro.org>
5353
5354 * i386-linux-nat.c: Include linux-nat.h.
5355
e0619de6
JK
53562015-06-01 Andreas Schwab <schwab@linux-m68k.org>
5357 Jan Kratochvil <jan.kratochvil@redhat.com>
5358
5359 PR symtab/18392
5360 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
5361 assertion.
5362 * dwarf2loc.c (chain_candidate): Likewise.
5363
bd16da51
YQ
53642015-06-01 Yao Qi <yao.qi@linaro.org>
5365
5366 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
5367 (store_vfp_regs): Use PTRACE_SETREGSET.
5368
df9d7ec9
YQ
53692015-06-01 Yao Qi <yao.qi@linaro.org>
5370
5371 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
5372 (fetch_fpregs): Likewise.
5373 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
5374 (store_fpregs): Likewise.
5375
10766686
YQ
53762015-06-01 Yao Qi <yao.qi@linaro.org>
5377
5378 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
5379 (fetch_regs): Likewise.
5380 (store_regs): Use PTRACE_SETREGSET.
5381 (store_register): Likewise.
5382
7efe48d1
YQ
53832015-06-01 Yao Qi <yao.qi@linaro.org>
5384
5385 * arm-linux-nat.c (arm_linux_read_description): Check whether
5386 kernel supports PTRACE_GETREGSET.
5387
433bbbf8
YQ
53882015-06-01 Yao Qi <yao.qi@linaro.org>
5389
5390 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
5391 * linux-nat.c: ... here.
5392 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
5393 to ...
5394 * linux-nat.h: ... here.
5395
ca9b78ce
YQ
53962015-06-01 Yao Qi <yao.qi@linaro.org>
5397
5398 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
5399 * i386-linux-nat.c: Likewise.
5400 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
5401 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
5402 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
5403 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
5404 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
5405
99cee7b7
EZ
54062015-05-30 Eli Zaretskii <eliz@gnu.org>
5407
5408 * go32-nat.c (go32_xfer_memory): Fix the return value to be
5409 compatible to what read_child and write_child return. This
5410 unbreaks that DJGPP build of GDB which was broken since v7.7.
5411
2147f5bd
MG
54122015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
5413
5414 * MAINTAINERS (Write After Approval): Add Martin Galvan.
5415
c8f6c93c
RM
54162015-05-29 Roland McGrath <mcgrathr@google.com>
5417
5418 PR gdb/18464
5419 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
5420 rather than internal_error for an unrecognized value.
5421
8c6a948d
MF
54222015-05-29 Max Filippov <jcmvbkbc@gmail.com>
5423
5424 * xtensa-tdep.c (xtensa_pseudo_register_read)
5425 (xtensa_pseudo_register_write): Don't alias last pseudo register
5426 to a1.
5427
8dd06f7a
DB
54282015-05-28 Don Breazeal <donb@codesourcery.com>
5429
5430 * infrun.c (follow_fork_inferior): Ensure the use of
5431 process-style ptids (pid,0,0) in verbose/debug "Detaching"
5432 messages.
5433
a051152b
DE
54342015-05-28 Doug Evans <dje@google.com>
5435
5436 * dwarf2read.c (record_line_ftype): Remove, duplicate.
5437
a56cc1ce
YQ
54382015-05-28 Yao Qi <yao.qi@linaro.org>
5439
5440 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
5441 (arm_linux_fetch_inferior_registers): Use
5442 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
5443 (arm_linux_store_inferior_registers): Likewise.
5444 (arm_linux_read_description): Don't set
5445 arm_linux_has_wmmx_registers.
5446 * arm-tdep.c (arm_gdbarch_init): Set
5447 tdep->have_wmmx_registers according target descriptions.
5448 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
5449 field.
5450
330c6ca9
YQ
54512015-05-28 Yao Qi <yao.qi@linaro.org>
5452
5453 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
5454 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
5455 instead of arm_linux_vfp_register_count.
5456 (store_vfp_regs): Likewise.
5457 (arm_linux_fetch_inferior_registers): Likewise.
5458 (arm_linux_store_inferior_registers): Likewise.
5459 (arm_linux_read_description): Don't set
5460 arm_linux_vfp_register_count.
5461 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
5462 Adjust.
5463 * arm-tdep.c (arm_gdbarch_init): Add assert on
5464 vfp_register_count.
5465 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
5466 field to vfp_register_count. All users updated.
5467
d403db27
KH
54682015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
5469
5470 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
5471 ELFOSABI_GNU binaries.
5472
d9b3de22
DE
54732015-05-27 Doug Evans <dje@google.com>
5474
5475 * dwarf2read.c (lnp_state_machine): New typedef.
5476 (lnp_reader_state): New typedef.
5477 (dwarf_record_line_1): Renamed from dwarf_record_line.
5478 All callers updated.
5479 (dwarf_record_line): New function.
5480 (init_lnp_state_machine): New function.
5481 (check_line_address): Replace p_record_line parameter with state.
5482 All callers updated.
5483 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
5484 Update to record state in lnp_state_machine.
5485
924c2928
DE
54862015-05-27 Doug Evans <dje@google.com>
5487
5488 * dwarf2read.c (record_line_ftype): New typedef.
5489 (check_line_address): New function.
5490 (dwarf_decode_lines_1): Call it.
5491
27e0867f
DE
54922015-05-27 Doug Evans <dje@google.com>
5493
5494 * NEWS: Mention "set debug dwarf-line".
5495 * dwarf2read.c (dwarf_line_debug): New static global.
5496 (add_include_dir): Add debug dwarf-line support.
5497 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
5498 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
5499
4dcabcc2
DE
55002015-05-27 Doug Evans <dje@google.com>
5501
5502 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
5503 All callers updated.
5504 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
5505 * cp-support.h (cp_lookup_nested_symbol): Update.
5506
b2e2f908
DE
55072015-05-27 Doug Evans <dje@google.com>
5508
5509 PR symtab/18258
5510 * block.c (block_find_symbol): New function.
5511 (block_find_non_opaque_type): Ditto.
5512 (block_find_non_opaque_type_preferred): Ditto.
5513 * block.h (block_symbol_matcher_ftype): New typedef.
5514 (block_find_symbol): Declare.
5515 (block_find_non_opaque_type): Ditto.
5516 (block_find_non_opaque_type_preferred): Ditto.
5517 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
5518 * psymtab.c (psym_lookup_symbol): Ditto.
5519 * symtab.c (basic_lookup_transparent_type_1): New function.
5520 (basic_lookup_transparent_type): Call it.
5521
f62fce35
YQ
55222015-05-27 Yao Qi <yao.qi@linaro.org>
5523
5524 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
5525 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
5526
5d98d3cd
YQ
55272015-05-27 Yao Qi <yao.qi@linaro.org>
5528
5529 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
5530 before operator &&.
5531 (aarch64_record_load_store): Likewise.
5532
82c7be31
DE
55332015-05-26 Doug Evans <dje@google.com>
5534
5535 PR c++/18141, c++/18417.
5536 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
5537 a typedef.
5538
b4f54984
DE
55392015-05-26 Doug Evans <dje@google.com>
5540
5541 * NEWS: Add entries for command renamings.
5542 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
5543 All uses updated.
5544 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
5545 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
5546 All uses updated.
5547 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
5548 All callers updated. Fix spelling of DWARF in help text.
5549 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
5550 All uses updated.
5551 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
5552 All uses updated.
5553 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
5554 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
5555 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
5556 All uses updated.
5557 (show_dwarf_always_disassemble): Renamed from
5558 show_dwarf2_always_disassemble. All callers updated.
5559 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
5560 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
5561 "set/show dwarf max-cache-age". Rename
5562 "set/show dwarf2 always-disassemble" to
5563 "set/show dwarf always-disassemble". Rename
5564 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
5565 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
5566
4ea6efe9
DE
55672015-05-26 Doug Evans <dje@google.com>
5568
5569 PR python/18438
5570 * python/py-lazy-string.c (stpy_convert_to_value): Use
5571 gdbpy_gdb_memory_error not PyExc_MemoryError.
5572 (gdbpy_create_lazy_string_object): Ditto.
5573
b93fd21d
AB
55742015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
5575
5576 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
5577
55b40027
AB
55782015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
5579
5580 * tui/tui-regs.c (tui_reg_prev_command): New function.
5581 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
5582 * reggroups.c (reggroup_prev): New function.
5583 * reggroups.h (reggroup_prev): Add declaration. Update comment.
5584
99afc88b
OJ
55852015-05-26 Omair Javaid <omair.javaid@linaro.org>
5586 Yao Qi <yao.qi@linaro.org>
5587
5588 * aarch64-linux-tdep.c: Include linux-record.h and
5589 record-full.h.
5590 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
5591 (aarch64_syscall): New enum.
5592 (aarch64_canonicalize_syscall): New function.
5593 (aarch64_all_but_pc_registers_record): New function.
5594 (aarch64_linux_syscall_record): New function.
5595 (aarch64_linux_init_abi): Install AArch64 process record
5596 handler. Update to handle syscall recording.
5597 * aarch64-tdep.c: Include record.h and record-full.h.
5598 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
5599 (struct aarch64_mem_r): Define.
5600 (aarch64_record_result): New enum.
5601 (struct insn_decode_record): Define.
5602 (insn_decode_record): New typedef.
5603 (aarch64_record_data_proc_reg): New function.
5604 (aarch64_record_data_proc_imm): New function.
5605 (aarch64_record_branch_except_sys): New function.
5606 (aarch64_record_load_store): New function.
5607 (aarch64_record_data_proc_simd_fp): New function.
5608 (aarch64_record_asimd_load_store): New function.
5609 (aarch64_record_decode_insn_handler): New function.
5610 (deallocate_reg_mem): New function.
5611 (aarch64_process_record): New function.
5612 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
5613 New field.
5614 (aarch64_process_record): New extern declaration.
5615 * configure.tgt: Add linux-record.o to gdb_target_obs.
5616 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
5617
c16a3f52
OJ
56182015-05-26 Omair Javaid <omair.javaid@linaro.org>
5619
5620 * NEWS: Add a note on process record-replay support on aarch64*-linux*
5621 targets.
5622
c9cf6e20
MG
56232015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
5624
5625 * amd64-tdep.c: Replace in_function_epilogue_p with
5626 stack_frame_destroyed_p throughout.
5627 * arch-utils.c: Ditto.
5628 * arch-utils.h: Ditto.
5629 * arm-tdep.c: Ditto.
5630 * breakpoint.c: Ditto.
5631 * gdbarch.sh: Ditto.
5632 * hppa-tdep.c: Ditto.
5633 * i386-tdep.c: Ditto.
5634 * mips-tdep.c: Ditto.
5635 * nios2-tdep.c: Ditto.
5636 * rs6000-tdep.c: Ditto.
5637 * s390-linux-tdep.c: Ditto.
5638 * score-tdep.c: Ditto.
5639 * sh-tdep.c: Ditto.
5640 * sparc-tdep.c: Ditto.
5641 * sparc-tdep.h: Ditto.
5642 * sparc64-tdep.c: Ditto.
5643 * spu-tdep.c: Ditto.
5644 * tic6x-tdep.c: Ditto.
5645 * tilegx-tdep.c: Ditto.
5646 * xstormy16-tdep.c: Ditto.
5647 * gdbarch.c, gdbarch.h: Re-generated.
5648
a4ea0946
AB
56492015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5650
5651 * NEWS: Mention 'tui enable' and 'tui disable'.
5652 * tui/tui.c (tui_enable_command): New function.
5653 (tui_disable_command): New function.
5654 (_initialize_tui): New function.
5655
b75c69bb
AB
56562015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5657
5658 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
5659
c1b009ee
AB
56602015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5661
5662 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
5663 buf_ptr is freed.
5664
880d1e40
AB
56652015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5666
5667 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
5668 into ...
5669 (tui_set_layout_for_display_command): ...here, before calling
5670 tui_set_layout. Only set the layout if gdb has not already
5671 entered the TUI_FAILURE state.
5672
a0145030
AB
56732015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5674
5675 * tui/tui-layout.c (layout_completer): New function.
5676 (_initialize_tui_layout): Set completer on layout command.
5677
7bd0be3a
AB
56782015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5679
5680 * tui/tui-layout.c (tui_set_layout): Remove
5681 tui_register_display_type parameter. Remove all checking of this
5682 parameter, and reindent function. Update header comment.
5683 (tui_set_layout_for_display_command): Rename to...
5684 (tui_set_layout_by_name): ...this, and don't check for different
5685 register class types, don't pass a tui_register_display_type to
5686 tui_set_layout. Update header comment.
5687 (layout_names): Remove register set specific names.
5688 * tui/tui-layout.h (tui_set_layout): Remove
5689 tui_register_display_type parameter.
5690 * tui/tui.c (tui_rl_change_windows): Don't pass a
5691 tui_register_display_type to tui_set_layout.
5692 (tui_rl_delete_other_windows): Likewise.
5693 (tui_enable): Likewise.
5694 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
5695 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
5696 (TUI_GENERAL_REGS_NAME): Remove.
5697 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
5698 (TUI_SPECIAL_REGS_NAME): Remove.
5699 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
5700 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
5701 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
5702 (enum tui_register_display_type): Remove.
5703 (struct tui_layout_def): Remove regs_display_type and
5704 float_regs_display_type fields.
5705 (struct tui_data_info): Remove regs_display_type field.
5706 (tui_layout_command): Use new name for
5707 tui_set_layout_for_display_command.
5708 * tui/tui-data.c (layout_def): Don't initialise removed fields.
5709 (tui_clear_win_detail): Don't initialise removed fields of
5710 win_info.
5711 * tui/tui-regs.c (tui_show_registers): Use new name for
5712 tui_set_layout_for_display_command.
5713 * tui/tui.h (tui_set_layout_for_display_command): Rename
5714 declaration to...
5715 (tui_set_layout_by_name): ...this.
5716 * printcmd.c (display_command): Remove tui related layout call,
5717 and reindent.
5718
0b6e5e10
JB
57192015-05-20 Joel Brobecker <brobecker@adacore.com>
5720
5721 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
5722 (handle_inferior_event): New function.
5723
1da0522e
JB
57242015-05-20 Joel Brobecker <brobecker@adacore.com>
5725
5726 * ada-lang.c (to_fixed_array_type): Rename local variable
5727 typename into type_name.
5728
5fe75eec
JK
57292015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5730
5731 Fix ASAN crash for gdb.compile/compile.exp.
5732 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
5733
a4063588
JK
57342015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5735
5736 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
5737 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
5738 * compile/compile-object-load.c (setup_sections, compile_object_load):
5739 Likewise.
5740 * compile/compile.c (compile_to_object): Likewise.
5741
37442ce1
DE
57422015-05-16 Doug Evans <xdje42@gmail.com>
5743
5744 * NEWS: Mention support for unbuffered Guile memory ports.
5745 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
5746 (ioscm_lseek_address): Improve overflow calculation.
5747 (gdbscm_memory_port_fill_input): Add assert.
5748 (gdbscm_memory_port_write): Handle unbuffered ports.
5749 Handle large writes identical to Guile's fport_write.
5750 (gdbscm_memory_port_seek): Fix seeking past end check.
5751 (gdbscm_memory_port_close): Handle closing unbuffered port.
5752 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
5753 (ioscm_init_memory_port): Handle unbuffered ports.
5754 (ioscm_reinit_memory_port): Ditto.
5755 (ioscm_init_memory_port): Update size calculation.
5756 (gdbscm_open_memory): Support zero sized ports.
5757
d976bace
JK
57582015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5759
5760 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
5761 variable compiler warnings.
5762
4d18dfad
JK
57632015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5764
5765 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
5766
36de76f9
JK
57672015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5768 Phil Muldoon <pmuldoon@redhat.com>
5769
5770 * NEWS (Changes since GDB 7.9): Add compile print.
5771 * compile/compile-c-support.c (add_code_header, add_code_footer)
5772 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
5773 COMPILE_I_PRINT_VALUE_SCOPE.
5774 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
5775 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
5776 New.
5777 * compile/compile-object-load.c: Include block.h.
5778 (get_out_value_type): New function.
5779 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5780 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
5781 OUT_VALUE_TYPE.
5782 * compile/compile-object-load.h (struct compile_module): Add fields
5783 out_value_addr and out_value_type.
5784 * compile/compile-object-run.c: Include valprint.h and compile.h.
5785 (struct do_module_cleanup): Add fields out_value_addr and
5786 out_value_type.
5787 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5788 COMPILE_I_PRINT_VALUE_SCOPE.
5789 (compile_object_run): Propagate out_value_addr and out_value_type.
5790 Pass OUT_VALUE_ADDR.
5791 * compile/compile.c: Include valprint.h.
5792 (compile_print_value, compile_print_command): New functions.
5793 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
5794 (_initialize_compile): Update compile code help text. Install
5795 compile_print_command.
5796 * compile/compile.h (compile_print_value): New prototype.
5797 * defs.h (enum compile_i_scope_types): Add
5798 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
5799
83d3415e
JK
58002015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5801
5802 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
5803 Rely on its parameter count.
5804 (compile_object_load): Replace lookup_minimal_symbol_text by
5805 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
5806 return value.
5807 * compile/compile-object-load.h (struct compile_module): Replace
5808 func_addr by func_sym.
5809 * compile/compile-object-run.c: Include block.h.
5810 (compile_object_run): Reset module variable after it is freed. Use
5811 FUNC_SYM instead of FUNC_ADDR. Rely on it.
5812
3a9558c4
JK
58132015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5814
5815 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
5816 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
5817 (c_compute_program): Call generate_register_struct after typedefs.
5818 * compile/compile-loc2c.c (push, pushf_register_address)
5819 (pushf_register): Cast to GCC_UINTPTR.
5820 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
5821 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
5822 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
5823 * compile/compile.c (_initialize_compile): Enable warnings for
5824 COMPILE_ARGS.
5825
5c65b58a
JK
58262015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5827
5828 * cli/cli-script.c (execute_control_command): Update
5829 eval_compile_command caller.
5830 * compile/compile-object-load.c (compile_object_load): Add parameters
5831 scope and scope_data. Set them.
5832 * compile/compile-object-load.h (struct compile_module): Add fields
5833 scope and scope_data.
5834 (compile_object_load): Add parameters scope and scope_data.
5835 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
5836 scope and scope_data.
5837 (compile_object_run): Propagate the fields scope and scope_data.
5838 * compile/compile.c (compile_file_command, compile_code_command):
5839 Update eval_compile_command callers.
5840 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
5841 * compile/compile.h (eval_compile_command): Add parameter scope_data.
5842 * defs.h (struct command_line): Add field scope_data.
5843
1c88ceb1
JK
58442015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5845
5846 * printcmd.c (struct format_data): Move it to valprint.h.
5847 (print_command_parse_format, print_value): New functions from ...
5848 (print_command_1): ... here. Call them.
5849 * valprint.h (struct format_data): Move it here from printcmd.c.
5850 (print_command_parse_format, print_value): New declarations.
5851
0b738f27
JK
58522015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5853
5854 * compile/compile-object-load.c (compile_object_load): Add
5855 COMPILE_DEBUG message.
5856
aa715135
JG
58572015-05-15 Jerome Guitton <guitton@adacore.com>
5858
5859 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
5860 index to get element instead of enum value.
5861 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
5862 of index to compute length, but enum values to compute bounds.
5863 (ada_array_length): Use enum position of index instead of enum value.
5864 (pos_atr): Move position computation to...
5865 (ada_evaluate_subexp): Use enum values to compute bounds.
5866 * gdbtypes.c (discrete_position): ...this new function.
5867 * gdbtypes.h (discrete_position): New function declaration.
5868 * valprint.c (val_print_array_elements): Call discrete_position
5869 to handle array indexed by non-contiguous enumeration types.
5870
931e5bc3
JG
58712015-05-15 Jerome Guitton <guitton@adacore.com>
5872
5873 * ada-lang.c (find_parallel_type_by_descriptive_type):
5874 Go through typedefs during lookup.
5875 (to_fixed_array_type): Add support for non-bit packed arrays
5876 as variable-length fields.
5877
4e63d0ac
PA
58782015-05-15 Pedro Alves <palves@redhat.com>
5879 Simon Marchi <simon.marchi@ericsson.com>
5880
5881 * event-loop.c (gdb_notifier) <next_file_handler,
5882 next_poll_fds_index>: New fields.
5883 (get_next_file_handler_to_handle_and_advance): New function.
5884 (delete_file_handler): If deleting the next file handler to
5885 handle, advance to the next file handler.
5886 (gdb_wait_for_event): Bail early if no event fired. Poll file
5887 handlers in round-robin fashion.
5888
52e48b36
PA
58892015-05-15 Pedro Alves <palves@redhat.com>
5890
5891 * linux-tdep.c (linux_find_memory_regions_full): Rename local
5892 'private' to 'priv'.
5893
2465e12e
PA
58942015-05-15 Pedro Alves <palves@redhat.com>
5895
5896 * nat/linux-nat.h: Include "target/waitstatus.h".
5897
13fa0398
YZ
58982015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
5899
5900 * python/py-unwind.c (struct reg_info): Move out of ...
5901 (struct cached_frame_info): ... this scope.
5902 (pending_frame_object_type, unwind_info_object_type): Make extern.
5903
9cd4d857
JB
59042015-05-15 Joel Brobecker <brobecker@adacore.com>
5905
5906 * ada-lang.c (ada_value_primitive_packed_val): Make sure
5907 accumSize is never negative.
5908
e3555239
PP
59092015-05-14 Patrick Palka <patrick@parcs.ath.cx>
5910
5911 * tui/tui-command.c: Remove include of <ctype.h>.
5912 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
5913
08a76f8a
MG
59142015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
5915
5916 * dwarf2read.c (die_needs_namespace): Return 1 for
5917 DW_TAG_inlined_subroutine.
5918
bd49952b
JK
59192015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5920
5921 * regcache.c (regcache_cpy_no_passthrough): New declaration.
5922 (regcache_cpy_no_passthrough): Make it static, add function comment.
5923 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
5924 (regcache_cpy_no_passthrough): Remove declaration.
5925
46c03469
JK
59262015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5927
5928 * gdbthread.h (struct thread_control_state): Update comment for
5929 proceed_to_finish.
5930 * infcall.c (run_inferior_call): Update comment about
5931 proceed_to_finish.
5932 * infcmd.c (get_return_value): Update comment about stop_registers.
5933 (finish_forward): Update comment about proceed_to_finish.
5934 * infrun.c (stop_registers): Remove.
5935 (clear_proceed_status, normal_stop): Remove stop_registers handling.
5936 * infrun.h (stop_registers): Remove.
5937
8a6c4031
JK
59382015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5939
5940 * infcall.c (struct dummy_frame_context_saver)
5941 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
5942 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5943 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5944 New.
5945 (call_function_by_hand_dummy): Move discard_cleanups of
5946 inf_status_cleanup before dummy_frame_push. Call
5947 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
5948 Use dummy_frame_context_saver_get_regs instead of stop_registers.
5949 * infcall.h (struct dummy_frame_context_saver)
5950 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5951 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5952 New declarations.
5953 * infcmd.c: Include infcall.h.
5954 (get_return_value): Add parameter ctx_saver, use it instead of
5955 stop_registers.
5956 (print_return_value): Add parameter ctx_saver, pass it.
5957 (struct finish_command_continuation_args): Add field ctx_saver.
5958 (finish_command_continuation): Update print_return_value caller.
5959 (finish_command_continuation_free_arg): Free also ctx_saver.
5960 (finish_forward): Call dummy_frame_context_saver_setup.
5961 * inferior.h (struct dummy_frame_context_saver): New declaration.
5962 (get_return_value): Add parameter ctx_saver.
5963 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
5964 get_return_value caller.
5965
10989690
JK
59662015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5967
5968 * dummy-frame.c (struct dummy_frame_dtor_list): New.
5969 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
5970 (remove_dummy_frame): Process dtor_list.
5971 (pop_dummy_frame): Process dtor_list.
5972 (register_dummy_frame_dtor): Maintain dtor_list.
5973 (find_dummy_frame_dtor): Handle dtor_list.
5974 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
5975 Update comments.
5976
5e970501
JK
59772015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5978
5979 * compile/compile-object-run.c (do_module_cleanup): Add parameter
5980 registers_valid.
5981 (compile_object_run): Update do_module_cleanup caller.
5982 * dummy-frame.c: Include infcall.h.
5983 (struct dummy_frame): Update dtor comment.
5984 (remove_dummy_frame): Call dtor.
5985 (pop_dummy_frame): Update dtor caller.
5986 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
5987 registers_valid.
5988
1c4eb778
JB
59892015-05-13 Joel Brobecker <brobecker@adacore.com>
5990
5991 GDB 7.9.1 released.
5992
f5f85ab9
JB
59932015-05-13 Joel Brobecker <brobecker@adacore.com>
5994
5995 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
5996 Xmethods now being able to specify a result type to that new
5997 sectioin.
5998
242cd84c
PP
59992015-05-13 Patrick Palka <patrick@parcs.ath.cx>
6000
6001 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
6002 first before resizing the window.
e3555239 6003 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
6004
60052015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
6006
6007 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
6008 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
6009 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
6010 dummy_dtor parameter.
6011 * infcall.h: Include dummy-frame.h.
6012 (call_function_by_hand_dummy_dtor_ftype): Remove.
6013 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
6014 parameter.
6015
ebfd00d2
PP
60162015-05-13 Patrick Palka <patrick@parcs.ath.cx>
6017
6018 PR gdb/17820
6019 * top.c (history_size_setshow_var): Change type to signed.
6020 Initialize to -2. Update documentation.
6021 (set_readline_history_size): Define.
6022 (set_history_size_command): Use it. Remove logic for handling
6023 out-of-range sizes.
6024 (init_history): Use set_readline_history_size(). Test for a
6025 value of -2 instead of 0 when determining whether to set a
6026 default history size.
6027 (init_main): Decode the argument of the "size" command as a
6028 zuinteger_unlimited.
6029
83769d0b
DE
60302015-05-12 Doug Evans <dje@google.com>
6031
6032 * dwarf2read.c (struct file_entry): Tweak comments.
6033 (get_debug_line_section): Tweak comments.
6034
0d71eef5
DB
60352015-05-12 Don Breazeal <donb@codesourcery.com>
6036
6037 * NEWS: Announce fork support in the RSP and support
6038 for fork debugging in extended mode.
6039
cbb8991c
DB
60402015-05-12 Don Breazeal <donb@codesourcery.com>
6041
6042 * remote.c (remote_insert_fork_catchpoint): New function.
6043 (remote_remove_fork_catchpoint): New function.
6044 (remote_insert_vfork_catchpoint): New function.
6045 (remote_remove_vfork_catchpoint): New function.
6046 (pending_fork_parent_callback): New function.
6047 (remove_new_fork_child): New function.
6048 (remote_update_thread_list): Call remote_notif_get_pending_events
6049 and remove_new_fork_child.
6050 (extended_remote_kill): Kill fork child when killing the
6051 parent before follow_fork completes.
6052 (init_extended_remote_ops): Initialize target vector with
6053 new fork catchpoint functions.
6054
c269dbdb
DB
60552015-05-12 Don Breazeal <donb@codesourcery.com>
6056
6057 * remote.c (remove_vfork_event_p): New function.
6058 (remote_follow_fork): Add vfork event type to event checking.
6059 (remote_parse_stop_reply): New stop reasons "vfork" and
6060 "vforkdone" for RSP 'T' Stop Reply Packet.
6061
de0d863e
DB
60622015-05-12 Don Breazeal <donb@codesourcery.com>
6063
6064 * linux-nat.c (linux_nat_ptrace_options): New function.
6065 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
6066 Call linux_nat_ptrace_options and use different argument to
6067 linux_enable_event_reporting.
6068 (_initialize_linux_nat): Delete call to
6069 linux_ptrace_set_additional_flags.
c8f6c93c 6070 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
6071 supported_ptrace_options.
6072 (additional_flags): Delete variable.
6073 (linux_check_ptrace_features): Use supported_ptrace_options.
6074 (linux_test_for_tracesysgood, linux_test_for_tracefork):
6075 Likewise, and remove additional_flags check.
6076 (linux_enable_event_reporting): Change 'attached' argument to
6077 'options'. Use supported_ptrace_options.
c8f6c93c 6078 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
6079 supported_ptrace_options.
6080 (linux_ptrace_set_additional_flags): Delete function.
6081 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
6082 Delete function prototype.
6083 * remote.c (remote_fork_event_p): New function.
6084 (remote_detach_pid): New function.
6085 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
6086 if doing detach-on-fork.
6087 (remote_follow_fork): New function.
6088 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
6089 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
6090 (init_extended_remote_ops): Initialize to_follow_fork.
6091
89245bc0
DB
60922015-05-12 Don Breazeal <donb@codesourcery.com>
6093
6094 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
6095 from static to extern.
6096 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
6097 * remote.c (anonymous enum): <PACKET_fork_event_feature,
6098 * PACKET_vfork_event_feature>: New enumeration constants.
6099 (remote_protocol_features): Add table entries for new packets.
6100 (remote_query_supported): Add new feature queries to qSupported
6101 packet.
6102
835205d0
GB
61032015-05-12 Gary Benson <gbenson@redhat.com>
6104
6105 * remote.c (remote_add_inferior): Call exec_file_locate_attach
6106 for fake PIDs as well as real ones.
6107 (remote_pid_to_exec_file): Send empty annex if PID is fake.
6108
4c082a81
SC
61092015-05-09 Siva Chandra Reddy <sivachandra@google.com>
6110
6111 * NEWS (Python Scripting): Mention the new gdb.Value methods.
6112 * python/py-value.c (valpy_reference_value): New function.
6113 (valpy_const_value): Likewise.
6114 (value_object_methods): Add new methods.
6115 * value.c (make_cv_value): New function.
6116 * value.h (make_cv_value): Declare.
6117
afa6c9ab
SL
61182015-05-08 Yao Qi <yao@codesourcery.com>
6119 Sandra Loosemore <sandra@codesourcery.com>
6120
6121 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
6122 to 'lh->include_dirs' before accessing to it.
6123 (psymtab_include_file_name): Likewise.
6124 (dwarf_decode_lines_1): Likewise.
6125 (dwarf_decode_lines): Likewise.
6126 (file_file_name): Likewise.
6127
35d54293
SL
61282015-05-08 Sandra Loosemore <sandra@codesourcery.com>
6129
6130 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
6131 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
6132 (nios2_linux_rt_sigreturn_init): Adjust base address of
6133 register save area.
6134
b73c49b7
SL
61352015-05-08 Sandra Loosemore <sandra@codesourcery.com>
6136
6137 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
6138 "trap 31" as the breakpoint instruction on all targets.
6139
dd9f02a0
JK
61402015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6141
6142 * infcmd.c (print_return_value): Remove unused declaration.
6143
6ad395a7
JB
61442015-05-08 Joel Brobecker <brobecker@adacore.com>
6145
6146 * dwarf2read.c (attr_to_dynamic_prop)
6147 <DW_AT_data_member_location>: Use read_type_die isntead of
6148 get_die_type.
6149
8344af1e
JB
61502015-05-08 Joel Brobecker <brobecker@adacore.com>
6151
6152 * ada-lang.c (ada_convert_actual): Add handling of formals
6153 passed inside an aligner type.
6154
80b0912b
JB
61552015-05-08 Joel Brobecker <brobecker@adacore.com>
6156
6157 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
6158
df2eb078
SC
61592015-05-08 Siva Chandra Reddy <sivachandra@google.com>
6160
6161 PR python/18291
6162 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
6163 Print xmethod matcher status.
6164
2492f0d0
AA
61652015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
6166
6167 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
6168 register in the regcache when treating the PSWM register, and vice
6169 versa.
6170
1c56a84d
GB
61712015-05-07 Gary Benson <gbenson@redhat.com>
6172
6173 * linux-thread-db.c (struct thread_db_info)
6174 <td_ta_map_id2thr_p>: Remove field.
6175 (try_thread_db_load_1): Remove initialization for the above.
6176
74850322
GB
61772015-05-07 Gary Benson <gbenson@redhat.com>
6178
6179 * linux-thread-db.c (struct thread_db_info)
6180 <td_thr_validate_p>: Remove field.
6181 (try_thread_db_load_1): Remove initialization for the above.
6182
e26efa40
JK
61832015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6184
6185 * compile/compile-object-load.c (compile_object_load): Support
6186 mst_text_gnu_ifunc.
6187
851c9091
JK
61882015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6189
6190 * compile/compile.c (compile_to_object): Make the cmd_string parameter
6191 const. Use new variables for the const compatibility.
6192 (eval_compile_command): Make the cmd_string parameter const.
6193 * compile/compile.h (eval_compile_command): Make the cmd_string
6194 parameter const.
6195
f218b647
JB
61962015-05-06 Joel Brobecker <brobecker@adacore.com>
6197
6198 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
6199 comment.
6200 * top.c (deprecated_init_ui_hook): Delete.
6201 (gdb_init): Remove handling of deprecated_init_ui_hook.
6202 * interps.c (clear_interpreter_hooks): Remove handling of
6203 deprecated_init_ui_hook.
6204 * main.c (captured_main): Update comment.
6205
b30a0bc3
JB
62062015-05-06 Joel Brobecker <brobecker@adacore.com>
6207
6208 * solib.c (_initialize_solib): Add "info dll" alias creation.
6209 * windows-nat.c (set_windows_aliases): Delete.
6210 (_initialize_windows_nat): Remove deprecated_init_ui_hook
6211 assignment.
6212 * NEWS: Add news entry about "info dll" now being available
6213 on all platforms.
6214
7c512744
JB
62152015-05-05 Joel Brobecker <brobecker@adacore.com>
6216
6217 * ada-lang.c (value_assign_to_component): Reformat and improve
6218 documentation. Remove all trailing spaces.
6219
0fa7fe50
JB
62202015-05-05 Joel Brobecker <brobecker@adacore.com>
6221
6222 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6223 Stop counting inlined frames as soon as an out-of-line function
6224 is found.
6225
3ea89b92
PMR
62262014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
6227
6228 * dwarf2read.c (inherit_abstract_dies): Skip
6229 DW_TAG_GNU_call_site dies while inheriting children of an
6230 abstract DIE into a scope.
6231 (read_lexical_block_scope): Inherit abstract DIE's for
6232 lexical scopes.
6233
2478d075
JB
62342015-05-05 Joel Brobecker <brobecker@adacore.com>
6235
6236 * ada-valprint.c (val_print_packed_array_elements): Delete
6237 variable "len". Add a type-length check when comparing two
6238 consecutive elements of the array. Use the element's actual
6239 length in call to value_contents_eq.
6240 * ada-lang.c (ada_value_primitive_packed_val): Always return
6241 a value whose type has been resolved.
6242
fc958966
JB
62432015-05-05 Joel Brobecker <brobecker@adacore.com>
6244
6245 * ada-lang.c (ada_value_primitive_packed_val): Recompute
6246 BIT_SIZE and LEN if the size of the resolved type is smaller
6247 than BIT_SIZE * HOST_CHAR_BIT.
6248
ca34b84f
JB
62492015-05-05 Joel Brobecker <brobecker@adacore.com>
6250
6251 * ada-lang.c (ada_value_primitive_packed_val): Use a more
6252 correct address in call to value_at. Adjust call to
6253 value_address accordingly.
6254
62c67f3c
JB
62552015-05-05 Joel Brobecker <brobecker@adacore.com>
6256
6257 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
6258 to print it.
6259
c3345124
JB
62602015-05-05 Joel Brobecker <brobecker@adacore.com>
6261
6262 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
6263 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
6264 pinfo->valaddr.
6265 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
6266 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
6267 (resolve_dynamic_type_internal): Set pinfo.valaddr.
6268 Add handling of addr_stack->valaddr.
6269 (resolve_dynamic_type): Add "valaddr" parameter.
6270 Set pinfo.valaddr field.
6271 * ada-lang.c (ada_discrete_type_high_bound): Update call to
6272 resolve_dynamic_type.
6273 (ada_discrete_type_low_bound): Likewise.
6274 * findvar.c (default_read_var_value): Likewise.
6275 * value.c (value_from_contents_and_address): Likewise.
6276
75ea5859
JB
62772015-05-05 Joel Brobecker <brobecker@adacore.com>
6278
6279 * gdbtypes.c (resolve_dynamic_array): Use
6280 create_array_type_with_stride instead of create_array_type.
6281
0952813b
DD
62822015-04-30 DJ Delorie <dj@redhat.com>
6283
6284 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
6285 rl78_decode_opcode
6286
2ce1cdbf
DE
62872015-04-29 Doug Evans <dje@google.com>
6288
6289 PR python/18285
6290 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
6291 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
6292 EVAL_AVOID_SIDE_EFFECTS for xmethods.
6293 * extension-priv.h (struct extension_language_ops)
6294 <get_xmethod_result_type>: New member.
6295 * extension.c (get_xmethod_result_type): New function.
6296 * extension.h (get_xmethod_result_type): Declare.
6297 * python/py-xmethods.c (get_result_type_method_name): New static
6298 global.
6299 (py_get_result_type_method_name): Ditto.
6300 (gdbpy_get_xmethod_result_type): New function.
6301 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
6302 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
6303 * python/python.c (python_extension_ops): Add
6304 gdbpy_get_xmethod_result_type.
6305 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
6306 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
6307 xmethods.
6308 (value_x_unop): Ditto.
6309 * value.c (result_type_of_xmethod): New function.
6310 * value.h (result_type_of_xmethod): Declare.
6311
998d2a3e
GB
63122015-04-29 Gary Benson <gbenson@redhat.com>
6313
6314 * solib.c (solib_find_1): Allow fd argument to be NULL.
6315 (exec_file_find): Update comment.
6316 (solib_find): Likewise.
6317 * exec.c (exec_file_locate_attach): Use NULL as fd
6318 argument to exec_file_find to avoid having to close
6319 the opened file.
6320 * infrun.c (follow_exec): Likewise.
6321
34f5f757
DE
63222015-04-28 Doug Evans <dje@google.com>
6323
6324 PR python/18299
6325 * python/lib/gdb/printing.py (register_pretty_printer): Handle
6326 name or __name__ attributes. Handle gdb module as first argument.
6327
69b4374a
DE
63282015-04-28 Doug Evans <dje@google.com>
6329
6330 PR python/18089
6331 * python/py-prettyprint.c (print_children): Verify result of children
6332 iterator. Provide better error message.
6333 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
6334 * python/python.c (gdbpy_print_python_errors_p): New function.
6335
5e7cf078
DE
63362015-04-28 Doug Evans <dje@google.com>
6337
6338 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
6339
59fb7612
SS
63402015-04-28 Sasha Smundak <asmundak@google.com>
6341
6342 * NEWS: Mention gdb.Type.optimized_out method.
6343 * python/py-type.c (typy_optimized_out): New function.
6344
cea6e4f1
JB
63452015-04-28 John Baldwin <jhb@FreeBSD.org>
6346
6347 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6348
24b73f8e
PP
63492015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6350
6351 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
6352 (initialize_utils): Move call of init_page_info() to ...
6353 * top.c (gdb_init): ... here.
6354
a88d0bb3
PP
63552015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6356
6357 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
6358 (tui_sigwinch_handler): Still update our idea of
6359 the terminal's width and height even when TUI is not active.
6360
d6e5e7f7
PP
63612015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6362
6363 * utils.h (set_screen_width_and_height): Declare.
6364 * utils.c (set_screen_width_and_height): Define.
6365 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
6366
ff862be4
GB
63672015-04-28 Gary Benson <gbenson@redhat.com>
6368
6369 * infrun.c (solist.h): New include.
6370 (follow_exec): Use exec_file_find to prefix execd_pathname
6371 with gdb_sysroot.
6372
2eb639cb
PP
63732015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6374
6375 * tui/tui-source.c (tui_set_source_content): Avoid calling
6376 strcpy() when offset is 0.
6377
97206799
PP
63782015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6379
6380 PR gdb/18155
6381 * tui/tui-data.c (tui_free_window): Don't free the locator
6382 window when passed an SRC_WIN or a DISASSEM_WIN.
6383
63ed8182
PP
63842015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6385
6386 * tui/tui-data.h (struct tui_win_element): Forward-declare.
6387 (tui_win_content): Move declaration.
6388 (struct tui_gen_win_info): Give 'content' field the
6389 type tui_win_content.
6390 * tui/tui-data.c (init_content_element): Remove redundant and
6391 erroneous casts.
6392 (tui_add_content_elements): Remove erroneous cast.
6393 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
6394 casts.
6395 (tui_get_begin_asm_address): Likewise.
6396 * tui/tui-regs.c (tui_show_registers): Likewise.
6397 (tui_show_register_group): Likewise.
6398 (tui_display_registers_from): Likewise.
6399 (tui_check_register_values): Likewise.
6400 * tui/tui-source.c (tui_set_source_content): Likewise.
6401 (tui_set_source_content_nil): Likewise.
6402 (tui_source_is_displayed): Likewise.
6403 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6404 (tui_set_locator_fullname): Likewise.
6405 (tui_set_locator_info): Likewise.
6406 (tui_show_frame_info): Likewise.
6407 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
6408 (tui_show_source_line): Likewise.
6409 (tui_horizontal_source_scroll): Likewise.
6410 (tui_update_breakpoint_info): Likewise.
6411 (tui_set_exec_info_content): Likewise.
6412 (tui_show_exec_info_content): Likewise.
6413 (tui_alloc_source_buffer): Likewise.
6414 (tui_line_is_displayed): Likewise.
6415 (tui_addr_is_displayed): Likewise.
6416
d2b41ca0
JB
64172015-04-27 John Baldwin <jhb@FreeBSD.org>
6418
6419 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
6420 event if PL_FLAG_EXEC is set.
6421 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
6422 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
6423 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
6424 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
6425 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
6426
e58e05d6
JB
64272015-04-27 John Baldwin <jhb@FreeBSD.org>
6428
6429 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
6430 [TDP_RFPPWAIT] New variable fbsd_pending_children.
6431 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
6432 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
6433 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
6434 [PT_LWPINFO] (fbsd_wait): New function.
6435 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
6436 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
6437 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
6438 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
6439 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
6440 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
6441 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
6442 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
6443 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
6444 "fbsd_wait".
6445 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
6446 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
6447 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
6448 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
6449 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
6450 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
6451 Set "to_post_attach" to "fbsd_post_attach".
6452
8f60fe01
JB
64532015-04-27 John Baldwin <jhb@FreeBSD.org>
6454
6455 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
6456 (fbsd_find_memory_regions): Mark static.
6457 (fbsd_nat_add_target): New function.
6458 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
6459 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
6460 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
6461 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
6462 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
6463 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
6464
5fbae7d1
GB
64652015-04-27 Gary Benson <gbenson@redhat.com>
6466
6467 * objfiles.c (allocate_objfile): Do not attempt to expand name
6468 if name is a "target:" filename.
6469 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
6470 to load auto-load scripts for objfiles with "target:" filenames.
6471
417c80f9
AA
64722015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6473
6474 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
6475 (enum s390_vector_abi_kind): New enum.
6476 (struct gdbarch_tdep)<vector_abi>: New field.
6477 (s390_effective_inner_type): Add parameter min_size. Stop
6478 unwrapping if the inner type is smaller than min_size.
6479 (s390_function_arg_float): Adjust call to
6480 s390_effective_inner_type.
6481 (s390_function_arg_vector): New function.
6482 (s390_function_arg_integer): Adjust comment.
6483 (struct s390_arg_state)<vr>: New field.
6484 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
6485 arguments according to vector ABI when appropriate.
6486 (s390_push_dummy_call): Initialize the argument state's field
6487 'vr'. Adjust calls to s390_handle_arg.
6488 (s390_register_return_value): Handle vector return values.
6489 (s390_return_value): Apply the "register" return value convention
6490 to a vector when appropriate.
6491 (s390_gdbarch_init): Initialize tdep->vector_abi.
6492 * NEWS: Announce S390 vector ABI support.
6493
4e65a17e
AA
64942015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6495
6496 * s390-linux-tdep.c (s390_return_value_convention): Remove
6497 function. Inline its logic...
6498 (s390_return_value): ...here. Instead, move the handling of the
6499 "register" return value convention...
6500 (s390_register_return_value): ...here. New function.
6501
80f75320
AA
65022015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6503
6504 * s390-linux-tdep.c
6505 (is_float_singleton): Remove function. Move the "singleton" part
6506 of the logic...
6507 (s390_effective_inner_type): ...here. New function.
6508 (is_float_like): Remove function. Inline its logic...
6509 (s390_function_arg_float): ...here.
6510 (is_pointer_like, is_integer_like, is_struct_like): Remove
6511 functions. Inline their logic...
6512 (s390_function_arg_integer): ...here.
6513 (s390_function_arg_pass_by_reference): Remove function.
6514 (extend_simple_arg): Remove function.
6515 (alignment_of): Remove function.
6516 (struct s390_arg_state): New structure.
6517 (s390_handle_arg): New function.
6518 (s390_push_dummy_call): Move parameter placement logic to the new
6519 function s390_handle_arg. Call it for calculating the stack area
6520 sizes first, and again for actually writing the parameters.
6521
6dbc9c04
AA
65222015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6523
6524 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
6525 false if the argument is zero.
6526
9e195661
PMR
65272015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
6528
6529 * ada-lang.c (template_to_static_fixed_type): Return input type
6530 when it is already fixed. Cache the input type itself when not
6531 creating a static fixed copy. Make it explicit that we never
6532 molestate the input type.
6533 * gdbtypes.c (resolve_dynamic_struct): Reset the
6534 TYPE_TARGET_TYPE field for resolved copies.
6535
460efde1
JB
65362015-04-27 Joel Brobecker <brobecker@adacore.com>
6537
6538 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
6539 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
6540 (template_to_static_fixed_type): Call ada_check_typedef only
6541 when necessary.
6542
6faec16b
AB
65432015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
6544
6545 * cli/cli-dump.c (srec_dump_command): Add internationalization
6546 mark ups.
6547 (ihex_dump_command): Likewise.
6548 (tekhex_dump_command): Likewise.
6549 (binary_dump_command): Likewise.
6550 (binary_append_command): Likewise.
6551
cf75d6c3
AB
65522015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
6553
6554 * cli/cli-dump.c (verilog_cmdlist): New variable.
6555 (dump_verilog_memory): New function.
6556 (dump_verilog_value): New function.
6557 (verilog_dump_command): New function.
6558 (_initialize_cli_dump): Add new commands to support verilog dump
6559 format.
6560 * NEWS: Add entry for "dump verilog".
6561
8cd00c59
PMR
65622015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
6563
6564 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
6565 descriptive type when there is none.
6566
8900d71e
PP
65672015-04-23 Patrick Palka <patrick@parcs.ath.cx>
6568
6569 * tui/tui-win.c (tui_async_resize_screen): Call
6570 rl_resize_terminal().
6571
f16eab5f
JT
65722015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
6573
6574 * windows-nat.c (handle_output_debug_string): Don't change
6575 current_event.dwThreadId.
6576 (get_windows_debug_event): Use thread_id, rather than relying on
6577 current_event.dwThreadId being changed.
6578
68ffc902
JT
65792015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
6580
6581 * windows-nat.c (windows_continue): Report an error if
6582 ContinueDebugEvent() fails.
6583
23942819
JT
65842015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6585
6586 * windows-nat.c (windows_resume): Fix misspelling in debug output.
6587
e6ad66bd
JT
65882015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6589
6590 * windows-nat.c (get_windows_debug_event): Replace retval with
6591 thread_id throughout. Update stale comment.
6592
776704b9
JT
65932015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6594
6595 * windows-nat.c (get_windows_debug_event): Don't use ternary
6596 conditional operator.
6597
8aae4344
PM
65982015-04-21 Pierre Muller <muller@sourceware.org>
6599
6600 PR pascal/17815
6601 p-exp.y (yylex): Reorganize code to return the matched pattern
6602 for a field of this.
6603
819843c7
GB
66042015-04-21 Gary Benson <gbenson@redhat.com>
6605
6606 * common/fileio.h (fileio_to_host_openflags): New declaration.
6607 * common/fileio.c (fcntl.h): New include.
6608 (fileio_to_host_openflags): New function, factored out from...
6609 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
6610 Single use updated.
6611
0bca7f99
KB
66122015-04-21 Kevin Buettner <kevinb@redhat.com>
6613
6614 * rl78-tdep.c (RL78_SP_ADDR): Define.
6615 (opc_reg_to_gdb_regnum): New static function.
6616 (rl78_analyze_prologue): Recognize instructions forming slightly
6617 more interesting prologues.
6618
e771e4be
PMR
66192015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
6620
6621 Revert:
6622 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6623 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6624 TYPE_CODE_REF types so that they are not considered as dynamic
6625 depending on the referenced type.
6626 (resolve_dynamic_type_internal): Likewise.
6627
ee715b5a
PMR
66282015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
6629
6630 Revert:
6631 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6632 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6633 "top_level" parameter.
6634 (resolve_dynamic_type_internal): Remove the unused "top_level"
6635 parameter. Update call to is_dynamic_type_internal.
6636 (is_dynamic_type): Update call to is_dynamic_type_internal.
6637 (resolve_dynamic_range): Update call to
6638 resolve_dynamic_type_internal.
6639 (resolve_dynamic_union): Likewise.
6640 (resolve_dynamic_struct): Likewise.
6641 (resolve_dynamic_type): Likewise.
6642
e31d7699
GKB
66432015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
6644
6645 * breakpoint.c (update_dprintf_command_list): Remove duplicated
6646 xmalloc.
6647
d214e5e7
TS
66482015-04-20 Thomas Schwinge <thomas@codesourcery.com>
6649
110f9112
TS
6650 * reply_mig_hack.awk: Robustify parsing.
6651
d214e5e7
TS
6652 * reply_mig_hack.awk: Don't bother to declare an intermediate
6653 function pointer variable.
6654
8f61baf8
DE
66552015-04-17 Doug Evans <dje@google.com>
6656
6657 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
6658 to "exec_displacement" to avoid confusion with inner use of the name.
6659
dbbf180a
YQ
66602015-04-17 Pedro Alves <palves@redhat.com>
6661
6662 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
6663 if HW point of TYPE isn't supported.
6664
059790a0
YQ
66652015-04-17 Yao Qi <yao.qi@linaro.org>
6666 Pedro Alves <palves@redhat.com>
6667
6668 * target.h (target_can_use_hardware_watchpoint): Update comments.
6669 Remove trailing ";".
6670
1b6e6f5c
GB
66712015-04-17 Gary Benson <gbenson@redhat.com>
6672
6673 * remote.c (remote_add_inferior): New argument try_open_exec.
6674 If nonzero, attempt to open the inferior's executable file as
6675 the main executable if no main executable is open already.
6676 All callers updated.
6677 * NEWS: Mention that GDB now supports automatic location and
6678 retrieval of executable + files from remote targets.
6679
c78fa86a
GB
66802015-04-17 Gary Benson <gbenson@redhat.com>
6681
6682 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
6683 * remote.c (PACKET_qXfer_exec_file): Likewise.
6684 (remote_protocol_features): Register the
6685 "qXfer:exec-file:read" feature.
6686 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
6687 (remote_pid_to_exec_file): New function.
6688 (init_remote_ops): Initialize to_pid_to_exec_file.
6689 (_initialize_remote): Register new "set/show remote
6690 pid-to-exec-file-packet" command.
6691 * NEWS: Announce new qXfer:exec-file:read packet.
6692
e0d86d2c
GB
66932015-04-17 Gary Benson <gbenson@redhat.com>
6694
6695 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
6696 New declaration.
6697 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
6698 New function, factored out from...
6699 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
6700
a9a5a3d1
GB
67012015-04-17 Gary Benson <gbenson@redhat.com>
6702
6703 * exec.c (solist.h): New include.
6704 (exec_file_locate_attach): Prefix absolute executable
6705 paths with gdb_sysroot if set.
6706 * NEWS: Mention that executable paths may be prepended
6707 with sysroot.
6708
af1900b0
GB
67092015-04-17 Gary Benson <gbenson@redhat.com>
6710
6711 * solist.h (exec_file_find): New declaration.
6712 * solib.c (solib_find_1): New function, factored out from...
6713 (solib_find): ...here.
6714 (exec_file_find): New function.
6715
a10de604
GB
67162015-04-17 Gary Benson <gbenson@redhat.com>
6717
6718 * gdbcore.h (exec_file_locate_attach): New declaration.
6719 * exec.c (exec_file_locate_attach): New function, factored
6720 out from...
6721 * infcmd.c (attach_command_post_wait): ...here.
6722
92209ddf
MF
67232015-04-17 Mike Frysinger <vapier@gentoo.org>
6724
6725 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
6726
8550d3b3
YQ
67272015-04-16 Yao Qi <yao.qi@linaro.org>
6728
6729 * infrun.c (maybe_software_singlestep): Declare.
6730 (displaced_step_fixup): Call maybe_software_singlestep.
6731
30b3dd9d
DE
67322015-04-15 Doug Evans <dje@google.com>
6733
6734 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
6735
61d96d7e
DE
67362015-04-15 Doug Evans <dje@google.com>
6737
6738 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
6739
40d2f8d6
SM
67402015-04-15 Simon Marchi <simon.marchi@ericsson.com>
6741
6742 * python/lib/gdb/command/unwinders.py: Add parentheses.
6743
6bbbba9b
YQ
67442015-04-15 Yao Qi <yao.qi@linaro.org>
6745
6746 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
6747
2bb2dcab
YQ
67482015-04-15 Yao Qi <yao.qi@linaro.org>
6749
6750 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
6751
41f071ef
YQ
67522015-04-15 Yao Qi <yao.qi@linaro.org>
6753
6754 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6755 dsc->insn_size instead of 4.
6756
326a5c7e
GB
67572015-04-14 Gary Benson <gbenson@redhat.com>
6758
6759 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
6760 * minidebug.c (lzma_stat): Likewise.
6761 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
6762 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
6763
dd177e81
SS
67642015-04-13 Stan Shebs <stanshebs@google.com>
6765
6766 * MAINTAINERS: Update my email address.
6767
97de3545
JB
67682015-04-13 John Baldwin <jhb@FreeBSD.org>
6769
6770 * amd64-tdep.c (amd64_target_description): New function.
6771 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
6772 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
6773 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6774 x86 extended save area.
6775 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6776 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
6777 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
6778 (_initialize_amd64fbsd_nat): Set "to_read_description" to
6779 "amd64fbsd_read_description".
6780 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
6781 (amd64fbsd_supply_xstateregset): New function.
6782 (amd64fbsd_collect_xstateregset): New function.
6783 Add "amd64fbsd_xstateregset".
6784 (amd64fbsd_iterate_over_regset_sections): New function.
6785 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
6786 "I386_FBSD_XSAVE_XCR0_OFFSET".
6787 Add "iterate_over_regset_sections" gdbarch method.
6788 Add "core_read_description" gdbarch method.
6789 * i386-tdep.c (i386_target_description): New function.
6790 * i386-tdep.h: Export i386_target_description and tdesc_i386.
6791 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
6792 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6793 x86 extended save area.
6794 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6795 * i386bsd-nat.h: Export i386bsd_xsave_len.
6796 * i386fbsd-nat.c (i386fbsd_read_description): New function.
6797 (_initialize_i386fbsd_nat): Set "to_read_description" to
6798 "i386fbsd_read_description".
6799 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
6800 (i386fbsd_core_read_description): New function.
6801 (i386fbsd_supply_xstateregset): New function.
6802 (i386fbsd_collect_xstateregset): New function.
6803 Add "i386fbsd_xstateregset".
6804 (i386fbsd_iterate_over_regset_sections): New function.
6805 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
6806 "I386_FBSD_XSAVE_XCR0_OFFSET".
6807 Add "iterate_over_regset_sections" gdbarch method.
6808 Add "core_read_description" gdbarch method.
6809 * i386fbsd-tdep.h: New file.
6810
4f45d445
JK
68112015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6812
6813 * NEWS (Changes since GDB 7.9): Add removed -xdb.
6814 * breakpoint.c (command_line_is_silent): Remove xdb_commands
6815 conditional.
6816 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
6817 and lb.
6818 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
6819 va.
6820 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
6821 conditional.
6822 * defs.h (xdb_commands): Remove declaration.
6823 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
6824 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
6825 * infcmd.c (run_no_args_command, go_command): Remove.
6826 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
6827 * infrun.c (xdb_handle_command): Remove.
6828 (_initialize_infrun): Remove xdb_commands for lz and z.
6829 * main.c (xdb_commands): Remove variable.
6830 (captured_main): Remove "xdb" from long_options.
6831 (print_gdb_help): Remove --xdb from help.
6832 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
6833 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
6834 * stack.c (backtrace_full_command, args_plus_locals_info)
6835 (current_frame_command): Remove.
6836 (_initialize_stack): Remove xdb_commands for t, T and l.
6837 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
6838 * thread.c (_initialize_thread): Remove xdb_commands condition.
6839 * tui/tui-layout.c (tui_toggle_layout_command)
6840 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
6841 (_initialize_tui_layout): Remove xdb_commands for td and ts.
6842 * tui/tui-regs.c (tui_scroll_regs_forward_command)
6843 (tui_scroll_regs_backward_command): Remove.
6844 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
6845 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
6846 (_initialize_tui_win): Remove xdb_commands for U and w.
6847 * utils.c (pagination_on_command, pagination_off_command): Remove.
6848 (initialize_utils): Remove xdb_commands for am and sm.
6849
cb71640d
PA
68502015-04-10 Pedro Alves <palves@redhat.com>
6851
6852 * infrun.c (displaced_step_fixup): Switch to the event ptid
6853 earlier. If the thread stopped for a watchpoint and the
6854 target/arch has non-continuable watchpoints, cancel the displaced
6855 step.
6856 (resume): Don't start a displaced step if in-line step-over info
6857 is valid.
6858
8f572e5c
PA
68592015-04-10 Pedro Alves <palves@redhat.com>
6860
6861 * infrun.c (displaced_step_in_progress): New function.
6862 (do_target_resume): Advise target to report all signals if
6863 displaced stepping.
6864
8d707a12
PA
68652015-04-10 Pedro Alves <palves@redhat.com>
6866
6867 PR gdb/18216
6868 * infrun.c (process_event_stop_test): Don't assume a step-resume
6869 is set if tp->stepped_breakpoint is true.
6870
ef713951
YQ
68712015-04-10 Yao Qi <yao.qi@linaro.org>
6872
6873 * arm-tdep.c (install_alu_reg): Update comment.
6874 (thumb_copy_alu_reg): Remove local variable rn. Update
6875 debugging message. Use r2 instead of r1 in the modified
6876 instruction.
6877
906d60cf
PA
68782015-04-10 Pedro Alves <palves@redhat.com>
6879
6880 PR gdb/13858
6881 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
6882 linux_displaced_step_location as gdbarch_displaced_step_location
6883 hook.
6884 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6885 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6886 * linux-tdep.c (linux_displaced_step_location): New function,
6887 based on ppc_linux_displaced_step_location.
6888 * linux-tdep.h (linux_displaced_step_location): New declaration.
6889 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
6890 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
6891 Delete.
6892 (ppc_linux_init_abi): Install linux_displaced_step_location as
6893 gdbarch_displaced_step_location hook, even without Cell/B.E..
6894 (_initialize_ppc_linux_tdep): Don't install
6895 ppc_linux_inferior_created as inferior_created observer.
6896 * s390-linux-tdep.c (s390_gdbarch_init): Install
6897 linux_displaced_step_location as gdbarch_displaced_step_location
6898 hook.
6899
7823a941
GB
69002015-04-09 Gary Benson <gbenson@redhat.com>
6901
6902 * common/common-remote-fileio.h: Rename to...
6903 * common/fileio.h: ...this. Update all references.
6904 (remote_fileio_to_fio_error): Rename to...
6905 (host_to_fileio_error): ...this.
6906 (remote_fileio_to_be): Rename to...
6907 (host_to_bigendian): ...this. Update all callers.
6908 (remote_fileio_to_fio_uint): Rename to...
6909 (host_to_fileio_uint): ...this. Update all callers.
6910 (remote_fileio_to_fio_time): Rename to...
6911 (host_to_fileio_time): ...this. Update all callers.
6912 (remote_fileio_to_fio_stat): Rename to...
6913 (host_to_fileio_stat): ...this.
6914 Update all references.
6915 * common/common-remote-fileio.c: Rename to...
6916 * common/fileio.c: ...this. Update all references.
6917 (remote_fileio_to_fio_error): Rename to...
6918 (host_to_fileio_error): ...this. Update all callers.
6919 (remote_fileio_mode_to_target): Rename to...
6920 (fileio_mode_pack): ...this. Update all callers.
6921 (remote_fileio_to_fio_mode): Rename to...
6922 (host_to_fileio_mode): ...this. Update all callers.
6923 (remote_fileio_to_fio_ulong): Rename to...
6924 (host_to_fileio_ulong): ...this. Update all callers.
6925 (remote_fileio_to_fio_stat): Rename to...
6926 (host_to_fileio_stat): ...this. Update all callers.
6927
f2983cc3
AW
69282015-04-09 Andy Wingo <wingo@igalia.com>
6929
6930 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
6931 (frame_functions): Bind gdbscm_frame_read_register to
6932 frame-read-register.
6933 * guile/lib/gdb.scm (frame-read-register): Export.
6934
b88bb450
GB
69352015-04-09 Gary Benson <gbenson@redhat.com>
6936
6937 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
6938 New declaration.
6939 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
6940 New function, factored out the named functions below.
6941 * inf-child.c (gdb/fileio.h): Remove include.
6942 (common-remote-fileio.h): New include.
6943 (inf_child_errno_to_fileio_error): Remove function. Update
6944 all callers to use remote_fileio_to_fio_error.
6945 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
6946
2f2680f3
AW
69472015-04-09 Andy Wingo <wingo@igalia.com>
6948
6949 * MAINTAINERS (Write After Approval): Add Andy Wingo.
6950
5a2d4533
L
69512015-04-09 H.J. Lu <hongjiu.lu@intel.com>
6952
6953 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
6954 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
6955 * configure: Regenerated.
6956
421693b0
PA
69572015-04-09 Pedro Alves <palves@redhat.com>
6958
6959 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
6960 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
6961 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
6962 * gnulib/import/Makefile.am: Update.
6963 * gnulib/import/Makefile.in: Update.
6964 * gnulib/import/m4/gnulib-cache.m4: Update.
6965 * gnulib/import/m4/gnulib-comp.m4: Update.
6966 * gnulib/import/m4/strtok_r.m4: New file.
6967 * gnulib/import/strtok_r.c: New file.
6968
f543dc83
PA
69692015-04-09 Pedro Alves <palves@redhat.com>
6970
6971 * gnulib/update-gnulib.sh (aclocal version check): Filter out
6972 "called too early to check prototype".
6973
6d62641c
SDJ
69742015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
6975
6976 PR python/16699
6977 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
6978 use a caching mechanism. Adjust comments and code to reflect
6979 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
6980 (cmdpy_completer_handle_brkchars): Adjust call to
6981 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
6982 (cmdpy_completer): Likewise.
6983
85558555
YQ
69842015-04-08 Yao Qi <yao.qi@linaro.org>
6985
6986 * spu-tdep.c (spu_gdbarch_init): Don't call
6987 set_gdbarch_cannot_step_breakpoint.
6988
d249a14a
SDJ
69892015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
6990
6991 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
6992
8a06aea7
PA
69932015-04-07 Pedro Alves <palves@redhat.com>
6994
6995 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
6996 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
6997 (delete_exited_threads): New declaration.
6998 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
6999 * linux-nat.c (linux_nat_update_thread_list): New function.
7000 (linux_nat_add_target): Install it.
7001 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
7002 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
7003 (delete_exited_threads): New function.
7004
d9b67d9f
PA
70052015-04-07 Pedro Alves <pedro@codesourcery.com>
7006
7007 * infrun.c (resume) <displaced stepping debug output>: Get the
7008 leader thread's regcache, not resume_ptid's.
7009
2c26b84f
DE
70102015-04-06 Doug Evans <xdje42@gmail.com>
7011
7012 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
7013 VAR_DOMAIN.
7014 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
7015 Include symbol domain in debugging output.
7016
7a85168d
PA
70172015-04-06 Pedro Alves <palves@redhat.com>
7018 Bernd Edlinger <bernd.edlinger@hotmail.de>
7019
7020 * configure.ac: Remove the mingw32-specific stub-termcap.o
7021 fallback, and instead fallback to the stub termcap on all hosts.
7022 * configure: Regenerate.
7023 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
7024 symbols.
7025
25755e2b
PMR
70262015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
7027
7028 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
7029 "top_level" parameter.
7030 (resolve_dynamic_type_internal): Remove the unused "top_level"
7031 parameter. Update call to is_dynamic_type_internal.
7032 (is_dynamic_type): Update call to is_dynamic_type_internal.
7033 (resolve_dynamic_range): Update call to
7034 resolve_dynamic_type_internal.
7035 (resolve_dynamic_union): Likewise.
7036 (resolve_dynamic_struct): Likewise.
7037 (resolve_dynamic_type): Likewise.
7038
961f4160
PMR
70392015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
7040
7041 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
7042 TYPE_CODE_REF types so that they are not considered as dynamic
7043 depending on the referenced type.
7044 (resolve_dynamic_type_internal): Likewise.
7045
39f3de7c
L
70462015-04-02 H.J. Lu <hongjiu.lu@intel.com>
7047
7048 * Makefile.in (top_srcdir): New.
7049 * configure: Regenerated.
7050
599bd15c
GB
70512015-04-02 Gary Benson <gbenson@redhat.com>
7052
7053 * NEWS: Announce the new default sysroot of "target:".
7054
fed040c6
GB
70552015-04-02 Gary Benson <gbenson@redhat.com>
7056
7057 * main.c (captured_main): Set gdb_sysroot to "target:"
7058 if not otherwise set.
7059
64c0b5de
GB
70602015-04-02 Gary Benson <gbenson@redhat.com>
7061
7062 * exec.c (exec_file_attach): Support "target:" filenames.
7063
b57fbfba
GB
70642015-04-02 Gary Benson <gbenson@redhat.com>
7065
7066 * solib.c (solib_find): Strip "target:" prefix from sysroot
7067 if accessing local files.
7068
97a41605
GB
70692015-04-02 Gary Benson <gbenson@redhat.com>
7070
7071 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
7072 checks and error messages.
7073
2938e6cf
GB
70742015-04-02 Gary Benson <gbenson@redhat.com>
7075
7076 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
7077 (remote_filename_p): Remove declaration.
7078 (remote_bfd_open): Likewise.
7079 * remote.c (remote_bfd_iovec_open): Remove function.
7080 (remote_bfd_iovec_close): Likewise.
7081 (remote_bfd_iovec_pread): Likewise.
7082 (remote_bfd_iovec_stat): Likewise.
7083 (remote_filename_p): Likewise.
7084 (remote_bfd_open): Likewise.
7085 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
7086 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
7087 (gdb_bfd_open_maybe_remote): Remove function.
7088 (symfile_bfd_open): Replace remote filename check with
7089 target filename check.
7090 (reread_symbols): Use gdb_bfd_open.
7091 * build-id.c (gdbcore.h): New include.
7092 (build_id_to_debug_bfd): Use gdb_bfd_open.
7093 * infcmd.c (attach_command_post_wait): Remove remote filename
7094 check.
7095 * solib.c (solib_find): Replace remote-specific handling with
7096 target-specific handling. Update comments where necessary.
7097 (solib_bfd_open): Replace remote-specific handling with
7098 target-specific handling.
7099 (gdb_sysroot_changed): New function.
7100 (_initialize_solib): Call the above when gdb_sysroot changes.
7101 * windows-tdep.c (gdbcore.h): New include.
7102 (windows_xfer_shared_library): Use gdb_bfd_open.
7103
f08e97fe
GB
71042015-04-02 Gary Benson <gbenson@redhat.com>
7105
7106 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
7107 (is_target_filename): New declaration.
7108 (gdb_bfd_has_target_filename): Likewise.
7109 (gdb_bfd_open): Update documentation comment.
7110 * gdb_bfd.c (target.h): New include.
7111 (gdb/fileio.h): Likewise.
7112 (is_target_filename): New function.
7113 (gdb_bfd_has_target_filename): Likewise.
7114 (fileio_errno_to_host): Likewise.
7115 (gdb_bfd_iovec_fileio_open): Likewise.
7116 (gdb_bfd_iovec_fileio_pread): Likewise.
7117 (gdb_bfd_iovec_fileio_close): Likewise.
7118 (gdb_bfd_iovec_fileio_fstat): Likewise.
7119 (gdb_bfd_open): Use target fileio to access paths prefixed
7120 with "target:" where necessary.
7121
4bd7dc42
GB
71222015-04-02 Gary Benson <gbenson@redhat.com>
7123
7124 * target.h (struct target_ops) <to_filesystem_is_local>:
7125 New field.
7126 (target_filesystem_is_local): New macro.
7127 * target-delegates.c: Regenerate.
7128 * remote.c (remote_filesystem_is_local): New function.
7129 (init_remote_ops): Initialize to_filesystem_is_local.
7130
9b15c1f0
GB
71312015-04-02 Gary Benson <gbenson@redhat.com>
7132
7133 * target.h (struct target_ops) <to_fileio_fstat>: New field.
7134 (target_fileio_fstat): New declaration.
7135 * target.c (target_fileio_fstat): New function.
7136 * inf-child.c (inf_child_fileio_fstat): Likewise.
7137 (inf_child_target): Initialize to_fileio_fstat.
7138 * remote.c (init_remote_ops): Likewise.
7139
d11916aa
SS
71402015-04-01 Sasha Smundak <asmundak@google.com>
7141
7142 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
7143 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
7144 (py-unwind.o): New recipe.
7145 * NEWS: mention Python frame unwinding.
7146 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
7147 gdb/unwinder.py and gdb/command/unwinder.py
7148 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
7149 list.
7150 (execute_unwinders): New function.
7151 * python/lib/gdb/command/unwinders.py: New file.
7152 * python/lib/gdb/unwinder.py: New file.
7153 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
7154 (objfpy_dealloc): Decrement frame_unwinders reference count.
7155 (objfpy_initialize): Create frame_unwinders list.
7156 (objfpy_get_frame_unwinders): New function.
7157 (objfpy_set_frame_unwinders): Ditto.
7158 (objfile_getset): Add frame_unwinders attribute to Objfile.
7159 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
7160 (pspy_dealloc): Decrement frame_unwinders reference count.
7161 (pspy_initialize): Create frame_unwinders list.
7162 (pspy_get_frame_unwinders): New function.
7163 (pspy_set_frame_unwinders): Ditto.
7164 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
7165 * python/py-unwind.c: New file.
7166 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
7167 (objpy_get_frame_unwinders): New prototype.
7168 (gdbpy_initialize_unwind): New prototype.
7169 * python/python.c (gdbpy_apply_type_printers): Call
7170 gdbpy_initialize_unwind.
7171
6b403daa
PA
71722015-04-01 Pedro Alves <palves@redhat.com>
7173
7174 * infrun.c (resume): Check currently_stepping after clearing
7175 stepped_breakpoint, not before.
7176
1176ecec
PA
71772015-04-01 Pedro Alves <palves@redhat.com>
7178
7179 * infrun.c (print_target_wait_results): Print all the ptid
7180 elements.
7181
de1fe8c8
PA
71822015-04-01 Pedro Alves <palves@redhat.com>
7183
7184 * infrun.c (keep_going): Also discard cleanups if inserting
7185 breakpoints fails.
7186
e6f5c25b
PA
71872015-04-01 Pedro Alves <palves@redhat.com>
7188
7189 * infrun.c (wait_for_inferior): Install the
7190 finish_thread_state_cleanup cleanup across the whole function, not
7191 just around handle_inferior_event.
7192
1ac806b8
PA
71932015-04-01 Pedro Alves <palves@redhat.com>
7194
7195 * infrun.c (resume) <step past permanent breakpoint>: Use
7196 do_target_resume.
7197
2ee52aa4
PA
71982015-04-01 Pedro Alves <palves@redhat.com>
7199
7200 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
7201
5445da1b
PMR
72022015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
7203
7204 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
7205
4eec2deb
PA
72062015-04-01 Pedro Alves <palves@redhat.com>
7207
7208 * linux-thread-db.c (record_thread): Readd the thread to gdb's
7209 list if it was marked exited.
7210
afa59b79
L
72112015-04-01 H.J. Lu <hongjiu.lu@intel.com>
7212
7213 * configure: Regenerated.
7214
df8411da
SDJ
72152015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
7216 Jan Kratochvil <jan.kratochvil@redhat.com>
7217 Oleg Nesterov <oleg@redhat.com>
7218
7219 PR corefiles/16092
7220 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
7221 New enum identifying the various options of the coredump_filter
7222 file.
7223 (struct smaps_vmflags): New struct.
7224 (use_coredump_filter): New variable.
7225 (decode_vmflags): New function.
7226 (mapping_is_anonymous_p): Likewise.
7227 (dump_mapping_p): Likewise.
7228 (linux_find_memory_regions_full): New variables
7229 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
7230 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
7231 parsing of its information. Implement memory mapping filtering
7232 based on its contents.
7233 (show_use_coredump_filter): New function.
7234 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
7235 * NEWS: Mention the possibility of using the
7236 '/proc/PID/coredump_filter' file when generating a corefile.
7237 Mention new command 'set use-coredump-filter'.
7238
416f679e
SDJ
72392015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
7240
7241 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
7242 read_memory_unsigned_integer.
7243
711a72d3
L
72442015-03-31 H.J. Lu <hongjiu.lu@intel.com>
7245
7246 * Makefile.in (ZLIB): New.
7247 (ZLIBINC): Likewise.
7248 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
7249 (CLIBS): Add $(ZLIB).
7250 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
7251 Add -lz to LIBS.
7252 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
7253 * top.c (print_gdb_configuration): Remove --with-zlib and
7254 --without-zlib.
7255 * config.in: Regenerated.
7256 * configure: Likewise.
7257
d33279b3
AT
72582015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7259
7260 * NEWS: Mention info os cpus support.
7261 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
7262 (struct osdata_type): Add cpus entry, reorder the entries in
7263 alphabetical order.
7264
71b30f27
MK
72652015-03-31 Matthias Klose <doko@ubuntu.com>
7266
7267 * compile/compile.c (compile_to_object): Allow triplets with or
7268 without vendor set.
7269
13ce9222
DE
72702015-03-30 Doug Evans <dje@google.com>
7271
7272 PR c++/18141
7273 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
7274 klass in VAR_DOMAIN.
7275
20f796c9
GB
72762015-03-30 Gary Benson <gbenson@redhat.com>
7277
7278 * remote.c (remote_mourn_1): Remove function. Update all callers
7279 to use remote_mourn.
7280 (extended_remote_mourn_1): Remove function. Update all callers
7281 to use extended_remote_mourn.
7282 (extended_remote_attach_1): Remove function. Update all callers
7283 to use extended_remote_attach.
7284
49d45b20
JB
72852015-03-28 James Bowman <james.bowman@ftdichip.com>
7286
7287 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
7288 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
7289 (ALLDEPFILES): Add ft32-tdep.c.
7290 * configure.tgt: Add FT32 entry.
7291 * ft32-tdep.c: New file, FT32 target-dependent code.
7292 * ft32-tdep.h: New file, FT32 target-dependent code.
7293
1c4ff080
JK
72942015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7295
7296 Revert:
7297 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7298 Code cleanup.
7299 * printcmd.c (print_command_1): Move expr variable scope.
7300
79498702
JB
73012015-03-27 Joel Brobecker <brobecker@adacore.com>
7302
7303 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
7304
ce9c0ca1
AK
73052015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
7306
7307 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
7308 sections.
7309
429e1e81
JB
73102015-03-26 Joel Brobecker <brobecker@adacore.com>
7311
7312 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
7313 exception raised while parsing the probe arguments.
7314 Force parsing to be done using the C language parser.
7315 * expression.h (parse_expression_with_language): Declare.
7316 * parse.c (parse_expression_with_language): New function.
7317
4593441b
JT
73182015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
7319
7320 * MAINTAINERS (Write After Approval): Add "Jon Turney".
7321
ff908ebf
AW
73222015-03-26 Andy Wingo <wingo@igalia.com>
7323
7324 PR symtab/18148
7325 * dwarf2read.c (struct partial_die_info): Add has_const_value
7326 member.
7327 (add_partial_symbol): Don't punt on symbols that have const_value
7328 attributes.
7329 (read_partial_die): Detect DW_AT_const_value.
7330
f30d5c78
JK
73312015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7332
7333 Code cleanup.
7334 * printcmd.c (print_command_1): Move expr variable scope.
7335
8d89f51a
JK
73362015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7337
7338 Code cleanup.
7339 * printcmd.c (validate_format): Make the parameter cmdname const.
7340
0b736949
DB
73412015-03-26 Don Breazeal <donb@codesourcery.com>
7342
7343 * remote.c (_initialize_remote): Update comment.
7344
20d35291
PA
73452015-03-26 Pedro Alves <palves@redhat.com>
7346 Jon TURNEY <jon.turney@dronecode.org.uk>
7347
7348 * coffread.c (coff_symfile_read): When constructing the name of an
7349 import stub symbol from import symbol for amd64, only skip the
7350 char after _imp_ if the target is underscored (like i386) and the
7351 char is indeed the target's leading char.
7352
6a3753b3
PA
73532015-03-25 Pedro Alves <palves@redhat.com>
7354
7355 * target.h <to_async>: Replace 'callback' and 'context' parameters
7356 with boolean 'enable' parameter.
7357 (target_async): Replace CALLBACK and CONTEXT parameters with
7358 boolean ENABLE parameter.
7359 * inf-loop.c (inferior_event_handler): Adjust.
7360 * linux-nat.c (linux_nat_attach, linux_nat_resume)
7361 (linux_nat_resume): Adjust.
7362 (async_client_callback, async_client_context): Delete.
7363 (handle_target_event): Call inferior_event_handler directly.
7364 (linux_nat_async): Replace 'callback' and 'context' parameters
7365 with boolean 'enable' parameter. Adjust. Remove references to
7366 async_client_callback and async_client_context.
7367 (linux_nat_close): Adjust.
7368 * record-btrace.c (record_btrace_async): Replace 'callback' and
7369 'context' parameters with boolean 'enable' parameter. Adjust.
7370 (record_btrace_resume): Adjust.
7371 * record-full.c (record_full_async): Replace 'callback' and
7372 'context' parameters with boolean 'enable' parameter. Adjust.
7373 (record_full_resume, record_full_core_resume): Adjust.
7374 * remote.c (struct remote_state) <async_client_callback,
7375 async_client_context>: Delete fields.
7376 (remote_start_remote, extended_remote_attach_1, remote_resume)
7377 (extended_remote_create_inferior): Adjust.
7378 (remote_async_serial_handler): Call inferior_event_handler
7379 directly.
7380 (remote_async): Replace 'callback' and 'context' parameters with
7381 boolean 'enable' parameter. Adjust.
7382 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
7383 Adjust.
7384 * target-delegates.c: Regenerate.
7385
1c4b552b
GB
73862015-03-25 Gary Benson <gbenson@redhat.com>
7387 Pedro Alves <palves@redhat.com>
7388
7389 * target.c (fileio_ft_t): New typedef, define object vector.
7390 (fileio_fhandles): New static variable.
7391 (is_closed_fileio_fh): New macro.
7392 (lowest_closed_fd): New static variable.
7393 (acquire_fileio_fd): New function.
7394 (release_fileio_fd): Likewise.
7395 (fileio_fd_to_fh): New macro.
7396 (target_fileio_open): Wrap the file descriptor on success.
7397 (target_fileio_pwrite): Updated to use wrapped file descriptor.
7398 (target_fileio_pread): Likewise.
7399 (target_fileio_close): Likewise.
7400
a25d8bf9
PA
74012015-03-24 Pedro Alves <palves@redhat.com>
7402
7403 * thread.c (thread_apply_all_command): Take exited threads into
7404 account.
7405
44a1ee51
PA
74062015-03-24 Pedro Alves <palves@redhat.com>
7407
7408 * infrun.c (resume, proceed): Mention
7409 switch_back_to_stepped_thread, not switch_back_to_stepping.
7410
f3263aa4
PA
74112015-03-24 Pedro Alves <palves@redhat.com>
7412
7413 * infrun.c (user_visible_resume_ptid): Rewrite going from
7414 most-locked to unlocked instead of the opposite. Move comment ...
7415 * infrun.h (user_visible_resume_ptid): ... here.
7416
2bf6fb9d
PA
74172015-03-24 Pedro Alves <palves@redhat.com>
7418
7419 * linux-nat.c (linux_nat_resume): Output debug logs before trying
7420 to resume the event lwp. Use the lwp's ptid instead of the passed
7421 in (maybe wildcard) ptid.
7422 (stop_wait_callback): Tweak debug log output.
7423 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
7424 TRAP_TRACE.
7425 (linux_nat_filter_event): In debug output, distinguish a
7426 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
7427 before trying to resume the lwp.
7428
283a9958
JB
74292015-03-24 Joel Brobecker <brobecker@adacore.com>
7430
7431 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
7432 pointer indirection.
7433 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
7434 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
7435
93a8e227
JB
74362015-03-24 Joel Brobecker <brobecker@adacore.com>
7437
7438 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
7439 Renames DYN_ATTR_DATA_LOCATION.
7440 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
7441 DYN_ATTR_DATA_LOCATION.
7442 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
7443 instead of DYN_ATTR_DATA_LOCATION.
7444
64ce06e4
PA
74452015-03-24 Pedro Alves <palves@redhat.com>
7446
7447 * breakpoint.c (until_break_command): Adjust call to proceed.
7448 * gdbthread.h (struct thread_control_state) <stepping_command>:
7449 New field.
7450 * infcall.c (run_inferior_call): Adjust call to proceed.
7451 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
7452 Adjust calls to proceed.
7453 (set_step_frame): Set the current thread's step_start_function
7454 here.
7455 (step_once): Adjust calls to proceed.
7456 (jump_command, signal_command, until_next_command)
7457 (finish_backward, finish_forward, proceed_after_attach_callback)
7458 (attach_command_post_wait): Adjust calls to proceed.
7459 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
7460 (do_target_resume): New function, factored out from ...
7461 (resume): ... here. Remove 'step' parameter. Instead, check
7462 currently_stepping to determine whether the thread should be
7463 single-stepped.
7464 (proceed): Remove 'step' parameter and don't set the thread's
7465 step_start_function here. Adjust call to 'resume'.
7466 (handle_inferior_event): Adjust calls to 'resume'.
7467 (switch_back_to_stepped_thread): Use do_target_resume instead of
7468 'resume'.
7469 (keep_going): Adjust calls to 'resume'.
7470 * infrun.h (proceed): Remove 'step' parameter.
7471 (resume): Likewise.
7472 * windows-nat.c (do_initial_windows_stuff): Adjust call to
7473 'resume'.
7474 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
7475
856e7dd6
PA
74762015-03-24 Pedro Alves <palves@redhat.com>
7477
7478 * gdbthread.h (struct thread_control_state) <stepping_command>:
7479 New field.
7480 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
7481 the thread's stepping_command field.
7482 * infrun.c (resume): Check the thread's stepping_command flag to
7483 determine which threads should be resumed. Rename 'entry_step'
7484 local to user_step.
7485 (clear_proceed_status_thread): Clear 'stepping_command'.
7486 (schedlock_applies): Change parameter type to struct thread_info
7487 pointer. Adjust.
7488 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
7489 (switch_back_to_stepped_thread): Adjust calls to
7490 'schedlock_applies'.
7491 (_initialize_infrun): Adjust "set scheduler-locking step" help.
7492
885eeb5b
PA
74932015-03-24 Pedro Alves <palves@redhat.com>
7494
7495 * infrun.c (step_start_function): Delete and ...
7496 * gdbthread.h (struct thread_control_state) <step_start_function>:
7497 ... now a field here.
7498 * infrun.c (clear_proceed_status_thread): Clear the thread's
7499 step_start_function.
7500 (proceed, process_event_stop_test, print_stop_event): Adjust.
7501
3333f03a
PA
75022015-03-24 Pedro Alves <palves@redhat.com>
7503
7504 * infrun.c (proceed): No longer handle negative step.
7505
369f6daa
GB
75062015-03-24 Gary Benson <gbenson@redhat.com>
7507
7508 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
7509 (x86_linux_prepare_to_resume): Likewise.
7510 * x86-linux-nat.c (x86_linux_new_thread):
7511 Moved to nat/x86-linux.c.
7512 (x86_linux_prepare_to_resume): Likewise.
7513 * nat/x86-linux.c (x86_linux_new_thread): New function.
7514 (x86_linux_prepare_to_resume): Likewise.
7515
8e5d4070
GB
75162015-03-24 Gary Benson <gbenson@redhat.com>
7517
7518 * nat/x86-linux-dregs.h: New file.
7519 * nat/x86-linux-dregs.c: Likewise.
7520 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
7521 (x86-linux-dregs.o): New rule.
7522 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
7523 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7524 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
7525 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
7526 (x86_linux_dr_get): Likewise.
7527 (x86_linux_dr_set): Likewise.
7528 (x86_linux_dr_get_addr): Likewise.
7529 (x86_linux_dr_get_control): Likewise.
7530 (x86_linux_dr_get_status): Likewise.
7531 (update_debug_registers_callback): Likewise.
7532 (x86_linux_dr_set_control): Likewise.
7533 (x86_linux_dr_set_addr): Likewise.
7534 (x86_linux_update_debug_registers): Likewise.
7535
2b95d440
GB
75362015-03-24 Gary Benson <gbenson@redhat.com>
7537
7538 * x86-linux-nat.c (x86_linux_update_debug_registers):
7539 New function, factored out from...
7540 (x86_linux_prepare_to_resume): ...this.
7541
14b0bc68
GB
75422015-03-24 Gary Benson <gbenson@redhat.com>
7543
7544 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
7545 (x86_linux_dr_set): Likewise.
7546 (x86_linux_dr_get_addr): Likewise.
7547 (x86_linux_dr_get_control): Likewise.
7548 (x86_linux_dr_get_status): Likewise.
7549 (update_debug_registers_callback): Likewise.
7550 (x86_linux_dr_set_control): Likewise.
7551 (x86_linux_dr_set_addr): Likewise.
7552 (x86_linux_prepare_to_resume): Likewise.
7553 (x86_linux_new_thread): Likewise.
7554
5dfe6ca8
GB
75552015-03-24 Gary Benson <gbenson@redhat.com>
7556
7557 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
7558 (x86_linux_new_thread): Rename argument.
7559
4b134ca1
GB
75602015-03-24 Gary Benson <gbenson@redhat.com>
7561
7562 * nat/x86-linux.h: New file.
7563 * nat/x86-linux.c: Likewise.
7564 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
7565 (x86-linux.o): New rule.
7566 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
7567 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7568 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
7569 (lwp_set_arch_private_info): New declaration.
7570 (lwp_arch_private_info): Likewise.
7571 * linux-nat.c (lwp_set_arch_private_info): New function.
7572 (lwp_arch_private_info): Likewise.
7573 * x86-linux-nat.c: Include nat/x86-linux.h.
7574 (arch_lwp_info): Removed structure.
7575 (update_debug_registers_callback):
7576 Use lwp_set_debug_registers_changed.
7577 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7578 and lwp_set_debug_registers_changed.
7579 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7580
cff068da
GB
75812015-03-24 Gary Benson <gbenson@redhat.com>
7582
7583 * nat/linux-nat.h (ptid_of_lwp): New declaration.
7584 (lwp_is_stopped): Likewise.
7585 (lwp_stop_reason): Likewise.
7586 * linux-nat.c (ptid_of_lwp): New function.
7587 (lwp_is_stopped): Likewise.
7588 (lwp_is_stopped_by_watchpoint): Likewise.
7589 * x86-linux-nat.c (update_debug_registers_callback):
7590 Use lwp_is_stopped.
7591 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7592 lwp_stop_reason.
7593
b2f7c7e8
GB
75942015-03-24 Gary Benson <gbenson@redhat.com>
7595
7596 * linux-nat.h (linux_stop_lwp): Move declaration to...
7597 * nat/linux-nat.h (linux_stop_lwp): New declaration.
7598
6d4ee8c6
GB
75992015-03-24 Gary Benson <gbenson@redhat.com>
7600
7601 * linux-nat.h: Include nat/linux-nat.h.
7602 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
7603 * nat/linux-nat.h (struct lwp_info): New forward declaration.
7604 (iterate_over_lwps_ftype): New typedef.
7605 (iterate_over_lwps): New declaration.
7606 * linux-nat.h (iterate_over_lwps): Update comment. Use
7607 iterate_over_lwps_ftype. Update callback return value check.
7608
70a0bb6b
GB
76092015-03-24 Gary Benson <gbenson@redhat.com>
7610
7611 * x86-nat.h (x86_debug_reg_state): Move declaration to...
7612 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
7613
7b669087
GB
76142015-03-24 Gary Benson <gbenson@redhat.com>
7615
7616 * nat/linux-nat.h (current_lwp_ptid): New declaration.
7617 * linux-nat.c (current_lwp_ptid): New function.
7618 * x86-linux-nat.c: Include nat/linux-nat.h.
7619 (x86_linux_dr_get_addr): Use current_lwp_ptid.
7620 (x86_linux_dr_get_control): Likewise.
7621 (x86_linux_dr_get_status): Likewise.
7622 (x86_linux_dr_set_control): Likewise.
7623 (x86_linux_dr_set_addr): Likewise.
7624
15630549
AT
76252015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
7626
7627 PR breakpoints/16466
7628 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
7629
8a4506c0
JB
76302015-03-23 Joel Brobecker <brobecker@adacore.com>
7631
7632 * ser-mingw.c (ser_windows_setparity): Fix indentation.
7633 * ser-unix.c (hardwire_setparity): Likewise.
7634
236af5e3
YG
76352015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
7636
7637 * NEWS: Mention set/show serial parity command.
7638 * monitor.c (monitor_open): Call serial_setparity.
7639 * remote.c (remote_open_1): Likewise.
7640 * ser-base.c (ser_base_serparity): New function.
7641 * ser-base.h (ser_base_setparity): Add declaration.
7642 * ser-go32.c (dos_ops): Set "setparity" field.
7643 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
7644 state.Parity.
7645 (ser_windows_setparity): New function.
7646 (hardwire_ops): Add ser_windows_setparity.
7647 (tty_ops): Add NULL for setparity field.
7648 (pipe_ops): Add ser_base_setparity.
7649 (tcp_ops): Likewise.
7650 * ser-pipe.c (pipe_ops): Likewise.
7651 * ser-tcp.c (tcp_ops): Likewise.
7652 * ser-unix.c (hardwire_setparity): Add declaration.
7653 (hardwire_raw): Don't reset PARENB flag.
7654 (hardwire_setparity): New function.
7655 (hardwire_ops): Add hardwire_setparity.
7656 * serial.c (serial_setparity): New function.
7657 (serial_parity): New global.
7658 (parity_none, parity_odd, parity_even, parity_enums, parity):
7659 New static globals.
7660 (set_parity): New function.
7661 (_initialize_serial): Add set/show serial parity commands.
7662 * serial.h (GDBPARITY_NONE): Define.
7663 (GDBPARITY_ODD): Define.
7664 (GDBPARITY_EVEN): Define.
7665 (serial_setparity) Add declaration.
7666 (struct serial_ops): Add setparity field.
7667 * target.h (serial_parity): Add declaration.
7668
32b40af9
KS
76692015-03-23 Keith Seitz <keiths@redhat.com>
7670
7671 * linespec.c (linespec_lexer_lex_keyword): Update comment.
7672
693dca06
KS
76732015-03-23 Keith Seitz <keiths@redhat.com>
7674
7675 * breakpoint.c (parse_breakpoint_sals): Use
7676 linespec_lexer_lex_keyword to ascertain if the user specified
7677 a NULL location.
7678 * linespec.c [IF_KEYWORD_INDEX]: Define.
7679 (linespec_lexer_lex_keyword): Export.
7680 (struct ls_parser) <keyword_ok>: Remove.
7681 A keyword is only a keyword if not followed by another keyword.
7682 (linespec_lexer_lex_one): Remove keyword_ok handling.
7683 Add comment explaining why the parsing stream is not advanced
7684 when a keyword is seen.
7685 (parse_linespec): Remove parser->keyword_ok.
7686 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
7687
7e993ebf
KS
76882015-03-23 Keith Seitz <keiths@redhat.com>
7689
7690 PR gdb/18021
7691 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
7692 if we find a static method with DW_AT_vtable_elem_location.
7693
b1a0f704
EZ
76942015-03-21 Eli Zaretskii <eliz@gnu.org>
7695
7696 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
7697 before the second loop, to avoid undefined behavior. Reported by
7698 Anton Blanchard <anton@samba.org>.
7699
d9823cbb
KB
77002015-03-20 Keven Boell <keven.boell@intel.com>
7701
7702 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
7703 data_location usage to linked list.
7704 (resolve_dynamic_type_internal): Adapt data_location to
7705 linked list.
7706 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
7707 (copy_type_recursive, copy_type): Add copy of linked list.
7708 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
7709 (struct dynamic_prop_list): New struct.
7710 * dwarf2read.c (set_die_type): Set data_location data.
7711
2e7bf1d7
PA
77122015-03-20 Pedro Alves <palves@redhat.com>
7713
7714 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
7715 inner block and make it const.
7716 * machoread.c (get_archive_prefix_len): Make "lparen" const.
7717
7a26bd4d
PA
77182015-03-20 Pedro Alves <palves@redhat.com>
7719
7720 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
7721 * breakpoint.h (set_breakpoint_condition): Update declaration.
7722
cd46431b
PA
77232015-03-20 Pedro Alves <palves@redhat.com>
7724
7725 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
7726
e28566f7
PA
77272015-03-20 Pedro Alves <palves@redhat.com>
7728
7729 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
7730
f6fc92f6
PA
77312015-03-20 Pedro Alves <palves@redhat.com>
7732
7733 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
7734
c32ed3ef
PA
77352015-03-20 Pedro Alves <palves@redhat.com>
7736
7737 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
7738 (nto_init_solib_absolute_prefix): Likewise.
7739
53e78085
PA
77402015-03-20 Pedro Alves <palves@redhat.com>
7741
7742 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
7743 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
7744
bc23328c
JK
77452015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7746
7747 * config/djgpp/README: Remove gdb.hp.
7748
e8ffc436
YQ
77492015-03-20 Yao Qi <yao.qi@linaro.org>
7750
7751 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7752 set_gdbarch_cannot_step_breakpoint.
7753
23f238d3
PA
77542015-03-19 Pedro Alves <palves@redhat.com>
7755
7756 * linux-nat.c (linux_resume_one_lwp): Rename to ...
7757 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
7758 instead call perror_with_name.
7759 (check_ptrace_stopped_lwp_gone): New function.
7760 (linux_resume_one_lwp): Reimplement as wrapper around
7761 linux_resume_one_lwp_throw that swallows errors if the LWP is
7762 gone.
7763 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
7764 swallows errors if the LWP is gone. Use
7765 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
7766
eb54c8bf
PA
77672015-03-19 Pedro Alves <palves@redhat.com>
7768
7769 * linux-nat.c (status_callback): Return early if the LWP has no
7770 status pending.
7771
b90fc188
PA
77722015-03-19 Pedro Alves <palves@redhat.com>
7773
7774 * linux-nat.c (select_event_lwp_callback): Update comment to no
7775 longer mention SIGTRAP.
7776
670f82d4
TG
77772015-03-18 Tristan Gingold <gingold@adacore.com>
7778
72f4393d
L
7779 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
7780 redirection code to ...
7781 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
7782 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 7783
464b0089
GB
77842015-03-18 Gary Benson <gbenson@redhat.com>
7785
7786 (remote_protocol_features): Remove the "vFile:fstat" feature.
7787 (remote_hostio_fstat): Probe for "vFile:fstat" support.
7788
f68f11b7
YQ
77892015-03-11 Yao Qi <yao.qi@linaro.org>
7790
7791 PR tdep/18107
7792 * aarch64-linux-tdep.c: Include xml-syscall.h
7793 (aarch64_linux_get_syscall_number): New function.
7794 (aarch64_linux_init_abi): Call
7795 set_gdbarch_get_syscall_number.
7796 * syscalls/aarch64-linux.xml: New file.
7797
393bd0c0
YG
77982015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
7799
7800 * ser-base.h (ser_base_setstopbits): Change second argument name
7801 from "rate" to "num".
7802
7f3647e2
GB
78032015-03-17 Gary Benson <gbenson@redhat.com>
7804 Luke Allardyce <lukeallardyce@gmail.com>
7805
7806 PR gdb/18131
7807 * common/common-remote-fileio.h (sys/stat.h): New include.
7808 (stuct stat): Remove forward declaration.
7809
3ce5b6e2
JB
78102015-03-16 John Baldwin <jhb@FreeBSD.org>
7811
7812 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
7813 before writing core register notes.
7814
d053f6be
YZ
78152015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
7816 Pedro Alves <palves@redhat.com>
7817
7818 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
7819 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
7820 (tgoto): Wrap with extern "C".
7821
b1a921c8
PA
78222015-03-16 Pedro Alves <palves@redhat.com>
7823 Yuanhui Zhang <asmwarrior@gmail.com>
7824
7825 * stub-termcap.c (tputs): Change prototype.
7826
876d1cd7
YZ
78272015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
7828 Pedro Alves <palves@redhat.com>
7829
7830 * windows-nat.c (struct thread_info_struct): Rename to ...
7831 (struct windows_thread_info_struct): ... this.
7832 (thread_info): Rename to ...
7833 (windows_thread_info): ... this.
7834 All users updated.
7835
0800b440
JK
78362015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7837 Pedro Alves <palves@redhat.com>
7838
7839 * NEWS: New Removed targets and native configurations.
7840
78412015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
7842
7843 Remove HPUX.
7844 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
7845 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
7846 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
7847 ia64-hpux-tdep.h, solib-ia64-hpux.h.
7848 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
7849 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
7850 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
7851 hppa-hpux-tdep.c.
7852 * config/ia64/hpux.mh: Remove file.
7853 * config/pa/hpux.mh: Remove file.
7854 * configure: Rebuilt.
7855 * configure.ac (dlgetmodinfo, somread.o): Remove.
7856 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7857 (ia64-*-hpux*): Remove its float format exception.
7858 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7859 * hppa-hpux-nat.c: Remove file.
7860 * hppa-hpux-tdep.c: Remove file.
7861 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
7862 Move them here from hppa-tdep.h
7863 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
7864 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
7865 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
7866 Move them to hppa-tdep.c.
7867 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
7868 declarations.
7869 * ia64-hpux-nat.c: Remove file.
7870 * ia64-hpux-tdep.c: Remove file.
7871 * ia64-hpux-tdep.h: Remove file.
7872 * inf-ttrace.c: Remove file.
7873 * inf-ttrace.h: Remove file.
7874 * solib-ia64-hpux.c: Remove file.
7875 * solib-ia64-hpux.h: Remove file.
7876 * solib-pa64.c: Remove file.
7877 * solib-pa64.h: Remove file.
7878 * solib-som.c: Remove file.
7879 * solib-som.h: Remove file.
7880 * somread.c: Remove file.
7881
25268153
JB
78822015-03-13 John Baldwin <jhb@FreeBSD.org>
7883
7884 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
7885 * config.in: Regenerate.
7886 * configure: Regenerate.
7887 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 7888 define.
25268153
JB
7889 (fbsd_find_memory_regions): Use kinfo_getvmmap to
7890 enumerate memory regions if present.
7891
773eacf5
JB
78922015-03-13 John Baldwin <jhb@FreeBSD.org>
7893
7894 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
7895 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
7896 expressions.
7897 (i386fbsd_sigtramp_p): Likewise.
7898
01b6bdb0
JB
78992015-03-12 John Baldwin <jhb@FreeBSD.org>
7900
7901 * MAINTAINERS (Write After Approval): Add John Baldwin.
7902
811a659a
GB
79032015-03-12 Gary Benson <gbenson@redhat.com>
7904
7905 * solib.c (_initialize_solib): Make "set/show sysroot" use
7906 add_setshow_optional_filename_cmd so it can be restored to
7907 empty after being set.
7908
10304ef3
SDJ
79092015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
7910
7911 * Makefile.in (SFILES): New source break-catch-syscall.c.
7912 (COMMON_OBS): New object break-catch-syscall.o.
7913 * break-catch-syscall.c: New file.
7914 * breakpoint.c: Remove inclusion of "xml-syscall.h".
7915 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
7916 (struct syscall_catchpoint): Likewise.
7917 (dtor_catch_syscall): Likewise.
7918 (catch_syscall_inferior_data): Likewise.
7919 (struct catch_syscall_inferior_data): Likewise.
7920 (get_catch_syscall_inferior_data): Likewise.
7921 (catch_syscall_inferior_data_cleanup): Likewise.
7922 (insert_catch_syscall): Likewise.
7923 (remove_catch_syscall): Likewise.
7924 (breakpoint_hit_catch_syscall): Likewise.
7925 (print_it_catch_syscall): Likewise.
7926 (print_one_catch_syscall): Likewise.
7927 (print_mention_catch_syscall): Likewise.
7928 (print_recreate_catch_syscall): Likewise.
7929 (catch_syscall_breakpoint_ops): Likewise.
7930 (syscall_catchpoint_p): Likewise.
7931 (create_syscall_event_catchpoint): Likewise.
7932 (catch_syscall_split_args): Likewise.
7933 (catch_syscall_command_1): Likewise.
7934 (is_syscall_catchpoint_enabled): Likewise.
7935 (catch_syscall_enabled): Likewise.
7936 (catching_syscall_number): Likewise.
7937 (catch_syscall_completer): Likewise.
7938 (clear_syscall_counts): Likewise.
7939 (initialize_breakpoint_ops): Move initialization of syscall
7940 catchpoints to break-catch-syscall.c.
7941 (_initialize_breakpoint): Move code related to syscall catchpoints
7942 to break-catch-syscall.c.
7943
badd37ce
SDJ
79442015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
7945
7946 * breakpoint.c (breakpoint_find_if): New function.
7947 * breakpoint.h (breakpoint_find_if): New prototype.
7948
0a93529c
GB
79492015-03-11 Gary Benson <gbenson@redhat.com>
7950
7951 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
7952 * remote-fileio.c (remote_fileio_to_host_uint): New function.
7953 (remote_fileio_to_host_ulong): Likewise.
7954 (remote_fileio_to_host_mode): Likewise.
7955 (remote_fileio_to_host_time): Likewise.
7956 (remote_fileio_to_host_stat): Likewise.
7957 * remote.c (PACKET_vFile_fstat): New enum value.
7958 (remote_protocol_features): Register the "vFile:fstat" feature.
7959 (remote_hostio_fstat): New function.
7960 (remote_bfd_iovec_stat): Use the above.
7961 (_initialize_remote): Register new "set/show remote
7962 hostio-fstat-packet" command.
7963 * symfile.c (separate_debug_file_exists): Update comment.
7964 * NEWS: Announce new vFile:fstat packet.
7965
791c0056
GB
79662015-03-11 Gary Benson <gbenson@redhat.com>
7967
7968 * common/common-remote-fileio.h: New file.
7969 * common/common-remote-fileio.c: Likewise.
7970 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7971 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
7972 (COMMON_OBS): Add common-remote-fileio.o.
7973 (common-remote-fileio.o): New rule.
7974 * remote-fileio.h (common-remote-fileio.h): New include.
7975 * remote-fileio.c (gdb/fileio.h): Do not include.
7976 (remote_fileio_to_be): Moved to common-remote-fileio.h.
7977 (remote_fileio_to_fio_uint): Likewise.
7978 (remote_fileio_to_fio_time): Likewise.
7979 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
7980 (remote_fileio_to_fio_mode): Likewise.
7981 (remote_fileio_to_fio_ulong): Likewise.
7982 (remote_fileio_to_fio_stat): Likewise.
7983
1390d0ef
AW
79842015-03-11 Andy Wingo <wingo@igalia.com>
7985
7986 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
7987 we were checking the cached type, not the cached dynamic type.
7988
84a4591a
AW
79892015-03-11 Andy Wingo <wingo@igalia.com>
7990
7991 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
7992 other strings, as these are on the GC'd heap, and will be
7993 collected along with the smob.
7994
85642ba0
AW
79952015-03-11 Andy Wingo <wingo@igalia.com>
7996
7997 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
7998 (objfile_functions): Bind gdbscm_objfile_progspace to
7999 objfile-progspace.
8000 * guile/lib/gdb.scm: Add objfile-progspace to exports.
8001
92fab5a6
AW
80022015-03-11 Andy Wingo <wingo@igalia.com>
8003
8004 * guile/guile.c (_initialize_guile): Disable automatic
8005 finalization, if Guile offers us that possibility.
8006 * guile/guile.c (call_initialize_gdb_module):
8007 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
8008 finalizers in appropriate places.
8009 * configure.ac (AC_TRY_LIBGUILE): Add a check for
8010 scm_set_automatic_finalization_enabled.
8011 * configure: Regenerated.
8012
f054145e
AA
80132015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
8014
8015 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
8016 SAL, if possible.
8017
18396193
AA
80182015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
8019
8020 * s390-linux-nat.c (struct arch_lwp_info): New.
8021 (s390_fix_watch_points): Rename to...
8022 (s390_prepare_to_resume): ...this. Skip the PER info update
8023 unless the watch points have changed.
8024 (s390_refresh_per_info, s390_new_thread): New functions.
8025 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
8026 s390_fix_watch_points.
8027 (s390_remove_watchpoint): Likewise.
8028 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
8029 Register s390_prepare_to_resume.
8030
9eb1356e
PA
80312015-03-09 Pedro Alves <palves@redhat.com>
8032
8033 Revert:
8034 2015-03-07 Pedro Alves <palves@redhat.com>
8035 * common/gdb_socket.h: New file.
8036 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
8037 sys/socket.h.
8038 (net_open): Use union gdb_sockaddr_u.
8039
aac331e4
PA
80402015-03-07 Pedro Alves <palves@redhat.com>
8041
8042 * configure.ac (build_warnings): Move -Wmissing-prototypes
8043 -Wdeclaration-after-statement -Wmissing-parameter-type
8044 -Wold-style-declaration -Wold-style-definition to the C-specific
8045 set.
8046 * configure: Regenerate.
8047
366c75fc
PA
80482015-03-07 Pedro Alves <palves@redhat.com>
8049
8050 * common/gdb_socket.h: New file.
8051 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
8052 sys/socket.h.
8053 (net_open): Use union gdb_sockaddr_u.
8054
72df25b2
PA
80552015-03-07 Pedro Alves <palves@redhat.com>
8056
8057 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
8058 (exceptions_state_mc_action_iter)
8059 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
8060 Don't define.
8061 [__cplusplus] (try_scope_depth): New global.
8062 [__cplusplus] (exception_try_scope_entry)
8063 (exception_try_scope_exit, gdb_exception_sliced_copy)
8064 (exception_rethrow): New functions.
8065 (throw_exception): In C++ mode, throw
8066 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
8067 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
8068 (throw_it): In C++ mode, use try_scope_depth.
8069 * common/common-exceptions.h [!__cplusplus]
8070 (exceptions_state_mc_action_iter)
8071 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
8072 Don't declare.
8073 [__cplusplus] (exception_try_scope_entry)
8074 (exception_try_scope_exit, exception_rethrow): Declare.
8075 [__cplusplus] (struct exception_try_scope): New struct.
8076 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
8077 C++ exceptions.
8078 (struct gdb_exception_RETURN_MASK_ALL)
8079 (struct gdb_exception_RETURN_MASK_ERROR)
8080 (struct gdb_exception_RETURN_MASK_QUIT): New types.
8081
284e6217
PA
80822015-03-07 Pedro Alves <palves@redhat.com>
8083
8084 * main.c (handle_command_errors): Remove volatile qualifier from
8085 parameter.
8086
6c63c96a
PA
80872015-03-07 Pedro Alves <palves@redhat.com>
8088
8089 * breakpoint.c (save_breakpoints): Adjust to avoid code between
8090 TRY and CATCH.
8091 * gdbtypes.c (safe_parse_type): Remove empty line.
8092 (types_deeply_equal):
8093 * guile/scm-frame.c (gdbscm_frame_name):
8094 * linux-thread-db.c (find_new_threads_once):
8095 * python/py-breakpoint.c (bppy_get_commands):
8096 * record-btrace.c (record_btrace_insert_breakpoint)
8097 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
8098 (record_btrace_start_replaying): Adjust to avoid code between TRY
8099 and CATCH.
8100
492d29ea
PA
81012015-03-07 Pedro Alves <palves@redhat.com>
8102
8103 * common/common-exceptions.c (struct catcher) <exception>: No
8104 longer a pointer to volatile exception. Now an exception value.
8105 <mask>: Delete field.
8106 (exceptions_state_mc_init): Remove all parameters. Adjust.
8107 (exceptions_state_mc): No longer pop the catcher here.
8108 (exceptions_state_mc_catch): New function.
8109 (throw_exception): Adjust.
8110 * common/common-exceptions.h (exceptions_state_mc_init): Remove
8111 all parameters.
8112 (exceptions_state_mc_catch): Declare.
8113 (TRY_CATCH): Rename to ...
8114 (TRY): ... this. Remove EXCEPTION and MASK parameters.
8115 (CATCH, END_CATCH): New.
8116 All callers adjusted.
8117
ece957c8
TT
81182015-03-07 Tom Tromey <tromey@redhat.com>
8119
8120 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
8121
7556d4a4
PA
81222015-03-07 Pedro Alves <palves@redhat.com>
8123
8124 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8125 (amd64_epilogue_frame_cache): Normal exception handling code.
8126 * break-catch-throw.c (check_status_exception_catchpoint)
8127 (re_set_exception_catchpoint): Ditto.
8128 * cli/cli-interp.c (safe_execute_command):
8129 * cli/cli-script.c (script_from_file): Ditto.
8130 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
8131 Ditto.
8132 * compile/compile-object-run.c (compile_object_run): Ditto.
8133 * cp-abi.c (baseclass_offset): Ditto.
8134 * cp-valprint.c (cp_print_value): Ditto.
8135 * exceptions.c (catch_exceptions_with_msg):
8136 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
8137 * frame.c (get_frame_address_in_block_if_available): Ditto.
8138 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8139 (i386_sigtramp_frame_cache): Ditto.
8140 * infcmd.c (post_create_inferior): Ditto.
8141 * linespec.c (parse_linespec, find_linespec_symbols):
8142 * p-valprint.c (pascal_object_print_value): Ditto.
8143 * parse.c (parse_expression_for_completion): Ditto.
8144 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
8145 * remote.c (remote_get_noisy_reply): Ditto.
8146 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
8147 * solib-svr4.c (solib_svr4_r_map): Ditto.
8148
f873665f 81492015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
8150
8151 * common/common-utils.h (startswith): New inline function.
8152 All places where this logic was used updated to use the above.
8153
68901c4d
PA
81542015-03-05 Pedro Alves <palves@redhat.com>
8155
8156 PR gdb/18002
8157 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
8158 after reading the breakpoint's shadow memory.
8159
2dcb2b1a
MK
81602015-03-05 Mark Kettenis <kettenis@gnu.org>
8161
8162 * hppabsd-nat.c: Remove file.
8163 * hppaobsd-nat.c: New file.
8164 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
8165 hppaobsd-nat.c.
8166 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
8167 hppaobsd-nat.o.
8168
527a273a
PA
81692015-03-04 Pedro Alves <palves@redhat.com>
8170
8171 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
8172 (target_decr_pc_after_break): Delete declaration.
8173 * target.c (default_target_decr_pc_after_break)
8174 (target_decr_pc_after_break): Delete.
8175 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
8176 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
8177 * linux-thread-db.c (check_event): Likewise.
8178 * infrun.c (adjust_pc_after_break): Likewise.
8179 * darwin-nat.c (cancel_breakpoint): Likewise.
8180 * aix-thread.c (aix_thread_wait): Likewise.
8181 * target-delegates.c: Regenerate.
8182
faf09f01
PA
81832015-03-04 Pedro Alves <palves@redhat.com>
8184
8185 * linux-nat.c (save_sigtrap): Check for breakpoints before
8186 checking watchpoints.
8187 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
8188 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
8189 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
8190 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
8191 (linux_nat_stopped_by_sw_breakpoint)
8192 (linux_nat_supports_stopped_by_sw_breakpoint)
8193 (linux_nat_stopped_by_hw_breakpoint)
8194 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
8195 (linux_nat_wait_1): Don't re-increment the PC if relying on
8196 SIGTRAP's siginfo->si_code.
8197 (linux_nat_add_target): Install new target methods.
8198 * linux-thread-db.c (check_event): Don't account for breakpoint PC
8199 offset if the target already adjusted the PC.
8200 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
8201 (GDB_ARCH_TRAP_BRKPT): New.
8202 (TRAP_HWBKPT): Define if not already defined.
8203
f7e6eed5
PA
82042015-03-04 Pedro Alves <palves@redhat.com>
8205
8206 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
8207 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
8208 Delete field.
8209 <stop_reason>: New field.
8210 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
8211 (packet_set_cmd_state): New function.
8212 (remote_protocol_features): Register the "swbreak" and "hwbreak"
8213 features.
8214 (remote_query_supported): If not disabled with the corresponding
8215 "set remote foo-packet" command, report support for the swbreak
8216 and hwbreak features.
8217 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
8218 field.
8219 <stop_reason>: New field.
8220 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
8221 (remote_wait_as): Adjust.
8222 (remote_stopped_by_sw_breakpoint)
8223 (remote_supports_stopped_by_sw_breakpoint)
8224 (remote_stopped_by_hw_breakpoint)
8225 (remote_supports_stopped_by_hw_breakpoint): New functions.
8226 (remote_stopped_by_watchpoint): New function.
8227 (init_remote_ops): Install them.
8228 (_initialize_remote): Register new "set/show remote
8229 swbreak-feature-packet" and "set/show remote
8230 swbreak-feature-packet" commands.
8231
9e8915c6
PA
82322015-03-04 Pedro Alves <palves@redhat.com>
8233
8234 * btrace.h: Include target/waitstatus.h.
8235 (struct btrace_thread_info) <stop_reason>: New field.
8236 * record-btrace.c (record_btrace_step_thread): Use
8237 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
8238 (record_btrace_decr_pc_after_break): Delete.
8239 (record_btrace_stopped_by_sw_breakpoint)
8240 (record_btrace_supports_stopped_by_sw_breakpoint)
8241 (record_btrace_stopped_by_hw_breakpoint)
8242 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
8243 (init_record_btrace_ops): Install them.
8244 * record-full.c (record_full_hw_watchpoint): Delete and replace
8245 with ...
8246 (record_full_stop_reason): ... this throughout.
8247 (record_full_exec_insn): Adjust.
8248 (record_full_wait_1): Adjust. No longer re-increment the PC.
8249 (record_full_wait_1): Adjust. Use
8250 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
8251 (record_full_stopped_by_watchpoint): Adjust.
8252 (record_full_stopped_by_sw_breakpoint)
8253 (record_full_supports_stopped_by_sw_breakpoint)
8254 (record_full_supports_stopped_by_sw_breakpoint)
8255 (record_full_stopped_by_hw_breakpoint)
8256 (record_full_supports_stopped_by_hw_breakpoint): New functions.
8257 (init_record_full_ops, init_record_full_core_ops): Install them.
8258 * record.c (record_check_stopped_by_breakpoint): New function.
8259 * record.h: Include target/waitstatus.h.
8260 (record_check_stopped_by_breakpoint): New declaration.
8261
15c66dd6
PA
82622015-03-04 Pedro Alves <palves@redhat.com>
8263
8264 enum lwp_stop_reason -> enum target_stop_reason
8265 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
8266 (linux_nat_stopped_by_watchpoint, status_callback)
8267 (linux_nat_wait_1): Adjust.
8268 * linux-nat.h (enum lwp_stop_reason): Delete.
8269 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
8270 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
8271 * target/waitstatus.h (enum target_stop_reason): New.
8272
1cf4d951
PA
82732015-03-04 Pedro Alves <palves@redhat.com>
8274
8275 * breakpoint.c (need_moribund_for_location_type): New function.
8276 (bpstat_stop_status): Don't skipping checking moribund locations
8277 of breakpoint types which the target tell caused a stop.
8278 (program_breakpoint_here_p): New function, factored out from ...
8279 (bp_loc_is_permanent): ... this.
8280 (update_global_location_list): Don't create a moribund location if
8281 the target supports reporting stops of the type of the removed
8282 breakpoint.
8283 * breakpoint.h (program_breakpoint_here_p): New declaration.
8284 * infrun.c (adjust_pc_after_break): Return early if the target has
8285 already adjusted the PC. Add comments.
8286 (handle_signal_stop): If nothing explains a signal, and the target
8287 tells us the stop was caused by a software breakpoint, check if
8288 there's a breakpoint instruction in the memory. If so, adjust the
8289 PC before presenting the stop to the user. Otherwise, ignore the
8290 trap. If nothing explains a signal, and the target tells us the
8291 stop was caused by a hardware breakpoint, ignore the trap.
8292 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
8293 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
8294 to_supports_stopped_by_hw_breakpoint>: New fields.
8295 (target_stopped_by_sw_breakpoint)
8296 (target_supports_stopped_by_sw_breakpoint)
8297 (target_stopped_by_hw_breakpoint)
8298 (target_supports_stopped_by_hw_breakpoint): Define.
8299 * target-delegates.c: Regenerate.
8300
79639e11
PA
83012015-03-04 Pedro Alves <palves@redhat.com>
8302
8303 * infrun.c (follow_fork_inferior): Use the whole of the
8304 inferior_ptid and pending_follow.related_pid ptids instead of
8305 building ptids from the process components. Adjust verbose output
8306 to use target_pid_to_str.
8307 * linux-nat.c (linux_child_follow_fork): Use the whole of the
8308 inferior_ptid and pending_follow.related_pid ptids instead of
8309 building ptids from the process components.
8310
e85e8e5e
MK
83112015-03-04 Mark Kettenis <kettenis@gnu.org>
8312
8313 * inf-ptrace.c [PT_GET_PROCESS_STATE]
8314 (inf_ptrace_insert_fork_catchpoint): New function.
8315 (inf_ptrace_remove_fork_catchpoint): New function.
8316 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
8317
87de11c0
AA
83182015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8319
8320 * s390-linux-tdep.c (s390_register_name): Return empty string
8321 instead of NULL for registers that shouldn't be visible.
8322
d851a69a
AA
83232015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8324
8325 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
8326 XML file for 64-bit targets.
8327
b072f6c1
SM
83282015-03-03 Simon Marchi <simon.marchi@ericsson.com>
8329
8330 * target.h (find_default_create_inferior): Remove declaration.
8331 (find_default_attach): Likewise.
8332
c1593e4f
PA
83332015-03-03 Pedro Alves <palves@redhat.com>
8334
8335 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
8336 Use ptid_get_pid to get the overall process id when resuming all
8337 threads.
8338
90ad5e1d
PA
83392015-03-03 Pedro Alves <palves@redhat.com>
8340
8341 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
8342 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
8343 * inf-ptrace.c (get_ptrace_pid): New function.
8344 (inf_ptrace_resume): Use it.
8345 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
8346 to the lower layer.
8347
d68e53f4
MM
83482015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8349
8350 * nat/linux-btrace.c: Include sys/utsname.h.
8351 (linux_determine_kernel_ptr_bits): New.
8352 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
8353 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
8354 ptr_bits.
8355
986b6601
MM
83562015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8357
8358 * btrace.c (ftrace_update_function): Treat return as tailcall for
8359 "_dl_runtime_resolve".
8360
ce0dfbea
MM
83612015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8362
8363 * btrace.h (btrace_function) <lbegin, lend>: Remove.
8364 * btrace.c (ftrace_debug): Do not print the line range.
8365 (ftrace_skip_file, ftrace_update_lines): Remove.
8366 (ftrace_new_function): Remove lbegin and lend initialization.
8367 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
8368 * record-btrace.c (btrace_compute_src_line_range): New.
8369 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
8370
95e50b27
PA
83712015-03-02 Pedro Alves <palves@redhat.com>
8372
8373 * infrun.c (follow_exec): Delete all threads of the process except
8374 the event thread. Extended comments.
8375
00e474c2
JB
83762015-03-02 Joel Brobecker <brobecker@adacore.com>
8377
8378 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
8379
cc7039d3
JB
83802015-03-02 Joel Brobecker <brobecker@adacore.com>
8381
8382 * utils.h: Remove <stdbool.h> #include.
8383 (producer_is_gcc): Change return type to "int".
8384 * utils.c (producer_is_gcc): Change return type to int.
8385 Return 1 instead of true, and 0 instead of false.
8386 Adjust function documentation accordingly.
8387
550bdf96
AA
83882015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8389
8390 * s390-linux-nat.c (have_regset_vxrs): New static variable.
8391 (s390_linux_fetch_inferior_registers): Handle vector registers, if
8392 present.
8393 (s390_linux_store_inferior_registers): Likewise.
8394 (s390_get_hwcap): Remove function. Embed its logic...
8395 (s390_read_description): ...here. Yield a target description with
8396 vector registers if applicable.
8397 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
8398 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
8399 "features/s390x-tevx-linux64.c".
8400 (struct gdbarch_tdep) <v0_full_regnum>: New field.
8401 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
8402 for "GNU/Linux-specific registers".
8403 (s390_dwarf_reg_r0l): New enum value.
8404 (s390_dwarf_reg_to_regnum): Support vector registers.
8405 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
8406 of GPR lower halves.
8407 (regnum_is_vxr_full): New function.
8408 (s390_register_name): New function.
8409 (s390_pseudo_register_name): Handle v0-v15, which are composed of
8410 f0-f15 and v0l-v15l.
8411 (s390_pseudo_register_type): Likewise.
8412 (s390_pseudo_register_read): Likewise.
8413 (s390_pseudo_register_write): Likewise.
8414 (s390_value_from_register): Account for the fact that values are
8415 placed left-justified in vector registers.
8416 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
8417 the vector reggroup and omit them from the general reggroup.
8418 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
8419 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
8420 (s390_iterate_over_regset_sections): Add iterations for the two
8421 new vector regsets.
8422 (s390_core_read_description): Yield a target description with
8423 vector registers if applicable.
8424 (s390_gdbarch_init): Handle target descriptions with vector
8425 registers. Add "register_name" gdbarch method.
8426 (_initialize_s390_tdep): Call new tdesc initialization functions.
8427 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
8428 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
8429 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
8430 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
8431 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
8432 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
8433 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
8434 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
8435 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
8436 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
8437 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
8438 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
8439 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
8440 (S390_NUM_REGS): Adjust value.
8441 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
8442 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
8443 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
8444 * NEWS: Announce S/390 vector register support.
8445
446899e4
AA
84462015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8447
8448 * features/s390-tevx-linux64.xml: New file.
8449 * features/s390-vx-linux64.xml: New file.
8450 * features/s390-vx.xml: New file.
8451 * features/s390x-tevx-linux64.xml: New file.
8452 * features/s390x-vx-linux64.xml: New file.
8453 * features/Makefile (WHICH): Add s390-vx-linux64,
8454 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
8455 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
8456 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
8457 macros.
8458 * features/s390-tevx-linux64.c: New generated file.
8459 * features/s390-vx-linux64.c: Likewise.
8460 * features/s390x-tevx-linux64.c: Likewise.
8461 * features/s390x-vx-linux64.c: Likewise.
8462 * regformats/s390-tevx-linux64.dat: Likewise.
8463 * regformats/s390-vx-linux64.dat: Likewise.
8464 * regformats/s390x-tevx-linux64.dat: Likewise.
8465 * regformats/s390x-vx-linux64.dat: Likewise.
8466
b7236fbe
DE
84672015-02-28 Doug Evans <xdje42@gmail.com>
8468
8469 * symtab.h (struct symtab) <next>: Fix comment.
8470
02e62830
SM
84712015-02-27 Simon Marchi <simon.marchi@ericsson.com>
8472
8473 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
8474 python_GdbMethods.
8475
bf36a1e7
PA
84762015-02-27 Pedro Alves <palves@redhat.com>
8477
8478 * dtrace-probe.c (dtrace_probe_ops): Make extern.
8479
ad6aff7d
PA
84802015-02-27 Pedro Alves <palves@redhat.com>
8481
8482 * common/common-exceptions.h (exception_none): Declare.
8483 * common/common-exceptions.c (exception_none): Moved from
8484 exceptions.c.
8485 (exceptions_state_mc_init): Use exception_none.
8486 * exceptions.c (exception_none): Move to
8487 common/common-exceptions.c.
8488 * exceptions.h (exception_none): Move to
8489 common/common-exceptions.h.
8490
97c18565
PA
84912015-02-27 Pedro Alves <palves@redhat.com>
8492
8493 * main.c (catch_command_errors, catch_command_errors_const):
8494 Remove 'mask' argument. Adjust.
8495 (captured_main): Adjust callers.
8496
e992c591
PA
84972015-02-27 Pedro Alves <palves@redhat.com>
8498
8499 * python/python-internal.h: Include "extension-priv.h".
8500
64166036
PA
85012015-02-27 Pedro Alves <palves@redhat.com>
8502
8503 * breakpoint.h (enum print_stop_action): Move further up in the
8504 file.
8505
8a526fa6
PA
85062015-02-27 Pedro Alves <palves@redhat.com>
8507
8508 * gdbarch.sh: Include regcache.h.
8509 * gdbarch.h: Regenerate.
8510
0fa9c223
PA
85112015-02-27 Pedro Alves <palves@redhat.com>
8512
8513 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
8514 Remove duplicate const.
8515 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
8516 duplicate const.
8517
7cf99fb1
PA
85182015-02-27 Pedro Alves <palves@redhat.com>
8519
8520 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
8521 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
8522 * features/feature_to_c.sh: Tag the generated xml_builtin array
8523 with extern const in C++ mode.
8524
1424c16e
TT
85252015-02-27 Tom Tromey <tromey@redhat.com>
8526
8527 * minidebug.c (struct lzma_stream): Rename to ...
8528 (struct gdb_lzma_stream): ... this.
8529 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
8530
10367c7c
PA
85312015-02-27 Pedro Alves <palves@redhat.com>
8532
8533 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
8534 function.
8535 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8536 (mi_cmd_stack_list_variables): Use it.
8537
4180215b
PA
85382015-02-27 Pedro Alves <palves@redhat.com>
8539
8540 * x86-linux-nat.c (u_debugreg_offset): New function.
8541 (x86_linux_dr_get, x86_linux_dr_set): Use it.
8542
2f56f7c3
PA
85432015-02-27 Pedro Alves <palves@redhat.com>
8544
8545 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
8546 declaration.
8547 Include break-common.h.
8548
570dc176
TT
85492015-02-27 Tom Tromey <tromey@redhat.com>
8550 Pedro Alves <palves@redhat.com>
8551
8552 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
8553 local used to iterate over enums.
8554 * completer.c (signal_completer): Likewise.
8555 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
8556 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
8557 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
8558 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
8559 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
8560 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
8561 * tui-wingeneral.c (tui_refresh_all): Likewise.
8562
68c14faa
PA
85632015-02-27 Pedro Alves <palves@redhat.com>
8564
8565 * target.h: Include "infrun.h".
8566
749bab01
PA
85672015-02-27 Pedro Alves <palves@redhat.com>
8568
8569 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8570
3c14e5a3
PA
85712015-02-27 Pedro Alves <palves@redhat.com>
8572
8573 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
8574 (IPA_SYM): Use it.
8575 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
8576
56000a98
PA
85772015-02-27 Pedro Alves <palves@redhat.com>
8578
8579 * cli-out.c (_rl_erase_entire_line): Move declaration out of
8580 cli_mld_erase_entire_line, and make it extern "C".
8581 * common/common-defs.h (EXTERN_C): New.
8582 * completer.c (_rl_completion_prefix_display_length)
8583 (_rl_print_completions_horizontally, QSFUNC): Move declarations
8584 out of gdb_display_match_list_1.
8585 (_rl_qsort_string_compare): Move declaration out of
8586 gdb_display_match_list_1, and make it extern "C".
8587 * defs.h (re_comp): Use EXTERN_C.
8588 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
8589 and make it extern "C".
8590 (monstartup): Move declaration out of maintenance_set_profile_cmd,
8591 and make it extern "C".
8592 (main): Move declaration out of maintenance_set_profile_cmd.
8593 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
8594 EXTERN_C.
8595
bcabf420
PA
85962015-02-27 Pedro Alves <palves@redhat.com>
8597
8598 * python/python.c (GdbMethods): Rename to ...
8599 (python_GdbMethods): ... this and make extern.
8600 (GdbModuleDef): Rename to ...
8601 (python_GdbModuleDef): ... this and make extern.
8602
928dbe07
PA
86032015-02-27 Pedro Alves <palves@redhat.com>
8604
8605 * record-btrace.c (set_record_btrace_cmdlist)
8606 (show_record_btrace_cmdlist): Remove redefinitions.
8607
52059ffd
TT
86082015-02-27 Tom Tromey <tromey@redhat.com>
8609 Pedro Alves <palves@redhat.com>
8610
8611 * dwarf2-frame.c (enum cfa_how_kind, struct
8612 dwarf2_frame_state_reg_info): Move out of struct
8613 dwarf2_frame_state.
8614 * dwarf2read.c (struct tu_stats): Move out of struct
8615 dwarf2_per_objfile.
8616 (struct file_entry): Move out of struct line_header.
8617 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
8618 typedef_field_list): Move out of struct field_info.
8619 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
8620 Move out of struct dynamic_prop.
8621 (union type_owner, union field_location, struct field, struct
8622 range_bounds, union type_specific): Move out of struct main_type.
8623 (struct fn_fieldlist, struct fn_field, struct typedef_field)
8624 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
8625 (struct call_site_target, union call_site_parameter_u, struct
8626 call_site_parameter): Move out of struct call_site.
8627 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
8628 m32c_prologue.
8629 (enum srcdest_kind): Move out of struct srcdest.
8630 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
8631 * prologue-value.h (enum prologue_value_kind): Move out of struct
8632 prologue_value.
8633 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
8634 gdbarch_tdep.
8635 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
8636 out of struct field_info.
8637 * symfile.h (struct other_sections): Move out of struct
8638 section_addr_info.
8639 * symtab.c (struct symbol_cache_slot): Move out struct
8640 block_symbol_cache.
8641 * target-descriptions.c (enum tdesc_type_kind): Move out of
8642 typedef struct tdesc_type.
8643 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
8644 struct tui_line_or_address.
8645 * value.c (enum internalvar_kind, union internalvar_data): Move
8646 out of struct internalvar.
8647 * xtensa-tdep.h (struct ctype_cache): Move out of struct
8648 gdbarch_tdep.
8649
fe978cb0
PA
86502015-02-27 Tom Tromey <tromey@redhat.com>
8651 Pedro Alves <palves@redhat.com>
8652
8653 Rename symbols whose names are reserved C++ keywords throughout.
8654
3bc3d82a
PA
86552015-02-27 Pedro Alves <palves@redhat.com>
8656
8657 * Makefile.in (COMPILER): New, get it from autoconf.
8658 (COMPILE.pre, CC_LD): Use COMPILER.
8659 (CXX): Get from autoconf instead.
8660 (CXX_FOR_TARGET): Default to g++ instead of gcc.
8661 * acinclude.m4: Include build-with-cxx.m4.
8662 * build-with-cxx.m4: New file.
8663 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8664 Disable -Werror by default if building in C++ mode.
8665 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8666 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
8667 Run supported-warning-flags tests with the C++ compiler.
8668 Save/restore CXXFLAGS too.
8669 * configure: Regenerate.
8670
07697489
PA
86712015-02-27 Pedro Alves <palves@redhat.com>
8672
8673 * libiberty.m4: New file.
8674 * acinclude.m4: Include libiberty.m4.
8675 * configure.ac: Call libiberty_INIT.
8676 * config.in, configure: Regenerate.
8677
60abeae4
AA
86782015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8679
8680 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
8681 31-bit targets, but 64-bit targets as well.
8682 (s390_gnu_triplet_regexp): New function.
8683 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
8684 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
8685 method.
8686
f44466fb 86872015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
8688
8689 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
8690 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
8691 from CONTEXT_DEBUGGER.
8692
0def5aaa
DE
86932015-02-26 Doug Evans <dje@google.com>
8694
8695 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
8696 CHECK_TYPEDEF.
8697 (set_type_vptr_fieldno): Ditto.
8698 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
8699 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
8700
77b64a49
PA
87012015-02-26 Pedro Alves <palves@redhat.com>
8702
8703 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
8704 * complaints.c (vcomplaint): Pass argument FMT directly to
8705 printf-like functions instead of complaint->fmt.
8706 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
8707 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
8708 * compile/compile-loc2c.c (pushf, unary, binary): Add
8709 ATTRIBUTE_PRINTF.
8710 (do_compile_dwarf_expr_to_c): Pass string literal as format string
8711 to pushf.
8712 (BINARY): Pass string literal as format string to 'binary'.
8713 * compile/compile-object-load.c (link_callbacks_einfo): Add
8714 ATTRIBUTE_PRINTF.
8715 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
8716
532f44ed
PA
87172015-02-26 Pedro Alves <palves@redhat.com>
8718
8719 * windows-termcap.c: Rename to ...
8720 * stub-termcap.c: ... this. Adjust header line.
8721 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
8722 windows-termcap.c.
8723 * configure: Regenerate.
8724 * configure.ac: Refer to stub-termcap.o instead of
8725 windows-termcap.o.
8726 * gdb_curses.h: Mention stub-termcap.c instead of
8727 windows-termcap.c.
8728
081a1c2c
JK
87292015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8730
8731 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
8732 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
8733
2f41223f
AT
87342015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
8735
8736 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
8737
80c57053
JK
87382015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8739
8740 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
8741 bfd_canonicalize_symtab.
8742
cf424aef
JB
87432015-02-25 John Baldwin <jhb@FreeBSD.org>
8744
8745 * amd64fbsd-nat.c: Include sys/user.h.
8746 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8747 instead of KERN_PS_STRINGS to locate the signal trampoline.
8748 * i386fbsd-nat.c: Include sys/user.h.
8749 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8750 instead of KERN_PS_STRINGS to locate the signal trampoline.
8751 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
8752 (amd64fbsd_sigtramp_p): New.
8753 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
8754 longer set default values.
8755 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
8756 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
8757 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
8758 (i386fbsd_freebsd4_sigtramp_start)
8759 (i386fbsd_freebsd4_sigtramp_middle)
8760 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
8761 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
8762 (i386fbsd_sigtramp_p): New.
8763 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
8764 longer set default values.
8765 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
8766
c5cb74ee
JB
87672015-02-25 John Baldwin <jhb@freebsd.org>
8768
8769 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
8770 get_frame_register instead of frame_unwind_register_unsigned.
8771
17487d85
JK
87722015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8773
8774 PR build/18033
8775 * compile/compile-c-support.c (c_compute_program): Change // comment.
8776 * compile/compile-object-load.c (setup_sections): Change // comment.
8777
9357a9e6
JB
87782015-02-26 Joel Brobecker <brobecker@adacore.com>
8779
8780 PR build/18033:
8781 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
8782
1f10ba14
PA
87832015-02-23 Pedro Alves <palves@redhat.com>
8784
8785 * remote.c (skip_to_semicolon): New function.
8786 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
8787 special case the stop reasons that look like hex numbers
8788 upfront. Instead handle real register numbers after matching
8789 all the known stop reasons.
8790
96553a0c
DE
87912015-02-21 Doug Evans <dje@google.com>
8792
8793 PR c++/17976, symtab/17821
8794 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
8795 is_in_anonymous. All callers updated.
8796 (find_symbol_in_baseclass): Ditto.
8797 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
8798 for symbols in an anonymous namespace.
8799 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
8800 DW_AT_name directly.
8801 (dwarf2_name): Convert missing namespace name to
8802 CP_ANONYMOUS_NAMESPACE_STR.
8803
2db9a427
PA
88042015-02-20 Pedro Alves <palves@redhat.com>
8805
8806 * linux-nat.c (linux_handle_extended_wait): Call
8807 thread_db_notice_clone whenever a new clone LWP is detected.
8808 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
8809 functions.
8810 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
8811 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
8812 (linux_unstop_all_lwps): Declare.
8813 * linux-thread-db.c (struct thread_get_info_inout): Delete.
8814 (thread_get_info_callback): Delete.
8815 (thread_from_lwp): Use td_thr_get_info and record_thread.
8816 (thread_db_attach_lwp): Delete.
8817 (thread_db_notice_clone): New function.
8818 (try_thread_db_load_1): If /proc is mounted and shows the
8819 process'es task list, walk over all LWPs and call thread_from_lwp
8820 instead of relying on td_ta_thr_iter.
8821 (attach_thread): Don't call check_thread_signals here. Split the
8822 tail part of the function (which adds the thread to the core GDB
8823 thread list) to ...
8824 (record_thread): ... this function. Call check_thread_signals
8825 here.
8826 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
8827 call thread_from_lwp.
8828 (thread_db_update_thread_list): Rename to ...
8829 (thread_db_update_thread_list_org): ... this.
8830 (thread_db_update_thread_list): New function.
8831 (thread_db_find_thread_from_tid): Delete.
8832 (thread_db_get_ada_task_ptid): Simplify.
8833 * nat/linux-procfs.c: Include <sys/stat.h>.
8834 (linux_proc_task_list_dir_exists): New function.
8835 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
8836
3b27ef47
PA
88372015-02-20 Pedro Alves <palves@redhat.com>
8838
8839 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
8840 main LWP. Handle the case of waitpid returning 0 if we're already
8841 attached to the LWP. Don't set the LWP's last_resume_kind to
8842 resume_stop if we already knew about the LWP.
8843 (linux_nat_filter_event): Add debug logs.
8844
1cc28231
PA
88452015-02-20 Pedro Alves <palves@redhat.com>
8846
8847 * target.h (forward_target_decr_pc_after_break): Delete
8848 declaration.
8849
5c5019c2
PA
88502015-02-20 Pedro Alves <palves@redhat.com>
8851
8852 PR threads/18006
8853 * linux-thread-db.c (thread_get_info_callback): Return early if
8854 the thread's lwp id is -1.
8855
f3978e91
JB
88562015-02-20 Joel Brobecker <brobecker@adacore.com>
8857
8858 GDB 7.9 released.
8859
ffdf88ec
SE
88602015-02-19 Steve Ellcey <sellcey@imgtec.com>
8861
8862 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
8863 (dtrace_get_probes) Change type of variable 'dof'.
8864
c9587f88
AT
88652015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
8866
8867 PR breakpoints/16812
8868 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
8869 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
8870 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
8871
53cf2ee0
DT
88722015-02-19 David Taylor <dtaylor@emc.com>
8873
8874 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
8875
acfe0940
PP
88762015-02-18 Patrick Palka <patrick@parcs.ath.cx>
8877
8878 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
8879 function.
8880 (tui_putc): Don't call tui_handle_resize_during_io.
8881 (tui_getc): Likewise.
8882 (tui_mld_getc): Likewise.
8883 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
8884 (tui_sigwinch_token): New static variable.
8885 (tui_initialize_win): Adjust documentation. Set
8886 tui_sigwinch_token.
8887 (tui_async_resize_screen): New asynchronous callback.
8888 (tui_sigwinch_handler): Adjust documentation. Asynchronously
8889 invoke tui_async_resize_screen.
8890
f6a88844
JM
88912015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
8892
8893 * configure: Regenerated.
8894 * configure.ac: Use GDB_AC_TRANSFORM.
8895 * Makefile.in (aclocal_m4_deps): Added transform.m4.
8896 * acinclude.m4: sinclude transform.m4.
8897 * transform.m4: New file.
8898 (GDB_AC_TRANSFORM): New macro.
8899
b05e3b0d
JM
89002015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8901
8902 * NEWS: Announce the support for DTrace SDT probes.
8903
c3e3045e
JM
89042015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8905
8906 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
8907 (amd64_dtrace_parse_probe_argument): New function.
8908 (amd64_dtrace_probe_is_enabled): Likewise.
8909 (amd64_dtrace_enable_probe): Likewise.
8910 (amd64_dtrace_disable_probe): Likewise.
8911 (amd64_linux_init_abi): Register the
8912 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
8913 `gdbarch_dtrace_disable_probe' and
8914 `gdbarch_dtrace_probe_is_enabled' hooks.
8915 (amd64_dtrace_disabled_probe_sequence_1): New constant.
8916 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
8917 (amd64_dtrace_enable_probe_sequence): Likewise.
8918 (amd64_dtrace_disable_probe_sequence): Likewise.
8919
d4777acb
JM
89202015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8921
8922 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
8923 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
8924 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
8925 handle ELF files.
8926 * Makefile.in (SFILES): dtrace-probe.c added.
8927 * configure: Regenerate.
8928 * dtrace-probe.c: New file.
8929 (SHT_SUNW_dof): New constant.
8930 (dtrace_probe_type): New enum.
8931 (dtrace_probe_arg): New struct.
8932 (dtrace_probe_arg_s): New typedef.
8933 (struct dtrace_probe_enabler): New struct.
8934 (dtrace_probe_enabler_s): New typedef.
8935 (dtrace_probe): New struct.
8936 (dtrace_probe_is_linespec): New function.
8937 (dtrace_dof_sect_type): New enum.
8938 (dtrace_dof_dofh_ident): Likewise.
8939 (dtrace_dof_encoding): Likewise.
8940 (DTRACE_DOF_ENCODE_LSB): Likewise.
8941 (DTRACE_DOF_ENCODE_MSB): Likewise.
8942 (dtrace_dof_hdr): New struct.
8943 (dtrace_dof_sect): Likewise.
8944 (dtrace_dof_provider): Likewise.
8945 (dtrace_dof_probe): Likewise.
8946 (DOF_UINT): New macro.
8947 (DTRACE_DOF_PTR): Likewise.
8948 (DTRACE_DOF_SECT): Likewise.
8949 (dtrace_process_dof_probe): New function.
8950 (dtrace_process_dof): Likewise.
8951 (dtrace_build_arg_exprs): Likewise.
8952 (dtrace_get_arg): Likewise.
8953 (dtrace_get_probes): Likewise.
8954 (dtrace_get_probe_argument_count): Likewise.
8955 (dtrace_can_evaluate_probe_arguments): Likewise.
8956 (dtrace_evaluate_probe_argument): Likewise.
8957 (dtrace_compile_to_ax): Likewise.
8958 (dtrace_probe_destroy): Likewise.
8959 (dtrace_gen_info_probes_table_header): Likewise.
8960 (dtrace_gen_info_probes_table_values): Likewise.
8961 (dtrace_probe_is_enabled): Likewise.
8962 (dtrace_probe_ops): New variable.
8963 (info_probes_dtrace_command): New function.
8964 (_initialize_dtrace_probe): Likewise.
8965 (dtrace_type_name): Likewise.
8966
8b367e17
JM
89672015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8968
8969 * gdbarch.sh (dtrace_parse_probe_argument): New.
8970 (dtrace_probe_is_enabled): Likewise.
8971 (dtrace_enable_probe): Likewise.
8972 (dtrace_disable_probe): Likewise.
8973 * gdbarch.c: Regenerate.
8974 * gdbarch.h: Regenerate.
8975
9aca2ff8
JM
89762015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8977
8978 * stap-probe.c (stap_probe_ops): Add NULLs in the static
8979 stap_probe_ops for `enable_probe' and `disable_probe'.
8980 * probe.c (enable_probes_command): New function.
8981 (disable_probes_command): Likewise.
8982 (_initialize_probe): Define the cli commands `enable probe' and
8983 `disable probe'.
8984 (parse_probe_linespec): New function.
8985 (info_probes_for_ops): Use parse_probe_linespec.
8986 * probe.h (probe_ops): New hooks `enable_probe' and
8987 `disable_probe'.
8988
03e98035
JM
89892015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8990
8991 * probe.c (compute_probe_arg): Moved from stap-probe.c
8992 (compile_probe_arg): Likewise.
8993 (probe_funcs): Likewise.
8994 * stap-probe.c (compute_probe_arg): Moved to probe.c.
8995 (compile_probe_arg): Likewise.
8996 (probe_funcs): Likewise.
8997
6f9b8491
JM
89982015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8999
9000 * probe.c (print_ui_out_not_applicables): New function.
9001 (exists_probe_with_pops): Likewise.
9002 (info_probes_for_ops): Do not include column headers for probe
9003 types for which no probe has been actually found on any object.
9004 Also invoke `print_ui_out_not_applicables' in order to match the
9005 column rows with the header when probes of several types are
9006 listed.
9007 Print the "Type" column.
9008 * probe.h (probe_ops): Added a new probe operation `type_name'.
9009 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
9010 (stap_type_name): New function.
9011
69efdff1
PP
90122015-02-17 Patrick Palka <patrick@parcs.ath.cx>
9013
9014 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
9015 (key_is_command_char): Delete.
9016
f8e5e23e
PA
90172015-02-17 Pedro Alves <palves@redhat.com>
9018
9019 * tui/tui.c (tui_enable): Resize windows before anything
9020 might show a window.
9021
9f2e0721
MO
90222015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
9023
9024 PR gdb/17984
9025 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
9026 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
9027 call.
9028 * aarch64-tdep.h (tdesc_aarch64): Declare.
9029
171e6b1c
MW
90302015-02-12 Mark Wielaard <mjw@redhat.com>
9031
9032 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
9033
d5ff0482
DE
90342015-02-13 Doug Evans <dje@google.com>
9035
9036 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
9037 anonymous_namespace to is_in_anonymous for consistency with the rest
9038 of the file.
9039 (cp_lookup_bare_symbol): Fix typo in comment.
9040 (cp_search_static_and_baseclasses): Ditto.
9041 (search_symbol_list): Use vertical space in comment better.
9042 (reset_directive_searched): Ditto. Fix typo.
9043 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
9044
9f04ac5f
YQ
90452015-02-13 Yao Qi <yao.qi@arm.com>
9046
9047 * MAINTAINERS: Update my email address.
9048
013d0319
DE
90492015-02-12 Doug Evans <dje@google.com>
9050
b615dd20 9051 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 9052
9a7e538e
DE
90532015-02-12 Doug Evans <dje@google.com>
9054
9055 * completer.c (complete_line): Remove incorrect comment.
9056
e1fcd575
JK
90572015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9058
9059 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
9060 (py_print_frame): Use RETURN_MASK_ERROR.
9061
b99bf4e3
JK
90622015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9063
9064 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
9065 function comment. Wrap all function that can throw in cleanups.
9066 (gdbpy_apply_frame_filter): Wrap all function that can throw in
9067 cleanups.
9068
800eb1ce
JK
90692015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9070
9071 * python/py-framefilter.c (py_print_frame): Substitute goto error.
9072 Remove the error label.
9073
34019068
JK
90742015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9075
9076 * python/py-framefilter.c (py_print_frame): Put conditional code paths
9077 with goto first, indent the former else codepath left. Put variable
9078 'elided' to a new inner block.
9079
8d4a54e2
JK
90802015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9081
9082 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
9083
18ad82c1
PA
90842015-02-11 Pedro Alves <palves@redhat.com>
9085
9086 * xcoffread.c (within_function): Delete.
9087
e36122e9
TT
90882015-02-11 Tom Tromey <tromey@redhat.com>
9089 Pedro Alves <palves@redhat.com>
9090
9091 * breakpoint.c (base_breakpoint_ops): Delete.
9092 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
9093 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
9094 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
9095 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
9096 * python/py-arch.c (arch_object_type): Make extern.
9097 * python/py-block.c (block_syms_iterator_object_type): Make extern.
9098 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
9099 * python/py-cmd.c (cmdpy_object_type): Make extern.
9100 * python/py-continueevent.c (continue_event_object_type)
9101 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
9102 parameter. Update all callers.
9103 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
9104 * python/py-exitedevent.c (exited_event_object_type): Make extern.
9105 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
9106 * python/py-function.c (fnpy_object_type): Make extern.
9107 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
9108 * python/py-infevents.c (call_pre_event_object_type)
9109 (inferior_call_post_event_object_type).
9110 (memory_changed_event_object_type): Make extern.
9111 * python/py-infthread.c (thread_object_type): Make extern.
9112 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
9113 * python/py-linetable.c (linetable_entry_object_type)
9114 (linetable_object_type, ltpy_iterator_object_type): Make extern.
9115 * python/py-newobjfileevent.c (new_objfile_event_object_type)
9116 (clear_objfiles_event_object_type): Make extern.
9117 * python/py-objfile.c (objfile_object_type): Make extern.
9118 * python/py-param.c (parmpy_object_type): Make extern.
9119 * python/py-progspace.c (pspace_object_type): Make extern.
9120 * python/py-signalevent.c (signal_event_object_type): Make extern.
9121 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
9122 * python/py-type.c (type_object_type, field_object_type)
9123 (type_iterator_object_type): Make extern.
9124 * python/python.c (python_extension_script_ops)
9125 (python_extension_ops): Make extern.
9126 * stap-probe.c (stap_probe_ops): Make extern.
9127
0703599a
PA
91282015-02-11 Pedro Alves <pedro@codesourcery.com>
9129
9130 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
9131 because the event thread is not the current thread.
9132
eaaf76ab
DE
91332015-02-11 Doug Evans <xdje42@gmail.com>
9134
9135 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
9136 been initialized yet, return NULL.
9137
e7d52ed3
DE
91382015-02-11 Doug Evans <dje@google.com>
9139
9140 * symfile.h (new_symfile_objfile): Delete.
9141 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
9142 All callers updated.
9143
fc6b1256
PP
91442015-02-11 Patrick Palka <patrick@parcs.ath.cx>
9145
9146 * tui/tui-io.c (tui_handle_resize_during_io): Call
9147 tui_update_gdb_sizes() after resizing the screen.
9148 * tui/tui.c (tui_enable): Resize the terminal before
9149 calling tui_update_gdb_sizes().
9150
d9080678
PP
91512015-02-11 Patrick Palka <patrick@parcs.ath.cx>
9152
9153 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
9154 line before printing a newline.
9155
9f615e3a
MW
91562015-02-11 Mark Wielaard <mjw@redhat.com>
9157
9158 * utils.c (producer_is_gcc): Return true or false.
9159
d9080678 91602015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
9161
9162 * utils.h (producer_is_gcc): Change return type to bool. Add major
9163 argument.
9164 * utils.c (producer_is_gcc): Likewise.
9165 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
9166 * dwarf2read.c (check_producer): Likewise.
9167
b052c4fb
PA
91682015-02-10 Pedro Alves <palves@redhat.com>
9169
9170 * infrun.c (displaced_step_fixup): Switch to the event thread
9171 before calling gdbarch_displaced_step_fixup.
9172
3ac240d4
AT
91732015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9174
9175 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
9176
c1cc6152
SM
91772015-02-10 Simon Marchi <simon.marchi@ericsson.com>
9178
9179 * ada-varobj.c (ada_name_of_child): Constify parent.
9180 (ada_path_expr_of_child): Same.
9181 (ada_value_of_child): Same.
9182 (ada_type_of_child): Same.
9183 * c-varobj.c (c_is_path_expr_parent): Same.
9184 (c_describe_child): Same.
9185 (c_name_of_child): Same.
9186 (c_value_of_child): Same.
9187 (c_type_of_child): Same.
9188 (cplus_number_of_children): Same.
9189 (cplus_describe_child): Constify var.
9190 (cplus_name_of_child): Constify parent.
9191 (cplus_value_of_child): Same.
9192 (cplus_type_of_child): Same.
9193 * jv-varobj.c (java_name_of_child): Same.
9194 (java_value_of_child): Same.
9195 (java_type_of_child): Same.
9196 * varobj.c (value_of_child): Same.
9197 (varobj_default_is_path_expr_parent): Constify var, parent and return
9198 value.
9199 (varobj_get_path_expr): Constify var, modify path_expr through
9200 mutable_var.
9201 (install_new_value): Constify parent.
9202 (value_of_child): Constify parent.
9203 * varobj.h (struct varobj): Constify parent.
9204 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
9205 type_of_child.
9206 (varobj_get_path_expr): Constify var.
9207 (varobj_get_path_expr_parent): Constify var and return value.
9208
c1ee9414
LM
92092015-02-10 Luis Machado <lgustavo@codesourcery.com>
9210
9211 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
9212 (arm_prologue_this_id): Move PC and SP limit checks to
9213 arm_prologue_unwind_stop_reason.
9214 (arm_prologue_unwind) <stop_reason> : Set to
9215 arm_prologue_unwind_stop_reason.
9216
f7de9aab
MW
92172015-02-09 Mark Wielaard <mjw@redhat.com>
9218
9219 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
9220 DW_LANG_Fortran08 as language_fortran.
9221
0b24eb2d
SDJ
92222015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
9223
9224 PR remote/17946
9225 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
9226 of pointer against char.
9227
a2c2acaf
MW
92282015-02-09 Mark Wielaard <mjw@redhat.com>
9229
9230 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
9231 (c_type_print_modifier): Likewise.
9232 * dwarf2read.c (read_tag_atomic_type): New function.
9233 (read_type_die_1): Handle DW_TAG_atomic_type.
9234 * gdbtypes.c (make_atomic_type): New function.
9235 (recursive_dump_type): Handle TYPE_ATOMIC.
9236 * gdbtypes.h (enum type_flag_values): Renumber.
9237 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
9238 (TYPE_ATOMIC): New macro.
9239 (make_atomic_type): Declare.
9240
31fd9caa
MM
92412015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9242
9243 * btrace.c (ftrace_find_call): Skip gaps.
9244 (ftrace_new_function): Initialize level.
9245 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
9246 (ftrace_new_switch): Update
9247 level computation.
9248 (ftrace_new_gap): New.
9249 (ftrace_update_function): Create new function after gap.
9250 (btrace_compute_ftrace_bts): Create gap on error.
9251 (btrace_stitch_bts): Update parameters. Clear trace if it
9252 becomes empty.
9253 (btrace_stitch_trace): Update parameters. Update callers.
9254 (btrace_clear): Reset the number of gaps.
9255 (btrace_insn_get): Return NULL if the iterator points to a gap.
9256 (btrace_insn_number): Return zero if the iterator points to a gap.
9257 (btrace_insn_end): Allow gaps at the end.
9258 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
9259 (btrace_find_insn_by_number): Assert that the found iterator does
9260 not point to a gap.
9261 (btrace_call_next, btrace_call_prev): Assert that the last function
9262 is not a gap.
9263 * btrace.h (btrace_bts_error): New.
9264 (btrace_function): Update comment.
9265 (btrace_function) <insn, insn_offset, number>: Update comment.
9266 (btrace_function) <errcode>: New.
9267 (btrace_thread_info) <ngaps>: New.
9268 (btrace_thread_info) <replay>: Update comment.
9269 (btrace_insn_get): Update comment.
9270 * record-btrace.c (btrace_ui_out_decode_error): New.
9271 (record_btrace_info): Print number of gaps.
9272 (btrace_insn_history, btrace_call_history): Call
9273 btrace_ui_out_decode_error for gaps.
9274 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
9275
afb778a2
MM
92762015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9277
9278 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
9279 * nat/linux-btrace.c: (btrace_this_cpu): New.
9280 (cpu_supports_bts): Call btrace_this_cpu.
9281 (intel_supports_bts): Add cpu parameter.
9282
7d5c24b3
MM
92832015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9284
9285 * btrace.h (btrace_insn_class): New.
9286 (btrace_insn) <size, iclass>: New.
9287 * btrace.c (ftrace_find_call): Update parameters. Update users.
9288 Use instruction classification.
9289 (ftrace_new_return): Update parameters. Update users.
9290 (ftrace_update_function): Update parameters. Update users. Use
9291 instruction classification.
9292 (ftrace_update_insns): Update parameters. Update users.
9293 (ftrace_classify_insn): New.
9294 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
9295 TRY_CATCH around call to gdb_insn_length.
9296
76235df1
MM
92972015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9298
9299 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
9300 Update parameters. Update users.
9301
d33501a5
MM
93022015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9303
9304 * btrace.c (parse_xml_btrace_conf_bts): Add size.
9305 (btrace_conf_bts_attributes): New.
9306 (btrace_conf_children): Add attributes.
9307 * common/btrace-common.h (btrace_config_bts): New.
9308 (btrace_config)<bts>: New.
9309 (btrace_config): Update comment.
9310 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
9311 Use config.
9312 * features/btrace-conf.dtd: Increment version. Add size
9313 attribute to bts element.
9314 * record-btrace.c (set_record_btrace_bts_cmdlist,
9315 show_record_btrace_bts_cmdlist): New.
9316 (record_btrace_adjust_size, record_btrace_print_bts_conf,
9317 record_btrace_print_conf, cmd_set_record_btrace_bts,
9318 cmd_show_record_btrace_bts): New.
9319 (record_btrace_info): Call record_btrace_print_conf.
9320 (_initialize_record_btrace): Add commands.
9321 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
9322 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
9323 (btrace_sync_conf): Synchronize bts size.
9324 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
9325 * NEWS: Announce new commands and new packets.
9326
f4abbc16
MM
93272015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9328
9329 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
9330 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
9331 (x86_linux_btrace_conf): New.
9332 (x86_linux_create_target): Initialize to_btrace_conf.
9333 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
9334 Check format. Split into this and ...
9335 (linux_enable_bts): ... this.
9336 (linux_btrace_conf): New.
9337 (perf_event_skip_record): Renamed into ...
9338 (perf_event_skip_bts_record): ... this. Updated users.
9339 (linux_disable_btrace): Split into this and ...
9340 (linux_disable_bts): ... this.
9341 (linux_read_btrace): Check format.
9342 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
9343 (linux_btrace_conf): New.
9344 (btrace_target_info)<ptid>: Moved.
9345 (btrace_target_info)<conf>: New.
9346 (btrace_target_info): Split into this and ...
9347 (btrace_tinfo_bts): ... this. Updated users.
9348 * btrace.c (btrace_enable): Update parameters.
9349 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
9350 (btrace_conf_children, btrace_conf_attributes)
9351 (btrace_conf_elements): New.
9352 * btrace.h (btrace_enable): Update parameters.
9353 (btrace_conf, parse_xml_btrace_conf): New.
9354 * common/btrace-common.h (btrace_config): New.
9355 * feature/btrace-conf.dtd: New.
9356 * record-btrace.c (record_btrace_conf): New.
9357 (record_btrace_cmdlist): New.
9358 (record_btrace_enable_warn, record_btrace_open): Pass
9359 &record_btrace_conf.
9360 (record_btrace_info): Print recording format.
9361 (cmd_record_btrace_bts_start): New.
9362 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
9363 (_initialize_record_btrace): Add "record btrace bts" subcommand.
9364 Add "record bts" alias command.
9365 * remote.c (remote_state)<btrace_config>: New.
9366 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
9367 (remote_protocol_features): Add qXfer:btrace-conf:read.
9368 (remote_open_1): Call remote_btrace_reset.
9369 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
9370 (btrace_target_info)<conf>: New.
9371 (btrace_sync_conf, btrace_read_config): New.
9372 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
9373 btrace_read_conf.
9374 (remote_btrace_conf): New.
9375 (init_remote_ops): Initialize to_btrace_conf.
9376 (_initialize_remote): Add qXfer:btrace-conf packet.
9377 * target.c (target_enable_btrace): Update parameters.
9378 (target_btrace_conf): New.
9379 * target.h (target_enable_btrace): Update parameters.
9380 (target_btrace_conf): New.
9381 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
9382 (target_ops)<to_enable_btrace>: Update parameters and comment.
9383 (target_ops)<to_btrace_conf>: New.
9384 * target-delegates: Regenerate.
9385 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
9386 (target_debug_print_const_struct_btrace_target_info_p): New.
9387 * NEWS: Announce new command and new packet.
9388
aadf7753
MM
93892015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9390
9391 * nat/linux-btrace.h (perf_event_buffer): New.
9392 (btrace_target_info) <buffer, size, data_head>: Replace with ...
9393 <bts>: ... this.
9394 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
9395 (perf_event_buffer_size, perf_event_buffer_begin)
9396 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
9397 Updated users.
9398 (perf_event_new_data): New.
9399
043c3577
MM
94002015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9401
9402 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
9403 * record-btrace.c (record_btrace_open): Remove call to
9404 target_supports_btrace.
9405 * remote.c (remote_supports_btrace): Update parameters.
9406 * target.c (target_supports_btrace): Update parameters.
9407 * target.h (to_supports_btrace, target_supports_btrace): Update
9408 parameters.
9409 * target-delegates.c: Regenerate.
9410 * target-debug.h (target_debug_print_enum_btrace_format): New.
9411 * nat/linux-btrace.c
9412 (kernel_supports_btrace): Rename into ...
9413 (kernel_supports_bts): ... this. Update users. Update warning text.
9414 (intel_supports_btrace): Rename into ...
9415 (intel_supports_bts): ... this. Update users.
9416 (cpu_supports_btrace): Rename into ...
9417 (cpu_supports_bts): ... this. Update users.
9418 (linux_supports_btrace): Update parameters. Split into this and ...
9419 (linux_supports_bts): ... this.
9420 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
9421
734b0e4b
MM
94222015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9423
9424 * Makefile.in (SFILES): Add common/btrace-common.c.
9425 (COMMON_OBS): Add common/btrace-common.o.
9426 (btrace-common.o): Add build rules.
9427 * btrace.c (parse_xml_btrace): Update parameters.
9428 (parse_xml_btrace_block): Set format field.
9429 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
9430 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
9431 (btrace_compute_ftrace): Split into this and...
9432 (btrace_compute_ftrace_bts): ...this.
9433 (btrace_stitch_trace): Split into this and...
9434 (btrace_stitch_bts): ...this.
9435 * btrace.h (parse_xml_btrace): Update parameters.
9436 (make_cleanup_btrace_data): New.
9437 * common/btrace-common.c: New.
9438 * common/btrace-common.h: Include common-defs.h.
9439 (btrace_block_s): Update comment.
9440 (btrace_format): New.
9441 (btrace_format_string): New.
9442 (btrace_data_bts): New.
9443 (btrace_data): New.
9444 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
9445 * remote.c (remote_read_btrace): Update parameters.
9446 * target.c (target_read_btrace): Update parameters.
9447 * target.h (target_read_btrace): Update parameters.
9448 (target_ops)<to_read_btrace>: Update parameters.
9449 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
9450 * target-delegates.c: Regenerate.
9451 * target-debug (target_debug_print_struct_btrace_data_p): New.
9452 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
9453 (linux_read_bts): ...this.
9454 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
9455
bd2e0e9e
DE
94562015-02-06 Doug Evans <dje@google.com>
9457
9458 * remote-m32r-sdi.c: Include symfile.h.
9459
f176c4b5
DE
94602015-02-06 Doug Evans <dje@google.com>
9461
9462 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
9463 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
9464 to here.
9465
d6c146e9
PA
94662015-02-06 Pedro Alves <palves@redhat.com>
9467
9468 * linux-thread-db.c (find_new_threads_callback): Add debug output.
9469
b9d61307
SM
94702015-02-06 Simon Marchi <simon.marchi@ericsson.com>
9471
9472 PR gdb/15678
9473 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
9474 (enable_count_command): Check args for NULL value.
9475
e9fbd043
DE
94762015-02-05 Doug Evans <xdje42@gmail.com>
9477
9478 * guile/scm-frame.c: Fix spelling errors in a comment.
9479
881d5d5d
JK
94802015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9481
9482 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
9483 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
9484 return type.
9485
20ba1ce6
PA
94862015-02-04 Pedro Alves <palves@redhat.com>
9487
9488 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
9489 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
9490 returns true.
9491 (resume_stopped_resumed_lwps): Don't check whether the thread is
9492 marked as executing.
9493 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
9494
f962539a
AA
94952015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9496
9497 * regset.h (struct regset): Add flags field.
9498 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
9499 * corelow.c (get_core_register_section): Add warning if the size
9500 exceeds the requested size and the regset does not have the
9501 REGSET_VARIABLE_SIZE flag set.
9502 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
9503 flag.
9504 * armbsd-tdep.c (armbsd_gregset): Likewise.
9505 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
9506 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
9507 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
9508 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
9509
dde9acd6
AA
95102015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9511
9512 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
9513 For ".reg-xstate", explicitly specify the requested section size
9514 via X86_XSTATE_SIZE instead of just 0 on input and
9515 X86_XSTATE_MAX_SIZE on output.
9516 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
9517 Likewise.
9518
1528345d
AA
95192015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9520
9521 PR corefiles/17808:
9522 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
9523 function type, particularly its SIZE parameter.
9524 * gdbarch.h: Regenerate.
9525 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
9526 actual against required size using ">=" instead of "==".
9527 (amd64_collect_fpregset): Likewise.
9528 * i386-tdep.c (i386_supply_gregset): Likewise.
9529 (i386_collect_gregset): Likewise.
9530 (i386_supply_fpregset): Likewise.
9531 (i386_collect_fpregset): Likewise.
9532 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
9533 (mips_fill_gregset_wrapper): Likewise.
9534 (mips_supply_fpregset_wrapper): Likewise.
9535 (mips_fill_fpregset_wrapper): Likewise.
9536 (mips64_supply_gregset_wrapper): Likewise.
9537 (mips64_fill_gregset_wrapper): Likewise.
9538 (mips64_supply_fpregset_wrapper): Likewise.
9539 (mips64_fill_fpregset_wrapper): Likewise.
9540 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
9541 (am33_supply_fpregset_method): Likewise.
9542 (am33_collect_gregset_method): Likewise.
9543 (am33_collect_fpregset_method): Likewise.
9544
518be979
DE
95452015-02-04 Doug Evans <dje@google.com>
9546 Pedro Alves <palves@redhat.com>
9547 Eli Zaretskii <eliz@gnu.org>
9548
9549 PR tui/17810
9550 * tui/tui-command.c (tui_refresh_cmd_win): New function.
9551 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
9552 * tui/tui-file.c: #include tui/tui-command.h.
9553 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
9554 (tui_file_flush): Refresh command window if stream is gdb_stdout.
9555 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
9556
80bd5fab
PA
95572015-02-04 Pedro Alves <palves@redhat.com>
9558
9559 Fix build breakage.
9560 * event-loop.c (gdb_do_one_event): Add default switch case.
9561
a7606d80
JK
95622015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9563
9564 Filter out inferior gcc option -fpreprocessed.
9565 * compile/compile.c (filter_args): New function.
9566 (get_args): Use it.
9567
70b66289
PA
95682015-02-03 Pedro Alves <palves@redhat.com>
9569
9570 * event-loop.c: Don't declare nor define a queue type for
9571 gdb_event_p.
9572 (event_queue): Delete.
9573 (create_event, create_file_event, gdb_event_xfree)
9574 (initialize_event_loop, process_event): Delete.
9575 (gdb_do_one_event): Return as soon as one event is handled.
9576 (handle_file_event): Change prototype. Used the passed in
9577 file_handler pointer and ready_mask instead of looping over all
9578 file handlers.
9579 (gdb_wait_for_event): Update the poll/select timeouts before
9580 blocking. Run event handlers directly instead of queueing events.
9581 Return as soon as one event is handled.
9582 (struct async_event_handler_data): Delete.
9583 (invoke_async_event_handler): Delete.
9584 (check_async_event_handlers): Change return type to int. Run
9585 event handlers directly instead of queueing events. Return as
9586 soon as one event is handled.
9587 (handle_timer_event): Delete.
9588 (update_wait_timeout): New function, factored out from
9589 poll_timers.
9590 (poll_timers): Reimplement.
9591 * event-loop.h (initialize_event_loop): Delete declaration.
9592 * top.c (gdb_init): Don't call initialize_event_loop.
9593
b7d2e916
PA
95942015-02-03 Pedro Alves <palves@redhat.com>
9595
9596 * event-loop.c (clear_async_event_handler): New function.
9597 * event-loop.h (clear_async_event_handler): New declaration.
9598 * record-btrace.c (record_btrace_async): New function.
9599 (init_record_btrace_ops): Install record_btrace_async.
9600 * record-full.c (record_full_async): New function.
9601 (record_full_resume): Don't mark the async event source here.
9602 (init_record_full_ops): Install record_full_async.
9603 (record_full_core_resume): Don't mark the async event source here.
9604 (init_record_full_core_ops): Install record_full_async.
9605 * remote.c (remote_async): Mark and clear the async stop reply
9606 queue event-loop token as appropriate.
9607
d9d41e78
PA
96082015-02-03 Pedro Alves <palves@redhat.com>
9609
9610 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
9611 target_is_async_p instead of target_can_async.
9612 (linux_nat_wait): Use target_is_async_p instead of
9613 target_can_async. Don't enable async here.
9614 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
9615 target_is_async_p instead of target_can_async.
9616
aa3de267
SM
96172015-02-02 Simon Marchi <simon.marchi@ericsson.com>
9618
9619 * varobj.h (lang_varobj_ops): Mention which return values need
9620 to be freed.
9621
2c811c0f
JB
96222015-02-02 Joel Brobecker <brobecker@adacore.com>
9623
9624 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
9625
b1eedac9
JB
96262015-02-02 Joel Brobecker <brobecker@adacore.com>
9627
9628 PR gdb/17856:
9629 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
9630 results found in the cache.
9631
66c168ae
JB
96322015-02-02 Joel Brobecker <brobecker@adacore.com>
9633
9634 PR gdb/17854:
9635 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
9636 when allocating a new one.
9637
4bdc02b2
TT
96382015-02-01 Tom Tromey <tom@tromey.com>
9639
9640 * MAINTAINERS: Remove myself.
9641
ae6ae975
DE
96422015-01-31 Doug Evans <xdje42@gmail.com>
9643
9644 * dwarf2read.c (process_structure_scope): Update setting of
9645 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
9646 * gdbtypes.c (internal_type_vptr_fieldno): New function.
9647 (set_type_vptr_fieldno): New function.
9648 (internal_type_vptr_basetype): New function.
9649 (set_type_vptr_basetype): New function.
9650 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
9651 TYPE_VPTR_BASETYPE.
9652 (allocate_cplus_struct_type): Initialize vptr_fieldno.
9653 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
9654 (print_cplus_stuff): ... moved here.
9655 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
9656 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
9657 moved to ...
9658 (struct cplus_struct_type): ... here. All uses updated.
9659 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
9660 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
9661 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
9662 * stabsread.c (read_tilde_fields): Update setting of
9663 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
9664
09e2d7c7
DE
96652015-01-31 Doug Evans <xdje42@gmail.com>
9666
9667 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
9668 to self_p.
9669 (cp_print_class_member): Rename local domain to self_type.
9670 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
9671 domain_type to self_type.
9672 (set_die_type) <need_gnat_info>: Handle
9673 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
9674 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
9675 TYPE_SPECIFIC_SELF_TYPE.
9676 * gdbtypes.c (internal_type_self_type): New function.
9677 (set_type_self_type): New function.
9678 (smash_to_memberptr_type): Rename parameter domain to self_type.
9679 Update setting of TYPE_SELF_TYPE.
9680 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
9681 (smash_to_method_type): Rename parameter domain to self_type.
9682 Update setting of TYPE_SELF_TYPE.
9683 (check_stub_method): Call smash_to_method_type.
9684 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
9685 (copy_type_recursive): Ditto.
9686 * gdbtypes.h (enum type_specific_kind): New value
9687 TYPE_SPECIFIC_SELF_TYPE.
9688 (struct main_type) <type_specific>: New member self_type.
9689 (struct cplus_struct_type) <fn_field.type>: Update comment.
9690 (TYPE_SELF_TYPE): Rewrite.
9691 (internal_type_self_type, set_type_self_type): Declare.
9692 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
9693 self_type.
9694 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
9695 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
9696 TYPE_TARGET_TYPE.
9697 * stabsread.c (read_member_functions): Mark methods with
9698 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
9699 TYPE_SELF_TYPE.
9700
4bfb94b8
DE
97012015-01-31 Doug Evans <xdje42@gmail.com>
9702
9703 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
9704 All uses updated.
9705
5f4ce105
DE
97062015-01-31 Doug Evans <xdje42@gmail.com>
9707
9708 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
9709 or unions. Return zero if union.
9710 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
9711 (gnuv3_rtti_type): Pass already-check_typedef'd value to
9712 gnuv3_get_vtable.
9713 (compute_vtable_size): Assert only passed structs.
9714 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
9715
f6b3afbf
DE
97162015-01-31 Doug Evans <xdje42@gmail.com>
9717
9718 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
9719 kinds.
9720
cfb069a8
GB
97212015-01-31 Gary Benson <gbenson@redhat.com>
9722 Doug Evans <dje@google.com>
9723
9724 PR cli/9007
9725 PR cli/11920
9726 PR cli/15548
9727 * cli/cli-cmds.c (complete_command): Notify user if max-completions
9728 reached.
9729 * common/common-exceptions.h (enum errors)
9730 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
9731 * completer.h (get_max_completions_reached_message): New declaration.
9732 (max_completions): Likewise.
9733 (completion_tracker_t): New typedef.
9734 (new_completion_tracker): New declaration.
9735 (make_cleanup_free_completion_tracker): Likewise.
9736 (maybe_add_completion_enum): New enum.
9737 (maybe_add_completion): New declaration.
9738 (throw_max_completions_reached_error): Likewise.
9739 * completer.c (max_completions): New global variable.
9740 (new_completion_tracker): New function.
9741 (free_completion_tracker): Likewise.
9742 (make_cleanup_free_completion_tracker): Likewise.
9743 (maybe_add_completions): Likewise.
9744 (throw_max_completions_reached_error): Likewise.
9745 (complete_line): Remove duplicates and limit result to max_completions
9746 entries.
9747 (get_max_completions_reached_message): New function.
9748 (gdb_display_match_list): Handle max_completions.
9749 (_initialize_completer): New declaration and function.
9750 * symtab.c: Include completer.h.
9751 (completion_tracker): New static variable.
9752 (completion_list_add_name): Call maybe_add_completion.
9753 (default_make_symbol_completion_list_break_on_1): Renamed from
9754 default_make_symbol_completion_list_break_on. Maintain
9755 completion_tracker across calls to completion_list_add_name.
9756 (default_make_symbol_completion_list_break_on): New function.
9757 * top.c (init_main): Set rl_completion_display_matches_hook.
9758 * tui/tui-io.c: Include completer.h.
9759 (tui_old_rl_display_matches_hook): New static global.
9760 (tui_rl_display_match_list): Notify user if max-completions reached.
9761 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
9762 * NEWS (New Options): Mention set/show max-completions.
9763
e11c72c7
GB
97642015-01-31 Gary Benson <gbenson@redhat.com>
9765
9766 * symtab.c (struct add_name_data) <code>: New field.
9767 Updated comments.
9768 (add_symtab_completions): New function.
9769 (symtab_expansion_callback): Likewise.
9770 (default_make_symbol_completion_list_break_on): Set datum.code.
9771 Move minimal symbol scan before calling expand_symtabs_matching.
9772 Scan known primary symtabs for externs and statics before calling
9773 expand_symtabs_matching. Pass symtab_expansion_callback as
9774 expansion_notify argument to expand_symtabs_matching. Do not scan
9775 primary symtabs for externs and statics after calling
9776 expand_symtabs_matching.
9777
276d885b
GB
97782015-01-31 Gary Benson <gbenson@redhat.com>
9779
9780 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
9781 (struct quick_symbol_functions) <expand_symtabs_matching>:
9782 New argument expansion_notify. All uses updated.
9783 (expand_symtabs_matching): New argument expansion_notify.
9784 All uses updated.
9785 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9786 Also print expansion notify.
9787 * symtab.c (expand_symtabs_matching_via_partial): Call
9788 expansion_notify whenever a partial symbol table is expanded.
9789 * dwarf2read.c (dw2_expand_symtabs_matching): Call
9790 expansion_notify whenever a symbol table is instantiated.
9791
82083d6d
DE
97922015-01-31 Doug Evans <xdje42@gmail.com>
9793
9794 * cli-out.c: #include completer.h, readline/readline.h.
9795 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
9796 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
9797 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
9798 * cli-out.h (cli_display_match_list): Declare.
9799 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
9800 (ELLIPSIS_LEN): Ditto.
9801 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
9802 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
9803 (gdb_fnprint, gdb_print_filename): Ditto.
9804 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
9805 (gdb_display_match_list): Ditto.
9806 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
9807 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
9808 (mld_beep_ftype, mld_read_key_ftype): Ditto.
9809 (match_list_displayer): New struct.
9810 (gdb_display_match_list): Declare.
9811 * top.c (init_main): Set rl_completion_display_matches_hook.
9812 * tui/tui-io.c: #include completer.h.
9813 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
9814 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
9815 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
9816 (tui_mld_getc, tui_mld_read_key): Ditto.
9817 (tui_rl_display_match_list): Rewrite.
9818 (tui_handle_resize_during_io): New arg for_completion. All callers
9819 updated.
9820
f57d2163
DE
98212015-01-31 Doug Evans <xdje42@gmail.com>
9822
9823 Add symbol lookup cache.
9824 * NEWS: Document new options and commands.
9825 * symtab.c (symbol_cache_key): New static global.
9826 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
9827 (SYMBOL_LOOKUP_FAILED): New macro.
9828 (symbol_cache_slot_state): New enum.
9829 (block_symbol_cache): New struct.
9830 (symbol_cache): New struct.
9831 (new_symbol_cache_size, symbol_cache_size): New static globals.
9832 (hash_symbol_entry, eq_symbol_entry): New functions.
9833 (symbol_cache_byte_size, resize_symbol_cache): New functions.
9834 (make_symbol_cache, free_symbol_cache): New functions.
9835 (get_symbol_cache, symbol_cache_cleanup): New function.
9836 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
9837 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
9838 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
9839 (symbol_cache_flush, symbol_cache_dump): New functions.
9840 (maintenance_print_symbol_cache): New function.
9841 (maintenance_flush_symbol_cache): New function.
9842 (symbol_cache_stats): New function.
9843 (maintenance_print_symbol_cache_statistics): New function.
9844 (symtab_new_objfile_observer): New function.
9845 (symtab_free_objfile_observer): New function.
9846 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
9847 (_initialize_symtab): Init symbol_cache_key. New parameter
9848 maint symbol-cache-size. New maint commands print symbol-cache,
9849 print symbol-cache-statistics, flush-symbol-cache.
9850 Install new_objfile, free_objfile observers.
9851
e700d1b2
JB
98522015-01-31 Joel Brobecker <brobecker@adacore.com>
9853
9854 PR symtab/17855
9855 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
9856 to end.
9857
9f050062
DE
98582015-01-31 Doug Evans <xdje42@gmail.com>
9859
9860 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
9861 * auto-load.c: #include ctype.h.
9862 (struct auto_load_pspace_info): Replace member loaded_scripts with
9863 new members loaded_script_files, loaded_script_texts.
9864 (auto_load_pspace_data_cleanup): Update.
9865 (init_loaded_scripts_info): Update.
9866 (get_auto_load_pspace_data_for_loading): Update.
9867 (maybe_add_script_file): Renamed from maybe_add_script. All callers
9868 updated.
9869 (maybe_add_script_text): New function.
9870 (clear_section_scripts): Update.
9871 (source_script_file, execute_script_contents): New functions.
9872 (source_section_scripts): Add support for
9873 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
9874 (print_scripts): New function.
9875 (auto_load_info_scripts): Also print inlined scripts.
9876 (maybe_print_unsupported_script_warning): Renamed from
9877 unsupported_script_warning_print. All callers updated.
9878 (maybe_print_script_not_found_warning): Renamed from
9879 script_not_found_warning_print. All callers updated.
9880 * extension-priv.h (struct extension_language_script_ops): New member
9881 objfile_script_executor.
9882 * extension.c (ext_lang_objfile_script_executor): New function.
9883 * extension.h (objfile_script_executor_func): New typedef.
9884 (ext_lang_objfile_script_executor): Declare.
9885 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
9886 * guile/guile.c (guile_extension_script_ops): Update.
9887 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
9888 * python/python.c (python_extension_script_ops): Update.
9889 (gdbpy_execute_objfile_script): New function.
9890
312809f8
EZ
98912015-01-31 Eli Zaretskii <eliz@gnu.org>
9892
9893 * tui/tui-io.c (tui_expand_tabs): New function.
9894 (tui_puts, tui_redisplay_readline): Expand TABs into the
9895 appropriate number of spaces.
9896 * tui/tui-regs.c: Include tui-io.h.
9897 (tui_register_format): Call tui_expand_tabs to expand TABs into
9898 the appropriate number of spaces.
9899 * tui/tui-io.h: Add prototype for tui_expand_tabs.
9900
b6577aab
DE
99012015-01-30 Doug Evans <dje@google.com>
9902
9903 * NEWS: "info source" command now display producer string if present.
9904 * source.c (source_info): Print producer string if present.
9905
6da58d3e
SM
99062015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9907
9908 * varobj.c (varobj_delete): Fix comment.
9909
837ce252
SM
99102015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9911
9912 * varobj.c (create_child): Modify comment.
9913
b09e2c59
SM
99142015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9915
9916 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
9917 parameter.
9918 (ada_name_of_variable): Same.
9919 (ada_path_expr_of_child): Same.
9920 (ada_value_of_variable): Same.
9921 (ada_value_is_changeable_p): Same.
9922 (ada_value_has_mutated): Same.
9923 * c-varobj.c (varobj_is_anonymous_child): Same.
9924 (c_is_path_expr_parent): Same.
9925 (c_number_of_children): Same.
9926 (c_name_of_variable): Same.
9927 (c_path_expr_of_child): Same.
9928 (get_type): Same.
9929 (c_value_of_variable): Same.
9930 (cplus_number_of_children): Same.
9931 (cplus_name_of_variable): Same.
9932 (cplus_path_expr_of_child): Same.
9933 (cplus_value_of_variable): Same.
9934 * jv-varobj.c (java_number_of_children): Same.
9935 (java_name_of_variable): Same.
9936 (java_path_expr_of_child): Same.
9937 (java_value_of_variable): Same.
9938 * varobj.c (number_of_children): Same.
9939 (name_of_variable): Same.
9940 (is_root_p): Same.
9941 (varobj_ensure_python_env): Same.
9942 (varobj_get_objname): Same.
9943 (varobj_get_expression): Same.
9944 (varobj_get_display_format): Same.
9945 (varobj_get_display_hint): Same.
9946 (varobj_has_more): Same.
9947 (varobj_get_thread_id): Same.
9948 (varobj_get_frozen): Same.
9949 (dynamic_varobj_has_child_method): Same.
9950 (varobj_get_gdb_type): Same.
9951 (is_path_expr_parent): Same.
9952 (varobj_default_is_path_expr_parent): Same.
9953 (varobj_get_language): Same.
9954 (varobj_get_attributes): Same.
9955 (varobj_is_dynamic_p): Same.
9956 (varobj_get_child_range): Same.
9957 (varobj_value_has_mutated): Same.
9958 (varobj_get_value_type): Same.
9959 (number_of_children): Same.
9960 (name_of_variable): Same.
9961 (check_scope): Same.
9962 (varobj_editable_p): Same.
9963 (varobj_value_is_changeable_p): Same.
9964 (varobj_floating_p): Same.
9965 (varobj_default_value_is_changeable_p): Same.
9966
2568868e
SM
99672015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9968
9969 * varobj.c (varobj_get_path_expr): Set var->path_expr.
9970 * c-varobj.c (c_path_expr_of_child): Set local var instead of
9971 child->path_expr.
9972 (cplus_path_expr_of_child): Same.
9973
ca83fa81
SM
99742015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9975
9976 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
9977 result.
9978 (mi_cmd_var_info_expression): Same.
9979 * varobj.c (varobj_get_expression): Mention in the comment that
9980 the result must by freed by the caller.
9981
afa269ae
SM
99822015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9983
9984 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
9985 varobj_get_type.
9986 (varobj_update_one): Same.
9987 * varobj.c (update_type_if_necessary): Free curr_type_str and
9988 new_type_str.
9989 (varobj_get_type): Specify in comment that the result needs to be
9990 freed by the caller.
9991
cd366ee8
DE
99922015-01-29 Doug Evans <dje@google.com>
9993
9994 PR symtab/17890
9995 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
9996
38360086
MW
99972015-01-25 Mark Wielaard <mjw@redhat.com>
9998
9999 * dwarf2read.c (checkproducer): Call producer_is_gcc.
10000 * utils.c (producer_is_gcc_ge_4): Likewise.
10001 (producer_is_gcc): New function.
10002 * utils.h (producer_is_gcc): New declaration.
10003
df25ebbd
JB
100042015-01-29 Joel Brobecker <brobecker@adacore.com>
10005
10006 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
10007 kind.
10008 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
10009 parameter by "addr_stack" parameter.
10010 (resolve_dynamic_range): Replace "addr" parameter by
10011 "stack_addr" parameter. Update function documentation.
10012 Update code accordingly.
10013 (resolve_dynamic_array, resolve_dynamic_union)
10014 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
10015 (resolve_dynamic_type): Update code, following the changes made
10016 to resolve_dynamic_type_internal's interface.
10017 * dwarf2loc.h (struct property_addr_info): New.
10018 (dwarf2_evaluate_property): Replace "address" parameter
10019 by "addr_stack" parameter. Adjust function documentation.
10020 (struct dwarf2_offset_baton): New.
10021 (struct dwarf2_property_baton): Update documentation of
10022 field "referenced_type" to be more general. New field
10023 "offset_info" in union data field.
10024 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
10025 parameter by "addr_stack" parameter. Adjust code accordingly.
10026 Add support for PROP_ADDR_OFFSET properties.
10027 * dwarf2read.c (attr_to_dynamic_prop): Add support for
10028 DW_AT_data_member_location attributes as well. Use case
10029 statements instead of if/else condition.
10030
4a0ca9ec
JB
100312015-01-29 Joel Brobecker <brobecker@adacore.com>
10032
10033 * ada-varobj.c (ada_varobj_get_array_number_of_children):
10034 Return zero if PARENT_VALUE is NULL and parent_type's
10035 range type is dynamic.
10036
ddb87a81
JB
100372015-01-29 Joel Brobecker <brobecker@adacore.com>
10038
10039 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
10040 nonzero if the type's subtype is dynamic.
10041 (resolve_dynamic_range): Also resolve the range's subtype.
10042
3d7ad9b4 100432015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 10044
3d7ad9b4 10045 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
10046 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
10047
3a8b707a
DE
100482015-01-27 Doug Evans <dje@google.com>
10049
10050 * NEWS: Mention gdb.Objfile.username.
10051 * python/py-objfile.c (objfpy_get_username): New function.
10052 (objfile_getset): Add "username".
10053
d35b90fb
MW
100542015-01-24 Mark Wielaard <mjw@redhat.com>
10055
10056 * stack.c (return_command): Markup warning message with _.
10057
734ae125
DE
100582015-01-24 Doug Evans <xdje42@gmail.com>
10059
10060 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
10061
527f3840
JK
100622015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10063
10064 Fix 100x slowdown regression on DWZ files.
10065 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
10066 (struct line_header): Add offset and offset_in_dwz.
10067 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
10068 (free_line_header_voidp): New declaration.
10069 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
10070 functions.
10071 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
10072 (handle_DW_AT_stmt_list): Use line_header_hash.
10073 (free_line_header_voidp): New function.
10074 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
10075 (dwarf_decode_lines): New parameter decode_mapping, use it.
10076 (dwarf2_free_objfile): Free line_header_hash.
10077
f7e5394d
SM
100782015-01-23 Simon Marchi <simon.marchi@ericsson.com>
10079
10080 PR gdb/17416
10081 * valops.c (value_rtti_indirect_type): Catch exception thrown by
10082 value_ind.
10083
743649fd
MW
100842015-01-15 Mark Wielaard <mjw@redhat.com>
10085
10086 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
10087 DW_AT_noreturn.
10088 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
10089 calling_convention an 8 bit bit field.
10090 (TYPE_NO_RETURN): New macro.
10091 * infcmd.c (finish_command): Query if function does not return
10092 normally.
10093 * stack.c (return_command): Likewise.
10094
198297aa
PA
100952015-01-23 Pedro Alves <palves@redhat.com>
10096
10097 * linux-nat.c (linux_is_async_p): New macro.
10098 (linux_nat_is_async_p):
10099 (linux_nat_terminal_inferior): Check whether the target can async
10100 instead of whether it is already async.
10101 (linux_nat_terminal_ours): Don't check whether the target is
10102 async.
10103 (linux_async_pipe): Use linux_is_async_p.
10104
253828f1
JK
101052015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10106
10107 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
10108 '-ascending'.
10109 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
10110 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
10111 Sort tp_array using tp_array_compar.
10112 (_initialize_thread): Extend thread_apply_all_command help.
10113
f0e8c4c5
JK
101142015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10115
10116 * corelow.c (core_open): Call also thread_command.
10117 * gdbthread.h (thread_command): New prototype moved from ...
10118 * thread.c (thread_command): ... here.
10119 (thread_command): Make it global.
10120
03b79603
PA
101212015-01-22 Pedro Alves <palves@redhat.com>
10122
10123 * configure.ac [*mingw32*]: Check $curses_found instead of
10124 $prefer_curses.
10125 * configure: Regenerate.
10126 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
10127 HAVE_NCURSES_NCURSES_H checks.
10128
6b8a872f
EZ
101292015-01-22 Eli Zaretskii <eliz@gnu.org>
10130
bbbbffbb 10131 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
10132 fails with the 1st arg NULL, try again with "unknown". Don't test
10133 the "cup" capability: it isn't supported by the Windows port of
10134 ncurses, but the Windows console driver is still capable of
10135 supporting TUI.
10136
4b62a76e
JK
101372015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10138
10139 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
10140
82a864f9
EZ
101412015-01-22 Eli Zaretskii <eliz@gnu.org>
10142
10143 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
10144 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
10145 reason that "make TAGS" is broken.
10146
b35018fd
CG
101472015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
10148
10149 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
10150 and check additional store instructions.
10151
ffbc4646
WW
101522015-01-21 Wei-cheng Wang <cole945@gmail.com>
10153
10154 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
10155
ddeca1df
WW
101562015-01-21 Wei-cheng Wang <cole945@gmail.com>
10157
10158 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
10159 ppc_canonicalize_syscall, ppc_linux_syscall_record,
10160 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
10161 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
10162 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
10163 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
10164 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
10165 ppc_process_record_op19, ppc_process_record_op31,
10166 ppc_process_record_op59, ppc_process_record_op60,
10167 ppc_process_record_op63): Likewise.
10168
049bb5de
JB
101692015-01-20 Joel Brobecker <brobecker@adacore.com>
10170
10171 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
10172 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
10173 strerror.
10174
42b87c63 101752015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
10176
10177 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
10178 ppc_process_record_op31, ppc_process_record_op59,
10179 ppc_process_record_op60, ppc_process_record_op63,
10180 ppc_process_record): Fix -Wformat warning.
10181 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
10182 Remove unused variables.
10183
569340fc
CG
101842015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
10185
10186 * MAINTAINERS (Write After Approval): Add "Chen Gang".
10187
63413d85
EZ
101882015-01-19 Eli Zaretskii <eliz@gnu.org>
10189
10190 * configure.ac [*mingw32*]: Only add windows-termcap.o to
10191 CONFIG_OBS if not building with a curses library.
10192 * configure: Regenerate.
10193
10194 * windows-termcap.c: Include defs.h. Make the whole body empty if
10195 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
10196 HAVE_NCURSES_NCURSES_H is defined.
10197
16d8013c
JB
101982015-01-19 Joel Brobecker <brobecker@adacore.com>
10199
10200 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
10201 from end of line to start of next line.
10202
cf90fd9a
WW
102032015-01-17 Wei-cheng Wang <cole945@gmail.com>
10204
10205 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
10206 Scan PLT stub backward for reverse debugging.
10207 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
10208
b4cdae6f
WW
102092015-01-17 Wei-cheng Wang <cole945@gmail.com>
10210 Ulrich Weigand <uweigand@de.ibm.com>
10211
10212 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
10213 gdb_target_obs.
10214 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
10215 record.
10216 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
10217 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
10218 (ppc_linux_init_abi): Set process_record, process_record_signal.
10219 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
10220 ppc_linux_record_tdep to gdbarch_tdep.
10221 (ppc_process_record): New declaration.
10222 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
10223 ppc_process_record_op19, ppc_process_record_op31,
10224 ppc_process_record_op59, ppc_process_record_op60,
10225 ppc_process_record_op63, ppc_process_record): New functions.
10226
2608dbf8
WW
102272015-01-17 Wei-cheng Wang <cole945@gmail.com>
10228
10229 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
10230 rs6000_in_function_epilogue_frame_p and add an argument
10231 for frame_info.
10232 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
10233 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
10234 New functions.
10235 (rs6000_epilogue_frame_unwind): New.
10236 (rs6000_gdbarch_init): Append epilogue unwinder.
10237
4c347be6
SDJ
102382015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10239
10240 * nat/linux-personality.c: Replace "#ifndef
10241 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
10242 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
10243 systems.
10244
9f2850ba
EZ
102452015-01-16 Eli Zaretskii <eliz@gnu.org>
10246
6cdb25f4
EZ
10247 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
10248 functions.
10249 (_initialize_tui_win) <border-kind, border-mode>:
10250 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
10251 (tui_set_tab_width_command): Fix the commentary.
10252
6cdb25f4
EZ
10253 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
10254
bf555842
EZ
10255 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
10256 Doc fix.
cb86fcc1
EZ
10257 (tui_set_tab_width_command): Delete and recreate the source and
10258 the disassembly windows, to show the effect of the changed tab
10259 size immediately.
bf555842 10260
9f2850ba
EZ
10261 * tui/tui-data.h (LINE_PREFIX): Make shorter
10262 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
10263 "Thread NNNNN.XXXX" thread ID notation on Windows.
10264
95761b2d
JK
102652015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10266
10267 Fix gcc-5 compilation.
10268 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
10269
8cc73a39
SDJ
102702015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10271
10272 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
10273 (linux-personality.o): New rule.
10274 * common/common-defs.h: Include <stdint.h>.
10275 * config/aarch64/linux.mh (NATDEPFILES): Include
10276 linux-personality.o.
10277 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
10278 * config/arm/linux.mh (NATDEPFILES): Likewise.
10279 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10280 * config/i386/linux.mh (NATDEPFILES): Likewise.
10281 * config/ia64/linux.mh (NATDEPFILES): Likewise.
10282 * config/m32r/linux.mh (NATDEPFILES): Likewise.
10283 * config/m68k/linux.mh (NATDEPFILES): Likewise.
10284 * config/mips/linux.mh (NATDEPFILES): Likewise.
10285 * config/pa/linux.mh (NATDEPFILES): Likewise.
10286 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
10287 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
10288 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
10289 * config/s390/linux.mh (NATDEPFILES): Likewise.
10290 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
10291 * config/sparc/linux.mh (NATDEPFILES): Likewise.
10292 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
10293 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
10294 * defs.h: Remove #include <stdint.h> (moved to
10295 common/common-defs.h).
10296 * linux-nat.c: Include nat/linux-personality.h. Remove #include
10297 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
10298 nat/linux-personality.c).
10299 (linux_nat_create_inferior): Remove code to disable address space
10300 randomization (moved to nat/linux-personality.c). Create cleanup
10301 to disable address space randomization.
10302 * nat/linux-personality.c: New file.
10303 * nat/linux-personality.h: Likewise.
10304
fb23d554
SDJ
103052015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10306
10307 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
10308 common/posix-strerror.c.
10309 (posix-strerror.o): New rule.
10310 (mingw-strerror.o): Likewise.
10311 * common/common-utils.h (safe_strerror): Move prototype to here,
10312 from utils.h.
10313 * common/common.host: New file.
10314 * common/mingw-strerror.c: Likewise.
10315 * common/posix-strerror.c: Likewise.
10316 * configure: Regenerated.
10317 * configure.ac: Source common/common.host. Add variable
10318 common_host_obs to gdb_host_obs.
10319 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
10320 gdb/common/posix-strerror.c when warning about the use of
10321 strerror.
10322 * mingw-hdep.c (safe_strerror): Remove definition; move it to
10323 common/mingw-strerror.c.
10324 * posix-hdep.c (safe_strerror): Remove definition; move it to
10325 common/posix-hdep.c.
10326 * utils.h (safe_strerror): Remove prototype; move to
10327 common/common-utils.h.
10328
3af8af43
JB
103292015-01-15 Joel Brobecker <brobecker@adacore.com>
10330
10331 GDB 7.8.2 released.
10332
bafffb51
JB
103332015-01-15 Joel Brobecker <brobecker@adacore.com>
10334
10335 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
10336 ___XA type if the array has already been fixed.
10337
cdf43629
YQ
103382015-01-14 Yao Qi <yao@codesourcery.com>
10339
10340 * Makefile.in (ppc-linux.o): New rule.
10341 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
10342 * configure.ac: AC_CHECK_FUNCS(getauxval).
10343 * config.in: Re-generated.
10344 * configure: Re-generated.
10345 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
10346 Declare.
10347 * nat/ppc-linux.c: New file.
10348 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
10349 Call ppc64_64bit_inferior_p.
10350
514c5338
YQ
103512015-01-14 Yao Qi <yao@codesourcery.com>
10352
10353 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
10354 nat/ppc-linux.h.
10355 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
10356 (PPC_FEATURE_HAS_DFP): Likewise.
10357 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
10358 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
10359 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
10360 Include "nat/ppc-linux.h".
10361 * nat/ppc-linux.h: New file.
10362 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
10363
5589af0e
PA
103642015-01-14 Pedro Alves <palves@redhat.com>
10365
10366 PR gdb/17525
10367 * breakpoint.c: Include "interps.h".
10368 (bpstat_do_actions_1): Also check whether the interpreter is
10369 async.
10370
6c400b59
PA
103712015-01-14 Pedro Alves <palves@redhat.com>
10372
10373 PR cli/17828
10374 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
10375 reinstall if the interpreter is sync.
10376
e02c96a7
DE
103772015-01-13 Doug Evans <dje@google.com>
10378
10379 * objfiles.c (objfile_filename): New function.
10380 * objfiles.h (objfile_filename): Declare it.
10381 (objfile_name): Add function comment.
10382 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
10383 bfd file name (which may be realpath'd), and the original name.
10384
3b2f13ff
JB
103852015-01-13 Joel Brobecker <brobecker@adacore.com>
10386
10387 * NEWS: Create a new section for the next release branch.
10388 Rename the section of the current branch, now that it has
10389 been cut.
10390
b4cfe7f8
JB
103912015-01-13 Joel Brobecker <brobecker@adacore.com>
10392
10393 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
10394 * version.in: Bump version to 7.9.50.DATE-cvs.
10395
92fc2e69
JB
103962015-01-13 Joel Brobecker <brobecker@adacore.com>
10397
10398 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
10399 Remove trailing new-line in argument of call to warning.
10400
f71f0b0d
JB
104012015-01-13 Joel Brobecker <brobecker@adacore.com>
10402
10403 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
10404 new-line in argument of call to "warning".
10405
04dccad0
JB
104062015-01-13 Joel Brobecker <brobecker@adacore.com>
10407
10408 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
10409 in static block, then try searching for primitive types.
10410
08b13bdd
PP
104112015-01-12 Patrick Palka <patrick@parcs.ath.cx>
10412
10413 * top.h (gdb_add_history): Declare.
10414 * top.c (command_count): New variable.
10415 (gdb_add_history): New function.
10416 (gdb_safe_append_history): New static function.
10417 (quit_force): Call it.
10418 (command_line_input): Use gdb_add_history instead of
10419 add_history.
10420 * event-top.c (command_line_handler): Likewise.
10421
4ac15b59
JC
104222015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
10423
10424 PR gdb/17046
10425 * darwin-nat.c: Replace <machine/setjmp.h> #include by
10426 <setjmp.h> #include.
10427
005e54bb
DE
104282015-01-11 Doug Evans <xdje42@gmail.com>
10429
10430 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
10431
439250fb
DE
104322015-01-11 Doug Evans <xdje42@gmail.com>
10433
10434 PR gdb/15830
10435 * NEWS: The "maint demangle" command is renamed as "demangle".
10436 * demangle.c: #include cli/cli-utils.h, language.h.
10437 (demangle_command): New function.
10438 (_initialize_demangle): Add new command "demangle".
10439 * maint.c (maintenance_demangle): Stub out.
10440 (_initialize_maint_cmds): Update help text for "maint demangle",
10441 and mark as deprecated.
10442
ebf3aa72
MK
104432015-01-11 Mark Kettenis <kettenis@gnu.org>
10444
10445 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
10446 inferior_thread is a function.
10447
6bf045cd
PP
104482015-01-09 Patrick Palka <patrick@parcs.ath.cx>
10449
10450 * Makefile.in (.y.c): Don't munge yacc's #line
10451 directives.
10452
588dcc3e
PP
104532015-01-09 Patrick Palka <patrick@parcs.ath.cx>
10454
10455 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
10456 to prompt for input.
10457 * tui/tui-hooks.c (tui_query_hook): Remove.
10458 (tui_install_hooks): Don't set deprecated_query_hook.
10459 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
10460 height calculation. Always update the command window's cur_line.
10461
9c02b525
PA
104622015-01-09 Pedro Alves <palves@redhat.com>
10463
10464 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
10465 function.
10466 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
10467 declaration.
10468 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
10469 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
10470 stop_reason.
10471 (check_stopped_by_watchpoint): New function.
10472 (save_sigtrap): Reimplement.
10473 (linux_nat_stopped_by_watchpoint): Adjust.
10474 (linux_nat_lp_status_is_event): Delete.
10475 (stop_wait_callback): Only call save_sigtrap after storing the
10476 pending status.
10477 (status_callback): If the thread had been stopped for a breakpoint
10478 that has since been removed, discard the event and resume the LWP.
10479 (count_events_callback, select_event_lwp_callback): Use
10480 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
10481 (cancel_breakpoint): Rename to ...
10482 (check_stopped_by_breakpoint): ... this. Record whether the LWP
10483 stopped for a software breakpoint or hardware breakpoint.
10484 (select_event_lwp): Only give preference to the stepping LWP in
10485 all-stop mode. Adjust comments.
10486 (stop_and_resume_callback): Remove references to new_pending_p.
10487 (linux_nat_filter_event): Likewise. Leave exit events of the
10488 leader thread pending here. Handle signal short circuiting here.
10489 Only call save_sigtrap after storing the pending waitstatus.
10490 (linux_nat_wait_1): Remove 'retry' label. Remove references to
10491 new_pending. Don't handle leaving events the caller is not
10492 interested in pending here, nor handle signal short-circuiting
10493 here. Also give equal priority to all LWPs that have had events
10494 in non-stop mode. If reporting a software breakpoint event,
10495 unadjust the LWP's PC.
10496 * linux-nat.h (enum lwp_stop_reason): New.
10497 (struct lwp_info) <stop_pc>: New field.
10498 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
10499 (struct lwp_info) <stop_reason>: New field.
10500 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10501
8af756ef
PA
105022015-01-09 Pedro Alves <palves@redhat.com>
10503
10504 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
10505 Set the LWP's 'resumed' flag.
10506
8a99810d
PA
105072015-01-09 Pedro Alves <palves@redhat.com>
10508
10509 * linux-nat.c (linux_resume_one_lwp): New function.
10510 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
10511 (linux_nat_resume): Use lwp_status_pending_p and
10512 linux_resume_one_lwp.
10513 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
10514 (linux_handle_extended_wait): Use linux_resume_one_lwp.
10515 (status_callback, running_callback): Use lwp_status_pending_p.
10516 (lwp_status_pending_p): New function.
10517 (stop_and_resume_callback): Use lwp_status_pending_p.
10518 (linux_nat_filter_event): Use linux_resume_one_lwp.
10519 (linux_nat_wait_1): Always use status_callback to look for an LWP
10520 with a pending status. Use linux_resume_one_lwp.
10521 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
10522 linux_resume_one_lwp.
10523
f7ce857f
PA
105242015-01-09 Pedro Alves <palves@redhat.com>
10525
10526 * breakpoint.c (bp_location_inserted_here_p): New function,
10527 factored out from ...
10528 (breakpoint_inserted_here_p): ... here. Use
10529 ALL_BP_LOCATIONS_AT_ADDR.
10530 (software_breakpoint_inserted_here_p): Use
10531 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
10532
c1a747c1
PA
105332014-01-09 Pedro Alves <palves@redhat.com>
10534
10535 Skip enabling event reporting if the kernel supports
10536 PTRACE_EVENT_CLONE.
10537 * linux-thread-db.c: Include "nat/linux-ptrace.h".
10538 (thread_db_use_events): New function.
10539 (try_thread_db_load_1): Check thread_db_use_events before enabling
10540 event reporting.
10541 (update_thread_state): New function.
10542 (attach_thread): Use it. Check thread_db_use_events before
10543 enabling event reporting.
10544 (thread_db_detach): Check thread_db_use_events before disabling
10545 event reporting.
10546 (find_new_threads_callback): Check thread_db_use_events before
10547 enabling event reporting. Update the thread's state if not using
10548 libthread_db events.
10549
a33e3959
PA
105502015-01-09 Pedro Alves <palves@redhat.com>
10551
10552 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
10553 about to wait for is > 0.
10554 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
10555 the kernel thread ID is -1.
10556
8784d563
PA
105572015-01-09 Pedro Alves <palves@redhat.com>
10558
10559 * linux-nat.c (attach_proc_task_lwp_callback): New function.
10560 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
10561 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
10562 ptrace option flags.
10563 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
10564 field.
10565 * nat/linux-procfs.c: Include <dirent.h>.
10566 (linux_proc_get_int): New parameter "warn". Handle it.
10567 (linux_proc_get_tgid): Adjust.
10568 (linux_proc_get_tracerpid): Rename to ...
10569 (linux_proc_get_tracerpid_nowarn): ... this.
10570 (linux_proc_pid_get_state): New function, factored out from
10571 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
10572 and handle it.
10573 (linux_proc_pid_is_gone): New function.
10574 (linux_proc_pid_is_stopped): Adjust.
10575 (linux_proc_pid_is_zombie_maybe_warn)
10576 (linux_proc_pid_is_zombie_nowarn): New functions.
10577 (linux_proc_pid_is_zombie): Use
10578 linux_proc_pid_is_zombie_maybe_warn.
10579 (linux_proc_attach_tgid_threads): New function.
10580 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
10581 (linux_proc_get_tracerpid): Rename to ...
10582 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
10583 (linux_proc_pid_is_gone): New declaration.
10584 (linux_proc_pid_is_zombie): Update comment.
10585 (linux_proc_pid_is_zombie_nowarn): New declaration.
10586 (linux_proc_attach_lwp_func): New typedef.
10587 (linux_proc_attach_tgid_threads): New declaration.
10588 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
10589 use nowarn functions.
10590 (linux_ptrace_attach_fail_reason_string): Move here from
10591 gdbserver/linux-low.c and rename.
10592 (ptrace_supports_feature): If the current ptrace options are not
10593 known yet, check them now, instead of asserting.
10594 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
10595 Declare.
10596
883ed13e
PA
105972015-01-09 Pedro Alves <palves@redhat.com>
10598
10599 * linux-thread-db.c (thread_db_find_new_threads_silently)
10600 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
10601 (find_new_threads_once): Print debug output on gdb_stdlog.
10602
1710aab8
CG
106032015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
10604 Pedro Alves <palves@redhat.com>
10605
10606 * compile/compile.c: Include "gdb_wait.h".
10607 (do_rmdir): Check return value, and free 'zap'.
10608
b597c318
YQ
106092015-01-08 Pedro Alves <palves@redhat.com>
10610 Yao Qi <yao@codesourcery.com>
10611
10612 * dwarf2loc.c (indirect_pieced_value): Don't call
10613 gdb_sign_extend. Call extract_signed_integer instead.
10614 * utils.c (gdb_sign_extend): Remove.
10615 * utils.h (gdb_sign_extend): Remove declaration.
10616
025ac414
PM
106172015-01-07 Pierre Muller <muller@sourceware.org>
10618
10619 PR symtab/17811
10620 * stabsread.c (define_symbol): Set language for C++ special symbols.
10621
fa5af12a
PP
106222015-01-07 Patrick Palka <patrick@parcs.ath.cx>
10623
10624 * inflow.c (initial_gdb_ttystate): Tweak comment.
10625
ea42d6f8
JB
106262015-01-07 Joel Brobecker <brobecker@adacore.com>
10627
10628 * inflow.c (set_initial_gdb_ttystate): Add empty line after
10629 comment documenting function.
10630
6a06d660
PP
106312015-01-07 Patrick Palka <patrick@parcs.ath.cx>
10632
10633 * terminal.h (set_initial_gdb_ttystate): Declare.
10634 * inflow.c (initial_gdb_ttystate): New static variable.
10635 (set_initial_gdb_ttystate): New setter.
10636 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
10637 instead of our current terminal state.
10638 * top.c (gdb_init): Call set_initial_gdb_ttystate.
10639
e810d75b
JB
106402015-01-07 Joel Brobecker <brobecker@adacore.com>
10641
10642 * guile/scm-type.c (tyscm_array_1): Add comment.
10643 * python/py-type.c (typy_array_1): Add comment.
10644
fce10a84
JB
106452015-01-06 Joel Brobecker <brobecker@adacore.com>
10646
10647 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
10648 error if N2 is equal to N1 - 1.
10649
8503d6e1
JB
106502015-01-06 Joel Brobecker <brobecker@adacore.com>
10651
10652 * python/py-type.c (typy_array_1): Do not raise negative-length
10653 exception if N2 is equal to N1 - 1.
10654
4d29c0a8
DE
106552015-01-03 Doug Evans <xdje42@gmail.com>
10656
10657 * c-exp.y: Whitespace cleanup.
10658 (classify_inner_name): Remove extra ;.
10659
eaa6a9a4
MR
106602015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
10661
10662 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
10663 offset signed.
10664
02fe9972
DE
106652015-01-02 Doug Evans <dje@google.com>
10666
10667 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
10668
e2ada9cb
DE
106692015-01-02 Doug Evans <dje@google.com>
10670
10671 * symtab.h (struct symbol): Fix typo in comment.
10672
32d0add0
JB
106732015-01-01 Joel Brobecker <brobecker@adacore.com>
10674
10675 Update year range in copyright notice of all files.
10676
76f2b779
JB
106772015-01-01 Joel Brobecker <brobecker@adacore.com>
10678
10679 * top.c (print_gdb_version): Update copyright year to 2015.
10680
077309e2 106812015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 10682
077309e2 10683 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 10684
077309e2 10685For older changes see ChangeLog-2014.
c906108c
SS
10686\f
10687Local Variables:
10688mode: change-log
10689left-margin: 8
10690fill-column: 74
10691version-control: never
57da7796 10692coding: utf-8
c906108c 10693End: