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