2012-01-20 Pedro Alves <palves@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2012-01-20 Pedro Alves <palves@redhat.com>
2 Ulrich Weigand <ulrich.weigand@linaro.org>
3
4 * inferior.h (struct inferior): Add fake_pid_p.
5 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
7 magic_null_ptid since the remote side doesn't provide a real PID.
8
9 2012-01-19 Tom Tromey <tromey@redhat.com>
10
11 * NEWS: Combine the two Python sections.
12
13 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
14
15 * target.h (target_close): Update comment on the target's unpush state.
16
17 2012-01-19 Pedro Alves <palves@redhat.com>
18
19 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
20 linux_nat_async directly instead of going through the target
21 vector.
22 * target.c (unpush_target): Close target after unpushing it, not
23 before.
24
25 2012-01-19 Gary Benson <gbenson@redhat.com>
26
27 * mdebugread.c (sort_blocks): Replace integer constants with ones
28 derived from FIRST_LOCAL_BLOCK.
29
30 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
31 Jan Kratochvil <jan.kratochvil@redhat.com>
32
33 PR gdb/9538
34 * symfile.c (find_separate_debug_file): New function.
35 (terminate_after_last_dir_separator): Likewise.
36 (find_separate_debug_file_by_debuglink): Also try realpath.
37 * configure.ac (AC_CHECK_FUNCS): Add lstat.
38 * configure: Regenerate.
39 * config.in: Regenerate.
40
41 2012-01-18 Doug Evans <dje@google.com>
42
43 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
44 (main.o): Remove rule.
45 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
46 (--with-sysroot): Rewrite.
47 * configure: Regenerate.
48 * config.in: Regenerate.
49
50 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
51
52 * parse.c (initialize_expout): New function.
53 (reallocate_expout): Likewise.
54 (parse_exp_in_context): Use `initialize_expout' and
55 `reallocate_expout' when appropriate.
56
57 2012-01-18 Pedro Alves <palves@redhat.com>
58
59 * record.c (struct record_breakpoint, record_breakpoint_p)
60 (record_breakpoints): New.
61 (record_insert_breakpoint, record_remove_breakpoint): Manage
62 record breakpoints list. Only remove breakpoints from the
63 inferior if they had been inserted there in the first place.
64
65 2012-01-17 Doug Evans <dje@google.com>
66
67 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
68 if we know we don't have a file name to look for.
69
70 2012-01-17 Pedro Alves <palves@redhat.com>
71
72 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
73 the frame's stop reason is UNWIND_UNAVAILABLE.
74
75 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
76
77 Fix compilation error.
78 * m2-exp.y (yyerror): Use ANSI C prototype.
79
80 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
81
82 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
83 (growbuf_by_size): Likewise.
84 (yyerror): Likewise.
85 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
86 (modblock): Remove variable (was #if 0'ed).
87 (parse_number): Convert prototype from K&R to ANSI C.
88 (yyerror): Likewise.
89 * objc-exp.y (parse_number): Likewise.
90 (yyerror): Likewise.
91 (yylex): Remove #if 0'ed code.
92 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
93 (yyerror): Likewise.
94
95 2012-01-16 Tom Tromey <tromey@redhat.com>
96
97 * NEWS: Add item.
98 * symtab.h (compare_filenames_for_search): Declare.
99 * symtab.c (compare_filenames_for_search): New function.
100 (iterate_over_some_symtabs): Use it.
101 * symfile.h (struct quick_symbol_functions)
102 <map_symtabs_matching_filename>: Change spec.
103 * psymtab.c (partial_map_symtabs_matching_filename): Use
104 compare_filenames_for_search. Update for new spec.
105 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
106 compare_filenames_for_search. Update for new spec.
107 * breakpoint.c (clear_command): Use compare_filenames_for_search.
108
109 2012-01-16 Tom Tromey <tromey@redhat.com>
110
111 PR python/13281:
112 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
113 (struct main_type) <flag_flag_enum>: New field.
114 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
115 * NEWS: Add entries.
116 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
117 enums.
118 * python/lib/gdb/printing.py (_EnumInstance): New class.
119 (FlagEnumerationPrinter): Likewise.
120
121 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
122
123 * breakpoint.c (create_sals_from_address_default): New function.
124 (create_breakpoints_sal_default): Likewise.
125 (decode_linespec_default): Likewise.
126 (is_marker_spec): Removed.
127 (strace_marker_p): New function.
128 (init_breakpoint_sal): Using `strace_marker_p' instead of
129 `is_marker_spec'.
130 (create_breakpoint): Call method `create_sals_from_address' from
131 breakpoint_ops, replacing code that created SALs conditionally
132 on the type of the breakpoint. Call method `create_breakpoints_sal',
133 replacing code that created breakpoints conditionally on the type
134 wanted.
135 (base_breakpoint_create_sals_from_address): New function.
136 (base_breakpoint_create_breakpoints_sal): Likewise.
137 (base_breakpoint_decode_linespec): Likewise.
138 (base_breakpoint_ops): Add methods
139 `base_breakpoint_create_sals_from_address',
140 `base_breakpoint_create_breakpoints_sal' and
141 `base_breakpoint_decode_linespec'.
142 (bkpt_create_sals_from_address): New function.
143 (bkpt_create_breakpoints_sal): Likewise.
144 (bkpt_decode_linespec): Likewise.
145 (tracepoint_create_sals_from_address): Likewise.
146 (tracepoint_create_breakpoints_sal): Likewise.
147 (tracepoint_decode_linespec): Likewise.
148 (strace_marker_create_sals_from_address): Likewise.
149 (strace_marker_create_breakpoints_sal): Likewise.
150 (strace_marker_decode_linespec): Likewise.
151 (strace_marker_breakpoint_ops): New variable.
152 (addr_string_to_sals): Remove `marker_spec'. Call method
153 `decode_linespec' from breakpoint_ops, replacing code that decoded
154 an address string into a SAL. Use `strace_marker_p' instead of
155 `marker_spec'.
156 (strace_command): Decide whether we are dealing with a static
157 tracepoint with marker or not. Use the appropriate breakpoint_ops.
158 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
159 * breakpoint.h (linespec_result, linespec_sals): New forward
160 declarations.
161 (breakpoint_ops) <create_sals_from_address>,
162 <create_breakpoints_sal>, <decode_linespec>: New methods.
163
164 2012-01-14 Doug Evans <dje@google.com>
165
166 * NEWS: Update text for "maint set python print-stack".
167 It is deprecated in gdb 7.4 and deleted in 7.5.
168
169 2012-01-13 Eli Zaretskii <eliz@gnu.org>
170
171 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
172 including curses.h.
173
174 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
175
176 * configure: Regenerate.
177 * config.in: Regenerate.
178
179 2012-01-12 Keith Seitz <keiths@redhat.com>
180
181 PR mi/10586
182 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
183 (ANONYMOUS_UNION_NAME): Define.
184 (is_path_expr_parent): New function.
185 (get_path_expr_parent): New function.
186 (is_anonymous_child): New function.
187 (create_child_with_value): If the child is anonymous and without
188 a name, assign an object name to it.
189 (c_describe_child): Use get_path_expr_parent to determine
190 the parent expression.
191 If there field represents an anonymous struct or union and
192 has no name, set an appropriate display name and expression.
193 (cplus_describe_child): Likewise.
194
195 2012-01-12 Pedro Alves <palves@redhat.com>
196
197 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
198 available when %ebp is found to be zero (outermost).
199
200 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
201
202 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
203 an internal gdb_static_assert.
204 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
205
206 2012-01-11 Tom Tromey <tromey@redhat.com>
207
208 PR gdb/9598:
209 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
210 catch" and "catch throw".
211
212 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
213
214 * blockframe.c (block_innermost_frame): Start search from selected
215 frame, if present, or otherwise the current frame.
216
217 * c-exp.y (variable): Update innermost_block for
218 'block COLONCOLON NAME' clause.
219 * m2-exp.y (variable): Ditto.
220 * objc-exp.y (variable): Ditto.
221
222 2012-01-10 Tom Tromey <tromey@redhat.com>
223
224 PR python/13199:
225 * python/python.c (finish_python_initialization): Set sys.argv.
226
227 2012-01-10 Doug Evans <dje@google.com>
228
229 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
230 "want_line_info". All callers updated.
231 (dwarf_decode_lines_1): New function.
232 (handle_DW_AT_stmt_list): Add function comment.
233 New arg "want_line_info". All callers updated.
234 (read_file_scope,read_type_unit_scope): Move comment from
235 handle_DW_AT_stmt_list to here.
236
237 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
238
239 Fix regression after libiberty/ update for GCC PR 6057 and others.
240 * c-exp.y (operator) <OPERATOR DELETE>
241 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
242 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
243 (make_builtin_type, make_name): New variable i, add gdb_assert.
244 (operator) <OPERATOR NEW>: Update ARGS to 3.
245 (operator) <OPERATOR DELETE>: Add trailing space.
246 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
247 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
248 * cp-support.c (cp_canonicalize_string): Check NULL from
249 cp_comp_to_string, call warning and return.
250
251 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
252
253 Fix duplicate .o files after omitting libbfd.a.
254 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
255 (SFILES): Add corelow.c.
256 (COMMON_OBS): Add corelow.o.
257 (ALLDEPFILES): Remove corelow.c.
258 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
259 * config/alpha/alpha-osf3.mh: Likewise.
260 * config/alpha/fbsd.mh: Likewise.
261 * config/arm/nbsdaout.mh: Likewise.
262 * config/arm/nbsdelf.mh: Likewise.
263 * config/i386/i386gnu.mh: Likewise.
264 * config/ia64/hpux.mh: Likewise.
265 * config/ia64/linux.mh: Likewise.
266 * config/m32r/linux.mh: Likewise.
267 * config/m68k/linux.mh: Likewise.
268 * config/mips/irix5.mh: Likewise.
269 * config/mips/irix6.mh: Likewise.
270 * config/pa/hpux.mh: Likewise.
271 * config/pa/linux.mh: Likewise.
272 * config/powerpc/aix.mh: Likewise.
273 * config/sparc/linux.mh: Likewise.
274 * config/sparc/linux64.mh: Likewise.
275 * config/sparc/sol2.mh: Likewise.
276 * config/vax/vax.mh: Likewise.
277 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
278 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
279 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
280 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
281 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
282 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
283 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
284 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
285 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
286 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
287 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
288 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
289 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
290 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
291 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
292 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
293 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
294 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
295 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
296 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
297 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
298 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
299 corelow.o from gdb_target_obs.
300 * corefile.c (core_target): Update the comment on NULL value.
301 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
302 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
303 MATCHES. Drop YUMMY set on NULL.
304 (core_close): Do not call exit_inferior_silent on zero PID. Do not
305 reclaim CORE_DATA if it is already NULL.
306
307 2012-01-09 Doug Evans <dje@google.com>
308
309 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
310 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
311
312 2012-01-09 Keith Seitz <keiths@redhat.com>
313
314 * breakpoint.c (wrapper.h): Don't include.
315
316 2012-01-09 Keith Seitz <keiths@redhat.com>
317
318 * Makefile.in (SFILES): Remove wrapper.c.
319 (HFILES_NO_SRCDIR): Remove wrapper.h.
320 (COMMON_OBS): Remove wrapper.o.
321 * cli/cli-interp.c: Don't inlude wrapper.h.
322 * corelow.c: Likewise.
323 (core_open): Replace gdb_target_find_new_threads with
324 TRY_CATCH around target_find_new_threads.
325 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
326 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
327 * varobj.c (varobj_create): Likewise for parse_exp_1 and
328 evaluate_expression.
329 (varobj_set_value): Likewise for evaluate_expression and
330 value_assign.
331 (install_new_variable): Likewise for value_fetch_lazy.
332 (adjust_value_for_child_access): Likewise for value_ind.
333 (c_describe_child): Likewise for value_subscript and
334 value_ind.
335 (c_value_of_root): Likewise for evaluate_expression.
336 * wrapper.c: Remove.
337 * wrapper.h: Remove.
338
339 2012-01-09 Doug Evans <dje@google.com>
340
341 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
342 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
343 "abfd" args with "section". All callers updated.
344 Error checking code moved ...
345 (error_check_comp_unit_head): ... here. New function.
346 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
347 Delete arg "abfd". New arg "type_offset". All callers updated.
348 (create_debug_types_hash_table): Simplify by using
349 read_and_check_type_unit_head.
350
351 * parser-defs.h (namecopy): Delete.
352 * parse.c (namecopy, namecopy_size): Move into copy_name.
353
354 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
355
356 Partially fix duplicate .o files after omitting libbfd.a.
357 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
358 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
359 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
360 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
361 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
362 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
363 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
364
365 2012-01-09 Pedro Alves <palves@redhat.com>
366
367 * MAINTAINERS: Update my email address.
368
369 2012-01-08 Doug Evans <dje@google.com>
370
371 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
372 n_type_units. Rename type_comp_units to all_type_units.
373 All uses updated.
374 (add_signatured_type_cu_to_table): Renamed from
375 add_signatured_type_cu_to_list. All callers updated.
376
377 * gdbtypes.h (struct cplus_struct_type): Delete member
378 nfn_fields_total. All uses removed.
379
380 2012-01-06 Doug Evans <dje@google.com>
381
382 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
383 to top of file.
384 (dwarf2_find_comp_unit): Delete.
385 (process_psymtab_comp_unit): Make result "void".
386 Delete args buffer, info_ptr, buffer_size, and replace with
387 "section". All callers updated.
388 (dwarf2_build_psymtabs_hard): Simplify.
389
390 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
391 Thiago Jung Bauermann <bauerman@br.ibm.com>
392
393 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
394 before `struct gdb_exception'.
395 * breakpoint.c (update_global_location_list_nothrow)
396 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
397 * cp-abi.c (value_rtti_type): Likewise.
398 * cp-support.c (cp_validate_operator): Likewise.
399 * infrun.c (insert_exception_resume_breakpoint)
400 (check_exception_resume, keep_going): Likewise.
401 * mi-interp.c (mi_breakpoint_created)
402 (mi_breakpoint_modified): Likewise.
403 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
404 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
405 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
406
407 2012-01-05 Doug Evans <dje@google.com>
408
409 * dwarf2read.c (statement_prologue): Delete, unused.
410
411 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
412 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
413
414 * dwarf2read.c (comp_unit_header): Delete, unused.
415
416 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
417
418 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
419 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
420
421 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
422
423 * infrun.c (normal_stop): Don't skip calling the normal_stop
424 observers if the thread was doing a multi-step, but stopped for
425 some reason other than stepping.
426
427 2012-01-05 Pedro Alves <alves.ped@gmail.com>
428
429 * cli/cli-decode.h: Add comments.
430 (CMD_LIST_AMBIGUOUS): Moved to command.h
431 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
432 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
433 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
434 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
435 (add_com, add_com_alias, add_info, add_info_alias)
436 (complete_on_cmdlist, complete_on_enum, help_list): Remove
437 declarations.
438 * command.h: Add and adjust comments.
439 (CMD_LIST_AMBIGUOUS): Moved here.
440 (help_cmd, help_cmd_list): Delete declarations.
441
442 2012-01-04 Doug Evans <dje@google.com>
443
444 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
445 All callers updated.
446 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
447 Replace all arguments with "per_cu". All callers updated.
448
449 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
450
451 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
452 New arg "per_cu". All callers updated.
453
454 Delete #if 0'd out code.
455 * language.c (binop_result_type): Delete.
456 (simple_type, ordered_type, same_type, integral_type): Delete.
457 (numeric_type, character_type, string_type, boolean_type): Delete.
458 (float_type, structured_type): Delete.
459 * language.h: Update.
460
461 2012-01-04 Tom Tromey <tromey@redhat.com>
462
463 * python/py-value.c (valpy_binop): Initialize 'res_val'.
464
465 2012-01-04 Joel Brobecker <brobecker@adacore.com>
466
467 * corefile.c (close_exec_file): Delete.
468 (reopen_exec_file): Remove commented out code that seems related
469 to close_exec_file, which is being deleted here.
470 * inferior.h (close_exec_file): Delete.
471 * fork-child.c (fork_inferior): Remove call to fork_inferior.
472
473 2012-01-04 Joel Brobecker <brobecker@adacore.com>
474
475 * ada-lang.c: #include "cli/cli-utils.h".
476 (get_selections): Use skip_spaces.
477 (ada_get_next_arg): Use skip_spaces and skip_to_space.
478 (catch_ada_exception_command_split): Use skip_spaces.
479 (ada_decode_assert_location): Likewise.
480
481 2012-01-04 Joel Brobecker <brobecker@adacore.com>
482
483 * linespec.c (decode_line_internal): Check for C++ or Java
484 compound constructs only if the current language is C, C++
485 or Java.
486
487 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
488
489 Revert:
490 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
491 Joel Brobecker <brobecker@adacore.com>
492 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
493 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
494 3 times.
495 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
496 fall through into AT_ENTRY_POINT.
497 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
498 DUMMY_ADDR with it.
499 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
500 PPC_INSN_SIZE skip to 3 times.
501
502 2012-01-04 Joel Brobecker <brobecker@adacore.com>
503
504 * linespec.c (add_minsym): Preserve function descriptors.
505
506 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
507
508 * breakpoint.c (all_locations_are_pending): Consider locations
509 in program spaces executing during startup pending as well.
510
511 2012-01-04 Joel Brobecker <brobecker@adacore.com>
512
513 Copyright year update in most files of the GDB Project.
514
515 2012-01-04 Joel Brobecker <brobecker@adacore.com>
516
517 * copyright.sh: Delete.
518 * copyright.py: Rewrite.
519
520 2012-01-04 Joel Brobecker <brobecker@adacore.com>
521
522 * gnulib/extra/update-copyright: New file, imported from gnulib.
523
524 2012-01-04 Joel Brobecker <brobecker@adacore.com>
525
526 * README (Copyright and License Notices): New section.
527
528 2012-01-03 Tom Tromey <tromey@redhat.com>
529
530 PR python/12533:
531 * python/py-value.c (valpy_dereference, valpy_get_address
532 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
533 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
534 (valpy_absolute, valpy_richcompare): Free intermediate values.
535
536 2011-01-03 Joel Brobecker <brobecker@adacore.com>
537
538 * ada-lang.c: Reformat the copyright notice.
539
540 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
541
542 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
543 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
544 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
545 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
546 Revert this part of:
547 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
548 Build gdb directly from *.o files not using libgdb.a.
549 * Makefile.in (COMMON_OBS): Remove solib-target.o.
550
551 2012-01-02 Joel Brobecker <brobecker@adacore.com>
552
553 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
554 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
555 Reformat the copyright header.
556
557 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
558
559 Revert this part of:
560 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
561 Remove the gdbtui binary.
562 * gdb.c (main): Remove args.interpreter_p initialization.
563 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
564 * main.h (struct captured_main_args): Remove interpreter_p.
565
566 2012-01-02 Joel Brobecker <brobecker@adacore.com>
567
568 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
569
570 2012-01-02 Joel Brobecker <brobecker@adacore.com>
571
572 * top.c (print_gdb_version): Update copyright year.
573
574 2012-01-02 Yao Qi <yao@codesourcery.com>
575
576 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
577
578 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
579 Joel Brobecker <brobecker@adacore.com>
580
581 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
582 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
583 3 times.
584 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
585 fall through into AT_ENTRY_POINT.
586 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
587 DUMMY_ADDR with it.
588 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
589 PPC_INSN_SIZE skip to 3 times.
590
591 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
592
593 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
594 the return value.
595 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
596
597 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
598
599 Build gdb directly from *.o files not using libgdb.a.
600 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
601 (COMMON_OBS): Remove solib-target.o.
602 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
603 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
604 (LIBGDB_OBS, libgdb.a): Move it above.
605 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
606 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
607 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
608 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
609 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
610 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
611 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
612 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
613 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
614 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
615 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
616 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
617 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
618 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
619 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
620 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
621 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
622 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
623 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
624 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
625 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
626 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
627 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
628 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
629 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
630 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
631 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
632
633 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
634
635 Remove the gdbtui binary.
636 * .gitignore (/gdbtui): Remove.
637 * Makefile.in (TUI): Remove.
638 (SUBDIR_TUI_OBS): Remove tui-main.o.
639 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
640 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
641 (tui-main.o): Remove.
642 (all_object_files): Remove tui-main.o.
643 * NEWS: New note for the gdbtui removal.
644 * configure: Rebuilt.
645 * configure.ac: No longer add all-tui, clean-tui, install-tui and
646 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
647 CONFIG_UNINSTALL respectively.
648 * gdb.c (main): Remove args.interpreter_p initialization.
649 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
650 * main.h (struct captured_main_args): Remove interpreter_p.
651 * tui/tui-main.c: Remove.
652
653 2012-01-01 Doug Evans <dje@google.com>
654
655 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
656 (dwarf2_physname, read_import_statement): Ditto.
657 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
658 (process_structure_scope read_subroutine_type): Ditto.
659 (read_typedef, load_partial_dies, read_partial_die): Ditto.
660 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
661 (dwarf2_fetch_die_location_block): Ditto.
662 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
663
664 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
665 All callers updated.
666 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
667 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
668 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
669
670 * dwarf2read.c (load_cu): Move assert to more useful location.
671
672 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
673 All callers updated.
674
675 * dwarf2read.c (dwarf2_per_objfile): Add comment.
676 (dwarf2_elf_names): Minor reformat.
677 (dwarf2_per_cu_data): Tweak comment.
678 (dwarf2_read_section): Fix comment.
679 (create_all_comp_units): Fix comment.
680 (load_full_comp_unit): Fix comment.
681 (process_full_comp_unit): Fix comment.
682 (read_signatured_type): Fix comment.
683
684 For older changes see ChangeLog-2011.
685 \f
686 Local Variables:
687 mode: change-log
688 left-margin: 8
689 fill-column: 74
690 version-control: never
691 coding: utf-8
692 End: