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