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