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