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