1 2012-01-26 Doug Evans <dje@google.com>
3 * psymtab.c (add_psymbol_to_list): Result is now "void".
4 * psympriv.h (add_psymbol_to_list): Update.
6 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
8 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10 Do not open script filenames twice.
11 * cli/cli-cmds.c (source_script_from_stream): Pass to
12 source_python_script also STREAM.
13 * python/py-auto-load.c (source_section_scripts): Pass to
14 source_python_script_for_objfile also STREAM.
15 (auto_load_objfile_script): Pass to source_python_script_for_objfile
17 * python/python-internal.h (source_python_script_for_objfile): New
18 parameter file, rename parameter file to filename.
19 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
20 instead if !_WIN32. Update the function comment.
21 (source_python_script, source_python_script_for_objfile)
22 (source_python_script): New parameter file, rename parameter file to
23 filename. Pass FILENAME to python_run_simple_file.
24 * python/python.h (source_python_script): New parameter file, rename
25 parameter file to filename.
27 2012-01-26 Pedro Alves <palves@redhat.com>
29 * corelow.c (core_has_fake_pid): Delete.
30 (core_close): Delete references to `core_has_fake_pid'.
31 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
32 (core_open): Delete references to `core_has_fake_pid'.
33 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
36 2012-01-26 Joel Brobecker <brobecker@adacore.com>
38 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
39 Remove language parameter from name_matcher. Adjust the comment.
40 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
41 Remove language parameter.
42 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
43 * linespec.c (iterate_name_matcher): Likewise.
44 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
45 name_matcher. Adjust call accordingly.
46 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
47 (maintenance_check_symtabs): Adjust type of parameter "fun".
48 * psymtab.h (maintenance_check_symtabs): Likewise.
50 2012-01-26 Joel Brobecker <brobecker@adacore.com>
52 * language.h (symbol_name_match_p_ftype): New typedef.
53 (struct language_defn): Replace field la_symbol_name_compare
54 by la_get_symbol_name_match_p.
55 * ada-lang.c (ada_get_symbol_name_match_p): New function.
56 (ada_language_defn): Use it.
57 * linespec.c (struct symbol_matcher_data): New type.
58 (iterate_name_matcher): Rewrite.
59 (iterate_over_all_matching_symtabs): Pass a pointer to
60 a symbol_matcher_data struct to expand_symtabs_matching
61 instead of just the lookup name.
62 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
63 opencl-lang.c, p-lang.c, language.c: Delete field
64 la_symbol_name_compare, and replace by NULL for new field
65 la_get_symbol_name_match_p.
66 * symfile.h (struct quick_symbol_functions): Update comment.
68 2012-01-25 Tom Tromey <tromey@redhat.com>
70 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
73 2012-01-24 Tom Tromey <tromey@redhat.com>
76 * solib.c (update_solib_list): Update the program space's
77 added_solibs and deleted_solibs fields.
78 * progspace.h (struct program_space) <added_solibs,
79 deleted_solibs>: New fields.
80 (clear_program_space_solib_cache): Declare.
81 * progspace.c (release_program_space): Call
82 clear_program_space_solib_cache.
83 (clear_program_space_solib_cache): New function.
84 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
85 bpstat_stop_status. Use handle_solib_event.
86 * breakpoint.c: Include gdb_regex.h.
87 (print_solib_event): New function.
88 (bpstat_print): Use print_solib_event.
89 (bpstat_stop_status): Add special case for bp_shlib_event.
90 (handle_solib_event): New function.
91 (bpstat_what): Use handle_solib_event.
92 (struct solib_catchpoint): New.
93 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
94 (breakpoint_hit_catch_solib, check_status_catch_solib)
95 (print_it_catch_solib, print_one_catch_solib)
96 (print_mention_catch_solib, print_recreate_catch_solib): New
98 (catch_solib_breakpoint_ops): New global.
99 (catch_load_or_unload, catch_load_command_1)
100 (catch_unload_command_1): New functions.
101 (internal_bkpt_check_status): Add special case for
103 (internal_bkpt_print_it): Use print_solib_event.
104 (initialize_breakpoint_ops): Initialize
105 catch_solib_breakpoint_ops.
106 (_initialize_breakpoint): Register "catch load" and "catch
108 * breakpoint.h (handle_solib_event): Declare.
109 * NEWS: Add entry for "catch load" and "catch unload".
111 2012-01-24 Tom Tromey <tromey@redhat.com>
113 * ada-lang.c: Include gdb_vecs.h.
114 * charset.c: Include gdb_vecs.h.
115 * tracepoint.h: Include gdb_vecs.h.
116 * gdb_vecs.h: New file.
118 2012-01-24 Pedro Alves <pedro@codesourcery.com>
120 * breakpoint.c (breakpoint_hit_catch_fork)
121 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
122 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
123 * infrun.c (inferior_has_forked, inferior_has_vforked)
124 (inferior_has_execd, inferior_has_called_syscall): Delete.
125 (handle_syscall_event): Get syscall_number from the execution
126 control state's wait status.
127 (wait_for_inferior): Don't clear syscall_number.
129 2012-01-24 Pedro Alves <palves@redhat.com>
131 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
132 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
133 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
134 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
136 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
137 false for events other than TARGET_SIGNAL_TRAP.
138 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
140 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
141 events other than TARGET_SIGNAL_TRAP.
142 (tracepoint_breakpoint_hit): Add `ws' parameter.
143 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
145 (bpstat_stop_status): Same.
146 (pc_at_non_inline_function): Same.
147 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
148 to pass the current event's waitstatus to bpstat_stop_status
149 and pc_at_non_inline_function.
151 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
154 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
155 Update the function comment for it.
156 (source_script_with_search): Call make_cleanup_fclose for STREAM.
157 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
160 2012-01-24 Pedro Alves <palves@redhat.com>
162 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
163 outside `bs->stop' block.
164 (bpstat_what): Rework bp_shlib_event handling.
165 (internal_bkpt_check_status): If the breakpoint is a
166 bp_shlib_event, then set bs->stop and bs->print if
167 stop_on_solib_events is set.
169 2012-01-24 Gary Benson <gbenson@redhat.com>
171 Delete #if 0'd out code.
172 * stack.c (print_frame_label_vars): Remove.
173 (catch_info): Likewise.
174 (_initialize_stack): Remove "info catch" command.
175 * NEWS: Mention the above.
177 2012-01-24 Pedro Alves <palves@redhat.com>
179 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
181 (remote_notice_new_inferior): If the remote end doesn't support
182 the multiprocess extensions, then the PID is fake.
183 (add_current_inferior_and_thread): New.
184 (remote_start_remote): Use it.
185 (extended_remote_attach_1): Adjust.
186 (extended_remote_create_inferior_1): Use
187 add_current_inferior_and_thread.
189 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
191 Fix watchpoints to be specific for each inferior.
192 * breakpoint.c (watchpoint_in_thread_scope): Verify also
193 current_program_space.
194 * i386-nat.c (i386_inferior_data_cleanup): New.
195 (i386_inferior_data_get): Replace variable inf_data_local by an
197 (i386_use_watchpoints): Initialize i386_inferior_data.
198 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
199 specific iterate_over_lwps.
201 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
203 Fix watchpoints across inferior fork.
204 * amd64-linux-nat.c (update_debug_registers_callback): Update the
205 comment for linux_nat_iterate_watchpoint_lwps.
206 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
207 linux_nat_iterate_watchpoint_lwps.
208 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
209 * i386-linux-nat.c (update_debug_registers_callback): Update the
210 comment for linux_nat_iterate_watchpoint_lwps.
211 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
212 linux_nat_iterate_watchpoint_lwps.
213 (i386_linux_prepare_to_resume): New comment on Linux kernel.
214 * i386-nat.c: Include inferior.h.
216 (i386_inferior_data, struct i386_inferior_data)
217 (i386_inferior_data_get): New.
218 (i386_debug_reg_state): Use i386_inferior_data_get.
219 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
220 (i386_insert_watchpoint, i386_remove_watchpoint)
221 (i386_stopped_data_address, i386_insert_hw_breakpoint)
222 (i386_remove_hw_breakpoint): New variable state, use
223 i386_debug_reg_state instead of DR_MIRROR.
224 * linux-nat.c (delete_lwp): New declaration.
225 (num_lwps): Move here from downwards.
226 (delete_lwp_cleanup): New.
227 (linux_child_follow_fork): Create new child_lp, call
228 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
230 (num_lwps): Move upwards.
231 (linux_nat_iterate_watchpoint_lwps): New.
232 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
233 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
235 2012-01-24 Joel Brobecker <brobecker@adacore.com>
239 2012-01-23 Pedro Alves <palves@redhat.com>
241 * top.c (caution): Rename to ...
243 (show_caution): Rename to ...
244 (show_confirm): ... this.
245 (quit_cover): Adjust.
247 * top.h (caution): Rename to ...
249 * utils.c (internal_vproblem, defaulted_query): Adjust.
251 2012-01-23 Pedro Alves <palves@redhat.com>
253 * top.c (caution): Update comment.
254 (execute_command): Don't consider the current value of `caution'.
256 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
258 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
260 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
262 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
263 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
264 * target.c (target_fileio_pwrite): Remove buffer address from
266 (target_fileio_pread): Likewise.
268 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
270 * NEWS: Document remote "info proc" and "generate-core-file".
272 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
274 * gdbarch.sh (find_memory_regions): New callback.
275 * gdbarch.c, gdbarch.h: Regenerate.
277 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
278 callback before falling back to target method.
280 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
281 (linux_target_install_ops): No longer install it.
283 * linux-tdep.c (linux_find_memory_regions): New function.
284 (linux_init_abi): Install it.
286 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
288 * gdbarch.sh (make_corefile_notes): New architecture callback.
289 * gdbarch.c: Regenerate.
290 * gdbarch.h: Likewise.
292 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
293 before target_make_corefile_notes. If NULL is returned, the
294 target does not support core file generation.
296 * linux-nat.c: Include "linux-tdep.h".
297 (find_signalled_thread, find_stop_signal): Remove.
298 (linux_nat_do_thread_registers): Likewise.
299 (struct linux_nat_corefile_thread_data): Likewise.
300 (linux_nat_corefile_thread_callback): Likewise.
301 (iterate_over_spus): Likewise.
302 (struct linux_spu_corefile_data): Likewise.
303 (linux_spu_corefile_callback): Likewise.
304 (linux_spu_make_corefile_notes): Likewise.
305 (linux_nat_collect_thread_registers): New function.
306 (linux_nat_make_corefile_notes): Replace contents by call to
307 linux_make_corefile_notes passing linux_nat_collect_thread_registers
308 as native-only callback.
310 * linux-tdep.h: Include "bfd.h".
311 (struct regcache): Add forward declaration.
312 (linux_collect_thread_registers_ftype): New typedef.
313 (linux_make_corefile_notes): Add prototype.
314 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
315 "regset.h", and "elf-bfd.h".
316 (find_signalled_thread, find_stop_signal): New functions.
317 (linux_spu_make_corefile_notes): Likewise.
318 (linux_collect_thread_registers): Likewise.
319 (struct linux_corefile_thread_data): New data structure.
320 (linux_corefile_thread_callback): New funcion.
321 (linux_make_corefile_notes): Likewise.
322 (linux_make_corefile_notes_1): Likewise.
323 (linux_init_abi): Install it.
325 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
327 * gdbarch.sh (info_proc): New callback.
328 * gdbarch.c, gdbarch.h: Regenerate.
330 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
331 before falling back to the target info_proc callback.
333 * linux-nat.c: Do not include "cli/cli-utils.h".
334 (linux_nat_info_proc): Remove.
335 (linux_target_install_ops): No longer install it.
337 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
338 (read_mapping): New function.
339 (linux_info_proc): Likewise.
340 (linux_init_abi): Install it.
342 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
344 * defs.h (enum info_proc_what): Moved here from linux-nat.c
345 * infcmd.c: (info_proc_cmd_1): New function.
346 (info_proc_cmd): New function, moved here from equivalent routine
347 orignally in linux-nat.c.
348 (info_proc_cmd_mappings): Likewise.
349 (info_proc_cmd_stat): Likewise.
350 (info_proc_cmd_status): Likewise.
351 (info_proc_cmd_cwd): Likewise.
352 (info_proc_cmd_cmdline): Likewise.
353 (info_proc_cmd_exe): Likewise.
354 (info_proc_cmd_all): Likewise.
355 (_initialize_infcmd): Install "info proc" command and subcommands.
357 * target.h (struct target_ops): Add to_info_proc.
358 (target_info_proc): Add prototype.
359 * target.c (target_info_proc): New function.
361 * procfs.c (procfs_info_proc): Add prototype.
362 (info_proc_cmd): Rename into ...
363 (procfs_info_proc): ... this. Update argument types as appropriate
364 for a to_info_proc implementation. Handle "what" argument.
365 (procfs_target): Install procfs_info_proc.
366 (_initialize_procfs): No longer install "info proc" command.
368 * linux-nat.c: (enum info_proc_what): Remove.
369 (linux_nat_info_proc_cmd_1): Rename into ...
370 (linux_nat_info_proc): ... this. Update argument types as appropriate
371 for a to_info_proc implementation.
372 (linux_nat_info_proc_cmd): Remove.
373 (linux_nat_info_proc_cmd_mappings): Likewise.
374 (linux_nat_info_proc_cmd_stat): Likewise.
375 (linux_nat_info_proc_cmd_status): Likewise.
376 (linux_nat_info_proc_cmd_cwd): Likewise.
377 (linux_nat_info_proc_cmd_cmdline): Likewise.
378 (linux_nat_info_proc_cmd_exe): Likewise.
379 (linux_nat_info_proc_cmd_all): Likewise.
380 (linux_target_install_ops): Install linux_nat_info_proc.
381 (_initialize_linux_nat): No longer install "info proc" command
384 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
386 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
387 * config.in, configure: Regenerate.
389 * target.h (struct target_ops): Add to_fileio_readlink.
390 (target_fileio_readlink): Add prototype.
391 * target.c (target_fileio_readlink): New function.
393 * inf-child.c: Conditionally include <sys/param.h>.
394 (inf_child_fileio_readlink): New function.
395 (inf_child_target): Install it.
397 * remote.c (PACKET_vFile_readlink): New enum value.
398 (remote_hostio_readlink): New function.
399 (init_remote_ops): Install it.
400 (_initialize_remote): Handle vFile:readlink packet type.
402 2012-01-20 Pedro Alves <palves@redhat.com>
403 Ulrich Weigand <ulrich.weigand@linaro.org>
405 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
406 * config.in, configure: Regenerate.
408 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
409 to_fileio_pread, to_fileio_close, to_fileio_unlink.
410 (target_fileio_open): Add prototype.
411 (target_fileio_pwrite): Likewise.
412 (target_fileio_pread): Likewise.
413 (target_fileio_close): Likewise.
414 (target_fileio_unlink): Likewise.
415 (target_fileio_read_alloc): Likewise.
416 (target_fileio_read_stralloc): Likewise.
418 * target.c: Include "gdb/fileio.h".
419 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
420 (default_fileio_target): New function.
421 (target_fileio_open): Likewise.
422 (target_fileio_pwrite): Likewise.
423 (target_fileio_pread): Likewise.
424 (target_fileio_close): Likewise.
425 (target_fileio_unlink): Likewise.
426 (target_fileio_close_cleanup): Likewise.
427 (target_fileio_read_alloc_1): Likewise.
428 (target_fileio_read_alloc): Likewise.
429 (target_fileio_read_stralloc): Likewise.
431 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
432 <fcntl.h>, and <unistd.h>.
433 (inf_child_fileio_open_flags_to_host): New function.
434 (inf_child_errno_to_fileio_error): Likewise.
435 (inf_child_fileio_open): Likewise.
436 (inf_child_fileio_pwrite): Likewise.
437 (inf_child_fileio_pread): Likewise.
438 (inf_child_fileio_close): Likewise.
439 (inf_child_fileio_unlink): Likewise.
440 (inf_child_target): Install to_fileio routines.
442 * remote.c (init_remote_ops): Install to_fileio routines.
444 2012-01-20 Pedro Alves <palves@redhat.com>
445 Ulrich Weigand <ulrich.weigand@linaro.org>
447 * remote.c (remote_multi_process_p): Only check for multi-process
448 protocol feature, do not check for extended protocol.
449 (remote_supports_multi_process): Check for extended protocol here.
450 (set_general_process): Likewise.
451 (extended_remote_kill): Likewise.
452 (remote_pid_to_str): Likewise.
453 (remote_query_supported): Always query multiprocess mode.
455 2012-01-20 Pedro Alves <palves@redhat.com>
456 Ulrich Weigand <ulrich.weigand@linaro.org>
458 * inferior.h (struct inferior): Add fake_pid_p.
459 * inferior.c (exit_inferior_1): Clear fake_pid_p.
460 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
461 magic_null_ptid since the remote side doesn't provide a real PID.
463 2012-01-19 Tom Tromey <tromey@redhat.com>
465 * NEWS: Combine the two Python sections.
467 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
469 * target.h (target_close): Update comment on the target's unpush state.
471 2012-01-19 Pedro Alves <palves@redhat.com>
473 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
474 linux_nat_async directly instead of going through the target
476 * target.c (unpush_target): Close target after unpushing it, not
479 2012-01-19 Gary Benson <gbenson@redhat.com>
481 * mdebugread.c (sort_blocks): Replace integer constants with ones
482 derived from FIRST_LOCAL_BLOCK.
484 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
485 Jan Kratochvil <jan.kratochvil@redhat.com>
488 * symfile.c (find_separate_debug_file): New function.
489 (terminate_after_last_dir_separator): Likewise.
490 (find_separate_debug_file_by_debuglink): Also try realpath.
491 * configure.ac (AC_CHECK_FUNCS): Add lstat.
492 * configure: Regenerate.
493 * config.in: Regenerate.
495 2012-01-18 Doug Evans <dje@google.com>
497 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
498 (main.o): Remove rule.
499 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
500 (--with-sysroot): Rewrite.
501 * configure: Regenerate.
502 * config.in: Regenerate.
504 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
506 * parse.c (initialize_expout): New function.
507 (reallocate_expout): Likewise.
508 (parse_exp_in_context): Use `initialize_expout' and
509 `reallocate_expout' when appropriate.
511 2012-01-18 Pedro Alves <palves@redhat.com>
513 * record.c (struct record_breakpoint, record_breakpoint_p)
514 (record_breakpoints): New.
515 (record_insert_breakpoint, record_remove_breakpoint): Manage
516 record breakpoints list. Only remove breakpoints from the
517 inferior if they had been inserted there in the first place.
519 2012-01-17 Doug Evans <dje@google.com>
521 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
522 if we know we don't have a file name to look for.
524 2012-01-17 Pedro Alves <palves@redhat.com>
526 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
527 the frame's stop reason is UNWIND_UNAVAILABLE.
529 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
531 Fix compilation error.
532 * m2-exp.y (yyerror): Use ANSI C prototype.
534 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
536 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
537 (growbuf_by_size): Likewise.
539 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
540 (modblock): Remove variable (was #if 0'ed).
541 (parse_number): Convert prototype from K&R to ANSI C.
543 * objc-exp.y (parse_number): Likewise.
545 (yylex): Remove #if 0'ed code.
546 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
549 2012-01-16 Tom Tromey <tromey@redhat.com>
552 * symtab.h (compare_filenames_for_search): Declare.
553 * symtab.c (compare_filenames_for_search): New function.
554 (iterate_over_some_symtabs): Use it.
555 * symfile.h (struct quick_symbol_functions)
556 <map_symtabs_matching_filename>: Change spec.
557 * psymtab.c (partial_map_symtabs_matching_filename): Use
558 compare_filenames_for_search. Update for new spec.
559 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
560 compare_filenames_for_search. Update for new spec.
561 * breakpoint.c (clear_command): Use compare_filenames_for_search.
563 2012-01-16 Tom Tromey <tromey@redhat.com>
566 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
567 (struct main_type) <flag_flag_enum>: New field.
568 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
570 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
572 * python/lib/gdb/printing.py (_EnumInstance): New class.
573 (FlagEnumerationPrinter): Likewise.
575 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
577 * breakpoint.c (create_sals_from_address_default): New function.
578 (create_breakpoints_sal_default): Likewise.
579 (decode_linespec_default): Likewise.
580 (is_marker_spec): Removed.
581 (strace_marker_p): New function.
582 (init_breakpoint_sal): Using `strace_marker_p' instead of
584 (create_breakpoint): Call method `create_sals_from_address' from
585 breakpoint_ops, replacing code that created SALs conditionally
586 on the type of the breakpoint. Call method `create_breakpoints_sal',
587 replacing code that created breakpoints conditionally on the type
589 (base_breakpoint_create_sals_from_address): New function.
590 (base_breakpoint_create_breakpoints_sal): Likewise.
591 (base_breakpoint_decode_linespec): Likewise.
592 (base_breakpoint_ops): Add methods
593 `base_breakpoint_create_sals_from_address',
594 `base_breakpoint_create_breakpoints_sal' and
595 `base_breakpoint_decode_linespec'.
596 (bkpt_create_sals_from_address): New function.
597 (bkpt_create_breakpoints_sal): Likewise.
598 (bkpt_decode_linespec): Likewise.
599 (tracepoint_create_sals_from_address): Likewise.
600 (tracepoint_create_breakpoints_sal): Likewise.
601 (tracepoint_decode_linespec): Likewise.
602 (strace_marker_create_sals_from_address): Likewise.
603 (strace_marker_create_breakpoints_sal): Likewise.
604 (strace_marker_decode_linespec): Likewise.
605 (strace_marker_breakpoint_ops): New variable.
606 (addr_string_to_sals): Remove `marker_spec'. Call method
607 `decode_linespec' from breakpoint_ops, replacing code that decoded
608 an address string into a SAL. Use `strace_marker_p' instead of
610 (strace_command): Decide whether we are dealing with a static
611 tracepoint with marker or not. Use the appropriate breakpoint_ops.
612 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
613 * breakpoint.h (linespec_result, linespec_sals): New forward
615 (breakpoint_ops) <create_sals_from_address>,
616 <create_breakpoints_sal>, <decode_linespec>: New methods.
618 2012-01-14 Doug Evans <dje@google.com>
620 * NEWS: Update text for "maint set python print-stack".
621 It is deprecated in gdb 7.4 and deleted in 7.5.
623 2012-01-13 Eli Zaretskii <eliz@gnu.org>
625 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
628 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
630 * configure: Regenerate.
631 * config.in: Regenerate.
633 2012-01-12 Keith Seitz <keiths@redhat.com>
636 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
637 (ANONYMOUS_UNION_NAME): Define.
638 (is_path_expr_parent): New function.
639 (get_path_expr_parent): New function.
640 (is_anonymous_child): New function.
641 (create_child_with_value): If the child is anonymous and without
642 a name, assign an object name to it.
643 (c_describe_child): Use get_path_expr_parent to determine
644 the parent expression.
645 If there field represents an anonymous struct or union and
646 has no name, set an appropriate display name and expression.
647 (cplus_describe_child): Likewise.
649 2012-01-12 Pedro Alves <palves@redhat.com>
651 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
652 available when %ebp is found to be zero (outermost).
654 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
656 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
657 an internal gdb_static_assert.
658 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
660 2012-01-11 Tom Tromey <tromey@redhat.com>
663 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
664 catch" and "catch throw".
666 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
668 * blockframe.c (block_innermost_frame): Start search from selected
669 frame, if present, or otherwise the current frame.
671 * c-exp.y (variable): Update innermost_block for
672 'block COLONCOLON NAME' clause.
673 * m2-exp.y (variable): Ditto.
674 * objc-exp.y (variable): Ditto.
676 2012-01-10 Tom Tromey <tromey@redhat.com>
679 * python/python.c (finish_python_initialization): Set sys.argv.
681 2012-01-10 Doug Evans <dje@google.com>
683 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
684 "want_line_info". All callers updated.
685 (dwarf_decode_lines_1): New function.
686 (handle_DW_AT_stmt_list): Add function comment.
687 New arg "want_line_info". All callers updated.
688 (read_file_scope,read_type_unit_scope): Move comment from
689 handle_DW_AT_stmt_list to here.
691 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
693 Fix regression after libiberty/ update for GCC PR 6057 and others.
694 * c-exp.y (operator) <OPERATOR DELETE>
695 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
696 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
697 (make_builtin_type, make_name): New variable i, add gdb_assert.
698 (operator) <OPERATOR NEW>: Update ARGS to 3.
699 (operator) <OPERATOR DELETE>: Add trailing space.
700 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
701 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
702 * cp-support.c (cp_canonicalize_string): Check NULL from
703 cp_comp_to_string, call warning and return.
705 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
707 Fix duplicate .o files after omitting libbfd.a.
708 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
709 (SFILES): Add corelow.c.
710 (COMMON_OBS): Add corelow.o.
711 (ALLDEPFILES): Remove corelow.c.
712 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
713 * config/alpha/alpha-osf3.mh: Likewise.
714 * config/alpha/fbsd.mh: Likewise.
715 * config/arm/nbsdaout.mh: Likewise.
716 * config/arm/nbsdelf.mh: Likewise.
717 * config/i386/i386gnu.mh: Likewise.
718 * config/ia64/hpux.mh: Likewise.
719 * config/ia64/linux.mh: Likewise.
720 * config/m32r/linux.mh: Likewise.
721 * config/m68k/linux.mh: Likewise.
722 * config/mips/irix5.mh: Likewise.
723 * config/mips/irix6.mh: Likewise.
724 * config/pa/hpux.mh: Likewise.
725 * config/pa/linux.mh: Likewise.
726 * config/powerpc/aix.mh: Likewise.
727 * config/sparc/linux.mh: Likewise.
728 * config/sparc/linux64.mh: Likewise.
729 * config/sparc/sol2.mh: Likewise.
730 * config/vax/vax.mh: Likewise.
731 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
732 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
733 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
734 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
735 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
736 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
737 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
738 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
739 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
740 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
741 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
742 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
743 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
744 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
745 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
746 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
747 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
748 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
749 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
750 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
751 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
752 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
753 corelow.o from gdb_target_obs.
754 * corefile.c (core_target): Update the comment on NULL value.
755 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
756 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
757 MATCHES. Drop YUMMY set on NULL.
758 (core_close): Do not call exit_inferior_silent on zero PID. Do not
759 reclaim CORE_DATA if it is already NULL.
761 2012-01-09 Doug Evans <dje@google.com>
763 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
764 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
766 2012-01-09 Keith Seitz <keiths@redhat.com>
768 * breakpoint.c (wrapper.h): Don't include.
770 2012-01-09 Keith Seitz <keiths@redhat.com>
772 * Makefile.in (SFILES): Remove wrapper.c.
773 (HFILES_NO_SRCDIR): Remove wrapper.h.
774 (COMMON_OBS): Remove wrapper.o.
775 * cli/cli-interp.c: Don't inlude wrapper.h.
776 * corelow.c: Likewise.
777 (core_open): Replace gdb_target_find_new_threads with
778 TRY_CATCH around target_find_new_threads.
779 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
780 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
781 * varobj.c (varobj_create): Likewise for parse_exp_1 and
783 (varobj_set_value): Likewise for evaluate_expression and
785 (install_new_variable): Likewise for value_fetch_lazy.
786 (adjust_value_for_child_access): Likewise for value_ind.
787 (c_describe_child): Likewise for value_subscript and
789 (c_value_of_root): Likewise for evaluate_expression.
793 2012-01-09 Doug Evans <dje@google.com>
795 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
796 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
797 "abfd" args with "section". All callers updated.
798 Error checking code moved ...
799 (error_check_comp_unit_head): ... here. New function.
800 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
801 Delete arg "abfd". New arg "type_offset". All callers updated.
802 (create_debug_types_hash_table): Simplify by using
803 read_and_check_type_unit_head.
805 * parser-defs.h (namecopy): Delete.
806 * parse.c (namecopy, namecopy_size): Move into copy_name.
808 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
810 Partially fix duplicate .o files after omitting libbfd.a.
811 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
812 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
813 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
814 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
815 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
816 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
817 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
819 2012-01-09 Pedro Alves <palves@redhat.com>
821 * MAINTAINERS: Update my email address.
823 2012-01-08 Doug Evans <dje@google.com>
825 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
826 n_type_units. Rename type_comp_units to all_type_units.
828 (add_signatured_type_cu_to_table): Renamed from
829 add_signatured_type_cu_to_list. All callers updated.
831 * gdbtypes.h (struct cplus_struct_type): Delete member
832 nfn_fields_total. All uses removed.
834 2012-01-06 Doug Evans <dje@google.com>
836 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
838 (dwarf2_find_comp_unit): Delete.
839 (process_psymtab_comp_unit): Make result "void".
840 Delete args buffer, info_ptr, buffer_size, and replace with
841 "section". All callers updated.
842 (dwarf2_build_psymtabs_hard): Simplify.
844 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
845 Thiago Jung Bauermann <bauerman@br.ibm.com>
847 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
848 before `struct gdb_exception'.
849 * breakpoint.c (update_global_location_list_nothrow)
850 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
851 * cp-abi.c (value_rtti_type): Likewise.
852 * cp-support.c (cp_validate_operator): Likewise.
853 * infrun.c (insert_exception_resume_breakpoint)
854 (check_exception_resume, keep_going): Likewise.
855 * mi-interp.c (mi_breakpoint_created)
856 (mi_breakpoint_modified): Likewise.
857 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
858 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
859 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
861 2012-01-05 Doug Evans <dje@google.com>
863 * dwarf2read.c (statement_prologue): Delete, unused.
865 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
866 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
868 * dwarf2read.c (comp_unit_header): Delete, unused.
870 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
872 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
873 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
875 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
877 * infrun.c (normal_stop): Don't skip calling the normal_stop
878 observers if the thread was doing a multi-step, but stopped for
879 some reason other than stepping.
881 2012-01-05 Pedro Alves <alves.ped@gmail.com>
883 * cli/cli-decode.h: Add comments.
884 (CMD_LIST_AMBIGUOUS): Moved to command.h
885 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
886 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
887 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
888 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
889 (add_com, add_com_alias, add_info, add_info_alias)
890 (complete_on_cmdlist, complete_on_enum, help_list): Remove
892 * command.h: Add and adjust comments.
893 (CMD_LIST_AMBIGUOUS): Moved here.
894 (help_cmd, help_cmd_list): Delete declarations.
896 2012-01-04 Doug Evans <dje@google.com>
898 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
900 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
901 Replace all arguments with "per_cu". All callers updated.
903 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
905 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
906 New arg "per_cu". All callers updated.
908 Delete #if 0'd out code.
909 * language.c (binop_result_type): Delete.
910 (simple_type, ordered_type, same_type, integral_type): Delete.
911 (numeric_type, character_type, string_type, boolean_type): Delete.
912 (float_type, structured_type): Delete.
913 * language.h: Update.
915 2012-01-04 Tom Tromey <tromey@redhat.com>
917 * python/py-value.c (valpy_binop): Initialize 'res_val'.
919 2012-01-04 Joel Brobecker <brobecker@adacore.com>
921 * corefile.c (close_exec_file): Delete.
922 (reopen_exec_file): Remove commented out code that seems related
923 to close_exec_file, which is being deleted here.
924 * inferior.h (close_exec_file): Delete.
925 * fork-child.c (fork_inferior): Remove call to fork_inferior.
927 2012-01-04 Joel Brobecker <brobecker@adacore.com>
929 * ada-lang.c: #include "cli/cli-utils.h".
930 (get_selections): Use skip_spaces.
931 (ada_get_next_arg): Use skip_spaces and skip_to_space.
932 (catch_ada_exception_command_split): Use skip_spaces.
933 (ada_decode_assert_location): Likewise.
935 2012-01-04 Joel Brobecker <brobecker@adacore.com>
937 * linespec.c (decode_line_internal): Check for C++ or Java
938 compound constructs only if the current language is C, C++
941 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
944 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
945 Joel Brobecker <brobecker@adacore.com>
946 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
947 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
949 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
950 fall through into AT_ENTRY_POINT.
951 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
953 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
954 PPC_INSN_SIZE skip to 3 times.
956 2012-01-04 Joel Brobecker <brobecker@adacore.com>
958 * linespec.c (add_minsym): Preserve function descriptors.
960 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
962 * breakpoint.c (all_locations_are_pending): Consider locations
963 in program spaces executing during startup pending as well.
965 2012-01-04 Joel Brobecker <brobecker@adacore.com>
967 Copyright year update in most files of the GDB Project.
969 2012-01-04 Joel Brobecker <brobecker@adacore.com>
971 * copyright.sh: Delete.
972 * copyright.py: Rewrite.
974 2012-01-04 Joel Brobecker <brobecker@adacore.com>
976 * gnulib/extra/update-copyright: New file, imported from gnulib.
978 2012-01-04 Joel Brobecker <brobecker@adacore.com>
980 * README (Copyright and License Notices): New section.
982 2012-01-03 Tom Tromey <tromey@redhat.com>
985 * python/py-value.c (valpy_dereference, valpy_get_address
986 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
987 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
988 (valpy_absolute, valpy_richcompare): Free intermediate values.
990 2011-01-03 Joel Brobecker <brobecker@adacore.com>
992 * ada-lang.c: Reformat the copyright notice.
994 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
996 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
997 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
998 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
999 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
1000 Revert this part of:
1001 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1002 Build gdb directly from *.o files not using libgdb.a.
1003 * Makefile.in (COMMON_OBS): Remove solib-target.o.
1005 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1007 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
1008 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
1009 Reformat the copyright header.
1011 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1013 Revert this part of:
1014 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1015 Remove the gdbtui binary.
1016 * gdb.c (main): Remove args.interpreter_p initialization.
1017 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
1018 * main.h (struct captured_main_args): Remove interpreter_p.
1020 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1022 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
1024 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1026 * top.c (print_gdb_version): Update copyright year.
1028 2012-01-02 Yao Qi <yao@codesourcery.com>
1030 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
1032 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1033 Joel Brobecker <brobecker@adacore.com>
1035 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
1036 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
1038 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
1039 fall through into AT_ENTRY_POINT.
1040 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
1042 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
1043 PPC_INSN_SIZE skip to 3 times.
1045 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1047 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
1049 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
1051 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1053 Build gdb directly from *.o files not using libgdb.a.
1054 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
1055 (COMMON_OBS): Remove solib-target.o.
1056 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
1057 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
1058 (LIBGDB_OBS, libgdb.a): Move it above.
1059 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
1060 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
1061 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
1062 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
1063 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
1064 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
1065 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
1066 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
1067 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
1068 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
1069 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
1070 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
1071 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
1072 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
1073 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
1074 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
1075 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
1076 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
1077 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
1078 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
1079 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
1080 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
1081 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
1082 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
1083 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
1084 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
1085 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
1087 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1089 Remove the gdbtui binary.
1090 * .gitignore (/gdbtui): Remove.
1091 * Makefile.in (TUI): Remove.
1092 (SUBDIR_TUI_OBS): Remove tui-main.o.
1093 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
1094 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
1095 (tui-main.o): Remove.
1096 (all_object_files): Remove tui-main.o.
1097 * NEWS: New note for the gdbtui removal.
1098 * configure: Rebuilt.
1099 * configure.ac: No longer add all-tui, clean-tui, install-tui and
1100 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
1101 CONFIG_UNINSTALL respectively.
1102 * gdb.c (main): Remove args.interpreter_p initialization.
1103 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
1104 * main.h (struct captured_main_args): Remove interpreter_p.
1105 * tui/tui-main.c: Remove.
1107 2012-01-01 Doug Evans <dje@google.com>
1109 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
1110 (dwarf2_physname, read_import_statement): Ditto.
1111 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
1112 (process_structure_scope read_subroutine_type): Ditto.
1113 (read_typedef, load_partial_dies, read_partial_die): Ditto.
1114 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
1115 (dwarf2_fetch_die_location_block): Ditto.
1116 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
1118 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
1119 All callers updated.
1120 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
1121 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
1122 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
1124 * dwarf2read.c (load_cu): Move assert to more useful location.
1126 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
1127 All callers updated.
1129 * dwarf2read.c (dwarf2_per_objfile): Add comment.
1130 (dwarf2_elf_names): Minor reformat.
1131 (dwarf2_per_cu_data): Tweak comment.
1132 (dwarf2_read_section): Fix comment.
1133 (create_all_comp_units): Fix comment.
1134 (load_full_comp_unit): Fix comment.
1135 (process_full_comp_unit): Fix comment.
1136 (read_signatured_type): Fix comment.
1138 For older changes see ChangeLog-2011.
1144 version-control: never