* inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
[external/binutils.git] / gdb / ChangeLog
1 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
2
3         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
5         * target.c (target_fileio_pwrite): Remove buffer address from
6         debug output.
7         (target_fileio_pread): Likewise.
8
9 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10
11         * NEWS: Document remote "info proc" and "generate-core-file".
12
13 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
14
15         * gdbarch.sh (find_memory_regions): New callback.
16         * gdbarch.c, gdbarch.h: Regenerate.
17
18         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
19         callback before falling back to target method.
20
21         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
22         (linux_target_install_ops): No longer install it.
23
24         * linux-tdep.c (linux_find_memory_regions): New function.
25         (linux_init_abi): Install it.
26
27 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
28
29         * gdbarch.sh (make_corefile_notes): New architecture callback.
30         * gdbarch.c: Regenerate.
31         * gdbarch.h: Likewise.
32
33         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
34         before target_make_corefile_notes.  If NULL is returned, the
35         target does not support core file generation.
36
37         * linux-nat.c: Include "linux-tdep.h".
38         (find_signalled_thread, find_stop_signal): Remove.
39         (linux_nat_do_thread_registers): Likewise.
40         (struct linux_nat_corefile_thread_data): Likewise.
41         (linux_nat_corefile_thread_callback): Likewise.
42         (iterate_over_spus): Likewise.
43         (struct linux_spu_corefile_data): Likewise.
44         (linux_spu_corefile_callback): Likewise.
45         (linux_spu_make_corefile_notes): Likewise.
46         (linux_nat_collect_thread_registers): New function.
47         (linux_nat_make_corefile_notes): Replace contents by call to
48         linux_make_corefile_notes passing linux_nat_collect_thread_registers
49         as native-only callback.
50
51         * linux-tdep.h: Include "bfd.h".
52         (struct regcache): Add forward declaration.
53         (linux_collect_thread_registers_ftype): New typedef.
54         (linux_make_corefile_notes): Add prototype.
55         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
56         "regset.h", and "elf-bfd.h".
57         (find_signalled_thread, find_stop_signal): New functions.
58         (linux_spu_make_corefile_notes): Likewise.
59         (linux_collect_thread_registers): Likewise.
60         (struct linux_corefile_thread_data): New data structure.
61         (linux_corefile_thread_callback): New funcion.
62         (linux_make_corefile_notes): Likewise.
63         (linux_make_corefile_notes_1): Likewise.
64         (linux_init_abi): Install it.
65
66 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
67
68         * gdbarch.sh (info_proc): New callback.
69         * gdbarch.c, gdbarch.h: Regenerate.
70
71         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
72         before falling back to the target info_proc callback.
73
74         * linux-nat.c: Do not include "cli/cli-utils.h".
75         (linux_nat_info_proc): Remove.
76         (linux_target_install_ops): No longer install it.
77
78         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
79         (read_mapping): New function.
80         (linux_info_proc): Likewise.
81         (linux_init_abi): Install it.
82
83 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
84
85         * defs.h (enum info_proc_what): Moved here from linux-nat.c
86         * infcmd.c: (info_proc_cmd_1): New function.
87         (info_proc_cmd): New function, moved here from equivalent routine
88         orignally in linux-nat.c.
89         (info_proc_cmd_mappings): Likewise.
90         (info_proc_cmd_stat): Likewise.
91         (info_proc_cmd_status): Likewise.
92         (info_proc_cmd_cwd): Likewise.
93         (info_proc_cmd_cmdline): Likewise.
94         (info_proc_cmd_exe): Likewise.
95         (info_proc_cmd_all): Likewise.
96         (_initialize_infcmd): Install "info proc" command and subcommands.
97
98         * target.h (struct target_ops): Add to_info_proc.
99         (target_info_proc): Add prototype.
100         * target.c (target_info_proc): New function.
101
102         * procfs.c (procfs_info_proc): Add prototype.
103         (info_proc_cmd): Rename into ...
104         (procfs_info_proc): ... this.  Update argument types as appropriate
105         for a to_info_proc implementation.  Handle "what" argument.
106         (procfs_target): Install procfs_info_proc.
107         (_initialize_procfs): No longer install "info proc" command.
108
109         * linux-nat.c: (enum info_proc_what): Remove.
110         (linux_nat_info_proc_cmd_1): Rename into ...
111         (linux_nat_info_proc): ... this.  Update argument types as appropriate
112         for a to_info_proc implementation.
113         (linux_nat_info_proc_cmd): Remove.
114         (linux_nat_info_proc_cmd_mappings): Likewise.
115         (linux_nat_info_proc_cmd_stat): Likewise.
116         (linux_nat_info_proc_cmd_status): Likewise.
117         (linux_nat_info_proc_cmd_cwd): Likewise.
118         (linux_nat_info_proc_cmd_cmdline): Likewise.
119         (linux_nat_info_proc_cmd_exe): Likewise.
120         (linux_nat_info_proc_cmd_all): Likewise.
121         (linux_target_install_ops): Install linux_nat_info_proc.
122         (_initialize_linux_nat): No longer install "info proc" command
123         and subcommands.
124
125 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
126
127         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
128         * config.in, configure: Regenerate.
129
130         * target.h (struct target_ops): Add to_fileio_readlink.
131         (target_fileio_readlink): Add prototype.
132         * target.c (target_fileio_readlink): New function.
133
134         * inf-child.c: Conditionally include <sys/param.h>.
135         (inf_child_fileio_readlink): New function.
136         (inf_child_target): Install it.
137
138         * remote.c (PACKET_vFile_readlink): New enum value.
139         (remote_hostio_readlink): New function.
140         (init_remote_ops): Install it.
141         (_initialize_remote): Handle vFile:readlink packet type.
142
143 2012-01-20  Pedro Alves  <palves@redhat.com>
144             Ulrich Weigand  <ulrich.weigand@linaro.org>
145
146         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
147         * config.in, configure: Regenerate.
148
149         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
150         to_fileio_pread, to_fileio_close, to_fileio_unlink.
151         (target_fileio_open): Add prototype.
152         (target_fileio_pwrite): Likewise.
153         (target_fileio_pread): Likewise.
154         (target_fileio_close): Likewise.
155         (target_fileio_unlink): Likewise.
156         (target_fileio_read_alloc): Likewise.
157         (target_fileio_read_stralloc): Likewise.
158
159         * target.c: Include "gdb/fileio.h".
160         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
161         (default_fileio_target): New function.
162         (target_fileio_open): Likewise.
163         (target_fileio_pwrite): Likewise.
164         (target_fileio_pread): Likewise.
165         (target_fileio_close): Likewise.
166         (target_fileio_unlink): Likewise.
167         (target_fileio_close_cleanup): Likewise.
168         (target_fileio_read_alloc_1): Likewise.
169         (target_fileio_read_alloc): Likewise.
170         (target_fileio_read_stralloc): Likewise.
171
172         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
173         <fcntl.h>, and <unistd.h>.
174         (inf_child_fileio_open_flags_to_host): New function.
175         (inf_child_errno_to_fileio_error): Likewise.
176         (inf_child_fileio_open): Likewise.
177         (inf_child_fileio_pwrite): Likewise.
178         (inf_child_fileio_pread): Likewise.
179         (inf_child_fileio_close): Likewise.
180         (inf_child_fileio_unlink): Likewise.
181         (inf_child_target): Install to_fileio routines.
182
183         * remote.c (init_remote_ops): Install to_fileio routines.
184
185 2012-01-20  Pedro Alves  <palves@redhat.com>
186             Ulrich Weigand  <ulrich.weigand@linaro.org>
187
188         * remote.c (remote_multi_process_p): Only check for multi-process
189         protocol feature, do not check for extended protocol.
190         (remote_supports_multi_process): Check for extended protocol here.
191         (set_general_process): Likewise.
192         (extended_remote_kill): Likewise.
193         (remote_pid_to_str): Likewise.
194         (remote_query_supported): Always query multiprocess mode.
195
196 2012-01-20  Pedro Alves  <palves@redhat.com>
197             Ulrich Weigand  <ulrich.weigand@linaro.org>
198
199         * inferior.h (struct inferior): Add fake_pid_p.
200         * inferior.c (exit_inferior_1): Clear fake_pid_p.
201         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
202         magic_null_ptid since the remote side doesn't provide a real PID.
203
204 2012-01-19  Tom Tromey  <tromey@redhat.com>
205
206         * NEWS: Combine the two Python sections.
207
208 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
209
210         * target.h (target_close): Update comment on the target's unpush state.
211
212 2012-01-19  Pedro Alves  <palves@redhat.com>
213
214         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
215         linux_nat_async directly instead of going through the target
216         vector.
217         * target.c (unpush_target): Close target after unpushing it, not
218         before.
219
220 2012-01-19  Gary Benson  <gbenson@redhat.com>
221
222         * mdebugread.c (sort_blocks): Replace integer constants with ones
223         derived from FIRST_LOCAL_BLOCK.
224
225 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
226             Jan Kratochvil  <jan.kratochvil@redhat.com>
227
228         PR gdb/9538
229         * symfile.c (find_separate_debug_file): New function.
230         (terminate_after_last_dir_separator): Likewise.
231         (find_separate_debug_file_by_debuglink): Also try realpath.
232         * configure.ac (AC_CHECK_FUNCS): Add lstat.
233         * configure: Regenerate.
234         * config.in: Regenerate.
235
236 2012-01-18  Doug Evans  <dje@google.com>
237
238         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
239         (main.o): Remove rule.
240         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
241         (--with-sysroot): Rewrite.
242         * configure: Regenerate.
243         * config.in: Regenerate.
244
245 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
246
247         * parse.c (initialize_expout): New function.
248         (reallocate_expout): Likewise.
249         (parse_exp_in_context): Use `initialize_expout' and
250         `reallocate_expout' when appropriate.
251
252 2012-01-18  Pedro Alves  <palves@redhat.com>
253
254         * record.c (struct record_breakpoint, record_breakpoint_p)
255         (record_breakpoints): New.
256         (record_insert_breakpoint, record_remove_breakpoint): Manage
257         record breakpoints list.  Only remove breakpoints from the
258         inferior if they had been inserted there in the first place.
259
260 2012-01-17  Doug Evans  <dje@google.com>
261
262         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
263         if we know we don't have a file name to look for.
264
265 2012-01-17  Pedro Alves  <palves@redhat.com>
266
267         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
268         the frame's stop reason is UNWIND_UNAVAILABLE.
269
270 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
271
272         Fix compilation error.
273         * m2-exp.y (yyerror): Use ANSI C prototype.
274
275 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
276
277         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
278         (growbuf_by_size): Likewise.
279         (yyerror): Likewise.
280         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
281         (modblock): Remove variable (was #if 0'ed).
282         (parse_number): Convert prototype from K&R to ANSI C.
283         (yyerror): Likewise.
284         * objc-exp.y (parse_number): Likewise.
285         (yyerror): Likewise.
286         (yylex): Remove #if 0'ed code.
287         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
288         (yyerror): Likewise.
289
290 2012-01-16  Tom Tromey  <tromey@redhat.com>
291
292         * NEWS: Add item.
293         * symtab.h (compare_filenames_for_search): Declare.
294         * symtab.c (compare_filenames_for_search): New function.
295         (iterate_over_some_symtabs): Use it.
296         * symfile.h (struct quick_symbol_functions)
297         <map_symtabs_matching_filename>: Change spec.
298         * psymtab.c (partial_map_symtabs_matching_filename): Use
299         compare_filenames_for_search.  Update for new spec.
300         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
301         compare_filenames_for_search.  Update for new spec.
302         * breakpoint.c (clear_command): Use compare_filenames_for_search.
303
304 2012-01-16  Tom Tromey  <tromey@redhat.com>
305
306         PR python/13281:
307         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
308         (struct main_type) <flag_flag_enum>: New field.
309         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
310         * NEWS: Add entries.
311         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
312         enums.
313         * python/lib/gdb/printing.py (_EnumInstance): New class.
314         (FlagEnumerationPrinter): Likewise.
315
316 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
317
318         * breakpoint.c (create_sals_from_address_default): New function.
319         (create_breakpoints_sal_default): Likewise.
320         (decode_linespec_default): Likewise.
321         (is_marker_spec): Removed.
322         (strace_marker_p): New function.
323         (init_breakpoint_sal): Using `strace_marker_p' instead of
324         `is_marker_spec'.
325         (create_breakpoint): Call method `create_sals_from_address' from
326         breakpoint_ops, replacing code that created SALs conditionally
327         on the type of the breakpoint.  Call method `create_breakpoints_sal',
328         replacing code that created breakpoints conditionally on the type
329         wanted.
330         (base_breakpoint_create_sals_from_address): New function.
331         (base_breakpoint_create_breakpoints_sal): Likewise.
332         (base_breakpoint_decode_linespec): Likewise.
333         (base_breakpoint_ops): Add methods
334         `base_breakpoint_create_sals_from_address',
335         `base_breakpoint_create_breakpoints_sal' and
336         `base_breakpoint_decode_linespec'.
337         (bkpt_create_sals_from_address): New function.
338         (bkpt_create_breakpoints_sal): Likewise.
339         (bkpt_decode_linespec): Likewise.
340         (tracepoint_create_sals_from_address): Likewise.
341         (tracepoint_create_breakpoints_sal): Likewise.
342         (tracepoint_decode_linespec): Likewise.
343         (strace_marker_create_sals_from_address): Likewise.
344         (strace_marker_create_breakpoints_sal): Likewise.
345         (strace_marker_decode_linespec): Likewise.
346         (strace_marker_breakpoint_ops): New variable.
347         (addr_string_to_sals): Remove `marker_spec'.  Call method
348         `decode_linespec' from breakpoint_ops, replacing code that decoded
349         an address string into a SAL.  Use `strace_marker_p' instead of
350         `marker_spec'.
351         (strace_command): Decide whether we are dealing with a static
352         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
353         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
354         * breakpoint.h (linespec_result, linespec_sals): New forward
355         declarations.
356         (breakpoint_ops) <create_sals_from_address>,
357         <create_breakpoints_sal>, <decode_linespec>: New methods.
358
359 2012-01-14  Doug Evans  <dje@google.com>
360
361         * NEWS: Update text for "maint set python print-stack".
362         It is deprecated in gdb 7.4 and deleted in 7.5.
363
364 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
365
366         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
367         including curses.h.
368
369 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
370
371         * configure: Regenerate.
372         * config.in: Regenerate.
373
374 2012-01-12  Keith Seitz  <keiths@redhat.com>
375
376         PR mi/10586
377         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
378         (ANONYMOUS_UNION_NAME): Define.
379         (is_path_expr_parent): New function.
380         (get_path_expr_parent): New function.
381         (is_anonymous_child): New function.
382         (create_child_with_value): If the child is anonymous and without
383         a name, assign an object name to it.
384         (c_describe_child): Use get_path_expr_parent to determine
385         the parent expression.
386         If there field represents an anonymous struct or union and
387         has no name, set an appropriate display name and expression.
388         (cplus_describe_child): Likewise.
389
390 2012-01-12  Pedro Alves  <palves@redhat.com>
391
392         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
393         available when %ebp is found to be zero (outermost).
394
395 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
396
397         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
398         an internal gdb_static_assert.
399         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
400
401 2012-01-11  Tom Tromey  <tromey@redhat.com>
402
403         PR gdb/9598:
404         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
405         catch" and "catch throw".
406
407 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
408
409         * blockframe.c (block_innermost_frame): Start search from selected
410         frame, if present, or otherwise the current frame.
411
412         * c-exp.y (variable): Update innermost_block for
413         'block COLONCOLON NAME' clause.
414         * m2-exp.y (variable): Ditto.
415         * objc-exp.y (variable): Ditto.
416
417 2012-01-10  Tom Tromey  <tromey@redhat.com>
418
419         PR python/13199:
420         * python/python.c (finish_python_initialization): Set sys.argv.
421
422 2012-01-10  Doug Evans  <dje@google.com>
423
424         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
425         "want_line_info".  All callers updated.
426         (dwarf_decode_lines_1): New function.
427         (handle_DW_AT_stmt_list): Add function comment.
428         New arg "want_line_info".  All callers updated.
429         (read_file_scope,read_type_unit_scope): Move comment from
430         handle_DW_AT_stmt_list to here.
431
432 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
433
434         Fix regression after libiberty/ update for GCC PR 6057 and others.
435         * c-exp.y (operator) <OPERATOR DELETE>
436         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
437         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
438         (make_builtin_type, make_name): New variable i, add gdb_assert.
439         (operator) <OPERATOR NEW>: Update ARGS to 3.
440         (operator) <OPERATOR DELETE>: Add trailing space.
441         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
442         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
443         * cp-support.c (cp_canonicalize_string): Check NULL from
444         cp_comp_to_string, call warning and return.
445
446 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
447
448         Fix duplicate .o files after omitting libbfd.a.
449         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
450         (SFILES): Add corelow.c.
451         (COMMON_OBS): Add corelow.o.
452         (ALLDEPFILES): Remove corelow.c.
453         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
454         * config/alpha/alpha-osf3.mh: Likewise.
455         * config/alpha/fbsd.mh: Likewise.
456         * config/arm/nbsdaout.mh: Likewise.
457         * config/arm/nbsdelf.mh: Likewise.
458         * config/i386/i386gnu.mh: Likewise.
459         * config/ia64/hpux.mh: Likewise.
460         * config/ia64/linux.mh: Likewise.
461         * config/m32r/linux.mh: Likewise.
462         * config/m68k/linux.mh: Likewise.
463         * config/mips/irix5.mh: Likewise.
464         * config/mips/irix6.mh: Likewise.
465         * config/pa/hpux.mh: Likewise.
466         * config/pa/linux.mh: Likewise.
467         * config/powerpc/aix.mh: Likewise.
468         * config/sparc/linux.mh: Likewise.
469         * config/sparc/linux64.mh: Likewise.
470         * config/sparc/sol2.mh: Likewise.
471         * config/vax/vax.mh: Likewise.
472         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
473         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
474         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
475         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
476         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
477         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
478         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
479         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
480         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
481         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
482         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
483         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
484         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
485         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
486         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
487         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
488         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
489         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
490         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
491         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
492         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
493         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
494         corelow.o from gdb_target_obs.
495         * corefile.c (core_target): Update the comment on NULL value.
496         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
497         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
498         MATCHES.  Drop YUMMY set on NULL.
499         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
500         reclaim CORE_DATA if it is already NULL.
501
502 2012-01-09  Doug Evans  <dje@google.com>
503
504         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
505         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
506
507 2012-01-09  Keith Seitz  <keiths@redhat.com>
508
509         * breakpoint.c (wrapper.h): Don't include.
510
511 2012-01-09  Keith Seitz  <keiths@redhat.com>
512
513         * Makefile.in (SFILES): Remove wrapper.c.
514         (HFILES_NO_SRCDIR): Remove wrapper.h.
515         (COMMON_OBS): Remove wrapper.o.
516         * cli/cli-interp.c: Don't inlude wrapper.h.
517         * corelow.c: Likewise.
518         (core_open): Replace gdb_target_find_new_threads with
519         TRY_CATCH around target_find_new_threads.
520         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
521         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
522         * varobj.c (varobj_create): Likewise for parse_exp_1 and
523         evaluate_expression.
524         (varobj_set_value): Likewise for evaluate_expression and
525         value_assign.
526         (install_new_variable): Likewise for value_fetch_lazy.
527         (adjust_value_for_child_access): Likewise for value_ind.
528         (c_describe_child): Likewise for value_subscript and
529         value_ind.
530         (c_value_of_root): Likewise for evaluate_expression.
531         * wrapper.c: Remove.
532         * wrapper.h: Remove.
533
534 2012-01-09  Doug Evans  <dje@google.com>
535
536         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
537         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
538         "abfd" args with "section".  All callers updated.
539         Error checking code moved ...
540         (error_check_comp_unit_head): ... here.  New function.
541         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
542         Delete arg "abfd".  New arg "type_offset".  All callers updated.
543         (create_debug_types_hash_table): Simplify by using
544         read_and_check_type_unit_head.
545
546         * parser-defs.h (namecopy): Delete.
547         * parse.c (namecopy, namecopy_size): Move into copy_name.
548
549 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
550
551         Partially fix duplicate .o files after omitting libbfd.a.
552         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
553         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
554         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
555         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
556         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
557         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
558         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
559
560 2012-01-09  Pedro Alves  <palves@redhat.com>
561
562         * MAINTAINERS: Update my email address.
563
564 2012-01-08  Doug Evans  <dje@google.com>
565
566         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
567         n_type_units.  Rename type_comp_units to all_type_units.
568         All uses updated.
569         (add_signatured_type_cu_to_table): Renamed from
570         add_signatured_type_cu_to_list.  All callers updated.
571
572         * gdbtypes.h (struct cplus_struct_type): Delete member
573         nfn_fields_total.  All uses removed.
574
575 2012-01-06  Doug Evans  <dje@google.com>
576
577         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
578         to top of file.
579         (dwarf2_find_comp_unit): Delete.
580         (process_psymtab_comp_unit): Make result "void".
581         Delete args buffer, info_ptr, buffer_size, and replace with
582         "section".  All callers updated.
583         (dwarf2_build_psymtabs_hard): Simplify.
584
585 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
586             Thiago Jung Bauermann  <bauerman@br.ibm.com>
587
588         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
589         before `struct gdb_exception'.
590         * breakpoint.c (update_global_location_list_nothrow)
591         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
592         * cp-abi.c (value_rtti_type): Likewise.
593         * cp-support.c (cp_validate_operator): Likewise.
594         * infrun.c (insert_exception_resume_breakpoint)
595         (check_exception_resume, keep_going): Likewise.
596         * mi-interp.c (mi_breakpoint_created)
597         (mi_breakpoint_modified): Likewise.
598         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
599         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
600         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
601
602 2012-01-05  Doug Evans  <dje@google.com>
603
604         * dwarf2read.c (statement_prologue): Delete, unused.
605
606         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
607         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
608
609         * dwarf2read.c (comp_unit_header): Delete, unused.
610
611 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
612
613         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
614         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
615
616 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
617
618         * infrun.c (normal_stop): Don't skip calling the normal_stop
619         observers if the thread was doing a multi-step, but stopped for
620         some reason other than stepping.
621
622 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
623
624         * cli/cli-decode.h: Add comments.
625         (CMD_LIST_AMBIGUOUS): Moved to command.h
626         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
627         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
628         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
629         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
630         (add_com, add_com_alias, add_info, add_info_alias)
631         (complete_on_cmdlist, complete_on_enum, help_list): Remove
632         declarations.
633         * command.h: Add and adjust comments.
634         (CMD_LIST_AMBIGUOUS): Moved here.
635         (help_cmd, help_cmd_list): Delete declarations.
636
637 2012-01-04  Doug Evans  <dje@google.com>
638
639         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
640         All callers updated.
641         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
642         Replace all arguments with "per_cu".  All callers updated.
643
644         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
645
646         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
647         New arg "per_cu".  All callers updated.
648
649         Delete #if 0'd out code.
650         * language.c (binop_result_type): Delete.
651         (simple_type, ordered_type, same_type, integral_type): Delete.
652         (numeric_type, character_type, string_type, boolean_type): Delete.
653         (float_type, structured_type): Delete.
654         * language.h: Update.
655
656 2012-01-04  Tom Tromey  <tromey@redhat.com>
657
658         * python/py-value.c (valpy_binop): Initialize 'res_val'.
659
660 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
661
662         * corefile.c (close_exec_file): Delete.
663         (reopen_exec_file): Remove commented out code that seems related
664         to close_exec_file, which is being deleted here.
665         * inferior.h (close_exec_file): Delete.
666         * fork-child.c (fork_inferior): Remove call to fork_inferior.
667
668 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
669
670         * ada-lang.c: #include "cli/cli-utils.h".
671         (get_selections): Use skip_spaces.
672         (ada_get_next_arg): Use skip_spaces and skip_to_space.
673         (catch_ada_exception_command_split): Use skip_spaces.
674         (ada_decode_assert_location): Likewise.
675
676 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
677
678         * linespec.c (decode_line_internal): Check for C++ or Java
679         compound constructs only if the current language is C, C++
680         or Java.
681
682 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
683
684         Revert:
685         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
686                     Joel Brobecker  <brobecker@adacore.com>
687         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
688         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
689         3 times.
690         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
691         fall through into AT_ENTRY_POINT.
692         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
693         DUMMY_ADDR with it.
694         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
695         PPC_INSN_SIZE skip to 3 times.
696
697 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
698
699         * linespec.c (add_minsym): Preserve function descriptors.
700
701 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
702
703         * breakpoint.c (all_locations_are_pending): Consider locations
704         in program spaces executing during startup pending as well.
705
706 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
707
708         Copyright year update in most files of the GDB Project.
709
710 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
711
712         * copyright.sh: Delete.
713         * copyright.py: Rewrite.
714
715 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
716
717         * gnulib/extra/update-copyright: New file, imported from gnulib.
718
719 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
720
721         * README (Copyright and License Notices): New section.
722
723 2012-01-03  Tom Tromey  <tromey@redhat.com>
724
725         PR python/12533:
726         * python/py-value.c (valpy_dereference, valpy_get_address
727         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
728         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
729         (valpy_absolute, valpy_richcompare): Free intermediate values.
730
731 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
732
733         * ada-lang.c: Reformat the copyright notice.
734
735 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
736
737         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
738         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
739         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
740         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
741         Revert this part of:
742         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
743         Build gdb directly from *.o files not using libgdb.a.
744         * Makefile.in (COMMON_OBS): Remove solib-target.o.
745
746 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
747
748         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
749         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
750         Reformat the copyright header.
751
752 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
753
754         Revert this part of:
755         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
756         Remove the gdbtui binary.
757         * gdb.c (main): Remove args.interpreter_p initialization.
758         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
759         * main.h (struct captured_main_args): Remove interpreter_p.
760
761 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
762
763         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
764
765 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
766
767         * top.c (print_gdb_version): Update copyright year.
768
769 2012-01-02  Yao Qi  <yao@codesourcery.com>
770
771         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
772
773 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
774             Joel Brobecker  <brobecker@adacore.com>
775
776         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
777         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
778         3 times.
779         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
780         fall through into AT_ENTRY_POINT.
781         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
782         DUMMY_ADDR with it.
783         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
784         PPC_INSN_SIZE skip to 3 times.
785
786 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
787
788         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
789         the return value.
790         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
791
792 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
793
794         Build gdb directly from *.o files not using libgdb.a.
795         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
796         (COMMON_OBS): Remove solib-target.o.
797         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
798         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
799         (LIBGDB_OBS, libgdb.a): Move it above.
800         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
801         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
802         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
803         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
804         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
805         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
806         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
807         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
808         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
809         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
810         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
811         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
812         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
813         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
814         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
815         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
816         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
817         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
818         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
819         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
820         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
821         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
822         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
823         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
824         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
825         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
826         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
827
828 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
829
830         Remove the gdbtui binary.
831         * .gitignore (/gdbtui): Remove.
832         * Makefile.in (TUI): Remove.
833         (SUBDIR_TUI_OBS): Remove tui-main.o.
834         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
835         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
836         (tui-main.o): Remove.
837         (all_object_files): Remove tui-main.o.
838         * NEWS: New note for the gdbtui removal.
839         * configure: Rebuilt.
840         * configure.ac: No longer add all-tui, clean-tui, install-tui and
841         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
842         CONFIG_UNINSTALL respectively.
843         * gdb.c (main): Remove args.interpreter_p initialization.
844         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
845         * main.h (struct captured_main_args): Remove interpreter_p.
846         * tui/tui-main.c: Remove.
847
848 2012-01-01  Doug Evans  <dje@google.com>
849
850         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
851         (dwarf2_physname, read_import_statement): Ditto.
852         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
853         (process_structure_scope read_subroutine_type): Ditto.
854         (read_typedef, load_partial_dies, read_partial_die): Ditto.
855         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
856         (dwarf2_fetch_die_location_block): Ditto.
857         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
858
859         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
860         All callers updated.
861         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
862         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
863         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
864
865         * dwarf2read.c (load_cu): Move assert to more useful location.
866
867         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
868         All callers updated.
869
870         * dwarf2read.c (dwarf2_per_objfile): Add comment.
871         (dwarf2_elf_names): Minor reformat.
872         (dwarf2_per_cu_data): Tweak comment.
873         (dwarf2_read_section): Fix comment.
874         (create_all_comp_units): Fix comment.
875         (load_full_comp_unit): Fix comment.
876         (process_full_comp_unit): Fix comment.
877         (read_signatured_type): Fix comment.
878
879 For older changes see ChangeLog-2011.
880 \f
881 Local Variables:
882 mode: change-log
883 left-margin: 8
884 fill-column: 74
885 version-control: never
886 coding: utf-8
887 End: