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