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