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