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