Don't displaced step when there's a breakpoint in the scratch pad range
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d35ae833
PA
12015-10-30 Pedro Alves <palves@redhat.com>
2
3 * breakpoint.c (breakpoint_in_range_p)
4 (breakpoint_location_address_range_overlap): New functions.
5 * breakpoint.h (breakpoint_in_range_p): New declaration.
6 * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
7 in the scratch pad range, don't displaced step.
8
10268a4c
MK
92015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
10
11 * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
12 size_stack_t, size_size_t, size_iovec.
13
d9b19c49
MK
142015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
15
16 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
17 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
18 (amd64_x32_linux_init_abi): Fix size_termios.
19
c28ebe25
MK
202015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
21
22 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
23
ff83a547
MK
242015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
25
26 * linux-record.c (record_linux_system_call): Fix old_select.
27
d2de23ad
MK
282015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
29
30 * linux-record.c (record_linux_system_call): Fix newstatat.
31
cb658d21
MK
322015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
33
34 * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
35
b80d067f
MK
362015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
37
38 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
39 * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
40 (amd64_x32_linux_init_abi): Add size_time_t.
41 * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
42 * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
43 * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
44 handling.
45 * linux-record.h (struct linux_record_tdep): Add size_time_t.
46 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
47
933c5a62
MK
482015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
49
50 * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
51
72aded86
MK
522015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
53
54 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
55 size_dirent{,64}, add size_old_dirent.
56 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
57 add size_old_dirent.
58 (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
59 size_old_dirent.
60 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
61 add size_old_dirent.
62 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
63 add size_old_dirent.
64 * linux-record.c (record_linux_system_call): Fix handling of readdir
65 and getdents{,64}.
66 * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
67 add size_old_dirent.
68 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
69 size_dirent{,64}, add size_old_dirent.
70
7571f7f2
MK
712015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
72
73 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
74 size_sigset_t, size_old_sigaction, size_old_sigset_t.
75 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
76 size_sigset_t, size_old_sigaction, size_old_sigset_t.
77 (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
78 size_old_sigaction, size_old_sigset_t.
79 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
80 size_old_sigaction, size_old_sigset_t.
81 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
82 size_old_sigaction, size_old_sigset_t.
83 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
84 size_sigset_t, size_old_sigaction, size_old_sigset_t.
85
d625f9a9
MK
862015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
87
88 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
89 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
90
aefb52a6
MK
912015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
92
93 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
94 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
95 (amd64_x32_linux_init_abi): Remove size_siginfo.
96 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
97 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
98 * linux-record.c (record_linux_system_call): Change size_siginfo
99 to size_siginfo_t.
100 * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
101 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
102
d2242e34
PA
1032015-10-29 Pedro Alves <palves@redhat.com>
104
105 * mdebugread.c (add_data_symbol): New function, factored out from
106 ...
107 (parse_symbol): ... here. Delete 'theclass' local.
108
cb0a2700
SM
1092015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
110
111 * jit.c (jit_target_read_impl): Add cast.
112
15cf126c
SM
1132015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
114
115 * jit.c (jit_reader_load): Add cast.
116
b4069958
SM
1172015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
118
119 * dwarf2read.c (partial_die_full_name): Add cast.
120
7535d5ed
PA
1212015-10-29 Pedro Alves <palves@redhat.com>
122
123 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
124
fa4c39cb
PA
1252015-10-29 Pedro Alves <palves@redhat.com>
126
127 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
128
e681cf3f
EZ
1292015-10-29 Eli Zaretskii <eliz@gnu.org>
130
131 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
132 in the environment.
133
ebf05345
PA
1342015-10-29 Pedro Alves <palves@redhat.com>
135
136 * gnu-v2-abi.c (gnuv2_is_destructor_name)
137 (gnuv2_is_constructor_name): Add casts.
138
44a8b4df
PA
1392015-10-29 Pedro Alves <palves@redhat.com>
140
141 * common/common-exceptions.c (exception_none): Add cast.
142
e3bdafe2
PA
1432015-10-29 Pedro Alves <palves@redhat.com>
144
145 * compile/compile-c-types.c (struct type_map_instance)
146 <gcc_type>: Rename to gcc_type_handle.
147 (insert_type, convert_type): Adjust.
148
9c6595ab
PA
1492015-10-29 Pedro Alves <palves@redhat.com>
150
151 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
152 assume that "break" breaks out of a TRY/CATCH.
153 * python/py-framefilter.c (py_print_single_arg): Don't assume
154 "continue" breaks out of a TRY/CATCH.
155 * python/py-value.c (valpy_binop_throw): New function, factored
156 out from ...
157 (valpy_binop): ... this.
158 (valpy_richcompare_throw): New function, factored
159 out from ...
160 (valpy_richcompare): ... this.
161 * solib.c (solib_read_symbols): Don't assume "break" breaks out
162 of a TRY/CATCH.
163 * common/common-exceptions.h [USE_RAW_CXX_TRY]
164 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
165
93084fcd
SD
1662015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
167
168 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
169 as move along with [d]addu.
170
43cdf5ae
YQ
1712015-10-28 Yao Qi <yao.qi@linaro.org>
172
173 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
174 aarch64_decode_insn.
175
b80c3053
PA
1762015-10-27 Pedro Alves <palves@redhat.com>
177
178 * common/print-utils.c (host_address_to_string): Rename to ...
179 (host_address_to_string_1): ... this.
180 * common/print-utils.h (host_address_to_string): Reimplement as
181 wrapper around host_address_to_string_1.
182 * utils.c (gdb_print_host_address): Rename to ...
183 (gdb_print_host_address_1): ... this.
184 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
185 around host_address_to_string_1.
186
d09f2c3f
PA
1872015-10-27 Pedro Alves <palves@redhat.com>
188
189 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
190 memory_error. Rename local 'status' to 'res'.
191 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
192 memory_error.
193 * corefile.c (read_stack, read_code, write_memory): Always pass
194 TARGET_XFER_E_IO to memory_error.
195 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
196 memory_error. Rename parameter 'status' to 'err'.
197 (dump_insns): Rename local 'status' to 'err'.
198 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
199 to 'errp'. Rename local 'status' to 'err'. Always pass
200 TARGET_XFER_E_IO to memory_error.
201 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
202 * target.c (target_read_memory, target_read_raw_memory)
203 (target_read_stack, target_read_code, target_write_memory)
204 (target_write_raw_memory): Return -1 on error instead of
205 TARGET_XFER_E_IO.
206 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
207 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
208
c5192092
SM
2092015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
210
211 * guile/guile-internal.h (gdbscm_with_guile): Change return
212 types to const char *.
213 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
214 (struct c_data) <func>: Likewise.
215 (struct c_data) <result>: Change type to const char *.
216 (scscm_eval_scheme_string): Change return type to
217 const char *.
218 (scscm_source_scheme_script): Likewise.
219 (gdbscm_safe_eval_string): Change type of result variable to
220 const char * and remove cast.
221 (gdbscm_safe_source_script): Likewise.
222 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
223 Change return type to const char *.
224 (gdbscm_disasm_read_memory): Change type of status to
225 const char *.
226
79b289e2
PA
2272015-10-27 Pedro Alves <palves@redhat.com>
228
229 * source.c (openp): New local 'last_errno'. Use it to
230 save/restore errno.
231
709b5518
PA
2322015-10-27 Pedro Alves <palves@redhat.com>
233
234 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
235
e0d13cbd
SM
2362015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
237
238 * ctf.c (SET_ENUM_FIELD): New macro.
239 (ctf_read_status): Use it.
240 (ctf_read_tp): Use it.
241
c6486df5
SM
2422015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
243
244 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
245 scm_t_dynwind_flags casts.
246 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
247 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
248 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
249
70b8286a
SM
2502015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
251
252 * ax.h (ax_raw_byte): New declaration.
253 * ax-general.c (ax_raw_byte): New function.
254 (ax_simple): Use ax_raw_byte.
255 * ax-gdb.c (gen_printf): Likewise.
256
a480de35
SM
2572015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
258
259 * ada-lang.h (GROW_VECT): Add cast.
260
a04a15f5
DE
2612015-10-26 Doug Evans <xdje42@gmail.com>
262
263 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
264
d7f3ff3e
SM
2652015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
266
267 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
268 pointer.
269 (simple_search_memory): Cast return of memmem.
270
bf6778da
SM
2712015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
272
273 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
274
c9244484
SM
2752015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
276
277 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
278 -1 on error.
279
0fde2c53
DE
2802015-10-26 Doug Evans <dje@google.com>
281
282 PR symtab/17391
283 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
284 instead of gdbarch_dwarf2_reg_to_regnum.
285 (dwarf2_frame_cache): Ditto.
286 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
287 gdbarch_dwarf2_reg_to_regnum.
288 (get_reg_value): Ditto.
289 (dwarf2_fetch_cfa_info): Ditto.
290 (dwarf2_frame_prev_register): Ditto.
291 * dwarf2loc.c: #include "complaints.h".
292 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
293 instead of gdbarch_dwarf2_reg_to_regnum.
294 (dwarf_expr_get_reg_value): Ditto.
295 (read_pieced_value): Ditto.
296 (write_pieced_value): Ditto.
297 (dwarf2_evaluate_loc_desc_full): Ditto.
298 (dwarf_reg_to_regnum): New function.
299 (throw_bad_regnum_error): New function.
300 (dwarf_reg_to_regnum_or_error): Renamed from
301 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
302 All callers updated. Call throw_bad_regnum_error.
303 (locexpr_regname): Improve text of bad register number.
304 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
305 (dwarf_reg_to_regnum_or_error): Update prototype.
306 * dwarf2expr.c: #include "dwarf2loc.h".
307 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
308 gdbarch_dwarf2_reg_to_regnum.
309 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
310 * gdbarch.h: Regenerate.
311 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
312 register.
313 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
314 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
315 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
316 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
317 Remove warning for bad register.
318 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
319 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
320 i386_svr4_reg_to_regnum. Return -1 for bad registers.
321 (i386_svr4_reg_to_regnum): New function.
322 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
323 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
324 on bad registers, return -1.
325 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
326 Remove warning for bad register.
327 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
328 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
329 Remove warning for bad register. Return -1 for bad register.
330 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
331 for bad register, return -1.
332 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
333 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
334 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
335 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
336 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
337 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
338 for bad regs.
339 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
340 bad regs. Fix error result.
341 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
342 (reg_value_complaint): Update complaint text.
343 * mdebugread.c (reg_value_complaint): New function.
344 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
345
1a70ae97
DE
3462015-10-26 Doug Evans <dje@google.com>
347
348 PR python/18938
349 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
350 All callers updated.
351
372405a5
DE
3522015-10-26 Doug Evans <dje@google.com>
353
354 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
355 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
356 (maintenance_print_psymbols): Print address map.
357
682b2546
DE
3582015-10-26 Doug Evans <dje@google.com>
359
360 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
361
963843d4
DE
3622015-10-26 Doug Evans <dje@google.com>
363
364 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
365 gdbserver/linux-low.c.
366 (WSETSTOP): Simplify.
367
d41401ac
DE
3682015-10-26 Doug Evans <dje@google.com>
369
370 * linux-thread-db.c (find_new_threads_callback): Ditto.
371 (thread_db_pid_to_str): Ditto.
372
1522597b
SM
3732015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
374
375 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
376 local char array to scm_mode_bits, use a cast instead.
377
7acd011b
SM
3782015-10-26 Simon Marchi <simon.marchi@ericsson.com>
379
380 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
381 result. Change type of element_block_ptr. Change allocation to
382 use XNEWVEC.
383
7cc53fba
LM
3842015-10-26 Luis Machado <lgustavo@codesourcery.com>
385
386 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
387 catch_errors call instead of NULL.
388
48ffa2b8
SM
3892015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
390
391 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
392 char pointer to scm_mode_bits.
393
585a269a
SM
3942015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
395
396 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
397 cast.
398
e0dd41e9
SM
3992015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
400
401 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
402 "data" local variable and use it.
403
74ef968f
SM
4042015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
405
406 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
407 domain_enum cast.
408 (gdbscm_lookup_symbol): Likewise.
409
2d5a88dc
IB
4102015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
411
412 * d-exp.y: Remove an obsolete comment and propagate the block
413 information to the produced expression.
414
f4ee58bd
SM
4152015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
416
417 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
418 cast.
419 (tui_add_content_elements): Likewise.
420
1650ca11
SM
4212015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
422
423 * cli/cli-setshow.c (do_set_command): Constify p.
424
55e5bf59
SM
4252015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
426
427 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
428 (void *) cast with (gdb_byte *).
429
49e66b4d
SM
4302015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
431
432 * proc-service.c (ps_pdread): Add cast.
433
cfcb22a5
SM
4342015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
435
436 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
437 valbuf.
438
ce746418
SM
4392015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
440
441 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
442 (ia64_push_dummy_call): Remove cast and change type of "to" to
443 array of gdb_byte.
444
a55515ee
SM
4452015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
446
447 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
448
6ecf4e06
SM
4492015-10-23 Simon Marchi <simon.marchi@ericsson.com>
450
451 * observer.h (observer_${event}_notification_stub): Add cast.
452
034f1a81
YQ
4532015-10-23 Yao Qi <yao.qi@linaro.org>
454
455 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
456 dsd.insn_count to zero.
457
d236ad19
PA
4582015-10-22 Pedro Alves <palves@redhat.com>
459
460 * infrun.c (stop_after_trap): Delete.
461 (clear_proceed_status, handle_signal_stop, struct
462 infcall_control_state, save_infcall_control_state)
463 (restore_infcall_control_state): Remove references to
464 stop_after_trap.
465
db0f0d0c
SM
4662015-10-22 Simon Marchi <simon.marchi@ericsson.com>
467
468 * python/python.c (_initialize_python): Add cast.
469
fb70bc1a
SM
4702015-10-22 Simon Marchi <simon.marchi@ericsson.com>
471
472 * nto-tdep.c (nto_inferior_data): Add cast.
473
c72f45d1
PA
4742015-10-22 Pedro Alves <palves@redhat.com>
475
476 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
477 windows_wait and windows_resume directly instead of
478 wait_for_inferior and resume.
479
60905b1e
SM
4802015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
481
482 * xtensa-tdep.h (XTREG): Add casts.
483 (XTREG_END): Likewise.
484
5af9928d
SM
4852015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
486
487 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
488
3e45d68b
SM
4892015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
490
491 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
492
709476c3
SM
4932015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
494
495 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
496 buf to gdb_byte*.
497 (supply_32bit_reg): Add cast.
498 (mips64_fill_gregset): Likewise.
499
bed91f4d
SM
5002015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
501
502 PR python/18073
503 * python/py-type.c (typy_get_composite): Allow returning a
504 function type.
505
3f2f83dd
KB
5062015-10-21 Keven Boell <keven.boell@intel.com>
507
508 * dwarf2read.c (set_die_type): Add read of
509 DW_AT_allocated and DW_AT_associated.
510 * f-typeprint.c: New include of typeprint.h
511 (f_print_type): Add check for allocated/associated
512 status of type.
513 (f_type_print_varspec_suffix): Add check for
514 * gdbtypes.c (create_array_type_with_stride):
515 Add check for valid data location of type in
516 case allocated or associated attributes are set.
517 Length of an array should be only calculated if
518 allocated or associated is resolved as true.
519 (is_dynamic_type_internal): Add check for allocated/
520 associated.
521 (resolve_dynamic_array): Evaluate allocated/associated
522 properties.
523 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
524 <DYN_PROP_ASSOCIATED>: New enums.
525 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
526 (type_not_allocated): New function.
527 (type_not_associated): New function.
528 * valarith.c (value_subscripted_rvalue): Add check for
529 allocated/associated.
530 * valprint.c: New include of typeprint.h.
531 (valprint_check_validity): Add check for allocated/associated.
532 (value_check_printable): Add check for allocated/
533 associated.
534 * typeprint.h (val_print_not_allocated): New function.
535 (val_print_not_associated): New function.
536 * typeprint.c (val_print_not_allocated): New function.
537 (val_print_not_associated): New function.
538
8689682c
AT
5392015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
540
541 * Makefile.in: Add arm.c/o.
542 * arch/arm.c: New file.
543 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
544 (MAKE_THUMB_ADDR): Likewise.
545 (UNMAKE_THUMB_ADDR): Likewise.
546 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
547 (IS_THUMB_ADDR): Move to arm.h.
548 (MAKE_THUMB_ADDR): Likewise.
549 (UNMAKE_THUMB_ADDR): Likewise.
550 * configure.tgt: Add arm.o to all ARM configs.
551
80f0110c
YQ
5522015-10-21 Yao Qi <yao.qi@linaro.org>
553
554 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
555 Remove argument exp_vCont_s.
556 * gdb.base/range-stepping.exp: Callers updated.
557 * gdb.trace/range-stepping.exp: Likewise.
558
d7161de4
AR
5592015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
560
561 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
562 (nto_sniff_abi_note_section): New function.
563 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
564 binary.
565
a9889169
AR
5662015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
567
568 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
569 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
570 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
571 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
572 New functions.
573 (_initialize_nto_tdep): New forward declaration, new function.
574 * nto-tdep.h (struct nto_inferior_data): New struct.
575 (nto_inferior_data): New function declaration.
576
5f3ff4f8
JK
5772015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
578
579 * findvar.c (address_from_register): Check REGNUM validity.
580
e5343fde
AR
5812015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
582
583 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
584 (init_procfs_targets): Wire new function.
585
8a6c0ccd
AR
5862015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
587
588 * nto-procfs.c (sys/auxv.h): Include.
589 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
590 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
591 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
592
609c3040
AR
5932015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
594
595 * nto-procfs.c (nto_procfs_path): Rename to...
596 (nodestr): ... this, and change type.
597 (nto_node): Use new variable and logic accordingly.
598 (procfs_open_1): Use new variable name. Use local buffer to construct
599 procfrs path.
600 (procfs_pidlist): Use NODESTR to construct procfs path.
601 (procfs_files_info): Use NODESTR to output meaningful text.
602 (do_attach): Construct procfs using NODESTR.
603 (procfs_create_inferior): Compare pointer to NULL.
604
bfd09d20
JS
6052015-10-19 Josh Stone <jistone@redhat.com>
606
607 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
608 return state, even when not actively catching syscalls at all.
609 (linux_handle_extended_wait): Mark syscall_state like an entry.
610 (wait_lwp): Set syscall_state ignored for other traps.
611 (linux_nat_filter_event): Likewise.
612
29090fb6
LM
6132015-10-19 Luis Machado <lgustavo@codesourcery.com>
614
615 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
616 when handling 'E', 'T', 'S', 'X' and 'W' packets.
617 Do not set rs->waiting_for_stop_reply back to 1.
618
774ee6d2
AR
6192015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
620
621 * nto-procfs.c (common/filestuff.h): Include.
622 (procfs_can_use_hw_breakpoint): Fix enum name.
623 (procfs_open_1): Fix compiler warning.
624 (procfs_pidlist): Make static.
625 (procfs_meminfo): Make static, fix type name, add missing argument.
626 (procfs_store_registers): Make static.
627 (procfs_thread_info): Remove unused function.
628 (_initialize_procfs): Forward declare.
629
e66acfb1
YQ
6302015-10-16 Yao Qi <yao.qi@arm.com>
631
632 * MAINTAINERS: Update my email address.
633
8d689ee5
YQ
6342015-10-15 Yao Qi <yao.qi@linaro.org>
635
636 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
637 Call gdbarch_breakpoint_from_pc to instruction length.
638 (aarch64_linux_remove_hw_breakpoint): Likewise.
639 * common/common-regcache.h (regcache_register_size): Declare.
640 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
641 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
642 the process is 32bit, otherwise set alignment to 4.
643 (aarch64_handle_breakpoint): Update comments.
644 * regcache.c (regcache_register_size): New function.
645
89fdc87f
AR
6462015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
647
648 * gdbarch.sh (core_regset_section): Remove.
649 * gdbarch.h: Regenerate.
650
6448a3e4
YQ
6512015-10-14 Yao Qi <yao.qi@linaro.org>
652
653 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
654 out of it.
655 (enum aarch64_memory_operand_type): New.
656
33f914a1
DE
6572015-10-13 David Edelsohn <dje.gcc@gmail.com>
658
659 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
660
e6a959d6
PA
6612015-10-13 Pedro Alves <palves@redhat.com>
662
663 * ada-lang.c (ada_enum_name): Constify local.
664 * ada-typeprint.c (print_range_bound): Constify locals.
665 * c-varobj.c (c_describe_child): Likewise.
666 * cli/cli-setshow.c (do_set_command): Likewise.
667 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
668 * dwarf2read.c (find_file_and_directory): Likewise.
669 (anonymous_struct_prefix, dwarf2_name): Likewise.
670 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
671 * go-lang.c (unpack_mangled_go_symbol): Likewise.
672 * jv-typeprint.c (java_type_print_base): Likewise.
673 * ser-tcp.c (net_open): Likewise.
674 * symfile.c (deduce_language_from_filename): Likewise.
675 * symtab.c (gdb_mangle_name): Likewise.
676 * tui/tui-io.c (tui_redisplay_readline): Likewise.
677
170742de
PA
6782015-10-13 Pedro Alves <palves@redhat.com>
679
680 * infrun.c (restore_execution_direction): New function.
681 (fetch_inferior_event): Use it instead of
682 make_cleanup_restore_integer.
683 (execution_direction): Change type to enum
684 exec_direction_kind.
685 * infrun.h (execution_direction): Likewise.
686
bfb1c796
PA
6872015-10-13 Pedro Alves <palves@redhat.com>
688
689 * ada-lang.c (ada_value_primitive_packed_val): Constify
690 locals. Use value_contents_writeable. Remove casts.
691
aa5c10ce
PA
6922015-10-13 Pedro Alves <palves@redhat.com>
693
694 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
695 and alloca calls.
696
4666fec3
SM
6972015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
698
699 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
700 write_memory with write_memory_unsigned_integer.
701
38bc8217 7022015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3953f15c
SM
703
704 * solib-dsbt.c (cmp_name): Constify arguments.
705 * solib-frv.c (cmp_name): Likewise.
706 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
707 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
708 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
709 (gdb_bfd_lookup_symbol): Likewise.
710 * solib.h (gdb_bfd_lookup_symbol): Likewise.
711 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
712
a0d34a39
AB
7132015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
714
715 * stack.c (parse_frame_specification): Remove message parameter,
716 replace with fixed string in function body, update function
717 comment.
718 (frame_info): Remove message to parse_frame_specification.
719 (select_frame_command): Likewise.
720
edbbff4a
AB
7212015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * stack.c (parse_frame_specification): Delete.
724 (parse_frame_specification_1): Rename to
725 parse_frame_specification.
726 (frame_info): Use parse_frame_specification.
727 (select_frame_command): Likewise.
728 (return_command): Use select_frame and print_stack_frame rather
729 than frame_command and select_frame_command.
730 (func_command): Use get_current_frame rather than
731 parse_frame_specification.
732
9d622bda
AB
7332015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
734
735 * stack.c (func_command): Return early when there is no ARG
736 string.
737
8d3fea16
AB
7382015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
739
740 * stack.c: Include safe-ctype.h not ctype.h.
741 (parse_frame_specification): Use ISSPACE not isspace.
742 (backtrace_command): Use TOLOWER not tolower.
743
f54b226f
SM
7442015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
745
746 * mep-tdep.c (current_me_module): Add cast.
747 (mep_gdbarch_init): Likewise.
748
6da660c7
SM
7492015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
750
751 * m32c-tdep.c (m32c_move_reg_t): Replace with...
752 (m32c_write_reg_t): ...this and...
753 (m32c_read_reg_t): ...this.
754 (struct m32c_reg): Update types of read and write.
755 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
756 adjust definition.
757 (m32c_banked_read): Likewise.
758 (m32c_sb_read): Likewise.
759 (m32c_part_read): Likewise.
760 (m32c_cat_read): Likewise.
761 (m32c_r3r2r1r0_read): Likewise.
762 (m32c_raw_write): Change declaration type to m32c_write_reg_t
763 and adjust definition.
764 (m32c_banked_write): Likewise.
765 (m32c_sb_write): Likewise.
766 (m32c_part_write): Likewise.
767 (m32c_cat_write): Likewise.
768 (m32c_r3r2r1r0_write): Likewise.
769
1f713e48
SM
7702015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
771
772 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
773
cb65d272
SM
7742015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
775
776 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
777 gdb_sys_no_syscall instead of -1.
778
eda14cf2
YQ
7792015-10-12 Yao Qi <yao.qi@linaro.org>
780
781 * NEWS: Mention the change.
782
1c2e1515
YQ
7832015-10-12 Yao Qi <yao.qi@linaro.org>
784
785 * arch/aarch64-insn.c (emit_load_store): Rename to ...
786 (aarch64_emit_load_store): ... it. All callers updated.
787
e1c587c3
YQ
7882015-10-12 Yao Qi <yao.qi@linaro.org>
789
790 * arch/aarch64-insn.c (emit_insn): Rename to ...
791 (aarch64_emit_insn): ... it. All callers updated.
792
b6542f81
YQ
7932015-10-12 Yao Qi <yao.qi@linaro.org>
794
795 * aarch64-linux-tdep.c: Include arch-utils.h.
796 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
797 set_gdbarch_displaced_step_copy_insn,
798 set_gdbarch_displaced_step_fixup,
799 set_gdbarch_displaced_step_free_closure,
800 set_gdbarch_displaced_step_location,
801 and set_gdbarch_displaced_step_hw_singlestep.
802 * aarch64-tdep.c (struct displaced_step_closure): New.
803 (struct aarch64_displaced_step_data): New.
804 (aarch64_displaced_step_b): New function.
805 (aarch64_displaced_step_b_cond): Likewise.
806 (aarch64_register): Likewise.
807 (aarch64_displaced_step_cb): Likewise.
808 (aarch64_displaced_step_tb): Likewise.
809 (aarch64_displaced_step_adr): Likewise.
810 (aarch64_displaced_step_ldr_literal): Likewise.
811 (aarch64_displaced_step_others): Likewise.
812 (aarch64_displaced_step_copy_insn): Likewise.
813 (aarch64_displaced_step_fixup): Likewise.
814 (aarch64_displaced_step_hw_singlestep): Likewise.
815 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
816 (aarch64_displaced_step_copy_insn): Declare.
817 (aarch64_displaced_step_fixup): Declare.
818 (aarch64_displaced_step_hw_singlestep): Declare.
819 * arch/aarch64-insn.c (emit_insn): Moved from
820 gdbserver/linux-aarch64-low.c.
821 (emit_load_store): Likewise.
822 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
823 gdbserver/linux-aarch64-low.c.
824 (struct aarch64_register): Likewise.
825 (struct aarch64_memory_operand): Likewise.
826 (ENCODE): Likewise.
827 (can_encode_int32): New macro.
828 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
829 (emit_tb, emit_nop): Likewise.
830 (emit_insn): Declare.
831 (emit_load_store): Declare.
832
246994ce
YQ
8332015-10-12 Yao Qi <yao.qi@linaro.org>
834
835 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
836 gdbserver/linux-aarch64-low.c.
837 (aarch64_relocate_instruction): Likewise.
838 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
839 (struct aarch64_insn_data): Moved from
840 gdbserver/linux-aarch64-low.c.
841 (struct aarch64_insn_visitor): Likewise.
842 (aarch64_relocate_instruction): Declare.
843
2520f728
PMR
8442015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
845
846 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
847 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
848 to the returned value.
849
5b639dea
JB
8502015-10-09 Joel Brobecker <brobecker@adacore.com>
851
852 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
853 is large enough for BIT_SIZE. Update function comment.
854
0cafa88c
JB
8552015-10-09 Joel Brobecker <brobecker@adacore.com>
856
857 * ada-lang.c (ada_value_primitive_packed_val): Move
858 src_len variable to local block where used. Override
859 BIT_SIZE if bigger than size of resolved type.
860
220475ed
JB
8612015-10-09 Joel Brobecker <brobecker@adacore.com>
862
863 * gdbtypes.h (is_scalar_type): Add extern declaration.
864 * gdbtypes.c (is_scalar_type): Make non-static.
865 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
866 to compute IS_SCALAR instead of doing it ourselves.
867
d0a9e810
JB
8682015-10-09 Joel Brobecker <brobecker@adacore.com>
869
870 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
871 of case where TYPE is dynamic.
872
f93fca70
JB
8732015-10-09 Joel Brobecker <brobecker@adacore.com>
874
875 * ada-lang.c (ada_unpack_from_contents): New function,
876 extracted from ada_value_primitive_packed_val.
877 (ada_value_primitive_packed_val): Replace extracted out code
878 by call to ada_unpack_from_contents.
879
a1c95e6b
JB
8802015-10-09 Joel Brobecker <brobecker@adacore.com>
881
882 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
883 variable declarations.
884
fbd000da
JB
8852015-10-09 Joel Brobecker <brobecker@adacore.com>
886
887 * ada-lang.c (ada_value_primitive_packed_val): Change the type
888 of local variables src and unpacked to "gdb_type *" instead of
889 "unsigned char *".
890
086ca51f
JB
8912015-10-09 Joel Brobecker <brobecker@adacore.com>
892
893 * ada-lang.c (ada_value_primitive_packed_val): Make the name
894 of various local variables more explicit and consistent.
895 No real code change otherwise.
896
c5bcd278
SM
8972015-10-09 Simon Marchi <simon.marchi@ericsson.com>
898
899 * i386-tdep.h (struct gdbarch_tdep): Change type of
900 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
901
78c5b882
SM
9022015-10-09 Simon Marchi <simon.marchi@ericsson.com>
903
904 * cris-tdep.c (struct instruction_environment): Change type of
905 byte_order to enum bfd_endian.
906
f9fa37b3
SM
9072015-10-09 Simon Marchi <simon.marchi@ericsson.com>
908
909 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
910 enum gdb_syscall casts.
911
7c543f7b
SM
9122015-10-09 Simon Marchi <simon.marchi@ericsson.com>
913
914 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
915 * arm-tdep.c (struct stack_item): Likewise.
916 (push_stack_item): Add gdb_byte* cast.
917 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
918 (push_stack_item): Add gdb_byte* cast.
919 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
920 and add cast.
921 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
922 (push_stack_item): Add gdb_byte* cast.
923 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
924 add cast.
925 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
926 gdb_byte*.
927 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
928 gdb_byte* and remove unnecessary cast.
929 (h8300h_extract_return_value): Likewise.
930 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
931 (h8300h_store_return_value): Likewise.
932 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
933 gdb_byte* and remove unnecessary cast.
934 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
935 and add cast.
936 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
937 gdb_byte* and remove unnecessary cast.
938 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
939 valbuf.
940 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
941 (mep_pseudo_cr64_read): Likewise.
942 (mep_pseudo_csr_write): Likewise.
943 (mep_pseudo_cr32_write): Likewise.
944 (mep_pseudo_cr64_write): Likewise.
945 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
946 gdb_byte* and add cast.
947 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
948 gdb_byte* and remove unnecessary cast.
949 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
950 valbuf.
951 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
952 gdb_byte*.
953 * printcmd.c (void): Likewise.
954 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
955 gdb_byte* and add cast.
956 (infpy_write_memory): Likewise.
957 (infpy_search_memory): Likewise.
958 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
959 and add cast.
960 (regcache_raw_write_unsigned): Likewise.
961 (regcache_cooked_write_signed): Likewise.
962 (regcache_cooked_write_unsigned): Likewise.
963 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
964 gdb_byte*.
965
7567e115
SM
9662015-10-09 Simon Marchi <simon.marchi@ericsson.com>
967
968 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
969 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
970
f9acce4a
EZ
9712015-10-09 Eli Zaretskii <eliz@gnu.org>
972
973 * stack.c (print_stack_frame):
974 * utils.c (printchar): Fix typos in commentary.
975
d5d8c4e1
IB
9762015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
977
978 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
979 (PostfixExpression): Support `expr.sizeof' expressions.
980 (PrimaryExpression): Support `typeof(expr)' expressions.
981
4e7de155
MR
9822015-10-08 Maciej W. Rozycki <macro@imgtec.com>
983
984 * MAINTAINERS: Update my email address.
985
04c4fe8c
MM
9862015-10-08 Markus Metzger <markus.t.metzger@intel.com>
987
988 * record-btrace.c (record_btrace_resume): Fix void return.
989
f77ee802
YQ
9902015-10-07 Yao Qi <yao.qi@linaro.org>
991
992 * aarch64-tdep.c: Include opcode/aarch64.h.
993 (submask): Move it above.
994 (bit): Likewise.
995 (bits): Likewise.
996 (aarch64_software_single_step): Call aarch64_decode_insn.
997 Decode instruction by aarch64_inst instead of using
998 aarch64_decode_bcond and decode_masked_match.
999
cbd641ed
PS
10002015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1001
1002 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
1003 only when the file is binary.
1004
ae4e2501 10052015-10-02 James Bowman <james.bowman@ftdichip.com>
1006
1007 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
1008 subroutine handling.
1009
dd0a637a
SM
10102015-10-01 Simon Marchi <simon.marchi@ericsson.com>
1011
1012 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
1013
1fd60fc0
DE
10142015-09-30 Doug Evans <dje@google.com>
1015
1016 * dwarf2read.c (setup_type_unit_groups): Add comment.
1017
398e0813
PA
10182015-09-30 Pedro Alves <palves@redhat.com>
1019
1020 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
1021 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
1022 (x86_linux_create_target): Don't install
1023 x86_linux_always_non_stop_p.
1024
6ab24463
DB
10252015-09-30 Don Breazeal <donb@codesourcery.com>
1026
1027 * remote.c (remote_parse_stop_reply): Call strprefix instead
1028 of strncmp.
1029
ede5f151
SM
10302015-09-30 Simon Marchi <simon.marchi@ericsson.com>
1031
1032 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
1033 * gdbarch.h: Regenerate.
1034 * i386-tdep.c (i386_gdbarch_init): Remove cast to
1035 struct gdbarch_tdep_info *.
1036 * mips-tdep.c (mips_gdbarch_init): Likewise.
1037 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
1038 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1039 * spu-multiarch.c (spu_gdbarch): Likewise.
1040
51c935fa 10412015-09-30 Kevin Buettner <kevinb@redhat.com>
aca20ec4
KB
1042
1043 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
1044 record a NULL value.
1045
3b1ad7d5
KB
10462015-09-29 Kevin Buettner <kevinb@redhat.com>
1047
1048 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
1049 and union arguments the same as pointer arguments when determining
1050 size of argument.
1051
86feccb9 10522015-09-29 James Bowman <james.bowman@ftdichip.com>
1053
1054 * ft32-tdep.c: #include "opcode/ft32.h".
1055 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
1056 (ft32_analyze_prologue): Use FT32_* macros.
1057
2181a6c6
SM
10582015-09-28 Simon Marchi <simon.marchi@ericsson.com>
1059
84d73afc 1060 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2181a6c6
SM
1061 comment.
1062
245af596
DE
10632015-09-28 Doug Evans <dje@google.com>
1064
1065 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
1066
c402ef90
DE
10672015-09-28 Doug Evans <dje@google.com>
1068
1069 * common/filestuff.c (make_cleanup_close): Update comment.
1070
38bc8217 10712015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
bc84451b
SM
1072
1073 * btrace.c (parse_xml_btrace_block): Fix cast of
1074 xml_find_attribute's return value.
1075 * memory-map.c (memory_map_start_memory): Likewise.
1076 * solib-svr4.c (library_list_start_library): Likewise.
1077 * solib-target.c (library_list_start_segment): Likewise.
1078 (library_list_start_section): Likewise.
1079 * tracepoint.c (traceframe_info_start_memory): Likewise.
1080
ba587d55
IB
10812015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
1082
1083 * d-namespace.c (d_lookup_symbol): New arg langdef.
1084 All callers updated. Support looking up symbol as a primitive type.
1085 (lookup_module_scope): New arg langdef. All callers updated.
1086 Call d_lookup_symbol directly for simple bare symbols.
1087
19ba03f4
SM
10882015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1089
1090 * macrocmd.c (print_macro_callback): Add cast(s).
1091 * macrotab.c (macro_bcache_str): Likewise.
1092 (new_macro_definition): Likewise.
1093 * main.c (captured_main): Likewise.
1094 * maint.c (print_bfd_section_info): Likewise.
1095 * mdebugread.c (mdebug_build_psymtabs): Likewise.
1096 (basic_type): Likewise.
1097 * memattr.c (mem_region_cmp): Likewise.
1098 * memory-map.c (memory_map_start_memory): Likewise.
1099 (memory_map_end_memory): Likewise.
1100 (memory_map_start_property): Likewise.
1101 (memory_map_end_property): Likewise.
1102 (clear_result): Likewise.
1103 * memrange.c (compare_mem_ranges): Likewise.
1104 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1105 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1106 * mi/mi-console.c (mi_console_file_delete): Likewise.
1107 (mi_console_file_fputs): Likewise.
1108 (mi_console_raw_packet): Likewise.
1109 (mi_console_file_flush): Likewise.
1110 (mi_console_set_raw): Likewise.
1111 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1112 (mi_new_thread): Likewise.
1113 (mi_thread_exit): Likewise.
1114 (mi_record_changed): Likewise.
1115 (mi_inferior_added): Likewise.
1116 (mi_inferior_appeared): Likewise.
1117 (mi_inferior_exit): Likewise.
1118 (mi_inferior_removed): Likewise.
1119 (mi_interp_data): Likewise.
1120 (mi_on_normal_stop): Likewise.
1121 (mi_traceframe_changed): Likewise.
1122 (mi_tsv_created): Likewise.
1123 (mi_tsv_deleted): Likewise.
1124 (mi_tsv_modified): Likewise.
1125 (mi_breakpoint_created): Likewise.
1126 (mi_breakpoint_deleted): Likewise.
1127 (mi_breakpoint_modified): Likewise.
1128 (mi_output_running_pid): Likewise.
1129 (mi_inferior_count): Likewise.
1130 (mi_solib_loaded): Likewise.
1131 (mi_solib_unloaded): Likewise.
1132 (mi_command_param_changed): Likewise.
1133 (mi_memory_changed): Likewise.
1134 (report_initial_inferior): Likewise.
1135 (mi_ui_out): Likewise.
1136 (mi_set_logging): Likewise.
1137 * mi/mi-main.c (collect_cores): Likewise.
1138 (print_one_inferior): Likewise.
1139 (free_vector_of_ints): Likewise.
1140 (free_splay_tree): Likewise.
1141 (mi_execute_command): Likewise.
1142 * mi/mi-out.c (mi_table_body): Likewise.
1143 (mi_table_end): Likewise.
1144 (mi_table_header): Likewise.
1145 (mi_begin): Likewise.
1146 (mi_end): Likewise.
1147 (mi_field_int): Likewise.
1148 (mi_field_string): Likewise.
1149 (mi_field_fmt): Likewise.
1150 (mi_flush): Likewise.
1151 (mi_redirect): Likewise.
1152 (field_separator): Likewise.
1153 (mi_open): Likewise.
1154 (mi_close): Likewise.
1155 (mi_out_buffered): Likewise.
1156 (mi_out_rewind): Likewise.
1157 (mi_out_put): Likewise.
1158 (mi_version): Likewise.
1159 (mi_out_data_dtor): Likewise.
1160 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1161 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1162 * minidebug.c (lzma_open): Likewise.
1163 (lzma_pread): Likewise.
1164 (lzma_close): Likewise.
1165 (lzma_stat): Likewise.
1166 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1167 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1168 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1169 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1170 (mips_micro_frame_cache): Likewise.
1171 (mips_insn32_frame_cache): Likewise.
1172 (mips_stub_frame_cache): Likewise.
1173 (gdb_print_insn_mips): Likewise.
1174 (value_of_mips_user_reg): Likewise.
1175 (mips_gdbarch_init): Likewise.
1176 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1177 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1178 (mipsnbsd_supply_gregset): Likewise.
1179 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1180 (am33_collect_gregset_method): Likewise.
1181 (am33_collect_fpregset_method): Likewise.
1182 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1183 * moxie-tdep.c (moxie_frame_cache): Likewise.
1184 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1185 (msp430_analyze_frame_prologue): Likewise.
1186 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1187 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1188 (nios2_collect_gregset): Likewise.
1189 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1190 (nios2_stub_frame_cache): Likewise.
1191 * objc-lang.c (find_methods): Likewise.
1192 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1193 (get_objfile_pspace_data): Likewise.
1194 (get_objfile_bfd_data): Likewise.
1195 (objfile_bfd_data_free): Likewise.
1196 (add_to_objfile_sections): Likewise.
1197 (do_free_objfile_cleanup): Likewise.
1198 (resume_section_map_updates_cleanup): Likewise.
1199 * opencl-lang.c (builtin_opencl_type): Likewise.
1200 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1201 * osdata.c (osdata_start_osdata): Likewise.
1202 (osdata_start_item): Likewise.
1203 (osdata_start_column): Likewise.
1204 (osdata_end_column): Likewise.
1205 (clear_parsing_data): Likewise.
1206 (osdata_free_cleanup): Likewise.
1207 * parse.c (type_stack_cleanup): Likewise.
1208 (exp_uses_objfile_iter): Likewise.
1209 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1210 (ppc_linux_collect_gregset): Likewise.
1211 (ppu2spu_prev_arch): Likewise.
1212 (ppu2spu_this_id): Likewise.
1213 (ppu2spu_prev_register): Likewise.
1214 (ppu2spu_unwind_register): Likewise.
1215 (ppu2spu_sniffer): Likewise.
1216 (ppu2spu_dealloc_cache): Likewise.
1217 (ppc_linux_init_abi): Likewise.
1218 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1219 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1220 * progspace.c (restore_program_space): Likewise.
1221 * psymtab.c (find_pc_sect_psymtab): Likewise.
1222 (compare_psymbols): Likewise.
1223 (psymbol_bcache_full): Likewise.
1224 (allocate_psymtab): Likewise.
1225 (discard_psymtabs_upto): Likewise.
1226 * python/py-block.c (set_block): Likewise.
1227 (del_objfile_blocks): Likewise.
1228 * python/py-breakpoint.c (build_bp_list): Likewise.
1229 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1230 (build_inferior_list): Likewise.
1231 (py_free_inferior): Likewise.
1232 * python/py-objfile.c (py_free_objfile): Likewise.
1233 (objfile_to_objfile_object): Likewise.
1234 * python/py-prettyprint.c (py_restore_tstate): Likewise.
1235 * python/py-progspace.c (py_free_pspace): Likewise.
1236 (pspace_to_pspace_object): Likewise.
1237 * python/py-symbol.c (set_symbol): Likewise.
1238 (del_objfile_symbols): Likewise.
1239 * python/py-symtab.c (set_sal): Likewise.
1240 (set_symtab): Likewise.
1241 (del_objfile_symtab): Likewise.
1242 (del_objfile_sal): Likewise.
1243 * python/py-type.c (save_objfile_types): Likewise.
1244 (set_type): Likewise.
1245 * python/py-unwind.c (pyuw_prev_register): Likewise.
1246 (pyuw_on_new_gdbarch): Likewise.
1247 * python/py-utils.c (py_decref): Likewise.
1248 (py_xdecref): Likewise.
1249 (gdb_py_generic_dict): Likewise.
1250 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1251 (gdbpy_clone_xmethod_worker_data): Likewise.
1252 (gdbpy_get_xmethod_arg_types): Likewise.
1253 (gdbpy_get_xmethod_result_type): Likewise.
1254 (gdbpy_invoke_xmethod): Likewise.
1255 * python/python.c (gdbpy_apply_type_printers): Likewise.
1256 (gdbpy_free_type_printers): Likewise.
1257 * record-btrace.c (record_btrace_disable_callback): Likewise.
1258 (bfcache_hash): Likewise.
1259 (bfcache_eq): Likewise.
1260 (btrace_get_frame_function): Likewise.
1261 (record_btrace_frame_unwind_stop_reason): Likewise.
1262 (record_btrace_frame_this_id): Likewise.
1263 (record_btrace_frame_prev_register): Likewise.
1264 (record_btrace_frame_dealloc_cache): Likewise.
1265 * record-full.c (record_full_message_wrapper): Likewise.
1266 (record_full_save_cleanups): Likewise.
1267 * regcache.c (regcache_descr): Likewise.
1268 (do_regcache_xfree): Likewise.
1269 (do_regcache_invalidate): Likewise.
1270 (do_cooked_read): Likewise.
1271 (regcache_transfer_regset): Likewise.
1272 * reggroups.c (reggroup_add): Likewise.
1273 (reggroup_next): Likewise.
1274 (reggroup_prev): Likewise.
1275 * remote-fileio.c (do_remote_fileio_request): Likewise.
1276 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1277 (do_notif_event_xfree): Likewise.
1278 * remote.c (get_remote_arch_state): Likewise.
1279 (remote_pspace_data_cleanup): Likewise.
1280 (get_remote_exec_file): Likewise.
1281 (set_pspace_remote_exec_file): Likewise.
1282 (compare_pnums): Likewise.
1283 (clear_threads_listing_context): Likewise.
1284 (remote_newthread_step): Likewise.
1285 (start_thread): Likewise.
1286 (end_thread): Likewise.
1287 (remove_child_of_pending_fork): Likewise.
1288 (remove_stop_reply_for_inferior): Likewise.
1289 (remove_stop_reply_of_remote_state): Likewise.
1290 (remote_notif_remove_once_on_match): Likewise.
1291 (stop_reply_match_ptid_and_ws): Likewise.
1292 (kill_child_of_pending_fork): Likewise.
1293 (register_remote_g_packet_guess): Likewise.
1294 (remote_read_description_p): Likewise.
1295 (remote_read_description): Likewise.
1296 (free_actions_list_cleanup_wrapper): Likewise.
1297 (remote_async_serial_handler): Likewise.
1298 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1299 (rl78_analyze_frame_prologue): Likewise.
1300 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1301 (ppc_supply_fpregset): Likewise.
1302 (ppc_supply_vsxregset): Likewise.
1303 (ppc_supply_vrregset): Likewise.
1304 (ppc_collect_gregset): Likewise.
1305 (ppc_collect_fpregset): Likewise.
1306 (ppc_collect_vsxregset): Likewise.
1307 (ppc_collect_vrregset): Likewise.
1308 (e500_move_ev_register): Likewise.
1309 (do_regcache_raw_write): Likewise.
1310 (rs6000_frame_cache): Likewise.
1311 (rs6000_epilogue_frame_cache): Likewise.
1312 (rs6000_gdbarch_init): Likewise.
1313 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1314 (rx_analyze_frame_prologue): Likewise.
1315 (rx_frame_type): Likewise.
1316 (rx_frame_sniffer_common): Likewise.
1317 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1318 (s390_frame_unwind_cache): Likewise.
1319 (s390_stub_frame_unwind_cache): Likewise.
1320 (s390_sigtramp_frame_unwind_cache): Likewise.
1321 * score-tdep.c (score_make_prologue_cache): Likewise.
1322 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1323 (sentinel_frame_prev_arch): Likewise.
1324 * ser-base.c (fd_event): Likewise.
1325 (push_event): Likewise.
1326 (ser_base_write): Likewise.
1327 * ser-pipe.c (pipe_close): Likewise.
1328 * serial.c (serial_write): Likewise.
1329 * sh-tdep.c (sh_frame_cache): Likewise.
1330 (sh_stub_this_id): Likewise.
1331 * sh64-tdep.c (sh64_frame_cache): Likewise.
1332 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1333 (library_list_start_library): Likewise.
1334 (library_list_start_list): Likewise.
1335 (solib_aix_free_library_list): Likewise.
1336 * solib-darwin.c (get_darwin_info): Likewise.
1337 * solib-dsbt.c (get_dsbt_info): Likewise.
1338 * solib-spu.c (append_ocl_sos): Likewise.
1339 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1340 (get_svr4_info): Likewise.
1341 (library_list_start_library): Likewise.
1342 (svr4_library_list_start_list): Likewise.
1343 (hash_probe_and_action): Likewise.
1344 (equal_probe_and_action): Likewise.
1345 (svr4_update_solib_event_breakpoint): Likewise.
1346 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1347 (svr4_fetch_link_map_offsets): Likewise.
1348 (svr4_have_link_map_offsets): Likewise.
1349 * solib-target.c (library_list_start_segment): Likewise.
1350 (library_list_start_section): Likewise.
1351 (library_list_start_library): Likewise.
1352 (library_list_end_library): Likewise.
1353 (library_list_start_list): Likewise.
1354 (solib_target_free_library_list): Likewise.
1355 * solib.c (solib_ops): Likewise.
1356 (set_solib_ops): Likewise.
1357 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1358 * sparc-tdep.c (sparc_frame_cache): Likewise.
1359 (sparc32_frame_cache): Likewise.
1360 (sparc32_supply_gregset): Likewise.
1361 (sparc32_collect_gregset): Likewise.
1362 (sparc32_supply_fpregset): Likewise.
1363 (sparc32_collect_fpregset): Likewise.
1364 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1365 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1366 (sparc64_collect_gregset): Likewise.
1367 (sparc64_supply_fpregset): Likewise.
1368 (sparc64_collect_fpregset): Likewise.
1369 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1370 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1371 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1372 (sparc64obsd_trapframe_cache): Likewise.
1373 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1374 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1375 * spu-multiarch.c (spu_gdbarch): Likewise.
1376 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1377 (spu2ppu_prev_arch): Likewise.
1378 (spu2ppu_this_id): Likewise.
1379 (spu2ppu_prev_register): Likewise.
1380 (spu2ppu_dealloc_cache): Likewise.
1381 (spu_dis_asm_print_address): Likewise.
1382 (gdb_print_insn_spu): Likewise.
1383 (spu_get_overlay_table): Likewise.
1384 * stabsread.c (rs6000_builtin_type): Likewise.
1385 * stack.c (do_print_variable_and_value): Likewise.
1386 * stap-probe.c (get_stap_base_address_1): Likewise.
1387 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1388 (debug_qf_find_last_source_symtab): Likewise.
1389 (debug_qf_forget_cached_source_info): Likewise.
1390 (debug_qf_map_symtabs_matching_filename): Likewise.
1391 (debug_qf_lookup_symbol): Likewise.
1392 (debug_qf_print_stats): Likewise.
1393 (debug_qf_dump): Likewise.
1394 (debug_qf_relocate): Likewise.
1395 (debug_qf_expand_symtabs_for_function): Likewise.
1396 (debug_qf_expand_all_symtabs): Likewise.
1397 (debug_qf_expand_symtabs_with_fullname): Likewise.
1398 (debug_qf_map_matching_symbols): Likewise.
1399 (debug_qf_expand_symtabs_matching): Likewise.
1400 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1401 (debug_qf_map_symbol_filenames): Likewise.
1402 (debug_sym_get_probes): Likewise.
1403 (debug_sym_new_init): Likewise.
1404 (debug_sym_init): Likewise.
1405 (debug_sym_read): Likewise.
1406 (debug_sym_read_psymbols): Likewise.
1407 (debug_sym_finish): Likewise.
1408 (debug_sym_offsets): Likewise.
1409 (debug_sym_read_linetable): Likewise.
1410 (debug_sym_relocate): Likewise.
1411 (uninstall_symfile_debug_logging): Likewise.
1412 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1413 * symfile.c (place_section): Likewise.
1414 (add_section_size_callback): Likewise.
1415 (load_progress): Likewise.
1416 (load_section_callback): Likewise.
1417 (clear_memory_write_data): Likewise.
1418 (allocate_symtab): Likewise.
1419 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1420 * symtab.c (lookup_symtab_callback): Likewise.
1421 (hash_demangled_name_entry): Likewise.
1422 (eq_demangled_name_entry): Likewise.
1423 (get_symbol_cache): Likewise.
1424 (symbol_cache_cleanup): Likewise.
1425 (set_symbol_cache_size): Likewise.
1426 (symbol_cache_flush): Likewise.
1427 (maintenance_print_symbol_cache): Likewise.
1428 (maintenance_print_symbol_cache_statistics): Likewise.
1429 (delete_filename_seen_cache): Likewise.
1430 (output_partial_symbol_filename): Likewise.
1431 (search_symbols_file_matches): Likewise.
1432 (search_symbols_name_matches): Likewise.
1433 (do_free_completion_list): Likewise.
1434 (maybe_add_partial_symtab_filename): Likewise.
1435 (get_main_info): Likewise.
1436 (main_info_cleanup): Likewise.
1437 * target-dcache.c (target_dcache_cleanup): Likewise.
1438 (target_dcache_init_p): Likewise.
1439 (target_dcache_invalidate): Likewise.
1440 (target_dcache_get): Likewise.
1441 (target_dcache_get_or_init): Likewise.
1442 * target-descriptions.c (target_find_description): Likewise.
1443 (tdesc_find_type): Likewise.
1444 (tdesc_data_cleanup): Likewise.
1445 (tdesc_find_arch_register): Likewise.
1446 (tdesc_register_name): Likewise.
1447 (tdesc_register_type): Likewise.
1448 (tdesc_register_reggroup_p): Likewise.
1449 (set_tdesc_pseudo_register_name): Likewise.
1450 (set_tdesc_pseudo_register_type): Likewise.
1451 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1452 (tdesc_use_registers): Likewise.
1453 (free_target_description): Likewise.
1454 * target-memory.c (compare_block_starting_address): Likewise.
1455 (cleanup_request_data): Likewise.
1456 (cleanup_write_requests_vector): Likewise.
1457 * target.c (open_target): Likewise.
1458 (cleanup_restore_target_terminal): Likewise.
1459 (free_memory_read_result_vector): Likewise.
1460 * thread.c (disable_thread_stack_temporaries): Likewise.
1461 (finish_thread_state_cleanup): Likewise.
1462 (do_restore_current_thread_cleanup): Likewise.
1463 (restore_current_thread_cleanup_dtor): Likewise.
1464 (set_thread_refcount): Likewise.
1465 (tp_array_compar): Likewise.
1466 (do_captured_thread_select): Likewise.
1467 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1468 (tic6x_stub_this_id): Likewise.
1469 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1470 * top.c (do_restore_instream_cleanup): Likewise.
1471 (gdb_readline_wrapper_cleanup): Likewise.
1472 (kill_or_detach): Likewise.
1473 (print_inferior_quit_action): Likewise.
1474 * tracefile-tfile.c (match_blocktype): Likewise.
1475 (build_traceframe_info): Likewise.
1476 * tracefile.c (trace_file_writer_xfree): Likewise.
1477 * tracepoint.c (memrange_cmp): Likewise.
1478 (do_collect_symbol): Likewise.
1479 (do_clear_collection_list): Likewise.
1480 (do_restore_current_traceframe_cleanup): Likewise.
1481 (restore_current_traceframe_cleanup_dtor): Likewise.
1482 (free_current_marker): Likewise.
1483 (traceframe_info_start_memory): Likewise.
1484 (traceframe_info_start_tvar): Likewise.
1485 (free_result): Likewise.
1486 * tramp-frame.c (tramp_frame_cache): Likewise.
1487 * tui/tui-file.c (tui_file_delete): Likewise.
1488 (tui_fileopen): Likewise.
1489 (tui_sfileopen): Likewise.
1490 (tui_file_isatty): Likewise.
1491 (tui_file_rewind): Likewise.
1492 (tui_file_put): Likewise.
1493 (tui_file_fputs): Likewise.
1494 (tui_file_get_strbuf): Likewise.
1495 (tui_file_adjust_strbuf): Likewise.
1496 (tui_file_flush): Likewise.
1497 * tui/tui-layout.c (make_command_window): Likewise.
1498 (make_data_window): Likewise.
1499 (show_source_disasm_command): Likewise.
1500 (show_data): Likewise.
1501 (make_source_or_disasm_window): Likewise.
1502 (show_source_or_disasm_and_command): Likewise.
1503 * tui/tui-out.c (tui_field_int): Likewise.
1504 (tui_field_string): Likewise.
1505 (tui_field_fmt): Likewise.
1506 (tui_text): Likewise.
1507 * typeprint.c (hash_typedef_field): Likewise.
1508 (eq_typedef_field): Likewise.
1509 (do_free_typedef_hash): Likewise.
1510 (copy_typedef_hash_element): Likewise.
1511 (do_free_global_table): Likewise.
1512 (find_global_typedef): Likewise.
1513 (find_typedef_in_hash): Likewise.
1514 * ui-file.c (ui_file_write_for_put): Likewise.
1515 (do_ui_file_xstrdup): Likewise.
1516 (mem_file_delete): Likewise.
1517 (mem_file_rewind): Likewise.
1518 (mem_file_put): Likewise.
1519 (mem_file_write): Likewise.
1520 (stdio_file_delete): Likewise.
1521 (stdio_file_flush): Likewise.
1522 (stdio_file_read): Likewise.
1523 (stdio_file_write): Likewise.
1524 (stdio_file_write_async_safe): Likewise.
1525 (stdio_file_fputs): Likewise.
1526 (stdio_file_isatty): Likewise.
1527 (stdio_file_fseek): Likewise.
1528 (tee_file_delete): Likewise.
1529 (tee_file_flush): Likewise.
1530 (tee_file_write): Likewise.
1531 (tee_file_fputs): Likewise.
1532 (tee_file_isatty): Likewise.
1533 * ui-out.c (do_cleanup_table_end): Likewise.
1534 (do_cleanup_end): Likewise.
1535 * user-regs.c (user_reg_add): Likewise.
1536 (user_reg_map_name_to_regnum): Likewise.
1537 (usernum_to_user_reg): Likewise.
1538 (maintenance_print_user_registers): Likewise.
1539 * utils.c (do_bfd_close_cleanup): Likewise.
1540 (do_fclose_cleanup): Likewise.
1541 (do_obstack_free): Likewise.
1542 (do_ui_file_delete): Likewise.
1543 (do_ui_out_redirect_pop): Likewise.
1544 (do_free_section_addr_info): Likewise.
1545 (restore_integer): Likewise.
1546 (do_unpush_target): Likewise.
1547 (do_htab_delete_cleanup): Likewise.
1548 (do_restore_ui_file): Likewise.
1549 (do_value_free): Likewise.
1550 (do_free_so): Likewise.
1551 (free_current_contents): Likewise.
1552 (do_regfree_cleanup): Likewise.
1553 (core_addr_hash): Likewise.
1554 (core_addr_eq): Likewise.
1555 (do_free_char_ptr_vec): Likewise.
1556 * v850-tdep.c (v850_frame_cache): Likewise.
1557 * varobj.c (do_free_variable_cleanup): Likewise.
1558 * vax-tdep.c (vax_supply_gregset): Likewise.
1559 (vax_frame_cache): Likewise.
1560 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1561 * xml-support.c (gdb_xml_body_text): Likewise.
1562 (gdb_xml_values_cleanup): Likewise.
1563 (gdb_xml_start_element): Likewise.
1564 (gdb_xml_start_element_wrapper): Likewise.
1565 (gdb_xml_end_element): Likewise.
1566 (gdb_xml_end_element_wrapper): Likewise.
1567 (gdb_xml_cleanup): Likewise.
1568 (gdb_xml_fetch_external_entity): Likewise.
1569 (gdb_xml_parse_attr_enum): Likewise.
1570 (xinclude_start_include): Likewise.
1571 (xinclude_end_include): Likewise.
1572 (xml_xinclude_default): Likewise.
1573 (xml_xinclude_start_doctype): Likewise.
1574 (xml_xinclude_end_doctype): Likewise.
1575 (xml_xinclude_cleanup): Likewise.
1576 (xml_fetch_content_from_file): Likewise.
1577 * xml-syscall.c (free_syscalls_info): Likewise.
1578 (syscall_start_syscall): Likewise.
1579 * xml-tdesc.c (tdesc_end_arch): Likewise.
1580 (tdesc_end_osabi): Likewise.
1581 (tdesc_end_compatible): Likewise.
1582 (tdesc_start_target): Likewise.
1583 (tdesc_start_feature): Likewise.
1584 (tdesc_start_reg): Likewise.
1585 (tdesc_start_union): Likewise.
1586 (tdesc_start_struct): Likewise.
1587 (tdesc_start_flags): Likewise.
1588 (tdesc_start_field): Likewise.
1589 (tdesc_start_vector): Likewise.
1590 (fetch_available_features_from_target): Likewise.
1591 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1592 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1593 (xtensa_frame_cache): Likewise.
1594 (xtensa_frame_prev_register): Likewise.
1595 (xtensa_extract_return_value): Likewise.
1596
9a3c8263
SM
15972015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1598
1599 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1600 (aarch64_make_stub_cache): Likewise.
1601 (value_of_aarch64_user_reg): Likewise.
1602 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1603 (get_ada_inferior_data): Likewise.
1604 (get_ada_pspace_data): Likewise.
1605 (ada_pspace_data_cleanup): Likewise.
1606 (ada_complete_symbol_matcher): Likewise.
1607 (ada_exc_search_name_matches): Likewise.
1608 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1609 (get_ada_tasks_inferior_data): Likewise.
1610 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1611 (splay_obstack_alloc): Likewise.
1612 (splay_obstack_free): Likewise.
1613 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1614 (alpha_linux_collect_gregset): Likewise.
1615 (alpha_linux_supply_fpregset): Likewise.
1616 (alpha_linux_collect_fpregset): Likewise.
1617 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1618 * alpha-tdep.c (alpha_lds): Likewise.
1619 (alpha_sts): Likewise.
1620 (alpha_sigtramp_frame_unwind_cache): Likewise.
1621 (alpha_heuristic_frame_unwind_cache): Likewise.
1622 (alpha_supply_int_regs): Likewise.
1623 (alpha_fill_int_regs): Likewise.
1624 (alpha_supply_fp_regs): Likewise.
1625 (alpha_fill_fp_regs): Likewise.
1626 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1627 (alphanbsd_aout_supply_gregset): Likewise.
1628 (alphanbsd_supply_gregset): Likewise.
1629 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1630 (amd64_x32_linux_init_abi): Likewise.
1631 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1632 (amd64_collect_native_gregset): Likewise.
1633 * amd64-tdep.c (amd64_frame_cache): Likewise.
1634 (amd64_sigtramp_frame_cache): Likewise.
1635 (amd64_epilogue_frame_cache): Likewise.
1636 (amd64_supply_fxsave): Likewise.
1637 (amd64_supply_xsave): Likewise.
1638 (amd64_collect_fxsave): Likewise.
1639 (amd64_collect_xsave): Likewise.
1640 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1641 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1642 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1643 (arm_linux_collect_gregset): Likewise.
1644 (arm_linux_supply_nwfpe): Likewise.
1645 (arm_linux_collect_nwfpe): Likewise.
1646 (arm_linux_supply_vfp): Likewise.
1647 (arm_linux_collect_vfp): Likewise.
1648 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1649 (arm_prologue_unwind_stop_reason): Likewise.
1650 (arm_prologue_this_id): Likewise.
1651 (arm_prologue_prev_register): Likewise.
1652 (arm_exidx_data_free): Likewise.
1653 (arm_find_exidx_entry): Likewise.
1654 (arm_stub_this_id): Likewise.
1655 (arm_m_exception_this_id): Likewise.
1656 (arm_m_exception_prev_register): Likewise.
1657 (arm_normal_frame_base): Likewise.
1658 (gdb_print_insn_arm): Likewise.
1659 (arm_objfile_data_free): Likewise.
1660 (arm_record_special_symbol): Likewise.
1661 (value_of_arm_user_reg): Likewise.
1662 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1663 (armbsd_supply_gregset): Likewise.
1664 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1665 (get_auto_load_pspace_data): Likewise.
1666 (hash_loaded_script_entry): Likewise.
1667 (eq_loaded_script_entry): Likewise.
1668 (clear_section_scripts): Likewise.
1669 (collect_matching_scripts): Likewise.
1670 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1671 (get_auxv_inferior_data): Likewise.
1672 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1673 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1674 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1675 (target_bfd_xclose): Likewise.
1676 (target_bfd_get_section_table): Likewise.
1677 * bfin-tdep.c (bfin_frame_cache): Likewise.
1678 * block.c (find_block_in_blockvector): Likewise.
1679 (call_site_for_pc): Likewise.
1680 (block_find_non_opaque_type_preferred): Likewise.
1681 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1682 (signal_catchpoint_remove_location): Likewise.
1683 (signal_catchpoint_breakpoint_hit): Likewise.
1684 (signal_catchpoint_print_one): Likewise.
1685 (signal_catchpoint_print_mention): Likewise.
1686 (signal_catchpoint_print_recreate): Likewise.
1687 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1688 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1689 (bp_location_compare_addrs): Likewise.
1690 (get_first_locp_gte_addr): Likewise.
1691 (check_tracepoint_command): Likewise.
1692 (do_map_commands_command): Likewise.
1693 (get_breakpoint_objfile_data): Likewise.
1694 (free_breakpoint_probes): Likewise.
1695 (do_captured_breakpoint_query): Likewise.
1696 (compare_breakpoints): Likewise.
1697 (bp_location_compare): Likewise.
1698 (bpstat_remove_breakpoint_callback): Likewise.
1699 (do_delete_breakpoint_cleanup): Likewise.
1700 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1701 (bsd_uthread_set_collect_uthread): Likewise.
1702 (bsd_uthread_activate): Likewise.
1703 (bsd_uthread_fetch_registers): Likewise.
1704 (bsd_uthread_store_registers): Likewise.
1705 * btrace.c (check_xml_btrace_version): Likewise.
1706 (parse_xml_btrace_block): Likewise.
1707 (parse_xml_btrace_pt_config_cpu): Likewise.
1708 (parse_xml_btrace_pt_raw): Likewise.
1709 (parse_xml_btrace_pt): Likewise.
1710 (parse_xml_btrace_conf_bts): Likewise.
1711 (parse_xml_btrace_conf_pt): Likewise.
1712 (do_btrace_data_cleanup): Likewise.
1713 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1714 * charset.c (cleanup_iconv): Likewise.
1715 (do_cleanup_iterator): Likewise.
1716 * cli-out.c (cli_uiout_dtor): Likewise.
1717 (cli_table_begin): Likewise.
1718 (cli_table_body): Likewise.
1719 (cli_table_end): Likewise.
1720 (cli_table_header): Likewise.
1721 (cli_begin): Likewise.
1722 (cli_end): Likewise.
1723 (cli_field_int): Likewise.
1724 (cli_field_skip): Likewise.
1725 (cli_field_string): Likewise.
1726 (cli_field_fmt): Likewise.
1727 (cli_spaces): Likewise.
1728 (cli_text): Likewise.
1729 (cli_message): Likewise.
1730 (cli_wrap_hint): Likewise.
1731 (cli_flush): Likewise.
1732 (cli_redirect): Likewise.
1733 (out_field_fmt): Likewise.
1734 (field_separator): Likewise.
1735 (cli_out_set_stream): Likewise.
1736 * cli/cli-cmds.c (compare_symtabs): Likewise.
1737 * cli/cli-dump.c (call_dump_func): Likewise.
1738 (restore_section_callback): Likewise.
1739 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1740 (do_restore_user_call_depth): Likewise.
1741 (do_free_command_lines_cleanup): Likewise.
1742 * coff-pe-read.c (get_section_vmas): Likewise.
1743 (pe_as16): Likewise.
1744 (pe_as32): Likewise.
1745 * coffread.c (coff_symfile_read): Likewise.
1746 * common/agent.c (agent_look_up_symbols): Likewise.
1747 * common/filestuff.c (do_close_cleanup): Likewise.
1748 * common/format.c (free_format_pieces_cleanup): Likewise.
1749 * common/vec.c (vec_o_reserve): Likewise.
1750 * compile/compile-c-support.c (print_one_macro): Likewise.
1751 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1752 (eq_symbol_error): Likewise.
1753 (del_symbol_error): Likewise.
1754 (error_symbol_once): Likewise.
1755 (gcc_convert_symbol): Likewise.
1756 (gcc_symbol_address): Likewise.
1757 (hash_symname): Likewise.
1758 (eq_symname): Likewise.
1759 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1760 (eq_type_map_instance): Likewise.
1761 (insert_type): Likewise.
1762 (convert_type): Likewise.
1763 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1764 (setup_sections): Likewise.
1765 (link_hash_table_free): Likewise.
1766 (copy_sections): Likewise.
1767 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1768 * compile/compile.c (compile_print_value): Likewise.
1769 (do_rmdir): Likewise.
1770 (cleanup_compile_instance): Likewise.
1771 (cleanup_unlink_file): Likewise.
1772 * completer.c (free_completion_tracker): Likewise.
1773 * corelow.c (add_to_spuid_list): Likewise.
1774 * cp-namespace.c (reset_directive_searched): Likewise.
1775 * cp-support.c (reset_directive_searched): Likewise.
1776 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1777 (cris_frame_unwind_cache): Likewise.
1778 * d-lang.c (builtin_d_type): Likewise.
1779 * d-namespace.c (reset_directive_searched): Likewise.
1780 * dbxread.c (dbx_free_symfile_info): Likewise.
1781 (do_free_bincl_list_cleanup): Likewise.
1782 * disasm.c (hash_dis_line_entry): Likewise.
1783 (eq_dis_line_entry): Likewise.
1784 (dis_asm_print_address): Likewise.
1785 (fprintf_disasm): Likewise.
1786 (do_ui_file_delete): Likewise.
1787 * doublest.c (convert_floatformat_to_doublest): Likewise.
1788 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1789 (dummy_frame_prev_register): Likewise.
1790 (dummy_frame_this_id): Likewise.
1791 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1792 (cache_eq): Likewise.
1793 (cache_find): Likewise.
1794 (tailcall_frame_this_id): Likewise.
1795 (dwarf2_tailcall_prev_register_first): Likewise.
1796 (tailcall_frame_prev_register): Likewise.
1797 (tailcall_frame_dealloc_cache): Likewise.
1798 (tailcall_frame_prev_arch): Likewise.
1799 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1800 (dwarf2_frame_set_init_reg): Likewise.
1801 (dwarf2_frame_init_reg): Likewise.
1802 (dwarf2_frame_set_signal_frame_p): Likewise.
1803 (dwarf2_frame_signal_frame_p): Likewise.
1804 (dwarf2_frame_set_adjust_regnum): Likewise.
1805 (dwarf2_frame_adjust_regnum): Likewise.
1806 (clear_pointer_cleanup): Likewise.
1807 (dwarf2_frame_cache): Likewise.
1808 (find_cie): Likewise.
1809 (dwarf2_frame_find_fde): Likewise.
1810 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1811 (free_dwarf_expr_context_cleanup): Likewise.
1812 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1813 (locexpr_get_frame_base): Likewise.
1814 (loclist_find_frame_base_location): Likewise.
1815 (loclist_get_frame_base): Likewise.
1816 (dwarf_expr_dwarf_call): Likewise.
1817 (dwarf_expr_get_base_type): Likewise.
1818 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1819 (dwarf_expr_get_obj_addr): Likewise.
1820 (entry_data_value_coerce_ref): Likewise.
1821 (entry_data_value_copy_closure): Likewise.
1822 (entry_data_value_free_closure): Likewise.
1823 (get_frame_address_in_block_wrapper): Likewise.
1824 (dwarf2_evaluate_property): Likewise.
1825 (dwarf2_compile_property_to_c): Likewise.
1826 (needs_frame_read_addr_from_reg): Likewise.
1827 (needs_frame_get_reg_value): Likewise.
1828 (needs_frame_frame_base): Likewise.
1829 (needs_frame_frame_cfa): Likewise.
1830 (needs_frame_tls_address): Likewise.
1831 (needs_frame_dwarf_call): Likewise.
1832 (needs_dwarf_reg_entry_value): Likewise.
1833 (get_ax_pc): Likewise.
1834 (locexpr_read_variable): Likewise.
1835 (locexpr_read_variable_at_entry): Likewise.
1836 (locexpr_read_needs_frame): Likewise.
1837 (locexpr_describe_location): Likewise.
1838 (locexpr_tracepoint_var_ref): Likewise.
1839 (locexpr_generate_c_location): Likewise.
1840 (loclist_read_variable): Likewise.
1841 (loclist_read_variable_at_entry): Likewise.
1842 (loclist_describe_location): Likewise.
1843 (loclist_tracepoint_var_ref): Likewise.
1844 (loclist_generate_c_location): Likewise.
1845 * dwarf2read.c (line_header_hash_voidp): Likewise.
1846 (line_header_eq_voidp): Likewise.
1847 (dwarf2_has_info): Likewise.
1848 (dwarf2_get_section_info): Likewise.
1849 (locate_dwz_sections): Likewise.
1850 (hash_file_name_entry): Likewise.
1851 (eq_file_name_entry): Likewise.
1852 (delete_file_name_entry): Likewise.
1853 (dw2_setup): Likewise.
1854 (dw2_get_file_names_reader): Likewise.
1855 (dw2_find_pc_sect_compunit_symtab): Likewise.
1856 (hash_signatured_type): Likewise.
1857 (eq_signatured_type): Likewise.
1858 (add_signatured_type_cu_to_table): Likewise.
1859 (create_debug_types_hash_table): Likewise.
1860 (lookup_dwo_signatured_type): Likewise.
1861 (lookup_dwp_signatured_type): Likewise.
1862 (lookup_signatured_type): Likewise.
1863 (hash_type_unit_group): Likewise.
1864 (eq_type_unit_group): Likewise.
1865 (get_type_unit_group): Likewise.
1866 (process_psymtab_comp_unit_reader): Likewise.
1867 (sort_tu_by_abbrev_offset): Likewise.
1868 (process_skeletonless_type_unit): Likewise.
1869 (psymtabs_addrmap_cleanup): Likewise.
1870 (dwarf2_read_symtab): Likewise.
1871 (psymtab_to_symtab_1): Likewise.
1872 (die_hash): Likewise.
1873 (die_eq): Likewise.
1874 (load_full_comp_unit_reader): Likewise.
1875 (reset_die_in_process): Likewise.
1876 (free_cu_line_header): Likewise.
1877 (handle_DW_AT_stmt_list): Likewise.
1878 (hash_dwo_file): Likewise.
1879 (eq_dwo_file): Likewise.
1880 (hash_dwo_unit): Likewise.
1881 (eq_dwo_unit): Likewise.
1882 (create_dwo_cu_reader): Likewise.
1883 (create_dwo_unit_in_dwp_v1): Likewise.
1884 (create_dwo_unit_in_dwp_v2): Likewise.
1885 (lookup_dwo_unit_in_dwp): Likewise.
1886 (dwarf2_locate_dwo_sections): Likewise.
1887 (dwarf2_locate_common_dwp_sections): Likewise.
1888 (dwarf2_locate_v2_dwp_sections): Likewise.
1889 (hash_dwp_loaded_cutus): Likewise.
1890 (eq_dwp_loaded_cutus): Likewise.
1891 (lookup_dwo_cutu): Likewise.
1892 (abbrev_table_free_cleanup): Likewise.
1893 (dwarf2_free_abbrev_table): Likewise.
1894 (find_partial_die_in_comp_unit): Likewise.
1895 (free_line_header_voidp): Likewise.
1896 (follow_die_offset): Likewise.
1897 (follow_die_sig_1): Likewise.
1898 (free_heap_comp_unit): Likewise.
1899 (free_stack_comp_unit): Likewise.
1900 (dwarf2_free_objfile): Likewise.
1901 (per_cu_offset_and_type_hash): Likewise.
1902 (per_cu_offset_and_type_eq): Likewise.
1903 (get_die_type_at_offset): Likewise.
1904 (partial_die_hash): Likewise.
1905 (partial_die_eq): Likewise.
1906 (dwarf2_per_objfile_free): Likewise.
1907 (hash_strtab_entry): Likewise.
1908 (eq_strtab_entry): Likewise.
1909 (add_string): Likewise.
1910 (hash_symtab_entry): Likewise.
1911 (eq_symtab_entry): Likewise.
1912 (delete_symtab_entry): Likewise.
1913 (cleanup_mapped_symtab): Likewise.
1914 (add_indices_to_cpool): Likewise.
1915 (hash_psymtab_cu_index): Likewise.
1916 (eq_psymtab_cu_index): Likewise.
1917 (add_address_entry_worker): Likewise.
1918 (unlink_if_set): Likewise.
1919 (write_one_signatured_type): Likewise.
1920 (save_gdb_index_command): Likewise.
1921 * elfread.c (elf_symtab_read): Likewise.
1922 (elf_gnu_ifunc_cache_hash): Likewise.
1923 (elf_gnu_ifunc_cache_eq): Likewise.
1924 (elf_gnu_ifunc_record_cache): Likewise.
1925 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1926 (elf_get_probes): Likewise.
1927 (probe_key_free): Likewise.
1928 * f-lang.c (builtin_f_type): Likewise.
1929 * frame-base.c (frame_base_append_sniffer): Likewise.
1930 (frame_base_set_default): Likewise.
1931 (frame_base_find_by_frame): Likewise.
1932 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1933 (frame_unwind_append_unwinder): Likewise.
1934 (frame_unwind_find_by_frame): Likewise.
1935 * frame.c (frame_addr_hash): Likewise.
1936 (frame_addr_hash_eq): Likewise.
1937 (frame_stash_find): Likewise.
1938 (do_frame_register_read): Likewise.
1939 (unwind_to_current_frame): Likewise.
1940 (frame_cleanup_after_sniffer): Likewise.
1941 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1942 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1943 * ft32-tdep.c (ft32_frame_cache): Likewise.
1944 * gcore.c (do_bfd_delete_cleanup): Likewise.
1945 (gcore_create_callback): Likewise.
1946 * gdb_bfd.c (hash_bfd): Likewise.
1947 (eq_bfd): Likewise.
1948 (gdb_bfd_open): Likewise.
1949 (free_one_bfd_section): Likewise.
1950 (gdb_bfd_ref): Likewise.
1951 (gdb_bfd_unref): Likewise.
1952 (get_section_descriptor): Likewise.
1953 (gdb_bfd_map_section): Likewise.
1954 (gdb_bfd_crc): Likewise.
1955 (gdb_bfd_mark_parent): Likewise.
1956 (gdb_bfd_record_inclusion): Likewise.
1957 (gdb_bfd_requires_relocations): Likewise.
1958 (print_one_bfd): Likewise.
1959 * gdbtypes.c (type_pair_hash): Likewise.
1960 (type_pair_eq): Likewise.
1961 (builtin_type): Likewise.
1962 (objfile_type): Likewise.
1963 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1964 (vtable_address_point_offset): Likewise.
1965 (gnuv3_get_vtable): Likewise.
1966 (hash_value_and_voffset): Likewise.
1967 (eq_value_and_voffset): Likewise.
1968 (compare_value_and_voffset): Likewise.
1969 (compute_vtable_size): Likewise.
1970 (gnuv3_get_typeid_type): Likewise.
1971 * go-lang.c (builtin_go_type): Likewise.
1972 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1973 (bkscm_eq_block_smob): Likewise.
1974 (bkscm_objfile_block_map): Likewise.
1975 (bkscm_del_objfile_blocks): Likewise.
1976 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1977 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1978 (gdbscm_disasm_print_address): Likewise.
1979 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1980 (frscm_eq_frame_smob): Likewise.
1981 (frscm_inferior_frame_map): Likewise.
1982 (frscm_del_inferior_frames): Likewise.
1983 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1984 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1985 (ofscm_objfile_smob_from_objfile): Likewise.
1986 * guile/scm-ports.c (ioscm_write): Likewise.
1987 (ioscm_file_port_delete): Likewise.
1988 (ioscm_file_port_rewind): Likewise.
1989 (ioscm_file_port_put): Likewise.
1990 (ioscm_file_port_write): Likewise.
1991 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1992 (psscm_pspace_smob_from_pspace): Likewise.
1993 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1994 (scscm_recording_unwind_handler): Likewise.
1995 (gdbscm_with_catch): Likewise.
1996 (scscm_call_0_body): Likewise.
1997 (scscm_call_1_body): Likewise.
1998 (scscm_call_2_body): Likewise.
1999 (scscm_call_3_body): Likewise.
2000 (scscm_call_4_body): Likewise.
2001 (scscm_apply_1_body): Likewise.
2002 (scscm_eval_scheme_string): Likewise.
2003 (gdbscm_safe_eval_string): Likewise.
2004 (scscm_source_scheme_script): Likewise.
2005 (gdbscm_safe_source_script): Likewise.
2006 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
2007 (gdbscm_call_scm_from_stringn): Likewise.
2008 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
2009 (syscm_eq_symbol_smob): Likewise.
2010 (syscm_get_symbol_map): Likewise.
2011 (syscm_del_objfile_symbols): Likewise.
2012 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
2013 (stscm_eq_symtab_smob): Likewise.
2014 (stscm_objfile_symtab_map): Likewise.
2015 (stscm_del_objfile_symtabs): Likewise.
2016 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
2017 (tyscm_eq_type_smob): Likewise.
2018 (tyscm_type_map): Likewise.
2019 (tyscm_copy_type_recursive): Likewise.
2020 (save_objfile_types): Likewise.
2021 * guile/scm-utils.c (extract_arg): Likewise.
2022 * h8300-tdep.c (h8300_frame_cache): Likewise.
2023 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
2024 * hppa-tdep.c (compare_unwind_entries): Likewise.
2025 (find_unwind_entry): Likewise.
2026 (hppa_frame_cache): Likewise.
2027 (hppa_stub_frame_unwind_cache): Likewise.
2028 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
2029 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
2030 (hppaobsd_supply_fpregset): Likewise.
2031 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2032 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2033 * i386-tdep.c (i386_frame_cache): Likewise.
2034 (i386_epilogue_frame_cache): Likewise.
2035 (i386_sigtramp_frame_cache): Likewise.
2036 (i386_supply_gregset): Likewise.
2037 (i386_collect_gregset): Likewise.
2038 (i386_gdbarch_init): Likewise.
2039 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
2040 (i386obsd_trapframe_cache): Likewise.
2041 * i387-tdep.c (i387_supply_fsave): Likewise.
2042 (i387_collect_fsave): Likewise.
2043 (i387_supply_fxsave): Likewise.
2044 (i387_collect_fxsave): Likewise.
2045 (i387_supply_xsave): Likewise.
2046 (i387_collect_xsave): Likewise.
2047 * ia64-tdep.c (ia64_frame_cache): Likewise.
2048 (ia64_sigtramp_frame_cache): Likewise.
2049 * infcmd.c (attach_command_continuation): Likewise.
2050 (attach_command_continuation_free_args): Likewise.
2051 * inferior.c (restore_inferior): Likewise.
2052 (delete_thread_of_inferior): Likewise.
2053 * inflow.c (inflow_inferior_data_cleanup): Likewise.
2054 (get_inflow_inferior_data): Likewise.
2055 (inflow_inferior_exit): Likewise.
2056 * infrun.c (displaced_step_clear_cleanup): Likewise.
2057 (restore_current_uiout_cleanup): Likewise.
2058 (release_stop_context_cleanup): Likewise.
2059 (do_restore_infcall_suspend_state_cleanup): Likewise.
2060 (do_restore_infcall_control_state_cleanup): Likewise.
2061 (restore_inferior_ptid): Likewise.
2062 * inline-frame.c (block_starting_point_at): Likewise.
2063 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
2064 * jit.c (get_jit_objfile_data): Likewise.
2065 (get_jit_program_space_data): Likewise.
2066 (jit_object_close_impl): Likewise.
2067 (jit_find_objf_with_entry_addr): Likewise.
2068 (jit_breakpoint_deleted): Likewise.
2069 (jit_unwind_reg_set_impl): Likewise.
2070 (jit_unwind_reg_get_impl): Likewise.
2071 (jit_dealloc_cache): Likewise.
2072 (jit_frame_sniffer): Likewise.
2073 (jit_frame_prev_register): Likewise.
2074 (jit_prepend_unwinder): Likewise.
2075 (jit_inferior_exit_hook): Likewise.
2076 (free_objfile_data): Likewise.
2077 * jv-lang.c (jv_per_objfile_free): Likewise.
2078 (get_dynamics_objfile): Likewise.
2079 (get_java_class_symtab): Likewise.
2080 (builtin_java_type): Likewise.
2081 * language.c (language_string_char_type): Likewise.
2082 (language_bool_type): Likewise.
2083 (language_lookup_primitive_type): Likewise.
2084 (language_lookup_primitive_type_as_symbol): Likewise.
2085 * linespec.c (hash_address_entry): Likewise.
2086 (eq_address_entry): Likewise.
2087 (iterate_inline_only): Likewise.
2088 (iterate_name_matcher): Likewise.
2089 (decode_line_2_compare_items): Likewise.
2090 (collect_one_symbol): Likewise.
2091 (compare_symbols): Likewise.
2092 (compare_msymbols): Likewise.
2093 (add_symtabs_to_list): Likewise.
2094 (collect_symbols): Likewise.
2095 (compare_msyms): Likewise.
2096 (add_minsym): Likewise.
2097 (cleanup_linespec_result): Likewise.
2098 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2099 * linux-nat.c (delete_lwp_cleanup): Likewise.
2100 (count_events_callback): Likewise.
2101 (select_event_lwp_callback): Likewise.
2102 (resume_stopped_resumed_lwps): Likewise.
2103 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2104 (invalidate_linux_cache_inf): Likewise.
2105 (get_linux_inferior_data): Likewise.
2106 (linux_find_memory_regions_thunk): Likewise.
2107 (linux_make_mappings_callback): Likewise.
2108 (linux_corefile_thread_callback): Likewise.
2109 (find_mapping_size): Likewise.
2110 * linux-thread-db.c (find_new_threads_callback): Likewise.
2111 * lm32-tdep.c (lm32_frame_cache): Likewise.
2112 * m2-lang.c (builtin_m2_type): Likewise.
2113 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2114 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2115 (m32r_linux_supply_gregset): Likewise.
2116 (m32r_linux_collect_gregset): Likewise.
2117 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2118 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2119 * m68k-tdep.c (m68k_frame_cache): Likewise.
2120 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2121 (m68kbsd_supply_gregset): Likewise.
2122 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2123 * m88k-tdep.c (m88k_frame_cache): Likewise.
2124 (m88k_supply_gregset): Likewise.
2125
224c3ddb
SM
21262015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2127
2128 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2129 to allocation result assignment.
2130 * ada-exp.y (write_object_renaming): Likewise.
2131 (write_ambiguous_var): Likewise.
2132 (ada_nget_field_index): Likewise.
2133 (write_var_or_type): Likewise.
2134 * ada-lang.c (ada_decode_symbol): Likewise.
2135 (ada_value_assign): Likewise.
2136 (value_pointer): Likewise.
2137 (cache_symbol): Likewise.
2138 (add_nonlocal_symbols): Likewise.
2139 (ada_name_for_lookup): Likewise.
2140 (symbol_completion_add): Likewise.
2141 (ada_to_fixed_type_1): Likewise.
2142 (ada_get_next_arg): Likewise.
2143 (defns_collected): Likewise.
2144 * ada-lex.l (processId): Likewise.
2145 (processString): Likewise.
2146 * ada-tasks.c (read_known_tasks_array): Likewise.
2147 (read_known_tasks_list): Likewise.
2148 * ada-typeprint.c (decoded_type_name): Likewise.
2149 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2150 * amd64-tdep.c (amd64_push_arguments): Likewise.
2151 (amd64_displaced_step_copy_insn): Likewise.
2152 (amd64_classify_insn_at): Likewise.
2153 (amd64_relocate_instruction): Likewise.
2154 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2155 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2156 (initialize_current_architecture): Likewise.
2157 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2158 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2159 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2160 (arm_push_dummy_call): Likewise.
2161 (extend_buffer_earlier): Likewise.
2162 (arm_adjust_breakpoint_address): Likewise.
2163 (arm_skip_stub): Likewise.
2164 * auto-load.c (filename_is_in_pattern): Likewise.
2165 (maybe_add_script_file): Likewise.
2166 (maybe_add_script_text): Likewise.
2167 (auto_load_objfile_script_1): Likewise.
2168 * auxv.c (ld_so_xfer_auxv): Likewise.
2169 * ax-general.c (new_agent_expr): Likewise.
2170 (grow_expr): Likewise.
2171 (ax_reg_mask): Likewise.
2172 * bcache.c (bcache_full): Likewise.
2173 * breakpoint.c (program_breakpoint_here_p): Likewise.
2174 * btrace.c (parse_xml_raw): Likewise.
2175 * build-id.c (build_id_to_debug_bfd): Likewise.
2176 * buildsym.c (end_symtab_with_blockvector): Likewise.
2177 * c-exp.y (string_exp): Likewise.
2178 (qualified_name): Likewise.
2179 (write_destructor_name): Likewise.
2180 (operator_stoken): Likewise.
2181 (parse_number): Likewise.
2182 (scan_macro_expansion): Likewise.
2183 (yylex): Likewise.
2184 (c_print_token): Likewise.
2185 * c-lang.c (c_get_string): Likewise.
2186 (emit_numeric_character): Likewise.
2187 * charset.c (wchar_iterate): Likewise.
2188 * cli/cli-cmds.c (complete_command): Likewise.
2189 (make_command): Likewise.
2190 * cli/cli-dump.c (restore_section_callback): Likewise.
2191 (restore_binary_file): Likewise.
2192 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2193 * cli/cli-script.c (execute_control_command): Likewise.
2194 * cli/cli-setshow.c (do_set_command): Likewise.
2195 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2196 (read_pe_exported_syms): Likewise.
2197 * coffread.c (coff_read_struct_type): Likewise.
2198 (coff_read_enum_type): Likewise.
2199 * common/btrace-common.c (btrace_data_append): Likewise.
2200 * common/buffer.c (buffer_grow): Likewise.
2201 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2202 * common/format.c (parse_format_string): Likewise.
2203 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2204 * common/xml-utils.c (xml_escape_text): Likewise.
2205 * compile/compile-object-load.c (copy_sections): Likewise.
2206 (compile_object_load): Likewise.
2207 * compile/compile-object-run.c (compile_object_run): Likewise.
2208 * completer.c (filename_completer): Likewise.
2209 * corefile.c (read_memory_typed_address): Likewise.
2210 (write_memory_unsigned_integer): Likewise.
2211 (write_memory_signed_integer): Likewise.
2212 (complete_set_gnutarget): Likewise.
2213 * corelow.c (get_core_register_section): Likewise.
2214 * cp-name-parser.y (d_grab): Likewise.
2215 (allocate_info): Likewise.
2216 (cp_new_demangle_parse_info): Likewise.
2217 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2218 (cp_lookup_symbol_in_namespace): Likewise.
2219 (lookup_namespace_scope): Likewise.
2220 (find_symbol_in_baseclass): Likewise.
2221 (cp_lookup_nested_symbol): Likewise.
2222 (cp_lookup_transparent_type_loop): Likewise.
2223 * cp-support.c (copy_string_to_obstack): Likewise.
2224 (make_symbol_overload_list): Likewise.
2225 (make_symbol_overload_list_namespace): Likewise.
2226 (make_symbol_overload_list_adl_namespace): Likewise.
2227 (first_component_command): Likewise.
2228 * cp-valprint.c (cp_print_value): Likewise.
2229 * ctf.c (ctf_xfer_partial): Likewise.
2230 * d-exp.y (StringExp): Likewise.
2231 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2232 (lookup_module_scope): Likewise.
2233 (find_symbol_in_baseclass): Likewise.
2234 (d_lookup_nested_symbol): Likewise.
2235 * dbxread.c (find_stab_function_addr): Likewise.
2236 (read_dbx_symtab): Likewise.
2237 (dbx_end_psymtab): Likewise.
2238 (cp_set_block_scope): Likewise.
2239 * dcache.c (dcache_alloc): Likewise.
2240 * demangle.c (_initialize_demangler): Likewise.
2241 * dicos-tdep.c (dicos_load_module_p): Likewise.
2242 * dictionary.c (dict_create_hashed_expandable): Likewise.
2243 (dict_create_linear_expandable): Likewise.
2244 (expand_hashtable): Likewise.
2245 (add_symbol_linear_expandable): Likewise.
2246 * dwarf2-frame.c (add_cie): Likewise.
2247 (add_fde): Likewise.
2248 (dwarf2_build_frame_info): Likewise.
2249 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2250 (dwarf_expr_fetch_address): Likewise.
2251 (add_piece): Likewise.
2252 (execute_stack_op): Likewise.
2253 * dwarf2loc.c (chain_candidate): Likewise.
2254 (dwarf_entry_parameter_to_value): Likewise.
2255 (read_pieced_value): Likewise.
2256 (write_pieced_value): Likewise.
2257 * dwarf2read.c (dwarf2_read_section): Likewise.
2258 (add_type_unit): Likewise.
2259 (read_comp_units_from_section): Likewise.
2260 (fixup_go_packaging): Likewise.
2261 (dwarf2_compute_name): Likewise.
2262 (dwarf2_physname): Likewise.
2263 (create_dwo_unit_in_dwp_v1): Likewise.
2264 (create_dwo_unit_in_dwp_v2): Likewise.
2265 (read_func_scope): Likewise.
2266 (read_call_site_scope): Likewise.
2267 (dwarf2_attach_fields_to_type): Likewise.
2268 (process_structure_scope): Likewise.
2269 (mark_common_block_symbol_computed): Likewise.
2270 (read_common_block): Likewise.
2271 (abbrev_table_read_table): Likewise.
2272 (guess_partial_die_structure_name): Likewise.
2273 (fixup_partial_die): Likewise.
2274 (add_file_name): Likewise.
2275 (dwarf2_const_value_data): Likewise.
2276 (dwarf2_const_value_attr): Likewise.
2277 (build_error_marker_type): Likewise.
2278 (guess_full_die_structure_name): Likewise.
2279 (anonymous_struct_prefix): Likewise.
2280 (typename_concat): Likewise.
2281 (dwarf2_canonicalize_name): Likewise.
2282 (dwarf2_name): Likewise.
2283 (write_constant_as_bytes): Likewise.
2284 (dwarf2_fetch_constant_bytes): Likewise.
2285 (copy_string): Likewise.
2286 (parse_macro_definition): Likewise.
2287 * elfread.c (elf_symfile_segments): Likewise.
2288 (elf_rel_plt_read): Likewise.
2289 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2290 (elf_gnu_ifunc_resolve_by_got): Likewise.
2291 (elf_read_minimal_symbols): Likewise.
2292 (elf_gnu_ifunc_record_cache): Likewise.
2293 * event-top.c (top_level_prompt): Likewise.
2294 (command_line_handler): Likewise.
2295 * exec.c (resize_section_table): Likewise.
2296 * expprint.c (print_subexp_standard): Likewise.
2297 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2298 * findcmd.c (parse_find_args): Likewise.
2299 * findvar.c (address_from_register): Likewise.
2300 * frame.c (get_prev_frame_always): Likewise.
2301 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2302 (get_section_descriptor): Likewise.
2303 * gdb_obstack.c (obconcat): Likewise.
2304 (obstack_strdup): Likewise.
2305 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2306 (create_set_type): Likewise.
2307 (lookup_unsigned_typename): Likewise.
2308 (lookup_signed_typename): Likewise.
2309 (resolve_dynamic_union): Likewise.
2310 (resolve_dynamic_struct): Likewise.
2311 (add_dyn_prop): Likewise.
2312 (copy_dynamic_prop_list): Likewise.
2313 (arch_flags_type): Likewise.
2314 (append_composite_type_field_raw): Likewise.
2315 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2316 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2317 * go-exp.y (string_exp): Likewise.
2318 * go-lang.c (go_demangle): Likewise.
2319 * guile/guile.c (compute_scheme_string): Likewise.
2320 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2321 (gdbscm_canonicalize_command_name): Likewise.
2322 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2323 (ioscm_init_memory_port): Likewise.
2324 (ioscm_reinit_memory_port): Likewise.
2325 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2326 (gdbscm_gc_dup_argv): Likewise.
2327 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2328 * hppa-tdep.c (internalize_unwinds): Likewise.
2329 (read_unwind_info): Likewise.
2330 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2331 (windows_core_xfer_shared_libraries): Likewise.
2332 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2333 (i386_stap_parse_special_token_triplet): Likewise.
2334 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2335 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2336 * inf-child.c (inf_child_fileio_readlink): Likewise.
2337 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2338 (inf_ptrace_store_register): Likewise.
2339 * infrun.c (follow_exec): Likewise.
2340 (displaced_step_prepare_throw): Likewise.
2341 (save_stop_context): Likewise.
2342 (save_infcall_suspend_state): Likewise.
2343 * jit.c (jit_read_descriptor): Likewise.
2344 (jit_read_code_entry): Likewise.
2345 (jit_symtab_line_mapping_add_impl): Likewise.
2346 (finalize_symtab): Likewise.
2347 (jit_unwind_reg_get_impl): Likewise.
2348 * jv-exp.y (QualifiedName): Likewise.
2349 * jv-lang.c (get_java_utf8_name): Likewise.
2350 (type_from_class): Likewise.
2351 (java_demangle_type_signature): Likewise.
2352 (java_class_name_from_physname): Likewise.
2353 * jv-typeprint.c (java_type_print_base): Likewise.
2354 * jv-valprint.c (java_value_print): Likewise.
2355 * language.c (add_language): Likewise.
2356 * linespec.c (add_sal_to_sals_basic): Likewise.
2357 (add_sal_to_sals): Likewise.
2358 (decode_objc): Likewise.
2359 (find_linespec_symbols): Likewise.
2360 * linux-fork.c (fork_save_infrun_state): Likewise.
2361 * linux-nat.c (linux_nat_detach): Likewise.
2362 (linux_nat_fileio_readlink): Likewise.
2363 * linux-record.c (record_linux_sockaddr): Likewise.
2364 (record_linux_msghdr): Likewise.
2365 (Do): Likewise.
2366 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2367 (linux_collect_regset_section_cb): Likewise.
2368 (linux_get_siginfo_data): Likewise.
2369 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2370 (try_thread_db_load_from_dir): Likewise.
2371 (thread_db_load_search): Likewise.
2372 (info_auto_load_libthread_db): Likewise.
2373 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2374 (m32c_m16c_pointer_to_address): Likewise.
2375 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2376 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2377 * machoread.c (macho_check_dsym): Likewise.
2378 * macroexp.c (resize_buffer): Likewise.
2379 (gather_arguments): Likewise.
2380 (maybe_expand): Likewise.
2381 * macrotab.c (new_macro_key): Likewise.
2382 (new_source_file): Likewise.
2383 (new_macro_definition): Likewise.
2384 * mdebugread.c (parse_symbol): Likewise.
2385 (parse_type): Likewise.
2386 (parse_partial_symbols): Likewise.
2387 (psymtab_to_symtab_1): Likewise.
2388 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2389 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2390 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2391 (mi_cmd_data_read_memory_bytes): Likewise.
2392 (mi_cmd_data_write_memory_bytes): Likewise.
2393 (mi_cmd_trace_frame_collected): Likewise.
2394 * mi/mi-parse.c (mi_parse_argv): Likewise.
2395 (mi_parse): Likewise.
2396 * minidebug.c (lzma_open): Likewise.
2397 (lzma_pread): Likewise.
2398 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2399 (mips_print_fp_register): Likewise.
2400 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2401 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2402 * mt-tdep.c (mt_register_name): Likewise.
2403 (mt_registers_info): Likewise.
2404 (mt_push_dummy_call): Likewise.
2405 * namespace.c (add_using_directive): Likewise.
2406 * nat/linux-btrace.c (perf_event_read): Likewise.
2407 (linux_enable_bts): Likewise.
2408 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2409 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2410 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2411 (nto_parse_redirection): Likewise.
2412 * objc-lang.c (objc_demangle): Likewise.
2413 (find_methods): Likewise.
2414 * objfiles.c (get_objfile_bfd_data): Likewise.
2415 (set_objfile_main_name): Likewise.
2416 (allocate_objfile): Likewise.
2417 (objfile_relocate): Likewise.
2418 (update_section_map): Likewise.
2419 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2420 * p-exp.y (exp): Likewise.
2421 (yylex): Likewise.
2422 * p-valprint.c (pascal_object_print_value): Likewise.
2423 * parse.c (initialize_expout): Likewise.
2424 (mark_completion_tag): Likewise.
2425 (copy_name): Likewise.
2426 (parse_float): Likewise.
2427 (type_stack_reserve): Likewise.
2428 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2429 (ppu2spu_prev_register): Likewise.
2430 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2431 * printcmd.c (printf_wide_c_string): Likewise.
2432 (printf_pointer): Likewise.
2433 * probe.c (parse_probes): Likewise.
2434 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2435 (cmdpy_init): Likewise.
2436 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2437 * python/py-symtab.c (set_sal): Likewise.
2438 * python/py-unwind.c (pyuw_sniffer): Likewise.
2439 * python/python.c (python_interactive_command): Likewise.
2440 (compute_python_string): Likewise.
2441 * ravenscar-thread.c (get_running_thread_id): Likewise.
2442 * record-full.c (record_full_exec_insn): Likewise.
2443 (record_full_core_open_1): Likewise.
2444 * regcache.c (regcache_raw_read_signed): Likewise.
2445 (regcache_raw_read_unsigned): Likewise.
2446 (regcache_cooked_read_signed): Likewise.
2447 (regcache_cooked_read_unsigned): Likewise.
2448 * remote-fileio.c (remote_fileio_func_open): Likewise.
2449 (remote_fileio_func_rename): Likewise.
2450 (remote_fileio_func_unlink): Likewise.
2451 (remote_fileio_func_stat): Likewise.
2452 (remote_fileio_func_system): Likewise.
2453 * remote-mips.c (mips_xfer_memory): Likewise.
2454 (mips_load_srec): Likewise.
2455 (pmon_end_download): Likewise.
2456 * remote.c (new_remote_state): Likewise.
2457 (map_regcache_remote_table): Likewise.
2458 (remote_register_number_and_offset): Likewise.
2459 (init_remote_state): Likewise.
2460 (get_memory_packet_size): Likewise.
2461 (remote_pass_signals): Likewise.
2462 (remote_program_signals): Likewise.
2463 (remote_start_remote): Likewise.
2464 (remote_check_symbols): Likewise.
2465 (remote_query_supported): Likewise.
2466 (extended_remote_attach): Likewise.
2467 (process_g_packet): Likewise.
2468 (store_registers_using_G): Likewise.
2469 (putpkt_binary): Likewise.
2470 (read_frame): Likewise.
2471 (compare_sections_command): Likewise.
2472 (remote_hostio_pread): Likewise.
2473 (remote_hostio_readlink): Likewise.
2474 (remote_file_put): Likewise.
2475 (remote_file_get): Likewise.
2476 (remote_pid_to_exec_file): Likewise.
2477 (_initialize_remote): Likewise.
2478 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2479 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2480 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2481 (bfd_uses_spe_extensions): Likewise.
2482 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2483 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2484 * solib-dsbt.c (decode_loadmap): Likewise.
2485 (fetch_loadmap): Likewise.
2486 (scan_dyntag): Likewise.
2487 (enable_break): Likewise.
2488 (dsbt_relocate_main_executable): Likewise.
2489 * solib-frv.c (fetch_loadmap): Likewise.
2490 (enable_break2): Likewise.
2491 (frv_relocate_main_executable): Likewise.
2492 * solib-spu.c (spu_relocate_main_executable): Likewise.
2493 (spu_bfd_open): Likewise.
2494 * solib-svr4.c (lm_info_read): Likewise.
2495 (read_program_header): Likewise.
2496 (find_program_interpreter): Likewise.
2497 (scan_dyntag): Likewise.
2498 (elf_locate_base): Likewise.
2499 (open_symbol_file_object): Likewise.
2500 (read_program_headers_from_bfd): Likewise.
2501 (svr4_relocate_main_executable): Likewise.
2502 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2503 * solib.c (solib_find_1): Likewise.
2504 (exec_file_find): Likewise.
2505 (solib_find): Likewise.
2506 * source.c (openp): Likewise.
2507 (print_source_lines_base): Likewise.
2508 (forward_search_command): Likewise.
2509 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2510 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2511 (spu_get_overlay_table): Likewise.
2512 * stabsread.c (patch_block_stabs): Likewise.
2513 (define_symbol): Likewise.
2514 (again:): Likewise.
2515 (read_member_functions): Likewise.
2516 (read_one_struct_field): Likewise.
2517 (read_enum_type): Likewise.
2518 (common_block_start): Likewise.
2519 * stack.c (read_frame_arg): Likewise.
2520 (backtrace_command): Likewise.
2521 * stap-probe.c (stap_parse_register_operand): Likewise.
2522 * symfile.c (syms_from_objfile_1): Likewise.
2523 (find_separate_debug_file): Likewise.
2524 (load_command): Likewise.
2525 (load_progress): Likewise.
2526 (load_section_callback): Likewise.
2527 (reread_symbols): Likewise.
2528 (add_filename_language): Likewise.
2529 (allocate_compunit_symtab): Likewise.
2530 (read_target_long_array): Likewise.
2531 (simple_read_overlay_table): Likewise.
2532 * symtab.c (symbol_set_names): Likewise.
2533 (resize_symbol_cache): Likewise.
2534 (rbreak_command): Likewise.
2535 (completion_list_add_name): Likewise.
2536 (completion_list_objc_symbol): Likewise.
2537 (add_filename_to_list): Likewise.
2538 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2539 * target-memory.c (target_write_memory_blocks): Likewise.
2540 * target.c (target_read_string): Likewise.
2541 (read_whatever_is_readable): Likewise.
2542 (target_read_alloc_1): Likewise.
2543 (simple_search_memory): Likewise.
2544 (target_fileio_read_alloc_1): Likewise.
2545 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2546 * top.c (command_line_input): Likewise.
2547 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2548 * tracefile.c (tracefile_fetch_registers): Likewise.
2549 * tracepoint.c (add_memrange): Likewise.
2550 (init_collection_list): Likewise.
2551 (add_aexpr): Likewise.
2552 (trace_dump_actions): Likewise.
2553 (parse_trace_status): Likewise.
2554 (parse_tracepoint_definition): Likewise.
2555 (parse_tsv_definition): Likewise.
2556 (parse_static_tracepoint_marker_definition): Likewise.
2557 * tui/tui-file.c (tui_sfileopen): Likewise.
2558 (tui_file_adjust_strbuf): Likewise.
2559 * tui/tui-io.c (tui_expand_tabs): Likewise.
2560 * tui/tui-source.c (tui_set_source_content): Likewise.
2561 * typeprint.c (find_global_typedef): Likewise.
2562 * ui-file.c (do_ui_file_xstrdup): Likewise.
2563 (ui_file_obsavestring): Likewise.
2564 (mem_file_write): Likewise.
2565 * utils.c (make_hex_string): Likewise.
2566 (get_regcomp_error): Likewise.
2567 (puts_filtered_tabular): Likewise.
2568 (gdb_realpath_keepfile): Likewise.
2569 (ldirname): Likewise.
2570 (gdb_bfd_errmsg): Likewise.
2571 (substitute_path_component): Likewise.
2572 * valops.c (search_struct_method): Likewise.
2573 (find_oload_champ_namespace_loop): Likewise.
2574 * valprint.c (print_decimal_chars): Likewise.
2575 (read_string): Likewise.
2576 (generic_emit_char): Likewise.
2577 * varobj.c (varobj_delete): Likewise.
2578 (varobj_value_get_print_value): Likewise.
2579 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2580 * windows-tdep.c (display_one_tib): Likewise.
2581 * xcoffread.c (read_xcoff_symtab): Likewise.
2582 (process_xcoff_symbol): Likewise.
2583 (swap_sym): Likewise.
2584 (scan_xcoff_symtab): Likewise.
2585 (xcoff_initial_scan): Likewise.
2586 * xml-support.c (gdb_xml_end_element): Likewise.
2587 (xml_process_xincludes): Likewise.
2588 (xml_fetch_content_from_file): Likewise.
2589 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2590 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2591
623fb775 25922015-09-23 James Bowman <james.bowman@ftdichip.com>
2593
2594 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2595 instead of builtin_func_ptr.
2596 (ft32_pointer_to_address): New function.
2597 (ft32_address_class_type_flags): New function.
2598 (ft32_address_class_type_flags_to_name): New function.
2599 (ft32_address_class_name_to_type_flags): New function.
2600 (ft32_gdbarch_init): Set tdep->pc_type. Call
2601 set_gdbarch_pointer_to_address,
2602 set_gdbarch_address_class_type_flags
2603 set_gdbarch_address_class_name_to_type_flags,
2604 and set_gdbarch_address_class_type_flags_to_name.
2605 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2606
e6c2c623
PMR
26072015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2608
2609 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2610 value is a reference, actually dereference it in order to get
2611 the underlying value.
2612
bc1f8cda
SM
26132015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2614
2615 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2616
acaa662f
SM
26172015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2618
2619 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2620 * linespec.c (linespec_lexer_lex_string): Same.
2621
4d9d419e
PL
26222015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2623
2624 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2625
6ec5f4be
PL
26262015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2627
2628 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2629 variable. Call aarch64_decode_adr instead of
2630 aarch64_decode_adrp.
2631 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2632 (aarch64_decode_adr): New function declaration.
2633 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2634 (aarch64_decode_adr): New function, factored out from
2635 aarch64_decode_adrp to decode both adr and adrp instructions.
2636
787749ea
PL
26372015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2638
2639 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2640 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2641 (aarch64-insn.o): New rule.
2642 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2643 (aarch64*-*-linux*): Likewise.
2644 * arch/aarch64-insn.c: New file.
2645 * arch/aarch64-insn.h: New file.
2646 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2647 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2648 arch/aarch64-insn.h.
2649 (decode_add_sub_imm): Rename to ...
2650 (aarch64_decode_add_sub_imm): ... this.
2651 (decode_adrp): Rename to ...
2652 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2653 Declare in arch/aarch64-insn.h.
2654 (decode_b): Rename to ...
2655 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2656 Declare in arch/aarch64-insn.h.
2657 (decode_bcond): Rename to ...
2658 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2659 Declare in arch/aarch64-insn.h.
2660 (decode_br): Rename to ...
2661 (aarch64_decode_br): ... this.
2662 (decode_cb): Rename to ...
2663 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2664 Declare in arch/aarch64-insn.h.
2665 (decode_eret): Rename to ...
2666 (aarch64_decode_eret): ... this.
2667 (decode_movz): Rename to ...
2668 (aarch64_decode_movz): ... this.
2669 (decode_orr_shifted_register_x): Rename to ...
2670 (aarch64_decode_orr_shifted_register_x): ... this.
2671 (decode_ret): Rename to ...
2672 (aarch64_decode_ret): ... this.
2673 (decode_stp_offset): Rename to ...
2674 (aarch64_decode_stp_offset): ... this.
2675 (decode_stp_offset_wb): Rename to ...
2676 (aarch64_decode_stp_offset_wb): ... this.
2677 (decode_stur): Rename to ...
2678 (aarch64_decode_stur): ... this.
2679 (decode_tb): Rename to ...
2680 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2681 Declare in arch/aarch64-insn.h.
2682 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2683
183dc7ec
DE
26842015-09-20 Doug Evans <xdje42@gmail.com>
2685
2686 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2687
2ee7123e
DE
26882015-09-20 Doug Evans <xdje42@gmail.com>
2689
2690 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2691 variable name that collides with a parameter.
2692
7d1c9c9b
JB
26932015-09-20 Joel Brobecker <brobecker@adacore.com>
2694
2695 * dwarf2loc.c (locexpr_get_frame_base): Renames
2696 block_op_get_frame_base.
2697 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2698 block_op_get_frame_base by reference to locexpr_get_frame_base.
2699 (loclist_get_frame_base): New function, near identical copy of
2700 locexpr_get_frame_base.
2701 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2702 block_op_get_frame_base by reference to loclist_get_frame_base.
2703
7dc7c195
DE
27042015-09-19 Doug Evans <xdje42@gmail.com>
2705
2706 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2707 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2708
be550b6e
DE
27092015-09-18 Doug Evans <xdje42@gmail.com>
2710
2711 * linux-thread-db.c (record_thread): Return the created thread.
2712 (thread_from_lwp): Likewise.
2713 (thread_db_get_thread_local_address): Update.
2714
615b3f62
DE
27152015-09-18 Doug Evans <xdje42@gmail.com>
2716
2717 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2718 move only member demangled_name up. All uses updated.
2719
015d2e7e
DE
27202015-09-18 Doug Evans <xdje42@gmail.com>
2721
2722 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2723 kind of minimal symbol in the error message.
2724 * objfiles.c (objfile_flavour_name): New function.
2725 * objfiles.h (objfile_flavour_name): Declare.
2726
a0cc84cd
YQ
27272015-09-18 Yao Qi <yao.qi@linaro.org>
2728
2729 * nat/aarch64-linux.c: Include elf/common.h,
2730 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2731 (aarch64_ps_get_thread_area): New function.
2732 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2733 (aarch64_ps_get_thread_area): Declare.
2734 * aarch64-linux-nat.c (ps_get_thread_area): Call
2735 aarch64_ps_get_thread_area.
2736
d2939ba2
MM
27372015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2738
2739 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2740
f2665db5
MM
27412015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2742
2743 * NEWS: Announce new scheduler-locking mode.
2744 * infrun.c (schedlock_replay): New.
2745 (scheduler_enums): Add schedlock_replay.
2746 (scheduler_mode): Change default to schedlock_replay.
2747 (user_visible_resume_ptid): Handle schedlock_replay.
2748 (clear_proceed_status_thread): Stop replaying if resumed thread is
2749 not replaying.
2750 (schedlock_applies): Handle schedlock_replay.
2751 (_initialize_infrun): Document new scheduler-locking mode.
2752 * record-btrace.c (record_btrace_resume): Remove code to stop other
2753 threads when not replaying the resumed thread.
2754
7ff27e9b
MM
27552015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2756
2757 * record-btrace.c ((record_btrace_will_replay): New.
2758 (init_record_btrace_ops): Initialize to_record_will_replay.
2759 * record-full.c ((record_full_will_replay): New.
2760 (init_record_full_ops): Initialize to_record_will_replay.
2761 * target-delegates.c: Regenerated.
2762 * target.c (target_record_will_replay): New.
2763 * target.h (struct target_ops) <to_record_will_replay>: New.
2764 (target_record_will_replay): New.
2765
797094dd
MM
27662015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2767
2768 * record-btrace.c (record_btrace_resume): Call
2769 target_record_stop_replaying.
2770 (record_btrace_stop_replaying_all): New.
2771 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2772 * record-full.c (record_full_stop_replaying): New.
2773 (init_record_full_ops ): Initialize to_record_stop_replaying.
2774 * target-delegates.c: Regenerated.
2775 * target.c (target_record_stop_replaying): New.
2776 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2777 (target_record_stop_replaying): New.
2778
4d10e986
MM
27792015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2780
2781 * record-btrace.c (record_btrace_xfer_partial)
2782 (record_btrace_store_registers, record_btrace_prepare_to_store):
2783 Call record_btrace_is_replaying with inferior_ptid instead of
2784 minus_one_ptid.
2785 (record_btrace_store_registers): Change error message.
2786
a52eab48
MM
27872015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2788
2789 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2790 Update users to pass minus_one_ptid.
2791 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2792 * record.c (cmd_record_delete): Pass inferior_ptid to
2793 target_record_is_replaying.
2794 * target-delegates.c: Regenerated.
2795 * target.c (target_record_is_replaying): Add ptid argument.
2796 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2797 argument.
2798 (target_record_is_replaying): Add ptid argument.
2799
cbb55fa7
MM
28002015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2801
2802 * record-btrace.c (record_btrace_open): Remove non_stop check.
2803 * NEWS: Announce that record btrace supports non-stop mode.
2804
d1988021
MM
28052015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2806
2807 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2808 in the TARKET_WAITKIND_NO_HISTORY case.
2809
a6b5be76
MM
28102015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2811
2812 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2813 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2814
ec71cc2f
MM
28152015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2816
2817 * record-btrace.c (get_thread_current_frame): New.
2818 (record_btrace_start_replaying): Call get_thread_current_frame.
2819
0ca912df
MM
28202015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2821
2822 * record-btrace.c (record_btrace_resume_thread): A move request
2823 overwrites a previous move request.
2824 (record_btrace_find_resume_thread): Removed.
2825 (record_btrace_resume): Resume all requested threads.
2826
e3cfc1c7
MM
28272015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2828
2829 * record-btrace.c: Include vec.h.
2830 (record_btrace_find_thread_to_move): Removed.
2831 (btrace_step_no_resumed, btrace_step_again)
2832 (record_btrace_stop_replaying_at_end): New.
2833 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2834 (record_btrace_single_step_forward): Remove calls to
2835 record_btrace_stop_replaying.
2836 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2837 BTHR_RCONT. Keep threads at the end of their history moving.
2838 (record_btrace_wait): Call record_btrace_step_thread for all threads
2839 until one reports an event. Call record_btrace_stop_replaying_at_end
2840 for the eventing thread.
2841
cf8f8f0c
MM
28422015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2843
2844 * record-btrace.c (record_btrace_single_step_forward): Return
2845 NO_HISTORY if a step brings us to the end of the execution history.
2846
011c71b6
MM
28472015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2848
2849 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2850 to ...
2851 (record_btrace_single_step_forward): ... here and
2852 (record_btrace_single_step_backward): ... here.
2853
d825d248
MM
28542015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2855
2856 * record-btrace.c (btrace_step_spurious)
2857 (record_btrace_single_step_forward)
2858 (record_btrace_single_step_backward): New.
2859 (record_btrace_step_thread): Call record_btrace_single_step_forward
2860 and record_btrace_single_step_backward.
2861
3c615f99
MM
28622015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2863
2864 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2865 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2866
987e68b1
MM
28672015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2868
2869 * record-btrace.c (btrace_thread_flag_to_str)
2870 (record_btrace_cancel_resume): New.
2871 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2872 (record_btrace_resume): Print execution direction.
2873 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2874 (record_btrace_wait): Call record_btrace_cancel_resume.
2875
6e4879f0
MM
28762015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2877
2878 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2879 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2880 (record_btrace_find_thread_to_move): Also accept threads that have
2881 BTHR_STOP set.
2882 (btrace_step_stopped_on_request, record_btrace_stop): New.
2883 (record_btrace_step_thread): Support BTHR_STOP.
2884 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2885 (init_record_btrace_ops): Initialize to_stop.
2886
5953356c
MM
28872015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2888
2889 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2890 target_is_non_stop_p ().
2891
bfca584f
PMR
28922015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2893
2894 * ada-typeprint.c (print_array_type): Do not describe arrays as
2895 packed when they embed dynamic elements.
2896
5382cfab
PW
28972015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2898
2899 * symtab.h (address_class): Document that TLS variables
2900 are handled by LOC_UNRESOLVED.
2901 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2902 * printcmd.c (address_info): Don't relocate TLS variables.
2903
b277c936
PL
29042015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2905
2906 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2907 (decode_adrp): Likewise.
2908 (decode_b): Likewise.
2909 (decode_bcond): Likewise.
2910 (decode_br): Likewise.
2911 (decode_cb): Likewise.
2912 (decode_eret): Likewise.
2913 (decode_movz): Likewise.
2914 (decode_orr_shifted_register_x): Likewise.
2915 (decode_ret): Likewise.
2916 (decode_stp_offset): Likewise.
2917 (decode_stp_offset_wb): Likewise.
2918 (decode_stur): Likewise.
2919 (decode_tb): Likewise.
2920 (aarch64_analyze_prologue): Likewise.
2921 (pass_in_x): Likewise.
2922 (pass_in_v): Likewise.
2923 (pass_on_stack): Likewise.
2924 (aarch64_push_dummy_call): Likewise.
2925 (aarch64_extract_return_value): Likewise.
2926 (aarch64_store_return_value): Likewise.
2927 (aarch64_return_value): Likewise.
2928 (aarch64_record_asimd_load_store): Likewise.
2929 (aarch64_record_load_store): Likewise.
2930 (aarch64_record_data_proc_simd_fp): Likewise.
2931
141c5cc4
JK
29322015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2933
2934 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2935 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2936 (ppc64_skip_trampoline_code_1): ... here.
2937 (ppc64_skip_trampoline_code): New wrapper function.
2938 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2939
750ce8d1
YQ
29402015-09-15 Yao Qi <yao.qi@linaro.org>
2941
2942 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2943 function.
2944 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2945 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2946 if target_can_do_single_step returns 1.
2947 * remote.c (struct vCont_action_support) <s, S>: New fields.
2948 (PACKET_vContSupported): New enum.
2949 (remote_protocol_features): New element for vContSupported.
2950 (remote_query_supported): Append "vContSupported+".
2951 (remote_vcont_probe): Remove support_s and support_S, use
2952 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2953 vCont packet if c and C actions are not supported.
2954 (remote_can_do_single_step): New function.
2955 (init_remote_ops): Install it to to_can_do_single_step.
2956 (_initialize_remote): Call add_packet_config_cmd.
2957 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2958 (target_can_do_single_step): New macro.
2959 * target-delegates.c: Re-generated.
2960
ade90bde
YQ
29612015-09-15 Yao Qi <yao.qi@linaro.org>
2962
2963 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2964 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2965 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2966 New function.
2967 (aarch64_siginfo_from_compat_siginfo): New function.
2968 * nat/aarch64-linux.h: Include signal.h.
2969 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2970 (compat_timer_t, compat_clock_t): Likewise.
2971 (struct compat_timeval): New.
2972 (union compat_sigval): New.
2973 (struct compat_siginfo): New.
2974 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2975 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2976 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2977 (cpt_si_band, cpt_si_fd): Likewise.
2978
4c2f2a79
PA
29792015-09-14 Pedro Alves <palves@redhat.com>
2980
2981 * infrun.c (current_stop_id): New global.
2982 (get_stop_id, new_stop_id): New functions.
2983 (fetch_inferior_event): Handle normal_stop proceeding the target.
2984 (struct stop_context): New.
2985 (save_stop_context, release_stop_context_cleanup)
2986 (stop_context_changed): New functions.
2987 (normal_stop): Return true if the hook-stop changes the stop
2988 context.
2989 * infrun.h (get_stop_id): Declare.
2990 (normal_stop): Now returns int. Add documentation.
2991
919e6dbe
PMR
29922015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2993
2994 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2995 comment. Handle packed arrays.
2996
b027a8fa
PA
29972015-09-14 Pedro Alves <palves@redhat.com>
2998
2999 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
3000 mention of maint set/show target-non-stop.
3001
b459a59b
DB
30022015-09-11 Don Breazeal <donb@codesourcery.com>
3003
3004 * NEWS: Announce new remote packets for the exec-events
3005 feature and the exec-events feature and associated commands.
3006
d46addbb
DB
30072015-09-11 Don Breazeal <donb@codesourcery.com>
3008
3009 * remote.c (remote_exec_event_p): New function.
3010 (remote_insert_exec_catchpoint): New function.
3011 (remote_remove_exec_catchpoint): New function.
3012 (init_extended_remote_ops): Initialize extended_remote_ops
3013 members to_insert_exec_catchpoint and
3014 to_remove_exec_catchpoint.
3015
94585166
DB
30162015-09-11 Don Breazeal <donb@codesourcery.com>
3017 Luis Machado <lgustavo@codesourcery.com>
3018
3019 * infrun.c (follow_exec): Use process-style ptid for
3020 exec message. Call add_inferior_with_spaces and
3021 target_follow_exec.
3022 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
3023 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
3024 * remote.c (remote_pspace_data): New static variable.
3025 (remote_pspace_data_cleanup): New function.
3026 (get_remote_exec_file): New function.
3027 (set_remote_exec_file_1): New function.
3028 (set_remote_exec_file): New function.
3029 (show_remote_exec_file): New function.
3030 (remote_exec_file): Delete static variable.
3031 (anonymous enum) <PACKET_exec_event_feature>: New
3032 enumeration constant.
3033 (remote_protocol_features): Add entry for exec-events feature.
3034 (remote_query_supported): Add client side of qSupported query
3035 for exec-events feature.
3036 (remote_follow_exec): New function.
3037 (remote_parse_stop_reply): Handle 'exec' stop reason.
3038 (extended_remote_run, extended_remote_create_inferior): Call
3039 get_remote_exec_file and set_remote_exec_file_1.
3040 (init_extended_remote_ops) <to_follow_exec>: Initialize new
3041 member.
3042 (_initialize_remote): Call
3043 register_program_space_data_with_cleanup. Call
3044 add_packet_config_cmd for remote exec-events feature.
3045 Modify call to add_setshow_string_noescape_cmd for exec-file
3046 to use new functions set_remote_exec_file and
3047 show_remote_exec_file.
3048 * target-debug.h, target-delegates.c: Regenerated.
3049 * target.c (target_follow_exec): New function.
3050 * target.h (struct target_ops) <to_follow_exec>: New member.
3051 (target_follow_exec): Declare new function.
3052
669e74e8
PL
30532015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3054
3055 * aarch64-tdep.c (decode_cb): Move up comment describing the
3056 encoding.
3057 (decode_tb): Fix a typo in comment above the function. Move up
3058 comment describing the encoding.
3059
4d50586d
PL
30602015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3061
3062 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
3063
6dcaef99
MMN
30642015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
3065
3066 PR gdb/18947
3067 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
3068 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
3069
5da1a4d3
SM
30702015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3071
3072 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3073 operations.
3074
108d56a4
SM
30752015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3076
3077 * ada-lang.c (ada_search_struct_field): Constify parameters
3078 and/or variables..
3079 (xget_renaming_scope): Likewise.
3080 (ada_is_redundant_range_encoding): Likewise.
3081 (scan_discrim_bound): Likewise.
3082 (to_fixed_range_type): Likewise.
3083
dd2e65cc
YQ
30842015-09-10 Yao Qi <yao.qi@linaro.org>
3085
3086 * breakpoint.c (download_tracepoint_locations): New local
3087 can_download_tracepoint. Check the result of
3088 target_can_download_tracepoint and save it in
3089 can_download_tracepoint if there are tracepoints to download.
3090 * linux-nat.h (enum tribool): Move it to ...
3091 * common/common-types.h: ... here.
3092
cfe75703
PA
30932015-09-09 Pedro Alves <palves@redhat.com>
3094
3095 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3096 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3097
a85a3079
PA
30982015-09-09 Pedro Alves <palves@redhat.com>
3099
3100 * continuations.c (add_continuation, restore_thread_cleanup)
3101 (do_all_continuations_ptid, do_all_continuations_thread_callback)
3102 (do_all_continuations_thread, do_all_continuations)
3103 (discard_all_continuations_thread_callback)
3104 (discard_all_continuations_thread, discard_all_continuations)
3105 (add_intermediate_continuation)
3106 (do_all_intermediate_continuations_thread_callback)
3107 (do_all_intermediate_continuations_thread)
3108 (do_all_intermediate_continuations)
3109 (discard_all_intermediate_continuations_thread_callback)
3110 (discard_all_intermediate_continuations_thread)
3111 (discard_all_intermediate_continuations): Delete.
3112 * continuations.h (add_continuation, do_all_continuations)
3113 (do_all_continuations_thread, discard_all_continuations)
3114 (discard_all_continuations_thread, add_intermediate_continuation)
3115 (do_all_intermediate_continuations)
3116 (do_all_intermediate_continuations_thread)
3117 (discard_all_intermediate_continuations)
3118 (discard_all_intermediate_continuations_thread): Delete
3119 declarations.
3120 * event-top.c (stdin_event_handler): Delete references to
3121 continuations.
3122 * gdbthread.h (struct thread_info): Delete continuations and
3123 intermediate_continuations fields.
3124 * inf-loop.c (inferior_event_handler): Remove references to
3125 continuations.
3126 * infrun.c (infrun_thread_stop_requested_callback): Remove
3127 references to continuations.
3128 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3129 * thread.c: Don't include "continuations.h".
3130 (clear_thread_inferior_resources): Remove references to
3131 continuations.
3132
0700e23e
PA
31332015-09-09 Pedro Alves <palves@redhat.com>
3134
3135 * infcall.c (struct dummy_frame_context_saver): Delete.
3136 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3137 (dummy_frame_context_saver_drop)
3138 (dummy_frame_context_saver_cleanup)
3139 (dummy_frame_context_saver_get_regs)
3140 (dummy_frame_context_saver_setup): Delete.
3141 * infcall.h (dummy_frame_context_saver_drop)
3142 (dummy_frame_context_saver_cleanup)
3143 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3144 Delete.
3145 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
3146 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3147 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3148
cfc31633
PA
31492015-09-09 Pedro Alves <palves@redhat.com>
3150
3151 * breakpoint.c: Include "thread-fsm.h".
3152 (struct until_break_command_continuation_args): Delete.
3153 (struct until_break_fsm): New.
3154 (until_break_fsm_ops): New global.
3155 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3156 (until_break_command_continuation): Delete.
3157 (until_break_fsm_clean_up): New function.
3158 (until_break_fsm_async_reply_reason): New function.
3159 (until_break_command): Adjust to create an until_break_fsm instead
3160 of a continuation.
3161 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3162 here.
3163 * infcmd.c (struct until_next_fsm): New.
3164 (until_next_fsm_ops): New global.
3165 (new_until_next_fsm, until_next_fsm_should_stop): New function.
3166 (until_next_continuation): Delete.
3167 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3168 functions.
3169 (until_next_command): Adjust to create a new until_next_fsm
3170 instead of a continuation.
3171
388a7084
PA
31722015-09-09 Pedro Alves <palves@redhat.com>
3173
3174 * infcall.c: Include thread_fsm.h.
3175 (struct call_return_meta_info): New.
3176 (get_call_return_value): New function, factored out from
3177 call_function_by_hand_dummy.
3178 (struct call_thread_fsm): New.
3179 (call_thread_fsm_ops): New global.
3180 (new_call_thread_fsm, call_thread_fsm_should_stop)
3181 (call_thread_fsm_should_notify_stop): New functions.
3182 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
3183 the thread.
3184 (call_function_by_hand_dummy): Create a new call_thread_fsm
3185 instance, associate it with the thread, and wait for the FSM to
3186 finish. If finished successfully, fetch the function's result
3187 value out of the FSM.
3188 * infrun.c (fetch_inferior_event): If the FSM says the stop
3189 shouldn't be notified, don't call normal_stop.
3190 (maybe_remove_breakpoints): New function, factored out from ...
3191 (normal_stop): ... here. Simplify.
3192 * infrun.h (maybe_remove_breakpoints): Declare.
3193 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3194 (thread-fsm.h) <struct thread_fsm_ops>: New field.
3195 (thread_fsm_should_notify_stop): Declare.
3196
243a9253
PA
31972015-09-09 Pedro Alves <palves@redhat.com>
3198
3199 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3200 * breakpoint.c (handle_jit_event): Print debug output.
3201 (bpstat_what): Split event callback handling to ...
3202 (bpstat_run_callbacks): ... this new function.
3203 (momentary_bkpt_print_it): No longer handle bp_finish here.
3204 * breakpoint.h (bpstat_run_callbacks): Declare.
3205 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3206 <thread_fsm>: New field.
3207 (thread_cancel_execution_command): Declare.
3208 * infcmd.c: Include thread-fsm.h.
3209 (struct step_command_fsm): New.
3210 (step_command_fsm_ops): New global.
3211 (new_step_command_fsm, step_command_fsm_prepare): New functions.
3212 (step_1): Adjust to use step_command_fsm_prepare and
3213 prepare_one_step.
3214 (struct step_1_continuation_args): Delete.
3215 (step_1_continuation): Delete.
3216 (step_command_fsm_should_stop): New function.
3217 (step_once): Delete.
3218 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3219 (prepare_one_step): New function, based on step_once.
3220 (until_next_command): Remove step_multi reference.
3221 (struct return_value_info): New.
3222 (print_return_value): Rename to ...
3223 (print_return_value_1): ... this. New struct return_value_info
3224 parameter. Adjust.
3225 (print_return_value): Reimplement as wrapper around
3226 print_return_value_1.
3227 (struct finish_command_fsm): New.
3228 (finish_command_continuation): Delete.
3229 (finish_command_fsm_ops): New global.
3230 (new_finish_command_fsm, finish_command_fsm_should_stop): New
3231 functions.
3232 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3233 New.
3234 (finish_command_continuation_free_arg): Delete.
3235 (finish_command_fsm_async_reply_reason): New.
3236 (finish_backward, finish_forward): Change symbol parameter to a
3237 finish_command_fsm. Adjust.
3238 (finish_command): Create a finish_command_fsm. Adjust.
3239 * infrun.c: Include "thread-fsm.h".
3240 (clear_proceed_status_thread): Delete the thread's FSM.
3241 (infrun_thread_stop_requested_callback): Cancel the thread's
3242 execution command.
3243 (clean_up_just_stopped_threads_fsms): New function.
3244 (fetch_inferior_event): Handle the event_thread's should_stop
3245 method saying the command isn't done yet.
3246 (process_event_stop_test): Run breakpoint callbacks here.
3247 (print_stop_event): Rename to ...
3248 (print_stop_location): ... this.
3249 (restore_current_uiout_cleanup): New function.
3250 (print_stop_event): Reimplement.
3251 (normal_stop): No longer notify the end_stepping_range observers
3252 here handle "step N" nor "finish" here. No longer call
3253 print_stop_event here.
3254 * infrun.h (struct return_value_info): Forward declare.
3255 (print_return_value): Declare.
3256 (print_stop_event): Change prototype.
3257 * thread-fsm.c: New file.
3258 * thread-fsm.h: New file.
3259 * thread.c: Include "thread-fsm.h".
3260 (thread_cancel_execution_command): New function.
3261 (clear_thread_inferior_resources): Call it.
3262 * cli/cli-interp.c (cli_on_normal_stop): New function.
3263 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3264 observer.
3265 * mi/mi-interp.c: Include "thread-fsm.h".
3266 (restore_current_uiout_cleanup): Delete.
3267 (mi_on_normal_stop): If the thread has an FSM associated, and it
3268 finished, ask it for the async-reply-reason to print. Always call
3269 print_stop_event here, regardless of the top-level interpreter.
3270 Check bpstat_what to tell whether an asynchronous breakpoint hit
3271 triggered.
3272 * tui/tui-interp.c (tui_on_normal_stop): New function.
3273 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3274
0b333c5e
PA
32752015-09-09 Pedro Alves <palves@redhat.com>
3276
3277 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3278 check whether the target can async.
3279 * inf-loop.c (inferior_event_handler): Only call target_async if
3280 the target can async.
3281 * infcall.c: Include top.h and interps.h.
3282 (run_inferior_call): For the interpreter to sync mode while
3283 running the infcall. Call wait_sync_command_done instead of
3284 wait_for_inferior plus normal_stop.
3285 * infcmd.c (prepare_execution_command): Don't check whether the
3286 target can async when running in the foreground.
3287 (step_1): Delete synchronous case handling.
3288 (step_once): Always install a continuation, even in sync mode.
3289 (until_next_command, finish_forward): Don't check whether the
3290 target can async.
3291 (attach_command_post_wait, notice_new_inferior): Always install a
3292 continuation, even in sync mode.
3293 * infrun.c (mark_infrun_async_event_handler): New function.
3294 (proceed): In sync mode, mark infrun's event source instead of
3295 waiting for events here.
3296 (fetch_inferior_event): If the target can't async, do a blocking
3297 wait.
3298 (prepare_to_wait): In sync mode, mark infrun's event source.
3299 (infrun_async_inferior_event_handler): No longer bail out if the
3300 target can't async.
3301 * infrun.h (mark_infrun_async_event_handler): New declaration.
3302 * linux-nat.c (linux_nat_wait_1): Remove calls to
3303 set_sigint_trap/clear_sigint_trap.
3304 (linux_nat_terminal_inferior): No longer check whether the target
3305 can async.
3306 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3307 comment.
3308 (mi_execute_command_input_handler): No longer check whether the
3309 target is async. Update and simplify comment.
3310 * target.c (default_target_wait): New function.
3311 * target.h (struct target_ops) <to_wait>: Now defaults to
3312 default_target_wait.
3313 (default_target_wait): Declare.
3314 * top.c (wait_sync_command_done): New function, factored out from
3315 ...
3316 (maybe_wait_sync_command_done): ... this.
3317 * top.h (wait_sync_command_done): Declare.
3318 * target-delegates.c: Regenerate.
3319
0568462b
MM
33202015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3321
3322 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3323 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3324 Remove include of sys/utsname.h.
3325 (linux_determine_kernel_ptr_bits): Remove.
3326 (linux_determine_kernel_start): New.
3327 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3328 Update check.
3329 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3330 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3331 initialization.
3332 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3333 assignment.
3334
72e02483
PA
33352015-09-07 Pedro Alves <palves@redhat.com>
3336
3337 * guile/guile-internal.h (as_a_scm_t_subr): New.
3338 * guile/guile.c (misc_guile_functions): Use it.
3339 * guile/scm-arch.c (arch_functions): Use it.
3340 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3341 Use it.
3342 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3343 * guile/scm-cmd.c (command_functions): Use it.
3344 * guile/scm-disasm.c (disasm_functions): Use it.
3345 * guile/scm-exception.c (exception_functions)
3346 (private_exception_functions): Use it.
3347 * guile/scm-frame.c (frame_functions)
3348 * guile/scm-gsmob.c (gsmob_functions): Use it.
3349 * guile/scm-iterator.c (iterator_functions): Use it.
3350 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3351 * guile/scm-math.c (math_functions): Use it.
3352 * guile/scm-objfile.c (objfile_functions): Use it.
3353 * guile/scm-param.c (parameter_functions): Use it.
3354 * guile/scm-ports.c (port_functions, private_port_functions): Use
3355 it.
3356 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3357 * guile/scm-progspace.c (pspace_functions): Use it.
3358 * guile/scm-string.c (string_functions): Use it.
3359 * guile/scm-symbol.c (symbol_functions): Use it.
3360 * guile/scm-symtab.c (symtab_functions): Use it.
3361 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3362 it.
3363 * guile/scm-value.c (value_functions): Use it.
3364
e65b5245
AB
33652015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3366
3367 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3368 (tui_next_win): Likewise.
3369 (tui_prev_win): Likewise.
3370 (tui_partial_win_by_name): Likewise.
3371 (tui_init_generic_part): Likewise.
3372 (init_content_element): Likewise.
3373 (tui_del_window): Likewise.
3374 (tui_free_window): Likewise.
3375 (tui_del_data_windows): Likewise.
3376 (tui_free_data_content): Likewise.
3377 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3378 * tui/tui-regs.c (tui_show_register_group): Likewise.
3379 * tui/tui-win.c (tui_resize_all): Likewise.
3380 (tui_set_focus): Likewise.
3381 (tui_set_win_height): Likewise.
3382 (make_invisible_and_set_new_height): Likewise.
3383 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3384 * tui/tui-wingeneral.c (make_visible): Likewise.
3385
b03e6ad9
AB
33862015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3387
3388 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3389
be903358
AB
33902015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3391
3392 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3393 pointer.
3394 * dbxread.c (dbx_end_psymtab): Likewise.
3395 * gnu-nat.c (gnu_write_inferior): Likewise.
3396 * mdebugread.c (cross_ref): Likewise.
3397 * p-valprint.c (pascal_val_print): Likewise.
3398 * xcoffread.c (xcoff_end_psymtab): Likewise.
3399
02f024f9
YQ
34002015-09-04 Yao Qi <yao.qi@linaro.org>
3401
3402 * NEWS: Mention the aarch64 multi-arch debugging support.
3403
cd7c1778
PMR
34042015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3405
3406 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3407 type instead of a TYPE_CODE_INT one for the string_char_type
3408 and the ada_primitive_type_char types.
3409
39edd165
YQ
34102015-09-03 Yao Qi <yao.qi@linaro.org>
3411
3412 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3413 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3414 aarch64_linux_region_ok_for_watchpoint.
3415 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3416 New function.
3417 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3418 Declare it.
3419
6c214e7c
PP
34202015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3421
3422 * gdb_obstack.h (obstack_strdup): Declare.
3423 * gdb_obstack.c (obstack_strdup): Define.
3424 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3425 * gdbarch.c: Regenerate.
3426 * gdbarch.h: Regenerate.
3427 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3428
eed8b28a
PP
34292015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3430
3431 * gdbtypes.c (copy_type_recursive): Update documentation.
3432
73c6b475
SDJ
34332015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3434
3435 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3436 as zero.
3437
ad1c917a
SDJ
34382015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3439
3440 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3441
3bd7e5b7
SDJ
34422015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3443
3444 * solib-svr4.c (solib_event_probe_action): Call
3445 get_probe_argument_count using TRY...CATCH.
3446 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3447
f469e8ce
SDJ
34482015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3449
3450 * probe.h (struct probe_ops) <get_probe_argument_count,
3451 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3452 the comment that the function can throw an exception.
3453 (get_probe_argument_count): Likewise.
3454 (evaluate_probe_argument): Likewise.
3455 * stap-probe.c (stap_get_opcode): Call error instead of
3456 internal_error.
3457 (stap_get_expected_argument_type): Likewise. Add argument
3458 'probe'. Improve error message by mentioning the probe's name.
3459 (stap_parse_probe_arguments): Adjust call to
3460 stap_get_expected_argument_type.
3461 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3462 not zero. Call internal_error if GDB requests an argument but the
3463 probe has no arguments.
3464
dc5c8746
PMR
34652015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3466
3467 * ada-lang.c (ada_resolve_function): Do not ask the user what
3468 match to use when in completion mode.
3469
136765ea
AB
34702015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3471
3472 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3473 cast of NULL.
3474
90b81c5f
MF
34752015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3476
3477 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3478 call_abi using XSHAL_ABI macro.
3479
1cd36e54
DE
34802015-08-29 Doug Evans <xdje42@gmail.com>
3481
3482 * symtab.h (struct symbol): Tweak comment.
3483
8f57eec2
PP
34842015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3485
3486 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3487 gdbarch obstack instead of on the heap. Update commentary
3488 accordingly.
3489
38eebd71
JB
34902015-08-28 Joel Brobecker <brobecker@adacore.com>
3491
3492 GDB 7.10 released.
3493
d63dd61e
SM
34942015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3495
3496 * NEWS: Update entry about non-8-bits addressable memory.
3497
6f059256
UW
34982015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3499
3500 Revert:
3501 2014-11-06 Doug Evans <xdje42@gmail.com>
3502 * solib.c (solib_global_lookup): Fetch arch from objfile,
3503 not target_gdbarch.
3504
70987a92 35052015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
3506
3507 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3508 attempt to relocate a TLS variable offset.
3509
70987a92 35102015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
3511
3512 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3513 registered yet. Set inferior_ptid while calling target_read_memory.
3514
70987a92 35152015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
3516
3517 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3518 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3519 * linux-nat.c (check_stopped_by_breakpoint): Use
3520 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3521
70987a92 35222015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
3523
3524 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3525 thread was not yet discovered, use thread_from_lwp instead of
3526 calling thread_db_find_new_threads_1.
3527
f5cdf498
SM
35282015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3529
3530 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3531 statements.
3532
fd2ae5d6
SM
35332015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3534
3535 * NEWS: Document support for non-8-bits addressable memory.
3536
14d88147
PA
35372015-08-27 Pedro Alves <palves@redhat.com>
3538
3539 * configure.ac: Remove AC_TYPE_SIGNAL call.
3540 * configure, config.in: Regenerate.
3541
a40805d4
PA
35422015-08-27 Pedro Alves <palves@redhat.com>
3543
3544 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3545 * extension-priv.h: Include signal.h.
3546 (struct signal_handler) <handler>: Change type to sighandler_t.
3547 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3548 * inflow.c (sigint_ours, sigquit_ours): Change type to
3549 sighandler_t.
3550 (child_terminal_inferior): Remove casts.
3551 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3552 (osig): Change type to sighandler_t.
3553 * nto-procfs.c (ofunc): Change type to sighandler_t.
3554 (procfs_wait): Remove casts.
3555 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3556 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3557 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3558
0750520d
PA
35592015-08-27 Pedro Alves <palves@redhat.com>
3560
3561 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3562 * gnulib/aclocal.m4: Renegerate.
3563 * gnulib/config.in: Renegerate.
3564 * gnulib/configure: Renegerate.
3565 * gnulib/import/Makefile.am: Update.
3566 * gnulib/import/Makefile.in: Regenerate.
3567 * gnulib/import/m4/gnulib-cache.m4: Update.
3568 * gnulib/import/m4/gnulib-comp.m4: Update.
3569 * gnulib/import/m4/signal_h.m4: New file.
3570 * gnulib/import/signal.in.h: New file.
3571
a5c0808e
PA
35722015-08-27 Pedro Alves <palves@redhat.com>
3573
3574 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3575 (MIN_MEMORY_PACKET_SIZE): New.
3576 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3577 (get_memory_packet_size): Adjust. No longer limit the max packet
3578 size.
3579 (set_memory_packet_size): Adjust, and remove dead code.
3580 (remote_check_symbols): Use xmalloc and a cleanup instead of
3581 alloca.
3582 (remote_packet_size): No longer cap the packet size.
3583 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3584
cdaec3f3
LM
35852015-08-26 Luis Machado <lgustavo@codesourcery.com>
3586
3587 * compile/compile.c (compile_to_object): Mention language in
3588 error message.
3589
e9756d52
PP
35902015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3591
3592 * target.c (target_pre_inferior): Unset attach_flag.
3593
1dc7a623
SM
35942015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3595
3596 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3597 * gdbarch.c: Re-generate.
3598
8d749320
SM
35992015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3600
6711b7f8
SM
3601 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3602 function with the XNEW-family equivalent.
8d749320
SM
3603 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3604 * ada-exp.y (write_ambiguous_var): Likewise.
3605 * ada-lang.c (resolve_subexp): Likewise.
3606 (user_select_syms): Likewise.
3607 (assign_aggregate): Likewise.
3608 (ada_evaluate_subexp): Likewise.
3609 (cache_symbol): Likewise.
3610 * addrmap.c (allocate_key): Likewise.
3611 (addrmap_create_mutable): Likewise.
3612 * aix-thread.c (sync_threadlists): Likewise.
3613 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3614 (alpha_gdbarch_init): Likewise.
3615 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3616 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3617 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3618 * arm-tdep.c (push_stack_item): Likewise.
3619 (arm_displaced_step_copy_insn): Likewise.
3620 (arm_gdbarch_init): Likewise.
3621 (_initialize_arm_tdep): Likewise.
3622 * avr-tdep.c (push_stack_item): Likewise.
3623 * ax-general.c (new_agent_expr): Likewise.
3624 * block.c (block_initialize_namespace): Likewise.
3625 * breakpoint.c (alloc_counted_command_line): Likewise.
3626 (update_dprintf_command_list): Likewise.
3627 (parse_breakpoint_sals): Likewise.
3628 (decode_static_tracepoint_spec): Likewise.
3629 (until_break_command): Likewise.
3630 (clear_command): Likewise.
3631 (update_global_location_list): Likewise.
3632 (get_breakpoint_objfile_data) Likewise.
3633 * btrace.c (ftrace_new_function): Likewise.
3634 (btrace_set_insn_history): Likewise.
3635 (btrace_set_call_history): Likewise.
3636 * buildsym.c (add_symbol_to_list): Likewise.
3637 (record_pending_block): Likewise.
3638 (start_subfile): Likewise.
3639 (start_buildsym_compunit): Likewise.
3640 (push_subfile): Likewise.
3641 (end_symtab_get_static_block): Likewise.
3642 (buildsym_init): Likewise.
3643 * cli/cli-cmds.c (source_command): Likewise.
3644 * cli/cli-decode.c (add_cmd): Likewise.
3645 * cli/cli-script.c (build_command_line): Likewise.
3646 (setup_user_args): Likewise.
3647 (realloc_body_list): Likewise.
3648 (process_next_line): Likewise.
3649 (copy_command_lines): Likewise.
3650 * cli/cli-setshow.c (do_set_command): Likewise.
3651 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3652 * coffread.c (coff_locate_sections): Likewise.
3653 (coff_symtab_read): Likewise.
3654 (coff_read_struct_type): Likewise.
3655 * common/cleanups.c (make_my_cleanup2): Likewise.
3656 * common/common-exceptions.c (throw_it): Likewise.
3657 * common/filestuff.c (make_cleanup_close): Likewise.
3658 * common/format.c (parse_format_string): Likewise.
3659 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3660 * compile/compile-object-load.c (munmap_list_add): Likewise.
3661 (compile_object_load): Likewise.
3662 * compile/compile-object-run.c (compile_object_run): Likewise.
3663 * compile/compile.c (append_args): Likewise.
3664 * corefile.c (specify_exec_file_hook): Likewise.
3665 * cp-support.c (make_symbol_overload_list): Likewise.
3666 * cris-tdep.c (push_stack_item): Likewise.
3667 (cris_gdbarch_init): Likewise.
3668 * ctf.c (ctf_trace_file_writer_new): Likewise.
3669 * dbxread.c (init_header_files): Likewise.
3670 (add_new_header_file): Likewise.
3671 (init_bincl_list): Likewise.
3672 (dbx_end_psymtab): Likewise.
3673 (start_psymtab): Likewise.
3674 (dbx_end_psymtab): Likewise.
3675 * dcache.c (dcache_init): Likewise.
3676 * dictionary.c (dict_create_hashed): Likewise.
3677 (dict_create_hashed_expandable): Likewise.
3678 (dict_create_linear): Likewise.
3679 (dict_create_linear_expandable): Likewise.
3680 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3681 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3682 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3683 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3684 (decode_frame_entry_1): Likewise.
3685 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3686 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3687 * dwarf2read.c (dwarf2_has_info): Likewise.
3688 (create_signatured_type_table_from_index): Likewise.
3689 (dwarf2_read_index): Likewise.
3690 (dw2_get_file_names_reader): Likewise.
3691 (create_all_type_units): Likewise.
3692 (read_cutu_die_from_dwo): Likewise.
3693 (init_tu_and_read_dwo_dies): Likewise.
3694 (init_cutu_and_read_dies): Likewise.
3695 (create_all_comp_units): Likewise.
3696 (queue_comp_unit): Likewise.
3697 (inherit_abstract_dies): Likewise.
3698 (read_call_site_scope): Likewise.
3699 (dwarf2_add_field): Likewise.
3700 (dwarf2_add_typedef): Likewise.
3701 (dwarf2_add_member_fn): Likewise.
3702 (attr_to_dynamic_prop): Likewise.
3703 (abbrev_table_alloc_abbrev): Likewise.
3704 (abbrev_table_read_table): Likewise.
3705 (add_include_dir): Likewise.
3706 (add_file_name): Likewise.
3707 (dwarf_decode_line_header): Likewise.
3708 (dwarf2_const_value_attr): Likewise.
3709 (dwarf_alloc_block): Likewise.
3710 (parse_macro_definition): Likewise.
3711 (set_die_type): Likewise.
3712 (write_psymtabs_to_index): Likewise.
3713 (create_cus_from_index): Likewise.
3714 (dwarf2_create_include_psymtab): Likewise.
3715 (process_psymtab_comp_unit_reader): Likewise.
3716 (build_type_psymtab_dependencies): Likewise.
3717 (read_comp_units_from_section): Likewise.
3718 (compute_compunit_symtab_includes): Likewise.
3719 (create_dwo_unit_in_dwp_v1): Likewise.
3720 (create_dwo_unit_in_dwp_v2): Likewise.
3721 (read_func_scope): Likewise.
3722 (process_structure_scope): Likewise.
3723 (mark_common_block_symbol_computed): Likewise.
3724 (load_partial_dies): Likewise.
3725 (dwarf2_symbol_mark_computed): Likewise.
3726 * elfread.c (elf_symfile_segments): Likewise.
3727 (elf_read_minimal_symbols): Likewise.
3728 * environ.c (make_environ): Likewise.
3729 * eval.c (evaluate_subexp_standard): Likewise.
3730 * event-loop.c (create_file_handler): Likewise.
3731 (create_async_signal_handler): Likewise.
3732 (create_async_event_handler): Likewise.
3733 (create_timer): Likewise.
3734 * exec.c (build_section_table): Likewise.
3735 * fbsd-nat.c (fbsd_remember_child): Likewise.
3736 * fork-child.c (fork_inferior): Likewise.
3737 * frv-tdep.c (new_variant): Likewise.
3738 * gdbarch.sh (gdbarch_alloc): Likewise.
3739 (append_name): Likewise.
3740 * gdbtypes.c (rank_function): Likewise.
3741 (copy_type_recursive): Likewise.
3742 (add_dyn_prop): Likewise.
3743 * gnu-nat.c (make_proc): Likewise.
3744 (make_inf): Likewise.
3745 (gnu_write_inferior): Likewise.
3746 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3747 (build_std_type_info_type): Likewise.
3748 * guile/scm-param.c (compute_enum_list): Likewise.
3749 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3750 * guile/scm-value.c (gdbscm_value_call): Likewise.
3751 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3752 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3753 (read_unwind_info): Likewise.
3754 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3755 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3756 (call_function_by_hand_dummy): Likewise.
3757 * infcmd.c (step_once): Likewise.
3758 (finish_forward): Likewise.
3759 (attach_command): Likewise.
3760 (notice_new_inferior): Likewise.
3761 * inferior.c (add_inferior_silent): Likewise.
3762 * infrun.c (add_displaced_stepping_state): Likewise.
3763 (save_infcall_control_state): Likewise.
3764 (save_inferior_ptid): Likewise.
3765 (_initialize_infrun): Likewise.
3766 * jit.c (bfd_open_from_target_memory): Likewise.
3767 (jit_gdbarch_data_init): Likewise.
3768 * language.c (add_language): Likewise.
3769 * linespec.c (decode_line_2): Likewise.
3770 * linux-nat.c (add_to_pid_list): Likewise.
3771 (add_initial_lwp): Likewise.
3772 * linux-thread-db.c (add_thread_db_info): Likewise.
3773 (record_thread): Likewise.
3774 (info_auto_load_libthread_db): Likewise.
3775 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3776 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3777 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3778 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3779 * macrocmd.c (macro_define_command): Likewise.
3780 * macroexp.c (gather_arguments): Likewise.
3781 * macroscope.c (sal_macro_scope): Likewise.
3782 * macrotab.c (new_macro_table): Likewise.
3783 * mdebugread.c (push_parse_stack): Likewise.
3784 (parse_partial_symbols): Likewise.
3785 (parse_symbol): Likewise.
3786 (psymtab_to_symtab_1): Likewise.
3787 (new_block): Likewise.
3788 (new_psymtab): Likewise.
3789 (mdebug_build_psymtabs): Likewise.
3790 (add_pending): Likewise.
3791 (elfmdebug_build_psymtabs): Likewise.
3792 * mep-tdep.c (mep_gdbarch_init): Likewise.
3793 * mi/mi-main.c (mi_execute_command): Likewise.
3794 * mi/mi-parse.c (mi_parse_argv): Likewise.
3795 * minidebug.c (lzma_open): Likewise.
3796 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3797 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3798 * mips-tdep.c (mips_gdbarch_init): Likewise.
3799 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3800 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3801 * mt-tdep.c (mt_registers_info): Likewise.
3802 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3803 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3804 (linux_enable_pt): Likewise.
3805 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3806 (linux_xfer_osdata_processgroups): Likewise.
3807 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3808 * nto-procfs.c (procfs_meminfo): Likewise.
3809 * objc-lang.c (start_msglist): Likewise.
3810 (selectors_info): Likewise.
3811 (classes_info): Likewise.
3812 (find_methods): Likewise.
3813 * objfiles.c (allocate_objfile): Likewise.
3814 (update_section_map): Likewise.
3815 * osabi.c (gdbarch_register_osabi): Likewise.
3816 (gdbarch_register_osabi_sniffer): Likewise.
3817 * parse.c (start_arglist): Likewise.
3818 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3819 (hwdebug_insert_point): Likewise.
3820 * printcmd.c (display_command): Likewise.
3821 (ui_printf): Likewise.
3822 * procfs.c (create_procinfo): Likewise.
3823 (load_syscalls): Likewise.
3824 (proc_get_LDT_entry): Likewise.
3825 (proc_update_threads): Likewise.
3826 * prologue-value.c (make_pv_area): Likewise.
3827 (pv_area_store): Likewise.
3828 * psymtab.c (extend_psymbol_list): Likewise.
3829 (init_psymbol_list): Likewise.
3830 (allocate_psymtab): Likewise.
3831 * python/py-inferior.c (add_thread_object): Likewise.
3832 * python/py-param.c (compute_enum_values): Likewise.
3833 * python/py-value.c (valpy_call): Likewise.
3834 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3835 * python/python.c (ensure_python_env): Likewise.
3836 * record-btrace.c (record_btrace_start_replaying): Likewise.
3837 * record-full.c (record_full_reg_alloc): Likewise.
3838 (record_full_mem_alloc): Likewise.
3839 (record_full_end_alloc): Likewise.
3840 (record_full_core_xfer_partial): Likewise.
3841 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3842 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3843 * remote-notif.c (remote_notif_state_allocate): Likewise.
3844 * remote.c (demand_private_info): Likewise.
3845 (remote_notif_stop_alloc_reply): Likewise.
3846 (remote_enable_btrace): Likewise.
3847 * reverse.c (save_bookmark_command): Likewise.
3848 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3849 * rx-tdep.c (rx_gdbarch_init): Likewise.
3850 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3851 * ser-go32.c (dos_get_tty_state): Likewise.
3852 (dos_copy_tty_state): Likewise.
3853 * ser-mingw.c (ser_windows_open): Likewise.
3854 (ser_console_wait_handle): Likewise.
3855 (ser_console_get_tty_state): Likewise.
3856 (make_pipe_state): Likewise.
3857 (net_windows_open): Likewise.
3858 * ser-unix.c (hardwire_get_tty_state): Likewise.
3859 (hardwire_copy_tty_state): Likewise.
3860 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3861 * solib-dsbt.c (dsbt_current_sos): Likewise.
3862 (dsbt_relocate_main_executable): Likewise.
3863 * solib-frv.c (frv_current_sos): Likewise.
3864 (frv_relocate_main_executable): Likewise.
3865 * solib-spu.c (spu_bfd_fopen): Likewise.
3866 * solib-svr4.c (lm_info_read): Likewise.
3867 (svr4_copy_library_list): Likewise.
3868 (svr4_default_sos): Likewise.
3869 * source.c (find_source_lines): Likewise.
3870 (line_info): Likewise.
3871 (add_substitute_path_rule): Likewise.
3872 * spu-linux-nat.c (spu_bfd_open): Likewise.
3873 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3874 * stabsread.c (dbx_lookup_type): Likewise.
3875 (read_type): Likewise.
3876 (read_member_functions): Likewise.
3877 (read_struct_fields): Likewise.
3878 (read_baseclasses): Likewise.
3879 (read_args): Likewise.
3880 (_initialize_stabsread): Likewise.
3881 * stack.c (func_command): Likewise.
3882 * stap-probe.c (handle_stap_probe): Likewise.
3883 * symfile.c (addrs_section_sort): Likewise.
3884 (addr_info_make_relative): Likewise.
3885 (load_section_callback): Likewise.
3886 (add_symbol_file_command): Likewise.
3887 (init_filename_language_table): Likewise.
3888 * symtab.c (create_filename_seen_cache): Likewise.
3889 (sort_search_symbols_remove_dups): Likewise.
3890 (search_symbols): Likewise.
3891 * target.c (make_cleanup_restore_target_terminal): Likewise.
3892 * thread.c (new_thread): Likewise.
3893 (enable_thread_stack_temporaries): Likewise.
3894 (make_cleanup_restore_current_thread): Likewise.
3895 (thread_apply_all_command): Likewise.
3896 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3897 * top.c (gdb_readline_wrapper): Likewise.
3898 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3899 * tracepoint.c (trace_find_line_command): Likewise.
3900 (all_tracepoint_actions_and_cleanup): Likewise.
3901 (make_cleanup_restore_current_traceframe): Likewise.
3902 (get_uploaded_tp): Likewise.
3903 (get_uploaded_tsv): Likewise.
3904 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3905 (tui_alloc_win_info): Likewise.
3906 (tui_alloc_content): Likewise.
3907 (tui_add_content_elements): Likewise.
3908 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3909 (tui_set_disassem_content): Likewise.
3910 * ui-file.c (ui_file_new): Likewise.
3911 (stdio_file_new): Likewise.
3912 (tee_file_new): Likewise.
3913 * utils.c (make_cleanup_restore_integer): Likewise.
3914 (add_internal_problem_command): Likewise.
3915 * v850-tdep.c (v850_gdbarch_init): Likewise.
3916 * valops.c (find_oload_champ): Likewise.
3917 * value.c (allocate_value_lazy): Likewise.
3918 (record_latest_value): Likewise.
3919 (create_internalvar): Likewise.
3920 * varobj.c (install_variable): Likewise.
3921 (new_variable): Likewise.
3922 (new_root_variable): Likewise.
3923 (cppush): Likewise.
3924 (_initialize_varobj): Likewise.
3925 * windows-nat.c (windows_make_so): Likewise.
3926 * x86-nat.c (x86_add_process): Likewise.
3927 * xcoffread.c (arrange_linetable): Likewise.
3928 (allocate_include_entry): Likewise.
3929 (process_linenos): Likewise.
3930 (SYMBOL_DUP): Likewise.
3931 (xcoff_start_psymtab): Likewise.
3932 (xcoff_end_psymtab): Likewise.
3933 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3934 * xtensa-tdep.c (xtensa_register_type): Likewise.
3935 * gdbarch.c: Regenerate.
3936 * gdbarch.h: Regenerate.
3937
17d8546e
DB
39382015-08-25 Don Breazeal <donb@codesourcery.com>
3939
3940 * infrun.c (follow_exec): Re-order operations for
3941 handling follow-exec-mode "new".
3942 (handle_inferior_event_1): Assign ecs->event_thread
3943 to the current thread.
3944 * remote.c (get_remote_arch_state): Add an assertion.
3945
ba49e44b
PA
39462015-08-26 Pedro Alves <palves@redhat.com>
3947
3948 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3949
7541ab03 39502015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 3951
7541ab03 3952 PR gdb/18804
abc56d60
PA
3953 * defs.h (maybe_quit): Declare.
3954 (QUIT): Now calls maybe_quit.
3955 * event-loop.c (clear_async_signal_handler)
3956 (async_signal_handler_is_marked): New functions.
3957 * event-loop.h (async_signal_handler_is_marked)
3958 (clear_async_signal_handler): New declarations.
3959 * remote.c (remote_check_pending_interrupt): New function.
3960 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3961 longer check whether the target is async. If waiting for a stop
3962 reply, and a Ctrl-C as been sent to the target, offer to
3963 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3964 Otherwise do not disconnect and throw a quit.
3965 (_initialize_remote): Install remote_check_pending_interrupt as
3966 to_check_pending_interrupt.
3967 * target.c (target_check_pending_interrupt): New function.
3968 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3969 field.
3970 (target_check_pending_interrupt): New declaration.
3971 * utils.c (maybe_quit): New function.
3972 * target-delegates.c: Regenerate.
3973
dfe7f77c
YQ
39742015-08-25 Yao Qi <yao.qi@linaro.org>
3975
3976 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3977 Rename local variable pid to tid, and get lwpid of lwp. Update
3978 debug output.
3979
63e43d3a
PMR
39802015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3981
3982 * ada-lang.c (ada_read_var_value): Add a var_block argument
3983 and pass it to default_read_var_value.
3984 * block.c (block_static_link): New accessor.
3985 * block.h (block_static_link): Declare it.
3986 * buildsym.c (finish_block_internal): Add a static_link
3987 argument. If there is a static link, associate it to the new
3988 block.
3989 (finish_block): Add a static link argument and pass it to
3990 finish_block_internal.
3991 (end_symtab_get_static_block): Update calls to finish_block and
3992 to finish_block_internal.
3993 (end_symtab_with_blockvector): Update call to
3994 finish_block_internal.
3995 * buildsym.h: Forward-declare struct dynamic_prop.
3996 (struct context_stack): Add a static_link field.
3997 (finish_block): Add a static link argument.
3998 * c-exp.y: Remove an obsolete comment (evaluation of variables
3999 already start from the selected frame, and now they climb *up*
4000 the call stack) and propagate the block information to the
4001 produced expression.
4002 * d-exp.y: Likewise.
4003 * f-exp.y: Likewise.
4004 * go-exp.y: Likewise.
4005 * jv-exp.y: Likewise.
4006 * m2-exp.y: Likewise.
4007 * p-exp.y: Likewise.
4008 * coffread.c (coff_symtab_read): Update calls to finish_block.
4009 * dbxread.c (process_one_symbol): Likewise.
4010 * xcoffread.c (read_xcoff_symtab): Likewise.
4011 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
4012 "sym" parameter to struct block_symbol, update its uses and pass
4013 its block to calls to read_var_value.
4014 (convert_symbol_sym): Update the calls to convert_one_symbol.
4015 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
4016 call to read_var_value.
4017 * dwarf2loc.c (block_op_get_frame_base): New.
4018 (dwarf2_block_frame_base_locexpr_funcs): Implement the
4019 get_frame_base method.
4020 (dwarf2_block_frame_base_loclist_funcs): Likewise.
4021 (dwarf2locexpr_baton_eval): Add a frame argument and use it
4022 instead of the selected frame in order to evaluate the
4023 expression.
4024 (dwarf2_evaluate_property): Add a frame argument. Update call
4025 to dwarf2_locexpr_baton_eval to provide a frame in available and
4026 to handle the absence of address stack.
4027 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
4028 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
4029 declaration.
4030 (read_func_scope): Record any available static link description.
4031 Update call to finish_block.
4032 (read_lexical_block_scope): Update call to finish_block.
4033 * findvar.c (follow_static_link): New.
4034 (get_hosting_frame): New.
4035 (default_read_var_value): Add a var_block argument. Use
4036 get_hosting_frame to handle non-local references.
4037 (read_var_value): Add a var_block argument and pass it to the
4038 LA_READ_VAR_VALUE method.
4039 * gdbtypes.c (resolve_dynamic_range): Update calls to
4040 dwarf2_evaluate_property.
4041 (resolve_dynamic_type_internal): Likewise.
4042 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
4043 read_var_value, passing it the block coming from symbol lookup.
4044 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
4045 read_var_value (TODO).
4046 * infcmd.c (finish_command_continuation): Update call to
4047 read_var_value, passing it the block coming from symbol lookup.
4048 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4049 * language.h (struct language_defn): Add a var_block argument to
4050 the LA_READ_VAR_VALUE method.
4051 * objfiles.c (struct static_link_htab_entry): New.
4052 (static_link_htab_entry_hash): New.
4053 (static_link_htab_entry_eq): New.
4054 (objfile_register_static_link): New.
4055 (objfile_lookup_static_link): New.
4056 (free_objfile): Free the STATIC_LINKS hashed map if needed.
4057 * objfiles.h: Include hashtab.h.
4058 (struct objfile): Add a static_links field.
4059 (objfile_register_static_link): New.
4060 (objfile_lookup_static_link): New.
4061 * printcmd.c (print_variable_and_value): Update call to
4062 read_var_value.
4063 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4064 * python/py-frame.c (frapy_read_var): Update call to
4065 read_var_value, passing it the block coming from symbol lookup.
4066 * python/py-framefilter.c (extract_sym): Add a sym_block
4067 parameter and set the pointed value to NULL (TODO).
4068 (enumerate_args): Update call to extract_sym.
4069 (enumerate_locals): Update calls to extract_sym and to
4070 read_var_value.
4071 * python/py-symbol.c (sympy_value): Update call to
4072 read_var_value (TODO).
4073 * stack.c (read_frame_local): Update call to read_var_value.
4074 (read_frame_arg): Likewise.
4075 (return_command): Likewise.
4076 * symtab.h (struct symbol_block_ops): Add a get_frame_base
4077 method.
4078 (struct symbol): Add a block field.
4079 (SYMBOL_BLOCK): New accessor.
4080 * valops.c (value_of_variable): Remove frame/block handling and
4081 pass the block argument to read_var_value, which does this job
4082 now.
4083 (value_struct_elt_for_reference): Update calls to
4084 read_var_value.
4085 (value_of_this): Pass the block found to read_var_value.
4086 * value.h (read_var_value): Add a var_block argument.
4087 (default_read_var_value): Likewise.
4088
ed8b7b42
YQ
40892015-08-25 Yao Qi <yao.qi@linaro.org>
4090
4091 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4092 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4093 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4094
db3cb7cb
YQ
40952015-08-25 Yao Qi <yao.qi@linaro.org>
4096
4097 * Makefile.in (aarch64-liunx.o): New rule.
4098 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4099 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4100 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4101 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4102 extern.
4103 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4104 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4105 * nat/aarch64-linux.c: New file.
4106 * nat/aarch64-linux.h: New file.
4107
f6011a1c
YQ
41082015-08-25 Yao Qi <yao.qi@linaro.org>
4109
4110 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4111 lwp_arch_private_info and ptid_of_lwp.
4112
5e35436e
YQ
41132015-08-25 Yao Qi <yao.qi@linaro.org>
4114
4115 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4116 Move it to nat/aarch64-linux-hw-point.c.
4117 (debug_reg_change_callback): Likewise.
4118 (aarch64_notify_debug_reg_change): :Likewise.
4119 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4120 (aarch64_dr_update_callback_param): New.
4121 (debug_reg_change_callback): New function.
4122 (aarch64_notify_debug_reg_change): Likewise.
4123 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4124 Remove the declaration.
4125
4a8a7965
YQ
41262015-08-25 Yao Qi <yao.qi@linaro.org>
4127
4128 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4129 Call current_lwp_ptid.
4130
32a271ee
YQ
41312015-08-25 Yao Qi <yao.qi@linaro.org>
4132
4133 * aarch64-linux-nat.c (debug_reg_change_callback): Use
4134 debug_printf.
4135
5e137137
YQ
41362015-08-25 Yao Qi <yao.qi@linaro.org>
4137
4138 * aarch64-linux-nat.c (debug_reg_change_callback): Call
4139 ptid_get_pid rather than ptid_get_lwp.
4140
73b8c1fd
PA
41412015-08-24 Pedro Alves <palves@redhat.com>
4142
4143 * NEWS (New commands): Mention set/show remote
4144 multiprocess-extensions-packet.
4145 * remote.c (remote_query_supported): Only tell the server to use
4146 the multiprocess extensions if the user hasn't force-disabled them
4147 with "set remote multiprocess-extensions-packet off".
4148
4a626d0a
PA
41492015-08-24 Pedro Alves <palves@redhat.com>
4150
4151 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4152 1029a8112290f6eee9d7878a391c49db42c999bd.
4153 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4154 Regenerate.
4155 * gnulib/import/Makefile.am: Update.
4156 * gnulib/import/Makefile.in: Update.
4157 * gnulib/import/alloca.in.h: Update.
4158 * gnulib/import/basename-lgpl.c: Update.
4159 * gnulib/import/canonicalize-lgpl.c: Update.
4160 * gnulib/import/config.charset: Update.
4161 * gnulib/import/dirent.in.h: Update.
4162 * gnulib/import/dirfd.c: Update.
4163 * gnulib/import/dirname-lgpl.c: Update.
4164 * gnulib/import/dirname.h: Update.
4165 * gnulib/import/dosname.h: Update.
4166 * gnulib/import/errno.in.h: Update.
4167 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4168 * gnulib/import/extra/snippet/c++defs.h: Update.
4169 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4170 * gnulib/import/extra/update-copyright: Update.
4171 * gnulib/import/float+.h: Update.
4172 * gnulib/import/float.c: Update.
4173 * gnulib/import/float.in.h: Update.
4174 * gnulib/import/fnmatch.c: Update.
4175 * gnulib/import/fnmatch.in.h: Update.
4176 * gnulib/import/fnmatch_loop.c: Update.
4177 * gnulib/import/fpucw.h: Update.
4178 * gnulib/import/frexp.c: Update.
4179 * gnulib/import/frexpl.c: Update.
4180 * gnulib/import/gettimeofday.c: Update.
4181 * gnulib/import/inttypes.in.h: Update.
4182 * gnulib/import/isnan.c: Update.
4183 * gnulib/import/isnand-nolibm.h: Update.
4184 * gnulib/import/isnand.c: Update.
4185 * gnulib/import/isnanl-nolibm.h: Update.
4186 * gnulib/import/isnanl.c: Update.
4187 * gnulib/import/itold.c: Update.
4188 * gnulib/import/localcharset.c: Update.
4189 * gnulib/import/localcharset.h: Update.
4190 * gnulib/import/lstat.c: Update.
4191 * gnulib/import/m4/00gnulib.m4: Update.
4192 * gnulib/import/m4/absolute-header.m4: Update.
4193 * gnulib/import/m4/alloca.m4: Update.
4194 * gnulib/import/m4/canonicalize.m4: Update.
4195 * gnulib/import/m4/codeset.m4: Update.
4196 * gnulib/import/m4/configmake.m4: Update.
4197 * gnulib/import/m4/dirent_h.m4: Update.
4198 * gnulib/import/m4/dirfd.m4: Update.
4199 * gnulib/import/m4/dirname.m4: Update.
4200 * gnulib/import/m4/double-slash-root.m4: Update.
4201 * gnulib/import/m4/eealloc.m4: Update.
4202 * gnulib/import/m4/errno_h.m4: Update.
4203 * gnulib/import/m4/exponentd.m4: Update.
4204 * gnulib/import/m4/exponentl.m4: Update.
4205 * gnulib/import/m4/extensions.m4: Update.
4206 * gnulib/import/m4/extern-inline.m4: Update.
4207 * gnulib/import/m4/fcntl-o.m4: Update.
4208 * gnulib/import/m4/float_h.m4: Update.
4209 * gnulib/import/m4/fnmatch.m4: Update.
4210 * gnulib/import/m4/fpieee.m4: Update.
4211 * gnulib/import/m4/frexp.m4: Update.
4212 * gnulib/import/m4/frexpl.m4: Update.
4213 * gnulib/import/m4/gettimeofday.m4: Update.
4214 * gnulib/import/m4/glibc21.m4: Update.
4215 * gnulib/import/m4/gnulib-cache.m4: Update.
4216 * gnulib/import/m4/gnulib-common.m4: Update.
4217 * gnulib/import/m4/gnulib-comp.m4: Update.
4218 * gnulib/import/m4/gnulib-tool.m4: Update.
4219 * gnulib/import/m4/include_next.m4: Update.
4220 * gnulib/import/m4/inttypes-pri.m4: Update.
4221 * gnulib/import/m4/inttypes.m4: Update.
4222 * gnulib/import/m4/isnand.m4: Update.
4223 * gnulib/import/m4/isnanl.m4: Update.
4224 * gnulib/import/m4/largefile.m4: Update.
4225 * gnulib/import/m4/localcharset.m4: Update.
4226 * gnulib/import/m4/locale-fr.m4: Update.
4227 * gnulib/import/m4/locale-ja.m4: Update.
4228 * gnulib/import/m4/locale-zh.m4: Update.
4229 * gnulib/import/m4/longlong.m4: Update.
4230 * gnulib/import/m4/lstat.m4: Update.
4231 * gnulib/import/m4/malloc.m4: Update.
4232 * gnulib/import/m4/malloca.m4: Update.
4233 * gnulib/import/m4/math_h.m4: Update.
4234 * gnulib/import/m4/mbrtowc.m4: Update.
4235 * gnulib/import/m4/mbsinit.m4: Update.
4236 * gnulib/import/m4/mbsrtowcs.m4: Update.
4237 * gnulib/import/m4/mbstate_t.m4: Update.
4238 * gnulib/import/m4/memchr.m4: Update.
4239 * gnulib/import/m4/memmem.m4: Update.
4240 * gnulib/import/m4/mmap-anon.m4: Update.
4241 * gnulib/import/m4/multiarch.m4: Update.
4242 * gnulib/import/m4/nocrash.m4: Update.
4243 * gnulib/import/m4/off_t.m4: Update.
4244 * gnulib/import/m4/pathmax.m4: Update.
4245 * gnulib/import/m4/readlink.m4: Update.
4246 * gnulib/import/m4/rename.m4: Update.
4247 * gnulib/import/m4/rmdir.m4: Update.
4248 * gnulib/import/m4/ssize_t.m4: Update.
4249 * gnulib/import/m4/stat.m4: Update.
4250 * gnulib/import/m4/stdbool.m4: Update.
4251 * gnulib/import/m4/stddef_h.m4: Update.
4252 * gnulib/import/m4/stdint.m4: Update.
4253 * gnulib/import/m4/stdio_h.m4: Update.
4254 * gnulib/import/m4/stdlib_h.m4: Update.
4255 * gnulib/import/m4/string_h.m4: Update.
4256 * gnulib/import/m4/strstr.m4: Update.
4257 * gnulib/import/m4/strtok_r.m4: Update.
4258 * gnulib/import/m4/sys_socket_h.m4: Update.
4259 * gnulib/import/m4/sys_stat_h.m4: Update.
4260 * gnulib/import/m4/sys_time_h.m4: Update.
4261 * gnulib/import/m4/sys_types_h.m4: Update.
4262 * gnulib/import/m4/time_h.m4: Update.
4263 * gnulib/import/m4/unistd_h.m4: Update.
4264 * gnulib/import/m4/warn-on-use.m4: Update.
4265 * gnulib/import/m4/wchar_h.m4: Update.
4266 * gnulib/import/m4/wchar_t.m4: Update.
4267 * gnulib/import/m4/wctype_h.m4: Update.
4268 * gnulib/import/m4/wint_t.m4: Update.
4269 * gnulib/import/malloc.c: Update.
4270 * gnulib/import/malloca.c: Update.
4271 * gnulib/import/malloca.h: Update.
4272 * gnulib/import/math.in.h: Update.
4273 * gnulib/import/mbrtowc.c: Update.
4274 * gnulib/import/mbsinit.c: Update.
4275 * gnulib/import/mbsrtowcs-impl.h: Update.
4276 * gnulib/import/mbsrtowcs-state.c: Update.
4277 * gnulib/import/mbsrtowcs.c: Update.
4278 * gnulib/import/memchr.c: Update.
4279 * gnulib/import/memmem.c: Update.
4280 * gnulib/import/pathmax.h: Update.
4281 * gnulib/import/readlink.c: Update.
4282 * gnulib/import/ref-add.sin: Update.
4283 * gnulib/import/ref-del.sin: Update.
4284 * gnulib/import/rename.c: Update.
4285 * gnulib/import/rmdir.c: Update.
4286 * gnulib/import/same-inode.h: Update.
4287 * gnulib/import/stat.c: Update.
4288 * gnulib/import/stdbool.in.h: Update.
4289 * gnulib/import/stddef.in.h: Update.
4290 * gnulib/import/stdint.in.h: Update.
4291 * gnulib/import/stdio.c: Update.
4292 * gnulib/import/stdio.in.h: Update.
4293 * gnulib/import/stdlib.in.h: Update.
4294 * gnulib/import/str-two-way.h: Update.
4295 * gnulib/import/streq.h: Update.
4296 * gnulib/import/string.in.h: Update.
4297 * gnulib/import/stripslash.c: Update.
4298 * gnulib/import/strnlen1.c: Update.
4299 * gnulib/import/strnlen1.h: Update.
4300 * gnulib/import/strstr.c: Update.
4301 * gnulib/import/strtok_r.c: Update.
4302 * gnulib/import/sys_stat.in.h: Update.
4303 * gnulib/import/sys_time.in.h: Update.
4304 * gnulib/import/sys_types.in.h: Update.
4305 * gnulib/import/time.in.h: Update.
4306 * gnulib/import/unistd.in.h: Update.
4307 * gnulib/import/verify.h: Update.
4308 * gnulib/import/wchar.in.h: Update.
4309 * gnulib/import/wctype.in.h: Update.
4310 * gnulib/import/gettimeofday.c: New file.
4311 * gnulib/import/m4/absolute-header.m4: New file.
4312 * gnulib/import/m4/gettimeofday.m4: New file.
4313 * gnulib/import/m4/sys_socket_h.m4: New file.
4314 * gnulib/import/m4/sys_time_h.m4: New file.
4315 * gnulib/import/stdio.c: Delete file.
4316 * gnulib/import/sys_time.in.h: New file.
4317
438e1e42
PA
43182015-08-24 Pedro Alves <palves@redhat.com>
4319
4320 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4321 * common/gdb_sys_time.h: New file.
4322 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4323 * gdb_select.h: Likewise.
4324 * gdb_usleep.c: Likewise.
4325 * maint.c: Likewise.
4326 * mi/mi-main.c: Likewise.
4327 * mi/mi-parse.h: Likewise.
4328 * remote-fileio.c: Likewise.
4329 * remote-m32r-sdi.c: Likewise.
4330 * remote.c: Likewise.
4331 * ser-base.c: Likewise.
4332 * ser-pipe.c: Likewise.
4333 * ser-tcp.c: Likewise.
4334 * ser-unix.c: Likewise.
4335 * symfile.c: Likewise.
4336 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4337 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4338 * utils.c: Likewise.
4339
40e0b271
PA
43402015-08-24 Pedro Alves <palves@redhat.com>
4341
4342 * NEWS: Mention removed support for the various ROM monitors.
4343 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4344 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4345 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4346 gdb_target_obs.
4347 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4348 gdb_target_obs.
4349 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4350 dsrec.o from gdb_target_obs.
4351 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4352 from gdb_target_obs.
4353 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4354 gdb_target_obs.
4355 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4356 dink32-rom.o from gdb_target_obs.
4357 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4358 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4359 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4360 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4361
f8904751
PA
43622015-08-21 Pedro Alves <palves@redhat.com>
4363
4364 * frame.c (null_frame_id): Explicitly zero-initialize.
4365
049412e3
TT
43662015-08-21 Tom Tromey <tromey@redhat.com>
4367
4368 * dwarf2read.c (struct dwarf2_section_info): Rename field
4369 'asection' to 'section'.
4370 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4371 (dwarf2_locate_sections, dwarf2_locate_sections)
4372 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4373 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4374 (dwarf2_locate_v2_dwp_sections): Adjust.
4375
948578a9
PP
43762015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4377
4378 * top.h (gdb_in_secondary_prompt_p): Declare.
4379 * top.c (gdb_secondary_prompt_depth): Define.
4380 (gdb_in_secondary_prompt_p): Define.
4381 (gdb_readline_wrapper_cleanup): Decrement
4382 gdb_secondary_prompt_depth.
4383 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4384 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4385 are in a secondary prompt.
4386
7a8bcb88
PP
43872015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4388
4389 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4390 emit the newline.
4391
2d7711a3
GB
43922015-08-21 Gary Benson <gbenson@redhat.com>
4393
4394 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4395
4313b8c0
GB
43962015-08-21 Gary Benson <gbenson@redhat.com>
4397
4398 * target.h (struct target_ops) <to_fileio_open>: New argument
4399 warn_if_slow. Update comment. All implementations updated.
4400 (target_fileio_open_warn_if_slow): New declaration.
4401 * target.c (target_fileio_open): Renamed as...
4402 (target_fileio_open_1): ...this. New argument warn_if_slow.
4403 Pass warn_if_slow to implementation. Update debug printing.
4404 (target_fileio_open): New function.
4405 (target_fileio_open_warn_if_slow): Likewise.
4406 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4407 target_fileio_open_warn_if_slow.
4408
f36b8719
GB
44092015-08-21 Gary Benson <gbenson@redhat.com>
4410
4411 * nat/linux-namespaces.c (linux_mntns_access_fs):
4412 Do not overwrite old_chain.
4413
40045d91
MF
44142015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4415
4416 * arch/xtensa.h: New file.
4417 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4418 (ps_get_thread_area): New function.
4419 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4420 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4421 * xtensa-tdep.c (osabi.h): New #include.
4422 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4423 xtensa-specific hooks.
4424 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4425 member and move the structure to arch/xtensa.h.
4426
80152258
PA
44272015-08-21 Pedro Alves <palves@redhat.com>
4428
4429 * remote.c (struct readahead_cache): New.
4430 (struct remote_state) <readahead_cache>: New field.
4431 (remote_open_1): Invalidate the cache.
4432 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4433 functions.
4434 (remote_hostio_pwrite): Invalidate the readahead cache.
4435 (remote_hostio_pread): Rename to ...
4436 (remote_hostio_pread_vFile): ... this.
4437 (remote_hostio_pread_from_cache): New function.
4438 (remote_hostio_pread): Reimplement.
4439 (remote_hostio_close): Invalidate the readahead cache.
4440
88fc5eb7
MC
44412015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4442
4443 PR build/18843
4444 * procfs.c: Include "filestuff.h".
4445
6f1cb6ea
PP
44462015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4447
4448 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4449 curch.
4450 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4451 cur_line or curch, instead call wmove().
4452 (init_win_info) [CMD_WIN]: Likewise.
4453 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4454 instead call getcury().
4455 (tui_redisplay_readline): Don't set cur_line or curch.
4456 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4457 getcury().
4458 (tui_cont_sig): Remove call to wmove.
4459 (tui_getc): Don't read cur_line or curch, instead call getcury()
4460 or getyx(). Don't set curch.
4461 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4462 set cur_line or curch. Always move cursor to (0,0).
4463
221e1a37
PA
44642015-08-20 Pedro Alves <palves@redhat.com>
4465
4466 * infrun.c (print_target_wait_results): Make extern.
4467 * infrun.h (print_target_wait_results): Declare.
4468 * remote.c (set_stop_requested_callback): Delete.
4469 (process_initial_stop_replies): New function.
4470 (remote_start_remote): Use it.
4471 (stop_reply_queue_length): New function.
4472
40e3ad0e
PA
44732015-08-20 Pedro Alves <palves@redhat.com>
4474
4475 * dwarf2read.c (process_full_comp_unit): To tell whether
4476 start_subfile managed to deduce a language, test for
4477 language_unknown instead of language_c.
4478
af39b327
PMR
44792015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4480
4481 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4482 matches attributes.
4483
7d45c7c3
KB
44842015-08-19 Kevin Buettner <kevinb@redhat.com>
4485
4486 * dwarf2read.c (dwarf2_string_attr): New function.
4487 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4488 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4489 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4490 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4491 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4492
4d6cceb4
DE
44932015-08-18 Doug Evans <dje@google.com>
4494 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4495
4496 PR mi/18833
4497 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4498 if MI-like.
4499 * mi/mi-out.c: #include "vec.h".
4500 (ui_filep): New type.
4501 (DEV_VEC_P (ui_filep)): New type.
4502 (struct ui_out_data) <buffer, original_buffer>: Delete.
4503 (struct ui_out_data) <streams>: New member.
4504 (mi_ui_out_impl): Add data_destroy field.
4505 (mi_field_string, mi_field_fmt): Update.
4506 (mi_flush, mi_redirect, field_separator): Update.
4507 (mi_open, mi_close): Update.
4508 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4509 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4510 (mi_out_new): Call mi_out_data_ctor.
4511
26d56a93
SL
45122015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4513
4514 * remote.c (strprefix): New.
4515 (remote_parse_stop_reply): Use strprefix instead of strncmp
4516 to ensure exact match of keyword.
4517
566f5e3b
AB
45182015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4519
4520 * gdb_bfd.c (debug_bfd_cache): New variable.
4521 (show_bfd_cache_debug): New function.
4522 (gdb_bfd_open): Add debug logging.
4523 (gdb_bfd_ref): Likewise.
4524 (gdb_bfd_unref): Likewise.
4525 (_initialize_gdb_bfd): Add new set/show command.
4526 * NEWS: Mention new command.
4527
18989b3c
AB
45282015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4529
4530 * gdb_bfd.c (bfd_sharing): New variable.
4531 (show_bfd_sharing): New function.
4532 (gdb_bfd_open): Check bfd_sharing variable.
4533 (_initialize_gdb_bfd): Add new set/show command.
4534 * NEWS: Mention new command.
4535
c04fe68f
AB
45362015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4537
4538 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4539 field.
4540 (struct gdb_bfd_cache_search): Likewise.
4541 (eq_bfd): Compare the size, inode, and device id fields.
4542 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4543 (gdb_bfd_ref): Likewise.
4544 (gdb_bfd_unref): Likewise.
4545
b2a33439
PA
45462015-08-18 Pedro Alves <palves@redhat.com>
4547
4548 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4549 target implements to_always_non_stop_p, call it.
4550 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4551 (x86_linux_create_target): Install it as to_always_non_stop_p
4552 method.
4553
71b57e37
DE
45542015-08-17 Doug Evans <dje@google.com>
4555
4556 * ui-out.c (default_ui_out_impl): Add comment.
4557
7f3706eb
IB
45582015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4559
4560 * d-exp.y (type_aggregate_p): New function.
4561 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4562 (classify_inner_name): Likewise.
4563 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4564
1762568f
DE
45652015-08-15 Doug Evans <xdje42@gmail.com>
4566
4567 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4568 updated.
4569 (add_psymbol_to_list): Ditto.
4570
8763cede
DE
45712015-08-15 Doug Evans <xdje42@gmail.com>
4572
4573 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4574 updated. Call end_psymtab_common.
4575 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4576 end_psymtab_common.
4577 (build_type_psymtabs_reader): Ditto.
4578 * psympriv.h (sort_pst_symbols): Delete.
4579 (end_psymtab_common): Declare.
4580 * psymtab.c (sort_pst_symbols): Make static.
4581 (end_psymtab_common): New function.
4582 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4583
51cdc993
DE
45842015-08-15 Doug Evans <xdje42@gmail.com>
4585
4586 * defs.h (LANGUAGE_BITS): Define.
4587 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4588 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4589 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4590 (minimal_symbol_type): Add nr_minsym_types.
4591 (MINSYM_TYPE_BITS): Define.
4592 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4593 (domain_enum_tag): Add NR_DOMAINS.
4594 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4595 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4596
95cf5869
DE
45972015-08-15 Doug Evans <xdje42@gmail.com>
4598
4599 * objfiles.h: Whitespace cleanup.
4600 * psympriv.h: Whitespace cleanup.
4601 * psymtab.c: Whitespace/coding convention cleanup.
4602
e3ae3c43
PP
46032015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4604
4605 * inferior.c (detach_inferior_command): Don't call
4606 any_thread_of_process when pid is 0.
4607 (kill_inferior_command): Likewise.
4608
6ff0ba5f
DE
46092015-08-14 Doug Evans <xdje42@gmail.com>
4610
4611 PR gdb/11833
4612 * NEWS: Document new /s modifier for the disassemble command.
4613 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4614 (_initialize_cli_cmds): Update online docs of disassemble command.
4615 * disasm.c: #include "source.h".
4616 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4617 All uses updated.
4618 (dis_line_entry): New struct.
4619 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4620 (allocate_dis_line_table): New functions.
4621 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4622 (dump_insns): New arg end_pc. All callers updated.
4623 (do_mixed_source_and_assembly_deprecated): Renamed from
4624 do_mixed_source_and_assembly. All callers updated.
4625 (do_mixed_source_and_assembly): New function.
4626 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4627 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4628 DISASSEMBLY_SOURCE. All uses updated.
4629 (DISASSEMBLY_SOURCE): New macro.
4630 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4631
b56ccc20
KS
46322015-08-14 Keith Seitz <keiths@redhat.com>
4633
4634 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4635 `typename' to `type_name' to avoid C++ reserved word.
4636
ebdad8fc
KS
46372015-08-14 Keith Seitz <keiths@redhat.com>
4638
4639 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4640 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4641 silence ARI errors.
4642
c0fe2ae7
IB
46432015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4644
4645 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4646 xstrprintf instead of malloc and sprintf.
4647 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4648 (lex_one_token): Likewise.
4649
a738da3a
MF
46502015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4651
4652 * solib-svr4.c (read_program_header): Add base_addr argument to
4653 report the runtime address of the segment.
4654 (find_program_interpreter): Update read_program_header call to pass
4655 a NULL pointer for the new argument.
4656 (scan_dyntag): Add ptr_addr argument to report the runtime address
4657 of the tag payload.
4658 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4659 read_program_header to get the base address of the dynamic segment.
4660 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4661 read_program_header.
4662 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4663
f8edc4ff
MF
46642015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4665
4666 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4667
444c1ed8
IB
46682015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4669
4670 * d-exp.y (%union): Add voidval.
4671 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4672 name in the lexing stage.
4673 (PostfixExpression): Move symbol completion handling in grammar here
4674 from PrimaryExpression.
4675 (PrimaryExpression): Move routines to handle resolving identifier
4676 tokens in the grammar here from push_expression_name.
4677 (IdentifierExp): Remove the handling of alternating '.' and identifier
4678 tokens.
4679 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4680 (BasicType): Remove C-style typename rules.
4681 (d_type_from_name, d_module_from_name, push_variable)
4682 (push_fieldnames, push_type_name, push_module_name)
4683 (push_expression_name): Remove.
4684 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4685 (token_and_value): New type.
4686 (token_fifo, popping, name_obstack): New globals.
4687 (classify_name): New function.
4688 (classify_inner_name): Likewise.
4689 (yylex): Likewise.
4690 (d_parse): Initialize token_fifo, popping and name_obstack.
4691
bc7c9fab
IB
46922015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4693
4694 * Makefile.in (SFILES): Add d-namespace.c.
4695 (COMMON_OBS): Add d-namespace.o.
4696 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4697 la_lookup_symbol_nonlocal callback function pointer.
4698 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4699 (d_lookup_nested_symbol): New declaration.
4700 * d-namespace.c: New file.
4701
3207396b
PA
47022015-08-13 Pedro Alves <palves@redhat.com>
4703
4704 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4705 cleanup after the decref cleanup, not before.
4706
5d8c3ed3
PMR
47072015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4708
4709 * ada-lang.c: Include namespace.h
4710 (aux_add_nonlocal_symbols): Fix a function name in comment.
4711 (ada_add_block_renamings): New.
4712 (add_nonlocal_symbols): Add global renamings handling.
4713 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4714 to...
4715 (ada_add_all_symbols): ... this new function.
4716 (ada_add_block_symbols): Try to match the input name against the
4717 "using directives list", perform a recursive symbol lookup on
4718 the matched declarations.
4719 * block.h (struct block): Move the_namespace to top-level as
4720 namespace_info. Remove the language_specific field.
4721 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4722 * buildsym.h (using_directives): Rename into...
4723 (local_using_directives): ... this.
4724 (global_using_directives): New.
4725 (struct context_stack): Rename the using_directives field into
4726 local_using_directives.
4727 * buildsym.c (finish_block_internal): Deal with the proper
4728 using directives repository (local or global).
4729 (prepare_for_building): Reset local_using_directives. Assert
4730 that there is no pending global using directive.
4731 (reset_symtab_globals): Reset global_using_directives and
4732 local_using_directives.
4733 (end_symtab_get_static_block): Don't ignore symtabs that have
4734 only using directives.
4735 (push_context): Update references to local_using_directives.
4736 (buildsym_init): Do not reset using_directives.
4737 * cp-support.c: Include namespace.h.
4738 * cp-support.h (struct using_direct): Move to namespace.h.
4739 (cp_add_using_directives): Move to namespace.h.
4740 * cp-namespace.c: Include namespace.h
4741 (cp_add_using_directive): Move to namespace.c, rename it to
4742 add_using_directive, add a "using_directives" argument and use
4743 it as the pending using directives repository. All callers
4744 updated.
4745 * dwarf2read.c (using_directives): New.
4746 (read_import_statement): Call using_directives.
4747 (read_func_scope): Update references to local_using_directives.
4748 (read_lexical_block_scope): Likewise.
4749 (read_namespace): Update the heading comment, call
4750 using_directives.
4751 * namespace.h: New file.
4752 * namespace.c: New file.
4753 * Makefile.in (SFILES): Add namespace.c.
4754 (COMMON_OBS): Add namespace.o
4755
4dafcdeb
JB
47562015-08-12 Joel Brobecker <brobecker@adacore.com>
4757
4758 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4759 compute RETADDR.
4760
67994074
KS
47612015-08-12 Keith Seitz <keiths@redhat.com>
4762
4763 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4764 reserved C++ keyword "explicit" to "explicit_loc".
4765 * breakpoint.c (create_overlay_event_breakpoint)
4766 (create_longjmp_master_breakpoint)
4767 (create_std_terminate_master_breakpoint)
4768 (create_exception_master_breakpoint, update_static_tracepoint):
4769 Rename reserved C++ keyword "explicit" to "explicit_loc".
4770 * completer.c (collect_explicit_location_matches)
4771 (explicit_location_completer): Rename reserved C++ keyword
4772 "explicit" to "explicit_loc".
4773 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4774 (canonicalize_linespec, create_sals_line_offset)
4775 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4776 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4777 "explicit" to "explicit_loc".
4778 * location.c (struct event_location) <explicit>: Rename to
4779 "explicit_loc".
4780 (initialize_explicit_location, new_explicit_location)
4781 (explicit_location_to_string_internal, explicit_location_to_linespec):
4782 Rename reserved C++ keyword "explicit" to "explicit_loc".
4783 * location.h (explicit_location_to_string)
4784 (explicit_location_to_linespec, initialize_explicit_location)
4785 (new_explicit_location): Rename reserved C++ keyword "explicit"
4786 to "explicit_loc".
4787 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4788 keyword "explicit" to "explicit_loc".
4789
59ecaff3
KS
47902015-08-12 Keith Seitz <keiths@redhat.com>
4791
4792 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4793 and only call decode_line_1 when it is non-NULL.
4794
244558af
LM
47952015-08-12 Luis Machado <lgustavo@codesourcery.com>
4796
4797 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4798 location address is not meaningful.
4799 (breakpoint_address_is_meaningful): Update comment.
4800
629500fa
KS
48012015-08-11 Keith Seitz <keiths@redhat.com>
4802
4803 * NEWS: Mention explicit locations.
4804 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4805 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4806 (_initialize_breakpoint): Update documentation for
4807 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4808
eb8c4e2e
KS
48092015-08-11 Keith Seitz <keiths@redhat.com>
4810
4811 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4812 explicit locations, options "--source", "--function",
4813 "--label", and "--line".
4814
87f0e720
KS
48152015-08-11 Keith Seitz <keiths@redhat.com>
4816
4817 * completer.c: Include location.h.
4818 (enum match_type): New enum.
4819 (location_completer): Rename to ...
4820 (linespec_completer): ... this.
4821 (collect_explicit_location_matches, backup_text_ptr)
4822 (explicit_location_completer): New functions.
4823 (location_completer): "New" function; handle linespec
4824 and explicit location completions.
4825 (complete_line_internal): Remove all location completer-specific
4826 handling.
4827 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4828 (find_toplevel_char): Export.
4829 (linespec_parse_line_offset): Export.
4830 Issue error if STRING is not numerical.
4831 (gdb_get_linespec_parser_quote_characters): New function.
4832 * linespec.h (linespec_parse_line_offset): Declare.
4833 (get_gdb_linespec_parser_quote_characters): Declare.
4834 (is_ada_operator): Declare.
4835 (find_toplevel_char): Declare.
4836 (linespec_lexer_lex_keyword): Declare.
4837 * location.c (explicit_to_event_location): New function.
4838 (explicit_location_lex_one): New function.
4839 (string_to_explicit_location): New function.
4840 (string_to_event_location): Handle explicit locations.
4841 * location.h (explicit_to_event_location): Declare.
4842 (string_to_explicit_location): Declare.
4843
00e52e53
KS
48442015-08-11 Keith Seitz <keiths@redhat.com>
4845
4846 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4847 linespec into explicit location.
4848 * breakpoint.c (create_overlay_breakpoint)
4849 (create_longjmp_master_breakpoint)
4850 (create_std_terminate_master_breakpoint)
4851 (create_exception_master_breakpoint): Convert linespec into explicit
4852 location.
4853 (update_static_tracepoint): Convert linespec into explicit location.
4854 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4855 location.h.
4856 (struct linespec) <expression, expr_pc, source_filename>
4857 <function_name, label_name, line_offset>: Replace with ...
4858 <explicit>: ... this.
4859 <is_linespec>: New member.
4860 (PARSER_EXPLICIT): New accessor macro.
4861 (undefined_label_error): New function.
4862 (source_file_not_found_error): New function.
4863 (linespec_parse_basic): The parser result is now an explicit location.
4864 Use PARSER_EXPLICIT to access it.
4865 Use undefined_label_error.
4866 (canonicalize_linespec): Convert canonical linespec into explicit
4867 location.
4868 Move string representation of location to explicit_location_to_linespec
4869 and use it and explicit_location_to_string to save string
4870 representations of the canonical location.
4871 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4872 explicit location. Update all references.
4873 (convert_explicit_location_to_sals): New function.
4874 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4875 result's explicit location.
4876 (linespec_state_constructor): Initialize is_linespec.
4877 Use PARSER_EXPLICIT.
4878 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4879 result.
4880 (event_location_to_sals): For linespec locations, set is_linespec.
4881 Handle explicit locations.
4882 (decode_objc): 'ls' contains an explicit location now. Update all
4883 references.
4884 (symtabs_from_filename): Use source_file_not_found_error.
4885 * location.c (struct event_location.u) <explicit>: New member.
4886 (initialize_explicit_location): New function.
4887 (initialize_event_location): Initialize explicit locations.
4888 (new_explicit_location, get_explicit_location)
4889 (get_explicit_location_const): New functions.
4890 (explicit_to_string_internal): New function; most of contents moved
4891 from canonicalize_linespec.
4892 (explicit_location_to_string): New function.
4893 (explicit_location_to_linespec): New function.
4894 (copy_event_location, delete_event_location)
4895 (event_location_to_string_const, event_location_empty_p): Handle
4896 explicit locations.
4897 * location.h (enum offset_relative_sign, struct line_offset): Move
4898 here from linespec.h.
4899 (enum event_location_type): Add EXPLICIT_LOCATION.
4900 (struct explicit_location): New structure.
4901 (explicit_location_to_string): Declare.
4902 (explicit_location_to_linespec): Declare.
4903 (new_explicit_location, get_explicit_locationp
4904 (get_explicit_location_const, initialize_explicit_location): Declare.
4905
5b56227b
KS
49062015-08-11 Keith Seitz <keiths@redhat.com>
4907
4908 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4909 linespec for stap probe to probe location.
4910 * breakpoint.c (create_longjmp_master_breakpoint)
4911 (create_exception_master_breakpoint): Likewise.
4912 (break_command_1): Remove local variable `arg_cp'.
4913 Check location type to set appropriate breakpoint ops methods.
4914 (trace_command): Likewise.
4915 * linespec.c (event_location_to_sals): Assert on probe locations.
4916 * location.c (EL_PROBE): Add macro definition.
4917 (new_probe_location, get_probe_location): New functions.
4918 (copy_event_location, delete_event_location, event_location_to_string)
4919 (string_to_event_location, event_location_empty_p): Handle probe
4920 locations.
4921 * location.h (enum event_location_type): Add PROBE_LOCATION.
4922 (new_probe_location, get_probe_location): Declare.
4923 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4924 Convert linespec into probe location.
4925
a06efdd6
KS
49262015-08-11 Keith Seitz <keiths@redhat.com>
4927
4928 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4929 Convert linespec to address location.
4930 * linespec.c (canonicalize_linespec): Do not handle address
4931 locations here.
4932 (convert_address_location_to_sals): New function; contents moved
4933 from ...
4934 (convert_linespc_to_sals): ... here.
4935 (parse_linespec): Remove address locations from linespec grammar.
4936 Remove handling of address locations.
4937 (linespec_lex_to_end): Remove handling of address linespecs.
4938 (event_location_to_sals): Handle ADDRESS_LOCATION.
4939 (linespec_expression_to_pc): Export.
4940 * linespec.h (linespec_expression_to_pc): Add declaration.
4941 * location.c (struct event_location.u) <address>: New member.
4942 (new_address_location, get_address_location): New functions.
4943 (copy_event_location, delete_event_location, event_location_to_string)
4944 (string_to_event_location, event_location_empty_p): Handle address
4945 locations.
4946 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4947 (new_address_location, get_address_location): Declare.
4948 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4949 to address location.
4950 * spu-tdep.c (spu_catch_start): Likewise.
4951
f00aae0f
KS
49522015-08-11 Keith Seitz <keiths@redhat.com>
4953
4954 * ax-gdb.c: Include location.h.
4955 (agent_command_1) Use linespec location instead of address
4956 string.
4957 * break-catch-throw.c: Include location.h.
4958 (re_set_exception_catchpoint): Use linespec locations instead
4959 of address strings.
4960 * breakpoint.c: Include location.h.
4961 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4962 (create_std_terminate_master_breakpoint)
4963 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4964 Use linespec location instead of address string.
4965 (print_breakpoint_location): Use locations and
4966 event_location_to_string.
4967 Print extra_string for pending locations for non-MI streams.
4968 (print_one_breakpoint_location): Use locations and
4969 event_location_to_string.
4970 (init_raw_breakpoint_without_location): Initialize b->location.
4971 (create_thread_event_breakpoint): Use linespec location instead of
4972 address string.
4973 (init_breakpoint_sal): Likewise.
4974 Only save extra_string if it is non-NULL and not the empty string.
4975 Use event_location_to_string instead of `addr_string'.
4976 Constify `p' and `endp'.
4977 Use skip_spaces_const/skip_space_const instead of non-const versions.
4978 Copy the location into the breakpoint.
4979 If LOCATION is NULL, save the breakpoint address as a linespec location
4980 instead of an address string.
4981 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4982 event_location. All uses updated.
4983 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4984 (parse_breakpoint_sals): Use locations instead of address strings.
4985 Remove check for empty linespec with conditional.
4986 Refactor.
4987 (decode_static_tracepoint_spec): Make argument const and update
4988 function.
4989 (create_breakpoint): Change `arg' to a struct event_location and
4990 rename.
4991 Remove `copy_arg' and `addr_start'.
4992 If EXTRA_STRING is empty, set it to NULL.
4993 Don't populate `canonical' for pending breakpoints.
4994 Pass `extra_string' to find_condition_and_thread.
4995 Clear `extra_string' if `rest' was NULL.
4996 Do not error with "garbage after location" if setting a dprintf
4997 breakpoint.
4998 Copy the location into the breakpoint instead of an address string.
4999 (break_command_1): Use string_to_event_location and pass this to
5000 create_breakpoint instead of an address string.
5001 Check against `arg_cp' for a probe linespec.
5002 (dprintf_command): Use string_to_event_location and pass this to
5003 create_breakpoint instead of an address string.
5004 Throw an exception if no format string was specified.
5005 (print_recreate_ranged_breakpoint): Use event_location_to_string
5006 instead of address strings.
5007 (break_range_command, until_break_command)
5008 (init_ada_exception_breakpoint): Use locations instead
5009 of address strings.
5010 (say_where): Print out extra_string for pending locations.
5011 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
5012 the breakpoint.
5013 (base_breakpoint_create_sals_from_location): Use struct event_location
5014 instead of address string.
5015 Remove `addr_start' and `copy_arg' parameters.
5016 (base_breakpoint_decode_location): Use struct event_location instead of
5017 address string.
5018 (bkpt_re_set): Use locations instead of address strings.
5019 Use event_location_empty_p to check for unset location.
5020 (bkpt_print_recreate): Use event_location_to_string instead of
5021 an address string.
5022 Print out extra_string for pending locations.
5023 (bkpt_create_sals_from_location, bkpt_decode_location)
5024 (bkpt_probe_create_sals_from_location): Use struct event_location
5025 instead of address string.
5026 (bkpt_probe_decode_location): Use struct event_location instead of
5027 address string.
5028 (tracepoint_print_recreate): Use event_location_to_string to
5029 recreate the tracepoint.
5030 (tracepoint_create_sals_from_location, tracepoint_decode_location)
5031 (tracepoint_probe_create_sals_from_location)
5032 (tracepoint_probe_decode_location): Use struct event_location
5033 instead of address string.
5034 (dprintf_print_recreate): Use event_location_to_string to recreate
5035 the dprintf.
5036 (dprintf_re_set): Remove check for valid/missing format string.
5037 (strace_marker_create_sals_from_location)
5038 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
5039 (update_static_tracepoint): Use struct event_location instead of
5040 address string.
5041 (location_to_sals): Likewise.
5042 Pass `extra_string' to find_condition_and_thread.
5043 For newly resolved pending breakpoint locations, clear the location's
5044 string representation.
5045 Assert that the breakpoint's condition string is NULL when
5046 condition_not_parsed.
5047 (breakpoint_re_set_default, create_sals_from_location_default)
5048 (decode_location_default, trace_command, ftrace_command)
5049 (strace_command, create_tracepoint_from_upload): Use locations
5050 instead of address strings.
5051 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
5052 Use struct event_location instead of address string.
5053 Update all uses.
5054 <decode_location>: Likewise.
5055 (struct breakpoint) <addr_string>: Change to struct event_location
5056 and rename `location'.
5057 <addr_string_range_end>: Change to struct event_location and rename
5058 `location_range_end'.
5059 (create_breakpoint): Use struct event_location instead of address
5060 string.
5061 * cli/cli-cmds.c: Include location.h.
5062 (edit_command, list_command): Use locations instead of address strings.
5063 * elfread.c: Include location.h.
5064 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
5065 * guile/scm-breakpoint.c: Include location.h.
5066 (bpscm_print_breakpoint_smob): Use event_location_to_string.
5067 (gdbscm_register_breakpoint): Use locations instead of address
5068 strings.
5069 * linespec.c: Include location.h.
5070 (struct ls_parser) <stream>: Change to const char *.
5071 (PARSER_STREAM): Update.
5072 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5073 keywords must be followed by whitespace.
5074 (canonicalize_linespec): Save a linespec location into `canonical'.
5075 Save a canonical linespec into `canonical'.
5076 (parse_linespec): Change `argptr' to const char * and rename `arg'.
5077 All uses updated.
5078 Update function description.
5079 (linespec_parser_new): Initialize `parser'.
5080 Update initialization of parsing stream.
5081 (event_location_to_sals): New function.
5082 (decode_line_full): Change `argptr' to a struct event_location and
5083 rename it `location'.
5084 Use locations instead of address strings.
5085 Call event_location_to_sals instead of parse_linespec.
5086 (decode_line_1): Likewise.
5087 (decode_line_with_current_source, decode_line_with_last_displayed)
5088 Use locations instead of address strings.
5089 (decode_objc): Likewise.
5090 Change `argptr' to const char * and rename `arg'.
5091 (destroy_linespec_result): Delete the linespec result's location
5092 instead of freeing the address string.
5093 * linespec.h (struct linespec_result) <addr_string>: Change to
5094 struct event_location and rename to ...
5095 <location>: ... this.
5096 (decode_line_1, decode_line_full): Change `argptr' to struct
5097 event_location. All callers updated.
5098 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5099 (mi_cmd_break_insert_1): Use locations instead of address strings.
5100 Throw an error if there was "garbage" at the end of the specified
5101 linespec.
5102 * probe.c: Include location.h.
5103 (parse_probes): Change `argptr' to struct event_location.
5104 Use event locations instead of address strings.
5105 * probe.h (parse_probes): Change `argptr' to struct event_location.
5106 * python/py-breakpoint.c: Include location.h.
5107 (bppy_get_location): Constify local variable `str'.
5108 Use event_location_to_string.
5109 (bppy_init): Use locations instead of address strings.
5110 * python/py-finishbreakpoint.c: Include location.h.
5111 (bpfinishpy_init): Remove local variable `addr_str'.
5112 Use locations instead of address strings.
5113 * python/python.c: Include location.h.
5114 (gdbpy_decode_line): Use locations instead of address strings.
5115 * remote.c: Include location.h.
5116 (remote_download_tracepoint): Use locations instead of address
5117 strings.
5118 * spu-tdep.c: Include location.h.
5119 (spu_catch_start): Remove local variable `buf'.
5120 Use locations instead of address strings.
5121 * tracepoint.c: Include location.h.
5122 (scope_info): Use locations instead of address strings.
5123 (encode_source_string): Constify parameter `src'.
5124 * tracepoint.h (encode_source_string): Likewise.
5125
c7c1b3e9
KS
51262015-08-11 Keith Seitz <keiths@redhat.com>
5127
5128 * Makefile.in (SFILES): Add location.c.
5129 (HFILES_NO_SRCDIR): Add location.h.
5130 (COMMON_OBS): Add location.o.
5131 * linespec.c (linespec_lex_to_end): New function.
5132 * linespec.h (linespec_lex_to_end): Declare.
5133 * location.c: New file.
5134 * location.h: New file.
5135
5f700d83
KS
51362015-08-11 Keith Seitz <keiths@redhat.com>
5137
5138 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5139 Renamed to create_sals_from_location.
5140 <decode_linespec>: Renamed to decode_location.
5141 Update all callers.
5142 * breakpoint.c (create_sals_from_address_default): Renamed to ...
5143 (create_sals_from_location_default): ... this.
5144 (addr_string_to_sals): Renamed to ...
5145 (location_to_sals): ... this.
5146 (decode_linespec_default): Renamed to ...
5147 (decode_location_default): ... this.
5148 (base_breakpoint_create_sals_from_address): Renamed to ...
5149 (base_breakpoint_create_sals_from_location): ... this.
5150 (bkpt_create_sals_from_address): Renamed to ...
5151 (bkpt_create_sals_from_location): ... this.
5152 (bkpt_decode_linespec): Renamed to ...
5153 (bkpt_decode_location): ... this.
5154 (bkpt_probe_create_sals_from_address): Renamed to ...
5155 (bkpt_probe_create_sals_from_location): ... this.
5156 (tracepoint_create_sals_from_address): Renamed to ...
5157 (tracepoint_create_sals_from_location): ... this.
5158 (tracepoint_decode_linespec): Renamed to ...
5159 (tracepoint_decode_location): ... this.
5160 (tracepoint_probe_create_sals_from_address): Renamed to ...
5161 (tracepoint_probe_create_sals_from_location): ... this.
5162 (tracepoint_probe_decode_linespec): Renamed to ...
5163 (tracepoint_probe_decode_location): ... this.
5164 (strace_marker_create_sals_from_address): Renamed to ...
5165 (strace_marker_create_sals_from_location): ... this.
5166 (decode_linespec_default): Renamed to ...
5167 (decode_location_default): ... this.
5168
e27852be
DE
51692015-08-10 Doug Evans <dje@google.com>
5170 Keith Seitz <keiths@redhat.com>
5171
5172 PR gdb/17960
5173 * symtab.c (make_file_symbol_completion_list_1): Renamed from
5174 make_file_symbol_completion_list and made static.
5175 (make_file_symbol_completion_list): New function.
80af41e0 5176
fd7dcb94
JB
51772015-08-10 Joel Brobecker <brobecker@adacore.com>
5178
5179 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5180 trailing new-line at end of warning message.
5181 (proceed): Add i18n marker to error messages.
5182
f12899e9
PA
51832015-08-07 Pedro Alves <palves@redhat.com>
5184
5185 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5186
5ac21343
PA
51872015-08-07 Pedro Alves <palves@redhat.com>
5188
5189 * s390-linux-tdep.c (is_non_branch_ril)
5190 (s390_displaced_step_copy_insn): New functions.
5191 (s390_displaced_step_fixup): Update comment.
5192 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5193 gdbarch_displaced_step_copy_insn hook.
5194
7f03bd92
PA
51952015-08-07 Pedro Alves <palves@redhat.com>
5196
5197 * infrun.c (displaced_step_prepare_throw): Return -1 if
5198 gdbarch_displaced_step_copy_insn returns NULL. Update intro
5199 comment.
5200 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5201 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5202 in file.
5203 (ppc_displaced_step_copy_insn): New function.
5204 (ppc_displaced_step_fixup): Update comment.
5205 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5206 gdbarch_displaced_step_copy_insn hook.
5207 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5208 NULL return.
5209 * gdbarch.h: Regenerate.
5210
3fc8eb30
PA
52112015-08-07 Pedro Alves <palves@redhat.com>
5212
5213 * inferior.h (struct inferior) <displaced_stepping_failed>: New
5214 field.
5215 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5216 Return false if dispaced stepping failed before.
5217 (resume): Pass the current inferior to
5218 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
5219 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
5220 displaced_stepping_failed flag, and fall back to an in-line
5221 step-over.
5222
bfedc46a
PA
52232015-08-07 Pedro Alves <palves@redhat.com>
5224
5225 * darwin-nat.c (darwin_stop): Rename to ...
5226 (darwin_interrupt): ... this.
5227 (_initialize_darwin_inferior): Adjust.
5228 * gnu-nat.c (gnu_stop): Delete.
5229 (gnu_target): Don't install gnu_stop.
5230 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5231 (inf_ptrace_interrupt): ... this.
5232 (inf_ptrace_target): Adjust.
5233 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5234 target_stop.
5235 * linux-nat (linux_nat_stop): Rename to ...
5236 (linux_nat_interrupt): ... this.
5237 (linux_nat_stop): Reimplement.
5238 (linux_nat_add_target): Install linux_nat_interrupt.
5239 * nto-procfs.c (nto_interrupt_twice): Rename to ...
5240 (nto_handle_sigint_twice): ... this.
5241 (nto_interrupt): Rename to ...
5242 (nto_handle_sigint): ... this. Call target_interrupt instead of
5243 target_stop.
5244 (procfs_wait): Adjust.
5245 (procfs_stop): Rename to ...
5246 (procfs_interrupt): ... this.
5247 (init_procfs_targets): Adjust.
5248 * procfs.c (procfs_stop): Rename to ...
5249 (procfs_interrupt): ... this.
5250 (procfs_target): Adjust.
5251 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5252 (m32r_interrupt): ... this.
5253 (init_m32r_ops): Adjust.
5254 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5255 (gdbsim_interrupt_inferior): ... this.
5256 (gdbsim_stop): Rename to ...
5257 (gdbsim_interrupt): ... this.
5258 (gdbsim_cntrl_c): Adjust.
5259 (init_gdbsim_ops): Adjust.
5260 * remote.c (sync_remote_interrupt): Adjust comments.
5261 (remote_stop_as): Rename to ...
5262 (remote_interrupt_as): ... this.
5263 (remote_stop): Adjust comment.
5264 (remote_interrupt): New function.
5265 (init_remote_ops): Install remote_interrupt.
5266 * target.c (target_interrupt): New function.
5267 * target.h (struct target_ops) <to_interrupt>: New field.
5268 (target_interrupt): New declaration.
5269 * windows-nat.c (windows_stop): Rename to ...
5270 (windows_interrupt): ... this.
5271 * target-delegates.c: Regenerate.
5272
d55007b5
PA
52732015-08-07 Pedro Alves <palves@redhat.com>
5274
5275 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5276 threads" as alternative to "switching back to stepped thread".
5277
fbea99ea
PA
52782015-08-07 Pedro Alves <palves@redhat.com>
5279
5280 * NEWS: Mention "maint set/show target-non-stop".
5281 * breakpoint.c (update_global_location_list): Check
5282 target_is_non_stop_p instead of non_stop.
5283 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5284 * infrun.c (show_can_use_displaced_stepping)
5285 (can_use_displaced_stepping_p, start_step_over_inferior):
5286 Likewise.
5287 (internal_resume_ptid): New function.
5288 (resume): Use it.
5289 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5290 all-stop mode but the target is always in non-stop mode, start all
5291 the other threads that are implicitly resumed too.
5292 (for_each_just_stopped_thread, fetch_inferior_event)
5293 (adjust_pc_after_break, stop_all_threads): Check
5294 target_is_non_stop_p instead of non_stop.
5295 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5296 with the target always in non-stop mode.
5297 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5298 instead of non_stop.
5299 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5300 instead of non_stop.
5301 (keep_going_stepped_thread): Use internal_resume_ptid.
5302 (stop_waiting): If in all-stop mode, and the target is in non-stop
5303 mode, stop all threads.
5304 (keep_going_pass): Likewise, when starting a new in-line step-over
5305 sequence.
5306 * linux-nat.c (get_pending_status, select_event_lwp)
5307 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5308 target_is_non_stop_p instead of non_stop.
5309 (linux_nat_always_non_stop_p): New function.
5310 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5311 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5312 * target-delegates.c: Regenerate.
5313 * target.c (target_is_non_stop_p): New function.
5314 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5315 (maint_set_target_non_stop_command)
5316 (maint_show_target_non_stop_command): New functions.
5317 (_initilize_target): Install "maint set/show target-non-stop"
5318 commands.
5319 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5320 (target_non_stop_enabled): New declaration.
5321 (target_is_non_stop_p): New declaration.
5322
372316f1
PA
53232015-08-07 Pedro Alves <pedro@codesourcery.com>
5324
5325 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5326 has a pending status, return true.
5327 * gdbthread.h: Include target/waitstatus.h.
5328 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5329 stop_pc>: New fields.
5330 (struct thread_info) <resumed>: New field.
5331 (set_resumed): Declare.
5332 * infrun.c: Include "event-loop.h".
5333 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5334 (infrun_async): New function.
5335 (clear_step_over_info): Add debug output.
5336 (displaced_step_in_progress_any_inferior): New function.
5337 (displaced_step_fixup): New returns int.
5338 (start_step_over): Handle in-line step-overs too. Assert the
5339 thread is marked resumed.
5340 (resume_cleanups): Clear the thread's resumed flag.
5341 (resume): Set the thread's resumed flag. Return early if the
5342 thread has a pending status. Allow stepping a breakpoint with no
5343 signal.
5344 (proceed): Adjust to check 'resumed' instead of 'executing'.
5345 (clear_proceed_status_thread): If the thread has a pending status,
5346 and that status is a finished step, discard the pending status.
5347 (clear_proceed_status): Don't clear step_over_info here.
5348 (random_pending_event_thread, do_target_wait): New functions.
5349 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5350 do_target_wait.
5351 (wait_one): New function.
5352 (THREAD_STOPPED_BY): New macro.
5353 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5354 (thread_stopped_by_hw_breakpoint): New functions.
5355 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5356 functions.
5357 (handle_inferior_event): Also call set_resumed(false) on all
5358 threads implicitly stopped by the event.
5359 (restart_threads, resumed_thread_with_pending_status): New
5360 functions.
5361 (finish_step_over): If we were doing an in-line step-over before,
5362 and no longer are after trying to start a new step-over, restart
5363 all threads. If we have multiple threads with pending events,
5364 save the current event and go through the event loop again.
5365 (handle_signal_stop): Return early if finish_step_over returns
5366 false.
5367 <random signal>: If we get a signal while stepping over a
5368 breakpoint in-line in non-stop mode, restart all threads. Clear
5369 step_over_info before delivering the signal.
5370 (keep_going_stepped_thread): Use internal_error instead of
5371 gdb_assert. Mark the thread as resumed.
5372 (keep_going_pass_signal): Assert the thread isn't already resumed.
5373 If some other thread is doing an in-line step-over, defer the
5374 resume. If we just started a new in-line step-over, stop all
5375 threads. Don't clear step_over_info.
5376 (infrun_async_inferior_event_handler): New function.
5377 (_initialize_infrun): Create async event handler with
5378 infrun_async_inferior_event_handler as callback.
5379 (infrun_async): New declaration.
5380 * target.c (target_async): New function.
5381 * target.h (target_async): Declare macro and readd as function
5382 declaration.
5383 * target/waitstatus.h (enum target_stop_reason)
5384 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5385 * thread.c (new_thread): Clear the new waitstatus field.
5386 (set_resumed): New function.
5387
2ac7589c
PA
53882015-08-07 Pedro Alves <palves@redhat.com>
5389
5390 * infrun.c (keep_going_stepped_thread): New function, factored out
5391 from ...
5392 (switch_back_to_stepped_thread): ... here.
5393
8b061563
PA
53942015-08-07 Pedro Alves <palves@redhat.com>
5395
5396 * infrun.c (currently_stepping): Extend intro comment.
5397 * target.h (target_resume): Extend intro comment.
5398
1afd5965
PA
53992015-08-07 Pedro Alves <palves@redhat.com>
5400
5401 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5402 of inferior_ptid. If the stepped thread vanished, return 0
5403 instead of resuming here. Use reset_ecs. Print the prev_pc and
5404 the current stop_pc in log message. Clear trap_expected if the
5405 thread advanced. Don't pass currently_stepping to
5406 do_target_resume.
5407
4d9d9d04
PA
54082015-08-07 Pedro Alves <palves@redhat.com>
5409
5410 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5411 * infrun.c (struct execution_control_state): Move higher up in the
5412 file.
5413 (reset_ecs): New function.
5414 (start_step_over): Now returns int. Rewrite to use
5415 keep_going_pass_signal instead of manually starting a displaced step.
5416 (resume): Don't call set_running here. If displaced stepping
5417 can't start now, clear trap_expected.
5418 (find_thread_needs_step_over): Delete function.
5419 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5420 If the current thread needs a step over, push it in the step-over
5421 chain. Don't set insert breakpoints nor call resume directly
5422 here. Instead rewrite to use start_step_over and
5423 keep_going_pass_signal.
5424 (finish_step_over): New function.
5425 (handle_signal_stop): Call finish_step_over instead of
5426 start_step_over.
5427 (switch_back_to_stepped_thread): If the event thread needs another
5428 step-over do that first. Use start_step_over.
5429 (keep_going_pass_signal): New function, factored out from ...
5430 (keep_going): ... here.
5431 (_initialize_infrun): Comment moved here.
5432 * thread.c (set_running_thread): New function.
5433 (set_running, finish_thread_state): Use set_running_thread.
5434
c2829269
PA
54352015-08-07 Pedro Alves <palves@redhat.com>
5436
5437 * gdbthread.h (struct thread_info) <step_over_prev,
5438 step_over_next>: New fields.
5439 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5440 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5441 declarations.
5442 * infrun.c (struct displaced_step_request): Delete.
5443 (struct displaced_step_inferior_state) <step_request_queue>:
5444 Delete field.
5445 (displaced_step_prepare): Assert that trap_expected is set. Use
5446 thread_step_over_chain_enqueue. Split starting a new displaced
5447 step to ...
5448 (start_step_over): ... this new function.
5449 (resume): Assert the thread isn't waiting for a step over already.
5450 (proceed): Assert the thread isn't waiting for a step over
5451 already.
5452 (infrun_thread_stop_requested): Adjust to remove threads from the
5453 embedded step-over chain.
5454 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5455 displaced_step_fixup.
5456 (handle_signal_stop): Call start_step_over after
5457 displaced_step_fixup.
5458 * infrun.h (step_over_queue_head): New declaration.
5459 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5460 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5461 (thread_step_over_chain_enqueue)
5462 (thread_step_over_chain_remove): New functions.
5463 (delete_thread_1): Remove thread from the step-over chain.
5464
6c4cfb24
PA
54652015-08-07 Pedro Alves <palves@redhat.com>
5466
5467 * infrun.c (thread_still_needs_step_over): Rename to ...
5468 (thread_still_needs_step_over_bp): ... this.
5469 (enum step_over_what): New.
5470 (thread_still_needs_step_over): Reimplement.
5471
567420d1
PA
54722015-08-07 Pedro Alves <palves@redhat.com>
5473
5474 * remote.c (remote_wait_as): If not waiting for a stop reply,
5475 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5476 requested, don't block waiting forever.
5477
d8dd4d5f
PA
54782015-08-07 Pedro Alves <pedro@codesourcery.com>
5479
5480 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5481 waitstatus pointers instead of an ecs. Adjust.
5482 (handle_inferior_event): Adjust caller.
5483
e1316e60
PA
54842015-08-07 Pedro Alves <palves@redhat.com>
5485
5486 * infrun.c (handle_inferior_event): If we get
5487 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5488 mode, mark all threads of the exiting process as not-executing.
5489 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5490 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5491 exiting process, if inferior_ptid still points at a process.
5492 * thread.c (struct current_thread_cleanup) <next>: New field.
5493 (current_thread_cleanup_chain): New global.
5494 (restore_current_thread_ptid_changed): New function.
5495 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5496 current_thread_cleanup_chain list.
5497 (make_cleanup_restore_current_thread): Add the cleanup data to the
5498 current_thread_cleanup_chain list.
5499 (_initialize_thread): Install restore_current_thread_ptid_changed
5500 as thread_ptid_changed observer.
5501
47e9c225
JB
55022015-08-07 Joel Brobecker <brobecker@adacore.com>
5503
5504 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5505 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5506 smaller than expected.
5507
06096720
AB
55082015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5509
5510 * stack.c (get_frame_language): Moved ...
5511 * frame.c (get_frame_language): ... to here.
5512 * language.h (get_frame_language): Declaration moved to frame.h.
5513 * frame.h: Add language.h include, for language enum.
5514 (get_frame_language): Declaration moved from language.h.
5515 * language.c: Add frame.h include.
5516 * top.c: Add frame.h include.
5517 * symtab.h (struct obj_section): Declare.
5518 (struct cmd_list_element): Declare.
5519
7ff38b1c
AB
55202015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5521
5522 * language.c (show_language_command): Find selected frame before
5523 asking for the language of that frame.
5524 (set_language_command): Likewise.
5525 * language.h (get_frame_language): Add frame parameter.
5526 * stack.c (get_frame_language): Add frame parameter, assert
5527 parameter is not NULL, update comment and reindent.
5528 * top.c (check_frame_language_change): Pass the selected frame
5529 into get_frame_language.
5530
da8c46d2
MM
55312015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5532
5533 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5534 (pt_btrace_insn_flags): New.
5535 (ftrace_add_pt): Call pt_btrace_insn_flags.
5536 * btrace.h (btrace_insn_flag): New.
5537 (btrace_insn) <flags>: New.
5538 * record-btrace.c (btrace_insn_history): Print insn prefix.
5539 * NEWS: Announce it.
5540
5599c404
MM
55412015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5542
5543 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5544 * configure: Regenerate.
5545
016a3251
DD
55462015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5547
5548 * Makefile.in (LIBICONV): Define.
5549 (CLIBS): Add LIBICONV.
5550 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5551 * configure: Regenerate.
5552
aead7601
SM
55532015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5554 Pedro Alves <palves@redhat.com>
5555
5556 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5557 (arm_set_abi): Likewise.
5558 * ax-general.c (ax_print): Likewise.
5559 * c-exp.y (exp : string_exp): Likewise.
5560 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5561 (do_compile_dwarf_expr_to_c): Likewise.
5562 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5563 Likewise.
5564 * dwarf2expr.c (execute_stack_op): Likewise.
5565 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5566 (disassemble_dwarf_expression): Likewise.
5567 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5568 (read_array_order): Likewise.
5569 (abbrev_table_read_table): Likewise.
5570 (read_attribute_value): Likewise.
5571 (skip_unknown_opcode): Likewise.
5572 (dwarf_decode_macro_bytes): Likewise.
5573 (dwarf_decode_macros): Likewise.
5574 * eval.c (value_f90_subarray): Likewise.
5575 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5576 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5577 * infrun.c (handle_command): Likewise.
5578 * memory-map.c (memory_map_start_memory): Likewise.
5579 * osabi.c (set_osabi): Likewise.
5580 * parse.c (operator_length_standard): Likewise.
5581 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5582 single return point.
5583 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5584 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5585 (gdbpy_lookup_global_symbol): Likewise.
5586 * record-full.c (record_full_restore): Likewise.
5587 * regcache.c (regcache_register_status): Likewise.
5588 (regcache_raw_read): Likewise.
5589 (regcache_cooked_read): Likewise.
5590 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5591 * symtab.c (initialize_ordinary_address_classes): Likewise.
5592 * target-debug.h (target_debug_print_signals): Likewise.
5593 * utils.c (do_restore_current_language): Likewise.
5594
ca0a5f0b
CD
55952015-08-06 Clem Dickey <clemd@acm.org>
5596
5597 PR python/17136
5598 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5599
05d999b0
SM
56002015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5601
5602 * complaints.c (enum complaint_series): Add newlines and remove
5603 out of date comment.
5604 (struct complaints) <series>: Change type to enum
5605 complaint_series and remove out of date comment.
5606 (symfile_complaint_hook): Use equivalent enum value
5607 ISOLATED_MESSAGE instead of 0.
5608
bf47e248
PA
56092015-08-06 Pedro Alves <palves@redhat.com>
5610
5611 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5612 returned > 0.
5613
b6b9ffcc
PL
56142015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5615
5616 * common/agent.c (symbol_list) <required>: Remove.
5617
863d01bd
PA
56182015-08-06 Pedro Alves <palves@redhat.com>
5619
5620 * target/waitstatus.h (enum target_stop_reason)
5621 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5622
0a39bb32
PA
56232015-08-05 Pedro Alves <palves@redhat.com>
5624 Joel Brobecker <brobecker@adacore.com>
5625
9d996aba 5626 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
5627 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5628 case where BS->STOP is not set.
5629
260439cb
UW
56302015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5631
5632 * nat/gdb_thread_db.h: Add copyright header.
5633 Protect against multiple inclusion.
5634
d89fa914
YQ
56352015-08-05 Yao Qi <yao.qi@linaro.org>
5636
5637 * aarch64-linux-nat.c (get_thread_id): Remove.
5638 (debug_reg_change_callback): Call ptid_get_lwp instead of
5639 get_thread_id.
5640 (fetch_gregs_from_thread): Likewise.
5641 (store_gregs_to_thread): Likewise.
5642 (fetch_fpregs_from_thread): Likewise.
5643 (store_fpregs_to_thread): Likewise.
5644 (aarch64_linux_get_debug_reg_capacity): Likewise.
5645 * arm-linux-nat.c (get_thread_id): Remove.
5646 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5647 * xtensa-linux-nat.c (get_thread_id): Remove.
5648 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5649 * arm-linux-nat.c (get_thread_id): Remove.
5650 (GET_THREAD_ID): Remove.
5651 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5652 (store_fpregs, fetch_regs, store_regs): Likewise.
5653 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5654 (fetch_vfp_regs, store_vfp_regs): Likewise.
5655 (arm_linux_read_description): Likewise.
5656 (arm_linux_get_hwbp_cap): Likewise.
5657 * xtensa-linux-nat.c (get_thread_id): Remove.
5658 (GET_THREAD_ID): Remove.
5659 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5660 GET_THREAD_ID.
5661
4efd80aa
CS
56622015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5663
5664 * python/py-linetable.c: Fix case of Linetable to LineTable
5665 in docstrings and code comments.
5666 * python/py-symtab.c: Same.
5667
c6343a91
JK
56682015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5669
5670 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5671
978b9495
JK
56722015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5673
5674 PR gdb/18767
5675 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5676 use.
5677
96e9210f
PA
56782015-08-04 Pedro Alves <palves@redhat.com>
5679
5680 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5681 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5682 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5683 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5684 (td_thr_validate_ftype, td_thr_get_info_ftype)
5685 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5686 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5687 New typedefs.
5688 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5689 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5690 local macros and use them instead of verbose_dlsym and dlsym
5691 calls.
5692
af60a1ef
SL
56932015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5694
5695 * nios2-tdep.h: Include opcode/nios2.h here.
5696 (NIOS2_CDX_OPCODE_SIZE): New.
5697 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5698 * nios2-tdep.c: Don't include opcode/nios2.h here.
5699 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5700 4-byte read fails.
5701 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5702 (nios2_match_addi, nios2_match_orhi): Likewise.
5703 (nios2_match_stw, nios2_match_ldw): Likewise.
5704 (nios2_match_rdctl): Likewise.
5705 (nios2_match_stwm, nios2_match_ldwm): New.
5706 (nios2_match_branch): Add cases for R2 encodings.
5707 (nios2_match_jmpi, nios2_match_calli): Likewise.
5708 (nios2_match_jmpr, nios2_match_callr): Likewise.
5709 (nios2_match_break, nios2_match_trap): Likewise.
5710 (nios2_in_epilogue_p): Add R2 support.
5711 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5712 prologues.
5713 (nios2_breakpoint_from_pc): Handle R2 instructions.
5714 (nios2_get_next_pc): Likewise. Adjust call to
5715 tdep->syscall_next_pc.
5716 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5717 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5718 instruction field macros instead of literal hex values.
5719 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5720 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5721 Use size field from OP instead of assuming all instructions
5722 are the same size.
5723 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5724
1da03605
UW
57252015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5726
5727 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5728 variable warning with some compilers.
5729
8156fe7f
YQ
57302015-08-03 Yao Qi <yao.qi@linaro.org>
5731
5732 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5733 in comment. Replace "rw" with "type".
5734 (arm_linux_remove_watchpoint): Change type of "rw" to
5735 "enum target_hw_bp_type".
5736
835a09d9
PMR
57372015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5738
5739 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5740 lookup_symbol.
5741 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5742 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5743 * mt-tdep.c (mt_skip_prologue): Likewise.
5744 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5745
d12307c1
PMR
57462015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5747
5748 * ada-exp.y (write_object_renaming): Replace struct
5749 ada_symbol_info with struct block_symbol. Update field
5750 references accordingly.
5751 (block_lookup, select_possible_type_sym): Likewise.
5752 (find_primitive_type): Likewise. Also update call to
5753 ada_lookup_symbol to extract the symbol itself.
5754 (write_var_or_type, write_name_assoc): Likewise.
5755 * ada-lang.h (struct ada_symbol_info): Remove.
5756 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5757 struct block_symbol.
5758 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5759 (ada_lookup_symbol): Return struct block_symbol instead of a
5760 mere symbol.
5761 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5762 with struct block_symbol.
5763 (resolve_subexp, ada_resolve_function, sort_choices,
5764 user_select_syms, is_nonfunction, add_defn_to_vec,
5765 num_defns_collected, defns_collected,
5766 symbols_are_identical_enums, remove_extra_symbols,
5767 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5768 ada_lookup_symbol_list, ada_iterate_over_symbols,
5769 ada_lookup_encoded_symbol, get_var_value): Likewise.
5770 (ada_lookup_symbol): Return a block_symbol instead of a mere
5771 symbol. Replace struct ada_symbol_info with struct
5772 block_symbol.
5773 (ada_lookup_symbol_nonlocal): Likewise.
5774 (standard_lookup): Make block passing explicit through
5775 lookup_symbol_in_language.
5776 * ada-tasks.c (get_tcb_types_info): Update the calls to
5777 lookup_symbol_in_language to extract the mere symbol out of the
5778 returned value.
5779 (ada_tasks_inferior_data_sniffer): Likewise.
5780 * ax-gdb.c (gen_static_field): Likewise for the call to
5781 lookup_symbol.
a5fdf78a 5782 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
5783 lookup functions.
5784 (gen_expr): Likewise.
5785 * c-exp.y: Likewise. Remove uses of block_found.
5786 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5787 (classify_name): Likewise. Rename the "sym" local variable to
5788 "bsym".
5789 * c-valprint.c (print_unpacked_pointer): Likewise.
5790 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5791 "sym" parameter from struct symbol * to struct block_symbol.
5792 Use it to remove uses of block_found. Deal with struct
a5fdf78a 5793 block_symbol from lookup functions.
d12307c1
PMR
5794 (gcc_convert_symbol): Likewise. Update the call to
5795 convert_symbol_sym.
5796 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 5797 struct block_symbol from lookup functions.
d12307c1
PMR
5798 * cp-namespace.c (cp_lookup_nested_symbol_1,
5799 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5800 cp_search_static_and_baseclasses,
5801 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5802 cp_lookup_symbol_imports_or_template,
5803 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5804 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
5805 find_symbol_in_baseclass): Return struct block_symbol instead of
5806 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
5807 functions.
5808 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 5809 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
5810 lookup functions.
5811 * cp-support.h (cp_lookup_symbol_nonlocal,
5812 cp_lookup_symbol_from_namespace,
5813 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 5814 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
5815 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5816 push_module_name):
a5fdf78a 5817 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
5818 uses of block_found.
5819 * eval.c (evaluate_subexp_standard): Update call to
5820 cp_lookup_symbol_namespace.
a5fdf78a
PMR
5821 * f-exp.y: Deal with struct block_symbol from lookup functions.
5822 Remove uses of block_found.
d12307c1
PMR
5823 (yylex): Likewise.
5824 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5825 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 5826 struct block_symbol from lookup functions.
d12307c1
PMR
5827 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5828 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5829 (gdbscm_lookup_global_symbol): Likewise.
5830 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5831 * go-exp.y: Likewise. Remove uses of block_found.
5832 (package_name_p, classify_packaged_name, classify_name):
5833 Likewise.
5834 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5835 * jv-exp.y (push_variable): Likewise.
5836 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5837 * language.c (language_bool_type): Likewise.
5838 * language.h (struct language_defn): Update
a5fdf78a
PMR
5839 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5840 than a mere symbol.
5841 * linespec.c (find_label_symbols): Deal with struct block_symbol
5842 from lookup functions.
d12307c1
PMR
5843 * m2-exp.y: Likewise. Remove uses of block_found.
5844 (yylex): Likewise.
5845 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5846 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5847 * p-exp.y: Likewise. Remove uses of block_found.
5848 (yylex): Likewise.
5849 * p-valprint.c (pascal_val_print): Likewise.
5850 * parse.c (write_dollar_variable): Likewise. Remove uses of
5851 block_found.
5852 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
5853 struct block_symbol.
5854 * printcmd.c (address_info): Deal with struct block_symbol from
5855 lookup functions.
d12307c1
PMR
5856 * python/py-frame.c (frapy_read_var): Likewise.
5857 * python/py-symbol.c (gdbpy_lookup_symbol,
5858 gdbpy_lookup_global_symbol): Likewise.
5859 * skip.c (skip_function_command): Likewise.
5860 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 5861 block_symbol instead of a mere symbol.
d12307c1
PMR
5862 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5863 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5864 * solib.c (solib_global_lookup): Likewise.
5865 * solist.h (solib_global_lookup): Likewise.
5866 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
5867 return a struct block_symbol rather than a mere symbol.
5868 * source.c (select_source_symtab): Deal with struct block_symbol
5869 from lookup functions.
d12307c1
PMR
5870 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5871 Likewise.
5872 * symfile.c (set_initial_language): Likewise.
5873 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 5874 block_symbol.
d12307c1
PMR
5875 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5876 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 5877 block_symbol.
d12307c1 5878 (block_found): Remove.
a5fdf78a 5879 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 5880 cache slots.
a5fdf78a
PMR
5881 (symbol_cache_lookup): Return a struct block_symbol rather than
5882 a mere symbol.
d12307c1
PMR
5883 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5884 appropriately the cache slots. Update callers.
5885 (symbol_cache_dump): Update cache slots handling to the type
5886 change.
5887 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5888 lookup_symbol_aux, lookup_local_symbol,
5889 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5890 lookup_symbol_in_objfile_symtabs,
5891 lookup_symbol_in_objfile_from_linkage_name,
5892 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5893 lookup_symbol_in_static_block, lookup_static_symbol,
5894 lookup_global_symbol):
a5fdf78a
PMR
5895 Return a struct block_symbol rather than a mere symbol. Deal
5896 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
5897 uses of block_found.
5898 (lookup_symbol_in_block): Remove uses of block_found.
5899 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 5900 struct block_symbol.
d12307c1
PMR
5901 (lookup_symbol_global_iterator_cb): Update references to the
5902 RESULT field.
a5fdf78a 5903 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 5904 functions.
a5fdf78a 5905 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
5906 (block_found): Remove.
5907 (lookup_symbol_in_language, lookup_symbol,
5908 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
5909 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5910 lookup_global_symbol_from_objfile): Return a struct block_symbol
5911 rather than just a mere symbol. Update comments to remove
5912 mentions of block_found.
d12307c1
PMR
5913 * valops.c (find_function_in_inferior,
5914 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 5915 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
5916 functions.
5917 * value.c (value_static_field, value_fn_field): Likewise.
5918
b1c59ddc
SM
59192015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5920
5921 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5922 instead of integer.
5923
f486487f 59242015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 5925 Pedro Alves <palves@redhat.com>
f486487f
SM
5926
5927 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5928 type or value instead of integer.
5929 (aarch64_linux_insert_watchpoint): Likewise.
5930 (aarch64_linux_remove_watchpoint): Likewise.
5931 * ada-lang.c (ada_op_print_tab): Likewise.
5932 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5933 (amd64_linux_syscall_record_common): Likewise.
5934 * arch-utils.c (target_byte_order_user): Likewise.
5935 (default_byte_order): Likewise.
5936 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5937 (arm_linux_get_hwbp_type): Likewise.
5938 (arm_linux_hw_watchpoint_initialize): Likewise.
5939 (arm_linux_insert_watchpoint): Likewise.
5940 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5941 (arm_linux_syscall_record): Likewise.
5942 * breakpoint.c (update_watchpoint): Likewise.
5943 (breakpoint_here_p): Likewise.
5944 (bpstat_print): Likewise.
5945 (enable_breakpoint_disp): Likewise.
5946 * c-lang.c (c_op_print_tab): Likewise.
5947 * cli/cli-decode.c (add_info_alias): Likewise.
5948 * d-lang.c (d_op_print_tab): Likewise.
5949 * eval.c (evaluate_subexp_standard): Likewise.
5950 * f-exp.y (dot_ops): Likewise.
5951 (f77_keywords): Likewise.
5952 * f-lang.c (f_op_print_tab): Likewise.
5953 * go-lang.c (go_op_print_tab): Likewise.
5954 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5955 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5956 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5957 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5958 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5959 (struct scm_from_stringn_data): Likewise.
5960 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5961 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5962 (ia64_linux_remove_watchpoint): Likewise.
5963 (ia64_linux_can_use_hw_breakpoint): Likewise.
5964 * infrun.c (print_stop_event): Likewise.
5965 * jv-lang.c (java_op_print_tab): Likewise.
5966 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5967 * linux-nat.h (struct lwp_info): Likewise.
5968 * linux-thread-db.c (enable_thread_event): Likewise.
5969 * m2-lang.c (m2_op_print_tab): Likewise.
5970 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5971 (mi_cmd_stack_list_variables): Likewise.
5972 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5973 * mi/mi-out.c (mi_table_begin): Likewise.
5974 (mi_table_header): Likewise.
5975 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5976 (mips_linux_insert_watchpoint): Likewise.
5977 (mips_linux_remove_watchpoint): Likewise.
5978 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5979 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5980 (mips_linux_watch_type_to_irw): Likewise.
5981 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5982 (procfs_insert_hw_watchpoint): Likewise.
5983 (procfs_remove_hw_watchpoint): Likewise.
5984 (procfs_hw_watchpoint): Likewise.
5985 (procfs_can_use_hw_breakpoint): Likewise.
5986 (procfs_remove_hw_watchpoint): Likewise.
5987 (procfs_insert_hw_watchpoint): Likewise.
5988 * p-lang.c (pascal_op_print_tab): Likewise.
5989 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5990 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5991 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5992 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5993 (procfs_insert_watchpoint): Likewise.
5994 (procfs_remove_watchpoint): Likewise.
5995 * psymtab.c (recursively_search_psymtabs): Likewise.
5996 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5997 (m32r_insert_watchpoint): Likewise.
5998 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5999 (mips_insert_watchpoint): Likewise.
6000 (mips_remove_watchpoint): Likewise.
6001 * remote.c (watchpoint_to_Z_packet): Likewise.
6002 (remote_insert_watchpoint): Likewise.
6003 (remote_remove_watchpoint): Likewise.
6004 (remote_check_watch_resources): Likewise.
6005 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
6006 (s390_remove_watchpoint): Likewise.
6007 (s390_can_use_hw_breakpoint): Likewise.
6008 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6009 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
6010 * target.h (struct target_ops): Likewise.
6011 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6012 * ui-out.c (struct ui_out_hdr): Likewise.
6013 (append_header_to_list): Likewise.
6014 (get_next_header): Likewise.
6015 (verify_field): Likewise.
6016 (ui_out_begin): Likewise.
6017 (ui_out_field_int): Likewise.
6018 (ui_out_field_fmt_int): Likewise.
6019 (ui_out_field_skip): Likewise.
6020 (ui_out_field_string): Likewise.
6021 (ui_out_field_fmt): Likewise.
6022 * varobj.c (new_variable): Likewise.
6023 * x86-nat.c (x86_insert_watchpoint): Likewise.
6024 (x86_remove_watchpoint): Likewise.
6025 (x86_can_use_hw_breakpoint): Likewise.
6026 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
6027 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
6028 previously anonymous enumeration type..
6029 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
6030 value.
6031 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
6032 (target_debug_print_enum_bptype): New.
6033 * target-delegates.c: Regenerate.
6034
e1b5381f
SL
60352015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6036
6037 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
6038 already says and disallow non-stack memory writes in the prologue.
6039
9aaf8e3a
SL
60402015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6041
6042 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
6043 reflect how current GCC emits stack overflow checks. Match
6044 both trap and break instructions for backward compatbility.
6045 Disallow other trap and break instructions in the prologue.
6046
69dde7dc
PA
60472015-07-30 Pedro Alves <palves@redhat.com>
6048
6049 PR threads/18600
6050 * linux-nat.c (wait_lwp): Report to the core when thread group
6051 leader exits.
6052
4dd63d48
PA
60532015-07-30 Pedro Alves <palves@redhat.com>
6054 Simon Marchi <simon.marchi@ericsson.com>
6055
6056 PR threads/18600
6057 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
6058 mark the new thread as resumed. Remove STOPPING parameter.
6059 (wait_lwp): Adjust call to linux_handle_extended_wait.
6060 (linux_nat_filter_event): Adjust call to
6061 linux_handle_extended_wait.
6062 (resume_stopped_resumed_lwps): Add debug output.
6063
6b940e6a
PL
60642015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6065
6066 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
6067 isize argument.
6068 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
6069 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6070 gdbarch_fast_tracepoint_valid_at.
6071 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6072 * gdbarch.h: Regenerate.
6073 * gdbarch.c: Regenerate.
6074 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6075 argument. Do not set it.
6076 * remote.c (remote_download_tracepoint): Adjust call to
6077 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
6078 the instruction length.
6079
ec741292
YQ
60802015-07-30 Yao Qi <yao.qi@linaro.org>
6081
6082 * arm-tdep.h (enum gdb_regnum): Move it to ...
6083 * arch/arm.h: ... here. New file.
6084 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6085
0ea6402e
PL
60862015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6087
6088 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6089 Change its type to int *.
6090 (decode_br): Rename link argument to is_blr. Change its type to
6091 int *.
6092 (decode_cb): Rename op argument to is_cbnz. Change its type to
6093 int *.
6094 (decode_tb): Rename op argument to is_tbnz. Change its type to
6095 int *. Set is_tbnz to either 1 or 0.
6096 (aarch64_analyze_prologue): Change type of is_link to int. Add
6097 new variables is_cbnz and is_tbnz. Adjust call to
6098 aarch64_decode_cb and aarch64_decode_tb.
6099
aa58a496
SM
61002015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6101
6102 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6103 parameter.
6104 (mips_linux_new_thread): Likewise.
6105 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6106
18206ca3
PP
61072015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6108
6109 * top.c: Include "tui/tui.h".
6110 (undo_terminal_modifications_before_exit): New static function.
6111 (quit_force): Use it.
6112
7afa63c6
PP
61132015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6114
6115 * target.c (terminal_state): Initialize to terminal_is_ours.
6116
cc9f16aa
YQ
61172015-07-29 Yao Qi <yao.qi@linaro.org>
6118
6119 PR record/18691
6120 * dcache.c (dcache_read_memory_partial): Call
6121 raw_memory_xfer_partial.
6122 * target.c (raw_memory_xfer_partial): Make it non-static.
6123 * target.h (raw_memory_xfer_partial): Declare.
6124
3ae385af
SM
61252015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6126
6127 * c-valprint.c (c_val_print_array): Consider addressable memory
6128 unit size.
6129 (c_val_print_ptr): Likewise.
6130 (c_val_print_int): Likewise.
6131 * findvar.c (read_frame_register_value): Likewise.
6132 * valarith.c (find_size_for_pointer_math): Likewise.
6133 (value_ptrdiff): Likewise.
6134 (value_subscripted_rvalue): Likewise.
6135 * valops.c (read_value_memory): Likewise (and rename variables).
6136 (value_assign): Likewise.
6137 (value_repeat): Likewise.
6138 (value_array): Likewise.
6139 (value_slice): Likewise.
6140 * valprint.c (generic_val_print_ptr): Likewise.
6141 (generic_val_print_enum): Likewise.
6142 (generic_val_print_bool): Likewise.
6143 (generic_val_print_int): Likewise.
6144 (generic_val_print_char): Likewise.
6145 (generic_val_print_float): Likewise.
6146 (generic_val_print_decfloat): Likewise.
6147 (generic_val_print_complex): Likewise.
6148 (val_print_scalar_formatted): Likewise.
6149 (val_print_array_elements): Likewise.
6150 * value.c (set_value_parent): Likewise.
6151 (value_contents_copy_raw): Likewise.
6152 (set_internalvar_component): Likewise.
6153 (value_primitive_field): Likewise.
6154 (value_fetch_lazy): Likewise.
6155 * value.h (read_value_memory): Update comment.
6156
e512cdbd
SM
61572015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6158
6159 * value.c (get_value_arch): New function.
6160 * value.h (get_value_arch): New declaration.
6161
3723fda8
SM
61622015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6163
6164 * value.c (struct value): Update comments.
6165
2e056931
SM
61662015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6167
6168 * gdbtypes.c (type_length_units): New function.
6169 * gdbtypes.h (type_length_units): New declaration.
6170 (struct type) <length>: Update comment.
6171
0c87c0bf
SM
61722015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6173
6174 * valprint.c (generic_val_print): Factor out complex
6175 printing code to ...
6176 (generic_val_print_complex): ... this new function.
6177
9550ae5e
SM
61782015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6179
6180 * valprint.c (generic_val_print): Factor out decfloat
6181 printing code to ...
6182 (generic_val_print_decfloat): ... this new function.
6183
7784724b
SM
61842015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6185
6186 * valprint.c (generic_val_print): Factor out float
6187 printing code to ...
6188 (generic_val_print_float): ... this new function.
6189
385f5aff
SM
61902015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6191
6192 * valprint.c (generic_val_print): Factor out char
6193 printing code to ...
6194 (generic_val_print_char): ... this new function.
6195
b21b6342
SM
61962015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6197
6198 * valprint.c (generic_val_print): Factor out integer
6199 printing code to ...
6200 (generic_val_print_int): ... this new function.
6201
e5bead4b
SM
62022015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6203
6204 * valprint.c (generic_val_print): Factor out bool
6205 printing code to ...
6206 (generic_val_print_bool): ... this new function.
6207
4a8c372f
SM
62082015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6209
6210 * valprint.c (generic_val_print): Factor out function/method
6211 printing code to ...
6212 (generic_val_print_func): ... this new function.
6213
d93880bd
SM
62142015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6215
6216 * valprint.c (generic_val_print): Factor out flags
6217 printing code to ...
6218 (generic_val_print_flags): ... this new function.
6219
ef0bc0dd
SM
62202015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6221
6222 * valprint.c (generic_val_print): Factor out enum
6223 printing code to ...
6224 (generic_val_print_enum): ... this new function.
6225
fe43fede
SM
62262015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6227
6228 * valprint.c (generic_val_print): Factor out reference
6229 printing code to ...
6230 (generic_val_print_ref): ... this new function.
6231
45000ea2
SM
62322015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6233
6234 * valprint.c (generic_val_print): Factor out memberptr
6235 printing code to ...
6236 (generic_val_print_memberptr): ... this new function.
6237
81eb921a
SM
62382015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6239
6240 * valprint.c (generic_val_print): Factor out pointer
6241 printing code to ...
6242 (generic_val_print_ptr): ... this new function.
6243
557dbe8a
SM
62442015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6245
6246 * valprint.c (generic_val_print): Factor out array
6247 printing code to ...
6248 (generic_val_print_array): ... this new function.
6249
9f436164
SM
62502015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6251
6252 * valprint.c (generic_val_print): Factor out
6253 print_unpacked_pointer code to ...
6254 (print_unpacked_pointer): ... this new function.
6255
077836f7
PP
62562015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6257
6258 * event-top.c (handle_sigterm): Don't inspect
6259 target_can_async_p. Always set the quit flag and always mark
6260 the async signal handler.
6261
3a60804f
YQ
62622015-07-27 Yao Qi <yao.qi@linaro.org>
6263
6264 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6265
c9f35b34
KB
62662015-07-25 Kevin Buettner <kevinb@redhat.com>
6267
6268 * remote.c (read_ptid): Return null_ptid when no thread id
6269 is found.
6270 (remote_current_thread): Add log warning for malformed
6271 qC reply.
6272 (remote_start_remote): Add log warning when current thread
6273 not found.
6274
2b4cab86
PA
62752015-07-24 Pedro Alves <palves@redhat.com>
6276
6277 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6278 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6279 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6280
77598427
PA
62812015-07-24 Pedro Alves <palves@redhat.com>
6282
6283 PR gdb/18717
6284 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6285 is resumed, and extend the debug log.
6286
fe23c31f
PA
62872015-07-24 Pedro Alves <palves@redhat.com>
6288
6289 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6290
5826e159
PA
62912015-07-24 Pedro Alves <palves@redhat.com>
6292
6293 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6294 sys/ptrace.h.
6295 * alpha-linux-nat.c: Likewise.
6296 * amd64-linux-nat.c: Likewise.
6297 * arm-linux-nat.c: Likewise.
6298 * hppa-linux-nat.c: Likewise.
6299 * i386-linux-nat.c: Likewise.
6300 * ia64-linux-nat.c: Likewise.
6301 * linux-fork.c: Likewise.
6302 * linux-nat.c: Likewise.
6303 * m32r-linux-nat.c: Likewise.
6304 * m68klinux-nat.c: Likewise.
6305 * mips-linux-nat.c: Likewise.
6306 * nat/linux-btrace.c: Likewise.
6307 * nat/linux-ptrace.c: Likewise.
6308 * nat/linux-ptrace.h
6309 * nat/mips-linux-watch.c: Likewise.
6310 * nat/x86-linux-dregs.c: Likewise.
6311 * ppc-linux-nat.c: Likewise.
6312 * s390-linux-nat.c: Likewise.
6313 * spu-linux-nat.c: Likewise.
6314 * tilegx-linux-nat.c: Likewise.
6315 * x86-linux-nat.c: Likewise.
6316 * xtensa-linux-nat.c: Likewise.
6317
54019719
PA
63182015-07-24 Pedro Alves <palves@redhat.com>
6319
6320 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6321 __ptrace_request as first parameter type instead of int.
6322 (PTRACE_TYPE_ARG1): Define.
6323 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6324 that casts first argument to PTRACE_TYPE_ARG1.
6325 * config.in: Regenerate.
6326 * configure: Regenerate.
6327
e3790375
PA
63282015-07-24 Pedro Alves <palves@redhat.com>
6329
6330 * gdb_ptrace.h: Move ...
6331 * nat/gdb_ptrace.h: ... here.
6332 * inf-ptrace.c: Adjust.
6333
eb7aa561
PA
63342015-07-24 Pedro Alves <palves@redhat.com>
6335
6336 * acinclude.m4: Include ptrace.m4.
6337 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6338 * ptrace.m4: ... to this new file.
6339
cc12ce38
DE
63402015-07-23 Doug Evans <dje@google.com>
6341
6342 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6343 (load_cu): Handle dummy CUs.
6344 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6345 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6346
7b849db4
CS
63472015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6348
6349 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6350 documentation to say that it returns a list rather than
6351 a FrozenSet.
6352 (linetable_object_methods): Update the docstring of the
6353 "source_line" entry.
6354
d0d84780
PMR
63552015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6356
6357 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6358 type to the recursive call instead of the original (maybe
6359 TYPE_CODE_TYPEDEF) type.
6360
c2fbdc59
YQ
63612015-07-23 Yao Qi <yao.qi@linaro.org>
6362
6363 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6364 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6365 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6366
af1b22f3
YQ
63672015-07-21 Yao Qi <yao.qi@linaro.org>
6368
6369 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6370 Move it to nat/aarch64-linux-hw-point.c.
6371 (aarch64_linux_child_post_startup_inferior): Update.
6372 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6373 New function.
6374 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6375 Declare it.
6376
40e050d2
MM
63772015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6378
6379 * common/btrace-common.c (btrace_data_append): Change case label.
6380
3675a06a
YQ
63812015-07-20 Yao Qi <yao.qi@linaro.org>
6382
6383 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6384 Re-indent the code.
6385 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6386 "unsigned long long".
6387
b4e1fd61
KB
63882015-07-18 Kevin Buettner <kevinb@redhat.com>
6389
6390 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6391 to be set for SEC_ALLOC sections too.
6392
554717a3
YQ
63932015-07-17 Yao Qi <yao.qi@linaro.org>
6394
6395 * Makefile.in (HFILES_NO_SRCDIR): Add
6396 nat/aarch64-linux-hw-point.h.
6397 (aarch64-linux-hw-point.o): New rule.
6398 * nat/aarch64-linux-hw-point.h: New file.
6399 * nat/aarch64-linux-hw-point.c: New file.
6400 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6401 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6402 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6403 (AARCH64_HWP_ALIGNMENT): Likewise.
6404 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6405 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6406 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6407 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6408 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6409 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6410 (struct aarch64_debug_reg_state): Likewise.
6411 (struct arch_lwp_info): Likewise.
6412 (aarch64_linux_set_debug_regs): Likewise.
6413 (aarch64_notify_debug_reg_change): Remove static.
6414 (aarch64_align_watchpoint): Likewise.
6415 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6416 (aarch64_watchpoint_length): Likewise.
6417 (aarch64_point_encode_ctrl_reg): Likewise
6418 (aarch64_point_is_aligned): Likewise.
6419 (aarch64_dr_state_insert_one_point): Likewise.
6420 (aarch64_dr_state_remove_one_point): Likewise.
6421 (aarch64_handle_breakpoint): Likewise.
6422 (aarch64_handle_aligned_watchpoint): Likewise.
6423 (aarch64_handle_unaligned_watchpoint): Likewise.
6424 (aarch64_handle_watchpoint): Likewise.
6425 * config/aarch64/linux.mh (NAT_FILE): Add
6426 aarch64-linux-hw-point.o.
6427
c67ca4de
YQ
64282015-07-17 Yao Qi <yao.qi@linaro.org>
6429
6430 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6431 state and don't call aarch64_get_debug_reg_state. All callers
6432 update.
6433 (aarch64_linux_insert_hw_breakpoint): Call
6434 aarch64_get_debug_reg_state earlier.
6435 (aarch64_linux_remove_hw_breakpoint): Likewise.
6436 (aarch64_handle_aligned_watchpoint): Add argument state and
6437 don't call aarch64_get_debug_reg_state. All callers update.
6438 (aarch64_handle_unaligned_watchpoint): Likewise.
6439 (aarch64_handle_watchpoint): Add argument state.
6440 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6441 earlier.
6442 (aarch64_linux_remove_watchpoint): Likewise.
6443
25abf979
YQ
64442015-07-17 Yao Qi <yao.qi@linaro.org>
6445
6446 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6447 debug_printf.
6448 (aarch64_handle_unaligned_watchpoint): Likewise.
6449
2ecd81c2
YQ
64502015-07-17 Yao Qi <yao.qi@linaro.org>
6451
6452 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6453 argument type's type to 'enum target_hw_bp_type'.
6454 (aarch64_dr_state_remove_one_point): Likewise.
6455 (aarch64_handle_breakpoint): Likewise.
6456 (aarch64_linux_insert_hw_breakpoint): Likewise.
6457 (aarch64_linux_remove_hw_breakpoint): Likewise.
6458 (aarch64_handle_aligned_watchpoint): Likewise.
6459
e53b6938
YQ
64602015-07-17 Yao Qi <yao.qi@linaro.org>
6461
6462 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6463 ptid_get_pid instead of get_thread_id.
6464
6a49a997
YQ
64652015-07-17 Yao Qi <yao.qi@linaro.org>
6466
6467 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6468 (add_current_inferior_and_thread): Don't initialise ptid.
6469
4bcddace
PL
64702015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6471
6472 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6473 unavailable if invalid.
6474
db1ff28b
JK
64752015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6476
6477 Revert the previous 6 commits:
6478 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6479 Move gdb_regex* to common/
6480 Prepare linux_find_memory_regions_full & co. for move
6481 Move linux_find_memory_regions_full & co.
6482 gdbserver build-id attribute generator
6483 Validate symbol file using build-id
6484
ca5268b6
JK
64852015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6486 Jan Kratochvil <jan.kratochvil@redhat.com>
6487
6488 Validate symbol file using build-id.
6489 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6490 and 'show validate-build-id'. Add build-id attribute.
6491 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6492 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6493 * solib-frv.c (_initialize_frv_solib): Ditto.
6494 * solib-spu.c (set_spu_solib_ops): Ditto.
6495 * solib-svr4.c: Include rsp-low.h.
6496 (NOTE_GNU_BUILD_ID_NAME): New define.
6497 (svr4_validate): New function.
6498 (svr4_copy_library_list): Duplicate field build_id.
6499 (library_list_start_library): Parse 'build-id' attribute.
6500 (svr4_library_attributes): Add 'build-id' attribute.
6501 (_initialize_svr4_solib): Assign validate value.
6502 * solib-target.c (solib.h): Include.
6503 (_initialize_solib_target): Assign validate value.
6504 * solib.c (validate_build_id, show_validate_build_id): New.
6505 (solib_map_sections): Use ops->validate.
6506 (clear_so): Free build_id.
6507 (default_solib_validate): New function.
6508 (_initialize_solib): Add "validate-build-id".
6509 * solib.h (default_solib_validate): New declaration.
6510 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6511 (target_so_ops): New field 'validate'.
6512
700ca40f
JK
65132015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6514 Jan Kratochvil <jan.kratochvil@redhat.com>
6515
6516 gdbserver build-id attribute generator.
6517 * features/library-list-svr4.dtd (library-list-svr4): New
6518 'build-id' attribute.
6519
9904185c
JK
65202015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6521 Jan Kratochvil <jan.kratochvil@redhat.com>
6522
6523 Move linux_find_memory_regions_full & co.
6524 * linux-tdep.c (nat/linux-maps.h): Include.
6525 (gdb_regex.h): Remove the include.
6526 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6527 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6528 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6529 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6530 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6531 and target/target.h.
6532 (struct smaps_vmflags, read_mapping, decode_vmflags)
6533 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6534 (linux_find_memory_regions_full): Move from linux-tdep.c.
6535 * nat/linux-maps.h (read_mapping): New declaration.
6536 (linux_find_memory_region_ftype, enum filterflags): Moved from
6537 linux-tdep.c.
6538 (linux_find_memory_regions_full): New declaration.
6539 * target.c (target/target-utils.h): Include.
6540 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6541 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6542 definitions to target/target-utils.c.
6543 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6544 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6545 from target.c.
6546 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6547 (read_alloc): New declaration.
6548 (read_stralloc_func_ftype): New typedef.
6549 (read_stralloc): New declaration.
6550 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6551
f7af1fcd
JK
65522015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6553 Jan Kratochvil <jan.kratochvil@redhat.com>
6554
6555 Prepare linux_find_memory_regions_full & co. for move.
6556 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6557 (linux_find_memory_regions_full): Change signature and prepare
6558 for moving to linux-maps.
6559 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6560 (linux_find_memory_regions_thunk): New.
6561 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6562 (linux_find_memory_regions_gdb): New.
6563 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6564 (linux_make_mappings_corefile_notes): Use
6565 linux_find_memory_regions_gdb.
6566 * target.c (read_alloc_pread_ftype): New typedef.
6567 (target_fileio_read_alloc_1_pread): New function.
6568 (read_alloc): Refactor from target_fileio_read_alloc_1.
6569 (read_stralloc_func_ftype): New typedef.
6570 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6571 (read_stralloc): Refactored from target_fileio_read_stralloc.
6572 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6573
6e5b4429
JK
65742015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6575
6576 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6577 common/gdb_regex.h.
6578 (COMMON_OBS): Add gdb_regex.o.
6579 (gdb_regex.o): New.
6580 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6581 --without-included-regex and USE_INCLUDED_REGEX.
6582 * common/gdb_regex.c: New file from utils.c functions.
6583 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6584 file wrapping define name.
6585 * configure: Rebuilt.
6586 * configure.ac (gdb_use_included_regex, --without-included-regex)
6587 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6588 * gdb_regex.h: Move it to common/gdb_regex.h.
6589 * utils.c: Remove include gdb_regex.h.
6590 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6591 (compile_rx_or_error): Move them to common/gdb_regex.c.
6592
ddc98fbf
JK
65932015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6594 Jan Kratochvil <jan.kratochvil@redhat.com>
6595
6596 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6597 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6598 common/target-utils.h.
6599 (COMMON_OBS): Add target-utils.o.
6600 (linux-maps.o, target-utils.o): New.
6601 * target/target-utils.c: New file.
6602 * target/target-utils.h: New file.
6603 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6604 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6605 * nat/linux-maps.c: New file.
6606 * nat/linux-maps.h: New file.
6607
e7b01ce0
MM
66082015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6609 Pedro Alves <palves@redhat.com>
6610
6611 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6612 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6613 (perf_event_read_bts): Change the type of SIZE and READ.
6614 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6615 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6616 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6617 mmap page.
6618 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6619 buffer size to UINT_MAX.
6620 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6621 DATA_TAIL.
6622 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6623 <last_head>: Change type.
6624 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6625 * common/btrace-common.c (btrace_data_append): Change the type of
6626 SIZE.
6627 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6628 check.
6629
f168693b
SM
66302015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6631
6632 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6633 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6634 with check_typedef.
6635 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6636 (ada_array_length): Likewise.
6637 (find_parallel_type_by_descriptive_type): Likewise.
6638 (ada_check_typedef): Likewise.
6639 * arm-tdep.c (arm_return_in_memory): Likewise.
6640 * ax-gdb.c (gen_trace_static_fields): Likewise.
6641 (gen_struct_ref_recursive): Likewise.
6642 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6643 (variable: block COLONCOLON name): Likewise.
6644 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6645 * c-lang.c (classify_type): Likewise.
6646 * c-typeprint.c (c_print_type): Likewise.
6647 (c_print_typedef): Likewise.
6648 (c_type_print_base): Likewise.
6649 * c-valprint.c (c_val_print): Likewise.
6650 * compile/compile-c-types.c (convert_type): Likewise.
6651 * compile/compile-object-load.c (get_out_value_type): Likewise.
6652 * completer.c (add_struct_fields): Likewise.
6653 (expression_completer): Likewise.
6654 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6655 (cp_lookup_nested_symbol_1): Likewise.
6656 (cp_lookup_nested_symbol): Likewise.
6657 * cp-valprint.c (cp_print_value_fields): Likewise.
6658 (cp_print_static_field): Likewise.
6659 * d-valprint.c (d_val_print): Likewise.
6660 * eval.c (evaluate_subexp_standard): Likewise.
6661 (evaluate_subexp_for_sizeof): Likewise.
6662 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6663 * f-typeprint.c (f_type_print_base): Likewise.
6664 * f-valprint.c (f_val_print): Likewise.
6665 * gdbtypes.c (get_discrete_bounds): Likewise.
6666 (create_array_type_with_stride): Likewise.
6667 (type_name_no_tag_or_error): Likewise.
6668 (lookup_struct_elt_type): Likewise.
6669 (get_unsigned_type_max): Likewise.
6670 (internal_type_vptr_fieldno): Likewise.
6671 (set_type_vptr_fieldno): Likewise.
6672 (internal_type_vptr_basetype): Likewise.
6673 (set_type_vptr_basetype): Likewise.
6674 (get_vptr_fieldno): Likewise.
6675 (is_integral_type): Likewise.
6676 (is_scalar_type): Likewise.
6677 (is_scalar_type_recursive): Likewise.
6678 (distance_to_ancestor): Likewise.
6679 (is_unique_ancestor_worker): Likewise.
6680 (check_types_equal): Likewise.
6681 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6682
45280282
IB
66832015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6684
6685 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6686 also test for language_d.
6687 (dwarf2_compute_name): Likewise.
6688 (read_func_scope): Likewise.
6689 (read_structure_type): Likewise.
6690 (new_symbol_full): Likewise.
6691 (determine_prefix): Likewise.
6692 (read_import_statement): Use dot as the separator for language_d.
6693 (typename_concat): Likewise, but don't prefix the D main function.
6694
99fe86f7
PB
66952015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6696
6697 * nat/linux-namespaces.c (setns): Rename from this ...
6698 (do_setns): ... to this. Support calling setns if it exists.
6699 (mnsh_handle_setns): Call do_setns.
6700
d5131498
YQ
67012015-07-13 Yao Qi <yao.qi@linaro.org>
6702
6703 * exec.c (exec_file_attach): Add period at the end of error
6704 message.
6705
97605e61
AB
67062015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6707
6708 * tui/tui-win.c (window_name_completer): New function.
6709 (focus_completer): Call window_name_completer. All old content
6710 moved into window_name_completer.
6711 (winheight_completer): New function.
6712 (_initialize_tui_win): Rename variable. Add completer to
6713 winheight command. Update doc string on winheight.
6714
8d6dbeb4
SL
67152015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6716
6717 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6718 all nios2 mach variants.
6719
a0e28e54
KB
67202015-07-10 Kevin Buettner <kevinb@redhat.com>
6721
6722 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6723 of target_read_memory.
6724
c101f28f
AB
67252015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6726
6727 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6728 string copy.
6729 (parse_scrolling_args): Likewise.
6730
150375dc
AB
67312015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6732
6733 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6734 names in this function.
6735
6dce28e4
AB
67362015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6737
6738 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6739 (CMD_NAME): Likewise.
6740 (DATA_NAME): Likewise.
6741 (DISASSEM_NAME): Likewise.
6742 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6743 (tui_set_win_height): Likewise.
6744 (parse_scrolling_args): Likewise.
6745
485668e5
MM
67462015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6747
6748 * record-btrace.c (record_btrace_goto_begin)
6749 (record_btrace_goto_end, record_btrace_goto): Move call to
6750 print_stack_frame ...
6751 (record_btrace_set_replay): ... here. Set stop_pc.
6752 * record-full.c (record_full_goto_entry): Set stop_pc.
6753
58d2eda5
PL
67542015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6755
6756 * NEWS: Mention support for tracepoints on aarch64-linux.
6757
7671bf47
PL
67582015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6759
6760 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6761 function. Return 1.
6762 (the_low_target): Install it.
6763
7890fb45
PL
67642015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6765
6766 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6767 * gdb.trace/collection.exp: Likewise.
6768 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6769 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6770 * gdb.trace/report.exp: Likewise.
6771 * gdb.trace/trace-break.exp: Likewise.
6772 * gdb.trace/unavailable.exp: Likewise.
6773 * gdb.trace/while-dyn.exp: Likewise.
6774
ea873d8e
PL
67752015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6776
6777 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6778 (aarch64_gen_return_address): New function.
6779 (aarch64_gdbarch_init): Hook it.
6780
02a2a705
PL
67812015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6782
6783 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6784 swallow NOT_AVAILABLE_ERROR.
6785 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6786 available_p is not set.
6787 (aarch64_stub_frame_unwind_stop_reason): New function.
6788 (aarch64_stub_unwind): Install it.
6789
7dfa3edc
PL
67902015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6791
6792 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6793 field.
6794 (aarch64_make_prologue_cache_1): New function, factored out from
6795 aarch64_make_prologue_cache. Do not allocate cache. Set
6796 available_p.
6797 (aarch64_make_prologue_cache): Reimplement wrapping
6798 aarch64_make_prologue_cache_1, and swallowing
6799 NOT_AVAILABLE_ERROR.
6800 (aarch64_prologue_frame_unwind_stop_reason): New function.
6801 Return UNWIND_UNAVAILABLE if available_p is not set.
6802 (aarch64_prologue_unwind): Install it.
6803 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6804 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6805 frame_id_build_unavailable_stack if available_p is not set.
6806
db634143
PL
68072015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6808
6809 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6810 fields.
6811 (aarch64_scan_prologue): Set prev_pc.
6812 (aarch64_make_prologue_cache): Set func.
6813 (aarch64_make_stub_cache): Set prev_pc.
6814 (aarch64_prologue_this_id): Remove local variables id, pc and
6815 func. Read prev_pc and func from cache.
6816 (aarch64_stub_this_id): Read prev_pc from cache.
6817
8b61f75d
PL
68182015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6819
6820 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6821 argument this_cache. Remove unused local variables reg and
6822 unwound_fp. Return early if this_cache is already set. Set
6823 this_cache.
6824 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6825
7c8edfae
PL
68262015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6827
6828 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6829 New argument this_cache. Return early if this_cache is already
6830 set. Set this_cache.
6831 (aarch64_prologue_this_id): Update call to
6832 aarch64_make_prologue_cache.
6833 (aarch64_prologue_prev_register): Likewise.
6834 (aarch64_normal_frame_base): Likewise.
6835
938c69a1
SM
68362015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6837
6838 * c-valprint.c (c_val_print): Factor out memberptr printing code
6839 from c_val_print to ...
6840 (c_val_print_memberptr): ... this new function.
6841
49f7fe28
SM
68422015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6843
6844 * c-valprint.c (c_val_print): Factor out int printing code to ...
6845 (c_val_print_int): ... this new function.
6846
9e4f353c
SM
68472015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6848
6849 * c-valprint.c (c_val_print): Factor out struct and union
6850 printing code to ...
6851 (c_val_print_struct): ... this new function ...
6852 (c_val_print_union): ... and this new function.
6853
1c67f032
SM
68542015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6855
6856 * c-valprint.c (c_val_print): Factor out pointer printing code
6857 to ...
6858 (c_val_print_ptr): ... this new function.
6859
0b6ef777
SM
68602015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6861
6862 * c-valprint.c (c_valprint): Factor our array printing code from
6863 c_val_print to ...
6864 (c_val_print_array): ... this new function.
6865
1033c33c
SM
68662015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6867
6868 * c-valprint.c (c_val_print): Factor out pointer printing code
6869 to ...
6870 (print_unpacked_pointer): ... this new function.
6871
f6b93c34
SM
68722015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6873
6874 * c-valprint.c (c_val_print): Remove an assignment to i and move
6875 its declaration.
6876
0f4576e3
YQ
68772015-07-09 Yao Qi <yao.qi@linaro.org>
6878
6879 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6880 argument ptid. Update comments. Caller update.
6881
37fdfe4c
MM
68822015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6883
6884 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6885 mnt packets.
6886
80a2b330
MM
68872015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6888
6889 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6890
4ab31498
SM
68912015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6892
6893 * progspace.c (delete_program_space): Add missing spaces.
6894
7a41607e
SM
68952015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6896
6897 * inferior.c (delete_inferior_1): Rename to ...
6898 (delete_inferior): ..., remove 'silent' parameter, delete
6899 program space when unused and remove call to prune_program_spaces.
6900 Remove the old, unused, delete_inferior.
6901 (delete_inferior_silent): Remove.
6902 (prune_inferiors): Change call from delete_inferior_1 to
6903 delete_inferior and remove 'silent' parameter. Remove call to
6904 prune_program_spaces.
6905 (remove_inferior_command): Idem.
6906 * inferior.h (delete_inferior_1): Rename to...
6907 (delete_inferior): ..., remove 'silent' parameter and remove the
6908 original delete_inferior.
6909 (delete_inferior_silent): Remove.
6910 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6911 delete_inferior_1 to delete_inferior and remove 'silent'
6912 parameter.
6913 * progspace.c (prune_program_spaces): Remove.
6914 (pspace_empty_p): Rename to...
6915 (program_space_empty_p): ... and make non-static.
6916 (delete_program_space): New.
6917 * progspace.h (prune_program_spaces): Remove declaration.
6918 (program_space_empty_p): New declaration.
6919 (delete_program_space): New declaration.
6920 * monitor.c (monitor_close): Replace call to
6921 delete_thread_silent and delete_inferior_silent with
6922 discard_all_inferiors.
6923
a9bd710f
PP
69242015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6925
6926 * defs.h (deprecated_register_changed_hook): Remove prototype.
6927 * interps.c (clear_iterpreter_hooks): Remove reference to
6928 deprecated_register_changed_hook.
6929 * top.c (deprecated_register_changed_hook): Remove prototype.
6930 * valops.c (value_assign): Remove reference to
6931 deprecated_register_changed_hook.
6932 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6933 Add comment documenting the function.
6934 (tui_register_changed_observer): Define.
6935 (tui_install_hooks): Remove reference to
6936 deprecated_register_changed_hook. Set
6937 tui_register_changed_observer.
6938 (tui_remove_hooks): Remove reference to
6939 deprecated_register_changed_hook. Unset
6940 tui_register_changed_observer.
6941
08464196
JK
69422015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6943
6944 PR compile/18484
6945 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6946
bcf5c1d9
RC
69472015-07-08 Robert O'Callahan <robert@ocallahan.org>
6948
6949 PR exp/18617
6950 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6951
e8643a45
MM
69522015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6953
6954 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6955
76fb6829
MM
69562015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6957
6958 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6959 Use safe_strerror() instead of strerror().
6960
82c40d4b
YQ
69612015-07-07 Yao Qi <yao.qi@linaro.org>
6962
6963 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6964 * features/arm-with-m-fpa-layout.c: Regenerated.
6965 * features/arm-with-m-vfp-d16.xml: Likewise.
6966 * features/arm-with-m-vfp-d16.c: Regenerated.
6967 * features/arm-with-m.xml: Likewise.
6968 * features/arm-with-m.c: Regenerated.
6969 * features/arm-with-neon.xml: Likewise.
6970 * features/arm-with-neon.c: Regenerated.
6971 * features/arm-with-vfpv2.xml: Likewise.
6972 * features/arm-with-vfpv2.c: Regenerated.
6973 * features/arm-with-vfpv3.xml: Likewise.
6974 * features/arm-with-vfpv3.c: Regenerated.
6975
607685ec
YQ
69762015-07-07 Yao Qi <yao.qi@linaro.org>
6977
6978 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6979 arm-linux-nat.c.
6980 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6981 elf/external.h.
6982 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6983 if target is 32-bit.
6984 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6985 if target is 32-bit.
6986 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6987 if target is 32-bit.
6988 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6989 if target is 32-bit.
6990 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6991 (aarch64_linux_read_description): Return the right target
6992 description.
6993 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6994 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6995 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6996 arm-linux-tdep.o.
6997
f1b67888
YQ
69982015-07-07 Yao Qi <yao.qi@linaro.org>
6999
7000 * aarch32-linux-nat.c: New file.
7001 * aarch32-linux-nat.h: New file.
7002 * arm-linux-nat.c: Include aarch32-linux-nat.h.
7003 (fetch_regs): Move code to aarch32-linux-nat.c. Call
7004 aarch32_gp_regcache_supply.
7005 (store_regs): Move code to aarch32-linux-nat.c. Call
7006 aarch32_gp_regcache_collect.
7007 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
7008 aarch32_vfp_regcache_supply.
7009 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
7010 aarch32_vfp_regcache_collect.
7011 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7012
179bfe82
YQ
70132015-07-07 Yao Qi <yao.qi@linaro.org>
7014
7015 * arm-linux-nat.c (store_fpregister): Remove.
7016 (store_register): Likewise.
7017 (fetch_fpregister): Likewise.
7018 (fetch_register): Likewise.
7019 (arm_linux_store_inferior_registers): Call store_regs and
7020 store_fpregs instead.
7021 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
7022 fetch_regs instead.
7023
6008fc5f
AB
70242015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7025
7026 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
7027 and focus commands.
7028
7c79d316
JB
70292015-07-06 Joel Brobecker <brobecker@adacore.com>
7030
7031 * NEWS: Create a new section for the next release branch.
7032 Rename the section of the current branch, now that it has
7033 been cut.
7034
f2232bea
JB
70352015-07-06 Joel Brobecker <brobecker@adacore.com>
7036
7037 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
7038 * version.in: Bump version to 7.10.50.DATE-cvs.
7039
66c4b3e8
LM
70402015-07-06 Luis Machado <lgustavo@codesourcery.com>
7041
7042 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
7043 breakpoints in a special way.
7044 (remove_breakpoint): Likewise.
7045 (mark_breakpoints_out): Likewise.
7046
bcd8537c
AB
70472015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7048
7049 * doc/gdb.texinfo (TUI): Add comma after @xref.
7050
10e9aaa3
AB
70512015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7052
7053 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
7054 instead of casting the structure type.
7055
8a13d42d
SM
70562015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7057
7058 * valops.c (search_struct_field): Remove OFFSET parameter.
7059 (value_cast_structs): Adjust calls to search_struct_field.
7060 (value_struct_elt): Same.
7061 (find_overload_match): Same.
7062
a844296a
SM
70632015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7064
7065 * value.c (value_fetch_lazy): Update comment, change return
7066 value to void.
7067 * value.h (value_fetch_lazy): Change return value to void.
7068
f41cbf58
AB
70692015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7070
7071 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7072 (tui_win_name): Make parameter and result const.
7073 * tui/tui-data.h (tui_win_name): Make parameter and result const.
7074
118ca224
PP
70752015-07-06 Patrick Palka <patrick@parcs.ath.cx>
7076
7077 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7078 use printf_unfiltered.
7079 (set_mpx_cmd): Add missing trailing space to command string
7080 literal.
7081 (_initialize_i386_tdep): Give the "mpx" prefix command its
7082 correct name.
7083
1b485e67
KB
70842015-07-02 Kevin Buettner <kevinb@redhat.com>
7085
7086 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7087 (enum rx_frame_type): New.
7088 (struct rx_prologue): Add new field `frame_type'.
7089 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7090 parameter in the prologue struct. Add code for recording
7091 locations of PC and PSW for fast interrupt and exception frames.
7092 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7093 (rx_analyze_frame_prologue): Add `frame_type' parameter.
7094 (rx_frame_type): New function.
7095 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7096 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7097 `this_cache'.
7098 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 7099 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
7100 RX_FRAME_TYPE_FAST_INTERRUPT.
7101 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7102 (rx_frame_sniffer, rx_exception_sniffer): New functions.
7103 (rx_frame_unwind): Use rx_frame_sniffer instead of
7104 default_frame_sniffer.
7105 (rx_frame_unwind): New unwinder.
7106 (rx_gdbarch_init): Register new unwinder.
7107
0561fea4
KB
71082015-07-02 Kevin Buettner <kevinb@redhat.com>
7109
7110 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7111 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7112 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7113 and RX_FPSW_REGNUM.
7114 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7115
decf8d9a
JK
71162015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7117
7118 Fix GCC false warning.
7119 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7120
2fd0f80d
YQ
71212015-07-02 Yao Qi <yao.qi@linaro.org>
7122
7123 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7124 typo in the debugging message.
7125
b0627500
MM
71262015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7127
7128 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7129 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7130 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7131 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7132 (btrace_maint_clear): New.
7133 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7134 (pt_print_packet, btrace_maint_decode_pt)
7135 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7136 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7137 (maint_btrace_packet_history_cmd)
7138 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7139 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7140 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7141 (maint_info_btrace_cmd, _initialize_btrace): New.
7142 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7143 (btrace_maint_packet_history, btrace_maint_info): New.
7144 (btrace_thread_info) <maint>: New.
7145 * NEWS: Announce it.
7146
9be54cae
MM
71472015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7148
7149 * btrace.c (btrace_fetch): Append the new trace data.
7150 (btrace_clear): Clear the stored trace data.
7151 * btrace.h (btrace_thread_info) <data>: New.
7152 * common/btrace-common.h (btrace_data_clear)
7153 (btrace_data_append): New.
7154 * common/btrace-common.c (btrace_data_clear)
7155 (btrace_data_append): New.
7156
010a18a1
MM
71572015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7158
7159 * nat/linux-btrace.c (linux_enable_bts): Check for
7160 PERF_ATTR_SIZE_VER5.
7161 Check for data_offset and data_size fields. Use them.
7162
b20a6524
MM
71632015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7164
7165 * NEWS: Announce new commands "record btrace pt" and "record pt".
7166 Announce new options "set|show record btrace pt buffer-size".
7167 * btrace.c: Include "rsp-low.h".
7168 Include "inttypes.h".
7169 (btrace_add_pc): Add forward declaration.
7170 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7171 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7172 (btrace_compute_ftrace_pt): New.
7173 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7174 (check_xml_btrace_version): Update version check.
7175 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7176 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7177 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7178 (btrace_pt_children): New.
7179 (btrace_children): Add support for "pt".
7180 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7181 (btrace_conf_children): Add support for "pt".
7182 * btrace.h: Include "intel-pt.h".
7183 (btrace_pt_error): New.
7184 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7185 (btrace_data_empty): Support BTRACE_FORMAT_PT.
7186 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7187 (struct btrace_config_pt): New.
7188 (struct btrace_config)<pt>: New.
7189 (struct btrace_data_pt_config, struct btrace_data_pt): New.
7190 (struct btrace_data)<pt>: New.
7191 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7192 (pt): New.
7193 * features/btrace.dtd (btrace)<pt>: New.
7194 (pt, pt-config, cpu): New.
7195 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7196 (perf_event_pt_event_type, kernel_supports_pt)
7197 (linux_supports_pt): New.
7198 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7199 (linux_enable_bts): Free tinfo on error.
7200 (linux_enable_pt): New.
7201 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7202 (linux_disable_pt): New.
7203 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7204 (linux_fill_btrace_pt_config, linux_read_pt): New.
7205 (linux_read_btrace): Support BTRACE_FORMAT_PT.
7206 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7207 (struct btrace_target_info)<pt>: New.
7208 * record-btrace.c (set_record_btrace_pt_cmdlist)
7209 (show_record_btrace_pt_cmdlist): New.
7210 (record_btrace_print_pt_conf): New.
7211 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7212 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7213 (cmd_record_btrace_pt_start): New.
7214 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7215 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7216 (_initialize_record_btrace): Add new commands.
7217 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7218 (remote_protocol_features): Add "Qbtrace:pt".
7219 Add "Qbtrace-conf:pt:size".
7220 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7221 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7222 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7223 (_initialize_remote): Add new commands.
7224
58bfce93
MM
72252015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7226
7227 * configure.ac: check for libipt
7228 * configure: Regenerate.
7229 * config.in: Regenerate.
7230 * Makefile.in (LIBIPT): New.
7231 (CLIBS): Add $LIBIPT.
7232 * NEWS: document new configure options
7233
b0fd6b30
JK
72342015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7235
7236 * compile/compile-object-load.c (compile_object_load): Replace debug
7237 message "lookup undefined ELF symbol" by 3 more specific messages.
7238
e6280369
KB
72392015-07-01 Kevin Buettner <kevinb@redhat.com>
7240
7241 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7242 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7243 (rl78_gdbarch_init): Initialize rl78_psw_type.
7244
bbcbf914
PP
72452015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7246
7247 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7248 Update commentary. Always refresh the registers when frame
7249 information has changed.
7250 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7251 Change return type to int. Return 1 if frame information has
7252 changed, 0 otherwise.
7253 (tui_before_prompt): Update commentary.
7254 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7255 int.
7256
0986c744
PP
72572015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7258
7259 PR tui/13378
7260 * frame.c (select_frame): Remove reference to
7261 deprecated_selected_frame_level_changed_hook.
7262 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7263 declaration.
7264 * stack.c (deprecated_selected_frame_level_changed_hook):
7265 Likewise.
7266 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7267 Rename to ...
7268 (tui_refresh_frame_and_register_information): ... this. Bail
7269 out if there is no stack. Don't update register information
7270 unless registers_too_p is true.
7271 (tui_print_frame_info_listing_hook): Rename to ...
7272 (tui_dummy_print_frame_info_listing_hook): ... this.
7273 (tui_before_prompt): New function.
7274 (tui_normal_stop): New function.
7275 (tui_before_prompt_observer): New observer.
7276 (tui_normal_stop_observer): New observer.
7277 (tui_install_hooks): Set
7278 deprecated_print_frame_info_listing_hook to
7279 tui_dummy_print_frame_info_listing_hook. Register
7280 tui_before_prompt_observer to call tui_before_prompt and
7281 tui_normal_stop_observer to call tui_normal_stop. Remove
7282 reference to deprecated_selected_frame_level_changed_hook.
7283 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7284 and tui_normal_stop_observer. Remove reference to
7285 deprecated_selected_frame_level_changed_hook.
7286
b5fca6d7
PP
72872015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7288
7289 PR tui/13378
7290 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7291 return an int instead of void. Return whether the locator
7292 window has changed.
7293 (tui_show_frame_info): If the locator info has not changed, then
7294 bail out early to avoid refreshing the windows.
7295
c45613e3
PP
72962015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7297
7298 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7299 LOCATOR_WIN to tui_alloc_content.
7300
7b9be803
YQ
73012015-06-30 Yao Qi <yao.qi@linaro.org>
7302
7303 PR tdep/18605
7304 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7305 instructions.
7306
fd6e021d
KB
73072015-06-29 Kevin Buettner <kevinb@redhat.com>
7308
78ab7e9d
KB
7309 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7310 (rx_dwarf_reg_to_regnum): New function.
7311 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7312 unwinding.
fd6e021d 7313
28bf096c
PA
73142015-06-29 Pedro Alves <palves@redhat.com>
7315
7316 PR threads/18127
7317 * infcall.c (run_inferior_call): On infcall success, if the thread
7318 was marked stopped before, reset it back to stopped.
7319 * infrun.c (resume): Don't suppress the set_running calls when
7320 doing an infcall.
7321 (normal_stop): Only discard the finish_thread_state cleanup if the
7322 infcall succeeded.
7323
2880b51c 73242015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
7325
7326 * MAINTAINERS (Write After Approval): Update my email address.
7327
ee93cd5e
KS
73282015-06-26 Keith Seitz <keiths@redhat.com>
7329 Doug Evans <dje@google.com>
7330
7331 PR 16253
7332 * block.c (block_lookup_symbol): For non-function blocks,
7333 continue to search for a symbol with an exact domain match
7334 Otherwise, return any previously found "best domain" symbol.
7335 (block_lookup_symbol_primary): Likewise.
7336
fc637f04
PP
73372015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7338
7339 * NEWS: Mention the new option "history remove-duplicates".
7340 * top.c (history_remove_duplicates): New static variable.
7341 (show_history_remove_duplicates): New static function.
7342 (gdb_add_history): Conditionally remove duplicate history
7343 entries.
7344 (init_main): Add "history remove-duplicates" option.
7345
2e52ae68
PP
73462015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7347
7348 * tui/tui-win.c (focus_completer): New static function.
7349 (_initialize_tui_win): Set the completion function of the
7350 "focus" command to focus_completer.
7351
6e22494e
JK
73522015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7353
7354 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7355 and language_asm..
7356 * symtab.c (find_function_start_sal): Likewise.
7357
f8773be1
GB
73582015-06-25 Gary Benson <gbenson@redhat.com>
7359
7360 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7361 it is the empty string after trailing slashes have been stripped.
7362
a3be80c3
GB
73632015-06-25 Gary Benson <gbenson@redhat.com>
7364
7365 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7366 * infrun.c (follow_exec): Likewise.
7367 * remote.c (remote_filesystem_is_local): Likewise.
7368 * solib.c (solib_find_1): Likewise.
7369
32fad71f
KS
73702015-06-24 Keith Seitz <keiths@redhat.com>
7371
7372 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7373 return value from lrealpath.
7374
87d1b309
MF
73752015-06-24 Mike Frysinger <vapier@gentoo.org>
7376
7377 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7378
23bf70af
MF
73792015-06-24 Mike Frysinger <vapier@gentoo.org>
7380
7381 * remote-sim.c: Include gdb_bfd.h.
7382 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7383 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7384
5cd867b4
YQ
73852015-06-24 Yao Qi <yao.qi@linaro.org>
7386
7387 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7388 set_gdbarch_get_siginfo_type.
7389 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7390 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7391 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7392 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7393 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7394 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7395 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7396 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7397 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7398 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7399
dc06243f
GB
74002015-06-24 Gary Benson <gbenson@redhat.com>
7401
7402 * common/buffer.c (stdint.h): Do not include.
7403 * common/print-utils.c (stdint.h): Likewise.
7404 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7405 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7406 * ft32-tdep.c (gdb_assert.h): Likewise.
7407 * guile/scm-utils.c (stdint.h): Likewise.
7408 * i386-linux-tdep.c (stdint.h): Likewise.
7409 * i386-tdep.c (stdint.h): Likewise.
7410 * nat/linux-btrace.c (stdint.h): Likewise.
7411 * nat/linux-btrace.h (stdint.h): Likewise.
7412 * nat/linux-ptrace.c (stdint.h): Likewise.
7413 * nat/mips-linux-watch.h (stdint.h): Likewise.
7414 * ppc-linux-nat.c (stdint.h): Likewise.
7415 * python/python-internal.h (stdint.h): Likewise.
7416 * stub-termcap.c (stdlib.h): Likewise.
7417 * target/target.h (stdint.h): Likewise.
7418 * xtensa-linux-nat.c (stdint.h): Likewise.
7419
0fc26caf
PP
74202015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7421
7422 * top.c (init_history): Look at errno after calling strtol to
7423 properly map large GDBHISTSIZE values to infinity.
7424
a38fe4fe
DE
74252015-06-23 Doug Evans <dje@google.com>
7426
7427 * inferior.h (struct inferior_suspend_state): Delete, unused.
7428 All references deleted.
7429
7564fe45
MF
74302015-06-23 Mike Frysinger <vapier@gentoo.org>
7431
7432 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7433 (microblaze_push_dummy_call): Likewise.
7434 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7435 and set_gdbarch_push_dummy_call.
7436
0bdb2f78
YQ
74372015-06-23 Yao Qi <yao.qi@linaro.org>
7438
7439 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7440 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7441 (amd64_linux_store_inferior_registers): Likewise.
7442 * arm-linux-nat.c (fetch_fpregister): Likewise.
7443 (fetch_fpregs, store_fpregister): Likewise.
7444 (store_fpregister, store_fpregs): Likewise.
7445 (fetch_register, fetch_regs): Likewise.
7446 (store_register, store_regs): Likewise.
7447 (fetch_vfp_regs, store_vfp_regs): Likewise.
7448 (arm_linux_read_description): Check have_ptrace_getregset is
7449 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7450 or TRIBOOL_FALSE.
7451 * i386-linux-nat.c (fetch_xstateregs): Check
7452 have_ptrace_getregset is not TRIBOOL_TRUE.
7453 (store_xstateregs): Likewise.
7454 * linux-nat.c (have_ptrace_getregset): Change its type to
7455 enum tribool.
7456 * linux-nat.h (tribool): New enum.
7457 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7458 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7459
18a94d75
DE
74602015-06-19 Doug Evans <dje@google.com>
7461
7462 * NEWS: Mention Sun's version of stabs is no longer supported.
7463 * elfread.c (free_elfinfo): Delete. All uses updated.
7464 (elfstab_offset_sections): Delete. All uses updated.
7465 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7466 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7467 All uses updated.
7468 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7469 All callers updated.
7470
124e13d9
SM
74712015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7472
7473 * common/rsp-low.c (needs_escaping): New.
7474 (remote_escape_output): Add unit_size parameter. Refactor to
7475 support multi-byte addressable units. Rename parameters.
7476 * common/rsp-low.h (remote_escape_output): Add unit_size
7477 parameter and rename others. Update doc.
7478 * remote.c (align_for_efficient_write): New.
7479 (remote_write_bytes_aux): Add unit_size parameter and use it.
7480 Rename some variables. Update doc.
7481 (remote_xfer_partial): Get unit size and use it.
7482 (remote_read_bytes_1): Add unit_size parameter and use it.
7483 Rename some variables. Update doc.
7484 (remote_write_bytes): Same.
7485 (remote_xfer_live_readonly_partial): Same.
7486 (remote_read_bytes): Same.
7487 (remote_flash_write): Update call to remote_write_bytes_aux.
7488 (remote_write_qxfer): Update call to remote_escape_output.
7489 (remote_search_memory): Same.
7490 (remote_hostio_pwrite): Same.
7491
6ae88661
LM
74922015-06-17 Luis Machado <lgustavo@codesourcery.com>
7493
7494 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7495 locations as inserted.
7496 Update and expand comment about permanent locations.
7497 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7498 Move comment to add_location_to_breakpoint.
7499 (update_global_location_list): Don't error out if a permanent
7500 breakpoint is not marked inserted.
7501 Don't error out if a non-permanent breakpoint location is inserted on
7502 top of a permanent breakpoint.
7503
da4616f6
LM
75042015-06-17 Luis Machado <lgustavo@codesourcery.com>
7505
7506 * breakpoint.c (make_breakpoint_permanent): Remove unused
7507 function.
7508 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7509
bc460514
PP
75102015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7511
7512 PR gdb/16999
7513 * NEWS: Mention new GDBHISTSIZE behavior.
7514 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7515 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7516
b58c513b
PP
75172015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7518
7519 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7520 * top.c (init_history): Read from GDBHISTSIZE instead of
7521 HISTSIZE.
7522 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7523
2093d2d3
PP
75242015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7525
7526 * top.c (gdb_safe_append_history): Do not call
7527 history_truncate_file if the history is not stifled.
7528
fc248485
AA
75292015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7530
7531 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7532 * syscalls/s390x-linux.xml: Likewise.
7533
4da680ad
ME
75342015-06-16 Michael Eager <eager@eagercon.com>
7535
7536 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7537
0a75489f
PP
75382015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7539
7540 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7541 target_terminal_ours_for_output() before calling
7542 tui_show_frame_info(), and restore the original terminal
7543 settings afterwards.
7544
95855ca8
MS
75452015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7546
7547 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7548
cfc32360
SM
75492015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7550
7551 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7552 memory unit size.
7553 (mi_cmd_data_write_memory_bytes): Same.
7554
cb6f16cf
SM
75552015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7556
7557 * corefile.c (write_memory): Update doc.
7558 * gdbcore.h (write_memory): Same.
7559
31b7833d
JK
75602015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7561
7562 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7563 (dump_mapping_p): Use it for parameter filterflags.
7564 (linux_find_memory_regions_full): Use it for variable filterflags.
7565
909c2cda
JK
75662015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7567 Jan Kratochvil <jan.kratochvil@redhat.com>
7568
7569 Merge multiple hex conversions.
7570 * monitor.c: Include rsp-low.h.
7571 (fromhex): Remove definition.
7572
03aef70f
JK
75732015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7574 Jan Kratochvil <jan.kratochvil@redhat.com>
7575
7576 Move utility functions to common/.
7577 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7578 Move defs to common/common-utils.c.
7579 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7580 (skip_to_space_const): Move decls to common/common-utils.h.
7581 * common/common-defs.h: Move include of common-types.h before
7582 common-utils.h.
7583 * common/common-utils.c: Include host-defs.h and ctype.h.
7584 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7585 from utils.c.
7586 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7587 cli/cli-utils.c.
7588 * common/common-utils.h (strtoulst): Move decl from utils.h.
7589 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7590 Move from cli/cli-utils.h.
7591 * common/host-defs.h: Include limits.h.
7592 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7593 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7594 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7595 common/common-utils.h.
7596 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7597 (strtoulst): Move to common/common-utils.c.
7598 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7599
d1168cc1
YQ
76002015-06-15 Yao Qi <yao.qi@linaro.org>
7601
7602 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7603
c74f7d1c
JT
76042015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7605
7606 * build-id.c: Don't include elf-bfd.h.
7607 (build_id_bfd_get): Use bfd_build_id.
7608 (build_id_verify): Ditto.
7609 * build-id.h: Ditto.
7610 (find_separate_debug_file_by_buildid): Ditto.
7611 * python/py-objfile.c: Don't include elf-bfd.h.
7612 (objfpy_get_build_id) Use bfd_build_id.
7613 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7614 * coffread.c: Include build-id.h.
7615 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7616
f20c58f5
JT
76172015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7618
7619 * windows-nat.c (do_windows_fetch_inferior_registers)
7620 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7621 conditional with __CYGWIN__.
7622
51f0e40d
AB
76232015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7624
7625 * completer.c: Add arch-utils.h include.
7626 (enum reg_completer_targets): New enum.
7627 (reg_or_group_completer_1): New function containing old
7628 reg_or_group_completer, add and use new parameter to control what
7629 is completed on. Use get_current_arch rather than architecture of
7630 currently selected frame.
7631 (reg_or_group_completer): Call new reg_or_group_completer_1.
7632 (reggroup_completer): Call new reg_or_group_completer_1.
7633 * completer.h (reggroup_completer): Add declaration.
7634 * tui/tui-regs.c: Add 'completer.h' include.
7635 (tui_reg_next_command): Renamed to...
7636 (tui_reg_next): ...this. Adjust parameters and return rather than
7637 display new group.
7638 (tui_reg_prev_command): Renamed to...
7639 (tui_reg_prev): ...this. Adjust parameters and return rather than
7640 display new group.
7641 (tui_reg_float_command): Delete.
7642 (tui_reg_general_command): Delete.
7643 (tui_reg_system_command): Delete.
7644 (tui_reg_command): Rewrite to perform switching of register group.
7645 Add header comment.
7646 (tuireglist): Remove.
7647 (tui_reggroup_completer): New function.
7648 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7649 creation of 'tui reg' command.
7650 * NEWS: Add comment about 'tui reg' changes.
7651
d309493c
SM
76522015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7653
7654 * target.c (target_read): Consider addressable unit size when
7655 reading from a memory object.
7656 (read_memory_robust): Same.
7657 (read_whatever_is_readable): Same.
7658 (target_write_with_progress): Consider addressable unit size
7659 when writing to a memory object.
7660 * target.h (target_read): Update documentation.
7661 (target_write): Add documentation.
7662
3374165f
SM
76632015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7664
7665 * arch-utils.h (default_addressable_memory_unit_size): New.
7666 * arch-utils.c (default_addressable_memory_unit_size): New.
7667 * gdbarch.sh (addressable_memory_unit_size): New.
7668 * gdbarch.h: Re-generate.
7669 * gdbarch.c: Re-generate.
7670
279a6fed
SM
76712015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7672
7673 * target.c (target_read): Rename variables and use
7674 TARGET_XFER_E_IO.
7675 (target_read_with_progress): Same.
7676 (read_memory_robust): Constify parameters and rename
7677 variables.
7678 (read_whatever_is_readable): Constify parameters,
7679 rename variables, adjust formatting.
7680 * target.h (read_memory_robust): Constify parameters.
7681
1e5338b6 76822015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
7683
7684 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7685 synthetic (non-AltiVec) vector types.
7686 (ppc64_sysv_abi_return_value): Likewise.
7687
98aa42ee
AT
76882015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7689
7690 PR breakpoints/16465
7691 * breakpoint.c (create_breakpoint): Save extra_string for
7692 pending breakpoints.
7693
966f0aef
WT
76942015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7695
7696 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7697 and bt_mask to CORE_ADDR.
7698
6449ed0d
GB
76992015-06-11 Gary Benson <gbenson@redhat.com>
7700
7701 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7702 (mnsh_recv_message): Likewise.
7703
34f8ac9f
WT
77042015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7705
7706 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7707 long long int and plongest instead of %ll.
7708
198c808c
GB
77092015-06-11 Gary Benson <gbenson@redhat.com>
7710
7711 * nat/linux-namespaces.c (gdb_wait.h): New include.
7712 (sys/wait.h): Do not include.
7713
e815d2d2
SM
77142015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7715
7716 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7717 end_sequence is true.
7718
8847cac2
JK
77192015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7720
7721 Code cleanup.
7722 * solib-target.c (library_list_start_list): Use explicit NULL
7723 comparison.
7724
24c05f46
JK
77252015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7726
7727 * solib-target.c (library_list_start_list): Do not dereference
7728 variable version in its initialization. Make the VERSION check handle
7729 NULL.
7730 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7731
51aad7cc
GB
77322015-06-10 Gary Benson <gbenson@redhat.com>
7733
7734 * NEWS: Announce support for direct access of executable and
7735 shared library files when attaching to inferiors in containers
7736 on GNU/Linux systems.
7737
15a201c8
GB
77382015-06-10 Gary Benson <gbenson@redhat.com>
7739
7740 * remote.c (struct remote_state) <fs_pid>: New field.
7741 (new_remote_state): Initialize the above.
7742 (PACKET_vFile_setfs): New enum value.
7743 (remote_hostio_set_filesystem): New function.
7744 (remote_hostio_open): Call the above.
7745 (remote_hostio_unlink): Likewise.
7746 (remote_hostio_readlink): Likewise.
7747 (_initialize_remote): Register new "set/show remote
7748 hostio-setfs-packet" command.
7749 * NEWS: Announce new vFile:setfs packet.
7750
7a6a1731
GB
77512015-06-10 Gary Benson <gbenson@redhat.com>
7752
7753 * linux-nat.c (nat/linux-namespaces.h): New include.
7754 (fileio.h): Likewise.
7755 (linux_nat_filesystem_is_local): New function.
7756 (linux_nat_fileio_pid_of): Likewise.
7757 (linux_nat_fileio_open): Likewise.
7758 (linux_nat_fileio_readlink): Likewise.
7759 (linux_nat_fileio_unlink): Likewise.
7760 (linux_nat_add_target): Initialize to_filesystem_is_local,
7761 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7762 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7763 commands.
7764 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7765
07c138c8
GB
77662015-06-10 Gary Benson <gbenson@redhat.com>
7767
7768 * target.h (struct inferior): New forward declaration.
7769 (struct target_ops) <to_filesystem_is_local>: Update comment.
7770 (struct target_ops) <to_fileio_open>: New argument inf.
7771 Update comment. All implementations updated.
7772 (struct target_ops) <to_fileio_unlink>: Likewise.
7773 (struct target_ops) <to_fileio_readlink>: Likewise.
7774 (target_filesystem_is_local): Update comment.
7775 (target_fileio_open): New argument inf. Update comment.
7776 (target_fileio_unlink): Likewise.
7777 (target_fileio_readlink): Likewise.
7778 (target_fileio_read_alloc): Likewise.
7779 (target_fileio_read_stralloc): Likewise.
7780 * target.c (target_fileio_open): New argument inf.
7781 Pass inf to implementation. Update debug printing.
7782 (target_fileio_unlink): Likewise.
7783 (target_fileio_readlink): Likewise.
7784 (target_fileio_read_alloc_1): New argument inf. Pass inf
7785 to target_fileio_open.
7786 (target_fileio_read_alloc): New argument inf. Pass inf to
7787 target_fileio_read_alloc_1.
7788 (target_fileio_read_stralloc): Likewise.
7789 * gdb_bfd.c (inferior.h): New include.
7790 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7791 argument with new argument "inferior". Pass inferior to
7792 target_fileio_open.
7793 (gdb_bfd_open): Supply inferior argument to
7794 gdb_bfd_iovec_fileio_open.
7795 * linux-tdep.c (linux_info_proc): Supply inf argument to
7796 relevant target_fileio calls.
7797 (linux_find_memory_regions_full): Likewise.
7798 (linux_fill_prpsinfo): Likewise.
7799 * remote.c (remote_filesystem_is_local): Supply inf
7800 argument to remote_hostio_open.
7801 (remote_file_put): Likewise.
7802 (remote_file_get): Likewise.
7803 (remote_file_delete): Supply inf argument to
7804 remote_hostio_unlink.
7805
12e2a5fd
GB
78062015-06-10 Gary Benson <gbenson@redhat.com>
7807
7808 * inf-child.c (inf_child_fileio_open): Replace comment.
7809 (inf_child_fileio_pwrite): Likewise.
7810 (inf_child_fileio_pread): Likewise.
7811 (inf_child_fileio_fstat): Insert blank line before comment.
7812 (inf_child_fileio_close): Replace comment.
7813 (inf_child_fileio_unlink): Likewise.
7814 (inf_child_fileio_readlink): Likewise.
7815 * remote.c (remote_hostio_open): Likewise.
7816 (remote_hostio_pread): Likewise.
7817 (remote_hostio_pwrite): Likewise.
7818 (remote_hostio_close): Likewise.
7819 (remote_hostio_unlink): Likewise.
7820 (remote_hostio_readlink): Likewise.
7821 (remote_hostio_fstat): Likewise.
7822 (remote_filesystem_is_local): Likewise.
7823 * target.c (target_fileio_open): Likewise.
7824 (target_fileio_pwrite): Likewise.
7825 (target_fileio_pread): Likewise.
7826 (target_fileio_fstat): Insert blank line before comment.
7827 (target_fileio_close): Replace comment.
7828 (target_fileio_unlink): Likewise.
7829 (target_fileio_readlink): Likewise.
7830 (target_fileio_read_alloc): Likewise.
7831 (target_fileio_read_stralloc): Likewise.
7832
9bc3a976
GB
78332015-06-10 Gary Benson <gbenson@redhat.com>
7834
7835 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7836 (check_pid_namespace_match): Use linux_ns_same rather than
7837 linux_proc_pid_get_ns to spot PID namespace mismatches.
7838 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7839 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7840
4b8b5e72
GB
78412015-06-10 Gary Benson <gbenson@redhat.com>
7842
7843 * configure.ac (AC_CHECK_FUNCS): Add setns.
7844 * config.in: Regenerate.
7845 * configure: Likewise.
7846 * nat/linux-namespaces.h: New file.
7847 * nat/linux-namespaces.c: Likewise.
7848 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7849 (linux-namespaces.o): New rule.
7850 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7851 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7852 * config/arm/linux.mh (NATDEPFILES): Likewise.
7853 * config/i386/linux.mh (NATDEPFILES): Likewise.
7854 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7855 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7856 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7857 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7858 * config/mips/linux.mh (NATDEPFILES): Likewise.
7859 * config/pa/linux.mh (NATDEPFILES): Likewise.
7860 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7861 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7862 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7863 * config/s390/linux.mh (NATDEPFILES): Likewise.
7864 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7865 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7866 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7867 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7868
ca095836
GB
78692015-06-10 Gary Benson <gbenson@redhat.com>
7870
7871 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7872 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7873 (make_cleanup_close): Likewise.
7874 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7875 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7876 (make_cleanup_close): Likewise.
7877
5d9c55d3
JT
78782015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7879
7880 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7881 from SuspendThread().
7882
040ea00b
JT
78832015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7884
7885 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7886 from OutputDebugString.
7887
7d73c23c
WT
78882015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7889 Mircea Gherzan <mircea.gherzan@intel.com>
7890
7891 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7892 MPX_BT_MASK_32): New macros.
7893 (i386_mpx_set_bounds): New function that implements
7894 the command "set-mpx-bound".
7895 (i386_mpx_enabled): Helper function to test MPX availability.
7896 (i386_mpx_bd_base): Helper function to calculate the base directory
7897 address.
7898 (i386_mpx_get_bt_entry): Helper function to access a bound
7899 table entry.
7900 (i386_mpx_print_bounds): Effectively display bound information.
7901 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7902 "show mpx".
7903 (_initialize_i386_tdep):
7904 Add "bound" to the commands "show mpx" and "set mpx" commands.
7905 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7906 and "show mpx" commands.
7907 * NEWS: List new commands for MPX support.
7908
3ac2e371
GB
79092015-06-09 Gary Benson <gbenson@redhat.com>
7910
7911 * common/fileio.h (fileio_to_host_mode): New declaration.
7912 * common/fileio.c (fileio_to_host_mode): New Function.
7913 * inf-child.c (inf_child_fileio_open): Process mode argument
7914 with fileio_to_host_mode.
7915
ecef18c5
GB
79162015-06-09 Gary Benson <gbenson@redhat.com>
7917
7918 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7919 conditional.
7920
e3dd7556
GB
79212015-06-05 Gary Benson <gbenson@redhat.com>
7922
7923 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7924 * remote.c (remote_filesystem_is_local): ...here.
7925
5b74bf7d
YQ
79262015-06-04 Yao Qi <yao.qi@linaro.org>
7927
7928 * gdbarch.c: Regenerate it.
7929
7f361056
JK
79302015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7931
7932 * arch-utils.c (default_infcall_munmap): New.
7933 * arch-utils.h (default_infcall_munmap): New declaration.
7934 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7935 (munmap_list_free, munmap_listp_free_cleanup): New.
7936 (struct setup_sections_data): Add field munmap_list_headp.
7937 (setup_sections): Call munmap_list_add.
7938 (compile_object_load): New variable munmap_list_head, initialize
7939 setup_sections_data.munmap_list_headp, return munmap_list_head.
7940 * compile/compile-object-load.h (struct munmap_list): New declaration.
7941 (struct compile_module): Add field munmap_list_head.
7942 (munmap_list_free): New declaration.
7943 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7944 munmap_list_head.
7945 (do_module_cleanup): Call munmap_list_free.
7946 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7947 * gdbarch.c: Regenerate.
7948 * gdbarch.h: Regenerate.
7949 * gdbarch.sh (infcall_munmap): New.
7950 * linux-tdep.c (linux_infcall_munmap): New.
7951 (linux_init_abi): Install it.
7952
3b462ec2
SM
79532015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7954
7955 PR gdb/15564
7956 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7957
8d683210
YQ
79582015-06-02 Yao Qi <yao.qi@linaro.org>
7959
7960 * i386-linux-nat.c: Include linux-nat.h.
7961
e0619de6
JK
79622015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7963 Jan Kratochvil <jan.kratochvil@redhat.com>
7964
7965 PR symtab/18392
7966 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7967 assertion.
7968 * dwarf2loc.c (chain_candidate): Likewise.
7969
bd16da51
YQ
79702015-06-01 Yao Qi <yao.qi@linaro.org>
7971
7972 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7973 (store_vfp_regs): Use PTRACE_SETREGSET.
7974
df9d7ec9
YQ
79752015-06-01 Yao Qi <yao.qi@linaro.org>
7976
7977 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7978 (fetch_fpregs): Likewise.
7979 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7980 (store_fpregs): Likewise.
7981
10766686
YQ
79822015-06-01 Yao Qi <yao.qi@linaro.org>
7983
7984 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7985 (fetch_regs): Likewise.
7986 (store_regs): Use PTRACE_SETREGSET.
7987 (store_register): Likewise.
7988
7efe48d1
YQ
79892015-06-01 Yao Qi <yao.qi@linaro.org>
7990
7991 * arm-linux-nat.c (arm_linux_read_description): Check whether
7992 kernel supports PTRACE_GETREGSET.
7993
433bbbf8
YQ
79942015-06-01 Yao Qi <yao.qi@linaro.org>
7995
7996 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7997 * linux-nat.c: ... here.
7998 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7999 to ...
8000 * linux-nat.h: ... here.
8001
ca9b78ce
YQ
80022015-06-01 Yao Qi <yao.qi@linaro.org>
8003
8004 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
8005 * i386-linux-nat.c: Likewise.
8006 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
8007 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
8008 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8009 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
8010 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8011
99cee7b7
EZ
80122015-05-30 Eli Zaretskii <eliz@gnu.org>
8013
8014 * go32-nat.c (go32_xfer_memory): Fix the return value to be
8015 compatible to what read_child and write_child return. This
8016 unbreaks that DJGPP build of GDB which was broken since v7.7.
8017
2147f5bd
MG
80182015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
8019
8020 * MAINTAINERS (Write After Approval): Add Martin Galvan.
8021
c8f6c93c
RM
80222015-05-29 Roland McGrath <mcgrathr@google.com>
8023
8024 PR gdb/18464
8025 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
8026 rather than internal_error for an unrecognized value.
8027
8c6a948d
MF
80282015-05-29 Max Filippov <jcmvbkbc@gmail.com>
8029
8030 * xtensa-tdep.c (xtensa_pseudo_register_read)
8031 (xtensa_pseudo_register_write): Don't alias last pseudo register
8032 to a1.
8033
8dd06f7a
DB
80342015-05-28 Don Breazeal <donb@codesourcery.com>
8035
8036 * infrun.c (follow_fork_inferior): Ensure the use of
8037 process-style ptids (pid,0,0) in verbose/debug "Detaching"
8038 messages.
8039
a051152b
DE
80402015-05-28 Doug Evans <dje@google.com>
8041
8042 * dwarf2read.c (record_line_ftype): Remove, duplicate.
8043
a56cc1ce
YQ
80442015-05-28 Yao Qi <yao.qi@linaro.org>
8045
8046 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
8047 (arm_linux_fetch_inferior_registers): Use
8048 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
8049 (arm_linux_store_inferior_registers): Likewise.
8050 (arm_linux_read_description): Don't set
8051 arm_linux_has_wmmx_registers.
8052 * arm-tdep.c (arm_gdbarch_init): Set
8053 tdep->have_wmmx_registers according target descriptions.
8054 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
8055 field.
8056
330c6ca9
YQ
80572015-05-28 Yao Qi <yao.qi@linaro.org>
8058
8059 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
8060 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
8061 instead of arm_linux_vfp_register_count.
8062 (store_vfp_regs): Likewise.
8063 (arm_linux_fetch_inferior_registers): Likewise.
8064 (arm_linux_store_inferior_registers): Likewise.
8065 (arm_linux_read_description): Don't set
8066 arm_linux_vfp_register_count.
8067 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
8068 Adjust.
8069 * arm-tdep.c (arm_gdbarch_init): Add assert on
8070 vfp_register_count.
8071 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8072 field to vfp_register_count. All users updated.
8073
d403db27
KH
80742015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
8075
8076 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8077 ELFOSABI_GNU binaries.
8078
d9b3de22
DE
80792015-05-27 Doug Evans <dje@google.com>
8080
8081 * dwarf2read.c (lnp_state_machine): New typedef.
8082 (lnp_reader_state): New typedef.
8083 (dwarf_record_line_1): Renamed from dwarf_record_line.
8084 All callers updated.
8085 (dwarf_record_line): New function.
8086 (init_lnp_state_machine): New function.
8087 (check_line_address): Replace p_record_line parameter with state.
8088 All callers updated.
8089 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8090 Update to record state in lnp_state_machine.
8091
924c2928
DE
80922015-05-27 Doug Evans <dje@google.com>
8093
8094 * dwarf2read.c (record_line_ftype): New typedef.
8095 (check_line_address): New function.
8096 (dwarf_decode_lines_1): Call it.
8097
27e0867f
DE
80982015-05-27 Doug Evans <dje@google.com>
8099
8100 * NEWS: Mention "set debug dwarf-line".
8101 * dwarf2read.c (dwarf_line_debug): New static global.
8102 (add_include_dir): Add debug dwarf-line support.
8103 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8104 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8105
4dcabcc2
DE
81062015-05-27 Doug Evans <dje@google.com>
8107
8108 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8109 All callers updated.
8110 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8111 * cp-support.h (cp_lookup_nested_symbol): Update.
8112
b2e2f908
DE
81132015-05-27 Doug Evans <dje@google.com>
8114
8115 PR symtab/18258
8116 * block.c (block_find_symbol): New function.
8117 (block_find_non_opaque_type): Ditto.
8118 (block_find_non_opaque_type_preferred): Ditto.
8119 * block.h (block_symbol_matcher_ftype): New typedef.
8120 (block_find_symbol): Declare.
8121 (block_find_non_opaque_type): Ditto.
8122 (block_find_non_opaque_type_preferred): Ditto.
8123 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8124 * psymtab.c (psym_lookup_symbol): Ditto.
8125 * symtab.c (basic_lookup_transparent_type_1): New function.
8126 (basic_lookup_transparent_type): Call it.
8127
f62fce35
YQ
81282015-05-27 Yao Qi <yao.qi@linaro.org>
8129
8130 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8131 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8132
5d98d3cd
YQ
81332015-05-27 Yao Qi <yao.qi@linaro.org>
8134
8135 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8136 before operator &&.
8137 (aarch64_record_load_store): Likewise.
8138
82c7be31
DE
81392015-05-26 Doug Evans <dje@google.com>
8140
8141 PR c++/18141, c++/18417.
8142 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8143 a typedef.
8144
b4f54984
DE
81452015-05-26 Doug Evans <dje@google.com>
8146
8147 * NEWS: Add entries for command renamings.
8148 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8149 All uses updated.
8150 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
8151 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8152 All uses updated.
8153 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8154 All callers updated. Fix spelling of DWARF in help text.
8155 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8156 All uses updated.
8157 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8158 All uses updated.
8159 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
8160 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
8161 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8162 All uses updated.
8163 (show_dwarf_always_disassemble): Renamed from
8164 show_dwarf2_always_disassemble. All callers updated.
8165 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8166 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
8167 "set/show dwarf max-cache-age". Rename
8168 "set/show dwarf2 always-disassemble" to
8169 "set/show dwarf always-disassemble". Rename
8170 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
8171 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8172
4ea6efe9
DE
81732015-05-26 Doug Evans <dje@google.com>
8174
8175 PR python/18438
8176 * python/py-lazy-string.c (stpy_convert_to_value): Use
8177 gdbpy_gdb_memory_error not PyExc_MemoryError.
8178 (gdbpy_create_lazy_string_object): Ditto.
8179
b93fd21d
AB
81802015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8181
8182 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8183
55b40027
AB
81842015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8185
8186 * tui/tui-regs.c (tui_reg_prev_command): New function.
8187 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8188 * reggroups.c (reggroup_prev): New function.
8189 * reggroups.h (reggroup_prev): Add declaration. Update comment.
8190
99afc88b
OJ
81912015-05-26 Omair Javaid <omair.javaid@linaro.org>
8192 Yao Qi <yao.qi@linaro.org>
8193
8194 * aarch64-linux-tdep.c: Include linux-record.h and
8195 record-full.h.
8196 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8197 (aarch64_syscall): New enum.
8198 (aarch64_canonicalize_syscall): New function.
8199 (aarch64_all_but_pc_registers_record): New function.
8200 (aarch64_linux_syscall_record): New function.
8201 (aarch64_linux_init_abi): Install AArch64 process record
8202 handler. Update to handle syscall recording.
8203 * aarch64-tdep.c: Include record.h and record-full.h.
8204 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8205 (struct aarch64_mem_r): Define.
8206 (aarch64_record_result): New enum.
8207 (struct insn_decode_record): Define.
8208 (insn_decode_record): New typedef.
8209 (aarch64_record_data_proc_reg): New function.
8210 (aarch64_record_data_proc_imm): New function.
8211 (aarch64_record_branch_except_sys): New function.
8212 (aarch64_record_load_store): New function.
8213 (aarch64_record_data_proc_simd_fp): New function.
8214 (aarch64_record_asimd_load_store): New function.
8215 (aarch64_record_decode_insn_handler): New function.
8216 (deallocate_reg_mem): New function.
8217 (aarch64_process_record): New function.
8218 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8219 New field.
8220 (aarch64_process_record): New extern declaration.
8221 * configure.tgt: Add linux-record.o to gdb_target_obs.
8222 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8223
c16a3f52
OJ
82242015-05-26 Omair Javaid <omair.javaid@linaro.org>
8225
8226 * NEWS: Add a note on process record-replay support on aarch64*-linux*
8227 targets.
8228
c9cf6e20
MG
82292015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
8230
8231 * amd64-tdep.c: Replace in_function_epilogue_p with
8232 stack_frame_destroyed_p throughout.
8233 * arch-utils.c: Ditto.
8234 * arch-utils.h: Ditto.
8235 * arm-tdep.c: Ditto.
8236 * breakpoint.c: Ditto.
8237 * gdbarch.sh: Ditto.
8238 * hppa-tdep.c: Ditto.
8239 * i386-tdep.c: Ditto.
8240 * mips-tdep.c: Ditto.
8241 * nios2-tdep.c: Ditto.
8242 * rs6000-tdep.c: Ditto.
8243 * s390-linux-tdep.c: Ditto.
8244 * score-tdep.c: Ditto.
8245 * sh-tdep.c: Ditto.
8246 * sparc-tdep.c: Ditto.
8247 * sparc-tdep.h: Ditto.
8248 * sparc64-tdep.c: Ditto.
8249 * spu-tdep.c: Ditto.
8250 * tic6x-tdep.c: Ditto.
8251 * tilegx-tdep.c: Ditto.
8252 * xstormy16-tdep.c: Ditto.
8253 * gdbarch.c, gdbarch.h: Re-generated.
8254
a4ea0946
AB
82552015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8256
8257 * NEWS: Mention 'tui enable' and 'tui disable'.
8258 * tui/tui.c (tui_enable_command): New function.
8259 (tui_disable_command): New function.
8260 (_initialize_tui): New function.
8261
b75c69bb
AB
82622015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8263
8264 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8265
c1b009ee
AB
82662015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8267
8268 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8269 buf_ptr is freed.
8270
880d1e40
AB
82712015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8272
8273 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8274 into ...
8275 (tui_set_layout_for_display_command): ...here, before calling
8276 tui_set_layout. Only set the layout if gdb has not already
8277 entered the TUI_FAILURE state.
8278
a0145030
AB
82792015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8280
8281 * tui/tui-layout.c (layout_completer): New function.
8282 (_initialize_tui_layout): Set completer on layout command.
8283
7bd0be3a
AB
82842015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8285
8286 * tui/tui-layout.c (tui_set_layout): Remove
8287 tui_register_display_type parameter. Remove all checking of this
8288 parameter, and reindent function. Update header comment.
8289 (tui_set_layout_for_display_command): Rename to...
8290 (tui_set_layout_by_name): ...this, and don't check for different
8291 register class types, don't pass a tui_register_display_type to
8292 tui_set_layout. Update header comment.
8293 (layout_names): Remove register set specific names.
8294 * tui/tui-layout.h (tui_set_layout): Remove
8295 tui_register_display_type parameter.
8296 * tui/tui.c (tui_rl_change_windows): Don't pass a
8297 tui_register_display_type to tui_set_layout.
8298 (tui_rl_delete_other_windows): Likewise.
8299 (tui_enable): Likewise.
8300 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8301 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8302 (TUI_GENERAL_REGS_NAME): Remove.
8303 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8304 (TUI_SPECIAL_REGS_NAME): Remove.
8305 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8306 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8307 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8308 (enum tui_register_display_type): Remove.
8309 (struct tui_layout_def): Remove regs_display_type and
8310 float_regs_display_type fields.
8311 (struct tui_data_info): Remove regs_display_type field.
8312 (tui_layout_command): Use new name for
8313 tui_set_layout_for_display_command.
8314 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8315 (tui_clear_win_detail): Don't initialise removed fields of
8316 win_info.
8317 * tui/tui-regs.c (tui_show_registers): Use new name for
8318 tui_set_layout_for_display_command.
8319 * tui/tui.h (tui_set_layout_for_display_command): Rename
8320 declaration to...
8321 (tui_set_layout_by_name): ...this.
8322 * printcmd.c (display_command): Remove tui related layout call,
8323 and reindent.
8324
0b6e5e10
JB
83252015-05-20 Joel Brobecker <brobecker@adacore.com>
8326
8327 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8328 (handle_inferior_event): New function.
8329
1da0522e
JB
83302015-05-20 Joel Brobecker <brobecker@adacore.com>
8331
8332 * ada-lang.c (to_fixed_array_type): Rename local variable
8333 typename into type_name.
8334
5fe75eec
JK
83352015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8336
8337 Fix ASAN crash for gdb.compile/compile.exp.
8338 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8339
a4063588
JK
83402015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8341
8342 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8343 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8344 * compile/compile-object-load.c (setup_sections, compile_object_load):
8345 Likewise.
8346 * compile/compile.c (compile_to_object): Likewise.
8347
37442ce1
DE
83482015-05-16 Doug Evans <xdje42@gmail.com>
8349
8350 * NEWS: Mention support for unbuffered Guile memory ports.
8351 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8352 (ioscm_lseek_address): Improve overflow calculation.
8353 (gdbscm_memory_port_fill_input): Add assert.
8354 (gdbscm_memory_port_write): Handle unbuffered ports.
8355 Handle large writes identical to Guile's fport_write.
8356 (gdbscm_memory_port_seek): Fix seeking past end check.
8357 (gdbscm_memory_port_close): Handle closing unbuffered port.
8358 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8359 (ioscm_init_memory_port): Handle unbuffered ports.
8360 (ioscm_reinit_memory_port): Ditto.
8361 (ioscm_init_memory_port): Update size calculation.
8362 (gdbscm_open_memory): Support zero sized ports.
8363
d976bace
JK
83642015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8365
8366 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8367 variable compiler warnings.
8368
4d18dfad
JK
83692015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8370
8371 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8372
36de76f9
JK
83732015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8374 Phil Muldoon <pmuldoon@redhat.com>
8375
8376 * NEWS (Changes since GDB 7.9): Add compile print.
8377 * compile/compile-c-support.c (add_code_header, add_code_footer)
8378 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8379 COMPILE_I_PRINT_VALUE_SCOPE.
8380 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8381 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8382 New.
8383 * compile/compile-object-load.c: Include block.h.
8384 (get_out_value_type): New function.
8385 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8386 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8387 OUT_VALUE_TYPE.
8388 * compile/compile-object-load.h (struct compile_module): Add fields
8389 out_value_addr and out_value_type.
8390 * compile/compile-object-run.c: Include valprint.h and compile.h.
8391 (struct do_module_cleanup): Add fields out_value_addr and
8392 out_value_type.
8393 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8394 COMPILE_I_PRINT_VALUE_SCOPE.
8395 (compile_object_run): Propagate out_value_addr and out_value_type.
8396 Pass OUT_VALUE_ADDR.
8397 * compile/compile.c: Include valprint.h.
8398 (compile_print_value, compile_print_command): New functions.
8399 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8400 (_initialize_compile): Update compile code help text. Install
8401 compile_print_command.
8402 * compile/compile.h (compile_print_value): New prototype.
8403 * defs.h (enum compile_i_scope_types): Add
8404 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8405
83d3415e
JK
84062015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8407
8408 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8409 Rely on its parameter count.
8410 (compile_object_load): Replace lookup_minimal_symbol_text by
8411 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8412 return value.
8413 * compile/compile-object-load.h (struct compile_module): Replace
8414 func_addr by func_sym.
8415 * compile/compile-object-run.c: Include block.h.
8416 (compile_object_run): Reset module variable after it is freed. Use
8417 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8418
3a9558c4
JK
84192015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8420
8421 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8422 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8423 (c_compute_program): Call generate_register_struct after typedefs.
8424 * compile/compile-loc2c.c (push, pushf_register_address)
8425 (pushf_register): Cast to GCC_UINTPTR.
8426 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8427 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8428 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8429 * compile/compile.c (_initialize_compile): Enable warnings for
8430 COMPILE_ARGS.
8431
5c65b58a
JK
84322015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8433
8434 * cli/cli-script.c (execute_control_command): Update
8435 eval_compile_command caller.
8436 * compile/compile-object-load.c (compile_object_load): Add parameters
8437 scope and scope_data. Set them.
8438 * compile/compile-object-load.h (struct compile_module): Add fields
8439 scope and scope_data.
8440 (compile_object_load): Add parameters scope and scope_data.
8441 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8442 scope and scope_data.
8443 (compile_object_run): Propagate the fields scope and scope_data.
8444 * compile/compile.c (compile_file_command, compile_code_command):
8445 Update eval_compile_command callers.
8446 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8447 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8448 * defs.h (struct command_line): Add field scope_data.
8449
1c88ceb1
JK
84502015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8451
8452 * printcmd.c (struct format_data): Move it to valprint.h.
8453 (print_command_parse_format, print_value): New functions from ...
8454 (print_command_1): ... here. Call them.
8455 * valprint.h (struct format_data): Move it here from printcmd.c.
8456 (print_command_parse_format, print_value): New declarations.
8457
0b738f27
JK
84582015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8459
8460 * compile/compile-object-load.c (compile_object_load): Add
8461 COMPILE_DEBUG message.
8462
aa715135
JG
84632015-05-15 Jerome Guitton <guitton@adacore.com>
8464
8465 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8466 index to get element instead of enum value.
8467 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8468 of index to compute length, but enum values to compute bounds.
8469 (ada_array_length): Use enum position of index instead of enum value.
8470 (pos_atr): Move position computation to...
8471 (ada_evaluate_subexp): Use enum values to compute bounds.
8472 * gdbtypes.c (discrete_position): ...this new function.
8473 * gdbtypes.h (discrete_position): New function declaration.
8474 * valprint.c (val_print_array_elements): Call discrete_position
8475 to handle array indexed by non-contiguous enumeration types.
8476
931e5bc3
JG
84772015-05-15 Jerome Guitton <guitton@adacore.com>
8478
8479 * ada-lang.c (find_parallel_type_by_descriptive_type):
8480 Go through typedefs during lookup.
8481 (to_fixed_array_type): Add support for non-bit packed arrays
8482 as variable-length fields.
8483
4e63d0ac
PA
84842015-05-15 Pedro Alves <palves@redhat.com>
8485 Simon Marchi <simon.marchi@ericsson.com>
8486
8487 * event-loop.c (gdb_notifier) <next_file_handler,
8488 next_poll_fds_index>: New fields.
8489 (get_next_file_handler_to_handle_and_advance): New function.
8490 (delete_file_handler): If deleting the next file handler to
8491 handle, advance to the next file handler.
8492 (gdb_wait_for_event): Bail early if no event fired. Poll file
8493 handlers in round-robin fashion.
8494
52e48b36
PA
84952015-05-15 Pedro Alves <palves@redhat.com>
8496
8497 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8498 'private' to 'priv'.
8499
2465e12e
PA
85002015-05-15 Pedro Alves <palves@redhat.com>
8501
8502 * nat/linux-nat.h: Include "target/waitstatus.h".
8503
13fa0398
YZ
85042015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8505
8506 * python/py-unwind.c (struct reg_info): Move out of ...
8507 (struct cached_frame_info): ... this scope.
8508 (pending_frame_object_type, unwind_info_object_type): Make extern.
8509
9cd4d857
JB
85102015-05-15 Joel Brobecker <brobecker@adacore.com>
8511
8512 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8513 accumSize is never negative.
8514
e3555239
PP
85152015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8516
8517 * tui/tui-command.c: Remove include of <ctype.h>.
8518 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8519
08a76f8a
MG
85202015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8521
8522 * dwarf2read.c (die_needs_namespace): Return 1 for
8523 DW_TAG_inlined_subroutine.
8524
bd49952b
JK
85252015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8526
8527 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8528 (regcache_cpy_no_passthrough): Make it static, add function comment.
8529 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8530 (regcache_cpy_no_passthrough): Remove declaration.
8531
46c03469
JK
85322015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8533
8534 * gdbthread.h (struct thread_control_state): Update comment for
8535 proceed_to_finish.
8536 * infcall.c (run_inferior_call): Update comment about
8537 proceed_to_finish.
8538 * infcmd.c (get_return_value): Update comment about stop_registers.
8539 (finish_forward): Update comment about proceed_to_finish.
8540 * infrun.c (stop_registers): Remove.
8541 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8542 * infrun.h (stop_registers): Remove.
8543
8a6c4031
JK
85442015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8545
8546 * infcall.c (struct dummy_frame_context_saver)
8547 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8548 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8549 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8550 New.
8551 (call_function_by_hand_dummy): Move discard_cleanups of
8552 inf_status_cleanup before dummy_frame_push. Call
8553 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8554 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8555 * infcall.h (struct dummy_frame_context_saver)
8556 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8557 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8558 New declarations.
8559 * infcmd.c: Include infcall.h.
8560 (get_return_value): Add parameter ctx_saver, use it instead of
8561 stop_registers.
8562 (print_return_value): Add parameter ctx_saver, pass it.
8563 (struct finish_command_continuation_args): Add field ctx_saver.
8564 (finish_command_continuation): Update print_return_value caller.
8565 (finish_command_continuation_free_arg): Free also ctx_saver.
8566 (finish_forward): Call dummy_frame_context_saver_setup.
8567 * inferior.h (struct dummy_frame_context_saver): New declaration.
8568 (get_return_value): Add parameter ctx_saver.
8569 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8570 get_return_value caller.
8571
10989690
JK
85722015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8573
8574 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8575 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8576 (remove_dummy_frame): Process dtor_list.
8577 (pop_dummy_frame): Process dtor_list.
8578 (register_dummy_frame_dtor): Maintain dtor_list.
8579 (find_dummy_frame_dtor): Handle dtor_list.
8580 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8581 Update comments.
8582
5e970501
JK
85832015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8584
8585 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8586 registers_valid.
8587 (compile_object_run): Update do_module_cleanup caller.
8588 * dummy-frame.c: Include infcall.h.
8589 (struct dummy_frame): Update dtor comment.
8590 (remove_dummy_frame): Call dtor.
8591 (pop_dummy_frame): Update dtor caller.
8592 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8593 registers_valid.
8594
1c4eb778
JB
85952015-05-13 Joel Brobecker <brobecker@adacore.com>
8596
8597 GDB 7.9.1 released.
8598
f5f85ab9
JB
85992015-05-13 Joel Brobecker <brobecker@adacore.com>
8600
8601 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8602 Xmethods now being able to specify a result type to that new
8603 sectioin.
8604
242cd84c
PP
86052015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8606
8607 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8608 first before resizing the window.
e3555239 8609 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
8610
86112015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
8612
8613 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8614 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8615 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8616 dummy_dtor parameter.
8617 * infcall.h: Include dummy-frame.h.
8618 (call_function_by_hand_dummy_dtor_ftype): Remove.
8619 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8620 parameter.
8621
ebfd00d2
PP
86222015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8623
8624 PR gdb/17820
8625 * top.c (history_size_setshow_var): Change type to signed.
8626 Initialize to -2. Update documentation.
8627 (set_readline_history_size): Define.
8628 (set_history_size_command): Use it. Remove logic for handling
8629 out-of-range sizes.
8630 (init_history): Use set_readline_history_size(). Test for a
8631 value of -2 instead of 0 when determining whether to set a
8632 default history size.
8633 (init_main): Decode the argument of the "size" command as a
8634 zuinteger_unlimited.
8635
83769d0b
DE
86362015-05-12 Doug Evans <dje@google.com>
8637
8638 * dwarf2read.c (struct file_entry): Tweak comments.
8639 (get_debug_line_section): Tweak comments.
8640
0d71eef5
DB
86412015-05-12 Don Breazeal <donb@codesourcery.com>
8642
8643 * NEWS: Announce fork support in the RSP and support
8644 for fork debugging in extended mode.
8645
cbb8991c
DB
86462015-05-12 Don Breazeal <donb@codesourcery.com>
8647
8648 * remote.c (remote_insert_fork_catchpoint): New function.
8649 (remote_remove_fork_catchpoint): New function.
8650 (remote_insert_vfork_catchpoint): New function.
8651 (remote_remove_vfork_catchpoint): New function.
8652 (pending_fork_parent_callback): New function.
8653 (remove_new_fork_child): New function.
8654 (remote_update_thread_list): Call remote_notif_get_pending_events
8655 and remove_new_fork_child.
8656 (extended_remote_kill): Kill fork child when killing the
8657 parent before follow_fork completes.
8658 (init_extended_remote_ops): Initialize target vector with
8659 new fork catchpoint functions.
8660
c269dbdb
DB
86612015-05-12 Don Breazeal <donb@codesourcery.com>
8662
8663 * remote.c (remove_vfork_event_p): New function.
8664 (remote_follow_fork): Add vfork event type to event checking.
8665 (remote_parse_stop_reply): New stop reasons "vfork" and
8666 "vforkdone" for RSP 'T' Stop Reply Packet.
8667
de0d863e
DB
86682015-05-12 Don Breazeal <donb@codesourcery.com>
8669
8670 * linux-nat.c (linux_nat_ptrace_options): New function.
8671 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8672 Call linux_nat_ptrace_options and use different argument to
8673 linux_enable_event_reporting.
8674 (_initialize_linux_nat): Delete call to
8675 linux_ptrace_set_additional_flags.
c8f6c93c 8676 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
8677 supported_ptrace_options.
8678 (additional_flags): Delete variable.
8679 (linux_check_ptrace_features): Use supported_ptrace_options.
8680 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8681 Likewise, and remove additional_flags check.
8682 (linux_enable_event_reporting): Change 'attached' argument to
8683 'options'. Use supported_ptrace_options.
c8f6c93c 8684 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
8685 supported_ptrace_options.
8686 (linux_ptrace_set_additional_flags): Delete function.
8687 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8688 Delete function prototype.
8689 * remote.c (remote_fork_event_p): New function.
8690 (remote_detach_pid): New function.
8691 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8692 if doing detach-on-fork.
8693 (remote_follow_fork): New function.
8694 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8695 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8696 (init_extended_remote_ops): Initialize to_follow_fork.
8697
89245bc0
DB
86982015-05-12 Don Breazeal <donb@codesourcery.com>
8699
8700 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8701 from static to extern.
8702 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8703 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8704 * PACKET_vfork_event_feature>: New enumeration constants.
8705 (remote_protocol_features): Add table entries for new packets.
8706 (remote_query_supported): Add new feature queries to qSupported
8707 packet.
8708
835205d0
GB
87092015-05-12 Gary Benson <gbenson@redhat.com>
8710
8711 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8712 for fake PIDs as well as real ones.
8713 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8714
4c082a81
SC
87152015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8716
8717 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8718 * python/py-value.c (valpy_reference_value): New function.
8719 (valpy_const_value): Likewise.
8720 (value_object_methods): Add new methods.
8721 * value.c (make_cv_value): New function.
8722 * value.h (make_cv_value): Declare.
8723
afa6c9ab
SL
87242015-05-08 Yao Qi <yao@codesourcery.com>
8725 Sandra Loosemore <sandra@codesourcery.com>
8726
8727 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8728 to 'lh->include_dirs' before accessing to it.
8729 (psymtab_include_file_name): Likewise.
8730 (dwarf_decode_lines_1): Likewise.
8731 (dwarf_decode_lines): Likewise.
8732 (file_file_name): Likewise.
8733
35d54293
SL
87342015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8735
8736 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8737 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8738 (nios2_linux_rt_sigreturn_init): Adjust base address of
8739 register save area.
8740
b73c49b7
SL
87412015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8742
8743 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8744 "trap 31" as the breakpoint instruction on all targets.
8745
dd9f02a0
JK
87462015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8747
8748 * infcmd.c (print_return_value): Remove unused declaration.
8749
6ad395a7
JB
87502015-05-08 Joel Brobecker <brobecker@adacore.com>
8751
8752 * dwarf2read.c (attr_to_dynamic_prop)
8753 <DW_AT_data_member_location>: Use read_type_die isntead of
8754 get_die_type.
8755
8344af1e
JB
87562015-05-08 Joel Brobecker <brobecker@adacore.com>
8757
8758 * ada-lang.c (ada_convert_actual): Add handling of formals
8759 passed inside an aligner type.
8760
80b0912b
JB
87612015-05-08 Joel Brobecker <brobecker@adacore.com>
8762
8763 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8764
df2eb078
SC
87652015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8766
8767 PR python/18291
8768 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8769 Print xmethod matcher status.
8770
2492f0d0
AA
87712015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8772
8773 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8774 register in the regcache when treating the PSWM register, and vice
8775 versa.
8776
1c56a84d
GB
87772015-05-07 Gary Benson <gbenson@redhat.com>
8778
8779 * linux-thread-db.c (struct thread_db_info)
8780 <td_ta_map_id2thr_p>: Remove field.
8781 (try_thread_db_load_1): Remove initialization for the above.
8782
74850322
GB
87832015-05-07 Gary Benson <gbenson@redhat.com>
8784
8785 * linux-thread-db.c (struct thread_db_info)
8786 <td_thr_validate_p>: Remove field.
8787 (try_thread_db_load_1): Remove initialization for the above.
8788
e26efa40
JK
87892015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8790
8791 * compile/compile-object-load.c (compile_object_load): Support
8792 mst_text_gnu_ifunc.
8793
851c9091
JK
87942015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8795
8796 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8797 const. Use new variables for the const compatibility.
8798 (eval_compile_command): Make the cmd_string parameter const.
8799 * compile/compile.h (eval_compile_command): Make the cmd_string
8800 parameter const.
8801
f218b647
JB
88022015-05-06 Joel Brobecker <brobecker@adacore.com>
8803
8804 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8805 comment.
8806 * top.c (deprecated_init_ui_hook): Delete.
8807 (gdb_init): Remove handling of deprecated_init_ui_hook.
8808 * interps.c (clear_interpreter_hooks): Remove handling of
8809 deprecated_init_ui_hook.
8810 * main.c (captured_main): Update comment.
8811
b30a0bc3
JB
88122015-05-06 Joel Brobecker <brobecker@adacore.com>
8813
8814 * solib.c (_initialize_solib): Add "info dll" alias creation.
8815 * windows-nat.c (set_windows_aliases): Delete.
8816 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8817 assignment.
8818 * NEWS: Add news entry about "info dll" now being available
8819 on all platforms.
8820
7c512744
JB
88212015-05-05 Joel Brobecker <brobecker@adacore.com>
8822
8823 * ada-lang.c (value_assign_to_component): Reformat and improve
8824 documentation. Remove all trailing spaces.
8825
0fa7fe50
JB
88262015-05-05 Joel Brobecker <brobecker@adacore.com>
8827
8828 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8829 Stop counting inlined frames as soon as an out-of-line function
8830 is found.
8831
3ea89b92
PMR
88322014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8833
8834 * dwarf2read.c (inherit_abstract_dies): Skip
8835 DW_TAG_GNU_call_site dies while inheriting children of an
8836 abstract DIE into a scope.
8837 (read_lexical_block_scope): Inherit abstract DIE's for
8838 lexical scopes.
8839
2478d075
JB
88402015-05-05 Joel Brobecker <brobecker@adacore.com>
8841
8842 * ada-valprint.c (val_print_packed_array_elements): Delete
8843 variable "len". Add a type-length check when comparing two
8844 consecutive elements of the array. Use the element's actual
8845 length in call to value_contents_eq.
8846 * ada-lang.c (ada_value_primitive_packed_val): Always return
8847 a value whose type has been resolved.
8848
fc958966
JB
88492015-05-05 Joel Brobecker <brobecker@adacore.com>
8850
8851 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8852 BIT_SIZE and LEN if the size of the resolved type is smaller
8853 than BIT_SIZE * HOST_CHAR_BIT.
8854
ca34b84f
JB
88552015-05-05 Joel Brobecker <brobecker@adacore.com>
8856
8857 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8858 correct address in call to value_at. Adjust call to
8859 value_address accordingly.
8860
62c67f3c
JB
88612015-05-05 Joel Brobecker <brobecker@adacore.com>
8862
8863 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8864 to print it.
8865
c3345124
JB
88662015-05-05 Joel Brobecker <brobecker@adacore.com>
8867
8868 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8869 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8870 pinfo->valaddr.
8871 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8872 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8873 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8874 Add handling of addr_stack->valaddr.
8875 (resolve_dynamic_type): Add "valaddr" parameter.
8876 Set pinfo.valaddr field.
8877 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8878 resolve_dynamic_type.
8879 (ada_discrete_type_low_bound): Likewise.
8880 * findvar.c (default_read_var_value): Likewise.
8881 * value.c (value_from_contents_and_address): Likewise.
8882
75ea5859
JB
88832015-05-05 Joel Brobecker <brobecker@adacore.com>
8884
8885 * gdbtypes.c (resolve_dynamic_array): Use
8886 create_array_type_with_stride instead of create_array_type.
8887
0952813b
DD
88882015-04-30 DJ Delorie <dj@redhat.com>
8889
8890 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8891 rl78_decode_opcode
8892
2ce1cdbf
DE
88932015-04-29 Doug Evans <dje@google.com>
8894
8895 PR python/18285
8896 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8897 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8898 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8899 * extension-priv.h (struct extension_language_ops)
8900 <get_xmethod_result_type>: New member.
8901 * extension.c (get_xmethod_result_type): New function.
8902 * extension.h (get_xmethod_result_type): Declare.
8903 * python/py-xmethods.c (get_result_type_method_name): New static
8904 global.
8905 (py_get_result_type_method_name): Ditto.
8906 (gdbpy_get_xmethod_result_type): New function.
8907 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8908 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8909 * python/python.c (python_extension_ops): Add
8910 gdbpy_get_xmethod_result_type.
8911 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8912 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8913 xmethods.
8914 (value_x_unop): Ditto.
8915 * value.c (result_type_of_xmethod): New function.
8916 * value.h (result_type_of_xmethod): Declare.
8917
998d2a3e
GB
89182015-04-29 Gary Benson <gbenson@redhat.com>
8919
8920 * solib.c (solib_find_1): Allow fd argument to be NULL.
8921 (exec_file_find): Update comment.
8922 (solib_find): Likewise.
8923 * exec.c (exec_file_locate_attach): Use NULL as fd
8924 argument to exec_file_find to avoid having to close
8925 the opened file.
8926 * infrun.c (follow_exec): Likewise.
8927
34f5f757
DE
89282015-04-28 Doug Evans <dje@google.com>
8929
8930 PR python/18299
8931 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8932 name or __name__ attributes. Handle gdb module as first argument.
8933
69b4374a
DE
89342015-04-28 Doug Evans <dje@google.com>
8935
8936 PR python/18089
8937 * python/py-prettyprint.c (print_children): Verify result of children
8938 iterator. Provide better error message.
8939 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8940 * python/python.c (gdbpy_print_python_errors_p): New function.
8941
5e7cf078
DE
89422015-04-28 Doug Evans <dje@google.com>
8943
8944 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8945
59fb7612
SS
89462015-04-28 Sasha Smundak <asmundak@google.com>
8947
8948 * NEWS: Mention gdb.Type.optimized_out method.
8949 * python/py-type.c (typy_optimized_out): New function.
8950
cea6e4f1
JB
89512015-04-28 John Baldwin <jhb@FreeBSD.org>
8952
8953 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8954
24b73f8e
PP
89552015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8956
8957 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8958 (initialize_utils): Move call of init_page_info() to ...
8959 * top.c (gdb_init): ... here.
8960
a88d0bb3
PP
89612015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8962
8963 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8964 (tui_sigwinch_handler): Still update our idea of
8965 the terminal's width and height even when TUI is not active.
8966
d6e5e7f7
PP
89672015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8968
8969 * utils.h (set_screen_width_and_height): Declare.
8970 * utils.c (set_screen_width_and_height): Define.
8971 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8972
ff862be4
GB
89732015-04-28 Gary Benson <gbenson@redhat.com>
8974
8975 * infrun.c (solist.h): New include.
8976 (follow_exec): Use exec_file_find to prefix execd_pathname
8977 with gdb_sysroot.
8978
2eb639cb
PP
89792015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8980
8981 * tui/tui-source.c (tui_set_source_content): Avoid calling
8982 strcpy() when offset is 0.
8983
97206799
PP
89842015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8985
8986 PR gdb/18155
8987 * tui/tui-data.c (tui_free_window): Don't free the locator
8988 window when passed an SRC_WIN or a DISASSEM_WIN.
8989
63ed8182
PP
89902015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8991
8992 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8993 (tui_win_content): Move declaration.
8994 (struct tui_gen_win_info): Give 'content' field the
8995 type tui_win_content.
8996 * tui/tui-data.c (init_content_element): Remove redundant and
8997 erroneous casts.
8998 (tui_add_content_elements): Remove erroneous cast.
8999 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
9000 casts.
9001 (tui_get_begin_asm_address): Likewise.
9002 * tui/tui-regs.c (tui_show_registers): Likewise.
9003 (tui_show_register_group): Likewise.
9004 (tui_display_registers_from): Likewise.
9005 (tui_check_register_values): Likewise.
9006 * tui/tui-source.c (tui_set_source_content): Likewise.
9007 (tui_set_source_content_nil): Likewise.
9008 (tui_source_is_displayed): Likewise.
9009 * tui/tui-stack.c (tui_show_locator_content): Likewise.
9010 (tui_set_locator_fullname): Likewise.
9011 (tui_set_locator_info): Likewise.
9012 (tui_show_frame_info): Likewise.
9013 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
9014 (tui_show_source_line): Likewise.
9015 (tui_horizontal_source_scroll): Likewise.
9016 (tui_update_breakpoint_info): Likewise.
9017 (tui_set_exec_info_content): Likewise.
9018 (tui_show_exec_info_content): Likewise.
9019 (tui_alloc_source_buffer): Likewise.
9020 (tui_line_is_displayed): Likewise.
9021 (tui_addr_is_displayed): Likewise.
9022
d2b41ca0
JB
90232015-04-27 John Baldwin <jhb@FreeBSD.org>
9024
9025 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
9026 event if PL_FLAG_EXEC is set.
9027 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
9028 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
9029 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
9030 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
9031 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
9032
e58e05d6
JB
90332015-04-27 John Baldwin <jhb@FreeBSD.org>
9034
9035 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
9036 [TDP_RFPPWAIT] New variable fbsd_pending_children.
9037 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
9038 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
9039 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
9040 [PT_LWPINFO] (fbsd_wait): New function.
9041 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
9042 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
9043 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
9044 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
9045 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
9046 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
9047 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
9048 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
9049 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
9050 "fbsd_wait".
9051 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
9052 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
9053 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
9054 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
9055 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
9056 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
9057 Set "to_post_attach" to "fbsd_post_attach".
9058
8f60fe01
JB
90592015-04-27 John Baldwin <jhb@FreeBSD.org>
9060
9061 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
9062 (fbsd_find_memory_regions): Mark static.
9063 (fbsd_nat_add_target): New function.
9064 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
9065 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
9066 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9067 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
9068 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
9069 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9070
5fbae7d1
GB
90712015-04-27 Gary Benson <gbenson@redhat.com>
9072
9073 * objfiles.c (allocate_objfile): Do not attempt to expand name
9074 if name is a "target:" filename.
9075 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9076 to load auto-load scripts for objfiles with "target:" filenames.
9077
417c80f9
AA
90782015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9079
9080 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9081 (enum s390_vector_abi_kind): New enum.
9082 (struct gdbarch_tdep)<vector_abi>: New field.
9083 (s390_effective_inner_type): Add parameter min_size. Stop
9084 unwrapping if the inner type is smaller than min_size.
9085 (s390_function_arg_float): Adjust call to
9086 s390_effective_inner_type.
9087 (s390_function_arg_vector): New function.
9088 (s390_function_arg_integer): Adjust comment.
9089 (struct s390_arg_state)<vr>: New field.
9090 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
9091 arguments according to vector ABI when appropriate.
9092 (s390_push_dummy_call): Initialize the argument state's field
9093 'vr'. Adjust calls to s390_handle_arg.
9094 (s390_register_return_value): Handle vector return values.
9095 (s390_return_value): Apply the "register" return value convention
9096 to a vector when appropriate.
9097 (s390_gdbarch_init): Initialize tdep->vector_abi.
9098 * NEWS: Announce S390 vector ABI support.
9099
4e65a17e
AA
91002015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9101
9102 * s390-linux-tdep.c (s390_return_value_convention): Remove
9103 function. Inline its logic...
9104 (s390_return_value): ...here. Instead, move the handling of the
9105 "register" return value convention...
9106 (s390_register_return_value): ...here. New function.
9107
80f75320
AA
91082015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9109
9110 * s390-linux-tdep.c
9111 (is_float_singleton): Remove function. Move the "singleton" part
9112 of the logic...
9113 (s390_effective_inner_type): ...here. New function.
9114 (is_float_like): Remove function. Inline its logic...
9115 (s390_function_arg_float): ...here.
9116 (is_pointer_like, is_integer_like, is_struct_like): Remove
9117 functions. Inline their logic...
9118 (s390_function_arg_integer): ...here.
9119 (s390_function_arg_pass_by_reference): Remove function.
9120 (extend_simple_arg): Remove function.
9121 (alignment_of): Remove function.
9122 (struct s390_arg_state): New structure.
9123 (s390_handle_arg): New function.
9124 (s390_push_dummy_call): Move parameter placement logic to the new
9125 function s390_handle_arg. Call it for calculating the stack area
9126 sizes first, and again for actually writing the parameters.
9127
6dbc9c04
AA
91282015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9129
9130 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
9131 false if the argument is zero.
9132
9e195661
PMR
91332015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
9134
9135 * ada-lang.c (template_to_static_fixed_type): Return input type
9136 when it is already fixed. Cache the input type itself when not
9137 creating a static fixed copy. Make it explicit that we never
9138 molestate the input type.
9139 * gdbtypes.c (resolve_dynamic_struct): Reset the
9140 TYPE_TARGET_TYPE field for resolved copies.
9141
460efde1
JB
91422015-04-27 Joel Brobecker <brobecker@adacore.com>
9143
9144 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9145 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9146 (template_to_static_fixed_type): Call ada_check_typedef only
9147 when necessary.
9148
6faec16b
AB
91492015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9150
9151 * cli/cli-dump.c (srec_dump_command): Add internationalization
9152 mark ups.
9153 (ihex_dump_command): Likewise.
9154 (tekhex_dump_command): Likewise.
9155 (binary_dump_command): Likewise.
9156 (binary_append_command): Likewise.
9157
cf75d6c3
AB
91582015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9159
9160 * cli/cli-dump.c (verilog_cmdlist): New variable.
9161 (dump_verilog_memory): New function.
9162 (dump_verilog_value): New function.
9163 (verilog_dump_command): New function.
9164 (_initialize_cli_dump): Add new commands to support verilog dump
9165 format.
9166 * NEWS: Add entry for "dump verilog".
9167
8cd00c59
PMR
91682015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
9169
9170 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9171 descriptive type when there is none.
9172
8900d71e
PP
91732015-04-23 Patrick Palka <patrick@parcs.ath.cx>
9174
9175 * tui/tui-win.c (tui_async_resize_screen): Call
9176 rl_resize_terminal().
9177
f16eab5f
JT
91782015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9179
9180 * windows-nat.c (handle_output_debug_string): Don't change
9181 current_event.dwThreadId.
9182 (get_windows_debug_event): Use thread_id, rather than relying on
9183 current_event.dwThreadId being changed.
9184
68ffc902
JT
91852015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9186
9187 * windows-nat.c (windows_continue): Report an error if
9188 ContinueDebugEvent() fails.
9189
23942819
JT
91902015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9191
9192 * windows-nat.c (windows_resume): Fix misspelling in debug output.
9193
e6ad66bd
JT
91942015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9195
9196 * windows-nat.c (get_windows_debug_event): Replace retval with
9197 thread_id throughout. Update stale comment.
9198
776704b9
JT
91992015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9200
9201 * windows-nat.c (get_windows_debug_event): Don't use ternary
9202 conditional operator.
9203
8aae4344
PM
92042015-04-21 Pierre Muller <muller@sourceware.org>
9205
9206 PR pascal/17815
9207 p-exp.y (yylex): Reorganize code to return the matched pattern
9208 for a field of this.
9209
819843c7
GB
92102015-04-21 Gary Benson <gbenson@redhat.com>
9211
9212 * common/fileio.h (fileio_to_host_openflags): New declaration.
9213 * common/fileio.c (fcntl.h): New include.
9214 (fileio_to_host_openflags): New function, factored out from...
9215 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9216 Single use updated.
9217
0bca7f99
KB
92182015-04-21 Kevin Buettner <kevinb@redhat.com>
9219
9220 * rl78-tdep.c (RL78_SP_ADDR): Define.
9221 (opc_reg_to_gdb_regnum): New static function.
9222 (rl78_analyze_prologue): Recognize instructions forming slightly
9223 more interesting prologues.
9224
e771e4be
PMR
92252015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9226
9227 Revert:
9228 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9229 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9230 TYPE_CODE_REF types so that they are not considered as dynamic
9231 depending on the referenced type.
9232 (resolve_dynamic_type_internal): Likewise.
9233
ee715b5a
PMR
92342015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9235
9236 Revert:
9237 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9238 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9239 "top_level" parameter.
9240 (resolve_dynamic_type_internal): Remove the unused "top_level"
9241 parameter. Update call to is_dynamic_type_internal.
9242 (is_dynamic_type): Update call to is_dynamic_type_internal.
9243 (resolve_dynamic_range): Update call to
9244 resolve_dynamic_type_internal.
9245 (resolve_dynamic_union): Likewise.
9246 (resolve_dynamic_struct): Likewise.
9247 (resolve_dynamic_type): Likewise.
9248
e31d7699
GKB
92492015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9250
9251 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9252 xmalloc.
9253
d214e5e7
TS
92542015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9255
110f9112
TS
9256 * reply_mig_hack.awk: Robustify parsing.
9257
d214e5e7
TS
9258 * reply_mig_hack.awk: Don't bother to declare an intermediate
9259 function pointer variable.
9260
8f61baf8
DE
92612015-04-17 Doug Evans <dje@google.com>
9262
9263 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9264 to "exec_displacement" to avoid confusion with inner use of the name.
9265
dbbf180a
YQ
92662015-04-17 Pedro Alves <palves@redhat.com>
9267
9268 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9269 if HW point of TYPE isn't supported.
9270
059790a0
YQ
92712015-04-17 Yao Qi <yao.qi@linaro.org>
9272 Pedro Alves <palves@redhat.com>
9273
9274 * target.h (target_can_use_hardware_watchpoint): Update comments.
9275 Remove trailing ";".
9276
1b6e6f5c
GB
92772015-04-17 Gary Benson <gbenson@redhat.com>
9278
9279 * remote.c (remote_add_inferior): New argument try_open_exec.
9280 If nonzero, attempt to open the inferior's executable file as
9281 the main executable if no main executable is open already.
9282 All callers updated.
9283 * NEWS: Mention that GDB now supports automatic location and
9284 retrieval of executable + files from remote targets.
9285
c78fa86a
GB
92862015-04-17 Gary Benson <gbenson@redhat.com>
9287
9288 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9289 * remote.c (PACKET_qXfer_exec_file): Likewise.
9290 (remote_protocol_features): Register the
9291 "qXfer:exec-file:read" feature.
9292 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9293 (remote_pid_to_exec_file): New function.
9294 (init_remote_ops): Initialize to_pid_to_exec_file.
9295 (_initialize_remote): Register new "set/show remote
9296 pid-to-exec-file-packet" command.
9297 * NEWS: Announce new qXfer:exec-file:read packet.
9298
e0d86d2c
GB
92992015-04-17 Gary Benson <gbenson@redhat.com>
9300
9301 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9302 New declaration.
9303 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9304 New function, factored out from...
9305 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9306
a9a5a3d1
GB
93072015-04-17 Gary Benson <gbenson@redhat.com>
9308
9309 * exec.c (solist.h): New include.
9310 (exec_file_locate_attach): Prefix absolute executable
9311 paths with gdb_sysroot if set.
9312 * NEWS: Mention that executable paths may be prepended
9313 with sysroot.
9314
af1900b0
GB
93152015-04-17 Gary Benson <gbenson@redhat.com>
9316
9317 * solist.h (exec_file_find): New declaration.
9318 * solib.c (solib_find_1): New function, factored out from...
9319 (solib_find): ...here.
9320 (exec_file_find): New function.
9321
a10de604
GB
93222015-04-17 Gary Benson <gbenson@redhat.com>
9323
9324 * gdbcore.h (exec_file_locate_attach): New declaration.
9325 * exec.c (exec_file_locate_attach): New function, factored
9326 out from...
9327 * infcmd.c (attach_command_post_wait): ...here.
9328
92209ddf
MF
93292015-04-17 Mike Frysinger <vapier@gentoo.org>
9330
9331 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9332
8550d3b3
YQ
93332015-04-16 Yao Qi <yao.qi@linaro.org>
9334
9335 * infrun.c (maybe_software_singlestep): Declare.
9336 (displaced_step_fixup): Call maybe_software_singlestep.
9337
30b3dd9d
DE
93382015-04-15 Doug Evans <dje@google.com>
9339
9340 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9341
61d96d7e
DE
93422015-04-15 Doug Evans <dje@google.com>
9343
9344 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9345
40d2f8d6
SM
93462015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9347
9348 * python/lib/gdb/command/unwinders.py: Add parentheses.
9349
6bbbba9b
YQ
93502015-04-15 Yao Qi <yao.qi@linaro.org>
9351
9352 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9353
2bb2dcab
YQ
93542015-04-15 Yao Qi <yao.qi@linaro.org>
9355
9356 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9357
41f071ef
YQ
93582015-04-15 Yao Qi <yao.qi@linaro.org>
9359
9360 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9361 dsc->insn_size instead of 4.
9362
326a5c7e
GB
93632015-04-14 Gary Benson <gbenson@redhat.com>
9364
9365 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9366 * minidebug.c (lzma_stat): Likewise.
9367 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9368 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9369
dd177e81
SS
93702015-04-13 Stan Shebs <stanshebs@google.com>
9371
9372 * MAINTAINERS: Update my email address.
9373
97de3545
JB
93742015-04-13 John Baldwin <jhb@FreeBSD.org>
9375
9376 * amd64-tdep.c (amd64_target_description): New function.
9377 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9378 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9379 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9380 x86 extended save area.
9381 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9382 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9383 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9384 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9385 "amd64fbsd_read_description".
9386 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9387 (amd64fbsd_supply_xstateregset): New function.
9388 (amd64fbsd_collect_xstateregset): New function.
9389 Add "amd64fbsd_xstateregset".
9390 (amd64fbsd_iterate_over_regset_sections): New function.
9391 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9392 "I386_FBSD_XSAVE_XCR0_OFFSET".
9393 Add "iterate_over_regset_sections" gdbarch method.
9394 Add "core_read_description" gdbarch method.
9395 * i386-tdep.c (i386_target_description): New function.
9396 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9397 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9398 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9399 x86 extended save area.
9400 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9401 * i386bsd-nat.h: Export i386bsd_xsave_len.
9402 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9403 (_initialize_i386fbsd_nat): Set "to_read_description" to
9404 "i386fbsd_read_description".
9405 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9406 (i386fbsd_core_read_description): New function.
9407 (i386fbsd_supply_xstateregset): New function.
9408 (i386fbsd_collect_xstateregset): New function.
9409 Add "i386fbsd_xstateregset".
9410 (i386fbsd_iterate_over_regset_sections): New function.
9411 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9412 "I386_FBSD_XSAVE_XCR0_OFFSET".
9413 Add "iterate_over_regset_sections" gdbarch method.
9414 Add "core_read_description" gdbarch method.
9415 * i386fbsd-tdep.h: New file.
9416
4f45d445
JK
94172015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9418
9419 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9420 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9421 conditional.
9422 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9423 and lb.
9424 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9425 va.
9426 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9427 conditional.
9428 * defs.h (xdb_commands): Remove declaration.
9429 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9430 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9431 * infcmd.c (run_no_args_command, go_command): Remove.
9432 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9433 * infrun.c (xdb_handle_command): Remove.
9434 (_initialize_infrun): Remove xdb_commands for lz and z.
9435 * main.c (xdb_commands): Remove variable.
9436 (captured_main): Remove "xdb" from long_options.
9437 (print_gdb_help): Remove --xdb from help.
9438 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9439 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9440 * stack.c (backtrace_full_command, args_plus_locals_info)
9441 (current_frame_command): Remove.
9442 (_initialize_stack): Remove xdb_commands for t, T and l.
9443 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9444 * thread.c (_initialize_thread): Remove xdb_commands condition.
9445 * tui/tui-layout.c (tui_toggle_layout_command)
9446 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9447 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9448 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9449 (tui_scroll_regs_backward_command): Remove.
9450 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9451 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9452 (_initialize_tui_win): Remove xdb_commands for U and w.
9453 * utils.c (pagination_on_command, pagination_off_command): Remove.
9454 (initialize_utils): Remove xdb_commands for am and sm.
9455
cb71640d
PA
94562015-04-10 Pedro Alves <palves@redhat.com>
9457
9458 * infrun.c (displaced_step_fixup): Switch to the event ptid
9459 earlier. If the thread stopped for a watchpoint and the
9460 target/arch has non-continuable watchpoints, cancel the displaced
9461 step.
9462 (resume): Don't start a displaced step if in-line step-over info
9463 is valid.
9464
8f572e5c
PA
94652015-04-10 Pedro Alves <palves@redhat.com>
9466
9467 * infrun.c (displaced_step_in_progress): New function.
9468 (do_target_resume): Advise target to report all signals if
9469 displaced stepping.
9470
8d707a12
PA
94712015-04-10 Pedro Alves <palves@redhat.com>
9472
9473 PR gdb/18216
9474 * infrun.c (process_event_stop_test): Don't assume a step-resume
9475 is set if tp->stepped_breakpoint is true.
9476
ef713951
YQ
94772015-04-10 Yao Qi <yao.qi@linaro.org>
9478
9479 * arm-tdep.c (install_alu_reg): Update comment.
9480 (thumb_copy_alu_reg): Remove local variable rn. Update
9481 debugging message. Use r2 instead of r1 in the modified
9482 instruction.
9483
906d60cf
PA
94842015-04-10 Pedro Alves <palves@redhat.com>
9485
9486 PR gdb/13858
9487 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9488 linux_displaced_step_location as gdbarch_displaced_step_location
9489 hook.
9490 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9491 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9492 * linux-tdep.c (linux_displaced_step_location): New function,
9493 based on ppc_linux_displaced_step_location.
9494 * linux-tdep.h (linux_displaced_step_location): New declaration.
9495 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9496 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9497 Delete.
9498 (ppc_linux_init_abi): Install linux_displaced_step_location as
9499 gdbarch_displaced_step_location hook, even without Cell/B.E..
9500 (_initialize_ppc_linux_tdep): Don't install
9501 ppc_linux_inferior_created as inferior_created observer.
9502 * s390-linux-tdep.c (s390_gdbarch_init): Install
9503 linux_displaced_step_location as gdbarch_displaced_step_location
9504 hook.
9505
7823a941
GB
95062015-04-09 Gary Benson <gbenson@redhat.com>
9507
9508 * common/common-remote-fileio.h: Rename to...
9509 * common/fileio.h: ...this. Update all references.
9510 (remote_fileio_to_fio_error): Rename to...
9511 (host_to_fileio_error): ...this.
9512 (remote_fileio_to_be): Rename to...
9513 (host_to_bigendian): ...this. Update all callers.
9514 (remote_fileio_to_fio_uint): Rename to...
9515 (host_to_fileio_uint): ...this. Update all callers.
9516 (remote_fileio_to_fio_time): Rename to...
9517 (host_to_fileio_time): ...this. Update all callers.
9518 (remote_fileio_to_fio_stat): Rename to...
9519 (host_to_fileio_stat): ...this.
9520 Update all references.
9521 * common/common-remote-fileio.c: Rename to...
9522 * common/fileio.c: ...this. Update all references.
9523 (remote_fileio_to_fio_error): Rename to...
9524 (host_to_fileio_error): ...this. Update all callers.
9525 (remote_fileio_mode_to_target): Rename to...
9526 (fileio_mode_pack): ...this. Update all callers.
9527 (remote_fileio_to_fio_mode): Rename to...
9528 (host_to_fileio_mode): ...this. Update all callers.
9529 (remote_fileio_to_fio_ulong): Rename to...
9530 (host_to_fileio_ulong): ...this. Update all callers.
9531 (remote_fileio_to_fio_stat): Rename to...
9532 (host_to_fileio_stat): ...this. Update all callers.
9533
f2983cc3
AW
95342015-04-09 Andy Wingo <wingo@igalia.com>
9535
9536 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9537 (frame_functions): Bind gdbscm_frame_read_register to
9538 frame-read-register.
9539 * guile/lib/gdb.scm (frame-read-register): Export.
9540
b88bb450
GB
95412015-04-09 Gary Benson <gbenson@redhat.com>
9542
9543 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9544 New declaration.
9545 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9546 New function, factored out the named functions below.
9547 * inf-child.c (gdb/fileio.h): Remove include.
9548 (common-remote-fileio.h): New include.
9549 (inf_child_errno_to_fileio_error): Remove function. Update
9550 all callers to use remote_fileio_to_fio_error.
9551 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9552
2f2680f3
AW
95532015-04-09 Andy Wingo <wingo@igalia.com>
9554
9555 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9556
5a2d4533
L
95572015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9558
9559 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9560 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9561 * configure: Regenerated.
9562
421693b0
PA
95632015-04-09 Pedro Alves <palves@redhat.com>
9564
9565 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9566 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9567 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9568 * gnulib/import/Makefile.am: Update.
9569 * gnulib/import/Makefile.in: Update.
9570 * gnulib/import/m4/gnulib-cache.m4: Update.
9571 * gnulib/import/m4/gnulib-comp.m4: Update.
9572 * gnulib/import/m4/strtok_r.m4: New file.
9573 * gnulib/import/strtok_r.c: New file.
9574
f543dc83
PA
95752015-04-09 Pedro Alves <palves@redhat.com>
9576
9577 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9578 "called too early to check prototype".
9579
6d62641c
SDJ
95802015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9581
9582 PR python/16699
9583 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9584 use a caching mechanism. Adjust comments and code to reflect
9585 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9586 (cmdpy_completer_handle_brkchars): Adjust call to
9587 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9588 (cmdpy_completer): Likewise.
9589
85558555
YQ
95902015-04-08 Yao Qi <yao.qi@linaro.org>
9591
9592 * spu-tdep.c (spu_gdbarch_init): Don't call
9593 set_gdbarch_cannot_step_breakpoint.
9594
d249a14a
SDJ
95952015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9596
9597 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9598
8a06aea7
PA
95992015-04-07 Pedro Alves <palves@redhat.com>
9600
9601 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9602 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9603 (delete_exited_threads): New declaration.
9604 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9605 * linux-nat.c (linux_nat_update_thread_list): New function.
9606 (linux_nat_add_target): Install it.
9607 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9608 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9609 (delete_exited_threads): New function.
9610
d9b67d9f
PA
96112015-04-07 Pedro Alves <pedro@codesourcery.com>
9612
9613 * infrun.c (resume) <displaced stepping debug output>: Get the
9614 leader thread's regcache, not resume_ptid's.
9615
2c26b84f
DE
96162015-04-06 Doug Evans <xdje42@gmail.com>
9617
9618 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9619 VAR_DOMAIN.
9620 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9621 Include symbol domain in debugging output.
9622
7a85168d
PA
96232015-04-06 Pedro Alves <palves@redhat.com>
9624 Bernd Edlinger <bernd.edlinger@hotmail.de>
9625
9626 * configure.ac: Remove the mingw32-specific stub-termcap.o
9627 fallback, and instead fallback to the stub termcap on all hosts.
9628 * configure: Regenerate.
9629 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9630 symbols.
9631
25755e2b
PMR
96322015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9633
9634 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9635 "top_level" parameter.
9636 (resolve_dynamic_type_internal): Remove the unused "top_level"
9637 parameter. Update call to is_dynamic_type_internal.
9638 (is_dynamic_type): Update call to is_dynamic_type_internal.
9639 (resolve_dynamic_range): Update call to
9640 resolve_dynamic_type_internal.
9641 (resolve_dynamic_union): Likewise.
9642 (resolve_dynamic_struct): Likewise.
9643 (resolve_dynamic_type): Likewise.
9644
961f4160
PMR
96452015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9646
9647 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9648 TYPE_CODE_REF types so that they are not considered as dynamic
9649 depending on the referenced type.
9650 (resolve_dynamic_type_internal): Likewise.
9651
39f3de7c
L
96522015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9653
9654 * Makefile.in (top_srcdir): New.
9655 * configure: Regenerated.
9656
599bd15c
GB
96572015-04-02 Gary Benson <gbenson@redhat.com>
9658
9659 * NEWS: Announce the new default sysroot of "target:".
9660
fed040c6
GB
96612015-04-02 Gary Benson <gbenson@redhat.com>
9662
9663 * main.c (captured_main): Set gdb_sysroot to "target:"
9664 if not otherwise set.
9665
64c0b5de
GB
96662015-04-02 Gary Benson <gbenson@redhat.com>
9667
9668 * exec.c (exec_file_attach): Support "target:" filenames.
9669
b57fbfba
GB
96702015-04-02 Gary Benson <gbenson@redhat.com>
9671
9672 * solib.c (solib_find): Strip "target:" prefix from sysroot
9673 if accessing local files.
9674
97a41605
GB
96752015-04-02 Gary Benson <gbenson@redhat.com>
9676
9677 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9678 checks and error messages.
9679
2938e6cf
GB
96802015-04-02 Gary Benson <gbenson@redhat.com>
9681
9682 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9683 (remote_filename_p): Remove declaration.
9684 (remote_bfd_open): Likewise.
9685 * remote.c (remote_bfd_iovec_open): Remove function.
9686 (remote_bfd_iovec_close): Likewise.
9687 (remote_bfd_iovec_pread): Likewise.
9688 (remote_bfd_iovec_stat): Likewise.
9689 (remote_filename_p): Likewise.
9690 (remote_bfd_open): Likewise.
9691 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9692 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9693 (gdb_bfd_open_maybe_remote): Remove function.
9694 (symfile_bfd_open): Replace remote filename check with
9695 target filename check.
9696 (reread_symbols): Use gdb_bfd_open.
9697 * build-id.c (gdbcore.h): New include.
9698 (build_id_to_debug_bfd): Use gdb_bfd_open.
9699 * infcmd.c (attach_command_post_wait): Remove remote filename
9700 check.
9701 * solib.c (solib_find): Replace remote-specific handling with
9702 target-specific handling. Update comments where necessary.
9703 (solib_bfd_open): Replace remote-specific handling with
9704 target-specific handling.
9705 (gdb_sysroot_changed): New function.
9706 (_initialize_solib): Call the above when gdb_sysroot changes.
9707 * windows-tdep.c (gdbcore.h): New include.
9708 (windows_xfer_shared_library): Use gdb_bfd_open.
9709
f08e97fe
GB
97102015-04-02 Gary Benson <gbenson@redhat.com>
9711
9712 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9713 (is_target_filename): New declaration.
9714 (gdb_bfd_has_target_filename): Likewise.
9715 (gdb_bfd_open): Update documentation comment.
9716 * gdb_bfd.c (target.h): New include.
9717 (gdb/fileio.h): Likewise.
9718 (is_target_filename): New function.
9719 (gdb_bfd_has_target_filename): Likewise.
9720 (fileio_errno_to_host): Likewise.
9721 (gdb_bfd_iovec_fileio_open): Likewise.
9722 (gdb_bfd_iovec_fileio_pread): Likewise.
9723 (gdb_bfd_iovec_fileio_close): Likewise.
9724 (gdb_bfd_iovec_fileio_fstat): Likewise.
9725 (gdb_bfd_open): Use target fileio to access paths prefixed
9726 with "target:" where necessary.
9727
4bd7dc42
GB
97282015-04-02 Gary Benson <gbenson@redhat.com>
9729
9730 * target.h (struct target_ops) <to_filesystem_is_local>:
9731 New field.
9732 (target_filesystem_is_local): New macro.
9733 * target-delegates.c: Regenerate.
9734 * remote.c (remote_filesystem_is_local): New function.
9735 (init_remote_ops): Initialize to_filesystem_is_local.
9736
9b15c1f0
GB
97372015-04-02 Gary Benson <gbenson@redhat.com>
9738
9739 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9740 (target_fileio_fstat): New declaration.
9741 * target.c (target_fileio_fstat): New function.
9742 * inf-child.c (inf_child_fileio_fstat): Likewise.
9743 (inf_child_target): Initialize to_fileio_fstat.
9744 * remote.c (init_remote_ops): Likewise.
9745
d11916aa
SS
97462015-04-01 Sasha Smundak <asmundak@google.com>
9747
9748 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9749 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9750 (py-unwind.o): New recipe.
9751 * NEWS: mention Python frame unwinding.
9752 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9753 gdb/unwinder.py and gdb/command/unwinder.py
9754 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9755 list.
9756 (execute_unwinders): New function.
9757 * python/lib/gdb/command/unwinders.py: New file.
9758 * python/lib/gdb/unwinder.py: New file.
9759 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9760 (objfpy_dealloc): Decrement frame_unwinders reference count.
9761 (objfpy_initialize): Create frame_unwinders list.
9762 (objfpy_get_frame_unwinders): New function.
9763 (objfpy_set_frame_unwinders): Ditto.
9764 (objfile_getset): Add frame_unwinders attribute to Objfile.
9765 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9766 (pspy_dealloc): Decrement frame_unwinders reference count.
9767 (pspy_initialize): Create frame_unwinders list.
9768 (pspy_get_frame_unwinders): New function.
9769 (pspy_set_frame_unwinders): Ditto.
9770 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9771 * python/py-unwind.c: New file.
9772 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9773 (objpy_get_frame_unwinders): New prototype.
9774 (gdbpy_initialize_unwind): New prototype.
9775 * python/python.c (gdbpy_apply_type_printers): Call
9776 gdbpy_initialize_unwind.
9777
6b403daa
PA
97782015-04-01 Pedro Alves <palves@redhat.com>
9779
9780 * infrun.c (resume): Check currently_stepping after clearing
9781 stepped_breakpoint, not before.
9782
1176ecec
PA
97832015-04-01 Pedro Alves <palves@redhat.com>
9784
9785 * infrun.c (print_target_wait_results): Print all the ptid
9786 elements.
9787
de1fe8c8
PA
97882015-04-01 Pedro Alves <palves@redhat.com>
9789
9790 * infrun.c (keep_going): Also discard cleanups if inserting
9791 breakpoints fails.
9792
e6f5c25b
PA
97932015-04-01 Pedro Alves <palves@redhat.com>
9794
9795 * infrun.c (wait_for_inferior): Install the
9796 finish_thread_state_cleanup cleanup across the whole function, not
9797 just around handle_inferior_event.
9798
1ac806b8
PA
97992015-04-01 Pedro Alves <palves@redhat.com>
9800
9801 * infrun.c (resume) <step past permanent breakpoint>: Use
9802 do_target_resume.
9803
2ee52aa4
PA
98042015-04-01 Pedro Alves <palves@redhat.com>
9805
9806 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9807
5445da1b
PMR
98082015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9809
9810 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9811
4eec2deb
PA
98122015-04-01 Pedro Alves <palves@redhat.com>
9813
9814 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9815 list if it was marked exited.
9816
afa59b79
L
98172015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9818
9819 * configure: Regenerated.
9820
df8411da
SDJ
98212015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9822 Jan Kratochvil <jan.kratochvil@redhat.com>
9823 Oleg Nesterov <oleg@redhat.com>
9824
9825 PR corefiles/16092
9826 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9827 New enum identifying the various options of the coredump_filter
9828 file.
9829 (struct smaps_vmflags): New struct.
9830 (use_coredump_filter): New variable.
9831 (decode_vmflags): New function.
9832 (mapping_is_anonymous_p): Likewise.
9833 (dump_mapping_p): Likewise.
9834 (linux_find_memory_regions_full): New variables
9835 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9836 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9837 parsing of its information. Implement memory mapping filtering
9838 based on its contents.
9839 (show_use_coredump_filter): New function.
9840 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9841 * NEWS: Mention the possibility of using the
9842 '/proc/PID/coredump_filter' file when generating a corefile.
9843 Mention new command 'set use-coredump-filter'.
9844
416f679e
SDJ
98452015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9846
9847 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9848 read_memory_unsigned_integer.
9849
711a72d3
L
98502015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9851
9852 * Makefile.in (ZLIB): New.
9853 (ZLIBINC): Likewise.
9854 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9855 (CLIBS): Add $(ZLIB).
9856 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9857 Add -lz to LIBS.
9858 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9859 * top.c (print_gdb_configuration): Remove --with-zlib and
9860 --without-zlib.
9861 * config.in: Regenerated.
9862 * configure: Likewise.
9863
d33279b3
AT
98642015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9865
9866 * NEWS: Mention info os cpus support.
9867 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9868 (struct osdata_type): Add cpus entry, reorder the entries in
9869 alphabetical order.
9870
71b30f27
MK
98712015-03-31 Matthias Klose <doko@ubuntu.com>
9872
9873 * compile/compile.c (compile_to_object): Allow triplets with or
9874 without vendor set.
9875
13ce9222
DE
98762015-03-30 Doug Evans <dje@google.com>
9877
9878 PR c++/18141
9879 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9880 klass in VAR_DOMAIN.
9881
20f796c9
GB
98822015-03-30 Gary Benson <gbenson@redhat.com>
9883
9884 * remote.c (remote_mourn_1): Remove function. Update all callers
9885 to use remote_mourn.
9886 (extended_remote_mourn_1): Remove function. Update all callers
9887 to use extended_remote_mourn.
9888 (extended_remote_attach_1): Remove function. Update all callers
9889 to use extended_remote_attach.
9890
49d45b20
JB
98912015-03-28 James Bowman <james.bowman@ftdichip.com>
9892
9893 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9894 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9895 (ALLDEPFILES): Add ft32-tdep.c.
9896 * configure.tgt: Add FT32 entry.
9897 * ft32-tdep.c: New file, FT32 target-dependent code.
9898 * ft32-tdep.h: New file, FT32 target-dependent code.
9899
1c4ff080
JK
99002015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9901
9902 Revert:
9903 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9904 Code cleanup.
9905 * printcmd.c (print_command_1): Move expr variable scope.
9906
79498702
JB
99072015-03-27 Joel Brobecker <brobecker@adacore.com>
9908
9909 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9910
ce9c0ca1
AK
99112015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9912
9913 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9914 sections.
9915
429e1e81
JB
99162015-03-26 Joel Brobecker <brobecker@adacore.com>
9917
9918 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9919 exception raised while parsing the probe arguments.
9920 Force parsing to be done using the C language parser.
9921 * expression.h (parse_expression_with_language): Declare.
9922 * parse.c (parse_expression_with_language): New function.
9923
4593441b
JT
99242015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9925
9926 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9927
ff908ebf
AW
99282015-03-26 Andy Wingo <wingo@igalia.com>
9929
9930 PR symtab/18148
9931 * dwarf2read.c (struct partial_die_info): Add has_const_value
9932 member.
9933 (add_partial_symbol): Don't punt on symbols that have const_value
9934 attributes.
9935 (read_partial_die): Detect DW_AT_const_value.
9936
f30d5c78
JK
99372015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9938
9939 Code cleanup.
9940 * printcmd.c (print_command_1): Move expr variable scope.
9941
8d89f51a
JK
99422015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9943
9944 Code cleanup.
9945 * printcmd.c (validate_format): Make the parameter cmdname const.
9946
0b736949
DB
99472015-03-26 Don Breazeal <donb@codesourcery.com>
9948
9949 * remote.c (_initialize_remote): Update comment.
9950
20d35291
PA
99512015-03-26 Pedro Alves <palves@redhat.com>
9952 Jon TURNEY <jon.turney@dronecode.org.uk>
9953
9954 * coffread.c (coff_symfile_read): When constructing the name of an
9955 import stub symbol from import symbol for amd64, only skip the
9956 char after _imp_ if the target is underscored (like i386) and the
9957 char is indeed the target's leading char.
9958
6a3753b3
PA
99592015-03-25 Pedro Alves <palves@redhat.com>
9960
9961 * target.h <to_async>: Replace 'callback' and 'context' parameters
9962 with boolean 'enable' parameter.
9963 (target_async): Replace CALLBACK and CONTEXT parameters with
9964 boolean ENABLE parameter.
9965 * inf-loop.c (inferior_event_handler): Adjust.
9966 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9967 (linux_nat_resume): Adjust.
9968 (async_client_callback, async_client_context): Delete.
9969 (handle_target_event): Call inferior_event_handler directly.
9970 (linux_nat_async): Replace 'callback' and 'context' parameters
9971 with boolean 'enable' parameter. Adjust. Remove references to
9972 async_client_callback and async_client_context.
9973 (linux_nat_close): Adjust.
9974 * record-btrace.c (record_btrace_async): Replace 'callback' and
9975 'context' parameters with boolean 'enable' parameter. Adjust.
9976 (record_btrace_resume): Adjust.
9977 * record-full.c (record_full_async): Replace 'callback' and
9978 'context' parameters with boolean 'enable' parameter. Adjust.
9979 (record_full_resume, record_full_core_resume): Adjust.
9980 * remote.c (struct remote_state) <async_client_callback,
9981 async_client_context>: Delete fields.
9982 (remote_start_remote, extended_remote_attach_1, remote_resume)
9983 (extended_remote_create_inferior): Adjust.
9984 (remote_async_serial_handler): Call inferior_event_handler
9985 directly.
9986 (remote_async): Replace 'callback' and 'context' parameters with
9987 boolean 'enable' parameter. Adjust.
9988 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9989 Adjust.
9990 * target-delegates.c: Regenerate.
9991
1c4b552b
GB
99922015-03-25 Gary Benson <gbenson@redhat.com>
9993 Pedro Alves <palves@redhat.com>
9994
9995 * target.c (fileio_ft_t): New typedef, define object vector.
9996 (fileio_fhandles): New static variable.
9997 (is_closed_fileio_fh): New macro.
9998 (lowest_closed_fd): New static variable.
9999 (acquire_fileio_fd): New function.
10000 (release_fileio_fd): Likewise.
10001 (fileio_fd_to_fh): New macro.
10002 (target_fileio_open): Wrap the file descriptor on success.
10003 (target_fileio_pwrite): Updated to use wrapped file descriptor.
10004 (target_fileio_pread): Likewise.
10005 (target_fileio_close): Likewise.
10006
a25d8bf9
PA
100072015-03-24 Pedro Alves <palves@redhat.com>
10008
10009 * thread.c (thread_apply_all_command): Take exited threads into
10010 account.
10011
44a1ee51
PA
100122015-03-24 Pedro Alves <palves@redhat.com>
10013
10014 * infrun.c (resume, proceed): Mention
10015 switch_back_to_stepped_thread, not switch_back_to_stepping.
10016
f3263aa4
PA
100172015-03-24 Pedro Alves <palves@redhat.com>
10018
10019 * infrun.c (user_visible_resume_ptid): Rewrite going from
10020 most-locked to unlocked instead of the opposite. Move comment ...
10021 * infrun.h (user_visible_resume_ptid): ... here.
10022
2bf6fb9d
PA
100232015-03-24 Pedro Alves <palves@redhat.com>
10024
10025 * linux-nat.c (linux_nat_resume): Output debug logs before trying
10026 to resume the event lwp. Use the lwp's ptid instead of the passed
10027 in (maybe wildcard) ptid.
10028 (stop_wait_callback): Tweak debug log output.
10029 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
10030 TRAP_TRACE.
10031 (linux_nat_filter_event): In debug output, distinguish a
10032 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
10033 before trying to resume the lwp.
10034
283a9958
JB
100352015-03-24 Joel Brobecker <brobecker@adacore.com>
10036
10037 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
10038 pointer indirection.
10039 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
10040 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
10041
93a8e227
JB
100422015-03-24 Joel Brobecker <brobecker@adacore.com>
10043
10044 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
10045 Renames DYN_ATTR_DATA_LOCATION.
10046 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
10047 DYN_ATTR_DATA_LOCATION.
10048 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
10049 instead of DYN_ATTR_DATA_LOCATION.
10050
64ce06e4
PA
100512015-03-24 Pedro Alves <palves@redhat.com>
10052
10053 * breakpoint.c (until_break_command): Adjust call to proceed.
10054 * gdbthread.h (struct thread_control_state) <stepping_command>:
10055 New field.
10056 * infcall.c (run_inferior_call): Adjust call to proceed.
10057 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
10058 Adjust calls to proceed.
10059 (set_step_frame): Set the current thread's step_start_function
10060 here.
10061 (step_once): Adjust calls to proceed.
10062 (jump_command, signal_command, until_next_command)
10063 (finish_backward, finish_forward, proceed_after_attach_callback)
10064 (attach_command_post_wait): Adjust calls to proceed.
10065 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
10066 (do_target_resume): New function, factored out from ...
10067 (resume): ... here. Remove 'step' parameter. Instead, check
10068 currently_stepping to determine whether the thread should be
10069 single-stepped.
10070 (proceed): Remove 'step' parameter and don't set the thread's
10071 step_start_function here. Adjust call to 'resume'.
10072 (handle_inferior_event): Adjust calls to 'resume'.
10073 (switch_back_to_stepped_thread): Use do_target_resume instead of
10074 'resume'.
10075 (keep_going): Adjust calls to 'resume'.
10076 * infrun.h (proceed): Remove 'step' parameter.
10077 (resume): Likewise.
10078 * windows-nat.c (do_initial_windows_stuff): Adjust call to
10079 'resume'.
10080 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10081
856e7dd6
PA
100822015-03-24 Pedro Alves <palves@redhat.com>
10083
10084 * gdbthread.h (struct thread_control_state) <stepping_command>:
10085 New field.
10086 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
10087 the thread's stepping_command field.
10088 * infrun.c (resume): Check the thread's stepping_command flag to
10089 determine which threads should be resumed. Rename 'entry_step'
10090 local to user_step.
10091 (clear_proceed_status_thread): Clear 'stepping_command'.
10092 (schedlock_applies): Change parameter type to struct thread_info
10093 pointer. Adjust.
10094 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
10095 (switch_back_to_stepped_thread): Adjust calls to
10096 'schedlock_applies'.
10097 (_initialize_infrun): Adjust "set scheduler-locking step" help.
10098
885eeb5b
PA
100992015-03-24 Pedro Alves <palves@redhat.com>
10100
10101 * infrun.c (step_start_function): Delete and ...
10102 * gdbthread.h (struct thread_control_state) <step_start_function>:
10103 ... now a field here.
10104 * infrun.c (clear_proceed_status_thread): Clear the thread's
10105 step_start_function.
10106 (proceed, process_event_stop_test, print_stop_event): Adjust.
10107
3333f03a
PA
101082015-03-24 Pedro Alves <palves@redhat.com>
10109
10110 * infrun.c (proceed): No longer handle negative step.
10111
369f6daa
GB
101122015-03-24 Gary Benson <gbenson@redhat.com>
10113
10114 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10115 (x86_linux_prepare_to_resume): Likewise.
10116 * x86-linux-nat.c (x86_linux_new_thread):
10117 Moved to nat/x86-linux.c.
10118 (x86_linux_prepare_to_resume): Likewise.
10119 * nat/x86-linux.c (x86_linux_new_thread): New function.
10120 (x86_linux_prepare_to_resume): Likewise.
10121
8e5d4070
GB
101222015-03-24 Gary Benson <gbenson@redhat.com>
10123
10124 * nat/x86-linux-dregs.h: New file.
10125 * nat/x86-linux-dregs.c: Likewise.
10126 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10127 (x86-linux-dregs.o): New rule.
10128 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10129 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10130 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10131 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10132 (x86_linux_dr_get): Likewise.
10133 (x86_linux_dr_set): Likewise.
10134 (x86_linux_dr_get_addr): Likewise.
10135 (x86_linux_dr_get_control): Likewise.
10136 (x86_linux_dr_get_status): Likewise.
10137 (update_debug_registers_callback): Likewise.
10138 (x86_linux_dr_set_control): Likewise.
10139 (x86_linux_dr_set_addr): Likewise.
10140 (x86_linux_update_debug_registers): Likewise.
10141
2b95d440
GB
101422015-03-24 Gary Benson <gbenson@redhat.com>
10143
10144 * x86-linux-nat.c (x86_linux_update_debug_registers):
10145 New function, factored out from...
10146 (x86_linux_prepare_to_resume): ...this.
10147
14b0bc68
GB
101482015-03-24 Gary Benson <gbenson@redhat.com>
10149
10150 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10151 (x86_linux_dr_set): Likewise.
10152 (x86_linux_dr_get_addr): Likewise.
10153 (x86_linux_dr_get_control): Likewise.
10154 (x86_linux_dr_get_status): Likewise.
10155 (update_debug_registers_callback): Likewise.
10156 (x86_linux_dr_set_control): Likewise.
10157 (x86_linux_dr_set_addr): Likewise.
10158 (x86_linux_prepare_to_resume): Likewise.
10159 (x86_linux_new_thread): Likewise.
10160
5dfe6ca8
GB
101612015-03-24 Gary Benson <gbenson@redhat.com>
10162
10163 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10164 (x86_linux_new_thread): Rename argument.
10165
4b134ca1
GB
101662015-03-24 Gary Benson <gbenson@redhat.com>
10167
10168 * nat/x86-linux.h: New file.
10169 * nat/x86-linux.c: Likewise.
10170 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10171 (x86-linux.o): New rule.
10172 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10173 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10174 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10175 (lwp_set_arch_private_info): New declaration.
10176 (lwp_arch_private_info): Likewise.
10177 * linux-nat.c (lwp_set_arch_private_info): New function.
10178 (lwp_arch_private_info): Likewise.
10179 * x86-linux-nat.c: Include nat/x86-linux.h.
10180 (arch_lwp_info): Removed structure.
10181 (update_debug_registers_callback):
10182 Use lwp_set_debug_registers_changed.
10183 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10184 and lwp_set_debug_registers_changed.
10185 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10186
cff068da
GB
101872015-03-24 Gary Benson <gbenson@redhat.com>
10188
10189 * nat/linux-nat.h (ptid_of_lwp): New declaration.
10190 (lwp_is_stopped): Likewise.
10191 (lwp_stop_reason): Likewise.
10192 * linux-nat.c (ptid_of_lwp): New function.
10193 (lwp_is_stopped): Likewise.
10194 (lwp_is_stopped_by_watchpoint): Likewise.
10195 * x86-linux-nat.c (update_debug_registers_callback):
10196 Use lwp_is_stopped.
10197 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10198 lwp_stop_reason.
10199
b2f7c7e8
GB
102002015-03-24 Gary Benson <gbenson@redhat.com>
10201
10202 * linux-nat.h (linux_stop_lwp): Move declaration to...
10203 * nat/linux-nat.h (linux_stop_lwp): New declaration.
10204
6d4ee8c6
GB
102052015-03-24 Gary Benson <gbenson@redhat.com>
10206
10207 * linux-nat.h: Include nat/linux-nat.h.
10208 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10209 * nat/linux-nat.h (struct lwp_info): New forward declaration.
10210 (iterate_over_lwps_ftype): New typedef.
10211 (iterate_over_lwps): New declaration.
10212 * linux-nat.h (iterate_over_lwps): Update comment. Use
10213 iterate_over_lwps_ftype. Update callback return value check.
10214
70a0bb6b
GB
102152015-03-24 Gary Benson <gbenson@redhat.com>
10216
10217 * x86-nat.h (x86_debug_reg_state): Move declaration to...
10218 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10219
7b669087
GB
102202015-03-24 Gary Benson <gbenson@redhat.com>
10221
10222 * nat/linux-nat.h (current_lwp_ptid): New declaration.
10223 * linux-nat.c (current_lwp_ptid): New function.
10224 * x86-linux-nat.c: Include nat/linux-nat.h.
10225 (x86_linux_dr_get_addr): Use current_lwp_ptid.
10226 (x86_linux_dr_get_control): Likewise.
10227 (x86_linux_dr_get_status): Likewise.
10228 (x86_linux_dr_set_control): Likewise.
10229 (x86_linux_dr_set_addr): Likewise.
10230
15630549
AT
102312015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
10232
10233 PR breakpoints/16466
10234 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10235
8a4506c0
JB
102362015-03-23 Joel Brobecker <brobecker@adacore.com>
10237
10238 * ser-mingw.c (ser_windows_setparity): Fix indentation.
10239 * ser-unix.c (hardwire_setparity): Likewise.
10240
236af5e3
YG
102412015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10242
10243 * NEWS: Mention set/show serial parity command.
10244 * monitor.c (monitor_open): Call serial_setparity.
10245 * remote.c (remote_open_1): Likewise.
10246 * ser-base.c (ser_base_serparity): New function.
10247 * ser-base.h (ser_base_setparity): Add declaration.
10248 * ser-go32.c (dos_ops): Set "setparity" field.
10249 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10250 state.Parity.
10251 (ser_windows_setparity): New function.
10252 (hardwire_ops): Add ser_windows_setparity.
10253 (tty_ops): Add NULL for setparity field.
10254 (pipe_ops): Add ser_base_setparity.
10255 (tcp_ops): Likewise.
10256 * ser-pipe.c (pipe_ops): Likewise.
10257 * ser-tcp.c (tcp_ops): Likewise.
10258 * ser-unix.c (hardwire_setparity): Add declaration.
10259 (hardwire_raw): Don't reset PARENB flag.
10260 (hardwire_setparity): New function.
10261 (hardwire_ops): Add hardwire_setparity.
10262 * serial.c (serial_setparity): New function.
10263 (serial_parity): New global.
10264 (parity_none, parity_odd, parity_even, parity_enums, parity):
10265 New static globals.
10266 (set_parity): New function.
10267 (_initialize_serial): Add set/show serial parity commands.
10268 * serial.h (GDBPARITY_NONE): Define.
10269 (GDBPARITY_ODD): Define.
10270 (GDBPARITY_EVEN): Define.
10271 (serial_setparity) Add declaration.
10272 (struct serial_ops): Add setparity field.
10273 * target.h (serial_parity): Add declaration.
10274
32b40af9
KS
102752015-03-23 Keith Seitz <keiths@redhat.com>
10276
10277 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10278
693dca06
KS
102792015-03-23 Keith Seitz <keiths@redhat.com>
10280
10281 * breakpoint.c (parse_breakpoint_sals): Use
10282 linespec_lexer_lex_keyword to ascertain if the user specified
10283 a NULL location.
10284 * linespec.c [IF_KEYWORD_INDEX]: Define.
10285 (linespec_lexer_lex_keyword): Export.
10286 (struct ls_parser) <keyword_ok>: Remove.
10287 A keyword is only a keyword if not followed by another keyword.
10288 (linespec_lexer_lex_one): Remove keyword_ok handling.
10289 Add comment explaining why the parsing stream is not advanced
10290 when a keyword is seen.
10291 (parse_linespec): Remove parser->keyword_ok.
10292 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10293
7e993ebf
KS
102942015-03-23 Keith Seitz <keiths@redhat.com>
10295
10296 PR gdb/18021
10297 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10298 if we find a static method with DW_AT_vtable_elem_location.
10299
b1a0f704
EZ
103002015-03-21 Eli Zaretskii <eliz@gnu.org>
10301
10302 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10303 before the second loop, to avoid undefined behavior. Reported by
10304 Anton Blanchard <anton@samba.org>.
10305
d9823cbb
KB
103062015-03-20 Keven Boell <keven.boell@intel.com>
10307
10308 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10309 data_location usage to linked list.
10310 (resolve_dynamic_type_internal): Adapt data_location to
10311 linked list.
10312 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10313 (copy_type_recursive, copy_type): Add copy of linked list.
10314 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10315 (struct dynamic_prop_list): New struct.
10316 * dwarf2read.c (set_die_type): Set data_location data.
10317
2e7bf1d7
PA
103182015-03-20 Pedro Alves <palves@redhat.com>
10319
10320 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10321 inner block and make it const.
10322 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10323
7a26bd4d
PA
103242015-03-20 Pedro Alves <palves@redhat.com>
10325
10326 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10327 * breakpoint.h (set_breakpoint_condition): Update declaration.
10328
cd46431b
PA
103292015-03-20 Pedro Alves <palves@redhat.com>
10330
10331 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10332
e28566f7
PA
103332015-03-20 Pedro Alves <palves@redhat.com>
10334
10335 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10336
f6fc92f6
PA
103372015-03-20 Pedro Alves <palves@redhat.com>
10338
10339 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10340
c32ed3ef
PA
103412015-03-20 Pedro Alves <palves@redhat.com>
10342
10343 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10344 (nto_init_solib_absolute_prefix): Likewise.
10345
53e78085
PA
103462015-03-20 Pedro Alves <palves@redhat.com>
10347
10348 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10349 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10350
bc23328c
JK
103512015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10352
10353 * config/djgpp/README: Remove gdb.hp.
10354
e8ffc436
YQ
103552015-03-20 Yao Qi <yao.qi@linaro.org>
10356
10357 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10358 set_gdbarch_cannot_step_breakpoint.
10359
23f238d3
PA
103602015-03-19 Pedro Alves <palves@redhat.com>
10361
10362 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10363 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10364 instead call perror_with_name.
10365 (check_ptrace_stopped_lwp_gone): New function.
10366 (linux_resume_one_lwp): Reimplement as wrapper around
10367 linux_resume_one_lwp_throw that swallows errors if the LWP is
10368 gone.
10369 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10370 swallows errors if the LWP is gone. Use
10371 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10372
eb54c8bf
PA
103732015-03-19 Pedro Alves <palves@redhat.com>
10374
10375 * linux-nat.c (status_callback): Return early if the LWP has no
10376 status pending.
10377
b90fc188
PA
103782015-03-19 Pedro Alves <palves@redhat.com>
10379
10380 * linux-nat.c (select_event_lwp_callback): Update comment to no
10381 longer mention SIGTRAP.
10382
670f82d4
TG
103832015-03-18 Tristan Gingold <gingold@adacore.com>
10384
72f4393d
L
10385 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10386 redirection code to ...
10387 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10388 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 10389
464b0089
GB
103902015-03-18 Gary Benson <gbenson@redhat.com>
10391
10392 (remote_protocol_features): Remove the "vFile:fstat" feature.
10393 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10394
f68f11b7
YQ
103952015-03-11 Yao Qi <yao.qi@linaro.org>
10396
10397 PR tdep/18107
10398 * aarch64-linux-tdep.c: Include xml-syscall.h
10399 (aarch64_linux_get_syscall_number): New function.
10400 (aarch64_linux_init_abi): Call
10401 set_gdbarch_get_syscall_number.
10402 * syscalls/aarch64-linux.xml: New file.
10403
393bd0c0
YG
104042015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10405
10406 * ser-base.h (ser_base_setstopbits): Change second argument name
10407 from "rate" to "num".
10408
7f3647e2
GB
104092015-03-17 Gary Benson <gbenson@redhat.com>
10410 Luke Allardyce <lukeallardyce@gmail.com>
10411
10412 PR gdb/18131
10413 * common/common-remote-fileio.h (sys/stat.h): New include.
10414 (stuct stat): Remove forward declaration.
10415
3ce5b6e2
JB
104162015-03-16 John Baldwin <jhb@FreeBSD.org>
10417
10418 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10419 before writing core register notes.
10420
d053f6be
YZ
104212015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10422 Pedro Alves <palves@redhat.com>
10423
10424 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10425 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10426 (tgoto): Wrap with extern "C".
10427
b1a921c8
PA
104282015-03-16 Pedro Alves <palves@redhat.com>
10429 Yuanhui Zhang <asmwarrior@gmail.com>
10430
10431 * stub-termcap.c (tputs): Change prototype.
10432
876d1cd7
YZ
104332015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10434 Pedro Alves <palves@redhat.com>
10435
10436 * windows-nat.c (struct thread_info_struct): Rename to ...
10437 (struct windows_thread_info_struct): ... this.
10438 (thread_info): Rename to ...
10439 (windows_thread_info): ... this.
10440 All users updated.
10441
0800b440
JK
104422015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10443 Pedro Alves <palves@redhat.com>
10444
10445 * NEWS: New Removed targets and native configurations.
10446
104472015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
10448
10449 Remove HPUX.
10450 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10451 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10452 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10453 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10454 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10455 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10456 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10457 hppa-hpux-tdep.c.
10458 * config/ia64/hpux.mh: Remove file.
10459 * config/pa/hpux.mh: Remove file.
10460 * configure: Rebuilt.
10461 * configure.ac (dlgetmodinfo, somread.o): Remove.
10462 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10463 (ia64-*-hpux*): Remove its float format exception.
10464 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10465 * hppa-hpux-nat.c: Remove file.
10466 * hppa-hpux-tdep.c: Remove file.
10467 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10468 Move them here from hppa-tdep.h
10469 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10470 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10471 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10472 Move them to hppa-tdep.c.
10473 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10474 declarations.
10475 * ia64-hpux-nat.c: Remove file.
10476 * ia64-hpux-tdep.c: Remove file.
10477 * ia64-hpux-tdep.h: Remove file.
10478 * inf-ttrace.c: Remove file.
10479 * inf-ttrace.h: Remove file.
10480 * solib-ia64-hpux.c: Remove file.
10481 * solib-ia64-hpux.h: Remove file.
10482 * solib-pa64.c: Remove file.
10483 * solib-pa64.h: Remove file.
10484 * solib-som.c: Remove file.
10485 * solib-som.h: Remove file.
10486 * somread.c: Remove file.
10487
25268153
JB
104882015-03-13 John Baldwin <jhb@FreeBSD.org>
10489
10490 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10491 * config.in: Regenerate.
10492 * configure: Regenerate.
10493 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 10494 define.
25268153
JB
10495 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10496 enumerate memory regions if present.
10497
773eacf5
JB
104982015-03-13 John Baldwin <jhb@FreeBSD.org>
10499
10500 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10501 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10502 expressions.
10503 (i386fbsd_sigtramp_p): Likewise.
10504
01b6bdb0
JB
105052015-03-12 John Baldwin <jhb@FreeBSD.org>
10506
10507 * MAINTAINERS (Write After Approval): Add John Baldwin.
10508
811a659a
GB
105092015-03-12 Gary Benson <gbenson@redhat.com>
10510
10511 * solib.c (_initialize_solib): Make "set/show sysroot" use
10512 add_setshow_optional_filename_cmd so it can be restored to
10513 empty after being set.
10514
10304ef3
SDJ
105152015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10516
10517 * Makefile.in (SFILES): New source break-catch-syscall.c.
10518 (COMMON_OBS): New object break-catch-syscall.o.
10519 * break-catch-syscall.c: New file.
10520 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10521 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10522 (struct syscall_catchpoint): Likewise.
10523 (dtor_catch_syscall): Likewise.
10524 (catch_syscall_inferior_data): Likewise.
10525 (struct catch_syscall_inferior_data): Likewise.
10526 (get_catch_syscall_inferior_data): Likewise.
10527 (catch_syscall_inferior_data_cleanup): Likewise.
10528 (insert_catch_syscall): Likewise.
10529 (remove_catch_syscall): Likewise.
10530 (breakpoint_hit_catch_syscall): Likewise.
10531 (print_it_catch_syscall): Likewise.
10532 (print_one_catch_syscall): Likewise.
10533 (print_mention_catch_syscall): Likewise.
10534 (print_recreate_catch_syscall): Likewise.
10535 (catch_syscall_breakpoint_ops): Likewise.
10536 (syscall_catchpoint_p): Likewise.
10537 (create_syscall_event_catchpoint): Likewise.
10538 (catch_syscall_split_args): Likewise.
10539 (catch_syscall_command_1): Likewise.
10540 (is_syscall_catchpoint_enabled): Likewise.
10541 (catch_syscall_enabled): Likewise.
10542 (catching_syscall_number): Likewise.
10543 (catch_syscall_completer): Likewise.
10544 (clear_syscall_counts): Likewise.
10545 (initialize_breakpoint_ops): Move initialization of syscall
10546 catchpoints to break-catch-syscall.c.
10547 (_initialize_breakpoint): Move code related to syscall catchpoints
10548 to break-catch-syscall.c.
10549
badd37ce
SDJ
105502015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10551
10552 * breakpoint.c (breakpoint_find_if): New function.
10553 * breakpoint.h (breakpoint_find_if): New prototype.
10554
0a93529c
GB
105552015-03-11 Gary Benson <gbenson@redhat.com>
10556
10557 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10558 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10559 (remote_fileio_to_host_ulong): Likewise.
10560 (remote_fileio_to_host_mode): Likewise.
10561 (remote_fileio_to_host_time): Likewise.
10562 (remote_fileio_to_host_stat): Likewise.
10563 * remote.c (PACKET_vFile_fstat): New enum value.
10564 (remote_protocol_features): Register the "vFile:fstat" feature.
10565 (remote_hostio_fstat): New function.
10566 (remote_bfd_iovec_stat): Use the above.
10567 (_initialize_remote): Register new "set/show remote
10568 hostio-fstat-packet" command.
10569 * symfile.c (separate_debug_file_exists): Update comment.
10570 * NEWS: Announce new vFile:fstat packet.
10571
791c0056
GB
105722015-03-11 Gary Benson <gbenson@redhat.com>
10573
10574 * common/common-remote-fileio.h: New file.
10575 * common/common-remote-fileio.c: Likewise.
10576 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10577 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10578 (COMMON_OBS): Add common-remote-fileio.o.
10579 (common-remote-fileio.o): New rule.
10580 * remote-fileio.h (common-remote-fileio.h): New include.
10581 * remote-fileio.c (gdb/fileio.h): Do not include.
10582 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10583 (remote_fileio_to_fio_uint): Likewise.
10584 (remote_fileio_to_fio_time): Likewise.
10585 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10586 (remote_fileio_to_fio_mode): Likewise.
10587 (remote_fileio_to_fio_ulong): Likewise.
10588 (remote_fileio_to_fio_stat): Likewise.
10589
1390d0ef
AW
105902015-03-11 Andy Wingo <wingo@igalia.com>
10591
10592 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10593 we were checking the cached type, not the cached dynamic type.
10594
84a4591a
AW
105952015-03-11 Andy Wingo <wingo@igalia.com>
10596
10597 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10598 other strings, as these are on the GC'd heap, and will be
10599 collected along with the smob.
10600
85642ba0
AW
106012015-03-11 Andy Wingo <wingo@igalia.com>
10602
10603 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10604 (objfile_functions): Bind gdbscm_objfile_progspace to
10605 objfile-progspace.
10606 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10607
92fab5a6
AW
106082015-03-11 Andy Wingo <wingo@igalia.com>
10609
10610 * guile/guile.c (_initialize_guile): Disable automatic
10611 finalization, if Guile offers us that possibility.
10612 * guile/guile.c (call_initialize_gdb_module):
10613 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10614 finalizers in appropriate places.
10615 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10616 scm_set_automatic_finalization_enabled.
10617 * configure: Regenerated.
10618
f054145e
AA
106192015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10620
10621 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10622 SAL, if possible.
10623
18396193
AA
106242015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10625
10626 * s390-linux-nat.c (struct arch_lwp_info): New.
10627 (s390_fix_watch_points): Rename to...
10628 (s390_prepare_to_resume): ...this. Skip the PER info update
10629 unless the watch points have changed.
10630 (s390_refresh_per_info, s390_new_thread): New functions.
10631 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10632 s390_fix_watch_points.
10633 (s390_remove_watchpoint): Likewise.
10634 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10635 Register s390_prepare_to_resume.
10636
9eb1356e
PA
106372015-03-09 Pedro Alves <palves@redhat.com>
10638
10639 Revert:
10640 2015-03-07 Pedro Alves <palves@redhat.com>
10641 * common/gdb_socket.h: New file.
10642 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10643 sys/socket.h.
10644 (net_open): Use union gdb_sockaddr_u.
10645
aac331e4
PA
106462015-03-07 Pedro Alves <palves@redhat.com>
10647
10648 * configure.ac (build_warnings): Move -Wmissing-prototypes
10649 -Wdeclaration-after-statement -Wmissing-parameter-type
10650 -Wold-style-declaration -Wold-style-definition to the C-specific
10651 set.
10652 * configure: Regenerate.
10653
366c75fc
PA
106542015-03-07 Pedro Alves <palves@redhat.com>
10655
10656 * common/gdb_socket.h: New file.
10657 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10658 sys/socket.h.
10659 (net_open): Use union gdb_sockaddr_u.
10660
72df25b2
PA
106612015-03-07 Pedro Alves <palves@redhat.com>
10662
10663 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10664 (exceptions_state_mc_action_iter)
10665 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10666 Don't define.
10667 [__cplusplus] (try_scope_depth): New global.
10668 [__cplusplus] (exception_try_scope_entry)
10669 (exception_try_scope_exit, gdb_exception_sliced_copy)
10670 (exception_rethrow): New functions.
10671 (throw_exception): In C++ mode, throw
10672 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10673 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10674 (throw_it): In C++ mode, use try_scope_depth.
10675 * common/common-exceptions.h [!__cplusplus]
10676 (exceptions_state_mc_action_iter)
10677 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10678 Don't declare.
10679 [__cplusplus] (exception_try_scope_entry)
10680 (exception_try_scope_exit, exception_rethrow): Declare.
10681 [__cplusplus] (struct exception_try_scope): New struct.
10682 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10683 C++ exceptions.
10684 (struct gdb_exception_RETURN_MASK_ALL)
10685 (struct gdb_exception_RETURN_MASK_ERROR)
10686 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10687
284e6217
PA
106882015-03-07 Pedro Alves <palves@redhat.com>
10689
10690 * main.c (handle_command_errors): Remove volatile qualifier from
10691 parameter.
10692
6c63c96a
PA
106932015-03-07 Pedro Alves <palves@redhat.com>
10694
10695 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10696 TRY and CATCH.
10697 * gdbtypes.c (safe_parse_type): Remove empty line.
10698 (types_deeply_equal):
10699 * guile/scm-frame.c (gdbscm_frame_name):
10700 * linux-thread-db.c (find_new_threads_once):
10701 * python/py-breakpoint.c (bppy_get_commands):
10702 * record-btrace.c (record_btrace_insert_breakpoint)
10703 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10704 (record_btrace_start_replaying): Adjust to avoid code between TRY
10705 and CATCH.
10706
492d29ea
PA
107072015-03-07 Pedro Alves <palves@redhat.com>
10708
10709 * common/common-exceptions.c (struct catcher) <exception>: No
10710 longer a pointer to volatile exception. Now an exception value.
10711 <mask>: Delete field.
10712 (exceptions_state_mc_init): Remove all parameters. Adjust.
10713 (exceptions_state_mc): No longer pop the catcher here.
10714 (exceptions_state_mc_catch): New function.
10715 (throw_exception): Adjust.
10716 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10717 all parameters.
10718 (exceptions_state_mc_catch): Declare.
10719 (TRY_CATCH): Rename to ...
10720 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10721 (CATCH, END_CATCH): New.
10722 All callers adjusted.
10723
ece957c8
TT
107242015-03-07 Tom Tromey <tromey@redhat.com>
10725
10726 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10727
7556d4a4
PA
107282015-03-07 Pedro Alves <palves@redhat.com>
10729
10730 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10731 (amd64_epilogue_frame_cache): Normal exception handling code.
10732 * break-catch-throw.c (check_status_exception_catchpoint)
10733 (re_set_exception_catchpoint): Ditto.
10734 * cli/cli-interp.c (safe_execute_command):
10735 * cli/cli-script.c (script_from_file): Ditto.
10736 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10737 Ditto.
10738 * compile/compile-object-run.c (compile_object_run): Ditto.
10739 * cp-abi.c (baseclass_offset): Ditto.
10740 * cp-valprint.c (cp_print_value): Ditto.
10741 * exceptions.c (catch_exceptions_with_msg):
10742 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10743 * frame.c (get_frame_address_in_block_if_available): Ditto.
10744 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10745 (i386_sigtramp_frame_cache): Ditto.
10746 * infcmd.c (post_create_inferior): Ditto.
10747 * linespec.c (parse_linespec, find_linespec_symbols):
10748 * p-valprint.c (pascal_object_print_value): Ditto.
10749 * parse.c (parse_expression_for_completion): Ditto.
10750 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10751 * remote.c (remote_get_noisy_reply): Ditto.
10752 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10753 * solib-svr4.c (solib_svr4_r_map): Ditto.
10754
f873665f 107552015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
10756
10757 * common/common-utils.h (startswith): New inline function.
10758 All places where this logic was used updated to use the above.
10759
68901c4d
PA
107602015-03-05 Pedro Alves <palves@redhat.com>
10761
10762 PR gdb/18002
10763 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10764 after reading the breakpoint's shadow memory.
10765
2dcb2b1a
MK
107662015-03-05 Mark Kettenis <kettenis@gnu.org>
10767
10768 * hppabsd-nat.c: Remove file.
10769 * hppaobsd-nat.c: New file.
10770 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10771 hppaobsd-nat.c.
10772 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10773 hppaobsd-nat.o.
10774
527a273a
PA
107752015-03-04 Pedro Alves <palves@redhat.com>
10776
10777 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10778 (target_decr_pc_after_break): Delete declaration.
10779 * target.c (default_target_decr_pc_after_break)
10780 (target_decr_pc_after_break): Delete.
10781 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10782 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10783 * linux-thread-db.c (check_event): Likewise.
10784 * infrun.c (adjust_pc_after_break): Likewise.
10785 * darwin-nat.c (cancel_breakpoint): Likewise.
10786 * aix-thread.c (aix_thread_wait): Likewise.
10787 * target-delegates.c: Regenerate.
10788
faf09f01
PA
107892015-03-04 Pedro Alves <palves@redhat.com>
10790
10791 * linux-nat.c (save_sigtrap): Check for breakpoints before
10792 checking watchpoints.
10793 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10794 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10795 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10796 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10797 (linux_nat_stopped_by_sw_breakpoint)
10798 (linux_nat_supports_stopped_by_sw_breakpoint)
10799 (linux_nat_stopped_by_hw_breakpoint)
10800 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10801 (linux_nat_wait_1): Don't re-increment the PC if relying on
10802 SIGTRAP's siginfo->si_code.
10803 (linux_nat_add_target): Install new target methods.
10804 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10805 offset if the target already adjusted the PC.
10806 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10807 (GDB_ARCH_TRAP_BRKPT): New.
10808 (TRAP_HWBKPT): Define if not already defined.
10809
f7e6eed5
PA
108102015-03-04 Pedro Alves <palves@redhat.com>
10811
10812 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10813 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10814 Delete field.
10815 <stop_reason>: New field.
10816 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10817 (packet_set_cmd_state): New function.
10818 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10819 features.
10820 (remote_query_supported): If not disabled with the corresponding
10821 "set remote foo-packet" command, report support for the swbreak
10822 and hwbreak features.
10823 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10824 field.
10825 <stop_reason>: New field.
10826 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10827 (remote_wait_as): Adjust.
10828 (remote_stopped_by_sw_breakpoint)
10829 (remote_supports_stopped_by_sw_breakpoint)
10830 (remote_stopped_by_hw_breakpoint)
10831 (remote_supports_stopped_by_hw_breakpoint): New functions.
10832 (remote_stopped_by_watchpoint): New function.
10833 (init_remote_ops): Install them.
10834 (_initialize_remote): Register new "set/show remote
10835 swbreak-feature-packet" and "set/show remote
10836 swbreak-feature-packet" commands.
10837
9e8915c6
PA
108382015-03-04 Pedro Alves <palves@redhat.com>
10839
10840 * btrace.h: Include target/waitstatus.h.
10841 (struct btrace_thread_info) <stop_reason>: New field.
10842 * record-btrace.c (record_btrace_step_thread): Use
10843 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10844 (record_btrace_decr_pc_after_break): Delete.
10845 (record_btrace_stopped_by_sw_breakpoint)
10846 (record_btrace_supports_stopped_by_sw_breakpoint)
10847 (record_btrace_stopped_by_hw_breakpoint)
10848 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10849 (init_record_btrace_ops): Install them.
10850 * record-full.c (record_full_hw_watchpoint): Delete and replace
10851 with ...
10852 (record_full_stop_reason): ... this throughout.
10853 (record_full_exec_insn): Adjust.
10854 (record_full_wait_1): Adjust. No longer re-increment the PC.
10855 (record_full_wait_1): Adjust. Use
10856 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10857 (record_full_stopped_by_watchpoint): Adjust.
10858 (record_full_stopped_by_sw_breakpoint)
10859 (record_full_supports_stopped_by_sw_breakpoint)
10860 (record_full_supports_stopped_by_sw_breakpoint)
10861 (record_full_stopped_by_hw_breakpoint)
10862 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10863 (init_record_full_ops, init_record_full_core_ops): Install them.
10864 * record.c (record_check_stopped_by_breakpoint): New function.
10865 * record.h: Include target/waitstatus.h.
10866 (record_check_stopped_by_breakpoint): New declaration.
10867
15c66dd6
PA
108682015-03-04 Pedro Alves <palves@redhat.com>
10869
10870 enum lwp_stop_reason -> enum target_stop_reason
10871 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10872 (linux_nat_stopped_by_watchpoint, status_callback)
10873 (linux_nat_wait_1): Adjust.
10874 * linux-nat.h (enum lwp_stop_reason): Delete.
10875 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10876 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10877 * target/waitstatus.h (enum target_stop_reason): New.
10878
1cf4d951
PA
108792015-03-04 Pedro Alves <palves@redhat.com>
10880
10881 * breakpoint.c (need_moribund_for_location_type): New function.
10882 (bpstat_stop_status): Don't skipping checking moribund locations
10883 of breakpoint types which the target tell caused a stop.
10884 (program_breakpoint_here_p): New function, factored out from ...
10885 (bp_loc_is_permanent): ... this.
10886 (update_global_location_list): Don't create a moribund location if
10887 the target supports reporting stops of the type of the removed
10888 breakpoint.
10889 * breakpoint.h (program_breakpoint_here_p): New declaration.
10890 * infrun.c (adjust_pc_after_break): Return early if the target has
10891 already adjusted the PC. Add comments.
10892 (handle_signal_stop): If nothing explains a signal, and the target
10893 tells us the stop was caused by a software breakpoint, check if
10894 there's a breakpoint instruction in the memory. If so, adjust the
10895 PC before presenting the stop to the user. Otherwise, ignore the
10896 trap. If nothing explains a signal, and the target tells us the
10897 stop was caused by a hardware breakpoint, ignore the trap.
10898 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10899 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10900 to_supports_stopped_by_hw_breakpoint>: New fields.
10901 (target_stopped_by_sw_breakpoint)
10902 (target_supports_stopped_by_sw_breakpoint)
10903 (target_stopped_by_hw_breakpoint)
10904 (target_supports_stopped_by_hw_breakpoint): Define.
10905 * target-delegates.c: Regenerate.
10906
79639e11
PA
109072015-03-04 Pedro Alves <palves@redhat.com>
10908
10909 * infrun.c (follow_fork_inferior): Use the whole of the
10910 inferior_ptid and pending_follow.related_pid ptids instead of
10911 building ptids from the process components. Adjust verbose output
10912 to use target_pid_to_str.
10913 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10914 inferior_ptid and pending_follow.related_pid ptids instead of
10915 building ptids from the process components.
10916
e85e8e5e
MK
109172015-03-04 Mark Kettenis <kettenis@gnu.org>
10918
10919 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10920 (inf_ptrace_insert_fork_catchpoint): New function.
10921 (inf_ptrace_remove_fork_catchpoint): New function.
10922 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10923
87de11c0
AA
109242015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10925
10926 * s390-linux-tdep.c (s390_register_name): Return empty string
10927 instead of NULL for registers that shouldn't be visible.
10928
d851a69a
AA
109292015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10930
10931 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10932 XML file for 64-bit targets.
10933
b072f6c1
SM
109342015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10935
10936 * target.h (find_default_create_inferior): Remove declaration.
10937 (find_default_attach): Likewise.
10938
c1593e4f
PA
109392015-03-03 Pedro Alves <palves@redhat.com>
10940
10941 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10942 Use ptid_get_pid to get the overall process id when resuming all
10943 threads.
10944
90ad5e1d
PA
109452015-03-03 Pedro Alves <palves@redhat.com>
10946
10947 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10948 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10949 * inf-ptrace.c (get_ptrace_pid): New function.
10950 (inf_ptrace_resume): Use it.
10951 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10952 to the lower layer.
10953
d68e53f4
MM
109542015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10955
10956 * nat/linux-btrace.c: Include sys/utsname.h.
10957 (linux_determine_kernel_ptr_bits): New.
10958 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10959 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10960 ptr_bits.
10961
986b6601
MM
109622015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10963
10964 * btrace.c (ftrace_update_function): Treat return as tailcall for
10965 "_dl_runtime_resolve".
10966
ce0dfbea
MM
109672015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10968
10969 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10970 * btrace.c (ftrace_debug): Do not print the line range.
10971 (ftrace_skip_file, ftrace_update_lines): Remove.
10972 (ftrace_new_function): Remove lbegin and lend initialization.
10973 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10974 * record-btrace.c (btrace_compute_src_line_range): New.
10975 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10976
95e50b27
PA
109772015-03-02 Pedro Alves <palves@redhat.com>
10978
10979 * infrun.c (follow_exec): Delete all threads of the process except
10980 the event thread. Extended comments.
10981
00e474c2
JB
109822015-03-02 Joel Brobecker <brobecker@adacore.com>
10983
10984 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10985
cc7039d3
JB
109862015-03-02 Joel Brobecker <brobecker@adacore.com>
10987
10988 * utils.h: Remove <stdbool.h> #include.
10989 (producer_is_gcc): Change return type to "int".
10990 * utils.c (producer_is_gcc): Change return type to int.
10991 Return 1 instead of true, and 0 instead of false.
10992 Adjust function documentation accordingly.
10993
550bdf96
AA
109942015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10995
10996 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10997 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10998 present.
10999 (s390_linux_store_inferior_registers): Likewise.
11000 (s390_get_hwcap): Remove function. Embed its logic...
11001 (s390_read_description): ...here. Yield a target description with
11002 vector registers if applicable.
11003 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
11004 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
11005 "features/s390x-tevx-linux64.c".
11006 (struct gdbarch_tdep) <v0_full_regnum>: New field.
11007 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
11008 for "GNU/Linux-specific registers".
11009 (s390_dwarf_reg_r0l): New enum value.
11010 (s390_dwarf_reg_to_regnum): Support vector registers.
11011 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
11012 of GPR lower halves.
11013 (regnum_is_vxr_full): New function.
11014 (s390_register_name): New function.
11015 (s390_pseudo_register_name): Handle v0-v15, which are composed of
11016 f0-f15 and v0l-v15l.
11017 (s390_pseudo_register_type): Likewise.
11018 (s390_pseudo_register_read): Likewise.
11019 (s390_pseudo_register_write): Likewise.
11020 (s390_value_from_register): Account for the fact that values are
11021 placed left-justified in vector registers.
11022 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
11023 the vector reggroup and omit them from the general reggroup.
11024 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
11025 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
11026 (s390_iterate_over_regset_sections): Add iterations for the two
11027 new vector regsets.
11028 (s390_core_read_description): Yield a target description with
11029 vector registers if applicable.
11030 (s390_gdbarch_init): Handle target descriptions with vector
11031 registers. Add "register_name" gdbarch method.
11032 (_initialize_s390_tdep): Call new tdesc initialization functions.
11033 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
11034 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
11035 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
11036 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
11037 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
11038 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
11039 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
11040 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
11041 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
11042 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
11043 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
11044 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
11045 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
11046 (S390_NUM_REGS): Adjust value.
11047 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
11048 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11049 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
11050 * NEWS: Announce S/390 vector register support.
11051
446899e4
AA
110522015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11053
11054 * features/s390-tevx-linux64.xml: New file.
11055 * features/s390-vx-linux64.xml: New file.
11056 * features/s390-vx.xml: New file.
11057 * features/s390x-tevx-linux64.xml: New file.
11058 * features/s390x-vx-linux64.xml: New file.
11059 * features/Makefile (WHICH): Add s390-vx-linux64,
11060 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
11061 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
11062 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
11063 macros.
11064 * features/s390-tevx-linux64.c: New generated file.
11065 * features/s390-vx-linux64.c: Likewise.
11066 * features/s390x-tevx-linux64.c: Likewise.
11067 * features/s390x-vx-linux64.c: Likewise.
11068 * regformats/s390-tevx-linux64.dat: Likewise.
11069 * regformats/s390-vx-linux64.dat: Likewise.
11070 * regformats/s390x-tevx-linux64.dat: Likewise.
11071 * regformats/s390x-vx-linux64.dat: Likewise.
11072
b7236fbe
DE
110732015-02-28 Doug Evans <xdje42@gmail.com>
11074
11075 * symtab.h (struct symtab) <next>: Fix comment.
11076
02e62830
SM
110772015-02-27 Simon Marchi <simon.marchi@ericsson.com>
11078
11079 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11080 python_GdbMethods.
11081
bf36a1e7
PA
110822015-02-27 Pedro Alves <palves@redhat.com>
11083
11084 * dtrace-probe.c (dtrace_probe_ops): Make extern.
11085
ad6aff7d
PA
110862015-02-27 Pedro Alves <palves@redhat.com>
11087
11088 * common/common-exceptions.h (exception_none): Declare.
11089 * common/common-exceptions.c (exception_none): Moved from
11090 exceptions.c.
11091 (exceptions_state_mc_init): Use exception_none.
11092 * exceptions.c (exception_none): Move to
11093 common/common-exceptions.c.
11094 * exceptions.h (exception_none): Move to
11095 common/common-exceptions.h.
11096
97c18565
PA
110972015-02-27 Pedro Alves <palves@redhat.com>
11098
11099 * main.c (catch_command_errors, catch_command_errors_const):
11100 Remove 'mask' argument. Adjust.
11101 (captured_main): Adjust callers.
11102
e992c591
PA
111032015-02-27 Pedro Alves <palves@redhat.com>
11104
11105 * python/python-internal.h: Include "extension-priv.h".
11106
64166036
PA
111072015-02-27 Pedro Alves <palves@redhat.com>
11108
11109 * breakpoint.h (enum print_stop_action): Move further up in the
11110 file.
11111
8a526fa6
PA
111122015-02-27 Pedro Alves <palves@redhat.com>
11113
11114 * gdbarch.sh: Include regcache.h.
11115 * gdbarch.h: Regenerate.
11116
0fa9c223
PA
111172015-02-27 Pedro Alves <palves@redhat.com>
11118
11119 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11120 Remove duplicate const.
11121 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11122 duplicate const.
11123
7cf99fb1
PA
111242015-02-27 Pedro Alves <palves@redhat.com>
11125
11126 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11127 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11128 * features/feature_to_c.sh: Tag the generated xml_builtin array
11129 with extern const in C++ mode.
11130
1424c16e
TT
111312015-02-27 Tom Tromey <tromey@redhat.com>
11132
11133 * minidebug.c (struct lzma_stream): Rename to ...
11134 (struct gdb_lzma_stream): ... this.
11135 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11136
10367c7c
PA
111372015-02-27 Pedro Alves <palves@redhat.com>
11138
11139 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11140 function.
11141 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11142 (mi_cmd_stack_list_variables): Use it.
11143
4180215b
PA
111442015-02-27 Pedro Alves <palves@redhat.com>
11145
11146 * x86-linux-nat.c (u_debugreg_offset): New function.
11147 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11148
2f56f7c3
PA
111492015-02-27 Pedro Alves <palves@redhat.com>
11150
11151 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11152 declaration.
11153 Include break-common.h.
11154
570dc176
TT
111552015-02-27 Tom Tromey <tromey@redhat.com>
11156 Pedro Alves <palves@redhat.com>
11157
11158 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11159 local used to iterate over enums.
11160 * completer.c (signal_completer): Likewise.
11161 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11162 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11163 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11164 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11165 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11166 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11167 * tui-wingeneral.c (tui_refresh_all): Likewise.
11168
68c14faa
PA
111692015-02-27 Pedro Alves <palves@redhat.com>
11170
11171 * target.h: Include "infrun.h".
11172
749bab01
PA
111732015-02-27 Pedro Alves <palves@redhat.com>
11174
11175 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11176
3c14e5a3
PA
111772015-02-27 Pedro Alves <palves@redhat.com>
11178
11179 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11180 (IPA_SYM): Use it.
11181 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11182
56000a98
PA
111832015-02-27 Pedro Alves <palves@redhat.com>
11184
11185 * cli-out.c (_rl_erase_entire_line): Move declaration out of
11186 cli_mld_erase_entire_line, and make it extern "C".
11187 * common/common-defs.h (EXTERN_C): New.
11188 * completer.c (_rl_completion_prefix_display_length)
11189 (_rl_print_completions_horizontally, QSFUNC): Move declarations
11190 out of gdb_display_match_list_1.
11191 (_rl_qsort_string_compare): Move declaration out of
11192 gdb_display_match_list_1, and make it extern "C".
11193 * defs.h (re_comp): Use EXTERN_C.
11194 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11195 and make it extern "C".
11196 (monstartup): Move declaration out of maintenance_set_profile_cmd,
11197 and make it extern "C".
11198 (main): Move declaration out of maintenance_set_profile_cmd.
11199 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11200 EXTERN_C.
11201
bcabf420
PA
112022015-02-27 Pedro Alves <palves@redhat.com>
11203
11204 * python/python.c (GdbMethods): Rename to ...
11205 (python_GdbMethods): ... this and make extern.
11206 (GdbModuleDef): Rename to ...
11207 (python_GdbModuleDef): ... this and make extern.
11208
928dbe07
PA
112092015-02-27 Pedro Alves <palves@redhat.com>
11210
11211 * record-btrace.c (set_record_btrace_cmdlist)
11212 (show_record_btrace_cmdlist): Remove redefinitions.
11213
52059ffd
TT
112142015-02-27 Tom Tromey <tromey@redhat.com>
11215 Pedro Alves <palves@redhat.com>
11216
11217 * dwarf2-frame.c (enum cfa_how_kind, struct
11218 dwarf2_frame_state_reg_info): Move out of struct
11219 dwarf2_frame_state.
11220 * dwarf2read.c (struct tu_stats): Move out of struct
11221 dwarf2_per_objfile.
11222 (struct file_entry): Move out of struct line_header.
11223 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11224 typedef_field_list): Move out of struct field_info.
11225 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11226 Move out of struct dynamic_prop.
11227 (union type_owner, union field_location, struct field, struct
11228 range_bounds, union type_specific): Move out of struct main_type.
11229 (struct fn_fieldlist, struct fn_field, struct typedef_field)
11230 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11231 (struct call_site_target, union call_site_parameter_u, struct
11232 call_site_parameter): Move out of struct call_site.
11233 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11234 m32c_prologue.
11235 (enum srcdest_kind): Move out of struct srcdest.
11236 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11237 * prologue-value.h (enum prologue_value_kind): Move out of struct
11238 prologue_value.
11239 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11240 gdbarch_tdep.
11241 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11242 out of struct field_info.
11243 * symfile.h (struct other_sections): Move out of struct
11244 section_addr_info.
11245 * symtab.c (struct symbol_cache_slot): Move out struct
11246 block_symbol_cache.
11247 * target-descriptions.c (enum tdesc_type_kind): Move out of
11248 typedef struct tdesc_type.
11249 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11250 struct tui_line_or_address.
11251 * value.c (enum internalvar_kind, union internalvar_data): Move
11252 out of struct internalvar.
11253 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11254 gdbarch_tdep.
11255
fe978cb0
PA
112562015-02-27 Tom Tromey <tromey@redhat.com>
11257 Pedro Alves <palves@redhat.com>
11258
11259 Rename symbols whose names are reserved C++ keywords throughout.
11260
3bc3d82a
PA
112612015-02-27 Pedro Alves <palves@redhat.com>
11262
11263 * Makefile.in (COMPILER): New, get it from autoconf.
11264 (COMPILE.pre, CC_LD): Use COMPILER.
11265 (CXX): Get from autoconf instead.
11266 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11267 * acinclude.m4: Include build-with-cxx.m4.
11268 * build-with-cxx.m4: New file.
11269 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11270 Disable -Werror by default if building in C++ mode.
11271 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11272 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11273 Run supported-warning-flags tests with the C++ compiler.
11274 Save/restore CXXFLAGS too.
11275 * configure: Regenerate.
11276
07697489
PA
112772015-02-27 Pedro Alves <palves@redhat.com>
11278
11279 * libiberty.m4: New file.
11280 * acinclude.m4: Include libiberty.m4.
11281 * configure.ac: Call libiberty_INIT.
11282 * config.in, configure: Regenerate.
11283
60abeae4
AA
112842015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11285
11286 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11287 31-bit targets, but 64-bit targets as well.
11288 (s390_gnu_triplet_regexp): New function.
11289 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11290 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11291 method.
11292
f44466fb 112932015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
11294
11295 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11296 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11297 from CONTEXT_DEBUGGER.
11298
0def5aaa
DE
112992015-02-26 Doug Evans <dje@google.com>
11300
11301 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11302 CHECK_TYPEDEF.
11303 (set_type_vptr_fieldno): Ditto.
11304 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11305 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11306
77b64a49
PA
113072015-02-26 Pedro Alves <palves@redhat.com>
11308
11309 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11310 * complaints.c (vcomplaint): Pass argument FMT directly to
11311 printf-like functions instead of complaint->fmt.
11312 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11313 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11314 * compile/compile-loc2c.c (pushf, unary, binary): Add
11315 ATTRIBUTE_PRINTF.
11316 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11317 to pushf.
11318 (BINARY): Pass string literal as format string to 'binary'.
11319 * compile/compile-object-load.c (link_callbacks_einfo): Add
11320 ATTRIBUTE_PRINTF.
11321 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11322
532f44ed
PA
113232015-02-26 Pedro Alves <palves@redhat.com>
11324
11325 * windows-termcap.c: Rename to ...
11326 * stub-termcap.c: ... this. Adjust header line.
11327 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11328 windows-termcap.c.
11329 * configure: Regenerate.
11330 * configure.ac: Refer to stub-termcap.o instead of
11331 windows-termcap.o.
11332 * gdb_curses.h: Mention stub-termcap.c instead of
11333 windows-termcap.c.
11334
081a1c2c
JK
113352015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11336
11337 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11338 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11339
2f41223f
AT
113402015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11341
11342 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11343
80c57053
JK
113442015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11345
11346 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11347 bfd_canonicalize_symtab.
11348
cf424aef
JB
113492015-02-25 John Baldwin <jhb@FreeBSD.org>
11350
11351 * amd64fbsd-nat.c: Include sys/user.h.
11352 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11353 instead of KERN_PS_STRINGS to locate the signal trampoline.
11354 * i386fbsd-nat.c: Include sys/user.h.
11355 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11356 instead of KERN_PS_STRINGS to locate the signal trampoline.
11357 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11358 (amd64fbsd_sigtramp_p): New.
11359 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11360 longer set default values.
11361 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11362 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11363 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11364 (i386fbsd_freebsd4_sigtramp_start)
11365 (i386fbsd_freebsd4_sigtramp_middle)
11366 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11367 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11368 (i386fbsd_sigtramp_p): New.
11369 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11370 longer set default values.
11371 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11372
c5cb74ee
JB
113732015-02-25 John Baldwin <jhb@freebsd.org>
11374
11375 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11376 get_frame_register instead of frame_unwind_register_unsigned.
11377
17487d85
JK
113782015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11379
11380 PR build/18033
11381 * compile/compile-c-support.c (c_compute_program): Change // comment.
11382 * compile/compile-object-load.c (setup_sections): Change // comment.
11383
9357a9e6
JB
113842015-02-26 Joel Brobecker <brobecker@adacore.com>
11385
11386 PR build/18033:
11387 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11388
1f10ba14
PA
113892015-02-23 Pedro Alves <palves@redhat.com>
11390
11391 * remote.c (skip_to_semicolon): New function.
11392 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11393 special case the stop reasons that look like hex numbers
11394 upfront. Instead handle real register numbers after matching
11395 all the known stop reasons.
11396
96553a0c
DE
113972015-02-21 Doug Evans <dje@google.com>
11398
11399 PR c++/17976, symtab/17821
11400 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11401 is_in_anonymous. All callers updated.
11402 (find_symbol_in_baseclass): Ditto.
11403 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11404 for symbols in an anonymous namespace.
11405 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11406 DW_AT_name directly.
11407 (dwarf2_name): Convert missing namespace name to
11408 CP_ANONYMOUS_NAMESPACE_STR.
11409
2db9a427
PA
114102015-02-20 Pedro Alves <palves@redhat.com>
11411
11412 * linux-nat.c (linux_handle_extended_wait): Call
11413 thread_db_notice_clone whenever a new clone LWP is detected.
11414 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11415 functions.
11416 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11417 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11418 (linux_unstop_all_lwps): Declare.
11419 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11420 (thread_get_info_callback): Delete.
11421 (thread_from_lwp): Use td_thr_get_info and record_thread.
11422 (thread_db_attach_lwp): Delete.
11423 (thread_db_notice_clone): New function.
11424 (try_thread_db_load_1): If /proc is mounted and shows the
11425 process'es task list, walk over all LWPs and call thread_from_lwp
11426 instead of relying on td_ta_thr_iter.
11427 (attach_thread): Don't call check_thread_signals here. Split the
11428 tail part of the function (which adds the thread to the core GDB
11429 thread list) to ...
11430 (record_thread): ... this function. Call check_thread_signals
11431 here.
11432 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11433 call thread_from_lwp.
11434 (thread_db_update_thread_list): Rename to ...
11435 (thread_db_update_thread_list_org): ... this.
11436 (thread_db_update_thread_list): New function.
11437 (thread_db_find_thread_from_tid): Delete.
11438 (thread_db_get_ada_task_ptid): Simplify.
11439 * nat/linux-procfs.c: Include <sys/stat.h>.
11440 (linux_proc_task_list_dir_exists): New function.
11441 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11442
3b27ef47
PA
114432015-02-20 Pedro Alves <palves@redhat.com>
11444
11445 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11446 main LWP. Handle the case of waitpid returning 0 if we're already
11447 attached to the LWP. Don't set the LWP's last_resume_kind to
11448 resume_stop if we already knew about the LWP.
11449 (linux_nat_filter_event): Add debug logs.
11450
1cc28231
PA
114512015-02-20 Pedro Alves <palves@redhat.com>
11452
11453 * target.h (forward_target_decr_pc_after_break): Delete
11454 declaration.
11455
5c5019c2
PA
114562015-02-20 Pedro Alves <palves@redhat.com>
11457
11458 PR threads/18006
11459 * linux-thread-db.c (thread_get_info_callback): Return early if
11460 the thread's lwp id is -1.
11461
f3978e91
JB
114622015-02-20 Joel Brobecker <brobecker@adacore.com>
11463
11464 GDB 7.9 released.
11465
ffdf88ec
SE
114662015-02-19 Steve Ellcey <sellcey@imgtec.com>
11467
11468 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11469 (dtrace_get_probes) Change type of variable 'dof'.
11470
c9587f88
AT
114712015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11472
11473 PR breakpoints/16812
11474 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11475 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11476 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11477
53cf2ee0
DT
114782015-02-19 David Taylor <dtaylor@emc.com>
11479
11480 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11481
acfe0940
PP
114822015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11483
11484 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11485 function.
11486 (tui_putc): Don't call tui_handle_resize_during_io.
11487 (tui_getc): Likewise.
11488 (tui_mld_getc): Likewise.
11489 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11490 (tui_sigwinch_token): New static variable.
11491 (tui_initialize_win): Adjust documentation. Set
11492 tui_sigwinch_token.
11493 (tui_async_resize_screen): New asynchronous callback.
11494 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11495 invoke tui_async_resize_screen.
11496
f6a88844
JM
114972015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11498
11499 * configure: Regenerated.
11500 * configure.ac: Use GDB_AC_TRANSFORM.
11501 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11502 * acinclude.m4: sinclude transform.m4.
11503 * transform.m4: New file.
11504 (GDB_AC_TRANSFORM): New macro.
11505
b05e3b0d
JM
115062015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11507
11508 * NEWS: Announce the support for DTrace SDT probes.
11509
c3e3045e
JM
115102015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11511
11512 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11513 (amd64_dtrace_parse_probe_argument): New function.
11514 (amd64_dtrace_probe_is_enabled): Likewise.
11515 (amd64_dtrace_enable_probe): Likewise.
11516 (amd64_dtrace_disable_probe): Likewise.
11517 (amd64_linux_init_abi): Register the
11518 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11519 `gdbarch_dtrace_disable_probe' and
11520 `gdbarch_dtrace_probe_is_enabled' hooks.
11521 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11522 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11523 (amd64_dtrace_enable_probe_sequence): Likewise.
11524 (amd64_dtrace_disable_probe_sequence): Likewise.
11525
d4777acb
JM
115262015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11527
11528 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11529 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11530 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11531 handle ELF files.
11532 * Makefile.in (SFILES): dtrace-probe.c added.
11533 * configure: Regenerate.
11534 * dtrace-probe.c: New file.
11535 (SHT_SUNW_dof): New constant.
11536 (dtrace_probe_type): New enum.
11537 (dtrace_probe_arg): New struct.
11538 (dtrace_probe_arg_s): New typedef.
11539 (struct dtrace_probe_enabler): New struct.
11540 (dtrace_probe_enabler_s): New typedef.
11541 (dtrace_probe): New struct.
11542 (dtrace_probe_is_linespec): New function.
11543 (dtrace_dof_sect_type): New enum.
11544 (dtrace_dof_dofh_ident): Likewise.
11545 (dtrace_dof_encoding): Likewise.
11546 (DTRACE_DOF_ENCODE_LSB): Likewise.
11547 (DTRACE_DOF_ENCODE_MSB): Likewise.
11548 (dtrace_dof_hdr): New struct.
11549 (dtrace_dof_sect): Likewise.
11550 (dtrace_dof_provider): Likewise.
11551 (dtrace_dof_probe): Likewise.
11552 (DOF_UINT): New macro.
11553 (DTRACE_DOF_PTR): Likewise.
11554 (DTRACE_DOF_SECT): Likewise.
11555 (dtrace_process_dof_probe): New function.
11556 (dtrace_process_dof): Likewise.
11557 (dtrace_build_arg_exprs): Likewise.
11558 (dtrace_get_arg): Likewise.
11559 (dtrace_get_probes): Likewise.
11560 (dtrace_get_probe_argument_count): Likewise.
11561 (dtrace_can_evaluate_probe_arguments): Likewise.
11562 (dtrace_evaluate_probe_argument): Likewise.
11563 (dtrace_compile_to_ax): Likewise.
11564 (dtrace_probe_destroy): Likewise.
11565 (dtrace_gen_info_probes_table_header): Likewise.
11566 (dtrace_gen_info_probes_table_values): Likewise.
11567 (dtrace_probe_is_enabled): Likewise.
11568 (dtrace_probe_ops): New variable.
11569 (info_probes_dtrace_command): New function.
11570 (_initialize_dtrace_probe): Likewise.
11571 (dtrace_type_name): Likewise.
11572
8b367e17
JM
115732015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11574
11575 * gdbarch.sh (dtrace_parse_probe_argument): New.
11576 (dtrace_probe_is_enabled): Likewise.
11577 (dtrace_enable_probe): Likewise.
11578 (dtrace_disable_probe): Likewise.
11579 * gdbarch.c: Regenerate.
11580 * gdbarch.h: Regenerate.
11581
9aca2ff8
JM
115822015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11583
11584 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11585 stap_probe_ops for `enable_probe' and `disable_probe'.
11586 * probe.c (enable_probes_command): New function.
11587 (disable_probes_command): Likewise.
11588 (_initialize_probe): Define the cli commands `enable probe' and
11589 `disable probe'.
11590 (parse_probe_linespec): New function.
11591 (info_probes_for_ops): Use parse_probe_linespec.
11592 * probe.h (probe_ops): New hooks `enable_probe' and
11593 `disable_probe'.
11594
03e98035
JM
115952015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11596
11597 * probe.c (compute_probe_arg): Moved from stap-probe.c
11598 (compile_probe_arg): Likewise.
11599 (probe_funcs): Likewise.
11600 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11601 (compile_probe_arg): Likewise.
11602 (probe_funcs): Likewise.
11603
6f9b8491
JM
116042015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11605
11606 * probe.c (print_ui_out_not_applicables): New function.
11607 (exists_probe_with_pops): Likewise.
11608 (info_probes_for_ops): Do not include column headers for probe
11609 types for which no probe has been actually found on any object.
11610 Also invoke `print_ui_out_not_applicables' in order to match the
11611 column rows with the header when probes of several types are
11612 listed.
11613 Print the "Type" column.
11614 * probe.h (probe_ops): Added a new probe operation `type_name'.
11615 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11616 (stap_type_name): New function.
11617
69efdff1
PP
116182015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11619
11620 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11621 (key_is_command_char): Delete.
11622
f8e5e23e
PA
116232015-02-17 Pedro Alves <palves@redhat.com>
11624
11625 * tui/tui.c (tui_enable): Resize windows before anything
11626 might show a window.
11627
9f2e0721
MO
116282015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11629
11630 PR gdb/17984
11631 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11632 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11633 call.
11634 * aarch64-tdep.h (tdesc_aarch64): Declare.
11635
171e6b1c
MW
116362015-02-12 Mark Wielaard <mjw@redhat.com>
11637
11638 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11639
d5ff0482
DE
116402015-02-13 Doug Evans <dje@google.com>
11641
11642 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11643 anonymous_namespace to is_in_anonymous for consistency with the rest
11644 of the file.
11645 (cp_lookup_bare_symbol): Fix typo in comment.
11646 (cp_search_static_and_baseclasses): Ditto.
11647 (search_symbol_list): Use vertical space in comment better.
11648 (reset_directive_searched): Ditto. Fix typo.
11649 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11650
9f04ac5f
YQ
116512015-02-13 Yao Qi <yao.qi@arm.com>
11652
11653 * MAINTAINERS: Update my email address.
11654
013d0319
DE
116552015-02-12 Doug Evans <dje@google.com>
11656
b615dd20 11657 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 11658
9a7e538e
DE
116592015-02-12 Doug Evans <dje@google.com>
11660
11661 * completer.c (complete_line): Remove incorrect comment.
11662
e1fcd575
JK
116632015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11664
11665 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11666 (py_print_frame): Use RETURN_MASK_ERROR.
11667
b99bf4e3
JK
116682015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11669
11670 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11671 function comment. Wrap all function that can throw in cleanups.
11672 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11673 cleanups.
11674
800eb1ce
JK
116752015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11676
11677 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11678 Remove the error label.
11679
34019068
JK
116802015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11681
11682 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11683 with goto first, indent the former else codepath left. Put variable
11684 'elided' to a new inner block.
11685
8d4a54e2
JK
116862015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11687
11688 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11689
18ad82c1
PA
116902015-02-11 Pedro Alves <palves@redhat.com>
11691
11692 * xcoffread.c (within_function): Delete.
11693
e36122e9
TT
116942015-02-11 Tom Tromey <tromey@redhat.com>
11695 Pedro Alves <palves@redhat.com>
11696
11697 * breakpoint.c (base_breakpoint_ops): Delete.
11698 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11699 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11700 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11701 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11702 * python/py-arch.c (arch_object_type): Make extern.
11703 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11704 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11705 * python/py-cmd.c (cmdpy_object_type): Make extern.
11706 * python/py-continueevent.c (continue_event_object_type)
11707 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11708 parameter. Update all callers.
11709 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11710 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11711 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11712 * python/py-function.c (fnpy_object_type): Make extern.
11713 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11714 * python/py-infevents.c (call_pre_event_object_type)
11715 (inferior_call_post_event_object_type).
11716 (memory_changed_event_object_type): Make extern.
11717 * python/py-infthread.c (thread_object_type): Make extern.
11718 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11719 * python/py-linetable.c (linetable_entry_object_type)
11720 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11721 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11722 (clear_objfiles_event_object_type): Make extern.
11723 * python/py-objfile.c (objfile_object_type): Make extern.
11724 * python/py-param.c (parmpy_object_type): Make extern.
11725 * python/py-progspace.c (pspace_object_type): Make extern.
11726 * python/py-signalevent.c (signal_event_object_type): Make extern.
11727 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11728 * python/py-type.c (type_object_type, field_object_type)
11729 (type_iterator_object_type): Make extern.
11730 * python/python.c (python_extension_script_ops)
11731 (python_extension_ops): Make extern.
11732 * stap-probe.c (stap_probe_ops): Make extern.
11733
0703599a
PA
117342015-02-11 Pedro Alves <pedro@codesourcery.com>
11735
11736 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11737 because the event thread is not the current thread.
11738
eaaf76ab
DE
117392015-02-11 Doug Evans <xdje42@gmail.com>
11740
11741 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11742 been initialized yet, return NULL.
11743
e7d52ed3
DE
117442015-02-11 Doug Evans <dje@google.com>
11745
11746 * symfile.h (new_symfile_objfile): Delete.
11747 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11748 All callers updated.
11749
fc6b1256
PP
117502015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11751
11752 * tui/tui-io.c (tui_handle_resize_during_io): Call
11753 tui_update_gdb_sizes() after resizing the screen.
11754 * tui/tui.c (tui_enable): Resize the terminal before
11755 calling tui_update_gdb_sizes().
11756
d9080678
PP
117572015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11758
11759 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11760 line before printing a newline.
11761
9f615e3a
MW
117622015-02-11 Mark Wielaard <mjw@redhat.com>
11763
11764 * utils.c (producer_is_gcc): Return true or false.
11765
d9080678 117662015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
11767
11768 * utils.h (producer_is_gcc): Change return type to bool. Add major
11769 argument.
11770 * utils.c (producer_is_gcc): Likewise.
11771 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11772 * dwarf2read.c (check_producer): Likewise.
11773
b052c4fb
PA
117742015-02-10 Pedro Alves <palves@redhat.com>
11775
11776 * infrun.c (displaced_step_fixup): Switch to the event thread
11777 before calling gdbarch_displaced_step_fixup.
11778
3ac240d4
AT
117792015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11780
11781 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11782
c1cc6152
SM
117832015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11784
11785 * ada-varobj.c (ada_name_of_child): Constify parent.
11786 (ada_path_expr_of_child): Same.
11787 (ada_value_of_child): Same.
11788 (ada_type_of_child): Same.
11789 * c-varobj.c (c_is_path_expr_parent): Same.
11790 (c_describe_child): Same.
11791 (c_name_of_child): Same.
11792 (c_value_of_child): Same.
11793 (c_type_of_child): Same.
11794 (cplus_number_of_children): Same.
11795 (cplus_describe_child): Constify var.
11796 (cplus_name_of_child): Constify parent.
11797 (cplus_value_of_child): Same.
11798 (cplus_type_of_child): Same.
11799 * jv-varobj.c (java_name_of_child): Same.
11800 (java_value_of_child): Same.
11801 (java_type_of_child): Same.
11802 * varobj.c (value_of_child): Same.
11803 (varobj_default_is_path_expr_parent): Constify var, parent and return
11804 value.
11805 (varobj_get_path_expr): Constify var, modify path_expr through
11806 mutable_var.
11807 (install_new_value): Constify parent.
11808 (value_of_child): Constify parent.
11809 * varobj.h (struct varobj): Constify parent.
11810 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11811 type_of_child.
11812 (varobj_get_path_expr): Constify var.
11813 (varobj_get_path_expr_parent): Constify var and return value.
11814
c1ee9414
LM
118152015-02-10 Luis Machado <lgustavo@codesourcery.com>
11816
11817 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11818 (arm_prologue_this_id): Move PC and SP limit checks to
11819 arm_prologue_unwind_stop_reason.
11820 (arm_prologue_unwind) <stop_reason> : Set to
11821 arm_prologue_unwind_stop_reason.
11822
f7de9aab
MW
118232015-02-09 Mark Wielaard <mjw@redhat.com>
11824
11825 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11826 DW_LANG_Fortran08 as language_fortran.
11827
0b24eb2d
SDJ
118282015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11829
11830 PR remote/17946
11831 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11832 of pointer against char.
11833
a2c2acaf
MW
118342015-02-09 Mark Wielaard <mjw@redhat.com>
11835
11836 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11837 (c_type_print_modifier): Likewise.
11838 * dwarf2read.c (read_tag_atomic_type): New function.
11839 (read_type_die_1): Handle DW_TAG_atomic_type.
11840 * gdbtypes.c (make_atomic_type): New function.
11841 (recursive_dump_type): Handle TYPE_ATOMIC.
11842 * gdbtypes.h (enum type_flag_values): Renumber.
11843 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11844 (TYPE_ATOMIC): New macro.
11845 (make_atomic_type): Declare.
11846
31fd9caa
MM
118472015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11848
11849 * btrace.c (ftrace_find_call): Skip gaps.
11850 (ftrace_new_function): Initialize level.
11851 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11852 (ftrace_new_switch): Update
11853 level computation.
11854 (ftrace_new_gap): New.
11855 (ftrace_update_function): Create new function after gap.
11856 (btrace_compute_ftrace_bts): Create gap on error.
11857 (btrace_stitch_bts): Update parameters. Clear trace if it
11858 becomes empty.
11859 (btrace_stitch_trace): Update parameters. Update callers.
11860 (btrace_clear): Reset the number of gaps.
11861 (btrace_insn_get): Return NULL if the iterator points to a gap.
11862 (btrace_insn_number): Return zero if the iterator points to a gap.
11863 (btrace_insn_end): Allow gaps at the end.
11864 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11865 (btrace_find_insn_by_number): Assert that the found iterator does
11866 not point to a gap.
11867 (btrace_call_next, btrace_call_prev): Assert that the last function
11868 is not a gap.
11869 * btrace.h (btrace_bts_error): New.
11870 (btrace_function): Update comment.
11871 (btrace_function) <insn, insn_offset, number>: Update comment.
11872 (btrace_function) <errcode>: New.
11873 (btrace_thread_info) <ngaps>: New.
11874 (btrace_thread_info) <replay>: Update comment.
11875 (btrace_insn_get): Update comment.
11876 * record-btrace.c (btrace_ui_out_decode_error): New.
11877 (record_btrace_info): Print number of gaps.
11878 (btrace_insn_history, btrace_call_history): Call
11879 btrace_ui_out_decode_error for gaps.
11880 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11881
afb778a2
MM
118822015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11883
11884 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11885 * nat/linux-btrace.c: (btrace_this_cpu): New.
11886 (cpu_supports_bts): Call btrace_this_cpu.
11887 (intel_supports_bts): Add cpu parameter.
11888
7d5c24b3
MM
118892015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11890
11891 * btrace.h (btrace_insn_class): New.
11892 (btrace_insn) <size, iclass>: New.
11893 * btrace.c (ftrace_find_call): Update parameters. Update users.
11894 Use instruction classification.
11895 (ftrace_new_return): Update parameters. Update users.
11896 (ftrace_update_function): Update parameters. Update users. Use
11897 instruction classification.
11898 (ftrace_update_insns): Update parameters. Update users.
11899 (ftrace_classify_insn): New.
11900 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11901 TRY_CATCH around call to gdb_insn_length.
11902
76235df1
MM
119032015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11904
11905 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11906 Update parameters. Update users.
11907
d33501a5
MM
119082015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11909
11910 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11911 (btrace_conf_bts_attributes): New.
11912 (btrace_conf_children): Add attributes.
11913 * common/btrace-common.h (btrace_config_bts): New.
11914 (btrace_config)<bts>: New.
11915 (btrace_config): Update comment.
11916 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11917 Use config.
11918 * features/btrace-conf.dtd: Increment version. Add size
11919 attribute to bts element.
11920 * record-btrace.c (set_record_btrace_bts_cmdlist,
11921 show_record_btrace_bts_cmdlist): New.
11922 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11923 record_btrace_print_conf, cmd_set_record_btrace_bts,
11924 cmd_show_record_btrace_bts): New.
11925 (record_btrace_info): Call record_btrace_print_conf.
11926 (_initialize_record_btrace): Add commands.
11927 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11928 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11929 (btrace_sync_conf): Synchronize bts size.
11930 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11931 * NEWS: Announce new commands and new packets.
11932
f4abbc16
MM
119332015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11934
11935 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11936 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11937 (x86_linux_btrace_conf): New.
11938 (x86_linux_create_target): Initialize to_btrace_conf.
11939 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11940 Check format. Split into this and ...
11941 (linux_enable_bts): ... this.
11942 (linux_btrace_conf): New.
11943 (perf_event_skip_record): Renamed into ...
11944 (perf_event_skip_bts_record): ... this. Updated users.
11945 (linux_disable_btrace): Split into this and ...
11946 (linux_disable_bts): ... this.
11947 (linux_read_btrace): Check format.
11948 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11949 (linux_btrace_conf): New.
11950 (btrace_target_info)<ptid>: Moved.
11951 (btrace_target_info)<conf>: New.
11952 (btrace_target_info): Split into this and ...
11953 (btrace_tinfo_bts): ... this. Updated users.
11954 * btrace.c (btrace_enable): Update parameters.
11955 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11956 (btrace_conf_children, btrace_conf_attributes)
11957 (btrace_conf_elements): New.
11958 * btrace.h (btrace_enable): Update parameters.
11959 (btrace_conf, parse_xml_btrace_conf): New.
11960 * common/btrace-common.h (btrace_config): New.
11961 * feature/btrace-conf.dtd: New.
11962 * record-btrace.c (record_btrace_conf): New.
11963 (record_btrace_cmdlist): New.
11964 (record_btrace_enable_warn, record_btrace_open): Pass
11965 &record_btrace_conf.
11966 (record_btrace_info): Print recording format.
11967 (cmd_record_btrace_bts_start): New.
11968 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11969 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11970 Add "record bts" alias command.
11971 * remote.c (remote_state)<btrace_config>: New.
11972 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11973 (remote_protocol_features): Add qXfer:btrace-conf:read.
11974 (remote_open_1): Call remote_btrace_reset.
11975 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11976 (btrace_target_info)<conf>: New.
11977 (btrace_sync_conf, btrace_read_config): New.
11978 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11979 btrace_read_conf.
11980 (remote_btrace_conf): New.
11981 (init_remote_ops): Initialize to_btrace_conf.
11982 (_initialize_remote): Add qXfer:btrace-conf packet.
11983 * target.c (target_enable_btrace): Update parameters.
11984 (target_btrace_conf): New.
11985 * target.h (target_enable_btrace): Update parameters.
11986 (target_btrace_conf): New.
11987 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11988 (target_ops)<to_enable_btrace>: Update parameters and comment.
11989 (target_ops)<to_btrace_conf>: New.
11990 * target-delegates: Regenerate.
11991 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11992 (target_debug_print_const_struct_btrace_target_info_p): New.
11993 * NEWS: Announce new command and new packet.
11994
aadf7753
MM
119952015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11996
11997 * nat/linux-btrace.h (perf_event_buffer): New.
11998 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11999 <bts>: ... this.
12000 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
12001 (perf_event_buffer_size, perf_event_buffer_begin)
12002 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
12003 Updated users.
12004 (perf_event_new_data): New.
12005
043c3577
MM
120062015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12007
12008 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
12009 * record-btrace.c (record_btrace_open): Remove call to
12010 target_supports_btrace.
12011 * remote.c (remote_supports_btrace): Update parameters.
12012 * target.c (target_supports_btrace): Update parameters.
12013 * target.h (to_supports_btrace, target_supports_btrace): Update
12014 parameters.
12015 * target-delegates.c: Regenerate.
12016 * target-debug.h (target_debug_print_enum_btrace_format): New.
12017 * nat/linux-btrace.c
12018 (kernel_supports_btrace): Rename into ...
12019 (kernel_supports_bts): ... this. Update users. Update warning text.
12020 (intel_supports_btrace): Rename into ...
12021 (intel_supports_bts): ... this. Update users.
12022 (cpu_supports_btrace): Rename into ...
12023 (cpu_supports_bts): ... this. Update users.
12024 (linux_supports_btrace): Update parameters. Split into this and ...
12025 (linux_supports_bts): ... this.
12026 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
12027
734b0e4b
MM
120282015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12029
12030 * Makefile.in (SFILES): Add common/btrace-common.c.
12031 (COMMON_OBS): Add common/btrace-common.o.
12032 (btrace-common.o): Add build rules.
12033 * btrace.c (parse_xml_btrace): Update parameters.
12034 (parse_xml_btrace_block): Set format field.
12035 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
12036 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
12037 (btrace_compute_ftrace): Split into this and...
12038 (btrace_compute_ftrace_bts): ...this.
12039 (btrace_stitch_trace): Split into this and...
12040 (btrace_stitch_bts): ...this.
12041 * btrace.h (parse_xml_btrace): Update parameters.
12042 (make_cleanup_btrace_data): New.
12043 * common/btrace-common.c: New.
12044 * common/btrace-common.h: Include common-defs.h.
12045 (btrace_block_s): Update comment.
12046 (btrace_format): New.
12047 (btrace_format_string): New.
12048 (btrace_data_bts): New.
12049 (btrace_data): New.
12050 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
12051 * remote.c (remote_read_btrace): Update parameters.
12052 * target.c (target_read_btrace): Update parameters.
12053 * target.h (target_read_btrace): Update parameters.
12054 (target_ops)<to_read_btrace>: Update parameters.
12055 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
12056 * target-delegates.c: Regenerate.
12057 * target-debug (target_debug_print_struct_btrace_data_p): New.
12058 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
12059 (linux_read_bts): ...this.
12060 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
12061
bd2e0e9e
DE
120622015-02-06 Doug Evans <dje@google.com>
12063
12064 * remote-m32r-sdi.c: Include symfile.h.
12065
f176c4b5
DE
120662015-02-06 Doug Evans <dje@google.com>
12067
12068 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
12069 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12070 to here.
12071
d6c146e9
PA
120722015-02-06 Pedro Alves <palves@redhat.com>
12073
12074 * linux-thread-db.c (find_new_threads_callback): Add debug output.
12075
b9d61307
SM
120762015-02-06 Simon Marchi <simon.marchi@ericsson.com>
12077
12078 PR gdb/15678
12079 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12080 (enable_count_command): Check args for NULL value.
12081
e9fbd043
DE
120822015-02-05 Doug Evans <xdje42@gmail.com>
12083
12084 * guile/scm-frame.c: Fix spelling errors in a comment.
12085
881d5d5d
JK
120862015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12087
12088 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12089 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
12090 return type.
12091
20ba1ce6
PA
120922015-02-04 Pedro Alves <palves@redhat.com>
12093
12094 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12095 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12096 returns true.
12097 (resume_stopped_resumed_lwps): Don't check whether the thread is
12098 marked as executing.
12099 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12100
f962539a
AA
121012015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12102
12103 * regset.h (struct regset): Add flags field.
12104 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12105 * corelow.c (get_core_register_section): Add warning if the size
12106 exceeds the requested size and the regset does not have the
12107 REGSET_VARIABLE_SIZE flag set.
12108 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12109 flag.
12110 * armbsd-tdep.c (armbsd_gregset): Likewise.
12111 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12112 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12113 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12114 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12115
dde9acd6
AA
121162015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12117
12118 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12119 For ".reg-xstate", explicitly specify the requested section size
12120 via X86_XSTATE_SIZE instead of just 0 on input and
12121 X86_XSTATE_MAX_SIZE on output.
12122 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12123 Likewise.
12124
1528345d
AA
121252015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12126
12127 PR corefiles/17808:
12128 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12129 function type, particularly its SIZE parameter.
12130 * gdbarch.h: Regenerate.
12131 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12132 actual against required size using ">=" instead of "==".
12133 (amd64_collect_fpregset): Likewise.
12134 * i386-tdep.c (i386_supply_gregset): Likewise.
12135 (i386_collect_gregset): Likewise.
12136 (i386_supply_fpregset): Likewise.
12137 (i386_collect_fpregset): Likewise.
12138 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12139 (mips_fill_gregset_wrapper): Likewise.
12140 (mips_supply_fpregset_wrapper): Likewise.
12141 (mips_fill_fpregset_wrapper): Likewise.
12142 (mips64_supply_gregset_wrapper): Likewise.
12143 (mips64_fill_gregset_wrapper): Likewise.
12144 (mips64_supply_fpregset_wrapper): Likewise.
12145 (mips64_fill_fpregset_wrapper): Likewise.
12146 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12147 (am33_supply_fpregset_method): Likewise.
12148 (am33_collect_gregset_method): Likewise.
12149 (am33_collect_fpregset_method): Likewise.
12150
518be979
DE
121512015-02-04 Doug Evans <dje@google.com>
12152 Pedro Alves <palves@redhat.com>
12153 Eli Zaretskii <eliz@gnu.org>
12154
12155 PR tui/17810
12156 * tui/tui-command.c (tui_refresh_cmd_win): New function.
12157 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12158 * tui/tui-file.c: #include tui/tui-command.h.
12159 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12160 (tui_file_flush): Refresh command window if stream is gdb_stdout.
12161 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12162
80bd5fab
PA
121632015-02-04 Pedro Alves <palves@redhat.com>
12164
12165 Fix build breakage.
12166 * event-loop.c (gdb_do_one_event): Add default switch case.
12167
a7606d80
JK
121682015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12169
12170 Filter out inferior gcc option -fpreprocessed.
12171 * compile/compile.c (filter_args): New function.
12172 (get_args): Use it.
12173
70b66289
PA
121742015-02-03 Pedro Alves <palves@redhat.com>
12175
12176 * event-loop.c: Don't declare nor define a queue type for
12177 gdb_event_p.
12178 (event_queue): Delete.
12179 (create_event, create_file_event, gdb_event_xfree)
12180 (initialize_event_loop, process_event): Delete.
12181 (gdb_do_one_event): Return as soon as one event is handled.
12182 (handle_file_event): Change prototype. Used the passed in
12183 file_handler pointer and ready_mask instead of looping over all
12184 file handlers.
12185 (gdb_wait_for_event): Update the poll/select timeouts before
12186 blocking. Run event handlers directly instead of queueing events.
12187 Return as soon as one event is handled.
12188 (struct async_event_handler_data): Delete.
12189 (invoke_async_event_handler): Delete.
12190 (check_async_event_handlers): Change return type to int. Run
12191 event handlers directly instead of queueing events. Return as
12192 soon as one event is handled.
12193 (handle_timer_event): Delete.
12194 (update_wait_timeout): New function, factored out from
12195 poll_timers.
12196 (poll_timers): Reimplement.
12197 * event-loop.h (initialize_event_loop): Delete declaration.
12198 * top.c (gdb_init): Don't call initialize_event_loop.
12199
b7d2e916
PA
122002015-02-03 Pedro Alves <palves@redhat.com>
12201
12202 * event-loop.c (clear_async_event_handler): New function.
12203 * event-loop.h (clear_async_event_handler): New declaration.
12204 * record-btrace.c (record_btrace_async): New function.
12205 (init_record_btrace_ops): Install record_btrace_async.
12206 * record-full.c (record_full_async): New function.
12207 (record_full_resume): Don't mark the async event source here.
12208 (init_record_full_ops): Install record_full_async.
12209 (record_full_core_resume): Don't mark the async event source here.
12210 (init_record_full_core_ops): Install record_full_async.
12211 * remote.c (remote_async): Mark and clear the async stop reply
12212 queue event-loop token as appropriate.
12213
d9d41e78
PA
122142015-02-03 Pedro Alves <palves@redhat.com>
12215
12216 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12217 target_is_async_p instead of target_can_async.
12218 (linux_nat_wait): Use target_is_async_p instead of
12219 target_can_async. Don't enable async here.
12220 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12221 target_is_async_p instead of target_can_async.
12222
aa3de267
SM
122232015-02-02 Simon Marchi <simon.marchi@ericsson.com>
12224
12225 * varobj.h (lang_varobj_ops): Mention which return values need
12226 to be freed.
12227
2c811c0f
JB
122282015-02-02 Joel Brobecker <brobecker@adacore.com>
12229
12230 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12231
b1eedac9
JB
122322015-02-02 Joel Brobecker <brobecker@adacore.com>
12233
12234 PR gdb/17856:
12235 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12236 results found in the cache.
12237
66c168ae
JB
122382015-02-02 Joel Brobecker <brobecker@adacore.com>
12239
12240 PR gdb/17854:
12241 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12242 when allocating a new one.
12243
4bdc02b2
TT
122442015-02-01 Tom Tromey <tom@tromey.com>
12245
12246 * MAINTAINERS: Remove myself.
12247
ae6ae975
DE
122482015-01-31 Doug Evans <xdje42@gmail.com>
12249
12250 * dwarf2read.c (process_structure_scope): Update setting of
12251 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12252 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12253 (set_type_vptr_fieldno): New function.
12254 (internal_type_vptr_basetype): New function.
12255 (set_type_vptr_basetype): New function.
12256 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12257 TYPE_VPTR_BASETYPE.
12258 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12259 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12260 (print_cplus_stuff): ... moved here.
12261 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12262 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12263 moved to ...
12264 (struct cplus_struct_type): ... here. All uses updated.
12265 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12266 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12267 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12268 * stabsread.c (read_tilde_fields): Update setting of
12269 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12270
09e2d7c7
DE
122712015-01-31 Doug Evans <xdje42@gmail.com>
12272
12273 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12274 to self_p.
12275 (cp_print_class_member): Rename local domain to self_type.
12276 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12277 domain_type to self_type.
12278 (set_die_type) <need_gnat_info>: Handle
12279 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12280 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12281 TYPE_SPECIFIC_SELF_TYPE.
12282 * gdbtypes.c (internal_type_self_type): New function.
12283 (set_type_self_type): New function.
12284 (smash_to_memberptr_type): Rename parameter domain to self_type.
12285 Update setting of TYPE_SELF_TYPE.
12286 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12287 (smash_to_method_type): Rename parameter domain to self_type.
12288 Update setting of TYPE_SELF_TYPE.
12289 (check_stub_method): Call smash_to_method_type.
12290 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12291 (copy_type_recursive): Ditto.
12292 * gdbtypes.h (enum type_specific_kind): New value
12293 TYPE_SPECIFIC_SELF_TYPE.
12294 (struct main_type) <type_specific>: New member self_type.
12295 (struct cplus_struct_type) <fn_field.type>: Update comment.
12296 (TYPE_SELF_TYPE): Rewrite.
12297 (internal_type_self_type, set_type_self_type): Declare.
12298 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12299 self_type.
12300 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12301 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12302 TYPE_TARGET_TYPE.
12303 * stabsread.c (read_member_functions): Mark methods with
12304 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12305 TYPE_SELF_TYPE.
12306
4bfb94b8
DE
123072015-01-31 Doug Evans <xdje42@gmail.com>
12308
12309 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12310 All uses updated.
12311
5f4ce105
DE
123122015-01-31 Doug Evans <xdje42@gmail.com>
12313
12314 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12315 or unions. Return zero if union.
12316 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12317 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12318 gnuv3_get_vtable.
12319 (compute_vtable_size): Assert only passed structs.
12320 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12321
f6b3afbf
DE
123222015-01-31 Doug Evans <xdje42@gmail.com>
12323
12324 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12325 kinds.
12326
cfb069a8
GB
123272015-01-31 Gary Benson <gbenson@redhat.com>
12328 Doug Evans <dje@google.com>
12329
12330 PR cli/9007
12331 PR cli/11920
12332 PR cli/15548
12333 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12334 reached.
12335 * common/common-exceptions.h (enum errors)
12336 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12337 * completer.h (get_max_completions_reached_message): New declaration.
12338 (max_completions): Likewise.
12339 (completion_tracker_t): New typedef.
12340 (new_completion_tracker): New declaration.
12341 (make_cleanup_free_completion_tracker): Likewise.
12342 (maybe_add_completion_enum): New enum.
12343 (maybe_add_completion): New declaration.
12344 (throw_max_completions_reached_error): Likewise.
12345 * completer.c (max_completions): New global variable.
12346 (new_completion_tracker): New function.
12347 (free_completion_tracker): Likewise.
12348 (make_cleanup_free_completion_tracker): Likewise.
12349 (maybe_add_completions): Likewise.
12350 (throw_max_completions_reached_error): Likewise.
12351 (complete_line): Remove duplicates and limit result to max_completions
12352 entries.
12353 (get_max_completions_reached_message): New function.
12354 (gdb_display_match_list): Handle max_completions.
12355 (_initialize_completer): New declaration and function.
12356 * symtab.c: Include completer.h.
12357 (completion_tracker): New static variable.
12358 (completion_list_add_name): Call maybe_add_completion.
12359 (default_make_symbol_completion_list_break_on_1): Renamed from
12360 default_make_symbol_completion_list_break_on. Maintain
12361 completion_tracker across calls to completion_list_add_name.
12362 (default_make_symbol_completion_list_break_on): New function.
12363 * top.c (init_main): Set rl_completion_display_matches_hook.
12364 * tui/tui-io.c: Include completer.h.
12365 (tui_old_rl_display_matches_hook): New static global.
12366 (tui_rl_display_match_list): Notify user if max-completions reached.
12367 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12368 * NEWS (New Options): Mention set/show max-completions.
12369
e11c72c7
GB
123702015-01-31 Gary Benson <gbenson@redhat.com>
12371
12372 * symtab.c (struct add_name_data) <code>: New field.
12373 Updated comments.
12374 (add_symtab_completions): New function.
12375 (symtab_expansion_callback): Likewise.
12376 (default_make_symbol_completion_list_break_on): Set datum.code.
12377 Move minimal symbol scan before calling expand_symtabs_matching.
12378 Scan known primary symtabs for externs and statics before calling
12379 expand_symtabs_matching. Pass symtab_expansion_callback as
12380 expansion_notify argument to expand_symtabs_matching. Do not scan
12381 primary symtabs for externs and statics after calling
12382 expand_symtabs_matching.
12383
276d885b
GB
123842015-01-31 Gary Benson <gbenson@redhat.com>
12385
12386 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12387 (struct quick_symbol_functions) <expand_symtabs_matching>:
12388 New argument expansion_notify. All uses updated.
12389 (expand_symtabs_matching): New argument expansion_notify.
12390 All uses updated.
12391 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12392 Also print expansion notify.
12393 * symtab.c (expand_symtabs_matching_via_partial): Call
12394 expansion_notify whenever a partial symbol table is expanded.
12395 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12396 expansion_notify whenever a symbol table is instantiated.
12397
82083d6d
DE
123982015-01-31 Doug Evans <xdje42@gmail.com>
12399
12400 * cli-out.c: #include completer.h, readline/readline.h.
12401 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12402 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12403 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12404 * cli-out.h (cli_display_match_list): Declare.
12405 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12406 (ELLIPSIS_LEN): Ditto.
12407 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12408 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12409 (gdb_fnprint, gdb_print_filename): Ditto.
12410 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12411 (gdb_display_match_list): Ditto.
12412 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12413 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12414 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12415 (match_list_displayer): New struct.
12416 (gdb_display_match_list): Declare.
12417 * top.c (init_main): Set rl_completion_display_matches_hook.
12418 * tui/tui-io.c: #include completer.h.
12419 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12420 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12421 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12422 (tui_mld_getc, tui_mld_read_key): Ditto.
12423 (tui_rl_display_match_list): Rewrite.
12424 (tui_handle_resize_during_io): New arg for_completion. All callers
12425 updated.
12426
f57d2163
DE
124272015-01-31 Doug Evans <xdje42@gmail.com>
12428
12429 Add symbol lookup cache.
12430 * NEWS: Document new options and commands.
12431 * symtab.c (symbol_cache_key): New static global.
12432 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12433 (SYMBOL_LOOKUP_FAILED): New macro.
12434 (symbol_cache_slot_state): New enum.
12435 (block_symbol_cache): New struct.
12436 (symbol_cache): New struct.
12437 (new_symbol_cache_size, symbol_cache_size): New static globals.
12438 (hash_symbol_entry, eq_symbol_entry): New functions.
12439 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12440 (make_symbol_cache, free_symbol_cache): New functions.
12441 (get_symbol_cache, symbol_cache_cleanup): New function.
12442 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12443 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12444 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12445 (symbol_cache_flush, symbol_cache_dump): New functions.
12446 (maintenance_print_symbol_cache): New function.
12447 (maintenance_flush_symbol_cache): New function.
12448 (symbol_cache_stats): New function.
12449 (maintenance_print_symbol_cache_statistics): New function.
12450 (symtab_new_objfile_observer): New function.
12451 (symtab_free_objfile_observer): New function.
12452 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12453 (_initialize_symtab): Init symbol_cache_key. New parameter
12454 maint symbol-cache-size. New maint commands print symbol-cache,
12455 print symbol-cache-statistics, flush-symbol-cache.
12456 Install new_objfile, free_objfile observers.
12457
e700d1b2
JB
124582015-01-31 Joel Brobecker <brobecker@adacore.com>
12459
12460 PR symtab/17855
12461 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12462 to end.
12463
9f050062
DE
124642015-01-31 Doug Evans <xdje42@gmail.com>
12465
12466 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12467 * auto-load.c: #include ctype.h.
12468 (struct auto_load_pspace_info): Replace member loaded_scripts with
12469 new members loaded_script_files, loaded_script_texts.
12470 (auto_load_pspace_data_cleanup): Update.
12471 (init_loaded_scripts_info): Update.
12472 (get_auto_load_pspace_data_for_loading): Update.
12473 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12474 updated.
12475 (maybe_add_script_text): New function.
12476 (clear_section_scripts): Update.
12477 (source_script_file, execute_script_contents): New functions.
12478 (source_section_scripts): Add support for
12479 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12480 (print_scripts): New function.
12481 (auto_load_info_scripts): Also print inlined scripts.
12482 (maybe_print_unsupported_script_warning): Renamed from
12483 unsupported_script_warning_print. All callers updated.
12484 (maybe_print_script_not_found_warning): Renamed from
12485 script_not_found_warning_print. All callers updated.
12486 * extension-priv.h (struct extension_language_script_ops): New member
12487 objfile_script_executor.
12488 * extension.c (ext_lang_objfile_script_executor): New function.
12489 * extension.h (objfile_script_executor_func): New typedef.
12490 (ext_lang_objfile_script_executor): Declare.
12491 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12492 * guile/guile.c (guile_extension_script_ops): Update.
12493 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12494 * python/python.c (python_extension_script_ops): Update.
12495 (gdbpy_execute_objfile_script): New function.
12496
312809f8
EZ
124972015-01-31 Eli Zaretskii <eliz@gnu.org>
12498
12499 * tui/tui-io.c (tui_expand_tabs): New function.
12500 (tui_puts, tui_redisplay_readline): Expand TABs into the
12501 appropriate number of spaces.
12502 * tui/tui-regs.c: Include tui-io.h.
12503 (tui_register_format): Call tui_expand_tabs to expand TABs into
12504 the appropriate number of spaces.
12505 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12506
b6577aab
DE
125072015-01-30 Doug Evans <dje@google.com>
12508
12509 * NEWS: "info source" command now display producer string if present.
12510 * source.c (source_info): Print producer string if present.
12511
6da58d3e
SM
125122015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12513
12514 * varobj.c (varobj_delete): Fix comment.
12515
837ce252
SM
125162015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12517
12518 * varobj.c (create_child): Modify comment.
12519
b09e2c59
SM
125202015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12521
12522 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12523 parameter.
12524 (ada_name_of_variable): Same.
12525 (ada_path_expr_of_child): Same.
12526 (ada_value_of_variable): Same.
12527 (ada_value_is_changeable_p): Same.
12528 (ada_value_has_mutated): Same.
12529 * c-varobj.c (varobj_is_anonymous_child): Same.
12530 (c_is_path_expr_parent): Same.
12531 (c_number_of_children): Same.
12532 (c_name_of_variable): Same.
12533 (c_path_expr_of_child): Same.
12534 (get_type): Same.
12535 (c_value_of_variable): Same.
12536 (cplus_number_of_children): Same.
12537 (cplus_name_of_variable): Same.
12538 (cplus_path_expr_of_child): Same.
12539 (cplus_value_of_variable): Same.
12540 * jv-varobj.c (java_number_of_children): Same.
12541 (java_name_of_variable): Same.
12542 (java_path_expr_of_child): Same.
12543 (java_value_of_variable): Same.
12544 * varobj.c (number_of_children): Same.
12545 (name_of_variable): Same.
12546 (is_root_p): Same.
12547 (varobj_ensure_python_env): Same.
12548 (varobj_get_objname): Same.
12549 (varobj_get_expression): Same.
12550 (varobj_get_display_format): Same.
12551 (varobj_get_display_hint): Same.
12552 (varobj_has_more): Same.
12553 (varobj_get_thread_id): Same.
12554 (varobj_get_frozen): Same.
12555 (dynamic_varobj_has_child_method): Same.
12556 (varobj_get_gdb_type): Same.
12557 (is_path_expr_parent): Same.
12558 (varobj_default_is_path_expr_parent): Same.
12559 (varobj_get_language): Same.
12560 (varobj_get_attributes): Same.
12561 (varobj_is_dynamic_p): Same.
12562 (varobj_get_child_range): Same.
12563 (varobj_value_has_mutated): Same.
12564 (varobj_get_value_type): Same.
12565 (number_of_children): Same.
12566 (name_of_variable): Same.
12567 (check_scope): Same.
12568 (varobj_editable_p): Same.
12569 (varobj_value_is_changeable_p): Same.
12570 (varobj_floating_p): Same.
12571 (varobj_default_value_is_changeable_p): Same.
12572
2568868e
SM
125732015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12574
12575 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12576 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12577 child->path_expr.
12578 (cplus_path_expr_of_child): Same.
12579
ca83fa81
SM
125802015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12581
12582 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12583 result.
12584 (mi_cmd_var_info_expression): Same.
12585 * varobj.c (varobj_get_expression): Mention in the comment that
12586 the result must by freed by the caller.
12587
afa269ae
SM
125882015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12589
12590 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12591 varobj_get_type.
12592 (varobj_update_one): Same.
12593 * varobj.c (update_type_if_necessary): Free curr_type_str and
12594 new_type_str.
12595 (varobj_get_type): Specify in comment that the result needs to be
12596 freed by the caller.
12597
cd366ee8
DE
125982015-01-29 Doug Evans <dje@google.com>
12599
12600 PR symtab/17890
12601 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12602
38360086
MW
126032015-01-25 Mark Wielaard <mjw@redhat.com>
12604
12605 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12606 * utils.c (producer_is_gcc_ge_4): Likewise.
12607 (producer_is_gcc): New function.
12608 * utils.h (producer_is_gcc): New declaration.
12609
df25ebbd
JB
126102015-01-29 Joel Brobecker <brobecker@adacore.com>
12611
12612 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12613 kind.
12614 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12615 parameter by "addr_stack" parameter.
12616 (resolve_dynamic_range): Replace "addr" parameter by
12617 "stack_addr" parameter. Update function documentation.
12618 Update code accordingly.
12619 (resolve_dynamic_array, resolve_dynamic_union)
12620 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12621 (resolve_dynamic_type): Update code, following the changes made
12622 to resolve_dynamic_type_internal's interface.
12623 * dwarf2loc.h (struct property_addr_info): New.
12624 (dwarf2_evaluate_property): Replace "address" parameter
12625 by "addr_stack" parameter. Adjust function documentation.
12626 (struct dwarf2_offset_baton): New.
12627 (struct dwarf2_property_baton): Update documentation of
12628 field "referenced_type" to be more general. New field
12629 "offset_info" in union data field.
12630 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12631 parameter by "addr_stack" parameter. Adjust code accordingly.
12632 Add support for PROP_ADDR_OFFSET properties.
12633 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12634 DW_AT_data_member_location attributes as well. Use case
12635 statements instead of if/else condition.
12636
4a0ca9ec
JB
126372015-01-29 Joel Brobecker <brobecker@adacore.com>
12638
12639 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12640 Return zero if PARENT_VALUE is NULL and parent_type's
12641 range type is dynamic.
12642
ddb87a81
JB
126432015-01-29 Joel Brobecker <brobecker@adacore.com>
12644
12645 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12646 nonzero if the type's subtype is dynamic.
12647 (resolve_dynamic_range): Also resolve the range's subtype.
12648
3d7ad9b4 126492015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 12650
3d7ad9b4 12651 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
12652 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12653
3a8b707a
DE
126542015-01-27 Doug Evans <dje@google.com>
12655
12656 * NEWS: Mention gdb.Objfile.username.
12657 * python/py-objfile.c (objfpy_get_username): New function.
12658 (objfile_getset): Add "username".
12659
d35b90fb
MW
126602015-01-24 Mark Wielaard <mjw@redhat.com>
12661
12662 * stack.c (return_command): Markup warning message with _.
12663
734ae125
DE
126642015-01-24 Doug Evans <xdje42@gmail.com>
12665
12666 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12667
527f3840
JK
126682015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12669
12670 Fix 100x slowdown regression on DWZ files.
12671 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12672 (struct line_header): Add offset and offset_in_dwz.
12673 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12674 (free_line_header_voidp): New declaration.
12675 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12676 functions.
12677 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12678 (handle_DW_AT_stmt_list): Use line_header_hash.
12679 (free_line_header_voidp): New function.
12680 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12681 (dwarf_decode_lines): New parameter decode_mapping, use it.
12682 (dwarf2_free_objfile): Free line_header_hash.
12683
f7e5394d
SM
126842015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12685
12686 PR gdb/17416
12687 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12688 value_ind.
12689
743649fd
MW
126902015-01-15 Mark Wielaard <mjw@redhat.com>
12691
12692 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12693 DW_AT_noreturn.
12694 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12695 calling_convention an 8 bit bit field.
12696 (TYPE_NO_RETURN): New macro.
12697 * infcmd.c (finish_command): Query if function does not return
12698 normally.
12699 * stack.c (return_command): Likewise.
12700
198297aa
PA
127012015-01-23 Pedro Alves <palves@redhat.com>
12702
12703 * linux-nat.c (linux_is_async_p): New macro.
12704 (linux_nat_is_async_p):
12705 (linux_nat_terminal_inferior): Check whether the target can async
12706 instead of whether it is already async.
12707 (linux_nat_terminal_ours): Don't check whether the target is
12708 async.
12709 (linux_async_pipe): Use linux_is_async_p.
12710
253828f1
JK
127112015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12712
12713 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12714 '-ascending'.
12715 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12716 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12717 Sort tp_array using tp_array_compar.
12718 (_initialize_thread): Extend thread_apply_all_command help.
12719
f0e8c4c5
JK
127202015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12721
12722 * corelow.c (core_open): Call also thread_command.
12723 * gdbthread.h (thread_command): New prototype moved from ...
12724 * thread.c (thread_command): ... here.
12725 (thread_command): Make it global.
12726
03b79603
PA
127272015-01-22 Pedro Alves <palves@redhat.com>
12728
12729 * configure.ac [*mingw32*]: Check $curses_found instead of
12730 $prefer_curses.
12731 * configure: Regenerate.
12732 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12733 HAVE_NCURSES_NCURSES_H checks.
12734
6b8a872f
EZ
127352015-01-22 Eli Zaretskii <eliz@gnu.org>
12736
bbbbffbb 12737 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
12738 fails with the 1st arg NULL, try again with "unknown". Don't test
12739 the "cup" capability: it isn't supported by the Windows port of
12740 ncurses, but the Windows console driver is still capable of
12741 supporting TUI.
12742
4b62a76e
JK
127432015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12744
12745 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12746
82a864f9
EZ
127472015-01-22 Eli Zaretskii <eliz@gnu.org>
12748
12749 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12750 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12751 reason that "make TAGS" is broken.
12752
b35018fd
CG
127532015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12754
12755 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12756 and check additional store instructions.
12757
ffbc4646
WW
127582015-01-21 Wei-cheng Wang <cole945@gmail.com>
12759
12760 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12761
ddeca1df
WW
127622015-01-21 Wei-cheng Wang <cole945@gmail.com>
12763
12764 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12765 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12766 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12767 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12768 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12769 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12770 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12771 ppc_process_record_op19, ppc_process_record_op31,
12772 ppc_process_record_op59, ppc_process_record_op60,
12773 ppc_process_record_op63): Likewise.
12774
049bb5de
JB
127752015-01-20 Joel Brobecker <brobecker@adacore.com>
12776
12777 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12778 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12779 strerror.
12780
42b87c63 127812015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
12782
12783 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12784 ppc_process_record_op31, ppc_process_record_op59,
12785 ppc_process_record_op60, ppc_process_record_op63,
12786 ppc_process_record): Fix -Wformat warning.
12787 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12788 Remove unused variables.
12789
569340fc
CG
127902015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12791
12792 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12793
63413d85
EZ
127942015-01-19 Eli Zaretskii <eliz@gnu.org>
12795
12796 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12797 CONFIG_OBS if not building with a curses library.
12798 * configure: Regenerate.
12799
12800 * windows-termcap.c: Include defs.h. Make the whole body empty if
12801 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12802 HAVE_NCURSES_NCURSES_H is defined.
12803
16d8013c
JB
128042015-01-19 Joel Brobecker <brobecker@adacore.com>
12805
12806 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12807 from end of line to start of next line.
12808
cf90fd9a
WW
128092015-01-17 Wei-cheng Wang <cole945@gmail.com>
12810
12811 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12812 Scan PLT stub backward for reverse debugging.
12813 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12814
b4cdae6f
WW
128152015-01-17 Wei-cheng Wang <cole945@gmail.com>
12816 Ulrich Weigand <uweigand@de.ibm.com>
12817
12818 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12819 gdb_target_obs.
12820 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12821 record.
12822 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12823 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12824 (ppc_linux_init_abi): Set process_record, process_record_signal.
12825 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12826 ppc_linux_record_tdep to gdbarch_tdep.
12827 (ppc_process_record): New declaration.
12828 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12829 ppc_process_record_op19, ppc_process_record_op31,
12830 ppc_process_record_op59, ppc_process_record_op60,
12831 ppc_process_record_op63, ppc_process_record): New functions.
12832
2608dbf8
WW
128332015-01-17 Wei-cheng Wang <cole945@gmail.com>
12834
12835 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12836 rs6000_in_function_epilogue_frame_p and add an argument
12837 for frame_info.
12838 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12839 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12840 New functions.
12841 (rs6000_epilogue_frame_unwind): New.
12842 (rs6000_gdbarch_init): Append epilogue unwinder.
12843
4c347be6
SDJ
128442015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12845
12846 * nat/linux-personality.c: Replace "#ifndef
12847 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12848 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12849 systems.
12850
9f2850ba
EZ
128512015-01-16 Eli Zaretskii <eliz@gnu.org>
12852
6cdb25f4
EZ
12853 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12854 functions.
12855 (_initialize_tui_win) <border-kind, border-mode>:
12856 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
12857 (tui_set_tab_width_command): Fix the commentary.
12858
6cdb25f4
EZ
12859 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12860
bf555842
EZ
12861 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12862 Doc fix.
cb86fcc1
EZ
12863 (tui_set_tab_width_command): Delete and recreate the source and
12864 the disassembly windows, to show the effect of the changed tab
12865 size immediately.
bf555842 12866
9f2850ba
EZ
12867 * tui/tui-data.h (LINE_PREFIX): Make shorter
12868 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12869 "Thread NNNNN.XXXX" thread ID notation on Windows.
12870
95761b2d
JK
128712015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12872
12873 Fix gcc-5 compilation.
12874 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12875
8cc73a39
SDJ
128762015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12877
12878 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12879 (linux-personality.o): New rule.
12880 * common/common-defs.h: Include <stdint.h>.
12881 * config/aarch64/linux.mh (NATDEPFILES): Include
12882 linux-personality.o.
12883 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12884 * config/arm/linux.mh (NATDEPFILES): Likewise.
12885 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12886 * config/i386/linux.mh (NATDEPFILES): Likewise.
12887 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12888 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12889 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12890 * config/mips/linux.mh (NATDEPFILES): Likewise.
12891 * config/pa/linux.mh (NATDEPFILES): Likewise.
12892 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12893 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12894 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12895 * config/s390/linux.mh (NATDEPFILES): Likewise.
12896 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12897 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12898 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12899 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12900 * defs.h: Remove #include <stdint.h> (moved to
12901 common/common-defs.h).
12902 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12903 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12904 nat/linux-personality.c).
12905 (linux_nat_create_inferior): Remove code to disable address space
12906 randomization (moved to nat/linux-personality.c). Create cleanup
12907 to disable address space randomization.
12908 * nat/linux-personality.c: New file.
12909 * nat/linux-personality.h: Likewise.
12910
fb23d554
SDJ
129112015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12912
12913 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12914 common/posix-strerror.c.
12915 (posix-strerror.o): New rule.
12916 (mingw-strerror.o): Likewise.
12917 * common/common-utils.h (safe_strerror): Move prototype to here,
12918 from utils.h.
12919 * common/common.host: New file.
12920 * common/mingw-strerror.c: Likewise.
12921 * common/posix-strerror.c: Likewise.
12922 * configure: Regenerated.
12923 * configure.ac: Source common/common.host. Add variable
12924 common_host_obs to gdb_host_obs.
12925 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12926 gdb/common/posix-strerror.c when warning about the use of
12927 strerror.
12928 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12929 common/mingw-strerror.c.
12930 * posix-hdep.c (safe_strerror): Remove definition; move it to
12931 common/posix-hdep.c.
12932 * utils.h (safe_strerror): Remove prototype; move to
12933 common/common-utils.h.
12934
3af8af43
JB
129352015-01-15 Joel Brobecker <brobecker@adacore.com>
12936
12937 GDB 7.8.2 released.
12938
bafffb51
JB
129392015-01-15 Joel Brobecker <brobecker@adacore.com>
12940
12941 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12942 ___XA type if the array has already been fixed.
12943
cdf43629
YQ
129442015-01-14 Yao Qi <yao@codesourcery.com>
12945
12946 * Makefile.in (ppc-linux.o): New rule.
12947 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12948 * configure.ac: AC_CHECK_FUNCS(getauxval).
12949 * config.in: Re-generated.
12950 * configure: Re-generated.
12951 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12952 Declare.
12953 * nat/ppc-linux.c: New file.
12954 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12955 Call ppc64_64bit_inferior_p.
12956
514c5338
YQ
129572015-01-14 Yao Qi <yao@codesourcery.com>
12958
12959 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12960 nat/ppc-linux.h.
12961 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12962 (PPC_FEATURE_HAS_DFP): Likewise.
12963 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12964 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12965 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12966 Include "nat/ppc-linux.h".
12967 * nat/ppc-linux.h: New file.
12968 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12969
5589af0e
PA
129702015-01-14 Pedro Alves <palves@redhat.com>
12971
12972 PR gdb/17525
12973 * breakpoint.c: Include "interps.h".
12974 (bpstat_do_actions_1): Also check whether the interpreter is
12975 async.
12976
6c400b59
PA
129772015-01-14 Pedro Alves <palves@redhat.com>
12978
12979 PR cli/17828
12980 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12981 reinstall if the interpreter is sync.
12982
e02c96a7
DE
129832015-01-13 Doug Evans <dje@google.com>
12984
12985 * objfiles.c (objfile_filename): New function.
12986 * objfiles.h (objfile_filename): Declare it.
12987 (objfile_name): Add function comment.
12988 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12989 bfd file name (which may be realpath'd), and the original name.
12990
3b2f13ff
JB
129912015-01-13 Joel Brobecker <brobecker@adacore.com>
12992
12993 * NEWS: Create a new section for the next release branch.
12994 Rename the section of the current branch, now that it has
12995 been cut.
12996
b4cfe7f8
JB
129972015-01-13 Joel Brobecker <brobecker@adacore.com>
12998
12999 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
13000 * version.in: Bump version to 7.9.50.DATE-cvs.
13001
92fc2e69
JB
130022015-01-13 Joel Brobecker <brobecker@adacore.com>
13003
13004 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
13005 Remove trailing new-line in argument of call to warning.
13006
f71f0b0d
JB
130072015-01-13 Joel Brobecker <brobecker@adacore.com>
13008
13009 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
13010 new-line in argument of call to "warning".
13011
04dccad0
JB
130122015-01-13 Joel Brobecker <brobecker@adacore.com>
13013
13014 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
13015 in static block, then try searching for primitive types.
13016
08b13bdd
PP
130172015-01-12 Patrick Palka <patrick@parcs.ath.cx>
13018
13019 * top.h (gdb_add_history): Declare.
13020 * top.c (command_count): New variable.
13021 (gdb_add_history): New function.
13022 (gdb_safe_append_history): New static function.
13023 (quit_force): Call it.
13024 (command_line_input): Use gdb_add_history instead of
13025 add_history.
13026 * event-top.c (command_line_handler): Likewise.
13027
4ac15b59
JC
130282015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
13029
13030 PR gdb/17046
13031 * darwin-nat.c: Replace <machine/setjmp.h> #include by
13032 <setjmp.h> #include.
13033
005e54bb
DE
130342015-01-11 Doug Evans <xdje42@gmail.com>
13035
13036 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
13037
439250fb
DE
130382015-01-11 Doug Evans <xdje42@gmail.com>
13039
13040 PR gdb/15830
13041 * NEWS: The "maint demangle" command is renamed as "demangle".
13042 * demangle.c: #include cli/cli-utils.h, language.h.
13043 (demangle_command): New function.
13044 (_initialize_demangle): Add new command "demangle".
13045 * maint.c (maintenance_demangle): Stub out.
13046 (_initialize_maint_cmds): Update help text for "maint demangle",
13047 and mark as deprecated.
13048
ebf3aa72
MK
130492015-01-11 Mark Kettenis <kettenis@gnu.org>
13050
13051 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
13052 inferior_thread is a function.
13053
6bf045cd
PP
130542015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13055
13056 * Makefile.in (.y.c): Don't munge yacc's #line
13057 directives.
13058
588dcc3e
PP
130592015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13060
13061 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
13062 to prompt for input.
13063 * tui/tui-hooks.c (tui_query_hook): Remove.
13064 (tui_install_hooks): Don't set deprecated_query_hook.
13065 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13066 height calculation. Always update the command window's cur_line.
13067
9c02b525
PA
130682015-01-09 Pedro Alves <palves@redhat.com>
13069
13070 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13071 function.
13072 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13073 declaration.
13074 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13075 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
13076 stop_reason.
13077 (check_stopped_by_watchpoint): New function.
13078 (save_sigtrap): Reimplement.
13079 (linux_nat_stopped_by_watchpoint): Adjust.
13080 (linux_nat_lp_status_is_event): Delete.
13081 (stop_wait_callback): Only call save_sigtrap after storing the
13082 pending status.
13083 (status_callback): If the thread had been stopped for a breakpoint
13084 that has since been removed, discard the event and resume the LWP.
13085 (count_events_callback, select_event_lwp_callback): Use
13086 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13087 (cancel_breakpoint): Rename to ...
13088 (check_stopped_by_breakpoint): ... this. Record whether the LWP
13089 stopped for a software breakpoint or hardware breakpoint.
13090 (select_event_lwp): Only give preference to the stepping LWP in
13091 all-stop mode. Adjust comments.
13092 (stop_and_resume_callback): Remove references to new_pending_p.
13093 (linux_nat_filter_event): Likewise. Leave exit events of the
13094 leader thread pending here. Handle signal short circuiting here.
13095 Only call save_sigtrap after storing the pending waitstatus.
13096 (linux_nat_wait_1): Remove 'retry' label. Remove references to
13097 new_pending. Don't handle leaving events the caller is not
13098 interested in pending here, nor handle signal short-circuiting
13099 here. Also give equal priority to all LWPs that have had events
13100 in non-stop mode. If reporting a software breakpoint event,
13101 unadjust the LWP's PC.
13102 * linux-nat.h (enum lwp_stop_reason): New.
13103 (struct lwp_info) <stop_pc>: New field.
13104 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13105 (struct lwp_info) <stop_reason>: New field.
13106 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13107
8af756ef
PA
131082015-01-09 Pedro Alves <palves@redhat.com>
13109
13110 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13111 Set the LWP's 'resumed' flag.
13112
8a99810d
PA
131132015-01-09 Pedro Alves <palves@redhat.com>
13114
13115 * linux-nat.c (linux_resume_one_lwp): New function.
13116 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13117 (linux_nat_resume): Use lwp_status_pending_p and
13118 linux_resume_one_lwp.
13119 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13120 (linux_handle_extended_wait): Use linux_resume_one_lwp.
13121 (status_callback, running_callback): Use lwp_status_pending_p.
13122 (lwp_status_pending_p): New function.
13123 (stop_and_resume_callback): Use lwp_status_pending_p.
13124 (linux_nat_filter_event): Use linux_resume_one_lwp.
13125 (linux_nat_wait_1): Always use status_callback to look for an LWP
13126 with a pending status. Use linux_resume_one_lwp.
13127 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13128 linux_resume_one_lwp.
13129
f7ce857f
PA
131302015-01-09 Pedro Alves <palves@redhat.com>
13131
13132 * breakpoint.c (bp_location_inserted_here_p): New function,
13133 factored out from ...
13134 (breakpoint_inserted_here_p): ... here. Use
13135 ALL_BP_LOCATIONS_AT_ADDR.
13136 (software_breakpoint_inserted_here_p): Use
13137 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13138
c1a747c1
PA
131392014-01-09 Pedro Alves <palves@redhat.com>
13140
13141 Skip enabling event reporting if the kernel supports
13142 PTRACE_EVENT_CLONE.
13143 * linux-thread-db.c: Include "nat/linux-ptrace.h".
13144 (thread_db_use_events): New function.
13145 (try_thread_db_load_1): Check thread_db_use_events before enabling
13146 event reporting.
13147 (update_thread_state): New function.
13148 (attach_thread): Use it. Check thread_db_use_events before
13149 enabling event reporting.
13150 (thread_db_detach): Check thread_db_use_events before disabling
13151 event reporting.
13152 (find_new_threads_callback): Check thread_db_use_events before
13153 enabling event reporting. Update the thread's state if not using
13154 libthread_db events.
13155
a33e3959
PA
131562015-01-09 Pedro Alves <palves@redhat.com>
13157
13158 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13159 about to wait for is > 0.
13160 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13161 the kernel thread ID is -1.
13162
8784d563
PA
131632015-01-09 Pedro Alves <palves@redhat.com>
13164
13165 * linux-nat.c (attach_proc_task_lwp_callback): New function.
13166 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13167 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13168 ptrace option flags.
13169 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13170 field.
13171 * nat/linux-procfs.c: Include <dirent.h>.
13172 (linux_proc_get_int): New parameter "warn". Handle it.
13173 (linux_proc_get_tgid): Adjust.
13174 (linux_proc_get_tracerpid): Rename to ...
13175 (linux_proc_get_tracerpid_nowarn): ... this.
13176 (linux_proc_pid_get_state): New function, factored out from
13177 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
13178 and handle it.
13179 (linux_proc_pid_is_gone): New function.
13180 (linux_proc_pid_is_stopped): Adjust.
13181 (linux_proc_pid_is_zombie_maybe_warn)
13182 (linux_proc_pid_is_zombie_nowarn): New functions.
13183 (linux_proc_pid_is_zombie): Use
13184 linux_proc_pid_is_zombie_maybe_warn.
13185 (linux_proc_attach_tgid_threads): New function.
13186 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13187 (linux_proc_get_tracerpid): Rename to ...
13188 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13189 (linux_proc_pid_is_gone): New declaration.
13190 (linux_proc_pid_is_zombie): Update comment.
13191 (linux_proc_pid_is_zombie_nowarn): New declaration.
13192 (linux_proc_attach_lwp_func): New typedef.
13193 (linux_proc_attach_tgid_threads): New declaration.
13194 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13195 use nowarn functions.
13196 (linux_ptrace_attach_fail_reason_string): Move here from
13197 gdbserver/linux-low.c and rename.
13198 (ptrace_supports_feature): If the current ptrace options are not
13199 known yet, check them now, instead of asserting.
13200 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13201 Declare.
13202
883ed13e
PA
132032015-01-09 Pedro Alves <palves@redhat.com>
13204
13205 * linux-thread-db.c (thread_db_find_new_threads_silently)
13206 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13207 (find_new_threads_once): Print debug output on gdb_stdlog.
13208
1710aab8
CG
132092015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
13210 Pedro Alves <palves@redhat.com>
13211
13212 * compile/compile.c: Include "gdb_wait.h".
13213 (do_rmdir): Check return value, and free 'zap'.
13214
b597c318
YQ
132152015-01-08 Pedro Alves <palves@redhat.com>
13216 Yao Qi <yao@codesourcery.com>
13217
13218 * dwarf2loc.c (indirect_pieced_value): Don't call
13219 gdb_sign_extend. Call extract_signed_integer instead.
13220 * utils.c (gdb_sign_extend): Remove.
13221 * utils.h (gdb_sign_extend): Remove declaration.
13222
025ac414
PM
132232015-01-07 Pierre Muller <muller@sourceware.org>
13224
13225 PR symtab/17811
13226 * stabsread.c (define_symbol): Set language for C++ special symbols.
13227
fa5af12a
PP
132282015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13229
13230 * inflow.c (initial_gdb_ttystate): Tweak comment.
13231
ea42d6f8
JB
132322015-01-07 Joel Brobecker <brobecker@adacore.com>
13233
13234 * inflow.c (set_initial_gdb_ttystate): Add empty line after
13235 comment documenting function.
13236
6a06d660
PP
132372015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13238
13239 * terminal.h (set_initial_gdb_ttystate): Declare.
13240 * inflow.c (initial_gdb_ttystate): New static variable.
13241 (set_initial_gdb_ttystate): New setter.
13242 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13243 instead of our current terminal state.
13244 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13245
e810d75b
JB
132462015-01-07 Joel Brobecker <brobecker@adacore.com>
13247
13248 * guile/scm-type.c (tyscm_array_1): Add comment.
13249 * python/py-type.c (typy_array_1): Add comment.
13250
fce10a84
JB
132512015-01-06 Joel Brobecker <brobecker@adacore.com>
13252
13253 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13254 error if N2 is equal to N1 - 1.
13255
8503d6e1
JB
132562015-01-06 Joel Brobecker <brobecker@adacore.com>
13257
13258 * python/py-type.c (typy_array_1): Do not raise negative-length
13259 exception if N2 is equal to N1 - 1.
13260
4d29c0a8
DE
132612015-01-03 Doug Evans <xdje42@gmail.com>
13262
13263 * c-exp.y: Whitespace cleanup.
13264 (classify_inner_name): Remove extra ;.
13265
eaa6a9a4
MR
132662015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13267
13268 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13269 offset signed.
13270
02fe9972
DE
132712015-01-02 Doug Evans <dje@google.com>
13272
13273 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13274
e2ada9cb
DE
132752015-01-02 Doug Evans <dje@google.com>
13276
13277 * symtab.h (struct symbol): Fix typo in comment.
13278
32d0add0
JB
132792015-01-01 Joel Brobecker <brobecker@adacore.com>
13280
13281 Update year range in copyright notice of all files.
13282
76f2b779
JB
132832015-01-01 Joel Brobecker <brobecker@adacore.com>
13284
13285 * top.c (print_gdb_version): Update copyright year to 2015.
13286
077309e2 132872015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 13288
077309e2 13289 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 13290
077309e2 13291For older changes see ChangeLog-2014.
c906108c
SS
13292\f
13293Local Variables:
13294mode: change-log
13295left-margin: 8
13296fill-column: 74
13297version-control: never
57da7796 13298coding: utf-8
c906108c 13299End:
This page took 2.36393 seconds and 4 git commands to generate.