Fix gcc-5 compilation
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
95761b2d
JK
12015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 Fix gcc-5 compilation.
4 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
5
8cc73a39
SDJ
62015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7
8 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
9 (linux-personality.o): New rule.
10 * common/common-defs.h: Include <stdint.h>.
11 * config/aarch64/linux.mh (NATDEPFILES): Include
12 linux-personality.o.
13 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
14 * config/arm/linux.mh (NATDEPFILES): Likewise.
15 * config/i386/linux64.mh (NATDEPFILES): Likewise.
16 * config/i386/linux.mh (NATDEPFILES): Likewise.
17 * config/ia64/linux.mh (NATDEPFILES): Likewise.
18 * config/m32r/linux.mh (NATDEPFILES): Likewise.
19 * config/m68k/linux.mh (NATDEPFILES): Likewise.
20 * config/mips/linux.mh (NATDEPFILES): Likewise.
21 * config/pa/linux.mh (NATDEPFILES): Likewise.
22 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
23 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
24 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
25 * config/s390/linux.mh (NATDEPFILES): Likewise.
26 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
27 * config/sparc/linux.mh (NATDEPFILES): Likewise.
28 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
29 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
30 * defs.h: Remove #include <stdint.h> (moved to
31 common/common-defs.h).
32 * linux-nat.c: Include nat/linux-personality.h. Remove #include
33 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
34 nat/linux-personality.c).
35 (linux_nat_create_inferior): Remove code to disable address space
36 randomization (moved to nat/linux-personality.c). Create cleanup
37 to disable address space randomization.
38 * nat/linux-personality.c: New file.
39 * nat/linux-personality.h: Likewise.
40
fb23d554
SDJ
412015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
42
43 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
44 common/posix-strerror.c.
45 (posix-strerror.o): New rule.
46 (mingw-strerror.o): Likewise.
47 * common/common-utils.h (safe_strerror): Move prototype to here,
48 from utils.h.
49 * common/common.host: New file.
50 * common/mingw-strerror.c: Likewise.
51 * common/posix-strerror.c: Likewise.
52 * configure: Regenerated.
53 * configure.ac: Source common/common.host. Add variable
54 common_host_obs to gdb_host_obs.
55 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
56 gdb/common/posix-strerror.c when warning about the use of
57 strerror.
58 * mingw-hdep.c (safe_strerror): Remove definition; move it to
59 common/mingw-strerror.c.
60 * posix-hdep.c (safe_strerror): Remove definition; move it to
61 common/posix-hdep.c.
62 * utils.h (safe_strerror): Remove prototype; move to
63 common/common-utils.h.
64
3af8af43
JB
652015-01-15 Joel Brobecker <brobecker@adacore.com>
66
67 GDB 7.8.2 released.
68
bafffb51
JB
692015-01-15 Joel Brobecker <brobecker@adacore.com>
70
71 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
72 ___XA type if the array has already been fixed.
73
cdf43629
YQ
742015-01-14 Yao Qi <yao@codesourcery.com>
75
76 * Makefile.in (ppc-linux.o): New rule.
77 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
78 * configure.ac: AC_CHECK_FUNCS(getauxval).
79 * config.in: Re-generated.
80 * configure: Re-generated.
81 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
82 Declare.
83 * nat/ppc-linux.c: New file.
84 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
85 Call ppc64_64bit_inferior_p.
86
514c5338
YQ
872015-01-14 Yao Qi <yao@codesourcery.com>
88
89 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
90 nat/ppc-linux.h.
91 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
92 (PPC_FEATURE_HAS_DFP): Likewise.
93 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
94 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
95 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
96 Include "nat/ppc-linux.h".
97 * nat/ppc-linux.h: New file.
98 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
99
5589af0e
PA
1002015-01-14 Pedro Alves <palves@redhat.com>
101
102 PR gdb/17525
103 * breakpoint.c: Include "interps.h".
104 (bpstat_do_actions_1): Also check whether the interpreter is
105 async.
106
6c400b59
PA
1072015-01-14 Pedro Alves <palves@redhat.com>
108
109 PR cli/17828
110 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
111 reinstall if the interpreter is sync.
112
e02c96a7
DE
1132015-01-13 Doug Evans <dje@google.com>
114
115 * objfiles.c (objfile_filename): New function.
116 * objfiles.h (objfile_filename): Declare it.
117 (objfile_name): Add function comment.
118 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
119 bfd file name (which may be realpath'd), and the original name.
120
3b2f13ff
JB
1212015-01-13 Joel Brobecker <brobecker@adacore.com>
122
123 * NEWS: Create a new section for the next release branch.
124 Rename the section of the current branch, now that it has
125 been cut.
126
b4cfe7f8
JB
1272015-01-13 Joel Brobecker <brobecker@adacore.com>
128
129 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
130 * version.in: Bump version to 7.9.50.DATE-cvs.
131
92fc2e69
JB
1322015-01-13 Joel Brobecker <brobecker@adacore.com>
133
134 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
135 Remove trailing new-line in argument of call to warning.
136
f71f0b0d
JB
1372015-01-13 Joel Brobecker <brobecker@adacore.com>
138
139 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
140 new-line in argument of call to "warning".
141
04dccad0
JB
1422015-01-13 Joel Brobecker <brobecker@adacore.com>
143
144 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
145 in static block, then try searching for primitive types.
146
08b13bdd
PP
1472015-01-12 Patrick Palka <patrick@parcs.ath.cx>
148
149 * top.h (gdb_add_history): Declare.
150 * top.c (command_count): New variable.
151 (gdb_add_history): New function.
152 (gdb_safe_append_history): New static function.
153 (quit_force): Call it.
154 (command_line_input): Use gdb_add_history instead of
155 add_history.
156 * event-top.c (command_line_handler): Likewise.
157
4ac15b59
JC
1582015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
159
160 PR gdb/17046
161 * darwin-nat.c: Replace <machine/setjmp.h> #include by
162 <setjmp.h> #include.
163
005e54bb
DE
1642015-01-11 Doug Evans <xdje42@gmail.com>
165
166 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
167
439250fb
DE
1682015-01-11 Doug Evans <xdje42@gmail.com>
169
170 PR gdb/15830
171 * NEWS: The "maint demangle" command is renamed as "demangle".
172 * demangle.c: #include cli/cli-utils.h, language.h.
173 (demangle_command): New function.
174 (_initialize_demangle): Add new command "demangle".
175 * maint.c (maintenance_demangle): Stub out.
176 (_initialize_maint_cmds): Update help text for "maint demangle",
177 and mark as deprecated.
178
ebf3aa72
MK
1792015-01-11 Mark Kettenis <kettenis@gnu.org>
180
181 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
182 inferior_thread is a function.
183
6bf045cd
PP
1842015-01-09 Patrick Palka <patrick@parcs.ath.cx>
185
186 * Makefile.in (.y.c): Don't munge yacc's #line
187 directives.
188
588dcc3e
PP
1892015-01-09 Patrick Palka <patrick@parcs.ath.cx>
190
191 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
192 to prompt for input.
193 * tui/tui-hooks.c (tui_query_hook): Remove.
194 (tui_install_hooks): Don't set deprecated_query_hook.
195 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
196 height calculation. Always update the command window's cur_line.
197
9c02b525
PA
1982015-01-09 Pedro Alves <palves@redhat.com>
199
200 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
201 function.
202 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
203 declaration.
204 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
205 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
206 stop_reason.
207 (check_stopped_by_watchpoint): New function.
208 (save_sigtrap): Reimplement.
209 (linux_nat_stopped_by_watchpoint): Adjust.
210 (linux_nat_lp_status_is_event): Delete.
211 (stop_wait_callback): Only call save_sigtrap after storing the
212 pending status.
213 (status_callback): If the thread had been stopped for a breakpoint
214 that has since been removed, discard the event and resume the LWP.
215 (count_events_callback, select_event_lwp_callback): Use
216 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
217 (cancel_breakpoint): Rename to ...
218 (check_stopped_by_breakpoint): ... this. Record whether the LWP
219 stopped for a software breakpoint or hardware breakpoint.
220 (select_event_lwp): Only give preference to the stepping LWP in
221 all-stop mode. Adjust comments.
222 (stop_and_resume_callback): Remove references to new_pending_p.
223 (linux_nat_filter_event): Likewise. Leave exit events of the
224 leader thread pending here. Handle signal short circuiting here.
225 Only call save_sigtrap after storing the pending waitstatus.
226 (linux_nat_wait_1): Remove 'retry' label. Remove references to
227 new_pending. Don't handle leaving events the caller is not
228 interested in pending here, nor handle signal short-circuiting
229 here. Also give equal priority to all LWPs that have had events
230 in non-stop mode. If reporting a software breakpoint event,
231 unadjust the LWP's PC.
232 * linux-nat.h (enum lwp_stop_reason): New.
233 (struct lwp_info) <stop_pc>: New field.
234 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
235 (struct lwp_info) <stop_reason>: New field.
236 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
237
8af756ef
PA
2382015-01-09 Pedro Alves <palves@redhat.com>
239
240 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
241 Set the LWP's 'resumed' flag.
242
8a99810d
PA
2432015-01-09 Pedro Alves <palves@redhat.com>
244
245 * linux-nat.c (linux_resume_one_lwp): New function.
246 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
247 (linux_nat_resume): Use lwp_status_pending_p and
248 linux_resume_one_lwp.
249 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
250 (linux_handle_extended_wait): Use linux_resume_one_lwp.
251 (status_callback, running_callback): Use lwp_status_pending_p.
252 (lwp_status_pending_p): New function.
253 (stop_and_resume_callback): Use lwp_status_pending_p.
254 (linux_nat_filter_event): Use linux_resume_one_lwp.
255 (linux_nat_wait_1): Always use status_callback to look for an LWP
256 with a pending status. Use linux_resume_one_lwp.
257 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
258 linux_resume_one_lwp.
259
f7ce857f
PA
2602015-01-09 Pedro Alves <palves@redhat.com>
261
262 * breakpoint.c (bp_location_inserted_here_p): New function,
263 factored out from ...
264 (breakpoint_inserted_here_p): ... here. Use
265 ALL_BP_LOCATIONS_AT_ADDR.
266 (software_breakpoint_inserted_here_p): Use
267 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
268
c1a747c1
PA
2692014-01-09 Pedro Alves <palves@redhat.com>
270
271 Skip enabling event reporting if the kernel supports
272 PTRACE_EVENT_CLONE.
273 * linux-thread-db.c: Include "nat/linux-ptrace.h".
274 (thread_db_use_events): New function.
275 (try_thread_db_load_1): Check thread_db_use_events before enabling
276 event reporting.
277 (update_thread_state): New function.
278 (attach_thread): Use it. Check thread_db_use_events before
279 enabling event reporting.
280 (thread_db_detach): Check thread_db_use_events before disabling
281 event reporting.
282 (find_new_threads_callback): Check thread_db_use_events before
283 enabling event reporting. Update the thread's state if not using
284 libthread_db events.
285
a33e3959
PA
2862015-01-09 Pedro Alves <palves@redhat.com>
287
288 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
289 about to wait for is > 0.
290 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
291 the kernel thread ID is -1.
292
8784d563
PA
2932015-01-09 Pedro Alves <palves@redhat.com>
294
295 * linux-nat.c (attach_proc_task_lwp_callback): New function.
296 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
297 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
298 ptrace option flags.
299 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
300 field.
301 * nat/linux-procfs.c: Include <dirent.h>.
302 (linux_proc_get_int): New parameter "warn". Handle it.
303 (linux_proc_get_tgid): Adjust.
304 (linux_proc_get_tracerpid): Rename to ...
305 (linux_proc_get_tracerpid_nowarn): ... this.
306 (linux_proc_pid_get_state): New function, factored out from
307 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
308 and handle it.
309 (linux_proc_pid_is_gone): New function.
310 (linux_proc_pid_is_stopped): Adjust.
311 (linux_proc_pid_is_zombie_maybe_warn)
312 (linux_proc_pid_is_zombie_nowarn): New functions.
313 (linux_proc_pid_is_zombie): Use
314 linux_proc_pid_is_zombie_maybe_warn.
315 (linux_proc_attach_tgid_threads): New function.
316 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
317 (linux_proc_get_tracerpid): Rename to ...
318 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
319 (linux_proc_pid_is_gone): New declaration.
320 (linux_proc_pid_is_zombie): Update comment.
321 (linux_proc_pid_is_zombie_nowarn): New declaration.
322 (linux_proc_attach_lwp_func): New typedef.
323 (linux_proc_attach_tgid_threads): New declaration.
324 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
325 use nowarn functions.
326 (linux_ptrace_attach_fail_reason_string): Move here from
327 gdbserver/linux-low.c and rename.
328 (ptrace_supports_feature): If the current ptrace options are not
329 known yet, check them now, instead of asserting.
330 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
331 Declare.
332
883ed13e
PA
3332015-01-09 Pedro Alves <palves@redhat.com>
334
335 * linux-thread-db.c (thread_db_find_new_threads_silently)
336 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
337 (find_new_threads_once): Print debug output on gdb_stdlog.
338
1710aab8
CG
3392015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
340 Pedro Alves <palves@redhat.com>
341
342 * compile/compile.c: Include "gdb_wait.h".
343 (do_rmdir): Check return value, and free 'zap'.
344
b597c318
YQ
3452015-01-08 Pedro Alves <palves@redhat.com>
346 Yao Qi <yao@codesourcery.com>
347
348 * dwarf2loc.c (indirect_pieced_value): Don't call
349 gdb_sign_extend. Call extract_signed_integer instead.
350 * utils.c (gdb_sign_extend): Remove.
351 * utils.h (gdb_sign_extend): Remove declaration.
352
025ac414
PM
3532015-01-07 Pierre Muller <muller@sourceware.org>
354
355 PR symtab/17811
356 * stabsread.c (define_symbol): Set language for C++ special symbols.
357
fa5af12a
PP
3582015-01-07 Patrick Palka <patrick@parcs.ath.cx>
359
360 * inflow.c (initial_gdb_ttystate): Tweak comment.
361
ea42d6f8
JB
3622015-01-07 Joel Brobecker <brobecker@adacore.com>
363
364 * inflow.c (set_initial_gdb_ttystate): Add empty line after
365 comment documenting function.
366
6a06d660
PP
3672015-01-07 Patrick Palka <patrick@parcs.ath.cx>
368
369 * terminal.h (set_initial_gdb_ttystate): Declare.
370 * inflow.c (initial_gdb_ttystate): New static variable.
371 (set_initial_gdb_ttystate): New setter.
372 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
373 instead of our current terminal state.
374 * top.c (gdb_init): Call set_initial_gdb_ttystate.
375
e810d75b
JB
3762015-01-07 Joel Brobecker <brobecker@adacore.com>
377
378 * guile/scm-type.c (tyscm_array_1): Add comment.
379 * python/py-type.c (typy_array_1): Add comment.
380
fce10a84
JB
3812015-01-06 Joel Brobecker <brobecker@adacore.com>
382
383 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
384 error if N2 is equal to N1 - 1.
385
8503d6e1
JB
3862015-01-06 Joel Brobecker <brobecker@adacore.com>
387
388 * python/py-type.c (typy_array_1): Do not raise negative-length
389 exception if N2 is equal to N1 - 1.
390
4d29c0a8
DE
3912015-01-03 Doug Evans <xdje42@gmail.com>
392
393 * c-exp.y: Whitespace cleanup.
394 (classify_inner_name): Remove extra ;.
395
eaa6a9a4
MR
3962015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
397
398 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
399 offset signed.
400
02fe9972
DE
4012015-01-02 Doug Evans <dje@google.com>
402
403 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
404
e2ada9cb
DE
4052015-01-02 Doug Evans <dje@google.com>
406
407 * symtab.h (struct symbol): Fix typo in comment.
408
32d0add0
JB
4092015-01-01 Joel Brobecker <brobecker@adacore.com>
410
411 Update year range in copyright notice of all files.
412
76f2b779
JB
4132015-01-01 Joel Brobecker <brobecker@adacore.com>
414
415 * top.c (print_gdb_version): Update copyright year to 2015.
416
077309e2 4172015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 418
077309e2 419 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 420
077309e2 421For older changes see ChangeLog-2014.
c906108c
SS
422\f
423Local Variables:
424mode: change-log
425left-margin: 8
426fill-column: 74
427version-control: never
57da7796 428coding: utf-8
c906108c 429End:
This page took 1.751959 seconds and 4 git commands to generate.