1 2012-01-24 Pedro Alves <palves@redhat.com>
3 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
5 (remote_notice_new_inferior): If the remote end doesn't support
6 the multiprocess extensions, then the PID is fake.
7 (add_current_inferior_and_thread): New.
8 (remote_start_remote): Use it.
9 (extended_remote_attach_1): Adjust.
10 (extended_remote_create_inferior_1): Use
11 add_current_inferior_and_thread.
13 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
15 Fix watchpoints to be specific for each inferior.
16 * breakpoint.c (watchpoint_in_thread_scope): Verify also
17 current_program_space.
18 * i386-nat.c (i386_inferior_data_cleanup): New.
19 (i386_inferior_data_get): Replace variable inf_data_local by an
21 (i386_use_watchpoints): Initialize i386_inferior_data.
22 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
23 specific iterate_over_lwps.
25 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
27 Fix watchpoints across inferior fork.
28 * amd64-linux-nat.c (update_debug_registers_callback): Update the
29 comment for linux_nat_iterate_watchpoint_lwps.
30 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
31 linux_nat_iterate_watchpoint_lwps.
32 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
33 * i386-linux-nat.c (update_debug_registers_callback): Update the
34 comment for linux_nat_iterate_watchpoint_lwps.
35 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
36 linux_nat_iterate_watchpoint_lwps.
37 (i386_linux_prepare_to_resume): New comment on Linux kernel.
38 * i386-nat.c: Include inferior.h.
40 (i386_inferior_data, struct i386_inferior_data)
41 (i386_inferior_data_get): New.
42 (i386_debug_reg_state): Use i386_inferior_data_get.
43 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
44 (i386_insert_watchpoint, i386_remove_watchpoint)
45 (i386_stopped_data_address, i386_insert_hw_breakpoint)
46 (i386_remove_hw_breakpoint): New variable state, use
47 i386_debug_reg_state instead of DR_MIRROR.
48 * linux-nat.c (delete_lwp): New declaration.
49 (num_lwps): Move here from downwards.
50 (delete_lwp_cleanup): New.
51 (linux_child_follow_fork): Create new child_lp, call
52 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
54 (num_lwps): Move upwards.
55 (linux_nat_iterate_watchpoint_lwps): New.
56 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
57 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
59 2012-01-24 Joel Brobecker <brobecker@adacore.com>
63 2012-01-23 Pedro Alves <palves@redhat.com>
65 * top.c (caution): Rename to ...
67 (show_caution): Rename to ...
68 (show_confirm): ... this.
71 * top.h (caution): Rename to ...
73 * utils.c (internal_vproblem, defaulted_query): Adjust.
75 2012-01-23 Pedro Alves <palves@redhat.com>
77 * top.c (caution): Update comment.
78 (execute_command): Don't consider the current value of `caution'.
80 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
82 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
84 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
86 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
87 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
88 * target.c (target_fileio_pwrite): Remove buffer address from
90 (target_fileio_pread): Likewise.
92 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
94 * NEWS: Document remote "info proc" and "generate-core-file".
96 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
98 * gdbarch.sh (find_memory_regions): New callback.
99 * gdbarch.c, gdbarch.h: Regenerate.
101 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
102 callback before falling back to target method.
104 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
105 (linux_target_install_ops): No longer install it.
107 * linux-tdep.c (linux_find_memory_regions): New function.
108 (linux_init_abi): Install it.
110 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
112 * gdbarch.sh (make_corefile_notes): New architecture callback.
113 * gdbarch.c: Regenerate.
114 * gdbarch.h: Likewise.
116 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
117 before target_make_corefile_notes. If NULL is returned, the
118 target does not support core file generation.
120 * linux-nat.c: Include "linux-tdep.h".
121 (find_signalled_thread, find_stop_signal): Remove.
122 (linux_nat_do_thread_registers): Likewise.
123 (struct linux_nat_corefile_thread_data): Likewise.
124 (linux_nat_corefile_thread_callback): Likewise.
125 (iterate_over_spus): Likewise.
126 (struct linux_spu_corefile_data): Likewise.
127 (linux_spu_corefile_callback): Likewise.
128 (linux_spu_make_corefile_notes): Likewise.
129 (linux_nat_collect_thread_registers): New function.
130 (linux_nat_make_corefile_notes): Replace contents by call to
131 linux_make_corefile_notes passing linux_nat_collect_thread_registers
132 as native-only callback.
134 * linux-tdep.h: Include "bfd.h".
135 (struct regcache): Add forward declaration.
136 (linux_collect_thread_registers_ftype): New typedef.
137 (linux_make_corefile_notes): Add prototype.
138 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
139 "regset.h", and "elf-bfd.h".
140 (find_signalled_thread, find_stop_signal): New functions.
141 (linux_spu_make_corefile_notes): Likewise.
142 (linux_collect_thread_registers): Likewise.
143 (struct linux_corefile_thread_data): New data structure.
144 (linux_corefile_thread_callback): New funcion.
145 (linux_make_corefile_notes): Likewise.
146 (linux_make_corefile_notes_1): Likewise.
147 (linux_init_abi): Install it.
149 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
151 * gdbarch.sh (info_proc): New callback.
152 * gdbarch.c, gdbarch.h: Regenerate.
154 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
155 before falling back to the target info_proc callback.
157 * linux-nat.c: Do not include "cli/cli-utils.h".
158 (linux_nat_info_proc): Remove.
159 (linux_target_install_ops): No longer install it.
161 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
162 (read_mapping): New function.
163 (linux_info_proc): Likewise.
164 (linux_init_abi): Install it.
166 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
168 * defs.h (enum info_proc_what): Moved here from linux-nat.c
169 * infcmd.c: (info_proc_cmd_1): New function.
170 (info_proc_cmd): New function, moved here from equivalent routine
171 orignally in linux-nat.c.
172 (info_proc_cmd_mappings): Likewise.
173 (info_proc_cmd_stat): Likewise.
174 (info_proc_cmd_status): Likewise.
175 (info_proc_cmd_cwd): Likewise.
176 (info_proc_cmd_cmdline): Likewise.
177 (info_proc_cmd_exe): Likewise.
178 (info_proc_cmd_all): Likewise.
179 (_initialize_infcmd): Install "info proc" command and subcommands.
181 * target.h (struct target_ops): Add to_info_proc.
182 (target_info_proc): Add prototype.
183 * target.c (target_info_proc): New function.
185 * procfs.c (procfs_info_proc): Add prototype.
186 (info_proc_cmd): Rename into ...
187 (procfs_info_proc): ... this. Update argument types as appropriate
188 for a to_info_proc implementation. Handle "what" argument.
189 (procfs_target): Install procfs_info_proc.
190 (_initialize_procfs): No longer install "info proc" command.
192 * linux-nat.c: (enum info_proc_what): Remove.
193 (linux_nat_info_proc_cmd_1): Rename into ...
194 (linux_nat_info_proc): ... this. Update argument types as appropriate
195 for a to_info_proc implementation.
196 (linux_nat_info_proc_cmd): Remove.
197 (linux_nat_info_proc_cmd_mappings): Likewise.
198 (linux_nat_info_proc_cmd_stat): Likewise.
199 (linux_nat_info_proc_cmd_status): Likewise.
200 (linux_nat_info_proc_cmd_cwd): Likewise.
201 (linux_nat_info_proc_cmd_cmdline): Likewise.
202 (linux_nat_info_proc_cmd_exe): Likewise.
203 (linux_nat_info_proc_cmd_all): Likewise.
204 (linux_target_install_ops): Install linux_nat_info_proc.
205 (_initialize_linux_nat): No longer install "info proc" command
208 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
210 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
211 * config.in, configure: Regenerate.
213 * target.h (struct target_ops): Add to_fileio_readlink.
214 (target_fileio_readlink): Add prototype.
215 * target.c (target_fileio_readlink): New function.
217 * inf-child.c: Conditionally include <sys/param.h>.
218 (inf_child_fileio_readlink): New function.
219 (inf_child_target): Install it.
221 * remote.c (PACKET_vFile_readlink): New enum value.
222 (remote_hostio_readlink): New function.
223 (init_remote_ops): Install it.
224 (_initialize_remote): Handle vFile:readlink packet type.
226 2012-01-20 Pedro Alves <palves@redhat.com>
227 Ulrich Weigand <ulrich.weigand@linaro.org>
229 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
230 * config.in, configure: Regenerate.
232 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
233 to_fileio_pread, to_fileio_close, to_fileio_unlink.
234 (target_fileio_open): Add prototype.
235 (target_fileio_pwrite): Likewise.
236 (target_fileio_pread): Likewise.
237 (target_fileio_close): Likewise.
238 (target_fileio_unlink): Likewise.
239 (target_fileio_read_alloc): Likewise.
240 (target_fileio_read_stralloc): Likewise.
242 * target.c: Include "gdb/fileio.h".
243 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
244 (default_fileio_target): New function.
245 (target_fileio_open): Likewise.
246 (target_fileio_pwrite): Likewise.
247 (target_fileio_pread): Likewise.
248 (target_fileio_close): Likewise.
249 (target_fileio_unlink): Likewise.
250 (target_fileio_close_cleanup): Likewise.
251 (target_fileio_read_alloc_1): Likewise.
252 (target_fileio_read_alloc): Likewise.
253 (target_fileio_read_stralloc): Likewise.
255 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
256 <fcntl.h>, and <unistd.h>.
257 (inf_child_fileio_open_flags_to_host): New function.
258 (inf_child_errno_to_fileio_error): Likewise.
259 (inf_child_fileio_open): Likewise.
260 (inf_child_fileio_pwrite): Likewise.
261 (inf_child_fileio_pread): Likewise.
262 (inf_child_fileio_close): Likewise.
263 (inf_child_fileio_unlink): Likewise.
264 (inf_child_target): Install to_fileio routines.
266 * remote.c (init_remote_ops): Install to_fileio routines.
268 2012-01-20 Pedro Alves <palves@redhat.com>
269 Ulrich Weigand <ulrich.weigand@linaro.org>
271 * remote.c (remote_multi_process_p): Only check for multi-process
272 protocol feature, do not check for extended protocol.
273 (remote_supports_multi_process): Check for extended protocol here.
274 (set_general_process): Likewise.
275 (extended_remote_kill): Likewise.
276 (remote_pid_to_str): Likewise.
277 (remote_query_supported): Always query multiprocess mode.
279 2012-01-20 Pedro Alves <palves@redhat.com>
280 Ulrich Weigand <ulrich.weigand@linaro.org>
282 * inferior.h (struct inferior): Add fake_pid_p.
283 * inferior.c (exit_inferior_1): Clear fake_pid_p.
284 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
285 magic_null_ptid since the remote side doesn't provide a real PID.
287 2012-01-19 Tom Tromey <tromey@redhat.com>
289 * NEWS: Combine the two Python sections.
291 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
293 * target.h (target_close): Update comment on the target's unpush state.
295 2012-01-19 Pedro Alves <palves@redhat.com>
297 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
298 linux_nat_async directly instead of going through the target
300 * target.c (unpush_target): Close target after unpushing it, not
303 2012-01-19 Gary Benson <gbenson@redhat.com>
305 * mdebugread.c (sort_blocks): Replace integer constants with ones
306 derived from FIRST_LOCAL_BLOCK.
308 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
309 Jan Kratochvil <jan.kratochvil@redhat.com>
312 * symfile.c (find_separate_debug_file): New function.
313 (terminate_after_last_dir_separator): Likewise.
314 (find_separate_debug_file_by_debuglink): Also try realpath.
315 * configure.ac (AC_CHECK_FUNCS): Add lstat.
316 * configure: Regenerate.
317 * config.in: Regenerate.
319 2012-01-18 Doug Evans <dje@google.com>
321 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
322 (main.o): Remove rule.
323 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
324 (--with-sysroot): Rewrite.
325 * configure: Regenerate.
326 * config.in: Regenerate.
328 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
330 * parse.c (initialize_expout): New function.
331 (reallocate_expout): Likewise.
332 (parse_exp_in_context): Use `initialize_expout' and
333 `reallocate_expout' when appropriate.
335 2012-01-18 Pedro Alves <palves@redhat.com>
337 * record.c (struct record_breakpoint, record_breakpoint_p)
338 (record_breakpoints): New.
339 (record_insert_breakpoint, record_remove_breakpoint): Manage
340 record breakpoints list. Only remove breakpoints from the
341 inferior if they had been inserted there in the first place.
343 2012-01-17 Doug Evans <dje@google.com>
345 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
346 if we know we don't have a file name to look for.
348 2012-01-17 Pedro Alves <palves@redhat.com>
350 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
351 the frame's stop reason is UNWIND_UNAVAILABLE.
353 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
355 Fix compilation error.
356 * m2-exp.y (yyerror): Use ANSI C prototype.
358 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
360 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
361 (growbuf_by_size): Likewise.
363 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
364 (modblock): Remove variable (was #if 0'ed).
365 (parse_number): Convert prototype from K&R to ANSI C.
367 * objc-exp.y (parse_number): Likewise.
369 (yylex): Remove #if 0'ed code.
370 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
373 2012-01-16 Tom Tromey <tromey@redhat.com>
376 * symtab.h (compare_filenames_for_search): Declare.
377 * symtab.c (compare_filenames_for_search): New function.
378 (iterate_over_some_symtabs): Use it.
379 * symfile.h (struct quick_symbol_functions)
380 <map_symtabs_matching_filename>: Change spec.
381 * psymtab.c (partial_map_symtabs_matching_filename): Use
382 compare_filenames_for_search. Update for new spec.
383 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
384 compare_filenames_for_search. Update for new spec.
385 * breakpoint.c (clear_command): Use compare_filenames_for_search.
387 2012-01-16 Tom Tromey <tromey@redhat.com>
390 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
391 (struct main_type) <flag_flag_enum>: New field.
392 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
394 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
396 * python/lib/gdb/printing.py (_EnumInstance): New class.
397 (FlagEnumerationPrinter): Likewise.
399 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
401 * breakpoint.c (create_sals_from_address_default): New function.
402 (create_breakpoints_sal_default): Likewise.
403 (decode_linespec_default): Likewise.
404 (is_marker_spec): Removed.
405 (strace_marker_p): New function.
406 (init_breakpoint_sal): Using `strace_marker_p' instead of
408 (create_breakpoint): Call method `create_sals_from_address' from
409 breakpoint_ops, replacing code that created SALs conditionally
410 on the type of the breakpoint. Call method `create_breakpoints_sal',
411 replacing code that created breakpoints conditionally on the type
413 (base_breakpoint_create_sals_from_address): New function.
414 (base_breakpoint_create_breakpoints_sal): Likewise.
415 (base_breakpoint_decode_linespec): Likewise.
416 (base_breakpoint_ops): Add methods
417 `base_breakpoint_create_sals_from_address',
418 `base_breakpoint_create_breakpoints_sal' and
419 `base_breakpoint_decode_linespec'.
420 (bkpt_create_sals_from_address): New function.
421 (bkpt_create_breakpoints_sal): Likewise.
422 (bkpt_decode_linespec): Likewise.
423 (tracepoint_create_sals_from_address): Likewise.
424 (tracepoint_create_breakpoints_sal): Likewise.
425 (tracepoint_decode_linespec): Likewise.
426 (strace_marker_create_sals_from_address): Likewise.
427 (strace_marker_create_breakpoints_sal): Likewise.
428 (strace_marker_decode_linespec): Likewise.
429 (strace_marker_breakpoint_ops): New variable.
430 (addr_string_to_sals): Remove `marker_spec'. Call method
431 `decode_linespec' from breakpoint_ops, replacing code that decoded
432 an address string into a SAL. Use `strace_marker_p' instead of
434 (strace_command): Decide whether we are dealing with a static
435 tracepoint with marker or not. Use the appropriate breakpoint_ops.
436 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
437 * breakpoint.h (linespec_result, linespec_sals): New forward
439 (breakpoint_ops) <create_sals_from_address>,
440 <create_breakpoints_sal>, <decode_linespec>: New methods.
442 2012-01-14 Doug Evans <dje@google.com>
444 * NEWS: Update text for "maint set python print-stack".
445 It is deprecated in gdb 7.4 and deleted in 7.5.
447 2012-01-13 Eli Zaretskii <eliz@gnu.org>
449 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
452 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
454 * configure: Regenerate.
455 * config.in: Regenerate.
457 2012-01-12 Keith Seitz <keiths@redhat.com>
460 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
461 (ANONYMOUS_UNION_NAME): Define.
462 (is_path_expr_parent): New function.
463 (get_path_expr_parent): New function.
464 (is_anonymous_child): New function.
465 (create_child_with_value): If the child is anonymous and without
466 a name, assign an object name to it.
467 (c_describe_child): Use get_path_expr_parent to determine
468 the parent expression.
469 If there field represents an anonymous struct or union and
470 has no name, set an appropriate display name and expression.
471 (cplus_describe_child): Likewise.
473 2012-01-12 Pedro Alves <palves@redhat.com>
475 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
476 available when %ebp is found to be zero (outermost).
478 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
480 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
481 an internal gdb_static_assert.
482 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
484 2012-01-11 Tom Tromey <tromey@redhat.com>
487 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
488 catch" and "catch throw".
490 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
492 * blockframe.c (block_innermost_frame): Start search from selected
493 frame, if present, or otherwise the current frame.
495 * c-exp.y (variable): Update innermost_block for
496 'block COLONCOLON NAME' clause.
497 * m2-exp.y (variable): Ditto.
498 * objc-exp.y (variable): Ditto.
500 2012-01-10 Tom Tromey <tromey@redhat.com>
503 * python/python.c (finish_python_initialization): Set sys.argv.
505 2012-01-10 Doug Evans <dje@google.com>
507 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
508 "want_line_info". All callers updated.
509 (dwarf_decode_lines_1): New function.
510 (handle_DW_AT_stmt_list): Add function comment.
511 New arg "want_line_info". All callers updated.
512 (read_file_scope,read_type_unit_scope): Move comment from
513 handle_DW_AT_stmt_list to here.
515 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
517 Fix regression after libiberty/ update for GCC PR 6057 and others.
518 * c-exp.y (operator) <OPERATOR DELETE>
519 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
520 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
521 (make_builtin_type, make_name): New variable i, add gdb_assert.
522 (operator) <OPERATOR NEW>: Update ARGS to 3.
523 (operator) <OPERATOR DELETE>: Add trailing space.
524 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
525 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
526 * cp-support.c (cp_canonicalize_string): Check NULL from
527 cp_comp_to_string, call warning and return.
529 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
531 Fix duplicate .o files after omitting libbfd.a.
532 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
533 (SFILES): Add corelow.c.
534 (COMMON_OBS): Add corelow.o.
535 (ALLDEPFILES): Remove corelow.c.
536 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
537 * config/alpha/alpha-osf3.mh: Likewise.
538 * config/alpha/fbsd.mh: Likewise.
539 * config/arm/nbsdaout.mh: Likewise.
540 * config/arm/nbsdelf.mh: Likewise.
541 * config/i386/i386gnu.mh: Likewise.
542 * config/ia64/hpux.mh: Likewise.
543 * config/ia64/linux.mh: Likewise.
544 * config/m32r/linux.mh: Likewise.
545 * config/m68k/linux.mh: Likewise.
546 * config/mips/irix5.mh: Likewise.
547 * config/mips/irix6.mh: Likewise.
548 * config/pa/hpux.mh: Likewise.
549 * config/pa/linux.mh: Likewise.
550 * config/powerpc/aix.mh: Likewise.
551 * config/sparc/linux.mh: Likewise.
552 * config/sparc/linux64.mh: Likewise.
553 * config/sparc/sol2.mh: Likewise.
554 * config/vax/vax.mh: Likewise.
555 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
556 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
557 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
558 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
559 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
560 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
561 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
562 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
563 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
564 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
565 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
566 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
567 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
568 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
569 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
570 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
571 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
572 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
573 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
574 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
575 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
576 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
577 corelow.o from gdb_target_obs.
578 * corefile.c (core_target): Update the comment on NULL value.
579 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
580 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
581 MATCHES. Drop YUMMY set on NULL.
582 (core_close): Do not call exit_inferior_silent on zero PID. Do not
583 reclaim CORE_DATA if it is already NULL.
585 2012-01-09 Doug Evans <dje@google.com>
587 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
588 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
590 2012-01-09 Keith Seitz <keiths@redhat.com>
592 * breakpoint.c (wrapper.h): Don't include.
594 2012-01-09 Keith Seitz <keiths@redhat.com>
596 * Makefile.in (SFILES): Remove wrapper.c.
597 (HFILES_NO_SRCDIR): Remove wrapper.h.
598 (COMMON_OBS): Remove wrapper.o.
599 * cli/cli-interp.c: Don't inlude wrapper.h.
600 * corelow.c: Likewise.
601 (core_open): Replace gdb_target_find_new_threads with
602 TRY_CATCH around target_find_new_threads.
603 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
604 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
605 * varobj.c (varobj_create): Likewise for parse_exp_1 and
607 (varobj_set_value): Likewise for evaluate_expression and
609 (install_new_variable): Likewise for value_fetch_lazy.
610 (adjust_value_for_child_access): Likewise for value_ind.
611 (c_describe_child): Likewise for value_subscript and
613 (c_value_of_root): Likewise for evaluate_expression.
617 2012-01-09 Doug Evans <dje@google.com>
619 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
620 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
621 "abfd" args with "section". All callers updated.
622 Error checking code moved ...
623 (error_check_comp_unit_head): ... here. New function.
624 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
625 Delete arg "abfd". New arg "type_offset". All callers updated.
626 (create_debug_types_hash_table): Simplify by using
627 read_and_check_type_unit_head.
629 * parser-defs.h (namecopy): Delete.
630 * parse.c (namecopy, namecopy_size): Move into copy_name.
632 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
634 Partially fix duplicate .o files after omitting libbfd.a.
635 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
636 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
637 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
638 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
639 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
640 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
641 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
643 2012-01-09 Pedro Alves <palves@redhat.com>
645 * MAINTAINERS: Update my email address.
647 2012-01-08 Doug Evans <dje@google.com>
649 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
650 n_type_units. Rename type_comp_units to all_type_units.
652 (add_signatured_type_cu_to_table): Renamed from
653 add_signatured_type_cu_to_list. All callers updated.
655 * gdbtypes.h (struct cplus_struct_type): Delete member
656 nfn_fields_total. All uses removed.
658 2012-01-06 Doug Evans <dje@google.com>
660 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
662 (dwarf2_find_comp_unit): Delete.
663 (process_psymtab_comp_unit): Make result "void".
664 Delete args buffer, info_ptr, buffer_size, and replace with
665 "section". All callers updated.
666 (dwarf2_build_psymtabs_hard): Simplify.
668 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
669 Thiago Jung Bauermann <bauerman@br.ibm.com>
671 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
672 before `struct gdb_exception'.
673 * breakpoint.c (update_global_location_list_nothrow)
674 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
675 * cp-abi.c (value_rtti_type): Likewise.
676 * cp-support.c (cp_validate_operator): Likewise.
677 * infrun.c (insert_exception_resume_breakpoint)
678 (check_exception_resume, keep_going): Likewise.
679 * mi-interp.c (mi_breakpoint_created)
680 (mi_breakpoint_modified): Likewise.
681 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
682 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
683 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
685 2012-01-05 Doug Evans <dje@google.com>
687 * dwarf2read.c (statement_prologue): Delete, unused.
689 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
690 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
692 * dwarf2read.c (comp_unit_header): Delete, unused.
694 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
696 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
697 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
699 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
701 * infrun.c (normal_stop): Don't skip calling the normal_stop
702 observers if the thread was doing a multi-step, but stopped for
703 some reason other than stepping.
705 2012-01-05 Pedro Alves <alves.ped@gmail.com>
707 * cli/cli-decode.h: Add comments.
708 (CMD_LIST_AMBIGUOUS): Moved to command.h
709 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
710 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
711 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
712 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
713 (add_com, add_com_alias, add_info, add_info_alias)
714 (complete_on_cmdlist, complete_on_enum, help_list): Remove
716 * command.h: Add and adjust comments.
717 (CMD_LIST_AMBIGUOUS): Moved here.
718 (help_cmd, help_cmd_list): Delete declarations.
720 2012-01-04 Doug Evans <dje@google.com>
722 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
724 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
725 Replace all arguments with "per_cu". All callers updated.
727 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
729 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
730 New arg "per_cu". All callers updated.
732 Delete #if 0'd out code.
733 * language.c (binop_result_type): Delete.
734 (simple_type, ordered_type, same_type, integral_type): Delete.
735 (numeric_type, character_type, string_type, boolean_type): Delete.
736 (float_type, structured_type): Delete.
737 * language.h: Update.
739 2012-01-04 Tom Tromey <tromey@redhat.com>
741 * python/py-value.c (valpy_binop): Initialize 'res_val'.
743 2012-01-04 Joel Brobecker <brobecker@adacore.com>
745 * corefile.c (close_exec_file): Delete.
746 (reopen_exec_file): Remove commented out code that seems related
747 to close_exec_file, which is being deleted here.
748 * inferior.h (close_exec_file): Delete.
749 * fork-child.c (fork_inferior): Remove call to fork_inferior.
751 2012-01-04 Joel Brobecker <brobecker@adacore.com>
753 * ada-lang.c: #include "cli/cli-utils.h".
754 (get_selections): Use skip_spaces.
755 (ada_get_next_arg): Use skip_spaces and skip_to_space.
756 (catch_ada_exception_command_split): Use skip_spaces.
757 (ada_decode_assert_location): Likewise.
759 2012-01-04 Joel Brobecker <brobecker@adacore.com>
761 * linespec.c (decode_line_internal): Check for C++ or Java
762 compound constructs only if the current language is C, C++
765 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
768 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
769 Joel Brobecker <brobecker@adacore.com>
770 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
771 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
773 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
774 fall through into AT_ENTRY_POINT.
775 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
777 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
778 PPC_INSN_SIZE skip to 3 times.
780 2012-01-04 Joel Brobecker <brobecker@adacore.com>
782 * linespec.c (add_minsym): Preserve function descriptors.
784 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
786 * breakpoint.c (all_locations_are_pending): Consider locations
787 in program spaces executing during startup pending as well.
789 2012-01-04 Joel Brobecker <brobecker@adacore.com>
791 Copyright year update in most files of the GDB Project.
793 2012-01-04 Joel Brobecker <brobecker@adacore.com>
795 * copyright.sh: Delete.
796 * copyright.py: Rewrite.
798 2012-01-04 Joel Brobecker <brobecker@adacore.com>
800 * gnulib/extra/update-copyright: New file, imported from gnulib.
802 2012-01-04 Joel Brobecker <brobecker@adacore.com>
804 * README (Copyright and License Notices): New section.
806 2012-01-03 Tom Tromey <tromey@redhat.com>
809 * python/py-value.c (valpy_dereference, valpy_get_address
810 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
811 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
812 (valpy_absolute, valpy_richcompare): Free intermediate values.
814 2011-01-03 Joel Brobecker <brobecker@adacore.com>
816 * ada-lang.c: Reformat the copyright notice.
818 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
820 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
821 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
822 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
823 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
825 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
826 Build gdb directly from *.o files not using libgdb.a.
827 * Makefile.in (COMMON_OBS): Remove solib-target.o.
829 2012-01-02 Joel Brobecker <brobecker@adacore.com>
831 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
832 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
833 Reformat the copyright header.
835 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
838 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
839 Remove the gdbtui binary.
840 * gdb.c (main): Remove args.interpreter_p initialization.
841 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
842 * main.h (struct captured_main_args): Remove interpreter_p.
844 2012-01-02 Joel Brobecker <brobecker@adacore.com>
846 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
848 2012-01-02 Joel Brobecker <brobecker@adacore.com>
850 * top.c (print_gdb_version): Update copyright year.
852 2012-01-02 Yao Qi <yao@codesourcery.com>
854 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
856 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
857 Joel Brobecker <brobecker@adacore.com>
859 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
860 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
862 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
863 fall through into AT_ENTRY_POINT.
864 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
866 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
867 PPC_INSN_SIZE skip to 3 times.
869 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
871 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
873 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
875 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
877 Build gdb directly from *.o files not using libgdb.a.
878 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
879 (COMMON_OBS): Remove solib-target.o.
880 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
881 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
882 (LIBGDB_OBS, libgdb.a): Move it above.
883 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
884 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
885 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
886 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
887 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
888 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
889 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
890 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
891 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
892 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
893 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
894 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
895 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
896 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
897 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
898 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
899 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
900 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
901 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
902 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
903 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
904 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
905 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
906 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
907 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
908 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
909 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
911 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
913 Remove the gdbtui binary.
914 * .gitignore (/gdbtui): Remove.
915 * Makefile.in (TUI): Remove.
916 (SUBDIR_TUI_OBS): Remove tui-main.o.
917 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
918 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
919 (tui-main.o): Remove.
920 (all_object_files): Remove tui-main.o.
921 * NEWS: New note for the gdbtui removal.
922 * configure: Rebuilt.
923 * configure.ac: No longer add all-tui, clean-tui, install-tui and
924 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
925 CONFIG_UNINSTALL respectively.
926 * gdb.c (main): Remove args.interpreter_p initialization.
927 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
928 * main.h (struct captured_main_args): Remove interpreter_p.
929 * tui/tui-main.c: Remove.
931 2012-01-01 Doug Evans <dje@google.com>
933 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
934 (dwarf2_physname, read_import_statement): Ditto.
935 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
936 (process_structure_scope read_subroutine_type): Ditto.
937 (read_typedef, load_partial_dies, read_partial_die): Ditto.
938 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
939 (dwarf2_fetch_die_location_block): Ditto.
940 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
942 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
944 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
945 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
946 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
948 * dwarf2read.c (load_cu): Move assert to more useful location.
950 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
953 * dwarf2read.c (dwarf2_per_objfile): Add comment.
954 (dwarf2_elf_names): Minor reformat.
955 (dwarf2_per_cu_data): Tweak comment.
956 (dwarf2_read_section): Fix comment.
957 (create_all_comp_units): Fix comment.
958 (load_full_comp_unit): Fix comment.
959 (process_full_comp_unit): Fix comment.
960 (read_signatured_type): Fix comment.
962 For older changes see ChangeLog-2011.
968 version-control: never