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