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