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