* breakpoint.c (compare_breakpoints): Fix comparison.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2012-10-18  Tom Tromey  <tromey@redhat.com>
2
3         * breakpoint.c (compare_breakpoints): Fix comparison.
4
5 2012-10-18  Tom Tromey  <tromey@redhat.com>
6
7         * valprint.c (generic_emit_char, generic_printstr): Pass size of
8         gdb_wchar_t to convert_between_encodings.
9
10 2012-10-17  Yao Qi  <yao@codesourcery.com>
11
12         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
13         more parameter 'inferior'.
14         * corefile.c (write_memory_with_notification): Caller update.
15
16         * mi/mi-cmd-var.c: Include "mi-main.h".
17         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
18         to 1 and restore it later.
19         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
20         and "data-write-memory-bytes.
21         * mi/mi-interp.c: Include objfiles.h.
22         (mi_interpreter_init): Call observer_attach_memory_changed.
23         (mi_memory_changed): New.
24         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
25         New field.
26
27         * NEWS: Mention new MI notification "memory-changed".
28
29 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
30
31         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
32
33 2012-10-15  Doug Evans  <dje@google.com>
34
35         New option -nh: inhibit loading of ~/.gdbinit.
36         * NEWS: Mention -nh.
37         * main.c (captured_main): Recognize and process -nh.
38         (print_gdb_help): Mention -nh.
39         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
40
41 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
42
43         PR backtrace/14646
44         PR gdb/14647
45         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
46         pc_regnum_from_eax.
47         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
48         nor pc_regnum_from_eax.
49         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
50         nor pc_regnum_from_eax.
51
52 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
53
54         Fix entry values resolving in inlined frames.
55         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
56         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
57         entries of FRAME.
58
59 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
60
61         * configure.ac: Build with -DMS_WIN64 if building with Python
62         enabled using GCC on amd64-windows.
63         * configure: Regenerate.
64
65 2012-10-15  Tom Tromey  <tromey@redhat.com>
66
67         PR python/14635:
68         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
69         to Py_None.
70
71 2012-10-15  Tom Tromey  <tromey@redhat.com>
72
73         PR python/14634:
74         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
75
76 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
77
78         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
79         reset thread numbering back to 1.
80
81 2012-10-11  Doug Evans  <dje@google.com>
82
83         PR breakpoints/14643.
84         * linespec.c (struct ls_parser): New member keyword_ok.
85         (linespec_lexer_lex_string): Add comment.
86         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
87         for one.
88         (parse_linespec): Set keyword_ok.
89
90 2012-10-10  Doug Evans  <dje@google.com>
91
92         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
93         "0x" prefix on address in log message.
94
95         * dwarf2read.c (read_1_byte): Add const to buf parameter.
96         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
97         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
98         (lookup_dwo_file): Add const to dwo_name parameter.
99         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
100
101 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
102
103         Fix crash during stepping on ppc32.
104         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
105         SYM.
106
107 2012-10-03  Doug Evans  <dje@google.com>
108
109         PR symtab/14601
110         * buildsym.c (buildsym_init): Reset using_directives to NULL.
111
112 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
113
114         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
115         output and use uint32_t not long to ensure 4 byte size.
116
117 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
118
119         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
120         unref'ed it.
121
122 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
123
124         * target.c (simple_search_memory): Include access length in
125         warning message.
126
127 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
128             Edjunior Machado  <emachado@linux.vnet.ibm.com>
129
130         PR gdb/13989
131         * solib.c (solib_find): Prevent GDB from loading native libraries when
132         debugging a cross-target corefile.
133
134 2012-09-28  selven  <pcthegreat@gmail.com>
135
136         Make definition match declaration.
137
138         * regcache.c (regcache_register_status): Change return type to
139         enum register_status.
140
141 2012-09-28  Yao Qi  <yao@codesourcery.com>
142
143         * mi/mi-main.c (mi_cmd_data_write_memory): Call
144         write_memory_with_notification instead of write_memory.
145         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
146         instead of target_write_memory.
147
148 2012-09-28  Yao Qi  <yao@codesourcery.com>
149
150         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
151         when the length of content is not an even number.
152
153 2012-09-27  Tom Tromey  <tromey@redhat.com>
154
155         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
156         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
157
158 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
159
160         * sol-thread.c (sol_thread_fetch_registers)
161         (sol_thread_store_registers): Delete commented out code.
162
163 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
164
165         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
166         Move these functions to sparc-sol-thread.c.
167         * sparc-sol-thread.c: New file.
168         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
169         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
170         configurations.
171         * configure: Regenerate.
172
173 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
174
175         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
176         Remove commented-out code.
177
178 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
179
180         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
181         Enable this code for sparc hosts only.
182
183 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
184
185         * procfs.h (procfs_find_LDT_entry): Add declaration.
186         * sol-thread.c (ps_lgetLDT): Delete local declaration of
187         function procfs_find_LDT_entry.
188
189 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
190
191         * procfs.c (proc_get_LDT_entry): Make static.
192
193 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
194
195         * procfs.c (proc_find_memory_regions): Fix declaration.
196
197 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
198
199         * amd64-tdep.c (amd64_return_value): Revert previous change
200         that used TYPE_LENGTH directly.
201         * bfin-tdep.c (bfin_extract_return_value): Likewise.
202         (bfin_store_return_value): Likewise.
203         * cris-tdep.c (cris_store_return_value): Likewise.
204         (cris_extract_return_value): Likewise.
205         * h8300-tdep.c (h8300_extract_return_value): Likewise.
206         * hppa-tdep.c (hppa64_return_value): Likewise.
207         * lm32-tdep.c (lm32_store_return_value): Likewise.
208         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
209         * spu-tdep.c (spu_value_from_register): Likewise.
210         * vax-tdep.c (vax_return_value): Likewise.
211
212 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
213
214         * gdbtypes.c (lookup_array_range_type): Expand parameters
215         LOW_BOUND and HIGH_BOUND to LONGEST.
216         (lookup_string_range_type): Likewise.
217         * gdbtypes.h (lookup_array_range_type): Likewise.
218         (lookup_string_range_type): Likewise.
219         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
220         Expand HIGHBOUND to ssize_t.
221         (value_string): Likewise.
222         * value.h (value_cstring): Expand parameter LEN to ssize_t.
223         (value_string): Likewise.
224
225 2012-09-27  Yao Qi  <yao@codesourcery.com>
226
227         PR breakpoints/13898
228         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
229         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
230         per breakpoint type.
231
232 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
233
234         * procfs.c: Add gdb_bfd header.
235         * rs6000-nat.c: Likewise.
236         * solib-pa64.c: Likewise.
237         * spu-linux-nat.c: Likewise.
238         * windows-nat.c: Likewise.
239
240 2012-09-26  Tom Tromey  <tromey@redhat.com>
241
242         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
243
244 2012-09-26  Tom Tromey  <tromey@redhat.com>
245
246         * dwarf2read.c (mark_common_block_symbol_computed): New function.
247         (read_common_block): Handle child DIEs with
248         DW_AT_data_member_location.
249         (new_symbol_full): Add special case for common blocks.
250
251 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
252             Tom Tromey  <tromey@redhat.com>
253
254         * dwarf2read.c (read_common_block): Rewrite.
255         (new_symbol_full): Handle DW_TAG_common_block.
256         * f-lang.c (head_common_list, find_common_for_function):
257         Remove.
258         * f-lang.h (struct common_entry, struct saved_f77_common,
259         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
260         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
261         BLANK_COMMON_NAME_LOCAL): Remove.
262         (struct common_block): New.
263         * f-valprint.c (list_all_visible_commons): Remove.
264         (info_common_command_for_block): New function.
265         (info_common_command): Use it.
266         * stack.c (iterate_over_block_locals): Special case for
267         COMMON_BLOCK_DOMAIN.
268         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
269         constant.
270         (struct general_symbol_info) <value.common_block>: New field.
271         (SYMBOL_VALUE_COMMON_BLOCK): New define.
272
273 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
274             Tom Tromey  <tromey@redhat.com>
275
276         * f-lang.c (allocate_saved_bf_node,
277         allocate_saved_function_node, allocate_saved_f77_common_node,
278         allocate_common_entry_node, tail_common_list, current_common,
279         saved_bf_list, saved_bf_list_end, current_head_bf_list,
280         tmp_bf_ptr, add_common_block, add_common_entry,
281         find_first_common_named, patch_common_entries,
282         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
283         global_remote_debug, get_bf_for_fcn, saved_function_list,
284         saved_function_list_end, clear_function_list, struct saved_fcn,
285         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
286         SAVED_BF, SAVED_BF_PTR): Remove.
287         * f-lang.h (tail_common_list, current_common,
288         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
289         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
290         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
291         real_main_c_value): Remove.
292         * f-valprint.c (there_is_a_visible_common_named): Remove.
293
294 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
295
296         * breakpoint.c (update_global_location_list): Ignore previous
297         duplicate status of a breakpoint when starting a new scan for
298         duplicate breakpoints.
299
300 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
301         PR breakpoints/14419
302         * arm-tdep.c (arm_skip_prologue): Extending producer check to
303         support LLVM compiler.
304
305 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
306
307         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
308         * bfin-tdep.c (bfin_extract_return_value): Likewise.
309         (bfin_store_return_value): Likewise.
310         * cris-tdep.c (cris_store_return_value): Likewise.
311         (cris_extract_return_value): Likewise.
312         * h8300-tdep.c (h8300_extract_return_value): Likewise.
313         * hppa-tdep.c (hppa64_return_value): Likewise.
314         * lm32-tdep.c (lm32_store_return_value): Likewise.
315         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
316         * spu-tdep.c (spu_value_from_register): Likewise.
317         * vax-tdep.c (vax_return_value): Likewise.
318
319 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
320
321         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
322         parameter LEN to ssize_t.
323
324 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
325
326         * ada-valprint.c (ada_val_print_1): Eliminate single-use
327         variable LEN.
328         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
329         directly.
330         (alpha_store_return_value): Likewise.
331         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
332         (amd64_push_arguments): Likewise.
333         * ax-gdb.c (gen_trace_static_fields): Likewise.
334         (gen_traced_pop): Likewise.
335         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
336         * breakpoint.c (update_watchpoint): Likewise.
337         * findcmd.c (parse_find_args): Use local variable for type
338         instead of length.
339         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
340         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
341         (h8300_store_return_value): Likewise.
342         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
343         Use i386_darwin_arg_type_alignment directly.
344         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
345         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
346         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
347         (m68hc11_extract_return_value): Likewise.
348         * mep-tdep.c (mep_push_dummy_call): Likewise.
349         * printcmd.c (float_type_from_length): Likewise.
350         * s390-tdep.c (s390_value_from_register): Likewise.
351         * stack.c (read_frame_arg): Likewise.
352         * tracepoint.c (encode_actions_1): Likewise.
353         * valops.c (value_fetch_lazy): Use local variable for type
354         instead of length.  Use TYPE_LENGTH directly.
355         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
356
357 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
358
359         * symtab.c (skip_prologue_sal): Fix typo in comment.
360
361 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
362
363         * linespec.c (create_sals_line_offset): Fix typo in comment.
364
365 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
366
367         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
368         use plongest to print the array size.
369
370 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
371
372         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
373         * p-valprint.c (pascal_type_print_base): Likewise.
374
375 2012-09-22  Yao Qi  <yao@codesourcery.com>
376
377         * remote.c (remote_get_trace_status): Remove setting default
378         values of fields of 'ts'.
379
380 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
381
382         Fix internal error on canonicalization of clang types.
383         * cp-name-parser.y (operator): New comment at make_operator call for
384         new, delete, new[] and delete[].
385         (exp): Use "sizeof ".  Add new comment at make_operator call.
386
387 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
388
389         Fix disassemble without parameters in tailcall frame.
390         * cli/cli-cmds.c (disassemble_current_function): Use
391         get_frame_address_in_block.
392
393 2012-09-21  Tom Tromey  <tromey@redhat.com>
394
395         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
396         TYPE_CODE_UNION>: Unify, removing a goto.
397
398 2012-09-21  Tom Tromey  <tromey@redhat.com>
399
400         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
401
402 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
403
404         * findvar.c (read_frame_register_value): Mark the result value as
405         optimized out if any of the input registers have been optimized out.
406
407 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
408
409         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
410
411 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
412
413         * eval.c (evaluate_subexp_standard): Eliminate single-use
414         variable LOWER.
415
416 2012-09-21  Yao Qi  <yao@codesourcery.com>
417
418         * mi/mi-interp.c: Declare mi_record_changed.
419         (mi_interpreter_init): Call observer_attach_record_changed.
420         (mi_record_changed): New.
421         * record.c (record_open): Call observer_notify_record_changed.
422         (cmd_record_stop): Call observer_notify_record_changed.
423         * NEWS: Mention it.
424
425 2012-09-20  Tom Tromey  <tromey@redhat.com>
426
427         * NEWS: Update.
428         * python/python.c (finalize_python): New function.
429         (_initialize_python): Make a final cleanup.
430
431 2012-09-19  Doug Evans  <dje@google.com>
432
433         * buildsym.h (param_symbols): Delete, unused.
434         (context_stack): Delete member "params", unused.
435         * buildsym.c (push_context): Update.
436         * dwarf2read.c (read_func_scope): Update.
437
438 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
439
440         * sh-tdep.c (sh_register_convert_to_virtual)
441         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
442         all callers.  Just do a memcpy if not the little-endian case.
443
444         * h8300-tdep.c (h8300_gdbarch_init): Invoke
445         set_gdbarch_double_format and set_gdbarch_long_double_format.
446         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
447         set_gdbarch_double_format.
448         * sh-tdep.c (sh_gdbarch_init): Likewise.
449
450         * NEWS: Document the removal of SH's 'regs' command.
451         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
452         command.
453
454 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
455
456         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
457         `jump'.
458
459 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
460
461         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
462         language when iterating over symbols.
463
464 2012-09-18  Yao Qi  <yao@codesourcery.com>
465
466         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
467         (mi_interpreter_init): Call observer_attach_tsv_created and
468         observer_attach_tsv_deleted.
469         (mi_tsv_created, mi_tsv_deleted): New.
470         * tracepoint.c (delete_trace_state_variable): Call
471         observer_notify_tsv_deleted.
472         (trace_variable_command): Call observer_notify_tsv_created.
473         (delete_trace_variable_command): Call
474         observer_notify_tsv_deleted.
475         (create_tsv_from_upload): Call observer_notify_tsv_created.
476         * NEWS: Mention it.
477
478 2012-09-18  Yao Qi  <yao@codesourcery.com>
479
480         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
481         if traceframe changed.
482         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
483         "trace-find".
484         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
485         (mi_interpreter_init): Hook mi_traceframe_changed to observer
486         'traceframe_changed'.
487         (mi_traceframe_changed): New.
488         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
489         New field.
490         * NEWS: Mention the new MI notification.
491
492 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
493
494         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
495
496 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
497
498         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
499         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
500         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
501         Extend code also for PaX support.  Convert all gdb_assert to warning
502         calls.
503
504 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
505
506         Implement auto-load user conveniences suggested by Doug Evans.
507         * auto-load.c: Include top.h.
508         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
509         (_initialize_auto_load): New variable scripts_directory_help.  Mention
510         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
511         scripts-directory.  Document in online help one can use also files for
512         set auto-load safe-path.
513         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
514         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
515
516 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
517
518         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
519         of LEN.
520
521 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
522
523         * m2-valprint.c (m2_print_array_contents): Eliminate variable
524         ELTLEN and use TYPE_LENGTH directly.
525         (m2_val_print): Likewise.
526         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
527         variable LEN and use TYPE_LENGTH directly.
528         (m68k_svr4_store_return_value): Likewise.
529         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
530         ARGLEN and use TYPE_LENGTH directly.
531         (mips_o64_push_dummy_call): Likewise.
532         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
533         variable LENGTH and use TYPE_LENGTH directly.
534         (s390_function_arg_float): Likewise.
535         (s390_function_arg_integer): Likewise.
536         (s390_push_dummy_call): Likewise.
537         (s390_return_value_convention): Likewise.
538         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
539         TYPE_LENGTH directly.
540
541 2012-09-17  Yao Qi  <yao@codesourcery.com>
542
543         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
544         Update comment to add_setshow_integer_cmd.
545         * cli/cli-setshow.c (do_set_command): Handle case
546         'var_zuinteger_unlimited'.
547         (do_show_command): Likewise.
548         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
549         for command 'remotetimeout'.
550         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
551         to var_integer.
552         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
553         for command 'set listsize'.
554
555 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
556
557         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
558         variable LEN.
559
560 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
561
562         PR 14119
563         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
564         (frame_pop): Drop also TAILCALL_FRAME frames.
565         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
566
567 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
568             Pedro Alves  <palves@redhat.com>
569
570         PR 14548
571         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
572         function start if we are already at function start.  Both for
573         reverse-next and for reverse-step into function without line number
574         info.
575
576 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
577
578         Code cleanup - rename 'inline' depth to 'artificial' depth.
579         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
580         frame_id_artificial_p, extend the comment.
581         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
582         * frame.c (fprint_frame_id): Rename at a user, change debug output
583         text to "artificial=".
584         (skip_inlined_frames): Rename to ...
585         (skip_artificial_frames): ... here.  Extend the comment.
586         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
587         (frame_id_inlined_p): Rename to ...
588         (frame_id_artificial_p): ... here.  Rename at a user.
589         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
590         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
591         at a user.
592         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
593         Extend the comment.
594         (frame_id_inlined_p): Rename to ...
595         (frame_id_artificial_p): ... here.
596         * inline-frame.c (inline_frame_this_id): Rename at a user.
597
598 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
599
600         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
601         vector variables using vector_size syntax rather than array
602         syntax.
603
604 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
605
606         * valarith.c (value_concat): Replace unsafe ALLOCA with
607         XMALLOC/XFREE.
608
609 2012-09-14  Pedro Alves  <palves@redhat.com>
610
611         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
612
613 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
614
615         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
616         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
617         data-directory as appropriate.
618
619 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
620
621         * printcmd.c (ui_printf): Eliminate single-use variable
622         PARAM_LEN.
623
624 2012-09-14  Yao Qi  <yao@codesourcery.com>
625             Pedro Alves  <palves@redhat.com>
626
627         * valops.c (value_assign): Move observer_notify_target_changed
628         below to replace reinit_frame_cache.
629
630 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
631
632         Refactor Python "gdb" module into a proper Python package, by
633         introducing a new "_gdb" module for code implemented in C, and
634         using reload/__import__ instead of exec.
635         * python/lib/gdb/__init__.py: Import * from _gdb.
636         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
637         prompt_hook, sys.argv): Moved from finish_python_initialization.
638         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
639         (packages, auto_load_packages): New list and function replacing
640         module_dict and auto-loading code, using __file__ instead of
641         gdb.PYTHONDIR and reload/__import__ instead of exec.
642         (GdbSetPythonDirectory): Replacing function of the same name
643         from finish_python_initialization, using reload/__import__ instead
644         of exec, as well as call auto_load_packages.
645         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
646         gdb_python_module and not gdb_module.
647         * python/python-internal.h (gdb_python_module): Declare.
648         * python/python.c (gdb_python_module): New global.
649         (before_prompt_hook): Check gdb_python_module and not gdb_module.
650         (_initialize_python): Rename gdb module to _gdb.
651         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
652         (finish_python_initialization): Move Python code to
653         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
654         __main__.
655
656 2012-09-13  Pedro Alves  <palves@redhat.com>
657
658         * Makefile.in (COMMON_OBS): Add registry.o.
659         * registry.c: New file.
660         * registry.h (struct registry_container): Declare.
661         (registry_data_callback): New typedef.
662         (struct registry_data, struct registry_data_registration, struct
663         registry_data_registry): New type.
664         (register_data_with_cleanup, registry_alloc_data)
665         (registry_callback_adaptor, registry_clear_data)
666         (registry_container_free_data, registry_set_data, registry_data):
667         Declare.
668         (DEFINE_REGISTRY): Refactor structures and functions as shims over
669         the new common structures and functions.
670         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
671         callback typedefs.
672
673 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
674
675         * remote.c (remote_insert_hw_breakpoint): Throw exception if
676         there is an error inserting hardware breakpoints and use the
677         error message from the target.
678
679         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
680         Catch this exception and print the error message contained within. Do not
681         print the default hardware error breakpoint message in this case.
682
683 2012-09-12  Doug Evans  <dje@google.com>
684
685         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
686         cu == NULL.
687
688 2012-09-11  Doug Evans  <dje@google.com>
689
690         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
691         .gdb_index symbol attributes if there are none.
692
693 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
694
695         * symtab.h (struct minimal_symbol) [has_size]: New field.
696         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
697         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
698         * printcmd.c (build_address_symbolic): Only filter out zero-sized
699         minimal symbols if the symbol's size is actually known.
700         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
701         of msymbol's size field.  Add comment.
702         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
703         SET_MSYMBOL_SIZE to set the minimal symbol size.
704
705 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
706
707         * minsyms.c (install_minimal_symbols): Use memset to fill entire
708         minimal_symbol struct object, rather than setting some of its
709         fields one by one.
710
711 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
712
713         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
714         passed_a_ptr flag when displaying typedef types.
715
716 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
717
718         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
719         the optimized_out flag is preserved.
720
721 2012-09-10  Anthony Green  <green@moxielogic.com>
722
723         * moxie-tdep.c (moxie_analyze_prologue): Update for function
724         prologue changes in GCC.
725
726 2012-09-10  Keith Seitz  <keiths@redhat.com>
727
728         PR gdb/13483
729         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
730         (BOOL_CONVERSION_BADNESS): ... this.
731         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
732         (rank_one_type): Allow all boolean conversions
733         permitted by the standard.
734
735 2012-09-06  Tom Tromey  <tromey@redhat.com>
736
737         * python/py-newobjfileevent.c (create_new_objfile_event_object):
738         Don't decref py_objfile.
739
740 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
741
742         Do not enable -lmcheck by default when Python is enabled with
743         threading support.
744         * configure.ac: (python_has_threads) New variable, by testing
745         if WITH_THREAD is defined in Python.h.
746         Move --enable-lmcheck after --with-python.
747         Do not enable -lmcheck by default if python_has_threads=yes.
748         Warn if --enable-lmcheck and python_has_threads=yes.
749         * configure: Regenerate.
750
751 2012-08-31  Yao Qi  <yao@codesourcery.com>
752
753         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
754         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
755         Update some commands.
756         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
757         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
758         to 1.
759
760 2012-08-31  Yao Qi  <yao@codesourcery.com>
761
762         * mi/mi-cmds.c (mi_cmds): Add 'static'.
763
764 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
765
766         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
767
768 2012-08-29  Doug Evans  <dje@google.com>
769
770         * main.c (print_gdb_help): Remove reference to
771         --use-deprecated-index-sections.
772
773 2012-08-28  Yao Qi  <yao@codesourcery.com>
774
775         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
776         (init_cmds): Call add_setshow_uinteger_cmd for command
777         'max-user-call-depth'.
778         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
779         declaration of 'max_user_call_depth'.
780         * frame.c (backtrace_limit): Add 'unsigned'.
781         (_initialize_frame): Call add_setshow_uinteger_cmd for command
782         'limit'.
783         * remote.c (remoteaddresssize): Add 'unsigned'.
784         (remote_address_masked): Change local var 'address_size' to
785         'unsigned'.
786         (_initialize_remote): Call add_setshow_uinteger_cmd for
787         'remoteaddresssize'.
788         * top.c (history_size): Add 'unsigned'.
789         (show_commands): Change local variables to 'unsigned'.
790         (set_history_size_command): Don't check history_size is negative.
791         Adjust the condition to call unstifle_history and set history_size
792         to UNIT_MAX.
793
794 2012-08-28  Pedro Alves  <palves@redhat.com>
795
796         PR gdb/14428
797
798         * infcmd.c (default_print_one_register_info): New, factored out
799         from default_print_registers_info.
800         (default_print_registers_info): Use it.  Mark value unavailable if
801         necessary.
802         (registers_info): Print user registers with
803         default_print_one_register_info.
804
805 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
806
807         PR tui/14486
808         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
809         is not NULL before referencing it.
810
811 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
812
813         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
814         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
815         original PC for it.
816
817 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
818             Jan Kratochvil  <jan.kratochvil@redhat.com>
819
820         * auto-load.c (auto_load_objfile_script): Rename to ...
821         (auto_load_objfile_script_1): ... here, change variable realname to
822         parameter realname, document it, add return value, add variable retval.
823         (auto_load_objfile_script): New function.
824
825 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
826
827         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
828         followed by a whitespace.
829
830 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
831
832         PR gdb/14494.
833         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
834         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
835         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
836         here.
837
838 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
839
840         * memattr.c (create_mem_region): Fix memory region overlapping
841         checking.
842
843 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
844
845         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
846         with xmalloc/cleanup.
847         * mt-tdep.c (mt_push_dummy_call): Likewise.
848         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
849         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
850
851 2012-08-24  Yao Qi  <yao@codesourcery.com>
852
853         * jv-exp.y (push_expression_name): Add "." at the end of error
854         message.
855
856 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
857
858         Document how to return from "python-interactive" to GDB.
859         * python/python.c (_initialize_python): Update documentation.
860
861 2012-08-23  Pedro Alves  <palves@redhat.com>
862
863         * infrun.c (_initialize_infrun) <handle command help text>:
864         Mention that multiple signals are supported.
865
866 2012-08-23  Pedro Alves  <palves@redhat.com>
867
868         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
869         string.
870
871 2012-08-23  Yao Qi  <yao@codesourcery.com>
872
873         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
874         (tfind_1): Don't call registers_changed, set_traceframe_num,
875         and clear_traceframe_info.
876         Call set_current_traceframe.
877         (set_current_traceframe): call set_traceframe_num.
878
879 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
880
881         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
882         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
883
884 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
885
886         Enable readline in Python in a GDB-specific way and block the
887         standard Python readline module to prevent conflicts with GDB.
888         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
889         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
890         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
891         * python/py-gdb-readline.c: New file.
892         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
893         prototype.
894         * python/python.c (_initialize_python): Call
895         gdbpy_initialize_gdb_readline.
896
897 2012-08-22  Keith Seitz  <keiths@redhat.com>
898
899         * defs.h: Include build-gnulib/config.h
900
901 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
902
903         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
904         and blx pc.
905
906 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
907
908         Add a new "python-interactive" command that starts a standard
909         Python interactive prompt with "pi" as alias, and add "py" as
910         an alias to "python".
911         * NEWS: Mention the new commands.
912         * python/python.c (eval_python_command): New function.
913         (python_interactive_command): For "python-interactive" with
914         arguments, call eval_python_command.  For "python-interactive"
915         without arguments, call PyRun_InteractiveLoop.
916         (_initialize_python): Add "python-interactive" command with
917         "pi" as alias, and add "py" as an alias to "python".
918
919 2012-08-22  Tom Tromey  <tromey@redhat.com>
920
921         * defs.h (quit_flag): Don't declare.
922         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
923         (QUIT): Use new functions.
924         * event-top.c (command_handler): Use clear_quit_flag.
925         (handle_sigint): Use set_quit_flag.
926         (async_request_quit): Use check_quit_flag.  Don't check
927         immediate_quit.
928         * exceptions.c (throw_exception): Use clear_quit_flag.
929         * main.c (captured_main): Use clear_quit_flag.
930         * python/python.c (clear_quit_flag, set_quit_flag)
931         (check_quit_flag): New functions.
932         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
933         clear_quit_flag.
934         * remote.c (remote_wait_as): Use check_quit_flag,
935         clear_quit_flag.
936         (remote_start_remote): Call QUIT.
937         * symfile.c (load_progress): Use check_quit_flag.
938         * top.c (command_loop): Use clear_quit_flag.
939         (command_line_input): Call QUIT.
940         * utils.c (quit_flag): Conditionally define.
941         (clear_quit_flag, check_quit_flag, set_quit_flag): New
942         functions.
943         (prompt_for_continue): Call QUIT.  Use quit, not
944         async_request_quit.
945         * remote-mips.c (mips_expect_timeout): Call QUIT.
946         * monitor.c (monitor_expect): Call QUIT.
947
948 2012-08-22  Tom Tromey  <tromey@redhat.com>
949
950         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
951         (async_init_signals): Update.
952         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
953         (SIGWINCH_HANDLER_BODY): Remove.
954
955 2012-08-22  Tom Tromey  <tromey@redhat.com>
956
957         * jit.c (jit_object_close_impl): Don't malloc the objfile
958         name.
959         * objfiles.c (allocate_objfile): Don't malloc the objfile
960         name.
961         (free_objfile): Don't free the objfile name.
962         * objfiles.h (struct objfile) <name>: Update comment.
963         * symfile.c (reread_symbols): Fix reference counting.  Don't
964         malloc objfile name.
965
966 2012-08-22  Tom Tromey  <tromey@redhat.com>
967
968         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
969         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
970         (symfile_bfd_open): Likewise.
971         (generic_load): Likewise.
972         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
973         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
974         gdb_bfd_open.
975         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
976         Use gdb_bfd_open.
977         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
978         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
979         (pmon_load_fast): Likewise.
980         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
981         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
982         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
983         (macho_check_dsym): Likewise.
984         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
985         (m32r_upload_command): Likewise.
986         * gdb_bfd.h (gdb_bfd_cache): Declare.
987         * gdb_bfd.c (struct gdb_bfd_data): New.
988         (gdb_bfd_cache): New global.
989         (struct gdb_bfd_cache_search): New.
990         (hash_bfd): New function.
991         (eq_bfd): Likewise.
992         (gdb_bfd_open): Likewise.
993         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
994         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
995         gdb_bfd_data.
996         * exec.c (exec_file_attach): Use gdb_bfd_open.
997         * dsrec.c (load_srec): Use gdb_bfd_open.
998
999 2012-08-22  Tom Tromey  <tromey@redhat.com>
1000
1001         * dwarf2read.c (macro_start_file): Update.
1002         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1003         (free_objfile_per_bfd_storage): Destroy macro_cache.
1004         (allocate_objfile, free_objfile): Update.
1005         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1006         New field.
1007         (struct objfile) <macro_cache>: Remove.
1008         * symfile.c (reread_symbols): Update.
1009         * symmisc.c (print_symbol_bcache_statistics): Update.
1010         (print_objfile_statistics): Update.
1011
1012 2012-08-22  Tom Tromey  <tromey@redhat.com>
1013
1014         * elfread.c (elf_symtab_read): Update.
1015         * objfiles.c (objfiles_bfd_data): New global.
1016         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1017         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1018         (allocate_objfile, free_objfile): Update.
1019         (_initialize_objfiles): Initialize objfiles_bfd_data.
1020         * objfiles.h (struct objfile_per_bfd_storage): New.
1021         (struct objfile) <per_bfd>: New field.
1022         <filename_cache>: Remove.
1023         (set_objfile_per_bfd): Declare.
1024         * symfile.c (reread_symbols): Update.  Call
1025         set_objfile_per_bfd.
1026         (allocate_symtab): Update.
1027         * symmisc.c (print_symbol_bcache_statistics): Update.
1028         (print_objfile_statistics): Print the size of the BFD obstack.
1029
1030 2012-08-22  Tom Tromey  <tromey@redhat.com>
1031
1032         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1033         * gdb_bfd.c: Use DEFINE_REGISTRY.
1034         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1035         (gdb_bfd_ref): Call bfd_alloc_data.
1036         (gdb_bfd_unref): Call bfd_free_data.
1037
1038 2012-08-22  Tom Tromey  <tromey@redhat.com>
1039
1040         * registry.h (struct registry_fields): New.
1041         (REGISTRY_FIELDS): Redefine.
1042         (REGISTRY_ACCESS_FIELD): New macro.
1043         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1044         functions.
1045
1046 2012-08-22  Tom Tromey  <tromey@redhat.com>
1047
1048         * auto-load.c (_initialize_auto_load): Update.
1049         * solib-svr4.c (_initialize_svr4_solib): Update
1050         * solib-dsbt.c (_initialize_dsbt_solib): Update.
1051         * solib-darwin.c (_initialize_darwin_solib): Update.
1052         * registry.h: New file.
1053         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1054         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1055         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
1056         (register_program_space_data_with_cleanup)
1057         (register_program_space_data, program_space_alloc_data)
1058         (clear_program_space_data, set_program_space_data)
1059         (program_space_data): Don't declare.
1060         * progspace.c: Use DEFINE_REGISTRY.
1061         (struct program_space_data, struct
1062         program_space_data_registration, struct
1063         program_space_data_registry, program_space_data_registry)
1064         (register_program_space_data_with_cleanup)
1065         (register_program_space_data, program_space_alloc_data)
1066         (program_space_free_data, clear_program_space_data)
1067         (set_program_space_data, program_space_data): Remove.
1068         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
1069         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1070         (register_objfile_data_with_cleanup, register_objfile_data)
1071         (clear_objfile_data, set_objfile_data, objfile_data): Don't
1072         declare.
1073         * objfiles.c: Use DEFINE_REGISTRY.
1074         (struct objfile_data, struct objfile_data_registration, struct
1075         objfile_data_registry, objfile_data_registry)
1076         (register_objfile_data_with_cleanup, register_objfile_data)
1077         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1078         (set_objfile_data, objfile_data): Remove.
1079         (_initialize_objfiles): Update.
1080         * jit.c (_initialize_jit): Update.
1081         * inflow.c (_initialize_inflow): Update.
1082         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
1083         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1084         (register_inferior_data_with_cleanup, register_inferior_data)
1085         (clear_inferior_data, set_inferior_data, inferior_data): Don't
1086         declare.
1087         * inferior.c: Use DEFINE_REGISTRY.
1088         (struct inferior_data, struct inferior_data_registration, struct
1089         inferior_data_registry, inferior_data_registry)
1090         (register_inferior_data_with_cleanup, register_inferior_data)
1091         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
1092         (set_inferior_data, inferior_data): Remove.
1093         * auxv.c (_initialize_auxv): Update.
1094         * ada-lang.c (_initialize_ada_language): Update.
1095         * breakpoint.c (_initialize_breakpoint): Update.
1096         * i386-nat.c (i386_use_watchpoints): Update.
1097
1098 2012-08-22  Tom Tromey  <tromey@redhat.com>
1099
1100         * exec.c (exec_close, exec_file_attach): Update.
1101         (add_to_section_table): Initialize 'key' field.
1102         (add_target_sections, remove_target_sections): Add 'key' argument.
1103         * exec.h (add_target_sections, remove_target_sections): Add
1104         'key' argument.
1105         * solib.c (solib_map_sections, update_solib_list, clear_solib)
1106         (reload_shared_libraries_1): Update.
1107         * target.h (struct target_section) <key>: New field.
1108
1109 2012-08-22  Tom Tromey  <tromey@redhat.com>
1110
1111         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1112
1113 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1114
1115         * symfile.c (allocate_symtab): Use host_address_to_string
1116         function instead of cast of pointer to long which is not
1117         compatible with x86_64-w64-mingw32 build.
1118
1119 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1120
1121         * mips-tdep.c (is_octeon): New function.
1122         (is_octeon_bbit_op): New function.
1123         (mips32_next_pc): Handle Octeon's bbit instructions.
1124         (mips32_instruction_has_delay_slot): Likewise.
1125
1126 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1127
1128         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1129         before the function.
1130
1131 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1132
1133         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1134
1135 2012-08-19  Keith Seitz  <keiths@redhat.com>
1136
1137         PR c++/14365
1138         * c-typeprint.c (c_type_print_varspec_prefix): Pass
1139         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1140
1141 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
1142
1143         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1144         The typo broke "make TAGS".
1145
1146 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
1147
1148         GDB 7.5 released.
1149
1150 2012-08-17  Keith Seitz  <keiths@redhat.com>
1151
1152         PR c++/13356
1153         * gdbtypes.c (strict_type_checking): New variable.
1154         (show_strict_type_checking): New function.
1155         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1156         if strict type checking is disabled.
1157         (_initialize_gdbtypes): Add "check type" subcommand.
1158         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1159
1160 2012-08-17  Keith Seitz  <keiths@redhat.com>
1161
1162         * language.h (type_mode): Remove.
1163         (type_check): Remove.
1164         (struct language_defn): Remove la_type_check.
1165         (STRICT_TYPE): Remove unused macro.
1166         (type_error): Remove.
1167         * language.c (set_type_range_case): Renamed to ...
1168         (set_range_case): ... this.  Update all callers.
1169         Remove type_mode/type_check.
1170         (type_mode): Remove.
1171         (type_check): Remove.
1172         (show_type_command): Remove.
1173         (set_type_command): Remove.
1174         (language_info): Remove type checking output.
1175         (type_error): Remove unused function.
1176         (range_error): Update comment.
1177         (unknown_language_defn): Remove la_type_check.
1178         (auto_language_defn): Likewise.
1179         (local_language_defn): Likewise.
1180         (_initialize_language): Remove "check type" subcommand.
1181         * ada-lang.c (ada_language_defn): Remove la_type_check.
1182         * c-lang.c (c_language_defn): Likewise.
1183         (cplus_language_defn): Likewise.
1184         (asm_language_defn): Likewise.
1185         (minimal_language_defn): Likewise.
1186         * d-lang.c (d_language_defn): Likewise.
1187         * f-lang.c (f_language_defn): Likewise.
1188         * go-lang.c (go_language_defn): Likewise.
1189         * jv-lang.c (java_language_defn): Likewise.
1190         * m2-lang.c (m2_language_defn): Likewise.
1191         * objc-lang.c (objc_language_defn): Likewise.
1192         * opencl-lang.c (opencl_language_defn): Likewise.
1193         * p-lang.c (pascal_language_defn): Likewise.
1194
1195 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
1196
1197         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1198
1199 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1200
1201         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1202         New function.
1203         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1204         using the regache.  Use ia64_hpux_get_register_from_save_state_t
1205         to access the bsp and bspstore registers if not.
1206
1207 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1208
1209         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1210         * breakpoint.c (detach_breakpoints): Change pid parameter into
1211         a ptid.  Adjust code accordingly.
1212         * infrun.c (handle_inferior_event): Delete variable child_pid.
1213         Update call to detach_breakpoints to pass the child ptid for
1214         fork events.
1215         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1216         assert that inferior_ptid's lwp is zero.
1217         (linux_handle_extended_wait): Update call to detach_breakpoints.
1218         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1219         detach_breakpoints.
1220
1221 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1222
1223         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1224         parent, only call detach_breakpoints if tts.tts_event ==
1225         TTEVT_VFORK.
1226
1227 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1228
1229         * dwarf2-frame.c (dwarf2_frame_cache): Use
1230         get_frame_address_in_block instead of get_frame_pc as
1231         the bound for executing the frame's FDE.
1232
1233 2012-08-16  Yao Qi  <yao@codesourcery.com>
1234
1235         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1236         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1237         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1238         (c_type_print_varspec_suffix): Likewise.
1239         * eval.c (evaluate_subexp_standard): Likewise.
1240         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1241         (f_type_print_varspec_suffix): Likewise.
1242         * gdbtypes.c (is_scalar_type): Likewise.
1243         (recursive_dump_type): Likewise.
1244         * infcall.c (value_arg_coerce): Likewise.
1245         * m2-valprint.c (m2_val_print): Likewise.
1246         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1247         (pascal_type_print_varspec_suffix): Likewise.
1248         (pascal_type_print_base): Likewise.
1249         * p-valprint.c (pascal_val_print): Likewise.
1250         (pascal_val_print): Likewise.
1251         * valops.c (value_slice): Likewise.
1252         * valprint.c (scalar_type_p): Likewise.
1253         * valarith.c (value_bitstring_subscript): Remove.
1254         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1255         Remove comment on TYPE_CODE_BITSTRING.
1256
1257         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1258         TYPE_CODE_BITSTRING.
1259
1260         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1261         slot 0.
1262
1263 2012-08-16  Yao Qi  <yao@codesourcery.com>
1264
1265         * tracepoint.c (trace_find_none_command): Remove.
1266         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1267
1268 2012-08-16  Yao Qi  <yao@codesourcery.com>
1269
1270         * remote.c (handle_notification): Remove parameter 'length'.
1271         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1272
1273 2012-08-15  Keith Seitz  <keiths@redhat.com>
1274
1275         * gdbtypes.c (opaque_type_resolution): Make static.
1276         Add missing comment.
1277         (overload_debug): Add missing comment.
1278         (show_opaque_type_resolution): Likewise.
1279         (show_overload_debug): Likewise.
1280         (print_bit_vector): Remove unnecessary forward declaration.
1281         (print_arg_types): Likewise.
1282         (dump_fn_fieldlists): Likewise.
1283         (print_cplus_stuff): Likewise.
1284
1285 2012-08-15  Tom Tromey  <tromey@redhat.com>
1286
1287         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1288         (gdb_bfd_ref): Initialize new field.
1289         (gdb_bfd_unref): Unref the archive BFD.
1290         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1291         parent archive.
1292
1293 2012-08-15  Tom Tromey  <tromey@redhat.com>
1294
1295         PR python/14387:
1296         * python/py-bpevent.c (create_breakpoint_event_object): Update
1297         comment.
1298         * python/py-event.c (evpy_add_attribute): Update comment.
1299         * python/py-exitedevent.c (create_exited_event_object): Fix
1300         reference counting and error handling.
1301         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1302         Fix reference counting.
1303         * python/py-signalevent.c (create_signal_event_object): Fix
1304         reference counting and error handling.
1305         * python/py-stopevent.c (emit_stop_event): Fix reference
1306         counting.
1307         * python/py-threadevent.c (get_event_thread): Return a
1308         borrowed reference.
1309         * python/py-type.c (convert_field): Fix reference counting.
1310
1311 2012-08-15  Tom Tromey  <tromey@redhat.com>
1312
1313         * dwarf2read.c (dwarf_decode_macro_bytes)
1314         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1315         as hash key.
1316
1317 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1318
1319         * infcmd.c (_initialize_infcmd): Update help text for the signal,
1320         stepi, nexti, finish, next, step, jump, and continue commands.
1321         * infrun.c (_initialize_infrun): Update help text for the handle
1322         command.
1323
1324 2012-08-14  Doug Evans  <dje@google.com>
1325
1326         * gdbtypes.c (struct extra): Delete, unused.
1327
1328         * gdbtypes.c: Whitespace cleanup.
1329         (address_space_name_to_int): Remove "extern" from definition.
1330         (_initialize_gdbtypes): Declare with initialize_file_ftype.
1331
1332         * gdbtypes.c (make_pointer_type): Remove redundant setting of
1333         TYPE_POINTER_TYPE (type).
1334
1335 2012-08-14  Gary Benson  <gbenson@redhat.com>
1336
1337         * solib-svr4.c (svr4_free_library_list): Use free_so.
1338
1339 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
1340
1341         * .gitignore: Add go-exp.c.
1342
1343 2012-08-13  Doug Evans  <dje@google.com>
1344
1345         * value.c (show_convenience): Tweak comment.
1346         (_initialize_values): Mention convenience functions in the help text
1347         for "show convenience".
1348
1349 2012-08-13  Yao Qi  <yao@codesourcery.com>
1350
1351         * std-operator.def: Remove TERNOP_SLICE_COUNT.
1352         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1353         TERNOP_SLICE_COUNT.
1354         * eval.c (evaluate_subexp_standard): Likewise.
1355         * expprint.c (print_subexp_standard): Likewise.
1356         (dump_subexp_body_standard): Likewise.
1357         * parse.c (operator_length_standard): Likewise.
1358
1359 2012-08-13  Yao Qi  <yao@codesourcery.com>
1360
1361         * std-operator.def: Remove OP_BITSTRING.
1362         * breakpoint.c (watchpoint_exp_is_const): Update.
1363         * eval.c (evaluate_subexp_standard): Remove handling to
1364         OP_BITSTRING.
1365         * expprint.c (print_subexp_standard): Likewise.
1366         (dump_subexp_body_standard): Likewise.
1367         * parse.c (operator_length_standard): Likewise.
1368         * valops.c (value_bitstring): Remove.
1369         * value.h: Remove the declaration of 'value_bitstring'.
1370
1371 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1372
1373         * linespec.c (find_methods): Remove unused variables `i1' and
1374         `name_len'.
1375         (decode_line_full): Likewise for `arg_start'.
1376
1377 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1378
1379         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1380         (zlib_decompress_section): Likewise for `section_data'.
1381         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1382
1383 2012-08-10  Doug Evans  <dje@google.com>
1384
1385         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1386         * NEWS: Document them.
1387         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1388         function/strfns.py.
1389         * python/py-type.c (typy_array_1): New function.
1390         (typy_array): Call it.
1391         (typy_vector): New function.
1392         (type_object_methods): Add "vector".
1393         * python/lib/gdb/function/__init__.py: New file.
1394         * python/lib/gdb/function/strfns.py: New file.
1395
1396 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1397
1398         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1399         for TYPE_FIELD_BITPOS.
1400         (typy_get_sizeof): Likewise for TYPE_LENGTH.
1401
1402 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
1403
1404         PR cli/10436:
1405         * common/vec.h (VEC_merge): Define.
1406         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1407         (DEF_VEC_ALLOC_FUNC_P): Likewise.
1408         (DEF_VEC_ALLOC_FUNC_O): Likewise.
1409         * completer.c: Include gdb_signals.h.
1410         (signal_completer): Define.
1411         * completer.h (signal_completer): Add prototype.
1412         * infcmd.c (_initialize_infcmd): Assign the command
1413         completer for "signal" to handle_completer.
1414         * infrun.c: Include completer.h.
1415         (handle_completer): Define.
1416         (_initialize_infrun): Declare a new local variable c.  Store the
1417         result of add_com("handle") to it.  Assign the command
1418         completer for "handle" to handle_completer.
1419
1420 2012-08-09  Yao Qi  <yao@codesourcery.com>
1421
1422         * cli/cli-decode.c (set_cmd_prefix): New.
1423         (lookup_cmd_for_prefixlist): New.
1424         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1425         of each cmd_list_element in *prefixlist.
1426         (add_setshow_cmd_full): set_cmd_prefix.
1427         (add_alias_cmd): Likewise.
1428         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1429         Declare 'auto_boolean_enums'.
1430         * cli/cli-setshow.c: Include "observer.h".
1431         (notify_command_param_changed_p): New.
1432         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1433         Remove 'static'.
1434         (do_setshow_command): Split it to ...
1435         (do_set_command, do_show_command): ... them.  New.
1436         (do_set_command): Call observer_notify_command_param_changed if
1437         notify_command_param_changed_p returns true.
1438         (cmd_show_list): Caller update.
1439         * auto-load.c (set_auto_load_cmd): Likewise.
1440         * remote.c (show_remote_cmd): Likewise.
1441         * cli/cli-setshow.h: Update declarations.
1442         * top.c (execute_command): Call do_set_command and do_show_command.
1443
1444         * NEWS: Mention new MI notification.
1445         * mi/mi-interp.c: Declare mi_command_param_changed.
1446         (mi_interpreter_init): Attach mi_command_param_changed to
1447         observer command_param_changed.
1448         (mi_command_param_changed): New.
1449         Remove mi_suppress_breakpoint_notifications.
1450         Define global variable mi_suppress_notification.
1451         (mi_breakpoint_created): Update.
1452         (mi_breakpoint_deleted): Likewise.
1453         (mi_breakpoint_modified): Likewise.
1454         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
1455         'gdb-set' and set mi_suppress_notification.
1456         * mi/mi-main.h: (mi_suppress_notification): New struct.
1457
1458 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
1459             Jan Kratochvil  <jan.kratochvil@redhat.com>
1460
1461         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1462
1463 2012-08-09  Yao Qi  <yao@codesourcery.com>
1464
1465         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1466         (skiplist): Move it to skip.c.
1467         (init_cmd_lists): Remove code setting enablebreaklist and
1468         skiplist to NULL.
1469         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1470         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1471         skiplist.
1472         * gdbcmd.h: Likewise.
1473         * skip.c (_initialize_step_skip): Move 'skiplist' from
1474         cli/cli-cmds.c.
1475
1476 2012-08-09  Yao Qi  <yao@codesourcery.com>
1477
1478         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1479         * gnu-nat.c, symfile.c: Likewise.
1480
1481 2012-08-08  Aaron Gamble  <agamble@google.com>
1482
1483         * utils.c (prompt_for_continue_wait_time): New static global.
1484         (make_command_stats_cleanup): Initialize it.
1485         (report_command_stats): Subtract time waiting for user.
1486         (prompt_for_continue): Track time waiting for user.
1487         (defaulted_query): Track time waiting for user.
1488
1489 2012-08-08  Doug Evans  <dje@google.com>
1490
1491         * eval.c (evaluate_subexp_standard): Fix thinko in handling
1492         UNOP_MEMVAL_TYPE.
1493         * expprint.c (print_subexp_standard, case OP_TYPE): New.
1494         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1495         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1496         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1497         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1498         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1499         elt.
1500         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1501         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1502         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1503         (dump_prefix_expression): Handle OP_TYPE.
1504
1505 2012-08-08  Keith Seitz  <keiths@redhat.com>
1506
1507         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1508         addr_start.
1509
1510 2012-08-08  Doug Evans  <dje@google.com>
1511
1512         * linux-thread-db.c: #include "gdb_vecs.h".
1513         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
1514         updated.
1515         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
1516         (thread_db_load_search): Use a vector to iterate over path elements.
1517         Handle text appearing after "$pdir".
1518
1519         * gdb_string.h: Moved to ...
1520         * common/gdb_string.h: ... here.
1521         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1522         gdb_string.h and gdb_assert.h.
1523
1524 2012-08-08  Yao Qi  <yao@codesourcery.com>
1525
1526         * tic6x-tdep.c (tic6x_register_to_value): Remove.
1527         (tic6x_value_to_register): Likewise.
1528         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1529         and set_gdbarch_value_to_register.
1530
1531 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1532             Jean-Marc Saffroy  <saffroy@gmail.com>
1533
1534         PR 11804
1535         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
1536         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1537         * gcore.c (gcore_create_callback): New function comment.  Add modified
1538         parameter.  Only write modified regions.  Set SEC_READONLY exactly
1539         according to MODIFIED.
1540         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
1541         the passed modified value to FUNC.
1542         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1543         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1544         first.  New variables modified and has_anonymous.  Parse the lines of
1545         smaps file.  Add the passed MODIFIED value to FUNC.
1546         * procfs.c (find_memory_regions_callback): Add the passed modified
1547         value.
1548
1549 2012-08-06  Tom Tromey  <tromey@redhat.com>
1550
1551         * dwarf2-frame.c (clear_pointer_cleanup): New function.
1552         (dwarf2_frame_cache): Use it.
1553         * frame-unwind.h (frame_sniffer_ftype): Document prologue
1554         cache initialization constraint.
1555
1556 2012-08-06  Tom Tromey  <tromey@redhat.com>
1557
1558         PR python/14386:
1559         * varobj.c (update_dynamic_varobj_children): Don't call
1560         PyIter_Check.
1561
1562 2012-08-06  Tom Tromey  <tromey@redhat.com>
1563
1564         PR cli/14392:
1565         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1566
1567 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
1568
1569         * NEWS: New entry for 'cd' default parameters.
1570         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1571
1572 2012-08-03  Tom Tromey  <tromey@redhat.com>
1573
1574         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1575         return.
1576
1577 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1578
1579         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1580         to attempting lseek/write.
1581         (inf_child_fileio_pread): Likewise for pread.
1582
1583 2012-08-02  Yao Qi  <yao@codesourcery.com>
1584
1585         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1586         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1587         add_setshow_zinteger_cmd.
1588         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1589         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1590         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1591         instead of add_setshow_zinteger_cmd.
1592         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1593         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1594         instead of add_setshow_zinteger_cmd.
1595         * frame.c (frame_debug): Add 'unsigned'.
1596         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1597         add_setshow_zinteger_cmd.
1598         * frame.h: Update the declaration of 'frame_debug'.
1599         * gdbtypes.c (overload_debug): Add 'unsigned'.
1600         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1601         add_setshow_zinteger_cmd.
1602         * inferior.h: Update declaration of 'debug_infrun'.
1603         * infrun.c (debug_infrun): Add 'unsigned'.
1604         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1605         add_setshow_zinteger_cmd.
1606         * jit.c (jit_debug): Add 'unsigned'.
1607         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1608         add_setshow_zinteger_cmd.
1609         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1610         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1611         instead of add_setshow_zinteger_cmd.
1612         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1613         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1614         add_setshow_zinteger_cmd.
1615         * machoread.c (mach_o_debug_level): Add 'unsigned'.
1616         (_initialize_machoread): Call add_setshow_zuinteger_cmd
1617         instead of add_setshow_zinteger_cmd.
1618         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1619         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1620         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1621         intead of add_setshow_zinteger_cmd.
1622         * mips-tdep.c (mips_debug): Add 'unsigned'.
1623         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1624         instead of add_setshow_zinteger_cmd.
1625         * monitor.c (monitor_debug): Add 'unsigned'.
1626         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1627         add_setshow_zinteger_cmd.
1628         * observer.c (observer_debug): Add 'unsigned'.
1629         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1630         add_setshow_zinteger_cmd.
1631         * parse.c (expressiondebug): Add 'unsigned'.
1632         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1633         add_setshow_zinteger_cmd.
1634         * record.c (record_debug): Add 'unsigned'.
1635         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1636         add_setshow_zinteger_cmd.
1637         * record.h: Update the declaration of 'record_debug'.
1638         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1639         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1640         add_setshow_zinteger_cmd.
1641         * serial.c (global_serial_debug_p): Add 'unsigned'.
1642         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1643         add_setshow_zinteger_cmd.
1644         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1645         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1646         add_setshow_zinteger_cmd.
1647         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1648         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1649         add_setshow_zinteger_cmd.
1650         * target.c (targetdebug): Add 'unsigned'.
1651         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1652         add_setshow_zinteger_cmd.
1653         * valops.c (overload_debug): Add 'unsigned'.
1654         * varobj.c (varobjdebug): Add 'unsigned'.
1655         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1656         add_setshow_zinteger_cmd.
1657         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1658         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1659         instead of add_setshow_zinteger_cmd.
1660
1661         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1662         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1663         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1664         instead of add_setshow_zinteger_cmd.
1665         * gdbarch.c, gdbarch.h: Re-generated.
1666
1667 2012-08-02  Yao Qi  <yao@codesourcery.com>
1668
1669         * nto-tdep.c: Don't include cli/cli-decode.h and
1670         cli/cli-cmds.h.
1671         (_initialize_nto_tdep): Remove.
1672         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1673         Remove field.
1674         Remove macro nto_internal_debugging.
1675
1676 2012-08-01  Richard Henderson  <rth@redhat.com>
1677
1678         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1679         (mep-*-*) [gdb_target_obs]: Likewise.
1680
1681 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
1682
1683         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1684         linux_get_siginfo_type.
1685
1686 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1687
1688         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1689         AT_ENTRY_POINT.
1690         (call_function_by_hand) <ON_STACK>: Call write_memory with
1691         gdbarch_breakpoint_from_pc, if possible.
1692         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1693         here.
1694
1695 2012-07-31  Yao Qi  <yao@codesourcery.com>
1696
1697         * tracepoint.c: Add 'static' for some variables.
1698
1699 2012-07-31  Yao Qi  <yao@codesourcery.com>
1700
1701         * go32-nat.c: Declare _initialize_go32_nat.
1702         * ser-go32.c: Declare _initialize_ser_dos.
1703         * top.c (do_chdir_cleanup): Add 'static'.
1704
1705 2012-07-30  Keith Seitz  <keiths@redhat.com>
1706
1707         * linespec.c (linespec_lex_number): A number followed
1708         by quotes is a valid number, too.
1709
1710 2012-07-30  Tom Tromey  <tromey@redhat.com>
1711
1712         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1713
1714 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
1715
1716         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1717         attempt to 4-byte-align HW breakpoint addresses for Thumb.
1718
1719 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
1720
1721         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1722         invalid or reevaluated to prevent prevent references to possibly
1723         delete'd type objects being left in the varobj.
1724
1725 2012-07-27  Tom Tromey  <tromey@redhat.com>
1726             Jan Kratochvil  <jan.kratochvil@redhat.com>
1727
1728         * copying.awk: Print buffer-read-only and vi ro markers.
1729         * copying.c: Rebuild.
1730         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1731         * gdbarch.c, gdbarch.h: Rebuild.
1732         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1733         buffer-read-only and vi ro markers.
1734         * features/arm-with-iwmmxt.c: Rebuild.
1735         * features/arm-with-m-fpa-layout.c: Rebuild.
1736         * features/arm-with-m-vfp-d16.c: Rebuild.
1737         * features/arm-with-m.c: Rebuild.
1738         * features/arm-with-neon.c: Rebuild.
1739         * features/arm-with-vfpv2.c: Rebuild.
1740         * features/arm-with-vfpv3.c: Rebuild.
1741         * features/i386/amd64-avx-linux.c: Rebuild.
1742         * features/i386/amd64-avx.c: Rebuild.
1743         * features/i386/amd64-linux.c: Rebuild.
1744         * features/i386/amd64.c: Rebuild.
1745         * features/i386/i386-avx-linux.c: Rebuild.
1746         * features/i386/i386-avx.c: Rebuild.
1747         * features/i386/i386-linux.c: Rebuild.
1748         * features/i386/i386-mmx-linux.c: Rebuild.
1749         * features/i386/i386-mmx.c: Rebuild.
1750         * features/i386/i386.c: Rebuild.
1751         * features/i386/x32-avx-linux.c: Rebuild.
1752         * features/i386/x32-avx.c: Rebuild.
1753         * features/i386/x32-linux.c: Rebuild.
1754         * features/i386/x32.c: Rebuild.
1755         * features/mips-dsp-linux.c: Rebuild.
1756         * features/mips-linux.c: Rebuild.
1757         * features/mips64-dsp-linux.c: Rebuild.
1758         * features/mips64-linux.c: Rebuild.
1759         * features/rs6000/powerpc-32.c: Rebuild.
1760         * features/rs6000/powerpc-32l.c: Rebuild.
1761         * features/rs6000/powerpc-403.c: Rebuild.
1762         * features/rs6000/powerpc-403gc.c: Rebuild.
1763         * features/rs6000/powerpc-405.c: Rebuild.
1764         * features/rs6000/powerpc-505.c: Rebuild.
1765         * features/rs6000/powerpc-601.c: Rebuild.
1766         * features/rs6000/powerpc-602.c: Rebuild.
1767         * features/rs6000/powerpc-603.c: Rebuild.
1768         * features/rs6000/powerpc-604.c: Rebuild.
1769         * features/rs6000/powerpc-64.c: Rebuild.
1770         * features/rs6000/powerpc-64l.c: Rebuild.
1771         * features/rs6000/powerpc-7400.c: Rebuild.
1772         * features/rs6000/powerpc-750.c: Rebuild.
1773         * features/rs6000/powerpc-860.c: Rebuild.
1774         * features/rs6000/powerpc-altivec32.c: Rebuild.
1775         * features/rs6000/powerpc-altivec32l.c: Rebuild.
1776         * features/rs6000/powerpc-altivec64.c: Rebuild.
1777         * features/rs6000/powerpc-altivec64l.c: Rebuild.
1778         * features/rs6000/powerpc-cell32l.c: Rebuild.
1779         * features/rs6000/powerpc-cell64l.c: Rebuild.
1780         * features/rs6000/powerpc-e500.c: Rebuild.
1781         * features/rs6000/powerpc-e500l.c: Rebuild.
1782         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1783         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1784         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1785         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1786         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1787         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1788         * features/rs6000/powerpc-vsx32.c: Rebuild.
1789         * features/rs6000/powerpc-vsx32l.c: Rebuild.
1790         * features/rs6000/powerpc-vsx64.c: Rebuild.
1791         * features/rs6000/powerpc-vsx64l.c: Rebuild.
1792         * features/rs6000/rs6000.c: Rebuild.
1793         * features/s390-linux32.c: Rebuild.
1794         * features/s390-linux32v1.c: Rebuild.
1795         * features/s390-linux32v2.c: Rebuild.
1796         * features/s390-linux64.c: Rebuild.
1797         * features/s390-linux64v1.c: Rebuild.
1798         * features/s390-linux64v2.c: Rebuild.
1799         * features/s390x-linux64.c: Rebuild.
1800         * features/s390x-linux64v1.c: Rebuild.
1801         * features/s390x-linux64v2.c: Rebuild.
1802         * features/tic6x-c62x-linux.c: Rebuild.
1803         * features/tic6x-c62x.c: Rebuild.
1804         * features/tic6x-c64x-linux.c: Rebuild.
1805         * features/tic6x-c64x.c: Rebuild.
1806         * features/tic6x-c64xp-linux.c: Rebuild.
1807         * features/tic6x-c64xp.c: Rebuild.
1808
1809 2012-07-27  Tom Tromey  <tromey@redhat.com>
1810
1811         * c-exp.y (classify_name): Avoid assignment in condition.
1812
1813 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
1814
1815         * amd64-windows-tdep.c: Include "frame.h".
1816         (amd64_windows_skip_trampoline_code): New function.
1817         (amd64_windows_init_abi): Add trampoline registration.
1818
1819 2012-07-27  Yao Qi  <yao@codesourcery.com>
1820
1821         * tracepoint.c (cur_traceframe_number): Remove.
1822         (set_tfile_traceframe): Remove.
1823         (tfile_trace_find, tfile_fetch_registers): Update callers.
1824         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1825         (tfile_open, tfile_trace_find): Likewise.
1826
1827 2012-07-27  Yao Qi  <yao@codesourcery.com>
1828
1829         * thread.c (switch_to_thread): Don't call registers_changed.
1830
1831 2012-07-26  Tom Tromey  <tromey@redhat.com>
1832
1833         * Makefile.in (SFILES): Remove objc-exp.y.
1834         (YYFILES): Remove objc-exp.c.
1835         (YYOBJ): Remove objc-exp.o.
1836         (local-maintainer-clean): Don't mention objc-exp.c.
1837         * c-exp.y: Include objc-lang.h.
1838         (%union) <class>: New field.
1839         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1840         (exp): Clone subscript production for OBJC_LBRAC.  Add various
1841         Objective C productions.
1842         (msglist, msgarglist, msgarg): New productions.
1843         (array_mod, func_mod, operator): Clone productions for
1844         OBJC_LBRAC.
1845         (parse_string_or_char): Handle '@' strings.
1846         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
1847         (classify_name): Check la_name_of_this.  Recognize ObjC class
1848         names.
1849         * objc-exp.y: Remove.
1850         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1851         * objc-lang.h (objc_parse, objc_error): Don't declare.
1852
1853 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
1854
1855         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1856
1857 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1858
1859         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1860         and decrement.
1861
1862 2012-07-26  Tom Tromey  <tromey@redhat.com>
1863
1864         * copying.c: Rebuild.
1865         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
1866         'no_class'.
1867
1868 2012-07-26  Tom Tromey  <tromey@redhat.com>
1869
1870         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1871         immediate_quit.
1872         (print_objfile_statistics): Likewise.
1873         (maintenance_print_symbols): Likewise.
1874         (maintenance_print_msymbols): Likewise.
1875         (maintenance_print_objfiles): Likewise.
1876         * psymtab.c (print_partial_symbols): Call QUIT.
1877         (maintenance_print_psymbols): Likewise.  Don't modify
1878         immediate_quit.
1879         * copying.c (show_copying_command): Don't modify immediate_quit.
1880         (show_warranty_command): Likewise.
1881         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1882
1883 2012-07-26  Keith Seitz  <keiths@redhat.com>
1884
1885         * linespec.c (linespec_lexer_lex_number): The input
1886         is also a valid number if the next character is a comma
1887         or colon.
1888
1889 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
1890
1891         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1892         configure options.
1893
1894 2012-07-26  Tristan Gingold  <gingold@adacore.com>
1895
1896         * machoread.c: Include gdb_bfd.h.
1897
1898 2012-07-26  Tristan Gingold  <gingold@adacore.com>
1899
1900         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1901         offset.
1902
1903 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1904
1905         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1906         SIZE to size_t.
1907         (dwarf2_evaluate_loc_desc): Likewise.
1908         (dwarf2_loc_desc_needs_frame): Likewise.
1909         (locexpr_describe_location_1): Likewise.
1910         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1911         size_t.
1912         (struct dwarf2_loclist_baton): Likewise.
1913         * dwarf2read.c (struct dwarf_block): Likewise.
1914         (dump_die_shallow): Use pulongest to print dwarf_block.size.
1915         (decode_locdesc): Expand SIZE and I to size_t.
1916
1917 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1918
1919         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1920
1921 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
1922
1923         * doublest.c (convert_doublest_to_floatformat): If the exponent
1924         is too small, treat the value as zero.  If the exponent is too
1925         large, treat the value as infinity.
1926
1927 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
1928
1929         * configure.ac: Add --enable-lmcheck configure option.
1930         * configure: Regenerate.
1931
1932 2012-07-25  Tom Tromey  <tromey@redhat.com>
1933
1934         * NEWS: Mention maint info bfds.
1935         * gdb_bfd.c (all_bfds): New global.
1936         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1937         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1938         New functions.
1939
1940 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
1941
1942         * configure.tgt: Add v850*-*-rtems*.
1943
1944 2012-07-25  Tom Tromey  <tromey@redhat.com>
1945
1946         * macrotab.c (macro_bcache_str): Remove cast.
1947
1948 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
1949
1950         * linespec.c (linespec_lexer_lex_number): Update comments,
1951         change the return and add check to make sure the input is
1952         the decimal numbers.
1953         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1954         false, call linespec_lexer_lex_string.
1955
1956 2012-07-24  Tom Tromey  <tromey@redhat.com>
1957
1958         * symfile.c (symbol_file_add): Don't open BFD twice.
1959
1960 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
1961
1962         * breakpoint.c (create_breakpoint): Store condition for pending
1963         breakpoints.
1964
1965 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
1966
1967         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1968         (m68k_return_value): Handle complex types like structures.
1969         (m68k_svr4_return_value): Likewise.
1970
1971 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1972
1973         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1974         parameters to bfd_get_section_name.
1975
1976 2012-07-24  Yao Qi  <yao@codesourcery.com>
1977
1978         * cli/cli-setshow.c: Handle case 'var_uinteger'
1979         and 'var_zuninteger' together.  Handle case 'var_integer' and
1980         'var_zinteger' together.
1981
1982 2012-07-23  Keith Seitz  <keiths@redhat.com>
1983
1984         * linespec.c (convert_linespec_to_sal): Don't add
1985         any symbols to the result vector if symbol_to_sal
1986         returns zero.
1987
1988 2012-07-23  Keith Seitz  <keiths@redhat.com>
1989
1990         * linespec.c (decode_objc): Record the function name
1991         in the linespec.
1992
1993 2012-07-23  Tom Tromey  <tromey@redhat.com>
1994
1995         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
1996         counting.
1997         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1998         (map_vmap): Acquire a reference to the BFD.
1999
2000 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2001
2002         * p-valprint.c (pascal_object_print_value): Replace potentially
2003         unsafe alloca with xmalloc/xfree.
2004         * valops.c (search_struct_method): Likewise.
2005
2006 2012-07-23  Tom Tromey  <tromey@redhat.com>
2007
2008         * solib-svr4.c (enable_break): Update.
2009         * bfd-target.h (target_bfd_reopen): Update documentation.
2010
2011 2012-07-23  Tom Tromey  <tromey@redhat.com>
2012
2013         * symfile.c (separate_debug_file_exists): Update.
2014         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2015         (reread_symbols): Update.
2016         * elfread.c (build_id_verify): Update.
2017         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2018         bfd_open_maybe_remote.
2019
2020 2012-07-23  Tom Tromey  <tromey@redhat.com>
2021
2022         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2023
2024 2012-07-23  Tom Tromey  <tromey@redhat.com>
2025
2026         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2027         and 'abfd'.
2028         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2029         and 'abfd'.
2030         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2031         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2032         'abfd'.
2033         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2034         * objfiles.c (allocate_objfile): Acquire a new reference.
2035         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2036         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2037         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2038         a cleanup for 'nbfd'.
2039         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2040         for 'nbfd'.
2041         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2042         make a cleanup for 'abfd'.
2043         (symbol_file_add): Make a BFD cleanup.
2044
2045 2012-07-23  Tom Tromey  <tromey@redhat.com>
2046
2047         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2048         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2049         * corelow.c (core_open): Use gdb_bfd_fopen.
2050         * dsrec.c (load_srec): Use gdb_bfd_openr.
2051         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2052         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2053         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2054         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2055         (gdb_bfd_fdopenr): New functions.
2056         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2057         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2058         (gdb_bfd_fdopenr): Declare.
2059         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2060         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2061         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2062         gdb_bfd_openr_next_archived_file.
2063         (macho_check_dsym): Use gdb_bfd_openr.
2064         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2065         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2066         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2067         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2068         gdb_bfd_openr.
2069         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2070         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2071         gdb_bfd_openr_next_archived_file.
2072         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2073         Use gdb_bfd_openr.
2074         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2075         gdb_bfd_openr.
2076         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2077         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2078         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2079         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2080         (symfile_bfd_open): Use gdb_bfd_fopen.
2081         (generic_load): Use gdb_bfd_openr.
2082         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2083
2084 2012-07-23  Tom Tromey  <tromey@redhat.com>
2085
2086         * bfd-target.c (target_bfd_reopen): Update.
2087         * cli/cli-dump.c (bfd_openr_with_cleanup)
2088         (bfd_openw_with_cleanup): Update.
2089         * corelow.c (core_open): Update.
2090         * dsrec.c (load_srec): Update.
2091         * exec.c (exec_file_attach): Update.
2092         * gcore.c (create_gcore_bfd): Update.
2093         * gdb_bfd.c (gdb_bfd_ref): Return void.
2094         (gdb_bfd_open): Update.
2095         * gdb_bfd.h (gdb_bfd_ref): Return void.
2096         Update comments.
2097         * jit.c (jit_bfd_try_read_symtab): Update.
2098         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2099         * machoread.c (macho_symfile_read_all_oso): Update.
2100         (macho_check_dsym): Update.
2101         * procfs.c (insert_dbx_link_bpt_in_file): Update.
2102         * remote-m32r-sdi.c (m32r_load): Update.
2103         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2104         * rs6000-nat.c (add_vmap): Update.
2105         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2106         Update.
2107         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2108         * solib-spu.c (spu_bfd_open): Update.
2109         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2110         * spu-linux-nat.c (spu_bfd_open): Update.
2111         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2112         (generic_load): Update.
2113         * windows-nat.c (windows_make_so): Update.
2114
2115 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2116
2117         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2118
2119 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
2120
2121         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2122         SIGTRAMP_FRAME unwinding.
2123
2124 2012-07-20  Doug Evans  <dje@google.com>
2125
2126         * NEWS: Document new options "set/show use-deprecated-index-sections",
2127         and delete reference to --use-deprecated-index-sections.
2128         * symfile.h (use_deprecated_index_sections): Delete.
2129         * dwarf2read.c (use_deprecated_index_sections): Make static.
2130         (read_index_from_section): Update wording of how to load
2131         deprecated index sections.
2132         (_initialize_dwarf2_read): New options
2133         "set/show use-deprecated-index-sections".
2134         * main.c (captured_main): Delete --use-deprecated-index-sections.
2135
2136 2012-07-20  Pedro Alves  <palves@redhat.com>
2137
2138         PR threads/11692
2139         PR gdb/12203
2140
2141         * infrun.c (handle_inferior_event) <new thread>: Don't special
2142         case minus_one_ptid.
2143         <TARGET_WAITKIND_SPURIOUS>: Ditto.
2144         * linux-thread-db.c (thread_get_info_callback): Don't return early
2145         if the thread is zombie.
2146         (thread_from_lwp): Change return type to void.  Rewrite stale
2147         comment.
2148         (attach_thread): Don't return early if the thread is zombie,
2149         instead set its "dying" flag.
2150         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2151         (find_new_threads_callback): Don't return early if the thread is
2152         zombie.
2153
2154 2012-07-20  Pedro Alves  <palves@redhat.com>
2155
2156         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2157         * target.c (target_wait): Likewise.
2158         (str_comma_list_concat_elem, do_option, target_options_to_string):
2159         New functions.
2160         * target.h (target_options_to_string): Declare.
2161
2162 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
2163             Tom Tromey  <tromey@redhat.com>
2164
2165         * dwarf2read.c (dwarf_decode_macros)
2166         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2167         DW_MACRO_GNU_transparent_include_alt>: New cases.
2168         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2169         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2170
2171 2012-07-20  Tom Tromey  <tromey@redhat.com>
2172
2173         * dwarf2read.c (try_open_dwo_file): Don't call
2174         gdb_bfd_stash_filename.
2175
2176 2012-07-20  Pedro Alves  <palves@redhat.com>
2177
2178         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2179         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2180         (i386_process_record): Tweak description comments.
2181
2182 2012-07-20  Pedro Alves  <palves@redhat.com>
2183
2184         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2185         (i386_process_record): Use record_read_memory.
2186         * record.c (record_read_memory): New function.
2187         (record_arch_list_add_mem, record_exec_insn): Use
2188         record_read_memory.
2189         * record.h (record_read_memory): Declare.
2190
2191 2012-07-20  Yao Qi  <yao@codesourcery.com>
2192
2193         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2194         NULL for xfree.
2195
2196 2012-07-19  Pedro Alves  <palves@redhat.com>
2197
2198         * record.c (record_resume): Ask the target beneath to report all
2199         signals.
2200
2201 2012-07-19  Doug Evans  <dje@google.com>
2202
2203         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2204         there's no section at address zero.
2205         (dwarf2_record_block_ranges): Ditto.
2206
2207 2012-07-19  Yao Qi  <yao@codesourcery.com>
2208
2209         * command.h, remote.c: Fix a typo in comment.
2210
2211 2012-07-19  Tom Tromey  <tromey@redhat.com>
2212
2213         PR exp/13206:
2214         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2215         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2216         OP_DECLTYPE>: New cases.
2217         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2218         (type_exp): Add new productions.
2219         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2220         and decltype.
2221         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2222         New case.
2223         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2224         OP_DECLTYPE>: New case.
2225         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2226         New case.
2227         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2228         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2229
2230 2012-07-19  Tom Tromey  <tromey@redhat.com>
2231
2232         * c-exp.y (enum token_flags): New.
2233         (struct token) <cxx_only>: Remove.
2234         <flags>: New field.
2235         (tokentab3, tokentab2, ident_tokens): Update.
2236         (lex_one_token): Update.  Handle FLAG_SHADOW.
2237
2238 2012-07-19  Tom Tromey  <tromey@redhat.com>
2239
2240         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2241         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2242         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2243         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
2244         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
2245         type_exp production where appropriate.
2246         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2247         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2248         <UNOP_MEMVAL_TYPE>: New case.
2249         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2250         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2251         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2252         <UNOP_MEMVAL_TYPE>: New case.
2253         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2254         UNOP_REINTERPRET_CAST>: Update.
2255         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2256         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2257         UNOP_REINTERPRET_CAST>: Update.
2258         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2259         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2260         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2261         constants.
2262
2263 2012-07-19  Yao Qi  <yao@codesourcery.com>
2264             Jan Kratochvil <jan.kratochvil@redhat.com>
2265
2266         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2267         and case 'var_optional_filename' together.
2268         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2269         instead of add_setshow_optional_filename_cmd for setshow command
2270         'args'.  Set completer for 'set args'.
2271
2272 2012-07-18  Doug Evans  <dje@google.com>
2273
2274         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2275         * common/gdb_vecs.c: New file, contents from utils.c.
2276         * common/host-defs.h: New file, contents from defs.h.
2277         * utils.h: New file, contents from defs.h.
2278         * defs.h: Move all declarations of objects defined in utils.c
2279         to utils.h (except QUIT() and related).
2280         #include "utils.h", "host-defs.h".
2281         * probe.h (probe_p): Move here from gdb_vecs.h.
2282         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2283         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2284         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2285         * Makefile.in (SFILES): Add common/gdb_vecs.c.
2286         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2287         (COMMON_OBS): Add gdb_vecs.o.
2288         (gdb_vecs.o): New rule.
2289
2290 2012-07-18  Keith Seitz  <keiths@redhat.com>
2291
2292         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2293         parameter.  If non-zero, use SYMNAME as the canonical name
2294         for the SaL.
2295         Update all callers.
2296         (convert_linespec_to_sals): Use add_sal_to_sals for
2297         expressions, too.
2298         (decode_line_full): No need to "fill in missing canonical names"
2299         anymore. Simply make cleanups for the allocated names.
2300
2301 2012-07-18  Keith Seitz  <keiths@redhat.com>
2302
2303         * linespec.c (struct linespec): Constify expression,
2304         source_filename, function_name, and label_name.
2305         (symbol_not_found_error): Make all parameters const.
2306         (linespec_parser_delete): No need to check for NULL
2307         when using xfree. Cast const char * to char * for xfree.
2308
2309 2012-07-18  Keith Seitz  <keiths@redhat.com>
2310
2311         * breakpoint.c (invalid_thread_id_error): New function.
2312         (find_condition_and_thread): Use invalid_thread_id_error.
2313         (watch_command_1): Likewise.
2314
2315 2012-07-18  Tom Tromey  <tromey@redhat.com>
2316
2317         * cc-with-index.sh, cc-with-dwz.sh: Remove.
2318         * contrib/cc-with-tweaks.sh: New file.
2319
2320 2012-07-18  Tom Tromey  <tromey@redhat.com>
2321
2322         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2323         (locate_dwz_sections): Recognize .gdb_index.
2324         (create_cus_from_index_list): New function.
2325         (create_cus_from_index): Use it.  Handle .dwz data.
2326         (read_index_from_section): New function, extracted from
2327         dwarf2_read_index.
2328         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
2329         if needed.
2330
2331 2012-07-18  Tom Tromey  <tromey@redhat.com>
2332
2333         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2334         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2335         <is_dwz>: New field.
2336         (struct dwz_file): New.
2337         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2338         (locate_dwz_sections, dwarf2_get_dwz_file)
2339         (get_abbrev_section_for_cu): New functions.
2340         (error_check_comp_unit_head, read_and_check_comp_unit_head)
2341         (read_and_check_type_unit_head): Add abbrev_section argument.
2342         (create_debug_types_hash_table): Update.
2343         (init_cutu_and_read_dies): Use proper abbrev section.
2344         (init_cutu_and_read_dies_no_follow): Likewise.
2345         (set_partial_user): Do nothing if PST==NULL.
2346         (read_comp_units_from_section): New function.
2347         (create_all_comp_units): Use it.
2348         (scan_partial_symbols, partial_die_parent_scope): Update.
2349         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2350         (process_imported_unit_die, read_partial_die): Handle .dwz files.
2351         (find_partial_die): Add offset_in_dwz argument.  Update.
2352         (guess_partial_die_structure_name, fixup_partial_die): Update.
2353         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2354         DW_FORM_GNU_strp_alt.
2355         (read_indirect_string_from_dwz): New function.
2356         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2357         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2358         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2359         (follow_die_offset): Add offset_in_dwz argument.
2360         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2361         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2362         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2363         Handle new macro forms.
2364         (dwarf_decode_macros): Update.
2365         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2366         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2367         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2368         (create_debug_types_hash_table): Use correct abbrev section.
2369         (get_debug_line_section): New function.
2370         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2371         (process_full_comp_unit): Pass 'required' argument to
2372         end_symtab_get_static_block.
2373         * buildsym.h (end_symtab_get_static_block): Update.
2374         * buildsym.c (end_symtab_get_static_block): Add 'required'
2375         argument.
2376         (end_symtab, end_expandable_symtab): Update.
2377
2378 2012-07-18  Tom Tromey  <tromey@redhat.com>
2379
2380         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2381         (pagesize): Remove.
2382         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2383         (zlib_decompress_section): Remove.
2384         (dwarf2_read_section): Use gdb_bfd_map_section.
2385         (munmap_section_buffer): Remove.
2386         (free_dwo_file, dwarf2_per_objfile_free): Don't use
2387         munmap_section_buffer.
2388         * gdb_bfd.c: Include zlib.h, sys/mman.h.
2389         (struct gdb_bfd_section_data): New.
2390         (free_one_bfd_section): New function.
2391         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2392         (get_section_descriptor, zlib_decompress_section)
2393         (gdb_bfd_map_section): New functions.
2394         * gdb_bfd.h (gdb_bfd_map_section): Declare.
2395
2396 2012-07-18  Tom Tromey  <tromey@redhat.com>
2397
2398         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2399
2400 2012-07-18  Tom Tromey  <tromey@redhat.com>
2401
2402         * gdb_bfd.c (struct gdb_bfd_data): New.
2403         (gdb_bfd_cache): New global.
2404         (struct gdb_bfd_cache_search): New.
2405         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2406         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2407         * gdb_bfd.h (gdb_bfd_open): Declare.
2408
2409 2012-07-18  Tom Tromey  <tromey@redhat.com>
2410
2411         * utils.c (make_cleanup_bfd_unref): Rename from
2412         make_cleanup_bfd_close.
2413         * defs.h (make_cleanup_bfd_unref): Rename from
2414         make_cleanup_bfd_close.
2415         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2416         (bfd_openw_with_cleanup): Update.
2417         * corelow.c (core_open): Update.
2418         * dsrec.c (load_srec): Update.
2419         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2420         * remote-m32r-sdi.c (m32r_load): Update.
2421         * remote-mips.c (mips_load_srec): Update.
2422         (pmon_load_fast): Update.
2423         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2424         Update.
2425         (darwin_bfd_open): Update.
2426         * solib.c (solib_bfd_fopen): Update.
2427         * symfile-mem.c (symbol_file_add_from_memory): Update.
2428         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2429         (symfile_bfd_open): Update.
2430         (generic_load): Update.
2431
2432 2012-07-18  Tom Tromey  <tromey@redhat.com>
2433
2434         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2435         (pmon_load_fast): Likewise.
2436         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2437         (m32r_upload_command): Likewise.
2438         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2439         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2440         Use make_cleanup_bfd_close.
2441
2442 2012-07-18  Tom Tromey  <tromey@redhat.com>
2443
2444         * symfile.c (symfile_bfd_open): Don't copy name.  Call
2445         gdb_bfd_stash_filename.
2446         (load_command): Open the new BFD before freeing the old.
2447         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2448         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2449         Call gdb_bfd_stash_filename.
2450         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2451         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
2452         gdb_bfd_stash_filename.
2453         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2454         Free found_pathname.
2455         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
2456         gdb_bfd_stash_filename.
2457         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2458         * machoread.c (macho_add_oso_symfile): Call
2459         gdb_bfd_stash_filename.
2460         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
2461         gdb_bfd_stash_filename.
2462         (macho_check_dsym): Don't copy filename.  Call
2463         gdb_bfd_stash_filename.
2464         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2465         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2466         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2467         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2468         * exec.c (exec_close): Don't free the BFD's filename.
2469         (exec_file_attach): Don't copy the filename.  Call
2470         gdb_bfd_stash_filename.
2471         * corelow.c (core_close): Don't free the BFD's filename.
2472         (core_open): Call gdb_bfd_stash_filename.
2473         * corefile.c (reopen_exec_file): Remove #if 0 code.
2474         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
2475         pathname.
2476         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2477
2478 2012-07-18  Tom Tromey  <tromey@redhat.com>
2479
2480         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2481         gdb_bfd_unref.
2482         (free_dwo_file): Use gdb_bfd_unref.
2483         * cli/cli-dump.c: Include gdb_bfd.h.
2484         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2485         (bfd_openr_with_cleanup): Likewise.
2486         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2487         gdb_bfd_unref.
2488         * utils.c: Include gdb_bfd.h.
2489         (do_bfd_close_cleanup): Use gdb_bfd_unref.
2490         * symfile.c: Include gdb_bfd.h.
2491         (separate_debug_file_exists): Use gdb_bfd_unref.
2492         (bfd_open_maybe_remote): Use gdb_bfd_ref.
2493         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2494         (generic_load): Use gdb_bfd_ref.
2495         (reread_symbols): Use gdb_bfd_unref.
2496         * symfile-mem.c: Include gdb_bfd.h.
2497         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2498         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2499         * solib.c: Include gdb_bfd.h.
2500         (solib_bfd_fopen): Use gdb_bfd_ref.
2501         (solib_bfd_open): Use gdb_bfd_unref.
2502         (free_so_symbols): Use gdb_bfd_unref.
2503         (reload_shared_libraries_1): Use gdb_bfd_unref.
2504         * solib-spu.c: Include gdb_bfd.h.
2505         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2506         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2507         gdb_bfd_unref.
2508         * solib-frv.c: Include gdb_bfd.h.
2509         (enable_break2): Use gdb_bfd_unref.
2510         * solib-dsbt.c: Include gdb_bfd.h.
2511         (enable_break2): Use gdb_bfd_unref.
2512         * solib-darwin.c: Include gdb_bfd.h.
2513         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2514         gdb_bfd_unref.
2515         (darwin_bfd_open): Use gdb_bfd_unref.
2516         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2517         * remote-mips.c: Include gdb_bfd.h.
2518         (mips_load_srec): Use gdb_bfd_ref.
2519         (pmon_load_fast): Use gdb_bfd_ref.
2520         * remote-m32r-sdi.c: Include gdb_bfd.h.
2521         (m32r_load): Use gdb_bfd_ref.
2522         * record.c: Include gdb_bfd.h.
2523         (record_save_cleanups): Use gdb_bfd_unref.
2524         (cmd_record_save): Use gdb_bfd_unref.
2525         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2526         gdb_bfd_unref.
2527         * objfiles.h (gdb_bfd_close_or_warn): Remove.
2528         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2529         * objfiles.c: Include gdb_bfd.h.
2530         (free_objfile): Use gdb_bfd_unref.
2531         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2532         gdb_bfd.c.
2533         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2534         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2535         (macho_check_dsym): Likewise.
2536         * m32r-rom.c: Include gdb_bfd.h.
2537         (m32r_load): Use gdb_bfd_ref.
2538         (m32r_upload_command): Use gdb_bfd_ref.
2539         * jit.c: Include gdb_bfd.h.
2540         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2541         * gdb_bfd.h: New file.
2542         * gdb_bfd.c: New file.
2543         * gcore.c: Include gdb_bfd.h.
2544         (create_gcore_bfd): Use gdb_bfd_ref.
2545         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2546         (gcore_command): Use gdb_bfd_unref.
2547         * exec.c: Include gdb_bfd.h.
2548         (exec_close): Use gdb_bfd_unref.
2549         (exec_close_1): Use gdb_bfd_unref.
2550         (exec_file_attach): Use gdb_bfd_ref.
2551         * elfread.c: Include gdb_bfd.h.
2552         (build_id_verify): Use gdb_bfd_unref.
2553         * dsrec.c: Include gdb_bfd.h.
2554         (load_srec): Use gdb_bfd_ref.
2555         * corelow.c: Include gdb_bfd.h.
2556         (core_close): Use gdb_bfd_unref.
2557         (core_open): Use gdb_bfd_ref.
2558         * bfd-target.c: Include gdb_bfd.h.
2559         (target_bfd_xclose): Use gdb_bfd_unref.
2560         (target_bfd_reopen): Use gdb_bfd_ref.
2561         * Makefile.in (SFILES): Add gdb_bfd.c.
2562         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2563         (COMMON_OBS): Add gdb_bfd.o.
2564
2565 2012-07-18  Keith Seitz  <keiths@redhat.com>
2566
2567         * breakpoint.c (find_condition_and_thread): Initialize
2568         TASK and REST.
2569         (create_breakpiont): find_condition_and_thread will now
2570         initialize COND_STRING, THREAD, and REST (and TASK).
2571         (addr_string_to_sals): Likewise.
2572
2573 2012-07-18  Pedro Alves  <palves@redhat.com>
2574
2575         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2576         Pull the single step breakpoints out of the target.
2577
2578 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2579
2580         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2581         * stap-probe.c (compile_probe_arg): Likewise.
2582
2583 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2584
2585         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2586         (elf_compile_to_ax): Likewise.
2587         * infrun.c (insert_exception_resume_from_probe): Likewise.
2588         (check_exception_resume): Remove `objfile' variable.
2589         * probe.c (find_probe_by_pc): Remove `objfile' argument.
2590         (struct probe_and_objfile, probe_and_objfile_s): Delete.
2591         (collect_probes): Adjust return value to `VEC (probe_p) *'.
2592         (compare_entries): Rename to...
2593         (compare_probes): ...this.  Adjust function to work with
2594         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
2595         respectively.
2596         (gen_ui_out_table_header_info): Adjust `probes' argument to be
2597         `VEC (probe_p) *'.
2598         (print_ui_out_info): Adjust argument to be `struct probe *'.
2599         (info_probes_for_ops): Adjust internal computations to use
2600         `VEC (probe_p) *'.
2601         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2602         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2603         gen_info_probes_table_values>: Remove `objfile' argument.
2604         (struct probe) <objfile>: New field.
2605         (find_probe_by_pc): Remove `objfile' argument.
2606         * stap-probe.c (stap_parse_probe_arguments): Likewise.
2607         (stap_get_probe_argument_count): Likewise.
2608         (stap_get_arg): Likewise.
2609         (stap_evaluate_probe_argument): Likewise.
2610         (stap_compile_to_ax): Likewise.
2611         (compile_probe_arg): Refactor not to pass `objfile' anymore.
2612         (handle_stap_probe): Fill `objfile' field from `struct probe'.
2613         (stap_gen_info_probes_table_header): Remove `objfile' argument.
2614         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2615         sym_compile_to_ax>: Likewise.
2616
2617 2012-07-18  Terry Guo  <terry.guo@arm.com>
2618
2619         PR 14329
2620         * defs.h (GDB_MI_MSG_WIDTH): New.
2621         * ser_base (ser_base_read_error_fd): New function.
2622         (do_ser_base_readchar): Poll error file descriptor as well as
2623         standard output.
2624         (generic_readchar): Refactor error handling.
2625
2626 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2627
2628         * NEWS: Create a new section for the next release branch.
2629         Rename the section of the current branch, now that it has
2630         been cut.
2631
2632 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2633
2634         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2635         * version.in: Bump version to 7.5.50.20120718-cvs.
2636
2637 2012-07-17  Keith Seitz  <keiths@redhat.com>
2638
2639         * linespec.c (linespec_parse_line_offset): Make parameter
2640         const.
2641
2642 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2643
2644         PR 11914
2645         * f-valprint.c (info_common_command): New variable frame_id.
2646         Reinitialize FI form FRAME_ID after each print_variable_and_value.
2647         * printcmd.c (print_variable_and_value): Extend function comment.
2648         Add comment for invalidated FRAME.
2649         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
2650         FI form FRAME_ID after each print_frame_local_vars.
2651         (struct print_variable_and_value_data): Change frame to frame_id.
2652         (do_print_variable_and_value): New variable frame, initialize it from
2653         p->frame_id.  Add comment for invalidated FRAME.
2654         (print_frame_local_vars, print_frame_arg_vars): New function comment.
2655         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
2656         for invalidated FRAME.
2657
2658 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
2659             Pedro Alves  <palves@redhat.com>
2660
2661         * linux-nat.c (linux_nat_detach): Don't unregister from the event
2662         loop.
2663
2664 2012-07-16  Tom Tromey  <tromey@redhat.com>
2665
2666         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2667
2668 2012-07-15  Doug Evans  <dje@google.com>
2669
2670         * dwarf2read.c (stmt_list_hash): New struct.
2671         (type_unit_group): Embed "per_cu" member, remove pointer.
2672         New union member "t", move member "tus" into it, all uses updated.
2673         New member "hash", replaces member "line_offset, all uses updated.
2674         (quick_file_names): Replace member "offset" with "hash", all uses
2675         updated.
2676         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2677         (hash_file_name_entry, eq_file_name_entry): Call them.
2678         (hash_type_unit_group, eq_type_unit_group): Ditto.
2679         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2680         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2681         (dw2_get_file_names): Update.
2682         (create_type_unit_group): Replace "per_cu" arg with "cu".
2683         All callers updated.  Fix "quick" (.gdb_index) handling.
2684         (get_type_unit_group): Replace "per_cu" arg with "cu".
2685         All callers updated.
2686         (build_type_unit_groups): Don't reset tu_stats.
2687
2688         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2689         "tab_cur_size".  Change member "tab" to be a htab_t.
2690         (create_filename_seen_cache): Update.
2691         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2692         (filename_seen): Update.
2693
2694 2012-07-13  Doug Evans  <dje@google.com>
2695
2696         * symtab.c (filename_seen): Update comment.
2697
2698 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2699             Doug Evans  <dje@google.com>
2700
2701         * buildsym.c (end_symtab_1): Split it to ...
2702         (end_symtab_get_static_block): ... this ...
2703         (end_symtab_from_static_block): ... and this function.
2704         (end_symtab, end_expandable_symtab): Call them.
2705         * buildsym.h (end_symtab_get_static_block)
2706         (end_symtab_from_static_block): New declarations.
2707         * dwarf2read.c (process_full_comp_unit): New variable static_block.
2708         Set its valid CU ranges.
2709
2710 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2711
2712         * dwarf2loc.c (disassemble_dwarf_expression): Handle
2713         DW_OP_GNU_parameter_ref.
2714
2715 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2716
2717         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2718         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2719
2720 2012-07-13  Doug Evans  <dje@google.com>
2721
2722         * symtab.c (output_source_filename): Delete unnecessary forward decl.
2723         (filename_seen_cache): New struct.
2724         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2725         (create_filename_seen_cache): New function.
2726         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2727         (filename_seen): Delete arg "first".  New arg "cache".  All callers
2728         updated.
2729         (output_source_filename_data): New struct.
2730         (output_source_filename): Delete arg "first".  New arg "data".
2731         All callers updated.
2732         (sources_info): Delete local "first".  New locals "data", "cleanups".
2733         Rewrite to use filename_seen_cache.
2734         (add_partial_filename_data): Delete member "first".  New member
2735         "filename_seen_cache".  All uses updated.
2736         (make_source_files_completion_list): Rewrite to use
2737         filename_seen_cache.
2738
2739 2012-07-12  Doug Evans  <dje@google.com>
2740
2741         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2742
2743 2012-07-10  Doug Evans  <dje@google.com>
2744
2745         PR gdb/13498
2746         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2747         all_type_unit_groups, type_unit_groups, tu_stats.
2748         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2749         All uses updated.  Add type_unit_group to union "s".
2750         (type_unit_group): New struct.
2751         (IS_TYPE_UNIT_GROUP): New macro.
2752         (abbrev_table): Delete unused member "section".
2753         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2754         (dw2_get_cu): Assert not used with type_unit_group.
2755         (dw2_get_primary_cu): New function.
2756         (dw2_build_type_unit_groups_reader): New function.
2757         (dw2_build_type_unit_groups): New function.
2758         (dw2_get_file_names): Assert not called on type units.
2759         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2760         Redo loop to iterate over type unit groups instead of type units.
2761         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2762         (read_abbrev_offset): New function.
2763         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
2764         updated.
2765         (create_partial_symtab): New function.
2766         (process_psymtab_comp_unit_reader): Assert not used with type units.
2767         Call create_partial_symtab.
2768         (process_psymtab_type_unit): Delete.
2769         (hash_type_unit_group, eq_type_unit_group): New functions.
2770         (allocate_type_unit_groups_table): New function.
2771         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2772         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2773         (create_type_unit_group, get_type_unit_group): New functions.
2774         (tu_abbrev_offset): New struct.
2775         (sort_tu_by_abbrev_offset): New function.
2776         (add_type_unit_group_to_table): New function.
2777         (build_type_unit_groups): New function.
2778         (build_type_psymtabs_reader): New function.
2779         (build_type_psymtab_dependencies): New function.
2780         (build_type_psymtabs): Rewrite.
2781         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2782         is seen in a type unit.
2783         (process_queue): Move symtab expansion debugging printfs here.
2784         Call process_full_type_unit for type units.
2785         (compute_symtab_includes): Assert not called for type units.
2786         (process_cu_includes): Don't call compute_symtab_includes for
2787         type units.
2788         (process_full_type_unit): New function.
2789         (process_imported_unit_die): Flag an error if called for type units.
2790         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
2791         updated.  Assert not called for type units.
2792         (read_file_scope): Call dwarf2_start_symtab.
2793         (setup_type_unit_groups): New function.
2794         (read_type_unit_scope): Rewrite.
2795         (abbrev_table_read_table): Initialize abbrev_table->offset.
2796         (abbrev_table_free_cleanup): New function.
2797         (dwarf2_start_symtab): New function.
2798         (load_full_type_unit): Assert not called for type unit groups.
2799         * buildsym.c (finish_block_internal): New arg "expandable".
2800         All callers updated.
2801         (start_symtab): Move most contents to ...
2802         (restart_symtab): ... here.  New function.
2803         (reset_symtab_globals): New function.
2804         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
2805         Call reset_symtab_globals.
2806         (end_symtab, end_expandable_symtab): New functions.
2807         (set_missing_symtab, augment_type_symtab): New functions.
2808         * buildsym.h (end_expandable_symtab): Declare.
2809         (augment_type_symtab, restart_symtab): Declare.
2810         * psympriv.h (struct partial_symtab): New member "anonymous".
2811         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2812         anonymous psymtabs.
2813         (read_psymtabs_with_filename): Ditto.
2814         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2815         (expand_symtabs_matching_via_partial): Ditto.
2816         (dump_psymtab): Update.
2817         * dictionary.c (dict_add_pending): New function.
2818         * dictionary.h (dict_add_pending): Declare.
2819
2820 2012-07-09  Doug Evans  <dje@google.com>
2821
2822         * buildsym.c (start_subfile): Remove unnecessary check for
2823         name == NULL.
2824
2825         * psymtab.c (allocate_psymtab): Use host_address_to_string.
2826
2827         * dwarf2read.c (load_full_type_unit): Simplify.
2828
2829         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2830         to struct signatured_type **.  All uses updated.
2831
2832         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2833         All callers updated.
2834
2835 2012-07-09  Tom Tromey  <tromey@redhat.com>
2836
2837         * c-exp.y (check_parameter_typelist): New function.
2838         (parameter_typelist): Call it.
2839         * eval.c (make_params): Handle '(void)' case.
2840         * gdbtypes.c (lookup_function_type_with_arguments): Handle
2841         '(void)' case.
2842
2843 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2844
2845         * common/linux-ptrace.c: Include gdb_assert.h.
2846         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2847         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2848         stdint.h.
2849         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2850         functions.
2851         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2852         * linux-nat.c (linux_child_post_attach)
2853         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2854
2855 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2856
2857         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2858         nptl <2.7 bug workaround for core files.
2859
2860 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2861
2862         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2863         clearing.
2864         (save_siginfo): Remove.
2865         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2866         call.
2867         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2868         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2869         * linux-nat.h (struct lwp_info): Remove field siginfo.
2870
2871 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2872
2873         Code cleanup for the next patch.
2874         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2875         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2876         call for it.
2877         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2878         (ia64_linux_stopped_data_address):
2879         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2880         the return value.
2881         * linux-nat.h (linux_nat_get_siginfo): Likewise.
2882         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2883         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2884         call for it.
2885
2886 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2887
2888         PR 14321
2889         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2890         Increase buffer sizes to 2x we need, not just 2x of the previous size.
2891
2892 2012-07-06  Tom Tromey  <tromey@redhat.com>
2893
2894         * c-exp.y (DOTDOTDOT): New token.
2895         (func_mod, exp): Use parameter_typelist.
2896         (parameter_typelist): New production.
2897         (tokentab3): Add "..." token.
2898         * eval.c (make_params): Handle varargs.
2899         * gdbtypes.c (lookup_function_type_with_arguments): Handle
2900         varargs.
2901
2902 2012-07-06  Tom Tromey  <tromey@redhat.com>
2903
2904         PR exp/9608:
2905         * c-exp.y (%union) <tvec>: Change type.
2906         (func_mod): Now uses <tvec> type.
2907         (exp): Update for tvec change.
2908         (direct_abs_decl): Push the typelist.
2909         (func_mod): Return a typelist.
2910         (nonempty_typelist): Update for tvec change.
2911         * gdbtypes.c (lookup_function_type_with_arguments): New function.
2912         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2913         * parse.c (pop_type_list): New function.
2914         (push_typelist): New function.
2915         (follow_types): Handle tp_function_with_arguments.
2916         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
2917         (enum type_pieces) <tp_function_with_arguments>: New constant.
2918         (union type_stack_elt) <typelist_val>: New field.
2919         (push_typelist): Declare.
2920
2921 2012-07-06  Tom Tromey  <tromey@redhat.com>
2922
2923         * c-exp.y (%union) <type_stack>: New field.
2924         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
2925         (ptr_operator_ts): New production.
2926         (ptype): Update.
2927         * parse.c (type_stack_reserve): New function.
2928         (check_type_stack_depth): Use it.
2929         (pop_type_stack, append_type_stack, push_type_stack)
2930         (get_type_stack, type_stack_cleanup): New functions.
2931         (follow_types): Handle tp_type_stack.
2932         (_initialize_parse): Simplify initialization.
2933         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2934         constant.
2935         (union type_stack_elt) <stack_val>: New field.
2936         (get_type_stack, append_type_stack, push_type_stack)
2937         (type_stack_cleanup): Declare.
2938
2939 2012-07-06  Tom Tromey  <tromey@redhat.com>
2940
2941         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2942         Remove.
2943         (struct type_stack): New.
2944         * parse.c (type_stack, type_stack_size, type_stack_depth):
2945         Remove.
2946         (type_stack): New global.
2947         (parse_exp_in_context, check_type_stack_depth)
2948         (insert_into_type_stack, insert_type, push_type, push_type_int)
2949         (insert_type_address_space, pop_type, pop_type_int)
2950         (_initialize_parse): Update.
2951
2952 2012-07-06  Tom Tromey  <tromey@redhat.com>
2953
2954         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2955         Remove %type.
2956
2957 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2958
2959         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2960
2961 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2962             Jan Kratochvil  <jan.kratochvil@redhat.com>
2963
2964         * cp-valprint.c (cp_print_value): Replace potentially unsafe
2965         alloca with xmalloc/xfree.
2966
2967 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2968
2969         * MAINTAINERS (Write After Approval): Add myself to the list.
2970
2971 2012-07-05  Doug Evans  <dje@google.com>
2972
2973         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2974
2975 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
2976
2977         * ax-gdb.c (cli/cli-utils.h): New include.
2978         (linespec.h): Ditto.
2979         (agent_eval_command_one): New function.
2980         (agent_command_1): Ditto.
2981         (agent_command): Call function agent_command_1.
2982         (agent_eval_command): Ditto.
2983         (_initialize_ax_gdb): Change help for "maint agent"
2984         and "maint agent-eval".
2985
2986 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
2987
2988         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2989         * cli/cli-utils.c (check_for_argument): New function.
2990         * cli/cli-utils.h (check_for_argument): Ditto.
2991
2992 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
2993
2994         * NEWS: Mention x32 ABI support.
2995
2996 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
2997
2998         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2999         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3000
3001         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3002         and pc_regnum_from_eax to -1.  Update SP regnum from
3003         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3004         needed.
3005
3006         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3007         pc_regnum_from_eax.
3008
3009 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3010
3011         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3012         * dwarf2expr.h: Include gdbtypes.h.
3013         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3014         these forward declarations.
3015         (cu_offset, sect_offset): Move these ...
3016         * gdbtypes.h: Remove include dwarf2expr.h.
3017         (cu_offset, sect_offset): ... here.
3018
3019 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3020
3021         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3022         (amd64_linux_sigtramp_code): This.
3023         (amd64_x32_linux_sigtramp_code): New.
3024         (LINUX_SIGTRAMP_LEN): Updated.
3025         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3026
3027 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3028
3029         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3030
3031 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3032
3033         * config.in: Regenerate.
3034         * configure: Regenerate.
3035         * configure.ac: Remove check for gnu/libc-version.h.
3036         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3037         gnu/libc-version.h.
3038         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3039         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3040         inferior_has_bug.  Extend the comment.
3041
3042 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3043
3044         * linux-thread-db.c (inferior_has_bug): New function.
3045         (thread_db_find_new_threads_silently): Return boolean as checked by
3046         inferior_has_bug, describe it in the comments.
3047         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3048         earlier.  Abort the initialization if it returned non-zero.
3049         (thread_db_new_objfile): Exclude debug files.
3050         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
3051         if UNTIL_NO_NEW,
3052
3053 2012-07-02  Doug Evans  <dje@google.com>
3054
3055         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3056         related to queue management.
3057
3058         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3059         instead of "debug dwarf2-die" in debugging printfs.
3060         (create_debug_info_hash_table_reader): Ditto.
3061         (create_debug_info_hash_table): Ditto.
3062         (init_dwo_file): Ditto.
3063         (init_cutu_and_read_dies): Add debugging printf.
3064         (init_cutu_and_read_dies_no_follow): Ditto.
3065         (process_psymtab_comp_unit_reader): Ditto.
3066
3067 2012-07-02  Stan Shebs  <stan@codesourcery.com>
3068
3069         Add target-side support for dynamic printf.
3070         * NEWS: Mention the additional style.
3071         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3072         (struct bp_location): New field cmd_bytecode.
3073         * breakpoint.c: Include format.h.
3074         (disconnected_dprintf): New global.
3075         (parse_cmd_to_aexpr): New function.
3076         (build_target_command_list): New function.
3077         (insert_bp_location): Call it.
3078         (remove_breakpoints_pid): Skip dprintf breakpoints.
3079         (print_one_breakpoint_location): Ditto.
3080         (dprintf_style_agent): New global.
3081         (dprintf_style_enums): Add dprintf_style_agent.
3082         (update_dprintf_command_list): Add agent case.
3083         (agent_printf_command): New function.
3084         (_initialize_breakpoint): Add new commands.
3085         * common/ax.def (printf): New bytecode.
3086         * ax.h (ax_string): Declare.
3087         * ax-gdb.h (gen_printf): Declare.
3088         * ax-gdb.c: Include cli-utils.h, format.h.
3089         (gen_printf): New function.
3090         (maint_agent_print_command): New function.
3091         (_initialize_ax_gdb): Add maint agent-printf command.
3092         * ax-general.c (ax_string): New function.
3093         (ax_print): Add printf disassembly.
3094         * Makefile.in (SFILES): Add format.c
3095         (COMMON_OBS): Add format.o.
3096         * common/format.h: New file.
3097         * common/format.c: New file.
3098         * printcmd.c: Include format.h.
3099         (ui_printf): Call parse_format_string.
3100         * remote.c (remote_state): New field breakpoint_commands.
3101         (PACKET_BreakpointCommands): New enum.
3102         (remote_breakpoint_commands_feature): New function.
3103         (remote_protocol_features): Add new BreakpointCommands entry.
3104         (remote_can_run_breakpoint_commands): New function.
3105         (remote_add_target_side_commands): New function.
3106         (remote_insert_breakpoint): Call it.
3107         (remote_insert_hw_breakpoint): Ditto.
3108         (_initialize_remote): Add new packet configuration for
3109         target-side breakpoint commands.
3110         * target.h (struct target_ops): New field
3111         to_can_run_breakpoint_commands.
3112         (target_can_run_breakpoint_commands): New macro.
3113         * target.c (update_current_target): Handle
3114         to_can_run_breakpoint_commands.
3115
3116 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3117
3118         Execute -ix and -iex only after system and user gdbinit files.
3119         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3120         processing down after gdbinit files.
3121
3122 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3123
3124         Add fnmatch-gnu module.
3125         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3126         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3127         * gnulib/aclocal.m4: Regenerate.
3128         * gnulib/config.in: Regenerate.
3129         * gnulib/configure: Regenerate.
3130         * gnulib/import/dummy.c: Remove.
3131         * gnulib/import/Makefile.am: Regenerate.
3132         * gnulib/import/Makefile.in: Likewise.
3133         * gnulib/import/m4/gnulib-cache.m4: Likewise.
3134         * gnulib/import/m4/gnulib-comp.m4: Likewise.
3135         * gnulib/import/alloca.c: New file.
3136         * gnulib/import/alloca.in.h: Likewise.
3137         * gnulib/import/config.charset: Likewise.
3138         * gnulib/import/fnmatch.c: Likewise.
3139         * gnulib/import/fnmatch.in.h: Likewise.
3140         * gnulib/import/fnmatch_loop.c: Likewise.
3141         * gnulib/import/localcharset.c: Likewise.
3142         * gnulib/import/localcharset.h: Likewise.
3143         * gnulib/import/m4/alloca.m4: Likewise.
3144         * gnulib/import/m4/codeset.m4: Likewise.
3145         * gnulib/import/m4/configmake.m4: Likewise.
3146         * gnulib/import/m4/fcntl-o.m4: Likewise.
3147         * gnulib/import/m4/fnmatch.m4: Likewise.
3148         * gnulib/import/m4/glibc21.m4: Likewise.
3149         * gnulib/import/m4/localcharset.m4: Likewise.
3150         * gnulib/import/m4/locale-fr.m4: Likewise.
3151         * gnulib/import/m4/locale-ja.m4: Likewise.
3152         * gnulib/import/m4/locale-zh.m4: Likewise.
3153         * gnulib/import/m4/mbrtowc.m4: Likewise.
3154         * gnulib/import/m4/mbsinit.m4: Likewise.
3155         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3156         * gnulib/import/m4/mbstate_t.m4: Likewise.
3157         * gnulib/import/m4/stdbool.m4: Likewise.
3158         * gnulib/import/m4/wchar_h.m4: Likewise.
3159         * gnulib/import/m4/wctype_h.m4: Likewise.
3160         * gnulib/import/m4/wint_t.m4: Likewise.
3161         * gnulib/import/mbrtowc.c: Likewise.
3162         * gnulib/import/mbsinit.c: Likewise.
3163         * gnulib/import/mbsrtowcs-impl.h: Likewise.
3164         * gnulib/import/mbsrtowcs-state.c: Likewise.
3165         * gnulib/import/mbsrtowcs.c: Likewise.
3166         * gnulib/import/ref-add.sin: Likewise.
3167         * gnulib/import/ref-del.sin: Likewise.
3168         * gnulib/import/stdbool.in.h: Likewise.
3169         * gnulib/import/streq.h: Likewise.
3170         * gnulib/import/strnlen1.c: Likewise.
3171         * gnulib/import/strnlen1.h: Likewise.
3172         * gnulib/import/verify.h: Likewise.
3173         * gnulib/import/wchar.in.h: Likewise.
3174         * gnulib/import/wctype.in.h: Likewise.
3175
3176 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3177
3178         Support shell wildcards for 'set auto-load safe-path'.
3179         * auto-load.c: Include fnmatch.h.
3180         (filename_is_in_dir): Rename to ...
3181         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3182         it.  Update function comment.  Rename dir_len to pattern_len.  New
3183         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
3184         messages.  Use gdb_filename_fnmatch.
3185         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3186         pattern.
3187         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3188         * defs.h (gdb_filename_fnmatch): New declaration.
3189         * utils.c: Include fnmatch.h.
3190         (gdb_filename_fnmatch): New function.
3191
3192 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
3193
3194         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3195         `-probe' and `-probe-stap' options.
3196
3197 2012-07-01  Yao Qi  <yao@codesourcery.com>
3198
3199         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3200         always_inserted_off, and always_inserted_enums.
3201         Change always_inserted_mode's type to 'enum auto_boolean'.
3202         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3203         callers.
3204         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3205         of add_setshow_enum_cmd.
3206         * infrun.c: Remove can_use_displaced_stepping_auto,
3207         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3208         can_use_displaced_stepping_enum.
3209         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3210         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3211         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3212         add_setshow_enum_cmd.
3213
3214 2012-06-30  Doug Evans  <dje@google.com>
3215
3216         * dwarf2read.c (signatured_type): Make "per_cu" member first.
3217         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3218         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
3219
3220 2012-06-29  Doug Evans  <dje@google.com>
3221
3222         * linespec.c: #include "stack.h".
3223         (decode_line_with_current_source): Moved here from symtab.c and
3224         renamed from decode_line_spec.  All callers updated.
3225         (decode_line_with_last_displayed): Moved here from breakpoint.c and
3226         renamed from decode_line_spec_1.  All callers updated.
3227         * linespec.h (decode_line_with_current_source): Move declaration here
3228         from symtab.h and renamed from decode_line_spec.
3229         (decode_line_with_last_displayed): Move declaration here from symtab.h
3230         and renamed from decode_line_spec_1.
3231         * macrocmd.c: #include "linespec.h".
3232         * symtab.c: Remove #include "linespec.h".
3233
3234 2012-06-28  Doug Evans  <dje@google.com>
3235
3236         * dwarf2read.c (get_cu_length): New function.
3237         (offset_in_cu_p, error_check_comp_unit_head): Call it.
3238         (create_debug_types_hash_table): Ditto.
3239         (init_cutu_and_read_dies): Ditto.
3240         (init_cutu_and_read_dies_no_follow): Ditto.
3241
3242         * dwarf2read.c (dwarf2_find_base_address): Move definition.
3243
3244         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3245         (struct abbrev_table): Define.
3246         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3247         abbrev_table.
3248         (init_cutu_and_read_dies): Update.
3249         (abbrev_table_alloc_abbrev): New function.  Replaces
3250         dwarf_alloc_abbrev.  All callers updated.
3251         (abbrev_table_add_abbrev): New function.
3252         (abbrev_table_lookup_abbrev): New function.  Replaces
3253         dwarf2_lookup_abbrev.  All callers updated.
3254         (abbrev_table_read_table): New function.  Contents moved here from
3255         dwarf2_read_abbrevs.
3256         (dwarf2_read_abbrevs): Call it.
3257         (abbrev_table_free): New function.
3258         (dwarf2_free_abbrev_table): Call it.
3259
3260 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3261
3262         * osdata.c (info_osdata_command): Filter out "Title" columns
3263         from non-MI uses.
3264         * common/linux-osdata.c (struct osdata_type): Add title field.
3265         (osdata_table): Add titles to each entry.
3266         (linux_command_xfer_osdata): Add a column for title data.
3267
3268 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3269
3270         Make logging work for MI.
3271         * NEWS: Mention it.
3272         * interps.h (interp_set_logging_ftype): New typedef.
3273         (struct interp_procs): New field set_logging_proc.
3274         (current_interp_set_logging): Declare.
3275         * interps.c (current_interp_set_logging): New function.
3276         * cli/cli-logging.c: Include interps.h.
3277         (set_logging_redirect): Call current_interp_set_logging.
3278         (pop_output_files): Ditto.
3279         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3280         * mi/mi-console.h (mi_console_set_raw): Declare.
3281         * mi/mi-console.c (mi_console_set_raw): New function.
3282         * mi/mi-interp.c (saved_raw_stdout): New global.
3283         (mi_set_logging): New function.
3284         (_initialize_mi_interp): Add it to interp procs.
3285
3286 2012-06-28  Doug Evans  <dje@google.com>
3287
3288         * symtab.c (lookup_symbol_aux_objfile): Use
3289         ALL_OBJFILE_PRIMARY_SYMTABS.
3290
3291         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3292
3293 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3294
3295         * common/buffer.c: Include inttypes.h and stdint.h.
3296         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3297
3298 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3299             Pedro Alves  <palves@redhat.com>
3300
3301         * gdbthread.h (ALL_THREADS): New macro.
3302         (thread_list): Declare.
3303         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3304         going, but instead fall through to the stepping handling.
3305         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
3306         the passed in signal.  Adjust debug output.
3307         (resume_callback): Rename to ...
3308         (linux_nat_resume_callback): ... this.  Pass the thread's last
3309         stop signal, if in "pass" state.
3310         (linux_nat_resume): Adjust to rename.
3311         (stop_wait_callback): New assertion.  Don't respawn signals;
3312         instead let the LWP remain with SIGNALLED set.
3313         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3314         * remote.c (append_pending_thread_resumptions): New.
3315         (remote_vcont_resume): Call it.
3316         * target.h (target_resume): Extend comment.
3317
3318 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
3319
3320         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3321
3322 2012-06-27  Doug Evans  <dje@google.com>
3323
3324         * dwarf2read.c (dwarf2_cu): Add ranges_base.
3325         Delete have_addr_base, unused.  All uses updated.
3326         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3327         (dwarf2_get_pc_bounds): Add ranges_base.
3328         (dwarf2_record_block_ranges): Ditto.
3329
3330 2012-06-27  Tom Tromey  <tromey@redhat.com>
3331
3332         PR macros/7961:
3333         * varobj.c (varobj_create): Update.
3334         (varobj_set_value): Update.
3335         * tracepoint.c (validate_actionline): Update.
3336         (encode_actions_1): Update.
3337         * parse.c (parse_exp_1): Add 'pc' argument.
3338         (parse_exp_in_context): Add 'pc' argument.  Change how
3339         expression_context_pc is set.
3340         (parse_expression): Update.
3341         (parse_field_expression): Update.
3342         * expression.h (parse_exp_1): Update.
3343         * eval.c (parse_to_comma_and_eval): Update.
3344         * breakpoint.c (set_breakpoint_condition): Update.
3345         (update_watchpoint): Update.
3346         (init_breakpoint_sal): Update
3347         (find_condition_and_thread): Update.
3348         (watch_command_1): Update.
3349         (update_breakpoint_locations): Update.
3350         * ada-lang.c (ada_read_renaming_var_value): Update.
3351         (create_excep_cond_exprs): Update.
3352
3353 2012-06-27  Doug Evans  <dje@google.com>
3354
3355         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3356         type units.
3357
3358 2012-06-26  Doug Evans  <dje@google.com>
3359
3360         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3361         prototype.
3362         (error_check_comp_unit_head): New arg abbrev_section.  All callers
3363         updated.
3364         (read_and_check_comp_unit_head): Ditto.
3365         (read_and_check_type_unit_head): Ditto.
3366
3367 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
3368
3369         New attribute 'last' for gdb.Symtab_and_line.
3370         * NEWS (Python Scripting): Add entry about the new attribute.
3371         * python/py-symtab.c (salpy_get_last): New function which
3372         implements the get method for the 'last' attribute of
3373         gdb.Symtab_and_line.
3374         (sal_object_getset): Add entry for the 'last' attribute.
3375
3376 2012-06-26  Doug Evans  <dje@google.com>
3377
3378         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3379         (dwo_sections): Add macinfo, macro.
3380         (dwarf2_locate_dwo_sections): Watch for macro sections.
3381         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3382         All callers updated.  Handle DWO files.
3383
3384         * NEWS: Mention new options "set debug dwarf2-read" and
3385         "set debug symtab-create".
3386         * dwarf2read.c (dwarf2_read_debug): New static global.
3387         (dwarf2_build_psymtabs_hard): Add debugging printfs.
3388         (process_queue): Ditto.
3389         (process_full_comp_unit): Ditto.
3390         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3391         * elfread.c (elf_symfile_read): Add debugging printf.
3392         * minsyms.c (install_minimal_symbols): Ditto.
3393         * psymtab.c (allocate_psymtab): Ditto.
3394         * symfile.c (allocate_symtab): Ditto.
3395         * symtab.c (symtab_create_debug): New global.
3396         (_initialize_symtab): Add new option "set debug symtab-create".
3397         * symtab.h (symtab_create_debug): Declare.
3398
3399         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3400         (lookup_dwo_type_unit): Ditto.
3401
3402 2012-06-26  Roland McGrath  <roland@hack.frob.com>
3403             H.J. Lu  <hongjiu.lu@intel.com>
3404
3405         * amd64-linux-nat.c: Include <sys/user.h>.
3406         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3407         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3408         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3409
3410         * configure.ac: Check if the fs_base and gs_base members of
3411         `struct user_regs_struct' exist.
3412         * config.in: Regenerated.
3413         * configure: Likewise.
3414
3415 2012-06-25  Michael Eager  <eager@eagercon.com>
3416
3417         PR python/14291
3418         * python/python.c (gdbpy_write): Check for interrupted output.
3419
3420 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
3421
3422         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3423         register as a stack alignment in ARM mode.
3424
3425 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3426
3427         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3428         * gnulib/config.in: Regenerate.
3429         * gnulib/configure: Likewise.
3430         * gnulib/import/m4/extensions.m4: Update it.
3431         * gnulib/import/m4/gnulib-common.m4: Likewise.
3432         * gnulib/import/m4/memmem.m4: Likewise.
3433         * gnulib/import/m4/mmap-anon.m4: Likewise.
3434         * gnulib/import/m4/multiarch.m4: Likewise.
3435         * gnulib/import/stdint.in.h: Likewise.
3436
3437 2012-06-24  Yao Qi  <yao@codesourcery.com>
3438
3439         * corefile.c (write_memory_with_notification): New.
3440         * gdbcore.h: Declare write_memory_with_notification.
3441         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3442         'observer_notify_memory_changed' with 'write_memory_with_notification'.
3443         * valops.c (value_assign): Likewise.
3444         * python/py-inferior.c (infpy_write_memory): Call
3445         'write_memory_with_notification'.
3446
3447 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3448
3449         * cc-with-index.sh: Use also -ex "set auto-load no".
3450
3451 2012-06-23  Doug Evans  <dje@google.com>
3452
3453         PR 14125
3454         * NEWS: Document additions to .gdb_index.
3455         * dwarf2read.c: #include "gdb/gdb-index.h".
3456         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3457         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3458         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3459         (dwarf2_read_index): Recognize version 7.
3460         (dw2_do_expand_symtabs_matching): New args want_specific_block,
3461         block_kind, domain): All callers updated.
3462         (dw2_find_symbol_file): Handle new index CU values.
3463         (dw2_expand_symtabs_matching): Match symbol kind if requested.
3464         (add_index_entry): New args is_static, kind.  All callers updated.
3465         (offset_type_compare, uniquify_cu_indices): New functions
3466         (symbol_kind): New function.
3467         (write_psymtabs_to_index): Remove duplicate CU values.
3468         (write_psymtabs_to_index): Write .gdb_index version 7.
3469
3470 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
3471
3472         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3473         * configure: Regenerate.
3474
3475 2012-06-20  Yao Qi  <yao@codesourcery.com>
3476
3477         * python/py-inferior.c: Update comments of infpy_read_memory
3478         and infpy_write_memory.
3479
3480 2012-06-19  Tom Tromey  <tromey@redhat.com>
3481
3482         PR exp/9514:
3483         * parser-defs.h (insert_type, insert_type_address_space): Declare.
3484         (push_type_address_space): Remove.
3485         * parse.c (insert_into_type_stack): New function.
3486         (insert_type): Likewise.
3487         (insert_type_address_space): Rename from push_type_address_space.
3488         Insert tp_space_identifier.
3489         * c-exp.y (ptr_operator): New production.
3490         (abs_decl): Use ptr_operator.
3491         (space_identifier): Call insert_type_address_space.
3492         (ptype): Don't use const_or_volatile_or_space_identifier.
3493         (const_or_volatile_noopt): Call insert_type.
3494         (conversion_type_id, conversion_declarator): New productions.
3495         (operator): Use conversion_type_id.
3496
3497 2012-06-18  Doug Evans  <dje@google.com>
3498
3499         * symtab.h (minimal_symbol): New member created_by_gdb.
3500         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3501         created by gdb.
3502         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3503         (search_symbols): Call it instead of lookup_symbol.
3504         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
3505
3506         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3507         Adjust address for DW_OP_GNU_addr_index.
3508         * dwarf2expr.h (dwarf_expr_context): Update comment.
3509         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3510         all callers updated.  Handle TLS vars described with
3511         DW_OP_GNU_const_index.
3512         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3513         and DW_OP_GNU_const_index.
3514         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3515
3516         * block.c (find_block_in_blockvector): Make explicit the fact that we
3517         ignore GLOBAL_BLOCK.
3518
3519 2012-06-18  Tom Tromey  <tromey@redhat.com>
3520
3521         * c-exp.y (operator): Remove trailing space after "delete" and
3522         "delete[]".
3523
3524 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
3525             Jan Kratochvil  <jan.kratochvil@redhat.com>
3526
3527         Switch i386 and derived targets to ON_STACK.
3528         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3529         (amd64_dicos_init_abi): Remove its installment.
3530         * dicos-tdep.c (dicos_init_abi): Remove the
3531         set_gdbarch_call_dummy_location call.  Update the comment here.
3532         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3533         (i386_dicos_init_abi): Remove its installment.
3534         * i386-tdep.c (i386_push_dummy_code): New function.
3535         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3536         i386_push_dummy_code.
3537
3538 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3539
3540         Remove stale dummy frames.
3541         * breakpoint.c: Include dummy-frame.h.
3542         (longjmp_breakpoint_ops): New variable.
3543         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3544         bp_longjmp_call_dummy.
3545         (bpstat_what, bptype_string, print_one_breakpoint_location)
3546         (init_bp_location): Support bp_longjmp_call_dummy.
3547         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
3548         (set_longjmp_breakpoint_for_call_dummy)
3549         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3550         functions.
3551         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3552         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
3553         FIXME comment and extend the other comment for bp_call_dummy.
3554         (set_longjmp_breakpoint_for_call_dummy)
3555         (check_longjmp_breakpoint_for_call_dummy): New declarations.
3556         * dummy-frame.c: Include gdbthread.h.
3557         (pop_dummy_frame_bpt): New function.
3558         (pop_dummy_frame): Call pop_dummy_frame_bpt.
3559         (dummy_frame_discard): New function.
3560         (cleanup_dummy_frames): Update the comment about longjmps.
3561         * dummy-frame.h (dummy_frame_discard): New declaration.
3562         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3563         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
3564         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
3565         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3566         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
3567         keep_going if IS_LONGJMP and there is no other reason to stop.
3568
3569 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
3570
3571         * remote-sim.c (sim_command_completer): Initialize
3572         variable 'result'.
3573
3574 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3575
3576         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3577         * dwarf2loc.c (call_site_parameter_matches): Support
3578         CALL_SITE_PARAMETER_PARAM_OFFSET.
3579         (needs_dwarf_reg_entry_value): Push stub value.
3580         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
3581         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3582         * gdbtypes.h (enum call_site_parameter_kind): New item
3583         CALL_SITE_PARAMETER_PARAM_OFFSET.
3584         (struct call_site.parameter.u): New field param_offset.
3585
3586 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3587
3588         Code cleanup: Generalize call_site.parameter key.
3589         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3590         variable dwarf_reg.  New variable kind_u.  Update parameters to
3591         push_dwarf_reg_entry_value.
3592         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3593         * dwarf2expr.h (enum call_site_parameter_kind)
3594         (union call_site_parameter_u): Forward declarations.
3595         (struct dwarf_expr_context_funcs): Update parameters and their
3596         description for push_dwarf_reg_entry_value.
3597         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3598         * dwarf2loc.c (call_site_parameter_matches): New function.
3599         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3600         description.  Use call_site_parameter_matches.
3601         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3602         Update parameters and their description.
3603         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3604         New variable kind_u.  Adjust the caller for updated parameters.
3605         (needs_dwarf_reg_entry_value): Update parameters.
3606         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
3607         instead of attr.  Update for the changed fields of struct
3608         call_site_parameter.
3609         * gdbtypes.h: Include dwarf2expr.h.
3610         (enum call_site_parameter_kind): New.
3611         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
3612         fb_offset into new union u.
3613
3614 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3615
3616         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3617         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3618         for x32.
3619
3620 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3621
3622         * amd64-linux-nat.c (compat_x32_clock_t): New.
3623         (compat_x32_siginfo_t): Likewise.
3624         (compat_x32_siginfo_from_siginfo): Likewise.
3625         (siginfo_from_compat_x32_siginfo): Likewise.
3626         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3627         and siginfo_from_compat_x32_siginfo for x32.
3628
3629 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
3630
3631         * tracepoint.c (tfile_xfer_partial): Add a lseek.
3632
3633 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3634
3635         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3636         instead of gdbarch_ptr_bit.
3637         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3638         (amd64_supply_native_gregset): Likewise.
3639         (amd64_collect_native_gregset): Likewise.
3640         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3641         (amd64_supply_xsave): Likewise.
3642         (amd64_collect_fxsave): Likewise.
3643         (amd64_collect_xsave): Likewise.
3644
3645 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3646
3647         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3648         (amd64_linux_read_description): Check DS segment register for
3649         x32 process.
3650
3651 2012-06-15  Tom Tromey  <tromey@redhat.com>
3652
3653         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3654         init_cutu_and_read_dies.
3655
3656 2012-06-15  Iain Sandoe <iain@codesourcery.com>
3657
3658         * MAINTAINERS (Write After Approval): Add myself to the list.
3659
3660 2012-06-15  Tom Tromey  <tromey@redhat.com>
3661
3662         * valops.c (value_find_oload_method_list): Now static.
3663         * value.h (value_find_oload_method_list): Don't declare.
3664
3665 2012-06-15  Tom Tromey  <tromey@redhat.com>
3666
3667         * valops.c (find_overload_match): Use value_ind.
3668
3669 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
3670
3671         * infrun.c (handle_inferior_event): Correct indentation.
3672
3673 2012-06-14  Doug Evans  <dje@google.com>
3674
3675         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3676         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3677         All uses updated.
3678         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
3679         updated.  Handle DEBUG_LOC_START_LENGTH.
3680         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3681         (loclist_describe_location): Ditto.
3682
3683 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
3684
3685         PR backtrace/13866
3686         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3687         after hiding inline functions.
3688
3689 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3690
3691         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3692         _initialize_inf_ttrace.
3693
3694 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3695
3696         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3697         _initialize_hppa_hpux_nat.
3698
3699 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3700
3701         * remote-sim.c (sim_command_completer): Change type of return
3702         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
3703
3704 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3705             Jan Kratochvil  <jan.kratochvil@redhat.com>
3706
3707         PR tdep/14222
3708         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3709         stack on a 16-byte boundary.
3710
3711 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
3712
3713         * jit.c (finalize_symtab): Set function's return type to 'void' by
3714         default.
3715
3716 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3717             H.J. Lu  <hongjiu.lu@intel.com>
3718
3719         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3720         Move bits common to both the classic LP64 and the new x32 ILP32
3721         ABI here.
3722         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3723         (amd64_x32_linux_init_abi): New function.
3724         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3725         subtype.
3726
3727         * i386-tdep.h (i386_pseudo_register_name): New prototype.
3728         * i386-tdep.c (i386_pseudo_register_name): Make public.
3729         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3730         * amd64-tdep.c (amd64_dword_names): Add "eip".
3731         (amd64_x32_pseudo_register_type): New function
3732         (amd64_x32_init_abi): New function.
3733
3734 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3735
3736         PR build/14003
3737         * inferior.h (struct inferior_suspend_state): Comment out.
3738         (struct inferior): Comment out the field suspend.
3739         * infrun.c (struct infcall_suspend_state): Comment out the field
3740         inferior_suspend.
3741         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3742         out its assignment.
3743
3744 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3745
3746         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3747         * c-exp.y (classify_inner_name): Remove caller assumptions in the
3748         function comment.  Return ERROR for unresolved cases.  Implement
3749         returning proper NAME.
3750         (yylex): Accept also NAME from classify_inner_name.
3751         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3752         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
3753         LOC_TYPEDEF type.
3754         * cp-support.h (cp_lookup_nested_type): Update its declaration.
3755
3756 2012-06-13  Tom Tromey  <tromey@redhat.com>
3757
3758         * breakpoint.c (condition_completer): New function.
3759         (_initialize_breakpoint): Use it.
3760         * value.c (complete_internalvar): New function.
3761         * value.h (complete_internalvar): Declare.
3762
3763 2012-06-13  Tom Tromey  <tromey@redhat.com>
3764
3765         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3766         * breakpoint.c (catch_syscall_completer): Return a VEC.
3767         * cli/cli-cmds.c (complete_command): Update.
3768         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3769         (complete_on_enum): Likewise.
3770         * command.h: Include gdb_vecs.h.
3771         (completer_ftype): Change return type.
3772         (complete_on_cmdlist, complete_on_enum): Likewise.
3773         * completer.c (noop_completer, filename_completer)
3774         (location_completer): Return a VEC.
3775         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
3776         to a VEC.
3777         (expression_completer, complete_line_internal, complete_line)
3778         (command_completer): Return a VEC.
3779         (gdb_completion_word_break_characters, line_completion_function):
3780         Update.
3781         * completer.h: Include gdb_vecs.h.
3782         (complete_line, noop_completer, filename_completer)
3783         (expression_completer, location_completer, command_completer):
3784         Update.
3785         * f-lang.c (f_word_break_characters): Return a VEC.
3786         * interps.c (interpreter_completer): Return a VEC.
3787         * language.h (struct language_defn)
3788         <la_make_symbol_completion_list>: Return a VEC.
3789         * python/py-cmd.c (cmdpy_completer): Return a VEC.
3790         * symtab.c (free_completion_list): Take a VEC.
3791         (return_val_size, return_val_index): Remove.
3792         (return_val): Now a VEC.
3793         (completion_list_add_name): Update.
3794         (default_make_symbol_completion_list_break_on)
3795         (default_make_symbol_completion_list, make_symbol_completion_list)
3796         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3797         Return a VEC.
3798         (add_filename_to_list): Update.
3799         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3800         <list>: Now a VEC.
3801         (maybe_add_partial_symtab_filename): Update.
3802         (make_source_files_completion_list): Return a VEC.
3803         * symtab.h (default_make_symbol_completion_list_break_on)
3804         (default_make_symbol_completion_list, make_symbol_completion_list)
3805         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3806         (make_source_files_completion_list): Update.
3807
3808 2012-06-13  Tom Tromey  <tromey@redhat.com>
3809
3810         * breakpoint.c (add_catch_command): Use completer_ftype.
3811         * breakpoint.h: Include command.h.
3812         (add_catch_command): Use completer_ftype.
3813         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3814         * cli/cli-decode.h (struct cmd_list_element) <completer>:
3815         Use completer_ftype.
3816         * command.h (completer_ftype): New typedef.
3817         (set_cmd_completer): Use it.
3818         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3819         completer_ftype.
3820
3821 2012-06-13  Pedro Alves  <palves@redhat.com>
3822
3823         Partial revert of previous change.
3824
3825         * serial.c (scb_base): New global.
3826         (serial_for_fd): New.
3827         (serial_open, serial_fdopen_ops): Link new serial in open serials
3828         chain.
3829         (do_serial_close): Unlink serial from the open serials chain.
3830
3831 2012-06-12  Pedro Alves  <palves@redhat.com>
3832
3833         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3834         threads here.
3835         (prepare_for_detach): No longer context switch here in non-stop
3836         mode.
3837         (fetch_inferior_event): Ditto.
3838         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3839         to the event thread before removing breakpoints.  Switch to the
3840         event thread before inserting breakpoints and resuming.
3841         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3842         event thread before resuming.
3843         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3844         Switch to the event thread before removing breakpoints.
3845
3846 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
3847
3848         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3849         special characters correctly for the Windows shells.  See
3850         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3851         report.
3852         [!__MINGW32__]: Remove extra double quote character from special
3853         characters.
3854
3855 2012-06-11  Stan Shebs  <stan@codesourcery.com>
3856
3857         * ui-out.h: Remove #if 0 declarations.
3858         * ui-out.c: Remove #if 0 functions.
3859
3860 2012-06-11  Pedro Alves  <palves@redhat.com>
3861
3862         * ser-base.c (run_async_handler_and_reschedule): New.
3863         (fd_event, push_event): Use it.
3864         * serial.c (serial_open, serial_fdopen_ops): Set the initial
3865         reference count to 1.
3866         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
3867         instead of xfree.
3868         (serial_is_open, serial_ref, serial_unref): New.
3869         * serial.h (serial_open): Adjust comment.
3870         (serial_is_open): Declare.
3871         (serial_close): Adjust comment.
3872         (serial_ref, serial_unref) Declare.
3873         (struct serial): New field 'refcnt'.
3874
3875 2012-06-11  Pedro Alves  <palves@redhat.com>
3876
3877         Remove #if 0'd "connect" command, and unnecessary associated
3878         refcounting and serial reuse bits.
3879
3880         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3881         * serial.c (last_serial_opened): Delete.
3882         (scb_base): Delete.
3883         (serial_open): Adjust.
3884         (serial_for_fd): Delete.
3885         (serial_fdopen_ops, do_serial_close): Adjust.
3886         (serial_fdopen_ops): Adjust.
3887
3888 2012-06-11  Pedro Alves  <palves@redhat.com>
3889
3890         * serial.c (do_serial_close): Remove early return when SCB is
3891         null.
3892
3893 2012-06-11  Tom Tromey  <tromey@redhat.com>
3894
3895         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3896
3897 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3898
3899         Fix regression by the "ambiguous linespec" series.
3900         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
3901         get_last_displayed_symtab and get_last_displayed_line and depending
3902         on CURSAL.
3903
3904 2012-06-11  Tom Tromey  <tromey@redhat.com>
3905
3906         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3907         (dw2_find_symbol_file): Use it.
3908
3909 2012-06-11  Michael Eager  <eager@eagercon.com>
3910
3911         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3912         * mips-linux-tdep.h (mips_signals): New
3913
3914 2012-06-11  Tom Tromey  <tromey@redhat.com>
3915
3916         * infrun.c (handle_inferior_event)
3917         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3918         breakpoint.
3919         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3920         exception logic in all cases.  Update comments.
3921         (insert_longjmp_resume_breakpoint): Set the exception resume
3922         breakpoint.
3923
3924 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
3925
3926         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3927
3928 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
3929
3930         * valarith.c (binop_types_user_defined_p): Fix a typo.
3931
3932 2012-06-08  Yao Qi  <yao@codesourcery.com>
3933             Chung-Lin Tang <cltang@codesourcery.com>
3934
3935         * arch-utils.c (default_return_in_first_hidden_param_p): New.
3936         * arch-utils.h: Declare.
3937         * gdbarch.sh: Add return_in_first_hidden_param_p.
3938         * gdbarch.c, gdbarch.h: Regenerated.
3939         * infcall.c (call_function_by_hand): Call
3940         gdbarch_return_in_first_hidden_param_p instead of
3941         language_pass_by_reference.
3942
3943         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3944         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3945         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3946         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3947         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3948         `cplus_return_struct_by_reference'.
3949         (tic6x_return_value): Handle language cplusplus.
3950         (tic6x_return_in_first_hidden_param_p): New.
3951         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3952
3953 2012-06-07  Doug Evans  <dje@google.com>
3954
3955         * dwarf2read.c (dwarf2_cu): Add comment.
3956
3957 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
3958
3959         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3960         variable.
3961         (mips_eabi_push_dummy_call): Likewise.
3962         (mips_n32n64_push_dummy_call): Likewise.
3963         (mips_o32_push_dummy_call): Likewise.
3964         (mips_o64_push_dummy_call): Likewise.
3965
3966 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
3967
3968         * mips-tdep.c (mips_convert_register_p): Correct coding style.
3969
3970 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
3971
3972         * mips-tdep.c (mips_pseudo_register_type): Use
3973         mips_float_register_p.
3974
3975 2012-06-06  Pedro Alves  <palves@redhat.com>
3976
3977         * infrun.c (handle_inferior_event): Remove calls to
3978         reinit_frame_cache that follow a context_switch call.
3979
3980 2012-06-06  Pedro Alves  <palves@redhat.com>
3981
3982         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3983         context_switch and remove stale comment.
3984
3985 2012-06-06  Pedro Alves  <palves@redhat.com>
3986
3987         * infrun.c (struct execution_control_state): Remove
3988         `new_thread_event' field.
3989         (handle_inferior_event): Simplify new threads handling; don't
3990         resume the inferior if we find a new thread.
3991
3992 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
3993
3994         * NEWS: Document the deprecation of SH's 'regs' command.
3995         * inferior.h (all_registers_info): Add function declaration.
3996         * sh-tdep.c (sh_show_regs): Remove variable.
3997         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3998         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3999         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4000         (sh_show_regs_command): Remove functions.
4001         (sh_gdbarch_init): Don't set sh_show_regs.
4002         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4003         'info all-registers'.
4004         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4005         (sh64_show_regs): Remove functions.
4006         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4007
4008 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4009
4010         * configure.ac: Move development=true below AC_INIT.
4011         * configure: Regenerate.
4012
4013 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4014
4015         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4016         gdb_stdout.
4017
4018 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4019
4020         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4021         argument as ssize_t.
4022         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4023         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4024         * target.c (target_read_stack, target_write_memory)
4025         (target_write_raw_memory): Likewise.
4026         * target.h (target_read_stack, target_write_memory)
4027         (target_write_raw_memory): Likewise.
4028
4029 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4030
4031         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4032         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4033         * target.c (target_read_memory): Change LEN to ssize_t.
4034         * target.h (target_read_memory): Change LEN to ssize_t.
4035
4036 2012-06-05  Pedro Alves  <palves@redhat.com>
4037
4038         PR backtrace/13866
4039
4040         * breakpoint.c (until_break_command): Only fetch the selected
4041         frame after decode_line_1.
4042
4043 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4044
4045         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4046         event breakpoint at _start, __start or main if a program
4047         interpreter is not found.
4048
4049 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4050
4051         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4052         Add declaration.
4053         * windows-tdep.c: #include "objfiles.h".
4054         (windows_iterate_over_objfiles_in_search_order): New function.
4055         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4056         iterate_over_objfiles_in_search_order gdbarch method to
4057         windows_iterate_over_objfiles_in_search_order.
4058         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4059
4060 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4061
4062         * gdbarch.sh: Add generation of
4063         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4064         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
4065         (iterate_over_objfiles_in_search_order): New gdbarch method.
4066         * gdbarch.h, gdbarch.c: Regenerate.
4067         * objfiles.h (default_iterate_over_objfiles_in_search_order):
4068         Add declaration.
4069         * objfiles.c (default_iterate_over_objfiles_in_search_order):
4070         New function.
4071         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4072         out of lookup_symbol_aux_symtabs.
4073         (lookup_symbol_aux_symtabs): Replace extracted-out code by
4074         call to lookup_symbol_aux_objfile.
4075         (struct global_sym_lookup_data): New type.
4076         (lookup_symbol_global_iterator_cb): New function.
4077         (lookup_symbol_global): Search for symbol using
4078         gdbarch_iterate_over_objfiles_in_search_order and
4079         lookup_symbol_global_iterator_cb.
4080         * findvar.c (struct minsym_lookup_data): New type.
4081         (minsym_lookup_iterator_cb): New function.
4082         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4083         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4084         and minsym_lookup_iterator_cb.
4085
4086 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4087
4088         Revert the following patch:
4089         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4090         try locating the symbol in the symbol's own objfile first, before
4091         extending the search to all objfiles.
4092         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4093         out of lookup_symbol_aux_symtabs.
4094         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4095         Replace extracted-out code by call to lookup_symbol_aux_objfile.
4096         Do not search EXCLUDE_OBJFILE.
4097         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4098         (lookup_symbol_global): Search for matches in the block's objfile
4099         first, before searching all other objfiles.
4100
4101 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4102
4103         * breakpoint.c (find_condition_and_thread): Stop parsing
4104         as soon as the first invalid keyword is found.
4105
4106 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4107
4108         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4109
4110 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4111
4112         * config/djgpp/djcheck.sh: Add copyright header.
4113
4114 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4115
4116         * copyright.py (update_files, main): Fix path to update-copyright
4117         script.
4118
4119 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4120
4121         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4122         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4123         for which a reminder to update by hand is printed.
4124
4125 2012-06-04  Doug Evans  <dje@google.com>
4126
4127         * buildsym.c (make_blockvector): Add comment.
4128
4129 2012-06-04  Pedro Alves  <palves@redhat.com>
4130
4131         * arch-utils.c (default_gdb_signal_from_target): Delete.
4132         * arch-utils.h (default_gdb_signal_from_target): Delete.
4133         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
4134         gdbarch_gdb_signal_from_target_p.
4135         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4136         predicate).
4137         * gdbarch.h: Regenerate.
4138         * gdbarch.c: Regenerate.
4139
4140 2012-06-04  Pedro Alves  <palves@redhat.com>
4141
4142         * gdbarch.sh (gdb_signal_from_target): Mention that the
4143         implementation of the method must be host independent.
4144         * gdbarch.h: Regenerate.
4145
4146 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4147
4148         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4149         parameters.
4150         (target_read_memory_bfd): New function.
4151         (symbol_file_add_from_memory): Use it.
4152
4153 2012-06-03  Doug Evans  <dje@google.com>
4154
4155         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4156         of primary symtab.
4157         (basic_lookup_transparent_type): Ditto.
4158
4159         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4160         (ALL_PRIMARY_SYMTABS): Use it.
4161         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4162         * dwarf2read.c (dw2_find_symbol_file): Ditto.
4163         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4164         * symtab.c (lookup_symbol_aux_objfile): Ditto.
4165         (basic_lookup_transparent_type): Ditto.
4166
4167 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4168
4169         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
4170         it to optimize resolution of demangled name.
4171
4172 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4173
4174         * configure.ac (development): Define new variable.
4175         Call AC_CHECK_LIB for mcheck if $development.
4176         (ERROR_ON_WARNING): Enable it by default only if $development.
4177         * config.in: Regenerate.
4178         * configure: Regenerate.
4179
4180 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4181
4182         * target.c (target_read_memory): Make LEN argument as size_t.
4183         * target.h (target_read_memory): Likewise.
4184
4185 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4186
4187         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4188
4189 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4190
4191         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4192         BookE interface for PowerPC server processors if not available
4193         in the Linux Kernel.
4194
4195 2012-05-31  Keith Seitz  <keiths@redhat.com>
4196
4197         * linespec.c (decode_objc): Add cleanup to free
4198         INFO.FILE_SYMTABS.
4199         (find_linespec_symbols): Add cleanup to free CLASSES.
4200         * symfile.c (find_separate_debug_file_by_debuglink): Add
4201         cleanup to free DEBUGLINK.
4202         * ui-out.c (clear_header_list): No need to check if
4203         HEADER_NEXT.COLHDR is NULL.
4204         Free HEADER_NEXT.COL_NAME.
4205
4206 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4207
4208         * ada-lang.c (standard_lookup): Prevent uninitialized variable
4209         warning.
4210
4211 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4212
4213         * configure.host (gdb_host_cpu): Handle tilegx*.
4214         (gdb_host): Handle tilegx-*-linux*.
4215         * tilegx-linux-nat.c: New file.
4216         * config/tilegx/linux.mh: New file.
4217
4218 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4219
4220         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4221         tilegx-linux-tdep.o.
4222         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4223         tilegx-linux-tdep.c.
4224         * configure.tgt: Handle tilegx-*-linux*.
4225         * tilegx-tdep.h: New file.
4226         * tilegx-tdep.c: New file.
4227         * tilegx-linux-tdep.c: New file.
4228         * regformats/reg-tilegx.dat: New file.
4229
4230 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4231
4232         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4233         accounting of hw watchpoints on ppc.
4234
4235 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
4236
4237         * source.c (openp): Expand tilde in path entries.
4238
4239 2012-05-29  Doug Evans  <dje@google.com>
4240
4241         * buildsym.c (block_compar): Fix comment.
4242         (end_symtab): Fix and clarify some comments.
4243
4244         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4245         cleanup_undefined_types.
4246         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4247         All callers updated.
4248
4249 2012-05-29  Tom Tromey  <tromey@redhat.com>
4250
4251         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4252         fails.
4253         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4254         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4255         fails.
4256         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4257         fails.
4258
4259 2012-05-29  Tristan Gingold  <gingold@adacore.com>
4260
4261         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4262         (struct darwin_info): ... New struct.
4263         (solib_darwin_pspace_data): New variable.
4264         (darwin_pspace_data_cleanup): New function.
4265         (get_darwin_info): Likewise.
4266         (darwin_dyld_version_ok, darwin_load_image_infos)
4267         (darwin_solib_get_all_image_info_addr_at_init)
4268         (darwin_solib_read_all_image_info_addr): Add info argument.
4269         Adjust code.
4270         (darwin_current_sos): Use per pspace structure.
4271         (darwin_solib_create_inferior_hook): Likewise.
4272         (darwin_clear_solib): Likewise.
4273         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4274
4275 2012-05-28  Pedro Alves  <palves@redhat.com>
4276
4277         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4278         block that uses them.  Clear ecss before handling each event.
4279
4280 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4281
4282         * solib-svr4.c (svr4_current_sos): New comment on
4283         svr4_current_sos_via_xfer_libraries fall back.
4284
4285 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4286
4287         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
4288         it as a fallback for TYPE_IS_OPAQUE.
4289         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4290         symbols for lookup_symbol.
4291
4292 2012-05-24  John Steele Scott  <toojays@toojays.net>
4293
4294         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4295         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4296         (producer_is_gxx_lt_4_6): Move the checking and caching to...
4297         (check_producer): ... this new function, which also checks for ICC
4298         and caches the result.
4299         (producer_is_icc): New function.
4300         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4301         producer was ICC.
4302
4303 2012-05-24  Pedro Alves  <palves@redhat.com>
4304
4305         PR gdb/7205
4306
4307         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4308         (default_gdb_signal_to_target): ... this.  Add comment.
4309         (default_gdb_signal_from_host): Rename to ...
4310         (default_gdb_signal_from_target): ... this.  Add comment.
4311         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4312         (default_gdb_signal_to_target): ... this.
4313         (default_gdb_signal_from_host): Rename to ...
4314         (default_gdb_signal_from_target): ... this.
4315         * corelow.c (core_open): Adjust to naming change.  Replace comment.
4316         * gdbarch.sh (gdb_signal_from_host): Rename to ...
4317         (gdb_signal_from_target): ... this.  Adjust to
4318         default_gdb_signal_from_host naming change.  Extend comment.
4319         (gdb_signal_to_host): Rename to ...
4320         (gdb_signal_to_target): ... this.  Adjust to
4321         default_gdb_signal_to_host naming change.
4322         * gdbarch.h, gdbarch.c: Renegerate.
4323
4324 2012-05-24  Pedro Alves  <palves@redhat.com>
4325
4326         PR gdb/7205
4327
4328         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4329
4330 2012-05-24  Pedro Alves  <palves@redhat.com>
4331
4332         PR gdb/7205
4333
4334         Replace target_signal with gdb_signal throughout.
4335
4336 2012-05-24  Pedro Alves  <palves@redhat.com>
4337
4338         PR tui/14159
4339
4340         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4341         string, instead of reusing the va_list argument.
4342
4343 2012-05-24  Tom Tromey  <tromey@redhat.com>
4344
4345         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4346         Remove.
4347
4348 2012-05-23  Doug Evans  <dje@google.com>
4349
4350         * symtab.c (search_symbols): Formatting fixes.
4351         (print_symbol_info): Formatting fixes.
4352
4353         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4354         int64_t change to leb128 API.
4355         (read_encoded_value, decode_frame_entry_1): Ditto.
4356         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4357         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4358         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4359         (execute_stack_op): Ditto.
4360         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4361         (safe_read_uleb128, safe_read_sleb128): Ditto.
4362         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4363         (dwarf2_compile_expr_to_ax): Ditto.
4364         (locexpr_describe_location_piece): Ditto.
4365         (disassemble_dwarf_expression): Ditto.
4366         (locexpr_describe_location_1): Ditto.
4367
4368 2012-05-23  Stan Shebs  <stan@codesourcery.com>
4369             Kwok Cheung Yeung  <kcy@codesourcery.com>
4370
4371         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4372         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4373         (mi-cmd-info.o): New rule.
4374         * osdata.h (info_osdata_command): New declaration.
4375         * osdata.c (info_osdata_command): Change to non-static.
4376         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4377         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4378         * mi/mi-cmd-info.c: New file.
4379
4380 2012-05-23  Doug Evans  <dje@google.com>
4381
4382         * symtab.c (search_symbols): Pass NULL for file_matcher to
4383         expand_symtabs_matching if there are no files to match.
4384
4385         * gdbtypes.c (lookup_typename): Simplify.
4386
4387 2012-05-23  Pedro Alves  <palves@redhat.com>
4388
4389         * arch-utils.h (default_target_signal_to_host): Delete.
4390         * arch-utils.c (default_target_signal_to_host): Delete.
4391         * gdbarch.sh (target_signal_to_host): Remove.
4392         * gdbarch.h, gdbarch.c: Regenerate.
4393
4394 2012-05-22  Doug Evans  <dje@google.com>
4395
4396         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4397         "const gdb_byte *".
4398         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4399         (execute_cfa_program): Update to match API of leb128 functions.
4400         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4401         "const gdb_byte *".
4402         (read_unsigned_leb128, read_signed_leb128): Delete.
4403         (read_initial_length): Change type of buf argument to
4404         "const gdb_byte *".
4405         (read_encoded_value): Update to match API of leb128 functions.
4406         (decode_frame_entry): Change result to "const gdb_byte *", and
4407         similarly for "start" parameter.
4408         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
4409         (dwarf2_build_frame_info): Change local frame_ptr to
4410         "const gdb_byte *".
4411         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4412         read_uleb128, read_sleb128.  All callers updated.
4413         (safe_skip_leb128): New function.
4414         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4415         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4416         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4417         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
4418         read_uleb128, read_sleb128.
4419         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4420         (execute_stack_op): Update to match API of leb128 functions.
4421         * dwarf2expr.h: #include "leb128.h".
4422         (read_uleb128, read_sleb128): Delete.
4423         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4424         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4425         * dwarf2loc.c (debug_loc_kind): New enum.
4426         (decode_debug_loc_addresses): New function.
4427         (decode_debug_loc_dwo_addresses): New function.
4428         (dwarf2_find_location_expression): Rewrite.
4429         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4430         (locexpr_describe_location_piece): Ditto.
4431         (disassemble_dwarf_expression): Ditto.
4432         (locexpr_describe_location_1): Ditto.
4433         (loclist_describe_location): Rewrite.
4434         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4435         * dwarf2read.c (die_reader_specs): New member "buffer_end".
4436         (dwarf2_section_buffer_overflow_complaint): Renamed from
4437         dwarf2_macros_too_long_complaint.  All callers updated.
4438         (skip_leb128): Delete.
4439         (init_cu_die_reader): Initialize reader->buffer_end.
4440         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4441         (skip_form_bytes): New arg buffer_end.  All callers updated.
4442         Replace call to skip_leb128 with gdb_skip_leb128.
4443         (skip_unknown_opcode): New arg mac_end.  All callers updated.
4444         (fill_in_loclist_baton): Initialize baton->from_dwo.
4445
4446 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4447
4448         * mips-linux-nat.c (mips_linux_read_description): Use a more
4449         verbose error message.
4450
4451 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4452
4453         * NEWS: Add MIPS/Linux DSP support.
4454         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4455         (SIGCONTEXT_DSPCTL): New macro.
4456         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4457         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4458         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4459         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4460         (N64_SIGCONTEXT_HI3): Likewise.
4461         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4462         (N64_SIGCONTEXT_LO3): Likewise.
4463         (N64_SIGCONTEXT_DSPCTL): Likewise.
4464         (N64_SIGCONTEXT_FPCSR): Clarify definition.
4465         (mips_linux_o32_sigframe_init): Handle DSP registers.
4466         (mips_linux_n32n64_sigframe_init): Likewise.
4467
4468 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4469
4470         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4471         call to abort.
4472
4473 2012-05-22  Pedro Alves  <palves@redhat.com>
4474
4475         * target.h (store_waitstatus): Move declaration ...
4476         * inf-child.h (store_waitstatus): ... here.
4477         * target.c: Move inclusion of gdb_wait.h, and ...
4478         (store_waitstatus): ... this ...
4479         * inf-child.c: ... here.
4480         * linux-nat.c: Include inf-child.h.
4481         * rs6000-nat.c: Include inf-child.h.
4482         * spu-linux-nat.c: Include inf-child.h.
4483
4484 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4485
4486         * tracepoint.c (start_tracing): Add missing i18n markup.
4487         (stop_tracing, set_trace_user): Ditto.
4488         (set_trace_notes, set_trace_stop_notes): Ditto.
4489
4490 2012-05-21  Tom Tromey  <tromey@redhat.com>
4491
4492         PR c++/7173:
4493         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4494         types.
4495         * value.h (value_cast_pointers): Update.
4496         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4497         (value_cast): Update.
4498         (update_search_result): New function.
4499         (do_search_struct_field): New, from search_struct_field.  Check
4500         for ambiguous results.
4501         (search_struct_field): Rewrite.
4502         * infcall.c (value_arg_coerce): Update.
4503         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4504         value_cast_pointers.
4505         * ada-lang.c (ada_convert_actual): Update.
4506
4507 2012-05-21  Tom Tromey  <tromey@redhat.com>
4508
4509         * macroexp.c (macro_stringify): Terminate the string.
4510
4511 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4512
4513         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4514         Describe it.
4515         * auto-load.c (auto_load_expand_dir_vars): New function.
4516         (auto_load_safe_path_vec_update): Use it, remove the
4517         substitute_path_component call thanks to it.
4518         (auto_load_objfile_script): Remove the debug_file_directory processing.
4519         Use auto_load_expand_dir_vars, remove the substitute_path_component
4520         call thanks to it.
4521         * configure: Regenerate.
4522         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4523         path.  Escape $ also for $debugdir.
4524         (--with_auto_load_safe_path): Escape $ also for $debugdir.
4525         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4526
4527 2012-05-20  Doug Evans  <dje@google.com>
4528
4529         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4530         before use.  Check for symtab->includes == NULL before scanning it.
4531
4532 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4533
4534         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4535
4536 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4537
4538         * NEWS: Add microMIPS support and "set mips compression",
4539         "show mips compression" commands.
4540         * mips-tdep.h (mips_isa): New enum.
4541         (gdbarch_tdep): Add mips_isa.
4542         (mips_pc_is_mips16): Update prototype.
4543         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4544         * mips-tdep.c (mips_compression_mips16): New variable.
4545         (mips_compression_micromips): Likewise.
4546         (mips_compression_strings): Likewise.
4547         (mips_compression_string): Likewise.
4548         (is_mips16_isa, is_micromips_isa): New functions.
4549         (is_mips16_addr): Rename to...
4550         (is_compact_addr): ... this.
4551         (unmake_mips16_addr): Likewise to...
4552         (unmake_compact_addr): ... this.
4553         (make_mips16_addr): Likewise to...
4554         (make_compact_addr): ... this.
4555         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4556         functions.
4557         (mips_elf_make_msymbol_special): Handle microMIPS code.
4558         (msymbol_is_special): Rename to...
4559         (msymbol_is_mips16): ... this.
4560         (mips_make_symbol_special, mips_pc_is_mips16): Update
4561         accordingly.
4562         (msymbol_is_mips, msymbol_is_micromips): New functions.
4563         (mips16_to_32_reg): Rename to...
4564         (mips_reg3_to_reg): ... this.
4565         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4566         (mips_pc_isa): Likewise.
4567         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4568         code.
4569         (mips_fetch_instruction): Pass return status instead of printing
4570         an error message if requested.  Handle microMIPS code.  Bail out
4571         on an invalid ISA.
4572         (micromips_op): New macro.
4573         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4574         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4575         (b6s4_op, b7s3_reg): Likewise.
4576         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4577         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4578         (mips_insn_size): New function.
4579         (mips32_next_pc): Update mips_fetch_instruction call.
4580         (micromips_relative_offset7): New function.
4581         (micromips_relative_offset10): Likewise.
4582         (micromips_relative_offset16): Likewise.
4583         (micromips_pc_insn_size): Likewise.
4584         (micromips_bc1_pc): Likewise.
4585         (micromips_next_pc): Likewise.
4586         (unpack_mips16): Update mips_fetch_instruction call.
4587         (extended_mips16_next_pc): Update according to change to
4588         mips16_to_32_reg.
4589         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
4590         code.
4591         (mips16_scan_prologue): Update mips_fetch_instruction call.
4592         Update according to change to mips16_to_32_reg.
4593         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4594         (mips_insn16_frame_base_sniffer): Likewise.
4595         (micromips_decode_imm9): New function.
4596         (micromips_scan_prologue): Likewise.
4597         (mips_micro_frame_cache): Likewise.
4598         (mips_micro_frame_this_id): Likewise.
4599         (mips_micro_frame_prev_register): Likewise.
4600         (mips_micro_frame_sniffer): Likewise.
4601         (mips_micro_frame_unwind): New variable.
4602         (mips_micro_frame_base_address): New function.
4603         (mips_micro_frame_base): New variable.
4604         (mips_micro_frame_base_sniffer): New function.
4605         (mips32_scan_prologue): Update mips_fetch_instruction call.
4606         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4607         rather than for MIPS16.
4608         (mips_insn32_frame_base_sniffer): Likewise.
4609         (mips_addr_bits_remove): Handle microMIPS code.
4610         (deal_with_atomic_sequence): Rename to...
4611         (mips_deal_with_atomic_sequence): ... this.  Update the type
4612         of the variable used to hold an instruction.  Remove the ISA bit
4613         check.  Update mips_fetch_instruction call.
4614         (micromips_deal_with_atomic_sequence): New function.
4615         (deal_with_atomic_sequence): Likewise.
4616         (mips_about_to_return): Handle microMIPS code.  Update
4617         mips_fetch_instruction call.
4618         (heuristic_proc_start): Check for the standard MIPS ISA rather
4619         than for MIPS16.  Update mips_pc_is_mips16 and
4620         mips_fetch_instruction calls.  Handle microMIPS code.
4621         (mips_push_dummy_code): Handle microMIPS code.
4622         (mips_eabi_push_dummy_call): Likewise.
4623         (mips_o32_return_value): Update mips_pc_is_mips16 call.
4624         (mips_o64_push_dummy_call): Handle microMIPS code.
4625         (mips_o64_return_value): Update mips_pc_is_mips16 call.
4626         (is_delayed): Remove function.
4627         (mips_single_step_through_delay): Replace the call to is_delayed
4628         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
4629         Handle microMIPS code.
4630         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
4631         microMIPS code.
4632         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4633         call.
4634         (micromips_in_function_epilogue_p): New function.
4635         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4636         call.
4637         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4638         Handle microMIPS.
4639         (gdb_print_insn_mips): Likewise.
4640         (mips_breakpoint_from_pc): Likewise.
4641         (mips_remote_breakpoint_from_pc): New function.
4642         (mips32_instruction_has_delay_slot): Simplify making use of the
4643         updated mips_fetch_instruction interface.
4644         (micromips_instruction_has_delay_slot): New function.
4645         (mips16_instruction_has_delay_slot): Simplify making use of the
4646         updated mips_fetch_instruction interface.
4647         (mips_adjust_breakpoint_address): Check for the standard MIPS
4648         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
4649         calls.  Handle microMIPS code.
4650         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4651         (mips_skip_trampoline_code): Handle microMIPS code.
4652         (global_mips_compression): New function.
4653         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4654         file flags.  Register the microMIPS remote breakpoint handler
4655         and heuristic frame unwinder.
4656         (show_mips_compression): New function.
4657         (_initialize_mips_tdep): Add the "set mips compression" and
4658         "show mips compression" commands.
4659
4660 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4661
4662         * ada-lang.c:
4663         * ada-tasks.c:
4664         * ada-varobj.c:
4665         * amd64-darwin-tdep.c:
4666         * arm-symbian-tdep.c:
4667         * arm-tdep.c:
4668         * avr-tdep.c:
4669         * ax-gdb.c:
4670         * bfin-linux-tdep.c:
4671         * breakpoint.c:
4672         * c-valprint.c:
4673         * cli/cli-cmds.c:
4674         * coffread.c:
4675         * cp-support.c:
4676         * cris-tdep.c:
4677         * dwarf2-frame-tailcall.c:
4678         * dwarf2-frame.c:
4679         * dwarf2expr.c:
4680         * dwarf2loc.c:
4681         * dwarf2read.c:
4682         * elfread.c:
4683         * eval.c:
4684         * expprint.c:
4685         * f-valprint.c:
4686         * frv-tdep.c:
4687         * h8300-tdep.c:
4688         * hppa-hpux-tdep.c:
4689         * hppa-tdep.c:
4690         * hppanbsd-tdep.c:
4691         * i386-nto-tdep.c:
4692         * i386-tdep.c:
4693         * i387-tdep.c:
4694         * ia64-tdep.c:
4695         * jit.c:
4696         * linespec.c:
4697         * linux-tdep.c:
4698         * lm32-tdep.c:
4699         * m2-valprint.c:
4700         * m32c-tdep.c:
4701         * m32r-rom.c:
4702         * m32r-tdep.c:
4703         * m68k-tdep.c:
4704         * m68klinux-tdep.c:
4705         * mi/mi-main.c:
4706         * microblaze-tdep.c:
4707         * mips-linux-tdep.c:
4708         * mips-tdep.c:
4709         * mn10300-tdep.c:
4710         * p-valprint.c:
4711         * parse.c:
4712         * ppc-linux-tdep.c:
4713         * ppc-sysv-tdep.c:
4714         * printcmd.c:
4715         * python/py-finishbreakpoint.c:
4716         * python/py-inferior.c:
4717         * python/py-infthread.c:
4718         * python/py-type.c:
4719         * python/python.c:
4720         * remote-fileio.c:
4721         * remote-m32r-sdi.c:
4722         * remote-mips.c:
4723         * reverse.c:
4724         * rl78-tdep.c:
4725         * rs6000-aix-tdep.c:
4726         * rs6000-tdep.c:
4727         * s390-tdep.c:
4728         * score-tdep.c:
4729         * sh64-tdep.c:
4730         * skip.c:
4731         * solib-darwin.c:
4732         * solib-dsbt.c:
4733         * solib-frv.c:
4734         * sparc-tdep.c:
4735         * spu-multiarch.c:
4736         * spu-tdep.c:
4737         * stack.c:
4738         * symfile.c:
4739         * symtab.c:
4740         * tic6x-tdep.c:
4741         * tracepoint.c:
4742         * v850-tdep.c:
4743         * valarith.c:
4744         * valprint.c:
4745         * value.c:
4746         * xcoffread.c:
4747         * xtensa-tdep.c:
4748         * ada-lang.c:
4749         * ada-tasks.c:
4750         * ada-varobj.c:
4751         * amd64-darwin-tdep.c:
4752         * arm-symbian-tdep.c:
4753         * arm-tdep.c: Delete unused variables.
4754
4755 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4756
4757         Rename $ddir to $datadir.
4758         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4759         * auto-load.c (auto_load_safe_path_vec_update)
4760         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4761         * configure: Regenerate.
4762         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4763         Likewise.  Remove the 'use $ddir' help string.
4764
4765 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4766
4767         * auto-load.c (show_auto_load_safe_path): Accept any combination of
4768         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4769
4770 2012-05-18  Tom Tromey  <tromey@redhat.com>
4771
4772         PR exp/13907:
4773         * valprint.h (struct value_print_options) <symbol_print>: New
4774         field.
4775         * valprint.c (user_print_options): Add default for symbol_print.
4776         (show_symbol_print): New function.
4777         (generic_val_print): Respect symbol_print.
4778         (_initialize_valprint): Add "print symbol" setting.
4779         * f-valprint.c (f_val_print): Respect symbol_print.
4780         * c-valprint.c (c_val_print): Respect symbol_print.
4781         * NEWS: Update.
4782         * printcmd.c (print_address_symbolic): Return int.  Ignore some
4783         zero-size symbols.
4784         (print_address_demangle): Return int.
4785         * defs.h: (print_address_symbolic): Return int.
4786         * value.h (print_address_demangle): Return int.
4787
4788 2012-05-18  Tom Tromey  <tromey@redhat.com>
4789
4790         * valprint.c (val_print_string): Don't print leading space.
4791         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4792         print space before string or vtbl.
4793         * m2-valprint.c (print_unpacked_pointer): Optionally print space
4794         before string.
4795         * jv-valprint.c (java_value_print): Print space before string.
4796         * go-valprint.c (print_go_string): Print space before string.
4797         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4798         space before string.
4799         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4800         space before string or vtbl.
4801         * auxv.c (fprint_target_auxv): Print space after address.
4802
4803 2012-05-18  Tom Tromey  <tromey@redhat.com>
4804
4805         * printcmd.c (print_address_demangle): Remove special case for 0.
4806
4807 2012-05-18  Tom Tromey  <tromey@redhat.com>
4808
4809         * printcmd.c (print_address_demangle): Add 'opts' argument.
4810         * p-valprint.c (pascal_val_print): Update.
4811         * jv-valprint.c (java_val_print): Update.
4812         * value.h: Update.
4813         * valprint.c (generic_val_print): Update.
4814         (print_function_pointer_address): Add 'options' argument.  Remove
4815         'addressprint' argument.  Update.
4816         * m2-valprint.c (print_unpacked_pointer): Update.
4817         * gnu-v3-abi.c (print_one_vtable): Update.
4818         (gnuv3_print_method_ptr): Update.
4819         * f-valprint.c (f_val_print): Update.
4820         * cp-valprint.c (cp_print_value_fields): Update.
4821         * valprint.h (print_function_pointer_address): Update.
4822         * c-valprint.c (c_val_print): Update.
4823
4824 2012-05-18  Tom Tromey  <tromey@redhat.com>
4825
4826         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4827         directly corresponding to the found psymtab.
4828         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4829         (dw2_find_pc_sect_symtab): Use it.
4830         * block.h (blockvector_contains_pc): Declare.
4831         * block.c (find_block_in_blockvector): New function.
4832         (blockvector_for_pc_sect): Use it.
4833         (blockvector_contains_pc): New function.
4834
4835 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4836
4837         * mips-tdep.h (mips_write_pc): New prototype.
4838         * mips-tdep.c (mips_write_pc): Make external, add description.
4839         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4840         add description.
4841
4842 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4843
4844         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4845         mips_regnum->pc.
4846         (mips_unwind_pc, mips_write_pc): Likewise.
4847         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4848         gdbarch_read_pc.
4849
4850 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
4851
4852         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4853         proc_warn, proc_error, proc_get_status, proc_flags,
4854         proc_why, proc_what, proc_nsysarg, proc_sysargs,
4855         proc_set_run_on_last_close, proc_unset_run_on_last_close,
4856         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4857         proc_stop_process, proc_wait_for_stop, proc_run_process,
4858         proc_set_traced_signals, proc_set_traced_faults,
4859         proc_set_traced_sysentry, proc_set_traced_sysexit,
4860         proc_set_held_signals, proc_get_held_signals,
4861         proc_get_traced_signals, proc_get_traced_faults,
4862         proc_get_traced_sysentry, proc_get_traced_sysexit,
4863         proc_clear_current_fault, proc_set_current_signal,
4864         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4865         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4866         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4867         proc_get_current_thread, proc_get_current_thread,
4868         proc_get_current_thread, proc_update_threads,
4869         proc_update_threads, proc_update_threads, proc_update_threads,
4870         proc_iterate_over_threads, procfs_find_new_threads,
4871         procfs_pid_to_str): Make static.  Remove advance declaration.
4872         (proc_cursig): Make static.  Conditionalized defintion on
4873         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4874         (proc_syscall, proc_set_kill_on_last_close,
4875         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4876         proc_get_pending_signals, proc_get_signal_actions,
4877         proc_trace_signal, proc_ignore_signal): Delete.
4878
4879 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
4880
4881         * coffread.c (cs_section_address): Passing proper argument for
4882         `bfd_get_section_vma'.
4883         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4884         `bfd_get_section_flags'.
4885         * remote.c (remote_trace_set_readonly_regions): Likewise, for
4886         `bfd_get_section_vma'.
4887
4888 2012-05-16  Tom Tromey  <tromey@redhat.com>
4889
4890         PR macros/13205:
4891         * macrotab.h: (macro_define_special): Declare.
4892         (enum macro_special_kind): New.
4893         (struct macro_definition) <argc, replacement>: Update comments.
4894         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4895         (macro_define_object_internal): New function.
4896         (macro_define_object): Use it.
4897         (macro_define_special): New function.
4898         (fixup_definition): New function.
4899         (macro_lookup_definition, foreach_macro_in_scope)
4900         (foreach_macro): Use fixup_definition.
4901         * macroexp.h (macro_stringify): Declare.
4902         * macroexp.c (free_buffer_return_text): New function.
4903         (stringify): Constify "arg".
4904         (macro_stringify): New function.
4905         * dwarf2read.c (macro_start_file): Call macro_define_special.
4906
4907 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
4908             Maciej W. Rozycki  <macro@mips.com>
4909
4910         * breakpoint.h (bp_location): Add related_address member.
4911         * inferior.h (get_return_value): Take a pointer to struct value
4912         instead of struct type for the function requested.
4913         * value.h (using_struct_return): Likewise.
4914         * gdbarch.sh (return_value): Take a pointer to struct value
4915         instead of struct type for the function requested.
4916         * breakpoint.c (set_breakpoint_location_function): Initialize
4917         related_address for bp_gnu_ifunc_resolver breakpoints.
4918         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4919         requested function's address to gdbarch_return_value.
4920         * eval.c (evaluate_subexp_standard): Pass the requested
4921         function's address to using_struct_return.
4922         * infcall.c (call_function_by_hand): Pass the requested
4923         function's address to using_struct_return and
4924         gdbarch_return_value.
4925         * infcmd.c (get_return_value): Take a pointer to struct value
4926         instead of struct type for the function requested.
4927         (print_return_value): Update accordingly.
4928         (finish_command_continuation): Likewise.
4929         * stack.c (return_command): Pass the requested function's
4930         address to using_struct_return and gdbarch_return_value.
4931         * value.c (using_struct_return): Take a pointer to struct value
4932         instead of struct type for the function requested.  Pass the
4933         requested function's address to gdbarch_return_value.
4934         * python/py-finishbreakpoint.c (finish_breakpoint_object):
4935         New function_value member, replacing function_type.
4936         (bpfinishpy_dealloc): Update accordingly.
4937         (bpfinishpy_pre_stop_hook): Likewise.
4938         (bpfinishpy_init): Likewise.  Record the requested function's
4939         address.
4940         * mips-tdep.c (mips_fval_reg): New enum.
4941         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4942         words put in GP registers.
4943         (mips_o64_push_dummy_call): Update a comment.
4944         (mips_o32_return_value): Take a pointer to struct value instead
4945         of struct type for the function requested and use it to check if
4946         using the MIPS16 calling convention.  Return the designated
4947         general purpose registers for floating-point values returned in
4948         MIPS16 mode.
4949         (mips_o64_return_value): Likewise.
4950         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4951         (ppc_sysv_abi_broken_return_value): Likewise.
4952         (ppc64_sysv_abi_return_value): Likewise.
4953         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4954         value instead of struct type for the function requested.
4955         * amd64-tdep.c (amd64_return_value): Likewise.
4956         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4957         * arm-tdep.c (arm_return_value): Likewise.
4958         * avr-tdep.c (avr_return_value): Likewise.
4959         * bfin-tdep.c (bfin_return_value): Likewise.
4960         * cris-tdep.c (cris_return_value): Likewise.
4961         * frv-tdep.c (frv_return_value): Likewise.
4962         * h8300-tdep.c (h8300_return_value): Likewise.
4963         (h8300h_return_value): Likewise.
4964         * hppa-tdep.c (hppa32_return_value): Likewise.
4965         (hppa64_return_value): Likewise.
4966         * i386-tdep.c (i386_return_value): Likewise.
4967         * ia64-tdep.c (ia64_return_value): Likewise.
4968         * iq2000-tdep.c (iq2000_return_value): Likewise.
4969         * lm32-tdep.c (lm32_return_value): Likewise.
4970         * m32c-tdep.c (m32c_return_value): Likewise.
4971         * m32r-tdep.c (m32r_return_value): Likewise.
4972         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4973         * m68k-tdep.c (m68k_return_value): Likewise.
4974         (m68k_svr4_return_value): Likewise.
4975         * m88k-tdep.c (m88k_return_value): Likewise.
4976         * mep-tdep.c (mep_return_value): Likewise.
4977         * microblaze-tdep.c (microblaze_return_value): Likewise.
4978         * mn10300-tdep.c (mn10300_return_value): Likewise.
4979         * moxie-tdep.c (moxie_return_value): Likewise.
4980         * mt-tdep.c (mt_return_value): Likewise.
4981         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4982         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4983         (ppc_sysv_abi_broken_return_value): Likewise.
4984         (ppc64_sysv_abi_return_value): Likewise.
4985         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4986         * rl78-tdep.c (rl78_return_value): Likewise.
4987         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4988         * rx-tdep.c (rx_return_value): Likewise.
4989         * s390-tdep.c (s390_return_value): Likewise.
4990         * score-tdep.c (score_return_value): Likewise.
4991         * sh-tdep.c (sh_return_value_nofpu): Likewise.
4992         (sh_return_value_fpu): Likewise.
4993         * sh64-tdep.c (sh64_return_value): Likewise.
4994         * sparc-tdep.c (sparc32_return_value): Likewise.
4995         * sparc64-tdep.c (sparc64_return_value): Likewise.
4996         * spu-tdep.c (spu_return_value): Likewise.
4997         * tic6x-tdep.c (tic6x_return_value): Likewise.
4998         * v850-tdep.c (v850_return_value): Likewise.
4999         * vax-tdep.c (vax_return_value): Likewise.
5000         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5001         * xtensa-tdep.c (xtensa_return_value): Likewise.
5002         * gdbarch.c: Regenerate.
5003         * gdbarch.h: Regenerate.
5004
5005 2012-05-15  Tom Tromey  <tromey@redhat.com>
5006
5007         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5008
5009 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5010
5011         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5012         of command in two error message.
5013
5014 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5015
5016         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5017
5018 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5019
5020         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5021
5022 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5023
5024         * NEWS (show auto-load scripts-directory): Add forgotten command.
5025
5026 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5027
5028         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5029         parameters.
5030
5031 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5032
5033         * amd64-tdep.c: Include features/i386/x32.c and
5034         features/i386/x32-avx.c.
5035         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5036         initialize_tdesc_x32_avx.
5037
5038 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5039
5040         Add dynamic printf.
5041         * breakpoint.h (enum bptype): New type bp_dprintf.
5042         (struct breakpoint): New field extra_string.
5043         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5044         (create_breakpoint): Add extra_string arg.
5045         * breakpoint.c (dprintf_breakpoint_ops): New.
5046         (is_breakpoint): Add bp_dprintf.
5047         (bpstat_what): Add dprintf case.
5048         (bptype_string): Ditto.
5049         (print_one_breakpoint_location): Ditto.
5050         (init_bp_location): Ditto.
5051         (bkpt_print_mention): Ditto.
5052         (dprintf_style_enums): New array.
5053         (dprintf_style): New global.
5054         (dprintf_function): New global.
5055         (dprintf_channel): New global.
5056         (update_dprintf_command_list): New function.
5057         (update_dprintf_commands): New function.
5058         (init_breakpoint_sal): Add extra_string argument, handle it.
5059         (create_breakpoint_sal): Add extra_string argument.
5060         (create_breakpoints_sal): Add extra_string argument, update callers.
5061         (find_condition_and_thread): Add extra argument.
5062         (create_breakpoint): Add extra_string argument, record it.
5063         (dprintf_command): New function.
5064         (break_command_1): Add arg to create_breakpoint call.
5065         (handle_gnu_v3_exceptions): Ditto.
5066         (trace_command): Ditto.
5067         (ftrace_command): Ditto.
5068         (strace_command): Ditto.
5069         (bkpt_print_mention): Add dprintf case.
5070         (create_breakpoint_sal_default): Add extra_string argument.
5071         (_initialize_breakpoint): Add new commands.
5072         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5073         * python/py-breakpoint.c (bppy_init): Ditto.
5074         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5075
5076 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
5077
5078         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5079
5080 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
5081
5082         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5083         unsigned long long.
5084
5085 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
5086
5087         Add a new function gdb.find_pc_line to the Python API.
5088         * NEWS (Python Scripting): Add entry about the new function.
5089         * python/python.c (gdbpy_find_pc_line): New function which
5090         implements gdb.find_pc_line.
5091         (GdbMethods): Add entry for the new function.
5092
5093 2012-05-12  Pedro Alves  <palves@redhat.com>
5094
5095         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5096         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5097
5098 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
5099
5100         * inferior.c: Include completer.h
5101         (initialize_inferiors): Set completer of add-inferior to
5102         filename_completer.
5103
5104 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5105
5106         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5107         gdbarch_ptr_bit for x32 core dump.
5108
5109 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5110
5111         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5112         and features/i386/x32-avx-linux.c.
5113
5114 2012-05-11  Stan Shebs  <stan@codesourcery.com>
5115             Kwok Cheung Yeung  <kcy@codesourcery.com>
5116
5117         * NEWS: Describe new info os commands.
5118         * common/linux-osdata.c (PID_T, TIME_T): Define.
5119         (MAX_PID_T_STRLEN): New.
5120         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
5121         MAX_PID_T_STRLEN.
5122         (command_from_pid): Add comment.  Change to use PID_T.
5123         (commandline_from_pid):  Change to use PID_T.
5124         (user_from_pid): Add comment.
5125         (get_process_owner): Add comment. Change to use PID_T and
5126         MAX_PID_T_STRLEN.
5127         (get_number_of_cpu_cores): Add comment.
5128         (get_cores_used_by_process): Add comment.  Change to use PID_T and
5129         MAX_PID_T_STRLEN.
5130         (linux_xfer_osdata_processes): Change to use PID_T and
5131         MAX_PID_T_STRLEN.
5132         (compare_processes): New function.
5133         (linux_xfer_osdata_processgroups): New function.
5134         (linux_xfer_osdata_threads): Change to use PID_T.
5135         (linux_xfer_osdata_fds): New function.
5136         (format_socket_state, print_sockets): New functions.
5137         (union socket_addr): New union.
5138         (linux_xfer_osdata_isockets): New function.
5139         (time_from_time_t, group_from_gid): New functions.
5140         (linux_xfer_osdata_shm): New function.
5141         (linux_xfer_osdata_sem): New function.
5142         (linux_xfer_osdata_msg): New function.
5143         (linux_xfer_osdata_modules): New function.
5144         (osdata_table): Add new entries.
5145         * common/buffer.c (buffer_xml_printf): Add support for long and
5146         long long format specifiers.
5147
5148 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5149
5150         * amd64-linux-tdep.h (tdesc_x32_linux): New.
5151         (tdesc_x32_avx_linux): Likewise.
5152
5153 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5154
5155         Implement multi-component --with-auto-load-dir.
5156         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5157         entries.
5158         (--with-auto-load-safe-path): Update the default value description.
5159         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5160         New.
5161         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
5162         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
5163         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
5164         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
5165         "set auto-load scripts-directory".
5166         * config.in: Regenerate.
5167         * configure: Regenerate.
5168         * configure.ac (--with-auto-load-dir): New configure option.
5169         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5170
5171 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5172
5173         Provide $ddir substitution for --with-auto-load-safe-path.
5174         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5175         entries.
5176         * auto-load.c: Include observer.h.
5177         (auto_load_safe_path_vec_update): Call substitute_path_component for
5178         each component.  New variable ddir_subst.
5179         (auto_load_gdb_datadir_changed): New function.
5180         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5181         AUTO_LOAD_SAFE_PATH.  New comment.
5182         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5183         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
5184         * config.in: Regenerate.
5185         * configure: Regenerate.
5186         * configure.ac (--auto-load-safe-path): Rename
5187         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
5188         GDB_DATADIR/auto-load.
5189         * defs.h (substitute_path_component): New declaration.
5190         * top.c: Include observer.h.
5191         (set_gdb_datadir): New function.
5192         (init_main): Install it for "set data-directory".
5193         * utils.c (substitute_path_component): New function.
5194
5195 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5196
5197         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5198         * auto-load.c (auto_load_objfile_script): Remove check for NULL
5199         DEBUG_FILE_DIRECTORY.  Handle multiple components of
5200         DEBUG_FILE_DIRECTORY.
5201
5202 2012-05-10  Tom Tromey  <tromey@redhat.com>
5203
5204         * dwarf2read.c (recursively_write_psymbols): New function.
5205         (write_psymtabs_to_index): Use it.
5206
5207         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5208         field.
5209         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5210         (load_partial_comp_unit): Update.
5211         (queue_comp_unit): Add argument 'pretend_language'.
5212         (process_queue): Update.
5213         (psymtab_to_symtab_1): Skip dependencies that have a user.
5214         (load_partial_comp_unit_reader): Give meaning to the 'data'
5215         argument.
5216         (load_full_comp_unit): Add 'pretend_language' argument.
5217         (process_full_comp_unit): Add 'pretend_language' argument.  Set
5218         language on CU.
5219         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5220         Update.
5221         (maybe_queue_comp_unit): Add 'pretend_language' argument.
5222         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5223         Update.
5224         (prepare_one_comp_unit): Add 'pretend_language' argument.
5225
5226         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5227         (struct dwarf2_per_objfile) <just_read_cus>: New field.
5228         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5229         (dw2_do_instantiate_symtab): Check whether symtab was read in
5230         before queueing.
5231         (dw2_instantiate_symtab): Add assertion.  Call
5232         process_cu_includes.
5233         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5234         (partial_symtab_p): New typedef.
5235         (set_partial_user): New function.
5236         (dwarf2_build_psymtabs_hard): Use set_partial_user.
5237         (scan_partial_symbols): Add imported CU to imported_symtabs.
5238         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5239         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5240         (get_symtab, recursively_compute_inclusions)
5241         (compute_symtab_includes, process_cu_includes)
5242         (process_imported_unit_die): New functions.
5243         (process_die) <DW_TAG_imported_unit>: New case.
5244         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5245
5246         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5247         comment.
5248         (struct partial_die_info) <locdesc>: Remove.
5249         <d>: New field.
5250         (process_psymtab_comp_unit): Add 'read_partial' argument.
5251         Update.
5252         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5253         (scan_partial_symbols): Handle DW_TAG_imported_unit.
5254         (add_partial_symbol): Update.
5255         (process_die): Handle DW_TAG_partial_unit.
5256         (read_file_scope): Update comment.
5257         (load_partial_dies): Handle DW_TAG_imported_unit.
5258         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5259         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5260
5261 2012-05-10  Tom Tromey  <tromey@redhat.com>
5262
5263         * cc-with-dwz.sh: New file.
5264
5265 2012-05-10  Tom Tromey  <tromey@redhat.com>
5266
5267         * symtab.h (struct symtab) <includes, user>: New fields.
5268         * block.h (struct block_iterator) <d, idx, which>: New fields.
5269         * block.c (initialize_block_iterator, find_iterator_symtab)
5270         (block_iterator_step, block_iter_name_step)
5271         (block_iter_match_step): New functions.
5272         (block_iterator_first, block_iterator_next)
5273         (block_iter_name_first, block_iter_name_next)
5274         (block_iter_match_first, block_iter_match_next): Rewrite.
5275         (get_block_symtab): New function.
5276
5277 2012-05-10  Tom Tromey  <tromey@redhat.com>
5278
5279         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5280         set_block_symtab.
5281         * jit.c (finalize_symtab): Use allocate_global_block,
5282         set_block_symtab.
5283         * buildsym.c (finish_block_internal): New function, from old
5284         finish_block.
5285         (finish_block): Rewrite.
5286         (end_symtab): Use finish_block_internal, set_block_symtab.
5287         * block.h (struct global_block): New.
5288         (allocate_global_block, set_block_symtab): Declare.
5289         * block.c (allocate_global_block, set_block_symtab): New
5290         functions.
5291
5292 2012-05-10  Tom Tromey  <tromey@redhat.com>
5293
5294         * psymtab.c (partial_map_expand_apply): Add assertion.
5295         (partial_map_symtabs_matching_filename): Skip included psymtabs.
5296         (psymtab_to_symtab): Find unshared psymtab.
5297         (dump_psymtab): Print including psymtabs.
5298         (recursively_search_psymtabs): New function.
5299         (expand_symtabs_matching_via_partial): Use it.
5300         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5301         fields.
5302         (enum psymtab_search_status): New.
5303
5304 2012-05-10  Tom Tromey  <tromey@redhat.com>
5305
5306         * tracepoint.c (scope_info): Update.
5307         * symtab.c (lookup_block_symbol, iterate_over_symbols)
5308         (find_pc_sect_symtab, search_symbols)
5309         (default_make_symbol_completion_list_break_on)
5310         (make_file_symbol_completion_list): Update.
5311         * symmisc.c (dump_symtab_1): Update.
5312         * stack.c (print_frame_args, iterate_over_block_locals)
5313         (print_frame_labels, iterate_over_block_arg_vars): Update.
5314         * python/py-block.c (block_object) <dict>: Remove.
5315         <block>: New field.
5316         <iter>: Change type.
5317         (blpy_iter): Update.
5318         (blpy_block_syms_iternext): Update.
5319         * psymtab.c (map_block): Use block iterators.
5320         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5321         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5322         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5323         * infrun.c (check_exception_resume): Update.
5324         * cp-support.c (make_symbol_overload_list_block): Update.
5325         * coffread.c (patch_opaque_types): Update.
5326         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5327         * block.h (struct block_iterator): New.
5328         (block_iterator_first, block_iterator_next, block_iter_name_first)
5329         (block_iter_name_next, block_iter_match_first)
5330         (block_iter_match_next): Declare.
5331         (ALL_BLOCK_SYMBOLS): Redefine.
5332         * block.c (block_iterator_first, block_iterator_next)
5333         (block_iter_name_first, block_iter_name_next)
5334         (block_iter_match_first, block_iter_match_next): New functions.
5335         * ada-lang.c (ada_add_block_symbols)
5336         (ada_make_symbol_completion_list): Use block iterator.
5337
5338 2012-05-10  Tom Tromey  <tromey@redhat.com>
5339
5340         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5341         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5342         (lookup_partial_symbol, find_last_source_symtab_from_partial)
5343         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5344         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5345         Update.
5346
5347 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5348
5349         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5350         print-file-var-lib2.c, print-file-var-main.c and
5351         print-file-var.exp (located in gdb/testsuite/gdb.base).
5352
5353 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5354
5355         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5356         try locating the symbol in the symbol's own objfile first, before
5357         extending the search to all objfiles.
5358         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5359         out of lookup_symbol_aux_symtabs.
5360         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5361         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5362         Do not search EXCLUDE_OBJFILE.
5363         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5364         (lookup_symbol_global): Search for matches in the block's objfile
5365         first, before searching all other objfiles.
5366
5367 2012-05-10  Tristan Gingold  <gingold@adacore.com>
5368
5369         * printcmd.c (set_command): Add pre/post inc/dec.
5370
5371 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
5372
5373         * gdb.1: Document -ex option.
5374
5375 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5376
5377         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5378         * inferior.h (AT_SYMBOL): Delete.
5379
5380 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5381
5382         * mips-tdep.c (mips_push_dummy_code): New function.
5383         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5384         ON_STACK and install mips_push_dummy_code as our gdbarch
5385         push_dummy_code routine.
5386
5387 2012-05-09  Pedro Alves  <palves@redhat.com>
5388
5389         * target.c (set_maintenance_target_async_permitted): Rename to ...
5390         (set_target_async_command): ... this.
5391         (show_maintenance_target_async_permitted): Rename to ...
5392         (show_target_async_command): ... this.
5393         (initialize_targets): Adjust.
5394
5395 2012-05-08  Doug Evans  <dje@google.com>
5396
5397         * go-exp.y (classify_name): Add missing assignment of fields of
5398         yylval.ssym.
5399
5400 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
5401
5402         Display the ">" prompt in interactive mode while reading canned
5403         commands, even when the current interpreter is MI.
5404
5405         * interps.c (interp_set_temp): New function.
5406
5407         * interps.h (interp_set_temp): Add prototype.
5408
5409         * cli/cli-script.c (restore_interp): New cleanup function.
5410         (read_command_lines): Temporarily override the current interpreter
5411         with CLI and arrange for restoring the original one.
5412
5413 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
5414
5415         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5416
5417 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5418
5419         * probe.c (parse_probes): Move conditional to check for
5420         debuginfo files from here...
5421         * stap-probe.c (stap_get_probes): ... to here.
5422
5423 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
5424             H.J. Lu  <hongjiu.lu@intel.com>
5425
5426         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5427         `movl %esp, %ebp' for the X32 ABI.
5428
5429 2012-05-07  Tom Tromey  <tromey@redhat.com>
5430
5431         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
5432         get_DW_TAG_name.
5433         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
5434         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
5435         (dwarf_stack_op_name): Remove.
5436         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
5437         (decode_locdesc): Use get_DW_OP_name.
5438         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5439         (dwarf2_compile_expr_to_ax): Likewise.
5440         (disassemble_dwarf_expression): Likewise.
5441         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5442
5443 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
5444
5445         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5446         (sh_linux_sigtramp_cache): New function.
5447         (sh_linux_sigreturn_init): New function.
5448         (sh_linux_rt_sigreturn_init): New function.
5449         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5450         patterns.
5451         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5452         syscall codes.
5453         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5454         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5455         (sh_linux_init_abi): Add init calls to register new tramp_frame
5456         definitions under 32-bit SH, update comments.
5457
5458 2012-05-07  Pedro Alves  <palves@redhat.com>
5459
5460         PR gdb/10952
5461
5462         * amd64-linux-tdep.c: Include glibc-tdep.h.
5463         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5464         gdbarch_skip_solib_resolver callback.
5465
5466 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5467
5468         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5469         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5470         (show_auto_load_safe_path): Check any-directory by comparison with "/".
5471         (add_auto_load_safe_path): Change the error message.
5472         (_initialize_auto_load): Change the "safe-path" help text.
5473         * configure: Regenerate
5474         * configure.ac (--without-auto-load-safe-path): Set
5475         WITH_AUTO_LOAD_SAFE_PATH to /.
5476
5477 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
5478
5479         * stap-probe.h: Do not include unecessary `probe.h'.
5480
5481 2012-05-05  Alan Modra  <amodra@gmail.com>
5482
5483         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5484         bfd_und_section_ptr.
5485         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5486         and bfd_com_section_ptr.
5487
5488 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5489
5490         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5491
5492 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5493
5494         * windows-nat.h (segment_register_p_ftype): New typedef.
5495         (windows_set_segment_register_p): Add declaration.
5496         * windows-nat.c (segment_register_p): New static global.
5497         (windows_set_segment_register_p): New function.
5498         (do_windows_fetch_inferior_registers): Add special handling
5499         for segment registers.
5500         * amd64-windows-nat.c: #include "amd64-tdep.h".
5501         (amd64_windows_segment_register_p): New function.
5502         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5503         * i386-windows-nat.c: #include "i386-tdep.h".
5504         (i386_windows_segment_register_p): New function.
5505         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5506
5507 2012-05-04  Tristan Gingold  <gingold@adacore.com>
5508
5509         * printcmd.c (set_command): Emit a warning if the expression is not
5510         an assignment.
5511
5512 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
5513
5514         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5515         Make static.
5516
5517 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
5518
5519         * stap-probe.c (stap_is_operator): Change declaration.
5520         (stap_get_opcode): Change return value.
5521         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5522         `stap_parse_argument_1'.
5523
5524 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
5525
5526         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5527         debug log.
5528
5529 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
5530
5531         Add two new methods global_block and static_block to gdb.Symtab
5532         objects.
5533         * NEWS (Python scripting): Add entry about the new methods.
5534         * python/py-symtab.c (stpy_global_block): New function which
5535         implements the gdb.Symtab.global_block() method.
5536         (stpy_static_block): New function which implements the
5537         gdb.Symtab.static_block() method.
5538         (symtab_object_methods): Add entries for the two new methods.
5539
5540 2012-05-03  Doug Evans  <dje@google.com>
5541
5542         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5543         files.
5544
5545 2012-05-03  Yao Qi  <yao@codesourcery.com>
5546
5547         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5548         space.
5549         (i386_process_record): Ditto.
5550
5551 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5552
5553         * infcall.c (unwind_on_signal_p): Make static.
5554
5555 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5556
5557         * sol-thread.c (solaris_pid_to_str): Make static.
5558         (_initialize_sol_thread): Add prototype.
5559
5560 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5561
5562         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5563
5564 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
5565
5566         * MAINTAINERS: Remove myself.
5567
5568 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5569
5570         Fix --without-auto-load-safe-path for MS-Windows host platform.
5571         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5572
5573 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
5574
5575         * gdb_curses.h: Undefine KEY_EVENT before including curses
5576         headers.  Move "#undef MOUSE_MOVED" before any curses header
5577         inclusion.
5578
5579 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5580
5581         * features/i386/i386-mmx-linux.c: Regenerate.
5582         * features/rs6000/powerpc-32.c: Likewise.
5583         * features/rs6000/powerpc-32l.c: Likewise.
5584         * features/rs6000/powerpc-403.c: Likewise.
5585         * features/rs6000/powerpc-403gc.c: Likewise.
5586         * features/rs6000/powerpc-405.c: Likewise.
5587         * features/rs6000/powerpc-505.c: Likewise.
5588         * features/rs6000/powerpc-601.c: Likewise.
5589         * features/rs6000/powerpc-602.c: Likewise.
5590         * features/rs6000/powerpc-603.c: Likewise.
5591         * features/rs6000/powerpc-604.c: Likewise.
5592         * features/rs6000/powerpc-64.c: Likewise.
5593         * features/rs6000/powerpc-64l.c: Likewise.
5594         * features/rs6000/powerpc-750.c: Likewise.
5595         * features/rs6000/powerpc-860.c: Likewise.
5596         * features/rs6000/powerpc-e500.c: Likewise.
5597         * features/rs6000/powerpc-e500l.c: Likewise.
5598         * features/rs6000/powerpc-isa205-32l.c: Likewise.
5599         * features/rs6000/powerpc-isa205-64l.c: Likewise.
5600         * features/rs6000/rs6000.c: Likewise.
5601
5602 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5603
5604         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5605         variable.
5606         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5607         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5608         (stap_parse_argument) <e>: Likewise.
5609         (handle_stap_probe) <byte_order>: Likewise.
5610
5611 2012-04-30  Doug Evans  <dje@google.com>
5612
5613         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5614         init_and_read_dies_worker.  All callers updated.
5615         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
5616         replaced with init_cutu_and_read_dies.
5617         (load_partial_comp_unit): Pass 1 for use_existing_cu.
5618         (find_partial_die): Remove FIXME.  Don't free current CU.
5619
5620 2012-04-30  Sterling Augustine  <saugustine@google.com>
5621
5622         * contrib: New directory.
5623         * contrib/test_pubnames_and_indexes.py: New file.
5624
5625 2012-04-30  Doug Evans  <dje@google.com>
5626
5627         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5628         All callers updated.
5629         (init_cu_die_reader): Verify the section is non-empty.
5630         (dwarf_decode_line_header): Don't dereference section->asection
5631         until we know the section is present.
5632
5633 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
5634
5635         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5636         probes.
5637
5638 2012-04-29  Yao Qi  <yao@codesourcery.com>
5639
5640         * gdb-code-style.el: New hook gdb-markup-hook
5641         and gdb-comment-hook.
5642
5643 2012-04-28  Doug Evans  <dje@google.com>
5644
5645         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
5646         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5647         objfile->obfd.
5648         * symfile.h (dwarf2_debug_sections): New member addr.
5649         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5650         (ctx_no_get_addr_index): New function.
5651         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5652         (ctx_no_get_addr_index): Declare.
5653         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5654         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5655         (dwarf_expr_ctx_funcs): Update.
5656         (needs_get_addr_index): New function.
5657         (needs_frame_ctx_funcs): Update.
5658         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5659         * dwarf2read.c: #include "gdbcore.h".
5660         (dwarf2_per_objfile): New members addr, dwo_files.
5661         (dwarf2_elf_names): Add entry for addr.
5662         (struct dwo_section_names): New type.
5663         (dwo_section_names): New static global.
5664         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5665         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5666         old debug_types_section member updated to use this.
5667         Rename member debug_types_section to info_or_types_section,
5668         all uses updated.
5669         (signatured_type): Rename member type_offset to type_offset_in_tu,
5670         all uses updated.  New member type_offset_in_section.
5671         (struct dwo_sections): New type.
5672         (struct dwo_unit): New type.
5673         (struct dwo_file): New type.
5674         (die_reader_specs): New member dwo_file.
5675         (dwarf2_locate_sections): Watch for .debug_addr.
5676         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5677         (dwarf2_read_section): Get bfd of section from bfd's asection,
5678         instead of objfile.
5679         (create_cus_from_index): Initialize the_cu->info_or_types_section.
5680         (create_signatured_type_table_from_index): Initialize
5681         sig_type->info_or_types_section.
5682         (dw2_get_file_names): Statement lists for type units with DWO files
5683         live in the DWO file.
5684         (create_debug_types_hash_table): New function.
5685         (create_all_type_units): Rewrite.
5686         (init_cu_die_reader): New arg dwo_file, all callers updated.
5687         (init_and_read_dies_worker): Get section from
5688         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
5689         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5690         continue reading the CU/TU from there.
5691         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5692         updated.  Get section from this_cu->info_or_types_section.
5693         (create_all_comp_units): Initialize this_cu->info_or_types_section.
5694         (skip_one_die): New cases DW_FORM_GNU_addr_index,
5695         DW_FORM_GNU_str_index.
5696         (hash_dwo_file, eq_dwo_file): New functions.
5697         (allocate_dwo_file_hash_table): New function.
5698         (hash_dwo_unit, eq_dwo_unit): New functions.
5699         (allocate_dwo_unit_table): New function.
5700         (dwarf2_locate_dwo_sections): New function.
5701         (struct create_dwo_info_table_data): New type.
5702         (create_debug_info_hash_table_reader): New function.
5703         (create_debug_info_hash_table): New function.
5704         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5705         (lookup_dwo_file): New function.
5706         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5707         (free_dwo_file, free_dwo_file_cleanup): New functions.
5708         (free_dwo_file_from_slot, free_dwo_files): New functions.
5709         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5710         (dwarf2_record_block_ranges): Ditto.
5711         (read_partial_die): Ditto.
5712         (process_enumeration_scope): Update to use type_offset_in_section.
5713         (read_full_die_1): New function.
5714         (read_full_die): Rewrite.
5715         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5716         DW_FORM_GNU_str_index.
5717         (read_addr_index_1, read_addr_index): New functions.
5718         (read_addr_index_from_leb128): New function.
5719         (struct dwarf2_read_addr_index_data): New type.
5720         (dwarf2_read_addr_index_reader): New function.
5721         (dwarf2_read_addr_index): New function.
5722         (read_str_index): New function.
5723         (leb128_size): New function.
5724         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5725         If processing a type unit from a DWO file, get the line section
5726         from the DWO file.
5727         (var_decode_location): Watch for DW_OP_GNU_addr_index.
5728         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5729         DW_FORM_GNU_str_index.
5730         (lookup_die_type): Check whether section offset of type's die is
5731         known before looking it up.  Remove assert.  Condition can
5732         legimately happen for inter-cu type references.
5733         (dwarf_attr_name): Handle Fission attributes.
5734         (dwarf_form_name): Handle Fission forms.
5735         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5736         DW_FORM_GNU_str_index.
5737         (follow_die_sig): Update to use type_offset_in_section.
5738         (decode_locdesc): New case DW_OP_GNU_addr_index.
5739         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5740         DW_FORM_GNU_str_index.
5741         (cu_debug_loc_section): New function.
5742         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5743         (dwarf2_per_objfile_free): Unmap .debug_addr section.
5744         Free DWO files if present.
5745         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5746
5747         Refactor DIE reading.
5748         * dwarf2read.c (dwarf2_per_objfile): Replace members
5749         debug_info_type_hash and debug_types_type_hash with die_type_hash.
5750         (die_reader_specs): New member "die_section".  Temporarily make
5751         member "buffer" non-const, pending constifying all info_ptr uses.
5752         (die_reader_func_ftype): New typedef.
5753         (dw2_get_file_names_reader): New function.
5754         (dw2_get_file_names): Rewrite.
5755         (read_and_check_type_unit_head): Rename arg type_offset to
5756         type_offset_in_tu.
5757         (create_all_type_units): Improve debugging message.
5758         Improve dummy type unit check.
5759         (init_cu_die_reader): New arg "section".  All callers updated.
5760         (init_and_read_dies_worker): New function.
5761         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5762         (init_cutu_and_read_dies_no_follow): New function.
5763         (init_cutu_and_read_dies_simple): New function.
5764         (process_psymtab_comp_unit_reader): New function.
5765         (process_psymtab_comp_unit): Delete args section,
5766         is_debug_types_section.  Rewrite.  All callers updated.
5767         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5768         All callers updated.  Rewrite.
5769         (load_partial_comp_unit_reader): New function.
5770         (load_partial_comp_unit): Rewrite.
5771         (skip_children): New arg reader.  Delete args buffer, cu.
5772         All callers updated.
5773         (skip_one_die): New arg reader.  Delete args buffer, cu.
5774         All callers updated.
5775         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
5776         All callers updated.
5777         (load_full_comp_unit_reader): New function.
5778         (load_full_comp_unit): Rewrite.
5779         (read_comp_unit): Delete.
5780         (read_die_and_children_1): Delete, contents moved ...
5781         (read_die_and_children): ... here.
5782         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
5783         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
5784         All callers updated.
5785         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
5786         All callers updated.
5787         (find_partial_die): Rewrite load_all_dies support.
5788         (read_attribute_value): New arg reader.  Delete args abfd, cu.
5789         All callers updated.
5790         (read_attribute): New arg reader.  Delete args abfd, cu.
5791         All callers updated.
5792         (load_full_type_unit): Add assert.
5793         (read_signatured_type_reader): New function.
5794         (read_signatured_type): Rewrite.
5795         (free_stack_comp_unit): Remove call to age_cached_comp_units.
5796         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5797         All callers updated.  Set per_cu->cu = NULL after freeing it.
5798         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5799         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5800         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5801         (set_die_type): Update.
5802         (get_die_type_at_offset): Update.
5803         (read_file_scope): Call prepare_one_comp_unit.
5804         (read_type_unit_scope): Ditto.
5805         (prepare_one_comp_unit): Set producer if present.
5806
5807 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
5808
5809         * probe.c (compile_rx_or_error): Silence ARI warning about missing
5810          gettext function on `error'.
5811
5812 2012-04-27  Doug Evans  <dje@google.com>
5813
5814         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5815         is empty.
5816
5817 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5818             Tom Tromey  <tromey@redhat.com>
5819
5820         * breakpoint.c (struct breakpoint_objfile_data)
5821         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5822         <exception_probes>: New fields.
5823         (free_breakpoint_probes): New function.
5824         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5825         `_Unwind_DebugHook'.
5826         (create_exception_master_breakpoint): Likewise.
5827         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5828         * infrun.c: Including necessary header files for handling SystemTap
5829         probes.
5830         (handle_inferior_event): Handling longjmp breakpoint and exceptions
5831         via SystemTap probes.
5832         (check_exception_resume): Remove `func' argument.  Handle exception
5833         unwinding breakpoint set via a SystemTap probe.
5834         (insert_exception_resume_from_probe): New function.
5835
5836 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5837             Tom Tromey  <tromey@redhat.com>
5838             Jan Kratochvil  <jan.kratochvil@redhat.com>
5839
5840         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5841         (COMMON_OBS): Likewise.
5842         (HFILES_NO_SRCDIR): Add `probe'.
5843         * NEWS: Mention support for static and SystemTap probes.
5844         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5845         SystemTap probes' arguments parser.
5846         * arm-linux-tdep.c: Including headers needed to perform the parsing
5847         of SystemTap probes' arguments.
5848         (arm_stap_is_single_operand): New function.
5849         (arm_stap_parse_special_token): Likewise.
5850         (arm_linux_init_abi): Initializing proper fields used by SystemTap
5851         probes' arguments parser.
5852         * ax-gdb.c (require_rvalue): Removing static declaration.
5853         (gen_expr): Likewise.
5854         * ax-gdb.h (gen_expr): Declaring function.
5855         (require_rvalue): Likewise.
5856         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5857         (bkpt_probe_breakpoint_ops): New variable.
5858         (momentary_breakpoint_from_master): Set the `probe' value.
5859         (add_location_to_breakpoint): Likewise.
5860         (break_command_1): Using proper breakpoint_ops according to the
5861         argument passed by the user in the command line.
5862         (bkpt_probe_insert_location): New function.
5863         (bkpt_probe_remove_location): Likewise.
5864         (bkpt_probe_create_sals_from_address): Likewise.
5865         (bkpt_probe_decode_linespec): Likewise.
5866         (tracepoint_probe_create_sals_from_address): Likewise.
5867         (tracepoint_probe_decode_linespec): Likewise.
5868         (tracepoint_probe_breakpoint_ops): New variable.
5869         (trace_command): Using proper breakpoint_ops according to the
5870         argument passed by the user in the command line.
5871         (initialize_breakpoint_ops): Initializing breakpoint_ops for
5872         static probes on breakpoints and tracepoints.
5873         * breakpoint.h (struct bp_location) <probe>: New field.
5874         * cli-utils.c (skip_spaces_const): New function.
5875         (extract_arg): Likewise.
5876         * cli-utils.h (skip_spaces_const): Likewise.
5877         (extract_arg): Likewise.
5878         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5879         * configure.ac: Append `stap-probe.o' to be generated when ELF
5880         support is present.
5881         * configure: Regenerate.
5882         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5883         * elfread.c: Include `probe.h' and `arch-utils.h'.
5884         (probe_key): New variable.
5885         (elf_get_probes): New function.
5886         (elf_get_probe_argument_count): Likewise.
5887         (elf_evaluate_probe_argument): Likewise.
5888         (elf_compile_to_ax): Likewise.
5889         (elf_symfile_relocate_probe): Likewise.
5890         (stap_probe_key_free): Likewise.
5891         (elf_probe_fns): New variable.
5892         (elf_sym_fns): Add `sym_probe_fns' value.
5893         (elf_sym_fns_lazy_psyms): Likewise.
5894         (elf_sym_fns_gdb_index): Likewise.
5895         (_initialize_elfread): Initialize objfile cache for static
5896         probes.
5897         * gdb_vecs.h (struct probe): New forward declaration.
5898         (probe_p): New VEC declaration.
5899         * gdbarch.c: Regenerate.
5900         * gdbarch.h: Regenerate.
5901         * gdbarch.sh (stap_integer_prefix): New variable.
5902         (stap_integer_suffix): Likewise.
5903         (stap_register_prefix): Likewise.
5904         (stap_register_suffix): Likewise.
5905         (stap_register_indirection_prefix): Likewise.
5906         (stap_register_indirection_suffix): Likewise.
5907         (stap_gdb_register_prefix): Likewise.
5908         (stap_gdb_register_suffix): Likewise.
5909         (stap_is_single_operand): New function.
5910         (stap_parse_special_token): Likewise.
5911         (struct stap_parse_info): Forward declaration.
5912         * i386-tdep.c: Including headers needed to perform the parsing
5913         of SystemTap probes' arguments.
5914         (i386_stap_is_single_operand): New function.
5915         (i386_stap_parse_special_token): Likewise.
5916         (i386_elf_init_abi): Initializing proper fields used by SystemTap
5917         probes' arguments parser.
5918         * i386-tdep.h (i386_stap_is_single_operand): New function.
5919         (i386_stap_parse_special_token): Likewise.
5920         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5921         * mipsread.c (ecoff_sym_fns): Likewise.
5922         * objfiles.c (objfile_relocate1): Support relocation for static
5923         probes.
5924         * parse.c (prefixify_expression): Remove static declaration.
5925         (initialize_expout): Likewise.
5926         (reallocate_expout): Likewise.
5927         * parser-defs.h (initialize_expout): Declare function.
5928         (reallocate_expout): Likewise.
5929         (prefixify_expression): Likewise.
5930         * ppc-linux-tdep.c: Including headers needed to perform the parsing
5931         of SystemTap probes' arguments.
5932         (ppc_stap_is_single_operand): New function.
5933         (ppc_stap_parse_special_token): Likewise.
5934         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5935         probes' arguments parser.
5936         * probe.c: New file, for generic statically defined probe support.
5937         * probe.h: Likewise.
5938         * s390-tdep.c: Including headers needed to perform the parsing of
5939         SystemTap probes' arguments.
5940         (s390_stap_is_single_operand): New function.
5941         (s390_gdbarch_init): Initializing proper fields used by SystemTap
5942         probes' arguments parser.
5943         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5944         * stap-probe.c: New file, for SystemTap probe support.
5945         * stap-probe.h: Likewise.
5946         * symfile.h: Include `gdb_vecs.h'.
5947         (struct sym_probe_fns): New struct.
5948         (struct sym_fns) <sym_probe_fns>: New field.
5949         * symtab.c (init_sal): Initialize `probe' field.
5950         * symtab.h (struct probe): Forward declaration.
5951         (struct symtab_and_line) <probe>: New field.
5952         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5953         locations.
5954         (stop_tracing): Likewise.
5955         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5956
5957 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5958             Tom Tromey  <tromey@redhat.com>
5959
5960         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5961         and to compile agent expressions.
5962         * infrun.c (siginfo_make_value): New argument `ignore'.
5963         (siginfo_funcs): New struct.
5964         (_initialize_infrun): New argument when calling
5965         `create_internalvar_type_lazy'.
5966         * thread.c (thread_id_make_value): New argument `ignore'.
5967         (thread_funcs): New struct.
5968         (_initialize_thread): New argument when calling
5969         `create_internalvar_type_lazy'.
5970         * tracepoint.c (sdata_make_value): New argument `ignore'.
5971         (sdata_funcs): New struct.
5972         (_initialize_tracepoint): New argument when calling
5973         `create_internalvar_type_lazy'.
5974         * value.c (make_value): New struct.
5975         (create_internalvar_type_lazy): New argument `data'.
5976         (compile_internalvar_to_ax): New function.
5977         (value_of_internalvar): Properly handling `make_value' case.
5978         (clear_internalvar): Likewise.
5979         (show_convenience): Adding `TRY_CATCH' block.
5980         * value.h (internalvar_make_value): Delete, replace by...
5981         (struct internalvar_funcs): ... this.
5982         (create_internalvar_type_lazy) <fun>: Delete argument.
5983         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5984         (compile_internalvar_to_ax): New function.
5985         * windows-tdep.c (tlb_make_value): New argument `ignore'.
5986         (tlb_funcs): New struct.
5987         (_initialize_windows_tdep): New argument when calling
5988         `create_internalvar_type_lazy'.
5989
5990 2012-04-27  Mark Wielaard  <mjw@redhat.com>
5991
5992         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5993         see whether it is an address or a constant offset from DW_AT_low_pc.
5994         (dwarf2_record_block_ranges): Likewise.
5995         (read_partial_die): Likewise.
5996
5997 2012-04-26  Mark Wielaard  <mjw@redhat.com>
5998
5999         * MAINTAINERS (Write After Approval): Add myself to the list.
6000
6001 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6002
6003         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6004         (proc_prettyprint_signal): Likewise.
6005         (proc_prettyprint_faultset): Likewise.
6006         (proc_prettyprint_fault): Likewise.
6007         (proc_prettyprint_actionset): Likewise.
6008         (proc_prettyprint_flags): Move to new proc-flags.c section.
6009         (proc_prettyfprint_flags): New prototype.
6010         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6011         (proc_syscall, proc_cursig): Likewise.
6012         (proc_set_kill_on_last_close): Likewise.
6013         (proc_unset_kill_on_last_close): Likewise.
6014         (proc_set_watchpoint): Make static.
6015         (proc_delete_dead_threads): Likewise.
6016         (procfs_set_watchpoint): Likewise.
6017         (_initialize_procfs): Add prototype.
6018         * proc-events.c: Include proc-utils.h.
6019         (init_syscall_table): Make static.
6020         * proc-api.c (_initialize_proc_api): Add prototype.
6021         * proc-flags.c: Include proc-utils.h.
6022
6023 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6024
6025         * configure.ac: Add AC_ARG_PROGRAM.
6026         * configure: Regenerate.
6027
6028 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6029
6030         Fix DW_AT_lower_bound defaults for DWARF-4+.
6031         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6032         high.  New variable low_default_is_valid.  Implement DWARF-4+
6033         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6034         no default by the DWARF standard.
6035
6036 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6037             Maciej W. Rozycki  <macro@codesourcery.com>
6038
6039         * infrun.c (handle_inferior_event): Move the check for return
6040         trampolines ahead of the check for function trampolines.
6041         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6042         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6043         (mips_str_mips16_ret_stub): Likewise.
6044         (mips_str_call_fp_stub): Likewise.
6045         (mips_str_call_stub): Likewise.
6046         (mips_str_fn_stub): Likewise.
6047         (mips_str_pic): Likewise.
6048         (mips_in_frame_stub): New function.
6049         (mips_unwind_pc): Return the return address rather than the PC
6050         if the PC of an intermediate frame is inside a call thunk.
6051         (mips_is_stub_suffix): New function.
6052         (mips_is_stub_mode): Likewise.
6053         (mips_get_mips16_fn_stub_pc): Likewise.
6054         (mips_skip_mips16_trampoline_code): Update to handle all the
6055         currently generated stub types.  Don't recurse into __fn_stub
6056         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
6057         Use cooked register accesses.
6058         (mips_in_return_stub): Reintroduce function.
6059         (mips_skip_trampoline_code): Traverse trampolines recursively.
6060         (mips_gdbarch_init): Handle MIPS16 return trampolines.
6061
6062 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
6063
6064         GDB 7.4.1 released.
6065
6066 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
6067
6068         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6069         * features/arm-with-m-vfp-d16.xml: New file. Describes
6070         Cortex-M with VFPv4-sp-d16 FPU register layout.
6071         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6072         * features/arm-with-m-vfp-d16.c: New. Generated from above.
6073         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6074         (arm-register_g_packet_guesses): Add vfp-d16 guess.
6075         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6076
6077 2012-04-25  Doug Evans  <dje@google.com>
6078
6079         * cli/cli-decode.c (print_doc_line): Use stream instead of
6080         current_uiout.
6081
6082 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
6083
6084         * features/arm-with-iwmmxt.c: Regenerate.
6085         * features/arm-with-m-fpa-layout.c: Likewise.
6086         * features/arm-with-m.c: Likewise.
6087         * features/arm-with-neon.c: Likewise.
6088         * features/arm-with-vfpv2.c: Likewise.
6089         * features/arm-with-vfpv3.c: Likewise.
6090         * features/mips-dsp-linux.c: Likewise.
6091         * features/mips-linux.c: Likewise.
6092         * features/mips64-dsp-linux.c: Likewise.
6093         * features/mips64-linux.c: Likewise.
6094         * features/s390-linux32.c: Likewise.
6095         * features/s390-linux32v1.c: Likewise.
6096         * features/s390-linux32v2.c: Likewise.
6097         * features/s390-linux64.c: Likewise.
6098         * features/s390-linux64v1.c: Likewise.
6099         * features/s390-linux64v2.c: Likewise.
6100         * features/s390x-linux64.c: Likewise.
6101         * features/s390x-linux64v1.c: Likewise.
6102         * features/s390x-linux64v2.c: Likewise.
6103         * features/tic6x-c62x-linux.c: Likewise.
6104         * features/tic6x-c62x.c: Likewise.
6105         * features/tic6x-c64x-linux.c: Likewise.
6106         * features/tic6x-c64x.c: Likewise.
6107         * features/tic6x-c64xp-linux.c: Likewise.
6108         * features/tic6x-c64xp.c: Likewise.
6109         * target-descriptions.c: Only generate `field_type' and `type'
6110         variables when needed.
6111
6112 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
6113
6114         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6115
6116 2012-04-25  Doug Evans  <dje@google.com>
6117
6118         Initial pass at Go language support.
6119         * NEWS: Mention Go.
6120         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6121         go-valprint.c.
6122         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6123         (YYFILES): Add go-exp.c.
6124         (YYOBJ): Add go-exp.o.
6125         (local-maintainer-clean): Delete go-exp.c.
6126         * defs.h (enum language): Add language_go.
6127         * dwarf2read.c: #include "go-lang.h".
6128         (fixup_go_packaging): New function.
6129         (process_full_comp_unit): Call it when processing Go CUs.
6130         (dwarf2_physname): Add Go support.
6131         (read_file_scope): Handle missing language spec for GNU Go.
6132         (set_cu_language): Handle DW_LANG_Go.
6133         * go-exp.y: New file.
6134         * go-lang.h: New file.
6135         * go-lang.c: New file.
6136         * go-typeprint.c: New file.
6137         * go-valprint.c: New file.
6138         * symtab.c: #include "go-lang.h".
6139         (symbol_set_language): Handle language_go.
6140         (symbol_find_demangled_name, symbol_set_names): Ditto.
6141         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6142
6143 2012-04-24  Jim Meyering  <meyering@redhat.com>
6144
6145         avoid a few strncpy-induced buffer overruns
6146         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6147         fname and psargs before trying to concatenate.
6148         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6149         "name" before applying strchr.
6150
6151 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
6152
6153         * CONTRIBUTE: Use unified diff instead of context diff when
6154         generating patches.
6155
6156 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6157
6158         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6159         code.  Handle JR.HB correctly.
6160
6161 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6162
6163         * mips-tdep.c
6164         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6165         with the other MIPS16 helpers.
6166
6167 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
6168
6169         * observer.sh: Conditionally declare `args', thus cleaning up
6170         unused instances of this variable.
6171
6172 2012-04-24  Yao Qi  <yao@codesourcery.com>
6173
6174         Revert this patch to allow breakpoint always-inserted
6175         in record target.
6176         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
6177         * breakpoint.c: Include record.h.
6178         (breakpoints_always_inserted_mode): Return false when the record
6179         target is in use.
6180
6181         * breakpoint.c (iterate_over_bp_locations): New.
6182         * breakpoint.h: Declare.
6183         New typedef walk_bp_location_callback.
6184         * record.c (record_open): Call record_init_record_breakpoints.
6185         (record_sync_record_breakpoints): New.
6186         (record_init_record_breakpoints): New.
6187         * NEWS: Mention supporting breakpoint always-inserted mode in
6188         record target.
6189
6190 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
6191
6192         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6193         any thread.
6194
6195 2012-04-24  Yao Qi  <yao@codesourcery.com>
6196
6197         * breakpoint.c (ep_is_catchpoint): Renamed to ...
6198         (is_catchpoint): ... it.
6199         (print_one_breakpoint_location): Caller update.
6200         * breakpoint.h: Update declaration.
6201
6202 2012-04-23  David S. Miller  <davem@davemloft.net>
6203
6204         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6205
6206 2012-04-23  Tom Tromey  <tromey@redhat.com>
6207
6208         * buildsym.c (add_free_pendings): Remove.
6209         * buildsym.h (add_free_pendings): Remove.
6210
6211 2012-04-23  Doug Evans  <dje@google.com>
6212
6213         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6214         attr.u.unsnd instead of attr.u.addr.
6215         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6216         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6217         DW_FORM_ref_udata.
6218         (dump_die_shallow): Update cases DW_FORM_ref_addr,
6219         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
6220         DW_FORM_ref_udata.
6221         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6222
6223 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
6224
6225         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6226         (mips_o32_return_value): Likewise.
6227         (mips_o64_return_value): Likewise.
6228
6229 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
6230
6231         * ada-lang.c (ada_evaluate_subexp): Add cases for
6232         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6233         their treatment in eval.c.
6234
6235 2012-04-21  David S. Miller  <davem@davemloft.net>
6236
6237         * sparc-tdep.c (X_DISP10): Define.
6238         (sparc_analyze_control_transfer): Handle compare-and-branch.
6239
6240 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
6241
6242         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6243         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6244
6245 2012-04-20  Nigel Stephens  <nigel@mips.com>
6246             Maciej W. Rozycki  <macro@codesourcery.com>
6247
6248         * mips-tdep.c (mips_float_register_p): New function.
6249         (mips_convert_register_float_case_p): Use mips_float_register_p.
6250         (mips_register_type): Likewise.
6251         (mips_print_register): Likewise.
6252         (print_gp_register_row): Likewise.
6253         (mips_print_registers_info): Likewise.
6254
6255 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
6256
6257         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6258         of mips16 symbols.
6259
6260 2012-04-20  Andrew Pinski  <apinski@cavium.com>
6261
6262         * MAINTAINERS (Write After Approval): Add myself to the list.
6263
6264 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6265
6266         * MAINTAINERS: Update my e-mail address.
6267
6268 2012-04-20  Pedro Alves  <palves@redhat.com>
6269
6270         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6271         $srcdir.
6272         * configure: Regenerate.
6273
6274 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6275
6276         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
6277         declaration.
6278         * gdb_vecs.h: Declare `const_char_ptr' VEC.
6279
6280 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6281
6282         Fix compilation compatibility with python-2.4
6283         * python/py-type.c (convert_field): Cast ADDRSTRING for
6284         PyObject_SetAttrString as non-const.  New comment.
6285
6286 2012-04-19  Tom Tromey  <tromey@redhat.com>
6287
6288         * top.c (quit_target): Use all_cleanups.
6289         * main.c (captured_command_loop): Use all_cleanups.
6290         * exceptions.c (throw_exception): Use all_cleanups.
6291
6292 2012-04-19  Pedro Alves  <palves@redhat.com>
6293
6294         * Makefile.in (GNULIB_BUILDDIR): New.
6295         (LIBGNU, INCGNU, GNULIB_H): Adjust.
6296         (SUBDIRS): Add $(GNULIB_BUILDDIR).
6297         (CLEANDIRS). Remove gnulib/import.
6298         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6299         (all-lib): Ditto.
6300         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6301         (gnulib/import/Makefile): Replace gnulib/import with
6302         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
6303         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6304         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
6305         acx_configure_dir.m4.
6306         * acinclude.m4: Include acx_configure_dir.m4.
6307         * acx_configure_dir.m4: New file.
6308         * aclocal.m4: Regenerate.
6309         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6310         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
6311         (GNULIB): New variable.
6312         (GNULIB_STDINT_H): Adjust.
6313         (AC_OUTPUT): Don't output gnulib/Makefile.
6314         * gdb/defs.h: Include build-gnulib/config.h.
6315         * aclocal.m4: Regenerate.
6316         * config.in: Regenerate.
6317         * configure: Regenerate.
6318
6319         * gnulib/Makefile.in: New file.
6320         * gnulib/configure.ac: New file.
6321         * gnulib/aclocal.m4: New file.
6322         * gnulib/config.in: New file.
6323         * gnulib/configure: New file.
6324         * gnulib/: Re-run gnulib-tool to adjust.
6325
6326 2012-04-19  Doug Evans  <dje@google.com>
6327
6328         * cleanups.h (struct cleanup): Move to cleanups.c.
6329         (make_cleanup_dtor_ftype): New typedef.
6330         (make_cleanup_dtor): Use it.
6331         (ALL_CLEANUPS): Replace with ...
6332         (all_cleanups): ... this.  Declare.  All uses updated.
6333         * cleanups.c: #include "gdb_assert.h".
6334         (sentinel_cleanup): New static global.
6335         (SENTINEL_CLEANUP): Define.
6336         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6337         (make_my_cleanup2): Assert result is non-NULL.
6338         (all_cleanups): New function.
6339         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6340         of NULL.
6341
6342 2012-04-19  Pedro Alves  <palves@redhat.com>
6343
6344         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6345         Adjust paths to gnulib imported files.
6346
6347 2012-04-19  Pedro Alves  <palves@redhat.com>
6348
6349         * gnulib/: Move whole directory ...
6350         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6351         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6352         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6353         (aclocal_m4_deps): Adjust.
6354         * aclocal.m4: Regenerate.
6355         * configure: Regenerate.
6356         * configure.ac: Adjust AC_OUTPUT output.
6357
6358 2012-04-19  Yao Qi  <yao@codesourcery.com>
6359
6360         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6361         (vec.o): New rule.
6362         * vec.c: Move it ...
6363         * common/vec.c: ... here.
6364         * vec.h: Move it ...
6365         * common/vec.h: ... here.
6366
6367 2012-04-19  Yao Qi  <yao@codesourcery.com>
6368
6369         * gdb-code-style.el: New.
6370
6371 2012-04-18  Pedro Alves  <palves@redhat.com>
6372
6373         Update gnulib from latest git.
6374         (639ea5ae15e39fe48d43e04864b2997301e4b969)
6375
6376         * gnulib/Makefile.am: Update.
6377         * gnulib/dummy.c: Update.
6378         * gnulib/extra/arg-nonnull.h: Update.
6379         * gnulib/extra/c++defs.h: Update.
6380         * gnulib/extra/update-copyright: Update.
6381         * gnulib/extra/warn-on-use.h: Update.
6382         * gnulib/inttypes.in.h: Update.
6383         * gnulib/m4/00gnulib.m4: Update.
6384         * gnulib/m4/extensions.m4: Update.
6385         * gnulib/m4/gnulib-cache.m4: Update.
6386         * gnulib/m4/gnulib-common.m4: Update.
6387         * gnulib/m4/gnulib-comp.m4: Update.
6388         * gnulib/m4/gnulib-tool.m4: Update.
6389         * gnulib/m4/include_next.m4: Update.
6390         * gnulib/m4/inttypes-pri.m4: Update.
6391         * gnulib/m4/inttypes.m4: Update.
6392         * gnulib/m4/longlong.m4: Update.
6393         * gnulib/m4/memchr.m4: Update.
6394         * gnulib/m4/memmem.m4: Update.
6395         * gnulib/m4/mmap-anon.m4: Update.
6396         * gnulib/m4/multiarch.m4: Update.
6397         * gnulib/m4/onceonly.m4: Update.
6398         * gnulib/m4/stddef_h.m4: Update.
6399         * gnulib/m4/stdint.m4: Update.
6400         * gnulib/m4/string_h.m4: Update.
6401         * gnulib/m4/warn-on-use.m4: Update.
6402         * gnulib/m4/wchar_h.m4: Update.
6403         * gnulib/m4/wchar_t.m4: Update.
6404         * gnulib/m4/wint_t.m4: Update.
6405         * gnulib/memchr.c: Update.
6406         * gnulib/memmem.c: Update.
6407         * gnulib/stddef.in.h: Update.
6408         * gnulib/stdint.in.h: Update.
6409         * gnulib/str-two-way.h: Update.
6410         * gnulib/string.in.h: Update.
6411         * gnulib/wchar.in.h: Update.
6412
6413         * gnulib/extra/arg-nonnull.h: Delete.
6414         * gnulib/extra/c++defs.h: Delete.
6415         * gnulib/extra/warn-on-use.h: Delete.
6416         * gnulib/m4/wchar_h.m4: Delete.
6417         * gnulib/m4/wint_t.m4: Delete.
6418         * gnulib/wchar.in.h: Delete.
6419
6420         * gnulib/extra/snippets/arg-nonnull.h: New.
6421         * gnulib/extra/snippets/c++defs.h: New.
6422         * gnulib/extra/snippets/warn-on-use.h: New.
6423
6424         * aclocal.m4: Regenerate.
6425         * config.in: Regenerate.
6426         * configure: Regenerate.
6427         * gnulib/Makefile.in: Regenerate.
6428
6429 2012-04-18  Pedro Alves  <palves@redhat.com>
6430
6431         Reimport the update-copyright module from gnulib
6432         (250b80067c1e1d8faa0c42fb572f721975b929c5).
6433
6434         * configure: Regenerate.
6435         * gnulib/Makefile.am: Update.
6436         * gnulib/Makefile.in: Regenerate.
6437         * gnulib/extra/update-copyright: Update.
6438         * gnulib/m4/gnulib-cache.m4: Update.
6439         * gnulib/m4/gnulib-comp.m4: Update.
6440
6441 2012-04-18  Tristan Gingold  <gingold@adacore.com>
6442
6443         * configure.ac (aix): Put -lpthread into libs.
6444         * configure: Regenerate.
6445
6446 2012-04-18  Tom Tromey  <tromey@redhat.com>
6447
6448         * linespec.c (convert_linespec_to_sals): Don't use
6449         SYMBOL_OBJ_SECTION.
6450         (compare_msymbols): Arguments are minsym_and_objfile, not
6451         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
6452
6453 2012-04-18  Pedro Alves  <palves@redhat.com>
6454
6455         Revert gnulib/ part of:
6456         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6457         Copyright year update in most files (performed by copyright.sh).
6458
6459 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6460
6461         Fix 64-bit constants on 32-bit hosts.
6462         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6463         from unsigned long to ULONGEST.
6464         (read_signed_leb128): Change declaration return type from long to
6465         LONGEST.
6466         (dwarf2_const_value_attr): Change declaration parameter value from long
6467         to LONGEST.
6468         (dwarf2_compute_name): Change variable value from long to LONGEST.
6469         (read_unsigned_leb128): Change return type, variable result and some
6470         casts from unsigned long to ULONGEST.
6471         (read_signed_leb128): Change return type, variable result and some
6472         casts from long to LONGEST.
6473         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6474         value from long to LONGEST.
6475         (dwarf2_const_value): Change variable value from long to LONGEST.
6476         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6477         plongest and hex_string.
6478         * symtab.h (struct general_symbol_info): Change ivalue from long to
6479         LONGEST, remove the comment.
6480         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6481         Change SYMBOL_VALUE format strings to use plongest and hex_string.
6482
6483 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6484
6485         PR symtab/7259:
6486         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6487         * ada-lang.c (ada_discrete_type_high_bound)
6488         (ada_discrete_type_low_bound): Fix function comment.  Use
6489         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6490         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6491         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6492         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6493         Use TYPE_FIELD_ENUMVAL.
6494         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6495         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6496         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6497         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
6498         TYPE_CODE_ENUM.
6499         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6500         * dwarf2read.c (process_enumeration_scope): Likewise.
6501         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6502         field.bitpos.
6503         (class StructMainTypePrettyPrinter): Support also
6504         FIELD_LOC_KIND_ENUMVAL.
6505         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6506         TYPE_CODE_ENUM.
6507         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6508         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6509         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6510         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
6511         field enumval.
6512         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6513         accommodate enumval.
6514         (struct call_site): Adjust loc_kind to accommodate enumval.
6515         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6516         (TYPE_FIELD_ENUMVAL): New macros.
6517         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6518         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6519         TYPE_CODE_ENUM.
6520         * p-typeprint.c (pascal_type_print_base): Likewise.
6521         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6522         enumval.
6523         * python/lib/gdb/types.py (make_enum_dict): Likewise.
6524         * python/py-type.c (convert_field): New variable addrstring.  Use
6525         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6526         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6527         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6528         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6529         TYPE_CODE_ENUM.
6530         * valprint.c (generic_val_print): Likewise.
6531
6532 2012-04-17  Doug Evans  <dje@google.com>
6533
6534         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6535
6536         * dwarf2read.c: Whitespace fixes.
6537         (lookup_signatured_type): Tweak comment.
6538         (get_die_type_at_offset): Fix comment.
6539
6540 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6541
6542         * xcoffread.c (xcoff_secnum_to_sections): New function.
6543         (secnum_to_section, secnum_to_bfd_section): Reimplement
6544         using xcoff_secnum_to_sections.  Rename "secnum" parameter
6545         into "n_scnum".
6546         (RECORD_MINIMAL_SYMBOL): Delete.
6547         (record_minimal_symbol): New function.
6548         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6549         by call to record_minimal_symbol and set misc_func_recorded
6550         to 1.  Set last_csect_sec to the XCOFF section index instead
6551         of GDB's section_offset index.  Update calls to
6552         prim_record_minimal_symbol_and_info to pass the BFD section
6553         as well.
6554
6555 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6556
6557         * xcoffread.c (read_xcoff_symtab): Delete variables
6558         last_csect_val and last_csect_sec and associated code.
6559
6560 2012-04-17  Doug Evans  <dje@google.com>
6561
6562         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6563         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6564         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6565         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6566
6567         * cleanups.h: New file.
6568         * cleanups.c: New file.
6569         * Makefile.in (SFILES): Add cleanups.c.
6570         (HFILES_NO_SRCDIR): Add cleanups.h.
6571         (COMMON_OBS): Add cleanups.o.
6572         * defs.h (struct cleanup): Moved to cleanups.h.
6573         (do_cleanups,do_final_cleanups): Ditto.
6574         (discard_cleanups,discard_final_cleanups): Ditto
6575         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6576         (save_cleanups,save_final_cleanups): Ditto.
6577         (restore_cleanups,restore_final_cleanups): Ditto.
6578         (null_cleanup): Ditto.
6579         (make_my_cleanup,make_my_cleanup2): Ditto.
6580         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6581         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6582         (do_cleanups,do_final_cleanups): Ditto.
6583         (discard_cleanups,discard_final_cleanups): Ditto
6584         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6585         (save_cleanups,save_final_cleanups): Ditto.
6586         (restore_cleanups,restore_final_cleanups): Ditto.
6587         (null_cleanup): Ditto.
6588         (make_my_cleanup,make_my_cleanup2): Ditto.
6589         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6590
6591         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6592         make_my_cleanup.
6593         (make_cleanup_dyn_string_delete): Ditto.
6594         (make_cleanup_ui_file_delete): Ditto.
6595         (make_cleanup_ui_out_redirect_pop): Ditto.
6596         (make_cleanup_free_section_addr_info): Ditto.
6597         (make_cleanup_restore_integer): Ditto.
6598         (make_cleanup_unpush_target): Ditto.
6599         (make_cleanup_value_free_to_mark): Ditto.
6600         (make_cleanup_value_free): Ditto.
6601         (make_cleanup_free_so): Ditto.
6602
6603 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6604
6605         New option "set debug auto-load".
6606         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6607         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6608         (auto_load_safe_path_vec_update)
6609         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6610         if DEBUG_AUTO_LOAD.
6611         (file_is_auto_load_safe): New parameters debug_fmt and ....
6612         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6613         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6614         caller by explanatory string.
6615         (_initialize_auto_load): Register "set debug auto-load".
6616         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6617         and ....
6618         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6619         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6620         by explanatory string.
6621         * main.c (captured_main): Likewise.
6622         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6623         (source_section_scripts): Likewise.
6624
6625 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6626
6627         New option "set auto-load safe-path".
6628         * NEWS: New commands "set auto-load safe-path"
6629         and "show auto-load safe-path".
6630         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6631         (auto_load_safe_path, auto_load_safe_path_vec)
6632         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6633         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6634         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6635         (source_gdb_script_for_objfile): New variable is_safe.  Call
6636         file_is_auto_load_safe.  Return if it is not.
6637         (struct loaded_script): New field loaded.
6638         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
6639         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
6640         output "Missing" to "No".
6641         (_initialize_auto_load): New variable cmd.  Initialize
6642         auto_load_safe_path.  Register "set auto-load safe-path",
6643         "show auto-load safe-path" and "add-auto-load-safe-path".
6644         * auto-load.h (maybe_add_script): Add parameter loaded.
6645         (file_is_auto_load_safe): New declaration.
6646         * config.in: Regenerate.
6647         * configure: Regenerate.
6648         * configure.ac: New parameters --with-auto-load-safe-path
6649         and --without-auto-load-safe-path.
6650         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6651         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6652         * main.c (captured_main): Check file_is_auto_load_safe for
6653         LOCAL_GDBINIT.
6654         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6655         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
6656         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
6657         not.
6658
6659 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6660
6661         auto-load: Implementation.
6662         * NEWS: New descriptions for "info auto-load",
6663         "info auto-load gdb-scripts", "info auto-load python-scripts",
6664         "info auto-load local-gdbinit" and "info auto-load libthread-db".
6665         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6666         and "show auto-load-scripts".  New description for "set auto-load",
6667         "show auto-load", "set auto-load gdb-scripts",
6668         "show auto-load gdb-scripts", "set auto-load python-scripts",
6669         "show auto-load python-scripts", "set auto-load local-gdbinit",
6670         "show auto-load local-gdbinit", "set auto-load libthread-db" and
6671         "show auto-load libthread-db".
6672         * auto-load.c: Remove include python/python-internal.h.  Add includes
6673         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6674         cli/cli-setshow.h.
6675         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6676         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6677         (gdbpy_global_auto_load): Rename to ...
6678         (global_auto_load): ... here.
6679         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6680         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6681         (script_language_gdb, source_gdb_script_for_objfile): New.
6682         (struct loaded_script): New field language.
6683         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6684         LANGUAGE.
6685         (maybe_add_script): Add parameter language.  Drop redundant
6686         entry.full_path initialization.  Initialize entry.language and
6687         (*slot)->language.
6688         (auto_load_objfile_script): Change parameter suffix to language.
6689         Remove the call of maybe_add_script.
6690         Call language->source_script_for_objfile.
6691         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6692         New.
6693         (collect_matching_scripts): Adjust it for
6694         struct collect_matching_scripts_data.
6695         (auto_load_info_scripts_pattern_nl): New variable.
6696         (info_auto_load_scripts): Rename to ...
6697         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
6698         for struct collect_matching_scripts_data.
6699         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6700         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6701         (auto_load_show_cmdlist_get, info_auto_load_cmd)
6702         (auto_load_info_cmdlist_get): New.
6703         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6704         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
6705         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6706         "info auto-load local-gdbinit".
6707         * auto-load.h (struct script_language): New.
6708         (gdbpy_global_auto_load): Rename to ...
6709         (global_auto_load): ... here.
6710         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6711         (auto_load_local_gdbinit_loaded): New declarations.
6712         (maybe_add_script): New parameter language.
6713         (auto_load_objfile_script): Change parameter suffix to language.
6714         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6715         (auto_load_info_scripts, auto_load_set_cmdlist_get)
6716         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6717         declarations.
6718         * linux-thread-db.c: Include auto-load.h and ctype.h.
6719         (auto_load_thread_db, show_auto_load_thread_db): New.
6720         (struct thread_db_info): New field filename.
6721         (delete_thread_db_info): Call xfree for FILENAME.
6722         (try_thread_db_load): Initialize FILENAME.
6723         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6724         if !AUTO_LOAD_THREAD_DB.
6725         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6726         (_initialize_thread_db): Install auto_load_thread_db
6727         as "set auto-load libthread-db" and install info_auto_load_libthread_db
6728         as "info auto-load libthread-db".
6729         * main.c (captured_main): Rename gdbpy_global_auto_load to
6730         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6731         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6732         (print_gdb_help): Extend the help for 'local init file'.
6733         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6734         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6735         (auto_load_scripts): Rename to ...
6736         (auto_load_python_scripts): ... here, update the comment.
6737         (gdbpy_load_auto_script_for_objfile): New declaration.
6738         (show_auto_load_python_scripts, script_language_python)
6739         (gdbpy_load_auto_script_for_objfile): New.
6740         (source_section_scripts): Refactor the code.
6741         (load_auto_scripts_for_objfile): Rename to ...
6742         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6743         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6744         (info_auto_load_python_scripts): New.
6745         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6746         Rename "set auto-load-scripts" to "set auto-load python-scripts".
6747         Register "set auto-load-scripts" as its deprecated alias.  Register
6748         "info auto-load python-scripts".  Register "info auto-load-scripts" as
6749         its deprecated alias.
6750         (load_auto_scripts_for_objfile): Rename to ...
6751         (gdbpy_load_auto_scripts_for_objfile): ... here.
6752         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6753         (gdbpy_load_auto_scripts_for_objfile): ... here.
6754
6755 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6756
6757         auto-load: Move files.
6758         * Makefile.in (SFILES): Add auto-load.c.
6759         (HFILES_NO_SRCDIR): Add auto-load.h.
6760         (COMMON_OBS): Add auto-load.o.
6761         (distclean): Change .gdbinit for gdb-gdb.gdb.
6762         * auto-load.c: New file, with parts from python/py-auto-load.c.
6763         * auto-load.h: New file, with parts from python/python.h.
6764         * configure: Regenerate.
6765         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6766         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6767         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6768         * main.c: Include auto-load.h.
6769         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6770         command.h, observer.h and progspace.h to auto-load.c.  Add include
6771         auto-load.h.
6772         (gdbpy_global_auto_load, struct auto_load_pspace_info)
6773         (struct loaded_script, auto_load_pspace_data)
6774         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6775         (hash_loaded_script_entry, eq_loaded_script_entry)
6776         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6777         (maybe_add_script): Move to auto-load.c.
6778         (source_section_scripts): Change maybe_add_script parameters passing,
6779         use script_not_found_warning_print.
6780         (clear_section_scripts, auto_load_objfile_script)
6781         (auto_load_new_objfile, loaded_script_ptr)
6782         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6783         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6784         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6785         auto_load_new_objfile and info_auto_load_scripts initizations to
6786         auto-load.c.
6787         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6788
6789 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6790
6791         Code cleanup.
6792         * charset.c (find_charset_names): Remove variables ix and elt.
6793         Use free_char_ptr_vec.
6794         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6795         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
6796         debugdir_end.  New variable debugdir_len.
6797         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6798         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6799         declarations.
6800         * progspace.c (clear_program_space_solib_cache): Remove variables ix
6801         and elt.  Use free_char_ptr_vec.
6802         * source.c (add_path): Remove variables argv, arg and argv_index.
6803         New variables dir_vec, back_to, ix and name.
6804         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
6805         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
6806         no longer expecting DIRNAME_SEPARATOR.
6807         (openp): Remove variable p, p1 and len.  New variables dir_vec,
6808         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
6809         no longer expecting DIRNAME_SEPARATOR.
6810         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6811         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
6812         debugdir_end.
6813         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6814         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6815         (dirnames_to_char_ptr_vec): New functions.
6816
6817 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6818
6819         Code cleanup.
6820         * source.c (add_path): Remove always true conditional 'p == 0' and
6821         unindent its code block.
6822
6823 2012-04-17  Pedro Alves  <palves@redhat.com>
6824
6825         * gdbtypes.h (FIELD_BITPOS): Rename to ...
6826         (FIELD_BITPOS_LVAL): ... this.
6827         (FIELD_BITPOS): New.
6828         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6829         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6830         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6831         SET_FIELD_BITPOS.
6832         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6833         SET_FIELD_BITPOS.
6834         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6835         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6836         * target-descriptions.c (tdesc_gdb_type): Adjust to use
6837         SET_FIELD_BITPOS.
6838
6839 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6840
6841         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6842         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6843         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6844         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6845         * jv-lang.c (java_link_class_type): Likewise, once.
6846         * stabsread.c (read_enum_type): Likewise.
6847
6848 2012-04-16  Yao Qi  <yao@codesourcery.com>
6849
6850         * common/agent.c (agent_run_command): Add one more parameter `len'.
6851         Update callers.
6852         * common/agent.h: Update declaration.
6853         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6854         Update.
6855         (linux_child_static_tracepoint_markers_by_strid): Ditto.
6856
6857 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
6858
6859         PR mi/13393
6860         * value.c (value_actual_type): New function.
6861         * value.h (value_actual_type): New declaration.
6862         * varobj.c (update_type_if_necessary): New function.
6863         (varobj_create): Call value_actual_type instead of
6864         value_type.
6865         (install_dynamic_child): distinct changed and type changed MI variable
6866         objects.
6867         (update_dynamic_varobj_children): Updated for install_dynamic_child
6868         change.  All callers updated.
6869         (varobj_update): Support for MI variable object type change if
6870         the value changed and RTTI is used to determine the type.
6871         (create_child_with_value): Call value_actual_type instead of
6872         value_type.
6873         (adjust_value_for_child_access): Extended with a new parameter which
6874         specify whether the given value should be casted to enclosing type.
6875         All callers updated.
6876
6877 2012-04-14  Yao Qi  <yao@codesourcery.com>
6878
6879         Import gnulib module inttypes from git
6880         (250b80067c1e1d8faa0c42fb572f721975b929c5)
6881         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6882         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6883         gnulib/m4/inttypes-pri.m4
6884         * aclocal.m4, config.in, configure: Regenerated.
6885         * gnulib/Makefile.am: Update.
6886         * gnulib/Makefile.in: Update.
6887         * gnulib/m4/gnulib-cache.m4: Update.
6888         * gnulib/m4/gnulib-comp.m4: Update.
6889         * gnulib/inttypes.in.h: New.
6890         * gnulib/m4/inttypes-pri.m4: New.
6891         * gnulib/m4/inttypes.m4: New.
6892
6893 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
6894
6895         * infrun.c (resume): Update PC address to the real PC after
6896         preparing to do displaced stepping.
6897
6898 2012-04-12  Doug Evans  <dje@google.com>
6899
6900         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6901         All callers updated.
6902
6903 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
6904
6905         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6906
6907 2012-04-12  Doug Evans  <dje@google.com>
6908
6909         * dwarf2read.c (create_all_type_units): Renamed from
6910         create_debug_types_hash_table.  All callers updated.
6911
6912         * dwarf2read.c (create_signatured_type_table_from_index): Rename
6913         local type_sig to sig_type, type_offset to type_offset_in_tu.
6914         (hash_signatured_type): Renamed from hash_type_signature,
6915         all callers updated.
6916         (eq_signatured_type): Renamed from eq_type_signature,
6917         all callers updated.
6918         (create_debug_types_hash_table): Rename local type_sig to sig_type.
6919         (process_enumeration_scope): Ditto.
6920         (lookup_signatured_type_at_offset): Ditto.
6921         (load_full_type_unit, read_signatured_type): Ditto.
6922
6923 2012-04-12  Yao Qi  <yao@codesourcery.com>
6924
6925         * remote.c (async_remote_interrupt): Correct function name in
6926         debug message.
6927         (async_remote_interrupt_twice): Ditto.
6928
6929 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
6930
6931         * source.c (find_and_open_source): Consistently pass resulting
6932         full path through xfullpath.
6933
6934 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6935
6936         Provide more specific displaced-stepping memory error message.
6937         * infrun.c (displaced_step_prepare): New variable status.  Call
6938         target_read_memory instead of read_memory, provide more specific
6939         error message.
6940
6941 2012-04-11  Tristan Gingold  <gingold@adacore.com>
6942
6943         PR gdb/13901
6944         * darwin-nat.c (darwin_execvp): Revert previous patch.
6945
6946 2012-04-11  Tristan Gingold  <gingold@adacore.com>
6947
6948         PR gdb/13901
6949         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6950         in case of change.
6951
6952 2012-04-11  Tristan Gingold  <gingold@adacore.com>
6953
6954         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6955         warning.
6956
6957 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
6958
6959         New command 'explore' which helps explore values and types in
6960         scope.
6961         * NEWS: Add an entry about the new 'explore' command.
6962         * data-directory/Makefile.in: Add gdb/command/explore.py
6963         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6964         command using the GDB Python API.
6965
6966 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
6967
6968         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6969         extension in jump target calculation.
6970
6971 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
6972
6973         * mips-tdep.c (mips32_next_pc): Handle JALX.
6974
6975 2012-04-10  Yao Qi  <yao@codesourcery.com>
6976
6977         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6978
6979 2012-04-10  Yao Qi  <yao@codesourcery.com>
6980
6981         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6982         and gnulib/m4/gnulib-tool.m4.
6983
6984 2012-04-10  Doug Evans  <dje@google.com>
6985
6986         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6987         (load_partial_dies): Clarify comment.
6988         (find_partial_die): Support rereading type units.
6989         Clarify CU handling, if we know offset is in CU, don't search for the
6990         containing CU.  Add comment regarding memory waste.
6991
6992 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
6993
6994         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6995         i386/x32-avx and i386/x32-avx-linux.
6996         (i386/x32-expedite): New.
6997         (i386/x32-linux-expedite): Likewise.
6998         (i386/x32-avx-expedite): Likewise.
6999         (i386/x32-avx-linux-expedite): Likewise.
7000         ($(outdir)/i386/x32.dat): Likewise.
7001         ($(outdir)/i386/x32-linux.dat): Likewise.
7002         ($(outdir)/i386/x32-avx.dat): Likewise.
7003         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7004
7005         * features/i386/x32-avx-linux.xml: New file.
7006         * features/i386/x32-avx.xml: Likewise.
7007         * features/i386/x32-core.xml: Likewise.
7008         * features/i386/x32-linux.xml: Likewise.
7009         * features/i386/x32.xml: Likewise.
7010
7011         * features/i386/x32-avx-linux.c: New.  Generated.
7012         * features/i386/x32-avx.c: Likewise.
7013         * features/i386/x32-linux.c: Likewise.
7014         * features/i386/x32.c: Likewise.
7015         * regformats/i386/x32-avx-linux.dat: Likewise.
7016         * regformats/i386/x32-avx.dat: Likewise.
7017         * regformats/i386/x32-linux.dat: Likewise.
7018         * regformats/i386/x32.dat: Likewise.
7019
7020 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7021
7022         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7023         code to kill the inferior.
7024
7025 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7026
7027         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7028         defines.
7029         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7030         defines.
7031         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7032         (yyvsp): New defines.
7033         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7034         defines.
7035         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7036         defines.
7037         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7038         defines.
7039         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7040         defines.
7041         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7042         defines.
7043
7044 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7045
7046         * sparc64-tdep.c (sparc64_store_arguments)
7047         (sparc64_store_arguments): Fix coding style.
7048
7049 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
7050
7051         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7052         complex floats, adjust some related comments and tighten a related
7053         assertion.
7054         (sparc64_extract_return_value): Handle complex floats.
7055
7056 2012-04-07  Doug Evans  <dje@google.com>
7057
7058         * dwarf2read.c (load_partial_dies): Change condition to assert.
7059
7060 2012-04-06  Doug Evans  <dje@google.com>
7061
7062         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7063         "mov %rsp,%rbp".
7064
7065 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
7066
7067         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7068         fencepost error.
7069         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7070         (v850_gdbarch_init): Set `num_regs' as appropriate for the
7071         architecture.
7072
7073 2012-04-05  Keith Seitz  <keiths@redhat.com>
7074
7075         * linespec.c (decode_compound): Remove.
7076         (enum offset_relative_sign): New enum.
7077         (struct line_offset): New struct.
7078         (struct linespec): New struct.
7079         (struct linespec_state): Move file_symtabs,
7080         user_filename, and user_function into struct linespec.
7081         Make result an anonymous struct holding vectors of
7082         symbolp and minsym_and_objfile_d.
7083         Add language member.
7084         (enum ls_token_type): New enum.
7085         (linespec_keywords): New array.
7086         (struct ls_token): New struct.
7087         (struct ls_parser): New struct.
7088         (linespec_lexer_lex_number): New function.
7089         (linespec_lexer_lex_keyword): New function.
7090         (is_ada_operator): New function.
7091         (skip_quote_char): New function.
7092         (copy_token_string): New function.
7093         (is_closing_quote_enclosed): New function.
7094         (find_parameter_list_end): New function.
7095         (linespec_lexer_lex_string): New function.
7096         (linespec_lexer_lex_one): New function.
7097         (linespec_lexer_consume_token): New function.
7098         (linespec_lexer_peek_token): New function.
7099         (cplusplus_error): Remove unused function.
7100         (find_methods): Update comment.
7101         (find_toplevel_char): Return const.
7102         (is_objc_method_format): Remove unused function.
7103         (find_toplevel_string): New function.
7104         (is_linespec_boundary): Remove.
7105         (symbol_not_found_error): New function.
7106         (find_method_overload_end): Remove function.
7107         (unexpected_linespec_error): New function.
7108         (keep_name_info): Remove.
7109         (linespec_parse_line_offset): New function.
7110         (linespec_parse_basic): New function.
7111         (canonicalize_linespec): New function.
7112         (decode_line_internal): Remove.
7113         (create_sals_line_offset): New function adapted from
7114         decode_all_digits.
7115         (convert_linespec_to_sals): New function.
7116         (parse_linespec): New function.
7117         (linespec_parser_new): New function.
7118         (linespec_state_destructor): Change parameter type to
7119         struct linespec_state *.
7120         Add language parameter.
7121         Remove freeing of moved members.
7122         (linespec_parser_delete): New function.
7123         (decode_line_full): Use parse_linespec and linespec_parser_new.
7124         (decode_line_1): Likewise.
7125         (decode_indirect): Rename to ...
7126         (linespec_expression_to_pc): ... this and rewrite
7127         to simply find CORE_ADDR, storing this result for later
7128         conversion to SALs.
7129         (locate_first_half): Remove.
7130         (deocde_objc): Add parameter LS.
7131         Initialize new struct collect_info members.
7132         Handle minimal symbols, too.
7133         (decode_compound): Delete.
7134         (lookup_prefix_sym): Rewrite.
7135         (compare_msymbols): New function.
7136         (find_method): Rewrite.
7137         Do not call cplusplus_error.
7138         (symtabs_from_filename): Rewrite.
7139         (collect_function_symbols): Delete.
7140         (find_function_symbols): Rewrite without ARGPTR-style
7141         processing.
7142         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7143         (decode_dollar): Adapted and renamed to ...
7144         (linespec_parse_variable): ... this.
7145         (find_linespec_symbols): New function.
7146         (decode_label): Adapted and renamed to ...
7147         (find_label_symbols): ... this.
7148         (decode_digits_list_mode): Add and use LS argument.
7149         (decode_digits_ordinary): Likewise.
7150         (collect_symbols): Do not collect SALs, just symbols and msymbols.
7151         If in list mode, allow any symbol class.  Otherwise, only
7152         permit LOC_BLOCK symbols.
7153         (minsym_found): Update comments.
7154         (search_minsyms_for_name): Do not convert the matching symbol
7155         into a SAL.  Simply push the symbol and objfile into the
7156         result vector.
7157         (decode_variable): Delete. Contents adapted into
7158         find_linespec_symbols.
7159
7160         * cp-support.c (SKIP_SPACE): Remove.
7161         (operator_tokens): Remove unused global.
7162         (cp_validate_operator): Remove.
7163         * cp-support.h (cp_validate_operator): Remove declaration.
7164
7165 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7166
7167         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7168         for TYPE_VPTR_FIELDNO.
7169         * valprint.c (valprint_check_validity): Make it global, move the
7170         function comment ...
7171         * value.h (valprint_check_validity): ... to this new declaration.
7172
7173 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7174
7175         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7176         the STATE32 api for i386 state.
7177         (i386_darwin_store_inferior_registers): Likewise.
7178
7179 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7180
7181         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7182         SS offset.
7183         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7184         format_string.
7185
7186 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7187
7188         PR gdb/13901
7189         * darwin-nat.c (darwin_execvp): Set binary preference.
7190
7191 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7192
7193         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7194
7195 2012-03-30  Tom Tromey  <tromey@redhat.com>
7196
7197         * python/python.c (gdbpy_decode_line): Move cleanup creation out
7198         of TRY_CATCH.  Fix error handling.
7199         * python/py-value.c (convert_value_from_python): Move 'old'
7200         declaration to innermost scope.
7201
7202 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7203             Andrey Smirnov  <andrew.smirnov@gmail.com>
7204
7205         -Wshadow warning fix.
7206         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7207         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7208         Adjust code accordingly.
7209
7210 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7211
7212         * ada-lang.c (symbol_completion_add): Rename parameter
7213         "encoded" into "encoded_p".  Ajust code and documentation
7214         accordingly.
7215
7216 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7217             Andrey Smirnov  <andrew.smirnov@gmail.com>
7218
7219         -Wshadow warning fix.
7220         * ada-lang.c (symbol_completion_add): Rename parameter
7221         "wild_match" into wild_match_p.  Update code and documentation
7222         accordingly.
7223
7224 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7225
7226         * ada-lang.c (symbol_completion_match): Rename parameter
7227         "encoded" into "encoded_p".  Ajust code and documentation
7228         accordingly.
7229
7230 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7231             Andrey Smirnov  <andrew.smirnov@gmail.com>
7232
7233         -Wshadow warning fix.
7234         * ada-lang.c (symbol_completion_match): Rename parameter
7235         "wild_match" into "wild_match_p".  Adjust code and function
7236         documentation accordingly.
7237
7238 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7239             Andrey Smirnov  <andrew.smirnov@gmail.com>
7240
7241         -Wshadow warning fix.
7242         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7243         "symbol_info" into "info".  Adjust code accordingly.
7244         (ada_lookup_symbol): Likewise.
7245
7246 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7247
7248         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7249         of this function's documentation.
7250
7251 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7252             Andrey Smirnov  <andrew.smirnov@gmail.com>
7253
7254         -Wshadow warning fix.
7255         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7256         variable into "wild_match_p".  Adjust code accordingly.
7257
7258 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7259             Andrey Smirnov  <andrew.smirnov@gmail.com>
7260
7261         -Wshadow warning fix.
7262         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7263         parameter into "wild_match_p".  Adjust code accordingly.
7264         Document this parameter in the function description.
7265
7266 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7267             Andrey Smirnov  <andrew.smirnov@gmail.com>
7268
7269         -Wshadow warning fix.
7270         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7271         "wild_match" parameter to "wild_match_p" (-Wshadow).
7272
7273 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7274
7275         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7276         in function documentation.
7277
7278 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7279             Andrey Smirnov  <andrew.smirnov@gmail.com>
7280
7281         -Wshadow warning fix.
7282         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7283         variable into wild_match_p.  Adjust code accordingly.
7284
7285 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7286             Andrey Smirnov  <andrew.smirnov@gmail.com>
7287
7288         * ada-valprint.c (ada_val_print_1): Move the code handling
7289         TYPE_CODE_ENUM inside its own lexical block.  Declare
7290         variables len and val there, instead of in the function's
7291         top level block.  Avoid declaring deref_val again in a way
7292         that shadows another variable of the same name declared
7293         in one of the up-level blocks.  Just re-use the up-level
7294         variable instead.
7295
7296 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7297
7298         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7299         Replace block_found argument by symbol_info.  Adjust
7300         implementation accordingly.  Add function documentation.
7301         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7302         Fix documentation.
7303         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7304         * ada-exp.y (write_object_renaming): Adjust to new
7305         ada_lookup_encoded_symbol API.
7306
7307 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7308
7309         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
7310         documentation.
7311
7312 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
7313
7314         * v850-tdep.c: Add the enum values for mpu and fpu registers.
7315         (v850_register_name): Add the mpu and fpu register names.
7316         (v850e_register_name): Add the mpu and fpu register names.
7317         (v850e2_register_name): New function.
7318         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7319         bfd_mach_v850e2v3.
7320
7321 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7322
7323         * NEWS: Add entry for Ada varobj support.
7324
7325 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7326
7327         * varobj.c (default_value_is_changeable_p): New function,
7328         extracted from varobj_value_is_changeable_p.  Add declaration.
7329         (ada_value_is_changeable_p): New function, extracted from
7330         varobj_value_is_changeable_p.  Add declaration.
7331         (struct language_specific): New field "value_is_changeable_p".
7332         (languages): Add entries for new field.
7333         (varobj_create): Set language before calling install_new_value.
7334         (varobj_value_is_changeable_p): Reimplement to call the varobj's
7335         "value_is_changeable_p" language callback.
7336
7337 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7338
7339         * ada-varobj.h, ada-varobj.c: New files.
7340         * Makefile.in (SFILES): Add ada-varobj.c.
7341         (HFILES_NO_SRCDIR): Add ada-varobj.h.
7342         (COMMON_OBS): Add ada-varobj.o.
7343
7344 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7345
7346         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
7347         (struct language_specific): New field "value_has_mutated".
7348         (languages): Set field "value_has_mutated" in each entry of array.
7349         (varobj_value_has_mutated): New function.
7350         (varobj_udpdate): Add handling of type mutation.
7351         (value_of_root): Add handling of type mutation.
7352         (ada_value_has_mutated): New function.
7353
7354 2012-03-28  Pedro Alves  <palves@redhat.com>
7355
7356         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7357         Always supply $fr0 as 0.0 and $fr1 as 1.0.
7358
7359 2012-03-28  Tom Tromey  <tromey@redhat.com>
7360
7361         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7362         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
7363         before returning.
7364
7365 2012-03-28  Tom Tromey  <tromey@redhat.com>
7366
7367         * .dir-locals.el: New file.
7368
7369 2012-03-28  Pedro Alves  <palves@redhat.com>
7370
7371         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7372
7373 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7374
7375         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7376         handling for r0.
7377
7378 2012-03-27  Pedro Alves  <palves@redhat.com>
7379
7380         Eliminate struct ui_stream.
7381
7382         * ui-out.h (struct ui_stream): Delete.
7383         (ui_out_field_stream): Adjust prototype.
7384         (ui_out_stream_new, ui_out_stream_delete)
7385         (make_cleanup_ui_out_stream_delete): Delete declarations.
7386         * ui-out.c (ui_out_field_stream): Change prototype to take a
7387         ui_file instead of a ui_stream.  Adjust.
7388         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7389         (make_cleanup_ui_out_stream_delete): Delete.
7390         * breakpoint.c (print_breakpoint_location)
7391         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7392         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7393         * disasm.c (dump_insns): Ditto.
7394         (do_mixed_source_and_assembly, do_assembly_only): Adjust
7395         prototype.
7396         (gdb_disassembly): Use ui_file/mem_fileopen instead of
7397         ui_stream/ui_out_stream_new.
7398         * infcmd.c (print_return_value): Ditto.
7399         * osdata.c (info_osdata_command): Don't allocate a local
7400         ui_stream.
7401         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7402         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7403         * tracepoint.c (print_one_static_tracepoint_marker): Don't
7404         allocate a local ui_stream.
7405         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7406         instead of ui_stream/ui_out_stream_new.
7407         (list_args_or_locals): Don't allocate a local ui_stream.
7408         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7409         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7410         ui_stream/ui_out_stream_new.
7411         * cli/cli-setshow.c (do_setshow_command): Ditto.
7412
7413 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
7414
7415         * arm-linux-tdep.c (arm_linux_init_abi): Call
7416         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
7417         * arm-tdep.c (arm_process_record): New function.
7418         (deallocate_reg_mem): New function.
7419         (decode_insn): New function.
7420         (thumb_record_branch): New function.
7421         (thumb_record_ldm_stm_swi(): New function.
7422         (thumb_record_misc): New function.
7423         (thumb_record_ld_st_stack): New function.
7424         (thumb_record_ld_st_imm_offset): New function.
7425         (thumb_record_ld_st_reg_offset(): New function.
7426         (thumb_record_add_sub_cmp_mov): New function.
7427         (thumb_record_shift_add_sub): New function.
7428         (arm_record_coproc_data_proc): New function.
7429         (arm_record_coproc): New function.
7430         (arm_record_b_bl): New function.
7431         (arm_record_ld_st_multiple): New function.
7432         (arm_record_ld_st_reg_offset): New function.
7433         (arm_record_ld_st_imm_offset): New function.
7434         (arm_record_data_proc_imm): New function.
7435         (arm_record_data_proc_misc_ld_str): New function.
7436         (arm_record_extension_space): New function.
7437         (arm_record_strx): New function.
7438         (sbo_sbz): New function.
7439         (struct insn_decode_record): New structure for arm insn record.
7440         (REG_ALLOC): New macro for reg allocations.
7441         (MEM_ALLOC): New macro for memory allocations.
7442         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7443
7444 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
7445
7446         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7447         (store_register): Likewise.
7448
7449 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
7450
7451         * MAINTAINERS (Write After Approval): Add myself to the list.
7452
7453 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7454
7455         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7456         Describe also the option "auto".
7457
7458 2012-03-22  Richard Henderson  <rth@redhat.com>
7459
7460         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7461         * sparc-nat.c (sparc_xfer_wcookie): Make static.
7462
7463 2012-03-22  Richard Henderson  <rth@redhat.com>
7464
7465         * jit.c (jit_read_code_entry): Compute alignment and offset of
7466         int64_t member before computing entry_size.
7467
7468 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7469
7470         Python scripting: Add new method Value.referenced_value to
7471         gdb.Value which can dereference pointer as well as reference
7472         values.
7473         * NEWS: Add entry under 'Python scripting' about the new method
7474         Value.referenced_value on gdb.Value objects.
7475         * python/py-value.c (valpy_referenced_value): New function
7476         defining a new method on gdb.Value objects which can dereference
7477         pointer and reference values.
7478
7479 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7480
7481         * MAINTAINERS (Write After Approval): Add myself to the list.
7482
7483 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
7484
7485         * symtab.c (skip_prologue_sal): Change test to check for "main()"
7486         in addition to "main".
7487
7488 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7489
7490         * expression.h (op_name): Add declaration.
7491         * expprint.c (op_name): Remove declaration.  Make non-static.
7492         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7493
7494 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7495
7496         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7497         of struct siginfo.
7498         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7499         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7500         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7501         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7502         (linux_nat_get_siginfo): Likewise.
7503         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7504         (linux_nat_get_siginfo): Likewise.
7505         * linux-tdep.c (linux_get_siginfo_type): Likewise.
7506         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7507         * procfs.c (gdb_siginfo_t): Likewise.
7508
7509 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
7510
7511         * .gitignore: Ignore more files.
7512
7513 2012-03-20  Pedro Alves  <palves@redhat.com>
7514
7515         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7516         returns.
7517
7518 2012-03-20  Yao Qi  <yao@codesourcery.com>
7519
7520         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7521         comment.
7522
7523 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7524
7525         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7526         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7527         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7528         sect_offset.
7529         * dwarf2expr.h (cu_offset, sect_offset): New types.
7530         (struct dwarf_expr_context_funcs) <dwarf_call>
7531         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7532         sect_offset.
7533         (struct dwarf_expr_context) <len>: Improve the comment.
7534         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7535         cu_offset and sect_offset.
7536         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7537         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7538         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7539         * dwarf2loc.h: Include dwarf2expr.h.
7540         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7541         and sect_offset.
7542         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7543         Improve the comment.
7544         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7545         (struct signatured_type, struct line_header, struct partial_die_info)
7546         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7547         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7548         (get_die_type_at_offset, create_cus_from_index)
7549         (create_signatured_type_table_from_index, dw2_get_file_names)
7550         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7551         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7552         (create_debug_types_hash_table, process_psymtab_comp_unit)
7553         (load_partial_comp_unit, create_all_comp_units)
7554         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7555         (load_full_comp_unit, dwarf2_physname, read_import_statement)
7556         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7557         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7558         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7559         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7560         (find_partial_die, read_attribute_value, lookup_die_type)
7561         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7562         (is_ref_attr): New function comment.
7563         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7564         Use cu_offset and sect_offset.
7565         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7566         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7567         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7568         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7569         (offset_and_type_hash, offset_and_type_eq, set_die_type)
7570         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7571         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7572         sect_offset.
7573
7574 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7575
7576         Code cleanup.
7577         * python/py-auto-load.c (source_section_scripts): New variable back_to.
7578         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7579         with xfree.
7580         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7581
7582 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7583
7584         * NEWS: Describe new options --init-command=FILE, -ix and
7585         --init-eval-command=COMMAND, -iex.
7586         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7587         CMDARG_INIT_COMMAND.
7588         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
7589         "init-command", "init-eval-command", "ix" and "iex" to the variable
7590         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
7591         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7592         (print_gdb_help): Describe --init-command=FILE, -ix and
7593         --init-eval-command=COMMAND, -iex.
7594
7595 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7596
7597         Code cleanup.
7598         * main.c (struct cmdarg): Move it here from main.  Add more comments.
7599         (cmdarg_s, VEC (cmdarg_s)): New.
7600         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
7601         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
7602         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
7603         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
7604         of CMDARG.
7605
7606 2012-03-19  Tom Tromey  <tromey@redhat.com>
7607
7608         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7609
7610 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7611
7612         PR symtab/13777
7613         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7614         GCC >=4.5.
7615
7616 2012-03-16  Chris January  <chris.january@allinea.com>
7617
7618         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7619         of clear.
7620
7621 2012-03-16  Chris January  <chris.january@allinea.com>
7622
7623         * source.c (add_path): Use memmove instead of strcpy because the
7624         strings overlap.
7625
7626 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
7627
7628         * value.h (set_value_parent): Add declaration.
7629         * value.c (set_value_parent): New function.
7630         (value_address): If VALUE->PARENT is not NULL, then use it as
7631         the base address instead of VALUE->LOCATION.address.
7632         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7633         the same as OBJ's address.  Adjust V's offset accordingly.
7634         Set V's parent.
7635
7636 2012-03-16  Gary Benson  <gbenson@redhat.com>
7637
7638         PR breakpoints/10738
7639         * dwarf2read.c (use_deprecated_index_sections): New global.
7640         (struct partial_die_info): New member may_be_inlined.
7641         (read_partial_die): Set may_be_inlined where appropriate.
7642         (add_partial_subprogram): Add partial symbols for partial
7643         DIEs that may be inlined.
7644         (new_symbol_full): Add inlined subroutines to the current
7645         scope.
7646         (write_psymtabs_to_index): Bump version number.
7647         (dwarf2_read_index): Read only version 6 indices unless
7648         use_deprecated_index_sections is set.
7649         * linespec.c (symbol_and_data_callback): New structure.
7650         (iterate_inline_only): New function.
7651         (iterate_over_all_matching_symtabs): New argument
7652         "include_inline".  If nonzero, also call the callback for
7653         symbols representing inlined subroutines.
7654         (lookup_prefix_sym): Pass extra argument to the above.
7655         (find_function_symbols): Likewise.
7656         (add_matching_symbols_to_info): Likewise.
7657         * NEWS: Mention that GDB can now set breakpoints on inlined
7658         functions.
7659
7660 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7661
7662         * p-typeprint.c (pascal_type_print_method_args):
7663         Fix display of parameter of methods.
7664
7665 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7666
7667         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7668         Add missing prototype.
7669
7670 2012-03-16  Yao Qi  <yao@codesourcery.com>
7671             Jan Kratochvil  <jan.kratochvil@redhat.com>
7672
7673         Fix false compilation warning.
7674         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7675
7676 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
7677             Pedro Alves  <pedro@codesourcery.com>
7678
7679         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7680         (arm_register_g_packet_guesses): New function.
7681         (arm_gdbarch_init): Don't force a target description with
7682         registers when the executable is detected as M-profile.  Instead
7683         set gdbarch->tdep->is_m.  Register `g' packet guesses.
7684         (_initialize_arm_tdep): Initialize the new target description.
7685         * features/arm-with-m-fpa-layout.xml: New description.
7686         * features/arm-with-m-fpa-layout.c: New, generated.
7687
7688 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
7689
7690         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7691         Update function description.
7692         (insert_bp_location): Do not wipe bl->target_info out.
7693         * mem-break.c: #include "gdb_string.h".
7694         (default_memory_insert_breakpoint): Do not call target_read_memory
7695         with a pointer to the breakpoint's shadow_contents buffer.  Use
7696         a local buffer instead.
7697         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7698
7699 2012-03-15  Tom Tromey  <tromey@redhat.com>
7700
7701         * NEWS: Mention "info vtbl", not "info vtable".
7702         * cp-support.c (info_vtbl_command): Fix comment.
7703         (_initialize_cp_support): Fix text.
7704
7705 2012-03-15  Tom Tromey  <tromey@redhat.com>
7706
7707         * cp-valprint.c (cp_print_value_fields): Use
7708         print_function_pointer_address for vtable slot.
7709
7710 2012-03-15  Tom Tromey  <tromey@redhat.com>
7711
7712         * gnu-v3-abi.c (struct value_and_voffset): New.
7713         (hash_value_and_voffset, eq_value_and_voffset)
7714         (compare_value_and_voffset, compute_vtable_size)
7715         (print_one_vtable, gnuv3_print_vtable): New functions.
7716         (init_gnuv3_ops): Initialize 'print_vtable' field.
7717         * cp-support.c (info_vtbl_command): New function.
7718         (_initialize_cp_support): Add "info vtbl".
7719         * cp-abi.h (cplus_print_vtable): Declare.
7720         (struct cp_abi_ops) <print_vtable>: New field.
7721         * cp-abi.c (cplus_print_vtable): New function.
7722         * NEWS: Update.
7723
7724 2012-03-15  Tom Tromey  <tromey@redhat.com>
7725
7726         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7727         iterate_over_symbols.
7728
7729 2012-03-14  Doug Evans  <dje@google.com>
7730
7731         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7732         DW_OP_GNU_parameter_ref.
7733
7734 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7735
7736         Fix double prompt of 'interpreter-exec mi'.
7737         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7738         (mi_interpreter_resume): use it.
7739         (mi_execute_command_input_handler): New function.
7740         * mi/mi-main.c (mi_execute_command): Move prompt printing to
7741         mi_execute_command_input_handler.
7742
7743 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
7744
7745         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7746         prototype.
7747         (darwin_debug_port_info): Make static.
7748         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7749         * machoread.c (_initialize_machoread): Add prototype.
7750         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7751         (i386_darwin_set_control, i386_darwin_get_control)
7752         i386_darwin_dr_set_addr, i386_darwin_get_addr)
7753         i386_darwin_get_status, i386_darwin_get_control):
7754         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7755
7756 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7757
7758         * ax-gdb.c (gen_usual_unary): Remove special handling of
7759         enum and bool types.
7760
7761 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7762
7763         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7764
7765 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7766
7767         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7768
7769 2012-03-13  Chris January  <chris.january@allinea.com>
7770
7771         * aix-thread.c (fill_sprs): Store the floating point registers
7772         at the correct offsets into vals.
7773
7774 2012-03-13  Doug Evans  <dje@google.com>
7775
7776         * NEWS: Mention symbol-reloading has been deleted.
7777         * symfile.c (symbol_reloading): Delete.
7778         (show_symbol_reloading): Delete.
7779         (_initialize_symfile): Delete set/show symbol-reloading.
7780
7781         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7782         read_in_chain until we have successfully read it in.
7783         (load_full_comp_unit): Ditto.
7784         (read_signatured_type): Add comment.
7785
7786 2012-03-13  Chris January  <chris.january@allinea.com>
7787
7788         * stabsread.c (fix_common_block): Change type of valu argument
7789         to CORE_ADDR.
7790
7791 2012-03-13  Chris January  <chris.january@allinea.com>
7792
7793         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7794         instruction.
7795
7796 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7797
7798         * common/linux-procfs.c (linux_proc_get_int): New, from
7799         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7800         field.
7801         (linux_proc_get_tgid): Only call linux_proc_get_int.
7802         (linux_proc_get_tracerpid): New.
7803         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7804         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7805         linux_proc_pid_has_state.
7806         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7807         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7808         (linux_ptrace_attach_warnings): New.
7809         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7810         New declaration.
7811         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7812         (linux_nat_attach): New variables ex, buffer, message and message_s.
7813         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7814
7815 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7816
7817         * Makefile.in (linux-ptrace.o): New.
7818         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7819         from linux-nat.c.
7820         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7821         * common/linux-ptrace.c: New file.
7822         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7823         * config/arm/linux.mh: Likewise.
7824         * config/i386/linux.mh: Likewise.
7825         * config/i386/linux64.mh: Likewise.
7826         * config/ia64/linux.mh: Likewise.
7827         * config/m32r/linux.mh: Likewise.
7828         * config/m68k/linux.mh: Likewise.
7829         * config/mips/linux.mh: Likewise.
7830         * config/pa/linux.mh: Likewise.
7831         * config/powerpc/linux.mh: Likewise.
7832         * config/powerpc/ppc64-linux.mh: Likewise.
7833         * config/powerpc/spu-linux.mh: Likewise.
7834         * config/s390/s390.mh: Likewise.
7835         * config/sparc/linux.mh: Likewise.
7836         * config/sparc/linux64.mh: Likewise.
7837         * config/xtensa/linux.mh: Likewise.
7838         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7839         common/linux-procfs.c.
7840         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7841
7842 2012-03-13  Hui Zhu  <teawater@gmail.com>
7843             Pedro Alves  <palves@redhat.com>
7844
7845         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
7846         CREATE_BREAKPOINT_FLAGS_INSERTED.
7847         (create_breakpoint_sal, create_breakpoints_sal)
7848         (base_breakpoint_create_breakpoints_sal)
7849         (tracepoint_create_breakpoints_sal)
7850         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
7851         down.
7852         (break_command_1, handle_gnu_v3_exceptions, trace_command)
7853         (ftrace_command, strace_command): Adjust.
7854         (create_tracepoint_from_upload): Pass
7855         CREATE_BREAKPOINT_FLAGS_INSERTED.
7856         * breakpoint.h (enum breakpoint_create_flags): New.
7857         (create_breakpoint): New flags parameter.
7858         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7859         * python/py-breakpoint.c (bppy_init): Adjust.
7860         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7861         * spu-tdep.c (spu_catch_start): Adjust.
7862
7863 2012-03-13  Pedro Alves  <palves@redhat.com>
7864             Hui Zhu  <teawater@gmail.com>
7865             Yao Qi  <yao@codesourcery.com>
7866
7867         * remote.c (struct remote_state): New field `starting_up'.
7868         (remote_start_remote): Set and clear it.
7869         (remote_can_download_tracepoint): If starting up, return false.
7870
7871 2012-03-13  Yao Qi  <yao@codesourcery.com>
7872
7873         * inferior.h (struct inferior): Remove fields any_syscall_count,
7874         syscalls_counts and total_syscalls_count.  Move them to new
7875         struct catch_syscall_inferior_data in breakpoint.c.
7876         * breakpoint.c: Call DEF_VEC_I(int).
7877         (struct catch_syscall_inferior_data): New.
7878         (get_catch_syscall_inferior_data): New.
7879         (catch_syscall_inferior_data_cleanup): New.
7880         (insert_catch_syscall): Update to access data in
7881         struct catch_syscall_inferior_data.
7882         (insert_catch_syscall): Likewise.
7883         (remove_catch_syscall): Likewise.
7884         (remove_catch_syscall): Likewise.
7885         (is_syscall_catchpoint_enabled): Likewise.
7886         (add_catch_command): Likewise.
7887         (_initialize_breakpoint): Register cleanup.
7888         * breakpoint.h: Removed DEF_VEC_I(int).
7889         * dwarf2loc.c: Call DEF_VEC_I(int).
7890         * mi/mi-main.c: Likewise.
7891
7892 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
7893
7894         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7895
7896 2012-03-12  Chris January  <chris.january@allinea.com>
7897
7898         * aix-thread.c (_initialize_aix_thread): Add prototype.
7899         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7900         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7901
7902 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
7903
7904         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7905         include of "amd64-nat.h".
7906
7907 2012-03-12  Tom Tromey  <tromey@redhat.com>
7908
7909         * buildsym.c (record_pending_block): Now static.
7910         * buildsym.h: (record_pending_block): Remove.
7911
7912 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
7913
7914         * amd64bsd-nat.c: Include amd64bsd-nat.h.
7915
7916 2012-03-09  Tom Tromey  <tromey@redhat.com>
7917
7918         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7919         producer_is_gxx_lt_4_6>: New fields.
7920         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7921
7922 2012-03-09  Tom Tromey  <tromey@redhat.com>
7923
7924         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7925
7926 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
7927
7928         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7929         prototype.
7930
7931 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
7932
7933         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7934
7935 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7936
7937         Fix -Wmissing-prototypes build.
7938         * arm-linux-nat.c (get_thread_id): Make it static.
7939         * xtensa-linux-nat.c (get_thread_id): Likewise.
7940
7941 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
7942
7943         * server.c (process_point_options): If a conditional expression
7944         is found, only print a message if remote_debug is nonzero.
7945
7946 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
7947
7948         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7949         of internal error for unknown/unsupported types.
7950
7951 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7952
7953         Fix CU relative vs. absolute DIE offsets.
7954         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7955         offset to offset_in_cu.
7956         * dwarf2read.c (process_enumeration_scope): Add CU offset to
7957         TYPE_OFFSET.
7958         (dwarf2_fetch_die_location_block): Rename parameter offset to
7959         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
7960
7961 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7962
7963         * libunwind-frame.c: Rename to ...
7964         * ia64-libunwind-tdep.c: ... here.
7965         * libunwind-frame.h: Rename to ...
7966         * ia64-libunwind-tdep.h: ... here.
7967         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7968         ia64-libunwind-tdep.h.
7969         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7970         * README (--with-libunwind): Rename to ...
7971         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7972         * config.in: Regenerate.
7973         * configure: Regenerate.
7974         * configure.ac: New option --with-libunwind-ia64, make the
7975         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
7976         Remove AC_DEFINE for HAVE_LIBUNWIND.
7977         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7978         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7979         Rename libunwind-frame in the general comment.
7980         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7981         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7982         Move forward declarations inside #ifndef.  Rename libunwind-frame in
7983         the general comment.
7984         * ia64-tdep.c: Rename libunwind-frame.h #include to
7985         ia64-libunwind-tdep.h.
7986         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7987         (ia64_libunwind_descr): Rename libunwind-frame to
7988         ia64-libunwind-tdep in these function comments.
7989         * ia64-tdep.h: Rename libunwind-frame.h #include to
7990         ia64-libunwind-tdep.h.
7991         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7992         ia64-libunwind-tdep in that data comment.
7993
7994 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7995
7996         * libunwind-frame.h (struct frame_unwind): New declaration.
7997
7998 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
7999
8000         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8001         "set breakpoint condition-evaluation" command.
8002
8003 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8004
8005         * sparc-stub.c: Move to stubs/
8006         * sh-stub.c: Likewise.
8007         * m68k-stub.c: Likewise.
8008         * m32r-stub.c: Likewise.
8009         * i386-stub.c: Likewise.
8010
8011 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8012
8013         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8014         linux_get_siginfo_type.
8015
8016         * m68klinux-nat.c: Include "gdb_proc_service.h".
8017         (PTRACE_GET_THREAD_AREA): Define.
8018         (ps_get_thread_area): New function.
8019
8020 2012-03-08  Yao Qi  <yao@codesourcery.com>
8021
8022         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8023         `xsnprintf'.
8024         (remote_query_attached): Likewise.
8025         (remote_static_tracepoint_marker_at): Likewise.
8026         (remote_set_permissions): Likewise.
8027         (remote_detach_1, extended_remote_attach_1): Likewise.
8028         (send_g_packet, remote_vkill): Likewise.
8029         (extended_remote_disable_randomization): Likewise.
8030         (remote_add_target_side_condition): Likewise.
8031         (remote_insert_breakpoint): Likewise.
8032         (remote_remove_breakpoint): Likewise.
8033         (remote_insert_watchpoint): Likewise.
8034         (remote_remove_watchpoint): Likewise.
8035         (remote_insert_hw_breakpoint): Likewise.
8036         (remote_insert_hw_breakpoint): Likewise.
8037         (remote_remove_hw_breakpoint): Likewise.
8038         (remote_download_command_source): Likewise.
8039         (remote_download_tracepoint): Likewise.
8040         (remote_download_trace_state_variable): Likewise.
8041         (remote_disable_tracepoint): Likewise.
8042         (remote_trace_set_readonly_regions): Likewise.
8043         (remote_get_tracepoint_status): Likewise.
8044         (remote_trace_find): Likewise.
8045         (remote_get_trace_state_variable_value): Likewise.
8046         (remote_set_disconnected_tracing): Likewise.
8047         (remote_set_circular_trace_buffer): Likewise.
8048         (remote_get_min_fast_tracepoint_insn_len): Likewise.
8049         (remote_use_agent): Likewise.
8050         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8051         Update callers.
8052
8053 2012-03-07  Pedro Alves  <palves@redhat.com>
8054
8055         * NEWS: Mention QProgramSignals.
8056         * inferior.h (update_signals_program_target): Declare.
8057         * infrun.c: (update_signals_program_target): New.
8058         (handle_command): Update the target of the new program signals
8059         array changes.
8060         * remote.c (PACKET_QProgramSignals): New enum.
8061         (last_program_signals_packet): New global.
8062         (remote_program_signals): New.
8063         (remote_start_remote): Update the target with the program signals
8064         list.
8065         (remote_protocol_features): Add entry for QPassSignals.
8066         (remote_open_1): Free anc clear last_program_signals_packet.
8067         (init_remote_ops): Install remote_program_signals.
8068         * target.c (update_current_target): Adjust.
8069         (target_program_signals): New.
8070         * target.h (struct target_ops) <to_program_signals>: New field.
8071         (target_program_signals): Declare.
8072
8073 2012-03-07  Pedro Alves  <palves@redhat.com>
8074
8075         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8076         extensions.
8077
8078 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8079
8080         * m68klinux-nat.c (getregs_supplies): Make static.
8081         (getfpregs_supplies): Likewise.
8082         (have_ptrace_getregs): Likewise.
8083
8084 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
8085
8086         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8087         in call to get_die_type_at_offset.
8088
8089 2012-03-06  Stan Shebs  <stan@codesourcery.com>
8090
8091         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8092         * mi/mi-cmd-disas.c: Ditto.
8093         * mi/mi-cmd-env.c: Ditto.
8094         * mi/mi-cmd-file.c: Ditto.
8095         * mi/mi-cmd-stack.c: Ditto.
8096         * mi/mi-cmd-target.c: Ditto.
8097         * mi/mi-cmd-var.c: Ditto.
8098         * mi/mi-cmds.c: Ditto.
8099         * mi/mi-cmds.h: Ditto.
8100         * mi/mi-console.c: Ditto.
8101         * mi/mi-getopt.c: Ditto.
8102         * mi/mi-getopt.h: Ditto.
8103         * mi/mi-interp.c: Ditto.
8104         * mi/mi-main.c: Ditto.
8105         * mi/mi-out.c: Ditto.
8106         * mi/mi-parse.c: Ditto.
8107         * mi/mi-parse.h: Ditto.
8108         * mi/mi-symbol-cmds.c: Ditto.
8109
8110         * mi/mi-getopt.h: Move mi_opt struct up.
8111         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8112         return.
8113         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8114
8115 2012-03-06  Tom Tromey  <tromey@redhat.com>
8116
8117         * proc-service.c (ps_pglobal_lookup): Set the current program
8118         space.
8119
8120 2012-03-06  Pedro Alves  <palves@redhat.com>
8121
8122         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8123
8124 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
8125
8126         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8127
8128 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8129
8130         Code cleanup.
8131         * common/linux-osdata.c (linux_common_core_of_thread): New function
8132         comment.
8133         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8134         call by linux_common_core_of_thread.
8135         (linux_nat_core_of_thread_1): Remove.
8136         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8137         * linux-thread-db.c: Include linux-osdata.h.
8138         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8139         linux_common_core_of_thread.
8140
8141 2012-03-05  Tom Tromey  <tromey@redhat.com>
8142
8143         * value.c (value_primitive_field): Don't fetch contents for
8144         non-virtual bases.
8145
8146 2012-03-05  Tom Tromey  <tromey@redhat.com>
8147
8148         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8149
8150 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8151
8152         * s390-nat.c: Include "gregset.h".
8153
8154 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8155
8156         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8157         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8158         (libunwind_load): New variable so_error, use it for dlerror.  Try to
8159         load also LIBUNWIND_SO_7.
8160
8161 2012-03-05  Pedro Alves  <palves@redhat.com>
8162
8163         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8164         is not NULL, and remove resulting dead code.
8165
8166 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
8167
8168         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8169         prologue to sh_analyze_prologue.
8170         (sh_analyze_prologue): Make better use of such an upper limit, and
8171         generally be more cautious about accessing memory.
8172
8173 2012-03-05  Tom Tromey  <tromey@redhat.com>
8174
8175         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8176         _initialize_ia64_hpux_tdep.
8177
8178 2012-03-05  Pedro Alves  <palves@redhat.com>
8179
8180         PR gdb/13766
8181
8182         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8183         the register state is clear, supply explicit zero, instead of
8184         marking the register unavailable.
8185
8186 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8187
8188         * NEWS: Mention OpenVMS ia64 new target.
8189
8190 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8191
8192         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8193         (ia64_unw_accessors, ia64_unw_rse_accessors)
8194         (ia64_libunwind_descr): Declare.
8195         * ia64-vms-tdep.c: New file.
8196         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8197         (ia64_libunwind_descr): Make them public.
8198         * configure.tgt: Add ia64-*-*vms*.
8199         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8200         (ALLDEPFILES): Add ia64-vms-tdep.c
8201
8202 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8203
8204         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8205         * remote.c (PACKET_qXfer_uib): New enum value.
8206         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8207         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8208         (_initialize_remote): Call add_packet_config_cmd for
8209         xfer:uib packet.
8210
8211 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8212
8213         * osabi.c (gdb_osabi_names): Add OpenVMS.
8214         (generic_elf_osabi_sniffer): Likewise.
8215         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8216
8217 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8218
8219         Removed unused code.
8220         * libunwind-frame.c (libunwind_frame_unwind)
8221         (libunwind_frame_base_address): Remove.
8222         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8223
8224 2012-03-04  Yao Qi  <yao@codesourcery.com>
8225
8226         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8227         remove trailing new line.
8228         (agent_run_command, agent_run_command): Add _ markup.
8229         (agent_capability_check): Likewise.
8230
8231 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8232
8233         * breakpoint.c (set_condition_evaluation_mode): Set
8234         CONDITION_EVALUATION_MODE unconditionally.
8235
8236 2012-03-03  Yao Qi  <yao@codesourcery.com>
8237
8238         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8239         * common/agent.h: Update declaration.
8240         * inf-child.c (inf_child_use_agent): New.
8241         (inf_child_can_use_agent): New.
8242         (inf_child_target): Initialize fields `to_use_agent'
8243         and `to_can_use_agent'.
8244         * agent.c (agent_new_objfile): New.
8245         (_initialize_agent): Add agent_new_objfile to new_objfile
8246         observer.
8247
8248         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8249         New.
8250         (linux_target_install_ops): Initialize field
8251         `to_static_tracepoint_markers_by_strid'.
8252         * remote.c (free_current_marker): Move it to ...
8253         * tracepoint.c (free_current_marker): ... here.  New.
8254         (cleanup_target_stop): New.
8255         * tracepoint.h: Declare free_current_marker.
8256         * NEWS: Add one entry about `info static-tracepoint-marker'.
8257
8258 2012-03-03  Yao Qi  <yao@codesourcery.com>
8259
8260         * common/agent.c (agent_loaded_p): New.
8261         (agent_look_up_symbols): New global.
8262         * common/agent.h: Declare agent_loaded_p.
8263
8264 2012-03-03  Yao Qi  <yao@codesourcery.com>
8265
8266         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8267         (agent_capability_check, agent_capability_invalidate): New.
8268         (symbol_list): New array element.
8269         * common/agent.h (enum agent_capa): New.
8270         * target.c (target_pre_inferior): Call agent_capability_invalidate.
8271
8272 2012-03-03  Yao Qi  <yao@codesourcery.com>
8273
8274         * target.h (struct target_ops) <to_use_agent>: New field.
8275         (struct target_ops) <to_can_use_agent>: New field.
8276         (target_use_agent, target_can_use_agent): New macro.
8277         * target.c (update_current_target): Update.
8278         * remote.c: New enum `PACKET_QAgent'.
8279         (remote_protocol_features): Add a new element.
8280         (remote_use_agent, remote_can_use_agent): New.
8281         (init_remote_ops): Initialize field `can_use_agent' with
8282         remote_can_use_agent.  Intiailize field `use_agent' with
8283         remote_use_agent.
8284         * common/agent.c (use_agent): New global.
8285         * common/agent.h: Declare it.
8286         * tracepoint.c (info_static_tracepoint_markers_command): Add
8287         comment.
8288         * Makefile.in (SFILES): Add common/agent.c and agent.c.
8289         (COMMON_OBS): Add common/agent.o and agent.o
8290         (common-agent.o): New rule.
8291         * agent.c: New.
8292
8293 2012-03-03  Yao Qi  <yao@codesourcery.com>
8294
8295         * common/agent.c: New.
8296         * common/agent.h: New.
8297         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8298         AC_CHECK_HEADERS.
8299         * configure, configh.in: Regenerated.
8300
8301 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
8302
8303         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8304         unless it exists for this architecture.
8305
8306 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8307
8308         * language.h (struct language_defn): New "method" la_read_var_value.
8309         * findvar.c: #include "language.h".
8310         (default_read_var_value): Renames read_var_value.  Rewrite
8311         function description.
8312         (read_var_value): New function.
8313         * value.h (default_read_var_value): Add prototype.
8314         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8315         New functions.
8316         (ada_language_defn): Add entry for la_read_var_value.
8317         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8318         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8319         language_defn structures to add entry for new la_read_var_value
8320         field.
8321
8322 2012-03-02  Tom Tromey  <tromey@redhat.com>
8323             Pedro Alves  <palves@redhat.com>
8324
8325         PR breakpoints/13776:
8326         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8327         breakpoints.
8328         (delete_longjmp_breakpoint_at_next_stop): New.
8329         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8330         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8331         before deleting the inferior.  Add comments.
8332         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8333         breakpoints immediately, but only on next stop.  Move that code
8334         next to where we mark other breakpoints for deletion.
8335
8336 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8337
8338         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8339         marker.
8340         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8341         violation.
8342
8343 2012-03-02  Pedro Alves  <palves@redhat.com>
8344
8345         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8346
8347 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8348
8349         Fix -Wmissing-prototypes build.
8350         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8351         * remote-sim.c (gdbsim_has_all_memory): Likewise.
8352         (gdbsim_has_memory): Likewise.
8353
8354 2012-03-02  Yao Qi  <yao@codesourcery.com>
8355
8356         Fix -Wmissing-prototypes build.
8357         * charset.c (phony_iconv_open): Make static.
8358         (phony_iconv_close, phony_iconv): Likewise.
8359         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8360         * i386-windows-nat.c (_initialize_i386_windows_nat): New
8361         prototype.
8362         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8363         * ser-mingw.c (create_select_thread): Make static.
8364         * windows-termcap.c (tgetent): New prototype.
8365         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8366
8367 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
8368
8369         Fix -Wmissing-prototypes build.
8370         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8371         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8372         (_initialize_loadable): New prototypes.
8373
8374 2012-03-02  Doug Evans  <dje@google.com>
8375
8376         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8377         abbrev table, read_comp_unit will do it.
8378
8379 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8380
8381         Fix -Wmissing-prototypes build.
8382         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8383         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8384         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8385         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8386         (_initialize_arm_symbian_tdep): New prototype.
8387         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8388         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8389         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8390         static.
8391         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8392         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8393         prototype.
8394         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8395         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8396         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8397         static.
8398         * moxie-tdep.c (moxie_process_record): Likewise.
8399         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8400         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8401         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8402         (_initialize_rl78_tdep): New prototype.
8403         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8404         (_initialize_rx_tdep): New prototype.
8405         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8406         (_initialize_darwin_solib): New prototype.
8407         * solib-spu.c: Include solib-spu.h.
8408         (_initialize_spu_solib): New prototype.
8409         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8410         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8411         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8412         (tic6x_software_single_step): Make it static.
8413         (_initialize_tic6x_tdep): New prototype.
8414
8415 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8416
8417         Fix -Wmissing-prototypes build.
8418         * cris-tdep.c (cris_can_use_hardware_watchpoint)
8419         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8420
8421 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8422
8423         Fix -Wmissing-prototypes build.
8424         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8425         (frv_have_stopped_data_address): Remove.
8426
8427 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8428
8429         Fix -Wmissing-prototypes build.
8430         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8431         * sh-tdep.c: Include sh64-tdep.h.
8432         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8433         * sh64-tdep.c: Include sh64-tdep.h.
8434         * sh64-tdep.h: New file.
8435
8436 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
8437
8438         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8439
8440 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8441
8442         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8443         sp_regnum once the gdbarch_init_osabi hook has been called.
8444
8445 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8446
8447         * mips-tdep.c (mips32_bc1_pc): New function.
8448         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8449         BPOSGE32 and BPOSGE64 instructions.
8450         (deal_with_atomic_sequence): Likewise.
8451         (mips32_instruction_has_delay_slot): Likewise.
8452
8453 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
8454             Chris Dearman  <chris@mips.com>
8455             Maciej W. Rozycki  <macro@codesourcery.com>
8456             Joseph Myers  <joseph@codesourcery.com>
8457
8458         * features/mips-dsp.xml: New file.
8459         * features/mips64-dsp.xml: New file.
8460         * features/mips-dsp-linux.xml: New file.
8461         * features/mips64-dsp-linux.xml: New file.
8462         * features/Makefile (WHICH): Add mips-dsp-linux and
8463         mips64-dsp-linux.
8464         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8465         * features/mips-dsp-linux.c: New file.
8466         * features/mips64-dsp-linux.c: New file.
8467         * regformats/mips-dsp-linux.dat: New file.
8468         * regformats/mips64-dsp-linux.dat: New file.
8469         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8470         registers.
8471         (mips64_linux_register_addr): Likewise.
8472         (mips64_linux_regsets_fetch_registers): Likewise.
8473         (mips64_linux_regsets_store_registers): Likewise.
8474         (mips64_linux_fetch_registers): Update call to
8475         mips64_linux_regsets_fetch_registers.
8476         (mips64_linux_store_registers): Update call to
8477         mips64_linux_regsets_store_registers.
8478         (mips_linux_read_description): Probe for DSP registers.
8479         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8480         and initialize_tdesc_mips64_dsp_linux.
8481         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8482         Remove padding of no longer used embedded register slots.
8483         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8484         (MIPS_RESTART_REGNUM): Redefine enum value.
8485         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8486         strings.
8487         (mips_tx39_reg_names): Likewise.
8488         (mips_linux_reg_names): New array of register names for Linux
8489         targets.
8490         (mips_register_name): Check for a null pointer in
8491         mips_processor_reg_names and return an empty string.
8492         (mips_register_type): Exclude embedded registers for the IRIX
8493         and Linux ABIs.
8494         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
8495         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
8496         DSP registers.
8497         (mips_stab_reg_to_regnum): Handle DSP accumulators.
8498         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8499         (mips_gdbarch_init): Likewise.  Initialize internal register
8500         indices for the Linux ABI.  Use dynamic numbers to refer to
8501         registers, as applicable, while parsing the target description.
8502         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8503
8504 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8505
8506         * frame.h (read_frame_register_unsigned): Fix typo in function
8507         description.
8508
8509 2012-03-01  Pedro Alves  <palves@redhat.com>
8510
8511         * jit-reader.in [!__cplusplus]
8512         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8513
8514 2012-03-01  Pedro Alves  <palves@redhat.com>
8515
8516         * configure.ac (build_warnings): Add -Wmissing-prototypes.
8517         * configure: Regenerate.
8518
8519 2012-03-01  Pedro Alves  <palves@redhat.com>
8520
8521         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8522         * breakpoint.c (create_exception_master_breakpoint, trace_command)
8523         (ftrace_command, strace_command): Make static.
8524         * d-lang.c (_initialize_d_language): Declare.
8525         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8526         * dwarf2loc.c (_initialize_dwarf2loc):
8527         * dwarf2read.c (process_psymtab_comp_unit): Make static.
8528         * exec.c (exec_get_section_table): Make static.
8529         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8530         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8531         * inferior.c (remove_inferior_command, add_inferior_command)
8532         (clone_inferior_command): Make static.
8533         * linux-nat.c (linux_nat_thread_address_space)
8534         (linux_nat_core_of_thread): Make static.
8535         * linux-tdep.c (_initialize_linux_tdep): Declare.
8536         * objc-lang.c (_initialize_objc_lang): Declare.
8537         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8538         Make static.
8539         (_initialize_opencl_language): Declare.
8540         * record.c (_initialize_record): Declare.
8541         * remote.c (demand_private_info, remote_get_tib_address)
8542         (remote_supports_cond_tracepoints)
8543         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8544         Make static.
8545         * skip.c (_initialize_step_skip): Declare.
8546         * symtab.c (skip_prologue_using_lineinfo): Make static.
8547         * tracepoint.c (delete_trace_state_variable)
8548         (trace_variable_command, delete_trace_variable_command)
8549         (get_uploaded_tsv, find_matching_tracepoint_location)
8550         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8551         Make static.
8552         * value.c (pack_unsigned_long): Make static.
8553         * varobj.c (varobj_ensure_python_env): Make static.
8554         * windows-tdep.c (_initialize_windows_tdep): Declare.
8555         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8556
8557 2012-03-01  Pedro Alves  <palves@redhat.com>
8558
8559         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
8560         gdbarch parameter.
8561         (linux_init_abi): Install it as has_shared_address_space gdbarch
8562         callback.
8563
8564 2012-03-01  Pedro Alves  <palves@redhat.com>
8565
8566         * observer.c (observer_test_first_notification_function)
8567         (observer_test_second_notification_function)
8568         (observer_test_third_notification_function): Add declarations.
8569
8570 2012-03-01  Pedro Alves  <palves@redhat.com>
8571
8572         * common/signals.c (default_target_signal_to_host)
8573         (default_target_signal_from_host): Move ...
8574         * arch-utils.c: ... here.
8575         * arch-utils.h (default_target_signal_to_host)
8576         (default_target_signal_from_host): Declare.
8577
8578         * common/signals.c (target_signal_from_command): Move ...
8579         * infrun.c: ... here.
8580         * inferior.h (target_signal_from_command): Declare.
8581         * target.h (target_signal_from_command)
8582         (default_target_signal_from_host, default_target_signal_to_host):
8583         Delete declarations.
8584
8585         * common/signals.c (_initialize_signals): Delete.
8586
8587 2012-03-01  Pedro Alves  <palves@redhat.com>
8588
8589         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8590         both __cplusplus and !__cplusplus.
8591
8592 2012-03-01  Pedro Alves  <palves@redhat.com>
8593
8594         * psymtab.c (find_and_open_source): Delete declaration.
8595         * source.c (find_and_open_source): Move comment ...
8596         * source.h (find_and_open_source): ... to this new declaration.
8597
8598 2012-03-01  Pedro Alves  <palves@redhat.com>
8599
8600         * inline-frame.c: Include inline-frame.h.
8601
8602 2012-03-01  Pedro Alves  <palves@redhat.com>
8603
8604         * tui/tui-data.c (set_gen_win_origin): Delete.
8605         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8606         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8607
8608 2012-03-01  Pedro Alves  <palves@redhat.com>
8609
8610         * remote.c (encode_actions): Delete declaration.
8611         * tracepoint.c (encode_actions): Make extern.
8612         * tracepoint.h (encode_actions): Declare.
8613
8614 2012-03-01  Pedro Alves  <palves@redhat.com>
8615
8616         * python/py-breakpoint.c: Include python.h.
8617         * python/py-continueevent.c (create_continue_event_object): Make
8618         static.
8619         * python/py-lazy-string.c (stpy_get_type): Make static.
8620         * python/py-newobjfileevent.c (create_new_objfile_event_object):
8621         Make static.
8622         * python/py-utils.c (unicode_to_target_python_string): Make
8623         static.
8624         * python/py-value.c: Include python.h.
8625
8626 2012-03-01  Pedro Alves  <palves@redhat.com>
8627
8628         * inferior.c (delete_threads_of_inferior): Delete.
8629
8630 2012-03-01  Pedro Alves  <palves@redhat.com>
8631
8632         Import fallback definitions from glibc.
8633
8634         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8635         ps_prochandle): Forward declare.
8636         (ps_err_e): Use glibc's comments.
8637         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8638         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8639         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8640         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8641         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8642         (struct ps_prochandle): Adjust comment.
8643
8644 2012-03-01  Pedro Alves  <palves@redhat.com>
8645
8646         * ada-lang.c (ada_modulus_from_name): Delete.
8647         * ada-lex.l (lexer_init): Make static.
8648
8649 2012-03-01  Pedro Alves  <palves@redhat.com>
8650
8651         PR gdb/13767
8652
8653         * frame.c (read_frame_register_unsigned): New.
8654         * frame.h (read_frame_register_unsigned): Declare.
8655         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8656         Handle it.
8657         (print_i387_control_word): New parameter `control_p'.  Handle it.
8658         (i387_print_float_info): Handle unavailable float registers.
8659
8660 2012-03-01  Keith Seitz  <keiths@redhat.com>
8661
8662         * linespec.c (decode_line_2): Sort the list of methods
8663         alphabetically before presenting the user with a selection
8664         menu.
8665
8666 2012-03-01  Doug Evans  <dje@google.com>
8667
8668         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8669         has_namespace_info.
8670         (dwarf2_read_abbrevs): Remove corresponding initialization.
8671
8672 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
8673
8674         * NEWS: Mention new python command class gdb.COMMAND_USER.
8675         * cli/cli-cmds.c (show_user): Print error when used on a python
8676         command.
8677         (init_cli_cmds): Update documentation strings for "show user" and
8678         "set/show max-user-call-depth" to clarify that it does not apply to
8679         python commands.
8680         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8681         error check.
8682         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8683         gdb python api.
8684         * top.c (execute_command): Only execute a user-defined command as a
8685         legacy macro if c->user_commands is set.
8686
8687 2012-03-01  Tom Tromey  <tromey@redhat.com>
8688
8689         * valprint.h (struct generic_val_print_decorations): New.
8690         (generic_val_print): Declare.
8691         * valprint.c (generic_val_print): New function.
8692         * p-valprint.c (p_decorations): New global.
8693         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8694         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8695         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8696         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8697         * m2-valprint.c (m2_decorations): New global.
8698         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8699         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8700         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8701         TYPE_CODE_ERROR>: Call generic_val_print.
8702         * f-valprint.c (f_decorations): New global.
8703         (f_val_print): Use print_function_pointer_address.
8704         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8705         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8706         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8707         generic_val_print.
8708         * c-valprint.c (c_decorations): New global.
8709         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8710         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8711         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8712         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8713         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8714         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8715         case.
8716
8717 2012-03-01  Tom Tromey  <tromey@redhat.com>
8718
8719         * valprint.c (val_print): Update.
8720         * p-valprint (pascal_val_print): Return void.
8721         * p-lang.h (pascal_val_print): Return void.
8722         * m2-valprint.c (m2_val_print): Return void.
8723         * m2-lang.h (m2_val_print): Return void.
8724         * language.h (struct language_defn) <la_val_print>: Return void.
8725         * language.c (unk_lang_val_print): Return void.
8726         * jv-valprint.c (java_val_print): Return void.
8727         * jv-lang.h (java_val_print): Return void.
8728         * f-valprint.c (f_val_print): Return void.
8729         * f-lang.h (f_val_print): Return void.
8730         * d-valprint.c (d_val_print): Return void.
8731         (dynamic_array_type): Update.
8732         * d-lang.h (d_val_print): Return void.
8733         * c-valprint.c (c_val_print): Return void.
8734         * c-lang.h (c_val_print): Return void.
8735         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8736         void.
8737         * ada-lang.h (ada_val_print): Return void.
8738
8739 2012-03-01  Tom Tromey  <tromey@redhat.com>
8740
8741         * value.h (val_print): Return void.
8742         * valprint.c (val_print): Return void.
8743
8744 2012-03-01  Tom Tromey  <tromey@redhat.com>
8745
8746         * value.h (common_val_print): Return void.
8747         * valprint.c (common_val_print): Return void.
8748
8749 2012-03-01  Tom Tromey  <tromey@redhat.com>
8750
8751         * value.h (value_print): Return void.
8752         * valprint.c (value_print): Return void.
8753         * p-valprint.c (pascal_value_print): Return void.
8754         * p-lang.h (pascal_value_print): Return void.
8755         * language.h (struct language_defn) <la_value_print>: Return
8756         void.
8757         * language.c (unk_lang_value_print): Return void.
8758         * jv-valprint.c (java_value_print): Return void.
8759         * jv-lang.h (java_value_print): Return void.
8760         * f-valprint.c (c_value_print): Don't declare.
8761         Include c-lang.h.
8762         * c-valprint.c (c_value_print): Return void.
8763         * c-lang.h (c_value_print): Return void.
8764         * ada-valprint.c (ada_value_print): Return void.
8765         * ada-lang.h (ada_value_print): Return void.
8766
8767 2012-03-01  Tom Tromey  <tromey@redhat.com>
8768
8769         * value.c (value_primitive_field): Handle virtual base classes.
8770
8771 2012-03-01  Tom Tromey  <tromey@redhat.com>
8772
8773         * gdbtypes.h (struct vbase): Remove.
8774
8775 2012-03-01  Tom Tromey  <tromey@redhat.com>
8776
8777         * c-valprint.c (print_function_pointer_address): Move...
8778         * valprint.c: ... here.  Make non-static.
8779         * m2-valprint.c (print_function_pointer_address): Remove.
8780         * valprint.h (print_function_pointer_address): Declare.
8781
8782 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8783
8784         * NEWS: Document the fact that one can provide a condition when
8785         creating an Ada exception catchpoint.
8786
8787 2012-03-01  Tom Tromey  <tromey@redhat.com>
8788
8789         * valprint.c (val_print_type_code_flags): Fix placement of
8790         trailing brace.
8791
8792 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8793
8794         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8795         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8796         environment variable before calling update-copyright.
8797
8798 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8799
8800         * gnulib/extra/update-copyright: Update to the latest from
8801         gnulib's git repository.
8802         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8803         variable to 2 instead of 1.
8804
8805 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8806
8807         * varobj.c (c_value_of_variable): Remove dead code.
8808
8809 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8810
8811         * ada-lex.p (processId): Do not modify already encoded IDs.
8812         Update function documentation.
8813
8814 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8815
8816         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8817         "name" with "struct symbol *name_sym".
8818         * ada-exp.y (write_var_or_type): Update call to
8819         ada_find_renaming_symbol.
8820         "name" with "struct symbol *name_sym". Adjust Implementation
8821         accordingly.  Adjust the function documentation.
8822
8823 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8824
8825         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8826         * ada-lang.c (ada_find_any_type): Add advance declaration.
8827         Make static.  Replace ada_find_any_symbol by
8828         ada_find_any_type_symbol.
8829         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8830         Improve function description.  Make static.
8831         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8832         Replace ada_find_any_symbol by ada_find_any_type_symbol.
8833
8834 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8835
8836         * ada-lang.c (struct tag_args): Delete.
8837         (ada_get_tsd_type): Function body moved up in source file.
8838         (ada_tag_name_1, ada_tag_name_2): Delete.
8839         (ada_get_tsd_from_tag): New function.
8840         (ada_tag_name_from_tsd): New function.
8841         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8842         to determine the tag name.
8843
8844 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8845
8846         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8847         declaration.
8848         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8849         function.
8850
8851 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8852
8853         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8854
8855 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8856
8857         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8858         full searches.
8859
8860 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8861
8862         * ada-lang.c (constrained_packed_array_type): If there is a
8863         parallel XA type, use it to determine the array index type.
8864
8865 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8866
8867         * ada-valprint.c (ada_val_print_1): If our value is a reference
8868         to an array descriptor, dereference it before converting it
8869         to a simple array.
8870
8871 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8872
8873         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8874         creating fixed value.
8875         (ada_value_ind, ada_coerce_ref, assign_component)
8876         (ada_evaluate_subexp): Remove call to unwrap_value before
8877         call to ada_to_fixed_value.
8878
8879 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8880
8881         * ada-lang.c (to_fixed_array_type): Set result's type name.
8882
8883 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8884
8885         * ada-lang.c (catch_ada_exception_command_split): Add new
8886         argument cond_string.  Add support for condition at end of
8887         "catch exception" commands.
8888         (ada_decode_exception_location): Add new argument cond_string.
8889         Update call to catch_ada_exception_command_split.
8890         (create_ada_exception_catchpoint): Add new argument cond_string.
8891         Set the breakpoint condition if needed.
8892         (catch_ada_exception_command): Update call to
8893         ada_decode_exception_location.
8894         (ada_decode_assert_location): Add function documentation.
8895         Add support for condition at end of "catch assert" command.
8896         (catch_assert_command): Update calls to ada_decode_assert_location
8897         and create_ada_exception_catchpoint.
8898
8899 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
8900
8901         Fix disp-step-syscall.exp: fork: single step over fork.
8902         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8903         (i386_linux_get_syscall_number_from_regcache): ... here, new function
8904         comment, change parameters gdbarch and ptid to regcache.  Remove
8905         parameter regcache, initialize gdbarch from regcache here.
8906         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8907         New functions.
8908         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8909         instead.
8910         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8911         'syscall'.  Make the 'int' check more strict.
8912
8913 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
8914
8915         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8916         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8917         (i386_linux_intx80_sysenter_syscall_record): ... here.
8918         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8919         Use the renamed function name.
8920
8921 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
8922
8923         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8924         * breakpoint.c (until_break_command): Likewise.
8925         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8926         * infcall.c (call_function_by_hand): Likewise.
8927         * infcmd.c (finish_forward): Likewise.
8928         * infrun.c (insert_exception_resume_breakpoint): Likewise.
8929
8930 2012-02-28  Tristan Gingold  <gingold@adacore.com>
8931
8932         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8933         avoid variable assignments inside condition.
8934
8935 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8936
8937         Fix static analysis issue found by cppcheck.
8938         * microblaze-tdep.c (microblaze_extract_return_value): Fix
8939         uninitialized BUF for size 2.
8940
8941 2012-02-27  Chris Dearman  <chris@mips.com>
8942             Nathan Froyd  <froydnj@codesourcery.com>
8943             Maciej W. Rozycki  <macro@codesourcery.com>
8944
8945         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8946         (mips16_instruction_has_delay_slot): Likewise.
8947         (mips_segment_boundary): Likewise.
8948         (mips_adjust_breakpoint_address): Likewise.
8949         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8950
8951 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
8952             Maciej W. Rozycki  <macro@codesourcery.com>
8953
8954         * infrun.c (handle_inferior_event): Don't proceed through
8955         shared library trampolines if stepping at the machine
8956         instruction level.
8957
8958 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
8959
8960         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8961         too.
8962
8963 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
8964
8965         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8966         (sh_stub_unwind_sniffer): New functions.
8967         (sh_stub_unwind): New variable.
8968         (sh_gdbarch_init): Wire everything.
8969
8970 2012-02-27  Pedro Alves  <palves@redhat.com>
8971
8972         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8973         (linux_nat_post_attach_wait): Adjust to use
8974         linux_proc_pid_is_stopped.
8975         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8976         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8977         based on pid_is_stopped from both linux-nat.c and
8978         gdbserver/linux-low.c, and renamed.
8979
8980 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
8981
8982         * remote.c (remote_watchpoint_addr_within_range): New function.
8983         (init_remote_ops): Use it.
8984
8985 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
8986
8987         * target.h (target_watchpoint_addr_within_range): Document macro.
8988
8989 2012-02-24  Pedro Alves  <palves@redhat.com>
8990
8991         * stack.c (set_last_displayed_sal): Issue internal_error instead
8992         of warning, and issue it after clearing the last displayed sal.
8993
8994 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
8995             Pedro Alves  <palves@redhat.com>
8996
8997         * breakpoint.c (until_break_command): Install breakpoints after
8998         all frame manipulations.
8999
9000 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9001
9002         * remote.c (remote_supports_cond_breakpoints): New forward
9003         declaration.
9004         (remote_add_target_side_condition): New function.
9005         (remote_insert_breakpoint): Add target-side breakpoint
9006         conditional if supported.
9007         (remote_insert_hw_breakpoint): Likewise.
9008         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9009         hook.
9010
9011         * target.c (update_current_target): Inherit
9012         to_supports_evaluation_of_breakpoint_conditions.
9013         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9014
9015         * target.h (struct target_ops)
9016         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9017         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9018
9019         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9020         (condition_evaluation_both, condition_evaluation_auto,
9021         condition_evaluation_host, condition_evaluation_target,
9022         condition_evaluation_enums, condition_evaluation_mode_1,
9023         condition_evaluation_mode): New static globals.
9024         (translate_condition_evaluation_mode): New function.
9025         (breakpoint_condition_evaluation_mode): New function.
9026         (gdb_evaluates_breakpoint_condition_p): New function.
9027         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9028         (mark_breakpoint_modified): New function.
9029         (mark_breakpoint_location_modified): New function.
9030         (set_condition_evaluation_mode): New function.
9031         (show_condition_evaluation_mode): New function.
9032         (bp_location_compare_addrs): New function.
9033         (get_first_location_gte_addr): New helper function.
9034         (set_breakpoint_condition): Free condition bytecode if locations
9035         has become unconditional.  Call mark_breakpoint_modified (...).
9036         (condition_command): Call update_global_location_list (1) for
9037         breakpoints.
9038         (breakpoint_xfer_memory): Use is_breakpoint (...).
9039         (is_breakpoint): New function.
9040         (parse_cond_to_aexpr): New function.
9041         (build_target_condition_list): New function.
9042         (insert_bp_location): Handle target-side conditional
9043         breakpoints and call build_target_condition_list (...).
9044         (update_inserted_breakpoint_locations): New function.
9045         (insert_breakpoint_locations): Handle target-side conditional
9046         breakpoints.
9047         (bpstat_check_breakpoint_conditions): Add comment.
9048         (bp_condition_evaluator): New function.
9049         (bp_location_condition_evaluator): New function.
9050         (print_breakpoint_location): Print information on where the condition
9051         will be evaluated.
9052         (print_one_breakpoint_location): Likewise.
9053         (init_bp_location): Call mark_breakpoint_location_modified (...) for
9054         breakpoint location.
9055         (force_breakpoint_reinsertion): New functions.
9056         (update_global_location_list): Handle target-side breakpoint
9057         conditions.
9058         Reinsert locations that are already inserted if conditions have
9059         changed.
9060         (bp_location_dtor): Free agent expression bytecode.
9061         (disable_breakpoint): Call mark_breakpoint_modified (...).
9062         Call update_global_location_list (...) with parameter 1 for breakpoints.
9063         (disable_command): Call mark_breakpoint_location_modified (...).
9064         Call update_global_location_list (...) with parameter 1 for breakpoints.
9065         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9066         (enable_command): mark_breakpoint_location_modified (...).
9067         (_initialize_breakpoint): Update documentation and add
9068         condition-evaluation breakpoint subcommand.
9069
9070         * breakpoint.h: Include ax.h.
9071         (condition_list): New data structure.
9072         (condition_status): New enum.
9073         (bp_target_info) <cond_list>: New field.
9074         (bp_location) <condition_changed, cond_bytecode>: New fields.
9075         (is_breakpoint): New prototype.
9076
9077 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9078
9079         * remote.c (remote_state) <cond_breakpoints>: New field.
9080         (PACKET_ConditionalBreakpoints): New enum.
9081         (remote_cond_breakpoint_feature): New function.
9082         (remote_protocol_features): Add new ConditionalBreakpoints entry.
9083         (remote_supports_cond_breakpoints): New function.
9084         (_initialize_remote): Add new packet configuration for
9085         target-side conditional breakpoints.
9086
9087 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9088
9089         * NEWS: Mention target-side conditional breakpoint support,
9090         new condition-evaluation breakpoint subcommand and remote
9091         packet extensions.
9092
9093 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9094
9095         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9096         number.
9097
9098 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9099
9100         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9101         (after_prologue): Remove.
9102
9103 2012-02-23  Tom Tromey  <tromey@redhat.com>
9104
9105         * jv-valprint.c (java_val_print): Remove dead code.
9106
9107 2012-02-23  Tristan Gingold  <gingold@adacore.com>
9108
9109         * ada-tasks.c (struct ada_tasks_inferior_data): Add
9110         known_tasks_element and known_tasks_length fields.
9111         (read_known_tasks_array): Change argument type.  Use pointer type
9112         and number of elements from DATA.  Adjust.
9113         (read_known_tasks_list): Likewise.
9114         (get_known_tasks_addr): Remove.
9115         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9116         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
9117         type and array length.  Merge former get_known_tasks_addr code.
9118
9119 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
9120
9121         PR backtrace/13716
9122         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9123         it after set_momentary_breakpoint.
9124
9125 2012-02-22  Sterling Augustine  <saugustine@google.com>
9126
9127         PR 13689:
9128         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9129
9130 2012-02-22  Gary Benson  <gbenson@redhat.com>
9131
9132         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9133         (find_slot_in_mapped_hash): Likewise.
9134
9135 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9136
9137         PR build/13638
9138         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9139         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9140         * configure: Regenerate.
9141
9142 2012-02-21  Tristan Gingold  <gingold@adacore.com>
9143             Pedro Alves  <palves@redhat.com>
9144
9145         * ia64-tdep.c: Do not include libunwind-ia64.h.
9146         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9147         Include libunwind-ia64.h instead of libunwind.h.
9148         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9149         for libunwind.h existence.
9150         * configure, config.in: Regenerate.
9151
9152 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9153
9154         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9155         instead of value_rtti_target_type.
9156         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9157         instead of value_rtti_target_type.
9158         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9159         value_rtti_target_type.
9160         * valops.c (value_ind): Extract function readjust_indirect_value_type.
9161         (value_rtti_target_type): Rename to ...
9162         (value_rtti_indirect_type): ... here and make it indirect.  Update
9163         function comment.
9164         * value.c (readjust_indirect_value_type): New function.
9165         (coerce_ref): Support for enclosing type setting for references
9166         with readjust_indirect_value_type.
9167         * value.h (readjust_value_type): New declaration.
9168         (value_rtti_target_type): Rename to ...
9169         (value_rtti_indirect_type): ... here.
9170
9171 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9172
9173         * MAINTAINERS (Write After Approval): Add myself to the list.
9174
9175 2012-02-20  Doug Evans  <dje@google.com>
9176
9177         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9178         Rename objfile_p_char parameter to objfilep.
9179         (build_objfile_section_table): Result is now void.  All callers
9180         updated.
9181         * objfiles.h (struct objfile): Tweak comments, whitespace.
9182         (build_objfile_section_table): Update.
9183
9184         * elfread.c (elf_symfile_segments): Fix warning text.
9185
9186 2012-02-20  Tom Tromey  <tromey@redhat.com>
9187
9188         PR gdb/13498:
9189         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9190         particular set of file names once.
9191         (dw2_map_symbol_filenames): Likewise.
9192
9193 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9194
9195         Code cleanup.
9196         * main.c (write_files): Remove the declaration.
9197         (external_editor_command): Move the declaration ...
9198         [GDBTK] (external_editor_command): ... here.  Fix the comment.
9199
9200 2012-02-20  Tom Tromey  <tromey@redhat.com>
9201
9202         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9203         extraneous block.
9204
9205 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9206
9207         * darwin-nat.h (enum darwin_msg_state): Add comments.
9208
9209 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9210
9211         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9212         value.
9213
9214 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
9215
9216         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9217         between function description and implementation.
9218
9219 2012-02-17  Tom Tromey  <tromey@redhat.com>
9220
9221         PR python/12070:
9222         * python/py-event.c (event_object_getset): New global.
9223         (event_object_type): Reference it.
9224         * python/py-type.c (field_object_getset): New global.
9225         (field_object_type): Reference it.
9226         * python/python-internal.h (gdb_py_generic_dict): Declare.
9227         * python/py-utils.c (gdb_py_generic_dict): New function.
9228
9229 2012-02-17  Tristan Gingold  <gingold@adacore.com>
9230
9231         * solib-darwin.c (darwin_current_sos): Check magic and filetype
9232
9233 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9234
9235         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9236         TYPE_CALLING_CONVENTION annotation.
9237
9238 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
9239
9240         * MAINTAINERS: Add rx to target ISA section.
9241         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9242         (ALLDEPFILES): Add rx-tdep.c.
9243
9244 2012-02-16  Tom Tromey  <tromey@redhat.com>
9245
9246         * symfile.c (symbol_file_add_main_1): Use inferior's
9247         symfile_flags.
9248         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9249         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9250         inferior.
9251         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9252         inferior.
9253         (follow_exec): Use inferior's symfile_flags.
9254         * inferior.h (struct inferior) <symfile_flags>: New field.
9255
9256 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
9257
9258         PR gdb/9734:
9259         * remote-sim.c (gdbsim_create_inferior): Call error() when
9260         sim_create_inferior() fails.
9261
9262 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
9263
9264         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9265
9266 2012-02-16  Tom Tromey  <tromey@redhat.com>
9267
9268         PR c++/13653:
9269         * thread.c (struct current_thread_cleanup) <was_removable>: New
9270         field.
9271         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9272         (make_cleanup_restore_current_thread): Initialize new field.
9273
9274 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
9275
9276         * MAINTAINERS: Add rl78 to target ISA section.
9277         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9278         (ALLDEPFILES): Add rl78-tdep.c.
9279         * NEWS: Mention rl78 as a new target.
9280
9281 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
9282
9283         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9284         data.
9285         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9286
9287 2012-02-15  Tom Tromey  <tromey@redhat.com>
9288
9289         PR gdb/12659:
9290         * infcmd.c (registers_info): Print just the current register's
9291         name.
9292
9293 2012-02-15  Tom Tromey  <tromey@redhat.com>
9294
9295         * python/py-symbol.c (sympy_value): Use _().
9296
9297 2012-02-15  Pedro Alves  <palves@redhat.com>
9298
9299         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9300         output to be like native targets'.
9301         (remote_pid_to_str): Special case the null ptid.
9302
9303 2012-02-14  Stan Shebs  <stan@codesourcery.com>
9304
9305         * NEWS: Mention enable count command.
9306         * breakpoint.h (struct breakpoint): New field enable_count.
9307         * breakpoint.c (enable_breakpoint_disp): Add count argument.
9308         (enable_breakpoint): Add arg to call.
9309         (struct disp_data): New struct.
9310         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9311         (do_map_enable_once_breakpoint): Create a struct and pass it.
9312         (do_map_enable_delete_breakpoint): Ditto.
9313         (do_map_enable_count_breakpoint): New function.
9314         (enable_count_command): New function.
9315         (bpstat_stop_status): Decrement enable_count.
9316         (print_one_breakpoint_location): Report enable count.
9317         (_initialize_breakpoint): Add enable count command.
9318
9319 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9320
9321         * rl78-tdep.c (reggroups.h): Include.
9322         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9323         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9324         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9325         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9326         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9327         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9328         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9329         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9330         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9331         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9332         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9333         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9334         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9335         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9336         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9337         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9338         beginning of register list.
9339         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9340         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9341         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9342         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9343         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9344         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9345         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9346         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9347         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9348         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9349         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9350         the pseudo registers.  Rearrange other pseudo registers too so
9351         that the bank registers appear at the end.
9352         (rl78_register_type): Account for the fact that the byte sized
9353         bank registers are now pseudo-registers.
9354         (rl78_register_name): Rearrange the register name array.  Make
9355         initial set of raw banked registers inaccessible.
9356         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9357         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9358         case for copying bytes back and forth between raw and pseudo
9359         versions of the banked registers.  Update other cases to reflect
9360         the changed names.
9361         (rl78_return_value): Update to account for changed names of
9362         raw registers.
9363         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9364         rl78_register_sim_regno().
9365
9366 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9367
9368         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9369         the name parameter being passed to find_pc_partial_function().
9370
9371 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9372
9373         * MAINTAINERS: Step down from being ia64 target maintainer.
9374
9375 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9376
9377         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9378         compilation warning.
9379
9380 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9381
9382         Fix crash on loaded shlibs without loaded exec_bfd.
9383         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9384         (set_section_command): Replace exec_bfd by p->bfd.
9385
9386 2012-02-10  Tom Tromey  <tromey@redhat.com>
9387
9388         * linespec.c (decode_line_internal): Skip symtabs_from_filename
9389         when we have a C++ qualified name.
9390
9391 2012-02-10  Pedro Alves  <palves@redhat.com>
9392
9393         * inferior.c (inferior_pid_to_str): New.
9394         (print_inferior, inferior_command): Use it.
9395
9396 2012-02-10  Pedro Alves  <palves@redhat.com>
9397
9398         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9399         the test CFLAGS.
9400         * configure: Regenerate.
9401
9402 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9403
9404         * linespec.c (decode_line_internal): Fix comment correctness.
9405
9406 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
9407
9408         PR gdb/12953
9409         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9410         * amd64bsd-nat.c: Add support for debug registers (adapted from
9411         i386bsd-nat.c).
9412         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9413         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9414         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9415         (amd64bsd_dr_get_control): New functions.
9416         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9417         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9418         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9419         watchpoints initialization.
9420         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9421
9422 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9423
9424         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9425         flds_bnds.fields.
9426         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9427
9428 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9429
9430         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
9431
9432 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9433
9434         * language.h (symbol_name_cmp_ftype): Renames
9435         symbol_name_match_p_ftype.
9436         (struct language_defn)[la_get_symbol_name_cmp]: Renames
9437         la_get_symbol_name_match_p.
9438         * ada-lang.c (ada_get_symbol_name_cmp): Renames
9439         ada_get_symbol_name_match_p.  Update comment.
9440         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9441         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9442         Renames symbol_name_match_p.  Update field type.
9443         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9444         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9445         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9446         "la_get_symbol_name_cmp" in comments.
9447         * language.c: Likewise.
9448
9449 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9450
9451         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9452         %eflags offset.
9453         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9454         (amd64_sol2_gregset32_reg_offs): Likewise.
9455
9456 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9457
9458         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9459         of the returned BFD is allocated by GDB.
9460
9461 2012-02-07  Tom Tromey  <tromey@redhat.com>
9462
9463         PR python/12027:
9464         * python/python-internal.h (frame_object_type): Declare.
9465         * python/py-symbol.c (sympy_needs_frame): New function.
9466         (sympy_value): New function.
9467         (symbol_object_getset): Add "needs_frame".
9468         (symbol_object_methods): Add "value".
9469         * python/py-frame.c (frame_object_type): No longer static.
9470
9471 2012-02-07  Tom Tromey  <tromey@redhat.com>
9472
9473         PR python/13599:
9474         * python/py-symbol.c (sympy_line): New function.
9475         (symbol_object_getset): Add "line".
9476
9477 2012-02-07  Tom Tromey  <tromey@redhat.com>
9478
9479         * charset.c (find_charset_names): Check 'in' against NULL.
9480
9481 2012-02-06  Doug Evans  <dje@google.com>
9482
9483         * gdbtypes.h (struct main_type): Change type of name,tag_name,
9484         and fields.name members from char * to const char *.  All uses updated.
9485         (struct cplus_struct_type): Change type of fn_fieldlists.name member
9486         from char * to const char *.  All uses updated.
9487         (type_name_no_tag): Update.
9488         (lookup_unsigned_typename, lookup_signed_typename): Update.
9489         * gdbtypes.c (type_name_no_tag): Change result type
9490         from char * to const char *.  All callers updated.
9491         (lookup_unsigned_typename, lookup_signed_typename): Change type of
9492         name parameter from char * to const char *.
9493         * symtab.h (struct cplus_specific): Change type of demangled_name
9494         member from char * to const char *.  All uses updated.
9495         (struct general_symbol_info): Change type of name and
9496         mangled_lang.demangled_name members from char * to const char *.
9497         All uses updated.
9498         (symbol_get_demangled_name, symbol_natural_name): Update.
9499         (symbol_demangled_name, symbol_search_name): Update.
9500         * symtab.c (symbol_get_demangled_name): Change result type
9501         from char * to const char *.  All callers updated.
9502         (symbol_natural_name, symbol_demangled_name): Ditto.
9503         (symbol_search_name): Ditto.
9504         (completion_list_add_name): Change type of symname,sym_text,
9505         text,word parameters from char * to const char *.
9506         (completion_list_objc_symbol): Change type of sym_text,
9507         text,word parameters from char * to const char *.
9508         * ada-lang.c (find_struct_field): Change type of name parameter
9509         from char * to const char *.
9510         (encoded_ordered_before): Similarly for N0,N1 parameters.
9511         (old_renaming_is_invisible): Similarly for function_name parameter.
9512         (ada_type_name): Change result type from char * to const char *.
9513         All callers updated.
9514         * ada-lang.h (ada_type_name): Update.
9515         * buildsym.c (hashname): Change type of name parameter
9516         from char * to const char *.
9517         * buildsym.h (hashname): Update.
9518         * dbxread.c (end_psymtab): Change type of include_list parameter
9519         from char ** to const char **.
9520         * dwarf2read.c (determine_prefix): Change result type
9521         from char * to const char *.  All callers updated.
9522         * f-lang.c (find_common_for_function): Change type of name, funcname
9523         parameters from char * to const char *.
9524         * f-lang.c (find_common_for_function): Update.
9525         * f-valprint.c (list_all_visible_commons): Change type of funcname
9526         parameters from char * to const char *.
9527         * gdbarch.sh (static_transform_name): Change type of name parameter
9528         and result from char * to const char *.
9529         * gdbarch.c: Regenerate.
9530         * gdbarch.h: Regenerate.
9531         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9532         of name parameter from char * to const char *.
9533         * jv-lang.c (java_primitive_type_from_name): Ditto.
9534         (java_demangled_signature_length): Similarly for signature parameter.
9535         (java_demangled_signature_copy): Ditto.
9536         (java_demangle_type_signature): Ditto.
9537         * jv-lang.h (java_primitive_type_from_name): Update.
9538         (java_demangle_type_signature): Update.
9539         * objc-lang.c (specialcmp): Change type of a,b parameters
9540         from char * to const char *.
9541         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9542         from char * to const char *.  All callers updated.
9543         * p-lang.h (is_pascal_string_type): Update.
9544         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9545         of name parameter from char * to const char *.
9546         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9547         * utils.c (fprintf_symbol_filtered): Ditto.
9548         * defs.h (fprintf_symbol_filtered): Update.
9549         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9550         * stabsread.h (end_psymtab): Update.
9551         * stack.c (find_frame_funname): Change type of funname parameter
9552         from char ** to const char **.
9553         * stack.h (find_frame_funname): Update.
9554         * typeprint.c (type_print): Change type of varstring parameter
9555         from char * to const char *.
9556         * value.h (type_print): Update.
9557         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9558         from char * to const char *.  All callers updated.
9559         (xcoff_end_psymtab): Change type of include_list parameter
9560         from char ** to const char **.  All callers updated.
9561         (swap_sym): Similarly for name parameter.  All callers updated.
9562         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9563         Use xstrdup.
9564         (process_coff_symbol): Use xstrdup.
9565         * stabsread.c (stabs_method_name_from_physname): Renamed from
9566         update_method_name_from_physname.  Change result type from void
9567         to char *.  All callers updated.
9568         (read_member_functions): In has_destructor case, store name in objfile
9569         obstack instead of malloc space.  In !has_stub case, fix mem leak.
9570
9571 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
9572
9573         * configure: Rebuild.
9574         * configure.ac: Put -L../bfd and -L../libiberty at the front of
9575         LDFLAGS.
9576
9577 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
9578
9579         * configure.tgt (rl78-*-elf): New target.
9580         * rl78-tdep.c: New file.
9581
9582 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9583
9584         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9585         and continue the loop.  Add QUIT statement.
9586
9587 2012-02-03  Tom Tromey  <tromey@redhat.com>
9588
9589         PR gdb/13596:
9590         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9591         bfd_lookup_symbol_from_symtab.
9592         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9593         gdb_bfd_lookup_symbol_from_symtab.
9594
9595 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
9596
9597         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9598         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9599         symbol.  Add assertion that sym2 is never NULL.
9600
9601 2012-02-02  Doug Evans  <dje@google.com>
9602
9603         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9604         "name" parameter to const char ** from char **.  All callers updated.
9605         (find_pc_partial_function): Ditto.
9606         (cache_pc_function_name): Change type to const char * from char *.
9607         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9608         (find_pc_partial_function): Update.
9609         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9610         type of "name" parameter to const char * from char *.
9611         All uses updated.
9612         * arch-utils.c (generic_in_solib_return_trampoline): Change
9613         type of "name" parameter to const char * from char *.
9614         * arch-utils.h (generic_in_solib_return_trampoline): Update.
9615         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9616         type of "name" parameter to const char * from char *.
9617         * gdbarch.sh (in_solib_return_trampoline): Ditto.
9618         * gdbarch.c: Regenerate.
9619         * gdbarch.h: Regenerate.
9620         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9621         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9622         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9623         type of "name" parameter to const char * from char *.
9624         * skip.c (skip_function_pc): Ditto.
9625         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9626         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9627         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9628         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9629         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9630         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9631         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9632         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9633         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9634
9635 2012-02-02  Pedro Alves  <palves@redhat.com>
9636
9637         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9638         the current inferior has no execution.  Make sure the current
9639         remote process matches gdb's current inferior.
9640
9641 2012-02-02  Tom Tromey  <tromey@redhat.com>
9642
9643         PR gdb/13405:
9644         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9645         read-only memory.
9646
9647 2012-02-02  Tom Tromey  <tromey@redhat.com>
9648
9649         PR gdb/9307:
9650         * symtab.c (lookup_language_this): Set block_found.
9651
9652 2012-02-01  Tom Tromey  <tromey@redhat.com>
9653
9654         PR gdb/13431:
9655         * jit.c (struct jit_inferior_data): Rewrite.
9656         (struct jit_objfile_data): New.
9657         (get_jit_objfile_data): New function.
9658         (add_objfile_entry): Update.
9659         (jit_read_descriptor): Return int.  Replace descriptor_addr
9660         argument with inf_data.  Update.  Don't call error.
9661         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
9662         descriptor here.
9663         (jit_inferior_init): Don't look up descriptor.  Don't call error.
9664         (jit_reset_inferior_data_and_breakpoints)
9665         (jit_inferior_created_observer): Remove.
9666         (jit_inferior_exit_hook): Update.
9667         (jit_executable_changed_observer): Remove.
9668         (jit_event_handler): Update.
9669         (free_objfile_data): Reset inferior data if needed.
9670         (_initialize_jit): Update.
9671
9672 2012-02-01  Tom Tromey  <tromey@redhat.com>
9673
9674         * jit.c (bfd_open_from_target_memory): Move higher in file.
9675
9676 2012-02-01  Tristan Gingold  <gingold@adacore.com>
9677
9678         * libunwind-frame.c (libunwind_load): Display message if dlopen
9679         failed.
9680
9681 2012-02-01  Gary Benson  <gbenson@redhat.com>
9682
9683         * symtab.h (symbol_found_callback_ftype): New typedef.
9684         (iterate_over_symbols): Use the above.
9685         * symtab.c (iterate_over_symbols): Likewise.
9686         * language.h (language_defn->la_iterate_over_symbols): Likewise.
9687         * ada-lang.c (ada_iterate_over_symbols): Likewise.
9688         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9689         (iterate_name_matcher): Document return values.
9690         (collect_one_symbol): Likewise.
9691         (collect_function_symbols): Likewise.
9692         (collect_symbols): Likewise.
9693
9694 2012-02-01  Tom Tromey  <tromey@redhat.com>
9695
9696         * ada-lang.c (resolve_subexp): Update.
9697         (ada_lookup_symbol_list): Add 'full_search' argument.
9698         (ada_iterate_over_symbols): Pass 0 as full_search argument to
9699         ada_lookup_symbol_list.
9700         (ada_lookup_encoded_symbol): Update.
9701         (get_var_value): Update.
9702         * ada-exp.y (block_lookup): Update.
9703         (write_var_or_type): Update.
9704         (write_name_assoc): Update.
9705         * ada-lang.h (ada_lookup_symbol_list): Update.
9706
9707 2012-01-31  Tom Tromey  <tromey@redhat.com>
9708
9709         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9710         comment.
9711
9712 2012-01-31  Doug Evans  <dje@google.com>
9713
9714         * symtab.h: Remove outdated comment.
9715         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9716
9717 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
9718
9719         Fix build error in Darwin port.
9720         * i386-darwin-nat.c: Include i386-nat.h.
9721
9722 2012-01-30  Tom Tromey  <tromey@redhat.com>
9723
9724         PR breakpoints/13568:
9725         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9726         argument.  Check for recursive includes.
9727         (dwarf_decode_macros): Create an include hash.
9728
9729 2012-01-30  Michael Eager  <eager@eagercon.com>
9730
9731         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9732         * ppc-linux-tdep.c: Include glibc-tdep.h.
9733         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9734         (powerpc_linux_in_plt_stub): New function.
9735         (powerpc_linux_in_dynsym_resolve_code): New function.
9736         (ppc_skip_trampoline_code): New function.
9737         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9738         Use glibc_skip_solib_resolver.
9739
9740 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9741
9742         Code cleanup: Make 1440 bytes of data segment read-only.
9743         * arch-utils.c (endian_enum): Make it const char *const [].
9744         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9745         Likewise.
9746         * breakpoint.c (always_inserted_enums): Likewise.
9747         * cli/cli-cmds.c (script_ext_enums): Likewise.
9748         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9749         enumlist parameter const char *const *.
9750         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9751         const char *const *.
9752         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9753         parameter const char *const *.
9754         * cris-tdep.c (cris_modes): Make it const char *const [].
9755         * filesystem.c (target_file_system_kinds): Likewise.
9756         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9757         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9758         (can_use_displaced_stepping_enum, scheduler_enums)
9759         (exec_direction_names): Likewise.
9760         * language.c (_initialize_language): Make the type_or_range_names and
9761         case_sensitive_names variables const char *const [].
9762         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9763         * python/python.c (python_excp_enums): Likewise.
9764         * remote.c (interrupt_sequence_modes): Likewise.
9765         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9766         * serial.c (logbase_enums): Likewise.
9767         * sh-tdep.c (sh_cc_enum): Likewise.
9768         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9769         Likewise.
9770         * symtab.c (multiple_symbols_modes): Likewise.
9771         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9772         Likewise.
9773         * utils.c (internal_problem_modes): Likewise.
9774
9775 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9776
9777         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9778         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9779         result.
9780
9781 2012-01-27  Doug Evans  <dje@google.com>
9782
9783         * configure.ac (with_python): Fix absolute path handling for win32.
9784         * configure: Regenerate.
9785
9786 2012-01-26  Doug Evans  <dje@google.com>
9787
9788         * symtab.c: Whitespace cleanup, no code changes.
9789
9790         * symtab.c (lookup_symbol_in_language): Improve comment.
9791         (lookup_symbol_aux): Fix comment.
9792
9793         * psymtab.c (add_psymbol_to_list): Result is now "void".
9794         * psympriv.h (add_psymbol_to_list): Update.
9795
9796         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9797
9798 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9799
9800         Do not open script filenames twice.
9801         * cli/cli-cmds.c (source_script_from_stream): Pass to
9802         source_python_script also STREAM.
9803         * python/py-auto-load.c (source_section_scripts): Pass to
9804         source_python_script_for_objfile also STREAM.
9805         (auto_load_objfile_script): Pass to source_python_script_for_objfile
9806         also INPUT.
9807         * python/python-internal.h (source_python_script_for_objfile): New
9808         parameter file, rename parameter file to filename.
9809         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9810         instead if !_WIN32.  Update the function comment.
9811         (source_python_script, source_python_script_for_objfile)
9812         (source_python_script): New parameter file, rename parameter file to
9813         filename.  Pass FILENAME to python_run_simple_file.
9814         * python/python.h (source_python_script): New parameter file, rename
9815         parameter file to filename.
9816
9817 2012-01-26  Pedro Alves  <palves@redhat.com>
9818
9819         * corelow.c (core_has_fake_pid): Delete.
9820         (core_close): Delete references to `core_has_fake_pid'.
9821         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9822         (core_open): Delete references to `core_has_fake_pid'.
9823         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9824         the removed global.
9825
9826 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
9827
9828         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9829         Remove language parameter from name_matcher.  Adjust the comment.
9830         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9831         Remove language parameter.
9832         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9833         * linespec.c (iterate_name_matcher): Likewise.
9834         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9835         name_matcher.  Adjust call accordingly.
9836         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9837         (maintenance_check_symtabs): Adjust type of parameter "fun".
9838         * psymtab.h (maintenance_check_symtabs): Likewise.
9839
9840 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
9841
9842         * language.h (symbol_name_match_p_ftype): New typedef.
9843         (struct language_defn): Replace field la_symbol_name_compare
9844         by la_get_symbol_name_match_p.
9845         * ada-lang.c (ada_get_symbol_name_match_p): New function.
9846         (ada_language_defn): Use it.
9847         * linespec.c (struct symbol_matcher_data): New type.
9848         (iterate_name_matcher): Rewrite.
9849         (iterate_over_all_matching_symtabs): Pass a pointer to
9850         a symbol_matcher_data struct to expand_symtabs_matching
9851         instead of just the lookup name.
9852         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9853         opencl-lang.c, p-lang.c, language.c: Delete field
9854         la_symbol_name_compare, and replace by NULL for new field
9855         la_get_symbol_name_match_p.
9856         * symfile.h (struct quick_symbol_functions): Update comment.
9857
9858 2012-01-25  Tom Tromey  <tromey@redhat.com>
9859
9860         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9861         dereferencing.
9862
9863 2012-01-24  Tom Tromey  <tromey@redhat.com>
9864
9865         PR symtab/12406:
9866         * solib.c (update_solib_list): Update the program space's
9867         added_solibs and deleted_solibs fields.
9868         * progspace.h (struct program_space) <added_solibs,
9869         deleted_solibs>: New fields.
9870         (clear_program_space_solib_cache): Declare.
9871         * progspace.c (release_program_space): Call
9872         clear_program_space_solib_cache.
9873         (clear_program_space_solib_cache): New function.
9874         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9875         bpstat_stop_status.  Use handle_solib_event.
9876         * breakpoint.c: Include gdb_regex.h.
9877         (print_solib_event): New function.
9878         (bpstat_print): Use print_solib_event.
9879         (bpstat_stop_status): Add special case for bp_shlib_event.
9880         (handle_solib_event): New function.
9881         (bpstat_what): Use handle_solib_event.
9882         (struct solib_catchpoint): New.
9883         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9884         (breakpoint_hit_catch_solib, check_status_catch_solib)
9885         (print_it_catch_solib, print_one_catch_solib)
9886         (print_mention_catch_solib, print_recreate_catch_solib): New
9887         functions.
9888         (catch_solib_breakpoint_ops): New global.
9889         (catch_load_or_unload, catch_load_command_1)
9890         (catch_unload_command_1): New functions.
9891         (internal_bkpt_check_status): Add special case for
9892         bp_shlib_event.
9893         (internal_bkpt_print_it): Use print_solib_event.
9894         (initialize_breakpoint_ops): Initialize
9895         catch_solib_breakpoint_ops.
9896         (_initialize_breakpoint): Register "catch load" and "catch
9897         unload".
9898         * breakpoint.h (handle_solib_event): Declare.
9899         * NEWS: Add entry for "catch load" and "catch unload".
9900
9901 2012-01-24  Tom Tromey  <tromey@redhat.com>
9902
9903         * ada-lang.c: Include gdb_vecs.h.
9904         * charset.c: Include gdb_vecs.h.
9905         * tracepoint.h: Include gdb_vecs.h.
9906         * gdb_vecs.h: New file.
9907
9908 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
9909
9910         * breakpoint.c (breakpoint_hit_catch_fork)
9911         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9912         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9913         * infrun.c (inferior_has_forked, inferior_has_vforked)
9914         (inferior_has_execd, inferior_has_called_syscall): Delete.
9915         (handle_syscall_event): Get syscall_number from the execution
9916         control state's wait status.
9917         (wait_for_inferior): Don't clear syscall_number.
9918
9919 2012-01-24  Pedro Alves  <palves@redhat.com>
9920
9921         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9922         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9923         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9924         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9925         `ws' parameter.
9926         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
9927         false for events other than TARGET_SIGNAL_TRAP.
9928         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9929         Add `ws' parameter.
9930         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
9931         events other than TARGET_SIGNAL_TRAP.
9932         (tracepoint_breakpoint_hit): Add `ws' parameter.
9933         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9934         parameter.
9935         (bpstat_stop_status): Same.
9936         (pc_at_non_inline_function): Same.
9937         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9938         to pass the current event's waitstatus to bpstat_stop_status
9939         and pc_at_non_inline_function.
9940
9941 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9942
9943         Code cleanup.
9944         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9945         Update the function comment for it.
9946         (source_script_with_search): Call make_cleanup_fclose for STREAM.
9947         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9948         for STREAM.
9949
9950 2012-01-24  Pedro Alves  <palves@redhat.com>
9951
9952         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9953         outside `bs->stop' block.
9954         (bpstat_what): Rework bp_shlib_event handling.
9955         (internal_bkpt_check_status): If the breakpoint is a
9956         bp_shlib_event, then set bs->stop and bs->print if
9957         stop_on_solib_events is set.
9958
9959 2012-01-24  Gary Benson  <gbenson@redhat.com>
9960
9961         Delete #if 0'd out code.
9962         * stack.c (print_frame_label_vars): Remove.
9963         (catch_info): Likewise.
9964         (_initialize_stack): Remove "info catch" command.
9965         * NEWS: Mention the above.
9966
9967 2012-01-24  Pedro Alves  <palves@redhat.com>
9968
9969         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
9970         it.
9971         (remote_notice_new_inferior): If the remote end doesn't support
9972         the multiprocess extensions, then the PID is fake.
9973         (add_current_inferior_and_thread): New.
9974         (remote_start_remote): Use it.
9975         (extended_remote_attach_1): Adjust.
9976         (extended_remote_create_inferior_1): Use
9977         add_current_inferior_and_thread.
9978
9979 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9980
9981         Fix watchpoints to be specific for each inferior.
9982         * breakpoint.c (watchpoint_in_thread_scope): Verify also
9983         current_program_space.
9984         * i386-nat.c (i386_inferior_data_cleanup): New.
9985         (i386_inferior_data_get): Replace variable inf_data_local by an
9986         inferior_data call.
9987         (i386_use_watchpoints): Initialize i386_inferior_data.
9988         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9989         specific iterate_over_lwps.
9990
9991 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9992
9993         Fix watchpoints across inferior fork.
9994         * amd64-linux-nat.c (update_debug_registers_callback): Update the
9995         comment for linux_nat_iterate_watchpoint_lwps.
9996         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9997         linux_nat_iterate_watchpoint_lwps.
9998         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9999         * i386-linux-nat.c (update_debug_registers_callback): Update the
10000         comment for linux_nat_iterate_watchpoint_lwps.
10001         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10002         linux_nat_iterate_watchpoint_lwps.
10003         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10004         * i386-nat.c: Include inferior.h.
10005         (dr_mirror): Remove.
10006         (i386_inferior_data, struct i386_inferior_data)
10007         (i386_inferior_data_get): New.
10008         (i386_debug_reg_state): Use i386_inferior_data_get.
10009         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10010         (i386_insert_watchpoint, i386_remove_watchpoint)
10011         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10012         (i386_remove_hw_breakpoint): New variable state, use
10013         i386_debug_reg_state instead of DR_MIRROR.
10014         * linux-nat.c (delete_lwp): New declaration.
10015         (num_lwps): Move here from downwards.
10016         (delete_lwp_cleanup): New.
10017         (linux_child_follow_fork): Create new child_lp, call
10018         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10019         PTRACE_DETACH.
10020         (num_lwps): Move upwards.
10021         (linux_nat_iterate_watchpoint_lwps): New.
10022         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10023         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10024
10025 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10026
10027         GDB 7.4 released.
10028
10029 2012-01-23  Pedro Alves  <palves@redhat.com>
10030
10031         * top.c (caution): Rename to ...
10032         (confirm): ... this.
10033         (show_caution): Rename to ...
10034         (show_confirm): ... this.
10035         (quit_cover): Adjust.
10036         (init_main): Adjust.
10037         * top.h (caution): Rename to ...
10038         (confirm): ... this.
10039         * utils.c (internal_vproblem, defaulted_query): Adjust.
10040
10041 2012-01-23  Pedro Alves  <palves@redhat.com>
10042
10043         * top.c (caution): Update comment.
10044         (execute_command): Don't consider the current value of `caution'.
10045
10046 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10047
10048         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10049
10050 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
10051
10052         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10053         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10054         * target.c (target_fileio_pwrite): Remove buffer address from
10055         debug output.
10056         (target_fileio_pread): Likewise.
10057
10058 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10059
10060         * NEWS: Document remote "info proc" and "generate-core-file".
10061
10062 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10063
10064         * gdbarch.sh (find_memory_regions): New callback.
10065         * gdbarch.c, gdbarch.h: Regenerate.
10066
10067         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10068         callback before falling back to target method.
10069
10070         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10071         (linux_target_install_ops): No longer install it.
10072
10073         * linux-tdep.c (linux_find_memory_regions): New function.
10074         (linux_init_abi): Install it.
10075
10076 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10077
10078         * gdbarch.sh (make_corefile_notes): New architecture callback.
10079         * gdbarch.c: Regenerate.
10080         * gdbarch.h: Likewise.
10081
10082         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10083         before target_make_corefile_notes.  If NULL is returned, the
10084         target does not support core file generation.
10085
10086         * linux-nat.c: Include "linux-tdep.h".
10087         (find_signalled_thread, find_stop_signal): Remove.
10088         (linux_nat_do_thread_registers): Likewise.
10089         (struct linux_nat_corefile_thread_data): Likewise.
10090         (linux_nat_corefile_thread_callback): Likewise.
10091         (iterate_over_spus): Likewise.
10092         (struct linux_spu_corefile_data): Likewise.
10093         (linux_spu_corefile_callback): Likewise.
10094         (linux_spu_make_corefile_notes): Likewise.
10095         (linux_nat_collect_thread_registers): New function.
10096         (linux_nat_make_corefile_notes): Replace contents by call to
10097         linux_make_corefile_notes passing linux_nat_collect_thread_registers
10098         as native-only callback.
10099
10100         * linux-tdep.h: Include "bfd.h".
10101         (struct regcache): Add forward declaration.
10102         (linux_collect_thread_registers_ftype): New typedef.
10103         (linux_make_corefile_notes): Add prototype.
10104         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10105         "regset.h", and "elf-bfd.h".
10106         (find_signalled_thread, find_stop_signal): New functions.
10107         (linux_spu_make_corefile_notes): Likewise.
10108         (linux_collect_thread_registers): Likewise.
10109         (struct linux_corefile_thread_data): New data structure.
10110         (linux_corefile_thread_callback): New funcion.
10111         (linux_make_corefile_notes): Likewise.
10112         (linux_make_corefile_notes_1): Likewise.
10113         (linux_init_abi): Install it.
10114
10115 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10116
10117         * gdbarch.sh (info_proc): New callback.
10118         * gdbarch.c, gdbarch.h: Regenerate.
10119
10120         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10121         before falling back to the target info_proc callback.
10122
10123         * linux-nat.c: Do not include "cli/cli-utils.h".
10124         (linux_nat_info_proc): Remove.
10125         (linux_target_install_ops): No longer install it.
10126
10127         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10128         (read_mapping): New function.
10129         (linux_info_proc): Likewise.
10130         (linux_init_abi): Install it.
10131
10132 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10133
10134         * defs.h (enum info_proc_what): Moved here from linux-nat.c
10135         * infcmd.c: (info_proc_cmd_1): New function.
10136         (info_proc_cmd): New function, moved here from equivalent routine
10137         orignally in linux-nat.c.
10138         (info_proc_cmd_mappings): Likewise.
10139         (info_proc_cmd_stat): Likewise.
10140         (info_proc_cmd_status): Likewise.
10141         (info_proc_cmd_cwd): Likewise.
10142         (info_proc_cmd_cmdline): Likewise.
10143         (info_proc_cmd_exe): Likewise.
10144         (info_proc_cmd_all): Likewise.
10145         (_initialize_infcmd): Install "info proc" command and subcommands.
10146
10147         * target.h (struct target_ops): Add to_info_proc.
10148         (target_info_proc): Add prototype.
10149         * target.c (target_info_proc): New function.
10150
10151         * procfs.c (procfs_info_proc): Add prototype.
10152         (info_proc_cmd): Rename into ...
10153         (procfs_info_proc): ... this.  Update argument types as appropriate
10154         for a to_info_proc implementation.  Handle "what" argument.
10155         (procfs_target): Install procfs_info_proc.
10156         (_initialize_procfs): No longer install "info proc" command.
10157
10158         * linux-nat.c: (enum info_proc_what): Remove.
10159         (linux_nat_info_proc_cmd_1): Rename into ...
10160         (linux_nat_info_proc): ... this.  Update argument types as appropriate
10161         for a to_info_proc implementation.
10162         (linux_nat_info_proc_cmd): Remove.
10163         (linux_nat_info_proc_cmd_mappings): Likewise.
10164         (linux_nat_info_proc_cmd_stat): Likewise.
10165         (linux_nat_info_proc_cmd_status): Likewise.
10166         (linux_nat_info_proc_cmd_cwd): Likewise.
10167         (linux_nat_info_proc_cmd_cmdline): Likewise.
10168         (linux_nat_info_proc_cmd_exe): Likewise.
10169         (linux_nat_info_proc_cmd_all): Likewise.
10170         (linux_target_install_ops): Install linux_nat_info_proc.
10171         (_initialize_linux_nat): No longer install "info proc" command
10172         and subcommands.
10173
10174 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10175
10176         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10177         * config.in, configure: Regenerate.
10178
10179         * target.h (struct target_ops): Add to_fileio_readlink.
10180         (target_fileio_readlink): Add prototype.
10181         * target.c (target_fileio_readlink): New function.
10182
10183         * inf-child.c: Conditionally include <sys/param.h>.
10184         (inf_child_fileio_readlink): New function.
10185         (inf_child_target): Install it.
10186
10187         * remote.c (PACKET_vFile_readlink): New enum value.
10188         (remote_hostio_readlink): New function.
10189         (init_remote_ops): Install it.
10190         (_initialize_remote): Handle vFile:readlink packet type.
10191
10192 2012-01-20  Pedro Alves  <palves@redhat.com>
10193             Ulrich Weigand  <ulrich.weigand@linaro.org>
10194
10195         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10196         * config.in, configure: Regenerate.
10197
10198         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10199         to_fileio_pread, to_fileio_close, to_fileio_unlink.
10200         (target_fileio_open): Add prototype.
10201         (target_fileio_pwrite): Likewise.
10202         (target_fileio_pread): Likewise.
10203         (target_fileio_close): Likewise.
10204         (target_fileio_unlink): Likewise.
10205         (target_fileio_read_alloc): Likewise.
10206         (target_fileio_read_stralloc): Likewise.
10207
10208         * target.c: Include "gdb/fileio.h".
10209         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10210         (default_fileio_target): New function.
10211         (target_fileio_open): Likewise.
10212         (target_fileio_pwrite): Likewise.
10213         (target_fileio_pread): Likewise.
10214         (target_fileio_close): Likewise.
10215         (target_fileio_unlink): Likewise.
10216         (target_fileio_close_cleanup): Likewise.
10217         (target_fileio_read_alloc_1): Likewise.
10218         (target_fileio_read_alloc): Likewise.
10219         (target_fileio_read_stralloc): Likewise.
10220
10221         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10222         <fcntl.h>, and <unistd.h>.
10223         (inf_child_fileio_open_flags_to_host): New function.
10224         (inf_child_errno_to_fileio_error): Likewise.
10225         (inf_child_fileio_open): Likewise.
10226         (inf_child_fileio_pwrite): Likewise.
10227         (inf_child_fileio_pread): Likewise.
10228         (inf_child_fileio_close): Likewise.
10229         (inf_child_fileio_unlink): Likewise.
10230         (inf_child_target): Install to_fileio routines.
10231
10232         * remote.c (init_remote_ops): Install to_fileio routines.
10233
10234 2012-01-20  Pedro Alves  <palves@redhat.com>
10235             Ulrich Weigand  <ulrich.weigand@linaro.org>
10236
10237         * remote.c (remote_multi_process_p): Only check for multi-process
10238         protocol feature, do not check for extended protocol.
10239         (remote_supports_multi_process): Check for extended protocol here.
10240         (set_general_process): Likewise.
10241         (extended_remote_kill): Likewise.
10242         (remote_pid_to_str): Likewise.
10243         (remote_query_supported): Always query multiprocess mode.
10244
10245 2012-01-20  Pedro Alves  <palves@redhat.com>
10246             Ulrich Weigand  <ulrich.weigand@linaro.org>
10247
10248         * inferior.h (struct inferior): Add fake_pid_p.
10249         * inferior.c (exit_inferior_1): Clear fake_pid_p.
10250         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10251         magic_null_ptid since the remote side doesn't provide a real PID.
10252
10253 2012-01-19  Tom Tromey  <tromey@redhat.com>
10254
10255         * NEWS: Combine the two Python sections.
10256
10257 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10258
10259         * target.h (target_close): Update comment on the target's unpush state.
10260
10261 2012-01-19  Pedro Alves  <palves@redhat.com>
10262
10263         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10264         linux_nat_async directly instead of going through the target
10265         vector.
10266         * target.c (unpush_target): Close target after unpushing it, not
10267         before.
10268
10269 2012-01-19  Gary Benson  <gbenson@redhat.com>
10270
10271         * mdebugread.c (sort_blocks): Replace integer constants with ones
10272         derived from FIRST_LOCAL_BLOCK.
10273
10274 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10275             Jan Kratochvil  <jan.kratochvil@redhat.com>
10276
10277         PR gdb/9538
10278         * symfile.c (find_separate_debug_file): New function.
10279         (terminate_after_last_dir_separator): Likewise.
10280         (find_separate_debug_file_by_debuglink): Also try realpath.
10281         * configure.ac (AC_CHECK_FUNCS): Add lstat.
10282         * configure: Regenerate.
10283         * config.in: Regenerate.
10284
10285 2012-01-18  Doug Evans  <dje@google.com>
10286
10287         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10288         (main.o): Remove rule.
10289         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10290         (--with-sysroot): Rewrite.
10291         * configure: Regenerate.
10292         * config.in: Regenerate.
10293
10294 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
10295
10296         * parse.c (initialize_expout): New function.
10297         (reallocate_expout): Likewise.
10298         (parse_exp_in_context): Use `initialize_expout' and
10299         `reallocate_expout' when appropriate.
10300
10301 2012-01-18  Pedro Alves  <palves@redhat.com>
10302
10303         * record.c (struct record_breakpoint, record_breakpoint_p)
10304         (record_breakpoints): New.
10305         (record_insert_breakpoint, record_remove_breakpoint): Manage
10306         record breakpoints list.  Only remove breakpoints from the
10307         inferior if they had been inserted there in the first place.
10308
10309 2012-01-17  Doug Evans  <dje@google.com>
10310
10311         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10312         if we know we don't have a file name to look for.
10313
10314 2012-01-17  Pedro Alves  <palves@redhat.com>
10315
10316         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10317         the frame's stop reason is UNWIND_UNAVAILABLE.
10318
10319 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10320
10321         Fix compilation error.
10322         * m2-exp.y (yyerror): Use ANSI C prototype.
10323
10324 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10325
10326         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10327         (growbuf_by_size): Likewise.
10328         (yyerror): Likewise.
10329         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10330         (modblock): Remove variable (was #if 0'ed).
10331         (parse_number): Convert prototype from K&R to ANSI C.
10332         (yyerror): Likewise.
10333         * objc-exp.y (parse_number): Likewise.
10334         (yyerror): Likewise.
10335         (yylex): Remove #if 0'ed code.
10336         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10337         (yyerror): Likewise.
10338
10339 2012-01-16  Tom Tromey  <tromey@redhat.com>
10340
10341         * NEWS: Add item.
10342         * symtab.h (compare_filenames_for_search): Declare.
10343         * symtab.c (compare_filenames_for_search): New function.
10344         (iterate_over_some_symtabs): Use it.
10345         * symfile.h (struct quick_symbol_functions)
10346         <map_symtabs_matching_filename>: Change spec.
10347         * psymtab.c (partial_map_symtabs_matching_filename): Use
10348         compare_filenames_for_search.  Update for new spec.
10349         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10350         compare_filenames_for_search.  Update for new spec.
10351         * breakpoint.c (clear_command): Use compare_filenames_for_search.
10352
10353 2012-01-16  Tom Tromey  <tromey@redhat.com>
10354
10355         PR python/13281:
10356         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10357         (struct main_type) <flag_flag_enum>: New field.
10358         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10359         * NEWS: Add entries.
10360         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10361         enums.
10362         * python/lib/gdb/printing.py (_EnumInstance): New class.
10363         (FlagEnumerationPrinter): Likewise.
10364
10365 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10366
10367         * breakpoint.c (create_sals_from_address_default): New function.
10368         (create_breakpoints_sal_default): Likewise.
10369         (decode_linespec_default): Likewise.
10370         (is_marker_spec): Removed.
10371         (strace_marker_p): New function.
10372         (init_breakpoint_sal): Using `strace_marker_p' instead of
10373         `is_marker_spec'.
10374         (create_breakpoint): Call method `create_sals_from_address' from
10375         breakpoint_ops, replacing code that created SALs conditionally
10376         on the type of the breakpoint.  Call method `create_breakpoints_sal',
10377         replacing code that created breakpoints conditionally on the type
10378         wanted.
10379         (base_breakpoint_create_sals_from_address): New function.
10380         (base_breakpoint_create_breakpoints_sal): Likewise.
10381         (base_breakpoint_decode_linespec): Likewise.
10382         (base_breakpoint_ops): Add methods
10383         `base_breakpoint_create_sals_from_address',
10384         `base_breakpoint_create_breakpoints_sal' and
10385         `base_breakpoint_decode_linespec'.
10386         (bkpt_create_sals_from_address): New function.
10387         (bkpt_create_breakpoints_sal): Likewise.
10388         (bkpt_decode_linespec): Likewise.
10389         (tracepoint_create_sals_from_address): Likewise.
10390         (tracepoint_create_breakpoints_sal): Likewise.
10391         (tracepoint_decode_linespec): Likewise.
10392         (strace_marker_create_sals_from_address): Likewise.
10393         (strace_marker_create_breakpoints_sal): Likewise.
10394         (strace_marker_decode_linespec): Likewise.
10395         (strace_marker_breakpoint_ops): New variable.
10396         (addr_string_to_sals): Remove `marker_spec'.  Call method
10397         `decode_linespec' from breakpoint_ops, replacing code that decoded
10398         an address string into a SAL.  Use `strace_marker_p' instead of
10399         `marker_spec'.
10400         (strace_command): Decide whether we are dealing with a static
10401         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
10402         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10403         * breakpoint.h (linespec_result, linespec_sals): New forward
10404         declarations.
10405         (breakpoint_ops) <create_sals_from_address>,
10406         <create_breakpoints_sal>, <decode_linespec>: New methods.
10407
10408 2012-01-14  Doug Evans  <dje@google.com>
10409
10410         * NEWS: Update text for "maint set python print-stack".
10411         It is deprecated in gdb 7.4 and deleted in 7.5.
10412
10413 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
10414
10415         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10416         including curses.h.
10417
10418 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10419
10420         * configure: Regenerate.
10421         * config.in: Regenerate.
10422
10423 2012-01-12  Keith Seitz  <keiths@redhat.com>
10424
10425         PR mi/10586
10426         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10427         (ANONYMOUS_UNION_NAME): Define.
10428         (is_path_expr_parent): New function.
10429         (get_path_expr_parent): New function.
10430         (is_anonymous_child): New function.
10431         (create_child_with_value): If the child is anonymous and without
10432         a name, assign an object name to it.
10433         (c_describe_child): Use get_path_expr_parent to determine
10434         the parent expression.
10435         If there field represents an anonymous struct or union and
10436         has no name, set an appropriate display name and expression.
10437         (cplus_describe_child): Likewise.
10438
10439 2012-01-12  Pedro Alves  <palves@redhat.com>
10440
10441         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10442         available when %ebp is found to be zero (outermost).
10443
10444 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
10445
10446         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10447         an internal gdb_static_assert.
10448         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10449
10450 2012-01-11  Tom Tromey  <tromey@redhat.com>
10451
10452         PR gdb/9598:
10453         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10454         catch" and "catch throw".
10455
10456 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
10457
10458         * blockframe.c (block_innermost_frame): Start search from selected
10459         frame, if present, or otherwise the current frame.
10460
10461         * c-exp.y (variable): Update innermost_block for
10462         'block COLONCOLON NAME' clause.
10463         * m2-exp.y (variable): Ditto.
10464         * objc-exp.y (variable): Ditto.
10465
10466 2012-01-10  Tom Tromey  <tromey@redhat.com>
10467
10468         PR python/13199:
10469         * python/python.c (finish_python_initialization): Set sys.argv.
10470
10471 2012-01-10  Doug Evans  <dje@google.com>
10472
10473         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
10474         "want_line_info".  All callers updated.
10475         (dwarf_decode_lines_1): New function.
10476         (handle_DW_AT_stmt_list): Add function comment.
10477         New arg "want_line_info".  All callers updated.
10478         (read_file_scope,read_type_unit_scope): Move comment from
10479         handle_DW_AT_stmt_list to here.
10480
10481 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10482
10483         Fix regression after libiberty/ update for GCC PR 6057 and others.
10484         * c-exp.y (operator) <OPERATOR DELETE>
10485         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10486         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10487         (make_builtin_type, make_name): New variable i, add gdb_assert.
10488         (operator) <OPERATOR NEW>: Update ARGS to 3.
10489         (operator) <OPERATOR DELETE>: Add trailing space.
10490         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10491         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10492         * cp-support.c (cp_canonicalize_string): Check NULL from
10493         cp_comp_to_string, call warning and return.
10494
10495 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10496
10497         Fix duplicate .o files after omitting libbfd.a.
10498         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10499         (SFILES): Add corelow.c.
10500         (COMMON_OBS): Add corelow.o.
10501         (ALLDEPFILES): Remove corelow.c.
10502         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10503         * config/alpha/alpha-osf3.mh: Likewise.
10504         * config/alpha/fbsd.mh: Likewise.
10505         * config/arm/nbsdaout.mh: Likewise.
10506         * config/arm/nbsdelf.mh: Likewise.
10507         * config/i386/i386gnu.mh: Likewise.
10508         * config/ia64/hpux.mh: Likewise.
10509         * config/ia64/linux.mh: Likewise.
10510         * config/m32r/linux.mh: Likewise.
10511         * config/m68k/linux.mh: Likewise.
10512         * config/mips/irix5.mh: Likewise.
10513         * config/mips/irix6.mh: Likewise.
10514         * config/pa/hpux.mh: Likewise.
10515         * config/pa/linux.mh: Likewise.
10516         * config/powerpc/aix.mh: Likewise.
10517         * config/sparc/linux.mh: Likewise.
10518         * config/sparc/linux64.mh: Likewise.
10519         * config/sparc/sol2.mh: Likewise.
10520         * config/vax/vax.mh: Likewise.
10521         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10522         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10523         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10524         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10525         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10526         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10527         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10528         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10529         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10530         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10531         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10532         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10533         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10534         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10535         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10536         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10537         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10538         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10539         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10540         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10541         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10542         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10543         corelow.o from gdb_target_obs.
10544         * corefile.c (core_target): Update the comment on NULL value.
10545         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10546         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10547         MATCHES.  Drop YUMMY set on NULL.
10548         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
10549         reclaim CORE_DATA if it is already NULL.
10550
10551 2012-01-09  Doug Evans  <dje@google.com>
10552
10553         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10554         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10555
10556 2012-01-09  Keith Seitz  <keiths@redhat.com>
10557
10558         * breakpoint.c (wrapper.h): Don't include.
10559
10560 2012-01-09  Keith Seitz  <keiths@redhat.com>
10561
10562         * Makefile.in (SFILES): Remove wrapper.c.
10563         (HFILES_NO_SRCDIR): Remove wrapper.h.
10564         (COMMON_OBS): Remove wrapper.o.
10565         * cli/cli-interp.c: Don't inlude wrapper.h.
10566         * corelow.c: Likewise.
10567         (core_open): Replace gdb_target_find_new_threads with
10568         TRY_CATCH around target_find_new_threads.
10569         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10570         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10571         * varobj.c (varobj_create): Likewise for parse_exp_1 and
10572         evaluate_expression.
10573         (varobj_set_value): Likewise for evaluate_expression and
10574         value_assign.
10575         (install_new_variable): Likewise for value_fetch_lazy.
10576         (adjust_value_for_child_access): Likewise for value_ind.
10577         (c_describe_child): Likewise for value_subscript and
10578         value_ind.
10579         (c_value_of_root): Likewise for evaluate_expression.
10580         * wrapper.c: Remove.
10581         * wrapper.h: Remove.
10582
10583 2012-01-09  Doug Evans  <dje@google.com>
10584
10585         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10586         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
10587         "abfd" args with "section".  All callers updated.
10588         Error checking code moved ...
10589         (error_check_comp_unit_head): ... here.  New function.
10590         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10591         Delete arg "abfd".  New arg "type_offset".  All callers updated.
10592         (create_debug_types_hash_table): Simplify by using
10593         read_and_check_type_unit_head.
10594
10595         * parser-defs.h (namecopy): Delete.
10596         * parse.c (namecopy, namecopy_size): Move into copy_name.
10597
10598 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10599
10600         Partially fix duplicate .o files after omitting libbfd.a.
10601         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10602         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10603         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10604         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10605         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10606         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10607         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10608
10609 2012-01-09  Pedro Alves  <palves@redhat.com>
10610
10611         * MAINTAINERS: Update my email address.
10612
10613 2012-01-08  Doug Evans  <dje@google.com>
10614
10615         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10616         n_type_units.  Rename type_comp_units to all_type_units.
10617         All uses updated.
10618         (add_signatured_type_cu_to_table): Renamed from
10619         add_signatured_type_cu_to_list.  All callers updated.
10620
10621         * gdbtypes.h (struct cplus_struct_type): Delete member
10622         nfn_fields_total.  All uses removed.
10623
10624 2012-01-06  Doug Evans  <dje@google.com>
10625
10626         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10627         to top of file.
10628         (dwarf2_find_comp_unit): Delete.
10629         (process_psymtab_comp_unit): Make result "void".
10630         Delete args buffer, info_ptr, buffer_size, and replace with
10631         "section".  All callers updated.
10632         (dwarf2_build_psymtabs_hard): Simplify.
10633
10634 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
10635             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10636
10637         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10638         before `struct gdb_exception'.
10639         * breakpoint.c (update_global_location_list_nothrow)
10640         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10641         * cp-abi.c (value_rtti_type): Likewise.
10642         * cp-support.c (cp_validate_operator): Likewise.
10643         * infrun.c (insert_exception_resume_breakpoint)
10644         (check_exception_resume, keep_going): Likewise.
10645         * mi-interp.c (mi_breakpoint_created)
10646         (mi_breakpoint_modified): Likewise.
10647         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10648         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10649         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10650
10651 2012-01-05  Doug Evans  <dje@google.com>
10652
10653         * dwarf2read.c (statement_prologue): Delete, unused.
10654
10655         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10656         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10657
10658         * dwarf2read.c (comp_unit_header): Delete, unused.
10659
10660 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
10661
10662         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10663         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10664
10665 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
10666
10667         * infrun.c (normal_stop): Don't skip calling the normal_stop
10668         observers if the thread was doing a multi-step, but stopped for
10669         some reason other than stepping.
10670
10671 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
10672
10673         * cli/cli-decode.h: Add comments.
10674         (CMD_LIST_AMBIGUOUS): Moved to command.h
10675         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10676         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10677         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10678         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10679         (add_com, add_com_alias, add_info, add_info_alias)
10680         (complete_on_cmdlist, complete_on_enum, help_list): Remove
10681         declarations.
10682         * command.h: Add and adjust comments.
10683         (CMD_LIST_AMBIGUOUS): Moved here.
10684         (help_cmd, help_cmd_list): Delete declarations.
10685
10686 2012-01-04  Doug Evans  <dje@google.com>
10687
10688         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10689         All callers updated.
10690         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10691         Replace all arguments with "per_cu".  All callers updated.
10692
10693         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10694
10695         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10696         New arg "per_cu".  All callers updated.
10697
10698         Delete #if 0'd out code.
10699         * language.c (binop_result_type): Delete.
10700         (simple_type, ordered_type, same_type, integral_type): Delete.
10701         (numeric_type, character_type, string_type, boolean_type): Delete.
10702         (float_type, structured_type): Delete.
10703         * language.h: Update.
10704
10705 2012-01-04  Tom Tromey  <tromey@redhat.com>
10706
10707         * python/py-value.c (valpy_binop): Initialize 'res_val'.
10708
10709 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10710
10711         * corefile.c (close_exec_file): Delete.
10712         (reopen_exec_file): Remove commented out code that seems related
10713         to close_exec_file, which is being deleted here.
10714         * inferior.h (close_exec_file): Delete.
10715         * fork-child.c (fork_inferior): Remove call to fork_inferior.
10716
10717 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10718
10719         * ada-lang.c: #include "cli/cli-utils.h".
10720         (get_selections): Use skip_spaces.
10721         (ada_get_next_arg): Use skip_spaces and skip_to_space.
10722         (catch_ada_exception_command_split): Use skip_spaces.
10723         (ada_decode_assert_location): Likewise.
10724
10725 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10726
10727         * linespec.c (decode_line_internal): Check for C++ or Java
10728         compound constructs only if the current language is C, C++
10729         or Java.
10730
10731 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10732
10733         Revert:
10734         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10735                     Joel Brobecker  <brobecker@adacore.com>
10736         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10737         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10738         3 times.
10739         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10740         fall through into AT_ENTRY_POINT.
10741         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
10742         DUMMY_ADDR with it.
10743         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10744         PPC_INSN_SIZE skip to 3 times.
10745
10746 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10747
10748         * linespec.c (add_minsym): Preserve function descriptors.
10749
10750 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
10751
10752         * breakpoint.c (all_locations_are_pending): Consider locations
10753         in program spaces executing during startup pending as well.
10754
10755 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10756
10757         Copyright year update in most files of the GDB Project.
10758
10759 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10760
10761         * copyright.sh: Delete.
10762         * copyright.py: Rewrite.
10763
10764 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10765
10766         * gnulib/extra/update-copyright: New file, imported from gnulib.
10767
10768 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10769
10770         * README (Copyright and License Notices): New section.
10771
10772 2012-01-03  Tom Tromey  <tromey@redhat.com>
10773
10774         PR python/12533:
10775         * python/py-value.c (valpy_dereference, valpy_get_address
10776         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10777         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10778         (valpy_absolute, valpy_richcompare): Free intermediate values.
10779
10780 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
10781
10782         * ada-lang.c: Reformat the copyright notice.
10783
10784 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10785
10786         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10787         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10788         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10789         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10790         Revert this part of:
10791         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10792         Build gdb directly from *.o files not using libgdb.a.
10793         * Makefile.in (COMMON_OBS): Remove solib-target.o.
10794
10795 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10796
10797         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10798         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10799         Reformat the copyright header.
10800
10801 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10802
10803         Revert this part of:
10804         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10805         Remove the gdbtui binary.
10806         * gdb.c (main): Remove args.interpreter_p initialization.
10807         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10808         * main.h (struct captured_main_args): Remove interpreter_p.
10809
10810 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10811
10812         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10813
10814 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10815
10816         * top.c (print_gdb_version): Update copyright year.
10817
10818 2012-01-02  Yao Qi  <yao@codesourcery.com>
10819
10820         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10821
10822 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10823             Joel Brobecker  <brobecker@adacore.com>
10824
10825         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10826         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10827         3 times.
10828         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10829         fall through into AT_ENTRY_POINT.
10830         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
10831         DUMMY_ADDR with it.
10832         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10833         PPC_INSN_SIZE skip to 3 times.
10834
10835 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10836
10837         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10838         the return value.
10839         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10840
10841 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10842
10843         Build gdb directly from *.o files not using libgdb.a.
10844         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10845         (COMMON_OBS): Remove solib-target.o.
10846         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10847         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10848         (LIBGDB_OBS, libgdb.a): Move it above.
10849         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10850         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10851         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10852         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10853         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10854         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10855         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10856         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10857         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10858         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10859         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10860         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10861         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10862         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10863         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10864         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10865         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10866         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10867         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10868         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10869         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10870         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10871         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10872         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10873         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10874         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10875         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10876
10877 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10878
10879         Remove the gdbtui binary.
10880         * .gitignore (/gdbtui): Remove.
10881         * Makefile.in (TUI): Remove.
10882         (SUBDIR_TUI_OBS): Remove tui-main.o.
10883         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10884         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10885         (tui-main.o): Remove.
10886         (all_object_files): Remove tui-main.o.
10887         * NEWS: New note for the gdbtui removal.
10888         * configure: Rebuilt.
10889         * configure.ac: No longer add all-tui, clean-tui, install-tui and
10890         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10891         CONFIG_UNINSTALL respectively.
10892         * gdb.c (main): Remove args.interpreter_p initialization.
10893         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10894         * main.h (struct captured_main_args): Remove interpreter_p.
10895         * tui/tui-main.c: Remove.
10896
10897 2012-01-01  Doug Evans  <dje@google.com>
10898
10899         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10900         (dwarf2_physname, read_import_statement): Ditto.
10901         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10902         (process_structure_scope read_subroutine_type): Ditto.
10903         (read_typedef, load_partial_dies, read_partial_die): Ditto.
10904         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10905         (dwarf2_fetch_die_location_block): Ditto.
10906         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10907
10908         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10909         All callers updated.
10910         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10911         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10912         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10913
10914         * dwarf2read.c (load_cu): Move assert to more useful location.
10915
10916         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10917         All callers updated.
10918
10919         * dwarf2read.c (dwarf2_per_objfile): Add comment.
10920         (dwarf2_elf_names): Minor reformat.
10921         (dwarf2_per_cu_data): Tweak comment.
10922         (dwarf2_read_section): Fix comment.
10923         (create_all_comp_units): Fix comment.
10924         (load_full_comp_unit): Fix comment.
10925         (process_full_comp_unit): Fix comment.
10926         (read_signatured_type): Fix comment.
10927
10928 For older changes see ChangeLog-2011.
10929 \f
10930 Local Variables:
10931 mode: change-log
10932 left-margin: 8
10933 fill-column: 74
10934 version-control: never
10935 coding: utf-8
10936 End: