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