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