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