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