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