* dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
[binutils-gdb.git] / gdb / ChangeLog
1 2012-01-08 Doug Evans <dje@google.com>
2
3 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
4 n_type_units. Rename type_comp_units to all_type_units.
5 All uses updated.
6 (add_signatured_type_cu_to_table): Renamed from
7 add_signatured_type_cu_to_list. All callers updated.
8
9 * gdbtypes.h (struct cplus_struct_type): Delete member
10 nfn_fields_total. All uses removed.
11
12 2012-01-06 Doug Evans <dje@google.com>
13
14 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
15 to top of file.
16 (dwarf2_find_comp_unit): Delete.
17 (process_psymtab_comp_unit): Make result "void".
18 Delete args buffer, info_ptr, buffer_size, and replace with
19 "section". All callers updated.
20 (dwarf2_build_psymtabs_hard): Simplify.
21
22 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
23 Thiago Jung Bauermann <bauerman@br.ibm.com>
24
25 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
26 before `struct gdb_exception'.
27 * breakpoint.c (update_global_location_list_nothrow)
28 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
29 * cp-abi.c (value_rtti_type): Likewise.
30 * cp-support.c (cp_validate_operator): Likewise.
31 * infrun.c (insert_exception_resume_breakpoint)
32 (check_exception_resume, keep_going): Likewise.
33 * mi-interp.c (mi_breakpoint_created)
34 (mi_breakpoint_modified): Likewise.
35 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
36 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
37 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
38
39 2012-01-05 Doug Evans <dje@google.com>
40
41 * dwarf2read.c (statement_prologue): Delete, unused.
42
43 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
44 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
45
46 * dwarf2read.c (comp_unit_header): Delete, unused.
47
48 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
49
50 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
51 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
52
53 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
54
55 * infrun.c (normal_stop): Don't skip calling the normal_stop
56 observers if the thread was doing a multi-step, but stopped for
57 some reason other than stepping.
58
59 2012-01-05 Pedro Alves <alves.ped@gmail.com>
60
61 * cli/cli-decode.h: Add comments.
62 (CMD_LIST_AMBIGUOUS): Moved to command.h
63 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
64 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
65 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
66 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
67 (add_com, add_com_alias, add_info, add_info_alias)
68 (complete_on_cmdlist, complete_on_enum, help_list): Remove
69 declarations.
70 * command.h: Add and adjust comments.
71 (CMD_LIST_AMBIGUOUS): Moved here.
72 (help_cmd, help_cmd_list): Delete declarations.
73
74 2012-01-04 Doug Evans <dje@google.com>
75
76 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
77 All callers updated.
78 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
79 Replace all arguments with "per_cu". All callers updated.
80
81 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
82
83 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
84 New arg "per_cu". All callers updated.
85
86 Delete #if 0'd out code.
87 * language.c (binop_result_type): Delete.
88 (simple_type, ordered_type, same_type, integral_type): Delete.
89 (numeric_type, character_type, string_type, boolean_type): Delete.
90 (float_type, structured_type): Delete.
91 * language.h: Update.
92
93 2012-01-04 Tom Tromey <tromey@redhat.com>
94
95 * python/py-value.c (valpy_binop): Initialize 'res_val'.
96
97 2012-01-04 Joel Brobecker <brobecker@adacore.com>
98
99 * corefile.c (close_exec_file): Delete.
100 (reopen_exec_file): Remove commented out code that seems related
101 to close_exec_file, which is being deleted here.
102 * inferior.h (close_exec_file): Delete.
103 * fork-child.c (fork_inferior): Remove call to fork_inferior.
104
105 2012-01-04 Joel Brobecker <brobecker@adacore.com>
106
107 * ada-lang.c: #include "cli/cli-utils.h".
108 (get_selections): Use skip_spaces.
109 (ada_get_next_arg): Use skip_spaces and skip_to_space.
110 (catch_ada_exception_command_split): Use skip_spaces.
111 (ada_decode_assert_location): Likewise.
112
113 2012-01-04 Joel Brobecker <brobecker@adacore.com>
114
115 * linespec.c (decode_line_internal): Check for C++ or Java
116 compound constructs only if the current language is C, C++
117 or Java.
118
119 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
120
121 Revert:
122 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
123 Joel Brobecker <brobecker@adacore.com>
124 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
125 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
126 3 times.
127 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
128 fall through into AT_ENTRY_POINT.
129 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
130 DUMMY_ADDR with it.
131 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
132 PPC_INSN_SIZE skip to 3 times.
133
134 2012-01-04 Joel Brobecker <brobecker@adacore.com>
135
136 * linespec.c (add_minsym): Preserve function descriptors.
137
138 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
139
140 * breakpoint.c (all_locations_are_pending): Consider locations
141 in program spaces executing during startup pending as well.
142
143 2012-01-04 Joel Brobecker <brobecker@adacore.com>
144
145 Copyright year update in most files of the GDB Project.
146
147 2012-01-04 Joel Brobecker <brobecker@adacore.com>
148
149 * copyright.sh: Delete.
150 * copyright.py: Rewrite.
151
152 2012-01-04 Joel Brobecker <brobecker@adacore.com>
153
154 * gnulib/extra/update-copyright: New file, imported from gnulib.
155
156 2012-01-04 Joel Brobecker <brobecker@adacore.com>
157
158 * README (Copyright and License Notices): New section.
159
160 2012-01-03 Tom Tromey <tromey@redhat.com>
161
162 PR python/12533:
163 * python/py-value.c (valpy_dereference, valpy_get_address
164 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
165 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
166 (valpy_absolute, valpy_richcompare): Free intermediate values.
167
168 2011-01-03 Joel Brobecker <brobecker@adacore.com>
169
170 * ada-lang.c: Reformat the copyright notice.
171
172 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
173
174 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
175 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
176 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
177 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
178 Revert this part of:
179 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
180 Build gdb directly from *.o files not using libgdb.a.
181 * Makefile.in (COMMON_OBS): Remove solib-target.o.
182
183 2012-01-02 Joel Brobecker <brobecker@adacore.com>
184
185 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
186 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
187 Reformat the copyright header.
188
189 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
190
191 Revert this part of:
192 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
193 Remove the gdbtui binary.
194 * gdb.c (main): Remove args.interpreter_p initialization.
195 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
196 * main.h (struct captured_main_args): Remove interpreter_p.
197
198 2012-01-02 Joel Brobecker <brobecker@adacore.com>
199
200 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
201
202 2012-01-02 Joel Brobecker <brobecker@adacore.com>
203
204 * top.c (print_gdb_version): Update copyright year.
205
206 2012-01-02 Yao Qi <yao@codesourcery.com>
207
208 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
209
210 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
211 Joel Brobecker <brobecker@adacore.com>
212
213 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
214 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
215 3 times.
216 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
217 fall through into AT_ENTRY_POINT.
218 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
219 DUMMY_ADDR with it.
220 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
221 PPC_INSN_SIZE skip to 3 times.
222
223 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
224
225 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
226 the return value.
227 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
228
229 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
230
231 Build gdb directly from *.o files not using libgdb.a.
232 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
233 (COMMON_OBS): Remove solib-target.o.
234 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
235 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
236 (LIBGDB_OBS, libgdb.a): Move it above.
237 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
238 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
239 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
240 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
241 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
242 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
243 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
244 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
245 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
246 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
247 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
248 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
249 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
250 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
251 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
252 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
253 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
254 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
255 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
256 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
257 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
258 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
259 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
260 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
261 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
262 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
263 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
264
265 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
266
267 Remove the gdbtui binary.
268 * .gitignore (/gdbtui): Remove.
269 * Makefile.in (TUI): Remove.
270 (SUBDIR_TUI_OBS): Remove tui-main.o.
271 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
272 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
273 (tui-main.o): Remove.
274 (all_object_files): Remove tui-main.o.
275 * NEWS: New note for the gdbtui removal.
276 * configure: Rebuilt.
277 * configure.ac: No longer add all-tui, clean-tui, install-tui and
278 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
279 CONFIG_UNINSTALL respectively.
280 * gdb.c (main): Remove args.interpreter_p initialization.
281 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
282 * main.h (struct captured_main_args): Remove interpreter_p.
283 * tui/tui-main.c: Remove.
284
285 2012-01-01 Doug Evans <dje@google.com>
286
287 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
288 (dwarf2_physname, read_import_statement): Ditto.
289 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
290 (process_structure_scope read_subroutine_type): Ditto.
291 (read_typedef, load_partial_dies, read_partial_die): Ditto.
292 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
293 (dwarf2_fetch_die_location_block): Ditto.
294 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
295
296 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
297 All callers updated.
298 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
299 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
300 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
301
302 * dwarf2read.c (load_cu): Move assert to more useful location.
303
304 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
305 All callers updated.
306
307 * dwarf2read.c (dwarf2_per_objfile): Add comment.
308 (dwarf2_elf_names): Minor reformat.
309 (dwarf2_per_cu_data): Tweak comment.
310 (dwarf2_read_section): Fix comment.
311 (create_all_comp_units): Fix comment.
312 (load_full_comp_unit): Fix comment.
313 (process_full_comp_unit): Fix comment.
314 (read_signatured_type): Fix comment.
315
316 For older changes see ChangeLog-2011.
317 \f
318 Local Variables:
319 mode: change-log
320 left-margin: 8
321 fill-column: 74
322 version-control: never
323 coding: utf-8
324 End: