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