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