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