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