Use exec_file_find to prepend gdb_sysroot in follow_exec
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ff862be4
GB
12015-04-28 Gary Benson <gbenson@redhat.com>
2
3 * infrun.c (solist.h): New include.
4 (follow_exec): Use exec_file_find to prefix execd_pathname
5 with gdb_sysroot.
6
2eb639cb
PP
72015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8
9 * tui/tui-source.c (tui_set_source_content): Avoid calling
10 strcpy() when offset is 0.
11
97206799
PP
122015-04-28 Patrick Palka <patrick@parcs.ath.cx>
13
14 PR gdb/18155
15 * tui/tui-data.c (tui_free_window): Don't free the locator
16 window when passed an SRC_WIN or a DISASSEM_WIN.
17
63ed8182
PP
182015-04-28 Patrick Palka <patrick@parcs.ath.cx>
19
20 * tui/tui-data.h (struct tui_win_element): Forward-declare.
21 (tui_win_content): Move declaration.
22 (struct tui_gen_win_info): Give 'content' field the
23 type tui_win_content.
24 * tui/tui-data.c (init_content_element): Remove redundant and
25 erroneous casts.
26 (tui_add_content_elements): Remove erroneous cast.
27 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
28 casts.
29 (tui_get_begin_asm_address): Likewise.
30 * tui/tui-regs.c (tui_show_registers): Likewise.
31 (tui_show_register_group): Likewise.
32 (tui_display_registers_from): Likewise.
33 (tui_check_register_values): Likewise.
34 * tui/tui-source.c (tui_set_source_content): Likewise.
35 (tui_set_source_content_nil): Likewise.
36 (tui_source_is_displayed): Likewise.
37 * tui/tui-stack.c (tui_show_locator_content): Likewise.
38 (tui_set_locator_fullname): Likewise.
39 (tui_set_locator_info): Likewise.
40 (tui_show_frame_info): Likewise.
41 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
42 (tui_show_source_line): Likewise.
43 (tui_horizontal_source_scroll): Likewise.
44 (tui_update_breakpoint_info): Likewise.
45 (tui_set_exec_info_content): Likewise.
46 (tui_show_exec_info_content): Likewise.
47 (tui_alloc_source_buffer): Likewise.
48 (tui_line_is_displayed): Likewise.
49 (tui_addr_is_displayed): Likewise.
50
d2b41ca0
JB
512015-04-27 John Baldwin <jhb@FreeBSD.org>
52
53 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
54 event if PL_FLAG_EXEC is set.
55 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
56 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
57 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
58 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
59 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
60
e58e05d6
JB
612015-04-27 John Baldwin <jhb@FreeBSD.org>
62
63 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
64 [TDP_RFPPWAIT] New variable fbsd_pending_children.
65 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
66 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
67 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
68 [PT_LWPINFO] (fbsd_wait): New function.
69 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
70 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
71 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
72 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
73 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
74 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
75 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
76 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
77 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
78 "fbsd_wait".
79 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
80 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
81 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
82 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
83 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
84 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
85 Set "to_post_attach" to "fbsd_post_attach".
86
8f60fe01
JB
872015-04-27 John Baldwin <jhb@FreeBSD.org>
88
89 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
90 (fbsd_find_memory_regions): Mark static.
91 (fbsd_nat_add_target): New function.
92 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
93 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
94 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
95 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
96 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
97 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
98
5fbae7d1
GB
992015-04-27 Gary Benson <gbenson@redhat.com>
100
101 * objfiles.c (allocate_objfile): Do not attempt to expand name
102 if name is a "target:" filename.
103 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
104 to load auto-load scripts for objfiles with "target:" filenames.
105
417c80f9
AA
1062015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
107
108 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
109 (enum s390_vector_abi_kind): New enum.
110 (struct gdbarch_tdep)<vector_abi>: New field.
111 (s390_effective_inner_type): Add parameter min_size. Stop
112 unwrapping if the inner type is smaller than min_size.
113 (s390_function_arg_float): Adjust call to
114 s390_effective_inner_type.
115 (s390_function_arg_vector): New function.
116 (s390_function_arg_integer): Adjust comment.
117 (struct s390_arg_state)<vr>: New field.
118 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
119 arguments according to vector ABI when appropriate.
120 (s390_push_dummy_call): Initialize the argument state's field
121 'vr'. Adjust calls to s390_handle_arg.
122 (s390_register_return_value): Handle vector return values.
123 (s390_return_value): Apply the "register" return value convention
124 to a vector when appropriate.
125 (s390_gdbarch_init): Initialize tdep->vector_abi.
126 * NEWS: Announce S390 vector ABI support.
127
4e65a17e
AA
1282015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
129
130 * s390-linux-tdep.c (s390_return_value_convention): Remove
131 function. Inline its logic...
132 (s390_return_value): ...here. Instead, move the handling of the
133 "register" return value convention...
134 (s390_register_return_value): ...here. New function.
135
80f75320
AA
1362015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
137
138 * s390-linux-tdep.c
139 (is_float_singleton): Remove function. Move the "singleton" part
140 of the logic...
141 (s390_effective_inner_type): ...here. New function.
142 (is_float_like): Remove function. Inline its logic...
143 (s390_function_arg_float): ...here.
144 (is_pointer_like, is_integer_like, is_struct_like): Remove
145 functions. Inline their logic...
146 (s390_function_arg_integer): ...here.
147 (s390_function_arg_pass_by_reference): Remove function.
148 (extend_simple_arg): Remove function.
149 (alignment_of): Remove function.
150 (struct s390_arg_state): New structure.
151 (s390_handle_arg): New function.
152 (s390_push_dummy_call): Move parameter placement logic to the new
153 function s390_handle_arg. Call it for calculating the stack area
154 sizes first, and again for actually writing the parameters.
155
6dbc9c04
AA
1562015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
157
158 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
159 false if the argument is zero.
160
9e195661
PMR
1612015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
162
163 * ada-lang.c (template_to_static_fixed_type): Return input type
164 when it is already fixed. Cache the input type itself when not
165 creating a static fixed copy. Make it explicit that we never
166 molestate the input type.
167 * gdbtypes.c (resolve_dynamic_struct): Reset the
168 TYPE_TARGET_TYPE field for resolved copies.
169
460efde1
JB
1702015-04-27 Joel Brobecker <brobecker@adacore.com>
171
172 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
173 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
174 (template_to_static_fixed_type): Call ada_check_typedef only
175 when necessary.
176
6faec16b
AB
1772015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
178
179 * cli/cli-dump.c (srec_dump_command): Add internationalization
180 mark ups.
181 (ihex_dump_command): Likewise.
182 (tekhex_dump_command): Likewise.
183 (binary_dump_command): Likewise.
184 (binary_append_command): Likewise.
185
cf75d6c3
AB
1862015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
187
188 * cli/cli-dump.c (verilog_cmdlist): New variable.
189 (dump_verilog_memory): New function.
190 (dump_verilog_value): New function.
191 (verilog_dump_command): New function.
192 (_initialize_cli_dump): Add new commands to support verilog dump
193 format.
194 * NEWS: Add entry for "dump verilog".
195
8cd00c59
PMR
1962015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
197
198 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
199 descriptive type when there is none.
200
8900d71e
PP
2012015-04-23 Patrick Palka <patrick@parcs.ath.cx>
202
203 * tui/tui-win.c (tui_async_resize_screen): Call
204 rl_resize_terminal().
205
f16eab5f
JT
2062015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
207
208 * windows-nat.c (handle_output_debug_string): Don't change
209 current_event.dwThreadId.
210 (get_windows_debug_event): Use thread_id, rather than relying on
211 current_event.dwThreadId being changed.
212
68ffc902
JT
2132015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
214
215 * windows-nat.c (windows_continue): Report an error if
216 ContinueDebugEvent() fails.
217
23942819
JT
2182015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
219
220 * windows-nat.c (windows_resume): Fix misspelling in debug output.
221
e6ad66bd
JT
2222015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
223
224 * windows-nat.c (get_windows_debug_event): Replace retval with
225 thread_id throughout. Update stale comment.
226
776704b9
JT
2272015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
228
229 * windows-nat.c (get_windows_debug_event): Don't use ternary
230 conditional operator.
231
8aae4344
PM
2322015-04-21 Pierre Muller <muller@sourceware.org>
233
234 PR pascal/17815
235 p-exp.y (yylex): Reorganize code to return the matched pattern
236 for a field of this.
237
819843c7
GB
2382015-04-21 Gary Benson <gbenson@redhat.com>
239
240 * common/fileio.h (fileio_to_host_openflags): New declaration.
241 * common/fileio.c (fcntl.h): New include.
242 (fileio_to_host_openflags): New function, factored out from...
243 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
244 Single use updated.
245
0bca7f99
KB
2462015-04-21 Kevin Buettner <kevinb@redhat.com>
247
248 * rl78-tdep.c (RL78_SP_ADDR): Define.
249 (opc_reg_to_gdb_regnum): New static function.
250 (rl78_analyze_prologue): Recognize instructions forming slightly
251 more interesting prologues.
252
e771e4be
PMR
2532015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
254
255 Revert:
256 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
257 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
258 TYPE_CODE_REF types so that they are not considered as dynamic
259 depending on the referenced type.
260 (resolve_dynamic_type_internal): Likewise.
261
ee715b5a
PMR
2622015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
263
264 Revert:
265 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
266 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
267 "top_level" parameter.
268 (resolve_dynamic_type_internal): Remove the unused "top_level"
269 parameter. Update call to is_dynamic_type_internal.
270 (is_dynamic_type): Update call to is_dynamic_type_internal.
271 (resolve_dynamic_range): Update call to
272 resolve_dynamic_type_internal.
273 (resolve_dynamic_union): Likewise.
274 (resolve_dynamic_struct): Likewise.
275 (resolve_dynamic_type): Likewise.
276
e31d7699
GKB
2772015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
278
279 * breakpoint.c (update_dprintf_command_list): Remove duplicated
280 xmalloc.
281
d214e5e7
TS
2822015-04-20 Thomas Schwinge <thomas@codesourcery.com>
283
110f9112
TS
284 * reply_mig_hack.awk: Robustify parsing.
285
d214e5e7
TS
286 * reply_mig_hack.awk: Don't bother to declare an intermediate
287 function pointer variable.
288
8f61baf8
DE
2892015-04-17 Doug Evans <dje@google.com>
290
291 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
292 to "exec_displacement" to avoid confusion with inner use of the name.
293
dbbf180a
YQ
2942015-04-17 Pedro Alves <palves@redhat.com>
295
296 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
297 if HW point of TYPE isn't supported.
298
059790a0
YQ
2992015-04-17 Yao Qi <yao.qi@linaro.org>
300 Pedro Alves <palves@redhat.com>
301
302 * target.h (target_can_use_hardware_watchpoint): Update comments.
303 Remove trailing ";".
304
1b6e6f5c
GB
3052015-04-17 Gary Benson <gbenson@redhat.com>
306
307 * remote.c (remote_add_inferior): New argument try_open_exec.
308 If nonzero, attempt to open the inferior's executable file as
309 the main executable if no main executable is open already.
310 All callers updated.
311 * NEWS: Mention that GDB now supports automatic location and
312 retrieval of executable + files from remote targets.
313
c78fa86a
GB
3142015-04-17 Gary Benson <gbenson@redhat.com>
315
316 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
317 * remote.c (PACKET_qXfer_exec_file): Likewise.
318 (remote_protocol_features): Register the
319 "qXfer:exec-file:read" feature.
320 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
321 (remote_pid_to_exec_file): New function.
322 (init_remote_ops): Initialize to_pid_to_exec_file.
323 (_initialize_remote): Register new "set/show remote
324 pid-to-exec-file-packet" command.
325 * NEWS: Announce new qXfer:exec-file:read packet.
326
e0d86d2c
GB
3272015-04-17 Gary Benson <gbenson@redhat.com>
328
329 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
330 New declaration.
331 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
332 New function, factored out from...
333 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
334
a9a5a3d1
GB
3352015-04-17 Gary Benson <gbenson@redhat.com>
336
337 * exec.c (solist.h): New include.
338 (exec_file_locate_attach): Prefix absolute executable
339 paths with gdb_sysroot if set.
340 * NEWS: Mention that executable paths may be prepended
341 with sysroot.
342
af1900b0
GB
3432015-04-17 Gary Benson <gbenson@redhat.com>
344
345 * solist.h (exec_file_find): New declaration.
346 * solib.c (solib_find_1): New function, factored out from...
347 (solib_find): ...here.
348 (exec_file_find): New function.
349
a10de604
GB
3502015-04-17 Gary Benson <gbenson@redhat.com>
351
352 * gdbcore.h (exec_file_locate_attach): New declaration.
353 * exec.c (exec_file_locate_attach): New function, factored
354 out from...
355 * infcmd.c (attach_command_post_wait): ...here.
356
92209ddf
MF
3572015-04-17 Mike Frysinger <vapier@gentoo.org>
358
359 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
360
8550d3b3
YQ
3612015-04-16 Yao Qi <yao.qi@linaro.org>
362
363 * infrun.c (maybe_software_singlestep): Declare.
364 (displaced_step_fixup): Call maybe_software_singlestep.
365
30b3dd9d
DE
3662015-04-15 Doug Evans <dje@google.com>
367
368 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
369
61d96d7e
DE
3702015-04-15 Doug Evans <dje@google.com>
371
372 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
373
40d2f8d6
SM
3742015-04-15 Simon Marchi <simon.marchi@ericsson.com>
375
376 * python/lib/gdb/command/unwinders.py: Add parentheses.
377
6bbbba9b
YQ
3782015-04-15 Yao Qi <yao.qi@linaro.org>
379
380 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
381
2bb2dcab
YQ
3822015-04-15 Yao Qi <yao.qi@linaro.org>
383
384 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
385
41f071ef
YQ
3862015-04-15 Yao Qi <yao.qi@linaro.org>
387
388 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
389 dsc->insn_size instead of 4.
390
326a5c7e
GB
3912015-04-14 Gary Benson <gbenson@redhat.com>
392
393 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
394 * minidebug.c (lzma_stat): Likewise.
395 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
396 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
397
dd177e81
SS
3982015-04-13 Stan Shebs <stanshebs@google.com>
399
400 * MAINTAINERS: Update my email address.
401
97de3545
JB
4022015-04-13 John Baldwin <jhb@FreeBSD.org>
403
404 * amd64-tdep.c (amd64_target_description): New function.
405 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
406 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
407 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
408 x86 extended save area.
409 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
410 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
411 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
412 (_initialize_amd64fbsd_nat): Set "to_read_description" to
413 "amd64fbsd_read_description".
414 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
415 (amd64fbsd_supply_xstateregset): New function.
416 (amd64fbsd_collect_xstateregset): New function.
417 Add "amd64fbsd_xstateregset".
418 (amd64fbsd_iterate_over_regset_sections): New function.
419 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
420 "I386_FBSD_XSAVE_XCR0_OFFSET".
421 Add "iterate_over_regset_sections" gdbarch method.
422 Add "core_read_description" gdbarch method.
423 * i386-tdep.c (i386_target_description): New function.
424 * i386-tdep.h: Export i386_target_description and tdesc_i386.
425 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
426 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
427 x86 extended save area.
428 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
429 * i386bsd-nat.h: Export i386bsd_xsave_len.
430 * i386fbsd-nat.c (i386fbsd_read_description): New function.
431 (_initialize_i386fbsd_nat): Set "to_read_description" to
432 "i386fbsd_read_description".
433 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
434 (i386fbsd_core_read_description): New function.
435 (i386fbsd_supply_xstateregset): New function.
436 (i386fbsd_collect_xstateregset): New function.
437 Add "i386fbsd_xstateregset".
438 (i386fbsd_iterate_over_regset_sections): New function.
439 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
440 "I386_FBSD_XSAVE_XCR0_OFFSET".
441 Add "iterate_over_regset_sections" gdbarch method.
442 Add "core_read_description" gdbarch method.
443 * i386fbsd-tdep.h: New file.
444
4f45d445
JK
4452015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
446
447 * NEWS (Changes since GDB 7.9): Add removed -xdb.
448 * breakpoint.c (command_line_is_silent): Remove xdb_commands
449 conditional.
450 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
451 and lb.
452 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
453 va.
454 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
455 conditional.
456 * defs.h (xdb_commands): Remove declaration.
457 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
458 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
459 * infcmd.c (run_no_args_command, go_command): Remove.
460 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
461 * infrun.c (xdb_handle_command): Remove.
462 (_initialize_infrun): Remove xdb_commands for lz and z.
463 * main.c (xdb_commands): Remove variable.
464 (captured_main): Remove "xdb" from long_options.
465 (print_gdb_help): Remove --xdb from help.
466 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
467 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
468 * stack.c (backtrace_full_command, args_plus_locals_info)
469 (current_frame_command): Remove.
470 (_initialize_stack): Remove xdb_commands for t, T and l.
471 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
472 * thread.c (_initialize_thread): Remove xdb_commands condition.
473 * tui/tui-layout.c (tui_toggle_layout_command)
474 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
475 (_initialize_tui_layout): Remove xdb_commands for td and ts.
476 * tui/tui-regs.c (tui_scroll_regs_forward_command)
477 (tui_scroll_regs_backward_command): Remove.
478 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
479 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
480 (_initialize_tui_win): Remove xdb_commands for U and w.
481 * utils.c (pagination_on_command, pagination_off_command): Remove.
482 (initialize_utils): Remove xdb_commands for am and sm.
483
cb71640d
PA
4842015-04-10 Pedro Alves <palves@redhat.com>
485
486 * infrun.c (displaced_step_fixup): Switch to the event ptid
487 earlier. If the thread stopped for a watchpoint and the
488 target/arch has non-continuable watchpoints, cancel the displaced
489 step.
490 (resume): Don't start a displaced step if in-line step-over info
491 is valid.
492
8f572e5c
PA
4932015-04-10 Pedro Alves <palves@redhat.com>
494
495 * infrun.c (displaced_step_in_progress): New function.
496 (do_target_resume): Advise target to report all signals if
497 displaced stepping.
498
8d707a12
PA
4992015-04-10 Pedro Alves <palves@redhat.com>
500
501 PR gdb/18216
502 * infrun.c (process_event_stop_test): Don't assume a step-resume
503 is set if tp->stepped_breakpoint is true.
504
ef713951
YQ
5052015-04-10 Yao Qi <yao.qi@linaro.org>
506
507 * arm-tdep.c (install_alu_reg): Update comment.
508 (thumb_copy_alu_reg): Remove local variable rn. Update
509 debugging message. Use r2 instead of r1 in the modified
510 instruction.
511
906d60cf
PA
5122015-04-10 Pedro Alves <palves@redhat.com>
513
514 PR gdb/13858
515 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
516 linux_displaced_step_location as gdbarch_displaced_step_location
517 hook.
518 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
519 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
520 * linux-tdep.c (linux_displaced_step_location): New function,
521 based on ppc_linux_displaced_step_location.
522 * linux-tdep.h (linux_displaced_step_location): New declaration.
523 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
524 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
525 Delete.
526 (ppc_linux_init_abi): Install linux_displaced_step_location as
527 gdbarch_displaced_step_location hook, even without Cell/B.E..
528 (_initialize_ppc_linux_tdep): Don't install
529 ppc_linux_inferior_created as inferior_created observer.
530 * s390-linux-tdep.c (s390_gdbarch_init): Install
531 linux_displaced_step_location as gdbarch_displaced_step_location
532 hook.
533
7823a941
GB
5342015-04-09 Gary Benson <gbenson@redhat.com>
535
536 * common/common-remote-fileio.h: Rename to...
537 * common/fileio.h: ...this. Update all references.
538 (remote_fileio_to_fio_error): Rename to...
539 (host_to_fileio_error): ...this.
540 (remote_fileio_to_be): Rename to...
541 (host_to_bigendian): ...this. Update all callers.
542 (remote_fileio_to_fio_uint): Rename to...
543 (host_to_fileio_uint): ...this. Update all callers.
544 (remote_fileio_to_fio_time): Rename to...
545 (host_to_fileio_time): ...this. Update all callers.
546 (remote_fileio_to_fio_stat): Rename to...
547 (host_to_fileio_stat): ...this.
548 Update all references.
549 * common/common-remote-fileio.c: Rename to...
550 * common/fileio.c: ...this. Update all references.
551 (remote_fileio_to_fio_error): Rename to...
552 (host_to_fileio_error): ...this. Update all callers.
553 (remote_fileio_mode_to_target): Rename to...
554 (fileio_mode_pack): ...this. Update all callers.
555 (remote_fileio_to_fio_mode): Rename to...
556 (host_to_fileio_mode): ...this. Update all callers.
557 (remote_fileio_to_fio_ulong): Rename to...
558 (host_to_fileio_ulong): ...this. Update all callers.
559 (remote_fileio_to_fio_stat): Rename to...
560 (host_to_fileio_stat): ...this. Update all callers.
561
f2983cc3
AW
5622015-04-09 Andy Wingo <wingo@igalia.com>
563
564 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
565 (frame_functions): Bind gdbscm_frame_read_register to
566 frame-read-register.
567 * guile/lib/gdb.scm (frame-read-register): Export.
568
b88bb450
GB
5692015-04-09 Gary Benson <gbenson@redhat.com>
570
571 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
572 New declaration.
573 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
574 New function, factored out the named functions below.
575 * inf-child.c (gdb/fileio.h): Remove include.
576 (common-remote-fileio.h): New include.
577 (inf_child_errno_to_fileio_error): Remove function. Update
578 all callers to use remote_fileio_to_fio_error.
579 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
580
2f2680f3
AW
5812015-04-09 Andy Wingo <wingo@igalia.com>
582
583 * MAINTAINERS (Write After Approval): Add Andy Wingo.
584
5a2d4533
L
5852015-04-09 H.J. Lu <hongjiu.lu@intel.com>
586
587 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
588 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
589 * configure: Regenerated.
590
421693b0
PA
5912015-04-09 Pedro Alves <palves@redhat.com>
592
593 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
594 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
595 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
596 * gnulib/import/Makefile.am: Update.
597 * gnulib/import/Makefile.in: Update.
598 * gnulib/import/m4/gnulib-cache.m4: Update.
599 * gnulib/import/m4/gnulib-comp.m4: Update.
600 * gnulib/import/m4/strtok_r.m4: New file.
601 * gnulib/import/strtok_r.c: New file.
602
f543dc83
PA
6032015-04-09 Pedro Alves <palves@redhat.com>
604
605 * gnulib/update-gnulib.sh (aclocal version check): Filter out
606 "called too early to check prototype".
607
6d62641c
SDJ
6082015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
609
610 PR python/16699
611 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
612 use a caching mechanism. Adjust comments and code to reflect
613 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
614 (cmdpy_completer_handle_brkchars): Adjust call to
615 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
616 (cmdpy_completer): Likewise.
617
85558555
YQ
6182015-04-08 Yao Qi <yao.qi@linaro.org>
619
620 * spu-tdep.c (spu_gdbarch_init): Don't call
621 set_gdbarch_cannot_step_breakpoint.
622
d249a14a
SDJ
6232015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
624
625 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
626
8a06aea7
PA
6272015-04-07 Pedro Alves <palves@redhat.com>
628
629 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
630 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
631 (delete_exited_threads): New declaration.
632 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
633 * linux-nat.c (linux_nat_update_thread_list): New function.
634 (linux_nat_add_target): Install it.
635 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
636 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
637 (delete_exited_threads): New function.
638
d9b67d9f
PA
6392015-04-07 Pedro Alves <pedro@codesourcery.com>
640
641 * infrun.c (resume) <displaced stepping debug output>: Get the
642 leader thread's regcache, not resume_ptid's.
643
2c26b84f
DE
6442015-04-06 Doug Evans <xdje42@gmail.com>
645
646 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
647 VAR_DOMAIN.
648 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
649 Include symbol domain in debugging output.
650
7a85168d
PA
6512015-04-06 Pedro Alves <palves@redhat.com>
652 Bernd Edlinger <bernd.edlinger@hotmail.de>
653
654 * configure.ac: Remove the mingw32-specific stub-termcap.o
655 fallback, and instead fallback to the stub termcap on all hosts.
656 * configure: Regenerate.
657 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
658 symbols.
659
25755e2b
PMR
6602015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
661
662 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
663 "top_level" parameter.
664 (resolve_dynamic_type_internal): Remove the unused "top_level"
665 parameter. Update call to is_dynamic_type_internal.
666 (is_dynamic_type): Update call to is_dynamic_type_internal.
667 (resolve_dynamic_range): Update call to
668 resolve_dynamic_type_internal.
669 (resolve_dynamic_union): Likewise.
670 (resolve_dynamic_struct): Likewise.
671 (resolve_dynamic_type): Likewise.
672
961f4160
PMR
6732015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
674
675 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
676 TYPE_CODE_REF types so that they are not considered as dynamic
677 depending on the referenced type.
678 (resolve_dynamic_type_internal): Likewise.
679
39f3de7c
L
6802015-04-02 H.J. Lu <hongjiu.lu@intel.com>
681
682 * Makefile.in (top_srcdir): New.
683 * configure: Regenerated.
684
599bd15c
GB
6852015-04-02 Gary Benson <gbenson@redhat.com>
686
687 * NEWS: Announce the new default sysroot of "target:".
688
fed040c6
GB
6892015-04-02 Gary Benson <gbenson@redhat.com>
690
691 * main.c (captured_main): Set gdb_sysroot to "target:"
692 if not otherwise set.
693
64c0b5de
GB
6942015-04-02 Gary Benson <gbenson@redhat.com>
695
696 * exec.c (exec_file_attach): Support "target:" filenames.
697
b57fbfba
GB
6982015-04-02 Gary Benson <gbenson@redhat.com>
699
700 * solib.c (solib_find): Strip "target:" prefix from sysroot
701 if accessing local files.
702
97a41605
GB
7032015-04-02 Gary Benson <gbenson@redhat.com>
704
705 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
706 checks and error messages.
707
2938e6cf
GB
7082015-04-02 Gary Benson <gbenson@redhat.com>
709
710 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
711 (remote_filename_p): Remove declaration.
712 (remote_bfd_open): Likewise.
713 * remote.c (remote_bfd_iovec_open): Remove function.
714 (remote_bfd_iovec_close): Likewise.
715 (remote_bfd_iovec_pread): Likewise.
716 (remote_bfd_iovec_stat): Likewise.
717 (remote_filename_p): Likewise.
718 (remote_bfd_open): Likewise.
719 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
720 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
721 (gdb_bfd_open_maybe_remote): Remove function.
722 (symfile_bfd_open): Replace remote filename check with
723 target filename check.
724 (reread_symbols): Use gdb_bfd_open.
725 * build-id.c (gdbcore.h): New include.
726 (build_id_to_debug_bfd): Use gdb_bfd_open.
727 * infcmd.c (attach_command_post_wait): Remove remote filename
728 check.
729 * solib.c (solib_find): Replace remote-specific handling with
730 target-specific handling. Update comments where necessary.
731 (solib_bfd_open): Replace remote-specific handling with
732 target-specific handling.
733 (gdb_sysroot_changed): New function.
734 (_initialize_solib): Call the above when gdb_sysroot changes.
735 * windows-tdep.c (gdbcore.h): New include.
736 (windows_xfer_shared_library): Use gdb_bfd_open.
737
f08e97fe
GB
7382015-04-02 Gary Benson <gbenson@redhat.com>
739
740 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
741 (is_target_filename): New declaration.
742 (gdb_bfd_has_target_filename): Likewise.
743 (gdb_bfd_open): Update documentation comment.
744 * gdb_bfd.c (target.h): New include.
745 (gdb/fileio.h): Likewise.
746 (is_target_filename): New function.
747 (gdb_bfd_has_target_filename): Likewise.
748 (fileio_errno_to_host): Likewise.
749 (gdb_bfd_iovec_fileio_open): Likewise.
750 (gdb_bfd_iovec_fileio_pread): Likewise.
751 (gdb_bfd_iovec_fileio_close): Likewise.
752 (gdb_bfd_iovec_fileio_fstat): Likewise.
753 (gdb_bfd_open): Use target fileio to access paths prefixed
754 with "target:" where necessary.
755
4bd7dc42
GB
7562015-04-02 Gary Benson <gbenson@redhat.com>
757
758 * target.h (struct target_ops) <to_filesystem_is_local>:
759 New field.
760 (target_filesystem_is_local): New macro.
761 * target-delegates.c: Regenerate.
762 * remote.c (remote_filesystem_is_local): New function.
763 (init_remote_ops): Initialize to_filesystem_is_local.
764
9b15c1f0
GB
7652015-04-02 Gary Benson <gbenson@redhat.com>
766
767 * target.h (struct target_ops) <to_fileio_fstat>: New field.
768 (target_fileio_fstat): New declaration.
769 * target.c (target_fileio_fstat): New function.
770 * inf-child.c (inf_child_fileio_fstat): Likewise.
771 (inf_child_target): Initialize to_fileio_fstat.
772 * remote.c (init_remote_ops): Likewise.
773
d11916aa
SS
7742015-04-01 Sasha Smundak <asmundak@google.com>
775
776 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
777 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
778 (py-unwind.o): New recipe.
779 * NEWS: mention Python frame unwinding.
780 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
781 gdb/unwinder.py and gdb/command/unwinder.py
782 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
783 list.
784 (execute_unwinders): New function.
785 * python/lib/gdb/command/unwinders.py: New file.
786 * python/lib/gdb/unwinder.py: New file.
787 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
788 (objfpy_dealloc): Decrement frame_unwinders reference count.
789 (objfpy_initialize): Create frame_unwinders list.
790 (objfpy_get_frame_unwinders): New function.
791 (objfpy_set_frame_unwinders): Ditto.
792 (objfile_getset): Add frame_unwinders attribute to Objfile.
793 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
794 (pspy_dealloc): Decrement frame_unwinders reference count.
795 (pspy_initialize): Create frame_unwinders list.
796 (pspy_get_frame_unwinders): New function.
797 (pspy_set_frame_unwinders): Ditto.
798 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
799 * python/py-unwind.c: New file.
800 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
801 (objpy_get_frame_unwinders): New prototype.
802 (gdbpy_initialize_unwind): New prototype.
803 * python/python.c (gdbpy_apply_type_printers): Call
804 gdbpy_initialize_unwind.
805
6b403daa
PA
8062015-04-01 Pedro Alves <palves@redhat.com>
807
808 * infrun.c (resume): Check currently_stepping after clearing
809 stepped_breakpoint, not before.
810
1176ecec
PA
8112015-04-01 Pedro Alves <palves@redhat.com>
812
813 * infrun.c (print_target_wait_results): Print all the ptid
814 elements.
815
de1fe8c8
PA
8162015-04-01 Pedro Alves <palves@redhat.com>
817
818 * infrun.c (keep_going): Also discard cleanups if inserting
819 breakpoints fails.
820
e6f5c25b
PA
8212015-04-01 Pedro Alves <palves@redhat.com>
822
823 * infrun.c (wait_for_inferior): Install the
824 finish_thread_state_cleanup cleanup across the whole function, not
825 just around handle_inferior_event.
826
1ac806b8
PA
8272015-04-01 Pedro Alves <palves@redhat.com>
828
829 * infrun.c (resume) <step past permanent breakpoint>: Use
830 do_target_resume.
831
2ee52aa4
PA
8322015-04-01 Pedro Alves <palves@redhat.com>
833
834 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
835
5445da1b
PMR
8362015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
837
838 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
839
4eec2deb
PA
8402015-04-01 Pedro Alves <palves@redhat.com>
841
842 * linux-thread-db.c (record_thread): Readd the thread to gdb's
843 list if it was marked exited.
844
afa59b79
L
8452015-04-01 H.J. Lu <hongjiu.lu@intel.com>
846
847 * configure: Regenerated.
848
df8411da
SDJ
8492015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
850 Jan Kratochvil <jan.kratochvil@redhat.com>
851 Oleg Nesterov <oleg@redhat.com>
852
853 PR corefiles/16092
854 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
855 New enum identifying the various options of the coredump_filter
856 file.
857 (struct smaps_vmflags): New struct.
858 (use_coredump_filter): New variable.
859 (decode_vmflags): New function.
860 (mapping_is_anonymous_p): Likewise.
861 (dump_mapping_p): Likewise.
862 (linux_find_memory_regions_full): New variables
863 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
864 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
865 parsing of its information. Implement memory mapping filtering
866 based on its contents.
867 (show_use_coredump_filter): New function.
868 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
869 * NEWS: Mention the possibility of using the
870 '/proc/PID/coredump_filter' file when generating a corefile.
871 Mention new command 'set use-coredump-filter'.
872
416f679e
SDJ
8732015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
874
875 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
876 read_memory_unsigned_integer.
877
711a72d3
L
8782015-03-31 H.J. Lu <hongjiu.lu@intel.com>
879
880 * Makefile.in (ZLIB): New.
881 (ZLIBINC): Likewise.
882 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
883 (CLIBS): Add $(ZLIB).
884 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
885 Add -lz to LIBS.
886 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
887 * top.c (print_gdb_configuration): Remove --with-zlib and
888 --without-zlib.
889 * config.in: Regenerated.
890 * configure: Likewise.
891
d33279b3
AT
8922015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
893
894 * NEWS: Mention info os cpus support.
895 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
896 (struct osdata_type): Add cpus entry, reorder the entries in
897 alphabetical order.
898
71b30f27
MK
8992015-03-31 Matthias Klose <doko@ubuntu.com>
900
901 * compile/compile.c (compile_to_object): Allow triplets with or
902 without vendor set.
903
13ce9222
DE
9042015-03-30 Doug Evans <dje@google.com>
905
906 PR c++/18141
907 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
908 klass in VAR_DOMAIN.
909
20f796c9
GB
9102015-03-30 Gary Benson <gbenson@redhat.com>
911
912 * remote.c (remote_mourn_1): Remove function. Update all callers
913 to use remote_mourn.
914 (extended_remote_mourn_1): Remove function. Update all callers
915 to use extended_remote_mourn.
916 (extended_remote_attach_1): Remove function. Update all callers
917 to use extended_remote_attach.
918
49d45b20
JB
9192015-03-28 James Bowman <james.bowman@ftdichip.com>
920
921 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
922 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
923 (ALLDEPFILES): Add ft32-tdep.c.
924 * configure.tgt: Add FT32 entry.
925 * ft32-tdep.c: New file, FT32 target-dependent code.
926 * ft32-tdep.h: New file, FT32 target-dependent code.
927
1c4ff080
JK
9282015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
929
930 Revert:
931 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
932 Code cleanup.
933 * printcmd.c (print_command_1): Move expr variable scope.
934
79498702
JB
9352015-03-27 Joel Brobecker <brobecker@adacore.com>
936
937 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
938
ce9c0ca1
AK
9392015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
940
941 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
942 sections.
943
429e1e81
JB
9442015-03-26 Joel Brobecker <brobecker@adacore.com>
945
946 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
947 exception raised while parsing the probe arguments.
948 Force parsing to be done using the C language parser.
949 * expression.h (parse_expression_with_language): Declare.
950 * parse.c (parse_expression_with_language): New function.
951
4593441b
JT
9522015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
953
954 * MAINTAINERS (Write After Approval): Add "Jon Turney".
955
ff908ebf
AW
9562015-03-26 Andy Wingo <wingo@igalia.com>
957
958 PR symtab/18148
959 * dwarf2read.c (struct partial_die_info): Add has_const_value
960 member.
961 (add_partial_symbol): Don't punt on symbols that have const_value
962 attributes.
963 (read_partial_die): Detect DW_AT_const_value.
964
f30d5c78
JK
9652015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
966
967 Code cleanup.
968 * printcmd.c (print_command_1): Move expr variable scope.
969
8d89f51a
JK
9702015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
971
972 Code cleanup.
973 * printcmd.c (validate_format): Make the parameter cmdname const.
974
0b736949
DB
9752015-03-26 Don Breazeal <donb@codesourcery.com>
976
977 * remote.c (_initialize_remote): Update comment.
978
20d35291
PA
9792015-03-26 Pedro Alves <palves@redhat.com>
980 Jon TURNEY <jon.turney@dronecode.org.uk>
981
982 * coffread.c (coff_symfile_read): When constructing the name of an
983 import stub symbol from import symbol for amd64, only skip the
984 char after _imp_ if the target is underscored (like i386) and the
985 char is indeed the target's leading char.
986
6a3753b3
PA
9872015-03-25 Pedro Alves <palves@redhat.com>
988
989 * target.h <to_async>: Replace 'callback' and 'context' parameters
990 with boolean 'enable' parameter.
991 (target_async): Replace CALLBACK and CONTEXT parameters with
992 boolean ENABLE parameter.
993 * inf-loop.c (inferior_event_handler): Adjust.
994 * linux-nat.c (linux_nat_attach, linux_nat_resume)
995 (linux_nat_resume): Adjust.
996 (async_client_callback, async_client_context): Delete.
997 (handle_target_event): Call inferior_event_handler directly.
998 (linux_nat_async): Replace 'callback' and 'context' parameters
999 with boolean 'enable' parameter. Adjust. Remove references to
1000 async_client_callback and async_client_context.
1001 (linux_nat_close): Adjust.
1002 * record-btrace.c (record_btrace_async): Replace 'callback' and
1003 'context' parameters with boolean 'enable' parameter. Adjust.
1004 (record_btrace_resume): Adjust.
1005 * record-full.c (record_full_async): Replace 'callback' and
1006 'context' parameters with boolean 'enable' parameter. Adjust.
1007 (record_full_resume, record_full_core_resume): Adjust.
1008 * remote.c (struct remote_state) <async_client_callback,
1009 async_client_context>: Delete fields.
1010 (remote_start_remote, extended_remote_attach_1, remote_resume)
1011 (extended_remote_create_inferior): Adjust.
1012 (remote_async_serial_handler): Call inferior_event_handler
1013 directly.
1014 (remote_async): Replace 'callback' and 'context' parameters with
1015 boolean 'enable' parameter. Adjust.
1016 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
1017 Adjust.
1018 * target-delegates.c: Regenerate.
1019
1c4b552b
GB
10202015-03-25 Gary Benson <gbenson@redhat.com>
1021 Pedro Alves <palves@redhat.com>
1022
1023 * target.c (fileio_ft_t): New typedef, define object vector.
1024 (fileio_fhandles): New static variable.
1025 (is_closed_fileio_fh): New macro.
1026 (lowest_closed_fd): New static variable.
1027 (acquire_fileio_fd): New function.
1028 (release_fileio_fd): Likewise.
1029 (fileio_fd_to_fh): New macro.
1030 (target_fileio_open): Wrap the file descriptor on success.
1031 (target_fileio_pwrite): Updated to use wrapped file descriptor.
1032 (target_fileio_pread): Likewise.
1033 (target_fileio_close): Likewise.
1034
a25d8bf9
PA
10352015-03-24 Pedro Alves <palves@redhat.com>
1036
1037 * thread.c (thread_apply_all_command): Take exited threads into
1038 account.
1039
44a1ee51
PA
10402015-03-24 Pedro Alves <palves@redhat.com>
1041
1042 * infrun.c (resume, proceed): Mention
1043 switch_back_to_stepped_thread, not switch_back_to_stepping.
1044
f3263aa4
PA
10452015-03-24 Pedro Alves <palves@redhat.com>
1046
1047 * infrun.c (user_visible_resume_ptid): Rewrite going from
1048 most-locked to unlocked instead of the opposite. Move comment ...
1049 * infrun.h (user_visible_resume_ptid): ... here.
1050
2bf6fb9d
PA
10512015-03-24 Pedro Alves <palves@redhat.com>
1052
1053 * linux-nat.c (linux_nat_resume): Output debug logs before trying
1054 to resume the event lwp. Use the lwp's ptid instead of the passed
1055 in (maybe wildcard) ptid.
1056 (stop_wait_callback): Tweak debug log output.
1057 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
1058 TRAP_TRACE.
1059 (linux_nat_filter_event): In debug output, distinguish a
1060 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
1061 before trying to resume the lwp.
1062
283a9958
JB
10632015-03-24 Joel Brobecker <brobecker@adacore.com>
1064
1065 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
1066 pointer indirection.
1067 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
1068 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
1069
93a8e227
JB
10702015-03-24 Joel Brobecker <brobecker@adacore.com>
1071
1072 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
1073 Renames DYN_ATTR_DATA_LOCATION.
1074 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
1075 DYN_ATTR_DATA_LOCATION.
1076 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
1077 instead of DYN_ATTR_DATA_LOCATION.
1078
64ce06e4
PA
10792015-03-24 Pedro Alves <palves@redhat.com>
1080
1081 * breakpoint.c (until_break_command): Adjust call to proceed.
1082 * gdbthread.h (struct thread_control_state) <stepping_command>:
1083 New field.
1084 * infcall.c (run_inferior_call): Adjust call to proceed.
1085 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
1086 Adjust calls to proceed.
1087 (set_step_frame): Set the current thread's step_start_function
1088 here.
1089 (step_once): Adjust calls to proceed.
1090 (jump_command, signal_command, until_next_command)
1091 (finish_backward, finish_forward, proceed_after_attach_callback)
1092 (attach_command_post_wait): Adjust calls to proceed.
1093 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
1094 (do_target_resume): New function, factored out from ...
1095 (resume): ... here. Remove 'step' parameter. Instead, check
1096 currently_stepping to determine whether the thread should be
1097 single-stepped.
1098 (proceed): Remove 'step' parameter and don't set the thread's
1099 step_start_function here. Adjust call to 'resume'.
1100 (handle_inferior_event): Adjust calls to 'resume'.
1101 (switch_back_to_stepped_thread): Use do_target_resume instead of
1102 'resume'.
1103 (keep_going): Adjust calls to 'resume'.
1104 * infrun.h (proceed): Remove 'step' parameter.
1105 (resume): Likewise.
1106 * windows-nat.c (do_initial_windows_stuff): Adjust call to
1107 'resume'.
1108 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
1109
856e7dd6
PA
11102015-03-24 Pedro Alves <palves@redhat.com>
1111
1112 * gdbthread.h (struct thread_control_state) <stepping_command>:
1113 New field.
1114 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
1115 the thread's stepping_command field.
1116 * infrun.c (resume): Check the thread's stepping_command flag to
1117 determine which threads should be resumed. Rename 'entry_step'
1118 local to user_step.
1119 (clear_proceed_status_thread): Clear 'stepping_command'.
1120 (schedlock_applies): Change parameter type to struct thread_info
1121 pointer. Adjust.
1122 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
1123 (switch_back_to_stepped_thread): Adjust calls to
1124 'schedlock_applies'.
1125 (_initialize_infrun): Adjust "set scheduler-locking step" help.
1126
885eeb5b
PA
11272015-03-24 Pedro Alves <palves@redhat.com>
1128
1129 * infrun.c (step_start_function): Delete and ...
1130 * gdbthread.h (struct thread_control_state) <step_start_function>:
1131 ... now a field here.
1132 * infrun.c (clear_proceed_status_thread): Clear the thread's
1133 step_start_function.
1134 (proceed, process_event_stop_test, print_stop_event): Adjust.
1135
3333f03a
PA
11362015-03-24 Pedro Alves <palves@redhat.com>
1137
1138 * infrun.c (proceed): No longer handle negative step.
1139
369f6daa
GB
11402015-03-24 Gary Benson <gbenson@redhat.com>
1141
1142 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
1143 (x86_linux_prepare_to_resume): Likewise.
1144 * x86-linux-nat.c (x86_linux_new_thread):
1145 Moved to nat/x86-linux.c.
1146 (x86_linux_prepare_to_resume): Likewise.
1147 * nat/x86-linux.c (x86_linux_new_thread): New function.
1148 (x86_linux_prepare_to_resume): Likewise.
1149
8e5d4070
GB
11502015-03-24 Gary Benson <gbenson@redhat.com>
1151
1152 * nat/x86-linux-dregs.h: New file.
1153 * nat/x86-linux-dregs.c: Likewise.
1154 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
1155 (x86-linux-dregs.o): New rule.
1156 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
1157 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1158 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
1159 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
1160 (x86_linux_dr_get): Likewise.
1161 (x86_linux_dr_set): Likewise.
1162 (x86_linux_dr_get_addr): Likewise.
1163 (x86_linux_dr_get_control): Likewise.
1164 (x86_linux_dr_get_status): Likewise.
1165 (update_debug_registers_callback): Likewise.
1166 (x86_linux_dr_set_control): Likewise.
1167 (x86_linux_dr_set_addr): Likewise.
1168 (x86_linux_update_debug_registers): Likewise.
1169
2b95d440
GB
11702015-03-24 Gary Benson <gbenson@redhat.com>
1171
1172 * x86-linux-nat.c (x86_linux_update_debug_registers):
1173 New function, factored out from...
1174 (x86_linux_prepare_to_resume): ...this.
1175
14b0bc68
GB
11762015-03-24 Gary Benson <gbenson@redhat.com>
1177
1178 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
1179 (x86_linux_dr_set): Likewise.
1180 (x86_linux_dr_get_addr): Likewise.
1181 (x86_linux_dr_get_control): Likewise.
1182 (x86_linux_dr_get_status): Likewise.
1183 (update_debug_registers_callback): Likewise.
1184 (x86_linux_dr_set_control): Likewise.
1185 (x86_linux_dr_set_addr): Likewise.
1186 (x86_linux_prepare_to_resume): Likewise.
1187 (x86_linux_new_thread): Likewise.
1188
5dfe6ca8
GB
11892015-03-24 Gary Benson <gbenson@redhat.com>
1190
1191 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
1192 (x86_linux_new_thread): Rename argument.
1193
4b134ca1
GB
11942015-03-24 Gary Benson <gbenson@redhat.com>
1195
1196 * nat/x86-linux.h: New file.
1197 * nat/x86-linux.c: Likewise.
1198 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
1199 (x86-linux.o): New rule.
1200 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
1201 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1202 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
1203 (lwp_set_arch_private_info): New declaration.
1204 (lwp_arch_private_info): Likewise.
1205 * linux-nat.c (lwp_set_arch_private_info): New function.
1206 (lwp_arch_private_info): Likewise.
1207 * x86-linux-nat.c: Include nat/x86-linux.h.
1208 (arch_lwp_info): Removed structure.
1209 (update_debug_registers_callback):
1210 Use lwp_set_debug_registers_changed.
1211 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
1212 and lwp_set_debug_registers_changed.
1213 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
1214
cff068da
GB
12152015-03-24 Gary Benson <gbenson@redhat.com>
1216
1217 * nat/linux-nat.h (ptid_of_lwp): New declaration.
1218 (lwp_is_stopped): Likewise.
1219 (lwp_stop_reason): Likewise.
1220 * linux-nat.c (ptid_of_lwp): New function.
1221 (lwp_is_stopped): Likewise.
1222 (lwp_is_stopped_by_watchpoint): Likewise.
1223 * x86-linux-nat.c (update_debug_registers_callback):
1224 Use lwp_is_stopped.
1225 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
1226 lwp_stop_reason.
1227
b2f7c7e8
GB
12282015-03-24 Gary Benson <gbenson@redhat.com>
1229
1230 * linux-nat.h (linux_stop_lwp): Move declaration to...
1231 * nat/linux-nat.h (linux_stop_lwp): New declaration.
1232
6d4ee8c6
GB
12332015-03-24 Gary Benson <gbenson@redhat.com>
1234
1235 * linux-nat.h: Include nat/linux-nat.h.
1236 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
1237 * nat/linux-nat.h (struct lwp_info): New forward declaration.
1238 (iterate_over_lwps_ftype): New typedef.
1239 (iterate_over_lwps): New declaration.
1240 * linux-nat.h (iterate_over_lwps): Update comment. Use
1241 iterate_over_lwps_ftype. Update callback return value check.
1242
70a0bb6b
GB
12432015-03-24 Gary Benson <gbenson@redhat.com>
1244
1245 * x86-nat.h (x86_debug_reg_state): Move declaration to...
1246 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
1247
7b669087
GB
12482015-03-24 Gary Benson <gbenson@redhat.com>
1249
1250 * nat/linux-nat.h (current_lwp_ptid): New declaration.
1251 * linux-nat.c (current_lwp_ptid): New function.
1252 * x86-linux-nat.c: Include nat/linux-nat.h.
1253 (x86_linux_dr_get_addr): Use current_lwp_ptid.
1254 (x86_linux_dr_get_control): Likewise.
1255 (x86_linux_dr_get_status): Likewise.
1256 (x86_linux_dr_set_control): Likewise.
1257 (x86_linux_dr_set_addr): Likewise.
1258
15630549
AT
12592015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
1260
1261 PR breakpoints/16466
1262 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
1263
8a4506c0
JB
12642015-03-23 Joel Brobecker <brobecker@adacore.com>
1265
1266 * ser-mingw.c (ser_windows_setparity): Fix indentation.
1267 * ser-unix.c (hardwire_setparity): Likewise.
1268
236af5e3
YG
12692015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1270
1271 * NEWS: Mention set/show serial parity command.
1272 * monitor.c (monitor_open): Call serial_setparity.
1273 * remote.c (remote_open_1): Likewise.
1274 * ser-base.c (ser_base_serparity): New function.
1275 * ser-base.h (ser_base_setparity): Add declaration.
1276 * ser-go32.c (dos_ops): Set "setparity" field.
1277 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
1278 state.Parity.
1279 (ser_windows_setparity): New function.
1280 (hardwire_ops): Add ser_windows_setparity.
1281 (tty_ops): Add NULL for setparity field.
1282 (pipe_ops): Add ser_base_setparity.
1283 (tcp_ops): Likewise.
1284 * ser-pipe.c (pipe_ops): Likewise.
1285 * ser-tcp.c (tcp_ops): Likewise.
1286 * ser-unix.c (hardwire_setparity): Add declaration.
1287 (hardwire_raw): Don't reset PARENB flag.
1288 (hardwire_setparity): New function.
1289 (hardwire_ops): Add hardwire_setparity.
1290 * serial.c (serial_setparity): New function.
1291 (serial_parity): New global.
1292 (parity_none, parity_odd, parity_even, parity_enums, parity):
1293 New static globals.
1294 (set_parity): New function.
1295 (_initialize_serial): Add set/show serial parity commands.
1296 * serial.h (GDBPARITY_NONE): Define.
1297 (GDBPARITY_ODD): Define.
1298 (GDBPARITY_EVEN): Define.
1299 (serial_setparity) Add declaration.
1300 (struct serial_ops): Add setparity field.
1301 * target.h (serial_parity): Add declaration.
1302
32b40af9
KS
13032015-03-23 Keith Seitz <keiths@redhat.com>
1304
1305 * linespec.c (linespec_lexer_lex_keyword): Update comment.
1306
693dca06
KS
13072015-03-23 Keith Seitz <keiths@redhat.com>
1308
1309 * breakpoint.c (parse_breakpoint_sals): Use
1310 linespec_lexer_lex_keyword to ascertain if the user specified
1311 a NULL location.
1312 * linespec.c [IF_KEYWORD_INDEX]: Define.
1313 (linespec_lexer_lex_keyword): Export.
1314 (struct ls_parser) <keyword_ok>: Remove.
1315 A keyword is only a keyword if not followed by another keyword.
1316 (linespec_lexer_lex_one): Remove keyword_ok handling.
1317 Add comment explaining why the parsing stream is not advanced
1318 when a keyword is seen.
1319 (parse_linespec): Remove parser->keyword_ok.
1320 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
1321
7e993ebf
KS
13222015-03-23 Keith Seitz <keiths@redhat.com>
1323
1324 PR gdb/18021
1325 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
1326 if we find a static method with DW_AT_vtable_elem_location.
1327
b1a0f704
EZ
13282015-03-21 Eli Zaretskii <eliz@gnu.org>
1329
1330 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
1331 before the second loop, to avoid undefined behavior. Reported by
1332 Anton Blanchard <anton@samba.org>.
1333
d9823cbb
KB
13342015-03-20 Keven Boell <keven.boell@intel.com>
1335
1336 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
1337 data_location usage to linked list.
1338 (resolve_dynamic_type_internal): Adapt data_location to
1339 linked list.
1340 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
1341 (copy_type_recursive, copy_type): Add copy of linked list.
1342 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
1343 (struct dynamic_prop_list): New struct.
1344 * dwarf2read.c (set_die_type): Set data_location data.
1345
2e7bf1d7
PA
13462015-03-20 Pedro Alves <palves@redhat.com>
1347
1348 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
1349 inner block and make it const.
1350 * machoread.c (get_archive_prefix_len): Make "lparen" const.
1351
7a26bd4d
PA
13522015-03-20 Pedro Alves <palves@redhat.com>
1353
1354 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
1355 * breakpoint.h (set_breakpoint_condition): Update declaration.
1356
cd46431b
PA
13572015-03-20 Pedro Alves <palves@redhat.com>
1358
1359 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
1360
e28566f7
PA
13612015-03-20 Pedro Alves <palves@redhat.com>
1362
1363 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
1364
f6fc92f6
PA
13652015-03-20 Pedro Alves <palves@redhat.com>
1366
1367 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
1368
c32ed3ef
PA
13692015-03-20 Pedro Alves <palves@redhat.com>
1370
1371 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
1372 (nto_init_solib_absolute_prefix): Likewise.
1373
53e78085
PA
13742015-03-20 Pedro Alves <palves@redhat.com>
1375
1376 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
1377 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
1378
bc23328c
JK
13792015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1380
1381 * config/djgpp/README: Remove gdb.hp.
1382
e8ffc436
YQ
13832015-03-20 Yao Qi <yao.qi@linaro.org>
1384
1385 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
1386 set_gdbarch_cannot_step_breakpoint.
1387
23f238d3
PA
13882015-03-19 Pedro Alves <palves@redhat.com>
1389
1390 * linux-nat.c (linux_resume_one_lwp): Rename to ...
1391 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
1392 instead call perror_with_name.
1393 (check_ptrace_stopped_lwp_gone): New function.
1394 (linux_resume_one_lwp): Reimplement as wrapper around
1395 linux_resume_one_lwp_throw that swallows errors if the LWP is
1396 gone.
1397 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
1398 swallows errors if the LWP is gone. Use
1399 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
1400
eb54c8bf
PA
14012015-03-19 Pedro Alves <palves@redhat.com>
1402
1403 * linux-nat.c (status_callback): Return early if the LWP has no
1404 status pending.
1405
b90fc188
PA
14062015-03-19 Pedro Alves <palves@redhat.com>
1407
1408 * linux-nat.c (select_event_lwp_callback): Update comment to no
1409 longer mention SIGTRAP.
1410
670f82d4
TG
14112015-03-18 Tristan Gingold <gingold@adacore.com>
1412
1413 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
1414 redirection code to ...
1415 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
1416 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
1417
464b0089
GB
14182015-03-18 Gary Benson <gbenson@redhat.com>
1419
1420 (remote_protocol_features): Remove the "vFile:fstat" feature.
1421 (remote_hostio_fstat): Probe for "vFile:fstat" support.
1422
f68f11b7
YQ
14232015-03-11 Yao Qi <yao.qi@linaro.org>
1424
1425 PR tdep/18107
1426 * aarch64-linux-tdep.c: Include xml-syscall.h
1427 (aarch64_linux_get_syscall_number): New function.
1428 (aarch64_linux_init_abi): Call
1429 set_gdbarch_get_syscall_number.
1430 * syscalls/aarch64-linux.xml: New file.
1431
393bd0c0
YG
14322015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1433
1434 * ser-base.h (ser_base_setstopbits): Change second argument name
1435 from "rate" to "num".
1436
7f3647e2
GB
14372015-03-17 Gary Benson <gbenson@redhat.com>
1438 Luke Allardyce <lukeallardyce@gmail.com>
1439
1440 PR gdb/18131
1441 * common/common-remote-fileio.h (sys/stat.h): New include.
1442 (stuct stat): Remove forward declaration.
1443
3ce5b6e2
JB
14442015-03-16 John Baldwin <jhb@FreeBSD.org>
1445
1446 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
1447 before writing core register notes.
1448
d053f6be
YZ
14492015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1450 Pedro Alves <palves@redhat.com>
1451
1452 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
1453 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
1454 (tgoto): Wrap with extern "C".
1455
b1a921c8
PA
14562015-03-16 Pedro Alves <palves@redhat.com>
1457 Yuanhui Zhang <asmwarrior@gmail.com>
1458
1459 * stub-termcap.c (tputs): Change prototype.
1460
876d1cd7
YZ
14612015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1462 Pedro Alves <palves@redhat.com>
1463
1464 * windows-nat.c (struct thread_info_struct): Rename to ...
1465 (struct windows_thread_info_struct): ... this.
1466 (thread_info): Rename to ...
1467 (windows_thread_info): ... this.
1468 All users updated.
1469
0800b440
JK
14702015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1471 Pedro Alves <palves@redhat.com>
1472
1473 * NEWS: New Removed targets and native configurations.
1474
14752015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
1476
1477 Remove HPUX.
1478 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
1479 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
1480 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
1481 ia64-hpux-tdep.h, solib-ia64-hpux.h.
1482 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
1483 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
1484 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
1485 hppa-hpux-tdep.c.
1486 * config/ia64/hpux.mh: Remove file.
1487 * config/pa/hpux.mh: Remove file.
1488 * configure: Rebuilt.
1489 * configure.ac (dlgetmodinfo, somread.o): Remove.
1490 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1491 (ia64-*-hpux*): Remove its float format exception.
1492 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1493 * hppa-hpux-nat.c: Remove file.
1494 * hppa-hpux-tdep.c: Remove file.
1495 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
1496 Move them here from hppa-tdep.h
1497 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
1498 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
1499 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
1500 Move them to hppa-tdep.c.
1501 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
1502 declarations.
1503 * ia64-hpux-nat.c: Remove file.
1504 * ia64-hpux-tdep.c: Remove file.
1505 * ia64-hpux-tdep.h: Remove file.
1506 * inf-ttrace.c: Remove file.
1507 * inf-ttrace.h: Remove file.
1508 * solib-ia64-hpux.c: Remove file.
1509 * solib-ia64-hpux.h: Remove file.
1510 * solib-pa64.c: Remove file.
1511 * solib-pa64.h: Remove file.
1512 * solib-som.c: Remove file.
1513 * solib-som.h: Remove file.
1514 * somread.c: Remove file.
1515
25268153
JB
15162015-03-13 John Baldwin <jhb@FreeBSD.org>
1517
1518 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
1519 * config.in: Regenerate.
1520 * configure: Regenerate.
1521 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
1522 define.
1523 (fbsd_find_memory_regions): Use kinfo_getvmmap to
1524 enumerate memory regions if present.
1525
773eacf5
JB
15262015-03-13 John Baldwin <jhb@FreeBSD.org>
1527
1528 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
1529 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
1530 expressions.
1531 (i386fbsd_sigtramp_p): Likewise.
1532
01b6bdb0
JB
15332015-03-12 John Baldwin <jhb@FreeBSD.org>
1534
1535 * MAINTAINERS (Write After Approval): Add John Baldwin.
1536
811a659a
GB
15372015-03-12 Gary Benson <gbenson@redhat.com>
1538
1539 * solib.c (_initialize_solib): Make "set/show sysroot" use
1540 add_setshow_optional_filename_cmd so it can be restored to
1541 empty after being set.
1542
10304ef3
SDJ
15432015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1544
1545 * Makefile.in (SFILES): New source break-catch-syscall.c.
1546 (COMMON_OBS): New object break-catch-syscall.o.
1547 * break-catch-syscall.c: New file.
1548 * breakpoint.c: Remove inclusion of "xml-syscall.h".
1549 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
1550 (struct syscall_catchpoint): Likewise.
1551 (dtor_catch_syscall): Likewise.
1552 (catch_syscall_inferior_data): Likewise.
1553 (struct catch_syscall_inferior_data): Likewise.
1554 (get_catch_syscall_inferior_data): Likewise.
1555 (catch_syscall_inferior_data_cleanup): Likewise.
1556 (insert_catch_syscall): Likewise.
1557 (remove_catch_syscall): Likewise.
1558 (breakpoint_hit_catch_syscall): Likewise.
1559 (print_it_catch_syscall): Likewise.
1560 (print_one_catch_syscall): Likewise.
1561 (print_mention_catch_syscall): Likewise.
1562 (print_recreate_catch_syscall): Likewise.
1563 (catch_syscall_breakpoint_ops): Likewise.
1564 (syscall_catchpoint_p): Likewise.
1565 (create_syscall_event_catchpoint): Likewise.
1566 (catch_syscall_split_args): Likewise.
1567 (catch_syscall_command_1): Likewise.
1568 (is_syscall_catchpoint_enabled): Likewise.
1569 (catch_syscall_enabled): Likewise.
1570 (catching_syscall_number): Likewise.
1571 (catch_syscall_completer): Likewise.
1572 (clear_syscall_counts): Likewise.
1573 (initialize_breakpoint_ops): Move initialization of syscall
1574 catchpoints to break-catch-syscall.c.
1575 (_initialize_breakpoint): Move code related to syscall catchpoints
1576 to break-catch-syscall.c.
1577
badd37ce
SDJ
15782015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1579
1580 * breakpoint.c (breakpoint_find_if): New function.
1581 * breakpoint.h (breakpoint_find_if): New prototype.
1582
0a93529c
GB
15832015-03-11 Gary Benson <gbenson@redhat.com>
1584
1585 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
1586 * remote-fileio.c (remote_fileio_to_host_uint): New function.
1587 (remote_fileio_to_host_ulong): Likewise.
1588 (remote_fileio_to_host_mode): Likewise.
1589 (remote_fileio_to_host_time): Likewise.
1590 (remote_fileio_to_host_stat): Likewise.
1591 * remote.c (PACKET_vFile_fstat): New enum value.
1592 (remote_protocol_features): Register the "vFile:fstat" feature.
1593 (remote_hostio_fstat): New function.
1594 (remote_bfd_iovec_stat): Use the above.
1595 (_initialize_remote): Register new "set/show remote
1596 hostio-fstat-packet" command.
1597 * symfile.c (separate_debug_file_exists): Update comment.
1598 * NEWS: Announce new vFile:fstat packet.
1599
791c0056
GB
16002015-03-11 Gary Benson <gbenson@redhat.com>
1601
1602 * common/common-remote-fileio.h: New file.
1603 * common/common-remote-fileio.c: Likewise.
1604 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
1605 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
1606 (COMMON_OBS): Add common-remote-fileio.o.
1607 (common-remote-fileio.o): New rule.
1608 * remote-fileio.h (common-remote-fileio.h): New include.
1609 * remote-fileio.c (gdb/fileio.h): Do not include.
1610 (remote_fileio_to_be): Moved to common-remote-fileio.h.
1611 (remote_fileio_to_fio_uint): Likewise.
1612 (remote_fileio_to_fio_time): Likewise.
1613 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
1614 (remote_fileio_to_fio_mode): Likewise.
1615 (remote_fileio_to_fio_ulong): Likewise.
1616 (remote_fileio_to_fio_stat): Likewise.
1617
1390d0ef
AW
16182015-03-11 Andy Wingo <wingo@igalia.com>
1619
1620 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
1621 we were checking the cached type, not the cached dynamic type.
1622
84a4591a
AW
16232015-03-11 Andy Wingo <wingo@igalia.com>
1624
1625 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
1626 other strings, as these are on the GC'd heap, and will be
1627 collected along with the smob.
1628
85642ba0
AW
16292015-03-11 Andy Wingo <wingo@igalia.com>
1630
1631 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
1632 (objfile_functions): Bind gdbscm_objfile_progspace to
1633 objfile-progspace.
1634 * guile/lib/gdb.scm: Add objfile-progspace to exports.
1635
92fab5a6
AW
16362015-03-11 Andy Wingo <wingo@igalia.com>
1637
1638 * guile/guile.c (_initialize_guile): Disable automatic
1639 finalization, if Guile offers us that possibility.
1640 * guile/guile.c (call_initialize_gdb_module):
1641 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
1642 finalizers in appropriate places.
1643 * configure.ac (AC_TRY_LIBGUILE): Add a check for
1644 scm_set_automatic_finalization_enabled.
1645 * configure: Regenerated.
1646
f054145e
AA
16472015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1648
1649 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
1650 SAL, if possible.
1651
18396193
AA
16522015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1653
1654 * s390-linux-nat.c (struct arch_lwp_info): New.
1655 (s390_fix_watch_points): Rename to...
1656 (s390_prepare_to_resume): ...this. Skip the PER info update
1657 unless the watch points have changed.
1658 (s390_refresh_per_info, s390_new_thread): New functions.
1659 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
1660 s390_fix_watch_points.
1661 (s390_remove_watchpoint): Likewise.
1662 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
1663 Register s390_prepare_to_resume.
1664
9eb1356e
PA
16652015-03-09 Pedro Alves <palves@redhat.com>
1666
1667 Revert:
1668 2015-03-07 Pedro Alves <palves@redhat.com>
1669 * common/gdb_socket.h: New file.
1670 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1671 sys/socket.h.
1672 (net_open): Use union gdb_sockaddr_u.
1673
aac331e4
PA
16742015-03-07 Pedro Alves <palves@redhat.com>
1675
1676 * configure.ac (build_warnings): Move -Wmissing-prototypes
1677 -Wdeclaration-after-statement -Wmissing-parameter-type
1678 -Wold-style-declaration -Wold-style-definition to the C-specific
1679 set.
1680 * configure: Regenerate.
1681
366c75fc
PA
16822015-03-07 Pedro Alves <palves@redhat.com>
1683
1684 * common/gdb_socket.h: New file.
1685 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1686 sys/socket.h.
1687 (net_open): Use union gdb_sockaddr_u.
1688
72df25b2
PA
16892015-03-07 Pedro Alves <palves@redhat.com>
1690
1691 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
1692 (exceptions_state_mc_action_iter)
1693 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1694 Don't define.
1695 [__cplusplus] (try_scope_depth): New global.
1696 [__cplusplus] (exception_try_scope_entry)
1697 (exception_try_scope_exit, gdb_exception_sliced_copy)
1698 (exception_rethrow): New functions.
1699 (throw_exception): In C++ mode, throw
1700 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
1701 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
1702 (throw_it): In C++ mode, use try_scope_depth.
1703 * common/common-exceptions.h [!__cplusplus]
1704 (exceptions_state_mc_action_iter)
1705 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1706 Don't declare.
1707 [__cplusplus] (exception_try_scope_entry)
1708 (exception_try_scope_exit, exception_rethrow): Declare.
1709 [__cplusplus] (struct exception_try_scope): New struct.
1710 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
1711 C++ exceptions.
1712 (struct gdb_exception_RETURN_MASK_ALL)
1713 (struct gdb_exception_RETURN_MASK_ERROR)
1714 (struct gdb_exception_RETURN_MASK_QUIT): New types.
1715
284e6217
PA
17162015-03-07 Pedro Alves <palves@redhat.com>
1717
1718 * main.c (handle_command_errors): Remove volatile qualifier from
1719 parameter.
1720
6c63c96a
PA
17212015-03-07 Pedro Alves <palves@redhat.com>
1722
1723 * breakpoint.c (save_breakpoints): Adjust to avoid code between
1724 TRY and CATCH.
1725 * gdbtypes.c (safe_parse_type): Remove empty line.
1726 (types_deeply_equal):
1727 * guile/scm-frame.c (gdbscm_frame_name):
1728 * linux-thread-db.c (find_new_threads_once):
1729 * python/py-breakpoint.c (bppy_get_commands):
1730 * record-btrace.c (record_btrace_insert_breakpoint)
1731 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
1732 (record_btrace_start_replaying): Adjust to avoid code between TRY
1733 and CATCH.
1734
492d29ea
PA
17352015-03-07 Pedro Alves <palves@redhat.com>
1736
1737 * common/common-exceptions.c (struct catcher) <exception>: No
1738 longer a pointer to volatile exception. Now an exception value.
1739 <mask>: Delete field.
1740 (exceptions_state_mc_init): Remove all parameters. Adjust.
1741 (exceptions_state_mc): No longer pop the catcher here.
1742 (exceptions_state_mc_catch): New function.
1743 (throw_exception): Adjust.
1744 * common/common-exceptions.h (exceptions_state_mc_init): Remove
1745 all parameters.
1746 (exceptions_state_mc_catch): Declare.
1747 (TRY_CATCH): Rename to ...
1748 (TRY): ... this. Remove EXCEPTION and MASK parameters.
1749 (CATCH, END_CATCH): New.
1750 All callers adjusted.
1751
ece957c8
TT
17522015-03-07 Tom Tromey <tromey@redhat.com>
1753
1754 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
1755
7556d4a4
PA
17562015-03-07 Pedro Alves <palves@redhat.com>
1757
1758 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1759 (amd64_epilogue_frame_cache): Normal exception handling code.
1760 * break-catch-throw.c (check_status_exception_catchpoint)
1761 (re_set_exception_catchpoint): Ditto.
1762 * cli/cli-interp.c (safe_execute_command):
1763 * cli/cli-script.c (script_from_file): Ditto.
1764 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
1765 Ditto.
1766 * compile/compile-object-run.c (compile_object_run): Ditto.
1767 * cp-abi.c (baseclass_offset): Ditto.
1768 * cp-valprint.c (cp_print_value): Ditto.
1769 * exceptions.c (catch_exceptions_with_msg):
1770 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
1771 * frame.c (get_frame_address_in_block_if_available): Ditto.
1772 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1773 (i386_sigtramp_frame_cache): Ditto.
1774 * infcmd.c (post_create_inferior): Ditto.
1775 * linespec.c (parse_linespec, find_linespec_symbols):
1776 * p-valprint.c (pascal_object_print_value): Ditto.
1777 * parse.c (parse_expression_for_completion): Ditto.
1778 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1779 * remote.c (remote_get_noisy_reply): Ditto.
1780 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
1781 * solib-svr4.c (solib_svr4_r_map): Ditto.
1782
f873665f 17832015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
1784
1785 * common/common-utils.h (startswith): New inline function.
1786 All places where this logic was used updated to use the above.
1787
68901c4d
PA
17882015-03-05 Pedro Alves <palves@redhat.com>
1789
1790 PR gdb/18002
1791 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
1792 after reading the breakpoint's shadow memory.
1793
2dcb2b1a
MK
17942015-03-05 Mark Kettenis <kettenis@gnu.org>
1795
1796 * hppabsd-nat.c: Remove file.
1797 * hppaobsd-nat.c: New file.
1798 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
1799 hppaobsd-nat.c.
1800 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
1801 hppaobsd-nat.o.
1802
527a273a
PA
18032015-03-04 Pedro Alves <palves@redhat.com>
1804
1805 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
1806 (target_decr_pc_after_break): Delete declaration.
1807 * target.c (default_target_decr_pc_after_break)
1808 (target_decr_pc_after_break): Delete.
1809 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
1810 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
1811 * linux-thread-db.c (check_event): Likewise.
1812 * infrun.c (adjust_pc_after_break): Likewise.
1813 * darwin-nat.c (cancel_breakpoint): Likewise.
1814 * aix-thread.c (aix_thread_wait): Likewise.
1815 * target-delegates.c: Regenerate.
1816
faf09f01
PA
18172015-03-04 Pedro Alves <palves@redhat.com>
1818
1819 * linux-nat.c (save_sigtrap): Check for breakpoints before
1820 checking watchpoints.
1821 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
1822 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
1823 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
1824 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
1825 (linux_nat_stopped_by_sw_breakpoint)
1826 (linux_nat_supports_stopped_by_sw_breakpoint)
1827 (linux_nat_stopped_by_hw_breakpoint)
1828 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
1829 (linux_nat_wait_1): Don't re-increment the PC if relying on
1830 SIGTRAP's siginfo->si_code.
1831 (linux_nat_add_target): Install new target methods.
1832 * linux-thread-db.c (check_event): Don't account for breakpoint PC
1833 offset if the target already adjusted the PC.
1834 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
1835 (GDB_ARCH_TRAP_BRKPT): New.
1836 (TRAP_HWBKPT): Define if not already defined.
1837
f7e6eed5
PA
18382015-03-04 Pedro Alves <palves@redhat.com>
1839
1840 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
1841 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
1842 Delete field.
1843 <stop_reason>: New field.
1844 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
1845 (packet_set_cmd_state): New function.
1846 (remote_protocol_features): Register the "swbreak" and "hwbreak"
1847 features.
1848 (remote_query_supported): If not disabled with the corresponding
1849 "set remote foo-packet" command, report support for the swbreak
1850 and hwbreak features.
1851 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
1852 field.
1853 <stop_reason>: New field.
1854 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
1855 (remote_wait_as): Adjust.
1856 (remote_stopped_by_sw_breakpoint)
1857 (remote_supports_stopped_by_sw_breakpoint)
1858 (remote_stopped_by_hw_breakpoint)
1859 (remote_supports_stopped_by_hw_breakpoint): New functions.
1860 (remote_stopped_by_watchpoint): New function.
1861 (init_remote_ops): Install them.
1862 (_initialize_remote): Register new "set/show remote
1863 swbreak-feature-packet" and "set/show remote
1864 swbreak-feature-packet" commands.
1865
9e8915c6
PA
18662015-03-04 Pedro Alves <palves@redhat.com>
1867
1868 * btrace.h: Include target/waitstatus.h.
1869 (struct btrace_thread_info) <stop_reason>: New field.
1870 * record-btrace.c (record_btrace_step_thread): Use
1871 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1872 (record_btrace_decr_pc_after_break): Delete.
1873 (record_btrace_stopped_by_sw_breakpoint)
1874 (record_btrace_supports_stopped_by_sw_breakpoint)
1875 (record_btrace_stopped_by_hw_breakpoint)
1876 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
1877 (init_record_btrace_ops): Install them.
1878 * record-full.c (record_full_hw_watchpoint): Delete and replace
1879 with ...
1880 (record_full_stop_reason): ... this throughout.
1881 (record_full_exec_insn): Adjust.
1882 (record_full_wait_1): Adjust. No longer re-increment the PC.
1883 (record_full_wait_1): Adjust. Use
1884 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1885 (record_full_stopped_by_watchpoint): Adjust.
1886 (record_full_stopped_by_sw_breakpoint)
1887 (record_full_supports_stopped_by_sw_breakpoint)
1888 (record_full_supports_stopped_by_sw_breakpoint)
1889 (record_full_stopped_by_hw_breakpoint)
1890 (record_full_supports_stopped_by_hw_breakpoint): New functions.
1891 (init_record_full_ops, init_record_full_core_ops): Install them.
1892 * record.c (record_check_stopped_by_breakpoint): New function.
1893 * record.h: Include target/waitstatus.h.
1894 (record_check_stopped_by_breakpoint): New declaration.
1895
15c66dd6
PA
18962015-03-04 Pedro Alves <palves@redhat.com>
1897
1898 enum lwp_stop_reason -> enum target_stop_reason
1899 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
1900 (linux_nat_stopped_by_watchpoint, status_callback)
1901 (linux_nat_wait_1): Adjust.
1902 * linux-nat.h (enum lwp_stop_reason): Delete.
1903 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
1904 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
1905 * target/waitstatus.h (enum target_stop_reason): New.
1906
1cf4d951
PA
19072015-03-04 Pedro Alves <palves@redhat.com>
1908
1909 * breakpoint.c (need_moribund_for_location_type): New function.
1910 (bpstat_stop_status): Don't skipping checking moribund locations
1911 of breakpoint types which the target tell caused a stop.
1912 (program_breakpoint_here_p): New function, factored out from ...
1913 (bp_loc_is_permanent): ... this.
1914 (update_global_location_list): Don't create a moribund location if
1915 the target supports reporting stops of the type of the removed
1916 breakpoint.
1917 * breakpoint.h (program_breakpoint_here_p): New declaration.
1918 * infrun.c (adjust_pc_after_break): Return early if the target has
1919 already adjusted the PC. Add comments.
1920 (handle_signal_stop): If nothing explains a signal, and the target
1921 tells us the stop was caused by a software breakpoint, check if
1922 there's a breakpoint instruction in the memory. If so, adjust the
1923 PC before presenting the stop to the user. Otherwise, ignore the
1924 trap. If nothing explains a signal, and the target tells us the
1925 stop was caused by a hardware breakpoint, ignore the trap.
1926 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
1927 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
1928 to_supports_stopped_by_hw_breakpoint>: New fields.
1929 (target_stopped_by_sw_breakpoint)
1930 (target_supports_stopped_by_sw_breakpoint)
1931 (target_stopped_by_hw_breakpoint)
1932 (target_supports_stopped_by_hw_breakpoint): Define.
1933 * target-delegates.c: Regenerate.
1934
79639e11
PA
19352015-03-04 Pedro Alves <palves@redhat.com>
1936
1937 * infrun.c (follow_fork_inferior): Use the whole of the
1938 inferior_ptid and pending_follow.related_pid ptids instead of
1939 building ptids from the process components. Adjust verbose output
1940 to use target_pid_to_str.
1941 * linux-nat.c (linux_child_follow_fork): Use the whole of the
1942 inferior_ptid and pending_follow.related_pid ptids instead of
1943 building ptids from the process components.
1944
e85e8e5e
MK
19452015-03-04 Mark Kettenis <kettenis@gnu.org>
1946
1947 * inf-ptrace.c [PT_GET_PROCESS_STATE]
1948 (inf_ptrace_insert_fork_catchpoint): New function.
1949 (inf_ptrace_remove_fork_catchpoint): New function.
1950 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
1951
87de11c0
AA
19522015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1953
1954 * s390-linux-tdep.c (s390_register_name): Return empty string
1955 instead of NULL for registers that shouldn't be visible.
1956
d851a69a
AA
19572015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1958
1959 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
1960 XML file for 64-bit targets.
1961
b072f6c1
SM
19622015-03-03 Simon Marchi <simon.marchi@ericsson.com>
1963
1964 * target.h (find_default_create_inferior): Remove declaration.
1965 (find_default_attach): Likewise.
1966
c1593e4f
PA
19672015-03-03 Pedro Alves <palves@redhat.com>
1968
1969 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
1970 Use ptid_get_pid to get the overall process id when resuming all
1971 threads.
1972
90ad5e1d
PA
19732015-03-03 Pedro Alves <palves@redhat.com>
1974
1975 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
1976 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
1977 * inf-ptrace.c (get_ptrace_pid): New function.
1978 (inf_ptrace_resume): Use it.
1979 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
1980 to the lower layer.
1981
d68e53f4
MM
19822015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1983
1984 * nat/linux-btrace.c: Include sys/utsname.h.
1985 (linux_determine_kernel_ptr_bits): New.
1986 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
1987 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
1988 ptr_bits.
1989
986b6601
MM
19902015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1991
1992 * btrace.c (ftrace_update_function): Treat return as tailcall for
1993 "_dl_runtime_resolve".
1994
ce0dfbea
MM
19952015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1996
1997 * btrace.h (btrace_function) <lbegin, lend>: Remove.
1998 * btrace.c (ftrace_debug): Do not print the line range.
1999 (ftrace_skip_file, ftrace_update_lines): Remove.
2000 (ftrace_new_function): Remove lbegin and lend initialization.
2001 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
2002 * record-btrace.c (btrace_compute_src_line_range): New.
2003 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
2004
95e50b27
PA
20052015-03-02 Pedro Alves <palves@redhat.com>
2006
2007 * infrun.c (follow_exec): Delete all threads of the process except
2008 the event thread. Extended comments.
2009
00e474c2
JB
20102015-03-02 Joel Brobecker <brobecker@adacore.com>
2011
2012 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
2013
cc7039d3
JB
20142015-03-02 Joel Brobecker <brobecker@adacore.com>
2015
2016 * utils.h: Remove <stdbool.h> #include.
2017 (producer_is_gcc): Change return type to "int".
2018 * utils.c (producer_is_gcc): Change return type to int.
2019 Return 1 instead of true, and 0 instead of false.
2020 Adjust function documentation accordingly.
2021
550bdf96
AA
20222015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
2023
2024 * s390-linux-nat.c (have_regset_vxrs): New static variable.
2025 (s390_linux_fetch_inferior_registers): Handle vector registers, if
2026 present.
2027 (s390_linux_store_inferior_registers): Likewise.
2028 (s390_get_hwcap): Remove function. Embed its logic...
2029 (s390_read_description): ...here. Yield a target description with
2030 vector registers if applicable.
2031 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
2032 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
2033 "features/s390x-tevx-linux64.c".
2034 (struct gdbarch_tdep) <v0_full_regnum>: New field.
2035 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
2036 for "GNU/Linux-specific registers".
2037 (s390_dwarf_reg_r0l): New enum value.
2038 (s390_dwarf_reg_to_regnum): Support vector registers.
2039 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
2040 of GPR lower halves.
2041 (regnum_is_vxr_full): New function.
2042 (s390_register_name): New function.
2043 (s390_pseudo_register_name): Handle v0-v15, which are composed of
2044 f0-f15 and v0l-v15l.
2045 (s390_pseudo_register_type): Likewise.
2046 (s390_pseudo_register_read): Likewise.
2047 (s390_pseudo_register_write): Likewise.
2048 (s390_value_from_register): Account for the fact that values are
2049 placed left-justified in vector registers.
2050 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
2051 the vector reggroup and omit them from the general reggroup.
2052 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
2053 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
2054 (s390_iterate_over_regset_sections): Add iterations for the two
2055 new vector regsets.
2056 (s390_core_read_description): Yield a target description with
2057 vector registers if applicable.
2058 (s390_gdbarch_init): Handle target descriptions with vector
2059 registers. Add "register_name" gdbarch method.
2060 (_initialize_s390_tdep): Call new tdesc initialization functions.
2061 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
2062 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
2063 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
2064 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
2065 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
2066 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
2067 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
2068 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
2069 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
2070 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
2071 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
2072 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
2073 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
2074 (S390_NUM_REGS): Adjust value.
2075 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
2076 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
2077 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
2078 * NEWS: Announce S/390 vector register support.
2079
446899e4
AA
20802015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
2081
2082 * features/s390-tevx-linux64.xml: New file.
2083 * features/s390-vx-linux64.xml: New file.
2084 * features/s390-vx.xml: New file.
2085 * features/s390x-tevx-linux64.xml: New file.
2086 * features/s390x-vx-linux64.xml: New file.
2087 * features/Makefile (WHICH): Add s390-vx-linux64,
2088 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
2089 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
2090 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
2091 macros.
2092 * features/s390-tevx-linux64.c: New generated file.
2093 * features/s390-vx-linux64.c: Likewise.
2094 * features/s390x-tevx-linux64.c: Likewise.
2095 * features/s390x-vx-linux64.c: Likewise.
2096 * regformats/s390-tevx-linux64.dat: Likewise.
2097 * regformats/s390-vx-linux64.dat: Likewise.
2098 * regformats/s390x-tevx-linux64.dat: Likewise.
2099 * regformats/s390x-vx-linux64.dat: Likewise.
2100
b7236fbe
DE
21012015-02-28 Doug Evans <xdje42@gmail.com>
2102
2103 * symtab.h (struct symtab) <next>: Fix comment.
2104
02e62830
SM
21052015-02-27 Simon Marchi <simon.marchi@ericsson.com>
2106
2107 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
2108 python_GdbMethods.
2109
bf36a1e7
PA
21102015-02-27 Pedro Alves <palves@redhat.com>
2111
2112 * dtrace-probe.c (dtrace_probe_ops): Make extern.
2113
ad6aff7d
PA
21142015-02-27 Pedro Alves <palves@redhat.com>
2115
2116 * common/common-exceptions.h (exception_none): Declare.
2117 * common/common-exceptions.c (exception_none): Moved from
2118 exceptions.c.
2119 (exceptions_state_mc_init): Use exception_none.
2120 * exceptions.c (exception_none): Move to
2121 common/common-exceptions.c.
2122 * exceptions.h (exception_none): Move to
2123 common/common-exceptions.h.
2124
97c18565
PA
21252015-02-27 Pedro Alves <palves@redhat.com>
2126
2127 * main.c (catch_command_errors, catch_command_errors_const):
2128 Remove 'mask' argument. Adjust.
2129 (captured_main): Adjust callers.
2130
e992c591
PA
21312015-02-27 Pedro Alves <palves@redhat.com>
2132
2133 * python/python-internal.h: Include "extension-priv.h".
2134
64166036
PA
21352015-02-27 Pedro Alves <palves@redhat.com>
2136
2137 * breakpoint.h (enum print_stop_action): Move further up in the
2138 file.
2139
8a526fa6
PA
21402015-02-27 Pedro Alves <palves@redhat.com>
2141
2142 * gdbarch.sh: Include regcache.h.
2143 * gdbarch.h: Regenerate.
2144
0fa9c223
PA
21452015-02-27 Pedro Alves <palves@redhat.com>
2146
2147 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
2148 Remove duplicate const.
2149 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
2150 duplicate const.
2151
7cf99fb1
PA
21522015-02-27 Pedro Alves <palves@redhat.com>
2153
2154 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
2155 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
2156 * features/feature_to_c.sh: Tag the generated xml_builtin array
2157 with extern const in C++ mode.
2158
1424c16e
TT
21592015-02-27 Tom Tromey <tromey@redhat.com>
2160
2161 * minidebug.c (struct lzma_stream): Rename to ...
2162 (struct gdb_lzma_stream): ... this.
2163 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
2164
10367c7c
PA
21652015-02-27 Pedro Alves <palves@redhat.com>
2166
2167 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
2168 function.
2169 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
2170 (mi_cmd_stack_list_variables): Use it.
2171
4180215b
PA
21722015-02-27 Pedro Alves <palves@redhat.com>
2173
2174 * x86-linux-nat.c (u_debugreg_offset): New function.
2175 (x86_linux_dr_get, x86_linux_dr_set): Use it.
2176
2f56f7c3
PA
21772015-02-27 Pedro Alves <palves@redhat.com>
2178
2179 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
2180 declaration.
2181 Include break-common.h.
2182
570dc176
TT
21832015-02-27 Tom Tromey <tromey@redhat.com>
2184 Pedro Alves <palves@redhat.com>
2185
2186 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
2187 local used to iterate over enums.
2188 * completer.c (signal_completer): Likewise.
2189 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
2190 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2191 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
2192 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
2193 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
2194 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
2195 * tui-wingeneral.c (tui_refresh_all): Likewise.
2196
68c14faa
PA
21972015-02-27 Pedro Alves <palves@redhat.com>
2198
2199 * target.h: Include "infrun.h".
2200
749bab01
PA
22012015-02-27 Pedro Alves <palves@redhat.com>
2202
2203 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
2204
3c14e5a3
PA
22052015-02-27 Pedro Alves <palves@redhat.com>
2206
2207 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
2208 (IPA_SYM): Use it.
2209 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
2210
56000a98
PA
22112015-02-27 Pedro Alves <palves@redhat.com>
2212
2213 * cli-out.c (_rl_erase_entire_line): Move declaration out of
2214 cli_mld_erase_entire_line, and make it extern "C".
2215 * common/common-defs.h (EXTERN_C): New.
2216 * completer.c (_rl_completion_prefix_display_length)
2217 (_rl_print_completions_horizontally, QSFUNC): Move declarations
2218 out of gdb_display_match_list_1.
2219 (_rl_qsort_string_compare): Move declaration out of
2220 gdb_display_match_list_1, and make it extern "C".
2221 * defs.h (re_comp): Use EXTERN_C.
2222 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
2223 and make it extern "C".
2224 (monstartup): Move declaration out of maintenance_set_profile_cmd,
2225 and make it extern "C".
2226 (main): Move declaration out of maintenance_set_profile_cmd.
2227 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
2228 EXTERN_C.
2229
bcabf420
PA
22302015-02-27 Pedro Alves <palves@redhat.com>
2231
2232 * python/python.c (GdbMethods): Rename to ...
2233 (python_GdbMethods): ... this and make extern.
2234 (GdbModuleDef): Rename to ...
2235 (python_GdbModuleDef): ... this and make extern.
2236
928dbe07
PA
22372015-02-27 Pedro Alves <palves@redhat.com>
2238
2239 * record-btrace.c (set_record_btrace_cmdlist)
2240 (show_record_btrace_cmdlist): Remove redefinitions.
2241
52059ffd
TT
22422015-02-27 Tom Tromey <tromey@redhat.com>
2243 Pedro Alves <palves@redhat.com>
2244
2245 * dwarf2-frame.c (enum cfa_how_kind, struct
2246 dwarf2_frame_state_reg_info): Move out of struct
2247 dwarf2_frame_state.
2248 * dwarf2read.c (struct tu_stats): Move out of struct
2249 dwarf2_per_objfile.
2250 (struct file_entry): Move out of struct line_header.
2251 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
2252 typedef_field_list): Move out of struct field_info.
2253 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
2254 Move out of struct dynamic_prop.
2255 (union type_owner, union field_location, struct field, struct
2256 range_bounds, union type_specific): Move out of struct main_type.
2257 (struct fn_fieldlist, struct fn_field, struct typedef_field)
2258 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
2259 (struct call_site_target, union call_site_parameter_u, struct
2260 call_site_parameter): Move out of struct call_site.
2261 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
2262 m32c_prologue.
2263 (enum srcdest_kind): Move out of struct srcdest.
2264 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
2265 * prologue-value.h (enum prologue_value_kind): Move out of struct
2266 prologue_value.
2267 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
2268 gdbarch_tdep.
2269 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
2270 out of struct field_info.
2271 * symfile.h (struct other_sections): Move out of struct
2272 section_addr_info.
2273 * symtab.c (struct symbol_cache_slot): Move out struct
2274 block_symbol_cache.
2275 * target-descriptions.c (enum tdesc_type_kind): Move out of
2276 typedef struct tdesc_type.
2277 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
2278 struct tui_line_or_address.
2279 * value.c (enum internalvar_kind, union internalvar_data): Move
2280 out of struct internalvar.
2281 * xtensa-tdep.h (struct ctype_cache): Move out of struct
2282 gdbarch_tdep.
2283
fe978cb0
PA
22842015-02-27 Tom Tromey <tromey@redhat.com>
2285 Pedro Alves <palves@redhat.com>
2286
2287 Rename symbols whose names are reserved C++ keywords throughout.
2288
3bc3d82a
PA
22892015-02-27 Pedro Alves <palves@redhat.com>
2290
2291 * Makefile.in (COMPILER): New, get it from autoconf.
2292 (COMPILE.pre, CC_LD): Use COMPILER.
2293 (CXX): Get from autoconf instead.
2294 (CXX_FOR_TARGET): Default to g++ instead of gcc.
2295 * acinclude.m4: Include build-with-cxx.m4.
2296 * build-with-cxx.m4: New file.
2297 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
2298 Disable -Werror by default if building in C++ mode.
2299 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
2300 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
2301 Run supported-warning-flags tests with the C++ compiler.
2302 Save/restore CXXFLAGS too.
2303 * configure: Regenerate.
2304
07697489
PA
23052015-02-27 Pedro Alves <palves@redhat.com>
2306
2307 * libiberty.m4: New file.
2308 * acinclude.m4: Include libiberty.m4.
2309 * configure.ac: Call libiberty_INIT.
2310 * config.in, configure: Regenerate.
2311
60abeae4
AA
23122015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2313
2314 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
2315 31-bit targets, but 64-bit targets as well.
2316 (s390_gnu_triplet_regexp): New function.
2317 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
2318 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
2319 method.
2320
f44466fb 23212015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
2322
2323 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
2324 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
2325 from CONTEXT_DEBUGGER.
2326
0def5aaa
DE
23272015-02-26 Doug Evans <dje@google.com>
2328
2329 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
2330 CHECK_TYPEDEF.
2331 (set_type_vptr_fieldno): Ditto.
2332 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
2333 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
2334
77b64a49
PA
23352015-02-26 Pedro Alves <palves@redhat.com>
2336
2337 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
2338 * complaints.c (vcomplaint): Pass argument FMT directly to
2339 printf-like functions instead of complaint->fmt.
2340 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
2341 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
2342 * compile/compile-loc2c.c (pushf, unary, binary): Add
2343 ATTRIBUTE_PRINTF.
2344 (do_compile_dwarf_expr_to_c): Pass string literal as format string
2345 to pushf.
2346 (BINARY): Pass string literal as format string to 'binary'.
2347 * compile/compile-object-load.c (link_callbacks_einfo): Add
2348 ATTRIBUTE_PRINTF.
2349 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
2350
532f44ed
PA
23512015-02-26 Pedro Alves <palves@redhat.com>
2352
2353 * windows-termcap.c: Rename to ...
2354 * stub-termcap.c: ... this. Adjust header line.
2355 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
2356 windows-termcap.c.
2357 * configure: Regenerate.
2358 * configure.ac: Refer to stub-termcap.o instead of
2359 windows-termcap.o.
2360 * gdb_curses.h: Mention stub-termcap.c instead of
2361 windows-termcap.c.
2362
081a1c2c
JK
23632015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2364
2365 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
2366 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
2367
2f41223f
AT
23682015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
2369
2370 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
2371
80c57053
JK
23722015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2373
2374 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
2375 bfd_canonicalize_symtab.
2376
cf424aef
JB
23772015-02-25 John Baldwin <jhb@FreeBSD.org>
2378
2379 * amd64fbsd-nat.c: Include sys/user.h.
2380 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2381 instead of KERN_PS_STRINGS to locate the signal trampoline.
2382 * i386fbsd-nat.c: Include sys/user.h.
2383 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2384 instead of KERN_PS_STRINGS to locate the signal trampoline.
2385 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
2386 (amd64fbsd_sigtramp_p): New.
2387 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
2388 longer set default values.
2389 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
2390 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
2391 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
2392 (i386fbsd_freebsd4_sigtramp_start)
2393 (i386fbsd_freebsd4_sigtramp_middle)
2394 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
2395 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
2396 (i386fbsd_sigtramp_p): New.
2397 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
2398 longer set default values.
2399 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
2400
c5cb74ee
JB
24012015-02-25 John Baldwin <jhb@freebsd.org>
2402
2403 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
2404 get_frame_register instead of frame_unwind_register_unsigned.
2405
17487d85
JK
24062015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2407
2408 PR build/18033
2409 * compile/compile-c-support.c (c_compute_program): Change // comment.
2410 * compile/compile-object-load.c (setup_sections): Change // comment.
2411
9357a9e6
JB
24122015-02-26 Joel Brobecker <brobecker@adacore.com>
2413
2414 PR build/18033:
2415 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
2416
1f10ba14
PA
24172015-02-23 Pedro Alves <palves@redhat.com>
2418
2419 * remote.c (skip_to_semicolon): New function.
2420 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
2421 special case the stop reasons that look like hex numbers
2422 upfront. Instead handle real register numbers after matching
2423 all the known stop reasons.
2424
96553a0c
DE
24252015-02-21 Doug Evans <dje@google.com>
2426
2427 PR c++/17976, symtab/17821
2428 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
2429 is_in_anonymous. All callers updated.
2430 (find_symbol_in_baseclass): Ditto.
2431 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
2432 for symbols in an anonymous namespace.
2433 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
2434 DW_AT_name directly.
2435 (dwarf2_name): Convert missing namespace name to
2436 CP_ANONYMOUS_NAMESPACE_STR.
2437
2db9a427
PA
24382015-02-20 Pedro Alves <palves@redhat.com>
2439
2440 * linux-nat.c (linux_handle_extended_wait): Call
2441 thread_db_notice_clone whenever a new clone LWP is detected.
2442 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
2443 functions.
2444 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
2445 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
2446 (linux_unstop_all_lwps): Declare.
2447 * linux-thread-db.c (struct thread_get_info_inout): Delete.
2448 (thread_get_info_callback): Delete.
2449 (thread_from_lwp): Use td_thr_get_info and record_thread.
2450 (thread_db_attach_lwp): Delete.
2451 (thread_db_notice_clone): New function.
2452 (try_thread_db_load_1): If /proc is mounted and shows the
2453 process'es task list, walk over all LWPs and call thread_from_lwp
2454 instead of relying on td_ta_thr_iter.
2455 (attach_thread): Don't call check_thread_signals here. Split the
2456 tail part of the function (which adds the thread to the core GDB
2457 thread list) to ...
2458 (record_thread): ... this function. Call check_thread_signals
2459 here.
2460 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
2461 call thread_from_lwp.
2462 (thread_db_update_thread_list): Rename to ...
2463 (thread_db_update_thread_list_org): ... this.
2464 (thread_db_update_thread_list): New function.
2465 (thread_db_find_thread_from_tid): Delete.
2466 (thread_db_get_ada_task_ptid): Simplify.
2467 * nat/linux-procfs.c: Include <sys/stat.h>.
2468 (linux_proc_task_list_dir_exists): New function.
2469 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
2470
3b27ef47
PA
24712015-02-20 Pedro Alves <palves@redhat.com>
2472
2473 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
2474 main LWP. Handle the case of waitpid returning 0 if we're already
2475 attached to the LWP. Don't set the LWP's last_resume_kind to
2476 resume_stop if we already knew about the LWP.
2477 (linux_nat_filter_event): Add debug logs.
2478
1cc28231
PA
24792015-02-20 Pedro Alves <palves@redhat.com>
2480
2481 * target.h (forward_target_decr_pc_after_break): Delete
2482 declaration.
2483
5c5019c2
PA
24842015-02-20 Pedro Alves <palves@redhat.com>
2485
2486 PR threads/18006
2487 * linux-thread-db.c (thread_get_info_callback): Return early if
2488 the thread's lwp id is -1.
2489
f3978e91
JB
24902015-02-20 Joel Brobecker <brobecker@adacore.com>
2491
2492 GDB 7.9 released.
2493
ffdf88ec
SE
24942015-02-19 Steve Ellcey <sellcey@imgtec.com>
2495
2496 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
2497 (dtrace_get_probes) Change type of variable 'dof'.
2498
c9587f88
AT
24992015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
2500
2501 PR breakpoints/16812
2502 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
2503 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
2504 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
2505
53cf2ee0
DT
25062015-02-19 David Taylor <dtaylor@emc.com>
2507
2508 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
2509
acfe0940
PP
25102015-02-18 Patrick Palka <patrick@parcs.ath.cx>
2511
2512 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
2513 function.
2514 (tui_putc): Don't call tui_handle_resize_during_io.
2515 (tui_getc): Likewise.
2516 (tui_mld_getc): Likewise.
2517 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
2518 (tui_sigwinch_token): New static variable.
2519 (tui_initialize_win): Adjust documentation. Set
2520 tui_sigwinch_token.
2521 (tui_async_resize_screen): New asynchronous callback.
2522 (tui_sigwinch_handler): Adjust documentation. Asynchronously
2523 invoke tui_async_resize_screen.
2524
f6a88844
JM
25252015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
2526
2527 * configure: Regenerated.
2528 * configure.ac: Use GDB_AC_TRANSFORM.
2529 * Makefile.in (aclocal_m4_deps): Added transform.m4.
2530 * acinclude.m4: sinclude transform.m4.
2531 * transform.m4: New file.
2532 (GDB_AC_TRANSFORM): New macro.
2533
b05e3b0d
JM
25342015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2535
2536 * NEWS: Announce the support for DTrace SDT probes.
2537
c3e3045e
JM
25382015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2539
2540 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
2541 (amd64_dtrace_parse_probe_argument): New function.
2542 (amd64_dtrace_probe_is_enabled): Likewise.
2543 (amd64_dtrace_enable_probe): Likewise.
2544 (amd64_dtrace_disable_probe): Likewise.
2545 (amd64_linux_init_abi): Register the
2546 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
2547 `gdbarch_dtrace_disable_probe' and
2548 `gdbarch_dtrace_probe_is_enabled' hooks.
2549 (amd64_dtrace_disabled_probe_sequence_1): New constant.
2550 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
2551 (amd64_dtrace_enable_probe_sequence): Likewise.
2552 (amd64_dtrace_disable_probe_sequence): Likewise.
2553
d4777acb
JM
25542015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2555
2556 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
2557 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
2558 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
2559 handle ELF files.
2560 * Makefile.in (SFILES): dtrace-probe.c added.
2561 * configure: Regenerate.
2562 * dtrace-probe.c: New file.
2563 (SHT_SUNW_dof): New constant.
2564 (dtrace_probe_type): New enum.
2565 (dtrace_probe_arg): New struct.
2566 (dtrace_probe_arg_s): New typedef.
2567 (struct dtrace_probe_enabler): New struct.
2568 (dtrace_probe_enabler_s): New typedef.
2569 (dtrace_probe): New struct.
2570 (dtrace_probe_is_linespec): New function.
2571 (dtrace_dof_sect_type): New enum.
2572 (dtrace_dof_dofh_ident): Likewise.
2573 (dtrace_dof_encoding): Likewise.
2574 (DTRACE_DOF_ENCODE_LSB): Likewise.
2575 (DTRACE_DOF_ENCODE_MSB): Likewise.
2576 (dtrace_dof_hdr): New struct.
2577 (dtrace_dof_sect): Likewise.
2578 (dtrace_dof_provider): Likewise.
2579 (dtrace_dof_probe): Likewise.
2580 (DOF_UINT): New macro.
2581 (DTRACE_DOF_PTR): Likewise.
2582 (DTRACE_DOF_SECT): Likewise.
2583 (dtrace_process_dof_probe): New function.
2584 (dtrace_process_dof): Likewise.
2585 (dtrace_build_arg_exprs): Likewise.
2586 (dtrace_get_arg): Likewise.
2587 (dtrace_get_probes): Likewise.
2588 (dtrace_get_probe_argument_count): Likewise.
2589 (dtrace_can_evaluate_probe_arguments): Likewise.
2590 (dtrace_evaluate_probe_argument): Likewise.
2591 (dtrace_compile_to_ax): Likewise.
2592 (dtrace_probe_destroy): Likewise.
2593 (dtrace_gen_info_probes_table_header): Likewise.
2594 (dtrace_gen_info_probes_table_values): Likewise.
2595 (dtrace_probe_is_enabled): Likewise.
2596 (dtrace_probe_ops): New variable.
2597 (info_probes_dtrace_command): New function.
2598 (_initialize_dtrace_probe): Likewise.
2599 (dtrace_type_name): Likewise.
2600
8b367e17
JM
26012015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2602
2603 * gdbarch.sh (dtrace_parse_probe_argument): New.
2604 (dtrace_probe_is_enabled): Likewise.
2605 (dtrace_enable_probe): Likewise.
2606 (dtrace_disable_probe): Likewise.
2607 * gdbarch.c: Regenerate.
2608 * gdbarch.h: Regenerate.
2609
9aca2ff8
JM
26102015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2611
2612 * stap-probe.c (stap_probe_ops): Add NULLs in the static
2613 stap_probe_ops for `enable_probe' and `disable_probe'.
2614 * probe.c (enable_probes_command): New function.
2615 (disable_probes_command): Likewise.
2616 (_initialize_probe): Define the cli commands `enable probe' and
2617 `disable probe'.
2618 (parse_probe_linespec): New function.
2619 (info_probes_for_ops): Use parse_probe_linespec.
2620 * probe.h (probe_ops): New hooks `enable_probe' and
2621 `disable_probe'.
2622
03e98035
JM
26232015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2624
2625 * probe.c (compute_probe_arg): Moved from stap-probe.c
2626 (compile_probe_arg): Likewise.
2627 (probe_funcs): Likewise.
2628 * stap-probe.c (compute_probe_arg): Moved to probe.c.
2629 (compile_probe_arg): Likewise.
2630 (probe_funcs): Likewise.
2631
6f9b8491
JM
26322015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2633
2634 * probe.c (print_ui_out_not_applicables): New function.
2635 (exists_probe_with_pops): Likewise.
2636 (info_probes_for_ops): Do not include column headers for probe
2637 types for which no probe has been actually found on any object.
2638 Also invoke `print_ui_out_not_applicables' in order to match the
2639 column rows with the header when probes of several types are
2640 listed.
2641 Print the "Type" column.
2642 * probe.h (probe_ops): Added a new probe operation `type_name'.
2643 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
2644 (stap_type_name): New function.
2645
69efdff1
PP
26462015-02-17 Patrick Palka <patrick@parcs.ath.cx>
2647
2648 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
2649 (key_is_command_char): Delete.
2650
f8e5e23e
PA
26512015-02-17 Pedro Alves <palves@redhat.com>
2652
2653 * tui/tui.c (tui_enable): Resize windows before anything
2654 might show a window.
2655
9f2e0721
MO
26562015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
2657
2658 PR gdb/17984
2659 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
2660 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
2661 call.
2662 * aarch64-tdep.h (tdesc_aarch64): Declare.
2663
171e6b1c
MW
26642015-02-12 Mark Wielaard <mjw@redhat.com>
2665
2666 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
2667
d5ff0482
DE
26682015-02-13 Doug Evans <dje@google.com>
2669
2670 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
2671 anonymous_namespace to is_in_anonymous for consistency with the rest
2672 of the file.
2673 (cp_lookup_bare_symbol): Fix typo in comment.
2674 (cp_search_static_and_baseclasses): Ditto.
2675 (search_symbol_list): Use vertical space in comment better.
2676 (reset_directive_searched): Ditto. Fix typo.
2677 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
2678
9f04ac5f
YQ
26792015-02-13 Yao Qi <yao.qi@arm.com>
2680
2681 * MAINTAINERS: Update my email address.
2682
013d0319
DE
26832015-02-12 Doug Evans <dje@google.com>
2684
b615dd20 2685 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 2686
9a7e538e
DE
26872015-02-12 Doug Evans <dje@google.com>
2688
2689 * completer.c (complete_line): Remove incorrect comment.
2690
e1fcd575
JK
26912015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2692
2693 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
2694 (py_print_frame): Use RETURN_MASK_ERROR.
2695
b99bf4e3
JK
26962015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2697
2698 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
2699 function comment. Wrap all function that can throw in cleanups.
2700 (gdbpy_apply_frame_filter): Wrap all function that can throw in
2701 cleanups.
2702
800eb1ce
JK
27032015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2704
2705 * python/py-framefilter.c (py_print_frame): Substitute goto error.
2706 Remove the error label.
2707
34019068
JK
27082015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2709
2710 * python/py-framefilter.c (py_print_frame): Put conditional code paths
2711 with goto first, indent the former else codepath left. Put variable
2712 'elided' to a new inner block.
2713
8d4a54e2
JK
27142015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2715
2716 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
2717
18ad82c1
PA
27182015-02-11 Pedro Alves <palves@redhat.com>
2719
2720 * xcoffread.c (within_function): Delete.
2721
e36122e9
TT
27222015-02-11 Tom Tromey <tromey@redhat.com>
2723 Pedro Alves <palves@redhat.com>
2724
2725 * breakpoint.c (base_breakpoint_ops): Delete.
2726 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
2727 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
2728 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
2729 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
2730 * python/py-arch.c (arch_object_type): Make extern.
2731 * python/py-block.c (block_syms_iterator_object_type): Make extern.
2732 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
2733 * python/py-cmd.c (cmdpy_object_type): Make extern.
2734 * python/py-continueevent.c (continue_event_object_type)
2735 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
2736 parameter. Update all callers.
2737 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
2738 * python/py-exitedevent.c (exited_event_object_type): Make extern.
2739 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
2740 * python/py-function.c (fnpy_object_type): Make extern.
2741 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
2742 * python/py-infevents.c (call_pre_event_object_type)
2743 (inferior_call_post_event_object_type).
2744 (memory_changed_event_object_type): Make extern.
2745 * python/py-infthread.c (thread_object_type): Make extern.
2746 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
2747 * python/py-linetable.c (linetable_entry_object_type)
2748 (linetable_object_type, ltpy_iterator_object_type): Make extern.
2749 * python/py-newobjfileevent.c (new_objfile_event_object_type)
2750 (clear_objfiles_event_object_type): Make extern.
2751 * python/py-objfile.c (objfile_object_type): Make extern.
2752 * python/py-param.c (parmpy_object_type): Make extern.
2753 * python/py-progspace.c (pspace_object_type): Make extern.
2754 * python/py-signalevent.c (signal_event_object_type): Make extern.
2755 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
2756 * python/py-type.c (type_object_type, field_object_type)
2757 (type_iterator_object_type): Make extern.
2758 * python/python.c (python_extension_script_ops)
2759 (python_extension_ops): Make extern.
2760 * stap-probe.c (stap_probe_ops): Make extern.
2761
0703599a
PA
27622015-02-11 Pedro Alves <pedro@codesourcery.com>
2763
2764 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
2765 because the event thread is not the current thread.
2766
eaaf76ab
DE
27672015-02-11 Doug Evans <xdje42@gmail.com>
2768
2769 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
2770 been initialized yet, return NULL.
2771
e7d52ed3
DE
27722015-02-11 Doug Evans <dje@google.com>
2773
2774 * symfile.h (new_symfile_objfile): Delete.
2775 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
2776 All callers updated.
2777
fc6b1256
PP
27782015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2779
2780 * tui/tui-io.c (tui_handle_resize_during_io): Call
2781 tui_update_gdb_sizes() after resizing the screen.
2782 * tui/tui.c (tui_enable): Resize the terminal before
2783 calling tui_update_gdb_sizes().
2784
d9080678
PP
27852015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2786
2787 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
2788 line before printing a newline.
2789
9f615e3a
MW
27902015-02-11 Mark Wielaard <mjw@redhat.com>
2791
2792 * utils.c (producer_is_gcc): Return true or false.
2793
d9080678 27942015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
2795
2796 * utils.h (producer_is_gcc): Change return type to bool. Add major
2797 argument.
2798 * utils.c (producer_is_gcc): Likewise.
2799 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
2800 * dwarf2read.c (check_producer): Likewise.
2801
b052c4fb
PA
28022015-02-10 Pedro Alves <palves@redhat.com>
2803
2804 * infrun.c (displaced_step_fixup): Switch to the event thread
2805 before calling gdbarch_displaced_step_fixup.
2806
3ac240d4
AT
28072015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
2808
2809 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
2810
c1cc6152
SM
28112015-02-10 Simon Marchi <simon.marchi@ericsson.com>
2812
2813 * ada-varobj.c (ada_name_of_child): Constify parent.
2814 (ada_path_expr_of_child): Same.
2815 (ada_value_of_child): Same.
2816 (ada_type_of_child): Same.
2817 * c-varobj.c (c_is_path_expr_parent): Same.
2818 (c_describe_child): Same.
2819 (c_name_of_child): Same.
2820 (c_value_of_child): Same.
2821 (c_type_of_child): Same.
2822 (cplus_number_of_children): Same.
2823 (cplus_describe_child): Constify var.
2824 (cplus_name_of_child): Constify parent.
2825 (cplus_value_of_child): Same.
2826 (cplus_type_of_child): Same.
2827 * jv-varobj.c (java_name_of_child): Same.
2828 (java_value_of_child): Same.
2829 (java_type_of_child): Same.
2830 * varobj.c (value_of_child): Same.
2831 (varobj_default_is_path_expr_parent): Constify var, parent and return
2832 value.
2833 (varobj_get_path_expr): Constify var, modify path_expr through
2834 mutable_var.
2835 (install_new_value): Constify parent.
2836 (value_of_child): Constify parent.
2837 * varobj.h (struct varobj): Constify parent.
2838 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
2839 type_of_child.
2840 (varobj_get_path_expr): Constify var.
2841 (varobj_get_path_expr_parent): Constify var and return value.
2842
c1ee9414
LM
28432015-02-10 Luis Machado <lgustavo@codesourcery.com>
2844
2845 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
2846 (arm_prologue_this_id): Move PC and SP limit checks to
2847 arm_prologue_unwind_stop_reason.
2848 (arm_prologue_unwind) <stop_reason> : Set to
2849 arm_prologue_unwind_stop_reason.
2850
f7de9aab
MW
28512015-02-09 Mark Wielaard <mjw@redhat.com>
2852
2853 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
2854 DW_LANG_Fortran08 as language_fortran.
2855
0b24eb2d
SDJ
28562015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
2857
2858 PR remote/17946
2859 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
2860 of pointer against char.
2861
a2c2acaf
MW
28622015-02-09 Mark Wielaard <mjw@redhat.com>
2863
2864 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
2865 (c_type_print_modifier): Likewise.
2866 * dwarf2read.c (read_tag_atomic_type): New function.
2867 (read_type_die_1): Handle DW_TAG_atomic_type.
2868 * gdbtypes.c (make_atomic_type): New function.
2869 (recursive_dump_type): Handle TYPE_ATOMIC.
2870 * gdbtypes.h (enum type_flag_values): Renumber.
2871 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
2872 (TYPE_ATOMIC): New macro.
2873 (make_atomic_type): Declare.
2874
31fd9caa
MM
28752015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2876
2877 * btrace.c (ftrace_find_call): Skip gaps.
2878 (ftrace_new_function): Initialize level.
2879 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
2880 (ftrace_new_switch): Update
2881 level computation.
2882 (ftrace_new_gap): New.
2883 (ftrace_update_function): Create new function after gap.
2884 (btrace_compute_ftrace_bts): Create gap on error.
2885 (btrace_stitch_bts): Update parameters. Clear trace if it
2886 becomes empty.
2887 (btrace_stitch_trace): Update parameters. Update callers.
2888 (btrace_clear): Reset the number of gaps.
2889 (btrace_insn_get): Return NULL if the iterator points to a gap.
2890 (btrace_insn_number): Return zero if the iterator points to a gap.
2891 (btrace_insn_end): Allow gaps at the end.
2892 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
2893 (btrace_find_insn_by_number): Assert that the found iterator does
2894 not point to a gap.
2895 (btrace_call_next, btrace_call_prev): Assert that the last function
2896 is not a gap.
2897 * btrace.h (btrace_bts_error): New.
2898 (btrace_function): Update comment.
2899 (btrace_function) <insn, insn_offset, number>: Update comment.
2900 (btrace_function) <errcode>: New.
2901 (btrace_thread_info) <ngaps>: New.
2902 (btrace_thread_info) <replay>: Update comment.
2903 (btrace_insn_get): Update comment.
2904 * record-btrace.c (btrace_ui_out_decode_error): New.
2905 (record_btrace_info): Print number of gaps.
2906 (btrace_insn_history, btrace_call_history): Call
2907 btrace_ui_out_decode_error for gaps.
2908 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
2909
afb778a2
MM
29102015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2911
2912 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
2913 * nat/linux-btrace.c: (btrace_this_cpu): New.
2914 (cpu_supports_bts): Call btrace_this_cpu.
2915 (intel_supports_bts): Add cpu parameter.
2916
7d5c24b3
MM
29172015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2918
2919 * btrace.h (btrace_insn_class): New.
2920 (btrace_insn) <size, iclass>: New.
2921 * btrace.c (ftrace_find_call): Update parameters. Update users.
2922 Use instruction classification.
2923 (ftrace_new_return): Update parameters. Update users.
2924 (ftrace_update_function): Update parameters. Update users. Use
2925 instruction classification.
2926 (ftrace_update_insns): Update parameters. Update users.
2927 (ftrace_classify_insn): New.
2928 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
2929 TRY_CATCH around call to gdb_insn_length.
2930
76235df1
MM
29312015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2932
2933 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
2934 Update parameters. Update users.
2935
d33501a5
MM
29362015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2937
2938 * btrace.c (parse_xml_btrace_conf_bts): Add size.
2939 (btrace_conf_bts_attributes): New.
2940 (btrace_conf_children): Add attributes.
2941 * common/btrace-common.h (btrace_config_bts): New.
2942 (btrace_config)<bts>: New.
2943 (btrace_config): Update comment.
2944 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
2945 Use config.
2946 * features/btrace-conf.dtd: Increment version. Add size
2947 attribute to bts element.
2948 * record-btrace.c (set_record_btrace_bts_cmdlist,
2949 show_record_btrace_bts_cmdlist): New.
2950 (record_btrace_adjust_size, record_btrace_print_bts_conf,
2951 record_btrace_print_conf, cmd_set_record_btrace_bts,
2952 cmd_show_record_btrace_bts): New.
2953 (record_btrace_info): Call record_btrace_print_conf.
2954 (_initialize_record_btrace): Add commands.
2955 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
2956 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
2957 (btrace_sync_conf): Synchronize bts size.
2958 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
2959 * NEWS: Announce new commands and new packets.
2960
f4abbc16
MM
29612015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2962
2963 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
2964 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
2965 (x86_linux_btrace_conf): New.
2966 (x86_linux_create_target): Initialize to_btrace_conf.
2967 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
2968 Check format. Split into this and ...
2969 (linux_enable_bts): ... this.
2970 (linux_btrace_conf): New.
2971 (perf_event_skip_record): Renamed into ...
2972 (perf_event_skip_bts_record): ... this. Updated users.
2973 (linux_disable_btrace): Split into this and ...
2974 (linux_disable_bts): ... this.
2975 (linux_read_btrace): Check format.
2976 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
2977 (linux_btrace_conf): New.
2978 (btrace_target_info)<ptid>: Moved.
2979 (btrace_target_info)<conf>: New.
2980 (btrace_target_info): Split into this and ...
2981 (btrace_tinfo_bts): ... this. Updated users.
2982 * btrace.c (btrace_enable): Update parameters.
2983 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
2984 (btrace_conf_children, btrace_conf_attributes)
2985 (btrace_conf_elements): New.
2986 * btrace.h (btrace_enable): Update parameters.
2987 (btrace_conf, parse_xml_btrace_conf): New.
2988 * common/btrace-common.h (btrace_config): New.
2989 * feature/btrace-conf.dtd: New.
2990 * record-btrace.c (record_btrace_conf): New.
2991 (record_btrace_cmdlist): New.
2992 (record_btrace_enable_warn, record_btrace_open): Pass
2993 &record_btrace_conf.
2994 (record_btrace_info): Print recording format.
2995 (cmd_record_btrace_bts_start): New.
2996 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
2997 (_initialize_record_btrace): Add "record btrace bts" subcommand.
2998 Add "record bts" alias command.
2999 * remote.c (remote_state)<btrace_config>: New.
3000 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
3001 (remote_protocol_features): Add qXfer:btrace-conf:read.
3002 (remote_open_1): Call remote_btrace_reset.
3003 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
3004 (btrace_target_info)<conf>: New.
3005 (btrace_sync_conf, btrace_read_config): New.
3006 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
3007 btrace_read_conf.
3008 (remote_btrace_conf): New.
3009 (init_remote_ops): Initialize to_btrace_conf.
3010 (_initialize_remote): Add qXfer:btrace-conf packet.
3011 * target.c (target_enable_btrace): Update parameters.
3012 (target_btrace_conf): New.
3013 * target.h (target_enable_btrace): Update parameters.
3014 (target_btrace_conf): New.
3015 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
3016 (target_ops)<to_enable_btrace>: Update parameters and comment.
3017 (target_ops)<to_btrace_conf>: New.
3018 * target-delegates: Regenerate.
3019 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
3020 (target_debug_print_const_struct_btrace_target_info_p): New.
3021 * NEWS: Announce new command and new packet.
3022
aadf7753
MM
30232015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3024
3025 * nat/linux-btrace.h (perf_event_buffer): New.
3026 (btrace_target_info) <buffer, size, data_head>: Replace with ...
3027 <bts>: ... this.
3028 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
3029 (perf_event_buffer_size, perf_event_buffer_begin)
3030 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
3031 Updated users.
3032 (perf_event_new_data): New.
3033
043c3577
MM
30342015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3035
3036 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
3037 * record-btrace.c (record_btrace_open): Remove call to
3038 target_supports_btrace.
3039 * remote.c (remote_supports_btrace): Update parameters.
3040 * target.c (target_supports_btrace): Update parameters.
3041 * target.h (to_supports_btrace, target_supports_btrace): Update
3042 parameters.
3043 * target-delegates.c: Regenerate.
3044 * target-debug.h (target_debug_print_enum_btrace_format): New.
3045 * nat/linux-btrace.c
3046 (kernel_supports_btrace): Rename into ...
3047 (kernel_supports_bts): ... this. Update users. Update warning text.
3048 (intel_supports_btrace): Rename into ...
3049 (intel_supports_bts): ... this. Update users.
3050 (cpu_supports_btrace): Rename into ...
3051 (cpu_supports_bts): ... this. Update users.
3052 (linux_supports_btrace): Update parameters. Split into this and ...
3053 (linux_supports_bts): ... this.
3054 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
3055
734b0e4b
MM
30562015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3057
3058 * Makefile.in (SFILES): Add common/btrace-common.c.
3059 (COMMON_OBS): Add common/btrace-common.o.
3060 (btrace-common.o): Add build rules.
3061 * btrace.c (parse_xml_btrace): Update parameters.
3062 (parse_xml_btrace_block): Set format field.
3063 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
3064 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
3065 (btrace_compute_ftrace): Split into this and...
3066 (btrace_compute_ftrace_bts): ...this.
3067 (btrace_stitch_trace): Split into this and...
3068 (btrace_stitch_bts): ...this.
3069 * btrace.h (parse_xml_btrace): Update parameters.
3070 (make_cleanup_btrace_data): New.
3071 * common/btrace-common.c: New.
3072 * common/btrace-common.h: Include common-defs.h.
3073 (btrace_block_s): Update comment.
3074 (btrace_format): New.
3075 (btrace_format_string): New.
3076 (btrace_data_bts): New.
3077 (btrace_data): New.
3078 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
3079 * remote.c (remote_read_btrace): Update parameters.
3080 * target.c (target_read_btrace): Update parameters.
3081 * target.h (target_read_btrace): Update parameters.
3082 (target_ops)<to_read_btrace>: Update parameters.
3083 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
3084 * target-delegates.c: Regenerate.
3085 * target-debug (target_debug_print_struct_btrace_data_p): New.
3086 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
3087 (linux_read_bts): ...this.
3088 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
3089
bd2e0e9e
DE
30902015-02-06 Doug Evans <dje@google.com>
3091
3092 * remote-m32r-sdi.c: Include symfile.h.
3093
f176c4b5
DE
30942015-02-06 Doug Evans <dje@google.com>
3095
3096 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
3097 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
3098 to here.
3099
d6c146e9
PA
31002015-02-06 Pedro Alves <palves@redhat.com>
3101
3102 * linux-thread-db.c (find_new_threads_callback): Add debug output.
3103
b9d61307
SM
31042015-02-06 Simon Marchi <simon.marchi@ericsson.com>
3105
3106 PR gdb/15678
3107 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
3108 (enable_count_command): Check args for NULL value.
3109
e9fbd043
DE
31102015-02-05 Doug Evans <xdje42@gmail.com>
3111
3112 * guile/scm-frame.c: Fix spelling errors in a comment.
3113
881d5d5d
JK
31142015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3115
3116 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
3117 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
3118 return type.
3119
20ba1ce6
PA
31202015-02-04 Pedro Alves <palves@redhat.com>
3121
3122 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
3123 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
3124 returns true.
3125 (resume_stopped_resumed_lwps): Don't check whether the thread is
3126 marked as executing.
3127 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
3128
f962539a
AA
31292015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3130
3131 * regset.h (struct regset): Add flags field.
3132 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
3133 * corelow.c (get_core_register_section): Add warning if the size
3134 exceeds the requested size and the regset does not have the
3135 REGSET_VARIABLE_SIZE flag set.
3136 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
3137 flag.
3138 * armbsd-tdep.c (armbsd_gregset): Likewise.
3139 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3140 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
3141 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
3142 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
3143
dde9acd6
AA
31442015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3145
3146 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
3147 For ".reg-xstate", explicitly specify the requested section size
3148 via X86_XSTATE_SIZE instead of just 0 on input and
3149 X86_XSTATE_MAX_SIZE on output.
3150 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
3151 Likewise.
3152
1528345d
AA
31532015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3154
3155 PR corefiles/17808:
3156 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
3157 function type, particularly its SIZE parameter.
3158 * gdbarch.h: Regenerate.
3159 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
3160 actual against required size using ">=" instead of "==".
3161 (amd64_collect_fpregset): Likewise.
3162 * i386-tdep.c (i386_supply_gregset): Likewise.
3163 (i386_collect_gregset): Likewise.
3164 (i386_supply_fpregset): Likewise.
3165 (i386_collect_fpregset): Likewise.
3166 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
3167 (mips_fill_gregset_wrapper): Likewise.
3168 (mips_supply_fpregset_wrapper): Likewise.
3169 (mips_fill_fpregset_wrapper): Likewise.
3170 (mips64_supply_gregset_wrapper): Likewise.
3171 (mips64_fill_gregset_wrapper): Likewise.
3172 (mips64_supply_fpregset_wrapper): Likewise.
3173 (mips64_fill_fpregset_wrapper): Likewise.
3174 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
3175 (am33_supply_fpregset_method): Likewise.
3176 (am33_collect_gregset_method): Likewise.
3177 (am33_collect_fpregset_method): Likewise.
3178
518be979
DE
31792015-02-04 Doug Evans <dje@google.com>
3180 Pedro Alves <palves@redhat.com>
3181 Eli Zaretskii <eliz@gnu.org>
3182
3183 PR tui/17810
3184 * tui/tui-command.c (tui_refresh_cmd_win): New function.
3185 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
3186 * tui/tui-file.c: #include tui/tui-command.h.
3187 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
3188 (tui_file_flush): Refresh command window if stream is gdb_stdout.
3189 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
3190
80bd5fab
PA
31912015-02-04 Pedro Alves <palves@redhat.com>
3192
3193 Fix build breakage.
3194 * event-loop.c (gdb_do_one_event): Add default switch case.
3195
a7606d80
JK
31962015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3197
3198 Filter out inferior gcc option -fpreprocessed.
3199 * compile/compile.c (filter_args): New function.
3200 (get_args): Use it.
3201
70b66289
PA
32022015-02-03 Pedro Alves <palves@redhat.com>
3203
3204 * event-loop.c: Don't declare nor define a queue type for
3205 gdb_event_p.
3206 (event_queue): Delete.
3207 (create_event, create_file_event, gdb_event_xfree)
3208 (initialize_event_loop, process_event): Delete.
3209 (gdb_do_one_event): Return as soon as one event is handled.
3210 (handle_file_event): Change prototype. Used the passed in
3211 file_handler pointer and ready_mask instead of looping over all
3212 file handlers.
3213 (gdb_wait_for_event): Update the poll/select timeouts before
3214 blocking. Run event handlers directly instead of queueing events.
3215 Return as soon as one event is handled.
3216 (struct async_event_handler_data): Delete.
3217 (invoke_async_event_handler): Delete.
3218 (check_async_event_handlers): Change return type to int. Run
3219 event handlers directly instead of queueing events. Return as
3220 soon as one event is handled.
3221 (handle_timer_event): Delete.
3222 (update_wait_timeout): New function, factored out from
3223 poll_timers.
3224 (poll_timers): Reimplement.
3225 * event-loop.h (initialize_event_loop): Delete declaration.
3226 * top.c (gdb_init): Don't call initialize_event_loop.
3227
b7d2e916
PA
32282015-02-03 Pedro Alves <palves@redhat.com>
3229
3230 * event-loop.c (clear_async_event_handler): New function.
3231 * event-loop.h (clear_async_event_handler): New declaration.
3232 * record-btrace.c (record_btrace_async): New function.
3233 (init_record_btrace_ops): Install record_btrace_async.
3234 * record-full.c (record_full_async): New function.
3235 (record_full_resume): Don't mark the async event source here.
3236 (init_record_full_ops): Install record_full_async.
3237 (record_full_core_resume): Don't mark the async event source here.
3238 (init_record_full_core_ops): Install record_full_async.
3239 * remote.c (remote_async): Mark and clear the async stop reply
3240 queue event-loop token as appropriate.
3241
d9d41e78
PA
32422015-02-03 Pedro Alves <palves@redhat.com>
3243
3244 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
3245 target_is_async_p instead of target_can_async.
3246 (linux_nat_wait): Use target_is_async_p instead of
3247 target_can_async. Don't enable async here.
3248 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
3249 target_is_async_p instead of target_can_async.
3250
aa3de267
SM
32512015-02-02 Simon Marchi <simon.marchi@ericsson.com>
3252
3253 * varobj.h (lang_varobj_ops): Mention which return values need
3254 to be freed.
3255
2c811c0f
JB
32562015-02-02 Joel Brobecker <brobecker@adacore.com>
3257
3258 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
3259
b1eedac9
JB
32602015-02-02 Joel Brobecker <brobecker@adacore.com>
3261
3262 PR gdb/17856:
3263 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
3264 results found in the cache.
3265
66c168ae
JB
32662015-02-02 Joel Brobecker <brobecker@adacore.com>
3267
3268 PR gdb/17854:
3269 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
3270 when allocating a new one.
3271
4bdc02b2
TT
32722015-02-01 Tom Tromey <tom@tromey.com>
3273
3274 * MAINTAINERS: Remove myself.
3275
ae6ae975
DE
32762015-01-31 Doug Evans <xdje42@gmail.com>
3277
3278 * dwarf2read.c (process_structure_scope): Update setting of
3279 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
3280 * gdbtypes.c (internal_type_vptr_fieldno): New function.
3281 (set_type_vptr_fieldno): New function.
3282 (internal_type_vptr_basetype): New function.
3283 (set_type_vptr_basetype): New function.
3284 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
3285 TYPE_VPTR_BASETYPE.
3286 (allocate_cplus_struct_type): Initialize vptr_fieldno.
3287 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
3288 (print_cplus_stuff): ... moved here.
3289 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
3290 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
3291 moved to ...
3292 (struct cplus_struct_type): ... here. All uses updated.
3293 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
3294 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
3295 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
3296 * stabsread.c (read_tilde_fields): Update setting of
3297 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
3298
09e2d7c7
DE
32992015-01-31 Doug Evans <xdje42@gmail.com>
3300
3301 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
3302 to self_p.
3303 (cp_print_class_member): Rename local domain to self_type.
3304 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
3305 domain_type to self_type.
3306 (set_die_type) <need_gnat_info>: Handle
3307 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
3308 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
3309 TYPE_SPECIFIC_SELF_TYPE.
3310 * gdbtypes.c (internal_type_self_type): New function.
3311 (set_type_self_type): New function.
3312 (smash_to_memberptr_type): Rename parameter domain to self_type.
3313 Update setting of TYPE_SELF_TYPE.
3314 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
3315 (smash_to_method_type): Rename parameter domain to self_type.
3316 Update setting of TYPE_SELF_TYPE.
3317 (check_stub_method): Call smash_to_method_type.
3318 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
3319 (copy_type_recursive): Ditto.
3320 * gdbtypes.h (enum type_specific_kind): New value
3321 TYPE_SPECIFIC_SELF_TYPE.
3322 (struct main_type) <type_specific>: New member self_type.
3323 (struct cplus_struct_type) <fn_field.type>: Update comment.
3324 (TYPE_SELF_TYPE): Rewrite.
3325 (internal_type_self_type, set_type_self_type): Declare.
3326 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
3327 self_type.
3328 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
3329 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
3330 TYPE_TARGET_TYPE.
3331 * stabsread.c (read_member_functions): Mark methods with
3332 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
3333 TYPE_SELF_TYPE.
3334
4bfb94b8
DE
33352015-01-31 Doug Evans <xdje42@gmail.com>
3336
3337 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
3338 All uses updated.
3339
5f4ce105
DE
33402015-01-31 Doug Evans <xdje42@gmail.com>
3341
3342 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
3343 or unions. Return zero if union.
3344 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
3345 (gnuv3_rtti_type): Pass already-check_typedef'd value to
3346 gnuv3_get_vtable.
3347 (compute_vtable_size): Assert only passed structs.
3348 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
3349
f6b3afbf
DE
33502015-01-31 Doug Evans <xdje42@gmail.com>
3351
3352 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
3353 kinds.
3354
cfb069a8
GB
33552015-01-31 Gary Benson <gbenson@redhat.com>
3356 Doug Evans <dje@google.com>
3357
3358 PR cli/9007
3359 PR cli/11920
3360 PR cli/15548
3361 * cli/cli-cmds.c (complete_command): Notify user if max-completions
3362 reached.
3363 * common/common-exceptions.h (enum errors)
3364 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
3365 * completer.h (get_max_completions_reached_message): New declaration.
3366 (max_completions): Likewise.
3367 (completion_tracker_t): New typedef.
3368 (new_completion_tracker): New declaration.
3369 (make_cleanup_free_completion_tracker): Likewise.
3370 (maybe_add_completion_enum): New enum.
3371 (maybe_add_completion): New declaration.
3372 (throw_max_completions_reached_error): Likewise.
3373 * completer.c (max_completions): New global variable.
3374 (new_completion_tracker): New function.
3375 (free_completion_tracker): Likewise.
3376 (make_cleanup_free_completion_tracker): Likewise.
3377 (maybe_add_completions): Likewise.
3378 (throw_max_completions_reached_error): Likewise.
3379 (complete_line): Remove duplicates and limit result to max_completions
3380 entries.
3381 (get_max_completions_reached_message): New function.
3382 (gdb_display_match_list): Handle max_completions.
3383 (_initialize_completer): New declaration and function.
3384 * symtab.c: Include completer.h.
3385 (completion_tracker): New static variable.
3386 (completion_list_add_name): Call maybe_add_completion.
3387 (default_make_symbol_completion_list_break_on_1): Renamed from
3388 default_make_symbol_completion_list_break_on. Maintain
3389 completion_tracker across calls to completion_list_add_name.
3390 (default_make_symbol_completion_list_break_on): New function.
3391 * top.c (init_main): Set rl_completion_display_matches_hook.
3392 * tui/tui-io.c: Include completer.h.
3393 (tui_old_rl_display_matches_hook): New static global.
3394 (tui_rl_display_match_list): Notify user if max-completions reached.
3395 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
3396 * NEWS (New Options): Mention set/show max-completions.
3397
e11c72c7
GB
33982015-01-31 Gary Benson <gbenson@redhat.com>
3399
3400 * symtab.c (struct add_name_data) <code>: New field.
3401 Updated comments.
3402 (add_symtab_completions): New function.
3403 (symtab_expansion_callback): Likewise.
3404 (default_make_symbol_completion_list_break_on): Set datum.code.
3405 Move minimal symbol scan before calling expand_symtabs_matching.
3406 Scan known primary symtabs for externs and statics before calling
3407 expand_symtabs_matching. Pass symtab_expansion_callback as
3408 expansion_notify argument to expand_symtabs_matching. Do not scan
3409 primary symtabs for externs and statics after calling
3410 expand_symtabs_matching.
3411
276d885b
GB
34122015-01-31 Gary Benson <gbenson@redhat.com>
3413
3414 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
3415 (struct quick_symbol_functions) <expand_symtabs_matching>:
3416 New argument expansion_notify. All uses updated.
3417 (expand_symtabs_matching): New argument expansion_notify.
3418 All uses updated.
3419 * symfile-debug.c (debug_qf_expand_symtabs_matching):
3420 Also print expansion notify.
3421 * symtab.c (expand_symtabs_matching_via_partial): Call
3422 expansion_notify whenever a partial symbol table is expanded.
3423 * dwarf2read.c (dw2_expand_symtabs_matching): Call
3424 expansion_notify whenever a symbol table is instantiated.
3425
82083d6d
DE
34262015-01-31 Doug Evans <xdje42@gmail.com>
3427
3428 * cli-out.c: #include completer.h, readline/readline.h.
3429 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
3430 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
3431 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
3432 * cli-out.h (cli_display_match_list): Declare.
3433 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
3434 (ELLIPSIS_LEN): Ditto.
3435 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
3436 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
3437 (gdb_fnprint, gdb_print_filename): Ditto.
3438 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
3439 (gdb_display_match_list): Ditto.
3440 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
3441 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
3442 (mld_beep_ftype, mld_read_key_ftype): Ditto.
3443 (match_list_displayer): New struct.
3444 (gdb_display_match_list): Declare.
3445 * top.c (init_main): Set rl_completion_display_matches_hook.
3446 * tui/tui-io.c: #include completer.h.
3447 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
3448 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
3449 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
3450 (tui_mld_getc, tui_mld_read_key): Ditto.
3451 (tui_rl_display_match_list): Rewrite.
3452 (tui_handle_resize_during_io): New arg for_completion. All callers
3453 updated.
3454
f57d2163
DE
34552015-01-31 Doug Evans <xdje42@gmail.com>
3456
3457 Add symbol lookup cache.
3458 * NEWS: Document new options and commands.
3459 * symtab.c (symbol_cache_key): New static global.
3460 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
3461 (SYMBOL_LOOKUP_FAILED): New macro.
3462 (symbol_cache_slot_state): New enum.
3463 (block_symbol_cache): New struct.
3464 (symbol_cache): New struct.
3465 (new_symbol_cache_size, symbol_cache_size): New static globals.
3466 (hash_symbol_entry, eq_symbol_entry): New functions.
3467 (symbol_cache_byte_size, resize_symbol_cache): New functions.
3468 (make_symbol_cache, free_symbol_cache): New functions.
3469 (get_symbol_cache, symbol_cache_cleanup): New function.
3470 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
3471 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
3472 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
3473 (symbol_cache_flush, symbol_cache_dump): New functions.
3474 (maintenance_print_symbol_cache): New function.
3475 (maintenance_flush_symbol_cache): New function.
3476 (symbol_cache_stats): New function.
3477 (maintenance_print_symbol_cache_statistics): New function.
3478 (symtab_new_objfile_observer): New function.
3479 (symtab_free_objfile_observer): New function.
3480 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
3481 (_initialize_symtab): Init symbol_cache_key. New parameter
3482 maint symbol-cache-size. New maint commands print symbol-cache,
3483 print symbol-cache-statistics, flush-symbol-cache.
3484 Install new_objfile, free_objfile observers.
3485
e700d1b2
JB
34862015-01-31 Joel Brobecker <brobecker@adacore.com>
3487
3488 PR symtab/17855
3489 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
3490 to end.
3491
9f050062
DE
34922015-01-31 Doug Evans <xdje42@gmail.com>
3493
3494 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
3495 * auto-load.c: #include ctype.h.
3496 (struct auto_load_pspace_info): Replace member loaded_scripts with
3497 new members loaded_script_files, loaded_script_texts.
3498 (auto_load_pspace_data_cleanup): Update.
3499 (init_loaded_scripts_info): Update.
3500 (get_auto_load_pspace_data_for_loading): Update.
3501 (maybe_add_script_file): Renamed from maybe_add_script. All callers
3502 updated.
3503 (maybe_add_script_text): New function.
3504 (clear_section_scripts): Update.
3505 (source_script_file, execute_script_contents): New functions.
3506 (source_section_scripts): Add support for
3507 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
3508 (print_scripts): New function.
3509 (auto_load_info_scripts): Also print inlined scripts.
3510 (maybe_print_unsupported_script_warning): Renamed from
3511 unsupported_script_warning_print. All callers updated.
3512 (maybe_print_script_not_found_warning): Renamed from
3513 script_not_found_warning_print. All callers updated.
3514 * extension-priv.h (struct extension_language_script_ops): New member
3515 objfile_script_executor.
3516 * extension.c (ext_lang_objfile_script_executor): New function.
3517 * extension.h (objfile_script_executor_func): New typedef.
3518 (ext_lang_objfile_script_executor): Declare.
3519 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
3520 * guile/guile.c (guile_extension_script_ops): Update.
3521 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
3522 * python/python.c (python_extension_script_ops): Update.
3523 (gdbpy_execute_objfile_script): New function.
3524
312809f8
EZ
35252015-01-31 Eli Zaretskii <eliz@gnu.org>
3526
3527 * tui/tui-io.c (tui_expand_tabs): New function.
3528 (tui_puts, tui_redisplay_readline): Expand TABs into the
3529 appropriate number of spaces.
3530 * tui/tui-regs.c: Include tui-io.h.
3531 (tui_register_format): Call tui_expand_tabs to expand TABs into
3532 the appropriate number of spaces.
3533 * tui/tui-io.h: Add prototype for tui_expand_tabs.
3534
b6577aab
DE
35352015-01-30 Doug Evans <dje@google.com>
3536
3537 * NEWS: "info source" command now display producer string if present.
3538 * source.c (source_info): Print producer string if present.
3539
6da58d3e
SM
35402015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3541
3542 * varobj.c (varobj_delete): Fix comment.
3543
837ce252
SM
35442015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3545
3546 * varobj.c (create_child): Modify comment.
3547
b09e2c59
SM
35482015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3549
3550 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
3551 parameter.
3552 (ada_name_of_variable): Same.
3553 (ada_path_expr_of_child): Same.
3554 (ada_value_of_variable): Same.
3555 (ada_value_is_changeable_p): Same.
3556 (ada_value_has_mutated): Same.
3557 * c-varobj.c (varobj_is_anonymous_child): Same.
3558 (c_is_path_expr_parent): Same.
3559 (c_number_of_children): Same.
3560 (c_name_of_variable): Same.
3561 (c_path_expr_of_child): Same.
3562 (get_type): Same.
3563 (c_value_of_variable): Same.
3564 (cplus_number_of_children): Same.
3565 (cplus_name_of_variable): Same.
3566 (cplus_path_expr_of_child): Same.
3567 (cplus_value_of_variable): Same.
3568 * jv-varobj.c (java_number_of_children): Same.
3569 (java_name_of_variable): Same.
3570 (java_path_expr_of_child): Same.
3571 (java_value_of_variable): Same.
3572 * varobj.c (number_of_children): Same.
3573 (name_of_variable): Same.
3574 (is_root_p): Same.
3575 (varobj_ensure_python_env): Same.
3576 (varobj_get_objname): Same.
3577 (varobj_get_expression): Same.
3578 (varobj_get_display_format): Same.
3579 (varobj_get_display_hint): Same.
3580 (varobj_has_more): Same.
3581 (varobj_get_thread_id): Same.
3582 (varobj_get_frozen): Same.
3583 (dynamic_varobj_has_child_method): Same.
3584 (varobj_get_gdb_type): Same.
3585 (is_path_expr_parent): Same.
3586 (varobj_default_is_path_expr_parent): Same.
3587 (varobj_get_language): Same.
3588 (varobj_get_attributes): Same.
3589 (varobj_is_dynamic_p): Same.
3590 (varobj_get_child_range): Same.
3591 (varobj_value_has_mutated): Same.
3592 (varobj_get_value_type): Same.
3593 (number_of_children): Same.
3594 (name_of_variable): Same.
3595 (check_scope): Same.
3596 (varobj_editable_p): Same.
3597 (varobj_value_is_changeable_p): Same.
3598 (varobj_floating_p): Same.
3599 (varobj_default_value_is_changeable_p): Same.
3600
2568868e
SM
36012015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3602
3603 * varobj.c (varobj_get_path_expr): Set var->path_expr.
3604 * c-varobj.c (c_path_expr_of_child): Set local var instead of
3605 child->path_expr.
3606 (cplus_path_expr_of_child): Same.
3607
ca83fa81
SM
36082015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3609
3610 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
3611 result.
3612 (mi_cmd_var_info_expression): Same.
3613 * varobj.c (varobj_get_expression): Mention in the comment that
3614 the result must by freed by the caller.
3615
afa269ae
SM
36162015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3617
3618 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
3619 varobj_get_type.
3620 (varobj_update_one): Same.
3621 * varobj.c (update_type_if_necessary): Free curr_type_str and
3622 new_type_str.
3623 (varobj_get_type): Specify in comment that the result needs to be
3624 freed by the caller.
3625
cd366ee8
DE
36262015-01-29 Doug Evans <dje@google.com>
3627
3628 PR symtab/17890
3629 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
3630
38360086
MW
36312015-01-25 Mark Wielaard <mjw@redhat.com>
3632
3633 * dwarf2read.c (checkproducer): Call producer_is_gcc.
3634 * utils.c (producer_is_gcc_ge_4): Likewise.
3635 (producer_is_gcc): New function.
3636 * utils.h (producer_is_gcc): New declaration.
3637
df25ebbd
JB
36382015-01-29 Joel Brobecker <brobecker@adacore.com>
3639
3640 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
3641 kind.
3642 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
3643 parameter by "addr_stack" parameter.
3644 (resolve_dynamic_range): Replace "addr" parameter by
3645 "stack_addr" parameter. Update function documentation.
3646 Update code accordingly.
3647 (resolve_dynamic_array, resolve_dynamic_union)
3648 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
3649 (resolve_dynamic_type): Update code, following the changes made
3650 to resolve_dynamic_type_internal's interface.
3651 * dwarf2loc.h (struct property_addr_info): New.
3652 (dwarf2_evaluate_property): Replace "address" parameter
3653 by "addr_stack" parameter. Adjust function documentation.
3654 (struct dwarf2_offset_baton): New.
3655 (struct dwarf2_property_baton): Update documentation of
3656 field "referenced_type" to be more general. New field
3657 "offset_info" in union data field.
3658 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
3659 parameter by "addr_stack" parameter. Adjust code accordingly.
3660 Add support for PROP_ADDR_OFFSET properties.
3661 * dwarf2read.c (attr_to_dynamic_prop): Add support for
3662 DW_AT_data_member_location attributes as well. Use case
3663 statements instead of if/else condition.
3664
4a0ca9ec
JB
36652015-01-29 Joel Brobecker <brobecker@adacore.com>
3666
3667 * ada-varobj.c (ada_varobj_get_array_number_of_children):
3668 Return zero if PARENT_VALUE is NULL and parent_type's
3669 range type is dynamic.
3670
ddb87a81
JB
36712015-01-29 Joel Brobecker <brobecker@adacore.com>
3672
3673 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
3674 nonzero if the type's subtype is dynamic.
3675 (resolve_dynamic_range): Also resolve the range's subtype.
3676
3d7ad9b4 36772015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 3678
3d7ad9b4 3679 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
3680 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
3681
3a8b707a
DE
36822015-01-27 Doug Evans <dje@google.com>
3683
3684 * NEWS: Mention gdb.Objfile.username.
3685 * python/py-objfile.c (objfpy_get_username): New function.
3686 (objfile_getset): Add "username".
3687
d35b90fb
MW
36882015-01-24 Mark Wielaard <mjw@redhat.com>
3689
3690 * stack.c (return_command): Markup warning message with _.
3691
734ae125
DE
36922015-01-24 Doug Evans <xdje42@gmail.com>
3693
3694 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
3695
527f3840
JK
36962015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3697
3698 Fix 100x slowdown regression on DWZ files.
3699 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
3700 (struct line_header): Add offset and offset_in_dwz.
3701 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
3702 (free_line_header_voidp): New declaration.
3703 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
3704 functions.
3705 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
3706 (handle_DW_AT_stmt_list): Use line_header_hash.
3707 (free_line_header_voidp): New function.
3708 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
3709 (dwarf_decode_lines): New parameter decode_mapping, use it.
3710 (dwarf2_free_objfile): Free line_header_hash.
3711
f7e5394d
SM
37122015-01-23 Simon Marchi <simon.marchi@ericsson.com>
3713
3714 PR gdb/17416
3715 * valops.c (value_rtti_indirect_type): Catch exception thrown by
3716 value_ind.
3717
743649fd
MW
37182015-01-15 Mark Wielaard <mjw@redhat.com>
3719
3720 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
3721 DW_AT_noreturn.
3722 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
3723 calling_convention an 8 bit bit field.
3724 (TYPE_NO_RETURN): New macro.
3725 * infcmd.c (finish_command): Query if function does not return
3726 normally.
3727 * stack.c (return_command): Likewise.
3728
198297aa
PA
37292015-01-23 Pedro Alves <palves@redhat.com>
3730
3731 * linux-nat.c (linux_is_async_p): New macro.
3732 (linux_nat_is_async_p):
3733 (linux_nat_terminal_inferior): Check whether the target can async
3734 instead of whether it is already async.
3735 (linux_nat_terminal_ours): Don't check whether the target is
3736 async.
3737 (linux_async_pipe): Use linux_is_async_p.
3738
253828f1
JK
37392015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3740
3741 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
3742 '-ascending'.
3743 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
3744 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
3745 Sort tp_array using tp_array_compar.
3746 (_initialize_thread): Extend thread_apply_all_command help.
3747
f0e8c4c5
JK
37482015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3749
3750 * corelow.c (core_open): Call also thread_command.
3751 * gdbthread.h (thread_command): New prototype moved from ...
3752 * thread.c (thread_command): ... here.
3753 (thread_command): Make it global.
3754
03b79603
PA
37552015-01-22 Pedro Alves <palves@redhat.com>
3756
3757 * configure.ac [*mingw32*]: Check $curses_found instead of
3758 $prefer_curses.
3759 * configure: Regenerate.
3760 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
3761 HAVE_NCURSES_NCURSES_H checks.
3762
6b8a872f
EZ
37632015-01-22 Eli Zaretskii <eliz@gnu.org>
3764
bbbbffbb 3765 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
3766 fails with the 1st arg NULL, try again with "unknown". Don't test
3767 the "cup" capability: it isn't supported by the Windows port of
3768 ncurses, but the Windows console driver is still capable of
3769 supporting TUI.
3770
4b62a76e
JK
37712015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3772
3773 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
3774
82a864f9
EZ
37752015-01-22 Eli Zaretskii <eliz@gnu.org>
3776
3777 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
3778 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
3779 reason that "make TAGS" is broken.
3780
b35018fd
CG
37812015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
3782
3783 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
3784 and check additional store instructions.
3785
ffbc4646
WW
37862015-01-21 Wei-cheng Wang <cole945@gmail.com>
3787
3788 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
3789
ddeca1df
WW
37902015-01-21 Wei-cheng Wang <cole945@gmail.com>
3791
3792 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
3793 ppc_canonicalize_syscall, ppc_linux_syscall_record,
3794 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
3795 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3796 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
3797 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
3798 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
3799 ppc_process_record_op19, ppc_process_record_op31,
3800 ppc_process_record_op59, ppc_process_record_op60,
3801 ppc_process_record_op63): Likewise.
3802
049bb5de
JB
38032015-01-20 Joel Brobecker <brobecker@adacore.com>
3804
3805 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
3806 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
3807 strerror.
3808
42b87c63 38092015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
3810
3811 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
3812 ppc_process_record_op31, ppc_process_record_op59,
3813 ppc_process_record_op60, ppc_process_record_op63,
3814 ppc_process_record): Fix -Wformat warning.
3815 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
3816 Remove unused variables.
3817
569340fc
CG
38182015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
3819
3820 * MAINTAINERS (Write After Approval): Add "Chen Gang".
3821
63413d85
EZ
38222015-01-19 Eli Zaretskii <eliz@gnu.org>
3823
3824 * configure.ac [*mingw32*]: Only add windows-termcap.o to
3825 CONFIG_OBS if not building with a curses library.
3826 * configure: Regenerate.
3827
3828 * windows-termcap.c: Include defs.h. Make the whole body empty if
3829 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
3830 HAVE_NCURSES_NCURSES_H is defined.
3831
16d8013c
JB
38322015-01-19 Joel Brobecker <brobecker@adacore.com>
3833
3834 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
3835 from end of line to start of next line.
3836
cf90fd9a
WW
38372015-01-17 Wei-cheng Wang <cole945@gmail.com>
3838
3839 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
3840 Scan PLT stub backward for reverse debugging.
3841 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3842
b4cdae6f
WW
38432015-01-17 Wei-cheng Wang <cole945@gmail.com>
3844 Ulrich Weigand <uweigand@de.ibm.com>
3845
3846 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
3847 gdb_target_obs.
3848 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
3849 record.
3850 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
3851 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
3852 (ppc_linux_init_abi): Set process_record, process_record_signal.
3853 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
3854 ppc_linux_record_tdep to gdbarch_tdep.
3855 (ppc_process_record): New declaration.
3856 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
3857 ppc_process_record_op19, ppc_process_record_op31,
3858 ppc_process_record_op59, ppc_process_record_op60,
3859 ppc_process_record_op63, ppc_process_record): New functions.
3860
2608dbf8
WW
38612015-01-17 Wei-cheng Wang <cole945@gmail.com>
3862
3863 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
3864 rs6000_in_function_epilogue_frame_p and add an argument
3865 for frame_info.
3866 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
3867 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
3868 New functions.
3869 (rs6000_epilogue_frame_unwind): New.
3870 (rs6000_gdbarch_init): Append epilogue unwinder.
3871
4c347be6
SDJ
38722015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3873
3874 * nat/linux-personality.c: Replace "#ifndef
3875 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
3876 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
3877 systems.
3878
9f2850ba
EZ
38792015-01-16 Eli Zaretskii <eliz@gnu.org>
3880
6cdb25f4
EZ
3881 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
3882 functions.
3883 (_initialize_tui_win) <border-kind, border-mode>:
3884 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
3885 (tui_set_tab_width_command): Fix the commentary.
3886
6cdb25f4
EZ
3887 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
3888
bf555842
EZ
3889 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
3890 Doc fix.
cb86fcc1
EZ
3891 (tui_set_tab_width_command): Delete and recreate the source and
3892 the disassembly windows, to show the effect of the changed tab
3893 size immediately.
bf555842 3894
9f2850ba
EZ
3895 * tui/tui-data.h (LINE_PREFIX): Make shorter
3896 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
3897 "Thread NNNNN.XXXX" thread ID notation on Windows.
3898
95761b2d
JK
38992015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3900
3901 Fix gcc-5 compilation.
3902 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
3903
8cc73a39
SDJ
39042015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3905
3906 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
3907 (linux-personality.o): New rule.
3908 * common/common-defs.h: Include <stdint.h>.
3909 * config/aarch64/linux.mh (NATDEPFILES): Include
3910 linux-personality.o.
3911 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3912 * config/arm/linux.mh (NATDEPFILES): Likewise.
3913 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3914 * config/i386/linux.mh (NATDEPFILES): Likewise.
3915 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3916 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3917 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3918 * config/mips/linux.mh (NATDEPFILES): Likewise.
3919 * config/pa/linux.mh (NATDEPFILES): Likewise.
3920 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3921 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3922 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3923 * config/s390/linux.mh (NATDEPFILES): Likewise.
3924 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3925 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3926 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3927 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3928 * defs.h: Remove #include <stdint.h> (moved to
3929 common/common-defs.h).
3930 * linux-nat.c: Include nat/linux-personality.h. Remove #include
3931 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
3932 nat/linux-personality.c).
3933 (linux_nat_create_inferior): Remove code to disable address space
3934 randomization (moved to nat/linux-personality.c). Create cleanup
3935 to disable address space randomization.
3936 * nat/linux-personality.c: New file.
3937 * nat/linux-personality.h: Likewise.
3938
fb23d554
SDJ
39392015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3940
3941 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
3942 common/posix-strerror.c.
3943 (posix-strerror.o): New rule.
3944 (mingw-strerror.o): Likewise.
3945 * common/common-utils.h (safe_strerror): Move prototype to here,
3946 from utils.h.
3947 * common/common.host: New file.
3948 * common/mingw-strerror.c: Likewise.
3949 * common/posix-strerror.c: Likewise.
3950 * configure: Regenerated.
3951 * configure.ac: Source common/common.host. Add variable
3952 common_host_obs to gdb_host_obs.
3953 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
3954 gdb/common/posix-strerror.c when warning about the use of
3955 strerror.
3956 * mingw-hdep.c (safe_strerror): Remove definition; move it to
3957 common/mingw-strerror.c.
3958 * posix-hdep.c (safe_strerror): Remove definition; move it to
3959 common/posix-hdep.c.
3960 * utils.h (safe_strerror): Remove prototype; move to
3961 common/common-utils.h.
3962
3af8af43
JB
39632015-01-15 Joel Brobecker <brobecker@adacore.com>
3964
3965 GDB 7.8.2 released.
3966
bafffb51
JB
39672015-01-15 Joel Brobecker <brobecker@adacore.com>
3968
3969 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
3970 ___XA type if the array has already been fixed.
3971
cdf43629
YQ
39722015-01-14 Yao Qi <yao@codesourcery.com>
3973
3974 * Makefile.in (ppc-linux.o): New rule.
3975 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
3976 * configure.ac: AC_CHECK_FUNCS(getauxval).
3977 * config.in: Re-generated.
3978 * configure: Re-generated.
3979 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
3980 Declare.
3981 * nat/ppc-linux.c: New file.
3982 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
3983 Call ppc64_64bit_inferior_p.
3984
514c5338
YQ
39852015-01-14 Yao Qi <yao@codesourcery.com>
3986
3987 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
3988 nat/ppc-linux.h.
3989 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
3990 (PPC_FEATURE_HAS_DFP): Likewise.
3991 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
3992 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
3993 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
3994 Include "nat/ppc-linux.h".
3995 * nat/ppc-linux.h: New file.
3996 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
3997
5589af0e
PA
39982015-01-14 Pedro Alves <palves@redhat.com>
3999
4000 PR gdb/17525
4001 * breakpoint.c: Include "interps.h".
4002 (bpstat_do_actions_1): Also check whether the interpreter is
4003 async.
4004
6c400b59
PA
40052015-01-14 Pedro Alves <palves@redhat.com>
4006
4007 PR cli/17828
4008 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
4009 reinstall if the interpreter is sync.
4010
e02c96a7
DE
40112015-01-13 Doug Evans <dje@google.com>
4012
4013 * objfiles.c (objfile_filename): New function.
4014 * objfiles.h (objfile_filename): Declare it.
4015 (objfile_name): Add function comment.
4016 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
4017 bfd file name (which may be realpath'd), and the original name.
4018
3b2f13ff
JB
40192015-01-13 Joel Brobecker <brobecker@adacore.com>
4020
4021 * NEWS: Create a new section for the next release branch.
4022 Rename the section of the current branch, now that it has
4023 been cut.
4024
b4cfe7f8
JB
40252015-01-13 Joel Brobecker <brobecker@adacore.com>
4026
4027 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
4028 * version.in: Bump version to 7.9.50.DATE-cvs.
4029
92fc2e69
JB
40302015-01-13 Joel Brobecker <brobecker@adacore.com>
4031
4032 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
4033 Remove trailing new-line in argument of call to warning.
4034
f71f0b0d
JB
40352015-01-13 Joel Brobecker <brobecker@adacore.com>
4036
4037 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
4038 new-line in argument of call to "warning".
4039
04dccad0
JB
40402015-01-13 Joel Brobecker <brobecker@adacore.com>
4041
4042 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
4043 in static block, then try searching for primitive types.
4044
08b13bdd
PP
40452015-01-12 Patrick Palka <patrick@parcs.ath.cx>
4046
4047 * top.h (gdb_add_history): Declare.
4048 * top.c (command_count): New variable.
4049 (gdb_add_history): New function.
4050 (gdb_safe_append_history): New static function.
4051 (quit_force): Call it.
4052 (command_line_input): Use gdb_add_history instead of
4053 add_history.
4054 * event-top.c (command_line_handler): Likewise.
4055
4ac15b59
JC
40562015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
4057
4058 PR gdb/17046
4059 * darwin-nat.c: Replace <machine/setjmp.h> #include by
4060 <setjmp.h> #include.
4061
005e54bb
DE
40622015-01-11 Doug Evans <xdje42@gmail.com>
4063
4064 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
4065
439250fb
DE
40662015-01-11 Doug Evans <xdje42@gmail.com>
4067
4068 PR gdb/15830
4069 * NEWS: The "maint demangle" command is renamed as "demangle".
4070 * demangle.c: #include cli/cli-utils.h, language.h.
4071 (demangle_command): New function.
4072 (_initialize_demangle): Add new command "demangle".
4073 * maint.c (maintenance_demangle): Stub out.
4074 (_initialize_maint_cmds): Update help text for "maint demangle",
4075 and mark as deprecated.
4076
ebf3aa72
MK
40772015-01-11 Mark Kettenis <kettenis@gnu.org>
4078
4079 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
4080 inferior_thread is a function.
4081
6bf045cd
PP
40822015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4083
4084 * Makefile.in (.y.c): Don't munge yacc's #line
4085 directives.
4086
588dcc3e
PP
40872015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4088
4089 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
4090 to prompt for input.
4091 * tui/tui-hooks.c (tui_query_hook): Remove.
4092 (tui_install_hooks): Don't set deprecated_query_hook.
4093 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
4094 height calculation. Always update the command window's cur_line.
4095
9c02b525
PA
40962015-01-09 Pedro Alves <palves@redhat.com>
4097
4098 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
4099 function.
4100 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
4101 declaration.
4102 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
4103 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
4104 stop_reason.
4105 (check_stopped_by_watchpoint): New function.
4106 (save_sigtrap): Reimplement.
4107 (linux_nat_stopped_by_watchpoint): Adjust.
4108 (linux_nat_lp_status_is_event): Delete.
4109 (stop_wait_callback): Only call save_sigtrap after storing the
4110 pending status.
4111 (status_callback): If the thread had been stopped for a breakpoint
4112 that has since been removed, discard the event and resume the LWP.
4113 (count_events_callback, select_event_lwp_callback): Use
4114 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
4115 (cancel_breakpoint): Rename to ...
4116 (check_stopped_by_breakpoint): ... this. Record whether the LWP
4117 stopped for a software breakpoint or hardware breakpoint.
4118 (select_event_lwp): Only give preference to the stepping LWP in
4119 all-stop mode. Adjust comments.
4120 (stop_and_resume_callback): Remove references to new_pending_p.
4121 (linux_nat_filter_event): Likewise. Leave exit events of the
4122 leader thread pending here. Handle signal short circuiting here.
4123 Only call save_sigtrap after storing the pending waitstatus.
4124 (linux_nat_wait_1): Remove 'retry' label. Remove references to
4125 new_pending. Don't handle leaving events the caller is not
4126 interested in pending here, nor handle signal short-circuiting
4127 here. Also give equal priority to all LWPs that have had events
4128 in non-stop mode. If reporting a software breakpoint event,
4129 unadjust the LWP's PC.
4130 * linux-nat.h (enum lwp_stop_reason): New.
4131 (struct lwp_info) <stop_pc>: New field.
4132 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
4133 (struct lwp_info) <stop_reason>: New field.
4134 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
4135
8af756ef
PA
41362015-01-09 Pedro Alves <palves@redhat.com>
4137
4138 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
4139 Set the LWP's 'resumed' flag.
4140
8a99810d
PA
41412015-01-09 Pedro Alves <palves@redhat.com>
4142
4143 * linux-nat.c (linux_resume_one_lwp): New function.
4144 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
4145 (linux_nat_resume): Use lwp_status_pending_p and
4146 linux_resume_one_lwp.
4147 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
4148 (linux_handle_extended_wait): Use linux_resume_one_lwp.
4149 (status_callback, running_callback): Use lwp_status_pending_p.
4150 (lwp_status_pending_p): New function.
4151 (stop_and_resume_callback): Use lwp_status_pending_p.
4152 (linux_nat_filter_event): Use linux_resume_one_lwp.
4153 (linux_nat_wait_1): Always use status_callback to look for an LWP
4154 with a pending status. Use linux_resume_one_lwp.
4155 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
4156 linux_resume_one_lwp.
4157
f7ce857f
PA
41582015-01-09 Pedro Alves <palves@redhat.com>
4159
4160 * breakpoint.c (bp_location_inserted_here_p): New function,
4161 factored out from ...
4162 (breakpoint_inserted_here_p): ... here. Use
4163 ALL_BP_LOCATIONS_AT_ADDR.
4164 (software_breakpoint_inserted_here_p): Use
4165 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
4166
c1a747c1
PA
41672014-01-09 Pedro Alves <palves@redhat.com>
4168
4169 Skip enabling event reporting if the kernel supports
4170 PTRACE_EVENT_CLONE.
4171 * linux-thread-db.c: Include "nat/linux-ptrace.h".
4172 (thread_db_use_events): New function.
4173 (try_thread_db_load_1): Check thread_db_use_events before enabling
4174 event reporting.
4175 (update_thread_state): New function.
4176 (attach_thread): Use it. Check thread_db_use_events before
4177 enabling event reporting.
4178 (thread_db_detach): Check thread_db_use_events before disabling
4179 event reporting.
4180 (find_new_threads_callback): Check thread_db_use_events before
4181 enabling event reporting. Update the thread's state if not using
4182 libthread_db events.
4183
a33e3959
PA
41842015-01-09 Pedro Alves <palves@redhat.com>
4185
4186 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
4187 about to wait for is > 0.
4188 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
4189 the kernel thread ID is -1.
4190
8784d563
PA
41912015-01-09 Pedro Alves <palves@redhat.com>
4192
4193 * linux-nat.c (attach_proc_task_lwp_callback): New function.
4194 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
4195 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
4196 ptrace option flags.
4197 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
4198 field.
4199 * nat/linux-procfs.c: Include <dirent.h>.
4200 (linux_proc_get_int): New parameter "warn". Handle it.
4201 (linux_proc_get_tgid): Adjust.
4202 (linux_proc_get_tracerpid): Rename to ...
4203 (linux_proc_get_tracerpid_nowarn): ... this.
4204 (linux_proc_pid_get_state): New function, factored out from
4205 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
4206 and handle it.
4207 (linux_proc_pid_is_gone): New function.
4208 (linux_proc_pid_is_stopped): Adjust.
4209 (linux_proc_pid_is_zombie_maybe_warn)
4210 (linux_proc_pid_is_zombie_nowarn): New functions.
4211 (linux_proc_pid_is_zombie): Use
4212 linux_proc_pid_is_zombie_maybe_warn.
4213 (linux_proc_attach_tgid_threads): New function.
4214 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
4215 (linux_proc_get_tracerpid): Rename to ...
4216 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
4217 (linux_proc_pid_is_gone): New declaration.
4218 (linux_proc_pid_is_zombie): Update comment.
4219 (linux_proc_pid_is_zombie_nowarn): New declaration.
4220 (linux_proc_attach_lwp_func): New typedef.
4221 (linux_proc_attach_tgid_threads): New declaration.
4222 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
4223 use nowarn functions.
4224 (linux_ptrace_attach_fail_reason_string): Move here from
4225 gdbserver/linux-low.c and rename.
4226 (ptrace_supports_feature): If the current ptrace options are not
4227 known yet, check them now, instead of asserting.
4228 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
4229 Declare.
4230
883ed13e
PA
42312015-01-09 Pedro Alves <palves@redhat.com>
4232
4233 * linux-thread-db.c (thread_db_find_new_threads_silently)
4234 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
4235 (find_new_threads_once): Print debug output on gdb_stdlog.
4236
1710aab8
CG
42372015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
4238 Pedro Alves <palves@redhat.com>
4239
4240 * compile/compile.c: Include "gdb_wait.h".
4241 (do_rmdir): Check return value, and free 'zap'.
4242
b597c318
YQ
42432015-01-08 Pedro Alves <palves@redhat.com>
4244 Yao Qi <yao@codesourcery.com>
4245
4246 * dwarf2loc.c (indirect_pieced_value): Don't call
4247 gdb_sign_extend. Call extract_signed_integer instead.
4248 * utils.c (gdb_sign_extend): Remove.
4249 * utils.h (gdb_sign_extend): Remove declaration.
4250
025ac414
PM
42512015-01-07 Pierre Muller <muller@sourceware.org>
4252
4253 PR symtab/17811
4254 * stabsread.c (define_symbol): Set language for C++ special symbols.
4255
fa5af12a
PP
42562015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4257
4258 * inflow.c (initial_gdb_ttystate): Tweak comment.
4259
ea42d6f8
JB
42602015-01-07 Joel Brobecker <brobecker@adacore.com>
4261
4262 * inflow.c (set_initial_gdb_ttystate): Add empty line after
4263 comment documenting function.
4264
6a06d660
PP
42652015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4266
4267 * terminal.h (set_initial_gdb_ttystate): Declare.
4268 * inflow.c (initial_gdb_ttystate): New static variable.
4269 (set_initial_gdb_ttystate): New setter.
4270 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
4271 instead of our current terminal state.
4272 * top.c (gdb_init): Call set_initial_gdb_ttystate.
4273
e810d75b
JB
42742015-01-07 Joel Brobecker <brobecker@adacore.com>
4275
4276 * guile/scm-type.c (tyscm_array_1): Add comment.
4277 * python/py-type.c (typy_array_1): Add comment.
4278
fce10a84
JB
42792015-01-06 Joel Brobecker <brobecker@adacore.com>
4280
4281 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
4282 error if N2 is equal to N1 - 1.
4283
8503d6e1
JB
42842015-01-06 Joel Brobecker <brobecker@adacore.com>
4285
4286 * python/py-type.c (typy_array_1): Do not raise negative-length
4287 exception if N2 is equal to N1 - 1.
4288
4d29c0a8
DE
42892015-01-03 Doug Evans <xdje42@gmail.com>
4290
4291 * c-exp.y: Whitespace cleanup.
4292 (classify_inner_name): Remove extra ;.
4293
eaa6a9a4
MR
42942015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
4295
4296 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
4297 offset signed.
4298
02fe9972
DE
42992015-01-02 Doug Evans <dje@google.com>
4300
4301 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
4302
e2ada9cb
DE
43032015-01-02 Doug Evans <dje@google.com>
4304
4305 * symtab.h (struct symbol): Fix typo in comment.
4306
32d0add0
JB
43072015-01-01 Joel Brobecker <brobecker@adacore.com>
4308
4309 Update year range in copyright notice of all files.
4310
76f2b779
JB
43112015-01-01 Joel Brobecker <brobecker@adacore.com>
4312
4313 * top.c (print_gdb_version): Update copyright year to 2015.
4314
077309e2 43152015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 4316
077309e2 4317 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 4318
077309e2 4319For older changes see ChangeLog-2014.
c906108c
SS
4320\f
4321Local Variables:
4322mode: change-log
4323left-margin: 8
4324fill-column: 74
4325version-control: never
57da7796 4326coding: utf-8
c906108c 4327End:
This page took 1.971116 seconds and 4 git commands to generate.