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