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