cb05fb5a55bc6e31283abff62b7295e14934ab79
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
4
5 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6
7 * language.h (symbol_name_cmp_ftype): Renames
8 symbol_name_match_p_ftype.
9 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10 la_get_symbol_name_match_p.
11 * ada-lang.c (ada_get_symbol_name_cmp): Renames
12 ada_get_symbol_name_match_p. Update comment.
13 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
14 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
15 Renames symbol_name_match_p. Update field type.
16 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
17 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
18 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
19 "la_get_symbol_name_cmp" in comments.
20 * language.c: Likewise.
21
22 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23
24 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
25 %eflags offset.
26 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
27 (amd64_sol2_gregset32_reg_offs): Likewise.
28
29 2012-02-08 Joel Brobecker <brobecker@adacore.com>
30
31 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
32 of the returned BFD is allocated by GDB.
33
34 2012-02-07 Tom Tromey <tromey@redhat.com>
35
36 PR python/12027:
37 * python/python-internal.h (frame_object_type): Declare.
38 * python/py-symbol.c (sympy_needs_frame): New function.
39 (sympy_value): New function.
40 (symbol_object_getset): Add "needs_frame".
41 (symbol_object_methods): Add "value".
42 * python/py-frame.c (frame_object_type): No longer static.
43
44 2012-02-07 Tom Tromey <tromey@redhat.com>
45
46 PR python/13599:
47 * python/py-symbol.c (sympy_line): New function.
48 (symbol_object_getset): Add "line".
49
50 2012-02-07 Tom Tromey <tromey@redhat.com>
51
52 * charset.c (find_charset_names): Check 'in' against NULL.
53
54 2012-02-06 Doug Evans <dje@google.com>
55
56 * gdbtypes.h (struct main_type): Change type of name,tag_name,
57 and fields.name members from char * to const char *. All uses updated.
58 (struct cplus_struct_type): Change type of fn_fieldlists.name member
59 from char * to const char *. All uses updated.
60 (type_name_no_tag): Update.
61 (lookup_unsigned_typename, lookup_signed_typename): Update.
62 * gdbtypes.c (type_name_no_tag): Change result type
63 from char * to const char *. All callers updated.
64 (lookup_unsigned_typename, lookup_signed_typename): Change type of
65 name parameter from char * to const char *.
66 * symtab.h (struct cplus_specific): Change type of demangled_name
67 member from char * to const char *. All uses updated.
68 (struct general_symbol_info): Change type of name and
69 mangled_lang.demangled_name members from char * to const char *.
70 All uses updated.
71 (symbol_get_demangled_name, symbol_natural_name): Update.
72 (symbol_demangled_name, symbol_search_name): Update.
73 * symtab.c (symbol_get_demangled_name): Change result type
74 from char * to const char *. All callers updated.
75 (symbol_natural_name, symbol_demangled_name): Ditto.
76 (symbol_search_name): Ditto.
77 (completion_list_add_name): Change type of symname,sym_text,
78 text,word parameters from char * to const char *.
79 (completion_list_objc_symbol): Change type of sym_text,
80 text,word parameters from char * to const char *.
81 * ada-lang.c (find_struct_field): Change type of name parameter
82 from char * to const char *.
83 (encoded_ordered_before): Similarly for N0,N1 parameters.
84 (old_renaming_is_invisible): Similarly for function_name parameter.
85 (ada_type_name): Change result type from char * to const char *.
86 All callers updated.
87 * ada-lang.h (ada_type_name): Update.
88 * buildsym.c (hashname): Change type of name parameter
89 from char * to const char *.
90 * buildsym.h (hashname): Update.
91 * dbxread.c (end_psymtab): Change type of include_list parameter
92 from char ** to const char **.
93 * dwarf2read.c (determine_prefix): Change result type
94 from char * to const char *. All callers updated.
95 * f-lang.c (find_common_for_function): Change type of name, funcname
96 parameters from char * to const char *.
97 * f-lang.c (find_common_for_function): Update.
98 * f-valprint.c (list_all_visible_commons): Change type of funcname
99 parameters from char * to const char *.
100 * gdbarch.sh (static_transform_name): Change type of name parameter
101 and result from char * to const char *.
102 * gdbarch.c: Regenerate.
103 * gdbarch.h: Regenerate.
104 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
105 of name parameter from char * to const char *.
106 * jv-lang.c (java_primitive_type_from_name): Ditto.
107 (java_demangled_signature_length): Similarly for signature parameter.
108 (java_demangled_signature_copy): Ditto.
109 (java_demangle_type_signature): Ditto.
110 * jv-lang.h (java_primitive_type_from_name): Update.
111 (java_demangle_type_signature): Update.
112 * objc-lang.c (specialcmp): Change type of a,b parameters
113 from char * to const char *.
114 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
115 from char * to const char *. All callers updated.
116 * p-lang.h (is_pascal_string_type): Update.
117 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
118 of name parameter from char * to const char *.
119 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
120 * utils.c (fprintf_symbol_filtered): Ditto.
121 * defs.h (fprintf_symbol_filtered): Update.
122 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
123 * stabsread.h (end_psymtab): Update.
124 * stack.c (find_frame_funname): Change type of funname parameter
125 from char ** to const char **.
126 * stack.h (find_frame_funname): Update.
127 * typeprint.c (type_print): Change type of varstring parameter
128 from char * to const char *.
129 * value.h (type_print): Update.
130 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
131 from char * to const char *. All callers updated.
132 (xcoff_end_psymtab): Change type of include_list parameter
133 from char ** to const char **. All callers updated.
134 (swap_sym): Similarly for name parameter. All callers updated.
135 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
136 Use xstrdup.
137 (process_coff_symbol): Use xstrdup.
138 * stabsread.c (stabs_method_name_from_physname): Renamed from
139 update_method_name_from_physname. Change result type from void
140 to char *. All callers updated.
141 (read_member_functions): In has_destructor case, store name in objfile
142 obstack instead of malloc space. In !has_stub case, fix mem leak.
143
144 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
145
146 * configure: Rebuild.
147 * configure.ac: Put -L../bfd and -L../libiberty at the front of
148 LDFLAGS.
149
150 2012-02-03 Kevin Buettner <kevinb@redhat.com>
151
152 * configure.tgt (rl78-*-elf): New target.
153 * rl78-tdep.c: New file.
154
155 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
156
157 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
158 and continue the loop. Add QUIT statement.
159
160 2012-02-03 Tom Tromey <tromey@redhat.com>
161
162 PR gdb/13596:
163 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
164 bfd_lookup_symbol_from_symtab.
165 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
166 gdb_bfd_lookup_symbol_from_symtab.
167
168 2012-02-03 Joel Brobecker <brobecker@adacore.com>
169
170 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
171 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
172 symbol. Add assertion that sym2 is never NULL.
173
174 2012-02-02 Doug Evans <dje@google.com>
175
176 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
177 "name" parameter to const char ** from char **. All callers updated.
178 (find_pc_partial_function): Ditto.
179 (cache_pc_function_name): Change type to const char * from char *.
180 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
181 (find_pc_partial_function): Update.
182 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
183 type of "name" parameter to const char * from char *.
184 All uses updated.
185 * arch-utils.c (generic_in_solib_return_trampoline): Change
186 type of "name" parameter to const char * from char *.
187 * arch-utils.h (generic_in_solib_return_trampoline): Update.
188 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
189 type of "name" parameter to const char * from char *.
190 * gdbarch.sh (in_solib_return_trampoline): Ditto.
191 * gdbarch.c: Regenerate.
192 * gdbarch.h: Regenerate.
193 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
194 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
195 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
196 type of "name" parameter to const char * from char *.
197 * skip.c (skip_function_pc): Ditto.
198 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
199 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
200 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
201 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
202 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
203 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
204 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
205 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
206 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
207
208 2012-02-02 Pedro Alves <palves@redhat.com>
209
210 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
211 the current inferior has no execution. Make sure the current
212 remote process matches gdb's current inferior.
213
214 2012-02-02 Tom Tromey <tromey@redhat.com>
215
216 PR gdb/13405:
217 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
218 read-only memory.
219
220 2012-02-02 Tom Tromey <tromey@redhat.com>
221
222 PR gdb/9307:
223 * symtab.c (lookup_language_this): Set block_found.
224
225 2012-02-01 Tom Tromey <tromey@redhat.com>
226
227 PR gdb/13431:
228 * jit.c (struct jit_inferior_data): Rewrite.
229 (struct jit_objfile_data): New.
230 (get_jit_objfile_data): New function.
231 (add_objfile_entry): Update.
232 (jit_read_descriptor): Return int. Replace descriptor_addr
233 argument with inf_data. Update. Don't call error.
234 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
235 descriptor here.
236 (jit_inferior_init): Don't look up descriptor. Don't call error.
237 (jit_reset_inferior_data_and_breakpoints)
238 (jit_inferior_created_observer): Remove.
239 (jit_inferior_exit_hook): Update.
240 (jit_executable_changed_observer): Remove.
241 (jit_event_handler): Update.
242 (free_objfile_data): Reset inferior data if needed.
243 (_initialize_jit): Update.
244
245 2012-02-01 Tom Tromey <tromey@redhat.com>
246
247 * jit.c (bfd_open_from_target_memory): Move higher in file.
248
249 2012-02-01 Tristan Gingold <gingold@adacore.com>
250
251 * libunwind-frame.c (libunwind_load): Display message if dlopen
252 failed.
253
254 2012-02-01 Gary Benson <gbenson@redhat.com>
255
256 * symtab.h (symbol_name_match_p_ftype): New typedef.
257 (iterate_over_symbols): Use the above.
258 * symtab.c (iterate_over_symbols): Likewise.
259 * language.h (language_defn->la_iterate_over_symbols): Likewise.
260 * ada-lang.c (ada_iterate_over_symbols): Likewise.
261 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
262 (iterate_name_matcher): Document return values.
263 (collect_one_symbol): Likewise.
264 (collect_function_symbols): Likewise.
265 (collect_symbols): Likewise.
266
267 2012-02-01 Tom Tromey <tromey@redhat.com>
268
269 * ada-lang.c (resolve_subexp): Update.
270 (ada_lookup_symbol_list): Add 'full_search' argument.
271 (ada_iterate_over_symbols): Pass 0 as full_search argument to
272 ada_lookup_symbol_list.
273 (ada_lookup_encoded_symbol): Update.
274 (get_var_value): Update.
275 * ada-exp.y (block_lookup): Update.
276 (write_var_or_type): Update.
277 (write_name_assoc): Update.
278 * ada-lang.h (ada_lookup_symbol_list): Update.
279
280 2012-01-31 Tom Tromey <tromey@redhat.com>
281
282 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
283 comment.
284
285 2012-01-31 Doug Evans <dje@google.com>
286
287 * symtab.h: Remove outdated comment.
288 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
289
290 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
291
292 Fix build error in Darwin port.
293 * i386-darwin-nat.c: Include i386-nat.h.
294
295 2012-01-30 Tom Tromey <tromey@redhat.com>
296
297 PR breakpoints/13568:
298 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
299 argument. Check for recursive includes.
300 (dwarf_decode_macros): Create an include hash.
301
302 2012-01-30 Michael Eager <eager@eagercon.com>
303
304 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
305 * ppc-linux-tdep.c: Include glibc-tdep.h.
306 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
307 (powerpc_linux_in_plt_stub): New function.
308 (powerpc_linux_in_dynsym_resolve_code): New function.
309 (ppc_skip_trampoline_code): New function.
310 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
311 Use glibc_skip_solib_resolver.
312
313 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
314
315 Code cleanup: Make 1440 bytes of data segment read-only.
316 * arch-utils.c (endian_enum): Make it const char *const [].
317 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
318 Likewise.
319 * breakpoint.c (always_inserted_enums): Likewise.
320 * cli/cli-cmds.c (script_ext_enums): Likewise.
321 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
322 enumlist parameter const char *const *.
323 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
324 const char *const *.
325 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
326 parameter const char *const *.
327 * cris-tdep.c (cris_modes): Make it const char *const [].
328 * filesystem.c (target_file_system_kinds): Likewise.
329 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
330 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
331 (can_use_displaced_stepping_enum, scheduler_enums)
332 (exec_direction_names): Likewise.
333 * language.c (_initialize_language): Make the type_or_range_names and
334 case_sensitive_names variables const char *const [].
335 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
336 * python/python.c (python_excp_enums): Likewise.
337 * remote.c (interrupt_sequence_modes): Likewise.
338 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
339 * serial.c (logbase_enums): Likewise.
340 * sh-tdep.c (sh_cc_enum): Likewise.
341 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
342 Likewise.
343 * symtab.c (multiple_symbols_modes): Likewise.
344 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
345 Likewise.
346 * utils.c (internal_problem_modes): Likewise.
347
348 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
349
350 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
351 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
352 result.
353
354 2012-01-27 Doug Evans <dje@google.com>
355
356 * configure.ac (with_python): Fix absolute path handling for win32.
357 * configure: Regenerate.
358
359 2012-01-26 Doug Evans <dje@google.com>
360
361 * symtab.c: Whitespace cleanup, no code changes.
362
363 * symtab.c (lookup_symbol_in_language): Improve comment.
364 (lookup_symbol_aux): Fix comment.
365
366 * psymtab.c (add_psymbol_to_list): Result is now "void".
367 * psympriv.h (add_psymbol_to_list): Update.
368
369 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
370
371 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
372
373 Do not open script filenames twice.
374 * cli/cli-cmds.c (source_script_from_stream): Pass to
375 source_python_script also STREAM.
376 * python/py-auto-load.c (source_section_scripts): Pass to
377 source_python_script_for_objfile also STREAM.
378 (auto_load_objfile_script): Pass to source_python_script_for_objfile
379 also INPUT.
380 * python/python-internal.h (source_python_script_for_objfile): New
381 parameter file, rename parameter file to filename.
382 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
383 instead if !_WIN32. Update the function comment.
384 (source_python_script, source_python_script_for_objfile)
385 (source_python_script): New parameter file, rename parameter file to
386 filename. Pass FILENAME to python_run_simple_file.
387 * python/python.h (source_python_script): New parameter file, rename
388 parameter file to filename.
389
390 2012-01-26 Pedro Alves <palves@redhat.com>
391
392 * corelow.c (core_has_fake_pid): Delete.
393 (core_close): Delete references to `core_has_fake_pid'.
394 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
395 (core_open): Delete references to `core_has_fake_pid'.
396 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
397 the removed global.
398
399 2012-01-26 Joel Brobecker <brobecker@adacore.com>
400
401 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
402 Remove language parameter from name_matcher. Adjust the comment.
403 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
404 Remove language parameter.
405 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
406 * linespec.c (iterate_name_matcher): Likewise.
407 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
408 name_matcher. Adjust call accordingly.
409 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
410 (maintenance_check_symtabs): Adjust type of parameter "fun".
411 * psymtab.h (maintenance_check_symtabs): Likewise.
412
413 2012-01-26 Joel Brobecker <brobecker@adacore.com>
414
415 * language.h (symbol_name_match_p_ftype): New typedef.
416 (struct language_defn): Replace field la_symbol_name_compare
417 by la_get_symbol_name_match_p.
418 * ada-lang.c (ada_get_symbol_name_match_p): New function.
419 (ada_language_defn): Use it.
420 * linespec.c (struct symbol_matcher_data): New type.
421 (iterate_name_matcher): Rewrite.
422 (iterate_over_all_matching_symtabs): Pass a pointer to
423 a symbol_matcher_data struct to expand_symtabs_matching
424 instead of just the lookup name.
425 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
426 opencl-lang.c, p-lang.c, language.c: Delete field
427 la_symbol_name_compare, and replace by NULL for new field
428 la_get_symbol_name_match_p.
429 * symfile.h (struct quick_symbol_functions): Update comment.
430
431 2012-01-25 Tom Tromey <tromey@redhat.com>
432
433 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
434 dereferencing.
435
436 2012-01-24 Tom Tromey <tromey@redhat.com>
437
438 PR symtab/12406:
439 * solib.c (update_solib_list): Update the program space's
440 added_solibs and deleted_solibs fields.
441 * progspace.h (struct program_space) <added_solibs,
442 deleted_solibs>: New fields.
443 (clear_program_space_solib_cache): Declare.
444 * progspace.c (release_program_space): Call
445 clear_program_space_solib_cache.
446 (clear_program_space_solib_cache): New function.
447 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
448 bpstat_stop_status. Use handle_solib_event.
449 * breakpoint.c: Include gdb_regex.h.
450 (print_solib_event): New function.
451 (bpstat_print): Use print_solib_event.
452 (bpstat_stop_status): Add special case for bp_shlib_event.
453 (handle_solib_event): New function.
454 (bpstat_what): Use handle_solib_event.
455 (struct solib_catchpoint): New.
456 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
457 (breakpoint_hit_catch_solib, check_status_catch_solib)
458 (print_it_catch_solib, print_one_catch_solib)
459 (print_mention_catch_solib, print_recreate_catch_solib): New
460 functions.
461 (catch_solib_breakpoint_ops): New global.
462 (catch_load_or_unload, catch_load_command_1)
463 (catch_unload_command_1): New functions.
464 (internal_bkpt_check_status): Add special case for
465 bp_shlib_event.
466 (internal_bkpt_print_it): Use print_solib_event.
467 (initialize_breakpoint_ops): Initialize
468 catch_solib_breakpoint_ops.
469 (_initialize_breakpoint): Register "catch load" and "catch
470 unload".
471 * breakpoint.h (handle_solib_event): Declare.
472 * NEWS: Add entry for "catch load" and "catch unload".
473
474 2012-01-24 Tom Tromey <tromey@redhat.com>
475
476 * ada-lang.c: Include gdb_vecs.h.
477 * charset.c: Include gdb_vecs.h.
478 * tracepoint.h: Include gdb_vecs.h.
479 * gdb_vecs.h: New file.
480
481 2012-01-24 Pedro Alves <pedro@codesourcery.com>
482
483 * breakpoint.c (breakpoint_hit_catch_fork)
484 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
485 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
486 * infrun.c (inferior_has_forked, inferior_has_vforked)
487 (inferior_has_execd, inferior_has_called_syscall): Delete.
488 (handle_syscall_event): Get syscall_number from the execution
489 control state's wait status.
490 (wait_for_inferior): Don't clear syscall_number.
491
492 2012-01-24 Pedro Alves <palves@redhat.com>
493
494 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
495 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
496 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
497 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
498 `ws' parameter.
499 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
500 false for events other than TARGET_SIGNAL_TRAP.
501 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
502 Add `ws' parameter.
503 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
504 events other than TARGET_SIGNAL_TRAP.
505 (tracepoint_breakpoint_hit): Add `ws' parameter.
506 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
507 parameter.
508 (bpstat_stop_status): Same.
509 (pc_at_non_inline_function): Same.
510 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
511 to pass the current event's waitstatus to bpstat_stop_status
512 and pc_at_non_inline_function.
513
514 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
515
516 Code cleanup.
517 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
518 Update the function comment for it.
519 (source_script_with_search): Call make_cleanup_fclose for STREAM.
520 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
521 for STREAM.
522
523 2012-01-24 Pedro Alves <palves@redhat.com>
524
525 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
526 outside `bs->stop' block.
527 (bpstat_what): Rework bp_shlib_event handling.
528 (internal_bkpt_check_status): If the breakpoint is a
529 bp_shlib_event, then set bs->stop and bs->print if
530 stop_on_solib_events is set.
531
532 2012-01-24 Gary Benson <gbenson@redhat.com>
533
534 Delete #if 0'd out code.
535 * stack.c (print_frame_label_vars): Remove.
536 (catch_info): Likewise.
537 (_initialize_stack): Remove "info catch" command.
538 * NEWS: Mention the above.
539
540 2012-01-24 Pedro Alves <palves@redhat.com>
541
542 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
543 it.
544 (remote_notice_new_inferior): If the remote end doesn't support
545 the multiprocess extensions, then the PID is fake.
546 (add_current_inferior_and_thread): New.
547 (remote_start_remote): Use it.
548 (extended_remote_attach_1): Adjust.
549 (extended_remote_create_inferior_1): Use
550 add_current_inferior_and_thread.
551
552 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
553
554 Fix watchpoints to be specific for each inferior.
555 * breakpoint.c (watchpoint_in_thread_scope): Verify also
556 current_program_space.
557 * i386-nat.c (i386_inferior_data_cleanup): New.
558 (i386_inferior_data_get): Replace variable inf_data_local by an
559 inferior_data call.
560 (i386_use_watchpoints): Initialize i386_inferior_data.
561 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
562 specific iterate_over_lwps.
563
564 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
565
566 Fix watchpoints across inferior fork.
567 * amd64-linux-nat.c (update_debug_registers_callback): Update the
568 comment for linux_nat_iterate_watchpoint_lwps.
569 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
570 linux_nat_iterate_watchpoint_lwps.
571 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
572 * i386-linux-nat.c (update_debug_registers_callback): Update the
573 comment for linux_nat_iterate_watchpoint_lwps.
574 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
575 linux_nat_iterate_watchpoint_lwps.
576 (i386_linux_prepare_to_resume): New comment on Linux kernel.
577 * i386-nat.c: Include inferior.h.
578 (dr_mirror): Remove.
579 (i386_inferior_data, struct i386_inferior_data)
580 (i386_inferior_data_get): New.
581 (i386_debug_reg_state): Use i386_inferior_data_get.
582 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
583 (i386_insert_watchpoint, i386_remove_watchpoint)
584 (i386_stopped_data_address, i386_insert_hw_breakpoint)
585 (i386_remove_hw_breakpoint): New variable state, use
586 i386_debug_reg_state instead of DR_MIRROR.
587 * linux-nat.c (delete_lwp): New declaration.
588 (num_lwps): Move here from downwards.
589 (delete_lwp_cleanup): New.
590 (linux_child_follow_fork): Create new child_lp, call
591 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
592 PTRACE_DETACH.
593 (num_lwps): Move upwards.
594 (linux_nat_iterate_watchpoint_lwps): New.
595 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
596 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
597
598 2012-01-24 Joel Brobecker <brobecker@adacore.com>
599
600 GDB 7.4 released.
601
602 2012-01-23 Pedro Alves <palves@redhat.com>
603
604 * top.c (caution): Rename to ...
605 (confirm): ... this.
606 (show_caution): Rename to ...
607 (show_confirm): ... this.
608 (quit_cover): Adjust.
609 (init_main): Adjust.
610 * top.h (caution): Rename to ...
611 (confirm): ... this.
612 * utils.c (internal_vproblem, defaulted_query): Adjust.
613
614 2012-01-23 Pedro Alves <palves@redhat.com>
615
616 * top.c (caution): Update comment.
617 (execute_command): Don't consider the current value of `caution'.
618
619 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
620
621 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
622
623 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
624
625 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
626 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
627 * target.c (target_fileio_pwrite): Remove buffer address from
628 debug output.
629 (target_fileio_pread): Likewise.
630
631 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
632
633 * NEWS: Document remote "info proc" and "generate-core-file".
634
635 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
636
637 * gdbarch.sh (find_memory_regions): New callback.
638 * gdbarch.c, gdbarch.h: Regenerate.
639
640 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
641 callback before falling back to target method.
642
643 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
644 (linux_target_install_ops): No longer install it.
645
646 * linux-tdep.c (linux_find_memory_regions): New function.
647 (linux_init_abi): Install it.
648
649 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
650
651 * gdbarch.sh (make_corefile_notes): New architecture callback.
652 * gdbarch.c: Regenerate.
653 * gdbarch.h: Likewise.
654
655 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
656 before target_make_corefile_notes. If NULL is returned, the
657 target does not support core file generation.
658
659 * linux-nat.c: Include "linux-tdep.h".
660 (find_signalled_thread, find_stop_signal): Remove.
661 (linux_nat_do_thread_registers): Likewise.
662 (struct linux_nat_corefile_thread_data): Likewise.
663 (linux_nat_corefile_thread_callback): Likewise.
664 (iterate_over_spus): Likewise.
665 (struct linux_spu_corefile_data): Likewise.
666 (linux_spu_corefile_callback): Likewise.
667 (linux_spu_make_corefile_notes): Likewise.
668 (linux_nat_collect_thread_registers): New function.
669 (linux_nat_make_corefile_notes): Replace contents by call to
670 linux_make_corefile_notes passing linux_nat_collect_thread_registers
671 as native-only callback.
672
673 * linux-tdep.h: Include "bfd.h".
674 (struct regcache): Add forward declaration.
675 (linux_collect_thread_registers_ftype): New typedef.
676 (linux_make_corefile_notes): Add prototype.
677 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
678 "regset.h", and "elf-bfd.h".
679 (find_signalled_thread, find_stop_signal): New functions.
680 (linux_spu_make_corefile_notes): Likewise.
681 (linux_collect_thread_registers): Likewise.
682 (struct linux_corefile_thread_data): New data structure.
683 (linux_corefile_thread_callback): New funcion.
684 (linux_make_corefile_notes): Likewise.
685 (linux_make_corefile_notes_1): Likewise.
686 (linux_init_abi): Install it.
687
688 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
689
690 * gdbarch.sh (info_proc): New callback.
691 * gdbarch.c, gdbarch.h: Regenerate.
692
693 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
694 before falling back to the target info_proc callback.
695
696 * linux-nat.c: Do not include "cli/cli-utils.h".
697 (linux_nat_info_proc): Remove.
698 (linux_target_install_ops): No longer install it.
699
700 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
701 (read_mapping): New function.
702 (linux_info_proc): Likewise.
703 (linux_init_abi): Install it.
704
705 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
706
707 * defs.h (enum info_proc_what): Moved here from linux-nat.c
708 * infcmd.c: (info_proc_cmd_1): New function.
709 (info_proc_cmd): New function, moved here from equivalent routine
710 orignally in linux-nat.c.
711 (info_proc_cmd_mappings): Likewise.
712 (info_proc_cmd_stat): Likewise.
713 (info_proc_cmd_status): Likewise.
714 (info_proc_cmd_cwd): Likewise.
715 (info_proc_cmd_cmdline): Likewise.
716 (info_proc_cmd_exe): Likewise.
717 (info_proc_cmd_all): Likewise.
718 (_initialize_infcmd): Install "info proc" command and subcommands.
719
720 * target.h (struct target_ops): Add to_info_proc.
721 (target_info_proc): Add prototype.
722 * target.c (target_info_proc): New function.
723
724 * procfs.c (procfs_info_proc): Add prototype.
725 (info_proc_cmd): Rename into ...
726 (procfs_info_proc): ... this. Update argument types as appropriate
727 for a to_info_proc implementation. Handle "what" argument.
728 (procfs_target): Install procfs_info_proc.
729 (_initialize_procfs): No longer install "info proc" command.
730
731 * linux-nat.c: (enum info_proc_what): Remove.
732 (linux_nat_info_proc_cmd_1): Rename into ...
733 (linux_nat_info_proc): ... this. Update argument types as appropriate
734 for a to_info_proc implementation.
735 (linux_nat_info_proc_cmd): Remove.
736 (linux_nat_info_proc_cmd_mappings): Likewise.
737 (linux_nat_info_proc_cmd_stat): Likewise.
738 (linux_nat_info_proc_cmd_status): Likewise.
739 (linux_nat_info_proc_cmd_cwd): Likewise.
740 (linux_nat_info_proc_cmd_cmdline): Likewise.
741 (linux_nat_info_proc_cmd_exe): Likewise.
742 (linux_nat_info_proc_cmd_all): Likewise.
743 (linux_target_install_ops): Install linux_nat_info_proc.
744 (_initialize_linux_nat): No longer install "info proc" command
745 and subcommands.
746
747 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
748
749 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
750 * config.in, configure: Regenerate.
751
752 * target.h (struct target_ops): Add to_fileio_readlink.
753 (target_fileio_readlink): Add prototype.
754 * target.c (target_fileio_readlink): New function.
755
756 * inf-child.c: Conditionally include <sys/param.h>.
757 (inf_child_fileio_readlink): New function.
758 (inf_child_target): Install it.
759
760 * remote.c (PACKET_vFile_readlink): New enum value.
761 (remote_hostio_readlink): New function.
762 (init_remote_ops): Install it.
763 (_initialize_remote): Handle vFile:readlink packet type.
764
765 2012-01-20 Pedro Alves <palves@redhat.com>
766 Ulrich Weigand <ulrich.weigand@linaro.org>
767
768 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
769 * config.in, configure: Regenerate.
770
771 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
772 to_fileio_pread, to_fileio_close, to_fileio_unlink.
773 (target_fileio_open): Add prototype.
774 (target_fileio_pwrite): Likewise.
775 (target_fileio_pread): Likewise.
776 (target_fileio_close): Likewise.
777 (target_fileio_unlink): Likewise.
778 (target_fileio_read_alloc): Likewise.
779 (target_fileio_read_stralloc): Likewise.
780
781 * target.c: Include "gdb/fileio.h".
782 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
783 (default_fileio_target): New function.
784 (target_fileio_open): Likewise.
785 (target_fileio_pwrite): Likewise.
786 (target_fileio_pread): Likewise.
787 (target_fileio_close): Likewise.
788 (target_fileio_unlink): Likewise.
789 (target_fileio_close_cleanup): Likewise.
790 (target_fileio_read_alloc_1): Likewise.
791 (target_fileio_read_alloc): Likewise.
792 (target_fileio_read_stralloc): Likewise.
793
794 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
795 <fcntl.h>, and <unistd.h>.
796 (inf_child_fileio_open_flags_to_host): New function.
797 (inf_child_errno_to_fileio_error): Likewise.
798 (inf_child_fileio_open): Likewise.
799 (inf_child_fileio_pwrite): Likewise.
800 (inf_child_fileio_pread): Likewise.
801 (inf_child_fileio_close): Likewise.
802 (inf_child_fileio_unlink): Likewise.
803 (inf_child_target): Install to_fileio routines.
804
805 * remote.c (init_remote_ops): Install to_fileio routines.
806
807 2012-01-20 Pedro Alves <palves@redhat.com>
808 Ulrich Weigand <ulrich.weigand@linaro.org>
809
810 * remote.c (remote_multi_process_p): Only check for multi-process
811 protocol feature, do not check for extended protocol.
812 (remote_supports_multi_process): Check for extended protocol here.
813 (set_general_process): Likewise.
814 (extended_remote_kill): Likewise.
815 (remote_pid_to_str): Likewise.
816 (remote_query_supported): Always query multiprocess mode.
817
818 2012-01-20 Pedro Alves <palves@redhat.com>
819 Ulrich Weigand <ulrich.weigand@linaro.org>
820
821 * inferior.h (struct inferior): Add fake_pid_p.
822 * inferior.c (exit_inferior_1): Clear fake_pid_p.
823 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
824 magic_null_ptid since the remote side doesn't provide a real PID.
825
826 2012-01-19 Tom Tromey <tromey@redhat.com>
827
828 * NEWS: Combine the two Python sections.
829
830 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
831
832 * target.h (target_close): Update comment on the target's unpush state.
833
834 2012-01-19 Pedro Alves <palves@redhat.com>
835
836 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
837 linux_nat_async directly instead of going through the target
838 vector.
839 * target.c (unpush_target): Close target after unpushing it, not
840 before.
841
842 2012-01-19 Gary Benson <gbenson@redhat.com>
843
844 * mdebugread.c (sort_blocks): Replace integer constants with ones
845 derived from FIRST_LOCAL_BLOCK.
846
847 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
848 Jan Kratochvil <jan.kratochvil@redhat.com>
849
850 PR gdb/9538
851 * symfile.c (find_separate_debug_file): New function.
852 (terminate_after_last_dir_separator): Likewise.
853 (find_separate_debug_file_by_debuglink): Also try realpath.
854 * configure.ac (AC_CHECK_FUNCS): Add lstat.
855 * configure: Regenerate.
856 * config.in: Regenerate.
857
858 2012-01-18 Doug Evans <dje@google.com>
859
860 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
861 (main.o): Remove rule.
862 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
863 (--with-sysroot): Rewrite.
864 * configure: Regenerate.
865 * config.in: Regenerate.
866
867 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
868
869 * parse.c (initialize_expout): New function.
870 (reallocate_expout): Likewise.
871 (parse_exp_in_context): Use `initialize_expout' and
872 `reallocate_expout' when appropriate.
873
874 2012-01-18 Pedro Alves <palves@redhat.com>
875
876 * record.c (struct record_breakpoint, record_breakpoint_p)
877 (record_breakpoints): New.
878 (record_insert_breakpoint, record_remove_breakpoint): Manage
879 record breakpoints list. Only remove breakpoints from the
880 inferior if they had been inserted there in the first place.
881
882 2012-01-17 Doug Evans <dje@google.com>
883
884 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
885 if we know we don't have a file name to look for.
886
887 2012-01-17 Pedro Alves <palves@redhat.com>
888
889 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
890 the frame's stop reason is UNWIND_UNAVAILABLE.
891
892 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
893
894 Fix compilation error.
895 * m2-exp.y (yyerror): Use ANSI C prototype.
896
897 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
898
899 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
900 (growbuf_by_size): Likewise.
901 (yyerror): Likewise.
902 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
903 (modblock): Remove variable (was #if 0'ed).
904 (parse_number): Convert prototype from K&R to ANSI C.
905 (yyerror): Likewise.
906 * objc-exp.y (parse_number): Likewise.
907 (yyerror): Likewise.
908 (yylex): Remove #if 0'ed code.
909 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
910 (yyerror): Likewise.
911
912 2012-01-16 Tom Tromey <tromey@redhat.com>
913
914 * NEWS: Add item.
915 * symtab.h (compare_filenames_for_search): Declare.
916 * symtab.c (compare_filenames_for_search): New function.
917 (iterate_over_some_symtabs): Use it.
918 * symfile.h (struct quick_symbol_functions)
919 <map_symtabs_matching_filename>: Change spec.
920 * psymtab.c (partial_map_symtabs_matching_filename): Use
921 compare_filenames_for_search. Update for new spec.
922 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
923 compare_filenames_for_search. Update for new spec.
924 * breakpoint.c (clear_command): Use compare_filenames_for_search.
925
926 2012-01-16 Tom Tromey <tromey@redhat.com>
927
928 PR python/13281:
929 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
930 (struct main_type) <flag_flag_enum>: New field.
931 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
932 * NEWS: Add entries.
933 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
934 enums.
935 * python/lib/gdb/printing.py (_EnumInstance): New class.
936 (FlagEnumerationPrinter): Likewise.
937
938 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
939
940 * breakpoint.c (create_sals_from_address_default): New function.
941 (create_breakpoints_sal_default): Likewise.
942 (decode_linespec_default): Likewise.
943 (is_marker_spec): Removed.
944 (strace_marker_p): New function.
945 (init_breakpoint_sal): Using `strace_marker_p' instead of
946 `is_marker_spec'.
947 (create_breakpoint): Call method `create_sals_from_address' from
948 breakpoint_ops, replacing code that created SALs conditionally
949 on the type of the breakpoint. Call method `create_breakpoints_sal',
950 replacing code that created breakpoints conditionally on the type
951 wanted.
952 (base_breakpoint_create_sals_from_address): New function.
953 (base_breakpoint_create_breakpoints_sal): Likewise.
954 (base_breakpoint_decode_linespec): Likewise.
955 (base_breakpoint_ops): Add methods
956 `base_breakpoint_create_sals_from_address',
957 `base_breakpoint_create_breakpoints_sal' and
958 `base_breakpoint_decode_linespec'.
959 (bkpt_create_sals_from_address): New function.
960 (bkpt_create_breakpoints_sal): Likewise.
961 (bkpt_decode_linespec): Likewise.
962 (tracepoint_create_sals_from_address): Likewise.
963 (tracepoint_create_breakpoints_sal): Likewise.
964 (tracepoint_decode_linespec): Likewise.
965 (strace_marker_create_sals_from_address): Likewise.
966 (strace_marker_create_breakpoints_sal): Likewise.
967 (strace_marker_decode_linespec): Likewise.
968 (strace_marker_breakpoint_ops): New variable.
969 (addr_string_to_sals): Remove `marker_spec'. Call method
970 `decode_linespec' from breakpoint_ops, replacing code that decoded
971 an address string into a SAL. Use `strace_marker_p' instead of
972 `marker_spec'.
973 (strace_command): Decide whether we are dealing with a static
974 tracepoint with marker or not. Use the appropriate breakpoint_ops.
975 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
976 * breakpoint.h (linespec_result, linespec_sals): New forward
977 declarations.
978 (breakpoint_ops) <create_sals_from_address>,
979 <create_breakpoints_sal>, <decode_linespec>: New methods.
980
981 2012-01-14 Doug Evans <dje@google.com>
982
983 * NEWS: Update text for "maint set python print-stack".
984 It is deprecated in gdb 7.4 and deleted in 7.5.
985
986 2012-01-13 Eli Zaretskii <eliz@gnu.org>
987
988 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
989 including curses.h.
990
991 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
992
993 * configure: Regenerate.
994 * config.in: Regenerate.
995
996 2012-01-12 Keith Seitz <keiths@redhat.com>
997
998 PR mi/10586
999 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
1000 (ANONYMOUS_UNION_NAME): Define.
1001 (is_path_expr_parent): New function.
1002 (get_path_expr_parent): New function.
1003 (is_anonymous_child): New function.
1004 (create_child_with_value): If the child is anonymous and without
1005 a name, assign an object name to it.
1006 (c_describe_child): Use get_path_expr_parent to determine
1007 the parent expression.
1008 If there field represents an anonymous struct or union and
1009 has no name, set an appropriate display name and expression.
1010 (cplus_describe_child): Likewise.
1011
1012 2012-01-12 Pedro Alves <palves@redhat.com>
1013
1014 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
1015 available when %ebp is found to be zero (outermost).
1016
1017 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
1018
1019 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
1020 an internal gdb_static_assert.
1021 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
1022
1023 2012-01-11 Tom Tromey <tromey@redhat.com>
1024
1025 PR gdb/9598:
1026 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
1027 catch" and "catch throw".
1028
1029 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
1030
1031 * blockframe.c (block_innermost_frame): Start search from selected
1032 frame, if present, or otherwise the current frame.
1033
1034 * c-exp.y (variable): Update innermost_block for
1035 'block COLONCOLON NAME' clause.
1036 * m2-exp.y (variable): Ditto.
1037 * objc-exp.y (variable): Ditto.
1038
1039 2012-01-10 Tom Tromey <tromey@redhat.com>
1040
1041 PR python/13199:
1042 * python/python.c (finish_python_initialization): Set sys.argv.
1043
1044 2012-01-10 Doug Evans <dje@google.com>
1045
1046 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
1047 "want_line_info". All callers updated.
1048 (dwarf_decode_lines_1): New function.
1049 (handle_DW_AT_stmt_list): Add function comment.
1050 New arg "want_line_info". All callers updated.
1051 (read_file_scope,read_type_unit_scope): Move comment from
1052 handle_DW_AT_stmt_list to here.
1053
1054 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1055
1056 Fix regression after libiberty/ update for GCC PR 6057 and others.
1057 * c-exp.y (operator) <OPERATOR DELETE>
1058 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
1059 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
1060 (make_builtin_type, make_name): New variable i, add gdb_assert.
1061 (operator) <OPERATOR NEW>: Update ARGS to 3.
1062 (operator) <OPERATOR DELETE>: Add trailing space.
1063 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
1064 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
1065 * cp-support.c (cp_canonicalize_string): Check NULL from
1066 cp_comp_to_string, call warning and return.
1067
1068 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1069
1070 Fix duplicate .o files after omitting libbfd.a.
1071 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
1072 (SFILES): Add corelow.c.
1073 (COMMON_OBS): Add corelow.o.
1074 (ALLDEPFILES): Remove corelow.c.
1075 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
1076 * config/alpha/alpha-osf3.mh: Likewise.
1077 * config/alpha/fbsd.mh: Likewise.
1078 * config/arm/nbsdaout.mh: Likewise.
1079 * config/arm/nbsdelf.mh: Likewise.
1080 * config/i386/i386gnu.mh: Likewise.
1081 * config/ia64/hpux.mh: Likewise.
1082 * config/ia64/linux.mh: Likewise.
1083 * config/m32r/linux.mh: Likewise.
1084 * config/m68k/linux.mh: Likewise.
1085 * config/mips/irix5.mh: Likewise.
1086 * config/mips/irix6.mh: Likewise.
1087 * config/pa/hpux.mh: Likewise.
1088 * config/pa/linux.mh: Likewise.
1089 * config/powerpc/aix.mh: Likewise.
1090 * config/sparc/linux.mh: Likewise.
1091 * config/sparc/linux64.mh: Likewise.
1092 * config/sparc/sol2.mh: Likewise.
1093 * config/vax/vax.mh: Likewise.
1094 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
1095 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
1096 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
1097 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
1098 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
1099 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
1100 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
1101 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
1102 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
1103 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
1104 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
1105 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
1106 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
1107 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
1108 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
1109 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
1110 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
1111 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
1112 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
1113 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
1114 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
1115 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
1116 corelow.o from gdb_target_obs.
1117 * corefile.c (core_target): Update the comment on NULL value.
1118 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
1119 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
1120 MATCHES. Drop YUMMY set on NULL.
1121 (core_close): Do not call exit_inferior_silent on zero PID. Do not
1122 reclaim CORE_DATA if it is already NULL.
1123
1124 2012-01-09 Doug Evans <dje@google.com>
1125
1126 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
1127 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
1128
1129 2012-01-09 Keith Seitz <keiths@redhat.com>
1130
1131 * breakpoint.c (wrapper.h): Don't include.
1132
1133 2012-01-09 Keith Seitz <keiths@redhat.com>
1134
1135 * Makefile.in (SFILES): Remove wrapper.c.
1136 (HFILES_NO_SRCDIR): Remove wrapper.h.
1137 (COMMON_OBS): Remove wrapper.o.
1138 * cli/cli-interp.c: Don't inlude wrapper.h.
1139 * corelow.c: Likewise.
1140 (core_open): Replace gdb_target_find_new_threads with
1141 TRY_CATCH around target_find_new_threads.
1142 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
1143 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
1144 * varobj.c (varobj_create): Likewise for parse_exp_1 and
1145 evaluate_expression.
1146 (varobj_set_value): Likewise for evaluate_expression and
1147 value_assign.
1148 (install_new_variable): Likewise for value_fetch_lazy.
1149 (adjust_value_for_child_access): Likewise for value_ind.
1150 (c_describe_child): Likewise for value_subscript and
1151 value_ind.
1152 (c_value_of_root): Likewise for evaluate_expression.
1153 * wrapper.c: Remove.
1154 * wrapper.h: Remove.
1155
1156 2012-01-09 Doug Evans <dje@google.com>
1157
1158 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
1159 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
1160 "abfd" args with "section". All callers updated.
1161 Error checking code moved ...
1162 (error_check_comp_unit_head): ... here. New function.
1163 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
1164 Delete arg "abfd". New arg "type_offset". All callers updated.
1165 (create_debug_types_hash_table): Simplify by using
1166 read_and_check_type_unit_head.
1167
1168 * parser-defs.h (namecopy): Delete.
1169 * parse.c (namecopy, namecopy_size): Move into copy_name.
1170
1171 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1172
1173 Partially fix duplicate .o files after omitting libbfd.a.
1174 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
1175 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1176 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
1177 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1178 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
1179 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
1180 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1181
1182 2012-01-09 Pedro Alves <palves@redhat.com>
1183
1184 * MAINTAINERS: Update my email address.
1185
1186 2012-01-08 Doug Evans <dje@google.com>
1187
1188 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
1189 n_type_units. Rename type_comp_units to all_type_units.
1190 All uses updated.
1191 (add_signatured_type_cu_to_table): Renamed from
1192 add_signatured_type_cu_to_list. All callers updated.
1193
1194 * gdbtypes.h (struct cplus_struct_type): Delete member
1195 nfn_fields_total. All uses removed.
1196
1197 2012-01-06 Doug Evans <dje@google.com>
1198
1199 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
1200 to top of file.
1201 (dwarf2_find_comp_unit): Delete.
1202 (process_psymtab_comp_unit): Make result "void".
1203 Delete args buffer, info_ptr, buffer_size, and replace with
1204 "section". All callers updated.
1205 (dwarf2_build_psymtabs_hard): Simplify.
1206
1207 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
1208 Thiago Jung Bauermann <bauerman@br.ibm.com>
1209
1210 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
1211 before `struct gdb_exception'.
1212 * breakpoint.c (update_global_location_list_nothrow)
1213 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
1214 * cp-abi.c (value_rtti_type): Likewise.
1215 * cp-support.c (cp_validate_operator): Likewise.
1216 * infrun.c (insert_exception_resume_breakpoint)
1217 (check_exception_resume, keep_going): Likewise.
1218 * mi-interp.c (mi_breakpoint_created)
1219 (mi_breakpoint_modified): Likewise.
1220 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
1221 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
1222 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
1223
1224 2012-01-05 Doug Evans <dje@google.com>
1225
1226 * dwarf2read.c (statement_prologue): Delete, unused.
1227
1228 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
1229 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
1230
1231 * dwarf2read.c (comp_unit_header): Delete, unused.
1232
1233 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
1234
1235 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
1236 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
1237
1238 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
1239
1240 * infrun.c (normal_stop): Don't skip calling the normal_stop
1241 observers if the thread was doing a multi-step, but stopped for
1242 some reason other than stepping.
1243
1244 2012-01-05 Pedro Alves <alves.ped@gmail.com>
1245
1246 * cli/cli-decode.h: Add comments.
1247 (CMD_LIST_AMBIGUOUS): Moved to command.h
1248 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1249 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
1250 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
1251 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
1252 (add_com, add_com_alias, add_info, add_info_alias)
1253 (complete_on_cmdlist, complete_on_enum, help_list): Remove
1254 declarations.
1255 * command.h: Add and adjust comments.
1256 (CMD_LIST_AMBIGUOUS): Moved here.
1257 (help_cmd, help_cmd_list): Delete declarations.
1258
1259 2012-01-04 Doug Evans <dje@google.com>
1260
1261 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
1262 All callers updated.
1263 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
1264 Replace all arguments with "per_cu". All callers updated.
1265
1266 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
1267
1268 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
1269 New arg "per_cu". All callers updated.
1270
1271 Delete #if 0'd out code.
1272 * language.c (binop_result_type): Delete.
1273 (simple_type, ordered_type, same_type, integral_type): Delete.
1274 (numeric_type, character_type, string_type, boolean_type): Delete.
1275 (float_type, structured_type): Delete.
1276 * language.h: Update.
1277
1278 2012-01-04 Tom Tromey <tromey@redhat.com>
1279
1280 * python/py-value.c (valpy_binop): Initialize 'res_val'.
1281
1282 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1283
1284 * corefile.c (close_exec_file): Delete.
1285 (reopen_exec_file): Remove commented out code that seems related
1286 to close_exec_file, which is being deleted here.
1287 * inferior.h (close_exec_file): Delete.
1288 * fork-child.c (fork_inferior): Remove call to fork_inferior.
1289
1290 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1291
1292 * ada-lang.c: #include "cli/cli-utils.h".
1293 (get_selections): Use skip_spaces.
1294 (ada_get_next_arg): Use skip_spaces and skip_to_space.
1295 (catch_ada_exception_command_split): Use skip_spaces.
1296 (ada_decode_assert_location): Likewise.
1297
1298 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1299
1300 * linespec.c (decode_line_internal): Check for C++ or Java
1301 compound constructs only if the current language is C, C++
1302 or Java.
1303
1304 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1305
1306 Revert:
1307 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1308 Joel Brobecker <brobecker@adacore.com>
1309 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
1310 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
1311 3 times.
1312 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
1313 fall through into AT_ENTRY_POINT.
1314 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
1315 DUMMY_ADDR with it.
1316 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
1317 PPC_INSN_SIZE skip to 3 times.
1318
1319 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1320
1321 * linespec.c (add_minsym): Preserve function descriptors.
1322
1323 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1324
1325 * breakpoint.c (all_locations_are_pending): Consider locations
1326 in program spaces executing during startup pending as well.
1327
1328 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1329
1330 Copyright year update in most files of the GDB Project.
1331
1332 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1333
1334 * copyright.sh: Delete.
1335 * copyright.py: Rewrite.
1336
1337 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1338
1339 * gnulib/extra/update-copyright: New file, imported from gnulib.
1340
1341 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1342
1343 * README (Copyright and License Notices): New section.
1344
1345 2012-01-03 Tom Tromey <tromey@redhat.com>
1346
1347 PR python/12533:
1348 * python/py-value.c (valpy_dereference, valpy_get_address
1349 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
1350 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
1351 (valpy_absolute, valpy_richcompare): Free intermediate values.
1352
1353 2011-01-03 Joel Brobecker <brobecker@adacore.com>
1354
1355 * ada-lang.c: Reformat the copyright notice.
1356
1357 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1358
1359 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
1360 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
1361 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
1362 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
1363 Revert this part of:
1364 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1365 Build gdb directly from *.o files not using libgdb.a.
1366 * Makefile.in (COMMON_OBS): Remove solib-target.o.
1367
1368 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1369
1370 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
1371 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
1372 Reformat the copyright header.
1373
1374 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1375
1376 Revert this part of:
1377 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1378 Remove the gdbtui binary.
1379 * gdb.c (main): Remove args.interpreter_p initialization.
1380 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
1381 * main.h (struct captured_main_args): Remove interpreter_p.
1382
1383 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1384
1385 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
1386
1387 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1388
1389 * top.c (print_gdb_version): Update copyright year.
1390
1391 2012-01-02 Yao Qi <yao@codesourcery.com>
1392
1393 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
1394
1395 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1396 Joel Brobecker <brobecker@adacore.com>
1397
1398 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
1399 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
1400 3 times.
1401 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
1402 fall through into AT_ENTRY_POINT.
1403 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
1404 DUMMY_ADDR with it.
1405 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
1406 PPC_INSN_SIZE skip to 3 times.
1407
1408 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1409
1410 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
1411 the return value.
1412 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
1413
1414 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1415
1416 Build gdb directly from *.o files not using libgdb.a.
1417 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
1418 (COMMON_OBS): Remove solib-target.o.
1419 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
1420 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
1421 (LIBGDB_OBS, libgdb.a): Move it above.
1422 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
1423 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
1424 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
1425 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
1426 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
1427 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
1428 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
1429 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
1430 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
1431 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
1432 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
1433 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
1434 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
1435 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
1436 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
1437 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
1438 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
1439 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
1440 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
1441 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
1442 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
1443 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
1444 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
1445 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
1446 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
1447 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
1448 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
1449
1450 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1451
1452 Remove the gdbtui binary.
1453 * .gitignore (/gdbtui): Remove.
1454 * Makefile.in (TUI): Remove.
1455 (SUBDIR_TUI_OBS): Remove tui-main.o.
1456 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
1457 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
1458 (tui-main.o): Remove.
1459 (all_object_files): Remove tui-main.o.
1460 * NEWS: New note for the gdbtui removal.
1461 * configure: Rebuilt.
1462 * configure.ac: No longer add all-tui, clean-tui, install-tui and
1463 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
1464 CONFIG_UNINSTALL respectively.
1465 * gdb.c (main): Remove args.interpreter_p initialization.
1466 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
1467 * main.h (struct captured_main_args): Remove interpreter_p.
1468 * tui/tui-main.c: Remove.
1469
1470 2012-01-01 Doug Evans <dje@google.com>
1471
1472 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
1473 (dwarf2_physname, read_import_statement): Ditto.
1474 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
1475 (process_structure_scope read_subroutine_type): Ditto.
1476 (read_typedef, load_partial_dies, read_partial_die): Ditto.
1477 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
1478 (dwarf2_fetch_die_location_block): Ditto.
1479 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
1480
1481 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
1482 All callers updated.
1483 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
1484 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
1485 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
1486
1487 * dwarf2read.c (load_cu): Move assert to more useful location.
1488
1489 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
1490 All callers updated.
1491
1492 * dwarf2read.c (dwarf2_per_objfile): Add comment.
1493 (dwarf2_elf_names): Minor reformat.
1494 (dwarf2_per_cu_data): Tweak comment.
1495 (dwarf2_read_section): Fix comment.
1496 (create_all_comp_units): Fix comment.
1497 (load_full_comp_unit): Fix comment.
1498 (process_full_comp_unit): Fix comment.
1499 (read_signatured_type): Fix comment.
1500
1501 For older changes see ChangeLog-2011.
1502 \f
1503 Local Variables:
1504 mode: change-log
1505 left-margin: 8
1506 fill-column: 74
1507 version-control: never
1508 coding: utf-8
1509 End:
This page took 0.064832 seconds and 4 git commands to generate.