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