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