1 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Code cleanup: Make 1440 bytes of data segment read-only.
4 * arch-utils.c (endian_enum): Make it const char *const [].
5 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7 * breakpoint.c (always_inserted_enums): Likewise.
8 * cli/cli-cmds.c (script_ext_enums): Likewise.
9 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10 enumlist parameter const char *const *.
11 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
13 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
14 parameter const char *const *.
15 * cris-tdep.c (cris_modes): Make it const char *const [].
16 * filesystem.c (target_file_system_kinds): Likewise.
17 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
18 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
19 (can_use_displaced_stepping_enum, scheduler_enums)
20 (exec_direction_names): Likewise.
21 * language.c (_initialize_language): Make the type_or_range_names and
22 case_sensitive_names variables const char *const [].
23 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
24 * python/python.c (python_excp_enums): Likewise.
25 * remote.c (interrupt_sequence_modes): Likewise.
26 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
27 * serial.c (logbase_enums): Likewise.
28 * sh-tdep.c (sh_cc_enum): Likewise.
29 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
31 * symtab.c (multiple_symbols_modes): Likewise.
32 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
34 * utils.c (internal_problem_modes): Likewise.
36 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
38 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
39 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
42 2012-01-27 Doug Evans <dje@google.com>
44 * configure.ac (with_python): Fix absolute path handling for win32.
45 * configure: Regenerate.
47 2012-01-26 Doug Evans <dje@google.com>
49 * symtab.c: Whitespace cleanup, no code changes.
51 * symtab.c (lookup_symbol_in_language): Improve comment.
52 (lookup_symbol_aux): Fix comment.
54 * psymtab.c (add_psymbol_to_list): Result is now "void".
55 * psympriv.h (add_psymbol_to_list): Update.
57 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
59 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
61 Do not open script filenames twice.
62 * cli/cli-cmds.c (source_script_from_stream): Pass to
63 source_python_script also STREAM.
64 * python/py-auto-load.c (source_section_scripts): Pass to
65 source_python_script_for_objfile also STREAM.
66 (auto_load_objfile_script): Pass to source_python_script_for_objfile
68 * python/python-internal.h (source_python_script_for_objfile): New
69 parameter file, rename parameter file to filename.
70 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
71 instead if !_WIN32. Update the function comment.
72 (source_python_script, source_python_script_for_objfile)
73 (source_python_script): New parameter file, rename parameter file to
74 filename. Pass FILENAME to python_run_simple_file.
75 * python/python.h (source_python_script): New parameter file, rename
76 parameter file to filename.
78 2012-01-26 Pedro Alves <palves@redhat.com>
80 * corelow.c (core_has_fake_pid): Delete.
81 (core_close): Delete references to `core_has_fake_pid'.
82 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
83 (core_open): Delete references to `core_has_fake_pid'.
84 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
87 2012-01-26 Joel Brobecker <brobecker@adacore.com>
89 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
90 Remove language parameter from name_matcher. Adjust the comment.
91 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
92 Remove language parameter.
93 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
94 * linespec.c (iterate_name_matcher): Likewise.
95 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
96 name_matcher. Adjust call accordingly.
97 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
98 (maintenance_check_symtabs): Adjust type of parameter "fun".
99 * psymtab.h (maintenance_check_symtabs): Likewise.
101 2012-01-26 Joel Brobecker <brobecker@adacore.com>
103 * language.h (symbol_name_match_p_ftype): New typedef.
104 (struct language_defn): Replace field la_symbol_name_compare
105 by la_get_symbol_name_match_p.
106 * ada-lang.c (ada_get_symbol_name_match_p): New function.
107 (ada_language_defn): Use it.
108 * linespec.c (struct symbol_matcher_data): New type.
109 (iterate_name_matcher): Rewrite.
110 (iterate_over_all_matching_symtabs): Pass a pointer to
111 a symbol_matcher_data struct to expand_symtabs_matching
112 instead of just the lookup name.
113 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
114 opencl-lang.c, p-lang.c, language.c: Delete field
115 la_symbol_name_compare, and replace by NULL for new field
116 la_get_symbol_name_match_p.
117 * symfile.h (struct quick_symbol_functions): Update comment.
119 2012-01-25 Tom Tromey <tromey@redhat.com>
121 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
124 2012-01-24 Tom Tromey <tromey@redhat.com>
127 * solib.c (update_solib_list): Update the program space's
128 added_solibs and deleted_solibs fields.
129 * progspace.h (struct program_space) <added_solibs,
130 deleted_solibs>: New fields.
131 (clear_program_space_solib_cache): Declare.
132 * progspace.c (release_program_space): Call
133 clear_program_space_solib_cache.
134 (clear_program_space_solib_cache): New function.
135 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
136 bpstat_stop_status. Use handle_solib_event.
137 * breakpoint.c: Include gdb_regex.h.
138 (print_solib_event): New function.
139 (bpstat_print): Use print_solib_event.
140 (bpstat_stop_status): Add special case for bp_shlib_event.
141 (handle_solib_event): New function.
142 (bpstat_what): Use handle_solib_event.
143 (struct solib_catchpoint): New.
144 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
145 (breakpoint_hit_catch_solib, check_status_catch_solib)
146 (print_it_catch_solib, print_one_catch_solib)
147 (print_mention_catch_solib, print_recreate_catch_solib): New
149 (catch_solib_breakpoint_ops): New global.
150 (catch_load_or_unload, catch_load_command_1)
151 (catch_unload_command_1): New functions.
152 (internal_bkpt_check_status): Add special case for
154 (internal_bkpt_print_it): Use print_solib_event.
155 (initialize_breakpoint_ops): Initialize
156 catch_solib_breakpoint_ops.
157 (_initialize_breakpoint): Register "catch load" and "catch
159 * breakpoint.h (handle_solib_event): Declare.
160 * NEWS: Add entry for "catch load" and "catch unload".
162 2012-01-24 Tom Tromey <tromey@redhat.com>
164 * ada-lang.c: Include gdb_vecs.h.
165 * charset.c: Include gdb_vecs.h.
166 * tracepoint.h: Include gdb_vecs.h.
167 * gdb_vecs.h: New file.
169 2012-01-24 Pedro Alves <pedro@codesourcery.com>
171 * breakpoint.c (breakpoint_hit_catch_fork)
172 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
173 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
174 * infrun.c (inferior_has_forked, inferior_has_vforked)
175 (inferior_has_execd, inferior_has_called_syscall): Delete.
176 (handle_syscall_event): Get syscall_number from the execution
177 control state's wait status.
178 (wait_for_inferior): Don't clear syscall_number.
180 2012-01-24 Pedro Alves <palves@redhat.com>
182 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
183 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
184 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
185 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
187 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
188 false for events other than TARGET_SIGNAL_TRAP.
189 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
191 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
192 events other than TARGET_SIGNAL_TRAP.
193 (tracepoint_breakpoint_hit): Add `ws' parameter.
194 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
196 (bpstat_stop_status): Same.
197 (pc_at_non_inline_function): Same.
198 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
199 to pass the current event's waitstatus to bpstat_stop_status
200 and pc_at_non_inline_function.
202 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
205 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
206 Update the function comment for it.
207 (source_script_with_search): Call make_cleanup_fclose for STREAM.
208 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
211 2012-01-24 Pedro Alves <palves@redhat.com>
213 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
214 outside `bs->stop' block.
215 (bpstat_what): Rework bp_shlib_event handling.
216 (internal_bkpt_check_status): If the breakpoint is a
217 bp_shlib_event, then set bs->stop and bs->print if
218 stop_on_solib_events is set.
220 2012-01-24 Gary Benson <gbenson@redhat.com>
222 Delete #if 0'd out code.
223 * stack.c (print_frame_label_vars): Remove.
224 (catch_info): Likewise.
225 (_initialize_stack): Remove "info catch" command.
226 * NEWS: Mention the above.
228 2012-01-24 Pedro Alves <palves@redhat.com>
230 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
232 (remote_notice_new_inferior): If the remote end doesn't support
233 the multiprocess extensions, then the PID is fake.
234 (add_current_inferior_and_thread): New.
235 (remote_start_remote): Use it.
236 (extended_remote_attach_1): Adjust.
237 (extended_remote_create_inferior_1): Use
238 add_current_inferior_and_thread.
240 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
242 Fix watchpoints to be specific for each inferior.
243 * breakpoint.c (watchpoint_in_thread_scope): Verify also
244 current_program_space.
245 * i386-nat.c (i386_inferior_data_cleanup): New.
246 (i386_inferior_data_get): Replace variable inf_data_local by an
248 (i386_use_watchpoints): Initialize i386_inferior_data.
249 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
250 specific iterate_over_lwps.
252 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
254 Fix watchpoints across inferior fork.
255 * amd64-linux-nat.c (update_debug_registers_callback): Update the
256 comment for linux_nat_iterate_watchpoint_lwps.
257 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
258 linux_nat_iterate_watchpoint_lwps.
259 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
260 * i386-linux-nat.c (update_debug_registers_callback): Update the
261 comment for linux_nat_iterate_watchpoint_lwps.
262 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
263 linux_nat_iterate_watchpoint_lwps.
264 (i386_linux_prepare_to_resume): New comment on Linux kernel.
265 * i386-nat.c: Include inferior.h.
267 (i386_inferior_data, struct i386_inferior_data)
268 (i386_inferior_data_get): New.
269 (i386_debug_reg_state): Use i386_inferior_data_get.
270 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
271 (i386_insert_watchpoint, i386_remove_watchpoint)
272 (i386_stopped_data_address, i386_insert_hw_breakpoint)
273 (i386_remove_hw_breakpoint): New variable state, use
274 i386_debug_reg_state instead of DR_MIRROR.
275 * linux-nat.c (delete_lwp): New declaration.
276 (num_lwps): Move here from downwards.
277 (delete_lwp_cleanup): New.
278 (linux_child_follow_fork): Create new child_lp, call
279 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
281 (num_lwps): Move upwards.
282 (linux_nat_iterate_watchpoint_lwps): New.
283 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
284 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
286 2012-01-24 Joel Brobecker <brobecker@adacore.com>
290 2012-01-23 Pedro Alves <palves@redhat.com>
292 * top.c (caution): Rename to ...
294 (show_caution): Rename to ...
295 (show_confirm): ... this.
296 (quit_cover): Adjust.
298 * top.h (caution): Rename to ...
300 * utils.c (internal_vproblem, defaulted_query): Adjust.
302 2012-01-23 Pedro Alves <palves@redhat.com>
304 * top.c (caution): Update comment.
305 (execute_command): Don't consider the current value of `caution'.
307 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
309 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
311 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
313 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
314 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
315 * target.c (target_fileio_pwrite): Remove buffer address from
317 (target_fileio_pread): Likewise.
319 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
321 * NEWS: Document remote "info proc" and "generate-core-file".
323 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
325 * gdbarch.sh (find_memory_regions): New callback.
326 * gdbarch.c, gdbarch.h: Regenerate.
328 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
329 callback before falling back to target method.
331 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
332 (linux_target_install_ops): No longer install it.
334 * linux-tdep.c (linux_find_memory_regions): New function.
335 (linux_init_abi): Install it.
337 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
339 * gdbarch.sh (make_corefile_notes): New architecture callback.
340 * gdbarch.c: Regenerate.
341 * gdbarch.h: Likewise.
343 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
344 before target_make_corefile_notes. If NULL is returned, the
345 target does not support core file generation.
347 * linux-nat.c: Include "linux-tdep.h".
348 (find_signalled_thread, find_stop_signal): Remove.
349 (linux_nat_do_thread_registers): Likewise.
350 (struct linux_nat_corefile_thread_data): Likewise.
351 (linux_nat_corefile_thread_callback): Likewise.
352 (iterate_over_spus): Likewise.
353 (struct linux_spu_corefile_data): Likewise.
354 (linux_spu_corefile_callback): Likewise.
355 (linux_spu_make_corefile_notes): Likewise.
356 (linux_nat_collect_thread_registers): New function.
357 (linux_nat_make_corefile_notes): Replace contents by call to
358 linux_make_corefile_notes passing linux_nat_collect_thread_registers
359 as native-only callback.
361 * linux-tdep.h: Include "bfd.h".
362 (struct regcache): Add forward declaration.
363 (linux_collect_thread_registers_ftype): New typedef.
364 (linux_make_corefile_notes): Add prototype.
365 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
366 "regset.h", and "elf-bfd.h".
367 (find_signalled_thread, find_stop_signal): New functions.
368 (linux_spu_make_corefile_notes): Likewise.
369 (linux_collect_thread_registers): Likewise.
370 (struct linux_corefile_thread_data): New data structure.
371 (linux_corefile_thread_callback): New funcion.
372 (linux_make_corefile_notes): Likewise.
373 (linux_make_corefile_notes_1): Likewise.
374 (linux_init_abi): Install it.
376 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
378 * gdbarch.sh (info_proc): New callback.
379 * gdbarch.c, gdbarch.h: Regenerate.
381 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
382 before falling back to the target info_proc callback.
384 * linux-nat.c: Do not include "cli/cli-utils.h".
385 (linux_nat_info_proc): Remove.
386 (linux_target_install_ops): No longer install it.
388 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
389 (read_mapping): New function.
390 (linux_info_proc): Likewise.
391 (linux_init_abi): Install it.
393 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
395 * defs.h (enum info_proc_what): Moved here from linux-nat.c
396 * infcmd.c: (info_proc_cmd_1): New function.
397 (info_proc_cmd): New function, moved here from equivalent routine
398 orignally in linux-nat.c.
399 (info_proc_cmd_mappings): Likewise.
400 (info_proc_cmd_stat): Likewise.
401 (info_proc_cmd_status): Likewise.
402 (info_proc_cmd_cwd): Likewise.
403 (info_proc_cmd_cmdline): Likewise.
404 (info_proc_cmd_exe): Likewise.
405 (info_proc_cmd_all): Likewise.
406 (_initialize_infcmd): Install "info proc" command and subcommands.
408 * target.h (struct target_ops): Add to_info_proc.
409 (target_info_proc): Add prototype.
410 * target.c (target_info_proc): New function.
412 * procfs.c (procfs_info_proc): Add prototype.
413 (info_proc_cmd): Rename into ...
414 (procfs_info_proc): ... this. Update argument types as appropriate
415 for a to_info_proc implementation. Handle "what" argument.
416 (procfs_target): Install procfs_info_proc.
417 (_initialize_procfs): No longer install "info proc" command.
419 * linux-nat.c: (enum info_proc_what): Remove.
420 (linux_nat_info_proc_cmd_1): Rename into ...
421 (linux_nat_info_proc): ... this. Update argument types as appropriate
422 for a to_info_proc implementation.
423 (linux_nat_info_proc_cmd): Remove.
424 (linux_nat_info_proc_cmd_mappings): Likewise.
425 (linux_nat_info_proc_cmd_stat): Likewise.
426 (linux_nat_info_proc_cmd_status): Likewise.
427 (linux_nat_info_proc_cmd_cwd): Likewise.
428 (linux_nat_info_proc_cmd_cmdline): Likewise.
429 (linux_nat_info_proc_cmd_exe): Likewise.
430 (linux_nat_info_proc_cmd_all): Likewise.
431 (linux_target_install_ops): Install linux_nat_info_proc.
432 (_initialize_linux_nat): No longer install "info proc" command
435 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
437 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
438 * config.in, configure: Regenerate.
440 * target.h (struct target_ops): Add to_fileio_readlink.
441 (target_fileio_readlink): Add prototype.
442 * target.c (target_fileio_readlink): New function.
444 * inf-child.c: Conditionally include <sys/param.h>.
445 (inf_child_fileio_readlink): New function.
446 (inf_child_target): Install it.
448 * remote.c (PACKET_vFile_readlink): New enum value.
449 (remote_hostio_readlink): New function.
450 (init_remote_ops): Install it.
451 (_initialize_remote): Handle vFile:readlink packet type.
453 2012-01-20 Pedro Alves <palves@redhat.com>
454 Ulrich Weigand <ulrich.weigand@linaro.org>
456 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
457 * config.in, configure: Regenerate.
459 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
460 to_fileio_pread, to_fileio_close, to_fileio_unlink.
461 (target_fileio_open): Add prototype.
462 (target_fileio_pwrite): Likewise.
463 (target_fileio_pread): Likewise.
464 (target_fileio_close): Likewise.
465 (target_fileio_unlink): Likewise.
466 (target_fileio_read_alloc): Likewise.
467 (target_fileio_read_stralloc): Likewise.
469 * target.c: Include "gdb/fileio.h".
470 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
471 (default_fileio_target): New function.
472 (target_fileio_open): Likewise.
473 (target_fileio_pwrite): Likewise.
474 (target_fileio_pread): Likewise.
475 (target_fileio_close): Likewise.
476 (target_fileio_unlink): Likewise.
477 (target_fileio_close_cleanup): Likewise.
478 (target_fileio_read_alloc_1): Likewise.
479 (target_fileio_read_alloc): Likewise.
480 (target_fileio_read_stralloc): Likewise.
482 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
483 <fcntl.h>, and <unistd.h>.
484 (inf_child_fileio_open_flags_to_host): New function.
485 (inf_child_errno_to_fileio_error): Likewise.
486 (inf_child_fileio_open): Likewise.
487 (inf_child_fileio_pwrite): Likewise.
488 (inf_child_fileio_pread): Likewise.
489 (inf_child_fileio_close): Likewise.
490 (inf_child_fileio_unlink): Likewise.
491 (inf_child_target): Install to_fileio routines.
493 * remote.c (init_remote_ops): Install to_fileio routines.
495 2012-01-20 Pedro Alves <palves@redhat.com>
496 Ulrich Weigand <ulrich.weigand@linaro.org>
498 * remote.c (remote_multi_process_p): Only check for multi-process
499 protocol feature, do not check for extended protocol.
500 (remote_supports_multi_process): Check for extended protocol here.
501 (set_general_process): Likewise.
502 (extended_remote_kill): Likewise.
503 (remote_pid_to_str): Likewise.
504 (remote_query_supported): Always query multiprocess mode.
506 2012-01-20 Pedro Alves <palves@redhat.com>
507 Ulrich Weigand <ulrich.weigand@linaro.org>
509 * inferior.h (struct inferior): Add fake_pid_p.
510 * inferior.c (exit_inferior_1): Clear fake_pid_p.
511 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
512 magic_null_ptid since the remote side doesn't provide a real PID.
514 2012-01-19 Tom Tromey <tromey@redhat.com>
516 * NEWS: Combine the two Python sections.
518 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
520 * target.h (target_close): Update comment on the target's unpush state.
522 2012-01-19 Pedro Alves <palves@redhat.com>
524 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
525 linux_nat_async directly instead of going through the target
527 * target.c (unpush_target): Close target after unpushing it, not
530 2012-01-19 Gary Benson <gbenson@redhat.com>
532 * mdebugread.c (sort_blocks): Replace integer constants with ones
533 derived from FIRST_LOCAL_BLOCK.
535 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
536 Jan Kratochvil <jan.kratochvil@redhat.com>
539 * symfile.c (find_separate_debug_file): New function.
540 (terminate_after_last_dir_separator): Likewise.
541 (find_separate_debug_file_by_debuglink): Also try realpath.
542 * configure.ac (AC_CHECK_FUNCS): Add lstat.
543 * configure: Regenerate.
544 * config.in: Regenerate.
546 2012-01-18 Doug Evans <dje@google.com>
548 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
549 (main.o): Remove rule.
550 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
551 (--with-sysroot): Rewrite.
552 * configure: Regenerate.
553 * config.in: Regenerate.
555 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
557 * parse.c (initialize_expout): New function.
558 (reallocate_expout): Likewise.
559 (parse_exp_in_context): Use `initialize_expout' and
560 `reallocate_expout' when appropriate.
562 2012-01-18 Pedro Alves <palves@redhat.com>
564 * record.c (struct record_breakpoint, record_breakpoint_p)
565 (record_breakpoints): New.
566 (record_insert_breakpoint, record_remove_breakpoint): Manage
567 record breakpoints list. Only remove breakpoints from the
568 inferior if they had been inserted there in the first place.
570 2012-01-17 Doug Evans <dje@google.com>
572 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
573 if we know we don't have a file name to look for.
575 2012-01-17 Pedro Alves <palves@redhat.com>
577 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
578 the frame's stop reason is UNWIND_UNAVAILABLE.
580 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
582 Fix compilation error.
583 * m2-exp.y (yyerror): Use ANSI C prototype.
585 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
587 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
588 (growbuf_by_size): Likewise.
590 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
591 (modblock): Remove variable (was #if 0'ed).
592 (parse_number): Convert prototype from K&R to ANSI C.
594 * objc-exp.y (parse_number): Likewise.
596 (yylex): Remove #if 0'ed code.
597 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
600 2012-01-16 Tom Tromey <tromey@redhat.com>
603 * symtab.h (compare_filenames_for_search): Declare.
604 * symtab.c (compare_filenames_for_search): New function.
605 (iterate_over_some_symtabs): Use it.
606 * symfile.h (struct quick_symbol_functions)
607 <map_symtabs_matching_filename>: Change spec.
608 * psymtab.c (partial_map_symtabs_matching_filename): Use
609 compare_filenames_for_search. Update for new spec.
610 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
611 compare_filenames_for_search. Update for new spec.
612 * breakpoint.c (clear_command): Use compare_filenames_for_search.
614 2012-01-16 Tom Tromey <tromey@redhat.com>
617 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
618 (struct main_type) <flag_flag_enum>: New field.
619 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
621 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
623 * python/lib/gdb/printing.py (_EnumInstance): New class.
624 (FlagEnumerationPrinter): Likewise.
626 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
628 * breakpoint.c (create_sals_from_address_default): New function.
629 (create_breakpoints_sal_default): Likewise.
630 (decode_linespec_default): Likewise.
631 (is_marker_spec): Removed.
632 (strace_marker_p): New function.
633 (init_breakpoint_sal): Using `strace_marker_p' instead of
635 (create_breakpoint): Call method `create_sals_from_address' from
636 breakpoint_ops, replacing code that created SALs conditionally
637 on the type of the breakpoint. Call method `create_breakpoints_sal',
638 replacing code that created breakpoints conditionally on the type
640 (base_breakpoint_create_sals_from_address): New function.
641 (base_breakpoint_create_breakpoints_sal): Likewise.
642 (base_breakpoint_decode_linespec): Likewise.
643 (base_breakpoint_ops): Add methods
644 `base_breakpoint_create_sals_from_address',
645 `base_breakpoint_create_breakpoints_sal' and
646 `base_breakpoint_decode_linespec'.
647 (bkpt_create_sals_from_address): New function.
648 (bkpt_create_breakpoints_sal): Likewise.
649 (bkpt_decode_linespec): Likewise.
650 (tracepoint_create_sals_from_address): Likewise.
651 (tracepoint_create_breakpoints_sal): Likewise.
652 (tracepoint_decode_linespec): Likewise.
653 (strace_marker_create_sals_from_address): Likewise.
654 (strace_marker_create_breakpoints_sal): Likewise.
655 (strace_marker_decode_linespec): Likewise.
656 (strace_marker_breakpoint_ops): New variable.
657 (addr_string_to_sals): Remove `marker_spec'. Call method
658 `decode_linespec' from breakpoint_ops, replacing code that decoded
659 an address string into a SAL. Use `strace_marker_p' instead of
661 (strace_command): Decide whether we are dealing with a static
662 tracepoint with marker or not. Use the appropriate breakpoint_ops.
663 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
664 * breakpoint.h (linespec_result, linespec_sals): New forward
666 (breakpoint_ops) <create_sals_from_address>,
667 <create_breakpoints_sal>, <decode_linespec>: New methods.
669 2012-01-14 Doug Evans <dje@google.com>
671 * NEWS: Update text for "maint set python print-stack".
672 It is deprecated in gdb 7.4 and deleted in 7.5.
674 2012-01-13 Eli Zaretskii <eliz@gnu.org>
676 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
679 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
681 * configure: Regenerate.
682 * config.in: Regenerate.
684 2012-01-12 Keith Seitz <keiths@redhat.com>
687 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
688 (ANONYMOUS_UNION_NAME): Define.
689 (is_path_expr_parent): New function.
690 (get_path_expr_parent): New function.
691 (is_anonymous_child): New function.
692 (create_child_with_value): If the child is anonymous and without
693 a name, assign an object name to it.
694 (c_describe_child): Use get_path_expr_parent to determine
695 the parent expression.
696 If there field represents an anonymous struct or union and
697 has no name, set an appropriate display name and expression.
698 (cplus_describe_child): Likewise.
700 2012-01-12 Pedro Alves <palves@redhat.com>
702 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
703 available when %ebp is found to be zero (outermost).
705 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
707 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
708 an internal gdb_static_assert.
709 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
711 2012-01-11 Tom Tromey <tromey@redhat.com>
714 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
715 catch" and "catch throw".
717 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
719 * blockframe.c (block_innermost_frame): Start search from selected
720 frame, if present, or otherwise the current frame.
722 * c-exp.y (variable): Update innermost_block for
723 'block COLONCOLON NAME' clause.
724 * m2-exp.y (variable): Ditto.
725 * objc-exp.y (variable): Ditto.
727 2012-01-10 Tom Tromey <tromey@redhat.com>
730 * python/python.c (finish_python_initialization): Set sys.argv.
732 2012-01-10 Doug Evans <dje@google.com>
734 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
735 "want_line_info". All callers updated.
736 (dwarf_decode_lines_1): New function.
737 (handle_DW_AT_stmt_list): Add function comment.
738 New arg "want_line_info". All callers updated.
739 (read_file_scope,read_type_unit_scope): Move comment from
740 handle_DW_AT_stmt_list to here.
742 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
744 Fix regression after libiberty/ update for GCC PR 6057 and others.
745 * c-exp.y (operator) <OPERATOR DELETE>
746 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
747 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
748 (make_builtin_type, make_name): New variable i, add gdb_assert.
749 (operator) <OPERATOR NEW>: Update ARGS to 3.
750 (operator) <OPERATOR DELETE>: Add trailing space.
751 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
752 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
753 * cp-support.c (cp_canonicalize_string): Check NULL from
754 cp_comp_to_string, call warning and return.
756 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
758 Fix duplicate .o files after omitting libbfd.a.
759 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
760 (SFILES): Add corelow.c.
761 (COMMON_OBS): Add corelow.o.
762 (ALLDEPFILES): Remove corelow.c.
763 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
764 * config/alpha/alpha-osf3.mh: Likewise.
765 * config/alpha/fbsd.mh: Likewise.
766 * config/arm/nbsdaout.mh: Likewise.
767 * config/arm/nbsdelf.mh: Likewise.
768 * config/i386/i386gnu.mh: Likewise.
769 * config/ia64/hpux.mh: Likewise.
770 * config/ia64/linux.mh: Likewise.
771 * config/m32r/linux.mh: Likewise.
772 * config/m68k/linux.mh: Likewise.
773 * config/mips/irix5.mh: Likewise.
774 * config/mips/irix6.mh: Likewise.
775 * config/pa/hpux.mh: Likewise.
776 * config/pa/linux.mh: Likewise.
777 * config/powerpc/aix.mh: Likewise.
778 * config/sparc/linux.mh: Likewise.
779 * config/sparc/linux64.mh: Likewise.
780 * config/sparc/sol2.mh: Likewise.
781 * config/vax/vax.mh: Likewise.
782 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
783 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
784 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
785 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
786 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
787 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
788 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
789 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
790 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
791 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
792 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
793 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
794 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
795 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
796 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
797 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
798 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
799 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
800 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
801 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
802 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
803 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
804 corelow.o from gdb_target_obs.
805 * corefile.c (core_target): Update the comment on NULL value.
806 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
807 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
808 MATCHES. Drop YUMMY set on NULL.
809 (core_close): Do not call exit_inferior_silent on zero PID. Do not
810 reclaim CORE_DATA if it is already NULL.
812 2012-01-09 Doug Evans <dje@google.com>
814 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
815 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
817 2012-01-09 Keith Seitz <keiths@redhat.com>
819 * breakpoint.c (wrapper.h): Don't include.
821 2012-01-09 Keith Seitz <keiths@redhat.com>
823 * Makefile.in (SFILES): Remove wrapper.c.
824 (HFILES_NO_SRCDIR): Remove wrapper.h.
825 (COMMON_OBS): Remove wrapper.o.
826 * cli/cli-interp.c: Don't inlude wrapper.h.
827 * corelow.c: Likewise.
828 (core_open): Replace gdb_target_find_new_threads with
829 TRY_CATCH around target_find_new_threads.
830 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
831 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
832 * varobj.c (varobj_create): Likewise for parse_exp_1 and
834 (varobj_set_value): Likewise for evaluate_expression and
836 (install_new_variable): Likewise for value_fetch_lazy.
837 (adjust_value_for_child_access): Likewise for value_ind.
838 (c_describe_child): Likewise for value_subscript and
840 (c_value_of_root): Likewise for evaluate_expression.
844 2012-01-09 Doug Evans <dje@google.com>
846 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
847 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
848 "abfd" args with "section". All callers updated.
849 Error checking code moved ...
850 (error_check_comp_unit_head): ... here. New function.
851 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
852 Delete arg "abfd". New arg "type_offset". All callers updated.
853 (create_debug_types_hash_table): Simplify by using
854 read_and_check_type_unit_head.
856 * parser-defs.h (namecopy): Delete.
857 * parse.c (namecopy, namecopy_size): Move into copy_name.
859 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
861 Partially fix duplicate .o files after omitting libbfd.a.
862 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
863 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
864 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
865 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
866 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
867 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
868 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
870 2012-01-09 Pedro Alves <palves@redhat.com>
872 * MAINTAINERS: Update my email address.
874 2012-01-08 Doug Evans <dje@google.com>
876 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
877 n_type_units. Rename type_comp_units to all_type_units.
879 (add_signatured_type_cu_to_table): Renamed from
880 add_signatured_type_cu_to_list. All callers updated.
882 * gdbtypes.h (struct cplus_struct_type): Delete member
883 nfn_fields_total. All uses removed.
885 2012-01-06 Doug Evans <dje@google.com>
887 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
889 (dwarf2_find_comp_unit): Delete.
890 (process_psymtab_comp_unit): Make result "void".
891 Delete args buffer, info_ptr, buffer_size, and replace with
892 "section". All callers updated.
893 (dwarf2_build_psymtabs_hard): Simplify.
895 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
896 Thiago Jung Bauermann <bauerman@br.ibm.com>
898 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
899 before `struct gdb_exception'.
900 * breakpoint.c (update_global_location_list_nothrow)
901 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
902 * cp-abi.c (value_rtti_type): Likewise.
903 * cp-support.c (cp_validate_operator): Likewise.
904 * infrun.c (insert_exception_resume_breakpoint)
905 (check_exception_resume, keep_going): Likewise.
906 * mi-interp.c (mi_breakpoint_created)
907 (mi_breakpoint_modified): Likewise.
908 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
909 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
910 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
912 2012-01-05 Doug Evans <dje@google.com>
914 * dwarf2read.c (statement_prologue): Delete, unused.
916 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
917 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
919 * dwarf2read.c (comp_unit_header): Delete, unused.
921 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
923 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
924 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
926 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
928 * infrun.c (normal_stop): Don't skip calling the normal_stop
929 observers if the thread was doing a multi-step, but stopped for
930 some reason other than stepping.
932 2012-01-05 Pedro Alves <alves.ped@gmail.com>
934 * cli/cli-decode.h: Add comments.
935 (CMD_LIST_AMBIGUOUS): Moved to command.h
936 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
937 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
938 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
939 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
940 (add_com, add_com_alias, add_info, add_info_alias)
941 (complete_on_cmdlist, complete_on_enum, help_list): Remove
943 * command.h: Add and adjust comments.
944 (CMD_LIST_AMBIGUOUS): Moved here.
945 (help_cmd, help_cmd_list): Delete declarations.
947 2012-01-04 Doug Evans <dje@google.com>
949 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
951 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
952 Replace all arguments with "per_cu". All callers updated.
954 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
956 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
957 New arg "per_cu". All callers updated.
959 Delete #if 0'd out code.
960 * language.c (binop_result_type): Delete.
961 (simple_type, ordered_type, same_type, integral_type): Delete.
962 (numeric_type, character_type, string_type, boolean_type): Delete.
963 (float_type, structured_type): Delete.
964 * language.h: Update.
966 2012-01-04 Tom Tromey <tromey@redhat.com>
968 * python/py-value.c (valpy_binop): Initialize 'res_val'.
970 2012-01-04 Joel Brobecker <brobecker@adacore.com>
972 * corefile.c (close_exec_file): Delete.
973 (reopen_exec_file): Remove commented out code that seems related
974 to close_exec_file, which is being deleted here.
975 * inferior.h (close_exec_file): Delete.
976 * fork-child.c (fork_inferior): Remove call to fork_inferior.
978 2012-01-04 Joel Brobecker <brobecker@adacore.com>
980 * ada-lang.c: #include "cli/cli-utils.h".
981 (get_selections): Use skip_spaces.
982 (ada_get_next_arg): Use skip_spaces and skip_to_space.
983 (catch_ada_exception_command_split): Use skip_spaces.
984 (ada_decode_assert_location): Likewise.
986 2012-01-04 Joel Brobecker <brobecker@adacore.com>
988 * linespec.c (decode_line_internal): Check for C++ or Java
989 compound constructs only if the current language is C, C++
992 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
995 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
996 Joel Brobecker <brobecker@adacore.com>
997 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
998 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
1000 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
1001 fall through into AT_ENTRY_POINT.
1002 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
1004 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
1005 PPC_INSN_SIZE skip to 3 times.
1007 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1009 * linespec.c (add_minsym): Preserve function descriptors.
1011 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1013 * breakpoint.c (all_locations_are_pending): Consider locations
1014 in program spaces executing during startup pending as well.
1016 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1018 Copyright year update in most files of the GDB Project.
1020 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1022 * copyright.sh: Delete.
1023 * copyright.py: Rewrite.
1025 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1027 * gnulib/extra/update-copyright: New file, imported from gnulib.
1029 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1031 * README (Copyright and License Notices): New section.
1033 2012-01-03 Tom Tromey <tromey@redhat.com>
1036 * python/py-value.c (valpy_dereference, valpy_get_address
1037 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
1038 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
1039 (valpy_absolute, valpy_richcompare): Free intermediate values.
1041 2011-01-03 Joel Brobecker <brobecker@adacore.com>
1043 * ada-lang.c: Reformat the copyright notice.
1045 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1047 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
1048 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
1049 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
1050 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
1051 Revert this part of:
1052 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1053 Build gdb directly from *.o files not using libgdb.a.
1054 * Makefile.in (COMMON_OBS): Remove solib-target.o.
1056 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1058 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
1059 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
1060 Reformat the copyright header.
1062 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1064 Revert this part of:
1065 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1066 Remove the gdbtui binary.
1067 * gdb.c (main): Remove args.interpreter_p initialization.
1068 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
1069 * main.h (struct captured_main_args): Remove interpreter_p.
1071 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1073 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
1075 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1077 * top.c (print_gdb_version): Update copyright year.
1079 2012-01-02 Yao Qi <yao@codesourcery.com>
1081 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
1083 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1084 Joel Brobecker <brobecker@adacore.com>
1086 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
1087 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
1089 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
1090 fall through into AT_ENTRY_POINT.
1091 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
1093 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
1094 PPC_INSN_SIZE skip to 3 times.
1096 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1098 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
1100 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
1102 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1104 Build gdb directly from *.o files not using libgdb.a.
1105 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
1106 (COMMON_OBS): Remove solib-target.o.
1107 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
1108 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
1109 (LIBGDB_OBS, libgdb.a): Move it above.
1110 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
1111 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
1112 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
1113 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
1114 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
1115 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
1116 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
1117 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
1118 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
1119 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
1120 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
1121 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
1122 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
1123 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
1124 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
1125 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
1126 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
1127 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
1128 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
1129 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
1130 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
1131 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
1132 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
1133 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
1134 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
1135 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
1136 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
1138 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1140 Remove the gdbtui binary.
1141 * .gitignore (/gdbtui): Remove.
1142 * Makefile.in (TUI): Remove.
1143 (SUBDIR_TUI_OBS): Remove tui-main.o.
1144 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
1145 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
1146 (tui-main.o): Remove.
1147 (all_object_files): Remove tui-main.o.
1148 * NEWS: New note for the gdbtui removal.
1149 * configure: Rebuilt.
1150 * configure.ac: No longer add all-tui, clean-tui, install-tui and
1151 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
1152 CONFIG_UNINSTALL respectively.
1153 * gdb.c (main): Remove args.interpreter_p initialization.
1154 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
1155 * main.h (struct captured_main_args): Remove interpreter_p.
1156 * tui/tui-main.c: Remove.
1158 2012-01-01 Doug Evans <dje@google.com>
1160 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
1161 (dwarf2_physname, read_import_statement): Ditto.
1162 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
1163 (process_structure_scope read_subroutine_type): Ditto.
1164 (read_typedef, load_partial_dies, read_partial_die): Ditto.
1165 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
1166 (dwarf2_fetch_die_location_block): Ditto.
1167 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
1169 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
1170 All callers updated.
1171 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
1172 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
1173 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
1175 * dwarf2read.c (load_cu): Move assert to more useful location.
1177 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
1178 All callers updated.
1180 * dwarf2read.c (dwarf2_per_objfile): Add comment.
1181 (dwarf2_elf_names): Minor reformat.
1182 (dwarf2_per_cu_data): Tweak comment.
1183 (dwarf2_read_section): Fix comment.
1184 (create_all_comp_units): Fix comment.
1185 (load_full_comp_unit): Fix comment.
1186 (process_full_comp_unit): Fix comment.
1187 (read_signatured_type): Fix comment.
1189 For older changes see ChangeLog-2011.
1195 version-control: never