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