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