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