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