OSDN Git Service

2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
[pf3gnuchains/pf3gnuchains4x.git] / gdb / ChangeLog
1 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2
3         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
4         (growbuf_by_size): Likewise.
5         (yyerror): Likewise.
6         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
7         (modblock): Remove variable (was #if 0'ed).
8         (parse_number): Convert prototype from K&R to ANSI C.
9         (yyerror): Likewise.
10         * objc-exp.y (parse_number): Likewise.
11         (yyerror): Likewise.
12         (yylex): Remove #if 0'ed code.
13         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
14         (yyerror): Likewise.
15
16 2012-01-16  Tom Tromey  <tromey@redhat.com>
17
18         * NEWS: Add item.
19         * symtab.h (compare_filenames_for_search): Declare.
20         * symtab.c (compare_filenames_for_search): New function.
21         (iterate_over_some_symtabs): Use it.
22         * symfile.h (struct quick_symbol_functions)
23         <map_symtabs_matching_filename>: Change spec.
24         * psymtab.c (partial_map_symtabs_matching_filename): Use
25         compare_filenames_for_search.  Update for new spec.
26         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
27         compare_filenames_for_search.  Update for new spec.
28         * breakpoint.c (clear_command): Use compare_filenames_for_search.
29
30 2012-01-16  Tom Tromey  <tromey@redhat.com>
31
32         PR python/13281:
33         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
34         (struct main_type) <flag_flag_enum>: New field.
35         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
36         * NEWS: Add entries.
37         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
38         enums.
39         * python/lib/gdb/printing.py (_EnumInstance): New class.
40         (FlagEnumerationPrinter): Likewise.
41
42 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
43
44         * breakpoint.c (create_sals_from_address_default): New function.
45         (create_breakpoints_sal_default): Likewise.
46         (decode_linespec_default): Likewise.
47         (is_marker_spec): Removed.
48         (strace_marker_p): New function.
49         (init_breakpoint_sal): Using `strace_marker_p' instead of
50         `is_marker_spec'.
51         (create_breakpoint): Call method `create_sals_from_address' from
52         breakpoint_ops, replacing code that created SALs conditionally
53         on the type of the breakpoint.  Call method `create_breakpoints_sal',
54         replacing code that created breakpoints conditionally on the type
55         wanted.
56         (base_breakpoint_create_sals_from_address): New function.
57         (base_breakpoint_create_breakpoints_sal): Likewise.
58         (base_breakpoint_decode_linespec): Likewise.
59         (base_breakpoint_ops): Add methods
60         `base_breakpoint_create_sals_from_address',
61         `base_breakpoint_create_breakpoints_sal' and
62         `base_breakpoint_decode_linespec'.
63         (bkpt_create_sals_from_address): New function.
64         (bkpt_create_breakpoints_sal): Likewise.
65         (bkpt_decode_linespec): Likewise.
66         (tracepoint_create_sals_from_address): Likewise.
67         (tracepoint_create_breakpoints_sal): Likewise.
68         (tracepoint_decode_linespec): Likewise.
69         (strace_marker_create_sals_from_address): Likewise.
70         (strace_marker_create_breakpoints_sal): Likewise.
71         (strace_marker_decode_linespec): Likewise.
72         (strace_marker_breakpoint_ops): New variable.
73         (addr_string_to_sals): Remove `marker_spec'.  Call method
74         `decode_linespec' from breakpoint_ops, replacing code that decoded
75         an address string into a SAL.  Use `strace_marker_p' instead of
76         `marker_spec'.
77         (strace_command): Decide whether we are dealing with a static
78         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
79         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
80         * breakpoint.h (linespec_result, linespec_sals): New forward
81         declarations.
82         (breakpoint_ops) <create_sals_from_address>,
83         <create_breakpoints_sal>, <decode_linespec>: New methods.
84
85 2012-01-14  Doug Evans  <dje@google.com>
86
87         * NEWS: Update text for "maint set python print-stack".
88         It is deprecated in gdb 7.4 and deleted in 7.5.
89
90 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
91
92         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
93         including curses.h.
94
95 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
96
97         * configure: Regenerate.
98         * config.in: Regenerate.
99
100 2012-01-12  Keith Seitz  <keiths@redhat.com>
101
102         PR mi/10586
103         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
104         (ANONYMOUS_UNION_NAME): Define.
105         (is_path_expr_parent): New function.
106         (get_path_expr_parent): New function.
107         (is_anonymous_child): New function.
108         (create_child_with_value): If the child is anonymous and without
109         a name, assign an object name to it.
110         (c_describe_child): Use get_path_expr_parent to determine
111         the parent expression.
112         If there field represents an anonymous struct or union and
113         has no name, set an appropriate display name and expression.
114         (cplus_describe_child): Likewise.
115
116 2012-01-12  Pedro Alves  <palves@redhat.com>
117
118         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
119         available when %ebp is found to be zero (outermost).
120
121 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
122
123         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
124         an internal gdb_static_assert.
125         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
126
127 2012-01-11  Tom Tromey  <tromey@redhat.com>
128
129         PR gdb/9598:
130         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
131         catch" and "catch throw".
132
133 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
134
135         * blockframe.c (block_innermost_frame): Start search from selected
136         frame, if present, or otherwise the current frame.
137
138         * c-exp.y (variable): Update innermost_block for
139         'block COLONCOLON NAME' clause.
140         * m2-exp.y (variable): Ditto.
141         * objc-exp.y (variable): Ditto.
142
143 2012-01-10  Tom Tromey  <tromey@redhat.com>
144
145         PR python/13199:
146         * python/python.c (finish_python_initialization): Set sys.argv.
147
148 2012-01-10  Doug Evans  <dje@google.com>
149
150         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
151         "want_line_info".  All callers updated.
152         (dwarf_decode_lines_1): New function.
153         (handle_DW_AT_stmt_list): Add function comment.
154         New arg "want_line_info".  All callers updated.
155         (read_file_scope,read_type_unit_scope): Move comment from
156         handle_DW_AT_stmt_list to here.
157
158 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
159
160         Fix regression after libiberty/ update for GCC PR 6057 and others.
161         * c-exp.y (operator) <OPERATOR DELETE>
162         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
163         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
164         (make_builtin_type, make_name): New variable i, add gdb_assert.
165         (operator) <OPERATOR NEW>: Update ARGS to 3.
166         (operator) <OPERATOR DELETE>: Add trailing space.
167         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
168         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
169         * cp-support.c (cp_canonicalize_string): Check NULL from
170         cp_comp_to_string, call warning and return.
171
172 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
173
174         Fix duplicate .o files after omitting libbfd.a.
175         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
176         (SFILES): Add corelow.c.
177         (COMMON_OBS): Add corelow.o.
178         (ALLDEPFILES): Remove corelow.c.
179         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
180         * config/alpha/alpha-osf3.mh: Likewise.
181         * config/alpha/fbsd.mh: Likewise.
182         * config/arm/nbsdaout.mh: Likewise.
183         * config/arm/nbsdelf.mh: Likewise.
184         * config/i386/i386gnu.mh: Likewise.
185         * config/ia64/hpux.mh: Likewise.
186         * config/ia64/linux.mh: Likewise.
187         * config/m32r/linux.mh: Likewise.
188         * config/m68k/linux.mh: Likewise.
189         * config/mips/irix5.mh: Likewise.
190         * config/mips/irix6.mh: Likewise.
191         * config/pa/hpux.mh: Likewise.
192         * config/pa/linux.mh: Likewise.
193         * config/powerpc/aix.mh: Likewise.
194         * config/sparc/linux.mh: Likewise.
195         * config/sparc/linux64.mh: Likewise.
196         * config/sparc/sol2.mh: Likewise.
197         * config/vax/vax.mh: Likewise.
198         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
199         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
200         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
201         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
202         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
203         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
204         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
205         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
206         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
207         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
208         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
209         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
210         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
211         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
212         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
213         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
214         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
215         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
216         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
217         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
218         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
219         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
220         corelow.o from gdb_target_obs.
221         * corefile.c (core_target): Update the comment on NULL value.
222         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
223         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
224         MATCHES.  Drop YUMMY set on NULL.
225         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
226         reclaim CORE_DATA if it is already NULL.
227
228 2012-01-09  Doug Evans  <dje@google.com>
229
230         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
231         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
232
233 2012-01-09  Keith Seitz  <keiths@redhat.com>
234
235         * breakpoint.c (wrapper.h): Don't include.
236
237 2012-01-09  Keith Seitz  <keiths@redhat.com>
238
239         * Makefile.in (SFILES): Remove wrapper.c.
240         (HFILES_NO_SRCDIR): Remove wrapper.h.
241         (COMMON_OBS): Remove wrapper.o.
242         * cli/cli-interp.c: Don't inlude wrapper.h.
243         * corelow.c: Likewise.
244         (core_open): Replace gdb_target_find_new_threads with
245         TRY_CATCH around target_find_new_threads.
246         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
247         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
248         * varobj.c (varobj_create): Likewise for parse_exp_1 and
249         evaluate_expression.
250         (varobj_set_value): Likewise for evaluate_expression and
251         value_assign.
252         (install_new_variable): Likewise for value_fetch_lazy.
253         (adjust_value_for_child_access): Likewise for value_ind.
254         (c_describe_child): Likewise for value_subscript and
255         value_ind.
256         (c_value_of_root): Likewise for evaluate_expression.
257         * wrapper.c: Remove.
258         * wrapper.h: Remove.
259
260 2012-01-09  Doug Evans  <dje@google.com>
261
262         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
263         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
264         "abfd" args with "section".  All callers updated.
265         Error checking code moved ...
266         (error_check_comp_unit_head): ... here.  New function.
267         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
268         Delete arg "abfd".  New arg "type_offset".  All callers updated.
269         (create_debug_types_hash_table): Simplify by using
270         read_and_check_type_unit_head.
271
272         * parser-defs.h (namecopy): Delete.
273         * parse.c (namecopy, namecopy_size): Move into copy_name.
274
275 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
276
277         Partially fix duplicate .o files after omitting libbfd.a.
278         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
279         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
280         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
281         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
282         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
283         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
284         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
285
286 2012-01-09  Pedro Alves  <palves@redhat.com>
287
288         * MAINTAINERS: Update my email address.
289
290 2012-01-08  Doug Evans  <dje@google.com>
291
292         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
293         n_type_units.  Rename type_comp_units to all_type_units.
294         All uses updated.
295         (add_signatured_type_cu_to_table): Renamed from
296         add_signatured_type_cu_to_list.  All callers updated.
297
298         * gdbtypes.h (struct cplus_struct_type): Delete member
299         nfn_fields_total.  All uses removed.
300
301 2012-01-06  Doug Evans  <dje@google.com>
302
303         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
304         to top of file.
305         (dwarf2_find_comp_unit): Delete.
306         (process_psymtab_comp_unit): Make result "void".
307         Delete args buffer, info_ptr, buffer_size, and replace with
308         "section".  All callers updated.
309         (dwarf2_build_psymtabs_hard): Simplify.
310
311 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
312             Thiago Jung Bauermann  <bauerman@br.ibm.com>
313
314         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
315         before `struct gdb_exception'.
316         * breakpoint.c (update_global_location_list_nothrow)
317         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
318         * cp-abi.c (value_rtti_type): Likewise.
319         * cp-support.c (cp_validate_operator): Likewise.
320         * infrun.c (insert_exception_resume_breakpoint)
321         (check_exception_resume, keep_going): Likewise.
322         * mi-interp.c (mi_breakpoint_created)
323         (mi_breakpoint_modified): Likewise.
324         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
325         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
326         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
327
328 2012-01-05  Doug Evans  <dje@google.com>
329
330         * dwarf2read.c (statement_prologue): Delete, unused.
331
332         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
333         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
334
335         * dwarf2read.c (comp_unit_header): Delete, unused.
336
337 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
338
339         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
340         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
341
342 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
343
344         * infrun.c (normal_stop): Don't skip calling the normal_stop
345         observers if the thread was doing a multi-step, but stopped for
346         some reason other than stepping.
347
348 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
349
350         * cli/cli-decode.h: Add comments.
351         (CMD_LIST_AMBIGUOUS): Moved to command.h
352         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
353         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
354         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
355         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
356         (add_com, add_com_alias, add_info, add_info_alias)
357         (complete_on_cmdlist, complete_on_enum, help_list): Remove
358         declarations.
359         * command.h: Add and adjust comments.
360         (CMD_LIST_AMBIGUOUS): Moved here.
361         (help_cmd, help_cmd_list): Delete declarations.
362
363 2012-01-04  Doug Evans  <dje@google.com>
364
365         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
366         All callers updated.
367         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
368         Replace all arguments with "per_cu".  All callers updated.
369
370         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
371
372         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
373         New arg "per_cu".  All callers updated.
374
375         Delete #if 0'd out code.
376         * language.c (binop_result_type): Delete.
377         (simple_type, ordered_type, same_type, integral_type): Delete.
378         (numeric_type, character_type, string_type, boolean_type): Delete.
379         (float_type, structured_type): Delete.
380         * language.h: Update.
381
382 2012-01-04  Tom Tromey  <tromey@redhat.com>
383
384         * python/py-value.c (valpy_binop): Initialize 'res_val'.
385
386 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
387
388         * corefile.c (close_exec_file): Delete.
389         (reopen_exec_file): Remove commented out code that seems related
390         to close_exec_file, which is being deleted here.
391         * inferior.h (close_exec_file): Delete.
392         * fork-child.c (fork_inferior): Remove call to fork_inferior.
393
394 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
395
396         * ada-lang.c: #include "cli/cli-utils.h".
397         (get_selections): Use skip_spaces.
398         (ada_get_next_arg): Use skip_spaces and skip_to_space.
399         (catch_ada_exception_command_split): Use skip_spaces.
400         (ada_decode_assert_location): Likewise.
401
402 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
403
404         * linespec.c (decode_line_internal): Check for C++ or Java
405         compound constructs only if the current language is C, C++
406         or Java.
407
408 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
409
410         Revert:
411         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
412                     Joel Brobecker  <brobecker@adacore.com>
413         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
414         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
415         3 times.
416         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
417         fall through into AT_ENTRY_POINT.
418         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
419         DUMMY_ADDR with it.
420         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
421         PPC_INSN_SIZE skip to 3 times.
422
423 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
424
425         * linespec.c (add_minsym): Preserve function descriptors.
426
427 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
428
429         * breakpoint.c (all_locations_are_pending): Consider locations
430         in program spaces executing during startup pending as well.
431
432 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
433
434         Copyright year update in most files of the GDB Project.
435
436 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
437
438         * copyright.sh: Delete.
439         * copyright.py: Rewrite.
440
441 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
442
443         * gnulib/extra/update-copyright: New file, imported from gnulib.
444
445 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
446
447         * README (Copyright and License Notices): New section.
448
449 2012-01-03  Tom Tromey  <tromey@redhat.com>
450
451         PR python/12533:
452         * python/py-value.c (valpy_dereference, valpy_get_address
453         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
454         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
455         (valpy_absolute, valpy_richcompare): Free intermediate values.
456
457 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
458
459         * ada-lang.c: Reformat the copyright notice.
460
461 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
462
463         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
464         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
465         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
466         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
467         Revert this part of:
468         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
469         Build gdb directly from *.o files not using libgdb.a.
470         * Makefile.in (COMMON_OBS): Remove solib-target.o.
471
472 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
473
474         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
475         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
476         Reformat the copyright header.
477
478 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
479
480         Revert this part of:
481         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
482         Remove the gdbtui binary.
483         * gdb.c (main): Remove args.interpreter_p initialization.
484         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
485         * main.h (struct captured_main_args): Remove interpreter_p.
486
487 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
488
489         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
490
491 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
492
493         * top.c (print_gdb_version): Update copyright year.
494
495 2012-01-02  Yao Qi  <yao@codesourcery.com>
496
497         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
498
499 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
500             Joel Brobecker  <brobecker@adacore.com>
501
502         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
503         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
504         3 times.
505         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
506         fall through into AT_ENTRY_POINT.
507         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
508         DUMMY_ADDR with it.
509         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
510         PPC_INSN_SIZE skip to 3 times.
511
512 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
513
514         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
515         the return value.
516         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
517
518 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
519
520         Build gdb directly from *.o files not using libgdb.a.
521         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
522         (COMMON_OBS): Remove solib-target.o.
523         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
524         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
525         (LIBGDB_OBS, libgdb.a): Move it above.
526         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
527         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
528         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
529         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
530         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
531         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
532         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
533         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
534         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
535         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
536         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
537         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
538         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
539         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
540         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
541         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
542         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
543         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
544         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
545         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
546         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
547         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
548         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
549         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
550         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
551         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
552         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
553
554 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
555
556         Remove the gdbtui binary.
557         * .gitignore (/gdbtui): Remove.
558         * Makefile.in (TUI): Remove.
559         (SUBDIR_TUI_OBS): Remove tui-main.o.
560         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
561         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
562         (tui-main.o): Remove.
563         (all_object_files): Remove tui-main.o.
564         * NEWS: New note for the gdbtui removal.
565         * configure: Rebuilt.
566         * configure.ac: No longer add all-tui, clean-tui, install-tui and
567         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
568         CONFIG_UNINSTALL respectively.
569         * gdb.c (main): Remove args.interpreter_p initialization.
570         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
571         * main.h (struct captured_main_args): Remove interpreter_p.
572         * tui/tui-main.c: Remove.
573
574 2012-01-01  Doug Evans  <dje@google.com>
575
576         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
577         (dwarf2_physname, read_import_statement): Ditto.
578         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
579         (process_structure_scope read_subroutine_type): Ditto.
580         (read_typedef, load_partial_dies, read_partial_die): Ditto.
581         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
582         (dwarf2_fetch_die_location_block): Ditto.
583         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
584
585         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
586         All callers updated.
587         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
588         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
589         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
590
591         * dwarf2read.c (load_cu): Move assert to more useful location.
592
593         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
594         All callers updated.
595
596         * dwarf2read.c (dwarf2_per_objfile): Add comment.
597         (dwarf2_elf_names): Minor reformat.
598         (dwarf2_per_cu_data): Tweak comment.
599         (dwarf2_read_section): Fix comment.
600         (create_all_comp_units): Fix comment.
601         (load_full_comp_unit): Fix comment.
602         (process_full_comp_unit): Fix comment.
603         (read_signatured_type): Fix comment.
604
605 For older changes see ChangeLog-2011.
606 \f
607 Local Variables:
608 mode: change-log
609 left-margin: 8
610 fill-column: 74
611 version-control: never
612 coding: utf-8
613 End: