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