ld/testsuite/
[external/binutils.git] / gdb / ChangeLog
1 2012-07-02  Doug Evans  <dje@google.com>
2
3         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4         instead of "debug dwarf2-die" in debugging printfs.
5         (create_debug_info_hash_table_reader): Ditto.
6         (create_debug_info_hash_table): Ditto.
7         (init_dwo_file): Ditto.
8         (init_cutu_and_read_dies): Add debugging printf.
9         (init_cutu_and_read_dies_no_follow): Ditto.
10         (process_psymtab_comp_unit_reader): Ditto.
11
12 2012-07-02  Stan Shebs  <stan@codesourcery.com>
13
14         Add target-side support for dynamic printf.
15         * NEWS: Mention the additional style.
16         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
17         (struct bp_location): New field cmd_bytecode.
18         * breakpoint.c: Include format.h.
19         (disconnected_dprintf): New global.
20         (parse_cmd_to_aexpr): New function.
21         (build_target_command_list): New function.
22         (insert_bp_location): Call it.
23         (remove_breakpoints_pid): Skip dprintf breakpoints.
24         (print_one_breakpoint_location): Ditto.
25         (dprintf_style_agent): New global.
26         (dprintf_style_enums): Add dprintf_style_agent.
27         (update_dprintf_command_list): Add agent case.
28         (agent_printf_command): New function.
29         (_initialize_breakpoint): Add new commands.
30         * common/ax.def (printf): New bytecode.
31         * ax.h (ax_string): Declare.
32         * ax-gdb.h (gen_printf): Declare.
33         * ax-gdb.c: Include cli-utils.h, format.h.
34         (gen_printf): New function.
35         (maint_agent_print_command): New function.
36         (_initialize_ax_gdb): Add maint agent-printf command.
37         * ax-general.c (ax_string): New function.
38         (ax_print): Add printf disassembly.
39         * Makefile.in (SFILES): Add format.c
40         (COMMON_OBS): Add format.o.
41         * common/format.h: New file.
42         * common/format.c: New file.
43         * printcmd.c: Include format.h.
44         (ui_printf): Call parse_format_string.
45         * remote.c (remote_state): New field breakpoint_commands.
46         (PACKET_BreakpointCommands): New enum.
47         (remote_breakpoint_commands_feature): New function.
48         (remote_protocol_features): Add new BreakpointCommands entry.
49         (remote_can_run_breakpoint_commands): New function.
50         (remote_add_target_side_commands): New function.
51         (remote_insert_breakpoint): Call it.
52         (remote_insert_hw_breakpoint): Ditto.
53         (_initialize_remote): Add new packet configuration for
54         target-side breakpoint commands.
55         * target.h (struct target_ops): New field
56         to_can_run_breakpoint_commands.
57         (target_can_run_breakpoint_commands): New macro.
58         * target.c (update_current_target): Handle
59         to_can_run_breakpoint_commands.
60
61 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
62
63         Execute -ix and -iex only after system and user gdbinit files.
64         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
65         processing down after gdbinit files.
66
67 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
68
69         Add fnmatch-gnu module.
70         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
71         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
72         * gnulib/aclocal.m4: Regenerate.
73         * gnulib/config.in: Regenerate.
74         * gnulib/configure: Regenerate.
75         * gnulib/import/dummy.c: Remove.
76         * gnulib/import/Makefile.am: Regenerate.
77         * gnulib/import/Makefile.in: Likewise.
78         * gnulib/import/m4/gnulib-cache.m4: Likewise.
79         * gnulib/import/m4/gnulib-comp.m4: Likewise.
80         * gnulib/import/alloca.c: New file.
81         * gnulib/import/alloca.in.h: Likewise.
82         * gnulib/import/config.charset: Likewise.
83         * gnulib/import/fnmatch.c: Likewise.
84         * gnulib/import/fnmatch.in.h: Likewise.
85         * gnulib/import/fnmatch_loop.c: Likewise.
86         * gnulib/import/localcharset.c: Likewise.
87         * gnulib/import/localcharset.h: Likewise.
88         * gnulib/import/m4/alloca.m4: Likewise.
89         * gnulib/import/m4/codeset.m4: Likewise.
90         * gnulib/import/m4/configmake.m4: Likewise.
91         * gnulib/import/m4/fcntl-o.m4: Likewise.
92         * gnulib/import/m4/fnmatch.m4: Likewise.
93         * gnulib/import/m4/glibc21.m4: Likewise.
94         * gnulib/import/m4/localcharset.m4: Likewise.
95         * gnulib/import/m4/locale-fr.m4: Likewise.
96         * gnulib/import/m4/locale-ja.m4: Likewise.
97         * gnulib/import/m4/locale-zh.m4: Likewise.
98         * gnulib/import/m4/mbrtowc.m4: Likewise.
99         * gnulib/import/m4/mbsinit.m4: Likewise.
100         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
101         * gnulib/import/m4/mbstate_t.m4: Likewise.
102         * gnulib/import/m4/stdbool.m4: Likewise.
103         * gnulib/import/m4/wchar_h.m4: Likewise.
104         * gnulib/import/m4/wctype_h.m4: Likewise.
105         * gnulib/import/m4/wint_t.m4: Likewise.
106         * gnulib/import/mbrtowc.c: Likewise.
107         * gnulib/import/mbsinit.c: Likewise.
108         * gnulib/import/mbsrtowcs-impl.h: Likewise.
109         * gnulib/import/mbsrtowcs-state.c: Likewise.
110         * gnulib/import/mbsrtowcs.c: Likewise.
111         * gnulib/import/ref-add.sin: Likewise.
112         * gnulib/import/ref-del.sin: Likewise.
113         * gnulib/import/stdbool.in.h: Likewise.
114         * gnulib/import/streq.h: Likewise.
115         * gnulib/import/strnlen1.c: Likewise.
116         * gnulib/import/strnlen1.h: Likewise.
117         * gnulib/import/verify.h: Likewise.
118         * gnulib/import/wchar.in.h: Likewise.
119         * gnulib/import/wctype.in.h: Likewise.
120
121 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
122
123         Support shell wildcards for 'set auto-load safe-path'.
124         * auto-load.c: Include fnmatch.h.
125         (filename_is_in_dir): Rename to ...
126         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
127         it.  Update function comment.  Rename dir_len to pattern_len.  New
128         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
129         messages.  Use gdb_filename_fnmatch.
130         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
131         pattern.
132         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
133         * defs.h (gdb_filename_fnmatch): New declaration.
134         * utils.c: Include fnmatch.h.
135         (gdb_filename_fnmatch): New function.
136
137 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
138
139         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
140         `-probe' and `-probe-stap' options.
141
142 2012-07-01  Yao Qi  <yao@codesourcery.com>
143
144         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
145         always_inserted_off, and always_inserted_enums.
146         Change always_inserted_mode's type to 'enum auto_boolean'.
147         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
148         callers.
149         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
150         of add_setshow_enum_cmd.
151         * infrun.c: Remove can_use_displaced_stepping_auto,
152         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
153         can_use_displaced_stepping_enum.
154         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
155         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
156         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
157         add_setshow_enum_cmd.
158
159 2012-06-30  Doug Evans  <dje@google.com>
160
161         * dwarf2read.c (signatured_type): Make "per_cu" member first.
162         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
163         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
164
165 2012-06-29  Doug Evans  <dje@google.com>
166
167         * linespec.c: #include "stack.h".
168         (decode_line_with_current_source): Moved here from symtab.c and
169         renamed from decode_line_spec.  All callers updated.
170         (decode_line_with_last_displayed): Moved here from breakpoint.c and
171         renamed from decode_line_spec_1.  All callers updated.
172         * linespec.h (decode_line_with_current_source): Move declaration here
173         from symtab.h and renamed from decode_line_spec.
174         (decode_line_with_last_displayed): Move declaration here from symtab.h
175         and renamed from decode_line_spec_1.
176         * macrocmd.c: #include "linespec.h".
177         * symtab.c: Remove #include "linespec.h".
178
179 2012-06-28  Doug Evans  <dje@google.com>
180
181         * dwarf2read.c (get_cu_length): New function.
182         (offset_in_cu_p, error_check_comp_unit_head): Call it.
183         (create_debug_types_hash_table): Ditto.
184         (init_cutu_and_read_dies): Ditto.
185         (init_cutu_and_read_dies_no_follow): Ditto.
186
187         * dwarf2read.c (dwarf2_find_base_address): Move definition.
188
189         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
190         (struct abbrev_table): Define.
191         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
192         abbrev_table.
193         (init_cutu_and_read_dies): Update.
194         (abbrev_table_alloc_abbrev): New function.  Replaces
195         dwarf_alloc_abbrev.  All callers updated.
196         (abbrev_table_add_abbrev): New function.
197         (abbrev_table_lookup_abbrev): New function.  Replaces
198         dwarf2_lookup_abbrev.  All callers updated.
199         (abbrev_table_read_table): New function.  Contents moved here from
200         dwarf2_read_abbrevs.
201         (dwarf2_read_abbrevs): Call it.
202         (abbrev_table_free): New function.
203         (dwarf2_free_abbrev_table): Call it.
204
205 2012-06-28  Stan Shebs  <stan@codesourcery.com>
206
207         * osdata.c (info_osdata_command): Filter out "Title" columns
208         from non-MI uses.
209         * common/linux-osdata.c (struct osdata_type): Add title field.
210         (osdata_table): Add titles to each entry.
211         (linux_command_xfer_osdata): Add a column for title data.
212
213 2012-06-28  Stan Shebs  <stan@codesourcery.com>
214
215         Make logging work for MI.
216         * NEWS: Mention it.
217         * interps.h (interp_set_logging_ftype): New typedef.
218         (struct interp_procs): New field set_logging_proc.
219         (current_interp_set_logging): Declare.
220         * interps.c (current_interp_set_logging): New function.
221         * cli/cli-logging.c: Include interps.h.
222         (set_logging_redirect): Call current_interp_set_logging.
223         (pop_output_files): Ditto.
224         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
225         * mi/mi-console.h (mi_console_set_raw): Declare.
226         * mi/mi-console.c (mi_console_set_raw): New function.
227         * mi/mi-interp.c (saved_raw_stdout): New global.
228         (mi_set_logging): New function.
229         (_initialize_mi_interp): Add it to interp procs.
230
231 2012-06-28  Doug Evans  <dje@google.com>
232
233         * symtab.c (lookup_symbol_aux_objfile): Use
234         ALL_OBJFILE_PRIMARY_SYMTABS.
235
236         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
237
238 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
239
240         * common/buffer.c: Include inttypes.h and stdint.h.
241         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
242
243 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
244             Pedro Alves  <palves@redhat.com>
245
246         * gdbthread.h (ALL_THREADS): New macro.
247         (thread_list): Declare.
248         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
249         going, but instead fall through to the stepping handling.
250         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
251         the passed in signal.  Adjust debug output.
252         (resume_callback): Rename to ...
253         (linux_nat_resume_callback): ... this.  Pass the thread's last
254         stop signal, if in "pass" state.
255         (linux_nat_resume): Adjust to rename.
256         (stop_wait_callback): New assertion.  Don't respawn signals;
257         instead let the LWP remain with SIGNALLED set.
258         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
259         * remote.c (append_pending_thread_resumptions): New.
260         (remote_vcont_resume): Call it.
261         * target.h (target_resume): Extend comment.
262
263 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
264
265         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
266
267 2012-06-27  Doug Evans  <dje@google.com>
268
269         * dwarf2read.c (dwarf2_cu): Add ranges_base.
270         Delete have_addr_base, unused.  All uses updated.
271         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
272         (dwarf2_get_pc_bounds): Add ranges_base.
273         (dwarf2_record_block_ranges): Ditto.
274
275 2012-06-27  Tom Tromey  <tromey@redhat.com>
276
277         PR macros/7961:
278         * varobj.c (varobj_create): Update.
279         (varobj_set_value): Update.
280         * tracepoint.c (validate_actionline): Update.
281         (encode_actions_1): Update.
282         * parse.c (parse_exp_1): Add 'pc' argument.
283         (parse_exp_in_context): Add 'pc' argument.  Change how
284         expression_context_pc is set.
285         (parse_expression): Update.
286         (parse_field_expression): Update.
287         * expression.h (parse_exp_1): Update.
288         * eval.c (parse_to_comma_and_eval): Update.
289         * breakpoint.c (set_breakpoint_condition): Update.
290         (update_watchpoint): Update.
291         (init_breakpoint_sal): Update
292         (find_condition_and_thread): Update.
293         (watch_command_1): Update.
294         (update_breakpoint_locations): Update.
295         * ada-lang.c (ada_read_renaming_var_value): Update.
296         (create_excep_cond_exprs): Update.
297
298 2012-06-27  Doug Evans  <dje@google.com>
299
300         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
301         type units.
302
303 2012-06-26  Doug Evans  <dje@google.com>
304
305         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
306         prototype.
307         (error_check_comp_unit_head): New arg abbrev_section.  All callers
308         updated.
309         (read_and_check_comp_unit_head): Ditto.
310         (read_and_check_type_unit_head): Ditto.
311
312 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
313
314         New attribute 'last' for gdb.Symtab_and_line.
315         * NEWS (Python Scripting): Add entry about the new attribute.
316         * python/py-symtab.c (salpy_get_last): New function which
317         implements the get method for the 'last' attribute of
318         gdb.Symtab_and_line.
319         (sal_object_getset): Add entry for the 'last' attribute.
320
321 2012-06-26  Doug Evans  <dje@google.com>
322
323         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
324         (dwo_sections): Add macinfo, macro.
325         (dwarf2_locate_dwo_sections): Watch for macro sections.
326         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
327         All callers updated.  Handle DWO files.
328
329         * NEWS: Mention new options "set debug dwarf2-read" and
330         "set debug symtab-create".
331         * dwarf2read.c (dwarf2_read_debug): New static global.
332         (dwarf2_build_psymtabs_hard): Add debugging printfs.
333         (process_queue): Ditto.
334         (process_full_comp_unit): Ditto.
335         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
336         * elfread.c (elf_symfile_read): Add debugging printf.
337         * minsyms.c (install_minimal_symbols): Ditto.
338         * psymtab.c (allocate_psymtab): Ditto.
339         * symfile.c (allocate_symtab): Ditto.
340         * symtab.c (symtab_create_debug): New global.
341         (_initialize_symtab): Add new option "set debug symtab-create".
342         * symtab.h (symtab_create_debug): Declare.
343
344         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
345         (lookup_dwo_type_unit): Ditto.
346
347 2012-06-26  Roland McGrath  <roland@hack.frob.com>
348             H.J. Lu  <hongjiu.lu@intel.com>
349
350         * amd64-linux-nat.c: Include <sys/user.h>.
351         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
352         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
353         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
354
355         * configure.ac: Check if the fs_base and gs_base members of
356         `struct user_regs_struct' exist.
357         * config.in: Regenerated.
358         * configure: Likewise.
359
360 2012-06-25  Michael Eager  <eager@eagercon.com>
361
362         PR python/14291
363         * python/python.c (gdbpy_write): Check for interrupted output. 
364
365 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
366
367         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
368         register as a stack alignment in ARM mode.
369
370 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
371
372         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
373         * gnulib/config.in: Regenerate.
374         * gnulib/configure: Likewise.
375         * gnulib/import/m4/extensions.m4: Update it.
376         * gnulib/import/m4/gnulib-common.m4: Likewise.
377         * gnulib/import/m4/memmem.m4: Likewise.
378         * gnulib/import/m4/mmap-anon.m4: Likewise.
379         * gnulib/import/m4/multiarch.m4: Likewise.
380         * gnulib/import/stdint.in.h: Likewise.
381
382 2012-06-24  Yao Qi  <yao@codesourcery.com>
383
384         * corefile.c (write_memory_with_notification): New.
385         * gdbcore.h: Declare write_memory_with_notification.
386         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
387         'observer_notify_memory_changed' with 'write_memory_with_notification'.
388         * valops.c (value_assign): Likewise.
389         * python/py-inferior.c (infpy_write_memory): Call
390         'write_memory_with_notification'.
391
392 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
393
394         * cc-with-index.sh: Use also -ex "set auto-load no".
395
396 2012-06-23  Doug Evans  <dje@google.com>
397
398         PR 14125
399         * NEWS: Document additions to .gdb_index.
400         * dwarf2read.c: #include "gdb/gdb-index.h".
401         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
402         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
403         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
404         (dwarf2_read_index): Recognize version 7.
405         (dw2_do_expand_symtabs_matching): New args want_specific_block,
406         block_kind, domain): All callers updated.
407         (dw2_find_symbol_file): Handle new index CU values.
408         (dw2_expand_symtabs_matching): Match symbol kind if requested.
409         (add_index_entry): New args is_static, kind.  All callers updated.
410         (offset_type_compare, uniquify_cu_indices): New functions
411         (symbol_kind): New function.
412         (write_psymtabs_to_index): Remove duplicate CU values.
413         (write_psymtabs_to_index): Write .gdb_index version 7.
414
415 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
416
417         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
418         * configure: Regenerate.
419
420 2012-06-20  Yao Qi  <yao@codesourcery.com>
421
422         * python/py-inferior.c: Update comments of infpy_read_memory
423         and infpy_write_memory.
424
425 2012-06-19  Tom Tromey  <tromey@redhat.com>
426
427         PR exp/9514:
428         * parser-defs.h (insert_type, insert_type_address_space): Declare.
429         (push_type_address_space): Remove.
430         * parse.c (insert_into_type_stack): New function.
431         (insert_type): Likewise.
432         (insert_type_address_space): Rename from push_type_address_space.
433         Insert tp_space_identifier.
434         * c-exp.y (ptr_operator): New production.
435         (abs_decl): Use ptr_operator.
436         (space_identifier): Call insert_type_address_space.
437         (ptype): Don't use const_or_volatile_or_space_identifier.
438         (const_or_volatile_noopt): Call insert_type.
439         (conversion_type_id, conversion_declarator): New productions.
440         (operator): Use conversion_type_id.
441
442 2012-06-18  Doug Evans  <dje@google.com>
443
444         * symtab.h (minimal_symbol): New member created_by_gdb.
445         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
446         created by gdb.
447         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
448         (search_symbols): Call it instead of lookup_symbol.
449         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
450
451         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
452         Adjust address for DW_OP_GNU_addr_index.
453         * dwarf2expr.h (dwarf_expr_context): Update comment.
454         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
455         all callers updated.  Handle TLS vars described with
456         DW_OP_GNU_const_index.
457         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
458         and DW_OP_GNU_const_index.
459         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
460
461         * block.c (find_block_in_blockvector): Make explicit the fact that we
462         ignore GLOBAL_BLOCK.
463
464 2012-06-18  Tom Tromey  <tromey@redhat.com>
465
466         * c-exp.y (operator): Remove trailing space after "delete" and
467         "delete[]".
468
469 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
470             Jan Kratochvil  <jan.kratochvil@redhat.com>
471
472         Switch i386 and derived targets to ON_STACK.
473         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
474         (amd64_dicos_init_abi): Remove its installment.
475         * dicos-tdep.c (dicos_init_abi): Remove the
476         set_gdbarch_call_dummy_location call.  Update the comment here.
477         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
478         (i386_dicos_init_abi): Remove its installment.
479         * i386-tdep.c (i386_push_dummy_code): New function.
480         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
481         i386_push_dummy_code.
482
483 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
484
485         Remove stale dummy frames.
486         * breakpoint.c: Include dummy-frame.h.
487         (longjmp_breakpoint_ops): New variable.
488         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
489         bp_longjmp_call_dummy.
490         (bpstat_what, bptype_string, print_one_breakpoint_location)
491         (init_bp_location): Support bp_longjmp_call_dummy.
492         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
493         (set_longjmp_breakpoint_for_call_dummy)
494         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
495         functions.
496         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
497         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
498         FIXME comment and extend the other comment for bp_call_dummy.
499         (set_longjmp_breakpoint_for_call_dummy)
500         (check_longjmp_breakpoint_for_call_dummy): New declarations.
501         * dummy-frame.c: Include gdbthread.h.
502         (pop_dummy_frame_bpt): New function.
503         (pop_dummy_frame): Call pop_dummy_frame_bpt.
504         (dummy_frame_discard): New function.
505         (cleanup_dummy_frames): Update the comment about longjmps.
506         * dummy-frame.h (dummy_frame_discard): New declaration.
507         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
508         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
509         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
510         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
511         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
512         keep_going if IS_LONGJMP and there is no other reason to stop.
513
514 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
515
516         * remote-sim.c (sim_command_completer): Initialize
517         variable 'result'.
518
519 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
520
521         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
522         * dwarf2loc.c (call_site_parameter_matches): Support
523         CALL_SITE_PARAMETER_PARAM_OFFSET.
524         (needs_dwarf_reg_entry_value): Push stub value.
525         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
526         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
527         * gdbtypes.h (enum call_site_parameter_kind): New item
528         CALL_SITE_PARAMETER_PARAM_OFFSET.
529         (struct call_site.parameter.u): New field param_offset.
530
531 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
532
533         Code cleanup: Generalize call_site.parameter key.
534         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
535         variable dwarf_reg.  New variable kind_u.  Update parameters to
536         push_dwarf_reg_entry_value.
537         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
538         * dwarf2expr.h (enum call_site_parameter_kind)
539         (union call_site_parameter_u): Forward declarations.
540         (struct dwarf_expr_context_funcs): Update parameters and their
541         description for push_dwarf_reg_entry_value.
542         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
543         * dwarf2loc.c (call_site_parameter_matches): New function.
544         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
545         description.  Use call_site_parameter_matches.
546         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
547         Update parameters and their description.
548         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
549         New variable kind_u.  Adjust the caller for updated parameters.
550         (needs_dwarf_reg_entry_value): Update parameters.
551         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
552         instead of attr.  Update for the changed fields of struct
553         call_site_parameter.
554         * gdbtypes.h: Include dwarf2expr.h.
555         (enum call_site_parameter_kind): New.
556         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
557         fb_offset into new union u.
558
559 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
560
561         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
562         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
563         for x32.
564
565 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
566
567         * amd64-linux-nat.c (compat_x32_clock_t): New.
568         (compat_x32_siginfo_t): Likewise.
569         (compat_x32_siginfo_from_siginfo): Likewise.
570         (siginfo_from_compat_x32_siginfo): Likewise.
571         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
572         and siginfo_from_compat_x32_siginfo for x32.
573
574 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
575
576         * tracepoint.c (tfile_xfer_partial): Add a lseek.
577
578 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
579
580         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
581         instead of gdbarch_ptr_bit.
582         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
583         (amd64_supply_native_gregset): Likewise.
584         (amd64_collect_native_gregset): Likewise.
585         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
586         (amd64_supply_xsave): Likewise.
587         (amd64_collect_fxsave): Likewise.
588         (amd64_collect_xsave): Likewise.
589
590 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
591
592         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
593         (amd64_linux_read_description): Check DS segment register for
594         x32 process.
595
596 2012-06-15  Tom Tromey  <tromey@redhat.com>
597
598         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
599         init_cutu_and_read_dies.
600
601 2012-06-15  Iain Sandoe <iain@codesourcery.com>
602
603         * MAINTAINERS (Write After Approval): Add myself to the list.
604
605 2012-06-15  Tom Tromey  <tromey@redhat.com>
606
607         * valops.c (value_find_oload_method_list): Now static.
608         * value.h (value_find_oload_method_list): Don't declare.
609
610 2012-06-15  Tom Tromey  <tromey@redhat.com>
611
612         * valops.c (find_overload_match): Use value_ind.
613
614 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
615
616         * infrun.c (handle_inferior_event): Correct indentation.
617
618 2012-06-14  Doug Evans  <dje@google.com>
619
620         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
621         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
622         All uses updated.
623         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
624         updated.  Handle DEBUG_LOC_START_LENGTH.
625         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
626         (loclist_describe_location): Ditto.
627
628 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
629
630         PR backtrace/13866
631         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
632         after hiding inline functions.
633
634 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
635
636         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
637         _initialize_inf_ttrace.
638
639 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
640
641         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
642         _initialize_hppa_hpux_nat.
643
644 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
645
646         * remote-sim.c (sim_command_completer): Change type of return
647         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
648
649 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
650             Jan Kratochvil  <jan.kratochvil@redhat.com>
651
652         PR tdep/14222
653         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
654         stack on a 16-byte boundary.
655
656 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
657
658         * jit.c (finalize_symtab): Set function's return type to 'void' by
659         default.
660
661 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
662             H.J. Lu  <hongjiu.lu@intel.com>
663
664         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
665         Move bits common to both the classic LP64 and the new x32 ILP32
666         ABI here.
667         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
668         (amd64_x32_linux_init_abi): New function.
669         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
670         subtype.
671
672         * i386-tdep.h (i386_pseudo_register_name): New prototype.
673         * i386-tdep.c (i386_pseudo_register_name): Make public.
674         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
675         * amd64-tdep.c (amd64_dword_names): Add "eip".
676         (amd64_x32_pseudo_register_type): New function
677         (amd64_x32_init_abi): New function.
678
679 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
680
681         PR build/14003
682         * inferior.h (struct inferior_suspend_state): Comment out.
683         (struct inferior): Comment out the field suspend.
684         * infrun.c (struct infcall_suspend_state): Comment out the field
685         inferior_suspend.
686         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
687         out its assignment.
688
689 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
690
691         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
692         * c-exp.y (classify_inner_name): Remove caller assumptions in the
693         function comment.  Return ERROR for unresolved cases.  Implement
694         returning proper NAME.
695         (yylex): Accept also NAME from classify_inner_name.
696         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
697         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
698         LOC_TYPEDEF type.
699         * cp-support.h (cp_lookup_nested_type): Update its declaration.
700
701 2012-06-13  Tom Tromey  <tromey@redhat.com>
702
703         * breakpoint.c (condition_completer): New function.
704         (_initialize_breakpoint): Use it.
705         * value.c (complete_internalvar): New function.
706         * value.h (complete_internalvar): Declare.
707
708 2012-06-13  Tom Tromey  <tromey@redhat.com>
709
710         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
711         * breakpoint.c (catch_syscall_completer): Return a VEC.
712         * cli/cli-cmds.c (complete_command): Update.
713         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
714         (complete_on_enum): Likewise.
715         * command.h: Include gdb_vecs.h.
716         (completer_ftype): Change return type.
717         (complete_on_cmdlist, complete_on_enum): Likewise.
718         * completer.c (noop_completer, filename_completer)
719         (location_completer): Return a VEC.
720         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
721         to a VEC.
722         (expression_completer, complete_line_internal, complete_line)
723         (command_completer): Return a VEC.
724         (gdb_completion_word_break_characters, line_completion_function):
725         Update.
726         * completer.h: Include gdb_vecs.h.
727         (complete_line, noop_completer, filename_completer)
728         (expression_completer, location_completer, command_completer):
729         Update.
730         * f-lang.c (f_word_break_characters): Return a VEC.
731         * interps.c (interpreter_completer): Return a VEC.
732         * language.h (struct language_defn)
733         <la_make_symbol_completion_list>: Return a VEC.
734         * python/py-cmd.c (cmdpy_completer): Return a VEC.
735         * symtab.c (free_completion_list): Take a VEC.
736         (return_val_size, return_val_index): Remove.
737         (return_val): Now a VEC.
738         (completion_list_add_name): Update.
739         (default_make_symbol_completion_list_break_on)
740         (default_make_symbol_completion_list, make_symbol_completion_list)
741         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
742         Return a VEC.
743         (add_filename_to_list): Update.
744         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
745         <list>: Now a VEC.
746         (maybe_add_partial_symtab_filename): Update.
747         (make_source_files_completion_list): Return a VEC.
748         * symtab.h (default_make_symbol_completion_list_break_on)
749         (default_make_symbol_completion_list, make_symbol_completion_list)
750         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
751         (make_source_files_completion_list): Update.
752
753 2012-06-13  Tom Tromey  <tromey@redhat.com>
754
755         * breakpoint.c (add_catch_command): Use completer_ftype.
756         * breakpoint.h: Include command.h.
757         (add_catch_command): Use completer_ftype.
758         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
759         * cli/cli-decode.h (struct cmd_list_element) <completer>:
760         Use completer_ftype.
761         * command.h (completer_ftype): New typedef.
762         (set_cmd_completer): Use it.
763         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
764         completer_ftype.
765
766 2012-06-13  Pedro Alves  <palves@redhat.com>
767
768         Partial revert of previous change.
769
770         * serial.c (scb_base): New global.
771         (serial_for_fd): New.
772         (serial_open, serial_fdopen_ops): Link new serial in open serials
773         chain.
774         (do_serial_close): Unlink serial from the open serials chain.
775
776 2012-06-12  Pedro Alves  <palves@redhat.com>
777
778         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
779         threads here.
780         (prepare_for_detach): No longer context switch here in non-stop
781         mode.
782         (fetch_inferior_event): Ditto.
783         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
784         to the event thread before removing breakpoints.  Switch to the
785         event thread before inserting breakpoints and resuming.
786         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
787         event thread before resuming.
788         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
789         Switch to the event thread before removing breakpoints.
790
791 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
792
793         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
794         special characters correctly for the Windows shells.  See
795         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
796         report.
797         [!__MINGW32__]: Remove extra double quote character from special
798         characters.
799
800 2012-06-11  Stan Shebs  <stan@codesourcery.com>
801
802         * ui-out.h: Remove #if 0 declarations.
803         * ui-out.c: Remove #if 0 functions.
804
805 2012-06-11  Pedro Alves  <palves@redhat.com>
806
807         * ser-base.c (run_async_handler_and_reschedule): New.
808         (fd_event, push_event): Use it.
809         * serial.c (serial_open, serial_fdopen_ops): Set the initial
810         reference count to 1.
811         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
812         instead of xfree.
813         (serial_is_open, serial_ref, serial_unref): New.
814         * serial.h (serial_open): Adjust comment.
815         (serial_is_open): Declare.
816         (serial_close): Adjust comment.
817         (serial_ref, serial_unref) Declare.
818         (struct serial): New field 'refcnt'.
819
820 2012-06-11  Pedro Alves  <palves@redhat.com>
821
822         Remove #if 0'd "connect" command, and unnecessary associated
823         refcounting and serial reuse bits.
824
825         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
826         * serial.c (last_serial_opened): Delete.
827         (scb_base): Delete.
828         (serial_open): Adjust.
829         (serial_for_fd): Delete.
830         (serial_fdopen_ops, do_serial_close): Adjust.
831         (serial_fdopen_ops): Adjust.
832
833 2012-06-11  Pedro Alves  <palves@redhat.com>
834
835         * serial.c (do_serial_close): Remove early return when SCB is
836         null.
837
838 2012-06-11  Tom Tromey  <tromey@redhat.com>
839
840         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
841
842 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
843
844         Fix regression by the "ambiguous linespec" series.
845         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
846         get_last_displayed_symtab and get_last_displayed_line and depending
847         on CURSAL.
848
849 2012-06-11  Tom Tromey  <tromey@redhat.com>
850
851         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
852         (dw2_find_symbol_file): Use it.
853
854 2012-06-11  Michael Eager  <eager@eagercon.com>
855
856         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
857         * mips-linux-tdep.h (mips_signals): New
858
859 2012-06-11  Tom Tromey  <tromey@redhat.com>
860
861         * infrun.c (handle_inferior_event)
862         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
863         breakpoint.
864         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
865         exception logic in all cases.  Update comments.
866         (insert_longjmp_resume_breakpoint): Set the exception resume
867         breakpoint.
868
869 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
870
871         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
872
873 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
874
875         * valarith.c (binop_types_user_defined_p): Fix a typo.
876
877 2012-06-08  Yao Qi  <yao@codesourcery.com>
878             Chung-Lin Tang <cltang@codesourcery.com>
879
880         * arch-utils.c (default_return_in_first_hidden_param_p): New.
881         * arch-utils.h: Declare.
882         * gdbarch.sh: Add return_in_first_hidden_param_p.
883         * gdbarch.c, gdbarch.h: Regenerated.
884         * infcall.c (call_function_by_hand): Call
885         gdbarch_return_in_first_hidden_param_p instead of
886         language_pass_by_reference.
887
888         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
889         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
890         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
891         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
892         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
893         `cplus_return_struct_by_reference'.
894         (tic6x_return_value): Handle language cplusplus.
895         (tic6x_return_in_first_hidden_param_p): New.
896         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
897
898 2012-06-07  Doug Evans  <dje@google.com>
899
900         * dwarf2read.c (dwarf2_cu): Add comment.
901
902 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
903
904         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
905         variable.
906         (mips_eabi_push_dummy_call): Likewise.
907         (mips_n32n64_push_dummy_call): Likewise.
908         (mips_o32_push_dummy_call): Likewise.
909         (mips_o64_push_dummy_call): Likewise.
910
911 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
912
913         * mips-tdep.c (mips_convert_register_p): Correct coding style.
914
915 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
916
917         * mips-tdep.c (mips_pseudo_register_type): Use
918         mips_float_register_p.
919
920 2012-06-06  Pedro Alves  <palves@redhat.com>
921
922         * infrun.c (handle_inferior_event): Remove calls to
923         reinit_frame_cache that follow a context_switch call.
924
925 2012-06-06  Pedro Alves  <palves@redhat.com>
926
927         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
928         context_switch and remove stale comment.
929
930 2012-06-06  Pedro Alves  <palves@redhat.com>
931
932         * infrun.c (struct execution_control_state): Remove
933         `new_thread_event' field.
934         (handle_inferior_event): Simplify new threads handling; don't
935         resume the inferior if we find a new thread.
936
937 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
938
939         * NEWS: Document the deprecation of SH's 'regs' command.
940         * inferior.h (all_registers_info): Add function declaration.
941         * sh-tdep.c (sh_show_regs): Remove variable.
942         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
943         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
944         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
945         (sh_show_regs_command): Remove functions.
946         (sh_gdbarch_init): Don't set sh_show_regs.
947         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
948         'info all-registers'.
949         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
950         (sh64_show_regs): Remove functions.
951         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
952
953 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
954
955         * configure.ac: Move development=true below AC_INIT.
956         * configure: Regenerate.
957
958 2012-06-05  Stan Shebs  <stan@codesourcery.com>
959
960         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
961         gdb_stdout.
962
963 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
964
965         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
966         argument as ssize_t.
967         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
968         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
969         * target.c (target_read_stack, target_write_memory)
970         (target_write_raw_memory): Likewise.
971         * target.h (target_read_stack, target_write_memory)
972         (target_write_raw_memory): Likewise.
973
974 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
975
976         * symfile-mem.c: Change gdb_static_assert to ssize_t.
977         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
978         * target.c (target_read_memory): Change LEN to ssize_t.
979         * target.h (target_read_memory): Change LEN to ssize_t.
980
981 2012-06-05  Pedro Alves  <palves@redhat.com>
982
983         PR backtrace/13866
984
985         * breakpoint.c (until_break_command): Only fetch the selected
986         frame after decode_line_1.
987
988 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
989
990         * solib-svr4.c (enable_break): Don't fallback to setting the solib
991         event breakpoint at _start, __start or main if a program
992         interpreter is not found.
993
994 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
995
996         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
997         Add declaration.
998         * windows-tdep.c: #include "objfiles.h".
999         (windows_iterate_over_objfiles_in_search_order): New function.
1000         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1001         iterate_over_objfiles_in_search_order gdbarch method to
1002         windows_iterate_over_objfiles_in_search_order.
1003         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1004
1005 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
1006
1007         * gdbarch.sh: Add generation of
1008         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
1009         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
1010         (iterate_over_objfiles_in_search_order): New gdbarch method.
1011         * gdbarch.h, gdbarch.c: Regenerate.
1012         * objfiles.h (default_iterate_over_objfiles_in_search_order):
1013         Add declaration.
1014         * objfiles.c (default_iterate_over_objfiles_in_search_order):
1015         New function.
1016         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1017         out of lookup_symbol_aux_symtabs.
1018         (lookup_symbol_aux_symtabs): Replace extracted-out code by
1019         call to lookup_symbol_aux_objfile.
1020         (struct global_sym_lookup_data): New type.
1021         (lookup_symbol_global_iterator_cb): New function.
1022         (lookup_symbol_global): Search for symbol using
1023         gdbarch_iterate_over_objfiles_in_search_order and
1024         lookup_symbol_global_iterator_cb.
1025         * findvar.c (struct minsym_lookup_data): New type.
1026         (minsym_lookup_iterator_cb): New function.
1027         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
1028         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
1029         and minsym_lookup_iterator_cb.
1030
1031 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
1032
1033         Revert the following patch:
1034         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1035         try locating the symbol in the symbol's own objfile first, before
1036         extending the search to all objfiles.
1037         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1038         out of lookup_symbol_aux_symtabs.
1039         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1040         Replace extracted-out code by call to lookup_symbol_aux_objfile.
1041         Do not search EXCLUDE_OBJFILE.
1042         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1043         (lookup_symbol_global): Search for matches in the block's objfile
1044         first, before searching all other objfiles.
1045
1046 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
1047
1048         * breakpoint.c (find_condition_and_thread): Stop parsing
1049         as soon as the first invalid keyword is found.
1050
1051 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
1052
1053         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
1054
1055 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
1056
1057         * config/djgpp/djcheck.sh: Add copyright header.
1058
1059 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
1060
1061         * copyright.py (update_files, main): Fix path to update-copyright
1062         script.
1063
1064 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
1065
1066         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
1067         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
1068         for which a reminder to update by hand is printed.
1069
1070 2012-06-04  Doug Evans  <dje@google.com>
1071
1072         * buildsym.c (make_blockvector): Add comment.
1073
1074 2012-06-04  Pedro Alves  <palves@redhat.com>
1075
1076         * arch-utils.c (default_gdb_signal_from_target): Delete.
1077         * arch-utils.h (default_gdb_signal_from_target): Delete.
1078         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
1079         gdbarch_gdb_signal_from_target_p.
1080         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
1081         predicate).
1082         * gdbarch.h: Regenerate.
1083         * gdbarch.c: Regenerate.
1084
1085 2012-06-04  Pedro Alves  <palves@redhat.com>
1086
1087         * gdbarch.sh (gdb_signal_from_target): Mention that the
1088         implementation of the method must be host independent.
1089         * gdbarch.h: Regenerate.
1090
1091 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1092
1093         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
1094         parameters.
1095         (target_read_memory_bfd): New function.
1096         (symbol_file_add_from_memory): Use it.
1097
1098 2012-06-03  Doug Evans  <dje@google.com>
1099
1100         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
1101         of primary symtab.
1102         (basic_lookup_transparent_type): Ditto.
1103
1104         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
1105         (ALL_PRIMARY_SYMTABS): Use it.
1106         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1107         * dwarf2read.c (dw2_find_symbol_file): Ditto.
1108         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
1109         * symtab.c (lookup_symbol_aux_objfile): Ditto.
1110         (basic_lookup_transparent_type): Ditto.
1111
1112 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
1113
1114         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
1115         it to optimize resolution of demangled name.
1116
1117 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1118
1119         * configure.ac (development): Define new variable.
1120         Call AC_CHECK_LIB for mcheck if $development.
1121         (ERROR_ON_WARNING): Enable it by default only if $development.
1122         * config.in: Regenerate.
1123         * configure: Regenerate.
1124
1125 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
1126
1127         * target.c (target_read_memory): Make LEN argument as size_t.
1128         * target.h (target_read_memory): Likewise.
1129
1130 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1131
1132         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
1133
1134 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
1135
1136         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
1137         BookE interface for PowerPC server processors if not available
1138         in the Linux Kernel.
1139
1140 2012-05-31  Keith Seitz  <keiths@redhat.com>
1141
1142         * linespec.c (decode_objc): Add cleanup to free
1143         INFO.FILE_SYMTABS.
1144         (find_linespec_symbols): Add cleanup to free CLASSES.
1145         * symfile.c (find_separate_debug_file_by_debuglink): Add
1146         cleanup to free DEBUGLINK.
1147         * ui-out.c (clear_header_list): No need to check if
1148         HEADER_NEXT.COLHDR is NULL.
1149         Free HEADER_NEXT.COL_NAME.
1150
1151 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1152
1153         * ada-lang.c (standard_lookup): Prevent uninitialized variable
1154         warning.
1155
1156 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
1157
1158         * configure.host (gdb_host_cpu): Handle tilegx*.
1159         (gdb_host): Handle tilegx-*-linux*.
1160         * tilegx-linux-nat.c: New file.
1161         * config/tilegx/linux.mh: New file.
1162
1163 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
1164
1165         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
1166         tilegx-linux-tdep.o.
1167         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
1168         tilegx-linux-tdep.c.
1169         * configure.tgt: Handle tilegx-*-linux*.
1170         * tilegx-tdep.h: New file.
1171         * tilegx-tdep.c: New file.
1172         * tilegx-linux-tdep.c: New file.
1173         * regformats/reg-tilegx.dat: New file.
1174
1175 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
1176
1177         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
1178         accounting of hw watchpoints on ppc.
1179
1180 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
1181
1182         * source.c (openp): Expand tilde in path entries.
1183
1184 2012-05-29  Doug Evans  <dje@google.com>
1185
1186         * buildsym.c (block_compar): Fix comment.
1187         (end_symtab): Fix and clarify some comments.
1188
1189         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
1190         cleanup_undefined_types.
1191         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
1192         All callers updated.
1193
1194 2012-05-29  Tom Tromey  <tromey@redhat.com>
1195
1196         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
1197         fails.
1198         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
1199         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
1200         fails.
1201         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
1202         fails.
1203
1204 2012-05-29  Tristan Gingold  <gingold@adacore.com>
1205
1206         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
1207         (struct darwin_info): ... New struct.
1208         (solib_darwin_pspace_data): New variable.
1209         (darwin_pspace_data_cleanup): New function.
1210         (get_darwin_info): Likewise.
1211         (darwin_dyld_version_ok, darwin_load_image_infos)
1212         (darwin_solib_get_all_image_info_addr_at_init)
1213         (darwin_solib_read_all_image_info_addr): Add info argument.
1214         Adjust code.
1215         (darwin_current_sos): Use per pspace structure.
1216         (darwin_solib_create_inferior_hook): Likewise.
1217         (darwin_clear_solib): Likewise.
1218         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
1219
1220 2012-05-28  Pedro Alves  <palves@redhat.com>
1221
1222         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
1223         block that uses them.  Clear ecss before handling each event.
1224
1225 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1226
1227         * solib-svr4.c (svr4_current_sos): New comment on
1228         svr4_current_sos_via_xfer_libraries fall back.
1229
1230 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1231
1232         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
1233         it as a fallback for TYPE_IS_OPAQUE.
1234         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
1235         symbols for lookup_symbol.
1236
1237 2012-05-24  John Steele Scott  <toojays@toojays.net>
1238
1239         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
1240         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
1241         (producer_is_gxx_lt_4_6): Move the checking and caching to...
1242         (check_producer): ... this new function, which also checks for ICC
1243         and caches the result.
1244         (producer_is_icc): New function.
1245         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
1246         producer was ICC.
1247
1248 2012-05-24  Pedro Alves  <palves@redhat.com>
1249
1250         PR gdb/7205
1251
1252         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
1253         (default_gdb_signal_to_target): ... this.  Add comment.
1254         (default_gdb_signal_from_host): Rename to ...
1255         (default_gdb_signal_from_target): ... this.  Add comment.
1256         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
1257         (default_gdb_signal_to_target): ... this.
1258         (default_gdb_signal_from_host): Rename to ...
1259         (default_gdb_signal_from_target): ... this.
1260         * corelow.c (core_open): Adjust to naming change.  Replace comment.
1261         * gdbarch.sh (gdb_signal_from_host): Rename to ...
1262         (gdb_signal_from_target): ... this.  Adjust to
1263         default_gdb_signal_from_host naming change.  Extend comment.
1264         (gdb_signal_to_host): Rename to ...
1265         (gdb_signal_to_target): ... this.  Adjust to
1266         default_gdb_signal_to_host naming change.
1267         * gdbarch.h, gdbarch.c: Renegerate.
1268
1269 2012-05-24  Pedro Alves  <palves@redhat.com>
1270
1271         PR gdb/7205
1272
1273         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1274
1275 2012-05-24  Pedro Alves  <palves@redhat.com>
1276
1277         PR gdb/7205
1278
1279         Replace target_signal with gdb_signal throughout.
1280
1281 2012-05-24  Pedro Alves  <palves@redhat.com>
1282
1283         PR tui/14159
1284
1285         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
1286         string, instead of reusing the va_list argument.
1287
1288 2012-05-24  Tom Tromey  <tromey@redhat.com>
1289
1290         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
1291         Remove.
1292
1293 2012-05-23  Doug Evans  <dje@google.com>
1294
1295         * symtab.c (search_symbols): Formatting fixes.
1296         (print_symbol_info): Formatting fixes.
1297
1298         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
1299         int64_t change to leb128 API.
1300         (read_encoded_value, decode_frame_entry_1): Ditto.
1301         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
1302         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
1303         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1304         (execute_stack_op): Ditto.
1305         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
1306         (safe_read_uleb128, safe_read_sleb128): Ditto.
1307         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
1308         (dwarf2_compile_expr_to_ax): Ditto.
1309         (locexpr_describe_location_piece): Ditto.
1310         (disassemble_dwarf_expression): Ditto.
1311         (locexpr_describe_location_1): Ditto.
1312
1313 2012-05-23  Stan Shebs  <stan@codesourcery.com>
1314             Kwok Cheung Yeung  <kcy@codesourcery.com>
1315
1316         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
1317         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
1318         (mi-cmd-info.o): New rule.
1319         * osdata.h (info_osdata_command): New declaration.
1320         * osdata.c (info_osdata_command): Change to non-static.
1321         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
1322         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
1323         * mi/mi-cmd-info.c: New file.
1324
1325 2012-05-23  Doug Evans  <dje@google.com>
1326
1327         * symtab.c (search_symbols): Pass NULL for file_matcher to
1328         expand_symtabs_matching if there are no files to match.
1329
1330         * gdbtypes.c (lookup_typename): Simplify.
1331
1332 2012-05-23  Pedro Alves  <palves@redhat.com>
1333
1334         * arch-utils.h (default_target_signal_to_host): Delete.
1335         * arch-utils.c (default_target_signal_to_host): Delete.
1336         * gdbarch.sh (target_signal_to_host): Remove.
1337         * gdbarch.h, gdbarch.c: Regenerate.
1338
1339 2012-05-22  Doug Evans  <dje@google.com>
1340
1341         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
1342         "const gdb_byte *".
1343         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
1344         (execute_cfa_program): Update to match API of leb128 functions.
1345         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
1346         "const gdb_byte *".
1347         (read_unsigned_leb128, read_signed_leb128): Delete.
1348         (read_initial_length): Change type of buf argument to
1349         "const gdb_byte *".
1350         (read_encoded_value): Update to match API of leb128 functions.
1351         (decode_frame_entry): Change result to "const gdb_byte *", and
1352         similarly for "start" parameter.
1353         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
1354         (dwarf2_build_frame_info): Change local frame_ptr to
1355         "const gdb_byte *".
1356         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
1357         read_uleb128, read_sleb128.  All callers updated.
1358         (safe_skip_leb128): New function.
1359         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
1360         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
1361         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
1362         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
1363         read_uleb128, read_sleb128.
1364         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1365         (execute_stack_op): Update to match API of leb128 functions.
1366         * dwarf2expr.h: #include "leb128.h".
1367         (read_uleb128, read_sleb128): Delete.
1368         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
1369         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
1370         * dwarf2loc.c (debug_loc_kind): New enum.
1371         (decode_debug_loc_addresses): New function.
1372         (decode_debug_loc_dwo_addresses): New function.
1373         (dwarf2_find_location_expression): Rewrite.
1374         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
1375         (locexpr_describe_location_piece): Ditto.
1376         (disassemble_dwarf_expression): Ditto.
1377         (locexpr_describe_location_1): Ditto.
1378         (loclist_describe_location): Rewrite.
1379         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
1380         * dwarf2read.c (die_reader_specs): New member "buffer_end".
1381         (dwarf2_section_buffer_overflow_complaint): Renamed from
1382         dwarf2_macros_too_long_complaint.  All callers updated.
1383         (skip_leb128): Delete.
1384         (init_cu_die_reader): Initialize reader->buffer_end.
1385         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
1386         (skip_form_bytes): New arg buffer_end.  All callers updated.
1387         Replace call to skip_leb128 with gdb_skip_leb128.
1388         (skip_unknown_opcode): New arg mac_end.  All callers updated.
1389         (fill_in_loclist_baton): Initialize baton->from_dwo.
1390
1391 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
1392
1393         * mips-linux-nat.c (mips_linux_read_description): Use a more
1394         verbose error message.
1395
1396 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
1397
1398         * NEWS: Add MIPS/Linux DSP support.
1399         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
1400         (SIGCONTEXT_DSPCTL): New macro.
1401         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
1402         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
1403         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
1404         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
1405         (N64_SIGCONTEXT_HI3): Likewise.
1406         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
1407         (N64_SIGCONTEXT_LO3): Likewise.
1408         (N64_SIGCONTEXT_DSPCTL): Likewise.
1409         (N64_SIGCONTEXT_FPCSR): Clarify definition.
1410         (mips_linux_o32_sigframe_init): Handle DSP registers.
1411         (mips_linux_n32n64_sigframe_init): Likewise.
1412
1413 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
1414
1415         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
1416         call to abort.
1417
1418 2012-05-22  Pedro Alves  <palves@redhat.com>
1419
1420         * target.h (store_waitstatus): Move declaration ...
1421         * inf-child.h (store_waitstatus): ... here.
1422         * target.c: Move inclusion of gdb_wait.h, and ...
1423         (store_waitstatus): ... this ...
1424         * inf-child.c: ... here.
1425         * linux-nat.c: Include inf-child.h.
1426         * rs6000-nat.c: Include inf-child.h.
1427         * spu-linux-nat.c: Include inf-child.h.
1428
1429 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
1430
1431         * tracepoint.c (start_tracing): Add missing i18n markup.
1432         (stop_tracing, set_trace_user): Ditto.
1433         (set_trace_notes, set_trace_stop_notes): Ditto.
1434
1435 2012-05-21  Tom Tromey  <tromey@redhat.com>
1436
1437         PR c++/7173:
1438         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
1439         types.
1440         * value.h (value_cast_pointers): Update.
1441         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
1442         (value_cast): Update.
1443         (update_search_result): New function.
1444         (do_search_struct_field): New, from search_struct_field.  Check
1445         for ambiguous results.
1446         (search_struct_field): Rewrite.
1447         * infcall.c (value_arg_coerce): Update.
1448         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1449         value_cast_pointers.
1450         * ada-lang.c (ada_convert_actual): Update.
1451
1452 2012-05-21  Tom Tromey  <tromey@redhat.com>
1453
1454         * macroexp.c (macro_stringify): Terminate the string.
1455
1456 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
1457
1458         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1459         Describe it.
1460         * auto-load.c (auto_load_expand_dir_vars): New function.
1461         (auto_load_safe_path_vec_update): Use it, remove the
1462         substitute_path_component call thanks to it.
1463         (auto_load_objfile_script): Remove the debug_file_directory processing.
1464         Use auto_load_expand_dir_vars, remove the substitute_path_component
1465         call thanks to it.
1466         * configure: Regenerate.
1467         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1468         path.  Escape $ also for $debugdir.
1469         (--with_auto_load_safe_path): Escape $ also for $debugdir.
1470         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1471
1472 2012-05-20  Doug Evans  <dje@google.com>
1473
1474         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1475         before use.  Check for symtab->includes == NULL before scanning it.
1476
1477 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
1478
1479         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1480
1481 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
1482
1483         * NEWS: Add microMIPS support and "set mips compression",
1484         "show mips compression" commands.
1485         * mips-tdep.h (mips_isa): New enum.
1486         (gdbarch_tdep): Add mips_isa.
1487         (mips_pc_is_mips16): Update prototype.
1488         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1489         * mips-tdep.c (mips_compression_mips16): New variable.
1490         (mips_compression_micromips): Likewise.
1491         (mips_compression_strings): Likewise.
1492         (mips_compression_string): Likewise.
1493         (is_mips16_isa, is_micromips_isa): New functions.
1494         (is_mips16_addr): Rename to...
1495         (is_compact_addr): ... this.
1496         (unmake_mips16_addr): Likewise to...
1497         (unmake_compact_addr): ... this.
1498         (make_mips16_addr): Likewise to...
1499         (make_compact_addr): ... this.
1500         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1501         functions.
1502         (mips_elf_make_msymbol_special): Handle microMIPS code.
1503         (msymbol_is_special): Rename to...
1504         (msymbol_is_mips16): ... this.
1505         (mips_make_symbol_special, mips_pc_is_mips16): Update
1506         accordingly.
1507         (msymbol_is_mips, msymbol_is_micromips): New functions.
1508         (mips16_to_32_reg): Rename to...
1509         (mips_reg3_to_reg): ... this.
1510         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1511         (mips_pc_isa): Likewise.
1512         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1513         code.
1514         (mips_fetch_instruction): Pass return status instead of printing
1515         an error message if requested.  Handle microMIPS code.  Bail out
1516         on an invalid ISA.
1517         (micromips_op): New macro.
1518         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1519         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1520         (b6s4_op, b7s3_reg): Likewise.
1521         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1522         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1523         (mips_insn_size): New function.
1524         (mips32_next_pc): Update mips_fetch_instruction call.
1525         (micromips_relative_offset7): New function.
1526         (micromips_relative_offset10): Likewise.
1527         (micromips_relative_offset16): Likewise.
1528         (micromips_pc_insn_size): Likewise.
1529         (micromips_bc1_pc): Likewise.
1530         (micromips_next_pc): Likewise.
1531         (unpack_mips16): Update mips_fetch_instruction call.
1532         (extended_mips16_next_pc): Update according to change to
1533         mips16_to_32_reg.
1534         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
1535         code.
1536         (mips16_scan_prologue): Update mips_fetch_instruction call.
1537         Update according to change to mips16_to_32_reg.
1538         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1539         (mips_insn16_frame_base_sniffer): Likewise.
1540         (micromips_decode_imm9): New function.
1541         (micromips_scan_prologue): Likewise.
1542         (mips_micro_frame_cache): Likewise.
1543         (mips_micro_frame_this_id): Likewise.
1544         (mips_micro_frame_prev_register): Likewise.
1545         (mips_micro_frame_sniffer): Likewise.
1546         (mips_micro_frame_unwind): New variable.
1547         (mips_micro_frame_base_address): New function.
1548         (mips_micro_frame_base): New variable.
1549         (mips_micro_frame_base_sniffer): New function.
1550         (mips32_scan_prologue): Update mips_fetch_instruction call.
1551         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1552         rather than for MIPS16.
1553         (mips_insn32_frame_base_sniffer): Likewise.
1554         (mips_addr_bits_remove): Handle microMIPS code.
1555         (deal_with_atomic_sequence): Rename to...
1556         (mips_deal_with_atomic_sequence): ... this.  Update the type
1557         of the variable used to hold an instruction.  Remove the ISA bit
1558         check.  Update mips_fetch_instruction call.
1559         (micromips_deal_with_atomic_sequence): New function.
1560         (deal_with_atomic_sequence): Likewise.
1561         (mips_about_to_return): Handle microMIPS code.  Update
1562         mips_fetch_instruction call.
1563         (heuristic_proc_start): Check for the standard MIPS ISA rather
1564         than for MIPS16.  Update mips_pc_is_mips16 and
1565         mips_fetch_instruction calls.  Handle microMIPS code.
1566         (mips_push_dummy_code): Handle microMIPS code.
1567         (mips_eabi_push_dummy_call): Likewise.
1568         (mips_o32_return_value): Update mips_pc_is_mips16 call.
1569         (mips_o64_push_dummy_call): Handle microMIPS code.
1570         (mips_o64_return_value): Update mips_pc_is_mips16 call.
1571         (is_delayed): Remove function.
1572         (mips_single_step_through_delay): Replace the call to is_delayed
1573         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
1574         Handle microMIPS code.
1575         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
1576         microMIPS code.
1577         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1578         call.
1579         (micromips_in_function_epilogue_p): New function.
1580         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1581         call.
1582         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1583         Handle microMIPS.
1584         (gdb_print_insn_mips): Likewise.
1585         (mips_breakpoint_from_pc): Likewise.
1586         (mips_remote_breakpoint_from_pc): New function.
1587         (mips32_instruction_has_delay_slot): Simplify making use of the
1588         updated mips_fetch_instruction interface.
1589         (micromips_instruction_has_delay_slot): New function.
1590         (mips16_instruction_has_delay_slot): Simplify making use of the
1591         updated mips_fetch_instruction interface.
1592         (mips_adjust_breakpoint_address): Check for the standard MIPS
1593         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr 
1594         calls.  Handle microMIPS code.
1595         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1596         (mips_skip_trampoline_code): Handle microMIPS code.
1597         (global_mips_compression): New function.
1598         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1599         file flags.  Register the microMIPS remote breakpoint handler
1600         and heuristic frame unwinder.
1601         (show_mips_compression): New function.
1602         (_initialize_mips_tdep): Add the "set mips compression" and
1603         "show mips compression" commands.
1604
1605 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
1606
1607         * ada-lang.c:
1608         * ada-tasks.c:
1609         * ada-varobj.c:
1610         * amd64-darwin-tdep.c:
1611         * arm-symbian-tdep.c:
1612         * arm-tdep.c:
1613         * avr-tdep.c:
1614         * ax-gdb.c:
1615         * bfin-linux-tdep.c:
1616         * breakpoint.c:
1617         * c-valprint.c:
1618         * cli/cli-cmds.c:
1619         * coffread.c:
1620         * cp-support.c:
1621         * cris-tdep.c:
1622         * dwarf2-frame-tailcall.c:
1623         * dwarf2-frame.c:
1624         * dwarf2expr.c:
1625         * dwarf2loc.c:
1626         * dwarf2read.c:
1627         * elfread.c:
1628         * eval.c:
1629         * expprint.c:
1630         * f-valprint.c:
1631         * frv-tdep.c:
1632         * h8300-tdep.c:
1633         * hppa-hpux-tdep.c:
1634         * hppa-tdep.c:
1635         * hppanbsd-tdep.c:
1636         * i386-nto-tdep.c:
1637         * i386-tdep.c:
1638         * i387-tdep.c:
1639         * ia64-tdep.c:
1640         * jit.c:
1641         * linespec.c:
1642         * linux-tdep.c:
1643         * lm32-tdep.c:
1644         * m2-valprint.c:
1645         * m32c-tdep.c:
1646         * m32r-rom.c:
1647         * m32r-tdep.c:
1648         * m68k-tdep.c:
1649         * m68klinux-tdep.c:
1650         * mi/mi-main.c:
1651         * microblaze-tdep.c:
1652         * mips-linux-tdep.c:
1653         * mips-tdep.c:
1654         * mn10300-tdep.c:
1655         * p-valprint.c:
1656         * parse.c:
1657         * ppc-linux-tdep.c:
1658         * ppc-sysv-tdep.c:
1659         * printcmd.c:
1660         * python/py-finishbreakpoint.c:
1661         * python/py-inferior.c:
1662         * python/py-infthread.c:
1663         * python/py-type.c:
1664         * python/python.c:
1665         * remote-fileio.c:
1666         * remote-m32r-sdi.c:
1667         * remote-mips.c:
1668         * reverse.c:
1669         * rl78-tdep.c:
1670         * rs6000-aix-tdep.c:
1671         * rs6000-tdep.c:
1672         * s390-tdep.c:
1673         * score-tdep.c:
1674         * sh64-tdep.c:
1675         * skip.c:
1676         * solib-darwin.c:
1677         * solib-dsbt.c:
1678         * solib-frv.c:
1679         * sparc-tdep.c:
1680         * spu-multiarch.c:
1681         * spu-tdep.c:
1682         * stack.c:
1683         * symfile.c:
1684         * symtab.c:
1685         * tic6x-tdep.c:
1686         * tracepoint.c:
1687         * v850-tdep.c:
1688         * valarith.c:
1689         * valprint.c:
1690         * value.c:
1691         * xcoffread.c:
1692         * xtensa-tdep.c:
1693         * ada-lang.c:
1694         * ada-tasks.c:
1695         * ada-varobj.c:
1696         * amd64-darwin-tdep.c:
1697         * arm-symbian-tdep.c:
1698         * arm-tdep.c: Delete unused variables.
1699
1700 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
1701
1702         Rename $ddir to $datadir.
1703         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1704         * auto-load.c (auto_load_safe_path_vec_update)
1705         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1706         * configure: Regenerate.
1707         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1708         Likewise.  Remove the 'use $ddir' help string.
1709
1710 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
1711
1712         * auto-load.c (show_auto_load_safe_path): Accept any combination of
1713         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1714
1715 2012-05-18  Tom Tromey  <tromey@redhat.com>
1716
1717         PR exp/13907:
1718         * valprint.h (struct value_print_options) <symbol_print>: New
1719         field.
1720         * valprint.c (user_print_options): Add default for symbol_print.
1721         (show_symbol_print): New function.
1722         (generic_val_print): Respect symbol_print.
1723         (_initialize_valprint): Add "print symbol" setting.
1724         * f-valprint.c (f_val_print): Respect symbol_print.
1725         * c-valprint.c (c_val_print): Respect symbol_print.
1726         * NEWS: Update.
1727         * printcmd.c (print_address_symbolic): Return int.  Ignore some
1728         zero-size symbols.
1729         (print_address_demangle): Return int.
1730         * defs.h: (print_address_symbolic): Return int.
1731         * value.h (print_address_demangle): Return int.
1732
1733 2012-05-18  Tom Tromey  <tromey@redhat.com>
1734
1735         * valprint.c (val_print_string): Don't print leading space.
1736         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1737         print space before string or vtbl.
1738         * m2-valprint.c (print_unpacked_pointer): Optionally print space
1739         before string.
1740         * jv-valprint.c (java_value_print): Print space before string.
1741         * go-valprint.c (print_go_string): Print space before string.
1742         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1743         space before string.
1744         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1745         space before string or vtbl.
1746         * auxv.c (fprint_target_auxv): Print space after address.
1747
1748 2012-05-18  Tom Tromey  <tromey@redhat.com>
1749
1750         * printcmd.c (print_address_demangle): Remove special case for 0.
1751
1752 2012-05-18  Tom Tromey  <tromey@redhat.com>
1753
1754         * printcmd.c (print_address_demangle): Add 'opts' argument.
1755         * p-valprint.c (pascal_val_print): Update.
1756         * jv-valprint.c (java_val_print): Update.
1757         * value.h: Update.
1758         * valprint.c (generic_val_print): Update.
1759         (print_function_pointer_address): Add 'options' argument.  Remove
1760         'addressprint' argument.  Update.
1761         * m2-valprint.c (print_unpacked_pointer): Update.
1762         * gnu-v3-abi.c (print_one_vtable): Update.
1763         (gnuv3_print_method_ptr): Update.
1764         * f-valprint.c (f_val_print): Update.
1765         * cp-valprint.c (cp_print_value_fields): Update.
1766         * valprint.h (print_function_pointer_address): Update.
1767         * c-valprint.c (c_val_print): Update.
1768
1769 2012-05-18  Tom Tromey  <tromey@redhat.com>
1770
1771         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1772         directly corresponding to the found psymtab.
1773         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1774         (dw2_find_pc_sect_symtab): Use it.
1775         * block.h (blockvector_contains_pc): Declare.
1776         * block.c (find_block_in_blockvector): New function.
1777         (blockvector_for_pc_sect): Use it.
1778         (blockvector_contains_pc): New function.
1779
1780 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
1781
1782         * mips-tdep.h (mips_write_pc): New prototype.
1783         * mips-tdep.c (mips_write_pc): Make external, add description.
1784         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1785         add description.
1786
1787 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
1788
1789         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1790         mips_regnum->pc.
1791         (mips_unwind_pc, mips_write_pc): Likewise.
1792         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1793         gdbarch_read_pc.
1794
1795 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
1796
1797         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1798         proc_warn, proc_error, proc_get_status, proc_flags,
1799         proc_why, proc_what, proc_nsysarg, proc_sysargs,
1800         proc_set_run_on_last_close, proc_unset_run_on_last_close,
1801         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1802         proc_stop_process, proc_wait_for_stop, proc_run_process,
1803         proc_set_traced_signals, proc_set_traced_faults,
1804         proc_set_traced_sysentry, proc_set_traced_sysexit,
1805         proc_set_held_signals, proc_get_held_signals,
1806         proc_get_traced_signals, proc_get_traced_faults,
1807         proc_get_traced_sysentry, proc_get_traced_sysexit,
1808         proc_clear_current_fault, proc_set_current_signal,
1809         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1810         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1811         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1812         proc_get_current_thread, proc_get_current_thread,
1813         proc_get_current_thread, proc_update_threads,
1814         proc_update_threads, proc_update_threads, proc_update_threads,
1815         proc_iterate_over_threads, procfs_find_new_threads,
1816         procfs_pid_to_str): Make static.  Remove advance declaration.
1817         (proc_cursig): Make static.  Conditionalized defintion on
1818         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1819         (proc_syscall, proc_set_kill_on_last_close,
1820         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1821         proc_get_pending_signals, proc_get_signal_actions,
1822         proc_trace_signal, proc_ignore_signal): Delete.
1823
1824 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1825
1826         * coffread.c (cs_section_address): Passing proper argument for
1827         `bfd_get_section_vma'.
1828         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1829         `bfd_get_section_flags'.
1830         * remote.c (remote_trace_set_readonly_regions): Likewise, for
1831         `bfd_get_section_vma'.
1832
1833 2012-05-16  Tom Tromey  <tromey@redhat.com>
1834
1835         PR macros/13205:
1836         * macrotab.h: (macro_define_special): Declare.
1837         (enum macro_special_kind): New.
1838         (struct macro_definition) <argc, replacement>: Update comments.
1839         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1840         (macro_define_object_internal): New function.
1841         (macro_define_object): Use it.
1842         (macro_define_special): New function.
1843         (fixup_definition): New function.
1844         (macro_lookup_definition, foreach_macro_in_scope)
1845         (foreach_macro): Use fixup_definition.
1846         * macroexp.h (macro_stringify): Declare.
1847         * macroexp.c (free_buffer_return_text): New function.
1848         (stringify): Constify "arg".
1849         (macro_stringify): New function.
1850         * dwarf2read.c (macro_start_file): Call macro_define_special.
1851
1852 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
1853             Maciej W. Rozycki  <macro@mips.com>
1854
1855         * breakpoint.h (bp_location): Add related_address member.
1856         * inferior.h (get_return_value): Take a pointer to struct value
1857         instead of struct type for the function requested.
1858         * value.h (using_struct_return): Likewise.
1859         * gdbarch.sh (return_value): Take a pointer to struct value
1860         instead of struct type for the function requested.
1861         * breakpoint.c (set_breakpoint_location_function): Initialize
1862         related_address for bp_gnu_ifunc_resolver breakpoints.
1863         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1864         requested function's address to gdbarch_return_value.
1865         * eval.c (evaluate_subexp_standard): Pass the requested
1866         function's address to using_struct_return.
1867         * infcall.c (call_function_by_hand): Pass the requested
1868         function's address to using_struct_return and
1869         gdbarch_return_value.
1870         * infcmd.c (get_return_value): Take a pointer to struct value
1871         instead of struct type for the function requested.
1872         (print_return_value): Update accordingly.
1873         (finish_command_continuation): Likewise.
1874         * stack.c (return_command): Pass the requested function's
1875         address to using_struct_return and gdbarch_return_value.
1876         * value.c (using_struct_return): Take a pointer to struct value
1877         instead of struct type for the function requested.  Pass the
1878         requested function's address to gdbarch_return_value.
1879         * python/py-finishbreakpoint.c (finish_breakpoint_object):
1880         New function_value member, replacing function_type.
1881         (bpfinishpy_dealloc): Update accordingly.
1882         (bpfinishpy_pre_stop_hook): Likewise.
1883         (bpfinishpy_init): Likewise.  Record the requested function's
1884         address.
1885         * mips-tdep.c (mips_fval_reg): New enum.
1886         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1887         words put in GP registers.
1888         (mips_o64_push_dummy_call): Update a comment.
1889         (mips_o32_return_value): Take a pointer to struct value instead
1890         of struct type for the function requested and use it to check if
1891         using the MIPS16 calling convention.  Return the designated
1892         general purpose registers for floating-point values returned in
1893         MIPS16 mode.
1894         (mips_o64_return_value): Likewise.
1895         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1896         (ppc_sysv_abi_broken_return_value): Likewise.
1897         (ppc64_sysv_abi_return_value): Likewise.
1898         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1899         value instead of struct type for the function requested.
1900         * amd64-tdep.c (amd64_return_value): Likewise.
1901         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1902         * arm-tdep.c (arm_return_value): Likewise.
1903         * avr-tdep.c (avr_return_value): Likewise.
1904         * bfin-tdep.c (bfin_return_value): Likewise.
1905         * cris-tdep.c (cris_return_value): Likewise.
1906         * frv-tdep.c (frv_return_value): Likewise.
1907         * h8300-tdep.c (h8300_return_value): Likewise.
1908         (h8300h_return_value): Likewise.
1909         * hppa-tdep.c (hppa32_return_value): Likewise.
1910         (hppa64_return_value): Likewise.
1911         * i386-tdep.c (i386_return_value): Likewise.
1912         * ia64-tdep.c (ia64_return_value): Likewise.
1913         * iq2000-tdep.c (iq2000_return_value): Likewise.
1914         * lm32-tdep.c (lm32_return_value): Likewise.
1915         * m32c-tdep.c (m32c_return_value): Likewise.
1916         * m32r-tdep.c (m32r_return_value): Likewise.
1917         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1918         * m68k-tdep.c (m68k_return_value): Likewise.
1919         (m68k_svr4_return_value): Likewise.
1920         * m88k-tdep.c (m88k_return_value): Likewise.
1921         * mep-tdep.c (mep_return_value): Likewise.
1922         * microblaze-tdep.c (microblaze_return_value): Likewise.
1923         * mn10300-tdep.c (mn10300_return_value): Likewise.
1924         * moxie-tdep.c (moxie_return_value): Likewise.
1925         * mt-tdep.c (mt_return_value): Likewise.
1926         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1927         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1928         (ppc_sysv_abi_broken_return_value): Likewise.
1929         (ppc64_sysv_abi_return_value): Likewise.
1930         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1931         * rl78-tdep.c (rl78_return_value): Likewise.
1932         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1933         * rx-tdep.c (rx_return_value): Likewise.
1934         * s390-tdep.c (s390_return_value): Likewise.
1935         * score-tdep.c (score_return_value): Likewise.
1936         * sh-tdep.c (sh_return_value_nofpu): Likewise.
1937         (sh_return_value_fpu): Likewise.
1938         * sh64-tdep.c (sh64_return_value): Likewise.
1939         * sparc-tdep.c (sparc32_return_value): Likewise.
1940         * sparc64-tdep.c (sparc64_return_value): Likewise.
1941         * spu-tdep.c (spu_return_value): Likewise.
1942         * tic6x-tdep.c (tic6x_return_value): Likewise.
1943         * v850-tdep.c (v850_return_value): Likewise.
1944         * vax-tdep.c (vax_return_value): Likewise.
1945         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1946         * xtensa-tdep.c (xtensa_return_value): Likewise.
1947         * gdbarch.c: Regenerate.
1948         * gdbarch.h: Regenerate.
1949
1950 2012-05-15  Tom Tromey  <tromey@redhat.com>
1951
1952         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1953
1954 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
1955
1956         * breakpoint.c (init_breakpoint_sal): Add quotes around part
1957         of command in two error message.
1958
1959 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
1960
1961         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1962
1963 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
1964
1965         * breakpoint.c (find_condition_and_thread): Minor reformatting.
1966
1967 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1968
1969         * NEWS (show auto-load scripts-directory): Add forgotten command.
1970
1971 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1972
1973         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1974         parameters.
1975
1976 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1977
1978         * amd64-tdep.c: Include features/i386/x32.c and
1979         features/i386/x32-avx.c.
1980         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1981         initialize_tdesc_x32_avx.
1982
1983 2012-05-14  Stan Shebs  <stan@codesourcery.com>
1984
1985         Add dynamic printf.
1986         * breakpoint.h (enum bptype): New type bp_dprintf.
1987         (struct breakpoint): New field extra_string.
1988         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1989         (create_breakpoint): Add extra_string arg.
1990         * breakpoint.c (dprintf_breakpoint_ops): New.
1991         (is_breakpoint): Add bp_dprintf.
1992         (bpstat_what): Add dprintf case.
1993         (bptype_string): Ditto.
1994         (print_one_breakpoint_location): Ditto.
1995         (init_bp_location): Ditto.
1996         (bkpt_print_mention): Ditto.
1997         (dprintf_style_enums): New array.
1998         (dprintf_style): New global.
1999         (dprintf_function): New global.
2000         (dprintf_channel): New global.
2001         (update_dprintf_command_list): New function.
2002         (update_dprintf_commands): New function.
2003         (init_breakpoint_sal): Add extra_string argument, handle it.
2004         (create_breakpoint_sal): Add extra_string argument.
2005         (create_breakpoints_sal): Add extra_string argument, update callers.
2006         (find_condition_and_thread): Add extra argument.
2007         (create_breakpoint): Add extra_string argument, record it.
2008         (dprintf_command): New function.
2009         (break_command_1): Add arg to create_breakpoint call.
2010         (handle_gnu_v3_exceptions): Ditto.
2011         (trace_command): Ditto.
2012         (ftrace_command): Ditto.
2013         (strace_command): Ditto.
2014         (bkpt_print_mention): Add dprintf case.
2015         (create_breakpoint_sal_default): Add extra_string argument.
2016         (_initialize_breakpoint): Add new commands.
2017         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
2018         * python/py-breakpoint.c (bppy_init): Ditto.
2019         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
2020
2021 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
2022
2023         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
2024
2025 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
2026
2027         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
2028         unsigned long long.
2029
2030 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
2031
2032         Add a new function gdb.find_pc_line to the Python API.
2033         * NEWS (Python Scripting): Add entry about the new function.
2034         * python/python.c (gdbpy_find_pc_line): New function which
2035         implements gdb.find_pc_line.
2036         (GdbMethods): Add entry for the new function.
2037
2038 2012-05-12  Pedro Alves  <palves@redhat.com>
2039
2040         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
2041         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
2042
2043 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
2044
2045         * inferior.c: Include completer.h
2046         (initialize_inferiors): Set completer of add-inferior to
2047         filename_completer.
2048
2049 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2050
2051         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2052         gdbarch_ptr_bit for x32 core dump.
2053
2054 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2055
2056         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
2057         and features/i386/x32-avx-linux.c.
2058
2059 2012-05-11  Stan Shebs  <stan@codesourcery.com>
2060             Kwok Cheung Yeung  <kcy@codesourcery.com>
2061
2062         * NEWS: Describe new info os commands.
2063         * common/linux-osdata.c (PID_T, TIME_T): Define.
2064         (MAX_PID_T_STRLEN): New.
2065         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
2066         MAX_PID_T_STRLEN.
2067         (command_from_pid): Add comment.  Change to use PID_T.
2068         (commandline_from_pid):  Change to use PID_T.
2069         (user_from_pid): Add comment.
2070         (get_process_owner): Add comment. Change to use PID_T and
2071         MAX_PID_T_STRLEN.
2072         (get_number_of_cpu_cores): Add comment.
2073         (get_cores_used_by_process): Add comment.  Change to use PID_T and
2074         MAX_PID_T_STRLEN.
2075         (linux_xfer_osdata_processes): Change to use PID_T and
2076         MAX_PID_T_STRLEN.
2077         (compare_processes): New function.
2078         (linux_xfer_osdata_processgroups): New function.
2079         (linux_xfer_osdata_threads): Change to use PID_T.
2080         (linux_xfer_osdata_fds): New function.
2081         (format_socket_state, print_sockets): New functions.
2082         (union socket_addr): New union.
2083         (linux_xfer_osdata_isockets): New function.
2084         (time_from_time_t, group_from_gid): New functions.
2085         (linux_xfer_osdata_shm): New function.
2086         (linux_xfer_osdata_sem): New function.
2087         (linux_xfer_osdata_msg): New function.
2088         (linux_xfer_osdata_modules): New function.
2089         (osdata_table): Add new entries.
2090         * common/buffer.c (buffer_xml_printf): Add support for long and
2091         long long format specifiers.
2092
2093 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2094
2095         * amd64-linux-tdep.h (tdesc_x32_linux): New.
2096         (tdesc_x32_avx_linux): Likewise.
2097
2098 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2099
2100         Implement multi-component --with-auto-load-dir.
2101         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
2102         entries.
2103         (--with-auto-load-safe-path): Update the default value description.
2104         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
2105         New.
2106         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
2107         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
2108         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
2109         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
2110         "set auto-load scripts-directory".
2111         * config.in: Regenerate.
2112         * configure: Regenerate.
2113         * configure.ac (--with-auto-load-dir): New configure option.
2114         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
2115
2116 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2117
2118         Provide $ddir substitution for --with-auto-load-safe-path.
2119         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
2120         entries.
2121         * auto-load.c: Include observer.h.
2122         (auto_load_safe_path_vec_update): Call substitute_path_component for
2123         each component.  New variable ddir_subst.
2124         (auto_load_gdb_datadir_changed): New function.
2125         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
2126         AUTO_LOAD_SAFE_PATH.  New comment.
2127         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
2128         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
2129         * config.in: Regenerate.
2130         * configure: Regenerate.
2131         * configure.ac (--auto-load-safe-path): Rename
2132         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
2133         GDB_DATADIR/auto-load.
2134         * defs.h (substitute_path_component): New declaration.
2135         * top.c: Include observer.h.
2136         (set_gdb_datadir): New function.
2137         (init_main): Install it for "set data-directory".
2138         * utils.c (substitute_path_component): New function.
2139
2140 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2141
2142         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
2143         * auto-load.c (auto_load_objfile_script): Remove check for NULL
2144         DEBUG_FILE_DIRECTORY.  Handle multiple components of
2145         DEBUG_FILE_DIRECTORY.
2146
2147 2012-05-10  Tom Tromey  <tromey@redhat.com>
2148
2149         * dwarf2read.c (recursively_write_psymbols): New function.
2150         (write_psymtabs_to_index): Use it.
2151
2152         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
2153         field.
2154         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
2155         (load_partial_comp_unit): Update.
2156         (queue_comp_unit): Add argument 'pretend_language'.
2157         (process_queue): Update.
2158         (psymtab_to_symtab_1): Skip dependencies that have a user.
2159         (load_partial_comp_unit_reader): Give meaning to the 'data'
2160         argument.
2161         (load_full_comp_unit): Add 'pretend_language' argument.
2162         (process_full_comp_unit): Add 'pretend_language' argument.  Set
2163         language on CU.
2164         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
2165         Update.
2166         (maybe_queue_comp_unit): Add 'pretend_language' argument.
2167         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
2168         Update.
2169         (prepare_one_comp_unit): Add 'pretend_language' argument.
2170
2171         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
2172         (struct dwarf2_per_objfile) <just_read_cus>: New field.
2173         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
2174         (dw2_do_instantiate_symtab): Check whether symtab was read in
2175         before queueing.
2176         (dw2_instantiate_symtab): Add assertion.  Call
2177         process_cu_includes.
2178         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
2179         (partial_symtab_p): New typedef.
2180         (set_partial_user): New function.
2181         (dwarf2_build_psymtabs_hard): Use set_partial_user.
2182         (scan_partial_symbols): Add imported CU to imported_symtabs.
2183         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
2184         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
2185         (get_symtab, recursively_compute_inclusions)
2186         (compute_symtab_includes, process_cu_includes)
2187         (process_imported_unit_die): New functions.
2188         (process_die) <DW_TAG_imported_unit>: New case.
2189         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
2190
2191         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
2192         comment.
2193         (struct partial_die_info) <locdesc>: Remove.
2194         <d>: New field.
2195         (process_psymtab_comp_unit): Add 'read_partial' argument.
2196         Update.
2197         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
2198         (scan_partial_symbols): Handle DW_TAG_imported_unit.
2199         (add_partial_symbol): Update.
2200         (process_die): Handle DW_TAG_partial_unit.
2201         (read_file_scope): Update comment.
2202         (load_partial_dies): Handle DW_TAG_imported_unit.
2203         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
2204         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
2205
2206 2012-05-10  Tom Tromey  <tromey@redhat.com>
2207
2208         * cc-with-dwz.sh: New file.
2209
2210 2012-05-10  Tom Tromey  <tromey@redhat.com>
2211
2212         * symtab.h (struct symtab) <includes, user>: New fields.
2213         * block.h (struct block_iterator) <d, idx, which>: New fields.
2214         * block.c (initialize_block_iterator, find_iterator_symtab)
2215         (block_iterator_step, block_iter_name_step)
2216         (block_iter_match_step): New functions.
2217         (block_iterator_first, block_iterator_next)
2218         (block_iter_name_first, block_iter_name_next)
2219         (block_iter_match_first, block_iter_match_next): Rewrite.
2220         (get_block_symtab): New function.
2221
2222 2012-05-10  Tom Tromey  <tromey@redhat.com>
2223
2224         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
2225         set_block_symtab.
2226         * jit.c (finalize_symtab): Use allocate_global_block,
2227         set_block_symtab.
2228         * buildsym.c (finish_block_internal): New function, from old
2229         finish_block.
2230         (finish_block): Rewrite.
2231         (end_symtab): Use finish_block_internal, set_block_symtab.
2232         * block.h (struct global_block): New.
2233         (allocate_global_block, set_block_symtab): Declare.
2234         * block.c (allocate_global_block, set_block_symtab): New
2235         functions.
2236
2237 2012-05-10  Tom Tromey  <tromey@redhat.com>
2238
2239         * psymtab.c (partial_map_expand_apply): Add assertion.
2240         (partial_map_symtabs_matching_filename): Skip included psymtabs.
2241         (psymtab_to_symtab): Find unshared psymtab.
2242         (dump_psymtab): Print including psymtabs.
2243         (recursively_search_psymtabs): New function.
2244         (expand_symtabs_matching_via_partial): Use it.
2245         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
2246         fields.
2247         (enum psymtab_search_status): New.
2248
2249 2012-05-10  Tom Tromey  <tromey@redhat.com>
2250
2251         * tracepoint.c (scope_info): Update.
2252         * symtab.c (lookup_block_symbol, iterate_over_symbols)
2253         (find_pc_sect_symtab, search_symbols)
2254         (default_make_symbol_completion_list_break_on)
2255         (make_file_symbol_completion_list): Update.
2256         * symmisc.c (dump_symtab_1): Update.
2257         * stack.c (print_frame_args, iterate_over_block_locals)
2258         (print_frame_labels, iterate_over_block_arg_vars): Update.
2259         * python/py-block.c (block_object) <dict>: Remove.
2260         <block>: New field.
2261         <iter>: Change type.
2262         (blpy_iter): Update.
2263         (blpy_block_syms_iternext): Update.
2264         * psymtab.c (map_block): Use block iterators.
2265         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
2266         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2267         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
2268         * infrun.c (check_exception_resume): Update.
2269         * cp-support.c (make_symbol_overload_list_block): Update.
2270         * coffread.c (patch_opaque_types): Update.
2271         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
2272         * block.h (struct block_iterator): New.
2273         (block_iterator_first, block_iterator_next, block_iter_name_first)
2274         (block_iter_name_next, block_iter_match_first)
2275         (block_iter_match_next): Declare.
2276         (ALL_BLOCK_SYMBOLS): Redefine.
2277         * block.c (block_iterator_first, block_iterator_next)
2278         (block_iter_name_first, block_iter_name_next)
2279         (block_iter_match_first, block_iter_match_next): New functions.
2280         * ada-lang.c (ada_add_block_symbols)
2281         (ada_make_symbol_completion_list): Use block iterator.
2282
2283 2012-05-10  Tom Tromey  <tromey@redhat.com>
2284
2285         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
2286         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
2287         (lookup_partial_symbol, find_last_source_symtab_from_partial)
2288         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
2289         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
2290         Update.
2291
2292 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
2293
2294         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
2295         print-file-var-lib2.c, print-file-var-main.c and
2296         print-file-var.exp (located in gdb/testsuite/gdb.base).
2297
2298 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
2299
2300         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2301         try locating the symbol in the symbol's own objfile first, before
2302         extending the search to all objfiles.
2303         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2304         out of lookup_symbol_aux_symtabs.
2305         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2306         Replace extracted-out code by call to lookup_symbol_aux_objfile.
2307         Do not search EXCLUDE_OBJFILE.
2308         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2309         (lookup_symbol_global): Search for matches in the block's objfile
2310         first, before searching all other objfiles.
2311
2312 2012-05-10  Tristan Gingold  <gingold@adacore.com>
2313
2314         * printcmd.c (set_command): Add pre/post inc/dec.
2315
2316 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
2317
2318         * gdb.1: Document -ex option.
2319
2320 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
2321
2322         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
2323         * inferior.h (AT_SYMBOL): Delete.
2324
2325 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
2326
2327         * mips-tdep.c (mips_push_dummy_code): New function.
2328         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
2329         ON_STACK and install mips_push_dummy_code as our gdbarch
2330         push_dummy_code routine.
2331
2332 2012-05-09  Pedro Alves  <palves@redhat.com>
2333
2334         * target.c (set_maintenance_target_async_permitted): Rename to ...
2335         (set_target_async_command): ... this.
2336         (show_maintenance_target_async_permitted): Rename to ...
2337         (show_target_async_command): ... this.
2338         (initialize_targets): Adjust.
2339
2340 2012-05-08  Doug Evans  <dje@google.com>
2341
2342         * go-exp.y (classify_name): Add missing assignment of fields of
2343         yylval.ssym.
2344
2345 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
2346
2347         Display the ">" prompt in interactive mode while reading canned
2348         commands, even when the current interpreter is MI.
2349
2350         * interps.c (interp_set_temp): New function.
2351
2352         * interps.h (interp_set_temp): Add prototype.
2353
2354         * cli/cli-script.c (restore_interp): New cleanup function.
2355         (read_command_lines): Temporarily override the current interpreter
2356         with CLI and arrange for restoring the original one.
2357
2358 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
2359
2360         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2361
2362 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
2363
2364         * probe.c (parse_probes): Move conditional to check for
2365         debuginfo files from here...
2366         * stap-probe.c (stap_get_probes): ... to here.
2367
2368 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
2369             H.J. Lu  <hongjiu.lu@intel.com>
2370
2371         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
2372         `movl %esp, %ebp' for the X32 ABI.
2373
2374 2012-05-07  Tom Tromey  <tromey@redhat.com>
2375
2376         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
2377         get_DW_TAG_name.
2378         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
2379         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
2380         (dwarf_stack_op_name): Remove.
2381         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
2382         (decode_locdesc): Use get_DW_OP_name.
2383         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
2384         (dwarf2_compile_expr_to_ax): Likewise.
2385         (disassemble_dwarf_expression): Likewise.
2386         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2387
2388 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
2389
2390         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
2391         (sh_linux_sigtramp_cache): New function.
2392         (sh_linux_sigreturn_init): New function.
2393         (sh_linux_rt_sigreturn_init): New function.
2394         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
2395         patterns.
2396         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
2397         syscall codes.
2398         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
2399         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
2400         (sh_linux_init_abi): Add init calls to register new tramp_frame
2401         definitions under 32-bit SH, update comments.
2402
2403 2012-05-07  Pedro Alves  <palves@redhat.com>
2404
2405         PR gdb/10952
2406
2407         * amd64-linux-tdep.c: Include glibc-tdep.h.
2408         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
2409         gdbarch_skip_solib_resolver callback.
2410
2411 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2412
2413         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
2414         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
2415         (show_auto_load_safe_path): Check any-directory by comparison with "/".
2416         (add_auto_load_safe_path): Change the error message.
2417         (_initialize_auto_load): Change the "safe-path" help text.
2418         * configure: Regenerate
2419         * configure.ac (--without-auto-load-safe-path): Set
2420         WITH_AUTO_LOAD_SAFE_PATH to /.
2421
2422 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
2423
2424         * stap-probe.h: Do not include unecessary `probe.h'.
2425
2426 2012-05-05  Alan Modra  <amodra@gmail.com>
2427
2428         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
2429         bfd_und_section_ptr.
2430         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
2431         and bfd_com_section_ptr.
2432
2433 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
2434
2435         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
2436
2437 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
2438
2439         * windows-nat.h (segment_register_p_ftype): New typedef.
2440         (windows_set_segment_register_p): Add declaration.
2441         * windows-nat.c (segment_register_p): New static global.
2442         (windows_set_segment_register_p): New function.
2443         (do_windows_fetch_inferior_registers): Add special handling
2444         for segment registers.
2445         * amd64-windows-nat.c: #include "amd64-tdep.h".
2446         (amd64_windows_segment_register_p): New function.
2447         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2448         * i386-windows-nat.c: #include "i386-tdep.h".
2449         (i386_windows_segment_register_p): New function.
2450         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2451
2452 2012-05-04  Tristan Gingold  <gingold@adacore.com>
2453
2454         * printcmd.c (set_command): Emit a warning if the expression is not
2455         an assignment.
2456
2457 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
2458
2459         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2460         Make static.
2461
2462 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
2463
2464         * stap-probe.c (stap_is_operator): Change declaration.
2465         (stap_get_opcode): Change return value.
2466         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2467         `stap_parse_argument_1'.
2468
2469 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
2470
2471         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2472         debug log.
2473
2474 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
2475
2476         Add two new methods global_block and static_block to gdb.Symtab
2477         objects.
2478         * NEWS (Python scripting): Add entry about the new methods.
2479         * python/py-symtab.c (stpy_global_block): New function which
2480         implements the gdb.Symtab.global_block() method.
2481         (stpy_static_block): New function which implements the
2482         gdb.Symtab.static_block() method.
2483         (symtab_object_methods): Add entries for the two new methods.
2484
2485 2012-05-03  Doug Evans  <dje@google.com>
2486
2487         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2488         files.
2489
2490 2012-05-03  Yao Qi  <yao@codesourcery.com>
2491
2492         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2493         space.
2494         (i386_process_record): Ditto.
2495
2496 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
2497
2498         * infcall.c (unwind_on_signal_p): Make static.
2499
2500 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
2501
2502         * sol-thread.c (solaris_pid_to_str): Make static.
2503         (_initialize_sol_thread): Add prototype.
2504
2505 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
2506
2507         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2508
2509 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
2510
2511         * MAINTAINERS: Remove myself.
2512
2513 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2514
2515         Fix --without-auto-load-safe-path for MS-Windows host platform.
2516         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2517
2518 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
2519
2520         * gdb_curses.h: Undefine KEY_EVENT before including curses
2521         headers.  Move "#undef MOUSE_MOVED" before any curses header
2522         inclusion.
2523
2524 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
2525
2526         * features/i386/i386-mmx-linux.c: Regenerate.
2527         * features/rs6000/powerpc-32.c: Likewise.
2528         * features/rs6000/powerpc-32l.c: Likewise.
2529         * features/rs6000/powerpc-403.c: Likewise.
2530         * features/rs6000/powerpc-403gc.c: Likewise.
2531         * features/rs6000/powerpc-405.c: Likewise.
2532         * features/rs6000/powerpc-505.c: Likewise.
2533         * features/rs6000/powerpc-601.c: Likewise.
2534         * features/rs6000/powerpc-602.c: Likewise.
2535         * features/rs6000/powerpc-603.c: Likewise.
2536         * features/rs6000/powerpc-604.c: Likewise.
2537         * features/rs6000/powerpc-64.c: Likewise.
2538         * features/rs6000/powerpc-64l.c: Likewise.
2539         * features/rs6000/powerpc-750.c: Likewise.
2540         * features/rs6000/powerpc-860.c: Likewise.
2541         * features/rs6000/powerpc-e500.c: Likewise.
2542         * features/rs6000/powerpc-e500l.c: Likewise.
2543         * features/rs6000/powerpc-isa205-32l.c: Likewise.
2544         * features/rs6000/powerpc-isa205-64l.c: Likewise.
2545         * features/rs6000/rs6000.c: Likewise.
2546
2547 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
2548
2549         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2550         variable.
2551         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2552         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2553         (stap_parse_argument) <e>: Likewise.
2554         (handle_stap_probe) <byte_order>: Likewise.
2555
2556 2012-04-30  Doug Evans  <dje@google.com>
2557
2558         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2559         init_and_read_dies_worker.  All callers updated.
2560         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
2561         replaced with init_cutu_and_read_dies.
2562         (load_partial_comp_unit): Pass 1 for use_existing_cu.
2563         (find_partial_die): Remove FIXME.  Don't free current CU.
2564
2565 2012-04-30  Sterling Augustine  <saugustine@google.com>
2566
2567         * contrib: New directory.
2568         * contrib/test_pubnames_and_indexes.py: New file.
2569
2570 2012-04-30  Doug Evans  <dje@google.com>
2571
2572         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2573         All callers updated.
2574         (init_cu_die_reader): Verify the section is non-empty.
2575         (dwarf_decode_line_header): Don't dereference section->asection
2576         until we know the section is present.
2577
2578 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
2579
2580         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2581         probes.
2582
2583 2012-04-29  Yao Qi  <yao@codesourcery.com>
2584
2585         * gdb-code-style.el: New hook gdb-markup-hook
2586         and gdb-comment-hook.
2587
2588 2012-04-28  Doug Evans  <dje@google.com>
2589
2590         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
2591         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2592         objfile->obfd.
2593         * symfile.h (dwarf2_debug_sections): New member addr.
2594         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2595         (ctx_no_get_addr_index): New function.
2596         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2597         (ctx_no_get_addr_index): Declare.
2598         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2599         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2600         (dwarf_expr_ctx_funcs): Update.
2601         (needs_get_addr_index): New function.
2602         (needs_frame_ctx_funcs): Update.
2603         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2604         * dwarf2read.c: #include "gdbcore.h".
2605         (dwarf2_per_objfile): New members addr, dwo_files.
2606         (dwarf2_elf_names): Add entry for addr.
2607         (struct dwo_section_names): New type.
2608         (dwo_section_names): New static global.
2609         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2610         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2611         old debug_types_section member updated to use this.
2612         Rename member debug_types_section to info_or_types_section,
2613         all uses updated.
2614         (signatured_type): Rename member type_offset to type_offset_in_tu,
2615         all uses updated.  New member type_offset_in_section.
2616         (struct dwo_sections): New type.
2617         (struct dwo_unit): New type.
2618         (struct dwo_file): New type.
2619         (die_reader_specs): New member dwo_file.
2620         (dwarf2_locate_sections): Watch for .debug_addr.
2621         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2622         (dwarf2_read_section): Get bfd of section from bfd's asection,
2623         instead of objfile.
2624         (create_cus_from_index): Initialize the_cu->info_or_types_section.
2625         (create_signatured_type_table_from_index): Initialize
2626         sig_type->info_or_types_section.
2627         (dw2_get_file_names): Statement lists for type units with DWO files
2628         live in the DWO file.
2629         (create_debug_types_hash_table): New function.
2630         (create_all_type_units): Rewrite.
2631         (init_cu_die_reader): New arg dwo_file, all callers updated.
2632         (init_and_read_dies_worker): Get section from
2633         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
2634         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2635         continue reading the CU/TU from there.
2636         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2637         updated.  Get section from this_cu->info_or_types_section.
2638         (create_all_comp_units): Initialize this_cu->info_or_types_section.
2639         (skip_one_die): New cases DW_FORM_GNU_addr_index,
2640         DW_FORM_GNU_str_index.
2641         (hash_dwo_file, eq_dwo_file): New functions.
2642         (allocate_dwo_file_hash_table): New function.
2643         (hash_dwo_unit, eq_dwo_unit): New functions.
2644         (allocate_dwo_unit_table): New function.
2645         (dwarf2_locate_dwo_sections): New function.
2646         (struct create_dwo_info_table_data): New type.
2647         (create_debug_info_hash_table_reader): New function.
2648         (create_debug_info_hash_table): New function.
2649         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2650         (lookup_dwo_file): New function.
2651         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2652         (free_dwo_file, free_dwo_file_cleanup): New functions.
2653         (free_dwo_file_from_slot, free_dwo_files): New functions.
2654         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2655         (dwarf2_record_block_ranges): Ditto.
2656         (read_partial_die): Ditto.
2657         (process_enumeration_scope): Update to use type_offset_in_section.
2658         (read_full_die_1): New function.
2659         (read_full_die): Rewrite.
2660         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2661         DW_FORM_GNU_str_index.
2662         (read_addr_index_1, read_addr_index): New functions.
2663         (read_addr_index_from_leb128): New function.
2664         (struct dwarf2_read_addr_index_data): New type.
2665         (dwarf2_read_addr_index_reader): New function.
2666         (dwarf2_read_addr_index): New function.
2667         (read_str_index): New function.
2668         (leb128_size): New function.
2669         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2670         If processing a type unit from a DWO file, get the line section
2671         from the DWO file.
2672         (var_decode_location): Watch for DW_OP_GNU_addr_index.
2673         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2674         DW_FORM_GNU_str_index.
2675         (lookup_die_type): Check whether section offset of type's die is
2676         known before looking it up.  Remove assert.  Condition can
2677         legimately happen for inter-cu type references.
2678         (dwarf_attr_name): Handle Fission attributes.
2679         (dwarf_form_name): Handle Fission forms.
2680         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2681         DW_FORM_GNU_str_index.
2682         (follow_die_sig): Update to use type_offset_in_section.
2683         (decode_locdesc): New case DW_OP_GNU_addr_index.
2684         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2685         DW_FORM_GNU_str_index.
2686         (cu_debug_loc_section): New function.
2687         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2688         (dwarf2_per_objfile_free): Unmap .debug_addr section.
2689         Free DWO files if present.
2690         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2691
2692         Refactor DIE reading.
2693         * dwarf2read.c (dwarf2_per_objfile): Replace members
2694         debug_info_type_hash and debug_types_type_hash with die_type_hash.
2695         (die_reader_specs): New member "die_section".  Temporarily make
2696         member "buffer" non-const, pending constifying all info_ptr uses.
2697         (die_reader_func_ftype): New typedef.
2698         (dw2_get_file_names_reader): New function.
2699         (dw2_get_file_names): Rewrite.
2700         (read_and_check_type_unit_head): Rename arg type_offset to
2701         type_offset_in_tu.
2702         (create_all_type_units): Improve debugging message.
2703         Improve dummy type unit check.
2704         (init_cu_die_reader): New arg "section".  All callers updated.
2705         (init_and_read_dies_worker): New function.
2706         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2707         (init_cutu_and_read_dies_no_follow): New function.
2708         (init_cutu_and_read_dies_simple): New function.
2709         (process_psymtab_comp_unit_reader): New function.
2710         (process_psymtab_comp_unit): Delete args section,
2711         is_debug_types_section.  Rewrite.  All callers updated.
2712         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2713         All callers updated.  Rewrite.
2714         (load_partial_comp_unit_reader): New function.
2715         (load_partial_comp_unit): Rewrite.
2716         (skip_children): New arg reader.  Delete args buffer, cu.
2717         All callers updated.
2718         (skip_one_die): New arg reader.  Delete args buffer, cu.
2719         All callers updated.
2720         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
2721         All callers updated.
2722         (load_full_comp_unit_reader): New function.
2723         (load_full_comp_unit): Rewrite.
2724         (read_comp_unit): Delete.
2725         (read_die_and_children_1): Delete, contents moved ...
2726         (read_die_and_children): ... here.
2727         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
2728         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
2729         All callers updated.
2730         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
2731         All callers updated.
2732         (find_partial_die): Rewrite load_all_dies support.
2733         (read_attribute_value): New arg reader.  Delete args abfd, cu.
2734         All callers updated.
2735         (read_attribute): New arg reader.  Delete args abfd, cu.
2736         All callers updated.
2737         (load_full_type_unit): Add assert.
2738         (read_signatured_type_reader): New function.
2739         (read_signatured_type): Rewrite.
2740         (free_stack_comp_unit): Remove call to age_cached_comp_units.
2741         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2742         All callers updated.  Set per_cu->cu = NULL after freeing it.
2743         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2744         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2745         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2746         (set_die_type): Update.
2747         (get_die_type_at_offset): Update.
2748         (read_file_scope): Call prepare_one_comp_unit.
2749         (read_type_unit_scope): Ditto.
2750         (prepare_one_comp_unit): Set producer if present.
2751
2752 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
2753
2754         * probe.c (compile_rx_or_error): Silence ARI warning about missing
2755          gettext function on `error'.
2756
2757 2012-04-27  Doug Evans  <dje@google.com>
2758
2759         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2760         is empty.
2761
2762 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
2763             Tom Tromey  <tromey@redhat.com>
2764
2765         * breakpoint.c (struct breakpoint_objfile_data)
2766         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2767         <exception_probes>: New fields.
2768         (free_breakpoint_probes): New function.
2769         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2770         `_Unwind_DebugHook'.
2771         (create_exception_master_breakpoint): Likewise.
2772         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2773         * infrun.c: Including necessary header files for handling SystemTap
2774         probes.
2775         (handle_inferior_event): Handling longjmp breakpoint and exceptions
2776         via SystemTap probes.
2777         (check_exception_resume): Remove `func' argument.  Handle exception
2778         unwinding breakpoint set via a SystemTap probe.
2779         (insert_exception_resume_from_probe): New function.
2780
2781 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
2782             Tom Tromey  <tromey@redhat.com>
2783             Jan Kratochvil  <jan.kratochvil@redhat.com>
2784
2785         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2786         (COMMON_OBS): Likewise.
2787         (HFILES_NO_SRCDIR): Add `probe'.
2788         * NEWS: Mention support for static and SystemTap probes.
2789         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2790         SystemTap probes' arguments parser.
2791         * arm-linux-tdep.c: Including headers needed to perform the parsing
2792         of SystemTap probes' arguments.
2793         (arm_stap_is_single_operand): New function.
2794         (arm_stap_parse_special_token): Likewise.
2795         (arm_linux_init_abi): Initializing proper fields used by SystemTap
2796         probes' arguments parser.
2797         * ax-gdb.c (require_rvalue): Removing static declaration.
2798         (gen_expr): Likewise.
2799         * ax-gdb.h (gen_expr): Declaring function.
2800         (require_rvalue): Likewise.
2801         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2802         (bkpt_probe_breakpoint_ops): New variable.
2803         (momentary_breakpoint_from_master): Set the `probe' value.
2804         (add_location_to_breakpoint): Likewise.
2805         (break_command_1): Using proper breakpoint_ops according to the
2806         argument passed by the user in the command line.
2807         (bkpt_probe_insert_location): New function.
2808         (bkpt_probe_remove_location): Likewise.
2809         (bkpt_probe_create_sals_from_address): Likewise.
2810         (bkpt_probe_decode_linespec): Likewise.
2811         (tracepoint_probe_create_sals_from_address): Likewise.
2812         (tracepoint_probe_decode_linespec): Likewise.
2813         (tracepoint_probe_breakpoint_ops): New variable.
2814         (trace_command): Using proper breakpoint_ops according to the
2815         argument passed by the user in the command line.
2816         (initialize_breakpoint_ops): Initializing breakpoint_ops for
2817         static probes on breakpoints and tracepoints.
2818         * breakpoint.h (struct bp_location) <probe>: New field.
2819         * cli-utils.c (skip_spaces_const): New function.
2820         (extract_arg): Likewise.
2821         * cli-utils.h (skip_spaces_const): Likewise.
2822         (extract_arg): Likewise.
2823         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2824         * configure.ac: Append `stap-probe.o' to be generated when ELF
2825         support is present.
2826         * configure: Regenerate.
2827         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2828         * elfread.c: Include `probe.h' and `arch-utils.h'.
2829         (probe_key): New variable.
2830         (elf_get_probes): New function.
2831         (elf_get_probe_argument_count): Likewise.
2832         (elf_evaluate_probe_argument): Likewise.
2833         (elf_compile_to_ax): Likewise.
2834         (elf_symfile_relocate_probe): Likewise.
2835         (stap_probe_key_free): Likewise.
2836         (elf_probe_fns): New variable.
2837         (elf_sym_fns): Add `sym_probe_fns' value.
2838         (elf_sym_fns_lazy_psyms): Likewise.
2839         (elf_sym_fns_gdb_index): Likewise.
2840         (_initialize_elfread): Initialize objfile cache for static
2841         probes.
2842         * gdb_vecs.h (struct probe): New forward declaration.
2843         (probe_p): New VEC declaration.
2844         * gdbarch.c: Regenerate.
2845         * gdbarch.h: Regenerate.
2846         * gdbarch.sh (stap_integer_prefix): New variable.
2847         (stap_integer_suffix): Likewise.
2848         (stap_register_prefix): Likewise.
2849         (stap_register_suffix): Likewise.
2850         (stap_register_indirection_prefix): Likewise.
2851         (stap_register_indirection_suffix): Likewise.
2852         (stap_gdb_register_prefix): Likewise.
2853         (stap_gdb_register_suffix): Likewise.
2854         (stap_is_single_operand): New function.
2855         (stap_parse_special_token): Likewise.
2856         (struct stap_parse_info): Forward declaration.
2857         * i386-tdep.c: Including headers needed to perform the parsing
2858         of SystemTap probes' arguments.
2859         (i386_stap_is_single_operand): New function.
2860         (i386_stap_parse_special_token): Likewise.
2861         (i386_elf_init_abi): Initializing proper fields used by SystemTap
2862         probes' arguments parser.
2863         * i386-tdep.h (i386_stap_is_single_operand): New function.
2864         (i386_stap_parse_special_token): Likewise.
2865         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2866         * mipsread.c (ecoff_sym_fns): Likewise.
2867         * objfiles.c (objfile_relocate1): Support relocation for static
2868         probes.
2869         * parse.c (prefixify_expression): Remove static declaration.
2870         (initialize_expout): Likewise.
2871         (reallocate_expout): Likewise.
2872         * parser-defs.h (initialize_expout): Declare function.
2873         (reallocate_expout): Likewise.
2874         (prefixify_expression): Likewise.
2875         * ppc-linux-tdep.c: Including headers needed to perform the parsing
2876         of SystemTap probes' arguments.
2877         (ppc_stap_is_single_operand): New function.
2878         (ppc_stap_parse_special_token): Likewise.
2879         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2880         probes' arguments parser.
2881         * probe.c: New file, for generic statically defined probe support.
2882         * probe.h: Likewise.
2883         * s390-tdep.c: Including headers needed to perform the parsing of
2884         SystemTap probes' arguments.
2885         (s390_stap_is_single_operand): New function.
2886         (s390_gdbarch_init): Initializing proper fields used by SystemTap
2887         probes' arguments parser.
2888         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2889         * stap-probe.c: New file, for SystemTap probe support.
2890         * stap-probe.h: Likewise.
2891         * symfile.h: Include `gdb_vecs.h'.
2892         (struct sym_probe_fns): New struct.
2893         (struct sym_fns) <sym_probe_fns>: New field.
2894         * symtab.c (init_sal): Initialize `probe' field.
2895         * symtab.h (struct probe): Forward declaration.
2896         (struct symtab_and_line) <probe>: New field.
2897         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2898         locations.
2899         (stop_tracing): Likewise.
2900         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2901
2902 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
2903             Tom Tromey  <tromey@redhat.com>
2904
2905         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2906         and to compile agent expressions.
2907         * infrun.c (siginfo_make_value): New argument `ignore'.
2908         (siginfo_funcs): New struct.
2909         (_initialize_infrun): New argument when calling
2910         `create_internalvar_type_lazy'.
2911         * thread.c (thread_id_make_value): New argument `ignore'.
2912         (thread_funcs): New struct.
2913         (_initialize_thread): New argument when calling
2914         `create_internalvar_type_lazy'.
2915         * tracepoint.c (sdata_make_value): New argument `ignore'.
2916         (sdata_funcs): New struct.
2917         (_initialize_tracepoint): New argument when calling
2918         `create_internalvar_type_lazy'.
2919         * value.c (make_value): New struct.
2920         (create_internalvar_type_lazy): New argument `data'.
2921         (compile_internalvar_to_ax): New function.
2922         (value_of_internalvar): Properly handling `make_value' case.
2923         (clear_internalvar): Likewise.
2924         (show_convenience): Adding `TRY_CATCH' block.
2925         * value.h (internalvar_make_value): Delete, replace by...
2926         (struct internalvar_funcs): ... this.
2927         (create_internalvar_type_lazy) <fun>: Delete argument.
2928         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2929         (compile_internalvar_to_ax): New function.
2930         * windows-tdep.c (tlb_make_value): New argument `ignore'.
2931         (tlb_funcs): New struct.
2932         (_initialize_windows_tdep): New argument when calling
2933         `create_internalvar_type_lazy'.
2934
2935 2012-04-27  Mark Wielaard  <mjw@redhat.com>
2936
2937         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2938         see whether it is an address or a constant offset from DW_AT_low_pc.
2939         (dwarf2_record_block_ranges): Likewise.
2940         (read_partial_die): Likewise.
2941
2942 2012-04-26  Mark Wielaard  <mjw@redhat.com>
2943
2944         * MAINTAINERS (Write After Approval): Add myself to the list.
2945
2946 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
2947
2948         * proc-utils.h (proc_prettyprint_signalset): New prototype.
2949         (proc_prettyprint_signal): Likewise.
2950         (proc_prettyprint_faultset): Likewise.
2951         (proc_prettyprint_fault): Likewise.
2952         (proc_prettyprint_actionset): Likewise.
2953         (proc_prettyprint_flags): Move to new proc-flags.c section.
2954         (proc_prettyfprint_flags): New prototype.
2955         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2956         (proc_syscall, proc_cursig): Likewise.
2957         (proc_set_kill_on_last_close): Likewise.
2958         (proc_unset_kill_on_last_close): Likewise.
2959         (proc_set_watchpoint): Make static.
2960         (proc_delete_dead_threads): Likewise.
2961         (procfs_set_watchpoint): Likewise.
2962         (_initialize_procfs): Add prototype.
2963         * proc-events.c: Include proc-utils.h.
2964         (init_syscall_table): Make static.
2965         * proc-api.c (_initialize_proc_api): Add prototype.
2966         * proc-flags.c: Include proc-utils.h.
2967
2968 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
2969
2970         * configure.ac: Add AC_ARG_PROGRAM.
2971         * configure: Regenerate.
2972
2973 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2974
2975         Fix DW_AT_lower_bound defaults for DWARF-4+.
2976         * dwarf2read.c (read_subrange_type): Remove initialization of low and
2977         high.  New variable low_default_is_valid.  Implement DWARF-4+
2978         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
2979         no default by the DWARF standard.
2980
2981 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
2982             Maciej W. Rozycki  <macro@codesourcery.com>
2983
2984         * infrun.c (handle_inferior_event): Move the check for return
2985         trampolines ahead of the check for function trampolines.
2986         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2987         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2988         (mips_str_mips16_ret_stub): Likewise.
2989         (mips_str_call_fp_stub): Likewise.
2990         (mips_str_call_stub): Likewise.
2991         (mips_str_fn_stub): Likewise.
2992         (mips_str_pic): Likewise.
2993         (mips_in_frame_stub): New function.
2994         (mips_unwind_pc): Return the return address rather than the PC
2995         if the PC of an intermediate frame is inside a call thunk.
2996         (mips_is_stub_suffix): New function.
2997         (mips_is_stub_mode): Likewise.
2998         (mips_get_mips16_fn_stub_pc): Likewise.
2999         (mips_skip_mips16_trampoline_code): Update to handle all the
3000         currently generated stub types.  Don't recurse into __fn_stub
3001         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
3002         Use cooked register accesses.
3003         (mips_in_return_stub): Reintroduce function.
3004         (mips_skip_trampoline_code): Traverse trampolines recursively.
3005         (mips_gdbarch_init): Handle MIPS16 return trampolines.
3006
3007 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
3008
3009         GDB 7.4.1 released.
3010
3011 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
3012
3013         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
3014         * features/arm-with-m-vfp-d16.xml: New file. Describes
3015         Cortex-M with VFPv4-sp-d16 FPU register layout.
3016         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
3017         * features/arm-with-m-vfp-d16.c: New. Generated from above.
3018         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
3019         (arm-register_g_packet_guesses): Add vfp-d16 guess.
3020         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
3021
3022 2012-04-25  Doug Evans  <dje@google.com>
3023
3024         * cli/cli-decode.c (print_doc_line): Use stream instead of
3025         current_uiout.
3026
3027 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
3028
3029         * features/arm-with-iwmmxt.c: Regenerate.
3030         * features/arm-with-m-fpa-layout.c: Likewise.
3031         * features/arm-with-m.c: Likewise.
3032         * features/arm-with-neon.c: Likewise.
3033         * features/arm-with-vfpv2.c: Likewise.
3034         * features/arm-with-vfpv3.c: Likewise.
3035         * features/mips-dsp-linux.c: Likewise.
3036         * features/mips-linux.c: Likewise.
3037         * features/mips64-dsp-linux.c: Likewise.
3038         * features/mips64-linux.c: Likewise.
3039         * features/s390-linux32.c: Likewise.
3040         * features/s390-linux32v1.c: Likewise.
3041         * features/s390-linux32v2.c: Likewise.
3042         * features/s390-linux64.c: Likewise.
3043         * features/s390-linux64v1.c: Likewise.
3044         * features/s390-linux64v2.c: Likewise.
3045         * features/s390x-linux64.c: Likewise.
3046         * features/s390x-linux64v1.c: Likewise.
3047         * features/s390x-linux64v2.c: Likewise.
3048         * features/tic6x-c62x-linux.c: Likewise.
3049         * features/tic6x-c62x.c: Likewise.
3050         * features/tic6x-c64x-linux.c: Likewise.
3051         * features/tic6x-c64x.c: Likewise.
3052         * features/tic6x-c64xp-linux.c: Likewise.
3053         * features/tic6x-c64xp.c: Likewise.
3054         * target-descriptions.c: Only generate `field_type' and `type'
3055         variables when needed.
3056
3057 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
3058
3059         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
3060
3061 2012-04-25  Doug Evans  <dje@google.com>
3062
3063         Initial pass at Go language support.
3064         * NEWS: Mention Go.
3065         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
3066         go-valprint.c.
3067         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
3068         (YYFILES): Add go-exp.c.
3069         (YYOBJ): Add go-exp.o.
3070         (local-maintainer-clean): Delete go-exp.c.
3071         * defs.h (enum language): Add language_go.
3072         * dwarf2read.c: #include "go-lang.h".
3073         (fixup_go_packaging): New function.
3074         (process_full_comp_unit): Call it when processing Go CUs.
3075         (dwarf2_physname): Add Go support.
3076         (read_file_scope): Handle missing language spec for GNU Go.
3077         (set_cu_language): Handle DW_LANG_Go.
3078         * go-exp.y: New file.
3079         * go-lang.h: New file.
3080         * go-lang.c: New file.
3081         * go-typeprint.c: New file.
3082         * go-valprint.c: New file.
3083         * symtab.c: #include "go-lang.h".
3084         (symbol_set_language): Handle language_go.
3085         (symbol_find_demangled_name, symbol_set_names): Ditto.
3086         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
3087
3088 2012-04-24  Jim Meyering  <meyering@redhat.com>
3089
3090         avoid a few strncpy-induced buffer overruns
3091         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
3092         fname and psargs before trying to concatenate.
3093         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
3094         "name" before applying strchr.
3095
3096 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
3097
3098         * CONTRIBUTE: Use unified diff instead of context diff when
3099         generating patches.
3100
3101 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
3102
3103         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
3104         code.  Handle JR.HB correctly.
3105
3106 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
3107
3108         * mips-tdep.c
3109         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
3110         with the other MIPS16 helpers.
3111
3112 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
3113
3114         * observer.sh: Conditionally declare `args', thus cleaning up
3115         unused instances of this variable.
3116
3117 2012-04-24  Yao Qi  <yao@codesourcery.com>
3118
3119         Revert this patch to allow breakpoint always-inserted
3120         in record target.
3121         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
3122         * breakpoint.c: Include record.h.
3123         (breakpoints_always_inserted_mode): Return false when the record
3124         target is in use.
3125
3126         * breakpoint.c (iterate_over_bp_locations): New.
3127         * breakpoint.h: Declare.
3128         New typedef walk_bp_location_callback.
3129         * record.c (record_open): Call record_init_record_breakpoints.
3130         (record_sync_record_breakpoints): New.
3131         (record_init_record_breakpoints): New.
3132         * NEWS: Mention supporting breakpoint always-inserted mode in
3133         record target.
3134
3135 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
3136
3137         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
3138         any thread.
3139
3140 2012-04-24  Yao Qi  <yao@codesourcery.com>
3141
3142         * breakpoint.c (ep_is_catchpoint): Renamed to ...
3143         (is_catchpoint): ... it.
3144         (print_one_breakpoint_location): Caller update.
3145         * breakpoint.h: Update declaration.
3146
3147 2012-04-23  David S. Miller  <davem@davemloft.net>
3148
3149         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
3150
3151 2012-04-23  Tom Tromey  <tromey@redhat.com>
3152
3153         * buildsym.c (add_free_pendings): Remove.
3154         * buildsym.h (add_free_pendings): Remove.
3155
3156 2012-04-23  Doug Evans  <dje@google.com>
3157
3158         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
3159         attr.u.unsnd instead of attr.u.addr.
3160         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
3161         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
3162         DW_FORM_ref_udata.
3163         (dump_die_shallow): Update cases DW_FORM_ref_addr,
3164         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
3165         DW_FORM_ref_udata.
3166         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
3167
3168 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
3169
3170         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
3171         (mips_o32_return_value): Likewise.
3172         (mips_o64_return_value): Likewise.
3173
3174 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
3175
3176         * ada-lang.c (ada_evaluate_subexp): Add cases for
3177         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
3178         their treatment in eval.c.
3179
3180 2012-04-21  David S. Miller  <davem@davemloft.net>
3181
3182         * sparc-tdep.c (X_DISP10): Define.
3183         (sparc_analyze_control_transfer): Handle compare-and-branch.
3184
3185 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
3186
3187         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
3188         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
3189
3190 2012-04-20  Nigel Stephens  <nigel@mips.com>
3191             Maciej W. Rozycki  <macro@codesourcery.com>
3192
3193         * mips-tdep.c (mips_float_register_p): New function.
3194         (mips_convert_register_float_case_p): Use mips_float_register_p.
3195         (mips_register_type): Likewise.
3196         (mips_print_register): Likewise.
3197         (print_gp_register_row): Likewise.
3198         (mips_print_registers_info): Likewise.
3199
3200 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
3201
3202         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
3203         of mips16 symbols.
3204
3205 2012-04-20  Andrew Pinski  <apinski@cavium.com>
3206
3207         * MAINTAINERS (Write After Approval): Add myself to the list.
3208
3209 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
3210
3211         * MAINTAINERS: Update my e-mail address.
3212
3213 2012-04-20  Pedro Alves  <palves@redhat.com>
3214
3215         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
3216         $srcdir.
3217         * configure: Regenerate.
3218
3219 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
3220
3221         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
3222         declaration.
3223         * gdb_vecs.h: Declare `const_char_ptr' VEC.
3224
3225 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3226
3227         Fix compilation compatibility with python-2.4
3228         * python/py-type.c (convert_field): Cast ADDRSTRING for
3229         PyObject_SetAttrString as non-const.  New comment.
3230
3231 2012-04-19  Tom Tromey  <tromey@redhat.com>
3232
3233         * top.c (quit_target): Use all_cleanups.
3234         * main.c (captured_command_loop): Use all_cleanups.
3235         * exceptions.c (throw_exception): Use all_cleanups.
3236
3237 2012-04-19  Pedro Alves  <palves@redhat.com>
3238
3239         * Makefile.in (GNULIB_BUILDDIR): New.
3240         (LIBGNU, INCGNU, GNULIB_H): Adjust.
3241         (SUBDIRS): Add $(GNULIB_BUILDDIR).
3242         (CLEANDIRS). Remove gnulib/import.
3243         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
3244         (all-lib): Ditto.
3245         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
3246         (gnulib/import/Makefile): Replace gnulib/import with
3247         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
3248         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
3249         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
3250         acx_configure_dir.m4.
3251         * acinclude.m4: Include acx_configure_dir.m4.
3252         * acx_configure_dir.m4: New file.
3253         * aclocal.m4: Regenerate.
3254         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
3255         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
3256         (GNULIB): New variable.
3257         (GNULIB_STDINT_H): Adjust.
3258         (AC_OUTPUT): Don't output gnulib/Makefile.
3259         * gdb/defs.h: Include build-gnulib/config.h.
3260         * aclocal.m4: Regenerate.
3261         * config.in: Regenerate.
3262         * configure: Regenerate.
3263
3264         * gnulib/Makefile.in: New file.
3265         * gnulib/configure.ac: New file.
3266         * gnulib/aclocal.m4: New file.
3267         * gnulib/config.in: New file.
3268         * gnulib/configure: New file.
3269         * gnulib/: Re-run gnulib-tool to adjust.
3270
3271 2012-04-19  Doug Evans  <dje@google.com>
3272
3273         * cleanups.h (struct cleanup): Move to cleanups.c.
3274         (make_cleanup_dtor_ftype): New typedef.
3275         (make_cleanup_dtor): Use it.
3276         (ALL_CLEANUPS): Replace with ...
3277         (all_cleanups): ... this.  Declare.  All uses updated.
3278         * cleanups.c: #include "gdb_assert.h".
3279         (sentinel_cleanup): New static global.
3280         (SENTINEL_CLEANUP): Define.
3281         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
3282         (make_my_cleanup2): Assert result is non-NULL.
3283         (all_cleanups): New function.
3284         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
3285         of NULL.
3286
3287 2012-04-19  Pedro Alves  <palves@redhat.com>
3288
3289         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
3290         Adjust paths to gnulib imported files.
3291
3292 2012-04-19  Pedro Alves  <palves@redhat.com>
3293
3294         * gnulib/: Move whole directory ...
3295         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
3296         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
3297         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
3298         (aclocal_m4_deps): Adjust.
3299         * aclocal.m4: Regenerate.
3300         * configure: Regenerate.
3301         * configure.ac: Adjust AC_OUTPUT output.
3302
3303 2012-04-19  Yao Qi  <yao@codesourcery.com>
3304
3305         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
3306         (vec.o): New rule.
3307         * vec.c: Move it ...
3308         * common/vec.c: ... here.
3309         * vec.h: Move it ...
3310         * common/vec.h: ... here.
3311
3312 2012-04-19  Yao Qi  <yao@codesourcery.com>
3313
3314         * gdb-code-style.el: New.
3315
3316 2012-04-18  Pedro Alves  <palves@redhat.com>
3317
3318         Update gnulib from latest git.
3319         (639ea5ae15e39fe48d43e04864b2997301e4b969)
3320
3321         * gnulib/Makefile.am: Update.
3322         * gnulib/dummy.c: Update.
3323         * gnulib/extra/arg-nonnull.h: Update.
3324         * gnulib/extra/c++defs.h: Update.
3325         * gnulib/extra/update-copyright: Update.
3326         * gnulib/extra/warn-on-use.h: Update.
3327         * gnulib/inttypes.in.h: Update.
3328         * gnulib/m4/00gnulib.m4: Update.
3329         * gnulib/m4/extensions.m4: Update.
3330         * gnulib/m4/gnulib-cache.m4: Update.
3331         * gnulib/m4/gnulib-common.m4: Update.
3332         * gnulib/m4/gnulib-comp.m4: Update.
3333         * gnulib/m4/gnulib-tool.m4: Update.
3334         * gnulib/m4/include_next.m4: Update.
3335         * gnulib/m4/inttypes-pri.m4: Update.
3336         * gnulib/m4/inttypes.m4: Update.
3337         * gnulib/m4/longlong.m4: Update.
3338         * gnulib/m4/memchr.m4: Update.
3339         * gnulib/m4/memmem.m4: Update.
3340         * gnulib/m4/mmap-anon.m4: Update.
3341         * gnulib/m4/multiarch.m4: Update.
3342         * gnulib/m4/onceonly.m4: Update.
3343         * gnulib/m4/stddef_h.m4: Update.
3344         * gnulib/m4/stdint.m4: Update.
3345         * gnulib/m4/string_h.m4: Update.
3346         * gnulib/m4/warn-on-use.m4: Update.
3347         * gnulib/m4/wchar_h.m4: Update.
3348         * gnulib/m4/wchar_t.m4: Update.
3349         * gnulib/m4/wint_t.m4: Update.
3350         * gnulib/memchr.c: Update.
3351         * gnulib/memmem.c: Update.
3352         * gnulib/stddef.in.h: Update.
3353         * gnulib/stdint.in.h: Update.
3354         * gnulib/str-two-way.h: Update.
3355         * gnulib/string.in.h: Update.
3356         * gnulib/wchar.in.h: Update.
3357
3358         * gnulib/extra/arg-nonnull.h: Delete.
3359         * gnulib/extra/c++defs.h: Delete.
3360         * gnulib/extra/warn-on-use.h: Delete.
3361         * gnulib/m4/wchar_h.m4: Delete.
3362         * gnulib/m4/wint_t.m4: Delete.
3363         * gnulib/wchar.in.h: Delete.
3364
3365         * gnulib/extra/snippets/arg-nonnull.h: New.
3366         * gnulib/extra/snippets/c++defs.h: New.
3367         * gnulib/extra/snippets/warn-on-use.h: New.
3368
3369         * aclocal.m4: Regenerate.
3370         * config.in: Regenerate.
3371         * configure: Regenerate.
3372         * gnulib/Makefile.in: Regenerate.
3373
3374 2012-04-18  Pedro Alves  <palves@redhat.com>
3375
3376         Reimport the update-copyright module from gnulib
3377         (250b80067c1e1d8faa0c42fb572f721975b929c5).
3378
3379         * configure: Regenerate.
3380         * gnulib/Makefile.am: Update.
3381         * gnulib/Makefile.in: Regenerate.
3382         * gnulib/extra/update-copyright: Update.
3383         * gnulib/m4/gnulib-cache.m4: Update.
3384         * gnulib/m4/gnulib-comp.m4: Update.
3385
3386 2012-04-18  Tristan Gingold  <gingold@adacore.com>
3387
3388         * configure.ac (aix): Put -lpthread into libs.
3389         * configure: Regenerate.
3390
3391 2012-04-18  Tom Tromey  <tromey@redhat.com>
3392
3393         * linespec.c (convert_linespec_to_sals): Don't use
3394         SYMBOL_OBJ_SECTION.
3395         (compare_msymbols): Arguments are minsym_and_objfile, not
3396         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
3397
3398 2012-04-18  Pedro Alves  <palves@redhat.com>
3399
3400         Revert gnulib/ part of:
3401         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
3402         Copyright year update in most files (performed by copyright.sh).
3403
3404 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3405
3406         Fix 64-bit constants on 32-bit hosts.
3407         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
3408         from unsigned long to ULONGEST.
3409         (read_signed_leb128): Change declaration return type from long to
3410         LONGEST.
3411         (dwarf2_const_value_attr): Change declaration parameter value from long
3412         to LONGEST.
3413         (dwarf2_compute_name): Change variable value from long to LONGEST.
3414         (read_unsigned_leb128): Change return type, variable result and some
3415         casts from unsigned long to ULONGEST.
3416         (read_signed_leb128): Change return type, variable result and some
3417         casts from long to LONGEST.
3418         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
3419         value from long to LONGEST.
3420         (dwarf2_const_value): Change variable value from long to LONGEST.
3421         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
3422         plongest and hex_string.
3423         * symtab.h (struct general_symbol_info): Change ivalue from long to
3424         LONGEST, remove the comment.
3425         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
3426         Change SYMBOL_VALUE format strings to use plongest and hex_string.
3427
3428 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3429
3430         PR symtab/7259:
3431         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
3432         * ada-lang.c (ada_discrete_type_high_bound)
3433         (ada_discrete_type_low_bound): Fix function comment.  Use
3434         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3435         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
3436         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3437         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
3438         Use TYPE_FIELD_ENUMVAL.
3439         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
3440         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3441         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
3442         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
3443         TYPE_CODE_ENUM.
3444         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
3445         * dwarf2read.c (process_enumeration_scope): Likewise.
3446         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3447         field.bitpos.
3448         (class StructMainTypePrettyPrinter): Support also
3449         FIELD_LOC_KIND_ENUMVAL.
3450         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3451         TYPE_CODE_ENUM.
3452         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3453         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3454         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3455         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
3456         field enumval.
3457         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3458         accommodate enumval.
3459         (struct call_site): Adjust loc_kind to accommodate enumval.
3460         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3461         (TYPE_FIELD_ENUMVAL): New macros.
3462         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3463         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3464         TYPE_CODE_ENUM.
3465         * p-typeprint.c (pascal_type_print_base): Likewise.
3466         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3467         enumval.
3468         * python/lib/gdb/types.py (make_enum_dict): Likewise.
3469         * python/py-type.c (convert_field): New variable addrstring.  Use
3470         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3471         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3472         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3473         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3474         TYPE_CODE_ENUM.
3475         * valprint.c (generic_val_print): Likewise.
3476
3477 2012-04-17  Doug Evans  <dje@google.com>
3478
3479         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3480
3481         * dwarf2read.c: Whitespace fixes.
3482         (lookup_signatured_type): Tweak comment.
3483         (get_die_type_at_offset): Fix comment.
3484
3485 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
3486
3487         * xcoffread.c (xcoff_secnum_to_sections): New function.
3488         (secnum_to_section, secnum_to_bfd_section): Reimplement
3489         using xcoff_secnum_to_sections.  Rename "secnum" parameter
3490         into "n_scnum".
3491         (RECORD_MINIMAL_SYMBOL): Delete.
3492         (record_minimal_symbol): New function.
3493         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3494         by call to record_minimal_symbol and set misc_func_recorded
3495         to 1.  Set last_csect_sec to the XCOFF section index instead
3496         of GDB's section_offset index.  Update calls to
3497         prim_record_minimal_symbol_and_info to pass the BFD section
3498         as well.
3499
3500 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
3501
3502         * xcoffread.c (read_xcoff_symtab): Delete variables
3503         last_csect_val and last_csect_sec and associated code.
3504
3505 2012-04-17  Doug Evans  <dje@google.com>
3506
3507         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3508         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3509         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3510         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3511
3512         * cleanups.h: New file.
3513         * cleanups.c: New file.
3514         * Makefile.in (SFILES): Add cleanups.c.
3515         (HFILES_NO_SRCDIR): Add cleanups.h.
3516         (COMMON_OBS): Add cleanups.o.
3517         * defs.h (struct cleanup): Moved to cleanups.h.
3518         (do_cleanups,do_final_cleanups): Ditto.
3519         (discard_cleanups,discard_final_cleanups): Ditto
3520         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3521         (save_cleanups,save_final_cleanups): Ditto.
3522         (restore_cleanups,restore_final_cleanups): Ditto.
3523         (null_cleanup): Ditto.
3524         (make_my_cleanup,make_my_cleanup2): Ditto.
3525         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3526         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3527         (do_cleanups,do_final_cleanups): Ditto.
3528         (discard_cleanups,discard_final_cleanups): Ditto
3529         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3530         (save_cleanups,save_final_cleanups): Ditto.
3531         (restore_cleanups,restore_final_cleanups): Ditto.
3532         (null_cleanup): Ditto.
3533         (make_my_cleanup,make_my_cleanup2): Ditto.
3534         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3535
3536         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3537         make_my_cleanup.
3538         (make_cleanup_dyn_string_delete): Ditto.
3539         (make_cleanup_ui_file_delete): Ditto.
3540         (make_cleanup_ui_out_redirect_pop): Ditto.
3541         (make_cleanup_free_section_addr_info): Ditto.
3542         (make_cleanup_restore_integer): Ditto.
3543         (make_cleanup_unpush_target): Ditto.
3544         (make_cleanup_value_free_to_mark): Ditto.
3545         (make_cleanup_value_free): Ditto.
3546         (make_cleanup_free_so): Ditto.
3547
3548 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3549
3550         New option "set debug auto-load".
3551         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3552         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3553         (auto_load_safe_path_vec_update)
3554         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3555         if DEBUG_AUTO_LOAD.
3556         (file_is_auto_load_safe): New parameters debug_fmt and ....
3557         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3558         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3559         caller by explanatory string.
3560         (_initialize_auto_load): Register "set debug auto-load".
3561         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3562         and ....
3563         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3564         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3565         by explanatory string.
3566         * main.c (captured_main): Likewise.
3567         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3568         (source_section_scripts): Likewise.
3569
3570 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3571
3572         New option "set auto-load safe-path".
3573         * NEWS: New commands "set auto-load safe-path"
3574         and "show auto-load safe-path".
3575         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3576         (auto_load_safe_path, auto_load_safe_path_vec)
3577         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3578         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3579         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3580         (source_gdb_script_for_objfile): New variable is_safe.  Call
3581         file_is_auto_load_safe.  Return if it is not.
3582         (struct loaded_script): New field loaded.
3583         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
3584         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
3585         output "Missing" to "No".
3586         (_initialize_auto_load): New variable cmd.  Initialize
3587         auto_load_safe_path.  Register "set auto-load safe-path",
3588         "show auto-load safe-path" and "add-auto-load-safe-path".
3589         * auto-load.h (maybe_add_script): Add parameter loaded.
3590         (file_is_auto_load_safe): New declaration.
3591         * config.in: Regenerate.
3592         * configure: Regenerate.
3593         * configure.ac: New parameters --with-auto-load-safe-path
3594         and --without-auto-load-safe-path.
3595         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3596         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3597         * main.c (captured_main): Check file_is_auto_load_safe for
3598         LOCAL_GDBINIT.
3599         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3600         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
3601         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
3602         not.
3603
3604 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3605
3606         auto-load: Implementation.
3607         * NEWS: New descriptions for "info auto-load",
3608         "info auto-load gdb-scripts", "info auto-load python-scripts",
3609         "info auto-load local-gdbinit" and "info auto-load libthread-db".
3610         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3611         and "show auto-load-scripts".  New description for "set auto-load",
3612         "show auto-load", "set auto-load gdb-scripts",
3613         "show auto-load gdb-scripts", "set auto-load python-scripts",
3614         "show auto-load python-scripts", "set auto-load local-gdbinit",
3615         "show auto-load local-gdbinit", "set auto-load libthread-db" and
3616         "show auto-load libthread-db".
3617         * auto-load.c: Remove include python/python-internal.h.  Add includes
3618         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3619         cli/cli-setshow.h.
3620         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3621         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3622         (gdbpy_global_auto_load): Rename to ...
3623         (global_auto_load): ... here.
3624         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3625         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3626         (script_language_gdb, source_gdb_script_for_objfile): New.
3627         (struct loaded_script): New field language.
3628         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3629         LANGUAGE.
3630         (maybe_add_script): Add parameter language.  Drop redundant
3631         entry.full_path initialization.  Initialize entry.language and
3632         (*slot)->language.
3633         (auto_load_objfile_script): Change parameter suffix to language.
3634         Remove the call of maybe_add_script.
3635         Call language->source_script_for_objfile.
3636         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3637         New.
3638         (collect_matching_scripts): Adjust it for
3639         struct collect_matching_scripts_data.
3640         (auto_load_info_scripts_pattern_nl): New variable.
3641         (info_auto_load_scripts): Rename to ...
3642         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
3643         for struct collect_matching_scripts_data.
3644         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3645         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3646         (auto_load_show_cmdlist_get, info_auto_load_cmd)
3647         (auto_load_info_cmdlist_get): New.
3648         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3649         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
3650         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3651         "info auto-load local-gdbinit".
3652         * auto-load.h (struct script_language): New.
3653         (gdbpy_global_auto_load): Rename to ...
3654         (global_auto_load): ... here.
3655         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3656         (auto_load_local_gdbinit_loaded): New declarations.
3657         (maybe_add_script): New parameter language.
3658         (auto_load_objfile_script): Change parameter suffix to language.
3659         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3660         (auto_load_info_scripts, auto_load_set_cmdlist_get)
3661         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3662         declarations.
3663         * linux-thread-db.c: Include auto-load.h and ctype.h.
3664         (auto_load_thread_db, show_auto_load_thread_db): New.
3665         (struct thread_db_info): New field filename.
3666         (delete_thread_db_info): Call xfree for FILENAME.
3667         (try_thread_db_load): Initialize FILENAME.
3668         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3669         if !AUTO_LOAD_THREAD_DB.
3670         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3671         (_initialize_thread_db): Install auto_load_thread_db
3672         as "set auto-load libthread-db" and install info_auto_load_libthread_db
3673         as "info auto-load libthread-db".
3674         * main.c (captured_main): Rename gdbpy_global_auto_load to
3675         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3676         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3677         (print_gdb_help): Extend the help for 'local init file'.
3678         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3679         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3680         (auto_load_scripts): Rename to ...
3681         (auto_load_python_scripts): ... here, update the comment.
3682         (gdbpy_load_auto_script_for_objfile): New declaration.
3683         (show_auto_load_python_scripts, script_language_python)
3684         (gdbpy_load_auto_script_for_objfile): New.
3685         (source_section_scripts): Refactor the code.
3686         (load_auto_scripts_for_objfile): Rename to ...
3687         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3688         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3689         (info_auto_load_python_scripts): New.
3690         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3691         Rename "set auto-load-scripts" to "set auto-load python-scripts".
3692         Register "set auto-load-scripts" as its deprecated alias.  Register
3693         "info auto-load python-scripts".  Register "info auto-load-scripts" as
3694         its deprecated alias.
3695         (load_auto_scripts_for_objfile): Rename to ...
3696         (gdbpy_load_auto_scripts_for_objfile): ... here.
3697         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3698         (gdbpy_load_auto_scripts_for_objfile): ... here.
3699
3700 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3701
3702         auto-load: Move files.
3703         * Makefile.in (SFILES): Add auto-load.c.
3704         (HFILES_NO_SRCDIR): Add auto-load.h.
3705         (COMMON_OBS): Add auto-load.o.
3706         (distclean): Change .gdbinit for gdb-gdb.gdb.
3707         * auto-load.c: New file, with parts from python/py-auto-load.c.
3708         * auto-load.h: New file, with parts from python/python.h.
3709         * configure: Regenerate.
3710         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3711         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3712         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3713         * main.c: Include auto-load.h.
3714         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3715         command.h, observer.h and progspace.h to auto-load.c.  Add include
3716         auto-load.h.
3717         (gdbpy_global_auto_load, struct auto_load_pspace_info)
3718         (struct loaded_script, auto_load_pspace_data)
3719         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3720         (hash_loaded_script_entry, eq_loaded_script_entry)
3721         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3722         (maybe_add_script): Move to auto-load.c.
3723         (source_section_scripts): Change maybe_add_script parameters passing,
3724         use script_not_found_warning_print.
3725         (clear_section_scripts, auto_load_objfile_script)
3726         (auto_load_new_objfile, loaded_script_ptr)
3727         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3728         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3729         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3730         auto_load_new_objfile and info_auto_load_scripts initizations to
3731         auto-load.c.
3732         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3733
3734 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3735
3736         Code cleanup.
3737         * charset.c (find_charset_names): Remove variables ix and elt.
3738         Use free_char_ptr_vec.
3739         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3740         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
3741         debugdir_end.  New variable debugdir_len.
3742         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3743         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3744         declarations.
3745         * progspace.c (clear_program_space_solib_cache): Remove variables ix
3746         and elt.  Use free_char_ptr_vec.
3747         * source.c (add_path): Remove variables argv, arg and argv_index.
3748         New variables dir_vec, back_to, ix and name.
3749         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
3750         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
3751         no longer expecting DIRNAME_SEPARATOR.
3752         (openp): Remove variable p, p1 and len.  New variables dir_vec,
3753         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
3754         no longer expecting DIRNAME_SEPARATOR.
3755         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3756         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
3757         debugdir_end.
3758         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3759         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3760         (dirnames_to_char_ptr_vec): New functions.
3761
3762 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3763
3764         Code cleanup.
3765         * source.c (add_path): Remove always true conditional 'p == 0' and
3766         unindent its code block.
3767
3768 2012-04-17  Pedro Alves  <palves@redhat.com>
3769
3770         * gdbtypes.h (FIELD_BITPOS): Rename to ...
3771         (FIELD_BITPOS_LVAL): ... this.
3772         (FIELD_BITPOS): New.
3773         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3774         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3775         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3776         SET_FIELD_BITPOS.
3777         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3778         SET_FIELD_BITPOS.
3779         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3780         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3781         * target-descriptions.c (tdesc_gdb_type): Adjust to use
3782         SET_FIELD_BITPOS.
3783
3784 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3785
3786         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3787         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3788         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3789         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3790         * jv-lang.c (java_link_class_type): Likewise, once.
3791         * stabsread.c (read_enum_type): Likewise.
3792
3793 2012-04-16  Yao Qi  <yao@codesourcery.com>
3794
3795         * common/agent.c (agent_run_command): Add one more parameter `len'.
3796         Update callers.
3797         * common/agent.h: Update declaration.
3798         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3799         Update.
3800         (linux_child_static_tracepoint_markers_by_strid): Ditto.
3801
3802 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
3803
3804         PR mi/13393
3805         * value.c (value_actual_type): New function.
3806         * value.h (value_actual_type): New declaration.
3807         * varobj.c (update_type_if_necessary): New function.
3808         (varobj_create): Call value_actual_type instead of
3809         value_type.
3810         (install_dynamic_child): distinct changed and type changed MI variable
3811         objects.
3812         (update_dynamic_varobj_children): Updated for install_dynamic_child
3813         change.  All callers updated.
3814         (varobj_update): Support for MI variable object type change if
3815         the value changed and RTTI is used to determine the type.
3816         (create_child_with_value): Call value_actual_type instead of
3817         value_type.
3818         (adjust_value_for_child_access): Extended with a new parameter which
3819         specify whether the given value should be casted to enclosing type.
3820         All callers updated.
3821
3822 2012-04-14  Yao Qi  <yao@codesourcery.com>
3823
3824         Import gnulib module inttypes from git
3825         (250b80067c1e1d8faa0c42fb572f721975b929c5)
3826         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3827         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3828         gnulib/m4/inttypes-pri.m4
3829         * aclocal.m4, config.in, configure: Regenerated.
3830         * gnulib/Makefile.am: Update.
3831         * gnulib/Makefile.in: Update.
3832         * gnulib/m4/gnulib-cache.m4: Update.
3833         * gnulib/m4/gnulib-comp.m4: Update.
3834         * gnulib/inttypes.in.h: New.
3835         * gnulib/m4/inttypes-pri.m4: New.
3836         * gnulib/m4/inttypes.m4: New.
3837
3838 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
3839
3840         * infrun.c (resume): Update PC address to the real PC after
3841         preparing to do displaced stepping.
3842
3843 2012-04-12  Doug Evans  <dje@google.com>
3844
3845         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3846         All callers updated.
3847
3848 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
3849
3850         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3851
3852 2012-04-12  Doug Evans  <dje@google.com>
3853
3854         * dwarf2read.c (create_all_type_units): Renamed from
3855         create_debug_types_hash_table.  All callers updated.
3856
3857         * dwarf2read.c (create_signatured_type_table_from_index): Rename
3858         local type_sig to sig_type, type_offset to type_offset_in_tu.
3859         (hash_signatured_type): Renamed from hash_type_signature,
3860         all callers updated.
3861         (eq_signatured_type): Renamed from eq_type_signature,
3862         all callers updated.
3863         (create_debug_types_hash_table): Rename local type_sig to sig_type.
3864         (process_enumeration_scope): Ditto.
3865         (lookup_signatured_type_at_offset): Ditto.
3866         (load_full_type_unit, read_signatured_type): Ditto.
3867
3868 2012-04-12  Yao Qi  <yao@codesourcery.com>
3869
3870         * remote.c (async_remote_interrupt): Correct function name in
3871         debug message.
3872         (async_remote_interrupt_twice): Ditto.
3873
3874 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
3875
3876         * source.c (find_and_open_source): Consistently pass resulting
3877         full path through xfullpath.
3878
3879 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3880
3881         Provide more specific displaced-stepping memory error message.
3882         * infrun.c (displaced_step_prepare): New variable status.  Call
3883         target_read_memory instead of read_memory, provide more specific
3884         error message.
3885
3886 2012-04-11  Tristan Gingold  <gingold@adacore.com>
3887
3888         PR gdb/13901
3889         * darwin-nat.c (darwin_execvp): Revert previous patch.
3890
3891 2012-04-11  Tristan Gingold  <gingold@adacore.com>
3892
3893         PR gdb/13901
3894         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3895         in case of change.
3896
3897 2012-04-11  Tristan Gingold  <gingold@adacore.com>
3898
3899         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3900         warning.
3901
3902 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
3903
3904         New command 'explore' which helps explore values and types in
3905         scope.
3906         * NEWS: Add an entry about the new 'explore' command.
3907         * data-directory/Makefile.in: Add gdb/command/explore.py
3908         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3909         command using the GDB Python API.
3910
3911 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
3912
3913         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3914         extension in jump target calculation.
3915
3916 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
3917
3918         * mips-tdep.c (mips32_next_pc): Handle JALX.
3919
3920 2012-04-10  Yao Qi  <yao@codesourcery.com>
3921
3922         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3923
3924 2012-04-10  Yao Qi  <yao@codesourcery.com>
3925
3926         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3927         and gnulib/m4/gnulib-tool.m4.
3928
3929 2012-04-10  Doug Evans  <dje@google.com>
3930
3931         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3932         (load_partial_dies): Clarify comment.
3933         (find_partial_die): Support rereading type units.
3934         Clarify CU handling, if we know offset is in CU, don't search for the
3935         containing CU.  Add comment regarding memory waste.
3936
3937 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3938
3939         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3940         i386/x32-avx and i386/x32-avx-linux.
3941         (i386/x32-expedite): New.
3942         (i386/x32-linux-expedite): Likewise.
3943         (i386/x32-avx-expedite): Likewise.
3944         (i386/x32-avx-linux-expedite): Likewise.
3945         ($(outdir)/i386/x32.dat): Likewise.
3946         ($(outdir)/i386/x32-linux.dat): Likewise.
3947         ($(outdir)/i386/x32-avx.dat): Likewise.
3948         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3949
3950         * features/i386/x32-avx-linux.xml: New file.
3951         * features/i386/x32-avx.xml: Likewise.
3952         * features/i386/x32-core.xml: Likewise.
3953         * features/i386/x32-linux.xml: Likewise.
3954         * features/i386/x32.xml: Likewise.
3955
3956         * features/i386/x32-avx-linux.c: New.  Generated.
3957         * features/i386/x32-avx.c: Likewise.
3958         * features/i386/x32-linux.c: Likewise.
3959         * features/i386/x32.c: Likewise.
3960         * regformats/i386/x32-avx-linux.dat: Likewise.
3961         * regformats/i386/x32-avx.dat: Likewise.
3962         * regformats/i386/x32-linux.dat: Likewise.
3963         * regformats/i386/x32.dat: Likewise.
3964
3965 2012-04-10  Tristan Gingold  <gingold@adacore.com>
3966
3967         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3968         code to kill the inferior.
3969
3970 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
3971
3972         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3973         defines.
3974         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3975         defines.
3976         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3977         (yyvsp): New defines.
3978         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3979         defines.
3980         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3981         defines.
3982         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3983         defines.
3984         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3985         defines.
3986         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3987         defines.
3988
3989 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
3990
3991         * sparc64-tdep.c (sparc64_store_arguments)
3992         (sparc64_store_arguments): Fix coding style.
3993
3994 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
3995
3996         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3997         complex floats, adjust some related comments and tighten a related
3998         assertion.
3999         (sparc64_extract_return_value): Handle complex floats.
4000
4001 2012-04-07  Doug Evans  <dje@google.com>
4002
4003         * dwarf2read.c (load_partial_dies): Change condition to assert.
4004
4005 2012-04-06  Doug Evans  <dje@google.com>
4006
4007         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
4008         "mov %rsp,%rbp".
4009
4010 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
4011
4012         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
4013         fencepost error.
4014         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
4015         (v850_gdbarch_init): Set `num_regs' as appropriate for the
4016         architecture.
4017
4018 2012-04-05  Keith Seitz  <keiths@redhat.com>
4019
4020         * linespec.c (decode_compound): Remove.
4021         (enum offset_relative_sign): New enum.
4022         (struct line_offset): New struct.
4023         (struct linespec): New struct.
4024         (struct linespec_state): Move file_symtabs,
4025         user_filename, and user_function into struct linespec.
4026         Make result an anonymous struct holding vectors of
4027         symbolp and minsym_and_objfile_d.
4028         Add language member.
4029         (enum ls_token_type): New enum.
4030         (linespec_keywords): New array.
4031         (struct ls_token): New struct.
4032         (struct ls_parser): New struct.
4033         (linespec_lexer_lex_number): New function.
4034         (linespec_lexer_lex_keyword): New function.
4035         (is_ada_operator): New function.
4036         (skip_quote_char): New function.
4037         (copy_token_string): New function.
4038         (is_closing_quote_enclosed): New function.
4039         (find_parameter_list_end): New function.
4040         (linespec_lexer_lex_string): New function.
4041         (linespec_lexer_lex_one): New function.
4042         (linespec_lexer_consume_token): New function.
4043         (linespec_lexer_peek_token): New function.
4044         (cplusplus_error): Remove unused function.
4045         (find_methods): Update comment.
4046         (find_toplevel_char): Return const.
4047         (is_objc_method_format): Remove unused function.
4048         (find_toplevel_string): New function.
4049         (is_linespec_boundary): Remove.
4050         (symbol_not_found_error): New function.
4051         (find_method_overload_end): Remove function.
4052         (unexpected_linespec_error): New function.
4053         (keep_name_info): Remove.
4054         (linespec_parse_line_offset): New function.
4055         (linespec_parse_basic): New function.
4056         (canonicalize_linespec): New function.
4057         (decode_line_internal): Remove.
4058         (create_sals_line_offset): New function adapted from
4059         decode_all_digits.
4060         (convert_linespec_to_sals): New function.
4061         (parse_linespec): New function.
4062         (linespec_parser_new): New function.
4063         (linespec_state_destructor): Change parameter type to
4064         struct linespec_state *.
4065         Add language parameter.
4066         Remove freeing of moved members.
4067         (linespec_parser_delete): New function.
4068         (decode_line_full): Use parse_linespec and linespec_parser_new.
4069         (decode_line_1): Likewise.
4070         (decode_indirect): Rename to ...
4071         (linespec_expression_to_pc): ... this and rewrite
4072         to simply find CORE_ADDR, storing this result for later
4073         conversion to SALs.
4074         (locate_first_half): Remove.
4075         (deocde_objc): Add parameter LS.
4076         Initialize new struct collect_info members.
4077         Handle minimal symbols, too.
4078         (decode_compound): Delete.
4079         (lookup_prefix_sym): Rewrite.
4080         (compare_msymbols): New function.
4081         (find_method): Rewrite.
4082         Do not call cplusplus_error.
4083         (symtabs_from_filename): Rewrite.
4084         (collect_function_symbols): Delete.
4085         (find_function_symbols): Rewrite without ARGPTR-style
4086         processing.
4087         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
4088         (decode_dollar): Adapted and renamed to ...
4089         (linespec_parse_variable): ... this.
4090         (find_linespec_symbols): New function.
4091         (decode_label): Adapted and renamed to ...
4092         (find_label_symbols): ... this.
4093         (decode_digits_list_mode): Add and use LS argument.
4094         (decode_digits_ordinary): Likewise.
4095         (collect_symbols): Do not collect SALs, just symbols and msymbols.
4096         If in list mode, allow any symbol class.  Otherwise, only
4097         permit LOC_BLOCK symbols.
4098         (minsym_found): Update comments.
4099         (search_minsyms_for_name): Do not convert the matching symbol
4100         into a SAL.  Simply push the symbol and objfile into the
4101         result vector.
4102         (decode_variable): Delete. Contents adapted into
4103         find_linespec_symbols.
4104
4105         * cp-support.c (SKIP_SPACE): Remove.
4106         (operator_tokens): Remove unused global.
4107         (cp_validate_operator): Remove.
4108         * cp-support.h (cp_validate_operator): Remove declaration.
4109
4110 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4111
4112         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
4113         for TYPE_VPTR_FIELDNO.
4114         * valprint.c (valprint_check_validity): Make it global, move the
4115         function comment ...
4116         * value.h (valprint_check_validity): ... to this new declaration.
4117
4118 2012-04-02  Tristan Gingold  <gingold@adacore.com>
4119
4120         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
4121         the STATE32 api for i386 state.
4122         (i386_darwin_store_inferior_registers): Likewise.
4123
4124 2012-04-02  Tristan Gingold  <gingold@adacore.com>
4125
4126         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
4127         SS offset.
4128         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
4129         format_string.
4130
4131 2012-04-02  Tristan Gingold  <gingold@adacore.com>
4132
4133         PR gdb/13901
4134         * darwin-nat.c (darwin_execvp): Set binary preference.
4135
4136 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4137
4138         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
4139
4140 2012-03-30  Tom Tromey  <tromey@redhat.com>
4141
4142         * python/python.c (gdbpy_decode_line): Move cleanup creation out
4143         of TRY_CATCH.  Fix error handling.
4144         * python/py-value.c (convert_value_from_python): Move 'old'
4145         declaration to innermost scope.
4146
4147 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4148             Andrey Smirnov  <andrew.smirnov@gmail.com>
4149
4150         -Wshadow warning fix.
4151         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
4152         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
4153         Adjust code accordingly.
4154
4155 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4156
4157         * ada-lang.c (symbol_completion_add): Rename parameter
4158         "encoded" into "encoded_p".  Ajust code and documentation
4159         accordingly.
4160
4161 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4162             Andrey Smirnov  <andrew.smirnov@gmail.com>
4163
4164         -Wshadow warning fix.
4165         * ada-lang.c (symbol_completion_add): Rename parameter
4166         "wild_match" into wild_match_p.  Update code and documentation
4167         accordingly.
4168
4169 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4170
4171         * ada-lang.c (symbol_completion_match): Rename parameter
4172         "encoded" into "encoded_p".  Ajust code and documentation
4173         accordingly.
4174
4175 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4176             Andrey Smirnov  <andrew.smirnov@gmail.com>
4177
4178         -Wshadow warning fix.
4179         * ada-lang.c (symbol_completion_match): Rename parameter
4180         "wild_match" into "wild_match_p".  Adjust code and function
4181         documentation accordingly.
4182
4183 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4184             Andrey Smirnov  <andrew.smirnov@gmail.com>
4185
4186         -Wshadow warning fix.
4187         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
4188         "symbol_info" into "info".  Adjust code accordingly.
4189         (ada_lookup_symbol): Likewise.
4190
4191 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4192
4193         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
4194         of this function's documentation.
4195
4196 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4197             Andrey Smirnov  <andrew.smirnov@gmail.com>
4198
4199         -Wshadow warning fix.
4200         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
4201         variable into "wild_match_p".  Adjust code accordingly.
4202
4203 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4204             Andrey Smirnov  <andrew.smirnov@gmail.com>
4205
4206         -Wshadow warning fix.
4207         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
4208         parameter into "wild_match_p".  Adjust code accordingly.
4209         Document this parameter in the function description.
4210
4211 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4212             Andrey Smirnov  <andrew.smirnov@gmail.com>
4213
4214         -Wshadow warning fix.
4215         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
4216         "wild_match" parameter to "wild_match_p" (-Wshadow).
4217
4218 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4219
4220         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
4221         in function documentation.
4222
4223 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4224             Andrey Smirnov  <andrew.smirnov@gmail.com>
4225
4226         -Wshadow warning fix.
4227         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
4228         variable into wild_match_p.  Adjust code accordingly.
4229
4230 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4231             Andrey Smirnov  <andrew.smirnov@gmail.com>
4232
4233         * ada-valprint.c (ada_val_print_1): Move the code handling
4234         TYPE_CODE_ENUM inside its own lexical block.  Declare
4235         variables len and val there, instead of in the function's
4236         top level block.  Avoid declaring deref_val again in a way
4237         that shadows another variable of the same name declared
4238         in one of the up-level blocks.  Just re-use the up-level
4239         variable instead.
4240
4241 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4242
4243         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
4244         Replace block_found argument by symbol_info.  Adjust
4245         implementation accordingly.  Add function documentation.
4246         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
4247         Fix documentation.
4248         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
4249         * ada-exp.y (write_object_renaming): Adjust to new
4250         ada_lookup_encoded_symbol API.
4251
4252 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4253
4254         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
4255         documentation.
4256
4257 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
4258
4259         * v850-tdep.c: Add the enum values for mpu and fpu registers.
4260         (v850_register_name): Add the mpu and fpu register names.
4261         (v850e_register_name): Add the mpu and fpu register names.
4262         (v850e2_register_name): New function.
4263         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
4264         bfd_mach_v850e2v3.
4265
4266 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
4267
4268         * NEWS: Add entry for Ada varobj support.
4269
4270 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
4271
4272         * varobj.c (default_value_is_changeable_p): New function,
4273         extracted from varobj_value_is_changeable_p.  Add declaration.
4274         (ada_value_is_changeable_p): New function, extracted from
4275         varobj_value_is_changeable_p.  Add declaration.
4276         (struct language_specific): New field "value_is_changeable_p".
4277         (languages): Add entries for new field.
4278         (varobj_create): Set language before calling install_new_value.
4279         (varobj_value_is_changeable_p): Reimplement to call the varobj's
4280         "value_is_changeable_p" language callback.
4281
4282 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
4283
4284         * ada-varobj.h, ada-varobj.c: New files.
4285         * Makefile.in (SFILES): Add ada-varobj.c.
4286         (HFILES_NO_SRCDIR): Add ada-varobj.h.
4287         (COMMON_OBS): Add ada-varobj.o.
4288
4289 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
4290
4291         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
4292         (struct language_specific): New field "value_has_mutated".
4293         (languages): Set field "value_has_mutated" in each entry of array.
4294         (varobj_value_has_mutated): New function.
4295         (varobj_udpdate): Add handling of type mutation.
4296         (value_of_root): Add handling of type mutation.
4297         (ada_value_has_mutated): New function.
4298
4299 2012-03-28  Pedro Alves  <palves@redhat.com>
4300
4301         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
4302         Always supply $fr0 as 0.0 and $fr1 as 1.0.
4303
4304 2012-03-28  Tom Tromey  <tromey@redhat.com>
4305
4306         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
4307         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
4308         before returning.
4309
4310 2012-03-28  Tom Tromey  <tromey@redhat.com>
4311
4312         * .dir-locals.el: New file.
4313
4314 2012-03-28  Pedro Alves  <palves@redhat.com>
4315
4316         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
4317
4318 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
4319
4320         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
4321         handling for r0.
4322
4323 2012-03-27  Pedro Alves  <palves@redhat.com>
4324
4325         Eliminate struct ui_stream.
4326
4327         * ui-out.h (struct ui_stream): Delete.
4328         (ui_out_field_stream): Adjust prototype.
4329         (ui_out_stream_new, ui_out_stream_delete)
4330         (make_cleanup_ui_out_stream_delete): Delete declarations.
4331         * ui-out.c (ui_out_field_stream): Change prototype to take a
4332         ui_file instead of a ui_stream.  Adjust.
4333         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
4334         (make_cleanup_ui_out_stream_delete): Delete.
4335         * breakpoint.c (print_breakpoint_location)
4336         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
4337         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4338         * disasm.c (dump_insns): Ditto.
4339         (do_mixed_source_and_assembly, do_assembly_only): Adjust
4340         prototype.
4341         (gdb_disassembly): Use ui_file/mem_fileopen instead of
4342         ui_stream/ui_out_stream_new.
4343         * infcmd.c (print_return_value): Ditto.
4344         * osdata.c (info_osdata_command): Don't allocate a local
4345         ui_stream.
4346         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
4347         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4348         * tracepoint.c (print_one_static_tracepoint_marker): Don't
4349         allocate a local ui_stream.
4350         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
4351         instead of ui_stream/ui_out_stream_new.
4352         (list_args_or_locals): Don't allocate a local ui_stream.
4353         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
4354         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
4355         ui_stream/ui_out_stream_new.
4356         * cli/cli-setshow.c (do_setshow_command): Ditto.
4357
4358 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
4359
4360         * arm-linux-tdep.c (arm_linux_init_abi): Call
4361         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
4362         * arm-tdep.c (arm_process_record): New function.
4363         (deallocate_reg_mem): New function.
4364         (decode_insn): New function.
4365         (thumb_record_branch): New function.
4366         (thumb_record_ldm_stm_swi(): New function.
4367         (thumb_record_misc): New function.
4368         (thumb_record_ld_st_stack): New function.
4369         (thumb_record_ld_st_imm_offset): New function.
4370         (thumb_record_ld_st_reg_offset(): New function.
4371         (thumb_record_add_sub_cmp_mov): New function.
4372         (thumb_record_shift_add_sub): New function.
4373         (arm_record_coproc_data_proc): New function.
4374         (arm_record_coproc): New function.
4375         (arm_record_b_bl): New function.
4376         (arm_record_ld_st_multiple): New function.
4377         (arm_record_ld_st_reg_offset): New function.
4378         (arm_record_ld_st_imm_offset): New function.
4379         (arm_record_data_proc_imm): New function.
4380         (arm_record_data_proc_misc_ld_str): New function.
4381         (arm_record_extension_space): New function.
4382         (arm_record_strx): New function.
4383         (sbo_sbz): New function.
4384         (struct insn_decode_record): New structure for arm insn record.
4385         (REG_ALLOC): New macro for reg allocations.
4386         (MEM_ALLOC): New macro for memory allocations.
4387         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
4388
4389 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
4390
4391         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
4392         (store_register): Likewise.
4393
4394 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
4395
4396         * MAINTAINERS (Write After Approval): Add myself to the list.
4397
4398 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4399
4400         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
4401         Describe also the option "auto".
4402
4403 2012-03-22  Richard Henderson  <rth@redhat.com>
4404
4405         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
4406         * sparc-nat.c (sparc_xfer_wcookie): Make static.
4407
4408 2012-03-22  Richard Henderson  <rth@redhat.com>
4409
4410         * jit.c (jit_read_code_entry): Compute alignment and offset of
4411         int64_t member before computing entry_size.
4412
4413 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
4414
4415         Python scripting: Add new method Value.referenced_value to
4416         gdb.Value which can dereference pointer as well as reference
4417         values.
4418         * NEWS: Add entry under 'Python scripting' about the new method
4419         Value.referenced_value on gdb.Value objects.
4420         * python/py-value.c (valpy_referenced_value): New function
4421         defining a new method on gdb.Value objects which can dereference
4422         pointer and reference values.
4423
4424 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
4425
4426         * MAINTAINERS (Write After Approval): Add myself to the list.
4427
4428 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
4429
4430         * symtab.c (skip_prologue_sal): Change test to check for "main()"
4431         in addition to "main".
4432
4433 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
4434
4435         * expression.h (op_name): Add declaration.
4436         * expprint.c (op_name): Remove declaration.  Make non-static.
4437         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
4438
4439 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4440
4441         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
4442         of struct siginfo.
4443         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
4444         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4445         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
4446         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
4447         (linux_nat_get_siginfo): Likewise.
4448         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4449         (linux_nat_get_siginfo): Likewise.
4450         * linux-tdep.c (linux_get_siginfo_type): Likewise.
4451         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4452         * procfs.c (gdb_siginfo_t): Likewise.
4453
4454 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
4455
4456         * .gitignore: Ignore more files.
4457
4458 2012-03-20  Pedro Alves  <palves@redhat.com>
4459
4460         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4461         returns.
4462
4463 2012-03-20  Yao Qi  <yao@codesourcery.com>
4464
4465         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4466         comment.
4467
4468 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4469
4470         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4471         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4472         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4473         sect_offset.
4474         * dwarf2expr.h (cu_offset, sect_offset): New types.
4475         (struct dwarf_expr_context_funcs) <dwarf_call>
4476         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4477         sect_offset.
4478         (struct dwarf_expr_context) <len>: Improve the comment.
4479         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4480         cu_offset and sect_offset.
4481         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4482         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4483         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4484         * dwarf2loc.h: Include dwarf2expr.h.
4485         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4486         and sect_offset.
4487         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4488         Improve the comment.
4489         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4490         (struct signatured_type, struct line_header, struct partial_die_info)
4491         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4492         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4493         (get_die_type_at_offset, create_cus_from_index)
4494         (create_signatured_type_table_from_index, dw2_get_file_names)
4495         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4496         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4497         (create_debug_types_hash_table, process_psymtab_comp_unit)
4498         (load_partial_comp_unit, create_all_comp_units)
4499         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4500         (load_full_comp_unit, dwarf2_physname, read_import_statement)
4501         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4502         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4503         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4504         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4505         (find_partial_die, read_attribute_value, lookup_die_type)
4506         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4507         (is_ref_attr): New function comment.
4508         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4509         Use cu_offset and sect_offset.
4510         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4511         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4512         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4513         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4514         (offset_and_type_hash, offset_and_type_eq, set_die_type)
4515         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4516         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4517         sect_offset.
4518
4519 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4520
4521         Code cleanup.
4522         * python/py-auto-load.c (source_section_scripts): New variable back_to.
4523         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4524         with xfree.
4525         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4526
4527 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4528
4529         * NEWS: Describe new options --init-command=FILE, -ix and
4530         --init-eval-command=COMMAND, -iex.
4531         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4532         CMDARG_INIT_COMMAND.
4533         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
4534         "init-command", "init-eval-command", "ix" and "iex" to the variable
4535         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
4536         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4537         (print_gdb_help): Describe --init-command=FILE, -ix and
4538         --init-eval-command=COMMAND, -iex.
4539
4540 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4541
4542         Code cleanup.
4543         * main.c (struct cmdarg): Move it here from main.  Add more comments.
4544         (cmdarg_s, VEC (cmdarg_s)): New.
4545         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
4546         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
4547         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
4548         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
4549         of CMDARG.
4550
4551 2012-03-19  Tom Tromey  <tromey@redhat.com>
4552
4553         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4554
4555 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4556
4557         PR symtab/13777
4558         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4559         GCC >=4.5.
4560
4561 2012-03-16  Chris January  <chris.january@allinea.com>
4562
4563         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4564         of clear.
4565
4566 2012-03-16  Chris January  <chris.january@allinea.com>
4567
4568         * source.c (add_path): Use memmove instead of strcpy because the
4569         strings overlap.
4570
4571 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
4572
4573         * value.h (set_value_parent): Add declaration.
4574         * value.c (set_value_parent): New function.
4575         (value_address): If VALUE->PARENT is not NULL, then use it as
4576         the base address instead of VALUE->LOCATION.address.
4577         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4578         the same as OBJ's address.  Adjust V's offset accordingly.
4579         Set V's parent.
4580
4581 2012-03-16  Gary Benson  <gbenson@redhat.com>
4582
4583         PR breakpoints/10738
4584         * dwarf2read.c (use_deprecated_index_sections): New global.
4585         (struct partial_die_info): New member may_be_inlined.
4586         (read_partial_die): Set may_be_inlined where appropriate.
4587         (add_partial_subprogram): Add partial symbols for partial
4588         DIEs that may be inlined.
4589         (new_symbol_full): Add inlined subroutines to the current
4590         scope.
4591         (write_psymtabs_to_index): Bump version number.
4592         (dwarf2_read_index): Read only version 6 indices unless
4593         use_deprecated_index_sections is set.
4594         * linespec.c (symbol_and_data_callback): New structure.
4595         (iterate_inline_only): New function.
4596         (iterate_over_all_matching_symtabs): New argument
4597         "include_inline".  If nonzero, also call the callback for
4598         symbols representing inlined subroutines.
4599         (lookup_prefix_sym): Pass extra argument to the above.
4600         (find_function_symbols): Likewise.
4601         (add_matching_symbols_to_info): Likewise.
4602         * NEWS: Mention that GDB can now set breakpoints on inlined
4603         functions.
4604
4605 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
4606
4607         * p-typeprint.c (pascal_type_print_method_args):
4608         Fix display of parameter of methods.
4609
4610 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
4611
4612         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4613         Add missing prototype.
4614
4615 2012-03-16  Yao Qi  <yao@codesourcery.com>
4616             Jan Kratochvil  <jan.kratochvil@redhat.com>
4617
4618         Fix false compilation warning.
4619         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4620
4621 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
4622             Pedro Alves  <pedro@codesourcery.com>
4623
4624         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4625         (arm_register_g_packet_guesses): New function.
4626         (arm_gdbarch_init): Don't force a target description with
4627         registers when the executable is detected as M-profile.  Instead
4628         set gdbarch->tdep->is_m.  Register `g' packet guesses.
4629         (_initialize_arm_tdep): Initialize the new target description.
4630         * features/arm-with-m-fpa-layout.xml: New description.
4631         * features/arm-with-m-fpa-layout.c: New, generated.
4632
4633 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
4634
4635         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4636         Update function description.
4637         (insert_bp_location): Do not wipe bl->target_info out.
4638         * mem-break.c: #include "gdb_string.h".
4639         (default_memory_insert_breakpoint): Do not call target_read_memory
4640         with a pointer to the breakpoint's shadow_contents buffer.  Use
4641         a local buffer instead.
4642         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4643
4644 2012-03-15  Tom Tromey  <tromey@redhat.com>
4645
4646         * NEWS: Mention "info vtbl", not "info vtable".
4647         * cp-support.c (info_vtbl_command): Fix comment.
4648         (_initialize_cp_support): Fix text.
4649
4650 2012-03-15  Tom Tromey  <tromey@redhat.com>
4651
4652         * cp-valprint.c (cp_print_value_fields): Use
4653         print_function_pointer_address for vtable slot.
4654
4655 2012-03-15  Tom Tromey  <tromey@redhat.com>
4656
4657         * gnu-v3-abi.c (struct value_and_voffset): New.
4658         (hash_value_and_voffset, eq_value_and_voffset)
4659         (compare_value_and_voffset, compute_vtable_size)
4660         (print_one_vtable, gnuv3_print_vtable): New functions.
4661         (init_gnuv3_ops): Initialize 'print_vtable' field.
4662         * cp-support.c (info_vtbl_command): New function.
4663         (_initialize_cp_support): Add "info vtbl".
4664         * cp-abi.h (cplus_print_vtable): Declare.
4665         (struct cp_abi_ops) <print_vtable>: New field.
4666         * cp-abi.c (cplus_print_vtable): New function.
4667         * NEWS: Update.
4668
4669 2012-03-15  Tom Tromey  <tromey@redhat.com>
4670
4671         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4672         iterate_over_symbols.
4673
4674 2012-03-14  Doug Evans  <dje@google.com>
4675
4676         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4677         DW_OP_GNU_parameter_ref.
4678
4679 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4680
4681         Fix double prompt of 'interpreter-exec mi'.
4682         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4683         (mi_interpreter_resume): use it.
4684         (mi_execute_command_input_handler): New function.
4685         * mi/mi-main.c (mi_execute_command): Move prompt printing to
4686         mi_execute_command_input_handler.
4687
4688 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
4689
4690         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4691         prototype.
4692         (darwin_debug_port_info): Make static.
4693         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4694         * machoread.c (_initialize_machoread): Add prototype.
4695         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4696         (i386_darwin_set_control, i386_darwin_get_control)
4697         i386_darwin_dr_set_addr, i386_darwin_get_addr)
4698         i386_darwin_get_status, i386_darwin_get_control):
4699         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4700
4701 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
4702
4703         * ax-gdb.c (gen_usual_unary): Remove special handling of
4704         enum and bool types.
4705
4706 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
4707
4708         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4709
4710 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
4711
4712         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4713
4714 2012-03-13  Chris January  <chris.january@allinea.com>
4715
4716         * aix-thread.c (fill_sprs): Store the floating point registers
4717         at the correct offsets into vals.
4718
4719 2012-03-13  Doug Evans  <dje@google.com>
4720
4721         * NEWS: Mention symbol-reloading has been deleted.
4722         * symfile.c (symbol_reloading): Delete.
4723         (show_symbol_reloading): Delete.
4724         (_initialize_symfile): Delete set/show symbol-reloading.
4725
4726         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4727         read_in_chain until we have successfully read it in.
4728         (load_full_comp_unit): Ditto.
4729         (read_signatured_type): Add comment.
4730
4731 2012-03-13  Chris January  <chris.january@allinea.com>
4732
4733         * stabsread.c (fix_common_block): Change type of valu argument
4734         to CORE_ADDR.
4735
4736 2012-03-13  Chris January  <chris.january@allinea.com>
4737
4738         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4739         instruction.
4740
4741 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4742
4743         * common/linux-procfs.c (linux_proc_get_int): New, from
4744         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4745         field.
4746         (linux_proc_get_tgid): Only call linux_proc_get_int.
4747         (linux_proc_get_tracerpid): New.
4748         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4749         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4750         linux_proc_pid_has_state.
4751         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4752         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4753         (linux_ptrace_attach_warnings): New.
4754         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4755         New declaration.
4756         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4757         (linux_nat_attach): New variables ex, buffer, message and message_s.
4758         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4759
4760 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4761
4762         * Makefile.in (linux-ptrace.o): New.
4763         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4764         from linux-nat.c.
4765         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4766         * common/linux-ptrace.c: New file.
4767         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4768         * config/arm/linux.mh: Likewise.
4769         * config/i386/linux.mh: Likewise.
4770         * config/i386/linux64.mh: Likewise.
4771         * config/ia64/linux.mh: Likewise.
4772         * config/m32r/linux.mh: Likewise.
4773         * config/m68k/linux.mh: Likewise.
4774         * config/mips/linux.mh: Likewise.
4775         * config/pa/linux.mh: Likewise.
4776         * config/powerpc/linux.mh: Likewise.
4777         * config/powerpc/ppc64-linux.mh: Likewise.
4778         * config/powerpc/spu-linux.mh: Likewise.
4779         * config/s390/s390.mh: Likewise.
4780         * config/sparc/linux.mh: Likewise.
4781         * config/sparc/linux64.mh: Likewise.
4782         * config/xtensa/linux.mh: Likewise.
4783         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4784         common/linux-procfs.c.
4785         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4786
4787 2012-03-13  Hui Zhu  <teawater@gmail.com>
4788             Pedro Alves  <palves@redhat.com>
4789
4790         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
4791         CREATE_BREAKPOINT_FLAGS_INSERTED.
4792         (create_breakpoint_sal, create_breakpoints_sal)
4793         (base_breakpoint_create_breakpoints_sal)
4794         (tracepoint_create_breakpoints_sal)
4795         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
4796         down.
4797         (break_command_1, handle_gnu_v3_exceptions, trace_command)
4798         (ftrace_command, strace_command): Adjust.
4799         (create_tracepoint_from_upload): Pass
4800         CREATE_BREAKPOINT_FLAGS_INSERTED.
4801         * breakpoint.h (enum breakpoint_create_flags): New.
4802         (create_breakpoint): New flags parameter.
4803         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4804         * python/py-breakpoint.c (bppy_init): Adjust.
4805         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4806         * spu-tdep.c (spu_catch_start): Adjust.
4807
4808 2012-03-13  Pedro Alves  <palves@redhat.com>
4809             Hui Zhu  <teawater@gmail.com>
4810             Yao Qi  <yao@codesourcery.com>
4811
4812         * remote.c (struct remote_state): New field `starting_up'.
4813         (remote_start_remote): Set and clear it.
4814         (remote_can_download_tracepoint): If starting up, return false.
4815
4816 2012-03-13  Yao Qi  <yao@codesourcery.com>
4817
4818         * inferior.h (struct inferior): Remove fields any_syscall_count,
4819         syscalls_counts and total_syscalls_count.  Move them to new
4820         struct catch_syscall_inferior_data in breakpoint.c.
4821         * breakpoint.c: Call DEF_VEC_I(int).
4822         (struct catch_syscall_inferior_data): New.
4823         (get_catch_syscall_inferior_data): New.
4824         (catch_syscall_inferior_data_cleanup): New.
4825         (insert_catch_syscall): Update to access data in
4826         struct catch_syscall_inferior_data.
4827         (insert_catch_syscall): Likewise.
4828         (remove_catch_syscall): Likewise.
4829         (remove_catch_syscall): Likewise.
4830         (is_syscall_catchpoint_enabled): Likewise.
4831         (add_catch_command): Likewise.
4832         (_initialize_breakpoint): Register cleanup.
4833         * breakpoint.h: Removed DEF_VEC_I(int).
4834         * dwarf2loc.c: Call DEF_VEC_I(int).
4835         * mi/mi-main.c: Likewise.
4836
4837 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
4838
4839         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4840
4841 2012-03-12  Chris January  <chris.january@allinea.com>
4842
4843         * aix-thread.c (_initialize_aix_thread): Add prototype.
4844         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4845         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4846
4847 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
4848
4849         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4850         include of "amd64-nat.h".
4851
4852 2012-03-12  Tom Tromey  <tromey@redhat.com>
4853
4854         * buildsym.c (record_pending_block): Now static.
4855         * buildsym.h: (record_pending_block): Remove.
4856
4857 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
4858
4859         * amd64bsd-nat.c: Include amd64bsd-nat.h.
4860
4861 2012-03-09  Tom Tromey  <tromey@redhat.com>
4862
4863         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4864         producer_is_gxx_lt_4_6>: New fields.
4865         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4866
4867 2012-03-09  Tom Tromey  <tromey@redhat.com>
4868
4869         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4870
4871 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
4872
4873         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4874         prototype.
4875
4876 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
4877
4878         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4879
4880 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4881
4882         Fix -Wmissing-prototypes build.
4883         * arm-linux-nat.c (get_thread_id): Make it static.
4884         * xtensa-linux-nat.c (get_thread_id): Likewise.
4885
4886 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
4887
4888         * server.c (process_point_options): If a conditional expression
4889         is found, only print a message if remote_debug is nonzero.
4890
4891 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
4892
4893         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4894         of internal error for unknown/unsupported types.
4895
4896 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4897
4898         Fix CU relative vs. absolute DIE offsets.
4899         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4900         offset to offset_in_cu.
4901         * dwarf2read.c (process_enumeration_scope): Add CU offset to
4902         TYPE_OFFSET.
4903         (dwarf2_fetch_die_location_block): Rename parameter offset to
4904         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
4905
4906 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4907
4908         * libunwind-frame.c: Rename to ...
4909         * ia64-libunwind-tdep.c: ... here.
4910         * libunwind-frame.h: Rename to ...
4911         * ia64-libunwind-tdep.h: ... here.
4912         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4913         ia64-libunwind-tdep.h.
4914         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4915         * README (--with-libunwind): Rename to ...
4916         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4917         * config.in: Regenerate.
4918         * configure: Regenerate.
4919         * configure.ac: New option --with-libunwind-ia64, make the
4920         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
4921         Remove AC_DEFINE for HAVE_LIBUNWIND.
4922         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4923         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4924         Rename libunwind-frame in the general comment.
4925         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4926         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4927         Move forward declarations inside #ifndef.  Rename libunwind-frame in
4928         the general comment.
4929         * ia64-tdep.c: Rename libunwind-frame.h #include to
4930         ia64-libunwind-tdep.h.
4931         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4932         (ia64_libunwind_descr): Rename libunwind-frame to
4933         ia64-libunwind-tdep in these function comments.
4934         * ia64-tdep.h: Rename libunwind-frame.h #include to
4935         ia64-libunwind-tdep.h.
4936         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4937         ia64-libunwind-tdep in that data comment.
4938
4939 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4940
4941         * libunwind-frame.h (struct frame_unwind): New declaration.
4942
4943 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
4944
4945         * breakpoint.c (_initialize_breakpoint): Fix error in help of
4946         "set breakpoint condition-evaluation" command.
4947
4948 2012-03-08  Tristan Gingold  <gingold@adacore.com>
4949
4950         * sparc-stub.c: Move to stubs/
4951         * sh-stub.c: Likewise.
4952         * m68k-stub.c: Likewise.
4953         * m32r-stub.c: Likewise.
4954         * i386-stub.c: Likewise.
4955
4956 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
4957
4958         * m68klinux-tdep.c (m68k_linux_init_abi): Register
4959         linux_get_siginfo_type.
4960
4961         * m68klinux-nat.c: Include "gdb_proc_service.h".
4962         (PTRACE_GET_THREAD_AREA): Define.
4963         (ps_get_thread_area): New function.
4964
4965 2012-03-08  Yao Qi  <yao@codesourcery.com>
4966
4967         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4968         `xsnprintf'.
4969         (remote_query_attached): Likewise.
4970         (remote_static_tracepoint_marker_at): Likewise.
4971         (remote_set_permissions): Likewise.
4972         (remote_detach_1, extended_remote_attach_1): Likewise.
4973         (send_g_packet, remote_vkill): Likewise.
4974         (extended_remote_disable_randomization): Likewise.
4975         (remote_add_target_side_condition): Likewise.
4976         (remote_insert_breakpoint): Likewise.
4977         (remote_remove_breakpoint): Likewise.
4978         (remote_insert_watchpoint): Likewise.
4979         (remote_remove_watchpoint): Likewise.
4980         (remote_insert_hw_breakpoint): Likewise.
4981         (remote_insert_hw_breakpoint): Likewise.
4982         (remote_remove_hw_breakpoint): Likewise.
4983         (remote_download_command_source): Likewise.
4984         (remote_download_tracepoint): Likewise.
4985         (remote_download_trace_state_variable): Likewise.
4986         (remote_disable_tracepoint): Likewise.
4987         (remote_trace_set_readonly_regions): Likewise.
4988         (remote_get_tracepoint_status): Likewise.
4989         (remote_trace_find): Likewise.
4990         (remote_get_trace_state_variable_value): Likewise.
4991         (remote_set_disconnected_tracing): Likewise.
4992         (remote_set_circular_trace_buffer): Likewise.
4993         (remote_get_min_fast_tracepoint_insn_len): Likewise.
4994         (remote_use_agent): Likewise.
4995         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4996         Update callers.
4997
4998 2012-03-07  Pedro Alves  <palves@redhat.com>
4999
5000         * NEWS: Mention QProgramSignals.
5001         * inferior.h (update_signals_program_target): Declare.
5002         * infrun.c: (update_signals_program_target): New.
5003         (handle_command): Update the target of the new program signals
5004         array changes.
5005         * remote.c (PACKET_QProgramSignals): New enum.
5006         (last_program_signals_packet): New global.
5007         (remote_program_signals): New.
5008         (remote_start_remote): Update the target with the program signals
5009         list.
5010         (remote_protocol_features): Add entry for QPassSignals.
5011         (remote_open_1): Free anc clear last_program_signals_packet.
5012         (init_remote_ops): Install remote_program_signals.
5013         * target.c (update_current_target): Adjust.
5014         (target_program_signals): New.
5015         * target.h (struct target_ops) <to_program_signals>: New field.
5016         (target_program_signals): Declare.
5017
5018 2012-03-07  Pedro Alves  <palves@redhat.com>
5019
5020         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
5021         extensions.
5022
5023 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
5024
5025         * m68klinux-nat.c (getregs_supplies): Make static.
5026         (getfpregs_supplies): Likewise.
5027         (have_ptrace_getregs): Likewise.
5028
5029 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
5030
5031         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
5032         in call to get_die_type_at_offset.
5033
5034 2012-03-06  Stan Shebs  <stan@codesourcery.com>
5035
5036         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
5037         * mi/mi-cmd-disas.c: Ditto.
5038         * mi/mi-cmd-env.c: Ditto.
5039         * mi/mi-cmd-file.c: Ditto.
5040         * mi/mi-cmd-stack.c: Ditto.
5041         * mi/mi-cmd-target.c: Ditto.
5042         * mi/mi-cmd-var.c: Ditto.
5043         * mi/mi-cmds.c: Ditto.
5044         * mi/mi-cmds.h: Ditto.
5045         * mi/mi-console.c: Ditto.
5046         * mi/mi-getopt.c: Ditto.
5047         * mi/mi-getopt.h: Ditto.
5048         * mi/mi-interp.c: Ditto.
5049         * mi/mi-main.c: Ditto.
5050         * mi/mi-out.c: Ditto.
5051         * mi/mi-parse.c: Ditto.
5052         * mi/mi-parse.h: Ditto.
5053         * mi/mi-symbol-cmds.c: Ditto.
5054
5055         * mi/mi-getopt.h: Move mi_opt struct up.
5056         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
5057         return.
5058         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
5059
5060 2012-03-06  Tom Tromey  <tromey@redhat.com>
5061
5062         * proc-service.c (ps_pglobal_lookup): Set the current program
5063         space.
5064
5065 2012-03-06  Pedro Alves  <palves@redhat.com>
5066
5067         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
5068
5069 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
5070
5071         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
5072
5073 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5074
5075         Code cleanup.
5076         * common/linux-osdata.c (linux_common_core_of_thread): New function
5077         comment.
5078         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
5079         call by linux_common_core_of_thread.
5080         (linux_nat_core_of_thread_1): Remove.
5081         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
5082         * linux-thread-db.c: Include linux-osdata.h.
5083         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
5084         linux_common_core_of_thread.
5085
5086 2012-03-05  Tom Tromey  <tromey@redhat.com>
5087
5088         * value.c (value_primitive_field): Don't fetch contents for
5089         non-virtual bases.
5090
5091 2012-03-05  Tom Tromey  <tromey@redhat.com>
5092
5093         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
5094
5095 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5096
5097         * s390-nat.c: Include "gregset.h".
5098
5099 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5100
5101         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
5102         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
5103         (libunwind_load): New variable so_error, use it for dlerror.  Try to
5104         load also LIBUNWIND_SO_7.
5105
5106 2012-03-05  Pedro Alves  <palves@redhat.com>
5107
5108         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
5109         is not NULL, and remove resulting dead code.
5110
5111 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
5112
5113         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
5114         prologue to sh_analyze_prologue.
5115         (sh_analyze_prologue): Make better use of such an upper limit, and
5116         generally be more cautious about accessing memory.
5117
5118 2012-03-05  Tom Tromey  <tromey@redhat.com>
5119
5120         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
5121         _initialize_ia64_hpux_tdep.
5122
5123 2012-03-05  Pedro Alves  <palves@redhat.com>
5124
5125         PR gdb/13766
5126
5127         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
5128         the register state is clear, supply explicit zero, instead of
5129         marking the register unavailable.
5130
5131 2012-03-05  Tristan Gingold  <gingold@adacore.com>
5132
5133         * NEWS: Mention OpenVMS ia64 new target.
5134
5135 2012-03-05  Tristan Gingold  <gingold@adacore.com>
5136
5137         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
5138         (ia64_unw_accessors, ia64_unw_rse_accessors)
5139         (ia64_libunwind_descr): Declare.
5140         * ia64-vms-tdep.c: New file.
5141         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
5142         (ia64_libunwind_descr): Make them public.
5143         * configure.tgt: Add ia64-*-*vms*.
5144         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
5145         (ALLDEPFILES): Add ia64-vms-tdep.c
5146
5147 2012-03-05  Tristan Gingold  <gingold@adacore.com>
5148
5149         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
5150         * remote.c (PACKET_qXfer_uib): New enum value.
5151         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
5152         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
5153         (_initialize_remote): Call add_packet_config_cmd for
5154         xfer:uib packet.
5155
5156 2012-03-05  Tristan Gingold  <gingold@adacore.com>
5157
5158         * osabi.c (gdb_osabi_names): Add OpenVMS.
5159         (generic_elf_osabi_sniffer): Likewise.
5160         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
5161
5162 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5163
5164         Removed unused code.
5165         * libunwind-frame.c (libunwind_frame_unwind)
5166         (libunwind_frame_base_address): Remove.
5167         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
5168
5169 2012-03-04  Yao Qi  <yao@codesourcery.com>
5170
5171         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
5172         remove trailing new line.
5173         (agent_run_command, agent_run_command): Add _ markup.
5174         (agent_capability_check): Likewise.
5175
5176 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5177
5178         * breakpoint.c (set_condition_evaluation_mode): Set
5179         CONDITION_EVALUATION_MODE unconditionally.
5180
5181 2012-03-03  Yao Qi  <yao@codesourcery.com>
5182
5183         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
5184         * common/agent.h: Update declaration.
5185         * inf-child.c (inf_child_use_agent): New.
5186         (inf_child_can_use_agent): New.
5187         (inf_child_target): Initialize fields `to_use_agent'
5188         and `to_can_use_agent'.
5189         * agent.c (agent_new_objfile): New.
5190         (_initialize_agent): Add agent_new_objfile to new_objfile
5191         observer.
5192
5193         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5194         New.
5195         (linux_target_install_ops): Initialize field
5196         `to_static_tracepoint_markers_by_strid'.
5197         * remote.c (free_current_marker): Move it to ...
5198         * tracepoint.c (free_current_marker): ... here.  New.
5199         (cleanup_target_stop): New.
5200         * tracepoint.h: Declare free_current_marker.
5201         * NEWS: Add one entry about `info static-tracepoint-marker'.
5202
5203 2012-03-03  Yao Qi  <yao@codesourcery.com>
5204
5205         * common/agent.c (agent_loaded_p): New.
5206         (agent_look_up_symbols): New global.
5207         * common/agent.h: Declare agent_loaded_p.
5208
5209 2012-03-03  Yao Qi  <yao@codesourcery.com>
5210
5211         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
5212         (agent_capability_check, agent_capability_invalidate): New.
5213         (symbol_list): New array element.
5214         * common/agent.h (enum agent_capa): New.
5215         * target.c (target_pre_inferior): Call agent_capability_invalidate.
5216
5217 2012-03-03  Yao Qi  <yao@codesourcery.com>
5218
5219         * target.h (struct target_ops) <to_use_agent>: New field.
5220         (struct target_ops) <to_can_use_agent>: New field.
5221         (target_use_agent, target_can_use_agent): New macro.
5222         * target.c (update_current_target): Update.
5223         * remote.c: New enum `PACKET_QAgent'.
5224         (remote_protocol_features): Add a new element.
5225         (remote_use_agent, remote_can_use_agent): New.
5226         (init_remote_ops): Initialize field `can_use_agent' with
5227         remote_can_use_agent.  Intiailize field `use_agent' with
5228         remote_use_agent.
5229         * common/agent.c (use_agent): New global.
5230         * common/agent.h: Declare it.
5231         * tracepoint.c (info_static_tracepoint_markers_command): Add
5232         comment.
5233         * Makefile.in (SFILES): Add common/agent.c and agent.c.
5234         (COMMON_OBS): Add common/agent.o and agent.o
5235         (common-agent.o): New rule.
5236         * agent.c: New.
5237
5238 2012-03-03  Yao Qi  <yao@codesourcery.com>
5239
5240         * common/agent.c: New.
5241         * common/agent.h: New.
5242         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
5243         AC_CHECK_HEADERS.
5244         * configure, configh.in: Regenerated.
5245
5246 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
5247
5248         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
5249         unless it exists for this architecture.
5250
5251 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
5252
5253         * language.h (struct language_defn): New "method" la_read_var_value.
5254         * findvar.c: #include "language.h".
5255         (default_read_var_value): Renames read_var_value.  Rewrite
5256         function description.
5257         (read_var_value): New function.
5258         * value.h (default_read_var_value): Add prototype.
5259         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
5260         New functions.
5261         (ada_language_defn): Add entry for la_read_var_value.
5262         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
5263         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
5264         language_defn structures to add entry for new la_read_var_value
5265         field.
5266
5267 2012-03-02  Tom Tromey  <tromey@redhat.com>
5268             Pedro Alves  <palves@redhat.com>
5269
5270         PR breakpoints/13776:
5271         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
5272         breakpoints.
5273         (delete_longjmp_breakpoint_at_next_stop): New.
5274         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
5275         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
5276         before deleting the inferior.  Add comments.
5277         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
5278         breakpoints immediately, but only on next stop.  Move that code
5279         next to where we mark other breakpoints for deletion.
5280
5281 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
5282
5283         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
5284         marker.
5285         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
5286         violation.
5287
5288 2012-03-02  Pedro Alves  <palves@redhat.com>
5289
5290         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
5291
5292 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
5293
5294         Fix -Wmissing-prototypes build.
5295         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
5296         * remote-sim.c (gdbsim_has_all_memory): Likewise.
5297         (gdbsim_has_memory): Likewise.
5298
5299 2012-03-02  Yao Qi  <yao@codesourcery.com>
5300
5301         Fix -Wmissing-prototypes build.
5302         * charset.c (phony_iconv_open): Make static.
5303         (phony_iconv_close, phony_iconv): Likewise.
5304         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
5305         * i386-windows-nat.c (_initialize_i386_windows_nat): New
5306         prototype.
5307         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
5308         * ser-mingw.c (create_select_thread): Make static.
5309         * windows-termcap.c (tgetent): New prototype.
5310         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
5311
5312 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
5313
5314         Fix -Wmissing-prototypes build.
5315         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
5316         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
5317         (_initialize_loadable): New prototypes.
5318
5319 2012-03-02  Doug Evans  <dje@google.com>
5320
5321         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
5322         abbrev table, read_comp_unit will do it.
5323
5324 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5325
5326         Fix -Wmissing-prototypes build.
5327         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
5328         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
5329         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
5330         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
5331         (_initialize_arm_symbian_tdep): New prototype.
5332         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
5333         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
5334         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
5335         static.
5336         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
5337         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
5338         prototype.
5339         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
5340         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
5341         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
5342         static.
5343         * moxie-tdep.c (moxie_process_record): Likewise.
5344         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
5345         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
5346         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
5347         (_initialize_rl78_tdep): New prototype.
5348         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
5349         (_initialize_rx_tdep): New prototype.
5350         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
5351         (_initialize_darwin_solib): New prototype.
5352         * solib-spu.c: Include solib-spu.h.
5353         (_initialize_spu_solib): New prototype.
5354         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
5355         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
5356         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
5357         (tic6x_software_single_step): Make it static.
5358         (_initialize_tic6x_tdep): New prototype.
5359
5360 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5361
5362         Fix -Wmissing-prototypes build.
5363         * cris-tdep.c (cris_can_use_hardware_watchpoint)
5364         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
5365
5366 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5367
5368         Fix -Wmissing-prototypes build.
5369         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
5370         (frv_have_stopped_data_address): Remove.
5371
5372 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5373
5374         Fix -Wmissing-prototypes build.
5375         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
5376         * sh-tdep.c: Include sh64-tdep.h.
5377         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
5378         * sh64-tdep.c: Include sh64-tdep.h.
5379         * sh64-tdep.h: New file.
5380
5381 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
5382
5383         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
5384
5385 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
5386
5387         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
5388         sp_regnum once the gdbarch_init_osabi hook has been called.
5389
5390 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
5391
5392         * mips-tdep.c (mips32_bc1_pc): New function.
5393         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5394         BPOSGE32 and BPOSGE64 instructions.
5395         (deal_with_atomic_sequence): Likewise.
5396         (mips32_instruction_has_delay_slot): Likewise.
5397
5398 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
5399             Chris Dearman  <chris@mips.com>
5400             Maciej W. Rozycki  <macro@codesourcery.com>
5401             Joseph Myers  <joseph@codesourcery.com>
5402
5403         * features/mips-dsp.xml: New file.
5404         * features/mips64-dsp.xml: New file.
5405         * features/mips-dsp-linux.xml: New file.
5406         * features/mips64-dsp-linux.xml: New file.
5407         * features/Makefile (WHICH): Add mips-dsp-linux and
5408         mips64-dsp-linux.
5409         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
5410         * features/mips-dsp-linux.c: New file.
5411         * features/mips64-dsp-linux.c: New file.
5412         * regformats/mips-dsp-linux.dat: New file.
5413         * regformats/mips64-dsp-linux.dat: New file.
5414         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
5415         registers.
5416         (mips64_linux_register_addr): Likewise.
5417         (mips64_linux_regsets_fetch_registers): Likewise.
5418         (mips64_linux_regsets_store_registers): Likewise.
5419         (mips64_linux_fetch_registers): Update call to
5420         mips64_linux_regsets_fetch_registers.
5421         (mips64_linux_store_registers): Update call to
5422         mips64_linux_regsets_store_registers.
5423         (mips_linux_read_description): Probe for DSP registers.
5424         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
5425         and initialize_tdesc_mips64_dsp_linux.
5426         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
5427         Remove padding of no longer used embedded register slots.
5428         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
5429         (MIPS_RESTART_REGNUM): Redefine enum value.
5430         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
5431         strings.
5432         (mips_tx39_reg_names): Likewise.
5433         (mips_linux_reg_names): New array of register names for Linux
5434         targets.
5435         (mips_register_name): Check for a null pointer in
5436         mips_processor_reg_names and return an empty string.
5437         (mips_register_type): Exclude embedded registers for the IRIX
5438         and Linux ABIs.
5439         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
5440         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
5441         DSP registers.
5442         (mips_stab_reg_to_regnum): Handle DSP accumulators.
5443         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
5444         (mips_gdbarch_init): Likewise.  Initialize internal register
5445         indices for the Linux ABI.  Use dynamic numbers to refer to
5446         registers, as applicable, while parsing the target description.
5447         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5448
5449 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
5450
5451         * frame.h (read_frame_register_unsigned): Fix typo in function
5452         description.
5453
5454 2012-03-01  Pedro Alves  <palves@redhat.com>
5455
5456         * jit-reader.in [!__cplusplus]
5457         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5458
5459 2012-03-01  Pedro Alves  <palves@redhat.com>
5460
5461         * configure.ac (build_warnings): Add -Wmissing-prototypes.
5462         * configure: Regenerate.
5463
5464 2012-03-01  Pedro Alves  <palves@redhat.com>
5465
5466         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5467         * breakpoint.c (create_exception_master_breakpoint, trace_command)
5468         (ftrace_command, strace_command): Make static.
5469         * d-lang.c (_initialize_d_language): Declare.
5470         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5471         * dwarf2loc.c (_initialize_dwarf2loc):
5472         * dwarf2read.c (process_psymtab_comp_unit): Make static.
5473         * exec.c (exec_get_section_table): Make static.
5474         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5475         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5476         * inferior.c (remove_inferior_command, add_inferior_command)
5477         (clone_inferior_command): Make static.
5478         * linux-nat.c (linux_nat_thread_address_space)
5479         (linux_nat_core_of_thread): Make static.
5480         * linux-tdep.c (_initialize_linux_tdep): Declare.
5481         * objc-lang.c (_initialize_objc_lang): Declare.
5482         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5483         Make static.
5484         (_initialize_opencl_language): Declare.
5485         * record.c (_initialize_record): Declare.
5486         * remote.c (demand_private_info, remote_get_tib_address)
5487         (remote_supports_cond_tracepoints)
5488         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5489         Make static.
5490         * skip.c (_initialize_step_skip): Declare.
5491         * symtab.c (skip_prologue_using_lineinfo): Make static.
5492         * tracepoint.c (delete_trace_state_variable)
5493         (trace_variable_command, delete_trace_variable_command)
5494         (get_uploaded_tsv, find_matching_tracepoint_location)
5495         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5496         Make static.
5497         * value.c (pack_unsigned_long): Make static.
5498         * varobj.c (varobj_ensure_python_env): Make static.
5499         * windows-tdep.c (_initialize_windows_tdep): Declare.
5500         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5501
5502 2012-03-01  Pedro Alves  <palves@redhat.com>
5503
5504         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
5505         gdbarch parameter.
5506         (linux_init_abi): Install it as has_shared_address_space gdbarch
5507         callback.
5508
5509 2012-03-01  Pedro Alves  <palves@redhat.com>
5510
5511         * observer.c (observer_test_first_notification_function)
5512         (observer_test_second_notification_function)
5513         (observer_test_third_notification_function): Add declarations.
5514
5515 2012-03-01  Pedro Alves  <palves@redhat.com>
5516
5517         * common/signals.c (default_target_signal_to_host)
5518         (default_target_signal_from_host): Move ...
5519         * arch-utils.c: ... here.
5520         * arch-utils.h (default_target_signal_to_host)
5521         (default_target_signal_from_host): Declare.
5522
5523         * common/signals.c (target_signal_from_command): Move ...
5524         * infrun.c: ... here.
5525         * inferior.h (target_signal_from_command): Declare.
5526         * target.h (target_signal_from_command)
5527         (default_target_signal_from_host, default_target_signal_to_host):
5528         Delete declarations.
5529
5530         * common/signals.c (_initialize_signals): Delete.
5531
5532 2012-03-01  Pedro Alves  <palves@redhat.com>
5533
5534         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5535         both __cplusplus and !__cplusplus.
5536
5537 2012-03-01  Pedro Alves  <palves@redhat.com>
5538
5539         * psymtab.c (find_and_open_source): Delete declaration.
5540         * source.c (find_and_open_source): Move comment ...
5541         * source.h (find_and_open_source): ... to this new declaration.
5542
5543 2012-03-01  Pedro Alves  <palves@redhat.com>
5544
5545         * inline-frame.c: Include inline-frame.h.
5546
5547 2012-03-01  Pedro Alves  <palves@redhat.com>
5548
5549         * tui/tui-data.c (set_gen_win_origin): Delete.
5550         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5551         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5552
5553 2012-03-01  Pedro Alves  <palves@redhat.com>
5554
5555         * remote.c (encode_actions): Delete declaration.
5556         * tracepoint.c (encode_actions): Make extern.
5557         * tracepoint.h (encode_actions): Declare.
5558
5559 2012-03-01  Pedro Alves  <palves@redhat.com>
5560
5561         * python/py-breakpoint.c: Include python.h.
5562         * python/py-continueevent.c (create_continue_event_object): Make
5563         static.
5564         * python/py-lazy-string.c (stpy_get_type): Make static.
5565         * python/py-newobjfileevent.c (create_new_objfile_event_object):
5566         Make static.
5567         * python/py-utils.c (unicode_to_target_python_string): Make
5568         static.
5569         * python/py-value.c: Include python.h.
5570
5571 2012-03-01  Pedro Alves  <palves@redhat.com>
5572
5573         * inferior.c (delete_threads_of_inferior): Delete.
5574
5575 2012-03-01  Pedro Alves  <palves@redhat.com>
5576
5577         Import fallback definitions from glibc.
5578
5579         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5580         ps_prochandle): Forward declare.
5581         (ps_err_e): Use glibc's comments.
5582         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5583         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5584         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5585         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5586         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5587         (struct ps_prochandle): Adjust comment.
5588
5589 2012-03-01  Pedro Alves  <palves@redhat.com>
5590
5591         * ada-lang.c (ada_modulus_from_name): Delete.
5592         * ada-lex.l (lexer_init): Make static.
5593
5594 2012-03-01  Pedro Alves  <palves@redhat.com>
5595
5596         PR gdb/13767
5597
5598         * frame.c (read_frame_register_unsigned): New.
5599         * frame.h (read_frame_register_unsigned): Declare.
5600         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5601         Handle it.
5602         (print_i387_control_word): New parameter `control_p'.  Handle it.
5603         (i387_print_float_info): Handle unavailable float registers.
5604
5605 2012-03-01  Keith Seitz  <keiths@redhat.com>
5606
5607         * linespec.c (decode_line_2): Sort the list of methods
5608         alphabetically before presenting the user with a selection
5609         menu.
5610
5611 2012-03-01  Doug Evans  <dje@google.com>
5612
5613         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5614         has_namespace_info.
5615         (dwarf2_read_abbrevs): Remove corresponding initialization.
5616
5617 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
5618
5619         * NEWS: Mention new python command class gdb.COMMAND_USER.
5620         * cli/cli-cmds.c (show_user): Print error when used on a python
5621         command.
5622         (init_cli_cmds): Update documentation strings for "show user" and
5623         "set/show max-user-call-depth" to clarify that it does not apply to
5624         python commands.
5625         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5626         error check.
5627         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5628         gdb python api.
5629         * top.c (execute_command): Only execute a user-defined command as a
5630         legacy macro if c->user_commands is set.
5631
5632 2012-03-01  Tom Tromey  <tromey@redhat.com>
5633
5634         * valprint.h (struct generic_val_print_decorations): New.
5635         (generic_val_print): Declare.
5636         * valprint.c (generic_val_print): New function.
5637         * p-valprint.c (p_decorations): New global.
5638         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5639         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5640         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5641         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5642         * m2-valprint.c (m2_decorations): New global.
5643         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5644         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5645         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5646         TYPE_CODE_ERROR>: Call generic_val_print.
5647         * f-valprint.c (f_decorations): New global.
5648         (f_val_print): Use print_function_pointer_address.
5649         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5650         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5651         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5652         generic_val_print.
5653         * c-valprint.c (c_decorations): New global.
5654         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5655         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5656         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5657         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5658         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5659         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5660         case.
5661
5662 2012-03-01  Tom Tromey  <tromey@redhat.com>
5663
5664         * valprint.c (val_print): Update.
5665         * p-valprint (pascal_val_print): Return void.
5666         * p-lang.h (pascal_val_print): Return void.
5667         * m2-valprint.c (m2_val_print): Return void.
5668         * m2-lang.h (m2_val_print): Return void.
5669         * language.h (struct language_defn) <la_val_print>: Return void.
5670         * language.c (unk_lang_val_print): Return void.
5671         * jv-valprint.c (java_val_print): Return void.
5672         * jv-lang.h (java_val_print): Return void.
5673         * f-valprint.c (f_val_print): Return void.
5674         * f-lang.h (f_val_print): Return void.
5675         * d-valprint.c (d_val_print): Return void.
5676         (dynamic_array_type): Update.
5677         * d-lang.h (d_val_print): Return void.
5678         * c-valprint.c (c_val_print): Return void.
5679         * c-lang.h (c_val_print): Return void.
5680         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5681         void.
5682         * ada-lang.h (ada_val_print): Return void.
5683
5684 2012-03-01  Tom Tromey  <tromey@redhat.com>
5685
5686         * value.h (val_print): Return void.
5687         * valprint.c (val_print): Return void.
5688
5689 2012-03-01  Tom Tromey  <tromey@redhat.com>
5690
5691         * value.h (common_val_print): Return void.
5692         * valprint.c (common_val_print): Return void.
5693
5694 2012-03-01  Tom Tromey  <tromey@redhat.com>
5695
5696         * value.h (value_print): Return void.
5697         * valprint.c (value_print): Return void.
5698         * p-valprint.c (pascal_value_print): Return void.
5699         * p-lang.h (pascal_value_print): Return void.
5700         * language.h (struct language_defn) <la_value_print>: Return
5701         void.
5702         * language.c (unk_lang_value_print): Return void.
5703         * jv-valprint.c (java_value_print): Return void.
5704         * jv-lang.h (java_value_print): Return void.
5705         * f-valprint.c (c_value_print): Don't declare.
5706         Include c-lang.h.
5707         * c-valprint.c (c_value_print): Return void.
5708         * c-lang.h (c_value_print): Return void.
5709         * ada-valprint.c (ada_value_print): Return void.
5710         * ada-lang.h (ada_value_print): Return void.
5711
5712 2012-03-01  Tom Tromey  <tromey@redhat.com>
5713
5714         * value.c (value_primitive_field): Handle virtual base classes.
5715
5716 2012-03-01  Tom Tromey  <tromey@redhat.com>
5717
5718         * gdbtypes.h (struct vbase): Remove.
5719
5720 2012-03-01  Tom Tromey  <tromey@redhat.com>
5721
5722         * c-valprint.c (print_function_pointer_address): Move...
5723         * valprint.c: ... here.  Make non-static.
5724         * m2-valprint.c (print_function_pointer_address): Remove.
5725         * valprint.h (print_function_pointer_address): Declare.
5726
5727 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
5728
5729         * NEWS: Document the fact that one can provide a condition when
5730         creating an Ada exception catchpoint.
5731
5732 2012-03-01  Tom Tromey  <tromey@redhat.com>
5733
5734         * valprint.c (val_print_type_code_flags): Fix placement of
5735         trailing brace.
5736
5737 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
5738
5739         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5740         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5741         environment variable before calling update-copyright.
5742
5743 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
5744
5745         * gnulib/extra/update-copyright: Update to the latest from
5746         gnulib's git repository.
5747         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5748         variable to 2 instead of 1.
5749
5750 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5751
5752         * varobj.c (c_value_of_variable): Remove dead code.
5753
5754 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5755
5756         * ada-lex.p (processId): Do not modify already encoded IDs.
5757         Update function documentation.
5758
5759 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5760
5761         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5762         "name" with "struct symbol *name_sym".
5763         * ada-exp.y (write_var_or_type): Update call to
5764         ada_find_renaming_symbol.
5765         "name" with "struct symbol *name_sym". Adjust Implementation
5766         accordingly.  Adjust the function documentation.
5767
5768 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5769
5770         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5771         * ada-lang.c (ada_find_any_type): Add advance declaration.
5772         Make static.  Replace ada_find_any_symbol by
5773         ada_find_any_type_symbol.
5774         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5775         Improve function description.  Make static.
5776         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5777         Replace ada_find_any_symbol by ada_find_any_type_symbol.
5778
5779 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5780
5781         * ada-lang.c (struct tag_args): Delete.
5782         (ada_get_tsd_type): Function body moved up in source file.
5783         (ada_tag_name_1, ada_tag_name_2): Delete.
5784         (ada_get_tsd_from_tag): New function.
5785         (ada_tag_name_from_tsd): New function.
5786         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5787         to determine the tag name.
5788
5789 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5790
5791         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5792         declaration.
5793         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5794         function.
5795
5796 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5797
5798         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5799
5800 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5801
5802         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5803         full searches.
5804
5805 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5806
5807         * ada-lang.c (constrained_packed_array_type): If there is a
5808         parallel XA type, use it to determine the array index type.
5809
5810 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5811
5812         * ada-valprint.c (ada_val_print_1): If our value is a reference
5813         to an array descriptor, dereference it before converting it
5814         to a simple array.
5815
5816 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5817
5818         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5819         creating fixed value.
5820         (ada_value_ind, ada_coerce_ref, assign_component)
5821         (ada_evaluate_subexp): Remove call to unwrap_value before
5822         call to ada_to_fixed_value.
5823
5824 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5825
5826         * ada-lang.c (to_fixed_array_type): Set result's type name.
5827
5828 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5829
5830         * ada-lang.c (catch_ada_exception_command_split): Add new
5831         argument cond_string.  Add support for condition at end of
5832         "catch exception" commands.
5833         (ada_decode_exception_location): Add new argument cond_string.
5834         Update call to catch_ada_exception_command_split.
5835         (create_ada_exception_catchpoint): Add new argument cond_string.
5836         Set the breakpoint condition if needed.
5837         (catch_ada_exception_command): Update call to
5838         ada_decode_exception_location.
5839         (ada_decode_assert_location): Add function documentation.
5840         Add support for condition at end of "catch assert" command.
5841         (catch_assert_command): Update calls to ada_decode_assert_location
5842         and create_ada_exception_catchpoint.
5843
5844 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5845
5846         Fix disp-step-syscall.exp: fork: single step over fork.
5847         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5848         (i386_linux_get_syscall_number_from_regcache): ... here, new function
5849         comment, change parameters gdbarch and ptid to regcache.  Remove
5850         parameter regcache, initialize gdbarch from regcache here.
5851         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5852         New functions.
5853         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5854         instead.
5855         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5856         'syscall'.  Make the 'int' check more strict.
5857
5858 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5859
5860         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5861         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5862         (i386_linux_intx80_sysenter_syscall_record): ... here.
5863         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5864         Use the renamed function name.
5865
5866 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5867
5868         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5869         * breakpoint.c (until_break_command): Likewise.
5870         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5871         * infcall.c (call_function_by_hand): Likewise.
5872         * infcmd.c (finish_forward): Likewise.
5873         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5874
5875 2012-02-28  Tristan Gingold  <gingold@adacore.com>
5876
5877         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5878         avoid variable assignments inside condition.
5879
5880 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5881
5882         Fix static analysis issue found by cppcheck.
5883         * microblaze-tdep.c (microblaze_extract_return_value): Fix
5884         uninitialized BUF for size 2.
5885
5886 2012-02-27  Chris Dearman  <chris@mips.com>
5887             Nathan Froyd  <froydnj@codesourcery.com>
5888             Maciej W. Rozycki  <macro@codesourcery.com>
5889
5890         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5891         (mips16_instruction_has_delay_slot): Likewise.
5892         (mips_segment_boundary): Likewise.
5893         (mips_adjust_breakpoint_address): Likewise.
5894         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5895
5896 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
5897             Maciej W. Rozycki  <macro@codesourcery.com>
5898
5899         * infrun.c (handle_inferior_event): Don't proceed through
5900         shared library trampolines if stepping at the machine
5901         instruction level.
5902
5903 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
5904
5905         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5906         too.
5907
5908 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
5909
5910         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5911         (sh_stub_unwind_sniffer): New functions.
5912         (sh_stub_unwind): New variable.
5913         (sh_gdbarch_init): Wire everything.
5914
5915 2012-02-27  Pedro Alves  <palves@redhat.com>
5916
5917         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5918         (linux_nat_post_attach_wait): Adjust to use
5919         linux_proc_pid_is_stopped.
5920         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5921         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5922         based on pid_is_stopped from both linux-nat.c and
5923         gdbserver/linux-low.c, and renamed.
5924
5925 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
5926
5927         * remote.c (remote_watchpoint_addr_within_range): New function.
5928         (init_remote_ops): Use it.
5929
5930 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
5931
5932         * target.h (target_watchpoint_addr_within_range): Document macro.
5933
5934 2012-02-24  Pedro Alves  <palves@redhat.com>
5935
5936         * stack.c (set_last_displayed_sal): Issue internal_error instead
5937         of warning, and issue it after clearing the last displayed sal.
5938
5939 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
5940             Pedro Alves  <palves@redhat.com>
5941
5942         * breakpoint.c (until_break_command): Install breakpoints after
5943         all frame manipulations.
5944
5945 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
5946
5947         * remote.c (remote_supports_cond_breakpoints): New forward
5948         declaration.
5949         (remote_add_target_side_condition): New function.
5950         (remote_insert_breakpoint): Add target-side breakpoint
5951         conditional if supported.
5952         (remote_insert_hw_breakpoint): Likewise.
5953         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5954         hook.
5955
5956         * target.c (update_current_target): Inherit
5957         to_supports_evaluation_of_breakpoint_conditions.
5958         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5959
5960         * target.h (struct target_ops)
5961         <to_supports_evaluation_of_breakpoint_conditions>: New field.
5962         (target_supports_evaluation_of_breakpoint_conditions): New #define.
5963
5964         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5965         (condition_evaluation_both, condition_evaluation_auto,
5966         condition_evaluation_host, condition_evaluation_target,
5967         condition_evaluation_enums, condition_evaluation_mode_1,
5968         condition_evaluation_mode): New static globals.
5969         (translate_condition_evaluation_mode): New function.
5970         (breakpoint_condition_evaluation_mode): New function.
5971         (gdb_evaluates_breakpoint_condition_p): New function.
5972         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5973         (mark_breakpoint_modified): New function.
5974         (mark_breakpoint_location_modified): New function.
5975         (set_condition_evaluation_mode): New function.
5976         (show_condition_evaluation_mode): New function.
5977         (bp_location_compare_addrs): New function.
5978         (get_first_location_gte_addr): New helper function.
5979         (set_breakpoint_condition): Free condition bytecode if locations
5980         has become unconditional.  Call mark_breakpoint_modified (...).
5981         (condition_command): Call update_global_location_list (1) for
5982         breakpoints.
5983         (breakpoint_xfer_memory): Use is_breakpoint (...).
5984         (is_breakpoint): New function.
5985         (parse_cond_to_aexpr): New function.
5986         (build_target_condition_list): New function.
5987         (insert_bp_location): Handle target-side conditional
5988         breakpoints and call build_target_condition_list (...).
5989         (update_inserted_breakpoint_locations): New function.
5990         (insert_breakpoint_locations): Handle target-side conditional
5991         breakpoints.
5992         (bpstat_check_breakpoint_conditions): Add comment.
5993         (bp_condition_evaluator): New function.
5994         (bp_location_condition_evaluator): New function.
5995         (print_breakpoint_location): Print information on where the condition
5996         will be evaluated.
5997         (print_one_breakpoint_location): Likewise.
5998         (init_bp_location): Call mark_breakpoint_location_modified (...) for
5999         breakpoint location.
6000         (force_breakpoint_reinsertion): New functions.
6001         (update_global_location_list): Handle target-side breakpoint
6002         conditions.
6003         Reinsert locations that are already inserted if conditions have
6004         changed.
6005         (bp_location_dtor): Free agent expression bytecode.
6006         (disable_breakpoint): Call mark_breakpoint_modified (...).
6007         Call update_global_location_list (...) with parameter 1 for breakpoints.
6008         (disable_command): Call mark_breakpoint_location_modified (...).
6009         Call update_global_location_list (...) with parameter 1 for breakpoints.
6010         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
6011         (enable_command): mark_breakpoint_location_modified (...).
6012         (_initialize_breakpoint): Update documentation and add
6013         condition-evaluation breakpoint subcommand.
6014
6015         * breakpoint.h: Include ax.h.
6016         (condition_list): New data structure.
6017         (condition_status): New enum.
6018         (bp_target_info) <cond_list>: New field.
6019         (bp_location) <condition_changed, cond_bytecode>: New fields.
6020         (is_breakpoint): New prototype.
6021
6022 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
6023
6024         * remote.c (remote_state) <cond_breakpoints>: New field.
6025         (PACKET_ConditionalBreakpoints): New enum.
6026         (remote_cond_breakpoint_feature): New function.
6027         (remote_protocol_features): Add new ConditionalBreakpoints entry.
6028         (remote_supports_cond_breakpoints): New function.
6029         (_initialize_remote): Add new packet configuration for
6030         target-side conditional breakpoints.
6031
6032 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
6033
6034         * NEWS: Mention target-side conditional breakpoint support,
6035         new condition-evaluation breakpoint subcommand and remote
6036         packet extensions.
6037
6038 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
6039
6040         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
6041         number.
6042
6043 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
6044
6045         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
6046         (after_prologue): Remove.
6047
6048 2012-02-23  Tom Tromey  <tromey@redhat.com>
6049
6050         * jv-valprint.c (java_val_print): Remove dead code.
6051
6052 2012-02-23  Tristan Gingold  <gingold@adacore.com>
6053
6054         * ada-tasks.c (struct ada_tasks_inferior_data): Add
6055         known_tasks_element and known_tasks_length fields.
6056         (read_known_tasks_array): Change argument type.  Use pointer type
6057         and number of elements from DATA.  Adjust.
6058         (read_known_tasks_list): Likewise.
6059         (get_known_tasks_addr): Remove.
6060         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
6061         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
6062         type and array length.  Merge former get_known_tasks_addr code.
6063
6064 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
6065
6066         PR backtrace/13716
6067         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
6068         it after set_momentary_breakpoint.
6069
6070 2012-02-22  Sterling Augustine  <saugustine@google.com>
6071
6072         PR 13689:
6073         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
6074
6075 2012-02-22  Gary Benson  <gbenson@redhat.com>
6076
6077         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
6078         (find_slot_in_mapped_hash): Likewise.
6079
6080 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6081
6082         PR build/13638
6083         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
6084         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
6085         * configure: Regenerate.
6086
6087 2012-02-21  Tristan Gingold  <gingold@adacore.com>
6088             Pedro Alves  <palves@redhat.com>
6089
6090         * ia64-tdep.c: Do not include libunwind-ia64.h.
6091         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
6092         Include libunwind-ia64.h instead of libunwind.h.
6093         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
6094         for libunwind.h existence.
6095         * configure, config.in: Regenerate.
6096
6097 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
6098
6099         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
6100         instead of value_rtti_target_type.
6101         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
6102         instead of value_rtti_target_type.
6103         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
6104         value_rtti_target_type.
6105         * valops.c (value_ind): Extract function readjust_indirect_value_type.
6106         (value_rtti_target_type): Rename to ...
6107         (value_rtti_indirect_type): ... here and make it indirect.  Update
6108         function comment.
6109         * value.c (readjust_indirect_value_type): New function.
6110         (coerce_ref): Support for enclosing type setting for references
6111         with readjust_indirect_value_type.
6112         * value.h (readjust_value_type): New declaration.
6113         (value_rtti_target_type): Rename to ...
6114         (value_rtti_indirect_type): ... here.
6115
6116 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
6117
6118         * MAINTAINERS (Write After Approval): Add myself to the list.
6119
6120 2012-02-20  Doug Evans  <dje@google.com>
6121
6122         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
6123         Rename objfile_p_char parameter to objfilep.
6124         (build_objfile_section_table): Result is now void.  All callers
6125         updated.
6126         * objfiles.h (struct objfile): Tweak comments, whitespace.
6127         (build_objfile_section_table): Update.
6128
6129         * elfread.c (elf_symfile_segments): Fix warning text.
6130
6131 2012-02-20  Tom Tromey  <tromey@redhat.com>
6132
6133         PR gdb/13498:
6134         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
6135         particular set of file names once.
6136         (dw2_map_symbol_filenames): Likewise.
6137
6138 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6139
6140         Code cleanup.
6141         * main.c (write_files): Remove the declaration.
6142         (external_editor_command): Move the declaration ...
6143         [GDBTK] (external_editor_command): ... here.  Fix the comment.
6144
6145 2012-02-20  Tom Tromey  <tromey@redhat.com>
6146
6147         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
6148         extraneous block.
6149
6150 2012-02-20  Tristan Gingold  <gingold@adacore.com>
6151
6152         * darwin-nat.h (enum darwin_msg_state): Add comments.
6153
6154 2012-02-20  Tristan Gingold  <gingold@adacore.com>
6155
6156         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
6157         value.
6158
6159 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
6160
6161         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
6162         between function description and implementation.
6163
6164 2012-02-17  Tom Tromey  <tromey@redhat.com>
6165
6166         PR python/12070:
6167         * python/py-event.c (event_object_getset): New global.
6168         (event_object_type): Reference it.
6169         * python/py-type.c (field_object_getset): New global.
6170         (field_object_type): Reference it.
6171         * python/python-internal.h (gdb_py_generic_dict): Declare.
6172         * python/py-utils.c (gdb_py_generic_dict): New function.
6173
6174 2012-02-17  Tristan Gingold  <gingold@adacore.com>
6175
6176         * solib-darwin.c (darwin_current_sos): Check magic and filetype
6177
6178 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
6179
6180         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
6181         TYPE_CALLING_CONVENTION annotation.
6182
6183 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
6184
6185         * MAINTAINERS: Add rx to target ISA section.
6186         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
6187         (ALLDEPFILES): Add rx-tdep.c.
6188
6189 2012-02-16  Tom Tromey  <tromey@redhat.com>
6190
6191         * symfile.c (symbol_file_add_main_1): Use inferior's
6192         symfile_flags.
6193         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
6194         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
6195         inferior.
6196         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
6197         inferior.
6198         (follow_exec): Use inferior's symfile_flags.
6199         * inferior.h (struct inferior) <symfile_flags>: New field.
6200
6201 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
6202
6203         PR gdb/9734:
6204         * remote-sim.c (gdbsim_create_inferior): Call error() when
6205         sim_create_inferior() fails.
6206
6207 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
6208
6209         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
6210
6211 2012-02-16  Tom Tromey  <tromey@redhat.com>
6212
6213         PR c++/13653:
6214         * thread.c (struct current_thread_cleanup) <was_removable>: New
6215         field.
6216         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
6217         (make_cleanup_restore_current_thread): Initialize new field.
6218
6219 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
6220
6221         * MAINTAINERS: Add rl78 to target ISA section.
6222         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
6223         (ALLDEPFILES): Add rl78-tdep.c.
6224         * NEWS: Mention rl78 as a new target.
6225
6226 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
6227
6228         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
6229         data.
6230         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
6231
6232 2012-02-15  Tom Tromey  <tromey@redhat.com>
6233
6234         PR gdb/12659:
6235         * infcmd.c (registers_info): Print just the current register's
6236         name.
6237
6238 2012-02-15  Tom Tromey  <tromey@redhat.com>
6239
6240         * python/py-symbol.c (sympy_value): Use _().
6241
6242 2012-02-15  Pedro Alves  <palves@redhat.com>
6243
6244         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
6245         output to be like native targets'.
6246         (remote_pid_to_str): Special case the null ptid.
6247
6248 2012-02-14  Stan Shebs  <stan@codesourcery.com>
6249
6250         * NEWS: Mention enable count command.
6251         * breakpoint.h (struct breakpoint): New field enable_count.
6252         * breakpoint.c (enable_breakpoint_disp): Add count argument.
6253         (enable_breakpoint): Add arg to call.
6254         (struct disp_data): New struct.
6255         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
6256         (do_map_enable_once_breakpoint): Create a struct and pass it.
6257         (do_map_enable_delete_breakpoint): Ditto.
6258         (do_map_enable_count_breakpoint): New function.
6259         (enable_count_command): New function.
6260         (bpstat_stop_status): Decrement enable_count.
6261         (print_one_breakpoint_location): Report enable count.
6262         (_initialize_breakpoint): Add enable count command.
6263
6264 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
6265
6266         * rl78-tdep.c (reggroups.h): Include.
6267         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
6268         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
6269         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
6270         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
6271         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
6272         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
6273         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
6274         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
6275         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
6276         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
6277         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
6278         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
6279         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
6280         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
6281         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
6282         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
6283         beginning of register list.
6284         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
6285         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
6286         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
6287         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
6288         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
6289         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
6290         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
6291         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
6292         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
6293         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
6294         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
6295         the pseudo registers.  Rearrange other pseudo registers too so
6296         that the bank registers appear at the end.
6297         (rl78_register_type): Account for the fact that the byte sized
6298         bank registers are now pseudo-registers.
6299         (rl78_register_name): Rearrange the register name array.  Make
6300         initial set of raw banked registers inaccessible.
6301         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
6302         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
6303         case for copying bytes back and forth between raw and pseudo
6304         versions of the banked registers.  Update other cases to reflect
6305         the changed names.
6306         (rl78_return_value): Update to account for changed names of
6307         raw registers.
6308         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
6309         rl78_register_sim_regno().
6310
6311 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
6312
6313         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
6314         the name parameter being passed to find_pc_partial_function().
6315
6316 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6317
6318         * MAINTAINERS: Step down from being ia64 target maintainer.
6319
6320 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
6321
6322         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
6323         compilation warning.
6324
6325 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
6326
6327         Fix crash on loaded shlibs without loaded exec_bfd.
6328         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
6329         (set_section_command): Replace exec_bfd by p->bfd.
6330
6331 2012-02-10  Tom Tromey  <tromey@redhat.com>
6332
6333         * linespec.c (decode_line_internal): Skip symtabs_from_filename
6334         when we have a C++ qualified name.
6335
6336 2012-02-10  Pedro Alves  <palves@redhat.com>
6337
6338         * inferior.c (inferior_pid_to_str): New.
6339         (print_inferior, inferior_command): Use it.
6340
6341 2012-02-10  Pedro Alves  <palves@redhat.com>
6342
6343         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
6344         the test CFLAGS.
6345         * configure: Regenerate.
6346
6347 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6348
6349         * linespec.c (decode_line_internal): Fix comment correctness.
6350
6351 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
6352
6353         PR gdb/12953
6354         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
6355         * amd64bsd-nat.c: Add support for debug registers (adapted from
6356         i386bsd-nat.c).
6357         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
6358         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
6359         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
6360         (amd64bsd_dr_get_control): New functions.
6361         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
6362         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
6363         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
6364         watchpoints initialization.
6365         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
6366
6367 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
6368
6369         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
6370         flds_bnds.fields.
6371         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
6372
6373 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
6374
6375         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
6376
6377 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
6378
6379         * language.h (symbol_name_cmp_ftype): Renames
6380         symbol_name_match_p_ftype.
6381         (struct language_defn)[la_get_symbol_name_cmp]: Renames
6382         la_get_symbol_name_match_p.
6383         * ada-lang.c (ada_get_symbol_name_cmp): Renames
6384         ada_get_symbol_name_match_p.  Update comment.
6385         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
6386         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
6387         Renames symbol_name_match_p.  Update field type.
6388         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
6389         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6390         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
6391         "la_get_symbol_name_cmp" in comments.
6392         * language.c: Likewise.
6393
6394 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6395
6396         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
6397         %eflags offset.
6398         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
6399         (amd64_sol2_gregset32_reg_offs): Likewise.
6400
6401 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
6402
6403         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
6404         of the returned BFD is allocated by GDB.
6405
6406 2012-02-07  Tom Tromey  <tromey@redhat.com>
6407
6408         PR python/12027:
6409         * python/python-internal.h (frame_object_type): Declare.
6410         * python/py-symbol.c (sympy_needs_frame): New function.
6411         (sympy_value): New function.
6412         (symbol_object_getset): Add "needs_frame".
6413         (symbol_object_methods): Add "value".
6414         * python/py-frame.c (frame_object_type): No longer static.
6415
6416 2012-02-07  Tom Tromey  <tromey@redhat.com>
6417
6418         PR python/13599:
6419         * python/py-symbol.c (sympy_line): New function.
6420         (symbol_object_getset): Add "line".
6421
6422 2012-02-07  Tom Tromey  <tromey@redhat.com>
6423
6424         * charset.c (find_charset_names): Check 'in' against NULL.
6425
6426 2012-02-06  Doug Evans  <dje@google.com>
6427
6428         * gdbtypes.h (struct main_type): Change type of name,tag_name,
6429         and fields.name members from char * to const char *.  All uses updated.
6430         (struct cplus_struct_type): Change type of fn_fieldlists.name member
6431         from char * to const char *.  All uses updated.
6432         (type_name_no_tag): Update.
6433         (lookup_unsigned_typename, lookup_signed_typename): Update.
6434         * gdbtypes.c (type_name_no_tag): Change result type
6435         from char * to const char *.  All callers updated.
6436         (lookup_unsigned_typename, lookup_signed_typename): Change type of
6437         name parameter from char * to const char *.
6438         * symtab.h (struct cplus_specific): Change type of demangled_name
6439         member from char * to const char *.  All uses updated.
6440         (struct general_symbol_info): Change type of name and
6441         mangled_lang.demangled_name members from char * to const char *.
6442         All uses updated.
6443         (symbol_get_demangled_name, symbol_natural_name): Update.
6444         (symbol_demangled_name, symbol_search_name): Update.
6445         * symtab.c (symbol_get_demangled_name): Change result type
6446         from char * to const char *.  All callers updated.
6447         (symbol_natural_name, symbol_demangled_name): Ditto.
6448         (symbol_search_name): Ditto.
6449         (completion_list_add_name): Change type of symname,sym_text,
6450         text,word parameters from char * to const char *.
6451         (completion_list_objc_symbol): Change type of sym_text,
6452         text,word parameters from char * to const char *.
6453         * ada-lang.c (find_struct_field): Change type of name parameter
6454         from char * to const char *.
6455         (encoded_ordered_before): Similarly for N0,N1 parameters.
6456         (old_renaming_is_invisible): Similarly for function_name parameter.
6457         (ada_type_name): Change result type from char * to const char *.
6458         All callers updated.
6459         * ada-lang.h (ada_type_name): Update.
6460         * buildsym.c (hashname): Change type of name parameter
6461         from char * to const char *.
6462         * buildsym.h (hashname): Update.
6463         * dbxread.c (end_psymtab): Change type of include_list parameter
6464         from char ** to const char **.
6465         * dwarf2read.c (determine_prefix): Change result type
6466         from char * to const char *.  All callers updated.
6467         * f-lang.c (find_common_for_function): Change type of name, funcname
6468         parameters from char * to const char *.
6469         * f-lang.c (find_common_for_function): Update.
6470         * f-valprint.c (list_all_visible_commons): Change type of funcname
6471         parameters from char * to const char *.
6472         * gdbarch.sh (static_transform_name): Change type of name parameter
6473         and result from char * to const char *.
6474         * gdbarch.c: Regenerate.
6475         * gdbarch.h: Regenerate.
6476         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6477         of name parameter from char * to const char *.
6478         * jv-lang.c (java_primitive_type_from_name): Ditto.
6479         (java_demangled_signature_length): Similarly for signature parameter.
6480         (java_demangled_signature_copy): Ditto.
6481         (java_demangle_type_signature): Ditto.
6482         * jv-lang.h (java_primitive_type_from_name): Update.
6483         (java_demangle_type_signature): Update.
6484         * objc-lang.c (specialcmp): Change type of a,b parameters
6485         from char * to const char *.
6486         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6487         from char * to const char *.  All callers updated.
6488         * p-lang.h (is_pascal_string_type): Update.
6489         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6490         of name parameter from char * to const char *.
6491         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6492         * utils.c (fprintf_symbol_filtered): Ditto.
6493         * defs.h (fprintf_symbol_filtered): Update.
6494         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6495         * stabsread.h (end_psymtab): Update.
6496         * stack.c (find_frame_funname): Change type of funname parameter
6497         from char ** to const char **.
6498         * stack.h (find_frame_funname): Update.
6499         * typeprint.c (type_print): Change type of varstring parameter
6500         from char * to const char *.
6501         * value.h (type_print): Update.
6502         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6503         from char * to const char *.  All callers updated.
6504         (xcoff_end_psymtab): Change type of include_list parameter
6505         from char ** to const char **.  All callers updated.
6506         (swap_sym): Similarly for name parameter.  All callers updated.
6507         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6508         Use xstrdup.
6509         (process_coff_symbol): Use xstrdup.
6510         * stabsread.c (stabs_method_name_from_physname): Renamed from
6511         update_method_name_from_physname.  Change result type from void
6512         to char *.  All callers updated.
6513         (read_member_functions): In has_destructor case, store name in objfile
6514         obstack instead of malloc space.  In !has_stub case, fix mem leak.
6515
6516 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
6517
6518         * configure: Rebuild.
6519         * configure.ac: Put -L../bfd and -L../libiberty at the front of
6520         LDFLAGS.
6521
6522 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
6523
6524         * configure.tgt (rl78-*-elf): New target.
6525         * rl78-tdep.c: New file.
6526
6527 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6528
6529         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6530         and continue the loop.  Add QUIT statement.
6531
6532 2012-02-03  Tom Tromey  <tromey@redhat.com>
6533
6534         PR gdb/13596:
6535         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6536         bfd_lookup_symbol_from_symtab.
6537         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6538         gdb_bfd_lookup_symbol_from_symtab.
6539
6540 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
6541
6542         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6543         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6544         symbol.  Add assertion that sym2 is never NULL.
6545
6546 2012-02-02  Doug Evans  <dje@google.com>
6547
6548         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6549         "name" parameter to const char ** from char **.  All callers updated.
6550         (find_pc_partial_function): Ditto.
6551         (cache_pc_function_name): Change type to const char * from char *.
6552         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6553         (find_pc_partial_function): Update.
6554         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6555         type of "name" parameter to const char * from char *.
6556         All uses updated.
6557         * arch-utils.c (generic_in_solib_return_trampoline): Change
6558         type of "name" parameter to const char * from char *.
6559         * arch-utils.h (generic_in_solib_return_trampoline): Update.
6560         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6561         type of "name" parameter to const char * from char *.
6562         * gdbarch.sh (in_solib_return_trampoline): Ditto.
6563         * gdbarch.c: Regenerate.
6564         * gdbarch.h: Regenerate.
6565         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6566         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6567         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6568         type of "name" parameter to const char * from char *.
6569         * skip.c (skip_function_pc): Ditto.
6570         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6571         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6572         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6573         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6574         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6575         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6576         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6577         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6578         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6579
6580 2012-02-02  Pedro Alves  <palves@redhat.com>
6581
6582         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6583         the current inferior has no execution.  Make sure the current
6584         remote process matches gdb's current inferior.
6585
6586 2012-02-02  Tom Tromey  <tromey@redhat.com>
6587
6588         PR gdb/13405:
6589         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6590         read-only memory.
6591
6592 2012-02-02  Tom Tromey  <tromey@redhat.com>
6593
6594         PR gdb/9307:
6595         * symtab.c (lookup_language_this): Set block_found.
6596
6597 2012-02-01  Tom Tromey  <tromey@redhat.com>
6598
6599         PR gdb/13431:
6600         * jit.c (struct jit_inferior_data): Rewrite.
6601         (struct jit_objfile_data): New.
6602         (get_jit_objfile_data): New function.
6603         (add_objfile_entry): Update.
6604         (jit_read_descriptor): Return int.  Replace descriptor_addr
6605         argument with inf_data.  Update.  Don't call error.
6606         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
6607         descriptor here.
6608         (jit_inferior_init): Don't look up descriptor.  Don't call error.
6609         (jit_reset_inferior_data_and_breakpoints)
6610         (jit_inferior_created_observer): Remove.
6611         (jit_inferior_exit_hook): Update.
6612         (jit_executable_changed_observer): Remove.
6613         (jit_event_handler): Update.
6614         (free_objfile_data): Reset inferior data if needed.
6615         (_initialize_jit): Update.
6616
6617 2012-02-01  Tom Tromey  <tromey@redhat.com>
6618
6619         * jit.c (bfd_open_from_target_memory): Move higher in file.
6620
6621 2012-02-01  Tristan Gingold  <gingold@adacore.com>
6622
6623         * libunwind-frame.c (libunwind_load): Display message if dlopen
6624         failed.
6625
6626 2012-02-01  Gary Benson  <gbenson@redhat.com>
6627
6628         * symtab.h (symbol_found_callback_ftype): New typedef.
6629         (iterate_over_symbols): Use the above.
6630         * symtab.c (iterate_over_symbols): Likewise.
6631         * language.h (language_defn->la_iterate_over_symbols): Likewise.
6632         * ada-lang.c (ada_iterate_over_symbols): Likewise.
6633         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6634         (iterate_name_matcher): Document return values.
6635         (collect_one_symbol): Likewise.
6636         (collect_function_symbols): Likewise.
6637         (collect_symbols): Likewise.
6638
6639 2012-02-01  Tom Tromey  <tromey@redhat.com>
6640
6641         * ada-lang.c (resolve_subexp): Update.
6642         (ada_lookup_symbol_list): Add 'full_search' argument.
6643         (ada_iterate_over_symbols): Pass 0 as full_search argument to
6644         ada_lookup_symbol_list.
6645         (ada_lookup_encoded_symbol): Update.
6646         (get_var_value): Update.
6647         * ada-exp.y (block_lookup): Update.
6648         (write_var_or_type): Update.
6649         (write_name_assoc): Update.
6650         * ada-lang.h (ada_lookup_symbol_list): Update.
6651
6652 2012-01-31  Tom Tromey  <tromey@redhat.com>
6653
6654         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6655         comment.
6656
6657 2012-01-31  Doug Evans  <dje@google.com>
6658
6659         * symtab.h: Remove outdated comment.
6660         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6661
6662 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
6663
6664         Fix build error in Darwin port.
6665         * i386-darwin-nat.c: Include i386-nat.h.
6666
6667 2012-01-30  Tom Tromey  <tromey@redhat.com>
6668
6669         PR breakpoints/13568:
6670         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6671         argument.  Check for recursive includes.
6672         (dwarf_decode_macros): Create an include hash.
6673
6674 2012-01-30  Michael Eager  <eager@eagercon.com>
6675
6676         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6677         * ppc-linux-tdep.c: Include glibc-tdep.h.
6678         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6679         (powerpc_linux_in_plt_stub): New function.
6680         (powerpc_linux_in_dynsym_resolve_code): New function.
6681         (ppc_skip_trampoline_code): New function.
6682         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6683         Use glibc_skip_solib_resolver.
6684
6685 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6686
6687         Code cleanup: Make 1440 bytes of data segment read-only.
6688         * arch-utils.c (endian_enum): Make it const char *const [].
6689         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6690         Likewise.
6691         * breakpoint.c (always_inserted_enums): Likewise.
6692         * cli/cli-cmds.c (script_ext_enums): Likewise.
6693         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6694         enumlist parameter const char *const *.
6695         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6696         const char *const *.
6697         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6698         parameter const char *const *.
6699         * cris-tdep.c (cris_modes): Make it const char *const [].
6700         * filesystem.c (target_file_system_kinds): Likewise.
6701         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6702         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6703         (can_use_displaced_stepping_enum, scheduler_enums)
6704         (exec_direction_names): Likewise.
6705         * language.c (_initialize_language): Make the type_or_range_names and
6706         case_sensitive_names variables const char *const [].
6707         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6708         * python/python.c (python_excp_enums): Likewise.
6709         * remote.c (interrupt_sequence_modes): Likewise.
6710         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6711         * serial.c (logbase_enums): Likewise.
6712         * sh-tdep.c (sh_cc_enum): Likewise.
6713         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6714         Likewise.
6715         * symtab.c (multiple_symbols_modes): Likewise.
6716         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6717         Likewise.
6718         * utils.c (internal_problem_modes): Likewise.
6719
6720 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6721
6722         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6723         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6724         result.
6725
6726 2012-01-27  Doug Evans  <dje@google.com>
6727
6728         * configure.ac (with_python): Fix absolute path handling for win32.
6729         * configure: Regenerate.
6730
6731 2012-01-26  Doug Evans  <dje@google.com>
6732
6733         * symtab.c: Whitespace cleanup, no code changes.
6734
6735         * symtab.c (lookup_symbol_in_language): Improve comment.
6736         (lookup_symbol_aux): Fix comment.
6737
6738         * psymtab.c (add_psymbol_to_list): Result is now "void".
6739         * psympriv.h (add_psymbol_to_list): Update.
6740
6741         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6742
6743 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6744
6745         Do not open script filenames twice.
6746         * cli/cli-cmds.c (source_script_from_stream): Pass to
6747         source_python_script also STREAM.
6748         * python/py-auto-load.c (source_section_scripts): Pass to
6749         source_python_script_for_objfile also STREAM.
6750         (auto_load_objfile_script): Pass to source_python_script_for_objfile
6751         also INPUT.
6752         * python/python-internal.h (source_python_script_for_objfile): New
6753         parameter file, rename parameter file to filename.
6754         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6755         instead if !_WIN32.  Update the function comment.
6756         (source_python_script, source_python_script_for_objfile)
6757         (source_python_script): New parameter file, rename parameter file to
6758         filename.  Pass FILENAME to python_run_simple_file.
6759         * python/python.h (source_python_script): New parameter file, rename
6760         parameter file to filename.
6761
6762 2012-01-26  Pedro Alves  <palves@redhat.com>
6763
6764         * corelow.c (core_has_fake_pid): Delete.
6765         (core_close): Delete references to `core_has_fake_pid'.
6766         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6767         (core_open): Delete references to `core_has_fake_pid'.
6768         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6769         the removed global.
6770
6771 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
6772
6773         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6774         Remove language parameter from name_matcher.  Adjust the comment.
6775         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6776         Remove language parameter.
6777         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6778         * linespec.c (iterate_name_matcher): Likewise.
6779         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6780         name_matcher.  Adjust call accordingly.
6781         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6782         (maintenance_check_symtabs): Adjust type of parameter "fun".
6783         * psymtab.h (maintenance_check_symtabs): Likewise.
6784
6785 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
6786
6787         * language.h (symbol_name_match_p_ftype): New typedef.
6788         (struct language_defn): Replace field la_symbol_name_compare
6789         by la_get_symbol_name_match_p.
6790         * ada-lang.c (ada_get_symbol_name_match_p): New function.
6791         (ada_language_defn): Use it.
6792         * linespec.c (struct symbol_matcher_data): New type.
6793         (iterate_name_matcher): Rewrite.
6794         (iterate_over_all_matching_symtabs): Pass a pointer to
6795         a symbol_matcher_data struct to expand_symtabs_matching
6796         instead of just the lookup name.
6797         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6798         opencl-lang.c, p-lang.c, language.c: Delete field
6799         la_symbol_name_compare, and replace by NULL for new field
6800         la_get_symbol_name_match_p.
6801         * symfile.h (struct quick_symbol_functions): Update comment.
6802
6803 2012-01-25  Tom Tromey  <tromey@redhat.com>
6804
6805         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6806         dereferencing.
6807
6808 2012-01-24  Tom Tromey  <tromey@redhat.com>
6809
6810         PR symtab/12406:
6811         * solib.c (update_solib_list): Update the program space's
6812         added_solibs and deleted_solibs fields.
6813         * progspace.h (struct program_space) <added_solibs,
6814         deleted_solibs>: New fields.
6815         (clear_program_space_solib_cache): Declare.
6816         * progspace.c (release_program_space): Call
6817         clear_program_space_solib_cache.
6818         (clear_program_space_solib_cache): New function.
6819         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6820         bpstat_stop_status.  Use handle_solib_event.
6821         * breakpoint.c: Include gdb_regex.h.
6822         (print_solib_event): New function.
6823         (bpstat_print): Use print_solib_event.
6824         (bpstat_stop_status): Add special case for bp_shlib_event.
6825         (handle_solib_event): New function.
6826         (bpstat_what): Use handle_solib_event.
6827         (struct solib_catchpoint): New.
6828         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6829         (breakpoint_hit_catch_solib, check_status_catch_solib)
6830         (print_it_catch_solib, print_one_catch_solib)
6831         (print_mention_catch_solib, print_recreate_catch_solib): New
6832         functions.
6833         (catch_solib_breakpoint_ops): New global.
6834         (catch_load_or_unload, catch_load_command_1)
6835         (catch_unload_command_1): New functions.
6836         (internal_bkpt_check_status): Add special case for
6837         bp_shlib_event.
6838         (internal_bkpt_print_it): Use print_solib_event.
6839         (initialize_breakpoint_ops): Initialize
6840         catch_solib_breakpoint_ops.
6841         (_initialize_breakpoint): Register "catch load" and "catch
6842         unload".
6843         * breakpoint.h (handle_solib_event): Declare.
6844         * NEWS: Add entry for "catch load" and "catch unload".
6845
6846 2012-01-24  Tom Tromey  <tromey@redhat.com>
6847
6848         * ada-lang.c: Include gdb_vecs.h.
6849         * charset.c: Include gdb_vecs.h.
6850         * tracepoint.h: Include gdb_vecs.h.
6851         * gdb_vecs.h: New file.
6852
6853 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
6854
6855         * breakpoint.c (breakpoint_hit_catch_fork)
6856         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6857         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6858         * infrun.c (inferior_has_forked, inferior_has_vforked)
6859         (inferior_has_execd, inferior_has_called_syscall): Delete.
6860         (handle_syscall_event): Get syscall_number from the execution
6861         control state's wait status.
6862         (wait_for_inferior): Don't clear syscall_number.
6863
6864 2012-01-24  Pedro Alves  <palves@redhat.com>
6865
6866         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6867         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6868         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6869         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6870         `ws' parameter.
6871         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
6872         false for events other than TARGET_SIGNAL_TRAP.
6873         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6874         Add `ws' parameter.
6875         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
6876         events other than TARGET_SIGNAL_TRAP.
6877         (tracepoint_breakpoint_hit): Add `ws' parameter.
6878         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6879         parameter.
6880         (bpstat_stop_status): Same.
6881         (pc_at_non_inline_function): Same.
6882         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6883         to pass the current event's waitstatus to bpstat_stop_status
6884         and pc_at_non_inline_function.
6885
6886 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
6887
6888         Code cleanup.
6889         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6890         Update the function comment for it.
6891         (source_script_with_search): Call make_cleanup_fclose for STREAM.
6892         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6893         for STREAM.
6894
6895 2012-01-24  Pedro Alves  <palves@redhat.com>
6896
6897         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6898         outside `bs->stop' block.
6899         (bpstat_what): Rework bp_shlib_event handling.
6900         (internal_bkpt_check_status): If the breakpoint is a
6901         bp_shlib_event, then set bs->stop and bs->print if
6902         stop_on_solib_events is set.
6903
6904 2012-01-24  Gary Benson  <gbenson@redhat.com>
6905
6906         Delete #if 0'd out code.
6907         * stack.c (print_frame_label_vars): Remove.
6908         (catch_info): Likewise.
6909         (_initialize_stack): Remove "info catch" command.
6910         * NEWS: Mention the above.
6911
6912 2012-01-24  Pedro Alves  <palves@redhat.com>
6913
6914         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
6915         it.
6916         (remote_notice_new_inferior): If the remote end doesn't support
6917         the multiprocess extensions, then the PID is fake.
6918         (add_current_inferior_and_thread): New.
6919         (remote_start_remote): Use it.
6920         (extended_remote_attach_1): Adjust.
6921         (extended_remote_create_inferior_1): Use
6922         add_current_inferior_and_thread.
6923
6924 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
6925
6926         Fix watchpoints to be specific for each inferior.
6927         * breakpoint.c (watchpoint_in_thread_scope): Verify also
6928         current_program_space.
6929         * i386-nat.c (i386_inferior_data_cleanup): New.
6930         (i386_inferior_data_get): Replace variable inf_data_local by an
6931         inferior_data call.
6932         (i386_use_watchpoints): Initialize i386_inferior_data.
6933         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6934         specific iterate_over_lwps.
6935
6936 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
6937
6938         Fix watchpoints across inferior fork.
6939         * amd64-linux-nat.c (update_debug_registers_callback): Update the
6940         comment for linux_nat_iterate_watchpoint_lwps.
6941         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6942         linux_nat_iterate_watchpoint_lwps.
6943         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6944         * i386-linux-nat.c (update_debug_registers_callback): Update the
6945         comment for linux_nat_iterate_watchpoint_lwps.
6946         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6947         linux_nat_iterate_watchpoint_lwps.
6948         (i386_linux_prepare_to_resume): New comment on Linux kernel.
6949         * i386-nat.c: Include inferior.h.
6950         (dr_mirror): Remove.
6951         (i386_inferior_data, struct i386_inferior_data)
6952         (i386_inferior_data_get): New.
6953         (i386_debug_reg_state): Use i386_inferior_data_get.
6954         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6955         (i386_insert_watchpoint, i386_remove_watchpoint)
6956         (i386_stopped_data_address, i386_insert_hw_breakpoint)
6957         (i386_remove_hw_breakpoint): New variable state, use
6958         i386_debug_reg_state instead of DR_MIRROR.
6959         * linux-nat.c (delete_lwp): New declaration.
6960         (num_lwps): Move here from downwards.
6961         (delete_lwp_cleanup): New.
6962         (linux_child_follow_fork): Create new child_lp, call
6963         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6964         PTRACE_DETACH.
6965         (num_lwps): Move upwards.
6966         (linux_nat_iterate_watchpoint_lwps): New.
6967         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6968         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6969
6970 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
6971
6972         GDB 7.4 released.
6973
6974 2012-01-23  Pedro Alves  <palves@redhat.com>
6975
6976         * top.c (caution): Rename to ...
6977         (confirm): ... this.
6978         (show_caution): Rename to ...
6979         (show_confirm): ... this.
6980         (quit_cover): Adjust.
6981         (init_main): Adjust.
6982         * top.h (caution): Rename to ...
6983         (confirm): ... this.
6984         * utils.c (internal_vproblem, defaulted_query): Adjust.
6985
6986 2012-01-23  Pedro Alves  <palves@redhat.com>
6987
6988         * top.c (caution): Update comment.
6989         (execute_command): Don't consider the current value of `caution'.
6990
6991 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
6992
6993         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6994
6995 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
6996
6997         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6998         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6999         * target.c (target_fileio_pwrite): Remove buffer address from
7000         debug output.
7001         (target_fileio_pread): Likewise.
7002
7003 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
7004
7005         * NEWS: Document remote "info proc" and "generate-core-file".
7006
7007 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
7008
7009         * gdbarch.sh (find_memory_regions): New callback.
7010         * gdbarch.c, gdbarch.h: Regenerate.
7011
7012         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
7013         callback before falling back to target method.
7014
7015         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
7016         (linux_target_install_ops): No longer install it.
7017
7018         * linux-tdep.c (linux_find_memory_regions): New function.
7019         (linux_init_abi): Install it.
7020
7021 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
7022
7023         * gdbarch.sh (make_corefile_notes): New architecture callback.
7024         * gdbarch.c: Regenerate.
7025         * gdbarch.h: Likewise.
7026
7027         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
7028         before target_make_corefile_notes.  If NULL is returned, the
7029         target does not support core file generation.
7030
7031         * linux-nat.c: Include "linux-tdep.h".
7032         (find_signalled_thread, find_stop_signal): Remove.
7033         (linux_nat_do_thread_registers): Likewise.
7034         (struct linux_nat_corefile_thread_data): Likewise.
7035         (linux_nat_corefile_thread_callback): Likewise.
7036         (iterate_over_spus): Likewise.
7037         (struct linux_spu_corefile_data): Likewise.
7038         (linux_spu_corefile_callback): Likewise.
7039         (linux_spu_make_corefile_notes): Likewise.
7040         (linux_nat_collect_thread_registers): New function.
7041         (linux_nat_make_corefile_notes): Replace contents by call to
7042         linux_make_corefile_notes passing linux_nat_collect_thread_registers
7043         as native-only callback.
7044
7045         * linux-tdep.h: Include "bfd.h".
7046         (struct regcache): Add forward declaration.
7047         (linux_collect_thread_registers_ftype): New typedef.
7048         (linux_make_corefile_notes): Add prototype.
7049         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
7050         "regset.h", and "elf-bfd.h".
7051         (find_signalled_thread, find_stop_signal): New functions.
7052         (linux_spu_make_corefile_notes): Likewise.
7053         (linux_collect_thread_registers): Likewise.
7054         (struct linux_corefile_thread_data): New data structure.
7055         (linux_corefile_thread_callback): New funcion.
7056         (linux_make_corefile_notes): Likewise.
7057         (linux_make_corefile_notes_1): Likewise.
7058         (linux_init_abi): Install it.
7059
7060 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
7061
7062         * gdbarch.sh (info_proc): New callback.
7063         * gdbarch.c, gdbarch.h: Regenerate.
7064
7065         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
7066         before falling back to the target info_proc callback.
7067
7068         * linux-nat.c: Do not include "cli/cli-utils.h".
7069         (linux_nat_info_proc): Remove.
7070         (linux_target_install_ops): No longer install it.
7071
7072         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
7073         (read_mapping): New function.
7074         (linux_info_proc): Likewise.
7075         (linux_init_abi): Install it.
7076
7077 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
7078
7079         * defs.h (enum info_proc_what): Moved here from linux-nat.c
7080         * infcmd.c: (info_proc_cmd_1): New function.
7081         (info_proc_cmd): New function, moved here from equivalent routine
7082         orignally in linux-nat.c.
7083         (info_proc_cmd_mappings): Likewise.
7084         (info_proc_cmd_stat): Likewise.
7085         (info_proc_cmd_status): Likewise.
7086         (info_proc_cmd_cwd): Likewise.
7087         (info_proc_cmd_cmdline): Likewise.
7088         (info_proc_cmd_exe): Likewise.
7089         (info_proc_cmd_all): Likewise.
7090         (_initialize_infcmd): Install "info proc" command and subcommands.
7091
7092         * target.h (struct target_ops): Add to_info_proc.
7093         (target_info_proc): Add prototype.
7094         * target.c (target_info_proc): New function.
7095
7096         * procfs.c (procfs_info_proc): Add prototype.
7097         (info_proc_cmd): Rename into ...
7098         (procfs_info_proc): ... this.  Update argument types as appropriate
7099         for a to_info_proc implementation.  Handle "what" argument.
7100         (procfs_target): Install procfs_info_proc.
7101         (_initialize_procfs): No longer install "info proc" command.
7102
7103         * linux-nat.c: (enum info_proc_what): Remove.
7104         (linux_nat_info_proc_cmd_1): Rename into ...
7105         (linux_nat_info_proc): ... this.  Update argument types as appropriate
7106         for a to_info_proc implementation.
7107         (linux_nat_info_proc_cmd): Remove.
7108         (linux_nat_info_proc_cmd_mappings): Likewise.
7109         (linux_nat_info_proc_cmd_stat): Likewise.
7110         (linux_nat_info_proc_cmd_status): Likewise.
7111         (linux_nat_info_proc_cmd_cwd): Likewise.
7112         (linux_nat_info_proc_cmd_cmdline): Likewise.
7113         (linux_nat_info_proc_cmd_exe): Likewise.
7114         (linux_nat_info_proc_cmd_all): Likewise.
7115         (linux_target_install_ops): Install linux_nat_info_proc.
7116         (_initialize_linux_nat): No longer install "info proc" command
7117         and subcommands.
7118
7119 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
7120
7121         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
7122         * config.in, configure: Regenerate.
7123
7124         * target.h (struct target_ops): Add to_fileio_readlink.
7125         (target_fileio_readlink): Add prototype.
7126         * target.c (target_fileio_readlink): New function.
7127
7128         * inf-child.c: Conditionally include <sys/param.h>.
7129         (inf_child_fileio_readlink): New function.
7130         (inf_child_target): Install it.
7131
7132         * remote.c (PACKET_vFile_readlink): New enum value.
7133         (remote_hostio_readlink): New function.
7134         (init_remote_ops): Install it.
7135         (_initialize_remote): Handle vFile:readlink packet type.
7136
7137 2012-01-20  Pedro Alves  <palves@redhat.com>
7138             Ulrich Weigand  <ulrich.weigand@linaro.org>
7139
7140         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
7141         * config.in, configure: Regenerate.
7142
7143         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
7144         to_fileio_pread, to_fileio_close, to_fileio_unlink.
7145         (target_fileio_open): Add prototype.
7146         (target_fileio_pwrite): Likewise.
7147         (target_fileio_pread): Likewise.
7148         (target_fileio_close): Likewise.
7149         (target_fileio_unlink): Likewise.
7150         (target_fileio_read_alloc): Likewise.
7151         (target_fileio_read_stralloc): Likewise.
7152
7153         * target.c: Include "gdb/fileio.h".
7154         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
7155         (default_fileio_target): New function.
7156         (target_fileio_open): Likewise.
7157         (target_fileio_pwrite): Likewise.
7158         (target_fileio_pread): Likewise.
7159         (target_fileio_close): Likewise.
7160         (target_fileio_unlink): Likewise.
7161         (target_fileio_close_cleanup): Likewise.
7162         (target_fileio_read_alloc_1): Likewise.
7163         (target_fileio_read_alloc): Likewise.
7164         (target_fileio_read_stralloc): Likewise.
7165
7166         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
7167         <fcntl.h>, and <unistd.h>.
7168         (inf_child_fileio_open_flags_to_host): New function.
7169         (inf_child_errno_to_fileio_error): Likewise.
7170         (inf_child_fileio_open): Likewise.
7171         (inf_child_fileio_pwrite): Likewise.
7172         (inf_child_fileio_pread): Likewise.
7173         (inf_child_fileio_close): Likewise.
7174         (inf_child_fileio_unlink): Likewise.
7175         (inf_child_target): Install to_fileio routines.
7176
7177         * remote.c (init_remote_ops): Install to_fileio routines.
7178
7179 2012-01-20  Pedro Alves  <palves@redhat.com>
7180             Ulrich Weigand  <ulrich.weigand@linaro.org>
7181
7182         * remote.c (remote_multi_process_p): Only check for multi-process
7183         protocol feature, do not check for extended protocol.
7184         (remote_supports_multi_process): Check for extended protocol here.
7185         (set_general_process): Likewise.
7186         (extended_remote_kill): Likewise.
7187         (remote_pid_to_str): Likewise.
7188         (remote_query_supported): Always query multiprocess mode.
7189
7190 2012-01-20  Pedro Alves  <palves@redhat.com>
7191             Ulrich Weigand  <ulrich.weigand@linaro.org>
7192
7193         * inferior.h (struct inferior): Add fake_pid_p.
7194         * inferior.c (exit_inferior_1): Clear fake_pid_p.
7195         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
7196         magic_null_ptid since the remote side doesn't provide a real PID.
7197
7198 2012-01-19  Tom Tromey  <tromey@redhat.com>
7199
7200         * NEWS: Combine the two Python sections.
7201
7202 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7203
7204         * target.h (target_close): Update comment on the target's unpush state.
7205
7206 2012-01-19  Pedro Alves  <palves@redhat.com>
7207
7208         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
7209         linux_nat_async directly instead of going through the target
7210         vector.
7211         * target.c (unpush_target): Close target after unpushing it, not
7212         before.
7213
7214 2012-01-19  Gary Benson  <gbenson@redhat.com>
7215
7216         * mdebugread.c (sort_blocks): Replace integer constants with ones
7217         derived from FIRST_LOCAL_BLOCK.
7218
7219 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
7220             Jan Kratochvil  <jan.kratochvil@redhat.com>
7221
7222         PR gdb/9538
7223         * symfile.c (find_separate_debug_file): New function.
7224         (terminate_after_last_dir_separator): Likewise.
7225         (find_separate_debug_file_by_debuglink): Also try realpath.
7226         * configure.ac (AC_CHECK_FUNCS): Add lstat.
7227         * configure: Regenerate.
7228         * config.in: Regenerate.
7229
7230 2012-01-18  Doug Evans  <dje@google.com>
7231
7232         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
7233         (main.o): Remove rule.
7234         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
7235         (--with-sysroot): Rewrite.
7236         * configure: Regenerate.
7237         * config.in: Regenerate.
7238
7239 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
7240
7241         * parse.c (initialize_expout): New function.
7242         (reallocate_expout): Likewise.
7243         (parse_exp_in_context): Use `initialize_expout' and
7244         `reallocate_expout' when appropriate.
7245
7246 2012-01-18  Pedro Alves  <palves@redhat.com>
7247
7248         * record.c (struct record_breakpoint, record_breakpoint_p)
7249         (record_breakpoints): New.
7250         (record_insert_breakpoint, record_remove_breakpoint): Manage
7251         record breakpoints list.  Only remove breakpoints from the
7252         inferior if they had been inserted there in the first place.
7253
7254 2012-01-17  Doug Evans  <dje@google.com>
7255
7256         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
7257         if we know we don't have a file name to look for.
7258
7259 2012-01-17  Pedro Alves  <palves@redhat.com>
7260
7261         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
7262         the frame's stop reason is UNWIND_UNAVAILABLE.
7263
7264 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7265
7266         Fix compilation error.
7267         * m2-exp.y (yyerror): Use ANSI C prototype.
7268
7269 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
7270
7271         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
7272         (growbuf_by_size): Likewise.
7273         (yyerror): Likewise.
7274         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
7275         (modblock): Remove variable (was #if 0'ed).
7276         (parse_number): Convert prototype from K&R to ANSI C.
7277         (yyerror): Likewise.
7278         * objc-exp.y (parse_number): Likewise.
7279         (yyerror): Likewise.
7280         (yylex): Remove #if 0'ed code.
7281         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
7282         (yyerror): Likewise.
7283
7284 2012-01-16  Tom Tromey  <tromey@redhat.com>
7285
7286         * NEWS: Add item.
7287         * symtab.h (compare_filenames_for_search): Declare.
7288         * symtab.c (compare_filenames_for_search): New function.
7289         (iterate_over_some_symtabs): Use it.
7290         * symfile.h (struct quick_symbol_functions)
7291         <map_symtabs_matching_filename>: Change spec.
7292         * psymtab.c (partial_map_symtabs_matching_filename): Use
7293         compare_filenames_for_search.  Update for new spec.
7294         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
7295         compare_filenames_for_search.  Update for new spec.
7296         * breakpoint.c (clear_command): Use compare_filenames_for_search.
7297
7298 2012-01-16  Tom Tromey  <tromey@redhat.com>
7299
7300         PR python/13281:
7301         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
7302         (struct main_type) <flag_flag_enum>: New field.
7303         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
7304         * NEWS: Add entries.
7305         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
7306         enums.
7307         * python/lib/gdb/printing.py (_EnumInstance): New class.
7308         (FlagEnumerationPrinter): Likewise.
7309
7310 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
7311
7312         * breakpoint.c (create_sals_from_address_default): New function.
7313         (create_breakpoints_sal_default): Likewise.
7314         (decode_linespec_default): Likewise.
7315         (is_marker_spec): Removed.
7316         (strace_marker_p): New function.
7317         (init_breakpoint_sal): Using `strace_marker_p' instead of
7318         `is_marker_spec'.
7319         (create_breakpoint): Call method `create_sals_from_address' from
7320         breakpoint_ops, replacing code that created SALs conditionally
7321         on the type of the breakpoint.  Call method `create_breakpoints_sal',
7322         replacing code that created breakpoints conditionally on the type
7323         wanted.
7324         (base_breakpoint_create_sals_from_address): New function.
7325         (base_breakpoint_create_breakpoints_sal): Likewise.
7326         (base_breakpoint_decode_linespec): Likewise.
7327         (base_breakpoint_ops): Add methods
7328         `base_breakpoint_create_sals_from_address',
7329         `base_breakpoint_create_breakpoints_sal' and
7330         `base_breakpoint_decode_linespec'.
7331         (bkpt_create_sals_from_address): New function.
7332         (bkpt_create_breakpoints_sal): Likewise.
7333         (bkpt_decode_linespec): Likewise.
7334         (tracepoint_create_sals_from_address): Likewise.
7335         (tracepoint_create_breakpoints_sal): Likewise.
7336         (tracepoint_decode_linespec): Likewise.
7337         (strace_marker_create_sals_from_address): Likewise.
7338         (strace_marker_create_breakpoints_sal): Likewise.
7339         (strace_marker_decode_linespec): Likewise.
7340         (strace_marker_breakpoint_ops): New variable.
7341         (addr_string_to_sals): Remove `marker_spec'.  Call method
7342         `decode_linespec' from breakpoint_ops, replacing code that decoded
7343         an address string into a SAL.  Use `strace_marker_p' instead of
7344         `marker_spec'.
7345         (strace_command): Decide whether we are dealing with a static
7346         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
7347         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
7348         * breakpoint.h (linespec_result, linespec_sals): New forward
7349         declarations.
7350         (breakpoint_ops) <create_sals_from_address>,
7351         <create_breakpoints_sal>, <decode_linespec>: New methods.
7352
7353 2012-01-14  Doug Evans  <dje@google.com>
7354
7355         * NEWS: Update text for "maint set python print-stack".
7356         It is deprecated in gdb 7.4 and deleted in 7.5.
7357
7358 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
7359
7360         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
7361         including curses.h.
7362
7363 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
7364
7365         * configure: Regenerate.
7366         * config.in: Regenerate.
7367
7368 2012-01-12  Keith Seitz  <keiths@redhat.com>
7369
7370         PR mi/10586
7371         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
7372         (ANONYMOUS_UNION_NAME): Define.
7373         (is_path_expr_parent): New function.
7374         (get_path_expr_parent): New function.
7375         (is_anonymous_child): New function.
7376         (create_child_with_value): If the child is anonymous and without
7377         a name, assign an object name to it.
7378         (c_describe_child): Use get_path_expr_parent to determine
7379         the parent expression.
7380         If there field represents an anonymous struct or union and
7381         has no name, set an appropriate display name and expression.
7382         (cplus_describe_child): Likewise.
7383
7384 2012-01-12  Pedro Alves  <palves@redhat.com>
7385
7386         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
7387         available when %ebp is found to be zero (outermost).
7388
7389 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
7390
7391         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
7392         an internal gdb_static_assert.
7393         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
7394
7395 2012-01-11  Tom Tromey  <tromey@redhat.com>
7396
7397         PR gdb/9598:
7398         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
7399         catch" and "catch throw".
7400
7401 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
7402
7403         * blockframe.c (block_innermost_frame): Start search from selected
7404         frame, if present, or otherwise the current frame.
7405
7406         * c-exp.y (variable): Update innermost_block for
7407         'block COLONCOLON NAME' clause.
7408         * m2-exp.y (variable): Ditto.
7409         * objc-exp.y (variable): Ditto.
7410
7411 2012-01-10  Tom Tromey  <tromey@redhat.com>
7412
7413         PR python/13199:
7414         * python/python.c (finish_python_initialization): Set sys.argv.
7415
7416 2012-01-10  Doug Evans  <dje@google.com>
7417
7418         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
7419         "want_line_info".  All callers updated.
7420         (dwarf_decode_lines_1): New function.
7421         (handle_DW_AT_stmt_list): Add function comment.
7422         New arg "want_line_info".  All callers updated.
7423         (read_file_scope,read_type_unit_scope): Move comment from
7424         handle_DW_AT_stmt_list to here.
7425
7426 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7427
7428         Fix regression after libiberty/ update for GCC PR 6057 and others.
7429         * c-exp.y (operator) <OPERATOR DELETE>
7430         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7431         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
7432         (make_builtin_type, make_name): New variable i, add gdb_assert.
7433         (operator) <OPERATOR NEW>: Update ARGS to 3.
7434         (operator) <OPERATOR DELETE>: Add trailing space.
7435         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
7436         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7437         * cp-support.c (cp_canonicalize_string): Check NULL from
7438         cp_comp_to_string, call warning and return.
7439
7440 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7441
7442         Fix duplicate .o files after omitting libbfd.a.
7443         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
7444         (SFILES): Add corelow.c.
7445         (COMMON_OBS): Add corelow.o.
7446         (ALLDEPFILES): Remove corelow.c.
7447         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7448         * config/alpha/alpha-osf3.mh: Likewise.
7449         * config/alpha/fbsd.mh: Likewise.
7450         * config/arm/nbsdaout.mh: Likewise.
7451         * config/arm/nbsdelf.mh: Likewise.
7452         * config/i386/i386gnu.mh: Likewise.
7453         * config/ia64/hpux.mh: Likewise.
7454         * config/ia64/linux.mh: Likewise.
7455         * config/m32r/linux.mh: Likewise.
7456         * config/m68k/linux.mh: Likewise.
7457         * config/mips/irix5.mh: Likewise.
7458         * config/mips/irix6.mh: Likewise.
7459         * config/pa/hpux.mh: Likewise.
7460         * config/pa/linux.mh: Likewise.
7461         * config/powerpc/aix.mh: Likewise.
7462         * config/sparc/linux.mh: Likewise.
7463         * config/sparc/linux64.mh: Likewise.
7464         * config/sparc/sol2.mh: Likewise.
7465         * config/vax/vax.mh: Likewise.
7466         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7467         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7468         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7469         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7470         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7471         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7472         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7473         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7474         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7475         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7476         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7477         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7478         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7479         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7480         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7481         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7482         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7483         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7484         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7485         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7486         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7487         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7488         corelow.o from gdb_target_obs.
7489         * corefile.c (core_target): Update the comment on NULL value.
7490         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7491         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7492         MATCHES.  Drop YUMMY set on NULL.
7493         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
7494         reclaim CORE_DATA if it is already NULL.
7495
7496 2012-01-09  Doug Evans  <dje@google.com>
7497
7498         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7499         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7500
7501 2012-01-09  Keith Seitz  <keiths@redhat.com>
7502
7503         * breakpoint.c (wrapper.h): Don't include.
7504
7505 2012-01-09  Keith Seitz  <keiths@redhat.com>
7506
7507         * Makefile.in (SFILES): Remove wrapper.c.
7508         (HFILES_NO_SRCDIR): Remove wrapper.h.
7509         (COMMON_OBS): Remove wrapper.o.
7510         * cli/cli-interp.c: Don't inlude wrapper.h.
7511         * corelow.c: Likewise.
7512         (core_open): Replace gdb_target_find_new_threads with
7513         TRY_CATCH around target_find_new_threads.
7514         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7515         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7516         * varobj.c (varobj_create): Likewise for parse_exp_1 and
7517         evaluate_expression.
7518         (varobj_set_value): Likewise for evaluate_expression and
7519         value_assign.
7520         (install_new_variable): Likewise for value_fetch_lazy.
7521         (adjust_value_for_child_access): Likewise for value_ind.
7522         (c_describe_child): Likewise for value_subscript and
7523         value_ind.
7524         (c_value_of_root): Likewise for evaluate_expression.
7525         * wrapper.c: Remove.
7526         * wrapper.h: Remove.
7527
7528 2012-01-09  Doug Evans  <dje@google.com>
7529
7530         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7531         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
7532         "abfd" args with "section".  All callers updated.
7533         Error checking code moved ...
7534         (error_check_comp_unit_head): ... here.  New function.
7535         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7536         Delete arg "abfd".  New arg "type_offset".  All callers updated.
7537         (create_debug_types_hash_table): Simplify by using
7538         read_and_check_type_unit_head.
7539
7540         * parser-defs.h (namecopy): Delete.
7541         * parse.c (namecopy, namecopy_size): Move into copy_name.
7542
7543 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7544
7545         Partially fix duplicate .o files after omitting libbfd.a.
7546         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7547         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7548         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7549         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7550         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7551         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7552         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7553
7554 2012-01-09  Pedro Alves  <palves@redhat.com>
7555
7556         * MAINTAINERS: Update my email address.
7557
7558 2012-01-08  Doug Evans  <dje@google.com>
7559
7560         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7561         n_type_units.  Rename type_comp_units to all_type_units.
7562         All uses updated.
7563         (add_signatured_type_cu_to_table): Renamed from
7564         add_signatured_type_cu_to_list.  All callers updated.
7565
7566         * gdbtypes.h (struct cplus_struct_type): Delete member
7567         nfn_fields_total.  All uses removed.
7568
7569 2012-01-06  Doug Evans  <dje@google.com>
7570
7571         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7572         to top of file.
7573         (dwarf2_find_comp_unit): Delete.
7574         (process_psymtab_comp_unit): Make result "void".
7575         Delete args buffer, info_ptr, buffer_size, and replace with
7576         "section".  All callers updated.
7577         (dwarf2_build_psymtabs_hard): Simplify.
7578
7579 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
7580             Thiago Jung Bauermann  <bauerman@br.ibm.com>
7581
7582         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7583         before `struct gdb_exception'.
7584         * breakpoint.c (update_global_location_list_nothrow)
7585         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7586         * cp-abi.c (value_rtti_type): Likewise.
7587         * cp-support.c (cp_validate_operator): Likewise.
7588         * infrun.c (insert_exception_resume_breakpoint)
7589         (check_exception_resume, keep_going): Likewise.
7590         * mi-interp.c (mi_breakpoint_created)
7591         (mi_breakpoint_modified): Likewise.
7592         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7593         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7594         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7595
7596 2012-01-05  Doug Evans  <dje@google.com>
7597
7598         * dwarf2read.c (statement_prologue): Delete, unused.
7599
7600         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7601         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7602
7603         * dwarf2read.c (comp_unit_header): Delete, unused.
7604
7605 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
7606
7607         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7608         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7609
7610 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
7611
7612         * infrun.c (normal_stop): Don't skip calling the normal_stop
7613         observers if the thread was doing a multi-step, but stopped for
7614         some reason other than stepping.
7615
7616 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
7617
7618         * cli/cli-decode.h: Add comments.
7619         (CMD_LIST_AMBIGUOUS): Moved to command.h
7620         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7621         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7622         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7623         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7624         (add_com, add_com_alias, add_info, add_info_alias)
7625         (complete_on_cmdlist, complete_on_enum, help_list): Remove
7626         declarations.
7627         * command.h: Add and adjust comments.
7628         (CMD_LIST_AMBIGUOUS): Moved here.
7629         (help_cmd, help_cmd_list): Delete declarations.
7630
7631 2012-01-04  Doug Evans  <dje@google.com>
7632
7633         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7634         All callers updated.
7635         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7636         Replace all arguments with "per_cu".  All callers updated.
7637
7638         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7639
7640         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7641         New arg "per_cu".  All callers updated.
7642
7643         Delete #if 0'd out code.
7644         * language.c (binop_result_type): Delete.
7645         (simple_type, ordered_type, same_type, integral_type): Delete.
7646         (numeric_type, character_type, string_type, boolean_type): Delete.
7647         (float_type, structured_type): Delete.
7648         * language.h: Update.
7649
7650 2012-01-04  Tom Tromey  <tromey@redhat.com>
7651
7652         * python/py-value.c (valpy_binop): Initialize 'res_val'.
7653
7654 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7655
7656         * corefile.c (close_exec_file): Delete.
7657         (reopen_exec_file): Remove commented out code that seems related
7658         to close_exec_file, which is being deleted here.
7659         * inferior.h (close_exec_file): Delete.
7660         * fork-child.c (fork_inferior): Remove call to fork_inferior.
7661
7662 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7663
7664         * ada-lang.c: #include "cli/cli-utils.h".
7665         (get_selections): Use skip_spaces.
7666         (ada_get_next_arg): Use skip_spaces and skip_to_space.
7667         (catch_ada_exception_command_split): Use skip_spaces.
7668         (ada_decode_assert_location): Likewise.
7669
7670 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7671
7672         * linespec.c (decode_line_internal): Check for C++ or Java
7673         compound constructs only if the current language is C, C++
7674         or Java.
7675
7676 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7677
7678         Revert:
7679         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7680                     Joel Brobecker  <brobecker@adacore.com>
7681         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7682         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7683         3 times.
7684         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7685         fall through into AT_ENTRY_POINT.
7686         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
7687         DUMMY_ADDR with it.
7688         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7689         PPC_INSN_SIZE skip to 3 times.
7690
7691 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7692
7693         * linespec.c (add_minsym): Preserve function descriptors.
7694
7695 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
7696
7697         * breakpoint.c (all_locations_are_pending): Consider locations
7698         in program spaces executing during startup pending as well.
7699
7700 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7701
7702         Copyright year update in most files of the GDB Project.
7703
7704 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7705
7706         * copyright.sh: Delete.
7707         * copyright.py: Rewrite.
7708
7709 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7710
7711         * gnulib/extra/update-copyright: New file, imported from gnulib.
7712
7713 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7714
7715         * README (Copyright and License Notices): New section.
7716
7717 2012-01-03  Tom Tromey  <tromey@redhat.com>
7718
7719         PR python/12533:
7720         * python/py-value.c (valpy_dereference, valpy_get_address
7721         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7722         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7723         (valpy_absolute, valpy_richcompare): Free intermediate values.
7724
7725 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
7726
7727         * ada-lang.c: Reformat the copyright notice.
7728
7729 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7730
7731         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7732         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7733         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7734         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7735         Revert this part of:
7736         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7737         Build gdb directly from *.o files not using libgdb.a.
7738         * Makefile.in (COMMON_OBS): Remove solib-target.o.
7739
7740 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
7741
7742         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7743         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7744         Reformat the copyright header.
7745
7746 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7747
7748         Revert this part of:
7749         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7750         Remove the gdbtui binary.
7751         * gdb.c (main): Remove args.interpreter_p initialization.
7752         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7753         * main.h (struct captured_main_args): Remove interpreter_p.
7754
7755 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
7756
7757         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7758
7759 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
7760
7761         * top.c (print_gdb_version): Update copyright year.
7762
7763 2012-01-02  Yao Qi  <yao@codesourcery.com>
7764
7765         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7766
7767 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7768             Joel Brobecker  <brobecker@adacore.com>
7769
7770         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7771         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7772         3 times.
7773         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7774         fall through into AT_ENTRY_POINT.
7775         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
7776         DUMMY_ADDR with it.
7777         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7778         PPC_INSN_SIZE skip to 3 times.
7779
7780 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7781
7782         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7783         the return value.
7784         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7785
7786 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7787
7788         Build gdb directly from *.o files not using libgdb.a.
7789         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7790         (COMMON_OBS): Remove solib-target.o.
7791         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7792         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7793         (LIBGDB_OBS, libgdb.a): Move it above.
7794         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7795         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7796         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7797         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7798         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7799         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7800         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7801         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7802         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7803         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7804         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7805         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7806         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7807         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7808         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7809         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7810         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7811         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7812         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7813         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7814         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7815         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7816         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7817         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7818         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7819         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7820         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7821
7822 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7823
7824         Remove the gdbtui binary.
7825         * .gitignore (/gdbtui): Remove.
7826         * Makefile.in (TUI): Remove.
7827         (SUBDIR_TUI_OBS): Remove tui-main.o.
7828         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7829         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7830         (tui-main.o): Remove.
7831         (all_object_files): Remove tui-main.o.
7832         * NEWS: New note for the gdbtui removal.
7833         * configure: Rebuilt.
7834         * configure.ac: No longer add all-tui, clean-tui, install-tui and
7835         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7836         CONFIG_UNINSTALL respectively.
7837         * gdb.c (main): Remove args.interpreter_p initialization.
7838         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7839         * main.h (struct captured_main_args): Remove interpreter_p.
7840         * tui/tui-main.c: Remove.
7841
7842 2012-01-01  Doug Evans  <dje@google.com>
7843
7844         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7845         (dwarf2_physname, read_import_statement): Ditto.
7846         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7847         (process_structure_scope read_subroutine_type): Ditto.
7848         (read_typedef, load_partial_dies, read_partial_die): Ditto.
7849         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7850         (dwarf2_fetch_die_location_block): Ditto.
7851         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7852
7853         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7854         All callers updated.
7855         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7856         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7857         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7858
7859         * dwarf2read.c (load_cu): Move assert to more useful location.
7860
7861         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7862         All callers updated.
7863
7864         * dwarf2read.c (dwarf2_per_objfile): Add comment.
7865         (dwarf2_elf_names): Minor reformat.
7866         (dwarf2_per_cu_data): Tweak comment.
7867         (dwarf2_read_section): Fix comment.
7868         (create_all_comp_units): Fix comment.
7869         (load_full_comp_unit): Fix comment.
7870         (process_full_comp_unit): Fix comment.
7871         (read_signatured_type): Fix comment.
7872
7873 For older changes see ChangeLog-2011.
7874 \f
7875 Local Variables:
7876 mode: change-log
7877 left-margin: 8
7878 fill-column: 74
7879 version-control: never
7880 coding: utf-8
7881 End: